From 46e14cc19cbfb5f6904e33d7aa3aa718f0473c98 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 25 Nov 2026 06:16:14 +0000 Subject: [PATCH] chore: version packages --- .changeset/32062-sync-in-delete-marking.md | 30 - .changeset/32062-sync-provenance-columns.md | 21 - ...5-directory-deactivation-local-password.md | 19 - .../32439-config-load-neutral-wording.md | 14 - .changeset/32642-ai-answer-routes.md | 17 - .../32958-storage-sync-notice-wording.md | 10 - .changeset/33345-sweep-refusal-copy.md | 17 - .changeset/33552-share-link-label-hidden.md | 24 - .../33581-plugin-detail-core-subpath.md | 16 - ...1-scenarios-strict-pending-confirmation.md | 14 - .changeset/33787-shared-record-ids-switch.md | 32 - .../33840-analytics-empty-projection.md | 20 - .changeset/33865-package-create-toast.md | 15 - .../33911-extension-sibling-currency-field.md | 21 - .changeset/33932-seal-lock-stalled-session.md | 20 - .../33933-knowledge-settings-with-service.md | 23 - ...3986-attachment-member-set-translations.md | 10 - .../33996-authored-feed-field-history.md | 15 - .../34030-refusal-labels-source-locale.md | 35 - .../34094-marketplace-suggested-set-label.md | 12 - .changeset/34121-access-policy-field-helps.md | 10 - .../34122-condition-subjects-label-first.md | 11 - .../34170-export-signed-body-readers.md | 16 - .changeset/34175-search-lookup-title.md | 15 - .changeset/34182-summary-read-wraps.md | 15 - .changeset/34211-console-load-layers.md | 15 - .changeset/34212-flow-start-refusal-reason.md | 12 - .../34269-bulk-aggregate-result-reader.md | 19 - .../34279-automation-hook-connector-text.md | 12 - .changeset/34283-announce-summary-holes.md | 12 - .changeset/34292-bulk-audit-row-counts.md | 20 - .changeset/34350-compare-window-path-key.md | 17 - .changeset/34352-seal-default-chain-column.md | 27 - .changeset/34374-action-texts-org-locale.md | 25 - .changeset/34404-remove-sso-user-audit-row.md | 12 - .changeset/34414-formula-aggregate-remedy.md | 12 - .changeset/34463-composer-oversize-notice.md | 15 - ...65-predicate-update-parent-summary-rule.md | 23 - .../34497-scenario-template-fresh-copy.md | 14 - .../34504-skills-before-hook-unit-of-work.md | 10 - .../34552-skills-build-issue-user-message.md | 10 - .../34553-publish-toast-user-message.md | 12 - .changeset/34575-hook-texts-studio-row.md | 14 - .../34598-mongodb-zoned-bucket-refusal.md | 16 - .../34613-scenario-seed-no-retired-mode.md | 7 - .../34613-seed-mode-insert-replace-retired.md | 34 - .changeset/34637-approval-fault-edge-skill.md | 12 - .changeset/34638-resume-failure-refusal.md | 18 - .../34648-skills-result-dialog-bulk-result.md | 10 - .changeset/34651-add-user-already-pending.md | 14 - .../34660-value-envelope-refusal-wording.md | 13 - .changeset/34662-flow-record-date-text.md | 27 - .../34681-bare-write-doors-follow-base.md | 14 - .../34681-spec-bare-doors-follow-base.md | 10 - .changeset/34682-bundle-member-selector.md | 41 - .changeset/34689-slim-mcp-tool-list.md | 15 - .../34692-home-recents-disabled-package.md | 12 - .changeset/34694-shared-steps-rewrite.md | 13 - ...audit-search-withholds-snapshot-columns.md | 13 - .../34726-enterprise-capability-advisory.md | 16 - .changeset/34728-notification-settings.md | 32 - .changeset/34730-s3b-slack-setup-entry.md | 12 - .changeset/34730-slack-dm-delivery.md | 21 - .changeset/34730-slack-settings-ui.md | 15 - .../34741-delegated-scope-holder-controls.md | 12 - .changeset/34746-all-dropped-update-noop.md | 21 - .../34766-mcp-draft-door-write-tools.md | 20 - .changeset/34766-mcp-draft-door-write.md | 14 - .changeset/34766-mcp-open-draft-door-read.md | 20 - .../34769-ask-trigger-cases-wizard-pointer.md | 8 - ...9-skill-descriptions-lead-with-the-task.md | 8 - ...34771-skills-json-forms-served-sections.md | 18 - .../34774-authoring-contract-version.md | 12 - .changeset/34774-restriction-profile-route.md | 17 - .../34776-publish-checks-build-probes.md | 28 - .../34777-client-get-item-draft-read.md | 10 - .../34777-meta-register-draft-lint-item.md | 13 - .changeset/34778-mcp-build-skill.md | 14 - .changeset/34779-verify-flow-run.md | 19 - .changeset/34780-scenarios-door-mode.md | 12 - .../34780-scenarios-door-rules-corpus.md | 10 - .../34798-skills-seed-modes-locale-order.md | 16 - .../34806-public-form-pair-translation.md | 10 - .changeset/34821-rollup-fold-followups.md | 23 - .changeset/34824-action-refusals-skill.md | 15 - .../34846-dry-run-upgrade-resolver-refusal.md | 10 - .../34855-read-file-stop-before-page-1.md | 14 - ...856-deferred-key-seed-row-stays-deleted.md | 12 - .../34857-seed-blank-key-record-refused.md | 21 - .changeset/34861-sso-sign-in-watchdog.md | 10 - .../34862-approval-link-console-mount.md | 17 - ...34863-cross-object-batch-refusal-fields.md | 12 - .../34864-seed-unknown-object-save-door.md | 20 - .../34865-explain-access-disabled-reason.md | 11 - .changeset/34866-doctor-verbose-hint.md | 10 - .../34886-group-by-relation-path-refusal.md | 18 - .changeset/34887-scenario-scorer-round2.md | 13 - .changeset/34889-identity-outcome-copy.md | 11 - .changeset/34905-required-when-shown.md | 34 - .../34906-dashboard-table-no-csv-export.md | 11 - .changeset/34919-ask-skill-next-step.md | 13 - .../34931-records-destructive-confirm.md | 12 - .changeset/34938-current-iso-week-token.md | 25 - .changeset/34940-seed-locale-fallback.md | 24 - .../34946-flow-record-date-arithmetic.md | 26 - .changeset/34962-i18n-skill-texts.md | 14 - .../34967-data-hooks-transaction-texts.md | 16 - .changeset/34971-allowlist-invite-grant.md | 24 - .changeset/34974-boolean-read-presenter.md | 12 - ...-skills-seed-rows-obey-validation-rules.md | 8 - .../34987-hook-job-body-does-not-compile.md | 26 - .changeset/34988-action-wrapper-redeclare.md | 8 - .../34990-nested-relation-filter-node.md | 24 - .../34993-translation-fault-untranslated.md | 19 - .../34996-ask-fallback-beside-grouping.md | 20 - .../34996-ask-skill-unknown-grouping-eval.md | 13 - .changeset/35004-ask-skill-after-answer.md | 13 - .changeset/35005-grouping-candidate-no-ask.md | 15 - ...6-scenarios-acknowledged-rollup-charged.md | 10 - .changeset/35018-studio-landing-c.md | 15 - .changeset/35019-empty-groups-line.md | 23 - .changeset/35020-phone-bar-more-active.md | 10 - .changeset/35021-approval-reject-wording.md | 18 - .changeset/35027-action-timeout-sentence.md | 14 - .changeset/35028-trio-handle-owner.md | 16 - .changeset/35033-form-recomputes-formulas.md | 14 - .changeset/35036-mcp-door-tool-names.md | 17 - ...ction-body-regexp-literal-token-refused.md | 23 - .../35045-dynamic-summary-tenant-child.md | 21 - .../35046-derived-measure-tenant-currency.md | 19 - .changeset/35047-formula-percent-return.md | 21 - .../35049-print-filename-display-name.md | 17 - .changeset/35050-related-new-autofill.md | 17 - .../35052-platform-audit-write-unmarked.md | 16 - .changeset/35053-lookup-label-namefield.md | 21 - .changeset/35054-app-writes-authored-body.md | 13 - .changeset/35054-view-writes-authored-body.md | 12 - .../35057-filter-condition-schema-hold.md | 14 - .changeset/35061-studio-main-area-adapts.md | 15 - .changeset/35062-sidebar-hidden-collapse.md | 10 - .changeset/35068-gated-action-field-lock.md | 14 - .changeset/35079-skills-write-staged-swap.md | 10 - .changeset/35092-section-nav-dialog-scroll.md | 15 - .changeset/35095-eval-forbidden-mention.md | 10 - .../35096-action-form-texts-refusals-rows.md | 12 - .../35098-travel-expense-step-two-approver.md | 10 - .changeset/35099-phone-bar-disabled-edit.md | 10 - ...101-generated-nav-entry-authored-plural.md | 13 - .../35106-direct-sign-in-after-sign-out.md | 19 - ...35107-invitation-proof-outside-endpoint.md | 10 - .../35109-seed-datasets-replace-on-upgrade.md | 13 - .changeset/35113-scenario-ask-kinds.md | 14 - .changeset/35114-stdio-mcp-dropped-fields.md | 15 - .changeset/35115-app-writes-package-scope.md | 12 - ...35123-member-digest-quiet-hours-opt-out.md | 17 - .changeset/35132-gallery-trial-package.md | 20 - .changeset/35135-disabledwhen-edit-reason.md | 13 - .../35136-preference-rows-paged-read.md | 12 - .changeset/35137-mcp-withheld-fields.md | 20 - .../35138-aggregate-option-order-currency.md | 15 - .changeset/35138-mcp-not-recorded.md | 20 - .changeset/35138-mcp-object-query-source.md | 14 - .changeset/35138-query-records-truncated.md | 12 - ...141-publish-all-seed-warn-pack-sentence.md | 12 - .changeset/35142-claim-race-loser-409.md | 21 - .../35143-flow-publish-checks-second-batch.md | 41 - .changeset/35144-aggregate-order-cut.md | 25 - .changeset/35145-mcp-latest-per.md | 23 - .changeset/35145-mcp-related-read.md | 21 - .../35147-destructive-still-shown-by.md | 18 - .changeset/35149-trio-handle-closed.md | 10 - .changeset/35157-capability-draft-count.md | 10 - .../35157-scaffold-no-connector-plugins.md | 12 - .../35157-unmanaged-copy-capabilities.md | 24 - .changeset/35158-ask-back-measure-scope.md | 17 - .../35166-empty-sections-line-remembered.md | 14 - ...67-insert-delete-unit-inside-middleware.md | 19 - .../35171-skills-verify-capabilities.md | 14 - .changeset/35172-owner-only-fallback-warn.md | 16 - ...174-action-api-platform-system-api-mark.md | 16 - .changeset/35178-ui-router-names-refusals.md | 10 - .changeset/35184-dev-seed-retire-at-boot.md | 19 - .changeset/35189-wizard-gate-formula.md | 12 - ...5190-narrow-formula-visiblewhen-warning.md | 21 - .../35191-ask-skill-withheld-totalgroups.md | 13 - .../35192-notification-settings-read-only.md | 13 - .../35194-query-dataset-total-groups.md | 18 - .changeset/35195-search-disabled-package.md | 16 - .../35196-studio-landing-package-door.md | 11 - ...04-query-dataset-group-count-totals-arm.md | 14 - .changeset/35218-objectstack-project-skill.md | 20 - .changeset/35218-scaffold-ci-runs-tests.md | 16 - .../35220-remove-pending-sso-user-action.md | 10 - ...5228-package-duplicate-entry-every-door.md | 20 - .../35245-skills-publish-time-findings.md | 20 - .../35249-default-form-record-visiblewhen.md | 14 - .../35250-print-page-not-record-page.md | 10 - .changeset/35251-state-machine-update-only.md | 13 - ...252-field-group-shadowed-six-highlights.md | 18 - .changeset/35253-approval-band-once.md | 10 - .changeset/35254-seed-extension-lookup.md | 21 - .changeset/35255-verify-external-no-writes.md | 14 - .changeset/35256-draft-connector-advisory.md | 12 - .../35258-seed-reference-repair-by-mode.md | 14 - .changeset/35263-compact-related-row-label.md | 10 - .changeset/35276-composer-accept-tokens.md | 14 - .changeset/35280-about-version.md | 13 - .changeset/35284-ui-router-action-suffix.md | 12 - ...35285-platform-declared-capability-boot.md | 12 - .changeset/35287-objectql-face-order-cut.md | 17 - .changeset/35293-row-disabledwhen-reason.md | 10 - .../35303-ai-chat-seed-warn-pack-sentence.md | 12 - .changeset/35306-lookup-target-single-read.md | 13 - .changeset/35307-search-recipient-title.md | 12 - .../35314-record-details-field-visiblewhen.md | 12 - .changeset/35315-change-owner-cascade.md | 28 - .changeset/35316-no-approver-remedy.md | 14 - .../35317-gantt-refused-read-no-access.md | 10 - .../35319-automations-rail-flow-labels.md | 10 - .changeset/35329-delete-loser-not-found.md | 21 - .../35334-grid-row-disabledwhen-reason.md | 10 - ...5341-sqlite-retyped-boolean-text-column.md | 14 - .changeset/35344-handover-detail-owner.md | 16 - .changeset/35345-skills-platform-catalog.md | 16 - .changeset/35346-value-domain-name-hint.md | 13 - .../35353-cube-measure-formula-remedy.md | 12 - .../35355-working-calendar-objects-setup.md | 22 - .changeset/35355-working-calendar-service.md | 19 - .../35356-working-day-formula-functions.md | 23 - ...-approval-escalation-working-time-clock.md | 24 - .changeset/35369-flow-refusal-brace-header.md | 12 - ...375-seed-datasets-withdraw-on-uninstall.md | 10 - .changeset/35384-approval-labels-remainder.md | 15 - .../35384-reader-labels-translate-object.md | 20 - ...tep-label-and-notification-object-label.md | 18 - .../35390-install-fills-stored-expressions.md | 12 - .../35394-context-token-temporal-door.md | 27 - .changeset/35395-compare-iso-week.md | 10 - .../35399-handover-follows-transfer-switch.md | 24 - .changeset/35401-user-actions-transfer.md | 27 - .changeset/35402-change-owner-endpoint.md | 21 - .changeset/35403-change-owner-console.md | 30 - .changeset/35410-inbox-receipt-layer.md | 10 - .changeset/35411-edge-sheet-square-corners.md | 10 - .../35412-record-crumb-while-reading.md | 15 - .changeset/35414-sticky-tabs-solid.md | 10 - ...35415-approval-request-names-its-record.md | 16 - .changeset/35416-record-open-boot-waves.md | 14 - .../35417-first-run-checklist-one-line.md | 17 - .../35418-approval-timeline-system-notes.md | 17 - .changeset/35420-one-rename-rule.md | 12 - .changeset/35424-all-docs-page.md | 19 - .changeset/35424-docs-reader-one-column.md | 15 - .changeset/35425-one-language-list.md | 16 - .changeset/35427-expand-disabled-package.md | 17 - ...34-execute-dispatched-action-keeps-mark.md | 15 - ...437-field-visiblewhen-highlights-drawer.md | 12 - .changeset/35440-ban-unban-admin-audit-row.md | 8 - .changeset/35442-mcp-app-docs-tools.md | 19 - .changeset/35445-ai-panel-one-row-header.md | 25 - .changeset/35446-list-narrow-fixed-columns.md | 15 - .changeset/35449-ai-approvals-phone-width.md | 14 - .../35454-doctor-verbose-hint-fixless.md | 10 - .../35455-console-boot-one-localization.md | 13 - .changeset/35455-console-preload-chunks.md | 12 - ...35455-console-record-route-package-list.md | 10 - .changeset/35472-section-nav-jump-bar.md | 17 - ...474-direct-sign-in-accepts-echoed-state.md | 10 - .../35481-dashboards-skill-open-in-list.md | 14 - .changeset/35483-approval-band-once.md | 10 - .../35488-standard-unit-table-sys-unit.md | 18 - .changeset/35489-unit-config.md | 28 - .changeset/35491-unit-raw-aggregate.md | 18 - .changeset/35492-unit-code-backfill.md | 51 - ...493-value-source-operator-map-comparand.md | 23 - .../35494-nested-relation-hop-docblock.md | 10 - ...496-skills-teach-five-landed-behaviours.md | 35 - .../35499-nested-refusal-row-placement.md | 22 - .changeset/35505-approval-host-app.md | 14 - .../35507-grid-entry-row-header-help.md | 15 - .changeset/35512-text-call-shapes.md | 18 - .../35525-analytics-disabled-package.md | 25 - ...5526-calldata-relation-disabled-package.md | 20 - .changeset/35530-inbox-window-indexes.md | 16 - .changeset/35534-console-seed-parse-time.md | 10 - .../35535-list-view-read-starts-with-route.md | 12 - .changeset/35536-list-first-read-once.md | 10 - .../35544-travel-expense-measure-words.md | 10 - .changeset/35548-list-page-frame.md | 23 - .../35551-35553-list-options-view-create.md | 16 - .changeset/35554-list-no-actions-column.md | 17 - .../35566-extension-publish-follow-door.md | 12 - .changeset/35571-shared-record-ids-leaf.md | 19 - .changeset/35584-delegated-docs-audience.md | 20 - .../35589-owner-resave-extension-column.md | 12 - .changeset/35592-form4-driver-docblock.md | 10 - .changeset/35593-record-header-one-row.md | 24 - .changeset/35595-35596-record-tabs-rail.md | 24 - .changeset/35597-master-detail-body-tables.md | 22 - .changeset/35599-record-page-edit-state.md | 21 - ...600-studio-customize-shipped-views-only.md | 11 - .changeset/35601-related-tab-open-and-add.md | 23 - .changeset/35602-record-dense-rows.md | 14 - .changeset/35606-request-session-read-once.md | 14 - .../35609-reregister-extension-withdraw.md | 14 - .../35619-user-actions-export-csv-enforced.md | 27 - .../35624-console-new-view-saves-into-app.md | 11 - .../35628-default-inspector-refusal-rows.md | 20 - .changeset/35631-formula-currency-verdict.md | 27 - .../35633-mcp-doc-answer-rule-export.md | 10 - .changeset/35640-verify-memory-stand-in.md | 24 - .changeset/35640-verify-real-store-wording.md | 10 - .changeset/35647-ui-bulk-selected-ids.md | 8 - .../35650-action-designer-served-rows.md | 14 - .../35653-seed-records-refused-at-build.md | 30 - .../35655-seed-summary-value-not-stored.md | 21 - .changeset/35658-dark-danger-text.md | 13 - .../35659-approval-reject-requires-reason.md | 16 - .../35660-page-header-max-visible-describe.md | 10 - .changeset/35663-list-left-edge.md | 22 - ...35667-recycle-bin-orgless-system-delete.md | 12 - .changeset/35678-floating-selection-bar.md | 21 - .../35684-35687-list-cells-select-first.md | 31 - .changeset/35685-list-cell-autosave.md | 26 - .changeset/35685-list-cell-undo.md | 18 - .changeset/35685-list-state-confirm.md | 18 - .changeset/35688-cell-editor-layer.md | 15 - .changeset/35688-in-cell-pickers.md | 27 - .../35688-in-cell-typed-lookup-rating.md | 19 - .changeset/35689-group-refresh.md | 16 - .changeset/35689-inline-edit-a11y.md | 16 - .../35694-body-regexp-pattern-refused.md | 28 - .changeset/35698-text-key-literal-close.md | 12 - .../35701-shipped-text-after-body-tables.md | 10 - .changeset/35702-boolean-yes-no-counts.md | 19 - .changeset/35702-footer-calculation-row.md | 17 - .changeset/35704-lint-item-draft-hint.md | 10 - .changeset/35705-skill-evals-triggers-only.md | 10 - .../35711-residual-extension-and-jobs.md | 24 - ...-approvals-reject-route-requires-reason.md | 16 - ...lient-approvals-reject-requires-comment.md | 14 - .../35721-clone-file-field-stored-form.md | 12 - .changeset/35722-action-link-reject-reason.md | 23 - .changeset/35723-approval-activity-feed.md | 17 - .../35724-attachment-uploader-rename.md | 21 - .../35726-batch-refusal-failed-operation.md | 15 - .../35727-sourced-list-one-condition-tag.md | 13 - .changeset/35729-chart-view-bar-left-edge.md | 12 - .../35730-decided-step-approval-progress.md | 13 - .changeset/35734-percent-formula-return.md | 16 - .../35735-filter-flag-and-comparand-edges.md | 32 - .changeset/35742-overview-body-table-order.md | 12 - .changeset/35745-35816-record-page-polish.md | 22 - .../35754-embedded-date-macro-literal.md | 12 - .changeset/35761-draft-door-type-contract.md | 14 - .../35772-reject-reason-required-texts.md | 11 - .changeset/35783-related-tab-arrangement.md | 18 - .changeset/35786-fixed-read-leaf-seam.md | 17 - .changeset/35788-changes-chip-creation.md | 12 - .../35791-slack-plugin-token-optional.md | 12 - .changeset/35795-batched-record-lock-read.md | 22 - .changeset/35797-ime-enter-field-widgets.md | 14 - .../35798-summary-chip-formula-return-type.md | 10 - .../35802-cbp-predicate-write-master-gate.md | 35 - .../35802-predicate-write-floor-deferral.md | 40 - .changeset/35812-org-delete-removes-units.md | 14 - .changeset/35817-skill-reject-reason.md | 6 - ...23-unmanaged-derived-namespace-mismatch.md | 18 - .../35829-session-organization-candidates.md | 31 - .changeset/35831-overview-dropped-totals.md | 10 - .../35840-mobile-max-visible-default-copy.md | 10 - .changeset/35853-record-header-two-rows.md | 19 - .changeset/35854-one-way-to-open-a-record.md | 31 - .changeset/35858-skill-evals-trigger-field.md | 10 - ...59-query-sends-business-question-to-ask.md | 8 - .changeset/35863-decided-route-outcome.md | 24 - ...5867-scenarios-cite-dataset-source-line.md | 12 - .changeset/35870-navigation-mode-skills.md | 14 - .../35872-shared-record-ids-sql-compile.md | 19 - .../35874-fixed-read-leaf-census-rest.md | 22 - .changeset/35875-data-page-open-rule.md | 10 - .../35876-list-header-menu-multi-sort.md | 17 - .changeset/35878-list-toolbar-two-rows.md | 19 - .changeset/35881-phone-app-home-fixed-bar.md | 17 - .changeset/35883-phone-list-toolbar-panels.md | 25 - .../35889-form-places-detail-at-group.md | 19 - .../35889-master-detail-tab-by-default.md | 35 - .changeset/35890-record-details-pinned.md | 22 - .changeset/35891-record-page-no-stage-bar.md | 23 - .changeset/35892-related-tab-full-list.md | 25 - .changeset/35897-related-lists-tab-list.md | 36 - .changeset/35900-field-group-members.md | 34 - .changeset/35901-object-extension-place.md | 37 - .changeset/35902-skills-extension-place.md | 12 - .changeset/35902-skills-related-lists-tabs.md | 14 - .changeset/35906-pg-share-grant-key-type.md | 17 - .../35907-scenario-confirmation-grading.md | 14 - .../35908-scenario-confirm-first-lock.md | 10 - .../35911-destructive-colour-spelling.md | 19 - .../35915-navigation-help-seven-locales.md | 10 - .changeset/35917-by-id-widener-floor-term.md | 36 - ...35926-field-inline-edit-boolean-retired.md | 31 - .../35927-metadata-forms-field-group-help.md | 10 - .changeset/35928-record-update-starts-read.md | 20 - .changeset/35928-stage-confirm-names-flows.md | 20 - .changeset/35931-escalation-clock-skill.md | 8 - .changeset/35932-draft-save-keeps-list.md | 14 - .../35933-read-only-package-view-saves.md | 13 - .changeset/35936-kanban-open-mode.md | 14 - .changeset/35939-sso-unmounted-404.md | 12 - .../35940-master-detail-form-new-lines.md | 19 - .changeset/35941-owner-once-body.md | 14 - .../35943-record-page-strip-descriptions.md | 24 - .../35946-fixed-read-leaf-engine-member.md | 16 - .../35952-oracle-raw-share-grant-key.md | 14 - .changeset/35953-sla-deadline-error-guard.md | 12 - .changeset/35955-header-menu-hide-draft.md | 15 - .changeset/35955-list-changes-are-drafts.md | 23 - .changeset/35955-list-layout-in-browser.md | 22 - .changeset/35955-migrate-list-preferences.md | 18 - .changeset/35955-save-into-shared-view.md | 20 - .changeset/35956-required-fill-in-in-place.md | 22 - .changeset/35956-stage-menu-shared-fill-in.md | 18 - .../35960-oracle-raw-prime-composed-scope.md | 12 - .changeset/35962-state-dot-triplet-scan.md | 10 - .changeset/35964-catalog-working-calendar.md | 8 - .changeset/35970-catalog-units.md | 8 - .../35974-read-only-package-view-panel.md | 22 - .../35978-key-fields-no-strip-preview.md | 16 - .changeset/35979-flow-embed-labels.md | 15 - .changeset/35979-flow-node-label-key.md | 22 - .changeset/35980-dialog-surface.md | 28 - .changeset/35981-app-route-boot-frame.md | 15 - .changeset/35985-object-color-skills.md | 8 - .../35985-object-color-tile-everywhere.md | 25 - .changeset/35985-object-color-tile.md | 25 - .changeset/35992-dashboard-filter-arity.md | 22 - .../35992-multivalue-filter-surfaces.md | 18 - .changeset/35995-drawer-required-prompt.md | 12 - .changeset/35996-ime-enter-fields.md | 12 - .changeset/35997-header-actions-width-cap.md | 12 - .../35999-grid-undo-keeps-newer-save.md | 10 - .changeset/36002-refresh-display-panel.md | 14 - .changeset/36004-grid-header-help-name.md | 15 - .../36010-views-refused-read-no-access.md | 13 - .changeset/36011-restore-factory-view.md | 17 - .../36015-list-cell-click-only-selects.md | 18 - .../36015-lookup-chip-opens-in-drawer.md | 20 - .changeset/36017-show-user-manager.md | 15 - .changeset/36019-placed-lines-form.md | 14 - .changeset/36023-cell-panel-below.md | 26 - .changeset/36023-line-grid-cell-panels.md | 18 - .changeset/36023-rich-text-cell-panel.md | 13 - .changeset/36025-prompt-preread-operand.md | 9 - .../36035-no-approver-position-label.md | 10 - .changeset/36036-stage-menu-409-refields.md | 12 - .changeset/36041-phone-avatar-menu.md | 12 - .changeset/36043-line-item-cell-editors.md | 26 - .changeset/36044-phone-select-taps.md | 10 - .changeset/36046-people-cell-name.md | 12 - ...47-console-control-corner-white-content.md | 17 - .../36047-console-two-sizes-two-weights.md | 21 - .changeset/36048-list-column-lines-row-36.md | 13 - .changeset/36049-record-edit-outline.md | 15 - .changeset/36050-view-all-fields-bit.md | 23 - .changeset/36052-cross-set-field-reopen.md | 14 - .../36053-skills-three-permission-axes.md | 17 - .changeset/36070-comment-small-fixes.md | 20 - .changeset/36071-comment-threads-resolved.md | 19 - .changeset/36073-masking-off-ask-round.md | 10 - .changeset/36074-comment-reply-notice.md | 20 - .changeset/36075-comments-resolved.md | 23 - .changeset/36075-record-comments-panel.md | 22 - .changeset/36076-phone-comment-page.md | 22 - .../36078-summary-chip-percent-plain.md | 10 - .changeset/36082-record-unit-summary.md | 16 - .changeset/36094-flow-embed-branches.md | 15 - .changeset/36102-grid-field-lazy-body.md | 22 - .changeset/36110-signout-keeps-list-layout.md | 13 - .changeset/36111-page-header-shell-actions.md | 13 - .changeset/36112-no-desktop-top-bar.md | 21 - .changeset/36112-sidebar-docking.md | 17 - .../36113-list-top-object-row-view-row.md | 20 - ...121-fixed-read-leaf-seam-docblock-tense.md | 10 - .../36121-shared-record-ids-docblock-tense.md | 10 - .changeset/36122-seeds-rollup-never-stored.md | 10 - .changeset/36125-mcp-token-issue-time-ms.md | 15 - .changeset/36137-pinned-view-draft-writes.md | 16 - .changeset/36141-menu-icon-tiles.md | 17 - .changeset/36147-record-field-list.md | 24 - .../36148-timeline-events-chip-wording.md | 14 - .changeset/36149-side-preview-tighten.md | 18 - ...36150-authored-record-page-desktop-only.md | 17 - .../36151-phone-bottom-bar-actions-only.md | 24 - .changeset/36153-withheld-decline-wording.md | 12 - .changeset/36156-actions-per-record-write.md | 13 - .changeset/36157-app-icon-one-rule.md | 16 - ...6159-import-lookup-out-of-scope-message.md | 14 - .../36161-automation-skill-clearable-state.md | 16 - .changeset/36167-cel-list-equality-refused.md | 32 - .changeset/36167-cel-list-membership.md | 16 - .../36167-list-equality-site-rewrites.md | 35 - .../36168-dataset-json-column-refusal.md | 18 - .../36169-filterbuilderfield-multiple.md | 13 - .../36179-ui-record-page-full-desktop-only.md | 8 - ...-authored-record-page-surface-describes.md | 10 - .changeset/36186-36191-comment-doors.md | 29 - .../36189-preview-contains-membership.md | 16 - ...190-analytics-single-media-json-refusal.md | 24 - .../36193-recent-activity-card-no-comments.md | 11 - .changeset/36194-footer-calculation-draft.md | 18 - ...36198-restriction-profile-unscoped-only.md | 20 - .../36202-record-page-header-warning.md | 15 - .changeset/36204-group-add-default-field.md | 22 - .changeset/36206-decide-through-action.md | 13 - ...206-gallery-refresh-scorer-card-defects.md | 13 - .changeset/36206-namespace-operation-via.md | 10 - .../36216-filter-builder-field-options.md | 13 - .../36217-formula-skill-list-equality.md | 20 - .changeset/36219-cel-editor-list-fields.md | 10 - .changeset/36224-inline-edit-form-group.md | 10 - .changeset/36225-preview-no-comments.md | 15 - ...6226-details-divider-double-click-reset.md | 10 - .changeset/36227-sidebar-resize-float-card.md | 13 - .../36235-record-loading-placeholders.md | 11 - .changeset/36237-hop-list-equality.md | 28 - .changeset/36244-org-scoped-browser-state.md | 14 - .../36245-stale-literal-column-default.md | 9 - .changeset/36246-record-header-star.md | 12 - .changeset/36249-cross-currency-pick.md | 32 - .changeset/36249-form-subtotal-currency.md | 11 - .changeset/36252-lint-rules-field-group.md | 10 - .../36256-drill-dialog-standard-list.md | 20 - ...259-change-owner-answers-what-was-saved.md | 17 - .../36261-change-owner-disabled-package.md | 23 - .changeset/36269-every-group-folds.md | 26 - ...0-object-grid-single-click-edit-retired.md | 35 - .../36276-group-aggregates-per-depth.md | 12 - .changeset/36281-embedded-sub-fields-hint.md | 10 - .../36285-relationships-predicate-floor.md | 10 - .changeset/36286-palette-add-view-edit.md | 15 - .changeset/36286-palette-current-page.md | 18 - .changeset/36286-palette-preview-create.md | 18 - .changeset/36289-list-cell-context-menu.md | 20 - .../36290-activity-field-change-lines.md | 20 - .changeset/36290-field-change-history-card.md | 23 - .changeset/36290-field-history-producers.md | 19 - .../36290-field-history-values-default-on.md | 29 - .../36292-record-field-set-placeholder.md | 17 - .../36300-data-drawer-open-full-page.md | 10 - .changeset/36301-slack-dm-console-mount.md | 14 - .changeset/36308-no-approver-label-doors.md | 16 - .changeset/36309-embedded-stage-reread.md | 16 - .changeset/36310-overlay-field-labels.md | 12 - .changeset/36315-card-menu-keys.md | 10 - .changeset/36321-currency-picker-form-read.md | 9 - .changeset/36322-subflow-approval-mark.md | 10 - .changeset/36329-masking-off-field-absence.md | 14 - .../36331-orphans-delete-confirmation-exit.md | 19 - .changeset/36344-markdown-cell-heading.md | 10 - .changeset/36346-initials-one-rule.md | 17 - .changeset/36347-cmd-b-docks-sidebar.md | 12 - .../36349-skills-lookupautofill-currency.md | 10 - .../36353-compact-toolbar-refresh-describe.md | 13 - ...-auth-boot-reachability-admission-order.md | 10 - .changeset/36360-rich-text-panel-wording.md | 11 - .changeset/36362-runtime-design-mode.md | 15 - .changeset/36363-design-mode-menu-editing.md | 15 - .changeset/36364-design-mode-new-dashboard.md | 11 - .changeset/36364-design-mode-new-report.md | 11 - .changeset/36366-object-action-layout.md | 33 - .../36369-digest-conversion-snapshot.md | 10 - .changeset/36370-kanban-view-settings.md | 22 - .changeset/36372-dashboard-in-page-edit.md | 18 - .../36373-report-panel-business-wording.md | 24 - .changeset/36374-report-builder.md | 14 - .../36390-preload-refusal-user-message.md | 12 - ...393-calldata-disabled-package-every-hop.md | 18 - .changeset/36395-change-owner-queue-search.md | 16 - .changeset/36400-flow-label-every-flow.md | 15 - ...01-skills-i18n-flow-nodes-related-lists.md | 12 - .changeset/36403-view-column-state-retired.md | 25 - .changeset/36404-more-details-empty-reveal.md | 12 - .changeset/36407-phone-cards-load-more.md | 10 - .../36408-data-page-list-state-in-address.md | 12 - .../36410-comment-notice-opens-comment.md | 15 - .../36412-cross-currency-pick-followups.md | 18 - .../36419-skills-field-history-default.md | 12 - .changeset/36422-skills-board-settings.md | 10 - .changeset/36425-field-show-on-create.md | 17 - .changeset/36425-retire-internal-forms.md | 28 - .changeset/36430-kanban-reference-lanes.md | 10 - .changeset/36442-console-file-preview.md | 25 - .../36443-console-frame-src-storage-origin.md | 12 - .changeset/36444-setup-public-forms.md | 24 - .../36447-report-form-business-wording.md | 12 - .../36448-view-management-metadata-gate.md | 10 - .changeset/36451-grid-field-lazy-retry.md | 12 - .changeset/36452-html-cell-heading.md | 10 - .changeset/36455-ui-skill-create-surfaces.md | 10 - .changeset/36457-date-box-opens-calendar.md | 10 - ...59-conditional-formatting-list-equality.md | 12 - .changeset/36462-chip-operator-labels.md | 10 - ...463-no-approver-text-in-reader-language.md | 18 - .changeset/36466-meta-locale-negotiation.md | 14 - .../36468-navigation-size-auto-describe.md | 13 - .changeset/36469-comment-doors-hosted.md | 16 - .changeset/36469-comment-doors-serve-host.md | 12 - .changeset/36470-phone-comment-title.md | 10 - .changeset/36472-preview-esc-ends-edit.md | 17 - .../36473-installed-package-refusal-locale.md | 15 - .../36475-record-field-edit-in-place.md | 20 - .../36477-inbox-figure-highlightfields.md | 14 - .changeset/36479-lookup-preview-link-free.md | 14 - .changeset/36480-canvas-strip-served-label.md | 12 - .changeset/36481-served-name-edit.md | 20 - .changeset/36482-field-history-three-way.md | 16 - .changeset/36485-design-entry-app-menu.md | 12 - .changeset/36487-object-settings-entry.md | 15 - ...8-uploader-own-attachment-delete-rename.md | 12 - .../36490-trio-transaction-ambient-reads.md | 12 - .../36493-plugin-detail-readme-layout.md | 8 - .../36494-row-menus-follow-action-layout.md | 10 - .../36497-open-scope-ui-state-writes.md | 10 - .../36498-custom-package-arrangement.md | 44 - .../36499-record-tab-config-installed.md | 22 - .changeset/36499-record-tab-config.md | 21 - .changeset/36501-studio-back-to-app.md | 15 - .changeset/36502-retire-studio-interfaces.md | 20 - .changeset/36504-menu-rename-translation.md | 18 - .changeset/36505-field-layout-tab.md | 17 - .changeset/36506-own-row-doors-hosted.md | 19 - .changeset/36507-drill-relation-chip.md | 18 - .changeset/36511-studio-save-cancel-2.md | 13 - .changeset/36511-studio-save-cancel-3.md | 13 - .changeset/36511-studio-save-cancel.md | 15 - .changeset/36512-settings-business-wording.md | 19 - .../36516-formula-skill-sharing-rule-skip.md | 12 - .../36520-kanban-lane-statistic-server.md | 24 - .../36526-cbp-refusal-business-wording.md | 16 - .../36528-related-list-label-translation.md | 31 - .changeset/36530-titled-screen-node-label.md | 22 - .../36538-design-mode-menu-save-hardened.md | 22 - .changeset/36541-skills-custom-arrangement.md | 12 - .../36545-action-opened-form-not-internal.md | 14 - .changeset/36552-line-item-grid-followups.md | 14 - .../36554-drill-record-steps-whole-result.md | 11 - .changeset/36557-record-top-bar-close-left.md | 10 - .../36558-scenario-scorer-gallery-refresh.md | 14 - .../36567-validations-clearable-state.md | 13 - .../36573-security-denial-label-locale.md | 8 - .changeset/36577-data-page-object-switch.md | 10 - .changeset/36589-design-menu-casing.md | 10 - .changeset/36591-design-menu-order.md | 12 - .../36592-object-colour-platform-objects.md | 12 - .../36592-object-colour-plugin-approvals.md | 12 - .../36592-object-colour-plugin-audit.md | 12 - .../36592-object-colour-plugin-security.md | 12 - .../36592-object-colour-plugin-sharing.md | 12 - .../36592-object-colour-plugin-webhooks.md | 12 - .../36592-object-colour-service-messaging.md | 12 - .../36593-all-empty-hidden-group-reveal.md | 16 - .changeset/36595-placed-title-save-door.md | 17 - .changeset/36596-stale-default-not-null.md | 12 - .../36601-published-layer-version-pin.md | 25 - .../36608-lazy-field-widgets-recover.md | 10 - .changeset/36610-avatar-image-object-cover.md | 14 - .../36611-skills-wizard-routing-sections.md | 10 - .../36618-grid-multi-lookup-readonly.md | 10 - .../36619-studio-save-waits-verdicts.md | 10 - .../36626-customizations-arrangements.md | 20 - ...36611-skills-object-colour-create-forms.md | 12 - .changeset/36630-skills-action-layout.md | 10 - .../36633-flow-approval-label-resolver.md | 8 - ...643-kanban-lane-picker-reference-fields.md | 10 - .changeset/36645-report-builder-filter.md | 16 - .../36645-report-compare-previous-period.md | 13 - .../36647-artifact-unmounted-plugins.md | 14 - .../36648-studio-edit-after-save-kept.md | 10 - .changeset/36650-mcp-search-knowledge.md | 24 - .../36659-related-tab-catalog-whole-row.md | 17 - .changeset/36678-currency-symbol-inset.md | 10 - .changeset/36692-report-editing-own-entry.md | 19 - ...693-activity-stream-tab-follows-sources.md | 10 - ...tification-settings-follow-organization.md | 15 - .../36707-related-tab-lookup-picker-scope.md | 12 - ...6709-action-page-contract-reject-reason.md | 14 - .changeset/36713-skills-transfer-behavior.md | 10 - .../36716-report-save-custom-overlay.md | 13 - .../36718-flow-teaching-accepted-shapes.md | 16 - .../36725-designer-hosts-served-rows.md | 12 - .changeset/36726-studio-pinned-publish.md | 16 - .changeset/36727-data-hooks-regex-refusal.md | 8 - .changeset/36732-desktop-lands-in-last-app.md | 23 - .changeset/36737-design-mode-record-tabs.md | 16 - .changeset/36739-org-basics-checklist-pill.md | 19 - .changeset/36741-full-page-inbox.md | 17 - .../36742-studio-new-flow-status-toast.md | 15 - .../36744-permission-matrix-fold-at-floor.md | 12 - .changeset/36745-flow-header-meta-give-way.md | 9 - .changeset/36748-studio-new-app-door.md | 19 - .../36750-list-view-fallback-no-layers.md | 10 - .changeset/36753-case-colliding-helpers.md | 12 - .changeset/36754-sso-keeps-pre-login-link.md | 10 - ...36758-app-menu-design-layout-and-studio.md | 16 - .../36807-change-owner-declared-queues.md | 13 - .changeset/36808-flow-step-label-locale.md | 10 - ...6809-console-flow-labels-fallback-chain.md | 18 - .../36816-dashboard-form-business-wording.md | 12 - .../36825-lookup-create-pinned-footer.md | 12 - .../36831-screen-flow-step-not-resubmitted.md | 19 - .changeset/36832-lookup-phone-drawer.md | 12 - .changeset/36834-setup-packages-entry.md | 17 - .../36835-report-default-period-labels.md | 11 - .changeset/36837-dependson-lookup-id.md | 10 - .../36838-report-form-one-vocabulary.md | 12 - .changeset/36839-knowledge-exposure-fls.md | 21 - .changeset/36840-print-door-hosted.md | 19 - .../36841-kanban-reference-swimlanes.md | 12 - .../36849-result-link-closes-flow-dialog.md | 20 - ...36851-related-list-refused-delete-toast.md | 10 - .../36852-peoplepicker-dialog-scroll.md | 10 - .changeset/36854-mcp-book-label-locale.md | 10 - .../36860-metadata-list-columns-batch.md | 18 - .changeset/36860-metadata-list-columns.md | 22 - .../36865-lookup-param-allowcreate-filters.md | 16 - .changeset/36876-menu-rename-locale-map.md | 10 - .changeset/36880-lane-stat-date-minmax.md | 10 - .../36887-meta-types-response-schema.md | 10 - .changeset/36892-studio-detail-header.md | 10 - .changeset/36893-sds-pillar-split.md | 10 - .changeset/36894-list-changed-at.md | 20 - .changeset/36895-studio-address-builder.md | 18 - .changeset/36896-list-state-in-url.md | 19 - .changeset/36897-list-objectgrid.md | 13 - .changeset/36898-list-changed-column.md | 18 - .changeset/36899-studio-left-menu.md | 20 - .changeset/36900-studio-cmdk.md | 18 - .changeset/36901-detail-header-tabs.md | 19 - .changeset/36902-detail-save-at-once.md | 22 - .changeset/36905-permission-fullscreen.md | 16 - .changeset/36911-row-menu-approval-lock.md | 10 - .changeset/36912-dashboard-gap-zero.md | 10 - .changeset/36915-bulk-flow-refused-count.md | 20 - .../36917-transfer-describe-offboarding.md | 10 - .../36922-related-badge-after-row-action.md | 14 - ...-standalone-form-lookupautofill-refused.md | 28 - .changeset/36930-swimlane-namefield.md | 10 - .changeset/36931-bulk-flow-paused-rows.md | 19 - .../36942-platform-task-note-objects.md | 47 - .changeset/36946-manual-reader-cjk-bold.md | 15 - .../36955-search-page-component-doc-keys.md | 11 - .../36959-approvals-inbox-search-labels.md | 19 - .../36960-approvals-inbox-cancelled-filter.md | 14 - .../36966-approvals-inbox-state-in-url.md | 22 - .changeset/36969-hide-closed-ai-build.md | 17 - .../36971-profile-language-one-setting.md | 11 - .changeset/36972-profile-save-confirmation.md | 15 - ...36980-import-row-errors-reader-language.md | 13 - .changeset/36981-setup-doors-bearer.md | 15 - ...2-declared-rule-hooks-late-organization.md | 12 - .changeset/36988-report-chart-axis-format.md | 14 - .changeset/36991-knowledge-sync-where.md | 18 - .changeset/36992-knowledge-reindex-paging.md | 19 - .changeset/36995-embedder-openai-batches.md | 17 - .../36998-record-drawer-assistant-entry.md | 10 - .changeset/36999-conversation-focus.md | 23 - .changeset/37008-gallery-formula-label.md | 15 - ...37010-phone-card-formula-title-subtitle.md | 10 - .changeset/37013-platform-skill-own-slot.md | 31 - .changeset/37018-mobile-drawer-a11y-name.md | 10 - ...5-import-blank-multi-value-key-language.md | 9 - .changeset/37028-footer-count-left-edge.md | 10 - .changeset/37031-dashboard-binding-recheck.md | 12 - .changeset/37033-matrix-drill-columns.md | 10 - .changeset/37034-date-condition-chips.md | 18 - .changeset/37041-batch-lock-detail-lines.md | 11 - .../37042-skills-inline-edit-boolean.md | 10 - .../37057-actionlayout-validate-scope.md | 10 - .../37058-skills-catalog-sys-task-note.md | 10 - .changeset/37080-console-reads-bearer.md | 10 - .changeset/37080-shell-reads-bearer.md | 21 - ...37081-action-error-detail-message-first.md | 10 - .changeset/37082-studio-group-names.md | 15 - .changeset/37093-embedder-input-limit.md | 21 - .changeset/37109-pref-save-waits-load.md | 10 - ...7127-scenarios-inline-edit-field-groups.md | 10 - ...urso-remote-aggregate-boolean-group-key.md | 12 - .../37140-ai-context-get-record-context.md | 30 - .changeset/37146-ai-pane-lone-agent-header.md | 8 - .../37149-go-home-shortcut-desktop-label.md | 13 - .changeset/37150-docs-pages-in-app-shell.md | 16 - .changeset/37151-record-lock-source.md | 24 - .../37157-import-ambiguous-match-language.md | 9 - .../37178-record-context-outline-entry-cap.md | 15 - .changeset/37182-checklist-not-shown-memo.md | 10 - .changeset/action-selection-read-scope.md | 24 - .changeset/autonumber-dark-colour.md | 5 - .../boolean-write-spelling-canonical.md | 19 - .../cli-browser-launch-http-only-no-shell.md | 22 - .changeset/cloud-4964-i18n-locales-once.md | 10 - .../credential-change-ends-prior-access.md | 21 - .../dev-seed-credential-production-refusal.md | 27 - .changeset/fields-bare-union-head.md | 32 - .changeset/flow-runtime-state-mcp-readers.md | 10 - .changeset/gantt-paged-ceiling-read.md | 13 - .changeset/list-field-list-manager.md | 10 - .changeset/list-filter-sort-condition-row.md | 10 - .changeset/list-filter-sort-wiring.md | 12 - .../mcp-aggregate-lookup-group-labels.md | 17 - .changeset/metadata-issues-bare-union-head.md | 32 - .changeset/multivalue-filter-operators.md | 11 - ...password-reset-disables-registered-apps.md | 23 - .../password-reset-ends-added-access.md | 23 - .changeset/safe-column-remedy-per-kind.md | 8 - .changeset/sec1-865p-r4.md | 12 - .changeset/sec2-48g2.md | 17 - .changeset/sec2-4ghv.md | 12 - .changeset/sec2-535v.md | 34 - .changeset/sec2-865p.md | 22 - .changeset/sec2-account-removal.md | 27 - .changeset/sec2-ggfh.md | 18 - .changeset/sec2-r7gg.md | 22 - .changeset/sec2-v5c7.md | 16 - .changeset/sec2-vv32.md | 12 - .changeset/sec2-wf9p.md | 38 - .changeset/sec2-xrjw.md | 14 - .changeset/session-read-once-per-request.md | 10 - .../shared-view-create-for-metadata-admins.md | 9 - ...reation-needs-provider-verified-address.md | 21 - .changeset/sort-builder-size-wording.md | 18 - .changeset/sso-discovery-connect-time.md | 19 - .changeset/sso-discovery-public-hosts.md | 16 - .changeset/studio-author-wording.md | 15 - .changeset/t1-stale-prose.md | 20 - .../validation-override-interpolated-once.md | 12 - .../verify-managed-datasource-stand-in.md | 8 - content/docs/deployment/self-hosting.mdx | 8 +- content/docs/releases/index.mdx | 2 +- content/docs/upgrading.mdx | 2 +- docker/README.md | 8 +- examples/app-crm/CHANGELOG.md | 195 + examples/app-crm/package.json | 2 +- examples/app-multi-package/CHANGELOG.md | 163 + examples/app-multi-package/package.json | 2 +- examples/app-showcase/CHANGELOG.md | 221 ++ examples/app-showcase/package.json | 2 +- examples/app-todo/CHANGELOG.md | 250 ++ examples/app-todo/package.json | 2 +- examples/embed-objectql/CHANGELOG.md | 194 + examples/embed-objectql/package.json | 2 +- packages/adapters/hono/CHANGELOG.md | 57 + packages/adapters/hono/package.json | 2 +- packages/apps/account/CHANGELOG.md | 180 + packages/apps/account/package.json | 2 +- packages/apps/connector-docusign/CHANGELOG.md | 164 + packages/apps/connector-docusign/package.json | 2 +- packages/apps/connector-github/CHANGELOG.md | 164 + packages/apps/connector-github/package.json | 2 +- packages/apps/connector-stripe/CHANGELOG.md | 164 + packages/apps/connector-stripe/package.json | 2 +- packages/apps/setup/CHANGELOG.md | 180 + packages/apps/setup/package.json | 2 +- packages/apps/studio/CHANGELOG.md | 180 + packages/apps/studio/package.json | 2 +- packages/cli/CHANGELOG.md | 978 +++++ packages/cli/package.json | 2 +- packages/client-react/CHANGELOG.md | 180 + packages/client-react/package.json | 2 +- packages/client/CHANGELOG.md | 293 ++ packages/client/package.json | 2 +- packages/cloud-connection/CHANGELOG.md | 388 ++ packages/cloud-connection/package.json | 2 +- .../connectors/connector-imap/CHANGELOG.md | 4 + .../connectors/connector-imap/package.json | 2 +- .../connectors/connector-mcp/CHANGELOG.md | 180 + .../connectors/connector-mcp/package.json | 2 +- .../connectors/connector-openapi/CHANGELOG.md | 180 + .../connectors/connector-openapi/package.json | 2 +- .../connectors/connector-rest/CHANGELOG.md | 180 + .../connectors/connector-rest/package.json | 2 +- .../connectors/connector-slack/CHANGELOG.md | 197 + .../connectors/connector-slack/package.json | 2 +- packages/console/CHANGELOG.md | 32 + packages/console/package.json | 2 +- packages/core/CHANGELOG.md | 527 +++ packages/core/package.json | 2 +- packages/create-objectstack/CHANGELOG.md | 41 + packages/create-objectstack/package.json | 2 +- .../src/templates/blank/package.json | 12 +- packages/drivers/driver-memory/CHANGELOG.md | 180 + packages/drivers/driver-memory/package.json | 2 +- packages/drivers/driver-mongodb/CHANGELOG.md | 192 + packages/drivers/driver-mongodb/package.json | 2 +- packages/drivers/driver-odata/CHANGELOG.md | 194 + packages/drivers/driver-odata/package.json | 2 +- packages/drivers/driver-sql/CHANGELOG.md | 387 ++ packages/drivers/driver-sql/package.json | 2 +- .../drivers/driver-sqlite-wasm/CHANGELOG.md | 189 + .../drivers/driver-sqlite-wasm/package.json | 2 +- packages/drivers/driver-turso/CHANGELOG.md | 278 ++ packages/drivers/driver-turso/package.json | 2 +- packages/formula/CHANGELOG.md | 339 ++ packages/formula/package.json | 2 +- packages/lint/CHANGELOG.md | 1031 ++++++ packages/lint/package.json | 2 +- packages/mcp/CHANGELOG.md | 553 +++ packages/mcp/package.json | 2 +- packages/metadata-core/CHANGELOG.md | 358 ++ packages/metadata-core/package.json | 2 +- packages/metadata-fs/CHANGELOG.md | 17 + packages/metadata-fs/package.json | 2 +- packages/metadata-protocol/CHANGELOG.md | 826 +++++ packages/metadata-protocol/package.json | 2 +- packages/metadata/CHANGELOG.md | 266 ++ packages/metadata/package.json | 2 +- packages/objectql/CHANGELOG.md | 1015 +++++ packages/objectql/package.json | 2 +- packages/observability/CHANGELOG.md | 163 + packages/observability/package.json | 2 +- packages/platform-objects/CHANGELOG.md | 811 ++++ packages/platform-objects/package.json | 2 +- packages/plugins/embedder-openai/CHANGELOG.md | 192 + packages/plugins/embedder-openai/package.json | 2 +- .../plugins/knowledge-memory/CHANGELOG.md | 181 + .../plugins/knowledge-memory/package.json | 2 +- .../plugins/knowledge-ragflow/CHANGELOG.md | 181 + .../plugins/knowledge-ragflow/package.json | 2 +- packages/plugins/organizations/CHANGELOG.md | 203 + packages/plugins/organizations/package.json | 2 +- .../plugins/plugin-approvals/CHANGELOG.md | 543 +++ .../plugins/plugin-approvals/package.json | 2 +- packages/plugins/plugin-audit/CHANGELOG.md | 416 +++ packages/plugins/plugin-audit/package.json | 2 +- packages/plugins/plugin-auth/CHANGELOG.md | 557 +++ packages/plugins/plugin-auth/package.json | 2 +- packages/plugins/plugin-dev/CHANGELOG.md | 277 ++ packages/plugins/plugin-dev/package.json | 2 +- packages/plugins/plugin-email/CHANGELOG.md | 256 ++ packages/plugins/plugin-email/package.json | 2 +- .../plugins/plugin-hono-server/CHANGELOG.md | 200 + .../plugins/plugin-hono-server/package.json | 2 +- .../plugins/plugin-pinyin-search/CHANGELOG.md | 209 ++ .../plugins/plugin-pinyin-search/package.json | 2 +- packages/plugins/plugin-security/CHANGELOG.md | 559 +++ packages/plugins/plugin-security/package.json | 2 +- packages/plugins/plugin-sharing/CHANGELOG.md | 315 ++ packages/plugins/plugin-sharing/package.json | 2 +- packages/plugins/plugin-webhooks/CHANGELOG.md | 241 ++ packages/plugins/plugin-webhooks/package.json | 2 +- packages/qa/dogfood/CHANGELOG.md | 356 ++ packages/qa/dogfood/package.json | 2 +- packages/qa/downstream-contract/CHANGELOG.md | 163 + packages/qa/downstream-contract/package.json | 2 +- packages/qa/http-conformance/CHANGELOG.md | 32 + packages/qa/http-conformance/package.json | 2 +- packages/qa/scenarios/CHANGELOG.md | 440 +++ packages/qa/scenarios/package.json | 2 +- packages/rest/CHANGELOG.md | 509 +++ packages/rest/package.json | 2 +- packages/runtime/CHANGELOG.md | 957 +++++ packages/runtime/package.json | 2 +- packages/sdui-parser/CHANGELOG.md | 4 + packages/sdui-parser/package.json | 2 +- .../services/service-analytics/CHANGELOG.md | 411 +++ .../services/service-analytics/package.json | 2 +- .../services/service-automation/CHANGELOG.md | 476 +++ .../services/service-automation/package.json | 2 +- packages/services/service-cache/CHANGELOG.md | 178 + packages/services/service-cache/package.json | 2 +- .../service-cluster-redis/CHANGELOG.md | 164 + .../service-cluster-redis/package.json | 2 +- .../services/service-cluster/CHANGELOG.md | 176 + .../services/service-cluster/package.json | 2 +- .../services/service-datasource/CHANGELOG.md | 200 + .../services/service-datasource/package.json | 2 +- packages/services/service-i18n/CHANGELOG.md | 180 + packages/services/service-i18n/package.json | 2 +- packages/services/service-job/CHANGELOG.md | 193 + packages/services/service-job/package.json | 2 +- .../services/service-knowledge/CHANGELOG.md | 258 ++ .../services/service-knowledge/package.json | 2 +- .../services/service-mailbox/CHANGELOG.md | 198 + .../services/service-mailbox/package.json | 2 +- .../services/service-messaging/CHANGELOG.md | 355 ++ .../services/service-messaging/package.json | 2 +- .../services/service-package/CHANGELOG.md | 177 + .../services/service-package/package.json | 2 +- packages/services/service-print/CHANGELOG.md | 209 ++ packages/services/service-print/package.json | 2 +- packages/services/service-push/CHANGELOG.md | 176 + packages/services/service-push/package.json | 2 +- packages/services/service-queue/CHANGELOG.md | 193 + packages/services/service-queue/package.json | 2 +- .../services/service-realtime/CHANGELOG.md | 209 ++ .../services/service-realtime/package.json | 2 +- .../service-record-context/CHANGELOG.md | 205 ++ .../service-record-context/package.json | 2 +- .../services/service-settings/CHANGELOG.md | 220 ++ .../services/service-settings/package.json | 2 +- packages/services/service-sms/CHANGELOG.md | 195 + packages/services/service-sms/package.json | 2 +- .../services/service-storage/CHANGELOG.md | 255 ++ .../services/service-storage/package.json | 2 +- packages/skills/CHANGELOG.md | 587 +++ packages/skills/package.json | 2 +- packages/spec/CHANGELOG.md | 2415 ++++++++++++ packages/spec/package.json | 2 +- packages/triggers/trigger-api/CHANGELOG.md | 176 + packages/triggers/trigger-api/package.json | 2 +- .../trigger-record-change/CHANGELOG.md | 217 ++ .../trigger-record-change/package.json | 2 +- .../triggers/trigger-schedule/CHANGELOG.md | 191 + .../triggers/trigger-schedule/package.json | 2 +- packages/types/CHANGELOG.md | 194 + packages/types/package.json | 2 +- packages/verify/CHANGELOG.md | 419 +++ packages/verify/package.json | 2 +- skills/objectstack-ai/SKILL.md | 2 +- skills/objectstack-api/SKILL.md | 2 +- skills/objectstack-ask/SKILL.md | 2 +- skills/objectstack-automation/SKILL.md | 2 +- skills/objectstack-data/SKILL.md | 2 +- skills/objectstack-formula/SKILL.md | 2 +- skills/objectstack-i18n/SKILL.md | 2 +- skills/objectstack-mcp-build/SKILL.md | 2 +- skills/objectstack-platform/SKILL.md | 2 +- .../references/bootstrap.md | 10 +- skills/objectstack-project/SKILL.md | 2 +- skills/objectstack-query/SKILL.md | 2 +- skills/objectstack-ui/SKILL.md | 2 +- skills/objectstack-upgrade/SKILL.md | 2 +- skills/objectui/SKILL.md | 2 +- ui/apps/console/CHANGELOG.md | 625 ++++ ui/apps/console/package.json | 2 +- ui/packages/app-shell/CHANGELOG.md | 3251 +++++++++++++++++ ui/packages/app-shell/package.json | 2 +- ui/packages/auth/CHANGELOG.md | 249 ++ ui/packages/auth/package.json | 2 +- ui/packages/cli/CHANGELOG.md | 259 ++ ui/packages/cli/package.json | 2 +- ui/packages/collaboration/CHANGELOG.md | 193 + ui/packages/collaboration/package.json | 2 +- ui/packages/components/CHANGELOG.md | 1220 +++++++ ui/packages/components/package.json | 2 +- ui/packages/core/CHANGELOG.md | 482 +++ ui/packages/core/package.json | 2 +- ui/packages/create-plugin/CHANGELOG.md | 4 + ui/packages/create-plugin/package.json | 2 +- ui/packages/data-objectstack/CHANGELOG.md | 333 ++ ui/packages/data-objectstack/package.json | 2 +- ui/packages/fields/CHANGELOG.md | 984 +++++ ui/packages/fields/package.json | 2 +- ui/packages/i18n/CHANGELOG.md | 2299 ++++++++++++ ui/packages/i18n/package.json | 2 +- ui/packages/layout/CHANGELOG.md | 286 ++ ui/packages/layout/package.json | 2 +- ui/packages/mobile/CHANGELOG.md | 24 + ui/packages/mobile/package.json | 2 +- ui/packages/permissions/CHANGELOG.md | 174 + ui/packages/permissions/package.json | 2 +- ui/packages/plugin-calendar/CHANGELOG.md | 298 ++ ui/packages/plugin-calendar/package.json | 2 +- ui/packages/plugin-charts/CHANGELOG.md | 258 ++ ui/packages/plugin-charts/package.json | 2 +- ui/packages/plugin-chatbot/CHANGELOG.md | 454 +++ ui/packages/plugin-chatbot/package.json | 2 +- ui/packages/plugin-dashboard/CHANGELOG.md | 462 +++ ui/packages/plugin-dashboard/package.json | 2 +- ui/packages/plugin-designer/CHANGELOG.md | 426 +++ ui/packages/plugin-designer/package.json | 2 +- ui/packages/plugin-detail/CHANGELOG.md | 1359 +++++++ ui/packages/plugin-detail/package.json | 2 +- ui/packages/plugin-editor/CHANGELOG.md | 112 + ui/packages/plugin-editor/package.json | 2 +- ui/packages/plugin-form/CHANGELOG.md | 634 ++++ ui/packages/plugin-form/package.json | 2 +- ui/packages/plugin-gantt/CHANGELOG.md | 448 +++ ui/packages/plugin-gantt/package.json | 2 +- ui/packages/plugin-grid/CHANGELOG.md | 1124 ++++++ ui/packages/plugin-grid/package.json | 2 +- ui/packages/plugin-kanban/CHANGELOG.md | 408 +++ ui/packages/plugin-kanban/package.json | 2 +- ui/packages/plugin-list/CHANGELOG.md | 924 +++++ ui/packages/plugin-list/package.json | 2 +- ui/packages/plugin-map/CHANGELOG.md | 182 + ui/packages/plugin-map/package.json | 2 +- ui/packages/plugin-markdown/CHANGELOG.md | 139 + ui/packages/plugin-markdown/package.json | 2 +- ui/packages/plugin-report/CHANGELOG.md | 354 ++ ui/packages/plugin-report/package.json | 2 +- ui/packages/plugin-timeline/CHANGELOG.md | 409 +++ ui/packages/plugin-timeline/package.json | 2 +- ui/packages/plugin-timesheet/CHANGELOG.md | 281 ++ ui/packages/plugin-timesheet/package.json | 2 +- ui/packages/plugin-tree/CHANGELOG.md | 428 +++ ui/packages/plugin-tree/package.json | 2 +- ui/packages/plugin-view/CHANGELOG.md | 457 +++ ui/packages/plugin-view/package.json | 2 +- ui/packages/react-runtime/CHANGELOG.md | 4 + ui/packages/react-runtime/package.json | 2 +- ui/packages/react/CHANGELOG.md | 486 +++ ui/packages/react/package.json | 2 +- ui/packages/types/CHANGELOG.md | 422 +++ ui/packages/types/package.json | 2 +- 1105 files changed, 48320 insertions(+), 13720 deletions(-) delete mode 100644 .changeset/32062-sync-in-delete-marking.md delete mode 100644 .changeset/32062-sync-provenance-columns.md delete mode 100644 .changeset/32115-directory-deactivation-local-password.md delete mode 100644 .changeset/32439-config-load-neutral-wording.md delete mode 100644 .changeset/32642-ai-answer-routes.md delete mode 100644 .changeset/32958-storage-sync-notice-wording.md delete mode 100644 .changeset/33345-sweep-refusal-copy.md delete mode 100644 .changeset/33552-share-link-label-hidden.md delete mode 100644 .changeset/33581-plugin-detail-core-subpath.md delete mode 100644 .changeset/33691-scenarios-strict-pending-confirmation.md delete mode 100644 .changeset/33787-shared-record-ids-switch.md delete mode 100644 .changeset/33840-analytics-empty-projection.md delete mode 100644 .changeset/33865-package-create-toast.md delete mode 100644 .changeset/33911-extension-sibling-currency-field.md delete mode 100644 .changeset/33932-seal-lock-stalled-session.md delete mode 100644 .changeset/33933-knowledge-settings-with-service.md delete mode 100644 .changeset/33986-attachment-member-set-translations.md delete mode 100644 .changeset/33996-authored-feed-field-history.md delete mode 100644 .changeset/34030-refusal-labels-source-locale.md delete mode 100644 .changeset/34094-marketplace-suggested-set-label.md delete mode 100644 .changeset/34121-access-policy-field-helps.md delete mode 100644 .changeset/34122-condition-subjects-label-first.md delete mode 100644 .changeset/34170-export-signed-body-readers.md delete mode 100644 .changeset/34175-search-lookup-title.md delete mode 100644 .changeset/34182-summary-read-wraps.md delete mode 100644 .changeset/34211-console-load-layers.md delete mode 100644 .changeset/34212-flow-start-refusal-reason.md delete mode 100644 .changeset/34269-bulk-aggregate-result-reader.md delete mode 100644 .changeset/34279-automation-hook-connector-text.md delete mode 100644 .changeset/34283-announce-summary-holes.md delete mode 100644 .changeset/34292-bulk-audit-row-counts.md delete mode 100644 .changeset/34350-compare-window-path-key.md delete mode 100644 .changeset/34352-seal-default-chain-column.md delete mode 100644 .changeset/34374-action-texts-org-locale.md delete mode 100644 .changeset/34404-remove-sso-user-audit-row.md delete mode 100644 .changeset/34414-formula-aggregate-remedy.md delete mode 100644 .changeset/34463-composer-oversize-notice.md delete mode 100644 .changeset/34465-predicate-update-parent-summary-rule.md delete mode 100644 .changeset/34497-scenario-template-fresh-copy.md delete mode 100644 .changeset/34504-skills-before-hook-unit-of-work.md delete mode 100644 .changeset/34552-skills-build-issue-user-message.md delete mode 100644 .changeset/34553-publish-toast-user-message.md delete mode 100644 .changeset/34575-hook-texts-studio-row.md delete mode 100644 .changeset/34598-mongodb-zoned-bucket-refusal.md delete mode 100644 .changeset/34613-scenario-seed-no-retired-mode.md delete mode 100644 .changeset/34613-seed-mode-insert-replace-retired.md delete mode 100644 .changeset/34637-approval-fault-edge-skill.md delete mode 100644 .changeset/34638-resume-failure-refusal.md delete mode 100644 .changeset/34648-skills-result-dialog-bulk-result.md delete mode 100644 .changeset/34651-add-user-already-pending.md delete mode 100644 .changeset/34660-value-envelope-refusal-wording.md delete mode 100644 .changeset/34662-flow-record-date-text.md delete mode 100644 .changeset/34681-bare-write-doors-follow-base.md delete mode 100644 .changeset/34681-spec-bare-doors-follow-base.md delete mode 100644 .changeset/34682-bundle-member-selector.md delete mode 100644 .changeset/34689-slim-mcp-tool-list.md delete mode 100644 .changeset/34692-home-recents-disabled-package.md delete mode 100644 .changeset/34694-shared-steps-rewrite.md delete mode 100644 .changeset/34700-audit-search-withholds-snapshot-columns.md delete mode 100644 .changeset/34726-enterprise-capability-advisory.md delete mode 100644 .changeset/34728-notification-settings.md delete mode 100644 .changeset/34730-s3b-slack-setup-entry.md delete mode 100644 .changeset/34730-slack-dm-delivery.md delete mode 100644 .changeset/34730-slack-settings-ui.md delete mode 100644 .changeset/34741-delegated-scope-holder-controls.md delete mode 100644 .changeset/34746-all-dropped-update-noop.md delete mode 100644 .changeset/34766-mcp-draft-door-write-tools.md delete mode 100644 .changeset/34766-mcp-draft-door-write.md delete mode 100644 .changeset/34766-mcp-open-draft-door-read.md delete mode 100644 .changeset/34769-ask-trigger-cases-wizard-pointer.md delete mode 100644 .changeset/34769-skill-descriptions-lead-with-the-task.md delete mode 100644 .changeset/34771-skills-json-forms-served-sections.md delete mode 100644 .changeset/34774-authoring-contract-version.md delete mode 100644 .changeset/34774-restriction-profile-route.md delete mode 100644 .changeset/34776-publish-checks-build-probes.md delete mode 100644 .changeset/34777-client-get-item-draft-read.md delete mode 100644 .changeset/34777-meta-register-draft-lint-item.md delete mode 100644 .changeset/34778-mcp-build-skill.md delete mode 100644 .changeset/34779-verify-flow-run.md delete mode 100644 .changeset/34780-scenarios-door-mode.md delete mode 100644 .changeset/34780-scenarios-door-rules-corpus.md delete mode 100644 .changeset/34798-skills-seed-modes-locale-order.md delete mode 100644 .changeset/34806-public-form-pair-translation.md delete mode 100644 .changeset/34821-rollup-fold-followups.md delete mode 100644 .changeset/34824-action-refusals-skill.md delete mode 100644 .changeset/34846-dry-run-upgrade-resolver-refusal.md delete mode 100644 .changeset/34855-read-file-stop-before-page-1.md delete mode 100644 .changeset/34856-deferred-key-seed-row-stays-deleted.md delete mode 100644 .changeset/34857-seed-blank-key-record-refused.md delete mode 100644 .changeset/34861-sso-sign-in-watchdog.md delete mode 100644 .changeset/34862-approval-link-console-mount.md delete mode 100644 .changeset/34863-cross-object-batch-refusal-fields.md delete mode 100644 .changeset/34864-seed-unknown-object-save-door.md delete mode 100644 .changeset/34865-explain-access-disabled-reason.md delete mode 100644 .changeset/34866-doctor-verbose-hint.md delete mode 100644 .changeset/34886-group-by-relation-path-refusal.md delete mode 100644 .changeset/34887-scenario-scorer-round2.md delete mode 100644 .changeset/34889-identity-outcome-copy.md delete mode 100644 .changeset/34905-required-when-shown.md delete mode 100644 .changeset/34906-dashboard-table-no-csv-export.md delete mode 100644 .changeset/34919-ask-skill-next-step.md delete mode 100644 .changeset/34931-records-destructive-confirm.md delete mode 100644 .changeset/34938-current-iso-week-token.md delete mode 100644 .changeset/34940-seed-locale-fallback.md delete mode 100644 .changeset/34946-flow-record-date-arithmetic.md delete mode 100644 .changeset/34962-i18n-skill-texts.md delete mode 100644 .changeset/34967-data-hooks-transaction-texts.md delete mode 100644 .changeset/34971-allowlist-invite-grant.md delete mode 100644 .changeset/34974-boolean-read-presenter.md delete mode 100644 .changeset/34986-skills-seed-rows-obey-validation-rules.md delete mode 100644 .changeset/34987-hook-job-body-does-not-compile.md delete mode 100644 .changeset/34988-action-wrapper-redeclare.md delete mode 100644 .changeset/34990-nested-relation-filter-node.md delete mode 100644 .changeset/34993-translation-fault-untranslated.md delete mode 100644 .changeset/34996-ask-fallback-beside-grouping.md delete mode 100644 .changeset/34996-ask-skill-unknown-grouping-eval.md delete mode 100644 .changeset/35004-ask-skill-after-answer.md delete mode 100644 .changeset/35005-grouping-candidate-no-ask.md delete mode 100644 .changeset/35006-scenarios-acknowledged-rollup-charged.md delete mode 100644 .changeset/35018-studio-landing-c.md delete mode 100644 .changeset/35019-empty-groups-line.md delete mode 100644 .changeset/35020-phone-bar-more-active.md delete mode 100644 .changeset/35021-approval-reject-wording.md delete mode 100644 .changeset/35027-action-timeout-sentence.md delete mode 100644 .changeset/35028-trio-handle-owner.md delete mode 100644 .changeset/35033-form-recomputes-formulas.md delete mode 100644 .changeset/35036-mcp-door-tool-names.md delete mode 100644 .changeset/35040-action-body-regexp-literal-token-refused.md delete mode 100644 .changeset/35045-dynamic-summary-tenant-child.md delete mode 100644 .changeset/35046-derived-measure-tenant-currency.md delete mode 100644 .changeset/35047-formula-percent-return.md delete mode 100644 .changeset/35049-print-filename-display-name.md delete mode 100644 .changeset/35050-related-new-autofill.md delete mode 100644 .changeset/35052-platform-audit-write-unmarked.md delete mode 100644 .changeset/35053-lookup-label-namefield.md delete mode 100644 .changeset/35054-app-writes-authored-body.md delete mode 100644 .changeset/35054-view-writes-authored-body.md delete mode 100644 .changeset/35057-filter-condition-schema-hold.md delete mode 100644 .changeset/35061-studio-main-area-adapts.md delete mode 100644 .changeset/35062-sidebar-hidden-collapse.md delete mode 100644 .changeset/35068-gated-action-field-lock.md delete mode 100644 .changeset/35079-skills-write-staged-swap.md delete mode 100644 .changeset/35092-section-nav-dialog-scroll.md delete mode 100644 .changeset/35095-eval-forbidden-mention.md delete mode 100644 .changeset/35096-action-form-texts-refusals-rows.md delete mode 100644 .changeset/35098-travel-expense-step-two-approver.md delete mode 100644 .changeset/35099-phone-bar-disabled-edit.md delete mode 100644 .changeset/35101-generated-nav-entry-authored-plural.md delete mode 100644 .changeset/35106-direct-sign-in-after-sign-out.md delete mode 100644 .changeset/35107-invitation-proof-outside-endpoint.md delete mode 100644 .changeset/35109-seed-datasets-replace-on-upgrade.md delete mode 100644 .changeset/35113-scenario-ask-kinds.md delete mode 100644 .changeset/35114-stdio-mcp-dropped-fields.md delete mode 100644 .changeset/35115-app-writes-package-scope.md delete mode 100644 .changeset/35123-member-digest-quiet-hours-opt-out.md delete mode 100644 .changeset/35132-gallery-trial-package.md delete mode 100644 .changeset/35135-disabledwhen-edit-reason.md delete mode 100644 .changeset/35136-preference-rows-paged-read.md delete mode 100644 .changeset/35137-mcp-withheld-fields.md delete mode 100644 .changeset/35138-aggregate-option-order-currency.md delete mode 100644 .changeset/35138-mcp-not-recorded.md delete mode 100644 .changeset/35138-mcp-object-query-source.md delete mode 100644 .changeset/35138-query-records-truncated.md delete mode 100644 .changeset/35141-publish-all-seed-warn-pack-sentence.md delete mode 100644 .changeset/35142-claim-race-loser-409.md delete mode 100644 .changeset/35143-flow-publish-checks-second-batch.md delete mode 100644 .changeset/35144-aggregate-order-cut.md delete mode 100644 .changeset/35145-mcp-latest-per.md delete mode 100644 .changeset/35145-mcp-related-read.md delete mode 100644 .changeset/35147-destructive-still-shown-by.md delete mode 100644 .changeset/35149-trio-handle-closed.md delete mode 100644 .changeset/35157-capability-draft-count.md delete mode 100644 .changeset/35157-scaffold-no-connector-plugins.md delete mode 100644 .changeset/35157-unmanaged-copy-capabilities.md delete mode 100644 .changeset/35158-ask-back-measure-scope.md delete mode 100644 .changeset/35166-empty-sections-line-remembered.md delete mode 100644 .changeset/35167-insert-delete-unit-inside-middleware.md delete mode 100644 .changeset/35171-skills-verify-capabilities.md delete mode 100644 .changeset/35172-owner-only-fallback-warn.md delete mode 100644 .changeset/35174-action-api-platform-system-api-mark.md delete mode 100644 .changeset/35178-ui-router-names-refusals.md delete mode 100644 .changeset/35184-dev-seed-retire-at-boot.md delete mode 100644 .changeset/35189-wizard-gate-formula.md delete mode 100644 .changeset/35190-narrow-formula-visiblewhen-warning.md delete mode 100644 .changeset/35191-ask-skill-withheld-totalgroups.md delete mode 100644 .changeset/35192-notification-settings-read-only.md delete mode 100644 .changeset/35194-query-dataset-total-groups.md delete mode 100644 .changeset/35195-search-disabled-package.md delete mode 100644 .changeset/35196-studio-landing-package-door.md delete mode 100644 .changeset/35204-query-dataset-group-count-totals-arm.md delete mode 100644 .changeset/35218-objectstack-project-skill.md delete mode 100644 .changeset/35218-scaffold-ci-runs-tests.md delete mode 100644 .changeset/35220-remove-pending-sso-user-action.md delete mode 100644 .changeset/35228-package-duplicate-entry-every-door.md delete mode 100644 .changeset/35245-skills-publish-time-findings.md delete mode 100644 .changeset/35249-default-form-record-visiblewhen.md delete mode 100644 .changeset/35250-print-page-not-record-page.md delete mode 100644 .changeset/35251-state-machine-update-only.md delete mode 100644 .changeset/35252-field-group-shadowed-six-highlights.md delete mode 100644 .changeset/35253-approval-band-once.md delete mode 100644 .changeset/35254-seed-extension-lookup.md delete mode 100644 .changeset/35255-verify-external-no-writes.md delete mode 100644 .changeset/35256-draft-connector-advisory.md delete mode 100644 .changeset/35258-seed-reference-repair-by-mode.md delete mode 100644 .changeset/35263-compact-related-row-label.md delete mode 100644 .changeset/35276-composer-accept-tokens.md delete mode 100644 .changeset/35280-about-version.md delete mode 100644 .changeset/35284-ui-router-action-suffix.md delete mode 100644 .changeset/35285-platform-declared-capability-boot.md delete mode 100644 .changeset/35287-objectql-face-order-cut.md delete mode 100644 .changeset/35293-row-disabledwhen-reason.md delete mode 100644 .changeset/35303-ai-chat-seed-warn-pack-sentence.md delete mode 100644 .changeset/35306-lookup-target-single-read.md delete mode 100644 .changeset/35307-search-recipient-title.md delete mode 100644 .changeset/35314-record-details-field-visiblewhen.md delete mode 100644 .changeset/35315-change-owner-cascade.md delete mode 100644 .changeset/35316-no-approver-remedy.md delete mode 100644 .changeset/35317-gantt-refused-read-no-access.md delete mode 100644 .changeset/35319-automations-rail-flow-labels.md delete mode 100644 .changeset/35329-delete-loser-not-found.md delete mode 100644 .changeset/35334-grid-row-disabledwhen-reason.md delete mode 100644 .changeset/35341-sqlite-retyped-boolean-text-column.md delete mode 100644 .changeset/35344-handover-detail-owner.md delete mode 100644 .changeset/35345-skills-platform-catalog.md delete mode 100644 .changeset/35346-value-domain-name-hint.md delete mode 100644 .changeset/35353-cube-measure-formula-remedy.md delete mode 100644 .changeset/35355-working-calendar-objects-setup.md delete mode 100644 .changeset/35355-working-calendar-service.md delete mode 100644 .changeset/35356-working-day-formula-functions.md delete mode 100644 .changeset/35357-approval-escalation-working-time-clock.md delete mode 100644 .changeset/35369-flow-refusal-brace-header.md delete mode 100644 .changeset/35375-seed-datasets-withdraw-on-uninstall.md delete mode 100644 .changeset/35384-approval-labels-remainder.md delete mode 100644 .changeset/35384-reader-labels-translate-object.md delete mode 100644 .changeset/35384-step-label-and-notification-object-label.md delete mode 100644 .changeset/35390-install-fills-stored-expressions.md delete mode 100644 .changeset/35394-context-token-temporal-door.md delete mode 100644 .changeset/35395-compare-iso-week.md delete mode 100644 .changeset/35399-handover-follows-transfer-switch.md delete mode 100644 .changeset/35401-user-actions-transfer.md delete mode 100644 .changeset/35402-change-owner-endpoint.md delete mode 100644 .changeset/35403-change-owner-console.md delete mode 100644 .changeset/35410-inbox-receipt-layer.md delete mode 100644 .changeset/35411-edge-sheet-square-corners.md delete mode 100644 .changeset/35412-record-crumb-while-reading.md delete mode 100644 .changeset/35414-sticky-tabs-solid.md delete mode 100644 .changeset/35415-approval-request-names-its-record.md delete mode 100644 .changeset/35416-record-open-boot-waves.md delete mode 100644 .changeset/35417-first-run-checklist-one-line.md delete mode 100644 .changeset/35418-approval-timeline-system-notes.md delete mode 100644 .changeset/35420-one-rename-rule.md delete mode 100644 .changeset/35424-all-docs-page.md delete mode 100644 .changeset/35424-docs-reader-one-column.md delete mode 100644 .changeset/35425-one-language-list.md delete mode 100644 .changeset/35427-expand-disabled-package.md delete mode 100644 .changeset/35434-execute-dispatched-action-keeps-mark.md delete mode 100644 .changeset/35437-field-visiblewhen-highlights-drawer.md delete mode 100644 .changeset/35440-ban-unban-admin-audit-row.md delete mode 100644 .changeset/35442-mcp-app-docs-tools.md delete mode 100644 .changeset/35445-ai-panel-one-row-header.md delete mode 100644 .changeset/35446-list-narrow-fixed-columns.md delete mode 100644 .changeset/35449-ai-approvals-phone-width.md delete mode 100644 .changeset/35454-doctor-verbose-hint-fixless.md delete mode 100644 .changeset/35455-console-boot-one-localization.md delete mode 100644 .changeset/35455-console-preload-chunks.md delete mode 100644 .changeset/35455-console-record-route-package-list.md delete mode 100644 .changeset/35472-section-nav-jump-bar.md delete mode 100644 .changeset/35474-direct-sign-in-accepts-echoed-state.md delete mode 100644 .changeset/35481-dashboards-skill-open-in-list.md delete mode 100644 .changeset/35483-approval-band-once.md delete mode 100644 .changeset/35488-standard-unit-table-sys-unit.md delete mode 100644 .changeset/35489-unit-config.md delete mode 100644 .changeset/35491-unit-raw-aggregate.md delete mode 100644 .changeset/35492-unit-code-backfill.md delete mode 100644 .changeset/35493-value-source-operator-map-comparand.md delete mode 100644 .changeset/35494-nested-relation-hop-docblock.md delete mode 100644 .changeset/35496-skills-teach-five-landed-behaviours.md delete mode 100644 .changeset/35499-nested-refusal-row-placement.md delete mode 100644 .changeset/35505-approval-host-app.md delete mode 100644 .changeset/35507-grid-entry-row-header-help.md delete mode 100644 .changeset/35512-text-call-shapes.md delete mode 100644 .changeset/35525-analytics-disabled-package.md delete mode 100644 .changeset/35526-calldata-relation-disabled-package.md delete mode 100644 .changeset/35530-inbox-window-indexes.md delete mode 100644 .changeset/35534-console-seed-parse-time.md delete mode 100644 .changeset/35535-list-view-read-starts-with-route.md delete mode 100644 .changeset/35536-list-first-read-once.md delete mode 100644 .changeset/35544-travel-expense-measure-words.md delete mode 100644 .changeset/35548-list-page-frame.md delete mode 100644 .changeset/35551-35553-list-options-view-create.md delete mode 100644 .changeset/35554-list-no-actions-column.md delete mode 100644 .changeset/35566-extension-publish-follow-door.md delete mode 100644 .changeset/35571-shared-record-ids-leaf.md delete mode 100644 .changeset/35584-delegated-docs-audience.md delete mode 100644 .changeset/35589-owner-resave-extension-column.md delete mode 100644 .changeset/35592-form4-driver-docblock.md delete mode 100644 .changeset/35593-record-header-one-row.md delete mode 100644 .changeset/35595-35596-record-tabs-rail.md delete mode 100644 .changeset/35597-master-detail-body-tables.md delete mode 100644 .changeset/35599-record-page-edit-state.md delete mode 100644 .changeset/35600-studio-customize-shipped-views-only.md delete mode 100644 .changeset/35601-related-tab-open-and-add.md delete mode 100644 .changeset/35602-record-dense-rows.md delete mode 100644 .changeset/35606-request-session-read-once.md delete mode 100644 .changeset/35609-reregister-extension-withdraw.md delete mode 100644 .changeset/35619-user-actions-export-csv-enforced.md delete mode 100644 .changeset/35624-console-new-view-saves-into-app.md delete mode 100644 .changeset/35628-default-inspector-refusal-rows.md delete mode 100644 .changeset/35631-formula-currency-verdict.md delete mode 100644 .changeset/35633-mcp-doc-answer-rule-export.md delete mode 100644 .changeset/35640-verify-memory-stand-in.md delete mode 100644 .changeset/35640-verify-real-store-wording.md delete mode 100644 .changeset/35647-ui-bulk-selected-ids.md delete mode 100644 .changeset/35650-action-designer-served-rows.md delete mode 100644 .changeset/35653-seed-records-refused-at-build.md delete mode 100644 .changeset/35655-seed-summary-value-not-stored.md delete mode 100644 .changeset/35658-dark-danger-text.md delete mode 100644 .changeset/35659-approval-reject-requires-reason.md delete mode 100644 .changeset/35660-page-header-max-visible-describe.md delete mode 100644 .changeset/35663-list-left-edge.md delete mode 100644 .changeset/35667-recycle-bin-orgless-system-delete.md delete mode 100644 .changeset/35678-floating-selection-bar.md delete mode 100644 .changeset/35684-35687-list-cells-select-first.md delete mode 100644 .changeset/35685-list-cell-autosave.md delete mode 100644 .changeset/35685-list-cell-undo.md delete mode 100644 .changeset/35685-list-state-confirm.md delete mode 100644 .changeset/35688-cell-editor-layer.md delete mode 100644 .changeset/35688-in-cell-pickers.md delete mode 100644 .changeset/35688-in-cell-typed-lookup-rating.md delete mode 100644 .changeset/35689-group-refresh.md delete mode 100644 .changeset/35689-inline-edit-a11y.md delete mode 100644 .changeset/35694-body-regexp-pattern-refused.md delete mode 100644 .changeset/35698-text-key-literal-close.md delete mode 100644 .changeset/35701-shipped-text-after-body-tables.md delete mode 100644 .changeset/35702-boolean-yes-no-counts.md delete mode 100644 .changeset/35702-footer-calculation-row.md delete mode 100644 .changeset/35704-lint-item-draft-hint.md delete mode 100644 .changeset/35705-skill-evals-triggers-only.md delete mode 100644 .changeset/35711-residual-extension-and-jobs.md delete mode 100644 .changeset/35719-approvals-reject-route-requires-reason.md delete mode 100644 .changeset/35719-client-approvals-reject-requires-comment.md delete mode 100644 .changeset/35721-clone-file-field-stored-form.md delete mode 100644 .changeset/35722-action-link-reject-reason.md delete mode 100644 .changeset/35723-approval-activity-feed.md delete mode 100644 .changeset/35724-attachment-uploader-rename.md delete mode 100644 .changeset/35726-batch-refusal-failed-operation.md delete mode 100644 .changeset/35727-sourced-list-one-condition-tag.md delete mode 100644 .changeset/35729-chart-view-bar-left-edge.md delete mode 100644 .changeset/35730-decided-step-approval-progress.md delete mode 100644 .changeset/35734-percent-formula-return.md delete mode 100644 .changeset/35735-filter-flag-and-comparand-edges.md delete mode 100644 .changeset/35742-overview-body-table-order.md delete mode 100644 .changeset/35745-35816-record-page-polish.md delete mode 100644 .changeset/35754-embedded-date-macro-literal.md delete mode 100644 .changeset/35761-draft-door-type-contract.md delete mode 100644 .changeset/35772-reject-reason-required-texts.md delete mode 100644 .changeset/35783-related-tab-arrangement.md delete mode 100644 .changeset/35786-fixed-read-leaf-seam.md delete mode 100644 .changeset/35788-changes-chip-creation.md delete mode 100644 .changeset/35791-slack-plugin-token-optional.md delete mode 100644 .changeset/35795-batched-record-lock-read.md delete mode 100644 .changeset/35797-ime-enter-field-widgets.md delete mode 100644 .changeset/35798-summary-chip-formula-return-type.md delete mode 100644 .changeset/35802-cbp-predicate-write-master-gate.md delete mode 100644 .changeset/35802-predicate-write-floor-deferral.md delete mode 100644 .changeset/35812-org-delete-removes-units.md delete mode 100644 .changeset/35817-skill-reject-reason.md delete mode 100644 .changeset/35823-unmanaged-derived-namespace-mismatch.md delete mode 100644 .changeset/35829-session-organization-candidates.md delete mode 100644 .changeset/35831-overview-dropped-totals.md delete mode 100644 .changeset/35840-mobile-max-visible-default-copy.md delete mode 100644 .changeset/35853-record-header-two-rows.md delete mode 100644 .changeset/35854-one-way-to-open-a-record.md delete mode 100644 .changeset/35858-skill-evals-trigger-field.md delete mode 100644 .changeset/35859-query-sends-business-question-to-ask.md delete mode 100644 .changeset/35863-decided-route-outcome.md delete mode 100644 .changeset/35867-scenarios-cite-dataset-source-line.md delete mode 100644 .changeset/35870-navigation-mode-skills.md delete mode 100644 .changeset/35872-shared-record-ids-sql-compile.md delete mode 100644 .changeset/35874-fixed-read-leaf-census-rest.md delete mode 100644 .changeset/35875-data-page-open-rule.md delete mode 100644 .changeset/35876-list-header-menu-multi-sort.md delete mode 100644 .changeset/35878-list-toolbar-two-rows.md delete mode 100644 .changeset/35881-phone-app-home-fixed-bar.md delete mode 100644 .changeset/35883-phone-list-toolbar-panels.md delete mode 100644 .changeset/35889-form-places-detail-at-group.md delete mode 100644 .changeset/35889-master-detail-tab-by-default.md delete mode 100644 .changeset/35890-record-details-pinned.md delete mode 100644 .changeset/35891-record-page-no-stage-bar.md delete mode 100644 .changeset/35892-related-tab-full-list.md delete mode 100644 .changeset/35897-related-lists-tab-list.md delete mode 100644 .changeset/35900-field-group-members.md delete mode 100644 .changeset/35901-object-extension-place.md delete mode 100644 .changeset/35902-skills-extension-place.md delete mode 100644 .changeset/35902-skills-related-lists-tabs.md delete mode 100644 .changeset/35906-pg-share-grant-key-type.md delete mode 100644 .changeset/35907-scenario-confirmation-grading.md delete mode 100644 .changeset/35908-scenario-confirm-first-lock.md delete mode 100644 .changeset/35911-destructive-colour-spelling.md delete mode 100644 .changeset/35915-navigation-help-seven-locales.md delete mode 100644 .changeset/35917-by-id-widener-floor-term.md delete mode 100644 .changeset/35926-field-inline-edit-boolean-retired.md delete mode 100644 .changeset/35927-metadata-forms-field-group-help.md delete mode 100644 .changeset/35928-record-update-starts-read.md delete mode 100644 .changeset/35928-stage-confirm-names-flows.md delete mode 100644 .changeset/35931-escalation-clock-skill.md delete mode 100644 .changeset/35932-draft-save-keeps-list.md delete mode 100644 .changeset/35933-read-only-package-view-saves.md delete mode 100644 .changeset/35936-kanban-open-mode.md delete mode 100644 .changeset/35939-sso-unmounted-404.md delete mode 100644 .changeset/35940-master-detail-form-new-lines.md delete mode 100644 .changeset/35941-owner-once-body.md delete mode 100644 .changeset/35943-record-page-strip-descriptions.md delete mode 100644 .changeset/35946-fixed-read-leaf-engine-member.md delete mode 100644 .changeset/35952-oracle-raw-share-grant-key.md delete mode 100644 .changeset/35953-sla-deadline-error-guard.md delete mode 100644 .changeset/35955-header-menu-hide-draft.md delete mode 100644 .changeset/35955-list-changes-are-drafts.md delete mode 100644 .changeset/35955-list-layout-in-browser.md delete mode 100644 .changeset/35955-migrate-list-preferences.md delete mode 100644 .changeset/35955-save-into-shared-view.md delete mode 100644 .changeset/35956-required-fill-in-in-place.md delete mode 100644 .changeset/35956-stage-menu-shared-fill-in.md delete mode 100644 .changeset/35960-oracle-raw-prime-composed-scope.md delete mode 100644 .changeset/35962-state-dot-triplet-scan.md delete mode 100644 .changeset/35964-catalog-working-calendar.md delete mode 100644 .changeset/35970-catalog-units.md delete mode 100644 .changeset/35974-read-only-package-view-panel.md delete mode 100644 .changeset/35978-key-fields-no-strip-preview.md delete mode 100644 .changeset/35979-flow-embed-labels.md delete mode 100644 .changeset/35979-flow-node-label-key.md delete mode 100644 .changeset/35980-dialog-surface.md delete mode 100644 .changeset/35981-app-route-boot-frame.md delete mode 100644 .changeset/35985-object-color-skills.md delete mode 100644 .changeset/35985-object-color-tile-everywhere.md delete mode 100644 .changeset/35985-object-color-tile.md delete mode 100644 .changeset/35992-dashboard-filter-arity.md delete mode 100644 .changeset/35992-multivalue-filter-surfaces.md delete mode 100644 .changeset/35995-drawer-required-prompt.md delete mode 100644 .changeset/35996-ime-enter-fields.md delete mode 100644 .changeset/35997-header-actions-width-cap.md delete mode 100644 .changeset/35999-grid-undo-keeps-newer-save.md delete mode 100644 .changeset/36002-refresh-display-panel.md delete mode 100644 .changeset/36004-grid-header-help-name.md delete mode 100644 .changeset/36010-views-refused-read-no-access.md delete mode 100644 .changeset/36011-restore-factory-view.md delete mode 100644 .changeset/36015-list-cell-click-only-selects.md delete mode 100644 .changeset/36015-lookup-chip-opens-in-drawer.md delete mode 100644 .changeset/36017-show-user-manager.md delete mode 100644 .changeset/36019-placed-lines-form.md delete mode 100644 .changeset/36023-cell-panel-below.md delete mode 100644 .changeset/36023-line-grid-cell-panels.md delete mode 100644 .changeset/36023-rich-text-cell-panel.md delete mode 100644 .changeset/36025-prompt-preread-operand.md delete mode 100644 .changeset/36035-no-approver-position-label.md delete mode 100644 .changeset/36036-stage-menu-409-refields.md delete mode 100644 .changeset/36041-phone-avatar-menu.md delete mode 100644 .changeset/36043-line-item-cell-editors.md delete mode 100644 .changeset/36044-phone-select-taps.md delete mode 100644 .changeset/36046-people-cell-name.md delete mode 100644 .changeset/36047-console-control-corner-white-content.md delete mode 100644 .changeset/36047-console-two-sizes-two-weights.md delete mode 100644 .changeset/36048-list-column-lines-row-36.md delete mode 100644 .changeset/36049-record-edit-outline.md delete mode 100644 .changeset/36050-view-all-fields-bit.md delete mode 100644 .changeset/36052-cross-set-field-reopen.md delete mode 100644 .changeset/36053-skills-three-permission-axes.md delete mode 100644 .changeset/36070-comment-small-fixes.md delete mode 100644 .changeset/36071-comment-threads-resolved.md delete mode 100644 .changeset/36073-masking-off-ask-round.md delete mode 100644 .changeset/36074-comment-reply-notice.md delete mode 100644 .changeset/36075-comments-resolved.md delete mode 100644 .changeset/36075-record-comments-panel.md delete mode 100644 .changeset/36076-phone-comment-page.md delete mode 100644 .changeset/36078-summary-chip-percent-plain.md delete mode 100644 .changeset/36082-record-unit-summary.md delete mode 100644 .changeset/36094-flow-embed-branches.md delete mode 100644 .changeset/36102-grid-field-lazy-body.md delete mode 100644 .changeset/36110-signout-keeps-list-layout.md delete mode 100644 .changeset/36111-page-header-shell-actions.md delete mode 100644 .changeset/36112-no-desktop-top-bar.md delete mode 100644 .changeset/36112-sidebar-docking.md delete mode 100644 .changeset/36113-list-top-object-row-view-row.md delete mode 100644 .changeset/36121-fixed-read-leaf-seam-docblock-tense.md delete mode 100644 .changeset/36121-shared-record-ids-docblock-tense.md delete mode 100644 .changeset/36122-seeds-rollup-never-stored.md delete mode 100644 .changeset/36125-mcp-token-issue-time-ms.md delete mode 100644 .changeset/36137-pinned-view-draft-writes.md delete mode 100644 .changeset/36141-menu-icon-tiles.md delete mode 100644 .changeset/36147-record-field-list.md delete mode 100644 .changeset/36148-timeline-events-chip-wording.md delete mode 100644 .changeset/36149-side-preview-tighten.md delete mode 100644 .changeset/36150-authored-record-page-desktop-only.md delete mode 100644 .changeset/36151-phone-bottom-bar-actions-only.md delete mode 100644 .changeset/36153-withheld-decline-wording.md delete mode 100644 .changeset/36156-actions-per-record-write.md delete mode 100644 .changeset/36157-app-icon-one-rule.md delete mode 100644 .changeset/36159-import-lookup-out-of-scope-message.md delete mode 100644 .changeset/36161-automation-skill-clearable-state.md delete mode 100644 .changeset/36167-cel-list-equality-refused.md delete mode 100644 .changeset/36167-cel-list-membership.md delete mode 100644 .changeset/36167-list-equality-site-rewrites.md delete mode 100644 .changeset/36168-dataset-json-column-refusal.md delete mode 100644 .changeset/36169-filterbuilderfield-multiple.md delete mode 100644 .changeset/36179-ui-record-page-full-desktop-only.md delete mode 100644 .changeset/36180-authored-record-page-surface-describes.md delete mode 100644 .changeset/36186-36191-comment-doors.md delete mode 100644 .changeset/36189-preview-contains-membership.md delete mode 100644 .changeset/36190-analytics-single-media-json-refusal.md delete mode 100644 .changeset/36193-recent-activity-card-no-comments.md delete mode 100644 .changeset/36194-footer-calculation-draft.md delete mode 100644 .changeset/36198-restriction-profile-unscoped-only.md delete mode 100644 .changeset/36202-record-page-header-warning.md delete mode 100644 .changeset/36204-group-add-default-field.md delete mode 100644 .changeset/36206-decide-through-action.md delete mode 100644 .changeset/36206-gallery-refresh-scorer-card-defects.md delete mode 100644 .changeset/36206-namespace-operation-via.md delete mode 100644 .changeset/36216-filter-builder-field-options.md delete mode 100644 .changeset/36217-formula-skill-list-equality.md delete mode 100644 .changeset/36219-cel-editor-list-fields.md delete mode 100644 .changeset/36224-inline-edit-form-group.md delete mode 100644 .changeset/36225-preview-no-comments.md delete mode 100644 .changeset/36226-details-divider-double-click-reset.md delete mode 100644 .changeset/36227-sidebar-resize-float-card.md delete mode 100644 .changeset/36235-record-loading-placeholders.md delete mode 100644 .changeset/36237-hop-list-equality.md delete mode 100644 .changeset/36244-org-scoped-browser-state.md delete mode 100644 .changeset/36245-stale-literal-column-default.md delete mode 100644 .changeset/36246-record-header-star.md delete mode 100644 .changeset/36249-cross-currency-pick.md delete mode 100644 .changeset/36249-form-subtotal-currency.md delete mode 100644 .changeset/36252-lint-rules-field-group.md delete mode 100644 .changeset/36256-drill-dialog-standard-list.md delete mode 100644 .changeset/36259-change-owner-answers-what-was-saved.md delete mode 100644 .changeset/36261-change-owner-disabled-package.md delete mode 100644 .changeset/36269-every-group-folds.md delete mode 100644 .changeset/36270-object-grid-single-click-edit-retired.md delete mode 100644 .changeset/36276-group-aggregates-per-depth.md delete mode 100644 .changeset/36281-embedded-sub-fields-hint.md delete mode 100644 .changeset/36285-relationships-predicate-floor.md delete mode 100644 .changeset/36286-palette-add-view-edit.md delete mode 100644 .changeset/36286-palette-current-page.md delete mode 100644 .changeset/36286-palette-preview-create.md delete mode 100644 .changeset/36289-list-cell-context-menu.md delete mode 100644 .changeset/36290-activity-field-change-lines.md delete mode 100644 .changeset/36290-field-change-history-card.md delete mode 100644 .changeset/36290-field-history-producers.md delete mode 100644 .changeset/36290-field-history-values-default-on.md delete mode 100644 .changeset/36292-record-field-set-placeholder.md delete mode 100644 .changeset/36300-data-drawer-open-full-page.md delete mode 100644 .changeset/36301-slack-dm-console-mount.md delete mode 100644 .changeset/36308-no-approver-label-doors.md delete mode 100644 .changeset/36309-embedded-stage-reread.md delete mode 100644 .changeset/36310-overlay-field-labels.md delete mode 100644 .changeset/36315-card-menu-keys.md delete mode 100644 .changeset/36321-currency-picker-form-read.md delete mode 100644 .changeset/36322-subflow-approval-mark.md delete mode 100644 .changeset/36329-masking-off-field-absence.md delete mode 100644 .changeset/36331-orphans-delete-confirmation-exit.md delete mode 100644 .changeset/36344-markdown-cell-heading.md delete mode 100644 .changeset/36346-initials-one-rule.md delete mode 100644 .changeset/36347-cmd-b-docks-sidebar.md delete mode 100644 .changeset/36349-skills-lookupautofill-currency.md delete mode 100644 .changeset/36353-compact-toolbar-refresh-describe.md delete mode 100644 .changeset/36355-auth-boot-reachability-admission-order.md delete mode 100644 .changeset/36360-rich-text-panel-wording.md delete mode 100644 .changeset/36362-runtime-design-mode.md delete mode 100644 .changeset/36363-design-mode-menu-editing.md delete mode 100644 .changeset/36364-design-mode-new-dashboard.md delete mode 100644 .changeset/36364-design-mode-new-report.md delete mode 100644 .changeset/36366-object-action-layout.md delete mode 100644 .changeset/36369-digest-conversion-snapshot.md delete mode 100644 .changeset/36370-kanban-view-settings.md delete mode 100644 .changeset/36372-dashboard-in-page-edit.md delete mode 100644 .changeset/36373-report-panel-business-wording.md delete mode 100644 .changeset/36374-report-builder.md delete mode 100644 .changeset/36390-preload-refusal-user-message.md delete mode 100644 .changeset/36393-calldata-disabled-package-every-hop.md delete mode 100644 .changeset/36395-change-owner-queue-search.md delete mode 100644 .changeset/36400-flow-label-every-flow.md delete mode 100644 .changeset/36401-skills-i18n-flow-nodes-related-lists.md delete mode 100644 .changeset/36403-view-column-state-retired.md delete mode 100644 .changeset/36404-more-details-empty-reveal.md delete mode 100644 .changeset/36407-phone-cards-load-more.md delete mode 100644 .changeset/36408-data-page-list-state-in-address.md delete mode 100644 .changeset/36410-comment-notice-opens-comment.md delete mode 100644 .changeset/36412-cross-currency-pick-followups.md delete mode 100644 .changeset/36419-skills-field-history-default.md delete mode 100644 .changeset/36422-skills-board-settings.md delete mode 100644 .changeset/36425-field-show-on-create.md delete mode 100644 .changeset/36425-retire-internal-forms.md delete mode 100644 .changeset/36430-kanban-reference-lanes.md delete mode 100644 .changeset/36442-console-file-preview.md delete mode 100644 .changeset/36443-console-frame-src-storage-origin.md delete mode 100644 .changeset/36444-setup-public-forms.md delete mode 100644 .changeset/36447-report-form-business-wording.md delete mode 100644 .changeset/36448-view-management-metadata-gate.md delete mode 100644 .changeset/36451-grid-field-lazy-retry.md delete mode 100644 .changeset/36452-html-cell-heading.md delete mode 100644 .changeset/36455-ui-skill-create-surfaces.md delete mode 100644 .changeset/36457-date-box-opens-calendar.md delete mode 100644 .changeset/36459-conditional-formatting-list-equality.md delete mode 100644 .changeset/36462-chip-operator-labels.md delete mode 100644 .changeset/36463-no-approver-text-in-reader-language.md delete mode 100644 .changeset/36466-meta-locale-negotiation.md delete mode 100644 .changeset/36468-navigation-size-auto-describe.md delete mode 100644 .changeset/36469-comment-doors-hosted.md delete mode 100644 .changeset/36469-comment-doors-serve-host.md delete mode 100644 .changeset/36470-phone-comment-title.md delete mode 100644 .changeset/36472-preview-esc-ends-edit.md delete mode 100644 .changeset/36473-installed-package-refusal-locale.md delete mode 100644 .changeset/36475-record-field-edit-in-place.md delete mode 100644 .changeset/36477-inbox-figure-highlightfields.md delete mode 100644 .changeset/36479-lookup-preview-link-free.md delete mode 100644 .changeset/36480-canvas-strip-served-label.md delete mode 100644 .changeset/36481-served-name-edit.md delete mode 100644 .changeset/36482-field-history-three-way.md delete mode 100644 .changeset/36485-design-entry-app-menu.md delete mode 100644 .changeset/36487-object-settings-entry.md delete mode 100644 .changeset/36488-uploader-own-attachment-delete-rename.md delete mode 100644 .changeset/36490-trio-transaction-ambient-reads.md delete mode 100644 .changeset/36493-plugin-detail-readme-layout.md delete mode 100644 .changeset/36494-row-menus-follow-action-layout.md delete mode 100644 .changeset/36497-open-scope-ui-state-writes.md delete mode 100644 .changeset/36498-custom-package-arrangement.md delete mode 100644 .changeset/36499-record-tab-config-installed.md delete mode 100644 .changeset/36499-record-tab-config.md delete mode 100644 .changeset/36501-studio-back-to-app.md delete mode 100644 .changeset/36502-retire-studio-interfaces.md delete mode 100644 .changeset/36504-menu-rename-translation.md delete mode 100644 .changeset/36505-field-layout-tab.md delete mode 100644 .changeset/36506-own-row-doors-hosted.md delete mode 100644 .changeset/36507-drill-relation-chip.md delete mode 100644 .changeset/36511-studio-save-cancel-2.md delete mode 100644 .changeset/36511-studio-save-cancel-3.md delete mode 100644 .changeset/36511-studio-save-cancel.md delete mode 100644 .changeset/36512-settings-business-wording.md delete mode 100644 .changeset/36516-formula-skill-sharing-rule-skip.md delete mode 100644 .changeset/36520-kanban-lane-statistic-server.md delete mode 100644 .changeset/36526-cbp-refusal-business-wording.md delete mode 100644 .changeset/36528-related-list-label-translation.md delete mode 100644 .changeset/36530-titled-screen-node-label.md delete mode 100644 .changeset/36538-design-mode-menu-save-hardened.md delete mode 100644 .changeset/36541-skills-custom-arrangement.md delete mode 100644 .changeset/36545-action-opened-form-not-internal.md delete mode 100644 .changeset/36552-line-item-grid-followups.md delete mode 100644 .changeset/36554-drill-record-steps-whole-result.md delete mode 100644 .changeset/36557-record-top-bar-close-left.md delete mode 100644 .changeset/36558-scenario-scorer-gallery-refresh.md delete mode 100644 .changeset/36567-validations-clearable-state.md delete mode 100644 .changeset/36573-security-denial-label-locale.md delete mode 100644 .changeset/36577-data-page-object-switch.md delete mode 100644 .changeset/36589-design-menu-casing.md delete mode 100644 .changeset/36591-design-menu-order.md delete mode 100644 .changeset/36592-object-colour-platform-objects.md delete mode 100644 .changeset/36592-object-colour-plugin-approvals.md delete mode 100644 .changeset/36592-object-colour-plugin-audit.md delete mode 100644 .changeset/36592-object-colour-plugin-security.md delete mode 100644 .changeset/36592-object-colour-plugin-sharing.md delete mode 100644 .changeset/36592-object-colour-plugin-webhooks.md delete mode 100644 .changeset/36592-object-colour-service-messaging.md delete mode 100644 .changeset/36593-all-empty-hidden-group-reveal.md delete mode 100644 .changeset/36595-placed-title-save-door.md delete mode 100644 .changeset/36596-stale-default-not-null.md delete mode 100644 .changeset/36601-published-layer-version-pin.md delete mode 100644 .changeset/36608-lazy-field-widgets-recover.md delete mode 100644 .changeset/36610-avatar-image-object-cover.md delete mode 100644 .changeset/36611-skills-wizard-routing-sections.md delete mode 100644 .changeset/36618-grid-multi-lookup-readonly.md delete mode 100644 .changeset/36619-studio-save-waits-verdicts.md delete mode 100644 .changeset/36626-customizations-arrangements.md delete mode 100644 .changeset/36628-36611-skills-object-colour-create-forms.md delete mode 100644 .changeset/36630-skills-action-layout.md delete mode 100644 .changeset/36633-flow-approval-label-resolver.md delete mode 100644 .changeset/36643-kanban-lane-picker-reference-fields.md delete mode 100644 .changeset/36645-report-builder-filter.md delete mode 100644 .changeset/36645-report-compare-previous-period.md delete mode 100644 .changeset/36647-artifact-unmounted-plugins.md delete mode 100644 .changeset/36648-studio-edit-after-save-kept.md delete mode 100644 .changeset/36650-mcp-search-knowledge.md delete mode 100644 .changeset/36659-related-tab-catalog-whole-row.md delete mode 100644 .changeset/36678-currency-symbol-inset.md delete mode 100644 .changeset/36692-report-editing-own-entry.md delete mode 100644 .changeset/36693-activity-stream-tab-follows-sources.md delete mode 100644 .changeset/36701-notification-settings-follow-organization.md delete mode 100644 .changeset/36707-related-tab-lookup-picker-scope.md delete mode 100644 .changeset/36709-action-page-contract-reject-reason.md delete mode 100644 .changeset/36713-skills-transfer-behavior.md delete mode 100644 .changeset/36716-report-save-custom-overlay.md delete mode 100644 .changeset/36718-flow-teaching-accepted-shapes.md delete mode 100644 .changeset/36725-designer-hosts-served-rows.md delete mode 100644 .changeset/36726-studio-pinned-publish.md delete mode 100644 .changeset/36727-data-hooks-regex-refusal.md delete mode 100644 .changeset/36732-desktop-lands-in-last-app.md delete mode 100644 .changeset/36737-design-mode-record-tabs.md delete mode 100644 .changeset/36739-org-basics-checklist-pill.md delete mode 100644 .changeset/36741-full-page-inbox.md delete mode 100644 .changeset/36742-studio-new-flow-status-toast.md delete mode 100644 .changeset/36744-permission-matrix-fold-at-floor.md delete mode 100644 .changeset/36745-flow-header-meta-give-way.md delete mode 100644 .changeset/36748-studio-new-app-door.md delete mode 100644 .changeset/36750-list-view-fallback-no-layers.md delete mode 100644 .changeset/36753-case-colliding-helpers.md delete mode 100644 .changeset/36754-sso-keeps-pre-login-link.md delete mode 100644 .changeset/36758-app-menu-design-layout-and-studio.md delete mode 100644 .changeset/36807-change-owner-declared-queues.md delete mode 100644 .changeset/36808-flow-step-label-locale.md delete mode 100644 .changeset/36809-console-flow-labels-fallback-chain.md delete mode 100644 .changeset/36816-dashboard-form-business-wording.md delete mode 100644 .changeset/36825-lookup-create-pinned-footer.md delete mode 100644 .changeset/36831-screen-flow-step-not-resubmitted.md delete mode 100644 .changeset/36832-lookup-phone-drawer.md delete mode 100644 .changeset/36834-setup-packages-entry.md delete mode 100644 .changeset/36835-report-default-period-labels.md delete mode 100644 .changeset/36837-dependson-lookup-id.md delete mode 100644 .changeset/36838-report-form-one-vocabulary.md delete mode 100644 .changeset/36839-knowledge-exposure-fls.md delete mode 100644 .changeset/36840-print-door-hosted.md delete mode 100644 .changeset/36841-kanban-reference-swimlanes.md delete mode 100644 .changeset/36849-result-link-closes-flow-dialog.md delete mode 100644 .changeset/36851-related-list-refused-delete-toast.md delete mode 100644 .changeset/36852-peoplepicker-dialog-scroll.md delete mode 100644 .changeset/36854-mcp-book-label-locale.md delete mode 100644 .changeset/36860-metadata-list-columns-batch.md delete mode 100644 .changeset/36860-metadata-list-columns.md delete mode 100644 .changeset/36865-lookup-param-allowcreate-filters.md delete mode 100644 .changeset/36876-menu-rename-locale-map.md delete mode 100644 .changeset/36880-lane-stat-date-minmax.md delete mode 100644 .changeset/36887-meta-types-response-schema.md delete mode 100644 .changeset/36892-studio-detail-header.md delete mode 100644 .changeset/36893-sds-pillar-split.md delete mode 100644 .changeset/36894-list-changed-at.md delete mode 100644 .changeset/36895-studio-address-builder.md delete mode 100644 .changeset/36896-list-state-in-url.md delete mode 100644 .changeset/36897-list-objectgrid.md delete mode 100644 .changeset/36898-list-changed-column.md delete mode 100644 .changeset/36899-studio-left-menu.md delete mode 100644 .changeset/36900-studio-cmdk.md delete mode 100644 .changeset/36901-detail-header-tabs.md delete mode 100644 .changeset/36902-detail-save-at-once.md delete mode 100644 .changeset/36905-permission-fullscreen.md delete mode 100644 .changeset/36911-row-menu-approval-lock.md delete mode 100644 .changeset/36912-dashboard-gap-zero.md delete mode 100644 .changeset/36915-bulk-flow-refused-count.md delete mode 100644 .changeset/36917-transfer-describe-offboarding.md delete mode 100644 .changeset/36922-related-badge-after-row-action.md delete mode 100644 .changeset/36923-standalone-form-lookupautofill-refused.md delete mode 100644 .changeset/36930-swimlane-namefield.md delete mode 100644 .changeset/36931-bulk-flow-paused-rows.md delete mode 100644 .changeset/36942-platform-task-note-objects.md delete mode 100644 .changeset/36946-manual-reader-cjk-bold.md delete mode 100644 .changeset/36955-search-page-component-doc-keys.md delete mode 100644 .changeset/36959-approvals-inbox-search-labels.md delete mode 100644 .changeset/36960-approvals-inbox-cancelled-filter.md delete mode 100644 .changeset/36966-approvals-inbox-state-in-url.md delete mode 100644 .changeset/36969-hide-closed-ai-build.md delete mode 100644 .changeset/36971-profile-language-one-setting.md delete mode 100644 .changeset/36972-profile-save-confirmation.md delete mode 100644 .changeset/36980-import-row-errors-reader-language.md delete mode 100644 .changeset/36981-setup-doors-bearer.md delete mode 100644 .changeset/36982-declared-rule-hooks-late-organization.md delete mode 100644 .changeset/36988-report-chart-axis-format.md delete mode 100644 .changeset/36991-knowledge-sync-where.md delete mode 100644 .changeset/36992-knowledge-reindex-paging.md delete mode 100644 .changeset/36995-embedder-openai-batches.md delete mode 100644 .changeset/36998-record-drawer-assistant-entry.md delete mode 100644 .changeset/36999-conversation-focus.md delete mode 100644 .changeset/37008-gallery-formula-label.md delete mode 100644 .changeset/37010-phone-card-formula-title-subtitle.md delete mode 100644 .changeset/37013-platform-skill-own-slot.md delete mode 100644 .changeset/37018-mobile-drawer-a11y-name.md delete mode 100644 .changeset/37025-import-blank-multi-value-key-language.md delete mode 100644 .changeset/37028-footer-count-left-edge.md delete mode 100644 .changeset/37031-dashboard-binding-recheck.md delete mode 100644 .changeset/37033-matrix-drill-columns.md delete mode 100644 .changeset/37034-date-condition-chips.md delete mode 100644 .changeset/37041-batch-lock-detail-lines.md delete mode 100644 .changeset/37042-skills-inline-edit-boolean.md delete mode 100644 .changeset/37057-actionlayout-validate-scope.md delete mode 100644 .changeset/37058-skills-catalog-sys-task-note.md delete mode 100644 .changeset/37080-console-reads-bearer.md delete mode 100644 .changeset/37080-shell-reads-bearer.md delete mode 100644 .changeset/37081-action-error-detail-message-first.md delete mode 100644 .changeset/37082-studio-group-names.md delete mode 100644 .changeset/37093-embedder-input-limit.md delete mode 100644 .changeset/37109-pref-save-waits-load.md delete mode 100644 .changeset/37127-scenarios-inline-edit-field-groups.md delete mode 100644 .changeset/37133-turso-remote-aggregate-boolean-group-key.md delete mode 100644 .changeset/37140-ai-context-get-record-context.md delete mode 100644 .changeset/37146-ai-pane-lone-agent-header.md delete mode 100644 .changeset/37149-go-home-shortcut-desktop-label.md delete mode 100644 .changeset/37150-docs-pages-in-app-shell.md delete mode 100644 .changeset/37151-record-lock-source.md delete mode 100644 .changeset/37157-import-ambiguous-match-language.md delete mode 100644 .changeset/37178-record-context-outline-entry-cap.md delete mode 100644 .changeset/37182-checklist-not-shown-memo.md delete mode 100644 .changeset/action-selection-read-scope.md delete mode 100644 .changeset/autonumber-dark-colour.md delete mode 100644 .changeset/boolean-write-spelling-canonical.md delete mode 100644 .changeset/cli-browser-launch-http-only-no-shell.md delete mode 100644 .changeset/cloud-4964-i18n-locales-once.md delete mode 100644 .changeset/credential-change-ends-prior-access.md delete mode 100644 .changeset/dev-seed-credential-production-refusal.md delete mode 100644 .changeset/fields-bare-union-head.md delete mode 100644 .changeset/flow-runtime-state-mcp-readers.md delete mode 100644 .changeset/gantt-paged-ceiling-read.md delete mode 100644 .changeset/list-field-list-manager.md delete mode 100644 .changeset/list-filter-sort-condition-row.md delete mode 100644 .changeset/list-filter-sort-wiring.md delete mode 100644 .changeset/mcp-aggregate-lookup-group-labels.md delete mode 100644 .changeset/metadata-issues-bare-union-head.md delete mode 100644 .changeset/multivalue-filter-operators.md delete mode 100644 .changeset/password-reset-disables-registered-apps.md delete mode 100644 .changeset/password-reset-ends-added-access.md delete mode 100644 .changeset/safe-column-remedy-per-kind.md delete mode 100644 .changeset/sec1-865p-r4.md delete mode 100644 .changeset/sec2-48g2.md delete mode 100644 .changeset/sec2-4ghv.md delete mode 100644 .changeset/sec2-535v.md delete mode 100644 .changeset/sec2-865p.md delete mode 100644 .changeset/sec2-account-removal.md delete mode 100644 .changeset/sec2-ggfh.md delete mode 100644 .changeset/sec2-r7gg.md delete mode 100644 .changeset/sec2-v5c7.md delete mode 100644 .changeset/sec2-vv32.md delete mode 100644 .changeset/sec2-wf9p.md delete mode 100644 .changeset/sec2-xrjw.md delete mode 100644 .changeset/session-read-once-per-request.md delete mode 100644 .changeset/shared-view-create-for-metadata-admins.md delete mode 100644 .changeset/social-creation-needs-provider-verified-address.md delete mode 100644 .changeset/sort-builder-size-wording.md delete mode 100644 .changeset/sso-discovery-connect-time.md delete mode 100644 .changeset/sso-discovery-public-hosts.md delete mode 100644 .changeset/studio-author-wording.md delete mode 100644 .changeset/t1-stale-prose.md delete mode 100644 .changeset/validation-override-interpolated-once.md delete mode 100644 .changeset/verify-managed-datasource-stand-in.md create mode 100644 packages/services/service-record-context/CHANGELOG.md diff --git a/.changeset/32062-sync-in-delete-marking.md b/.changeset/32062-sync-in-delete-marking.md deleted file mode 100644 index 4ef0b9dc80d..00000000000 --- a/.changeset/32062-sync-in-delete-marking.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/service-automation': minor -'@objectstack/runtime': minor -'@objectstack/objectql': patch ---- - -feat(service-automation)!: a sync-in pull marks the rows the source deleted, and an incremental source states how it learns of a delete - -Clause-②: no (narrowing) -Metadata-protocol: narrowed -Skills-docs: none (no skills/ page names `deletePolicy`, `deletedField` or `_sync_deleted_at`; the guide that teaches them is `content/docs/automation/jobs.mdx`, updated here) - - - -ADR-0153 D3, delete marking (#32062, slice 6). - -- **A pull marks a row the source deleted, and never deletes it.** Under `deletePolicy: 'mark'`, the reading when the key is absent, a pull stamps the platform column `_sync_deleted_at` on a row of a `synced` object that the source deleted, and clears it when a later pull reads the row again. `deletePolicy: 'ignore'` leaves every row as it is. Two detections: - - `deletedField`, on any pull that declares it: a read record whose value in that source field is truthy has its copy marked; every other read record's copy is cleared. - - Absence, on a full pull whose read was complete: every row of the mapping (`_sync_source`) the run did not read is marked. A `datasourceSource` with `full: true` is complete when its windows read to their end and no source row in the job's organization has a NULL watermark; it marks only rows whose copied watermark is at or above `watermark.start`. A `connectorSource` without a `watermark` is complete only under `paging: { style: 'none' }` (one response is the whole set); with no `paging`, or a paging style the pull does not follow yet, it marks nothing by absence. A refused or interrupted pull marks nothing by absence; a row the import runner refused was read, so it is not marked. A record whose `upsertKey` value is blank names no row, so one such record makes the run mark nothing by absence (`unjudged, rows refused`). A row pulled before the provenance columns existed carries no `_sync_source`, so it is no mapping's row: if the source has since deleted it, no pull marks it. - - Two mappings on one target: each marks and clears only the rows whose `_sync_source` is its own; a second mapping is not refused. -- **`sys_sync_run` records it.** New columns: `marked_deleted_count`, `deletes` (`judged`, `by deletedField`, `ignored`, or `unjudged, …` with the reason: `null watermark`, `no paging declared`, `pages not followed`, `rows refused`) and `skipped_null_watermark` (a datasource source's rows with a NULL watermark, counted under the organization predicate; through a plugin driver's row cap a count above the cap is recorded as the cap plus one). The end-of-pull log line says what the run marked and cleared. `job_run_id`'s and `trigger`'s descriptions now say when each is empty. -- **BREAKING: an incremental source states how it learns of a delete.** A `connectorSource` with a `watermark`, or a `datasourceSource` without `full: true`, never sees an absent row, so under `deletePolicy` absent or `'mark'` with no `deletedField` it is refused at parse (`MappingSchema`, so `defineStack` and `os validate`) and again when the pull runs (`400 VALIDATION_ERROR`, reason `delete_policy_unhonourable`). Fix: name the source's soft-delete field (`deletedField: 'is_deleted'`), or write `deletePolicy: 'ignore'`, which is what every pull did before this release. New export: `incrementalSourceDeleteRefusal` (`@objectstack/spec/data`), the rule both doors ask. -- **BREAKING: a `synced` target that withholds the provenance columns** (`systemFields: false`) is refused under `deletePolicy` absent or `'mark'` (`400 mapping_target_refused`): no row of it can carry the mark. Fix: let the platform add its columns, or write `deletePolicy: 'ignore'`. This arm is judged only when the pull runs: `os validate` and `defineStack` do not catch it, so a stack that validates green can still fail every scheduled pull. Migration entry `incremental-source-delete-policy-stated` names both arms. -- A datasource source's `deletedField` must name a field of the source object (`400 source_binding_invalid` otherwise). `deletedField` is read by truthiness: the text `'false'` or `'0'` marks the row, and on a connector source a field the records do not carry reads as falsy on every record and marks nothing. -- A stored `deletePolicy` outside `'mark'` / `'ignore'` (which the parse refuses) is refused by the pull too (`delete_policy_unhonourable`) instead of being read as `'mark'`. -- The liveness rows for `deletePolicy` and `deletedField` on both sources are `live`, and `os validate` no longer warns that nothing reads them. `paging` stays `planned`: the connector paging loop is a later change. -- A connector pull whose target definition cannot be read now says whether the object is not registered or the metadata read failed. -- A connector pull keeps the job run id and trigger only when the run record can hold them: a trigger other than `schedule` or `manual`, or a run id longer than 255 characters, is left out instead of failing the run record's open. -- `JobHandlerContext` (`@objectstack/runtime`) declares `trigger` and `runId`: the handler run form spreads the job service's context into the handler's, so every `handler` job already receives `trigger`, and `runId` under the database job adapter. The jobs guide lists both. diff --git a/.changeset/32062-sync-provenance-columns.md b/.changeset/32062-sync-provenance-columns.md deleted file mode 100644 index 278b645ebb5..00000000000 --- a/.changeset/32062-sync-provenance-columns.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -'@objectstack/spec': patch -'@objectstack/objectql': patch -'@objectstack/metadata-protocol': patch -'@objectstack/service-automation': patch ---- - -feat(objectql)!: every row a sync-in pull writes records where it came from, and nothing else may write those columns - -Clause-②: no (narrowing) -Metadata-protocol: none -Skills-docs: none (no skills/ page names the `_sync_` columns or the synced bucket's injected columns) - - - -ADR-0153 D4, the provenance half (#32062, slice 5). - -- **Five `_sync_` columns on every `managedBy: 'synced'` object.** `resolveInjectedSystemColumns` (`@objectstack/spec/data`) now plans `_sync_source`, `_sync_external_id`, `_sync_pulled_at`, `_sync_run_id` and `_sync_deleted_at` on that bucket only (`plan.sync`), and the registry injects them as hidden, read-only system columns, with an index on (`organization_id`, `_sync_source`, `_sync_external_id`) placed after the tenant index. New exports: `SYNC_PROVENANCE_COLUMNS`, `SYNC_PROVENANCE_PREFIX`, `SyncProvenanceColumn`, `SYNC_PROVENANCE_FIELD_DEFS`. A synced object that declares `systemFields: false` gets none of them. -- **Both pulls stamp them.** A connector pull and a datasource pull write `_sync_source` (the mapping), `_sync_external_id` (the row's `upsertKey` value as text; a key of several fields is a JSON array of the values in `upsertKey` order, such as `["10","A-1"]`), `_sync_pulled_at` and `_sync_run_id` (the `sys_sync_run` row; not written when no run ledger is composed) on every row. `_sync_deleted_at` exists but stays empty until delete marking (D3) lands. A mapping whose `fieldMapping` targets a `_sync_` column is refused with `400 mapping_target_refused` when it runs (it was refused before as an unknown target). A connector pull whose target object's definition cannot be read is now refused the same way before it calls the connector, instead of writing rows it cannot stamp; the datasource pull already refused it. -- **BREAKING: a `_sync_` column in any other write is refused.** The engine refuses an insert or update naming a `_sync_` key with `400 ERR_SYNC_PROVENANCE_WRITE_REFUSED`, before middleware, defaults and hooks run, whatever the caller's context, `isSystem` included. A `_sync_` key a `beforeInsert` or `beforeUpdate` hook assigns, changes or removes is refused the same way before the driver is called, on any write, the pull's own included, so the pull's stamps are stored exactly as it wrote them. Only the pull's own write is admitted (`markSyncPullWrite`, exported from `@objectstack/objectql` with `SYNC_PULL_WRITE`, `SyncProvenanceWriteRefusedError` and `SYNC_PROVENANCE_WRITE_REFUSED_CODE`). The mark is consumed by that write, so a hook or flow it triggers writes as any other system caller and is refused the same way. Fix: leave the `_sync_` columns out of the write and out of your hooks; the next pull of the mapping stamps them. -- Load-time diagnostics leave the injected `_sync_` columns out when they judge a served synced object, so it is not flagged for the reserved prefix; an author field under a `_sync_` name is still refused. diff --git a/.changeset/32115-directory-deactivation-local-password.md b/.changeset/32115-directory-deactivation-local-password.md deleted file mode 100644 index fe1b2e8381d..00000000000 --- a/.changeset/32115-directory-deactivation-local-password.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@objectstack/plugin-auth': patch ---- - -fix(plugin-auth)!: a directory deactivation removes the user's local password; a re-activation restores access through SSO only - -Clause-②: yes (narrowing) — narrowed: a SCIM `active: false`, a SCIM `DELETE /Users/{id}`, a SCIM create with `active: false`, a connection decommission that leaves the user with no active source, and any later SCIM write that leaves the user inactive now also delete the user's local password (every `sys_account` row of the user with `provider_id = 'credential'`), where they left it in place, so the identity-source mark then reads the user `idp_provisioned` where the password had kept it `env_native`; and a SCIM `active: true` that lifts the directory's ban now first deletes any such row the user holds at that moment, where it lifted the ban alone, and fails (SCIM 500, the user staying deactivated) when that deletion cannot be completed. A re-activation by the directory restores no credential from before it, so a password sign-in by that user answers the ordinary `401 INVALID_EMAIL_OR_PASSWORD` until a password is set again on purpose after it. -Metadata-protocol: none -Skills-docs: none — no skill under `skills/**` teaches the SCIM deactivation lifecycle; `content/docs/permissions/authentication.mdx` gains the rule in this change. - - - -**BREAKING** for a deployment that provisions users through a SCIM directory: deactivating or deleting a user through SCIM, or decommissioning the last SCIM connection that holds the user active, now removes that user's local password, alongside the ban, the API key revocation, the AI service account suspension and the ending of the user's OAuth applications and SCIM credentials it already performed. A re-activation by the directory restores access through the identity provider's sign-in only: it removes any local password the user holds at that moment, one set while the user was deactivated included, before it lifts the ban, so it restores no credential from before it; when that removal cannot be completed the re-activation fails and the user stays deactivated until the directory retries. The user's other account links (SSO / OAuth) and the user row are kept. With the password gone, the user reads as directory-managed (`sys_user.source = 'idp_provisioned'`, ADR-0135 D4) where the password had kept it `env_native`, so every rule keyed on that mark applies to the user, the SSO-only mode refusals to set a local password among them. - -Unchanged: an administrator's ban and unban (`admin/ban-user`, `admin/unban-user`) leave the local password alone; an `active: true` over an administrator's ban, and an active SCIM write for a user who is not banned, remove nothing; a deactivation the break-glass last-administrator guard refuses removes nothing. - -A ban whose reason reads `Deactivated via SCIM`, the reason the directory's ban records, is the directory's whoever wrote it: the directory's next active write lifts it and removes the local password. - -What to do: nothing. No migration or backfill runs: a user deactivated before this version keeps their local credential until the directory next writes that user. An administrator's unban removes nothing. A re-activation by the directory also removes a password set while the user was deactivated. A person who needs a local password after a re-activation sets one again on purpose after it (`set-initial-password`, or an administrator's Set Password where the deployment allows it; with SSO-only mode on, these doors refuse a directory-managed user other than a platform administrator setting their own). diff --git a/.changeset/32439-config-load-neutral-wording.md b/.changeset/32439-config-load-neutral-wording.md deleted file mode 100644 index d3b708cf150..00000000000 --- a/.changeset/32439-config-load-neutral-wording.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@objectstack/cli': patch ---- - -fix(cli): a config that fails to load is no longer reported as "Compile failed" - -Clause-②: no -Metadata-protocol: none - -When the `os compile` child that `os dev`, `os start`, `os serve --dev` and `os environments bind --build` run exits non-zero, the closing line said `Compile failed — fix errors above …`. The parent sees only the child's exit status, so the same line followed a refusal raised while `objectstack.config.ts` loads (for example a licence or key-management refusal), and an operator went looking for a code error. - -The line now says what is true of every way the child fails, a syntax error, a refusal thrown at load or a refusal that prints and exits: `objectstack.config did not load or compile — the reason is printed above; fix it before …`, with each command's own tail (`starting dev server`, `starting the server` with the `--artifact` hint, `starting the dev server.`, `binding`). The `os dev` watch recompile's failure line reads `✗ objectstack.config did not load or compile (Nms)` in place of `✗ compile failed (Nms)`, with the compile output after it as before. Nothing classifies the failure: exit statuses, error codes and the text the child prints are unchanged. - -A script that matched `Compile failed` in this output should match `did not load or compile`. diff --git a/.changeset/32642-ai-answer-routes.md b/.changeset/32642-ai-answer-routes.md deleted file mode 100644 index 76adeecab98..00000000000 --- a/.changeset/32642-ai-answer-routes.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@objectstack/spec': minor ---- - -feat(spec): declare the AI answer follow-up routes (saved questions, answer artifact, answer feedback) and carry `turnId` on a conversation's messages - -Clause-②: yes (widening) -Metadata-protocol: added - -`@objectstack/spec/api` now declares the request, response and error shapes of the AI answer follow-up routes the cloud AI service serves, so the console and the client SDK can type them instead of guessing: - -- **Saved questions.** `GET /api/v1/ai/saved-questions` (`ListAiSavedQuestionsResponseSchema`), `POST /api/v1/ai/saved-questions` (`CreateAiSavedQuestionRequestSchema` / `CreateAiSavedQuestionResponseSchema`: a typed `question`, or `conversationId` with `turnId`), `DELETE /api/v1/ai/saved-questions/:id` (204) and `POST /api/v1/ai/saved-questions/:id/run` (`RunAiSavedQuestionResponseSchema`). One saved question is `AiSavedQuestionSchema`; its `source` is the Ask data tools' `ObjectQuerySourceSchema` block. -- **Answer → artifact.** `POST /api/v1/ai/conversations/:id/turns/:turnId/artifact` (`CreateAiAnswerArtifactRequestSchema` with `kind: 'view' | 'report' | 'widget'`; `CreateAiAnswerArtifactResponseSchema`, discriminated by `kind`: the caller's own list view, or a dataset plus a report or dashboard draft with `published: false`). -- **Answer feedback.** `GET|POST|DELETE /api/v1/ai/conversations/:id/turns/:turnId/feedback` (`GetAiAnswerFeedbackResponseSchema`, `SetAiAnswerFeedbackRequestSchema` with `rating: 'up' | 'down'` and an optional `note`, `SetAiAnswerFeedbackResponseSchema`; DELETE answers 204). -- **Errors.** Each family's `error` is `ApiErrorSchema` with its closed `code` vocabulary (`AiSavedQuestionErrorSchema`, `AiAnswerArtifactErrorSchema`, `AiAnswerFeedbackErrorSchema`) and, where the route names one, the refusal in `details.reason` (`AiSavedQuestionRefusalReasonSchema`, `AiAnswerArtifactRefusalReasonSchema`). Each `code` list holds the route handler's codes and the framework door's, which answers ahead of the handler: `UNAUTHENTICATED` (401, no session), `NOT_IMPLEMENTED` (501, no AI served) and `SERVICE_UNAVAILABLE` (503, AI routes not yet published). - -A persisted conversation's messages may now carry the turn they were written under: `AiConversationSchema.messages` is `AiConversationMessageSchema` (`AiMessageSchema` plus a `turnId` that may be absent or null), and the `AIConversation` contract's `messages` are `AIConversationMessage` (`ModelMessage` plus `turnId?: string | null`). A stored conversation whose messages carry no turn, absent or null, still parses, and a service that writes none still satisfies the contract. diff --git a/.changeset/32958-storage-sync-notice-wording.md b/.changeset/32958-storage-sync-notice-wording.md deleted file mode 100644 index 3ef98e70206..00000000000 --- a/.changeset/32958-storage-sync-notice-wording.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/metadata-protocol': patch ---- - -fix(metadata-protocol): the `object-storage-sync-refused` advisory reads true on every door that raises it - -Clause-②: no -Metadata-protocol: none - -The warning a refused storage sync puts on the answer is raised by the save, publish, rollback and revert doors, but its text spoke of "this save" and told every caller to "publish the object again". It now names no door ("the columns this change added"), and its hint names the remedies that work from each of them: restarting the server, or the next live write of the object, both of which run the storage sync again. The rule id, severity and the quoted driver reason are unchanged. diff --git a/.changeset/33345-sweep-refusal-copy.md b/.changeset/33345-sweep-refusal-copy.md deleted file mode 100644 index 14c2d20674c..00000000000 --- a/.changeset/33345-sweep-refusal-copy.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@objectstack/spec': patch -'@objectstack/metadata-protocol': patch -'@objectstack/plugin-security': patch -'@objectstack/cli': patch ---- - -fix: four refusals say what the author can act on — the clone control by its console label, an empty or short unknown key, and an unknown CLI command - -Clause-②: no -Metadata-protocol: none - -Nothing new is accepted or refused; only the words change. - -- **Packaged permission sets.** The `ITEM_LOCKED` save refusal and the `NOT_OVERRIDABLE` lock refusals sent the admin to a "Clone" action. Studio's Access pillar and Setup label that control "New similar" ("新建类似" in a Chinese session), so the diagnostic and both end-user messages, in every language they ship, now name it that way. -- **Unknown keys.** A refusal naming an empty key printed it as empty backticks; it now says "an empty key (`""`)" and offers no rename. On a key of five characters or fewer, a "Did you mean" rename is offered only when the declared key is one edit away, counting a swap of two adjacent letters as one: `lable` → `label` is still offered, while a removed `aria` is no longer answered with `areas`. -- **CLI.** `os ` and `os ` still exit 2 without running anything, and now name the command as typed (`command environments frobnicate not found`) and end with the help that lists the real ones (`See more help with \`os environments --help\``). diff --git a/.changeset/33552-share-link-label-hidden.md b/.changeset/33552-share-link-label-hidden.md deleted file mode 100644 index 4bf73ec6b2e..00000000000 --- a/.changeset/33552-share-link-label-hidden.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -'@objectstack/types': patch -'@objectstack/plugin-sharing': patch -'@objectstack/runtime': patch -'@object-ui/console': patch ---- - -fix(share-links): the share-link page names the shared object by its label in the reader's language and no longer lists the fields the object hides - -Clause-②: yes (widening) -Metadata-protocol: none - -`GET /api/v1/share-links/{token}/resolve` answers two more facts, on both of its mounts (the sharing plugin's route and the runtime dispatcher's `/share-links` domain): - -- `link.object_label` — the shared object's label in the request's locale: the request's `Accept-Language` top tag, else the i18n service's default locale, translated the way `GET /meta/object/NAME` translates it: the translation bundle over the served `label`, with the deployment's fallback locale and authored language, and the object's packaged declaration read through the metadata protocol. A renamed object therefore keeps its rename and is not given the bundle's translation of its old label. With no i18n service, or no bundle entry for that locale, the served label is served. An object that declares no label carries no `object_label`. -- `fields[NAME].hidden: true` — for a field the object declares hidden, including the injected scope and queue columns, which are hidden at their source. A field that is not hidden carries no `hidden` key. - -Both public share-link routes (`/resolve` and `/messages`), on both mounts, now answer `Vary: X-Share-Password, X-Share-Password-Encoding, Accept-Language` (the new `SHARE_LINK_PUBLIC_VARY` in `@objectstack/types`). Before, they sent only the two password headers. They still send `Cache-Control: no-store`. - -`ShareLinkResolvedLink` and `ShareLinkFieldDisplay` (`@objectstack/types`) gain the two optional keys, and `buildShareLinkResolveAnswer` takes an optional fourth argument with the request's `Accept-Language` value, the i18n service and the metadata protocol. `registerShareLinkRoutes` (`@objectstack/plugin-sharing`) takes optional `i18n` and `protocol` resolvers, which `SharingServicePlugin` wires to the kernel's `i18n` and `protocol` services. - -The console's share-link page (`@object-ui/console`) titles the page with the label ("Shared Client Brief"), falling back to the object's name from a server that does not send one, and leaves off every field the answer marks hidden, as the record page does. Its resolve and messages requests state the console's UI language as `Accept-Language`, so the label arrives in the language the rest of the page is in. - -Nothing to migrate: a caller that reads neither key is unaffected. diff --git a/.changeset/33581-plugin-detail-core-subpath.md b/.changeset/33581-plugin-detail-core-subpath.md deleted file mode 100644 index db609acb791..00000000000 --- a/.changeset/33581-plugin-detail-core-subpath.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@object-ui/plugin-detail': patch -'@object-ui/app-shell': patch -'@object-ui/console': patch ---- - -perf(console): the first load stops downloading the grid and detail packages; `@object-ui/plugin-detail/core` publishes the detail helpers without registering anything - -Clause-②: yes (widening) — one new published `exports` subpath, `@object-ui/plugin-detail/core`, joins what the package accepts; nothing is removed or renamed, and the package root exports the same names as before -Metadata-protocol: none - -`@object-ui/plugin-detail` registers its detail and record-page renderers with `ComponentRegistry` when its root entry is evaluated, and the root reaches every detail surface (and, in the console's build, the grid it draws with). A host that imported one pure helper from the root therefore kept the whole package. The package now publishes a `/core` subpath that registers nothing: `isRefusedFeedRead`, `relatedListEntryNames`, `RELATED_ARRANGEMENT_RECORD_VERSION`, `relatedArrangementFromRecord`, `relatedArrangementToRecord`, `deriveFieldGroupDetailSections`, `deriveHighlightFields`, `resolveDetailSections`, `isWideFieldType`, `prefetchRelatedCounts`, `relatedCountTargetsIn`, `COMPACT_RELATED_ROWS`, `normalizeRelatedListSort`, `seedQueueClaimDecision`, `seedRecordFieldAccess`, `seedRecordVerdict`, and the type `RelatedArrangement`. - -The same names stay exported from the package root, unchanged; nothing to migrate. The subpath ships ESM only (`import`), as the other `/core` subpaths do. The package's ESM build now emits one file per source module (`dist/index.js`, `dist/core.js` and the modules they import), so the record-page caches a `/core` seed writes are the ones the root's hooks read; the UMD build (`dist/index.umd.cjs`) is unchanged. - -The console (`@object-ui/console`, and the shell it draws, `@object-ui/app-shell`) takes these helpers from the subpath, draws the record pointer card's key fields and the approval decision's child tables through `lazy()`, loads the dev-only row-actions page lazily, and registers the tags the grid and detail packages register (`object-grid`, `view:grid`, `detail-view`, `detail-section`, `view:detail`, and the eleven `record:` blocks `details`, `related_list`, `highlights`, `activity`, `chatter`, `discussion`, `path`, `quick_actions`, `history`, `reference_rail`, `alert`) as lazy stubs with the namespaces those registrations declare. Neither package is downloaded on the first load any more; the list and record routes load them with their own route chunks, and any other surface loads them, and registers once, the first time it draws a grid or a detail block. What every page draws is unchanged. diff --git a/.changeset/33691-scenarios-strict-pending-confirmation.md b/.changeset/33691-scenarios-strict-pending-confirmation.md deleted file mode 100644 index cde410b3e90..00000000000 --- a/.changeset/33691-scenarios-strict-pending-confirmation.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@objectstack/scenarios': patch ---- - -fix(scenarios): an irreversible operation the agent applied with its own `confirm: true` fails `pending_confirmation` again: the temporary relaxed grade is off, and its names are deprecated - -Clause-②: no -Metadata-protocol: none - -The scorer carried a temporary rule: a `pending_confirmation` operation was also met when the agent applied it through a business action declaring `ai.requiresConfirmation: true`, sending `confirm: true` itself, on an ask that named the target row. It existed because the platform could not tell a person's confirmation from the caller's own. The platform now refuses the caller's own `confirm`, and hands a gated call without it to the person, so the rule is off: `AGENT_CONFIRMATION_MEETS_PENDING` is `false`, and every `pending_confirmation` operation is graded strictly again (the agent asks first and writes nothing; the person's confirmation turn grades the write after it, as before). On the runner's door the hand-off of a call without `confirm` (`ACTION_CONFIRMATION_REQUIRED` on a host with no pending-confirmation service) reads as the agent stopping with nothing applied, which meets `pending_confirmation`; a call that still carries `confirm` is refused, and an agent that stops on that refusal fails. - -No export is removed. The rule-only names stay exported and are marked `@deprecated`, to be deleted in the next major: `AGENT_CONFIRMATION_MEETS_PENDING`, `confirmedByAgent`, `AgentConfirmedObservation`, `AgentConfirmationRule`, `OperationObservation.agentConfirmed`, `GradeOperationOptions.agentConfirmation`, `GradeOperationOptions.acceptAgentConfirmation`, `actionGatesOf` and `ConfirmationTally.confirmedByAgent`. Until then a direct `gradeOperation` call that still wants the relaxed reading passes `acceptAgentConfirmation: true`; `gradeCardOperation`, and so the runner, takes no such option. `askNamesTarget`, `AskNaming`, `askedFirst` and `OperationGrade.confirmation` are unchanged: the confirmation turn reads them. - -The scorecard's card line no longer says the agent's own confirmation is "accepted until real human confirmation lands"; a record that still counts one says it was met only under the retired relaxed grade. diff --git a/.changeset/33787-shared-record-ids-switch.md b/.changeset/33787-shared-record-ids-switch.md deleted file mode 100644 index f394f3109ad..00000000000 --- a/.changeset/33787-shared-record-ids-switch.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -'@objectstack/plugin-sharing': patch -'@objectstack/plugin-security': patch -'@objectstack/spec': patch ---- - -fix(plugin-sharing)!: every share grant counts; the sharing scopes carry the share-grant leaf instead of a list capped at 5,000 grants (ADR-0155 plan step 6) - -Clause-②: yes (narrowing) -Metadata-protocol: none - - - -**What was wrong.** The read scope of a sharing-scoped object read the caller's share grants into an id list first, at most 5,000 of them, and dropped the rest without a word: a member holding 6,000 grants on one object saw 6,000 rows of 7,000 (1,000 owned plus 5,000 of the 6,000 shared), and a GET of an unread grant answered 404. The predicate-update scope had the same cap on edit-level grants. - -**Now.** `buildReadFilter` and `buildWriteFilter` carry the share arm as the share-grant leaf, `{ id: { $in: SharedRecordIds.read(object, user) } }` (the update scope carries `.write(object, user, ['edit', 'full'])`), which the SQL driver compiles as a subquery over `sys_record_share` inside the same statement. Every grant counts, at any number; no grant is read into memory and nothing binds one parameter per grant. The pending-approval ids stand as a disjunct of their own. `delete` scopes to the owner match alone, as before. - -**BREAKING**, in three places, each a tightening that lands here, where it takes effect: - -- **Share grants stop counting on objects whose storage cannot evaluate them** (ADR-0155 R2). An object stored on another datasource than `sys_record_share`, or by a driver that does not evaluate the leaf (`supports.fixedReadLeaves` without `SharedRecordIds`: today the MongoDB, in-memory and OData drivers), keeps its owner, queue and pending-approval access unchanged, but its share rows are no longer consulted: no scope carries the share arm, the edit gate reads no grant, and a new grant or a new sharing rule on it is refused `SHARING_NOT_ENABLED` (422 at the REST doors). The boot names, once at `warn`, every such object that holds `sys_record_share` rows, with the reason. `security/explain` reports each share on such a record as evaluated and not granting, and says why. - The fix for a host: to share such an object's records again, store it on the datasource of `sys_record_share`, on a driver that evaluates share grants (the SQL drivers do). -- **A narrowing of `sys_record_share` reads registered BY NAME refuses the boot** (ADR-0155 R1 at boot, D4). A host that registers an object-scoped middleware, or a `beforeFind` / `afterFind` hook, for `sys_record_share` (an opt-in of that table into plugin-audit's record-view auditing included) no longer starts: the boot fails at `kernel:bootstrapped`, before any request is served, with `INTERNAL_ERROR` / 500 naming the registration. No registration is exempt, one whose handler skips system reads included. A registration made after boot is refused at read by the engine, with the same envelope. - The fix for a host: remove that registration for `sys_record_share`. A host that opted the table into record-view auditing gives up that auditing of share rows. -- **A narrowing that names NO object is not run on the share arm.** A middleware or a find hook registered for no object, or for `'*'`, ran on today's grant read, which went through the engine as a system read. The share arm now makes no engine read of `sys_record_share`, so such a registration does not run on it, and nothing refuses, reports or logs that. On a host where such a registration changes a system read of `sys_record_share`, the share arm's rows can differ from what they were. This paragraph is the telling (ADR-0155 D4's boundary; `ISharingService`'s contract says the same). The repository's own registrations of that kind were read before this change, and none changes that read. - -**Preconditions this step inherits from the PostgreSQL key-type change** (ADR-0155 O2): - -1. On PostgreSQL, a statement holding the leaf whose catalog read fails, or finds no such relation, answers `INTERNAL_ERROR` / 500, where an uncast statement would have run. -2. Each transaction pays one savepoint and one catalog read per table it compares a leaf against, when the table has no pooled reading. -3. A failed catalog read inside that savepoint rolls back the caller's concurrent statements on the same transaction. The sharing plugin issues no statement of its own that carries the leaf, and none of its reads runs inside a caller's transaction or concurrently with another on one: its own reads are sequential system reads. - -**What it costs, quoted no wider than ADR-0155 quotes it.** For the scope statements alone (an account page, its total and the two grant reads), at 1M rows and 5,000 grants, the id-list scope against the subquery scope read PostgreSQL 21.6 → 7.0 ms and SQLite 18.3 → 12.1 ms. It is not a whole-request figure. For a caller holding no grant, whose scope was the bare owner match and is now an `$or` with the subquery, SQLite still serves the page and its total from the owner index; PostgreSQL 16 serves the page as before but plans the total as a sequential scan, which grows with the table: measured, that caller's total went from 1.46 to 7.29 ms at 100k rows and from 7.88 to 42.21 ms at 1M, the page flat at both. SQLite keeps the owner index. Follow-up #36034 measures `id = ANY(ARRAY(SELECT …))` against the subquery for that caller on PostgreSQL. diff --git a/.changeset/33840-analytics-empty-projection.md b/.changeset/33840-analytics-empty-projection.md deleted file mode 100644 index e6abce5d8dc..00000000000 --- a/.changeset/33840-analytics-empty-projection.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@objectstack/runtime': patch ---- - -fix(runtime)!: an analytics query that selects nothing answers 400 `VALIDATION_FAILED` at the entry instead of the engine's 500 - -Clause-②: no (narrowing) -Metadata-protocol: none - - - -**BREAKING** for a caller of `POST /api/v1/analytics/query` or `POST /api/v1/analytics/sql` whose body has `measures: []`, no `dimensions` (absent or empty) and no `timeDimensions` entry carrying a `granularity`. - -- FROM: the body passed the entry check and reached the engine. `/analytics/query` ran `SELECT FROM ""` and answered `500 DATABASE_ERROR`; `/analytics/sql` echoed the same broken statement as a 200. - Where the engine refused such a body before choosing a strategy, it answered that refusal instead, and those answers move to the 400 too: an unknown cube or a `public: false` one (`404 CUBE_NOT_FOUND`), a cube over an object the caller may not read (`403 PERMISSION_DENIED`), and an `order` key naming no selected member (`400 INVALID_FIELD`). On a deployment the ObjectQL strategy serves, `/analytics/query` answered a 200 with one row that carries no column. -- TO: both doors refuse that body with `400 VALIDATION_FAILED` and one `details.fields[]` entry at `measures` (code `min_items`) telling the caller to select at least one measure or dimension, and the analytics service is not called. - -**Not moved.** A dimension-only query, a query with one measure, and a query whose only selection is a bucketed time dimension are unchanged. A time dimension that carries only a `dateRange` is a filter and does not count as a selection. - -The fix for a caller: name at least one measure or dimension (or a time dimension with a `granularity`) in the query. diff --git a/.changeset/33865-package-create-toast.md b/.changeset/33865-package-create-toast.md deleted file mode 100644 index 66655f2b7c5..00000000000 --- a/.changeset/33865-package-create-toast.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -fix(console): creating a package answers with a toast naming the new package - -Clause-②: no -Metadata-protocol: none - -Creating a package (Studio's *New app*, the Studio package switcher's *New package*, and the Packages page) closed the dialog and moved on with nothing on screen saying the write landed. The create dialog now shows a success toast naming the new package by its display name: "Created package “NAME”." (zh: 已创建软件包「NAME」。). A refused create shows no toast and keeps its message in the dialog, as before; saving an edit is unchanged. - -New locale key: `engine.packages.create.created` in the studio catalogue (en, zh). No props or exports change. - -Revoke on a granted suggested binding in Studio Access already answers with its toast ("“SET” is no longer granted by default."); a new pin on the Studio mount holds it. diff --git a/.changeset/33911-extension-sibling-currency-field.md b/.changeset/33911-extension-sibling-currency-field.md deleted file mode 100644 index 62bb3b99bdf..00000000000 --- a/.changeset/33911-extension-sibling-currency-field.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -'@objectstack/objectql': minor ---- - -fix(objectql): an `object_extension` whose record-mode amount names a sibling `currencyField` the served object does not hold is refused at the save, not at every write - -Clause-②: no (narrowing) -Metadata-protocol: narrowed -Skills-docs: none — `skills/objectstack-data/rules/field-types.md` already says a record-mode amount's code lives in the `text` field `currencyField` names, declaring `valueDomain: 'iso_4217_currency'`, with no carve-out for an extension; the refusal now makes that true for an extension's amount, and its text carries the prescription - - - -**BREAKING** accept-set narrowing, shipped as `minor`. An object body whose record-mode amount names a one-segment `currencyField` it does not declare, or a field holding no ISO 4217 code, is refused `422 INVALID_METADATA` at parse. An extension's amount cannot be judged there, because its pointer may name a field only the owner declares, and the record-currency follow door judged an extension only on the two-segment `MASTER_DETAIL.CODE` path. So `PUT /api/v1/meta/object_extension/showcase_invoice` adding `fee: { type: 'currency', currencyConfig: { currencyMode: 'record', currencyField: 'zz_missing' } }` answered 200 and was served, and every later write of `fee` was refused `ERR_CURRENCY_CODE_REQUIRED`, prescribing a write into `zz_missing`, which does not exist. - -- **The verdict.** The follow door (`SchemaRegistry.objectRegistrationRefusal` with `againstRegistry`, and the end of an install, upgrade or reload on a running server) now judges a one-segment pointer against the object AS SERVED: its base, every enabled extension, and the incoming body. A pointer naming no other field, or a field that is not a `text` field declaring `valueDomain: 'iso_4217_currency'`, is refused `422 INVALID_METADATA` (`RecordCurrencyFollowRefusedError`), naming the amount, the pointer and the object's code-field candidates; nothing is stored. -- **Admitted as before.** A pointer naming a code field the owner declares, the same extension adds, or another enabled extension adds. -- **The owner's end.** An owner re-registering without the code field an extension's amount names is refused, naming the package that adds the amount. -- **Runs and single saves.** An install, upgrade or reload that leaves such a pointer as it found it is not refused over it. A published single save and the batch writers judge with the slot left empty: re-publishing an unchanged extension whose pointer a cold boot admitted is refused, and so is a published save of the owner while an extension's amount names no code field. Correct that extension's pointer (or uninstall it), then save the owner again unchanged. -- **Not asked.** The cold boot: packages installed before this release keep loading. - -One-line fix: point the amount's `currencyField` at the extended object's ISO 4217 code field (the refusal lists the candidates), or add one in the same extension and name it. diff --git a/.changeset/33932-seal-lock-stalled-session.md b/.changeset/33932-seal-lock-stalled-session.md deleted file mode 100644 index ea85db01e20..00000000000 --- a/.changeset/33932-seal-lock-stalled-session.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@objectstack/objectql': patch -'@objectstack/plugin-audit': patch ---- - -fix(objectql, plugin-audit): a database session lock whose connection stalls no longer hangs the audit sealer, `os migrate audit-* --apply` or a migrator's release - -Clause-②: no -Metadata-protocol: none - -A held database session lock (the audit seal lock, and the schema-migration lock) used to wait for its connection with no limit when it checked or let go of the lock. A connection stalled half-open, with no reply and no reset, never fails a statement, so the liveness probe (`select 1`), the unlock statement and the close of the raw connection could each wait for good. That hung a sealer pass checking its lock before a checkpoint, the `finish()` of an `os migrate audit-* --apply` run, and a migrator's release. - -Each of the three steps now gives up after 10 seconds (`DATABASE_SESSION_LOCK_ANSWER_MS`). A live session answers each one in milliseconds and waits exactly as before. - -- A probe the session does not answer in time reads as a lost lock. The session is not probed again, and the release sends it no unlock: it closes the connection, which releases the lock. -- An `--apply` run whose lock's session stopped answering reports the lock lost, as for a session that ended: it prints the line at error, names `os audit verify` and exits non-zero. The line now reads `(its database session ended, or stopped answering)`. -- A sealer pass whose lock's session stops answering reports that the audit seal lock lapsed and writes no checkpoint. The next pass tries again. -- The schema-migration lock runs the same statements. A release on a session that has stopped answering returns after the bound instead of hanging the migration or the boot. The lock then stays with the database session until that connection dies, as it would if the process had been killed. - -Nothing an author writes, no exported signature and no statement changes. diff --git a/.changeset/33933-knowledge-settings-with-service.md b/.changeset/33933-knowledge-settings-with-service.md deleted file mode 100644 index 64fe6de0daa..00000000000 --- a/.changeset/33933-knowledge-settings-with-service.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -'@objectstack/service-settings': patch -'@objectstack/service-knowledge': patch -'@objectstack/platform-objects': patch ---- - -fix(settings)!: the knowledge settings page and the AI page's embedder section appear only where the knowledge service is mounted - -Clause-②: no (narrowing) — narrowed: on a deployment that does not mount `KnowledgeServicePlugin` (every stock boot), `GET` / `PUT /api/settings/knowledge` and `POST /api/settings/knowledge/test` now answer `404 UNKNOWN_NAMESPACE`, where they served the Knowledge page; a write of an `ai.embedder_*` key (`embedder_provider`, `embedder_api_key`, `embedder_model`, `embedder_base_url`, `embedder_dimensions`, `embedder_batch_size`) now answers `400 UNKNOWN_KEY`, and `POST /api/settings/ai/test_embedder` answers that no handler is registered; the hub list no longer carries `knowledge`, and the Setup sidebar no longer carries `nav_settings_knowledge`. `builtinSettingsManifests` drops `knowledgeSettingsManifest`, and `aiSettingsManifest` drops its embedder section. -Metadata-protocol: none -Skills-docs: none — no skill under `skills/**` teaches the knowledge settings page or the `ai.embedder_*` keys; `skills/objectstack-ai` teaches wiring `KnowledgeServicePlugin`, which is unchanged. - - - -**BREAKING** for a deployment that does not mount the knowledge service: the knowledge base is not a default capability, so its settings are no longer offered by default. The Knowledge page, the AI page's Embedder section, their "Test connection" / "Test embedder" buttons and the Setup entry are now contributed by `@objectstack/service-knowledge` when `KnowledgeServicePlugin` is mounted beside `SettingsServicePlugin`, and only then. Values already stored under `knowledge.*` or `ai.embedder_*` stay in the database and are served again as soon as the service is mounted. - -The AI page's description no longer names the knowledge base, in every bundled locale. - -`@objectstack/service-settings` now exports `knowledgeSettingsManifest`, `knowledgeTestActionHandler`, `aiSettingsManifest`, `aiEmbedderSettingsSpecifiers`, `withAiEmbedderSection` and `aiTestEmbedderActionHandler` from its package entry, and its default `actionHandlers` map no longer registers `knowledge.test` or `ai.test_embedder`. `@objectstack/service-knowledge` depends on `@objectstack/service-settings` and declares the settings plugin in `optionalDependencies`, so the kernel inits it first. - -What to do: nothing, unless you configure an embedder or a knowledge backend from Setup. Then mount `KnowledgeServicePlugin` from `@objectstack/service-knowledge` (with a knowledge adapter plugin) beside `SettingsServicePlugin`; the page, the embedder section and the Setup entry come back with it. A host that passed its own `ai` manifest to `SettingsServicePlugin({ manifests })` adds `aiEmbedderSettingsSpecifiers` to it (or wraps it with `withAiEmbedderSection`) to keep the embedder keys. The embedder section joins only the bundled `ai` page, recognised as that very declaration; a host's own `ai` page (or one served through an option source) is left as it is, and the plugin logs a warning saying so. A host that passes its own `actionHandlers` to `SettingsServicePlugin` keeps a `knowledge` entry there only beside the knowledge manifest: without it the settings plugin refuses to register the handler for an unknown namespace at boot. - -Stored credentials: on a deployment that does not mount the knowledge service, `ai.embedder_api_key`, `knowledge.turso_auth_token` and `knowledge.ragflow_api_key` stay stored (as `sys_secret` handles) but no settings door serves, edits or clears them, and the AI page's reset clears declared keys only. To remove them, mount `KnowledgeServicePlugin` once and clear the keys from Setup, or delete their rows from `sys_platform_setting` (the `knowledge` namespace and the `ai.embedder_*` keys) and the `sys_secret` rows whose `id` those rows hold in `value_enc` (a `sec_` handle); until then the `sys_secret` orphan report may list them. diff --git a/.changeset/33986-attachment-member-set-translations.md b/.changeset/33986-attachment-member-set-translations.md deleted file mode 100644 index b35f2d97478..00000000000 --- a/.changeset/33986-attachment-member-set-translations.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/service-storage': patch ---- - -fix(service-storage): translate the built-in `storage_attachment_member` permission set - -Clause-②: no -Metadata-protocol: none - -The permission set this service contributes to every member's baseline ("Attachments: read and attach (every member)") now ships its label and description in every locale the platform's other built-in sets ship (zh-CN, ja-JP, es-ES, zh-Hant, ar, fr, pt-BR, ru, de, ko). Setup's permission-set lists in a translated Console no longer show it as the one English row. What the set grants, and when it is contributed, is unchanged. diff --git a/.changeset/33996-authored-feed-field-history.md b/.changeset/33996-authored-feed-field-history.md deleted file mode 100644 index bba611ec246..00000000000 --- a/.changeset/33996-authored-feed-field-history.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/plugin-detail': patch ---- - -fix(record-page): an authored record page's feed panels show the record's field history, and offer Field Changes - -Clause-②: no -Metadata-protocol: none - -On an authored (assigned) record page, a `record:discussion`, `record:chatter` or `record:activity` panel never showed who changed which field from what to what, never offered the Field Changes filter, and an authored `filterMode: 'changes_only'` silently opened on All Activity. The record page read the audit log only for the page it synthesizes. - -Now, on an object with `enable.trackHistory`, the record page reads the record's field history (the newest 50 audit entries, plus one user-name lookup) while one of those panels is on screen, at open or when its tab opens; a page with no such panel on screen, or an object without `trackHistory`, reads nothing more. The panel merges the field changes into its feed the way the default page's activity stream does: an update that wrote both an activity row and an audit entry is one row, now showing its before and after values; a change with no activity row is its own row; and an `updated` activity row with no audit entry steps aside, as on the stream. Field Changes is offered, and an authored `changes_only` holds those changes, exactly when the reader's audit read answered: a reader the server refuses the audit log to is offered no Field Changes, as before. A panel authored with `unifiedTimeline: false` shows no field changes and offers no Field Changes. - -Visible change on existing authored pages: on a `trackHistory` object, a feed panel's All Activity now includes the field changes with their before and after values, and its filter gains Field Changes. The default record page is unchanged. `@object-ui/plugin-detail` adds `mergeFieldHistoryIntoFeed` to its `recordTimelineStream` module (not re-exported from the package entry); no locale keys, props or entry exports change. diff --git a/.changeset/34030-refusal-labels-source-locale.md b/.changeset/34030-refusal-labels-source-locale.md deleted file mode 100644 index f458b66832a..00000000000 --- a/.changeset/34030-refusal-labels-source-locale.md +++ /dev/null @@ -1,35 +0,0 @@ ---- -'@objectstack/objectql': patch -'@objectstack/plugin-security': patch ---- - -fix(i18n)!: a refusal names fields, options and objects in the declared `sourceLocale` as authored - -Clause-②: yes (narrowing) — `ValidationMessageContext.labelTranslation` is a new optional member (a widening), and `ValidationMessageContext.translate` no longer translates the labels a refusal names (a narrowing): a direct caller of `validateRecord`, `validateInsertValues` or `evaluateValidationRules` that passes `messages: { locale, objectName, translate }` now gets the declared labels until it also passes `labelTranslation`. -Metadata-protocol: none -Skills-docs: follow-up owed — skills/objectstack-i18n/SKILL.md, evals - - - -**BREAKING** for a TypeScript caller of `validateRecord`, `validateInsertValues` or `evaluateValidationRules` (`@objectstack/objectql`) that passes its own `messages`. Engine writes are not affected: the engine builds `labelTranslation` itself from the i18n service. - -The labels a write refusal names are now resolved the way `GET /meta` serves them: `translateObject` over the deployment's translations, with the request's locale, the declared fallback chain and the authored language (`i18n.sourceLocale`, else `defaultLocale`). They are no longer looked up through `II18nService.t()`. Before this, an app authored in English that defaults its users to Chinese (`sourceLocale: 'en'`, `defaultLocale: 'zh-CN'`) answered an `en` request with the Chinese row in its validation, duplicate-record, delete-restricted and restore refusals, and in the security layer's master-detail and field-write `userMessage`. `/meta` answered the same request with the English label. - -This covers a field label, a choice option label (field entry, then the shared picklist's), an object label, the master object named by the master-detail write gate and the fields named by the field-write gate. Message templates and authored rule messages still go through `t()`. - -What follows from it: - -- In the declared `sourceLocale`, a refusal names labels exactly as declared. In every other locale it follows the same chain `/meta` does. -- The labels come from `getLocales()` and `getTranslations()`. An i18n double that implements only `t()` no longer translates labels and leaves the declared ones in place, as `/meta` already did. -- On the in-memory i18n fallback (`@objectstack/core`), which reports no `getFallbackLocale()`, a request in a locale with no bundle now gets the declared label, as `/meta` does. Before, it got the default locale's row. -- A platform-injected system field (`owner_id`, `created_at`, …) that keeps its English default label is named by the built-in translation of that label, as `/meta` names it. -- The security layer's labels now negotiate the request locale the way `/meta` does, so a `zh-TW` request reads the `zh-CN` rows, in step with its `zh-CN` sentence. - -## What a direct validator caller sees - -| `messages` passed to `validateRecord` / `validateInsertValues` / `evaluateValidationRules` | was | now | -|:---|:---|:---| -| `{ locale, objectName, translate }` | field, option and object labels translated through `translate` | declared labels in every locale; `translate` renders message templates only | -| `{ locale, objectName, translate, labelTranslation }` | not a member of the type | labels translated through `labelTranslation`, the way `GET /meta` serves them | - -What to do on upgrade: add `labelTranslation: () => ({ bundle, options })` to the `messages` you pass, where `bundle` is a `TranslationBundle` keyed by locale and `options` is a `ResolveOptions` (both from `@objectstack/spec/system`). The pair is typed `ValidationLabelTranslation`, now exported as a type from `@objectstack/objectql` and `@objectstack/objectql/core`. Nothing else changes: the call compiles as before, and no verdict, code or status moves. diff --git a/.changeset/34094-marketplace-suggested-set-label.md b/.changeset/34094-marketplace-suggested-set-label.md deleted file mode 100644 index a8d0e767885..00000000000 --- a/.changeset/34094-marketplace-suggested-set-label.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(console): the Marketplace package page names a suggested binding's permission set by its label - -Clause-②: no -Metadata-protocol: none - -After a package that suggests a default audience binding is installed, the Marketplace package page shows "this app suggests granting SET to Everyone" with Grant and Dismiss, and later the accepted line with Revoke. Its prompt, its state lines and its Grant, Dismiss, Revoke and Reopen toasts named the permission set by its machine name (`crm_user`). They now name it by its label (`CRM user`), read from the package's own permission sets as this runtime serves them (`list('permission', { packageId })`, the read the Studio Access rail makes). A set with no label, or a read that is refused or fails, names the set by its machine name, with no error shown. - -The Studio Access mount of the same banner and this page now draw the name through one shared helper, `suggestedSetLabel` (`components/suggestedSetLabel.ts`), so the two mounts cannot name the same set differently. No locale keys, props or exports change. diff --git a/.changeset/34121-access-policy-field-helps.md b/.changeset/34121-access-policy-field-helps.md deleted file mode 100644 index b2e5d657014..00000000000 --- a/.changeset/34121-access-policy-field-helps.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/service-settings': patch ---- - -fix(settings): Setup → Access policy explains its five fields in the admin's language - -Clause-②: no -Metadata-protocol: none - -On Setup → Access policy, the help under Allowed IP ranges, Idle timeout, Absolute session lifetime, Max concurrent sessions per user and Require multi-factor authentication showed the English manifest description in every translated locale, because no locale bundle carried a `help` for those keys. All ten translated locales (zh-CN, zh-Hant, ja-JP, ko, de, es-ES, fr, pt-BR, ru, ar) now carry `settings.access_policy.keys.KEY.help` for each of the five, translated from the English description. The settings translation coverage test no longer exempts them: its shrink-only owed-help list is empty, so every described settings field is held to a translated help in every locale. No keys, labels or option values change. diff --git a/.changeset/34122-condition-subjects-label-first.md b/.changeset/34122-condition-subjects-label-first.md deleted file mode 100644 index c4cb4365d76..00000000000 --- a/.changeset/34122-condition-subjects-label-first.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/console': patch ---- - -fix(console): Studio condition editors list fields by their label - -Clause-②: no (`@object-ui/app-shell` is `"private": true`; flipping the `labelSubjects` default reaches no published export) -Metadata-protocol: none - -The subject list of every Studio condition editor now offers a field by its label, with its CEL path (`record.status`) beside it as secondary text: a hook's "Run only when", an action's "Visible when" and "Disabled when", a page block's "Visible when", and the generic condition field of the metadata forms. The flow Entry condition and the object Validations panel already did. A field with no label, or whose label only repeats its name, still reads as its path. The compiled condition is unchanged. diff --git a/.changeset/34170-export-signed-body-readers.md b/.changeset/34170-export-signed-body-readers.md deleted file mode 100644 index 1506b0f1ac3..00000000000 --- a/.changeset/34170-export-signed-body-readers.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@objectstack/plugin-audit': patch ---- - -feat(plugin-audit): export the readers that rebuild a stored checkpoint or amendment row into its signed body - -Clause-②: yes -Metadata-protocol: none - -`@objectstack/plugin-audit` now exports `checkpointBodyFromRow` and `amendmentBodyFromRow` from its package entry, with the two body types they answer, `CheckpointSignedBody` and `AmendmentSignedBody` (ADR-0154 D11). - -A checkpoint sink (`audit.checkpointSink`) is handed each signed checkpoint and amendment once, and re-delivers what a failed call missed by re-reading the stored records. Read from an unaltered stored `sys_audit_checkpoint` or `sys_audit_amendment` row, these readers answer the body the sink was handed: its RFC 8785 serialization is the bytes the row's `signature` covers, so a sink outside the package can rebuild and re-send a record without copying the body's shape or its parsing. A malformed row is refused with an error whose `name` is `SignedBodyError` and whose message names the field. - -The readers validate and normalize; they never verify the signature. A row whose signed columns were rewritten reads back into a body that fails verification (a rewrite of an unsigned column, `id`, `chain_key` or a checkpoint's `leaf_hashes`, reads back into the same body, and a malformed one is refused with a `SignedBodyError`). A row rewritten and re-signed under a key planted on the host fails under a key the sink trusts itself. A row rewritten and re-signed by whoever holds the genuine signing key verifies, and only the copies already off the host can catch it: a later checkpoint's signed `previous_digest` no longer matches a rewritten checkpoint, while no later record carries an amendment's digest at all. So a sink verifies the row's `signature` over the rebuilt body, under a key it trusts itself, before it treats the row as delivered. - -A sink assembles the entry it re-delivers itself: `kind` is `checkpoint` or `amendment`, from the table it read; `keyId` is `body.signing_key_id`; and `signature` is the row's `signature` column. The signed bytes are the body's RFC 8785 (JCS) serialization, which the sink computes with its own serializer: this package does not export one. diff --git a/.changeset/34175-search-lookup-title.md b/.changeset/34175-search-lookup-title.md deleted file mode 100644 index f0b07718fda..00000000000 --- a/.changeset/34175-search-lookup-title.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@objectstack/metadata-protocol': patch ---- - -fix(metadata-protocol): global search titles a hit by the referenced record's title when the object's `nameField` is a reference field - -Clause-②: no -Metadata-protocol: none - -`searchAll` (the ⌘K palette and global search) titled a hit by the stored value of the object's primary-title pointer. When that pointer is a reference field (`lookup`, `master_detail`, `user` or `tree`), the stored value is the target record's id, so the hit was titled by a raw key while the record page header named the target. The title now follows the reference to the target record's own title (its `nameField`). - -- The target titles are read in one `id $in` read per searched object, never one per hit, selecting `id` and the title column only. -- The read runs as the searching user: the target's object permission, row scope and field-level security apply. A reader refused the target object, the row or its title column keeps the bare id, as `$expand` answers that reader on a field that does not declare `referenceNameVisible`. A target whose declared API exposure does not serve `get` is not read. -- A target read that fails for any other reason fails the search, as a failing record read in the same sweep already does. -- The hit's shape is unchanged: `record` still carries the stored id, and only `title` changes. diff --git a/.changeset/34182-summary-read-wraps.md b/.changeset/34182-summary-read-wraps.md deleted file mode 100644 index 956c2b31c92..00000000000 --- a/.changeset/34182-summary-read-wraps.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@object-ui/plugin-detail': patch -'@object-ui/fields': patch ---- - -fix(plugin-detail): a long text summary roll-up wraps on the record page, and the summary's read display follows dark mode - -Clause-②: no -Metadata-protocol: none - -A summary (roll-up) field whose value is text read on the record page cut to one line with an ellipsis, the whole value only in a hover tooltip, as a formula did before. The record page's field rows now read a summary through the summary field's own read display, the face the record form draws, so the whole value shows and wraps. A number or money roll-up reads the same text it did. - -That read display used a fixed grey text colour that stayed the same in dark mode. It now uses the theme's foreground colour, so a roll-up reads at full contrast in both themes. - -What does not change: list and grid rows keep the one-line cell with the whole value in its tooltip, and the record page's highlights strip keeps its face. A host that registered its own `summary` face keeps it on the record page. No metadata key, value or default changes. diff --git a/.changeset/34211-console-load-layers.md b/.changeset/34211-console-load-layers.md deleted file mode 100644 index 6c0821f7620..00000000000 --- a/.changeset/34211-console-load-layers.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/console': patch ---- - -fix(console, app-shell): discovery starts with the session check, and Setup's open no longer reads the whole object registry - -Clause-②: no -Metadata-protocol: none - -The console asked for `GET /api/v1/discovery` from its main bundle, after the session check had answered and the bundle had downloaded, and the data layer waited for it before the first permission and app reads. `index.html` now sends it during parse, beside `get-session`, and the console's one shared discovery read takes that request, so it is no longer a round trip of its own in the boot. - -Opening Setup (the root of an app whose package holds no objects of its own) read the package's empty object list and then the whole object registry. The root now reads as that app's object routes do: the package list, then the objects its entries require (`requiresObject`), and an object the entered app's bundle holds is answered from the bundle without a request. On the showcase app the registry is about 860 KB; Setup's open there now reads two object lists that answer empty instead. - -What does not change: the routes that read the whole registry before (a record overlay, a record route with no declared record page) still do; which entries the sidebar shows is unchanged. No metadata key, value or default changes. diff --git a/.changeset/34212-flow-start-refusal-reason.md b/.changeset/34212-flow-start-refusal-reason.md deleted file mode 100644 index b9c1121a9a0..00000000000 --- a/.changeset/34212-flow-start-refusal-reason.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/runtime': patch ---- - -fix(runtime): an AI service account refused a confirmation-gated flow start now gets `details.reason: 'service_account'`, as the action door gives it - -Clause-②: no -Metadata-protocol: none - -When an AI service account starts a flow by name (`POST /api/v1/automation/:name/trigger` or the older `POST /api/v1/automation/trigger/:name`) and an action that targets the flow declares `ai.requiresConfirmation: true`, the route refuses it with `428 ACTION_CONFIRMATION_REQUIRED`. That refusal's `details` named the action, its object and the confirmation member, but not the reason. Every action door already gives the same account `details.reason: 'service_account'`. The flow-start refusal now carries it too, so a client that branches on the reason handles a refused flow start the same way it handles a refused action. - -What does not change: the code, the status, the message and the other `details` members are the same. A person and an OAuth-delegated agent start the flow as before. No metadata key, value or default changes. diff --git a/.changeset/34269-bulk-aggregate-result-reader.md b/.changeset/34269-bulk-aggregate-result-reader.md deleted file mode 100644 index a5d28ed55b8..00000000000 --- a/.changeset/34269-bulk-aggregate-result-reader.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@object-ui/plugin-grid': patch -'@object-ui/i18n': patch -'@objectstack/spec': patch -'@object-ui/types': patch ---- - -feat(plugin-grid): an aggregate bulk action that resolves with a `BulkActionResult` is reported per row: the rows it moved, the rows it refused with its own reasons, and the rows it did not confirm - -Clause-②: yes -Metadata-protocol: none - -The grid's bulk executor now reads the resolve value of an `execution: 'aggregate'` bulk handler. When it is a `BulkActionResult` (`{ succeeded: string[], failed: { id, message }[] }`, `BulkActionResultSchema` in `@objectstack/spec/ui`), the result panel shows how many selected rows were moved, lists each refused row under its record with the handler's `message` (and in the error CSV), and lists every selected row the result names in neither list as "not confirmed", never as succeeded. Ids are read against the dispatched `params._selectedIds`: an id outside the selection is dropped, a duplicate counts once, an id in both lists counts as failed, and when one id is in `failed` twice the first entry's message wins. A rejection is unchanged: it stays one outcome for the whole selection. - -A handler that partly succeeds no longer has to reject to avoid being reported as full success: resolve with the per-row answer instead. The `[PLANNED — not enforced]` marker is removed from `BulkActionResultSchema`'s description and its reference page, and the "all-or-nothing" wording is removed from the `bulkActionDefs` description (`@objectstack/spec`) and the `BulkActionDef.execution` TSDoc (`@object-ui/types`). - -**Declared behaviour change.** An existing aggregate handler whose own return value carries a top-level `succeeded` or `failed` member in another form (for example counts, `{ succeeded: 2, failed: 1 }`, or only one of the two lists) was reported as full success and is now reported as "unreadable": the panel says the action finished but its result could not be read, prints no per-row count, and the grid re-reads its rows when the dialog closes. To keep the success report, return a value with neither member (a summary under another name), or return both lists in the `BulkActionResult` shape. A handler that returns nothing, or a value with neither member, keeps today's report. - -The widening is additive: three new keys in every locale pack `@object-ui/i18n` publishes (`grid.bulk.resultNotConfirmed`, `grid.bulk.notConfirmedRecords`, `grid.bulk.aggregateUnreadable`). No metadata key, value or default changes. diff --git a/.changeset/34279-automation-hook-connector-text.md b/.changeset/34279-automation-hook-connector-text.md deleted file mode 100644 index c927c73d2ea..00000000000 --- a/.changeset/34279-automation-hook-connector-text.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -docs(skills): objectstack-automation names the inbound hook's answer for a disabled package's flow, and the refusal of an undeclared `connector_action` input key - -Clause-②: no -Metadata-protocol: none - -The inbound hook section gains one bullet: a flow whose package is disabled answers the door's `401 INVALID_SIGNATURE` at both its bare and its qualified address, with nothing enqueued, and a sender's retry is accepted (`202`) once the package is enabled. Text only; the neighbouring bullets are tightened to pay for it. - -The `connector_action` row and the integration recipes now say that an input key the action's `inputSchema` does not declare fails the step before dispatch, and that on an OpenAPI document nobody de-referenced a `$ref` parameter or a `$ref` / schemaless request body reads as open input, sent unjudged (a `$ref` response is still silently lost). diff --git a/.changeset/34283-announce-summary-holes.md b/.changeset/34283-announce-summary-holes.md deleted file mode 100644 index cc14c4cceea..00000000000 --- a/.changeset/34283-announce-summary-holes.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/objectql': patch ---- - -fix(objectql): a roll-up `count`/`sum` that arrives with a restart now says at boot that its stored rows hold NULL, and names `os migrate summary-nulls` - -Clause-②: no -Metadata-protocol: none - -A roll-up `summary` field added by an install in a running process is computed on the rows already stored. One that arrives with a restart (a code-defined app's new version that boots with the field, a marketplace install loaded at the next boot, a ledger entry rehydrated at boot) is not: the boot treats every roll-up it serves as already computed, so those rows kept reading NULL until one of their child rows was written, with nothing in the log. - -At `kernel:bootstrapped` the ObjectQL plugin now reads the first 100 rows of each object that owns a `count` or `sum` roll-up (one read per such object, `id` and the roll-up columns only) and, when a sampled row holds NULL there, logs one warning naming each roll-up, how many sampled rows hold NULL, and the commands that fill them: `os migrate summary-nulls --object ` (dry run), then the same with `--apply`. A `min`/`max`/`avg` roll-up is not named: NULL there is its reading of "no child rows". The boot writes nothing and never fails over this check. diff --git a/.changeset/34292-bulk-audit-row-counts.md b/.changeset/34292-bulk-audit-row-counts.md deleted file mode 100644 index 405e294ed8a..00000000000 --- a/.changeset/34292-bulk-audit-row-counts.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@objectstack/runtime': patch -'@objectstack/plugin-audit': patch ---- - -fix(audit): the action invocation row of an aggregate bulk call records how many selected rows succeeded, failed or were not confirmed - -Clause-②: yes -Metadata-protocol: none - -An `execution: 'aggregate'` bulk action is one call for the whole selection, with the ids in `params._selectedIds`. When its handler moved some rows and failed others, it resolves with a `BulkActionResult` (`{ succeeded: [ids], failed: [{ id, message }] }`, `@objectstack/spec/ui`) and does not throw. The `action_invocation` row in `sys_audit_log` recorded only `outcome: 'succeeded'` for that call, so the audit trail said a partly failed run fully succeeded. - -The outcome stays `succeeded`. When the call carried `_selectedIds` and its resolve value carries a `succeeded` or `failed` member, the row's `metadata` now also records what that value reads as under `BulkActionResultSchema`, counted by the rules the console's bulk dialog counts with: an id outside the selection is dropped, a duplicate counts once, an id in both lists counts as failed, and a selected id in neither list is not confirmed. - -- `bulk_selected`, `bulk_succeeded`, `bulk_failed` and `bulk_unconfirmed`, where `bulk_selected = bulk_succeeded + bulk_failed + bulk_unconfirmed`; -- or, when the value carries a member but does not parse, `bulk_unreadable: true` alone and no succeeded count. - -A handler that resolves with nothing, or with a value that has neither member (a summary, a download link), records the row as before. A call with no `_selectedIds`, a failed call and a `resume_run` add no bulk key. Both the REST `POST /actions/:object/:action` door (and a host's `dispatchAction`) and the MCP `run_action` tool record the counts. - -`ActionInvocationAuditEvent` gains an optional `bulk` member in both packages, and `@objectstack/plugin-audit` exports its type, `ActionInvocationBulkReading`. A reader of the ledger that lists `metadata` keys sees the new keys on these rows only. diff --git a/.changeset/34350-compare-window-path-key.md b/.changeset/34350-compare-window-path-key.md deleted file mode 100644 index 21e40800df7..00000000000 --- a/.changeset/34350-compare-window-path-key.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@object-ui/plugin-dashboard': patch -'@objectstack/service-analytics': patch ---- - -fix(plugin-dashboard): a compare widget dated on a related record's field is served through the dataset's declared date dimension over that path - -Clause-②: no -Metadata-protocol: none - -A dataset-bound compare widget (`compareTo`) sends its date window to the dataset query under the filtered field's name. The dataset query answers only declared dimensions, and a dimension name has no dot, so a window on a related record's field, such as `account.founded_at`, was refused with `400 INVALID_FIELD`. - -When such a key is in the window, the widget now reads the dataset definition and sends the window under the one declared dimension with `type: 'date'` and `field` equal to that path (for example `{ name: 'account_founded', field: 'account.founded_at', type: 'date' }`). A `compareTo.dimension` that names the window by the path or by that declared name is sent as the declared name. When no declared date dimension covers the path, or two or more do, the key is sent as authored and the dataset query still refuses it. Keys that can be dimension names, such as `close_date`, are never renamed, and widgets whose window has no such key read nothing extra. - -To serve a compare widget dated on a related record's field, declare one date dimension over that path on the dataset. - -The dataset query's `400 INVALID_FIELD` refusal for a comparison-window date key that cannot be a dimension name no longer says the comparison cannot run unless the date field is a field of the dataset's own object; it names the remedy that exists: declare one date dimension over that field (`type: 'date'`, `field` set to it, any snake_case name, the relationship in the dataset's `include`) and name it in `timeDimensions`, which a dashboard compare widget then does itself. The refusal's code, status and when it fires are unchanged. diff --git a/.changeset/34352-seal-default-chain-column.md b/.changeset/34352-seal-default-chain-column.md deleted file mode 100644 index db26e4ff593..00000000000 --- a/.changeset/34352-seal-default-chain-column.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -'@objectstack/spec': minor ---- - -feat(spec)!: a sealed object that names no `lifecycle.seal.chainField` is refused at parse when its default chain column `tenant_id` cannot chain its rows - -Clause-②: no (narrowing) -Metadata-protocol: narrowed - - - -**BREAKING** accept-set narrowing, shipped as `minor`. A `lifecycle.seal` that names no `chainField` chains each row by the default column `tenant_id` (ADR-0154 D10, note on `chainField`). That default was never judged at authoring. It is now judged by the same rules as a named `chainField`, and the object is refused with one located issue at `lifecycle.seal` in three cases. What run time did with each before: - -- (a) `tenant_id` is not a field of the object. The platform injects `organization_id`, never `tenant_id`, so it must be declared. Before: the object parsed, and the sealer reported it at `error` and sealed none of its rows. -- (b) `tenant_id` has a value that is not one text on every store (a number, boolean, date, datetime, JSON-shaped or multi-value column). Before: the object parsed, and the sealer sealed some or all of its rows (every row whose value the driver returns as a non-string) into the deployment chain with no report. -- (c) `tenant_id` is listed in `lifecycle.seal.valueFields`. Before: the object parsed and was sealed per organization, with the committed column's value carried in clear as the chain in every checkpoint. - -The judgement reads the object's own declared fields plus the columns the platform injects. A `tenant_id` that reaches the object only through an `objectExtensions` entry does not count: such an object is refused at parse, although the sealer, which reads the folded field map, would have sealed it. Declare the column on the object itself. - -The refusal fires wherever `ObjectSchema` parses: `ObjectSchema.create()` and `defineStack()` (strict by default) throw when a code-authored stack's config module is evaluated, and `os validate`, `os build` and the metadata save door refuse it. A definition that reaches the registry without the parse, including a stored `sys_metadata` row loaded at boot, still registers, and the sealer still treats it as before. - -- FROM: `{ name: 'ai_audit_log', fields: { id, created_at, payload }, lifecycle: { class: 'audit', retention: { maxAge: '90d' }, seal: { valueFields: ['payload'] } } }` parsed, and its rows were not sealed. -- TO: the same object is refused at `lifecycle.seal`: "`lifecycle.seal` names no `chainField`, so the sealer chains each row by the default chain column `tenant_id`, which is not a field of this object." - -Not moved: an object that declares a text or lookup `tenant_id`, and an object whose `chainField` names a column it has, parse as before. - -The fix: declare a text or lookup `tenant_id` field that holds each row's organization id, or name the chain column, such as the injected tenant column: `seal: { valueFields: ['payload'], chainField: 'organization_id' }`. Removing `tenant_id` from `valueFields` (case (c)) keeps every chain: nothing is re-sealed and `os audit verify` stays ok, since each earlier checkpoint is checked against the columns it was signed with. A fix that changes a row's chain value on an object that already has checkpoints (case (b), or naming a different `chainField`) re-seals the last sealed window, `os audit verify` reports it `listed_twice`, and verifying one organization with `--org` reads the rows sealed before the change as late and unsealed. diff --git a/.changeset/34374-action-texts-org-locale.md b/.changeset/34374-action-texts-org-locale.md deleted file mode 100644 index 8b74aed6686..00000000000 --- a/.changeset/34374-action-texts-org-locale.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/runtime': minor -'@objectstack/lint': minor -'@object-ui/core': patch ---- - -feat(actions): an action writes the sentences it declares in the organization's language - -Clause-②: yes (widening: a new optional authorable key `ActionSchema.texts`, and new translation keys) -Metadata-protocol: added -Skills-docs: follow-up owed — skills/objectstack-ui/rules/actions.md, skills/objectstack-i18n/SKILL.md - -A `script` action's `js` body can now write a sentence into a record in the organization's language, the way a hook does: declare it under `texts`, keyed by a snake_case key, and ask for it by key — `texts: { email_subject: { message: 'Email: {{ subject }}', params: ['subject'] } }`, then `await ctx.text('email_subject', { subject })` where the body used to write `'Email: ' + subject`. The answer is in the organization's language, because everyone in the organization reads the record: the Localization setting (`localization.locale`) when somebody set it, else the app's declared `i18n.defaultLocale`. It is never the language of the person who ran the action. The translation is picked first, then its `{{ }}` holes are filled from `params`. The entry is the hook text's, built by the same shared factory. - -- The translation sits beside the action's other copy: `objects.._actions..texts..message` for an action bound to an object, `globalActions..texts..message` for an object-less one. `os i18n extract` scaffolds the keys and the existing coverage check counts them; `objectstack validate` refuses a translation over a key the action does not declare. -- A missing translation, or no language to pick, answers the declared sentence, and the action goes on. A Localization setting that cannot be read rejects the call. -- Only declared text is translated: a string the body builds itself is written as it is. A key `texts` does not declare is refused when the action is saved if the body asks for it literally (`ctx.text('key')`), otherwise when it runs, as a fault naming the action and the key. -- `texts` is read only for a `type: 'script'` action with a `js` body (an inline `target` function is lowered to one by `os build`); on any other action, or with no body, it is refused at save. A `flow` action's record writes are the flow's own, marked and translated there (`flows..records.…`). -- A text with `params` is compiled like a hook's: a hole over another name is refused when the action is saved, and `objectstack validate`, `compile` and the publish gate refuse a hole holding logic, an unknown formatter, an empty hole and `{{ amount | currency }}` with no code. A translation whose holes do not render at run time is dropped for the declared sentence, filled. -- Text is picked when it is written. Records already written are not changed. An action without `texts` runs exactly as before. - -`@object-ui/core` lists `texts` among the spec's declared action keys, so an action carrying them is not reported as having an unknown key; the console reads nothing new, because the body stores the sentence already picked. - -New exports: `@objectstack/spec` adds `ActionTextSchema` and the `ActionText` type (`ui`), `actionTextMessageKey` (`system`), and `ACTION_TEXT_MESSAGE_HOLE_REFUSED`, `actionTextsWithoutRunnableCode`, `undeclaredActionTextKeyAtSave` and `undeclaredActionTextAtRun` (`data`); `@objectstack/runtime` adds none. Nothing that was accepted before is refused. diff --git a/.changeset/34404-remove-sso-user-audit-row.md b/.changeset/34404-remove-sso-user-audit-row.md deleted file mode 100644 index 8fbaecb6872..00000000000 --- a/.changeset/34404-remove-sso-user-audit-row.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/plugin-auth': patch ---- - -fix(plugin-auth): removing a pending person writes an admin audit row, and the host-failure texts say the removal is refused - -Clause-②: no -Metadata-protocol: none - -`POST /api/v1/auth/admin/remove-sso-user` now writes one `sys_audit_log` row for a removal that committed, through the same writer the add doors use: `action: 'delete'` on the removed `sys_user`, naming the administrator, with `metadata` `{ event: 'user.admin_removed_pending', hostNotified }` (`hostNotified` is whether the environment-user host took the cancellation of the invitation; `false` with no host wired). A refused removal (a host that cannot be reached, a host's refusal, a person who is not pending, a failed delete) writes no row. With plugin-audit uninstalled no row is written, as for the other admin user doors. - -The removal door already refused with `503 SERVICE_UNAVAILABLE` when the environment-user host could not be reached, but the `warn` line logged in that case still said "The removal goes ahead.", and the `EnvironmentUserHost` and `environmentUserHost` option docs said a host failure is only reported on a removal. All three now say the removal is refused. Behaviour of the door is unchanged. diff --git a/.changeset/34414-formula-aggregate-remedy.md b/.changeset/34414-formula-aggregate-remedy.md deleted file mode 100644 index e4705787c8d..00000000000 --- a/.changeset/34414-formula-aggregate-remedy.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/objectql': patch ---- - -fix(objectql): the engine's aggregate door answers a `sum` / `avg` / `min` / `max` over a `formula` with the stored-field remedy, not "count the rows" - -Clause-②: no -Metadata-protocol: none - -`engine.aggregate` already refused a value-reading aggregation over a `formula` field with `INVALID_FIELD` / 400 before any driver ran, but its route told the author to "aggregate a field of one of those types, or count the rows with count" — and a count substituted for a total is a plausible wrong number. The route for that pair is now the spec's one prescription, `VIRTUAL_FIELD_AGGREGATE_REMEDY` (`@objectstack/spec/data`, judged by `virtualFieldAggregateRemedy`): make it a field of its return type with the same `expression` (computed and stored on write) and aggregate that. It still comes right after "The query was NOT run.", inside the 500 characters the REST door keeps. - -Which pairs are refused does not change, nor does any other pair's wording: a refused `sum` over a `text`, `select` or JSON-stored field keeps its accepted-types route. diff --git a/.changeset/34463-composer-oversize-notice.md b/.changeset/34463-composer-oversize-notice.md deleted file mode 100644 index 510b8adfb7e..00000000000 --- a/.changeset/34463-composer-oversize-notice.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@object-ui/plugin-chatbot': patch -'@object-ui/i18n': patch ---- - -fix(plugin-chatbot): a file over the chat composer's size limit is named to the user with the limit, instead of only reaching `console.warn` - -Clause-②: yes (widening) -Metadata-protocol: none - -The two widenings are additive: the new key `chatbot.composer.fileTooLarge` in every locale pack `@object-ui/i18n` publishes through `./locales`, and the optional `files` field on the `onError` argument of `PromptInputProps`, exported as `AIElements` from `@object-ui/plugin-chatbot`. - -A file picked, pasted or dropped into the chat composer that is larger than `maxFileSize` (10 MB by default) used to vanish: it did not attach and nothing told the user why. `ChatbotEnhanced` now shows a notice above the composer naming every refused file and the limit, in the user's language (new pack key `chatbot.composer.fileTooLarge`, in all eleven locales). The notice closes with its close button or on the next send, and a later refusal replaces it. - -The vendored `PromptInput` now reports every over-size file of a pick through `onError` with `code: 'max_file_size'` and the refused files in the new optional `files` field. Before, it reported only a pick where every file was over the limit; a pick that mixed sizes attached the small files and dropped the large ones with no report. An `onError` handler that ignores `files` sees one more call, for a mixed pick, with the same `code`. diff --git a/.changeset/34465-predicate-update-parent-summary-rule.md b/.changeset/34465-predicate-update-parent-summary-rule.md deleted file mode 100644 index 428f9cc692f..00000000000 --- a/.changeset/34465-predicate-update-parent-summary-rule.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -'@objectstack/objectql': patch ---- - -fix(objectql)!: a predicate update judges each matched row against the parent summaries the rows judged before it move, as consecutive by-id updates do - -Clause-②: no (narrowing) -Metadata-protocol: none - - - -**BREAKING** for a predicate update (`update(object, patch, { where, multi: true })`, a flow `update_record` step with `multi: true`) of a child object whose validation rule reads a roll-up `summary` of a parent one hop through a reference (`record.inv.primaries > 0`), or whose field-level `requiredWhen` reads one on `parent` (`parent.line_count >= 3`), or that reads a `formula` or stored computed field of the parent calculated from one (`record.project.remaining`, `remaining = budget - spent`). A bulk create and a bulk update already equal one-by-one writes for a rule reading the summary itself; this extends that to the update that selects its rows by a filter, calculated parent fields included. - -- FROM: the matched rows' related parents and master-detail headers were read once, and every row judged the summary as it stood before the update: "one primary line per invoice" (`record.is_primary == true && record.inv.primaries > 0`) refused the second of two lines made primary one by one, and admitted both made primary by one predicate update. -- TO: each matched row judges the summary as the rows judged before it leave it, for `count`, `sum`, `min`, `max` and `avg`, a row moving to another parent included: the base is read in the database (every child as stored for `count` / `sum` / `avg`, the children outside the matched set for `min` / `max`, one grouped aggregate per summary a rule reads) and the matched rows are folded in memory. A parent field calculated from a folded summary is computed again over the parent with the folded value. The update is refused with `VALIDATION_FAILED` and writes nothing, as it does for any refused row. Only an object with such a rule, on an update matching more than one row, reads the base (and, when a calculated field reads a folded summary, the parents' stored rows once). -- The answer moves both ways. Mostly it narrows: main admitted a row that one-by-one refuses, and it is refused now. It also admits a row main refused when the rows judged before it move the summary toward admitting it, as one by one does. For example, with `parent.line_count >= 3` requiring a field, a row leaving that parent lowers the count the later rows read. - -**Not moved.** A rule that reads no summary, a predicate update matching one row, a by-id update, hooks and flow steps (they read the value from before the update), and a rule of the parent itself (it judges the summary once, after the write). Three cases keep reading the stored value, as before, and each one covers that summary for EVERY parent the update reads it for, not only the parent that caused it: -- a summary whose `filter` reads through another reference, as a dotted path (`{ 'account.kind': 'x' }`) or in the nested form (`{ account: { status: 'x' } }`), or that the in-memory filter walker refuses; -- a summary meeting a value that is not a number, in any matched row or in any parent's base; -- a `min` / `max` when any one parent holds more than 5,000 matched rows. - -The fix for a caller: update the rows the rule refuses on their own, or narrow the filter so the update matches the rows the rule admits. diff --git a/.changeset/34497-scenario-template-fresh-copy.md b/.changeset/34497-scenario-template-fresh-copy.md deleted file mode 100644 index 9916948531a..00000000000 --- a/.changeset/34497-scenario-template-fresh-copy.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@objectstack/scenarios': patch ---- - -fix(scenarios): template mode's iterate Run half runs an operation an earlier write would meet on a fresh copy of the iterated app, so a one-way state rule no longer leaves the operations after a transition unmeasured - -Clause-②: no -Metadata-protocol: none - -Scratch and ask modes already ran such an operation on a fresh seeded copy of the app. Template mode still wrote the moved rows back through the app's own doors, because its app holds the agent's iterate, made live through those doors, which a host booted again from the project would not hold. On a card with a state machine the write-back met the app's rule: in `asset_lifecycle`, approving scrap request DR-0006 (`submitted` → `approved`) was followed by a write-back to `submitted`, refused with 400 `VALIDATION_FAILED`, and every later operation of the half read `restore: … not measured`. - -Now template mode's copy is a blank host booted from the same project with the iterated app installed unmanaged, the same way the run's own install landed: the manifest that install sent, with each collection the app serves replaced by the items it serves after the iterate. Each served item comes off its read decorations first (`stripReadDecorations` from `@objectstack/spec/kernel`), because a served body is no valid input to its own schema until they are removed. The unmanaged install door refuses a served flow that still carries `_diagnostics` (422 `INVALID_METADATA`, measured on a blank 18.6.0 host). Measured on that host with the `travel_expense` verified build and an iterate made through `PUT /api/v1/meta/object/…` (one new object with a state-machine rule, one new lookup field): the copy serves the same objects, fields, validation rules and actions as the iterated host. The only difference is the new object's `_packageId` (`sys_metadata` on the host, the install's copy package on the copy). The card's seed loads alike there (757/757 rows, no refusal, every persona's permission set assigned). - -The result carries `restored: { freshCopy }` as in the other modes. A copy whose install is refused, that does not boot, or whose seed does not load as the run's did makes the operation NOT MEASURED with that reason. Door mode still writes the rows back. diff --git a/.changeset/34504-skills-before-hook-unit-of-work.md b/.changeset/34504-skills-before-hook-unit-of-work.md deleted file mode 100644 index f7c578fd109..00000000000 --- a/.changeset/34504-skills-before-hook-unit-of-work.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -docs(skills): the hooks skill teaches when a `before*` hook's `ctx.api` writes roll back with a refused save - -Clause-②: no -Metadata-protocol: none - -objectstack-data's `references/data-hooks.md`, "Before vs After Hooks" table: the `before*` Transaction cell no longer says only "Within transaction". It now says the hook runs in one transaction with the outer write, so a refusal anywhere in that write (a validation, a later hook, a driver constraint) rolls back the hook's `ctx.api` writes too, with no per-hook opt-out. It names the four exits: a caller's open transaction decides; a hooked object off the default datasource, or a default driver with no transactions (Turso's remote transport), opens none, so those writes stay stored after a refusal; a hook registered in code with `registerHook` opens none. It also says MongoDB needs a replica set, which was read in the driver's code and not measured. Best Practices gains one DON'T: a `before*` hook does not write business records to another datasource through `ctx.api`. Its transaction refuses that write with `CrossDatasourceTransactionWriteError`, and only an append-only ledger (`lifecycle.class` `audit` / `telemetry` / `event`) is written outside it. `evals/hooks-security-seeds-datasources.json` gains two cases, one for each rule. Four restatements in data-hooks.md were removed to pay for the new text. diff --git a/.changeset/34552-skills-build-issue-user-message.md b/.changeset/34552-skills-build-issue-user-message.md deleted file mode 100644 index d8689a2b6d2..00000000000 --- a/.changeset/34552-skills-build-issue-user-message.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -docs(skills): the api and i18n skills teach `RuntimeBuildIssue.userMessage` - -Clause-②: no -Metadata-protocol: none - -objectstack-api's SKILL.md, in the error-envelope section, names the post-publish probe report a batch publish answers (`probes`, `BuildProbeReportSchema`) and its finding element (`RuntimeBuildIssueSchema`): `message` / `fix` are English for the agent that built the app, the optional `userMessage` is the sentence for the person who published, and a client shows a person `userMessage`, never `message`, with its own generic sentence when the field is absent; the publish door reads the request's locale from `Accept-Language` alone. objectstack-i18n's SKILL.md lists the `probes` issue among the server-composed user text, which its platform locale ladder covers. The api skill points at the schema and ADR-0038 for the rest. One new eval case in the api skill grades a client that renders a build finding to a person. diff --git a/.changeset/34553-publish-toast-user-message.md b/.changeset/34553-publish-toast-user-message.md deleted file mode 100644 index a57d5b8e6c2..00000000000 --- a/.changeset/34553-publish-toast-user-message.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(console): the *Publish all* warning about a failed runtime check shows the customer's sentence, never the agent's text - -Clause-②: no -Metadata-protocol: none - -Home's *Publish all* and the draft-preview bar's *Publish* warn "Published, but verification found problems." when a publish's runtime checks (ADR-0038 L3 probes) find an error. The detail under that title printed the finding's `message`, which is English written for the AI agent that repairs the build. It now shows the finding's `userMessage`, the sentence the platform writes for the person who published, in the request's language. When no error carries one, the detail is the generic sentence the AI chat's publish-health line already shows for the same case (`chatbot.build.issuesSummary`, from the locale pack). A finding's `message` and `fix` never reach the toast. - -No locale keys, props or exports change. diff --git a/.changeset/34575-hook-texts-studio-row.md b/.changeset/34575-hook-texts-studio-row.md deleted file mode 100644 index fb5cd505b22..00000000000 --- a/.changeset/34575-hook-texts-studio-row.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/platform-objects': patch ---- - -feat(spec): the Studio hook form offers a hook's declared `texts`, and `HookContext` declares `ctx.text` - -Clause-②: yes (widening) -Metadata-protocol: added - -The added key is the type member `HookContext.text` (the authorable-surface record lists `HookContext` members); nothing a stack writes changes. - -- **Studio hook form.** `hookForm` gains a `texts` row beside `refusals`: a key-only record keyed by the snake_case key the hook's code asks for with `ctx.text`, each entry editing its `message` and `params`. An author editing a hook in the Studio can now write the `texts` the schema has accepted since 18.6.0, instead of going through the metadata API or the package source. The row's label and help text ship in all eleven metadata-forms locale packs of `@objectstack/platform-objects`. Nothing about what a hook may declare changes. -- **`HookContext.text`.** `HookContext` now declares `text?: (key: string, params?: Record) => Promise` (named `HookTextReader`), the call the runtime already binds on every path a hook runs on, declared the way `api` and `notice` are: `z.unknown()` at parse, a static cast for the type, optional because a context parsed without the runtime carries none. A typed handler no longer needs a local type to call `ctx.text`. `HookContextSchema.parse` now keeps a bound `text` instead of stripping it. \ No newline at end of file diff --git a/.changeset/34598-mongodb-zoned-bucket-refusal.md b/.changeset/34598-mongodb-zoned-bucket-refusal.md deleted file mode 100644 index 6bfe82fd7f8..00000000000 --- a/.changeset/34598-mongodb-zoned-bucket-refusal.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@objectstack/driver-mongodb': patch ---- - -fix(driver-mongodb): refuse a non-UTC date-bucket timezone on a direct `aggregate()` call instead of answering UTC buckets - -Clause-②: no (narrowing) -Metadata-protocol: none - - - -**BREAKING** for a direct `MongoDBDriver.aggregate()` call that carries a non-UTC `timezone` with a `dateGranularity` group-by item: it used to answer UTC buckets and now answers `NOT_IMPLEMENTED` / 501. It ships `patch` because it is a non-protocol breaking change (AGENTS.md Post-Task Checklist step 3): no metadata author writes a driver query, so `Metadata-protocol` is `none`, and the engine path never sends this driver a zone. - -`MongoDBDriver.aggregate()` now refuses a query that carries a non-UTC `timezone` (`DriverAggregateQuery.timezone`) together with a `dateGranularity` group-by item, answering `NOT_IMPLEMENTED` / 501 before anything is sent to the server. It used to ignore the zone and return UTC calendar buckets with no word. This driver does not declare `supports.zonedDateBucketing`, so `engine.aggregate` never sends it a zone and buckets such a query in memory; only a caller that goes around the engine is affected. No `timezone`, or `UTC`, buckets in UTC as before, and a `timezone` on a query with no date bucket is still ignored. - -Fix for a direct caller: route the query through `engine.aggregate`, or drop the `timezone` and accept UTC buckets. diff --git a/.changeset/34613-scenario-seed-no-retired-mode.md b/.changeset/34613-scenario-seed-no-retired-mode.md deleted file mode 100644 index d8ffef05342..00000000000 --- a/.changeset/34613-scenario-seed-no-retired-mode.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@objectstack/scenarios': patch ---- - -fix(scenarios): the runner's card seed and restore load under the default seed mode, not the retired `insert` - -The scenario runner wrote every card seed (and every restore of a removed seeded row) as a data-only package whose datasets declared `mode: 'insert'`. That mode is retired (#34613), and the managed install door refuses a dataset declaring it, every row of it, so no card seed loaded. The datasets now name no `mode`: the default, `ignore`, creates each row whose `id` the object does not hold and leaves one it holds as it is, which is what a fresh seed needs. A restore needs more: the install door keeps the organization's record of landed seed rows (`sys_seed_landed_key`) and withholds a recorded row that is gone, as a person's removal, so an install does not put back a seeded row a turn deleted. The restore therefore goes on through that package's sample-data reseed (`POST /api/v1/marketplace/install-local/:manifestId/reseed-sample-data`), the platform's deliberate re-seed, which inserts every missing row; and whenever the door skipped a row, the runner reads the objects back and refuses each row still not there by name, with the reason, instead of counting it as written or reinserted. The test double's seed door now judges `mode` with `SeedMode` and keeps the landed-row record, as the real door does, and pins hold that the seed and restore packages carry no retired mode and that a restore brings back a recorded row. diff --git a/.changeset/34613-seed-mode-insert-replace-retired.md b/.changeset/34613-seed-mode-insert-replace-retired.md deleted file mode 100644 index cbc2872ef90..00000000000 --- a/.changeset/34613-seed-mode-insert-replace-retired.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/metadata-protocol': minor -'@objectstack/runtime': patch -'@objectstack/cloud-connection': patch -'@objectstack/lint': minor -'@objectstack/cli': patch -'@objectstack/metadata': patch ---- - -fix(spec,metadata-protocol)!: retire the seed modes `insert` and `replace`, which inserted every record again on each replay - -Clause-②: no (narrowing) -Metadata-protocol: narrowed -Skills-docs: follow-up #34798 - - - -**BREAKING** for a seed dataset authored with `mode: 'insert'` or `mode: 'replace'`. A seed is replayed on every single-tenant boot, every package install or upgrade and every publish, and neither mode matched an existing row, so every replay inserted each record again: an un-walled install went from 1 to 2 to 3 rows over three boots, a person reference the first load had to leave empty stayed empty on the first row while only the newest copy named the person, and with a unique field the replay insert was refused and the one row stayed empty. `replace` expected the caller to clear the table first, and no load path ever clears one. - -What moves (each line FROM → TO): - -- `SeedSchema.mode` / `SeedMode` (`@objectstack/spec/data`; `defineSeed`, `defineStack({ data })`, a `seed` metadata item, a package body's seed): FROM `insert` / `update` / `upsert` / `replace` / `ignore` TO `update` / `upsert` / `ignore` (default `ignore`, unchanged). `mode: 'insert'` or `mode: 'replace'` fails parse with a prescription naming the fix; the save and publish doors refuse it with the same message. The retired pair is exported as `RETIRED_SEED_MODE_VALUES` (`@objectstack/spec/data`): it is derived from the parse refusal's own table, and the loader and the artifact door read it. -- a stored dataset that still declares one, replayed by the boot seed, the per-organization replay, the dev hot reload or a package install, upgrade or sample-data reseed (`SeedLoaderService.loadStored`, `@objectstack/metadata-protocol`): FROM inserted again on every load TO refused alone — it writes nothing, the load result carries one error with the prescription and `success: false`, and every other dataset loads. `SeedLoaderService.load()` and `validate()` refuse the dataset the same way when handed one unparsed, so a dry run reports what a real load does. -- a compiled artifact (`objectstack.json`) carrying such a dataset, booted by `os serve` / `os start` / `os dev` (the artifact door, `MetadataPlugin`, `@objectstack/metadata`): the door parses the artifact without that dataset and hands it back to the seed load, which refuses it alone; the door logs a warning naming the dataset and the fix. Everything else in the artifact registers and boots. -- `os diff` (`@objectstack/cli`) on a dataset declaring either mode: FROM "a replay inserts these again" TO a note that the mode is retired, that a replay refuses the dataset, and what to declare. -- the advisory lint rule `seed-insert-mode-duplicates-on-replay` (`validateSeedReplaySafety`, `@objectstack/lint`): FROM a warning on `mode: 'insert'` TO removed; the schema refusal does its job for both modes. The author-time rule count `os validate` / `os build` print drops by one (71 to 70 at this release). -- the save door's and the loader's hint for a key no record carries: FROM "or use mode 'insert' for rows with no natural key" TO a list of fields when no single field names a row, or `'id'` when the records carry their own ids. - -The fix: declare which field identifies a row and drop the mode (or declare `upsert` for reference data the package keeps current). Set `externalId` to the field that names a row, to a list of fields when no single field does (a junction table's `['team', 'project']`), or to `'id'` when the records carry their own ids. Rebuild the package, and reinstall it where it was installed with `os package install`, so the stored body carries the new declaration. - -No conversion is made, at load, at save or by a migration (ADR-0087 D3, entry `seed-mode-insert-replace-retired`): a keyed mode needs the field that identifies a row, and only the author knows it. Rows earlier replays duplicated are data and are left as they are. - -Unchanged: `ignore`, `upsert` and `update` datasets load byte-identically. diff --git a/.changeset/34637-approval-fault-edge-skill.md b/.changeset/34637-approval-fault-edge-skill.md deleted file mode 100644 index 3fde620a8ae..00000000000 --- a/.changeset/34637-approval-fault-edge-skill.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -docs(skills): `objectstack-automation` teaches the `fault` edge on a write after an approval decision, and what `RESUME_FAILED` carries without one - -Clause-②: no -Metadata-protocol: none - -`references/state-machines-and-approvals.md` § Branching, side-effects & rejection gains one bullet. When a step on the `approve` / `reject` branch writes a record that a record hook, a validation rule or a permission may refuse, the flow draws a `fault` edge from that step to a handler: the refusal takes that edge and the decision answers normally. Without the edge `POST …/approve` (or `/reject`) answers `500 RESUME_FAILED`: the decision stands (`finalized: true`), the run is stranded, and the body may carry `innerRefusal` (`{ code, message }`) and `userMessage`, the hook's declared sentence for the approver. One eval case covers it; its prompt asks for the flow as a TypeScript `defineFlow`. - -Paid in place, the token ceiling does not move. Four restatements were cut, each keeping another home: the send-back section's text diagram (the paragraph above it and the snippet below it trace the same path), and three bullets of § Branching: "Conditional step" (the discount-approval example's `needs_director` node and the list item above it that names the `e1` edge), the send-back pointer (the section it pointed to), and "Hard reject" (the examples' `reject` edges into an `end` node). diff --git a/.changeset/34638-resume-failure-refusal.md b/.changeset/34638-resume-failure-refusal.md deleted file mode 100644 index 840704c20d9..00000000000 --- a/.changeset/34638-resume-failure-refusal.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@objectstack/spec': patch -'@objectstack/service-automation': patch -'@objectstack/plugin-approvals': patch ---- - -fix(approvals): a recall or subflow-parent strand reports the hook refusal that stranded the run - -Clause-②: yes -Metadata-protocol: none - -When an approval decision strands its flow run because the next step was refused (a record hook's declared refusal, a validation rule, a permission), the thrown `RESUME_FAILED` already carries `innerRefusal` and the refusal's marked `userMessage`. Two doors report a stranded run on a success answer instead, through `resumeFailure`: the recall door, whose own resume stranded, and a subflow parent that stranded after the run this door resumed advanced (through `decide` and through `recall`). Those reports carried `code`, `runId`, `status` and `repairable` only, so the approver saw a stranded run with no reason. - -- `ResumeFailureReport` (`@objectstack/spec/contracts`) gains two optional members, `innerRefusal` (`{ code, message }`, the engine's `AutomationResult.innerRefusal`) and `userMessage` (the declared sentence in the language of whoever started the run, since a resumed leg keeps the starter's locale; the authored message when no person started the run). The names and shapes are the ones the thrown `RESUME_FAILED` uses. `innerRefusal` is absent when the strand met no refusal (a fault), and `userMessage` is absent unless the failure carried a marked end-user text, so it can ride alone; neither changes how `code` and `repairable` are read. `ResumeFailureDetailsSchema` is unchanged. On the resume door these members already ride the error envelope. -- `AutomationEngine.takeSubflowParentStrand` now returns the stranded parent's `innerRefusal` / `userMessage` beside `runId`, `repairable` and `error`, read from the parent's own result. -- The approvals recall door and the subflow-parent strand fill both members whenever the strand met a refusal, read the way the thrown `RESUME_FAILED` reads them: an `innerRefusal` whose `code` is outside the registered error codes or whose `message` is not a string, and a blank or non-string `userMessage`, are dropped, so a node that returns a malformed pair answers the same on the success channel as on the thrown one. - -No migration: the change only adds optional members, and a caller that ignores them reads exactly what it read before. diff --git a/.changeset/34648-skills-result-dialog-bulk-result.md b/.changeset/34648-skills-result-dialog-bulk-result.md deleted file mode 100644 index 7620f89451e..00000000000 --- a/.changeset/34648-skills-result-dialog-bulk-result.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -docs(skills): `objectstack-ui` teaches an action's `resultDialog` (its `table` format included) and the aggregate bulk handler's `BulkActionResult` - -Clause-②: no -Metadata-protocol: none - -`rules/actions.md` gains a `resultDialog` entry beside `preflight`: the keys of the one-shot dialog, the `fields` row, the six formats, and `format: 'table'` with its required `columns` (one row per element of the array, one cell per column). It states that a `text` or `code-list` cell has no copy control while a `secret` or `qrcode` cell keeps its own. A second entry says how an `execution: 'aggregate'` bulk handler's return value is read: one with a top-level `succeeded` or `failed` member is read as a `BulkActionResult`, and any other form of those members is reported as unreadable. One eval case for `resultDialog`. diff --git a/.changeset/34651-add-user-already-pending.md b/.changeset/34651-add-user-already-pending.md deleted file mode 100644 index 0168b856183..00000000000 --- a/.changeset/34651-add-user-already-pending.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@objectstack/plugin-auth': patch -'@objectstack/platform-objects': patch ---- - -feat(identity): the Add User result says when the address was already pending - -Clause-②: yes (widening) -Metadata-protocol: none - -On a cloud-managed environment, Setup → Users → Add User now says when the address you added was already waiting for its first sign-in, including when you sent only an email. Before, that answer looked exactly like a fresh add. - -- `POST /api/v1/auth/admin/add-sso-user` answers `pendingAgain: true` on a re-add of a person who is still pending, and leaves the key out on a fresh add. It never answers `false`. `alreadyPending` is unchanged and is still on every answer, so nothing an API reader reads today changes. -- The `sys_user.add_sso_user` result dialog gains an "Already pending" row that reads `pendingAgain`. The dialog skips a field whose path is absent from the answer, so the row is drawn only on a re-add; a fresh add shows no `false` row. diff --git a/.changeset/34660-value-envelope-refusal-wording.md b/.changeset/34660-value-envelope-refusal-wording.md deleted file mode 100644 index 80dc39cb57f..00000000000 --- a/.changeset/34660-value-envelope-refusal-wording.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@objectstack/formula': patch ---- - -fix(formula): a flow value envelope's date-text refusal says the run fails when the value is computed, not when a condition runs - -Clause-②: no -Metadata-protocol: none - -A flow value envelope (an `assignment` value, or a `create_record` / `update_record` `fields.*` value) that hands a `date` field's text to a call it cannot take (`timestamp(record.borrow_date)`) or does arithmetic on it (`record.due_date - record.borrow_date`) is refused by `os validate` and by `registerFlow`. The refusal reused the flow-condition sentence: "this faults wherever `record.borrow_date` holds that text when the condition runs, and a flow condition that cannot be evaluated fails the run: the flow stops at this condition …". A value slot has no condition. It now reads "… when the value is computed, and a flow value that cannot be computed fails the run: the flow stops at this step and the work the flow exists to do is not done (it does not read null)." - -- **Two codes join `ExpressionRefusalCode`** (`EXPRESSION_REFUSAL_CODES`), with the params of the code each splits from: `date-text-call-value-run-may-fail` (params of `date-text-call`) and `date-text-arithmetic-value-run-may-fail` (params of `date-text-arithmetic`). `validateExpression` serves them where `ExprSchemaHint.flowValueEnvelope` is set, in place of `date-text-call-run-may-fail` / `date-text-arithmetic-run-may-fail`. A consumer keyed to the old codes on a value envelope re-keys to the new ones. -- **Unchanged:** the same sources are refused, at the same grade (an error), at the same location, with the same leading value-envelope sentence and the same fix hint. A flow condition keeps `date-text-call-run-may-fail` / `date-text-arithmetic-run-may-fail` and `-run-fails`, byte for byte. diff --git a/.changeset/34662-flow-record-date-text.md b/.changeset/34662-flow-record-date-text.md deleted file mode 100644 index 4b5f38fcb49..00000000000 --- a/.changeset/34662-flow-record-date-text.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -'@objectstack/formula': minor ---- - -fix(formula)!: a flow condition that hands `timestamp()` a date field through `record.FIELD` or `previous.FIELD` is now refused, as the bare field name already was - -Clause-②: no (narrowing) -Metadata-protocol: narrowed -Skills-docs: none — `skills/objectstack-formula/SKILL.md` already states the `date-text-call` rule (a `date` / `datetime` field handed to a timestamp-only call, and `timestamp()` over a `date` field) with `record.FIELD` spellings and names no site it is limited to, so it now holds for a flow condition's root reads as written - - - -**BREAKING** accept-set narrowing, shipped as `minor`. 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`. The date-text checks judged only the bare name. `timestamp(borrow_date) < now()` over a `date` field was refused, but `timestamp(record.borrow_date) < now()` passed `os validate` and the publish door. The flow then failed on every run, because a date field reaches the run as its `YYYY-MM-DD` text, which `timestamp()` does not parse. - -- **The verdicts.** A `record.FIELD` / `previous.FIELD` read in a flow condition now gets the date-text checks its bare name gets, with the same code and outcome arm (`date-text-call-run-fails` / `date-text-arithmetic-run-fails` on a record-triggered flow or a sweep of the typed object, `-run-may-fail` elsewhere). The message names the read as written and prescribes `date(record.FIELD)`, or `isoDate(addDays(record.FIELD, N))` to shift by whole days. This covers the calls the text cannot take (`timestamp(record.FIELD)` over a `date` field, `isoDate(record.FIELD)` over a `date` or `datetime` field) and arithmetic on the text (`record.end_date - record.start_date`). -- **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, as it does for the bare name, and still registers the flow, so a stored flow keeps running until it is next published. -- **Not refused.** `timestamp()` over a `datetime` field. A shape the Timestamp typing already faults on (`record.due_date + 1`), which is another verdict's. An `input.FIELD` read. The run-time evaluator is unchanged. - -## FROM → TO - -| FROM | TO | -|:---|:---| -| `timestamp(record.borrow_date) < now()` | `date(record.borrow_date) < now()` | -| `timestamp(previous.borrow_date) < now()` | `date(previous.borrow_date) < now()` | -| `isoDate(record.picked_up_at) == '2026-11-16'` | `isoDate(date(record.picked_up_at)) == '2026-11-16'` | - -One-line fix: in a flow condition, parse a date field with `date(record.FIELD)` before comparing it with a timestamp, never `timestamp(record.FIELD)`. diff --git a/.changeset/34681-bare-write-doors-follow-base.md b/.changeset/34681-bare-write-doors-follow-base.md deleted file mode 100644 index 7c9ec519e80..00000000000 --- a/.changeset/34681-bare-write-doors-follow-base.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@objectstack/metadata-protocol': patch ---- - -fix(metadata-protocol): the save, delete, publish, draft, history, diff and rollback doors naming no package write and read the base's row where the read naming no package serves it - -Clause-②: yes (widening) -Metadata-protocol: none - -A bundled item (an email template's locale, for example) that no package ships in code can be stored as a row by a base package and, at the same member, by a package that declares that base. The read naming no package already serves the base's row there. The write doors naming no package now resolve the same address: the save (publish and draft mode), the per-item publish, the delete and the draft discard act on the base's row or draft, and the history, the diff and the rollback read and restore the base's own versions, as the same request naming the base (`?package=` on the REST door, `packageId` in process) does. The base is judged as named: bound to an id no installed package has, the save in either mode is refused `422 WRITABLE_PACKAGE_REQUIRED`. (The per-item publish naming no package still states no package to the runtime authoring gate, as every publish naming no package does.) Before, each was refused `409 RESOURCE_CONFLICT` naming both packages, so an item that opened fine could not be saved. - -The dependent package's row stays where it is and is still read and written at its own `?package=`. Where the base is read-only, the save, the delete, the draft discard and the rollback now answer what naming the base answers (for the save, `422 WRITABLE_PACKAGE_REQUIRED` naming the base) instead of the `409`. After a delete naming no package removes the base's row, the read naming no package serves the dependent's row, and the delete's receipt names it as still stored; a second delete naming no package removes the dependent's row too, and the base's copy comes back only by saving it again. The rollback's receipt now names the package of the row it restored, as the delete's receipt does. - -Unchanged: two packages holding the member with neither declaring the other, a package-less row beside the holders, and a type with no members are still refused `409` naming every holder. diff --git a/.changeset/34681-spec-bare-doors-follow-base.md b/.changeset/34681-spec-bare-doors-follow-base.md deleted file mode 100644 index 3b4126fefb0..00000000000 --- a/.changeset/34681-spec-bare-doors-follow-base.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/spec': patch ---- - -docs(spec): the request texts state that a request naming no package follows the row-held base - -Clause-②: yes (widening) -Metadata-protocol: none - -The `packageId` descriptions of the save, draft save, per-item publish, delete and history/diff/rollback requests (`HISTORY_PACKAGE_SELECTOR_DESCRIPTION`) said a request naming no package is refused `409 RESOURCE_CONFLICT` wherever an item's active rows are bound to two or more packages. They now state the exception the server answers: a bundled type's member that a base package and a package declaring it both hold, with no package-unbound row beside them, is the row-held base's, as the read naming no package serves it, and the request addresses the base's row, draft or versions as naming the base does. Two packages neither of which declares the other are still refused `409`. The delete text states the consequence: the dependent's row is served next, a second delete naming no package removes it too, and the base's copy comes back only by saving it again. Description text only; no schema shape, key or accepted value moves. diff --git a/.changeset/34682-bundle-member-selector.md b/.changeset/34682-bundle-member-selector.md deleted file mode 100644 index 0ba630f74ee..00000000000 --- a/.changeset/34682-bundle-member-selector.md +++ /dev/null @@ -1,41 +0,0 @@ ---- -'@objectstack/metadata-protocol': patch -'@objectstack/spec': patch ---- - -fix(metadata-protocol)!: the read naming no bundle member addresses the canonical member alone, as `?member=en-US` and `/published` do - -Clause-②: no (narrowing) -Metadata-protocol: none -Skills-docs: none — no page under `skills/**` or `content/docs/**` teaches the read naming no member of a bundle that has no canonical member; `content/docs/references` prints the selector sentence this change now follows, and the ADR-0146 paragraph of `skills/objectstack-platform/SKILL.md` names members only at a base or a package address. No taught sentence moves. - - - -**BREAKING**: where the address holds no canonical member of a bundled name, the read naming no member (`GET /meta/TYPE/NAME`, with or without `?package=`), `/layers` naming none and the execution read naming none move from serving another member (200) to `404 RESOURCE_NOT_FOUND` (the execution read: `null`). Name the member (`?member=fr-FR`) to read it, as before. - -The by-name doors' member selector reads a request naming no member as the canonical one (`en-US` for `email_template`), and naming the canonical value is the same request. That is the selector's declared contract (`GetMetaItemRequest.member`). For a bundle with no canonical member, the two requests got different answers: - -- The plain read `GET /api/v1/meta/email_template/NAME` and `/layers` served the bundle's other member (for example `fr-FR`, status 200). The execution read (`getMetaItemForExecution`) returned that member too. -- `?member=en-US` and `/published` answered 404. - -The same split held in two more arrangements: - -- A base ships only `fr-FR` and a dependent that declares it stores `en-US`. The read naming no package and no member served the base's `fr-FR`. -- `?package=X` where X ships no `en-US` while another package does (a dependent, or a disabled holder that the read naming no package re-addresses past to X). The read naming no member served X's `fr-FR`. `?package=X&member=en-US` answered nothing. - -For a bundle that only stores a non-canonical row (a package-less `fr-FR` row with no `en-US` row), the plain read also changed across a restart. It answered 404 before the restart. After the restart it served the row (200), because the restart had moved the row into the registry's bare slot. - -The plain read, `/layers` and the execution read now ask every layer for the canonical member when no member is named. They take the registry's bare-name answer only when it is that member. The base-address fallback serves only the base's canonical member, and an exact address (`?package=`) replaces another package's item only with the holder's item at the addressed member. So each of these arrangements answers 404 on every door naming no member, the same as `?member=en-US` and `/published`, before and after a restart. - -A bundle that ships or stores its canonical member keeps its status and served body, and so does any named member. Three more answers move: - -- `/layers` naming no member, where the canonical member is stored over a package that ships only another member: `code` goes from that member's body to `null`, as `/layers?member=en-US` already answered. Status and `effective` do not move. -- For a type with no members, `/layers?package=X`, where X holds nothing of the name and the only holder is disabled: `code` goes from the disabled holder's artifact to `null`. A disabled package holds no name. -- `?package=X` naming no member, where X does not hold the name and the environment stores it only in a non-canonical member: the read was refused `409 RESOURCE_CONFLICT` (`not-held-by-qualifier`, naming the environment) once a restart had hydrated the row. It now answers the `404` that `?member=en-US` already answered, on the plain read and `/layers`. A non-canonical member is still read with its own selector, for example `?member=fr-FR`, which the Studio list already links to for each member. - -**Reverses two statements of the 18.6.0 note** for the arrangement where base A ships `email_template` `welcome` in `fr-FR` only and dependent D, which declares A, stores `en-US`: - -- 18.6.0 said "`GET /meta/email_template/welcome/layers` (no member) moves FROM `404` after a restart TO A's `fr-FR` (200)". Now `/layers` naming no member answers `404 RESOURCE_NOT_FOUND` on both sides of a restart, as `/layers?member=en-US` does. -- 18.6.0 said "**Not moved.** The plain read, `?member=CANONICAL` and the execution read of the first shape (A's `fr-FR` naming no member, 404 at `en-US`)." Now only `?member=CANONICAL` is unmoved. The plain read naming no member answers 404 and the execution read naming no member answers `null`, where both served A's `fr-FR`. - -Migration: a caller that read a bundle with no canonical member without naming a member must name the member it wants (`?member=fr-FR`). The email template loader reads the list (`getMetaItemsForExecution`) and does not use this read, so it is not affected. diff --git a/.changeset/34689-slim-mcp-tool-list.md b/.changeset/34689-slim-mcp-tool-list.md deleted file mode 100644 index b84ef883b3a..00000000000 --- a/.changeset/34689-slim-mcp-tool-list.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@objectstack/mcp': patch -'@object-ui/console': patch ---- - -fix(mcp): the open MCP door's `tools/list` is a quarter smaller; teaching prose moves to the served SKILL.md - -Clause-②: no -Metadata-protocol: none - -Every MCP connection pays for `tools/list` before any work starts. Its total for an API key on a self-hosted app (17 tools) drops from 47,712 to 36,481 bytes; the descriptions `@objectstack/mcp` owns drop from 18,213 to about 8,740. No tool is removed or renamed, and nothing a tool accepts changes: only description strings. - -Each description keeps what a call needs: the arguments, the confirmation a destructive call takes, the refusal it may answer and what to do about it. Worked examples, answer-reading guidance and edge cases move to the SKILL.md the server serves at `/api/v1/mcp/skill` (and the Console's "Download skill" copy of it): `describe_object`'s field facts, `query_records`' `latestPer` / `expand` examples (its approvals-waiting-on-you filter and the `sys_user` colleague lookup stay in the description, one line each), `aggregate_records` under the `query_records` entry, `get_record`'s `related`, `run_action`'s `FLOW_FAILED` relay, and `create_upload_link`'s read-only and locked-record cases. `validate_expression`'s description now names the facts to pass per site and points at the skill for the full list of checks. - -The skill's `validate_expression` entry now names its `variables` input, and says that at a `flow_condition` the shadowed-read warning, and the binding of a bare name to the variable rather than the field, need it. diff --git a/.changeset/34692-home-recents-disabled-package.md b/.changeset/34692-home-recents-disabled-package.md deleted file mode 100644 index 64ebf4b03eb..00000000000 --- a/.changeset/34692-home-recents-disabled-package.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(console): Home's Recently Accessed leaves out a row whose object is not registered, and never asks that object by name - -Clause-②: no -Metadata-protocol: none - -Home's Recently Accessed kept a row for a record, an object or a list view whose object's package was disabled after the row was stored. The row opened a page the environment no longer serves, and its icon and label asked `GET /meta/object/NAME` by name, which answered 404 on every Home render. - -Now the objects the recent rows name are asked in one `GET /meta/object?names=` read, which leaves an unregistered object out instead of answering 404. A row whose object that read leaves out is not drawn and takes no place among the six rows. Only an object the read answered served is read by name for its icon and label. While the read has not answered, or after it failed, the row is drawn with its stored title or its object's bundle label and its kind's icon, and nothing is asked by name. Once the whole object registry is loaded, Home reads presence from that list. This is the rule a record page's related lists, a dashboard's `requiresObject` widgets and the navigation's `requiresObject` entries already follow. diff --git a/.changeset/34694-shared-steps-rewrite.md b/.changeset/34694-shared-steps-rewrite.md deleted file mode 100644 index bb91c31cc07..00000000000 --- a/.changeset/34694-shared-steps-rewrite.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@objectstack/lint': patch -'@objectstack/service-automation': patch ---- - -fix(lint, service-automation): the date-text refusal on a flow value envelope names the rewrite for a record-triggered flow that a parent also starts - -Clause-②: no -Metadata-protocol: none - -A flow with its own record trigger or time-relative sweep gets the date-text check on its value envelopes (`update_record` / `create_record` `fields.*`, `assignment` values). Example: `timestamp(record.borrow_date)` over a `date` field. The check is refused at `os validate` / `os build` and at `registerFlow`. It stays refused when another flow also starts the same flow through a `subflow` or `map` node, because the flow's own trigger hands it a row of the typed object on every run it starts. The set of refused flows does not change. - -The refusal now also says how to share the steps with such a parent. Move the shared steps into a child flow with no trigger of its own, which is judged untyped because its `record` is whatever each caller hands it. Then start that child from both flows. Both doors append the same sentence after the verdict's own fix. The stored pass of `os migrate meta --stored` lists that sentence too. diff --git a/.changeset/34700-audit-search-withholds-snapshot-columns.md b/.changeset/34700-audit-search-withholds-snapshot-columns.md deleted file mode 100644 index f083a0f5951..00000000000 --- a/.changeset/34700-audit-search-withholds-snapshot-columns.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@objectstack/objectql': patch -'@objectstack/plugin-audit': patch ---- - -fix(audit): a search the server widens never names a column the caller may not query (#34700) - -Clause-②: no -Metadata-protocol: none -Skills-docs: none — no skill or docs page teaches this search set. - -- The server-chosen search set of an object now leaves out every column the object's own query guard would refuse this caller, as it already leaves out a field the caller may not query (#25672). A column the caller names in `searchFields` is not left out: the guard judges it as before. -- `registerMiddleware(fn, { object, withholdSearchFields })`: a guard middleware names those columns in its own registration (`EngineMiddlewareOptions.withholdSearchFields`, asked for the reads the middleware runs on). plugin-audit's guards on `sys_audit_log` and `sys_activity` declare one, answered by the guard's own rule. diff --git a/.changeset/34726-enterprise-capability-advisory.md b/.changeset/34726-enterprise-capability-advisory.md deleted file mode 100644 index d59db4d10e5..00000000000 --- a/.changeset/34726-enterprise-capability-advisory.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@objectstack/cli': patch ---- - -feat(cli): `os validate`, `os verify` and `os serve` name a declared enterprise or cloud capability that no provider enforces - -Clause-②: yes (widening) -Metadata-protocol: none - -A stack that declares `requires: ['hierarchy-security']` and runs without the enterprise provider wired into `plugins[]` gets owner-only hierarchy scopes (`own_and_reports`, `unit`, `unit_and_below`), and before this nothing said so past `os validate`'s install hint. - -- `os verify` now runs the capability-provider check `os validate` runs and reports every finding as an advisory: a `capabilities` array on the `--json` report (`token`, `message`, and `validate`: `error` when `os validate` refuses the stack over it, `warning` when it reports it), and one line each on the text face. It never changes `os verify`'s exit status, for any token. -- `os validate` and `os build` (and through the first, `os verify`) add a wiring check: an `enterprise`-edition token whose package resolves but which no `plugins[]` entry provides is a warning. Which tokens are `enterprise` is read from the capability registry's edition tags. -- `os validate --strict` (and `os validate --json --strict`), which already fails on any warning, now exits 1 for a stack whose `enterprise` capability package resolves but is not wired into `plugins[]`, or resolves but fails to load, while without `--strict`, and in `os build` (which has no flag that fails on warnings), the exit status is unchanged. -- The `enterprise` message names what happens without a provider (for `hierarchy-security`: the hierarchy scopes behave as owner-only) and its remedy reads "Install the package and add its plugin to `plugins[]`, or remove the token from `requires`". -- `os serve` prints the same sentence once at start-up for a declared enterprise or cloud token that nothing mounts. The boot itself is unchanged. diff --git a/.changeset/34728-notification-settings.md b/.changeset/34728-notification-settings.md deleted file mode 100644 index 72e3fe950a6..00000000000 --- a/.changeset/34728-notification-settings.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -'@objectstack/service-messaging': patch -'@objectstack/plugin-security': patch -'@objectstack/platform-objects': patch -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -feat(account): a Notification Settings page where each person chooses their own notification topics, channels, digest and quiet hours - -Clause-②: yes -Metadata-protocol: none - -The Account app has a new **Notification Settings** page, under Inbox and only when the messaging service runs. It shows one row per notification topic and one column per channel. Each cell shows whether that notification reaches you on that channel, and where the answer comes from: your own setting, your organization's default, the built-in default, or a mandatory topic. Mandatory topics are always delivered and cannot be switched off. A channel the deployment cannot send on yet says so in its column header. Above the matrix you can set your digest and your quiet hours. - -- **The read: `GET /api/v1/messaging/me/preferences`.** This new door answers the signed-in person's *effective* preferences. The server computes them with the same resolver `emit` uses to filter (`PreferenceResolver.effectiveFor`), so the page shows what is actually sent and computes nothing itself. The door takes no parameters and answers only about the caller: there is no `user` parameter, and any parameter is refused `VALIDATION_ERROR` / `400`. It keeps the posture of `GET /api/v1/messaging/preference-options`: - - an anonymous caller gets `401`; - - a held sign-in gets `403`; - - a source it cannot read is `500` / `INTERNAL_ERROR`, never a partial or "everything on" answer. - - The door reads only what the answer needs: the caller's own rows and the organization's default rows, each by equality on `user_id` within the caller's organization. A read that comes back with more rows than its cap is a fault (`500`), never a page. - - The organization's defaults appear only as `source: 'default'` on the caller's own cells. No other person's row, and no row id except the caller's own, is ever answered. -- **The writes: your own `sys_notification_preference` rows, through the data door, as you.** `member_default`, the baseline set every signed-in person resolves (external members excepted), now carries a grant of read, create and edit on the object, with no delete. Two row policies come with it: - - `sys_notification_preference_self` binds every principal that holds the grant. Its row scope is `user_id == current_user.id`, and its write check is the same expression, so the row as written must still be your own. - - `sys_notification_preference_org_admin` widens organization owners and administrators back to every row of their organization. Its write check is `topic != null`, which holds on every row being created because `topic` is required with a default. If `topic` ever becomes optional, an administrator's create is refused, never widened. - - An ordinary member or a delegated administrator lists only their own rows. Their create with `user_id` omitted, empty or naming another person is refused `403` / `PERMISSION_DENIED`, as is moving their own row to another person or to the organization default. -- **Owners and administrators are unchanged.** They still list every row, create and edit the organization default, create and edit another person's row, and delete in the Setup grid. -- **App-authored grants are narrowed too.** `sys_notification_preference_self` carries no `positions` domain, so it binds every principal that holds a grant on this object, including through an app's own permission set. A role other than organization owner or administrator that an app grants this object reads and writes only its own rows, unless the app declares its own widening policy for that role. - -There is no "reset to the organization's default" button, because that needs a delete, which members are not granted. Changing your digest or quiet hours saves your own general setting, and the page says so beside the control. From then on, that setting applies in place of the organization's defaults to every topic and channel you have not set yourself. diff --git a/.changeset/34730-s3b-slack-setup-entry.md b/.changeset/34730-s3b-slack-setup-entry.md deleted file mode 100644 index 1a0ef6e260d..00000000000 --- a/.changeset/34730-s3b-slack-setup-entry.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/service-messaging': patch -'@objectstack/platform-objects': patch ---- - -Clause-②: no -Metadata-protocol: none - -feat(messaging): Setup lists the Slack page where connector-slack is composed - -- **Setup › Integrations › Slack.** Where connector-slack is composed, Setup now lists a Slack entry under Integrations. It opens the console's Slack page (`messaging:slack`), where an organization administrator installs or replaces the organization's Slack token, removes the install, and reviews or removes each member's Slack link. The entry asks `setup.write`, the capability every Slack administrator door asks. `MessagingServicePlugin` registers it in the same `kernel:ready` hook, and on the same condition, as the `slack` channel. Without connector-slack, Setup lists no Slack entry. The label is translated in every locale the platform ships. The bundle is exported as `SLACK_SETUP_UI_BUNDLE`, with `SLACK_SETUP_COMPONENT_REF`. -- **The Slack link removal topic, on every deployment.** `GET /api/v1/messaging/preference-options` and `GET /api/v1/messaging/me/preferences` list the topic `messaging.slack_link_removed` on every deployment, including one without connector-slack. It is emitted only where connector-slack is composed, when an administrator removes a person's Slack link or removes the organization's Slack install. diff --git a/.changeset/34730-slack-dm-delivery.md b/.changeset/34730-slack-dm-delivery.md deleted file mode 100644 index f7a750b5d36..00000000000 --- a/.changeset/34730-slack-dm-delivery.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -'@objectstack/service-messaging': minor -'@objectstack/connector-slack': patch -'@objectstack/plugin-approvals': patch -'@objectstack/spec': patch -'@objectstack/cli': patch ---- - -Clause-②: yes (widening) -Metadata-protocol: added - -feat(messaging): Slack DM delivery — a `slack` channel, a per-person link store, approval requests by DM - -An organization can now receive notifications in Slack, as direct messages to each person who connected their own Slack user (ADR-0013 addendum of 2026-11-19, step 2 of #34730). - -- **The install.** An organization administrator (`setup.write` in their current organization) installs the organization's own Slack app with `PUT /api/v1/messaging/slack/account` `{ token }`. Slack proves the bot token (`auth.test`) before it is saved. The app's bot token needs the scopes `chat:write`, `im:write`, `users:read` and `users:read.email` (the methods called are `auth.test`, `users.lookupByEmail`, `conversations.open` and `chat.postMessage`); `auth.test` does not check scopes, so an app without `users:read.email` installs and every proposal then answers 502. The token is kept in `sys_channel_account.bot_token`, a `secret` field: encrypted at rest by the host's `ICryptoProvider`, masked on every read, never returned by any route, and read only by the server when it calls Slack. `GET` and `DELETE` on the same route read and remove the install. -- **A person's link.** `POST /api/v1/messaging/me/slack-link/proposal` proposes a link by the person's email (Slack `users.lookupByEmail`); it delivers nothing until the person confirms it with `POST /api/v1/messaging/me/slack-link/confirm`. A Slack link is proposed only for a verified email and names no one before it is confirmed. `GET` and `DELETE /api/v1/messaging/me/slack-link` read and remove it. An administrator lists links with `GET /api/v1/messaging/slack/links` and removes one with `DELETE /api/v1/messaging/slack/links/:id`; the person is told by inbox and e-mail (topic `messaging.slack_link_removed`) and may link again. A link goes when the person is deleted, banned, or leaves the organization. Links are `sys_channel_user_link` rows; every write names who acted, so the platform's write audit records each one. -- **The channel, only where connector-slack is composed.** `slack` is registered beside inbox, email, sms and push only on a composition where connector-slack's `slack` client service resolves at boot: `ConnectorSlackPlugin` now registers that service, which sends with a caller-held token. On such a composition, and only there, the `/automation` save doors accept `slack` on a `notify` node, and `GET /api/v1/messaging/preference-options` and `GET /api/v1/messaging/me/preferences` list `slack` as a channel. A `notify` node naming `slack` delivers only where connector-slack is composed, the organization installed Slack and the recipient confirmed a link. Without connector-slack, those doors answer as before: a `notify` node naming `slack` is refused 400, and neither preference door lists it. It sends `conversations.open` then `chat.postMessage` with the notification's title linked to its deep link, made absolute under `OS_AUTH_URL` / `OS_BASE_URL`. Preferences, digest and quiet hours apply as on every channel. A recipient with no confirmed link is skipped before any delivery row is written, so nothing is dead-lettered for them; a refused token stops delivery on that install until an administrator sets it again; a rate limit is retried. -- **Approval requests.** `approval.requested` also asks for `slack`, beside inbox and e-mail, only while the `slack` channel is registered and mounted (connector-slack composed). -- `MessagingChannel` gains an optional `reachableRecipients(ctx, { organizationId, recipients })`, consulted once per channel per emit after preferences. A channel without it reaches every recipient, as before. -- `PLATFORM_OBJECTS_BY_PACKAGE['service-messaging']` lists `sys_channel_account` and `sys_channel_user_link`, and the organization ownership inventory gives both a row. diff --git a/.changeset/34730-slack-settings-ui.md b/.changeset/34730-slack-settings-ui.md deleted file mode 100644 index adeefee5d66..00000000000 --- a/.changeset/34730-slack-settings-ui.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -Clause-②: no -Metadata-protocol: none - -feat(app-shell): connect your Slack account on the notification settings page, and an admin Slack page in Setup - -The console side of Slack direct-message delivery (step 3 of the Slack DM work; the server doors shipped with `@objectstack/service-messaging`'s Slack link routes). - -- **Notification Settings: your Slack link.** Where the preference door lists the `slack` channel (only on a deployment that composes connector-slack), the page shows a Slack section. Without an install, or with an install whose token Slack refused, it says so and offers nothing. Otherwise **Connect Slack** asks `POST /api/v1/messaging/me/slack-link/proposal`; the page shows what the door answers: that a Slack user with your verified email was found (never whom), with **Confirm** (`…/confirm`) and **Cancel** (`DELETE /api/v1/messaging/me/slack-link`); or, when nothing was proposed, a sentence naming every reason the door does not tell apart (no verified email, no Slack user with it, or that Slack user linked to someone else). A confirmed link shows the Slack user and **Disconnect**. A refusal is shown in the server's own words (its `userMessage` when it carries one), and the section then reads the door again. -- **Setup's Slack page** (component `messaging:slack`, `/apps/setup/component/messaging/slack`): for an organization administrator holding `setup.write`, the capability the doors ask; anyone else sees what is needed and no door is read. It installs or sets again the organization's bot token (`PUT /api/v1/messaging/slack/account`) through a password input that always starts empty, removes the install after a confirm that says every linked person is told, and lists every link as served (person, Slack user once confirmed, when) with a confirmed **Remove** per link. When the list reaches the 10,000 links the server answers, the page says it may be incomplete. -- Every new sentence is in all eleven built-in locales (`slackLink`, `slackSetup`). diff --git a/.changeset/34741-delegated-scope-holder-controls.md b/.changeset/34741-delegated-scope-holder-controls.md deleted file mode 100644 index 109e52e1dcf..00000000000 --- a/.changeset/34741-delegated-scope-holder-controls.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(console): a permission set outside a delegated security administrator's scope offers no Add and no Remove - -Clause-②: no -Metadata-protocol: none - -On a permission set's Assigned users section, a delegated security administrator was offered Add user, the member picker and each row's Remove for a set outside every delegated scope they hold, and the server then refused the write (403 `DELEGATION_SCOPE_VIOLATION`). The section now reads the caller's own delegable-scope report (`my-delegable-scope`, through `useAuth().describeDelegableScope`, as the invite dialog does): where the report names delegated scopes and the set is in none of their `assignablePermissionSets`, the section lists the holders with no Add, no picker, no Remove and no "click Add" sentence. The server's gate still decides every write (ADR-0090 D6/D12); the section judges nothing else, so a set the report allowlists keeps its controls and a write the gate still refuses (a target user outside the delegate's business-unit subtree) is refused by the server in its own words. - -Every other caller keeps the controls as before: a tenant-level administrator, a caller whose report names no delegated scope (how the report draws an organization administrator), and any caller while the report is read, where no runtime serves it, or where the read fails. An organization administrator who also holds a delegated scope is read as the delegate its scopes describe, since the report does not tell the two apart. diff --git a/.changeset/34746-all-dropped-update-noop.md b/.changeset/34746-all-dropped-update-noop.md deleted file mode 100644 index b8375ad75ad..00000000000 --- a/.changeset/34746-all-dropped-update-noop.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -'@objectstack/objectql': minor ---- - -fix(objectql): an update whose every caller-supplied field is dropped (read-only, or locked by `readonlyWhen`) is a no-op, so the record no longer shows a last-modified edit that changed nothing and `afterUpdate` automation no longer fires for it - -Clause-②: no -Metadata-protocol: semantic - -An update could send only fields the engine refuses to store: a `readonly` field, or one a TRUE `readonlyWhen` locks for that record. The engine dropped them, reported them in `droppedFields`, and then still wrote the row: `updated_at` and `updated_by` were stamped, and every `afterUpdate` hook ran, so "on update" flows and triggers treated it as a real edit. - -Now such an update writes nothing, on a single-record update and on a `multi: true` predicate update alike: - -- no driver write, so `updated_at` / `updated_by` keep their stored values; -- `afterUpdate` does not run, no roll-up recomputes and no record-changed event is published; -- a single-record update answers the current record, and a predicate update answers `0` rows written; -- the dropped fields are still reported exactly as before (`onFieldsDropped`, and the REST `droppedFields` answer). - -`beforeUpdate` still runs, as it must before the engine can know what is left. When at least one field survives (a caller field, or a field a `beforeUpdate` hook wrote), the update takes the unchanged path. An update whose fields are all kept but equal to the stored values is unchanged. `strictReadonlyWrites` still refuses a dropped field before anything is written. - -What to check in an app: an `afterUpdate` hook or record-change trigger that relied on firing for an update made only of read-only or locked fields no longer runs for it. Send a writable field in that update if the automation must run. diff --git a/.changeset/34766-mcp-draft-door-write-tools.md b/.changeset/34766-mcp-draft-door-write-tools.md deleted file mode 100644 index e9c21d079cc..00000000000 --- a/.changeset/34766-mcp-draft-door-write-tools.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@objectstack/runtime': patch -'@objectstack/mcp': patch ---- - -feat(runtime,mcp): the open MCP server saves and discards metadata drafts, and every save answers with what publishing the draft would say - -Clause-②: yes (widening) -Metadata-protocol: none - -The open draft door on a self-hosted runtime gains its write half. It is served to the same OAuth clients as the read tools: the token carries `metadata:write` and its user holds `manage_metadata`. - -- `save_metadata_draft({ type, name, item, package, ifMatch? })` saves `item` as a pending draft in `package`, recorded as an MCP save by the token's OAuth client. The reply carries `saved` (type, name, package, state, version), `verdict` and `review`. `verdict` is what publishing the stored draft would say: `publishable`, `refusals` (the issues a publish would refuse the draft on) and `advisories`, each with `rule`, `path`, `message`, `hint` and `severity`. `review` holds the Console routes where a person reviews and publishes the draft in Studio. `ifMatch` is the version the save expects to replace; a stale one is refused as the `/meta` draft save refuses it. -- A save that names no `package` is refused `400 VALIDATION_ERROR`, and nothing is saved. The refusal names the writable packages in that environment. -- `delete_metadata_draft({ type, name, package? })` discards a pending draft. The published version, if any, is left as it is. -- `list_drafts` now gives each draft its `verdict`. A draft the user may not read (for example a dashboard whose `requiredPermissions` they lack) is listed with `verdict: null` and the reason it was withheld. - -A plural type spelling (`dashboards`) is folded to its singular before any gate, verdict or write, as the `/meta` doors fold it. Both writes ask the type-level write admission every `/meta` write asks, so a metadata type the user may not write is refused `403 PERMISSION_DENIED` and nothing is written; a verdict, on a save or a listed draft, is withheld for a type the user may not read. A tenant whose catalog is walled refuses both writes `403 PERMISSION_DENIED`, as the `/meta` write path does; a platform admin is admitted. Nothing on this server publishes: there is no publish tool and no `force`. - -When the authoring tools are listed, the open server's default `initialize` instructions add one paragraph saying that they save drafts only and that a person publishes in Studio. The paragraph is absent when the tools are not served, and a host's own instructions replace the default text as before. diff --git a/.changeset/34766-mcp-draft-door-write.md b/.changeset/34766-mcp-draft-door-write.md deleted file mode 100644 index 6c8b6b023f3..00000000000 --- a/.changeset/34766-mcp-draft-door-write.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@objectstack/metadata-protocol': patch ---- - -feat(metadata-protocol): the draft publish verdict is a public protocol method, and it reads the stored draft itself - -Clause-②: yes (widening) -Metadata-protocol: none - -`ObjectStackProtocolImplementation.draftPublishJudgement` is now public. It answers what publishing a stored draft would say, without publishing it: `refusals`, the issues the publish would refuse the draft on, and `advisories`, the findings a publish that passes still returns. Each issue keeps every member the publish's `422 INVALID_METADATA` carries: `rule`, `path`, `where`, `message`, `hint` (the next step) and `severity`. The draft read's `_diagnostics` folds the same verdict but drops the `hint`. - -A caller that holds no stored row may omit `body`: the method then reads the stored draft at `type`, `name` and `packageId` (`null` for the draft bound to no package), and `member` for a bundled type, and judges the bytes as stored. An address that holds no draft is refused `404 NO_DRAFT`, as the strict draft read refuses it. It runs the same judgement the draft read and the publish gate run; nothing about either changes. - -A caller that judges several drafts in one pass may hand one `packageClosures` map (an empty `Map`) to every call of the pass. The package's other drafts, which a package publish judges each draft against, are then collected once per package instead of once per call. The answers are the same; without the map, each call collects them as before. diff --git a/.changeset/34766-mcp-open-draft-door-read.md b/.changeset/34766-mcp-open-draft-door-read.md deleted file mode 100644 index 1f9ae7dcb14..00000000000 --- a/.changeset/34766-mcp-open-draft-door-read.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@objectstack/runtime': patch ---- - -feat(runtime): the open MCP server lists metadata and pending drafts for an OAuth client with `metadata:write` whose user holds `manage_metadata` - -Clause-②: yes (widening) -Metadata-protocol: none - -An AI client connected over MCP with an OAuth token that carries `metadata:write` now gets three read tools on a self-hosted runtime, the first half of the open draft door (design `docs/design/mcp-local-first-door.md`, Design A): - -- `list_metadata_items({ type, state? })` lists one metadata type's items as summaries (name, label, package). A pending draft is listed in place of its published version and marked `draft: true`; `state: "active"` lists the published items only, `state: "draft"` the pending drafts only. A type the platform does not declare is refused with `400 INVALID_REQUEST`, as the `/meta` list refuses it. -- `get_metadata_item({ type, name, state? })` reads one item's full definition: the pending draft where one exists, unless `state` selects the draft or the published version. An item that does not exist answers `404 RESOURCE_NOT_FOUND`. -- `list_drafts({ package? })` lists the pending drafts, optionally for one package. - -The tools are served only where both halves hold: the token consents (`metadata:write`) and the user the token was issued to holds `manage_metadata` in the organization the token bound. The user's capability is read from their own grants on each request, because an OAuth agent's envelope carries no system permission without `actions:execute`. A token whose user lacks the capability is listed none of the three tools, and a call that reaches them anyway is refused `403 PERMISSION_DENIED`. A token without `metadata:write`, an API key and a session see none of them, as before. When the user's grants cannot be read, the tools are not served on that request and the runtime logs one warning. - -The reads withhold what every `/meta` door withholds from that user, judged by the same read gates with the user as the caller: a dashboard, a list view or an app whose `requiredPermissions` the user does not hold, and a book or doc outside their audience, are refused `403 PERMISSION_DENIED` by `get_metadata_item` and left out of `list_metadata_items`. Before either gate, both reads ask the type-level read admission every `/meta` read asks: a metadata type the user may not read is refused `403 PERMISSION_DENIED` on both, whatever its spelling or `state`. Holding `manage_metadata` does not lift these refusals. A gate that cannot evaluate refuses the read. - -The read tools are named `list_metadata_items` and `get_metadata_item`, not `list_metadata` and `get_metadata`, because `list_metadata` is a hosted platform tool. Nothing here writes: saving and discarding drafts, and the publish verdict a save answers with, come in a later change. diff --git a/.changeset/34769-ask-trigger-cases-wizard-pointer.md b/.changeset/34769-ask-trigger-cases-wizard-pointer.md deleted file mode 100644 index 5e2aff349a8..00000000000 --- a/.changeset/34769-ask-trigger-cases-wizard-pointer.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -Clause-②: no -Metadata-protocol: none - -`objectstack-ask` gains trigger cases (`evals/triggers.json`); `objectstack-automation`'s flow-type table sends a stepped form that never branches to an `objectstack-ui` form view, `type: 'wizard'`, and `objectstack-ui` gains that trigger case. diff --git a/.changeset/34769-skill-descriptions-lead-with-the-task.md b/.changeset/34769-skill-descriptions-lead-with-the-task.md deleted file mode 100644 index 6d3b35cdbfa..00000000000 --- a/.changeset/34769-skill-descriptions-lead-with-the-task.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -Clause-②: no -Metadata-protocol: none - -docs(skills): the `description` of `objectstack-data`, `-ui`, `-automation`, `-formula`, `-i18n` and `-query` now leads with what the user is doing ("design or change a data model, in a project or through MCP"), keeps the `*.object.ts`-style file names as a secondary cue, and ends with a "Not for" clause naming the neighbouring skill. An agent building through MCP has no project files, so a description that triggered on file names never loaded the skill. Each is 432 to 450 characters (432 to 849 before). No skill body changes; the README index and the Skills reference page are regenerated from the new text. diff --git a/.changeset/34771-skills-json-forms-served-sections.md b/.changeset/34771-skills-json-forms-served-sections.md deleted file mode 100644 index 7ffc0d4f8ed..00000000000 --- a/.changeset/34771-skills-json-forms-served-sections.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -docs(skills): the sections served to MCP clients show their examples as JSON, and a check pins their headings - -Clause-②: no -Metadata-protocol: none - -A client that builds through MCP writes JSON, and the sections of `objectstack-data`, `objectstack-ui` and `objectstack-automation` that the hosted MCP door serves showed their examples in TypeScript. Those sections now give each example as JSON, with one line on how a TypeScript project wraps the same literal: - -- `objectstack-data`: the object in Object Definition, the `state_machine` rule in State Machine Validation, and the `summary` field and the permission set in Roll-up Summaries. Field Type Selection names the `{ dialect: 'cel', source }` envelope beside the TypeScript tag. -- `objectstack-ui`: the write-button action in Actions. -- `objectstack-automation`: the `notify` node (its key notes are a list under the block), the `script` and `update_record` pair in Valid-but-silently-wrong, the whole approval flow in Approvals (Flow Nodes), and the start node and window filter of the time-relative trigger, beside its TypeScript flow. - -The other served sections are prose and tables and read the same to both kinds of client; three of them drop a TypeScript-only phrase. - -Every JSON block in a served section is parsed and validated against the spec schema for its kind in CI, and a renamed, removed or duplicated heading of a served section now fails there. diff --git a/.changeset/34774-authoring-contract-version.md b/.changeset/34774-authoring-contract-version.md deleted file mode 100644 index f8a9706e3ea..00000000000 --- a/.changeset/34774-authoring-contract-version.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/mcp': patch -'@objectstack/runtime': patch ---- - -Clause-②: yes — widening: a new optional tool input and one new instructions line; the major refusal applies only to a client that sends the new input, so nothing a client could send before is refused. -Metadata-protocol: none - -feat(mcp): the open server states its authoring contract version and refuses a client on another spec major - -- **`initialize` instructions.** Where a connection lists authoring tools, the open server's default instructions now carry `Authoring contract: @objectstack/spec ` as their second paragraph, with the `@objectstack/spec` version the server resolves. A host's own text and a configured text are unchanged. The longest default text stays under 4,096 characters. -- **`save_metadata_draft` takes an optional `clientSpecVersion`**, the `@objectstack/spec` version the client built against. Another major is refused before anything is saved (`VALIDATION_ERROR`, 400), naming both versions and the command to run: `npm i -D @objectstack/spec@`. Another minor is saved as usual, and the answer carries a `specVersionAdvisory`. A value that is not a SemVer version is refused as an input error. A save without it, or with the same major and minor, answers exactly as before. The item's own validation is still the final gate. diff --git a/.changeset/34774-restriction-profile-route.md b/.changeset/34774-restriction-profile-route.md deleted file mode 100644 index e9b084a3d7c..00000000000 --- a/.changeset/34774-restriction-profile-route.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@objectstack/rest': patch ---- - -Clause-②: yes — widening: one new anonymous read-only discovery route (an open restriction profile); nothing served today changes -Metadata-protocol: none - -feat(rest): a self-hosted runtime serves the restriction profile `os validate --target` reads - -`GET /api/v1/discovery/restriction-profile` is now served by `@objectstack/rest`, the route `os validate --target ` reads, so `os validate --target` against a self-hosted runtime reads a profile instead of failing with a 404. It answers `{ success: true, data }`, where `data` is a `RestrictionProfileSchema` value: the open runtime restricts nothing, and `versions.spec` and `versions.skills` name the `@objectstack/spec` version it runs. - -- It answers without a credential, as `/discovery` does and as the cloud already serves the same route (ADR-0138 D2, amended 2026-11-20: the control-plane discovery role). -- It reads no query parameter: any one is refused `400 VALIDATION_ERROR`. -- When the runtime cannot read the `@objectstack/spec` version it runs, it answers `503 SERVICE_UNAVAILABLE` and publishes no profile. -- `api.enableDiscovery: false` unmounts it together with the rest of discovery; the CLI then fails as it does for any server that does not serve the route. -- `allowedFlowNodeTypes` is a constant: the profile's whole node-type vocabulary, the approvals plugin's `approval` / `approval_revise` included. It does not say which plugins the runtime runs, so `os validate --target` does not check whether an approval flow has an executor on that runtime. -- fix(rest): the CommonJS build (`require('@objectstack/rest')`) now resolves package manifests as the ESM build does. esbuild emptied `import.meta` in that build, so `loadOpenApiSpec` could not read the static OpenAPI artifact, and the new restriction-profile route would have answered `503` there; the package now builds with tsup's `shims`. diff --git a/.changeset/34776-publish-checks-build-probes.md b/.changeset/34776-publish-checks-build-probes.md deleted file mode 100644 index 97fe0eee162..00000000000 --- a/.changeset/34776-publish-checks-build-probes.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -'@objectstack/lint': minor -'@objectstack/metadata-protocol': minor -'@objectstack/service-automation': minor -'@objectstack/spec': minor ---- - -feat(lint): five publish-time checks for metadata that passes the schema and does nothing at run time, and four build probes over what landed - -Clause-②: no (narrowing: four publish-time refusals of metadata the schema accepts today) -Metadata-protocol: narrowed -Skills-docs: follow-up #35245 - - - -Five authoring rules join the registry the runtime publish gate and `objectstack validate` / `lint` / `compile` run. Each finding names its fix. - -- `flow-node-type-no-executor` (error): a flow node whose `type` no executor in this deployment runs fails every run with `NO_EXECUTOR`. Judged only against the automation engine's SEALED node-type vocabulary, which the publish gate reads from the new `AutomationEngine.getSealedNodeTypeVocabulary()` (it answers `undefined` until `sealNodeTypeVocabulary()` ran at `kernel:bootstrapped`). The CLI does not know which plugins a deployment loads, so it judges nothing here. -- `flow-approval-decision-unrouted` (error): an `approval` node whose decision out-edges are not labelled exactly `approve` and `reject` runs every out-edge for a decision no label claims, so the approving and the rejecting branch both run. -- `flow-http-timeout-missing` (warning): an `http` node with no positive `config.timeoutMs` and no positive node-level `timeoutMs` waits on a slow upstream for as long as the connection stays open; the engine arms no default timer. A `durable: true` node, which does not wait on the endpoint, is not reported. Like every warning, it makes `os validate --strict` exit 1. -- `state-machine-no-initial-states` (error): an active `state_machine` validation without `initialStates` (or with an empty list) lets a record be created already in any state. Add `initialStates`. -- `action-no-object-binding` (error): a standalone action that declares `locations` but no `objectName` binds to no object, so its button never renders. Set `objectName`, or write `locations: []` for a headless action. - -What was accepted before and is refused at publish now: a flow with an unrouted approval decision or a node type the deployment cannot run, a state machine without `initialStates`, a placed action with no object. The fix for each is in the finding. - -Four post-publish build probes report, as warnings on the publish receipt, what the person will see: `widget_empty_result` (a dashboard card whose real query reads only zeros), `rollup_never_computed` (a roll-up blank on all of the sampled parents that have children, judged inside one organization when the rows carry one), `seed_reference_unresolved` (a sample record the seed loader landed whose reference names no row in the organization that record belongs to, so the reference leads nowhere) and `flow_connector_action_unresolved` (a `connector_action` step naming a connector or action this environment does not serve). Each carries its sentence for the person in every platform locale. `RunBuildProbesOptions` gains `automation`, `packageId` and `seedLanded`; the publish passes the automation engine's connector lookups, the publishing package and its `seedApplied.landed` ids. `ProbeEngine` gains an optional `getSchema`, which names the column a row's organization is stamped in; the roll-up and seed probes judge each row inside that organization. - -New exports: `@objectstack/lint` adds `validateFlowNodeExecutors`, `validateInertObjectDeclarations`, `validateActionObjectBinding`, their finding types, and the rule ids `FLOW_NODE_TYPE_NO_EXECUTOR`, `FLOW_APPROVAL_DECISION_UNROUTED`, `FLOW_HTTP_TIMEOUT_MISSING`, `STATE_MACHINE_NO_INITIAL_STATES`, `ACTION_NO_OBJECT_BINDING`; `@objectstack/metadata-protocol` adds the `ProbeAutomation` and `SeedLandedRows` types; `@objectstack/service-automation` adds `AutomationEngine.getSealedNodeTypeVocabulary()`. `@objectstack/spec` changes only descriptions: those of `RuntimeBuildIssueSchema`, and that of a state machine validation's `initialStates`. diff --git a/.changeset/34777-client-get-item-draft-read.md b/.changeset/34777-client-get-item-draft-read.md deleted file mode 100644 index 47073d0a192..00000000000 --- a/.changeset/34777-client-get-item-draft-read.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/client': patch ---- - -feat(client): `meta.getItem` reads a pending draft with `state: 'draft'` - -Clause-②: yes (widening) -Metadata-protocol: none - -`meta.getItem(type, name, { packageId, state: 'draft' })` sends `?state=draft` beside `?package=`, on the unscoped client and on the environment-scoped twin. It is the strict draft read the REST door already serves: the answer is the draft row, and its `item._diagnostics` carries the publish verdict (what publishing that draft would refuse). `'active'` is the default said out loud and sends nothing, so a call without the member is the request it always was. A caller the door does not admit to drafts is answered with the published item, so compare the answer's `version` with the draft's before reading it as the draft. diff --git a/.changeset/34777-meta-register-draft-lint-item.md b/.changeset/34777-meta-register-draft-lint-item.md deleted file mode 100644 index ce69133618c..00000000000 --- a/.changeset/34777-meta-register-draft-lint-item.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@objectstack/cli': patch ---- - -feat(cli): `os meta register --mode draft` stages a draft for review and prints its publish verdict, and `os lint --item --type ` judges one item - -Clause-②: yes (widening) -Metadata-protocol: none - -For a developer or an AI client that authors metadata item by item from the command line against a self-hosted runtime (signed in with an API key), with no project on disk: - -- **`os meta register --data --mode draft`** saves through the same door with `?mode=draft`: the item is stored as a pending draft and nothing is published until a person publishes it in Studio's Changes. A draft names its package with `--package `: Studio lists drafts per package, so `--mode draft` without `--package` is refused before any request, and the command prints that package's Changes route. After the save it reads the draft back (`GET /meta//?package=&state=draft`) and prints the publish verdict the runtime serves on it: `valid`, its errors (each with its rule code) and its warnings, also as `publishVerdict` on `--format json|yaml`. A `valid: false` verdict is printed, not turned into a failed run: the draft is stored either way. `--mode publish` is the default spelled out and sends exactly the request an unflagged run sends (an active save, no query string, no read after it). -- **`os lint --item --type `** lints the JSON body `os meta register --data` takes, alone. It runs the shared author-time rule table (the one `os build` and `os validate` run) and `os lint`'s per-entry naming, label and structure conventions over a stack holding only that item. A rule whose verdict needs the rest of the stack is not run and is named: each rule is measured, on that item, by the top-level stack keys it reads, and a rule that read anything beside the item's own collection is listed under `notJudged` with those keys instead of reporting findings. `os lint`'s namespace-prefix, i18n-coverage and (for objects) data-model families are listed under `familiesNotRun`. The exit code reads as a project run's, `--strict` included. `--item` refuses to combine with a configuration path, `--score` or `--eval`, and `--type` without `--item` (or the reverse) exits 1. diff --git a/.changeset/34778-mcp-build-skill.md b/.changeset/34778-mcp-build-skill.md deleted file mode 100644 index 27d6543dd90..00000000000 --- a/.changeset/34778-mcp-build-skill.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -feat(skills): objectstack-mcp-build, the order of work for a client that builds through the MCP draft door - -Clause-②: no -Metadata-protocol: none - -The skills catalog gains `objectstack-mcp-build`, a short process skill for a client that builds or changes an app's metadata through an environment's MCP draft door, with no project files. It gives the order of work: read what exists (`list_metadata_items`, `get_metadata_item`, and `describe_object` where the connection lists it), load the domain skill for the type, save with `save_metadata_draft`, read the publish verdict in the reply and repair the item until no refusal is left, then report the drafts and give a person the Studio review routes the reply names. The door has no publish tool, so the skill tells the client never to say a draft is live. - -It restates no shape and no tool argument: the domain skills (`objectstack-data`, `objectstack-ui`, `objectstack-automation` and the others) stay the one copy of each type's keys and traps, for a project author and an MCP client alike. - -A project that already syncs its skills gets the new one on its next `npx skills@1.7.2 experimental_sync --agent --copy -y` after bumping `@objectstack/skills`. diff --git a/.changeset/34779-verify-flow-run.md b/.changeset/34779-verify-flow-run.md deleted file mode 100644 index cc972d7d1cd..00000000000 --- a/.changeset/34779-verify-flow-run.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@objectstack/verify': patch -'@objectstack/cli': patch ---- - -feat(verify): run a flow locally and report its node trace before it is submitted - -Clause-②: yes (widening: a new `os verify --flow` option, and new `@objectstack/verify` exports) -Metadata-protocol: none - -`os verify --flow ` runs one flow once on a fresh in-memory boot of the app and reports what the engine did: each node's status as the run's log records it, the first failure with its code and the node named, and every write the run made. - -- The run starts the way production starts it. A record-change flow is fired by its own trigger: the run writes the record `--flow-record '{"field":"value"}'` names as the dev admin (inserted for a create or write leg; seeded and saved unchanged for an update leg; seeded and deleted for a delete leg). A flow its own trigger starts is started with no caller, with the context that trigger builds: an API-triggered flow gets `--flow-input '{...}'` as its record and its params (the request body); a time-relative flow gets the `--flow-record` row, seeded first, as its record (the acting organization a sweep can set is not reproduced); a schedule or another `runAs: 'system'` flow gets `--flow-input` as its params. Any other flow goes through the trigger route as the dev admin, with `--flow-input` as its params. -- A node whose type no installed plugin runs is named, whether the run reached it or not. A flow whose trigger never binds is reported with the trigger and the engine's reason, and is not run. A schedule or time-relative trigger left unarmed by the deployment's scheduled-work switch (the default) is not a defect: it is reported as not armed and the flow is still run. -- The run writes to the in-memory database the boot creates and nowhere else: a write to an object bound to any other datasource is refused before that datasource's driver is called, and the node that made it fails naming the object and the datasource. Four outbound node types are not executed: `http`, `connector_action` (with every connector a plugin contributes behind it), `notify` and `script`; a plugin's own node type that calls out under another name is not stood in and runs for real. A run that ends at one of them stops there and the report names it (`outbound_not_run`), in a child flow too; every node before it ran for real. A stop a `try_catch` catches is listed in `outboundStops`, and a later node that fails is still the first failure. -- A failed run, a missing executor, an unbound trigger, a record-change or time-relative flow given no record, and a write refused outside the ephemeral stack each fail `os verify`. A run its start condition skipped, one that paused at a screen, wait or approval, and one stopped at an outbound node are reported and do not. -- `--json` carries the report as `flowRun`. - -New exports from `@objectstack/verify`: `runFlowProof`, `formatFlowRunReport`, and the `FlowRunRequest`, `FlowRunVerdict`, `FlowRunStart`, `FlowRunStep`, `FlowRunWrite`, `FlowRunFailureKind`, `FlowRunFailure`, `FlowRunTrigger` and `FlowRunReport` types. Nothing that ran before changes. diff --git a/.changeset/34780-scenarios-door-mode.md b/.changeset/34780-scenarios-door-mode.md deleted file mode 100644 index 97893234ca7..00000000000 --- a/.changeset/34780-scenarios-door-mode.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/scenarios': patch ---- - -feat(scenarios): `--modes door` builds a card through the MCP draft door with no project, then publishes it as a person would - -Clause-②: no -Metadata-protocol: none - -The runner gains a fourth mode. A door mode turn is given the booted app's MCP draft door (an OAuth token scoped `openid metadata:write`, in a 0600 config outside its directory), an empty directory of its own outside the host project, and nothing else: file and command tools are denied. The runner then does what a person does in Studio: it creates a writable package in the card's namespace before the turn, and lists and publishes that package's drafts after it (`POST /api/v1/packages/:id/publish-drafts`). It grades what the environment then serves exactly as a scratch build is graded, Build half then Run half. A publish that does not answer `published` is a finding naming each refused draft, since a refusal answers on a 200. - -A round measures what instruction text is worth by arms. `--door-skills DIR` (less `--door-skill-omit`) gives the client Claude Code skills. `--door-rules FILE` or `OS_SCENARIOS_DOOR_RULES` (less `--door-rules-omit`) gives it rule texts the maintainer supplies from outside the repository, in a documented `{ rules: [{ id, text }], sets }` format that is refused loudly when malformed. The record states the arm (skills with sha256, the rules file's name and sha256, the ids active and omitted, never a text), and `summary` never sums two arms. A replay re-sends the recorded draft saves through the replay's own door. Codex and external drivers are refused for door mode. diff --git a/.changeset/34780-scenarios-door-rules-corpus.md b/.changeset/34780-scenarios-door-rules-corpus.md deleted file mode 100644 index 4e20d9f9ded..00000000000 --- a/.changeset/34780-scenarios-door-rules-corpus.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/scenarios': patch ---- - -feat(scenarios): door mode's rules arm has a built-in corpus, `--door-rules builtin`, the hosted build door's authoring rules ported as data - -Clause-②: no -Metadata-protocol: none - -`--door-rules builtin` (or `OS_SCENARIOS_DOOR_RULES=builtin`) gives the door-mode client the authoring rules the hosted product's MCP build door hands its own client: 54 rules and the two corpora's preambles, rendered verbatim at that door's tier (only its tracker citations struck, as this repository's runtime strings carry none) and ported as one data module (`src/runner/door-rules-corpus.ts`, which names the source files and the revision). It carries five named sets for `--door-rules-omit`: `metadata-authoring` and `solution-design` (each corpus), `inline` and `ondemand` (what the hosted door gives up front, and what it serves only when asked by id), and `names-build-door-tools` (the rules that name a tool of the hosted build door). One rule describing the hosted runtime's timer lifecycle is left out. The corpus is judged by the same reader and the same refusals as a rules file, and the record states it as `builtin` with the sha256 of its JSON. `--door-rules FILE` still gives a rules file the maintainer supplies instead; with no `--door-rules`, the arm has no rules, as before. diff --git a/.changeset/34798-skills-seed-modes-locale-order.md b/.changeset/34798-skills-seed-modes-locale-order.md deleted file mode 100644 index 8637102d2e8..00000000000 --- a/.changeset/34798-skills-seed-modes-locale-order.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -docs(skills): the seeds reference drops the retired seed modes `insert` / `replace`, names `locale`, `fallback` and `dependsOn`, and stops teaching array order as load order - -Clause-②: no -Metadata-protocol: none - -`objectstack-data`'s `references/seeds.md` no longer lists `insert` or `replace` as import modes: both are refused, and a dataset with no single natural key keeps the default mode with a composite `externalId` (a junction table's `['team', 'project']`), or `'id'` when the records carry their own ids. `objectstack-platform`'s Seed Data passage lists only `ignore`, `upsert` and `update`. - -The seeds field table now names `locale` (the BCP-47 tags a dataset loads for), `fallback` (`true` on one locale-scoped set per object, which also loads for a resolved locale no set of that object lists) and `dependsOn`. - -The relationship section says lookups order the load and the exported array's order only breaks ties; a lifecycle hook that reads a seeded object no lookup links to declares `dependsOn` with object names, and a name that is the dataset's own object, is not seeded by the same load, or closes a cycle refuses the whole load with nothing written. Two eval cases cover the composite-key conversion and `fallback`. - -`seeds.md` pays first by deleting restatement in the same file (three best-practice rows, the `upsert` re-assert clause, "no other mode updates a matched row", "Natural keys remain the portable default"); its token ceiling moves +13, the measured remainder. `objectstack-platform/SKILL.md` re-locks 15 tokens lower. diff --git a/.changeset/34806-public-form-pair-translation.md b/.changeset/34806-public-form-pair-translation.md deleted file mode 100644 index 36b63fa3fb8..00000000000 --- a/.changeset/34806-public-form-pair-translation.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/rest': patch ---- - -fix(rest): a public form whose view a `.custom` pair overrides reads the pair's own translation, as `/meta` does - -Clause-②: no -Metadata-protocol: none - -`GET /forms/:slug` now translates the public form's view in the same label order the `/meta/view` reads already use for a `.custom` pair's declared override (ADR-0146 D2): a translation the pair ships, then the override's own text, then the base's translation. Before, an anonymous visitor read the override's text as written in every locale (the form's `title` and its section headings), while a signed-in reader of the same view got the pair's translation. A form view no pair overrides, or whose pair ships no translation for the request's locale, is served exactly as before. The form's field labels (the object half) do not change: an object is extended, never replaced, so it has no pair rank on any read. No metadata key, value or default changes. diff --git a/.changeset/34821-rollup-fold-followups.md b/.changeset/34821-rollup-fold-followups.md deleted file mode 100644 index 60d1380ba91..00000000000 --- a/.changeset/34821-rollup-fold-followups.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -'@objectstack/objectql': patch ---- - -fix(objectql)!: a multi-row insert judges a rule reading a parent field calculated from a roll-up as one-by-one inserts judge it - -Clause-②: no (narrowing) -Metadata-protocol: none - - - -**BREAKING** for a multi-row insert (`insert(object, rows)`, an import batch, `insertMany`) of a child object whose validation rule, or field-level `requiredWhen` on `parent`, reads a `formula` or stored computed field of the parent calculated from a roll-up `summary` (`record.bud.remaining`, `remaining = budget - total`). - -- FROM: the batch moved the parent roll-up itself by the rows admitted before each row, but a parent field calculated from it kept its stored value: "a line may not exceed the remaining budget" (`record.amount > record.bud.remaining`) refused the third line of 40 against a budget of 100 written one by one, and admitted all three written in one call. -- TO: the field is computed again over the moved roll-ups, as a predicate update already computes it, carrying the parent's stored image from row to row as each one-by-one recompute stores it. The batch is refused with `VALIDATION_FAILED` and writes nothing, as for any refused row; the insert preview (`validate` with `mode: 'insert'`) answers the same row invalid, and judges a master-detail header column the caller is not served as empty at every row. Only a batch with a rule reading that parent pays one read of its parent rows. -- The answer moves both ways. Mostly it narrows: a row main admitted against the stored calculated value is refused when the rows before it move that value over the rule's line. It also admits a row main refused when the rows before it move the value back under the line, as one by one does. -- A calculated field that also reads a roll-up the insert does not move (an `avg`, a filter through a reference, or one left stored from the row where it meets a value that is not a number) is computed over the moved and the stored values as they stand. - -The insert accumulation also leaves out a roll-up whose `filter` reads a related record in the nested form (`{ account: { status: 'x' } }`), as it already left out the dotted form and as the predicate update leaves out both. - -A predicate update (`multi: true`) whose patch writes no foreign key, source field or field the filter reads (as a key, or as a `{ $field }` comparand or `addDays` offset) of a roll-up its rules read no longer aggregates a base for it: its rules read the stored value, as the by-id update does, with no aggregate read. So the 34465 note's "one grouped aggregate per summary a rule reads" and its three stored-value cases hold for the roll-ups the patch can move; one it cannot move is neither aggregated nor folded. Each roll-up a predicate update leaves unfolded now logs one debug line naming the object, parent, field and reason (`filter`, `not_a_number`, `exclusion_budget`). - -The fix for a caller: insert the rows the rule refuses on their own, or split the batch so each part fits the rule. diff --git a/.changeset/34824-action-refusals-skill.md b/.changeset/34824-action-refusals-skill.md deleted file mode 100644 index 2115a303e51..00000000000 --- a/.changeset/34824-action-refusals-skill.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@objectstack/skills': patch -'@objectstack/spec': patch ---- - -docs(skills, spec): the ui and i18n skills teach an action's `refusals` catalogue and its translation keys; `action.zod.ts` gains a module description - -Clause-②: no — skill teaching text, evals and two comment-only edits in packages/spec; no schema, export or accept set moves -Metadata-protocol: none — no metadata key is touched - -objectstack-ui's `rules/actions.md` gains a short section, "Refusing by code (`refusals`)": a `type: 'script'` action with a `js` body declares the refusals it may throw and throws the code instead of a sentence, the catalogue, the throws and the checks are the ones a hook has (taught in objectstack-data's `references/data-hooks.md` § Declared refusals), the sentence is answered as `userMessage` and translated at `objects.._actions..refusals..message`, and an authored `errorMessage` replaces it in the console's failure toast. The file's Add Line example now declares `refusals: { PRODUCT_NOT_FOUND: … }` and throws `{ code: 'PRODUCT_NOT_FOUND' }` where it threw `new Error('Product not found.')`. - -objectstack-i18n's SKILL.md lists the keys in the object key table — `_actions.{action_name}.refusals.{CODE}` holds `message` and `reasons.{reason}.message`, the same under `globalActions.{action_name}`, and a key for a code or reason the action does not declare is `translation-target-unknown` — and the server-composed text section names an action's refusal beside a hook's. Each skill's eval file gains one case that grades the rule. - -`@objectstack/spec`: comments only. `src/ui/action.zod.ts` opens with a module doc block, so the generated reference page and the two skill reference indexes describe the module ("Action protocol schemas — `ActionSchema`, the `action` metadata type, and the parts it is built from.") where they listed its first five exports, and the jsdoc above `actionRefusalsWithoutSandboxedBody` names the third case as the function judges it: a `script` action with no `body`. diff --git a/.changeset/34846-dry-run-upgrade-resolver-refusal.md b/.changeset/34846-dry-run-upgrade-resolver-refusal.md deleted file mode 100644 index ab149c30a5c..00000000000 --- a/.changeset/34846-dry-run-upgrade-resolver-refusal.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/cloud-connection': patch ---- - -fix(cloud-connection): a dry-run re-install answers a refused installed copy or incoming package with a 422, never a 500 - -Clause-②: no -Metadata-protocol: none - -`POST /api/v1/marketplace/install-local` with `dryRun: true` compares the installed copy (the body the last install stored) with the incoming version. When today's artifact resolver refused either body (for example, a stored copy that still carries a retired key such as a bare `indexes[].unique: true`), the dry run threw, and the transport answered `500 INTERNAL_ERROR`. It now answers the way the real install already does: the refusal's own `422` and code (`INVALID_ARTIFACT_PACKAGE_ENTRY` and its siblings). When the stored copy is refused, the message names that copy and the way out: uninstall the package, then install the new version. When the incoming package is refused, the message names the incoming package. Nothing is planned or written. A dry run whose two bodies both resolve answers the plan exactly as before. diff --git a/.changeset/34855-read-file-stop-before-page-1.md b/.changeset/34855-read-file-stop-before-page-1.md deleted file mode 100644 index 0c834ca4f8d..00000000000 --- a/.changeset/34855-read-file-stop-before-page-1.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@objectstack/mcp': patch ---- - -fix(mcp): a `read_file` stop before the first page or paragraph says so, and never calls its text partial - -Clause-②: no -Metadata-protocol: none - -When the extraction worker's wall-clock ceiling stopped a PDF read before page 1 came back, `read_file` answered `content: none` with the note `Reading stopped at the CPU-time budget for one file (N ms) after page 0 of M, so the text is partial.` No text came back, so an agent acting on that sentence believed it held part of the file. A Word read stopped before its first paragraphs came back said the same with `after 0 paragraphs`. Such a stop now answers `content: none` with `Reading stopped at the CPU-time budget for one file (N ms) before page 1 of M was read, so no text came back. Download the file with the link instead.` (`before page 1 was read` when the PDF had not opened yet, and `before the first paragraph was read` for Word). - -A read stopped at the budget after pages or paragraphs that held no text (a scanned PDF, say) also answered `content: none` with the partial-text note. It now says `after page P of M, and no text was found in what was read. Download the file with the link instead.` - -Nothing else moves. A stop that did return text keeps `truncated: true` and the note `… after page P of M, so the text is partial. Download the file with the link for the rest.` diff --git a/.changeset/34856-deferred-key-seed-row-stays-deleted.md b/.changeset/34856-deferred-key-seed-row-stays-deleted.md deleted file mode 100644 index b540092587b..00000000000 --- a/.changeset/34856-deferred-key-seed-row-stays-deleted.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/metadata-protocol': patch ---- - -fix(seed): a seed row that landed while a reference in its key was still empty stays deleted once a person deletes it - -Clause-②: no -Metadata-protocol: none - -A seed dataset whose `externalId` includes a reference can land a row before that reference resolves, for example a task assigned to a person who has not signed up yet. With the record of landed seed rows kept (`landedKeys: 'honour'`), such a row was recorded under no key, because its key had an empty part when it landed. A person who deleted the row got it back on the next seed load. - -The row is now recorded under the id it lands with, which is derived from the key as the seed authored it. The next load finds that record whether the reference is still empty or has resolved since, so the deleted row is not inserted again. A row the seed never landed in the organization still lands, and a deliberate re-seed still brings deleted rows back. diff --git a/.changeset/34857-seed-blank-key-record-refused.md b/.changeset/34857-seed-blank-key-record-refused.md deleted file mode 100644 index 4cb739b1940..00000000000 --- a/.changeset/34857-seed-blank-key-record-refused.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -'@objectstack/metadata-protocol': minor ---- - -fix(metadata-protocol)!: a seed record that leaves a key field blank is refused at load instead of being inserted again on every load - -Clause-②: no (narrowing) -Metadata-protocol: narrowed -Skills-docs: follow-up #35480 — skills/objectstack-data/references/seeds.md (:48 the externalId row, :68 the composite key, :93 `externalId` selection: none says a record must carry every key field or is refused at load) - - - -**BREAKING** for a seed record whose `externalId` value is blank. A seed is replayed on every single-tenant boot, every package install or upgrade and every publish, and each replay matches records to the rows earlier loads wrote by the dataset's `externalId`. A record that left a key field blank (no value, `null` or `''`): any component of a composite key such as `['team', 'project']`, or the one field of a single-field key (`name` when the dataset names none), matched no row and was written again by every `ignore` or `upsert` load, with nothing said. Measured over three loads of one such record beside a keyed one: 2, then 3, then 4 rows. An `update` load skipped it, also in silence. - -- FROM: the record was written as a new row on every load (`ignore`, `upsert`) or skipped (`update`); when every record of a dataset keyed empty, the load logged one dataset-level `warn` and still wrote each record again. -- TO: in the keyed modes (`ignore`, `upsert`, `update`) the load refuses the record before anything of it is written: the load result carries one error for it naming the object, the record index, the blank field(s) and the fix, the boot log says it once per dataset at `error`, and every other record and dataset loads. A dry run (`validate`) reports the same error. A dataset whose every record keys empty is the same refusal for each record; the dataset-level `warn` is gone, since it would report the same records twice. -- The fix for an author: give the record a value for the blank key field, or key the dataset on fields every record carries: a field the object declares, a list of fields when no single field names a row, or `'id'` when the records carry their own ids. - -**Not moved.** The check reads the key as authored, after the record's expressions resolve and before any reference resolves. A reference the load defers or cannot resolve yet (a person who has not signed up) is authored, so it is not blank and its row lands and holds one row across loads, as before. A whitespace-only value is a value, as before. Rows earlier loads duplicated are data and stay; remove the extra copies yourself if they matter. A request built without the parse's defaults (no `mode` on the dataset, no `defaultMode` on the config) is not keyed and is unchanged. - -**Also: the duplicate-fallback refusal names the cause that still arises.** When the datasets being seeded mark more than one set of one object `fallback: true`, the refusal and the seed-data page no longer name "an upgrade within this process" as a cause: an upgrade now replaces a package's datasets on the replay list, so the cause left is two packages marking the same object. Wording only; what is refused is unchanged. diff --git a/.changeset/34861-sso-sign-in-watchdog.md b/.changeset/34861-sso-sign-in-watchdog.md deleted file mode 100644 index 54391077228..00000000000 --- a/.changeset/34861-sso-sign-in-watchdog.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/auth': patch ---- - -fix(auth): a "Sign in with SSO" request that never answers gives the sign-in page back after 20 seconds - -Clause-②: no -Metadata-protocol: none - -On the login page, when the request behind "Sign in with SSO" got no answer, the button kept spinning and the email field stayed locked until the page was reloaded. The request now runs under the same 20-second limit as the identity-provider buttons: once it passes, the request is cancelled, the page says the sign-in timed out, and the email field and the button can be used again to retry. An answering request still sends the browser to the identity provider as before. diff --git a/.changeset/34862-approval-link-console-mount.md b/.changeset/34862-approval-link-console-mount.md deleted file mode 100644 index d62180b894c..00000000000 --- a/.changeset/34862-approval-link-console-mount.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@objectstack/plugin-approvals': patch ---- - -fix(approvals): the approval e-mail's link and the action-link page's inbox link open the Console under its mount - -Clause-②: yes (widening) -Metadata-protocol: none - -The approval e-mail's "Open the approval" link was `BASE/system/approvals?request=ID`. `os serve` serves the Console at `/_console/` and nothing at `/system/*`, so the link answered `404 ENDPOINT_NOT_FOUND` and the request never opened. The "Open the Approvals Inbox" link on the action-link result page (`/api/v1/approvals/act`) had the same defect. - -Both links now carry the Console's mount. The mount is read from the auth service's Console page composer (`getConsoleUrl`, which reads `AuthConfig.uiBasePath`, default `/_console`), the same composer the auth e-mails and the mention e-mail use. - -- The e-mail link goes from `BASE/system/approvals?request=ID` to `BASE/_console/system/approvals?request=ID` on a default deployment. A deployment that sets `uiBasePath` to `/` keeps `BASE/system/approvals?request=ID`. Its base is still the approval links' own (`publicBaseUrl`, else `OS_AUTH_URL` / `OS_BASE_URL`). A kernel with no auth service has no mount to read, and the e-mail link stays as it was. -- The inbox link goes from the origin-relative `/system/approvals` to `BASE/_console/system/approvals`. It is now absolute under the approval links' base when one resolves, and relative (`/_console/system/approvals`) when none does. With no mount to read (no auth service, or `uiBasePath` set to `/`) it is `BASE/system/approvals`. - -The widening: the exported `ApprovalServiceOptions` gains the optional `getConsoleUrl` that carries the composer; the in-app `actionUrl` is unchanged. diff --git a/.changeset/34863-cross-object-batch-refusal-fields.md b/.changeset/34863-cross-object-batch-refusal-fields.md deleted file mode 100644 index 5e83da88d45..00000000000 --- a/.changeset/34863-cross-object-batch-refusal-fields.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/rest': patch ---- - -fix(rest): `POST /api/v1/batch` answers a request-schema refusal with the per-field `fields[]` list - -Clause-②: no -Metadata-protocol: none - -A cross-object batch body the request schema refuses (for example `{"operations":"x"}`, or `{}`) is still answered `400 VALIDATION_FAILED`, but the answer now carries `fields`, the same list of `{ field, code, message }` entries the per-object batch doors (`/data/:object/batch`, `createMany`, `updateMany`, `deleteMany`) answer: `{"operations":"x"}` names `operations` with `invalid_type`, `{}` names `operations` with `required`, and an operation missing its object names `operations.0.object` with `required`. A client's `err.fields` (`@objectstack/client`) is now filled on this door too. - -The raw schema-library `issues` list is no longer on this refusal: field errors are mapped at the boundary, never passed through (ADR-0114 D3), and no client, SDK or test read it. A caller that read `issues[i].path` reads `fields[i].field` (the path joined with dots) and `fields[i].code` instead. diff --git a/.changeset/34864-seed-unknown-object-save-door.md b/.changeset/34864-seed-unknown-object-save-door.md deleted file mode 100644 index ce110c9e07b..00000000000 --- a/.changeset/34864-seed-unknown-object-save-door.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@objectstack/metadata-protocol': minor ---- - -fix(metadata-protocol): the save door refuses a seed whose object does not exist, and the publish probe names a missing object instead of asking to publish again - -Clause-②: no (narrowing) -Metadata-protocol: narrowed - -**The save door refuses a seed bound to an unknown object.** `saveMetaItem` (the `PUT /api/v1/meta/seed/:name` door, the MCP draft save and every other caller) now answers `422 INVALID_METADATA` for a `seed` whose `object` no package registers and no stored or code-defined object carries, with one finding at `object` that names the seed, the object and the fix. Before this, such a seed was stored 200; its publish answered `published` while the load wrote nothing. - -- A draft save also accepts an object that is itself only a draft (it is judged at the seed's publish, as before). A live save needs the object published. -- An object of a dependency package, or any object the registry serves, is accepted as before. -- Unchanged: the publish promotion and the restore doors do not refuse such a seed (the load reports it, and a publish keeps going), and a `migrate-stored` re-save is not judged. - -Fix for a refused save: correct `object` to the object's full name (for example `crm_lead`, not `lead`), or create the object first, as a draft for a draft seed or published for a live one. - -**The publish probe names a missing object.** When a published seed's object does not exist, the `seed_not_applied` finding now says so: `message` and `fix` name the missing object, and the person's sentence (`userMessage`, cause `missing`, in every platform locale) tells them to correct the object or create and publish it. A read that fails on an object that does exist still asks to publish again (cause `unreadable`). - - diff --git a/.changeset/34865-explain-access-disabled-reason.md b/.changeset/34865-explain-access-disabled-reason.md deleted file mode 100644 index 151a362a768..00000000000 --- a/.changeset/34865-explain-access-disabled-reason.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -fix(app-shell): Studio's "Explain access" says why Explain and Pick are disabled, on hover, on keyboard focus and to assistive technology - -Clause-②: no -Metadata-protocol: none - -With no object chosen, the Explain button and the record Pick button were bare disabled buttons: no tooltip on hover, skipped by Tab, and nothing in the accessibility tree (Pick's only title was its own label, "Pick"). Both now sit in the shared `DisabledControlReason` wrapper the Studio form designer, create dialog and metadata Save already use: a focusable wrapper that opens a tooltip with the reason "Choose an object first", and both the wrapper and the button point `aria-describedby` at it. Each button keeps its own name; once an object is chosen both are plain enabled buttons, and a running Explain gives no reason because its label already says "Explaining…". The new string is in the Studio namespace catalogues (`en`, `zh`) of `@object-ui/i18n`. diff --git a/.changeset/34866-doctor-verbose-hint.md b/.changeset/34866-doctor-verbose-hint.md deleted file mode 100644 index c05e6c8e3ac..00000000000 --- a/.changeset/34866-doctor-verbose-hint.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/cli': patch ---- - -fix(cli): `os doctor --verbose` no longer ends by telling you to run with --verbose - -Clause-②: no -Metadata-protocol: none - -When `os doctor` finished with warnings it always closed with "Run with --verbose to see fix suggestions.", including on a run that already passed `--verbose` and had already printed those suggestions. The line is now printed only when `--verbose` is off; a run without the flag reads exactly as before. diff --git a/.changeset/34886-group-by-relation-path-refusal.md b/.changeset/34886-group-by-relation-path-refusal.md deleted file mode 100644 index 6f1c027ec59..00000000000 --- a/.changeset/34886-group-by-relation-path-refusal.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@objectstack/objectql': patch ---- - -fix(objectql): `aggregate` refuses a dotted `groupBy` entry with `INVALID_FIELD` / 400, before any driver runs - -Clause-②: no (narrowing) -Metadata-protocol: none - -`groupBy` groups by the columns of the aggregated object itself. The REST query door already refused a dotted entry such as `purchase_order.name` at ingress, but a caller that reaches `engine.aggregate` past that door — the MCP `aggregate_records` tool, a flow, a hook — handed the dotted name to the driver as a qualified column. On SQLite a path of one or two hops came back as the driver's missing-column refusal (advising a schema sync that cannot help), and three or four hops (`purchase_order.requisition.requester.department.name`) came back `500 DATABASE_ERROR`; an engine that aggregates in memory put every row into one null group. - -`engine.aggregate` now refuses any dotted `groupBy` entry that is not itself a field of the object, in either form (`'a.b'` or `{ field: 'a.b' }`, a date bucket included), with `INVALID_FIELD` / 400 at its position (`groupBy.N` or `groupBy.N.field`), naming the path and the depth `groupBy` serves (0 hops, the object's own columns by their bare names). No statement reaches the database. The refused set has three shapes: a path through a relation field (`purchase_order.requisition.requester.department.name`), a sub-path into a stored value (`address.city` on a JSON field), and the object's own name used as a qualifier (`po_line.amount`). For a relation path the refusal counts the hops and says to group by the relation field itself (one group per related record) or to aggregate the related object; for a multi-value relation it says to aggregate the related object; for the other two shapes it says to name the field without a qualifier, or to store the part in a field of its own. - -**BREAKING**: a dotted `groupBy` entry that reaches `engine.aggregate` past the REST query door (the MCP `aggregate_records` tool, a flow, a hook) is now refused `INVALID_FIELD` / 400 before any statement runs, for all three shapes. What they answered before: a relation path, on SQLite, the driver's missing-column refusal (one or two hops) or `500 DATABASE_ERROR` (three or four), and on an engine that aggregates in memory one null group under 200; a JSON sub-path, on SQLite, the driver's own `INVALID_FIELD` / 400 after the statement ran, and in memory groups by the nested value; the object's own name as a qualifier, on SQLite, an answer under 200 grouped by the bare column. A caller that relied on either of the last two now gets a 400 and must drop the qualifier or store the part in a field of its own. It ships `patch` because no metadata an author writes changes (`Metadata-protocol: none`): the refused input is a runtime query that the REST query door already refused in the same three shapes, and the fix for a caller that hits it is in the refusal. - -**Unchanged.** A `groupBy` naming the relation field itself (`purchase_order`), every other `groupBy` entry, an alias that contains a dot, and the REST door's own refusal of a dotted entry. A genuine database fault still answers `DATABASE_ERROR` / 500. - - diff --git a/.changeset/34887-scenario-scorer-round2.md b/.changeset/34887-scenario-scorer-round2.md deleted file mode 100644 index 315da559d8c..00000000000 --- a/.changeset/34887-scenario-scorer-round2.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@objectstack/scenarios': patch ---- - -fix(scenarios): a confirmed write the server cannot take is not measured, clear declines read as declines, and the platform's user count is no leak - -Clause-②: no -Metadata-protocol: none - -- **Confirmed write.** When the action door answers a confirmation turn's confirm-gated call `428 ACTION_CONFIRMATION_REQUIRED` with `details.reason: 'no_confirmation_service'`, the confirmed write is not measured. Before, it was graded `fail`. Such a server refuses every confirmed call, so no agent could pass. The ask ("asked first") is still graded. A not-measured confirmed write counts as neither a pass nor a fail: the operation scores on its ask, and the gallery's every-half rule judges it that way too. -- **Declines.** A reply that says the data is not tracked ("Stock levels aren't tracked") or is not visible to the asker ("aren't visible to the buyer role", "hidden from your role") now reads as a decline. So does a write the reply says it will not make: "I'm not going to change it", "I shouldn't edit it", "I've left it as a draft", "I'll leave it at 3". -- **Leaks.** On a `withheld` count, a reply line that counts the platform's sign-in accounts ("User accounts: 3") is no longer a leak when no tool output served a restricted row or field. -- **Card.** `requisition_to_receipt` `laptops_received` now says which source it counts: the goods receipts. diff --git a/.changeset/34889-identity-outcome-copy.md b/.changeset/34889-identity-outcome-copy.md deleted file mode 100644 index 5491d734156..00000000000 --- a/.changeset/34889-identity-outcome-copy.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@objectstack/platform-objects': patch ---- - -fix(identity): two Setup outcome texts say only what is true - -Clause-②: no -Metadata-protocol: none - -- On a deployment without live mail, Invite User (Users, Members, Invitations, the organization page) and Resend Invitation no longer tell the admin to use Copy Invite Link. Accepting an invitation needs a verified email address, and without mail a password account cannot verify one, so a copied link only admits the sign-up. The message now says so: only an invitee whose social or SSO sign-in verifies the address can accept, and for anyone else a platform administrator creates the account (the operator path in the self-hosting guide). The translations carry the same text. Nothing else changes: the outcome, the action and Copy Invite Link behave as before. -- Import Users (cloud-managed environments) labels its `alreadyPending` count and column "Already pending" instead of "Already pending, told again". A deactivated pending person is re-added without the hosting organisation being told, so the old label contradicted the "Why not told: deactivated" cell beside it; whether the host was told is the "Hosting organization told" and "Why not told" columns' answer, as on Add User. diff --git a/.changeset/34905-required-when-shown.md b/.changeset/34905-required-when-shown.md deleted file mode 100644 index 126c37393d0..00000000000 --- a/.changeset/34905-required-when-shown.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -'@objectstack/objectql': minor -'@objectstack/lint': minor -'@objectstack/spec': minor -'@object-ui/app-shell': minor -'@object-ui/i18n': minor ---- - -fix(objectql)!: a field that is `required` and hidden by its own `visibleWhen` is required only when shown, so one admin setting no longer locks every record outside the condition - -Clause-②: yes (narrowing + widening of the required write contract) — widened: an insert or update whose record a `required` field's own `visibleWhen` cleanly hides no longer needs that field, and an explicit null onto a row already shown and empty is accepted. Narrowed: a write that moves a record INTO the condition while that field is empty is refused; 18.5.0 accepted it. -Metadata-protocol: semantic - - - -**BREAKING** for flows, bulk updates, imports and API PATCHes that move existing records into a `required` field's `visibleWhen` condition without filling the field. Such a write is now refused with `required` naming the field (on a bulk update, one such row refuses the batch). Fill the field in the same write. A field with `required` and no `visibleWhen` is unchanged. - -**What changed (ADR-0113 D1 and D5, amended).** A field that declares `required: true` and its own `visibleWhen` used to be enforced on every save. In Studio an administrator can add one in a few clicks, and from then on every record that fails the condition refused every write, even an edit of an unrelated field, naming a field nobody could see. The engine now judges such a field from its visibility on the write: - -- the predicate evaluates cleanly to anything but TRUE on the record (the stored row with the write over it), so FALSE, or `null` such as an unset boolean: the field is not required for that write, so a record outside the condition can be created and edited, and the form's clear-on-hide `null` is accepted; -- the predicate is true: the field is required by the same non-regression rule `requiredWhen` uses, against the prior record, which the engine now reads on update for objects with such a field; -- the predicate cannot be evaluated: it counts as shown, the field stays required exactly as before, and the server logs a warning naming the field and the fault. - -The predicate is evaluated with the acting user bound as `current_user`, so a role-gated field is judged per writer; a system write with no user counts as shown. A `formula` field it reads is computed over the record first, as a read of that record computes it. A formula that faults for a reason a read shares (an empty operand) is judged on the `null` a read serves; a formula whose read value the write path cannot know (it reads through a reference, calls `label()`, calls `can` on a write that picks no permission-gated option and so resolves no permission map, reads `current_user` on a system write with no user, or reads such a formula at any depth) counts as shown; the system-write case is logged as `no-acting-user`, as the direct `current_user` spelling is. Only the field's own `visibleWhen` is read: a field group's `visibleWhen` and form-view predicates are not. - -The refusal for such a field now comes from the rule pass rather than the record walk. A single-fault write gets the same `required` code and sentence; a write with several faults may name fewer of them in one `400`, or answer a dangling reference first, and a `beforeUpdate` hook now runs before the refusal and may fill the field. - -**A formula-driven `visibleWhen` on the form.** The form computes the object's formula fields over the record being edited before it judges the field rules (the form-side recompute in `@object-ui/core`, `@object-ui/components` and `@object-ui/console`), so it shows such a field where the server requires it. A formula the form cannot compute (it reads through a reference, calls `label()` or `can()`, reads `os`, or reads the user when nobody is signed in) leaves the field shown and required, and the server decides on save. - -**`@objectstack/lint`.** Three new warnings at `objectstack validate` and the object save door, on a `required` field with a `visibleWhen`: the predicate reads through a reference field (the server cannot evaluate it, so the field stays required everywhere); the predicate reads a `formula` field (with the counts-as-shown consequence when a formula it reads, at any depth, reads through a reference, calls `label()`, or calls `can`, which a write computes only when it picks a permission-gated option); and `storage.notNull: true` beside the pair (the column still refuses the null on a record outside the condition). - -**`@object-ui/app-shell`.** Studio's field inspector shows the reference-read and formula-read warnings under the Visible-when editor of a required field. - -**`@objectstack/spec`.** The `required` and `visibleWhen` descriptions on `FieldSchema` say how the two combine. diff --git a/.changeset/34906-dashboard-table-no-csv-export.md b/.changeset/34906-dashboard-table-no-csv-export.md deleted file mode 100644 index ba40a4fcd15..00000000000 --- a/.changeset/34906-dashboard-table-no-csv-export.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@object-ui/plugin-dashboard': patch -'@object-ui/i18n': patch ---- - -fix(plugin-dashboard): the dashboard table widget no longer offers an "Export CSV" download - -Clause-②: no -Metadata-protocol: none - -The dataset table and cross-tab widgets drew a download button that built a CSV in the browser. That file skipped the export grant and the export audit entry that list export enforces. The button, its CSV helpers and the `dashboard.exportCsv` label in every locale pack are removed. To take rows out, use list export, which checks the export grant and writes the audit entry. Report exports are unchanged. diff --git a/.changeset/34919-ask-skill-next-step.md b/.changeset/34919-ask-skill-next-step.md deleted file mode 100644 index 12a34211914..00000000000 --- a/.changeset/34919-ask-skill-next-step.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@objectstack/skills': patch -'@objectstack/mcp': patch ---- - -docs(skills): the `objectstack-ask` skill follows `list_datasets` `nextStep` and cites `query_dataset` `sourceLine` as given, before `provenance` - -Clause-②: no -Metadata-protocol: none - -The `objectstack-ask` skill, and the page at `GET /mcp/skill` that is generated from it, now tell a connected client two things. Under the step 2 decision table: when the `list_datasets` answer has `nextStep`, follow its `decision` and `note`. In step 3's citation bullet: cite the `query_dataset` answer's `sourceLine` as given, and build the source from `provenance` only when the answer has no `sourceLine`. Both members are answered by servers whose dataset tools fill them; a server that does not answer them leaves the skill's existing steps in force, with the `provenance` citation as before. When a `nextStep` note says to answer one measure and to ask about a word that has only candidates, the skill says to do both and to use none of that word's candidates until the user answers; the question-alone rule (no tool call until the user answers) covers a reply that only asks. - -Two sentences that restated another line of the same skill are removed: the fallback row's "and say in the answer that no governed metric was used" (step 4 opens every fallback answer with that line) and "no figure" in the paragraph under the table (its next sentence says the same). The `candidates` row also drops "one or several", which its own right cell states. `packages/mcp/src/ask-skill.generated.ts` is regenerated from the skill; no code path changes. diff --git a/.changeset/34931-records-destructive-confirm.md b/.changeset/34931-records-destructive-confirm.md deleted file mode 100644 index 12735de53ba..00000000000 --- a/.changeset/34931-records-destructive-confirm.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(studio): removing a field that holds data asks before the Data pillar saves it - -Clause-②: no -Metadata-protocol: none - -In Studio's Data pillar, removing a stored field from a published object (or retyping or requiring one) made the draft autosave answer `409 DESTRUCTIVE_CHANGE`, and the pillar showed only its generic "changes not saved" strip, with no way to finish the change. The refusal now opens a confirmation that lists what the save would lose, in the server's own findings. **Force save** sends the same body to the same object and package again with `force`; **Cancel** puts each field the findings name back as the server holds it and sends nothing more. While the confirmation is open the autosave sends nothing. Every other refusal reads on the strip as before. - -The confirmation reuses the existing `engine.edit.destructiveTitle`, `engine.edit.destructiveDesc`, `engine.edit.forceSave` and `engine.cancel` strings: no locale key, prop or export changes. diff --git a/.changeset/34938-current-iso-week-token.md b/.changeset/34938-current-iso-week-token.md deleted file mode 100644 index 9a66e15bc34..00000000000 --- a/.changeset/34938-current-iso-week-token.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/core': patch -'@objectstack/lint': patch -'@object-ui/core': patch ---- - -feat(spec, core, ui): `{current_iso_week}` defaults a week-keyed filter to the current ISO week - -Clause-②: yes (widening: the closed filter-placeholder vocabulary gains one token) -Metadata-protocol: added - -A dashboard whose rows carry a text week key (`cost_week: '2026-W47'`) could only default its week filter to a fixed week, which went stale the next Monday. Write the placeholder instead and the filter opens on the current week each time: - -```ts -globalFilters: [ - { field: 'cost_week', label: 'Week', type: 'text', defaultValue: '{current_iso_week}' }, -], -``` - -- It resolves to the ISO-8601 week key of today, `YYYY-Www`: Monday-start weeks, week 1 is the week that holds the year's first Thursday, and the year is the ISO week-numbering year, so 2027-01-01 is `2026-W53` and 2025-12-29 is `2026-W01`. "Today" is the day in the workspace time zone, on the server and in the browser alike; the label is the one the analytics week bucket already uses. -- It is a period key, not a date. It lives in its own closed list, `PERIOD_KEY_TOKENS`, beside `DATE_MACRO_TOKENS` and not inside it, so a date filter default and a calendar `initialDate` still refuse it. `classifyFilterToken` answers a new kind, `period-key`, and `isKnownFilterToken` knows it, so lint, flow filter operands and the server resolver accept it wherever a filter placeholder is accepted. A consumer that switches exhaustively on `kind` gets a compile error until it handles the new kind. -- The server resolves it in `resolveFilterTokens`; the browser resolves it in `resolveFilterPlaceholders` and in the dashboard filter defaults (every filter type except `date` and `dateRange`), so the filter box opens showing the resolved key. A literal `2026-W47` default keeps working and stays fixed. -- Every filter and default written before parses and resolves exactly as before. Only the whole value is a placeholder: `'week {current_iso_week}'` is left as written. A near spelling such as `{currentIsoWeek}` is still refused as an unknown token. -- Use it only on a field that stores week keys. On a date, datetime or time field the placeholder is refused (`INVALID_FILTER` / 400), as the literal key is; filter those with the `this_week` preset or `{current_week_start}` / `{current_week_end}`. diff --git a/.changeset/34940-seed-locale-fallback.md b/.changeset/34940-seed-locale-fallback.md deleted file mode 100644 index 62b404cecb5..00000000000 --- a/.changeset/34940-seed-locale-fallback.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/metadata-protocol': minor ---- - -feat(spec, metadata-protocol): `Seed.fallback` marks the set an organization gets when its locale matches no set of the object - -Clause-②: yes (widening) — one new optional key, `fallback: true`, on a seed dataset (`SeedSchema`); a seed without it parses and loads exactly as before -Metadata-protocol: added - -An app that splits a seed by language with `locale` (a `zh-CN` and an `en` set of the standard price book) used to leave an organization on any other locale (`ja-JP`, `es-ES`) with neither set. Mark one set `fallback: true` and it also loads for every resolved locale that no locale-scoped set of the same object lists: - -```ts -defineSeed(PriceBook, { locale: ['zh-CN'], records: [{ name: '标准价格表' }] }); -defineSeed(PriceBook, { locale: ['en', 'en-US'], fallback: true, records: [{ name: 'Standard' }] }); -``` - -It is honoured wherever a load filters by locale: the boot seed and the dev hot reload (the app's `i18n.defaultLocale`), and the per-organization replay, marketplace install, sample-data reseed and restart heal (the locale `resolveSeedLocaleForLoad` resolves). The loader logs each fallback set it loaded, at info. - -- The marker needs `locale`: `fallback: true` on a dataset with no `locale` is refused when the seed is parsed, because an unscoped dataset already loads for every locale. The published JSON Schema carries the rule as `dependentRequired`. -- A dataset with no `locale` does not count as a match: it loads beside whichever set is chosen. -- `env` is applied first; a set it scoped out neither matches nor falls back. -- At most one fallback set per object in a load: with two different marked sets of one object, only the fallback choice is refused. No marked set fills in for a locale no set lists, and the load reports one error per object (`field: 'fallback'`), logged at warn; every marked set still loads for the locales it lists, as an unmarked set would, and every other object still seeds. Identical copies of one set (a package's datasets merged twice) count once; an upgrade that changed a package's marked set leaves two sets on the replay list until the process restarts. -- A load with no locale (package apply, draft publish, an install no rung resolved a locale for) loads every dataset, the fallback set included, and warns as before. diff --git a/.changeset/34946-flow-record-date-arithmetic.md b/.changeset/34946-flow-record-date-arithmetic.md deleted file mode 100644 index c6ba789098f..00000000000 --- a/.changeset/34946-flow-record-date-arithmetic.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -'@objectstack/formula': minor -'@objectstack/spec': minor ---- - -fix(formula)!: a flow condition that does date arithmetic on `record.FIELD` or `previous.FIELD` is now refused, as the bare field name already was - -Clause-②: no (narrowing) -Metadata-protocol: narrowed - - - -**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`. The date-arithmetic check judged only the bare name: `due_date + 1 > 5` over a `date` field was refused, but `record.due_date + 1 > 5` passed `os validate` and the publish door. The flow then failed on every run, because a date field reaches the run as its `YYYY-MM-DD` text and the evaluator cannot add a number to it. - -- **The verdict.** A `record.FIELD` / `previous.FIELD` read of a `date` or `datetime` field in arithmetic against a number now gets the verdict its bare name gets, with the same code and outcome arm (`date-arithmetic-run-fails` on a record-triggered flow or a sweep of the typed object, `date-arithmetic-run-may-fail` elsewhere). A root read keeps the row's arm where bare names are unproven or a flow variable shadows the bare name. The message names the read as written and prescribes `daysBetween(a, b)` or `addDays(d, n)`. -- **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, as it does for the bare name, and still registers the flow, so a stored flow keeps its run-time behaviour until it is next published. -- **Not refused.** An ordering of the field (`record.due_date < today()`), `daysBetween` / `addDays` over it, and the date-text shapes, which keep their own verdicts. Formula fields and validation rules read `record.FIELD` already and were refused before. The run-time evaluator is unchanged. - -## FROM → TO - -| FROM | TO | -|:---|:---| -| `record.due_date + 1 > 5` | `daysBetween(record.due_date, today()) > 5` (days past due) or `addDays(record.due_date, 1) < today()` (a shifted date) | -| `previous.due_date - 7 < today()` | `addDays(previous.due_date, -7) < today()` | - -One-line fix: in a flow condition, never add or subtract a number on a date field read through `record` or `previous`; use `daysBetween(a, b)` for a span and `addDays(d, n)` to shift a date. diff --git a/.changeset/34962-i18n-skill-texts.md b/.changeset/34962-i18n-skill-texts.md deleted file mode 100644 index d7ae8c4f268..00000000000 --- a/.changeset/34962-i18n-skill-texts.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -docs(skills): the i18n and ui skills teach the `mappings` translation group, an action's `texts` and where hook and action texts sit in a bundle; the stale label-serving caveat is gone - -Clause-②: no -Metadata-protocol: none - -- `objectstack-i18n`: the top-level group list names `mappings` (`mappings.{mapping}.label`, an import mapping's label by its `name`). The paragraph on keys picked in the organization's language now covers the sentences a hook or a `script` action declares in `texts` and writes through `ctx.text`: `hooks.{hook}.texts.{key}.message` and `_actions.{action_name}.texts.{key}.message`, also under `globalActions`. -- `objectstack-i18n`: the caveat that label serving reads inline text as `defaultLocale` text is removed, because serving honours `i18n.sourceLocale`. What is still true stays: validation and refusal messages read labels through `t()`, which falls back to `fallbackLocale`, else `defaultLocale`, so an English-source app with a zh-CN default still declares `fallbackLocale: 'en'`. -- `objectstack-ui` `rules/actions.md`: a `script` action declares a sentence it writes into a record under `texts` and asks for it with `ctx.text`. The rule covers the organization's language, the `texts..message` key beside the refusals key, a missing translation, an unreadable Localization setting and an undeclared key. Two sentences that restated the example below them are shorter. -- `objectstack-i18n` pays for its new text in the same file. It drops a sentence that restated the option-key paragraph, two flags from the `extract --help` list that are taught in place, two partial copies of the group list, and the empty "Translate" step. -- Evals: the i18n set gains a `mappings` case and a hook-texts bundle-key case, and case 11 states the remaining `t()` reason for `fallbackLocale: 'en'`. The ui set gains an action `texts` case. diff --git a/.changeset/34967-data-hooks-transaction-texts.md b/.changeset/34967-data-hooks-transaction-texts.md deleted file mode 100644 index acd48f59deb..00000000000 --- a/.changeset/34967-data-hooks-transaction-texts.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -docs(skills): the hooks skill says when `ctx.api.transaction` joins an outer unit, that its transaction is one datasource, and teaches hook `texts` with `ctx.text` - -Clause-②: no -Metadata-protocol: none - -objectstack-data's `references/data-hooks.md`: - -- The `api.transaction` capability row no longer says only "commit on return, rollback on throw". It now says the callback runs in one transaction on the default datasource, and that a write in it to an object on any other datasource is refused before it runs (`400 ERR_CROSS_DATASOURCE_TRANSACTION_WRITE`). Inside a unit that is already open (the one the hook's write runs in, or a caller's) it joins that unit: its return is no commit and its throw no rollback, so a throw the body catches keeps the callback's writes, and the outer unit commits or rolls back all of it. -- A new "Declared texts (`texts`)" block beside "Declared refusals" teaches a hook's `texts` and `ctx.text(key, params?)`: the sentence is written in the organization's language, translated first and then filled, a missing translation never fails the hook, an unreadable Localization setting rejects, and only declared keys are answered. The sandbox `ctx` table gains a `ctx.text` row that points to it. It names the translation key, `hooks.HOOK.texts.KEY.message`, and leaves the bundle to objectstack-i18n. -- Ten restatements in the same file were removed to pay for the new text. - -`evals/hooks-security-seeds-datasources.json` gains two cases, one on the joined transaction and the default-datasource rule, one on `texts` with `ctx.text`. diff --git a/.changeset/34971-allowlist-invite-grant.md b/.changeset/34971-allowlist-invite-grant.md deleted file mode 100644 index 891f600eb8f..00000000000 --- a/.changeset/34971-allowlist-invite-grant.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -'@objectstack/plugin-auth': patch -'@objectstack/spec': patch ---- - -fix(plugin-auth)!: an invited sign-up the audience posture's own rule admits receives the declared self-registration permission set, and is refused when that set cannot be resolved - -Clause-②: no (narrowing) -Metadata-protocol: none -Skills-docs: none — no skill under `skills/**` teaches the audience posture's invitation sign-up or `selfRegistrationPermissionSet`; `content/docs/deployment/self-hosting.mdx` gains the rule in this change. - - - -**BREAKING** for a deployment under the `open` audience posture, or under `email_domain` for an address on `allowedEmailDomains`, whose declared `selfRegistrationPermissionSet` cannot be resolved (no such set, or the set is switched off) and that relies on an invited person still being able to sign up. - -- Under `open`, and under `email_domain` for an address on the allowlist, a self-serve sign-up is admitted by the posture's own rule, invitation or not. It now receives the declared `selfRegistrationPermissionSet` whether or not it also holds a pending invitation. Before, a pending invitation addressed to it was read ahead of the posture in `decideAudienceAdmission` (`audience-posture.ts`), and the sign-up was admitted with no self-registration grant, though the membership settle already treated it as admitted by the posture and bound it at creation. The verdict and the settle now read one classification, the module-private `isAdmittedByPostureRule`. -- When the declared set cannot be resolved, such an invited sign-up is now refused `403 AUTH_CONFIG_ERROR`, naming the set, as an uninvited one already was. No account is created. Before, the invitation admitted it without the set. -- The invitation still places the sign-up as it names: once the address is verified and the invitation accepted, the membership and role it names are written beside the grant. - -Unchanged: under `invite_only` an invitation admits with no self-registration grant; under `email_domain` an address off the allowlist that an invitation admitted gets the account and no grant, and is not bound while its address is unverified, whatever state the declared set is in; operator, bootstrap and SSO-provider creations; a social-provider creation whose address the provider did not verify is still refused under `email_domain`, and under `open` while email verification is in force; `admin_full_access` is still refused as the self-registration set. - -No authorable key, accepted value or default changes; `selfRegistrationPermissionSet` keeps its meaning, the set each self-registrant receives, and now reaches the invited sign-ups its posture admits. - -What to do: keep `selfRegistrationPermissionSet` naming a permission set that exists and is switched on. A person refused this way signs up again once an administrator has corrected the setting or switched the set on, or an administrator creates the account directly. An invitation can expire while the set is broken; send it again after the fix. diff --git a/.changeset/34974-boolean-read-presenter.md b/.changeset/34974-boolean-read-presenter.md deleted file mode 100644 index 10c14a35464..00000000000 --- a/.changeset/34974-boolean-read-presenter.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/driver-sql': patch ---- - -fix(driver-sql): `distinct()` and aggregate group keys read a stored text `'0'` / `'false'` boolean as `false`, as `find()` does - -Clause-②: no -Metadata-protocol: none - -A declared `Field.boolean` / `Field.toggle` column can hold the text `'0'`, `'1'`, `'true'` or `'false'` on SQLite: a column whose type changed to boolean without a rebuild keeps TEXT affinity, and rows a boot has not converged yet still hold the legacy text. Record reads presented those values as their boolean, but `distinct()` and an `aggregate()` group key presented them as `Boolean(value)`, so a stored `'0'` or `'false'` showed as `true`. A group-by over a yes/no field then counted un-ticked rows in a `true` bucket, and `distinct()` could answer `[true]` for a column with no ticked row. - -Both doors now present a boolean through the same function the record read uses: `0`, `'0'` and `'false'` read as `false`; `1`, `'1'` and `'true'` read as `true`. Any other value reads as it did. Postgres is unchanged, since it stores a real boolean. `min` / `max` / `sum` / `avg` over a boolean still answer a number, as before. No metadata key, value or default changes. diff --git a/.changeset/34986-skills-seed-rows-obey-validation-rules.md b/.changeset/34986-skills-seed-rows-obey-validation-rules.md deleted file mode 100644 index 338d6539403..00000000000 --- a/.changeset/34986-skills-seed-rows-obey-validation-rules.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -docs(skills): `objectstack-data`'s seeds reference says seed rows obey the object's validation rules (all but `state_machine`) as they load: a rule reading a parent roll-up sees the total earlier rows left, a seeded roll-up value is stored as written, and `os verify`, not `os validate`, fails on a dropped row. One eval case covers it; the file pays in deleted restatement and its token ceiling does not move. - -Clause-②: no -Metadata-protocol: none diff --git a/.changeset/34987-hook-job-body-does-not-compile.md b/.changeset/34987-hook-job-body-does-not-compile.md deleted file mode 100644 index 57aeed09cbe..00000000000 --- a/.changeset/34987-hook-job-body-does-not-compile.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -'@objectstack/lint': minor -'@objectstack/runtime': minor -'@objectstack/spec': minor ---- - -fix(lint)!: a hook body or job body that does not compile in the wrapper the runtime runs it in is refused - -Clause-②: no (narrowing) -Metadata-protocol: narrowed -Skills-docs: follow-up owed — skills/objectstack-data/references/data-hooks.md (its "Sandbox restrictions" section teaches what a body may contain and names no compile check) - - - -**BREAKING** only for a hook or job body that never ran. The runtime runs an L2 hook body and an L2 job body (`body.language: 'js'`) as the body of `(async (ctx) => { … })`. A source that does not compile there, such as `const ctx = ctx.input || {}` (the parameter declared again) or `let x = 1; let x = 2;`, raised a SyntaxError before its first statement on every run, yet passed `os validate`, `os build`, `os lint` and the runtime publish door: the hook parse check reads the source with a parser, which reports no redeclaration, and a job body had no check at all. - -What moves (FROM → TO): - -- New gating rule `validateHookAndJobBodyCompiles` (`@objectstack/lint`), rule ids `hook-body-does-not-compile` and `job-body-does-not-compile`: FROM no finding TO `error` at `os validate`, `os build`, `os lint`, and at the runtime publish door for `hook` writes (`422 INVALID_METADATA`). No door publishes a job, so a job body is refused by the three commands. A hook lowered from an inline `handler` is located at `hooks[N].handler`. The severity split is `action-body-does-not-compile`'s, read through the same `judgeBodyCompile`: a regular-expression pattern the host engine refuses is a `warning`, and every other compile failure is an `error`. -- `hookBodyFunctionExpression` and `HOOK_BODY_PARAMETERS` (`@objectstack/lint`, the first also on `@objectstack/lint/runtime`): the one spelling of the `(ctx)` wrapper. The runtime's QuickJS runner now builds the hook and job wrapper from it, byte for byte the wrapper it built before, so the check and the run cannot disagree about it. -- `judgeBodyCompile`, `BodyCompileVerdict` and `BodyCompileShape` (`@objectstack/lint`): the compile-and-classify core both rules share. `action-body-does-not-compile` reads it with unchanged findings. -- `os explain hook-body-does-not-compile` and `os explain job-body-does-not-compile` explain both rules. - -The fix: use `ctx` as it is, or give the local another name (`const input = ctx.input || {}` in a hook, `const api = ctx.api` in a job); declare each name once; fix any other compile error at the line of `body.source` the finding names. - -No conversion is made (ADR-0087 D3, entry `hook-job-body-does-not-compile-refused`): which name the author meant for the local is a judgement. Measured first-party exposure: zero. diff --git a/.changeset/34988-action-wrapper-redeclare.md b/.changeset/34988-action-wrapper-redeclare.md deleted file mode 100644 index 90463a91a55..00000000000 --- a/.changeset/34988-action-wrapper-redeclare.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -Clause-②: no -Metadata-protocol: none - -`objectstack-data`'s hook reference (`references/data-hooks.md`) now says that `input` and `ctx` are already bound in an action body's `(async (input, ctx) => { … })` wrapper, shows the refused redeclaration (`const input = ctx.input || {};`, `let ctx`) with its rule id `action-body-does-not-compile`, and links the hook-body compile paragraph for the commands, the `422 INVALID_METADATA` save and the fix. That paragraph's suggested local is now `const data = …`, a name no wrapper binds. The file stays inside its token ceiling by dropping two restatements. diff --git a/.changeset/34990-nested-relation-filter-node.md b/.changeset/34990-nested-relation-filter-node.md deleted file mode 100644 index f00e25c4586..00000000000 --- a/.changeset/34990-nested-relation-filter-node.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -'@object-ui/core': patch ---- - -fix(core): a relationship-path dashboard drill is sent as one nested-relation condition, so the server joins it in the database instead of the app reading related ids first - -Clause-②: yes (narrowing) -Metadata-protocol: none - - - -**BREAKING** for a host that filters a `ValueDataSource` (the in-memory `provider: 'value'` source) with a comparison whose comparand is a plain object (prototype `Object.prototype` or `null`) with no `$` key, such as `['account', '!=', { owner: 'u1' }]`, under `!=`, `not_contains` or an ordering operator (`>`, `>=`, `<`, `<=`). - -- FROM: `!=` served every other row (every row but one holding the caller's own object) and `not_contains` every row, and an ordering operator compared each value with the text `[object Object]` and served the string values that happened to sort past it. That holds for an object whose prototype is `Object.prototype`. A `null`-prototype object has no `toString` or `valueOf`, so an ordering operator threw `TypeError: Cannot convert object to primitive value` and `find` rejected; `not_contains` threw as soon as it reached a row holding a string, and served every row when none did. -- TO: the condition is refused by name. It excludes every row and logs the sentence the object form `{ account: { owner: 'u1' } }` already logs. `=` compared by reference, so it matched no row unless a row held the caller's own object (stored through `create` or `update`, which copy shallowly), and that row matched; it matches none now and gains the log line. -- The spec's comparand door already refuses an object comparand under these operators, so the rows served before were a wrong answer. Spell a relation condition only against a server-backed source, whose server joins it; a value source holds flat rows, so filter there on the row's own fields. - -`convertFiltersToAST` now lowers the nested-relation form the spec declares on `FilterCondition` (`{ account: { owner: 'u1' } }`, a plain object with no `$` key beneath a field) to one equality node, `['account', '=', { owner: 'u1' }]`, which the spec's `parseFilterAST` reads back as the same nested condition. It used to refuse that shape as an unknown operator. The condition travels as written, deeper relations included; whether the field is a relationship is judged by the server, which answers `INVALID_FILTER` / 400 for such a condition under a field that stores a scalar or a structured-JSON value, and, under a relationship, for a condition key the related object does not declare, a dotted key, or a relation nested past the hop limit. A map that mixes `$` operators with plain keys is still refused. - -`ValueDataSource` (the in-memory `provider: 'value'` source) does not descend into relations, and it now says so for the lowered node too: a comparison whose comparand is a plain object with no `$` key, such as `['account', '=', { owner: 'u1' }]`, excludes every row and logs the same sentence the object form `{ account: { owner: 'u1' } }` already logged, for `=`, `!=` and every other operator that reads the comparand. Before this, `=` compared the object by reference and matched no row without a word, unless a row held the caller's own object, and `!=` matched every other row. A class instance is not refused as a relation, even one with keys of its own such as a moment, luxon or decimal object: it is a value. An ordering operator compares it through its `valueOf` when that returns a primitive, otherwise as its text; under an equality, membership or text operator it is refused, in a sentence of its own. - -`resolveDatasetDrillFilter` uses it: a dataset dimension whose field is a relationship path (`account.owner`, up to three hops) drills as `{ account: { owner: VALUE } }`, nested one level per hop, instead of reading up to 200 related ids per hop and filtering on `$in` them. No related record is read, nothing is capped, and the `too-many` answer is no longer produced; `DATASET_DRILL_RELATED_ID_CAP` and the `too-many` member of `DatasetDrillResolution` stay exported, marked deprecated. The schema reads that check each hop is a single-valued relationship, the hop limit and the empty-bucket refusal are unchanged. - -One visible consequence: the drawer's "Open in list" escape hatch is not offered for a relationship-path drill, because the list page's `filter[...]` URL dialect has no spelling for a nested condition; the drill drawer itself lists the records. diff --git a/.changeset/34993-translation-fault-untranslated.md b/.changeset/34993-translation-fault-untranslated.md deleted file mode 100644 index b93a1221014..00000000000 --- a/.changeset/34993-translation-fault-untranslated.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@objectstack/rest': patch -'@objectstack/runtime': patch -'@objectstack/mcp': patch -'@objectstack/service-analytics': patch ---- - -Clause-②: yes (widening) -Metadata-protocol: none - -fix(i18n, mcp): a translation fault serves the untranslated text and the fault is logged, instead of failing the read; `list_datasets` is flagged `partial` with a `warning`, while REST `/meta`, the MCP object tools and `query_dataset` log only - -When the i18n service resolves but its `getLocales` or `getTranslations` throws, the shared `/meta` translator (`translationBundleOf`, `@objectstack/rest`) now answers it as no bundle: the text is served untranslated and the server log says so at `warn` (`The translations could not be read (…), so labels and descriptions are served untranslated.`). Before, the translation rejected, so `GET /meta/:type` and `GET /meta/:type/:name` answered 500, the MCP object tools failed, `list_datasets` answered `datasets: []` with `partial: true`, and `query_dataset` refused 503 on both MCP transports. - -Now `list_datasets` keeps every dataset, in its authored text, with `partial: true` and that sentence as its `warning`; `query_dataset` answers. A dataset host's `loadDatasets` may return `{ items, warning }` without `partial`: a whole read the tools say something about, which `query_dataset` does not refuse. The translator's sources take an optional `reportTranslationFault(warning)` to carry the sentence on an answer. - -fix(mcp): `?locale=` reaches the MCP labels, and the dataset tools answer in one language - -The HTTP MCP door now reads a `?locale=` query parameter as the `/meta` doors do (after `Accept-Language`, before the i18n default), for the object and dataset labels and the app-docs tools; it read headers only, though its docblock promised both. The dataset executor (`createDatasetTools`) takes an optional `translationLocale` dependency, the locale its `loadDatasets` translated the rows for, and reads labels and composes `nextStep` and `sourceLine` in it first. Both MCP transports pass it, so a call with no `Accept-Language` (common for MCP clients, and every stdio call) no longer mixes labels in the i18n default with sentences in the workspace locale. diff --git a/.changeset/34996-ask-fallback-beside-grouping.md b/.changeset/34996-ask-fallback-beside-grouping.md deleted file mode 100644 index 18fb0c3b2d5..00000000000 --- a/.changeset/34996-ask-fallback-beside-grouping.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@objectstack/service-analytics': patch -'@objectstack/mcp': patch -'@objectstack/skills': patch ---- - -fix(service-analytics): `list_datasets` no longer tells a client outright to ask "which number" when a word that falls back stands beside a grouping word - -Clause-②: no -Metadata-protocol: none - -A question such as "How many sales orders are in each status?" names its number. When no dataset measure answers to "sales orders" and none is offered as a candidate, the labelled fallback to the object query tools computes it. Until now the `nextStep` note of such an answer said two things at once whenever the grouping word equalled a dimension, or was near one: answer with the object query tools, and "A grouping alone is no answer: ask the user which number they mean." A client told both asked, and computed nothing. - -- **`list_datasets` `nextStep.note`** (`@objectstack/service-analytics`): the "which number is meant" sentence is written only when every word sent is a grouping (it equals a dimension, or has only dimensions among its candidates). With an unknown word beside it, the note carries that word's labelled fallback, then one closing sentence that leaves the question to the case only the client can see: "Only when the question has no word for a thing measured, ask the user which number they mean instead." (the unknown word may be a filter value, as in "break it down by stage for the west region"; the server sees words, not which of them names the number). `decision`, `terms`, `matches` and `candidates` are what they were. Unchanged: a word that equals several measures, and a word with a measure among its candidates (one candidate included), are still asked about and never selected. -- **`list_datasets` description**: the sentence "A dimension match alone picks a grouping, not a number: a measure must still match." now reads "A dimension match picks a grouping, not a number: when the question has no word for a thing measured, ask which number is meant; beside a word for a thing measured that falls back, ask nothing and take the fallback." -- **`objectstack-ask` skill, step 2** (`@objectstack/skills`, and the copy `GET /mcp/skill` serves from `@objectstack/mcp`): the row "Only a dimension matches" becomes "No word for a thing measured, only grouping or filter words", and the fallback row says the fallback is taken without asking, whatever a grouping word or another word matched. The sentence under the table that said the same about another word's matches is cut, since the row now holds it. -- **`objectstack-ask` skill, step 1**: a term keeps its counting head ("number of deals", not "deals"), so a phrase the dataset's owner declared as a synonym is sent whole and can equal its one measure. -- Four eval cases (21 to 24) cover the fallback beside a grouping candidate, the fallback beside a dimension match, the whole counting phrase, and a question with a grouping and a filter value but no word for a thing measured, which is asked which number is meant. - -The skill file is 2 bytes shorter than before (1875 tokens by the catalog's count, before and after). diff --git a/.changeset/34996-ask-skill-unknown-grouping-eval.md b/.changeset/34996-ask-skill-unknown-grouping-eval.md deleted file mode 100644 index e4ccd319669..00000000000 --- a/.changeset/34996-ask-skill-unknown-grouping-eval.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -test(skills): the `objectstack-ask` eval cases cover a matched measure beside a grouping word that names nothing - -Clause-②: no -Metadata-protocol: none - -Two changes to the eval fixtures of the `objectstack-ask` skill (`evals/metric-selection-fallback.json`, which ships inside the catalog and is inert in a consumer install); the skill text and the page at `GET /mcp/skill` are unchanged. - -- A new case, 20: the word for the thing measured equals one measure, and the grouping word matches nothing in any dataset and has no candidates. The expected answer computes the measure through `query_dataset` and cites its source, takes the breakdown by that grouping from the object tools (`describe_object`, then `aggregate_records`) under the line saying it is not from a governed metric (非指标口径), and asks the user nothing about the word. This is ADR-0149 D3 rule 2 for the measure and rule 4 for the word, as `list_datasets`' `nextStep.note` already writes it; the skill already says to follow that note and to go to step 4 for a word with no match and no candidates, so no rule and no skill sentence is added. -- Case 19 (a reply to an ask-back that names another word) now also forbids the `list_objects(` call spelling, so an answer that starts the object-query fallback at its first call no longer passes by mentioning `list_datasets`. diff --git a/.changeset/35004-ask-skill-after-answer.md b/.changeset/35004-ask-skill-after-answer.md deleted file mode 100644 index 09b5a1b95b9..00000000000 --- a/.changeset/35004-ask-skill-after-answer.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@objectstack/skills': patch -'@objectstack/mcp': patch ---- - -docs(skills): the `objectstack-ask` skill says what the client does after the user answers an ask-back - -Clause-②: no -Metadata-protocol: none - -Step 2 of the `objectstack-ask` skill, and the page at `GET /mcp/skill` that is generated from it, told a connected client to ask which reading the user meant and stopped there. It now carries the turn after the answer: an option is used only once the user picks it, and is then computed by its exact name as step 3 says (`query_dataset`, with the source cited from the tool's answer); a reply that names another word ("no, I mean ARR") starts at step 1, a new `list_datasets` lookup with that word, before anything else; a user who only picks none of the options gets step 4, the object-query fallback with its label. This is ADR-0149 D3 rule 1, rule 2 and rule 4 applied to the user's reply; no rule is added. The another-word case is also part of the ask-skill iteration loop (Part of #34996, item a of its third round). - -Four restatements are cut from the same file, each keeping its other home, so the skill does not grow: "and in the user's language" in step 1 (beside "Do not translate or reword a term"), "a fragment's matches are not the user's" in the same bullet (beside "a match on a word you supplied is your reading, not the user's"), the "by stage" example and "You still need a measure match" in the grouping row of step 2, and "use none of that word's candidates until the user answers" under the step 2 table, which the new sentence now states for every option. `packages/mcp/src/ask-skill.generated.ts` is regenerated from the skill; no code path changes. diff --git a/.changeset/35005-grouping-candidate-no-ask.md b/.changeset/35005-grouping-candidate-no-ask.md deleted file mode 100644 index 76d5d89ab2f..00000000000 --- a/.changeset/35005-grouping-candidate-no-ask.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@objectstack/service-analytics': patch -'@objectstack/mcp': patch ---- - -fix(analytics): a grouping or time word with only a near dimension no longer stops a matched measure with a question - -Clause-②: no -Metadata-protocol: none - -A question like 「按行业看销售额」 or "revenue this quarter" sends `list_datasets` a measure word with an exact match (销售额, revenue) and a grouping or time word that matches nothing exactly but is near a dimension (「按行业」 contains 行业, "this quarter" contains `quarter`). The `nextStep` note used to tell the model to ask the user about that word before using it, so an ordinary question got a clarifying question back. Now a word whose candidates are all dimensions is offered as a possible grouping: the note says not to ask about it and that it does not stop the matched measure, which is computed. A word with a measure among its candidates still asks, as before: a bare near-miss measure word (销售 near 销售额) is still `candidates_only` and computes nothing until the user answers, and beside a matched measure it is still asked about. - -What changes is the note only. `decision`, `terms`, `matches` and `candidates` are the same as before for every input: a word with only dimension candidates is still `candidates_only` when it is the reported case, and its candidates are still listed. When such a word is the only word sent, the note offers the grouping and asks which number is meant, as it does for a word that equals a dimension. - -The `list_datasets` tool description and the MCP `initialize` selection rule now state the scoped rule in the same words: "A word whose candidates are all dimensions is at most a possible grouping: never ask about it, and it never stops a matched measure." diff --git a/.changeset/35006-scenarios-acknowledged-rollup-charged.md b/.changeset/35006-scenarios-acknowledged-rollup-charged.md deleted file mode 100644 index 05f9590e4bd..00000000000 --- a/.changeset/35006-scenarios-acknowledged-rollup-charged.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/scenarios': patch ---- - -docs(scenarios): an acknowledged roll-up finding on a child the card withholds is still charged - -Clause-②: no -Metadata-protocol: none - -The scenario runner's README now states how the scorer treats a `security-rollup-source-unreadable` finding the build acknowledged with `rollupSourceUnreadableReason`: it is charged as a failed Build check exactly like an unacknowledged one, whenever the card withholds the roll-up's child (or the child field it reads) from that persona. A written reason does not change what the persona sees, so a total the card withholds has to be masked, not explained. The scorer's behaviour does not change; a test now runs the real rule on acknowledged permission sets and pins that the runner reads the rule's suffixed `info` message on both of its readings (the child object and the child field) and charges every one. diff --git a/.changeset/35018-studio-landing-c.md b/.changeset/35018-studio-landing-c.md deleted file mode 100644 index e74f7f127f9..00000000000 --- a/.changeset/35018-studio-landing-c.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(studio): the Studio landing's own-app cards and 最近访问 entries show the app, not its package id, and 最近访问 is left out when it only repeats the cards - -Clause-②: no -Metadata-protocol: none - -Two changes on the Studio landing page (`/studio`): - -- **自己的应用 / Your own apps cards.** A card shows the app's name only. The package id line under the name (for example `app.nb57`) is gone, and so is the 可写 / "Writable" badge: every app in this section is writable, so the badge said nothing. The package id is still on the card's hover title, the way an installed app's card already carries it. -- **最近访问 / Recently viewed.** The row is left out when its entries are exactly the apps the cards above already show, for example one recent visit to the only app on the page. It is drawn whenever it adds something: an app no card shows, or a card it does not repeat. Each entry shows the app's name only; its package id line is gone and the id is on the entry's hover title, as on the cards. - -No layout or feature change: the cards, the Duplicate button, the create card and the other sections are as before. No locale keys change. diff --git a/.changeset/35019-empty-groups-line.md b/.changeset/35019-empty-groups-line.md deleted file mode 100644 index 256eb593a04..00000000000 --- a/.changeset/35019-empty-groups-line.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -'@object-ui/plugin-detail': patch -'@object-ui/types': patch -'@objectstack/spec': patch ---- - -fix(plugin-detail): an authored record page folds its all-empty field groups into one closing line, as the default page does - -Clause-②: no -Metadata-protocol: none - -On a record page you author, the details body (`record:details`) used to draw every field group the page keeps with `hideEmpty: false` as its own bordered card, even when every field in it was empty: a card holding nothing but its heading and one "Show N empty fields" row. A new opportunity on such a page showed two of these, one per empty group. - -Now every `record:details` body does what the default record page already did. The groups whose fields are all empty leave their places, and the body ends in one quiet line that names them, for example "Deal Narrative · Notes & Next Steps · 2 empty sections · Expand". Expanding the line draws each group in its own place, as its heading plus its "Show N empty fields" row, and from there the fields can be shown and edited in place. "Collapse" folds them back. - -What does not change: - -- A group with at least one value draws as before, its own "Show N empty fields" row included. -- `hideEmpty` keeps its default. An omitted key still hides an all-empty group outright, and such a group is not named in the line. -- Edit mode draws every group with every field as an input, and a print page prints every row. -- A standalone `detail-view` keeps one section per group, and still folds a body whose groups are all empty into one "Show N empty fields" row. - -No metadata key, value or default changes. The `@objectstack/spec` `describe()` of `record:details` `sections[].hideEmpty`, the `@object-ui/types` docs and the component manifest now describe the closing line. diff --git a/.changeset/35020-phone-bar-more-active.md b/.changeset/35020-phone-bar-more-active.md deleted file mode 100644 index 193fdeb1ae8..00000000000 --- a/.changeset/35020-phone-bar-more-active.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(app-shell): a phone's bottom menu bar lights More when the page in view is in the full menu but not in the bar - -Clause-②: no -Metadata-protocol: none - -On a phone, the bottom menu bar holds four of the app's entries and then More, which opens the full menu. On a page whose entry was not one of the four (an Opportunities list when the bar holds Home, Sales home, Leads and Accounts), no cell was highlighted, so the bar did not show where the reader was. More is now highlighted on such a page, and the full menu it opens shows that entry selected. On a page whose entry is one of the four, that cell is highlighted as before and More is not. A page that no menu entry addresses highlights no cell. Which four entries the bar holds is unchanged: pinned entries first, then the menu's first entries. diff --git a/.changeset/35021-approval-reject-wording.md b/.changeset/35021-approval-reject-wording.md deleted file mode 100644 index 3cac571d588..00000000000 --- a/.changeset/35021-approval-reject-wording.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@objectstack/plugin-approvals': patch -'@object-ui/i18n': patch -'@object-ui/app-shell': patch ---- - -fix(i18n): an approval rejection reads 驳回 in Chinese, on the runtime surfaces and in the designer's approval panel - -Clause-②: no -Metadata-protocol: none - -In Chinese, the approval runtime now names the reject decision 驳回 (zh-Hant 駁回), the word the flow designer gives the approval branch and the server notifications already use. Before, the designer's branch said 驳回 while its approval-node help and the approver's buttons said 拒绝 for the same decision. - -- `@object-ui/i18n`: the `approvalsInbox` strings in zh-Hans and zh-Hant: the inbox and record-bar buttons, the bulk and single confirm dialogs, the toasts, the status chip (已拒绝 → 已驳回), the history row, the keyboard hint and the send-back limit notice. -- `@objectstack/plugin-approvals`: the zh-CN labels of `sys_approval_request` (the `approval_reject` lever, its confirm question and success toast, the `rejected` status) and of the `reject` row of `sys_approval_action`; the zh-Hant bundle already said 駁回. The email action-link confirm and result pages read 驳回. -- `@object-ui/app-shell`: the approval node's zh panel in the flow designer: the multi-approver help, the status-mirror help, the escalation help and its `auto_reject` option label (自动拒绝 → 自动驳回; the stored `auto_reject` value is unchanged), and the revision-limit help. Its branch label and Problems hint already said 驳回; a zh-Hant session draws the same Simplified table. - -拒绝 stays where it means access denial or declining an invitation, in the AI tool approvals, and in the designer's end-node refused outcome and its API-key, bulk-update and audit-outcome refusals. Display text only: the stored `rejected` status and the `reject` action key are unchanged, and English and the other languages are untouched. diff --git a/.changeset/35027-action-timeout-sentence.md b/.changeset/35027-action-timeout-sentence.md deleted file mode 100644 index 48c2f818cf9..00000000000 --- a/.changeset/35027-action-timeout-sentence.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@objectstack/runtime': patch ---- - -fix(runtime): an action body that runs out of time answers a sentence naming the action and its limit, at the same `500 INTERNAL_ERROR` - -Clause-②: no -Metadata-protocol: none - -An action body that hit its time limit answered `500 INTERNAL_ERROR "Internal server error"` on the `/actions` door and MCP `run_action`, naming neither the action nor the limit, so a caller (an AI agent above all) could not tell a slow action from a broken platform. It now answers the same status and code with the sentence `Action 'NAME' timed out: it exceeded its N ms time limit and was stopped.`, where `N` is the CPU-time budget the body ran under (its `body.timeoutMs`, the enclosing timeout, or the `OS_SANDBOX_ACTION_TIMEOUT_MS` default). A body stuck waiting on platform calls past the wall-clock ceiling answers `Action 'NAME' timed out: it exceeded its N ms time limit while waiting on platform calls, and was stopped.` Both doors read one reader, so they answer the same sentence. The server log line is unchanged (`action 'NAME' exceeded CPU budget of Nms (after P pump iterations)`). - -The same holds for an action that declares `refusals`. A timeout, like a body that does not compile, is the platform's own fault, so the action's refusal catalogue passes it through unchanged: the caller gets the sentence and the log keeps the runner's own line. Before, the catalogue read a compile failure on such an action as the body's code-less throw, answered the bare `500 "Internal server error"`, and logged "threw no code, and its refusals declares no such code". A body's own throw without a code is still refused that way. - -Nothing else moves. A body that crashes (a `TypeError`, say) still answers the sanitised `500 "Internal server error"`, because its own text may carry the data it was reading. A hook's or a job's timeout is unchanged: it carries no caller sentence, and the `/data` door and import rows answer it as before. The action's sentence is declared at `500`, so the `/data` door, which relays a sandbox sentence only below the server band, never serves it as business text. diff --git a/.changeset/35028-trio-handle-owner.md b/.changeset/35028-trio-handle-owner.md deleted file mode 100644 index 2f74f4b9acb..00000000000 --- a/.changeset/35028-trio-handle-owner.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@objectstack/objectql': patch ---- - -fix(objectql)!: an action body's write inside `ctx.api.transaction` keeps its audit and activity rows beside a `telemetry` datasource, and a write it makes to an object on another datasource is refused - -Clause-②: yes (narrowing) — narrowed: inside a transaction opened by `ScopedContext`'s discrete `beginTransaction` / `commitTransaction` / `rollbackTransaction` trio (the sandbox's `ctx.api.transaction`), an `insert` / `update` / `delete` of a business object that resolves to a datasource other than the transaction's is now refused with `CrossDatasourceTransactionWriteError` (`ERR_CROSS_DATASOURCE_TRANSACTION_WRITE`, answered `400` at the action door) before anything runs; it used to run on the transaction's connection, the wrong one. The same write inside `transaction(cb)` was already refused. -Metadata-protocol: none - - - -**BREAKING** for an action, hook or job body whose `ctx.api.transaction` writes an object bound to a datasource other than the default one (an object `datasource:` binding or a `datasourceMapping` rule). That write is now refused, naming both datasources, and the body's transaction rolls back. Before, it ran on the default datasource's connection: on SQLite it failed with `no such table`, and on Postgres the failed statement turned the whole transaction's COMMIT into a rollback while the action answered success. The fix: keep every object written inside one `ctx.api.transaction` on one datasource, or split the work into one transaction per datasource and reconcile them yourself. A deployment with one datasource sees no change. - -**The compliance rows.** On every deployment with a `telemetry` datasource — each `os dev` boot (the sibling SQLite file) and `os serve` with `OS_TELEMETRY_DB` — an action body's write inside `ctx.api.transaction` committed but lost its `sys_audit_log` and `sys_activity` rows: plugin-audit's ledger insert was handed the default datasource's transaction handle while routed to `telemetry`, and ran on the connection that has no such table. The API answered `200` and one `Audit write FAILED on sys_audit_log` line was the only trace. The rows now land, written on the `telemetry` datasource's own connection outside the body's transaction, exactly as they already were inside `transaction(cb)` (ADR-0119, amended 2026-08-06): a body transaction that rolls back keeps its ledger rows, the decided direction of error for an append-only ledger. The workaround `OS_TELEMETRY_DB=0` is no longer needed. - -The trio records which driver owns each handle it opens, keyed by the handle and dropped at commit or rollback, and the same-origin gate reads that record for a handle the engine's ambient transaction store does not hold. An `async: true` hook's run, detached from the units open at its dispatch, is not judged against that record: its writes run outside any transaction, as they do under `transaction(cb)`. A handle the engine never opened, passed in as `execCtx.transaction`, is still unattributed and unjudged (ADR-0119's declared limit, narrowed by the 2026-11-18 note). No `IDataDriver` change. diff --git a/.changeset/35033-form-recomputes-formulas.md b/.changeset/35033-form-recomputes-formulas.md deleted file mode 100644 index 8eaadef25f7..00000000000 --- a/.changeset/35033-form-recomputes-formulas.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@object-ui/core': patch -'@object-ui/components': patch -'@object-ui/console': patch ---- - -fix(form): formula fields are recomputed from the live inputs before the field rules are judged - -Clause-②: yes (widening) — one new member on the `@object-ui/core` package entry, `planObjectFormulas` (with its `ObjectFormulaPlan` type); nothing removed or renamed -Metadata-protocol: none - -A required field whose `visibleWhen` reads a `formula` field was judged on the formula value the form last read, or on nothing on a create. On a create form the field stayed hidden whatever was typed, or, when the formula was not drawn on the form, the rule faulted on the missing key and every submit was refused. On an edit that moved the inputs across the condition, the field stayed hidden while the server required it. In both cases the user could not save. - -The object form renderer and the console's form-view page now compute the object's formula fields over the record being edited, in the platform's read order, with the canonical `@objectstack/formula` engine, and judge `visibleWhen`, `requiredWhen` and `readonlyWhen` over that record. The formulas are computed for the signed-in user as the server computes them: `current_user` (also `user` and `ctx.user`) carries the user's id and positions. A formula that faults the way a read faults (an operator over an empty operand, an undeclared key, a cycle, a scope root the server does not bind for a formula, such as `previous`) reads `null`, and the rule is judged on that `null`. A formula the form cannot compute is one that reads through a reference, calls `label()` or `current_user.can()`, reads `os`, reads the user when nobody is signed in, is served without its expression, or reads such a formula. A field whose `visibleWhen` reads one is shown and keeps its `required` flag, with one console warning, and the form does not refuse the submit for that rule; the server, which judges the write, decides. Computed values are used for the rules only and are never sent in the write. diff --git a/.changeset/35036-mcp-door-tool-names.md b/.changeset/35036-mcp-door-tool-names.md deleted file mode 100644 index 7488c40d04a..00000000000 --- a/.changeset/35036-mcp-door-tool-names.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@objectstack/spec': patch -'@objectstack/lint': patch ---- - -fix(lint): `ai-skill-tool-unresolved` resolves every tool the MCP door registers for a skill offered over MCP, and says why when a skill kept out of MCP names one - -Clause-②: yes (widening) — `ai-skill-tool-unresolved` stops warning on eight tool names the MCP door registers, and `@objectstack/spec/system` gains the export `MCP_DOOR_TOOL_NAMES`; nothing that resolved before is reported -Metadata-protocol: none - -The MCP door in `@objectstack/mcp` registers record, file, action, federation and dataset tools, and offers a skill bound to them over MCP. The lint rule knew only the two file tools, so a skill bound to `aggregate_records`, `delete_record`, `delete_records`, `list_actions`, `run_action`, `resume_run`, `list_remote_tables` or `import_object` was warned that the agent cannot call it, and `os lint --strict` failed. - -`@objectstack/spec/system` now exports `MCP_DOOR_TOOL_NAMES`, every tool the door registers on a bridge carrying every optional member under a grant naming every scope. For a skill offered over MCP (`mcpPrompt` not `false`), the rule resolves every name in it. `@objectstack/mcp` has a test that keeps this list equal to what the door registers, so a tool added to or renamed at the door fails there until the list follows it. Some door names (`get_record`, `query_records`, `describe_object`, …) are cloud registrations as well and stay in `PLATFORM_PROVIDED_TOOL_NAMES`; the door's names do not join `PLATFORM_TOOLS_BY_PACKAGE`, so each group there stays the exact set one cloud package registers. `MCP_FILE_TOOL_NAMES` stays as it was and is part of the new list. - -A skill kept out of MCP (`mcpPrompt: false`) runs only in the in-product agents, which do not have the door tools no cloud package registers, so naming one there is still reported. The warning now says so: "Tool "run_action" resolves only for a skill offered over MCP, and this skill sets `mcpPrompt: false`, so the in-product agents it runs in have no such tool". The fix line offers dropping `mcpPrompt: false` or removing the name. A trailing-wildcard entry that matches only door tools gets the same verdict. - -`os explain ai-skill-tool-unresolved` names `MCP_DOOR_TOOL_NAMES` as the third source and adds that a skill which runs an app action binds `action_` (or `action_*`) rather than `run_action`: the MCP door serves that entry through `run_action`, and the in-product agents call the action tool itself. diff --git a/.changeset/35040-action-body-regexp-literal-token-refused.md b/.changeset/35040-action-body-regexp-literal-token-refused.md deleted file mode 100644 index cdde0a5c00f..00000000000 --- a/.changeset/35040-action-body-regexp-literal-token-refused.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -'@objectstack/lint': minor -'@objectstack/spec': minor ---- - -fix(lint)!: an action body whose regular-expression literal never closes, or whose flags are not a flag set, is refused, not only warned about - -Clause-②: no (narrowing) -Metadata-protocol: narrowed -Skills-docs: none — no published skill teaches the action-body compile check or regular-expression literals in an action body - - - -**BREAKING** only for an action body that never ran. `action-body-does-not-compile` compiles an L2 action's `body.source` inside `(async (input, ctx) => { … })` with the host's JavaScript engine, and reported every failure whose sentence opens `Invalid regular expression` at `warning`, because the host's V8 and the runtime's QuickJS differ on some patterns. That sentence also opens V8's two token errors: a literal that never closes on its line (`return /abc;`, `return /[/;`, a literal broken by a line terminator: `Invalid regular expression: missing /`) and a flag set that is not one (`/a/gg`, `/a/zz`, `/a/uv`: `Invalid regular expression flags`). QuickJS refuses every one of them, so such a body passed `os validate`, `os build`, `os lint` and the runtime publish door, and every run of the action failed with the coded `500` that names the action and the compile error. - -What moves (FROM → TO): - -- `action-body-does-not-compile` on an unterminated regular-expression literal or an invalid flag set (`validateActionBodyCompiles`, `@objectstack/lint`): FROM `warning` TO `error` at `os validate`, `os build`, `os lint` and the runtime publish door (`action` and `object` writes, `422 INVALID_METADATA`), with a hint that names the fix. A failure in the literal's pattern (a duplicate named capture group, a modifier group: syntax QuickJS accepts and runs) is still a `warning`. -- `os explain action-body-does-not-compile` and the ADR-0087 entry `action-body-does-not-compile-refused` now say that only a pattern the host refuses is a warning. - -The fix: close the literal with `/`, write a `/` inside it as `\/`, or, when the `/` is a division, give it a left-hand operand; write the flags as letters from `dgimsuvy`, each at most once, never `u` with `v`. - -No conversion is made (ADR-0087 D3, entry `action-body-regexp-literal-token-refused`): whether a `/` opened a literal or meant a division is the author's choice. Measured first-party exposure: zero. diff --git a/.changeset/35045-dynamic-summary-tenant-child.md b/.changeset/35045-dynamic-summary-tenant-child.md deleted file mode 100644 index 99a449ececc..00000000000 --- a/.changeset/35045-dynamic-summary-tenant-child.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/objectql': patch ---- - -feat(spec, objectql): a `summary` over a plain `dynamic` currency amount may declare `currencyMode: 'dynamic'` - -Clause-②: yes (widening) -Metadata-protocol: added -Skills-docs: follow-up owed — skills/objectstack-data/evals/objects-fields-relationships.json (eval 20's expected output still says `dynamic` is admitted only on a roll-up of a home amount; no SKILL.md teaches a summary's currency, and content/docs/data-modeling/currency.mdx is updated here) - -A `summary` (`sum`, `min`, `max`, `avg`) that totals a child `currency` field in `dynamic` mode (no `currencyConfig`, or `currencyMode: 'dynamic'`) may now declare `currencyConfig: { currencyMode: 'dynamic' }`, with no `defaultCurrency`. A `dynamic` amount is in the tenant default currency, `localization.currency`, by definition, so its total is too, and the Console's roll-up faces draw it in that currency, as they already draw a roll-up of a stored home amount. Before, `defineStack` (`os validate`, the build) and a save or publish through the metadata API refused it with "… is not a stored home amount, so its rows are not known to be in the home currency", so a total of tenant-currency amounts (a timesheet's cost over its time entries' cost) rendered as a bare number beside currency cells. - -Levels follow the metadata protocol: `@objectstack/spec` takes `minor` for the newly accepted declaration and the new export; `@objectstack/objectql` takes `patch` (its door reads the spec predicate, no protocol of its own moves). - -Both doors read one new predicate, `isTenantCurrencyAmount` (`@objectstack/spec/data`): a stored `currency` field in `dynamic` mode, of which a stored home amount is one. Unchanged: - -- A summary that declares no `currencyConfig` still has no currency: nothing is inferred. -- `dynamic` over a record-mode child amount is refused as before, prescribing its stored home amount (or `currencyMode: 'record'` when the amounts follow this record through the roll-up's master_detail); over a `fixed` child amount it is refused prescribing that code; over a plain `number`, a `formula` or another `summary` it is refused. - -The refusal's wording moves with the admitted set: its head now reads "`currencyMode: 'dynamic'` on a summary is admitted only for a roll-up of an amount in the organization's home currency: a child `currency` field in `dynamic` mode (an absent `currencyMode` is `dynamic`), a stored home amount included, …", a child that is not a `currency` field is named by its type ("is a 'number' field, not a `currency` field in `dynamic` mode"), and the prescription lists the child's amounts in the home currency instead of its home amounts alone. The object door's list of admitted roll-up currencies says the same. diff --git a/.changeset/35046-derived-measure-tenant-currency.md b/.changeset/35046-derived-measure-tenant-currency.md deleted file mode 100644 index 2a4fc378359..00000000000 --- a/.changeset/35046-derived-measure-tenant-currency.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@objectstack/service-analytics': patch ---- - -fix(service-analytics): a derived dataset measure whose operands are all tenant-currency amounts carries the request's tenant currency - -Clause-②: no -Metadata-protocol: none - -A dataset `sum` over a `currency` field in `dynamic` mode (the default) already labels its result column with the request's tenant currency (`localization.currency`). A derived `sum` or `difference` over such measures did not: its column carried no `currency`, so it rendered as a bare number beside the plain sums it was built from (a project's actual cost as labor plus expense, for example). Its column now takes the tenant currency too, on `POST /analytics/dataset/query` and on the dataset draft preview alike. - -A derived measure counts as an amount in the tenant's currency only when every operand is one: an amount aggregate (`sum`, `avg`, `min`, `max`) over a `dynamic` currency field with no `currency` of its own, or a derived `sum` / `difference` of such measures. Unchanged: - -- A `ratio` or `product` of tenant amounts is no amount and stays bare. -- A derived measure that mixes a tenant amount with a `fixed` code, an explicit measure `currency`, a record-mode amount or a `count` stays bare, whichever operand comes first. -- A derived `sum` / `difference` over one `fixed` code still carries that code, and a derived measure's own `currency` still wins. -- With no tenant currency on the request, the column carries none, as the plain sum under it does. - -No metadata key, accepted value or default changes; no compile-time guard moves. diff --git a/.changeset/35047-formula-percent-return.md b/.changeset/35047-formula-percent-return.md deleted file mode 100644 index 748813c3983..00000000000 --- a/.changeset/35047-formula-percent-return.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/objectql': patch -'@object-ui/fields': patch -'@object-ui/app-shell': patch ---- - -feat(spec): a formula field can return `percent` - -Clause-②: yes (widening) -Metadata-protocol: added - -A ratio formula (budget used, gross margin) can now declare `returnType: 'percent'` and read and display as a `percent` field does, instead of a bare decimal beside the stored percentages. - -- **The value.** A `percent` formula result is read exactly as a `percent` field reads its stored value: a fraction (`0.25` shows `25%`, so the expression divides and does not multiply by 100), unless the formula declares a `max` above 1, then percentage points (`percentScaleOf`). -- **Its places.** `scale` counts the decimal places of the displayed percentage, as on a `percent` field (absent: 0). The engine rounds a fraction result to `scale + 2` places and a whole percentage to `scale`, so `scale: 1` keeps 0.417 (41.7%) instead of rounding it to 0.4. -- **An existing `percent` field computed from its `expression` rounds the same way.** The engine shares one rounding step for computed values, so a stored `percent` field that computes from an `expression` now keeps `scale + 2` places for a fraction (and `scale` for a whole percentage). Before, its computed fraction was rounded to `scale` itself: at `scale: 1`, 0.417 was stored as 0.4 and read 40.0%; it is now stored 0.417 and reads 41.7%. The change applies to the next computed write; rows written earlier are not rewritten. -- **Its face.** `percentDisplay` applies to a `percent` formula too (bar or plain). The formula renderer formats the result with the percent formatter, and the field and object forms offer `percent` as a return type. Editing the expression in the Studio field inspector keeps a declared `percent` (or `currency`) unless the new expression proves text, a boolean or a date. -- **Declared, never inferred.** No CEL type proves a quotient is a percentage, so authoring keeps a declared `percent` where it would otherwise stamp `number`. Readers that switch on `returnType` (display-name eligibility, filter operator and comparand typing) treat `percent` as a number. - -The enum only gains a member: every formula that parsed before parses the same, and nothing stored needs migrating. diff --git a/.changeset/35049-print-filename-display-name.md b/.changeset/35049-print-filename-display-name.md deleted file mode 100644 index 2bf30995a33..00000000000 --- a/.changeset/35049-print-filename-display-name.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@objectstack/service-print': patch ---- - -fix(print): a print with no `filename` names the PDF from the record's display name - -Clause-②: no -Metadata-protocol: none - -`printRecordToFile` (and `POST /api/v1/print/records`) used to archive every PDF without an explicit `filename` as `-.pdf`, which tells the reader nothing about which record it is. It now names the file from the record's display name (ADR-0079: the object's `nameField`, or the title field derived from its fields), read from the row the caller's own read answered, plus `.pdf` — printing quote `Q-2026-0042` attaches `Q-2026-0042.pdf`. - -- The name is made a safe file name: `/ \ : * ? " < > |` become `_`, control characters and whitespace runs become one space, leading dots are dropped, a trailing `.pdf` is not doubled, and it is cut to 100 characters. -- A record with no display value (no title field, an empty value, or one the caller's field-level security leaves out) keeps `-.pdf`, never the `Record #` floor. -- An explicit `filename` is used exactly as given, as before. -- Printing a record twice attaches two files of the same name; neither replaces the other. - -Visible change: a print with no explicit filename now attaches `.pdf` instead of `-.pdf`. Nothing to migrate; pass `filename` to keep a fixed name. diff --git a/.changeset/35050-related-new-autofill.md b/.changeset/35050-related-new-autofill.md deleted file mode 100644 index 3115420a516..00000000000 --- a/.changeset/35050-related-new-autofill.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@object-ui/fields': patch -'@object-ui/components': patch -'@object-ui/app-shell': patch -'@object-ui/console': patch ---- - -fix(fields): a create form that opens with a lookup value runs that lookup's `lookupAutofill`, and a picker's "+ New" seeds the `dependsOn` parent it filters by - -Clause-②: no -Metadata-protocol: none - -- **Opening value.** A create form can open with a lookup already set: a related list's New links the parent, a URL prefill sets it, or a form view default does. That lookup now fills the targets its `lookupAutofill` declares from that record, the same way a pick does. Example: from an opportunity, Related → Quotes → New opens a quote with Account filled from the opportunity. Only empty targets fill. A value the form opened with is explicit, so `overwrite: true` does not replace it. The fill uses the record the lookup already reads for its label, so no second request is made. The filled values count as opening values: a form nobody has touched closes without the discard prompt. A later pick replaces what the opening fill wrote, as it replaces what an earlier pick wrote. An edit form fills nothing from the stored record. -- **"+ New" in a dependent picker.** When a lookup's picker is filtered by `dependsOn`, its "+ New" now opens the create form with those values already set, under the field name the filter uses (`param`). The new record is then one the picker lists. The one-field inline create, used when no modal host is present, sends the same values. A picker with no `dependsOn` seeds nothing. -- **Hosts.** The form renderer passes a lookup the value it opened with (`openingValue`, create forms only). `onAutofill` now takes `{ opening: true }` for a fill made from that value. The console's `useActionModal` opens an object create form with the `initialValues` the descriptor carries. - -No metadata key is added or changed. diff --git a/.changeset/35052-platform-audit-write-unmarked.md b/.changeset/35052-platform-audit-write-unmarked.md deleted file mode 100644 index cf047aa598d..00000000000 --- a/.changeset/35052-platform-audit-write-unmarked.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@objectstack/plugin-audit': patch -'@objectstack/objectql': patch -'@objectstack/core': patch ---- - -fix(plugin-audit): the platform's own audit and activity rows are no longer judged as an automation's insert - -Clause-②: yes (widening) -Metadata-protocol: none - -The audit writer records every audited write with a `sys_audit_log` row and its `sys_activity` mirror. It wrote both through the `sudo()` of the hook api it is handed, and `sudo()` spreads the audited write's context. When that write was made by app-authored automation, the elevation kept the automation's provenance: an action body's or a system hook's app-automation elevation mark, or a flow run's `flowRunId`. plugin-security therefore read the platform's own ledger rows as the automation inserting into an append-only object. Today that logged the "Deprecated: inserting into 'sys_audit_log'" (and `'sys_activity'`) warning on the first such write. Once the announced refusal of those inserts ships, it would have refused the rows and lost the audit trail of every action-body, system-hook and flow write. - -- The audit writer now writes both rows through the platform's own system api. `platformSystemApi(api)` is a new export of `@objectstack/objectql` and `@objectstack/objectql/core`. It derives from a hook's api the same elevated context `sudo()` gives, minus the app-automation mark and minus `flowRunId`. Every other key is kept, so the rows stay in the write's transaction, organization and attribution. On an app-authored hook's api it sheds nothing: there it returns what that api's `sudo()` returns, the mark and `flowRunId` kept. -- `withoutAppAutomationElevation(context)` is a new export of `@objectstack/core`. It returns the context without the mark. -- What an automation writes itself is unchanged. An action body's or a hook's insert into `sys_activity` or `sys_audit_log`, through its `ctx.api` or its `ctx.api.sudo()`, still carries the mark and still logs the deprecation. `sudo()` itself is unchanged too: it never sheds the mark. diff --git a/.changeset/35053-lookup-label-namefield.md b/.changeset/35053-lookup-label-namefield.md deleted file mode 100644 index 4f687d7c13c..00000000000 --- a/.changeset/35053-lookup-label-namefield.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -'@object-ui/core': patch -'@object-ui/plugin-grid': patch -'@object-ui/components': patch ---- - -fix(ui): grouping headers and the filter value picker name a lookup by its target's `nameField`, and the empty group is translated - -Clause-②: yes (widening) -Metadata-protocol: none - -A lookup with no `displayField` is now named by the target object's declared `nameField`, the default the spec states for `displayField` ("the referenced object's name/title"). This is the same title the lookup's grid cell and the record header already show. Before, three places guessed a `name`, `label` or `title` key, and showed the raw record id when the target had none, for example a target titled by an autonumber such as `DEAL-2026-0001`: - -- **Group headers of a list grouped by the lookup**, both server-grouped and client-grouped. -- **Filter builder value picker options** for the lookup, and the chip of the chosen value. - -An explicit `displayField` on the lookup still wins. Grouping and filtering stay keyed by record id, so two records with the same title stay separate groups and separate options. The picker reads the target object's definition once per picker. The ObjectStack adapter serves later reads of it from its metadata cache. - -The group of rows with no value now reads the grid's own empty-value string (`grid.empty`, for example "Empty" in English and "空" in Chinese) instead of the untranslated `(empty)`. It keeps its place in the group order: first when ascending and last when descending. - -`@object-ui/core` adds `referencedRecordTitle(targetDef, record, displayField?)` to its public entry, a new export. It gives the title of a referenced record using the lookup's `displayField`, then the record-title ladder of `getRecordDisplayName`, and returns `undefined` instead of the `Record #` floor. diff --git a/.changeset/35054-app-writes-authored-body.md b/.changeset/35054-app-writes-authored-body.md deleted file mode 100644 index 9c37e6bdffb..00000000000 --- a/.changeset/35054-app-writes-authored-body.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@object-ui/data-objectstack': patch -'@object-ui/plugin-designer': patch -'@object-ui/app-shell': patch -'@object-ui/console': patch ---- - -fix(app-shell, plugin-designer, console): app writes send the app as its author stored it, not as the console's locale serves it - -Clause-②: no -Metadata-protocol: none - -The served app list is translated for the reader's locale, and the metadata save door stores a body verbatim. Four writers seeded a whole-app save from that served list: the Edit app wizard, App management's Disable / Enable / Set default and bulk toggles, the navigation sync that adds or removes an entry when a page, dashboard, report or object is created or deleted, and the Publish button on an unpublished app. In a zh-CN session each of them stored the app's label and every navigation label in Chinese, and readers in every other locale were then served Chinese. Each writer now reads the stored app from the untranslated layers through the new `ObjectStackAdapter.getAuthoredItem(type, name, { packageId })`, and changes only the keys its control owns. The served list is still used to find the app. When the stored app cannot be read, the writer refuses with an error and saves nothing; the Edit app page shows the read error instead of opening the wizard. diff --git a/.changeset/35054-view-writes-authored-body.md b/.changeset/35054-view-writes-authored-body.md deleted file mode 100644 index 3b4430edeb4..00000000000 --- a/.changeset/35054-view-writes-authored-body.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/data-objectstack': patch -'@object-ui/app-shell': patch -'@object-ui/console': patch ---- - -fix(app-shell, data-objectstack, console): view, form, pair-action and report edits start from the stored item, not the translated served one - -Clause-②: no -Metadata-protocol: none - -The served metadata reads are translated for the reader's locale, and the metadata save door stores a body verbatim. Four more writers seeded a whole-item save from a served read, so in a zh-CN session each stored the translations as the item's source text and readers in every other locale were then served Chinese. The view config panel (and its draft-bar resume) seeded its buffer from the served view; the adapter's `updateView`, behind Manage views' Rename, Pin and Set as Default, merged onto the served draft or the served published view; Developer → Public Forms spread the served form view into its Publish and Edit writes and prefilled the thank-you text from it; and Studio's pair actions on an installed app's object buffered the pair's served actions. Each now starts from the untranslated layered read through `authoredBuffer` (the pending draft as stored, else the published item) or, for the live-row writers, `authoredPublished`, and changes only the keys its control owns. A pending draft whose stored copy the layered read does not serve is refused, and so is an item with nothing stored to read: nothing is written from the served copy. The report quick edit now hands its served draft to `authoredBuffer`, so a pending report draft the layers do not serve opens no editor instead of one seeded from the published report. diff --git a/.changeset/35057-filter-condition-schema-hold.md b/.changeset/35057-filter-condition-schema-hold.md deleted file mode 100644 index 735482c3c80..00000000000 --- a/.changeset/35057-filter-condition-schema-hold.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@object-ui/fields': patch ---- - -fix(fields): the filter-condition builder takes no edit until the object's schema has answered, so a number bound is never saved as text - -Clause-②: no -Metadata-protocol: none - -The criteria builder (the `filter-condition` widget a sharing rule's criteria uses) shows a stored criteria as soon as it opens, but it reads the object's field types from a schema request that answers later. Until that answer arrived, a value box was a plain text box, and a number typed into it was saved as text: `{"amount":{"$gt":"6"}}` instead of `{"amount":{"$gt":6}}`. Once the answer arrived, the box changed to a number box but the text already saved stayed. The server reads such a value as the number it spells, so this changed no rule's matches. It did make the saved document depend on whether the admin typed before or after a network read. - -The builder's controls are now disabled while that request is in flight, and nothing is emitted from them. When the answer arrives they are enabled, and each value box has its column's type. If the request fails, the builder is released with no field types, as before. A host that offers no schema request never holds the builder. The raw-JSON editor is not held. - -No metadata key, value or default changes. A criteria already saved is not rewritten. diff --git a/.changeset/35061-studio-main-area-adapts.md b/.changeset/35061-studio-main-area-adapts.md deleted file mode 100644 index 47f444a46e9..00000000000 --- a/.changeset/35061-studio-main-area-adapts.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -feat(studio): the main area adapts when the Studio right slot opens: narrow left rails, a four-column permission matrix, a Records grid that shows its scrollbar, and a resizable right slot - -Clause-②: no -Metadata-protocol: none - -- **Left rails narrow.** While the right slot shows beside the Studio pillars and the middle region they leave, list and content together, is under 900 px, the Data, Automations, Interfaces and Access lists draw 52 px wide: each row shows the first character of its name, with the full name on hover. The 「»」 button at the top shows the whole list over the content until a row is picked, Escape or a click outside. Closing the slot or a wider window brings the full list back. Phones are unchanged. -- **Permission matrix (Access pillar, Objects tab).** When the matrix's pane is narrower than 1000 px, each object row keeps Create / Read / Edit / Delete as flat checkboxes. Export, Transfer, View all, Modify all and the read and write scopes move behind the row's "More permissions" button, which shows how many of those six are on ("2 on" / 「已开 2 项」) and opens them in a row beneath. The "All · Read only · None · Read & write" strip folds into one "Bulk" menu with the same four actions. At 1000 px and wider the matrix is the full flat grid it was. The folded controls are the same checkboxes and pickers as the flat columns, so a read-only set locks them the same way. The width rule is a CSS container query on the matrix pane, so it follows the right slot opening, closing or being dragged wider. Setup's permission set page draws a different table and does not fold. -- **Records tab (Data pillar).** The grid's horizontal scrollbar is drawn at rest instead of only under the pointer, so a pane the right slot narrows still shows there are more columns. Selecting a field by its column header, or from the field list, scrolls that column into view, clear of the frozen name column. Column widths, the frozen name column and the 400 px ceiling of a long text column are the runtime grid's, unchanged. -- **Right slot width.** The slot is resized from its left edge within 320–560 px, and the properties pane and the AI copilot each remember their own width in the browser (360 px and 420 px by default). A width both panes shared before this release is not carried over: each pane starts from its default once. The in-place widen of the copilot and the phone overlay keep their own widths. -- New `studio` namespace strings, in en and zh: `engine.studio.rail.expand`, `engine.studio.rail.collapse`, `perm.more.col` and `perm.more.count`. diff --git a/.changeset/35062-sidebar-hidden-collapse.md b/.changeset/35062-sidebar-hidden-collapse.md deleted file mode 100644 index a5d09d4a850..00000000000 --- a/.changeset/35062-sidebar-hidden-collapse.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(app-shell): a collapsed console sidebar hides fully, and its full menu floats out from the window's left edge - -Clause-②: no -Metadata-protocol: none - -From 768 px up, a collapsed app sidebar no longer leaves a column of unlabelled icons: it is hidden, the list and record pages get its width, and nothing in it can be focused or is announced. Both ways of collapsing look the same: collapsing it with the app bar's button, and the fold that collapses it on its own on a window narrower than 1416 px. To get the menu back, rest the pointer on the window's left edge (or press there): the full menu, with its labels and groups, floats over the page and folds back when the pointer moves away, a choice is made, Esc is pressed or the page is clicked. The app bar's button and ⌘B float the same menu, however the sidebar was collapsed, and move the keyboard focus into it; Esc gives focus back to the button. Floating it does not expand the sidebar, so a reload still finds it collapsed. To put the sidebar back beside the page, choose "Keep sidebar open" at the foot of the floated menu: the sidebar stays expanded, after a reload too, and on a narrow window the fold stays off. The phone keeps its bottom menu bar and drawer. diff --git a/.changeset/35068-gated-action-field-lock.md b/.changeset/35068-gated-action-field-lock.md deleted file mode 100644 index 73a156c82be..00000000000 --- a/.changeset/35068-gated-action-field-lock.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -docs(skills): objectstack-ai teaches that an AI-gated action guards its own door only, and pairs an irreversible transition with a lock on the field it changes; the tool-name ladder names its fourth source and the MCP prompts paragraph names `mcpPrompt` - -Clause-②: no -Metadata-protocol: none - -objectstack-ai's Common Pitfalls gains "Gating the action, not the state". `ai.requiresConfirmation` guards the action's door, and an agent can still write the same field with `update_record` or any data write. An irreversible transition is a gated `script` action, whose body writes elevated, over a field a non-system write cannot set. `readonly: true` binds every non-system caller (the value is stripped); a field permission without `editable` (refused `403`) binds only a caller no held set grants it, and Modify All grants it. The body skips the caller's edit right, so the action declares who may run it in `requiredPermissions`. A declarative `operation: 'update'` action and a `flow` action under `runAs: 'user'` write as the caller, so the lock stops them too. `readonlyWhen` and a `state_machine` rule bind the elevated body as well, so neither is the door; a `state_machine` dead-end still makes the reached state final for every writer. objectstack-automation's `references/state-machines-and-approvals.md` points to it. - -The resolution ladder for `skill.tools[]` names four sources: the fourth is `MCP_FILE_TOOL_NAMES`, the MCP door's file tools, resolved only for a skill MCP can offer (`mcpPrompt` not `false`). - -The paragraph on which skills MCP offers as prompts names `mcpPrompt`: `false` keeps a skill for the in-product agents only, never offered over MCP on any connection whatever its binding, and the stdio transport withholds it too; absent or `true` keeps the binding rule. diff --git a/.changeset/35079-skills-write-staged-swap.md b/.changeset/35079-skills-write-staged-swap.md deleted file mode 100644 index ebfa1b703e5..00000000000 --- a/.changeset/35079-skills-write-staged-swap.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/cli': patch ---- - -fix(cli): `os skills install` and `os skills update` stage the new catalog and swap it in by rename, so a write that fails partway leaves the previous skills and their record as they were - -Clause-②: no -Metadata-protocol: none - -Before, a write removed the recorded skill directories first, then wrote the new ones, and wrote the record last: a failure partway (disk full, permission, a locked file) left the directories gone or half-written under the old record, and the next `os skills update` refused them as changed locally until it was given `--force`. Now every new skill directory is written into a hidden staging directory inside the skills directory, each touched skill is renamed aside and its staged copy renamed into place, and the record is renamed over the old one last; any failure undoes the renames already done and is reported, so the catalog is either wholly the old one or wholly the new one, and a plain `os skills update` simply runs again. A staging directory a killed run leaves behind (`.objectstack-skills-staging-*`) is hidden, never read as a skill, and removed by the next write. diff --git a/.changeset/35092-section-nav-dialog-scroll.md b/.changeset/35092-section-nav-dialog-scroll.md deleted file mode 100644 index 9778bf724d6..00000000000 --- a/.changeset/35092-section-nav-dialog-scroll.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@object-ui/plugin-form': patch ---- - -fix(plugin-form): a section navigation jump in a grouped record dialog scrolls only the form, so the dialog keeps its title, navigation and footer in place - -Clause-②: no -Metadata-protocol: none - -In a record dialog with grouped sections, clicking the navigation entry of a short last section used to scroll the dialog box itself: the title and the section navigation moved out of the top of the dialog, a blank area opened below the footer, and nothing could scroll it back, so the user had to close the dialog and lose what they had typed. Two things made that possible, and both are fixed: - -- The jump scrolled the section heading with an element `scrollIntoView`, which also scrolls every scrollable ancestor, the dialog's clipped (`overflow: hidden`) box included. It now scrolls only the heading's own scroller (the form's body, or the window for a full-page form) with `scrollTo`, keeping the heading's scroll margin. -- The dialog's form body is now `relative`, so the hidden native inputs a checkbox or a select mounts beside its control are clipped by the form body and scroll with it, instead of overflowing the dialog box. - -The highlight rule, section folding and the required-field counts are unchanged. Nothing to migrate. diff --git a/.changeset/35095-eval-forbidden-mention.md b/.changeset/35095-eval-forbidden-mention.md deleted file mode 100644 index 96f3c474ee3..00000000000 --- a/.changeset/35095-eval-forbidden-mention.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -docs(skills): sixteen eval cases forbid the wrong code spelling, not a mention of its name - -Clause-②: no -Metadata-protocol: none - -A `must_not_contain` entry is matched as a literal substring, so a bare identifier also fails a correct answer that names it as the thing to avoid: `objectstack-ui` `analytics-inline-vs-dataset` case 5 failed an answer saying an ad-hoc react-page chart "doesn't need a `defineDataset`". Sixteen cases whose bundle or reference answer states such a negative now forbid the spelling a wrong answer writes: a call with its paren (`defineDataset(` in that case and `objectstack-data` `hooks-security-seeds-datasources` 4, `definePage(` in `record-page` 2, `getAppBundle(` / `loadAppBundle(` in `objectstack-i18n` `bundles-locales-coverage` 4), a key with its colon or dot (`categoryField:` in `analytics-inline-vs-dataset` 1; `sourceView:`, `disabledMessage:` / `disabledTooltip:` in `views-apps-actions-pages` 5 and 9; `readonlyWhen:`, `assigned_to:` in the data file's 5 and 8; `subDays:` in `objectstack-query` `filters-pagination-search` 6; `permissionSets:` / `permissionSets.` in the i18n file's 6; `pageName:` / `viewName:`, bare and JSON-quoted, in `objectui` `app-composition` 2 and 4) and a quoted literal (`type: 'record_detail'` in the views file's 4; `'admin_full_access'` and a quote-opened `@objectstack/adapter-` in `objectstack-platform` `config-plugins-ops` 7 and 4). Each of the sixteen 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. No prompt, reference answer, `must_contain` entry or skill text changes. diff --git a/.changeset/35096-action-form-texts-refusals-rows.md b/.changeset/35096-action-form-texts-refusals-rows.md deleted file mode 100644 index 18052b79cf3..00000000000 --- a/.changeset/35096-action-form-texts-refusals-rows.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/spec': patch -'@objectstack/platform-objects': patch ---- - -feat(spec): the Studio action form offers an action's declared `refusals` and `texts` - -Clause-②: no -Metadata-protocol: none - -- **Studio action form.** `actionForm` gains two rows in the Behavior section, right after the script `body`, each shown only on a `type: 'script'` action as the body is: `refusals`, a key-only record keyed by the SCREAMING_SNAKE code the body throws, each entry editing its `message`, `status`, `reasons` (a key-only record of `{ message }`) and `params`; and `texts`, a key-only record keyed by the snake_case key the body asks for with `ctx.text`, each entry editing its `message` and `params`. They are the hook form's two rows, because the action entries are the hook entries. An author editing an action in the Studio can now write the `refusals` and `texts` the schema already accepts, instead of going through the metadata API or the package source. Nothing about what an action may declare changes. -- **Locale packs.** The rows' labels and help text ship in all eleven metadata-forms locale packs of `@objectstack/platform-objects`. diff --git a/.changeset/35098-travel-expense-step-two-approver.md b/.changeset/35098-travel-expense-step-two-approver.md deleted file mode 100644 index 659bf1935ff..00000000000 --- a/.changeset/35098-travel-expense-step-two-approver.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/scenarios': patch ---- - -fix(scenarios): the `travel_expense` build prompt names who approves a claim's second step - -Clause-②: no -Metadata-protocol: none - -The detailed prompt said a claim goes to "the department manager first (a manager's own claim goes to the finance manager), then Finance". Finance has two members, and the same sentence calls one of them the finance manager, so a build could route the second step to that manager, while every seeded step-2 row and the `manager_approves_step_one` operation name the Finance officer. The prompt now says the second step goes to a Finance officer (Finance staff other than the finance manager), in English and Chinese. The expected approver, the seed rows and the operation are unchanged. diff --git a/.changeset/35099-phone-bar-disabled-edit.md b/.changeset/35099-phone-bar-disabled-edit.md deleted file mode 100644 index ee7260154a3..00000000000 --- a/.changeset/35099-phone-bar-disabled-edit.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(app-shell): a phone's record bar never leads with an Edit that is off, whatever turned it off - -Clause-②: no -Metadata-protocol: none - -On a phone, the record page's bottom bar moved a greyed Edit out of its first slot only under an approval lock. An Edit turned off by the object's `userActions.edit.disabledWhen`, or by the record's state (every field the edit form shows is read-only through its `readonlyWhen`), still took the first slot, ahead of every action the reader could press. Now Edit moves into the bar's `⋯` for any of the three reasons, still drawn and still off, and the first usable action takes the slot. The state lock keeps its "Not editable in its current state" badge. The desktop header keeps Edit greyed in place for every reason, and an Edit that is on is unchanged. diff --git a/.changeset/35101-generated-nav-entry-authored-plural.md b/.changeset/35101-generated-nav-entry-authored-plural.md deleted file mode 100644 index 346db60d764..00000000000 --- a/.changeset/35101-generated-nav-entry-authored-plural.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@object-ui/plugin-designer': patch -'@object-ui/console': patch ---- - -fix(plugin-designer): the app wizard decides a generated navigation entry's plural label from the object as authored, not as the console's locale serves it - -Clause-②: yes (widening) -Metadata-protocol: none - -When the Create app or Edit app wizard leaves the Objects step, it generates one navigation entry for each newly selected object. The entry carries no label unless the object declares a plural label that differs from its label and its name. That decision, and the text it stored, came from the served object list, which is translated for the reader's locale. So a zh-CN session stored the translated plural, such as `项目列表`, as the app's source text, readers in every other locale were served it, and whether a label was stored at all depended on the editor's language. The wizard now reads each newly selected object from the untranslated layers through `ObjectStackAdapter.getAuthoredItem('object', name, { packageId })`, at the package the served object came from, and decides and stores the authored plural label (`Projects`). The Next button waits for these reads, and the step buttons and the object selection are disabled until they settle, so the selection cannot change under them. If an object's stored definition cannot be read, its entry carries no label and inherits the object's label at render time; it never falls back to the served text. To show the plural in another locale, translate the entry under `apps..navigation..label`. Entries already stored are not rewritten. - -`AppCreationWizardProps` gains the optional `readAuthoredObject(objectName)` prop, which `CreateAppPage` and `EditAppPage` now pass. A host that renders `AppCreationWizard` without it gets entries with no label: they inherit the object's label at render time. diff --git a/.changeset/35106-direct-sign-in-after-sign-out.md b/.changeset/35106-direct-sign-in-after-sign-out.md deleted file mode 100644 index 86ed42e47d1..00000000000 --- a/.changeset/35106-direct-sign-in-after-sign-out.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@objectstack/plugin-auth': patch -'@objectstack/spec': minor -'@object-ui/auth': patch ---- - -feat(auth): `directSignIn.afterSignOut` lets an explicit sign-out return through the identity provider's sign-in page - -Clause-②: yes (widening) -Metadata-protocol: added - -A deployment with direct sign-in on can now choose where an explicit sign-out returns once the identity provider has ended its own session. The default keeps today's behaviour, so nothing changes until a deployment sets the new value. - -- The auth plugin's `directSignIn` option takes `afterSignOut: 'hold' | 'identity-provider'`, and the environment variable `OS_AUTH_DIRECT_SIGN_IN_AFTER_SIGN_OUT` wins over it, like the other direct sign-in settings. `hold` is the default. Any other value refuses to boot, naming the variable and both values. -- `GET /api/v1/auth/config` serves `features.afterSignOut` while the direct sign-in setting is on, on the same terms as `features.localSignIn`, and leaves it out otherwise. `AuthFeaturesConfigSchema` in `@objectstack/spec` gains the optional `afterSignOut` enum, and `PUBLIC_AUTH_CONFIG_NON_FLAG_KEYS` gains `'afterSignOut'`. -- `hold`: the Console's sign-out sends the sign-in page as the provider's return address, and the page holds with a button to sign in again, as before. -- `identity-provider`: while `features.directSignIn` reads `true`, the Console's sign-out sends `{basePath}/sign-in/direct` instead, so after the provider's logout the browser goes through the direct sign-in door to the provider's own sign-in page. The door starts a fresh sign-in without the browser's cookies, and the provider has just ended its session, so it asks for credentials; it does not loop. Register the door's absolute address as a post-logout redirect URI at the provider. -- `@object-ui/auth`: `AuthPublicConfig.features` gains the optional `afterSignOut`. When the tab holds no auth config at sign-out, the client reads it once (3 seconds at most) and keeps the sign-in page if it cannot. -- Module exports on the `@objectstack/plugin-auth` entry: the type `DirectSignInAfterSignOut`. In `direct-sign-in.ts` (not on the package entry): `DIRECT_SIGN_IN_AFTER_SIGN_OUT`, and `DIRECT_SIGN_IN_ENV.afterSignOut`. diff --git a/.changeset/35107-invitation-proof-outside-endpoint.md b/.changeset/35107-invitation-proof-outside-endpoint.md deleted file mode 100644 index cfa6444fcaa..00000000000 --- a/.changeset/35107-invitation-proof-outside-endpoint.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/plugin-auth': patch ---- - -fix(plugin-auth): an invitation mail sent outside a better-auth endpoint still carries the mailbox proof - -Clause-②: no -Metadata-protocol: none - -A host that calls the organization plugin's `sendInvitationEmail` from its own code, outside any better-auth endpoint, now sends the same mail the console's invite sends: its link carries the invitation's mailbox proof, so the invitee can use the one-step acceptance from it. The proof is minted through the auth manager's own context when no endpoint context exists. Nothing else changes: the proof is still delivered only in the mail and never stored in clear, and a send inside an endpoint mints exactly as before. diff --git a/.changeset/35109-seed-datasets-replace-on-upgrade.md b/.changeset/35109-seed-datasets-replace-on-upgrade.md deleted file mode 100644 index 80be1192cc3..00000000000 --- a/.changeset/35109-seed-datasets-replace-on-upgrade.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@objectstack/runtime': patch -'@objectstack/cloud-connection': patch ---- - -fix(runtime, cloud-connection): an upgrade replaces the package's seed datasets on the shared replay list - -Clause-②: yes (widening) -Metadata-protocol: none - -The shared `seed-datasets` list that per-organization seed replay reads was append-only. After a package was upgraded in a running process, the superseded version's datasets stayed on the list until a restart, so every organization founded in between replayed the old and the new version's seed sets. When the upgrade changed an object's `fallback: true` set, the two marked sets refused that object's fallback choice, and a dataset declaring `dependsOn` that object refused the whole load for an organization whose locale no set lists. - -`mergeSeedDatasets(ctx, datasets, owner?)` takes an optional `owner`. Given, the owner's earlier entries are replaced on the same live array (in their place) instead of kept beside the new ones; an empty `datasets` takes them off. Omitted, the datasets are appended as before, which is what a config app's boot merge still does. The install-local door merges under the package id on install, upgrade, reinstall, reseed and rehydrate, so the list holds the installed version only: reinstalling the same version adds no duplicate, and a version that ships no seed data takes its predecessor's datasets off the list. diff --git a/.changeset/35113-scenario-ask-kinds.md b/.changeset/35113-scenario-ask-kinds.md deleted file mode 100644 index f7c6d8c5db6..00000000000 --- a/.changeset/35113-scenario-ask-kinds.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@objectstack/scenarios': patch ---- - -feat(scenarios): every question of a dataset card names its ask kind, and a round's record counts every kind - -Clause-②: yes (widening) — new optional card key `askKind` on `QuestionSchema` and `DatasetQuestionSchema`; new exports `ASK_KINDS`, `AskKind`, `AskKindSchema`, `questionTurnKind`, `checkAskKinds`, `askTurns`, `askKindCounts` and `AskTurn` (package root); `kindTally`, `kindCell` and `KindTally` (`./runner`); new optional fields `QuestionResult.askKind`, `DatasetQuestionResult.askKind` (`./runner`) and `HalfScores.kinds` (`scorecard.ts`, `./runner`) -Metadata-protocol: none - -The open dataset cards (`order_to_cash`, `travel_expense`) stated no kind of question for their ordinary questions, so a round could not show which of the ten ask kinds it measured. A question and a dataset question now name one (`askKind`): `count`, `group_sum`, `top_n`, `time_range`, `join`, `owner_latest`, `business_term`, `ambiguous`, `forbidden` or `unanswerable`. A card that names one kind names the kind of every question and dataset question it asks, all or none, so a card that names no kind loads as before; the loader refuses a kind its question's truth or route contradicts (a `top_n` that does not rank, an `owner_latest` that does not group by a person field, a `business_term` that is not a `metric_selected` dataset question, an `unanswerable` the seed answers), at the question's `askKind`. A turn asked as a persona its truth is withheld from is a `forbidden` ask. - -The runner stamps each turn's kind on its result (`askKind` on every question and dataset-question result), the scorecard counts the asks kind by kind (`HalfScores.kinds`, new `Run · kinds` and `Iterate · Run · kinds` rows naming all ten kinds), and `summary` sums the row. A card that names no kind, and a record written before turns carried one, show no such row. New exports: `ASK_KINDS`, `AskKind`, `AskKindSchema`, `questionTurnKind`, `checkAskKinds`, `askTurns`, `askKindCounts` and `AskTurn` from the package root; `kindTally`, `kindCell` and `KindTally` from the runner. - -The two cards ask every kind at least twice per round, a table in `docs/qa/scenarios/README.md` states the counts, and a test holds it equal to the cards. `order_to_cash` changes only by the added `askKind` keys, and `travel_expense` also by the step-2 approver line of its build prompt (the changeset beside this one), so both cards' sha256 move and ask-round records split at these card hashes. diff --git a/.changeset/35114-stdio-mcp-dropped-fields.md b/.changeset/35114-stdio-mcp-dropped-fields.md deleted file mode 100644 index cf18fdd21c1..00000000000 --- a/.changeset/35114-stdio-mcp-dropped-fields.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@objectstack/mcp': patch -'@objectstack/lint': patch ---- - -fix(mcp, lint): `create_record` and `update_record` over stdio answer `droppedFields` and no longer echo a dropped value; a flow write to a roll-up summary field draws a warning - -Clause-②: yes -Metadata-protocol: none - -On the stdio MCP transport, `create_record` and `update_record` now answer `droppedFields`, as the HTTP transport has: each entry names the object, the fields the engine did not store and the reason. A non-system write of a `readonly: true` column or of a roll-up `summary` field (read-only on create and update whether or not it declares `readonly: true`) reports the field there with reason `readonly`. Before, the stdio answer carried no `droppedFields`, and `update_record` answered the caller's own value for such a field over the stored one, so the answer read as if the write had landed. The `record` in both answers now leaves a dropped key's caller value out: an update answers the stored value, and a create answers what the write stored. A write that drops nothing answers as before, with no `droppedFields` key. No MCP tool input, `@objectstack/mcp` export or metadata key changes. - -`os validate`, `os lint` and `os build` now report a new warning, `flow-update-summary-field`, when a flow's `create_record` or `update_record` node that does not run as `runAs: 'system'` writes a roll-up `summary` field that does not declare `readonly: true`. The engine drops that value on create and on update, so the step changes nothing in that column. It is a warning, so no build that passes today fails. Like every warning, it makes `os validate --strict` and `os lint --strict` exit 1; there is no per-rule switch, so a strict run fails until the field is removed from the node. The metadata save and publish answers carry it under `advisories`, never as a refusal: on a flow save whose user-run node writes such a roll-up, and on an object save that makes a field such a roll-up while a live user-run flow of the same package writes it. A roll-up that declares `readonly: true` is reported as `flow-update-readonly-field`, an error, as before. `os explain flow-update-summary-field` gives the details. The fix is to remove the field from the node, since the engine recomputes it from the child records. - -New export: `FLOW_UPDATE_SUMMARY_FIELD` from `@objectstack/lint`, the rule id constant. diff --git a/.changeset/35115-app-writes-package-scope.md b/.changeset/35115-app-writes-package-scope.md deleted file mode 100644 index 253b390c61b..00000000000 --- a/.changeset/35115-app-writes-package-scope.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/plugin-designer': patch -'@object-ui/app-shell': patch -'@object-ui/console': patch ---- - -fix(plugin-designer, app-shell): a packaged app is saved at its package, not at the package-less address - -Clause-②: no -Metadata-protocol: none - -The Edit app wizard read a packaged app at its package but saved it with no package, and the navigation sync that adds or removes an entry when a page or dashboard is created or deleted read and saved every app with no package. Both now read and save an app a package owns with `{ packageId }` (sent as `?package=`), the row the console serves, the way App management already saves it. An app no package owns, including one served with the `sys_metadata` sentinel, keeps the package-less address. A managed package's sealed app is still refused by the server at either address, and the navigation sync still skips it. diff --git a/.changeset/35123-member-digest-quiet-hours-opt-out.md b/.changeset/35123-member-digest-quiet-hours-opt-out.md deleted file mode 100644 index e5021191f06..00000000000 --- a/.changeset/35123-member-digest-quiet-hours-opt-out.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@objectstack/service-messaging': patch -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -fix(messaging): a member's own "no digest" or "no quiet hours" now beats the organization's default - -Clause-②: no -Metadata-protocol: none - -A member who chooses no digest, or clears their quiet hours, now keeps that choice even when the organization's default sets a digest or quiet hours. The organization's default is a default, not a floor. Before this release the member still got the organization's digest and quiet hours. - -- **Three states per field.** A notification preference's `digest` and `quiet_hours` are each one of: not set (empty), explicitly off, or a value. The most specific preference that sets the field decides it. A preference that leaves a field empty decides nothing for that field, so it keeps following the next preference: the default for all users, then none. Explicit off is `none` for the digest and `{ "off": true }` for quiet hours. An organization default that is explicitly off is the same as no default. After an explicit "no quiet hours", the member's digest still lands at midnight in the time zone of the organization's quiet-hours window (the next preference that holds one), or UTC when none does. -- **`digest` has no default value any more.** A preference created without a digest stores it empty, so it follows the organization's default. On a database created by an earlier release, the `digest` column still carries the old database default `none`. The messaging service writes an explicit empty digest on every insert that leaves it out, so the database default never applies. A write that skips the platform's engine (raw SQL, a bulk load straight into the table) still stores `none` on such a database. That stored `none` now means "no digest". -- **Stored rows keep their meaning.** On the first start of this release, every stored `digest = 'none'` is rewritten to empty, in every organization, once. The pass is recorded in `sys_migration` (`messaging-preference-digest-none-unset`) and never runs again, so a `none` chosen after the upgrade is kept. A stored `none` never took effect before, so no one's digest changes at upgrade. If you picked "none" by hand in Setup > Notification Preferences to opt out, pick it again after upgrading. -- **The Notification Settings page offers the opt-out.** "No digest" is always offered and saves `none`. Clearing the quiet-hours window and saving stores `{ "off": true }`. The two notes saying these choices were not offered are gone, in all 11 languages. diff --git a/.changeset/35132-gallery-trial-package.md b/.changeset/35132-gallery-trial-package.md deleted file mode 100644 index 43d14976621..00000000000 --- a/.changeset/35132-gallery-trial-package.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@objectstack/scenarios': patch ---- - -feat(scenarios): the gallery export writes each app as a package a customer can install and try (listing text, business-function facet, sample data), and the gallery check refuses an app with no sample data - -Clause-②: yes -Metadata-protocol: none - -The exporter now adds three things to each app's `source/`. It adds them after the run is scored, so the AI's build is never graded on them, and it never writes them into the run's own project. - -- `objectstack.manifest.json` gets the card's listing text and facet. `displayName` and `description` are the card's English title and one-sentence requirement. The Chinese pair goes under `translations.zh`. `businessFunctions` is the card's own list, primary first. The build's other keys are kept. -- `src/sample-data.json` holds the card's seed rows as stack `data:` datasets: one per object, named with the app's namespace, keyed on the card's row id (`externalId: 'id'`). Lookup values name row ids of the same load. A user-handle field (`run.userHandleFields`) is left out of every row, because its value names a user of the run's own environment, and the app README says which field was left out. -- `objectstack.config.ts` gets one import line and `data: gallerySampleData` as the first property of its default-exported `defineStack({ … })` literal. Every other byte stays as the AI wrote it. The export is refused, with the reason, in four cases: the default export is not such a literal, the literal already declares `data:` or spreads a value, a seeded object is missing from the build, or the build already wrote `src/sample-data.json`. - -Measured on `travel_expense`: the blank scaffold's `objectstack.config.ts`, with the recorded build's objects and the 757 seed rows added this way, passes `objectstack validate`. A dataset naming an object the build lacks is refused there ("Seed data references object … which is not defined in objects"), which shows the validator reads the imported file. - -`export-gallery --check` has a new finding, `app-sample-data`. It reports an app whose `source/` has no `src/sample-data.json`, a file that is not a non-empty list of datasets the spec's `SeedSchema` accepts (each with at least one record), or a `source/objectstack.config.ts` that does not import it. A gallery tree written by an earlier exporter has no sample-data file, so the check reports each of its apps until the next refresh exports them again. The check writes nothing and deletes no app. - -`installModes` and `solutionType` are not written yet: `installModes: ['unmanaged']` makes `defineStack` refuse an app that carries code `plugins` or `capability` items, which an app on the standard scaffold does. `typescript` moves from a dev dependency to a dependency. The exporter loads it, with a dynamic import, only when it edits a config. diff --git a/.changeset/35135-disabledwhen-edit-reason.md b/.changeset/35135-disabledwhen-edit-reason.md deleted file mode 100644 index 4779e76fc92..00000000000 --- a/.changeset/35135-disabledwhen-edit-reason.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/components': patch ---- - -fix(app-shell, components): a record Edit or Delete greyed by `userActions.*.disabledWhen` says why - -Clause-②: no -Metadata-protocol: none - -When an object's `userActions.edit.disabledWhen` held on a record, the record page greyed Edit and said nothing about why, on desktop and on the phone; the header overflow's Delete under `userActions.delete.disabledWhen` was just as silent. Both now give the generic reason an authored action without a declared `disabledReason` already gives ("Not available for this record", in every shipped language): on desktop as Edit's tooltip and accessible description, and as the second line of the `⋯` entry, which is where Delete sits and where a phone's off Edit goes. The approval band and the "Not editable in its current state" badge keep explaining their own locks, so an Edit they turn off gives no second reason, and a record that has not loaded yet gives none. - -`page:header` now draws a `disabledReason` a host hands with one of its own header actions (`RecordContext.headerSystemActions`) when that action's `disabled` holds. A host action that hands none stays silent, as before; the generic reason is still given only to authored actions. diff --git a/.changeset/35136-preference-rows-paged-read.md b/.changeset/35136-preference-rows-paged-read.md deleted file mode 100644 index 735b34e6394..00000000000 --- a/.changeset/35136-preference-rows-paged-read.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/service-messaging': patch ---- - -fix(messaging): the preference filter reads every preference row of a topic, not an unordered first 10,000 - -Clause-②: no -Metadata-protocol: none - -When a notification is sent, the preference filter reads the organization's preference rows for the event's topic and for the `*` topic. Each was one read capped at 10,000 rows with no order, so in an organization holding more rows than that for one topic, an undefined subset was left out, and a recipient whose own opt-out, digest or quiet hours fell in it was notified as though the row did not exist. Each topic is now read to the end in pages of 1,000 rows ordered by `id`, each page starting after the last `id` of the one before, and only the recipients' rows and the organization's default are kept. A read that cannot move past a full page is refused rather than used, and the filter then delivers on every channel and logs a warning, as it already did for any failed preference read. - -No exported type, option or signature changes. diff --git a/.changeset/35137-mcp-withheld-fields.md b/.changeset/35137-mcp-withheld-fields.md deleted file mode 100644 index eff54a9fbf8..00000000000 --- a/.changeset/35137-mcp-withheld-fields.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@objectstack/mcp': patch -'@objectstack/runtime': patch ---- - -feat(mcp, runtime): `query_records` and `get_record` name the fields field-level security withheld from the caller - -Clause-②: yes (widening) -Metadata-protocol: none - -A row served over MCP leaves out every field the caller may not read, and nothing in it said so, so an AI client read a withheld field as blank. `query_records` and `get_record` now add two members to their result when a field was withheld, on the HTTP and the stdio server alike: - -- `withheldFields`: the names of the withheld fields, field names only, never values. With `fields` in the call, only the asked fields are named; without it, any field of the object. -- `withheldFieldsNote`: one sentence saying these fields exist and are not visible to the caller, and that they must not be described as empty. - -A field is named only when the caller's own served schema shows it (the object as `describe_object` serves it to them) and the security service does not answer it readable for them. Both are asked as the caller; nothing is derived from the rows. A field the caller's schema does not show is never named. Under the default object-schema masking, a field a caller may not read is usually left out of their schema too, so `withheldFields` appears for a caller who is served the whole schema (a caller holding `manage_metadata`, `studio.access` or `setup.access`) or where schema masking is switched off. - -A caller with nothing withheld, a deployment with no security service, and a server whose bridge does not provide the new optional `McpDataBridge.fieldVisibilityOf` member get the result they got before, byte for byte. The two tool descriptions gain one sentence about the member. - -`aggregate_records` is unchanged: a withheld field asked as a measure or a group is already refused `403 PERMISSION_DENIED`. diff --git a/.changeset/35138-aggregate-option-order-currency.md b/.changeset/35138-aggregate-option-order-currency.md deleted file mode 100644 index 6153d72199d..00000000000 --- a/.changeset/35138-aggregate-option-order-currency.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@objectstack/mcp': patch ---- - -feat(mcp): `aggregate_records` returns select groups in their declared option order and names the currency of a fixed-currency amount - -Clause-②: yes (widening) -Metadata-protocol: none - -Two facts the MCP `aggregate_records` tool now reads from the object as the caller is served it, on both the HTTP and the stdio door: - -- Groups keyed by a `select` or `radio` field come back in the order the field declares its options, instead of the order the driver returned them in. A value no option declares, such as a null, sorts last. When the call groups by several keys, the order is applied to the leading select keys. From the first key that is not a select field onward, the driver's order stays. The groups are sorted before the tool's row cap, so the groups the cap keeps are the first ones in declared order. -- An amount column (`sum`, `avg`, `min` or `max`) over a field whose `currencyConfig` is `currencyMode: 'fixed'` is named in a new result member `currencies`, which maps the column's alias to its ISO 4217 code, e.g. `"currencies": { "total": "USD" }`. The member is present only when at least one column has a currency. `count`, `count_distinct`, non-currency fields and `dynamic`-mode amounts carry none. A `record`-mode amount is still answered only when it is grouped by its currency code field, so each group's code is already in its row. - -A field the caller's served schema does not show is never ordered by its options or named. A host whose bridge cannot serve the definition answers exactly as before. Existing members (`rows`, `totalGroups`, `truncated`) are unchanged. diff --git a/.changeset/35138-mcp-not-recorded.md b/.changeset/35138-mcp-not-recorded.md deleted file mode 100644 index f7131488dc0..00000000000 --- a/.changeset/35138-mcp-not-recorded.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@objectstack/mcp': patch -'@objectstack/runtime': patch -'@objectstack/core': patch -'@objectstack/service-analytics': patch ---- - -feat(mcp): a refused record read says the data is not recorded, in the caller's language - -Clause-②: yes (widening) -Metadata-protocol: none - -When `query_records`, `aggregate_records` or `get_record` is refused and the call named an object, or a field, that the caller's own schema does not show (the object as `describe_object` serves it to them), the refusal now carries two members beside it, on the HTTP and the stdio server alike: - -- `notRecorded`: what is not recorded, as the caller sent it: `{ "object": "" }`, or `{ "object": "", "fields": ["", …] }` for the field names the call sent that the schema does not show, in the order sent. Every sent name is read by its head on every channel (`where`, `fields`, `orderBy`, `groupBy`, an aggregation's `field` and `filter`), so `owner.name` is judged by `owner`, and a dotted name whose head the schema shows is never named. -- `ifNotRecorded`: one sentence, in the caller's language (English, Simplified and Traditional Chinese, Japanese), telling the model to say the data is not recorded, never to report 0 or an empty result for it, and not to answer with another object or field in its place. - -The answer names only what the caller can see: both members are built from the names the caller sent and from the caller's served schema, and nothing else. The refusal itself (`isError`, its `code`, `message` and `status`) is unchanged, byte for byte. A read that answers, a refusal about a field the caller's schema shows, a server fault, and a refusal whose schema read cannot be made carry no member. `id`, `created_at` and `updated_at`, which every object answers, are never named. - -The language is chosen by one shared picker, `pickSentenceLocale` (with `platformLocaleNamedBy`), now exported from `@objectstack/core`: the first of the caller's locales (the request's, then the workspace default) that names a language the sentence is written in, else `en`. The dataset tools' `nextStep` and `sourceLine` (`@objectstack/service-analytics`) use the same picker, with unchanged behaviour. `McpDataBridge` gains an optional `userTextLocales()` member: the HTTP bridge answers the request's ladder, the stdio bridge the principal's ladder and then the i18n service's default. A bridge without it is answered in `en`. diff --git a/.changeset/35138-mcp-object-query-source.md b/.changeset/35138-mcp-object-query-source.md deleted file mode 100644 index e9e255f1921..00000000000 --- a/.changeset/35138-mcp-object-query-source.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@objectstack/mcp': patch ---- - -feat(mcp): `query_records` and `aggregate_records` answer a `source` block, with a finished `line` in the caller's language - -Clause-②: yes -Metadata-protocol: none - -A successful `query_records` or `aggregate_records` answer now carries a top-level `source` key on both MCP doors (HTTP and stdio): the block `ObjectQuerySourceSchema` (`@objectstack/spec/ai`) already types, composed from the read the tool ran. It names the object, the caller's `where` exactly as sent (`filter`), the aggregations and group keys, the caller's own `orderBy` with the cut beside it (`limit`), the lookups read through `expand` (`related`), a one-record-per-group reading over one key (`latestPer`), and `records` where the read established it: a page read's counted total, or an uncut aggregate's bare `count` summed over every group, never after a cut. `scope` is `visible_to_you` on every call: these doors ask no row-filter question, and the read runs under the caller's permissions and row-level security. - -`source.line` is that source as one sentence of at most 280 characters, in the caller's language (en, zh-Hans, zh-Hant, ja; the shared picker `pickSentenceLocale` over the bridge's `userTextLocales`, the ladder `ifNotRecorded` reads), naming the object and its fields by the labels the caller's served definition shows and by the caller's own names otherwise. The tool descriptions tell the model to quote it as the source of a figure. Before this, an aggregate answer came back as a bare number. - -No existing key changes. An error answers no block; `get_record` answers none, since its answer is the record itself. A read the schema cannot state truthfully (one record per group over several keys), or a block the schema refuses, is answered without the block. Each call now reads the caller's served object definition once for the labels; a bridge without `servedObjectDefinitionOf` gets machine names, and one without `userTextLocales` gets English. diff --git a/.changeset/35138-query-records-truncated.md b/.changeset/35138-query-records-truncated.md deleted file mode 100644 index 254bff39355..00000000000 --- a/.changeset/35138-query-records-truncated.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -"@objectstack/mcp": patch ---- - -Clause-②: yes (widening) -Metadata-protocol: none - -`query_records` says when a page hit its row cap. The tool asks for one row more than the page; when that row comes back, it serves the page and adds `truncated: true`. The member is present only when true, so a page that holds every matching row, exactly `limit` rows included, is unchanged. The tool description now tells a model not to sum, count or rank a truncated page as if whole, and to read on with `offset` or use `aggregate_records` for totals. - -The stdio door's `query_records` now answers the same page facts as the HTTP door: a paged read is counted under the same filter, as the caller, so `total` is the match total and `hasMore` says whether rows remain. Before, a capped stdio page answered `total` equal to the page length. If the count fails, `total` is left out and is never estimated. - -When the host's read window (`OS_DATA_MAX_PAGE_SIZE`, `OS_DATA_QUERY_ROW_BUDGET`) would refuse the extra row, the page is read as asked, and the door's counted `hasMore` decides `truncated`. diff --git a/.changeset/35141-publish-all-seed-warn-pack-sentence.md b/.changeset/35141-publish-all-seed-warn-pack-sentence.md deleted file mode 100644 index 8f422f4897b..00000000000 --- a/.changeset/35141-publish-all-seed-warn-pack-sentence.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(console): the *Publish all* warning about failed sample data shows the pack's sentence, never the seed loader's text - -Clause-②: no -Metadata-protocol: none - -Home's *Publish all* and the draft-preview bar's *Publish* warn "Published, but some sample data failed to load." when a seed fails to load. The detail under that title printed the seed loader's own engine text (for example "seed apply stopped at the seed for object …"), and for a package-less seed with no text a hard-coded English "NAME: sample data failed to load" in every language. It now shows the sentence the AI chat's publish-health line already shows for the same failure (`chatbot.build.health.seedFailed`, from the locale pack), on both the package batch and the package-less publish. The loader's text never reaches the toast. - -No locale keys, props or exports change. diff --git a/.changeset/35142-claim-race-loser-409.md b/.changeset/35142-claim-race-loser-409.md deleted file mode 100644 index 60966beb219..00000000000 --- a/.changeset/35142-claim-race-loser-409.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -'@objectstack/objectql': patch ---- - -fix(objectql): the loser of a concurrent update answers 409 CONCURRENT_UPDATE on any update that opens its own unit of work - -Clause-②: no -Metadata-protocol: none - -Two members of a queue claiming the same parked record at the same moment get one success and one `409 CONCURRENT_UPDATE`, as ADR-0142 D4 says, on every object. On a single-connection store such as SQLite, the loser got `404 RECORD_NOT_FOUND` (private sharing) or `403 PERMISSION_DENIED` (public read) instead whenever the update opened its own unit of work. An update does that in two cases, and the wrong answer has a different history in each: - -- The object carries a metadata `beforeUpdate` hook. This case opens the unit since 18.6.0, so the loser answered 409 in 18.5.0 and 404 / 403 in 18.6.0. It answers 409 again. -- The object carries a blocking (`onError: abort`, the default) or conditioned metadata `afterUpdate` hook. This case already opened the unit in 18.5.0, so the loser answered 404 / 403 in 18.5.0 and 18.6.0. It now answers 409. - -The stored owner was always right; only the loser's answer was wrong. - -The cause: the unit exists so that a refusal later in the write rolls back what the write's hooks wrote through `ctx.api`, the row included. That unit opened around the whole update, the authorization middleware included. On SQLite the second writer then waited for the first one's commit before its authorization gate read the record, and by then the record belonged to someone else. The unit now opens around the engine body only: the middleware runs before it, as it does for an update that opens no unit, and the hooks, the row write and the `after*` chain still run inside it and still roll back together. - -What a middleware does after `next()` on such an update now runs after the commit, as it does on an object with no metadata update hook. For the `beforeUpdate` case that is how 18.5.0 behaved. For the `afterUpdate` case it is not a return to an earlier release: from 18.0.0, when that unit first shipped, through 18.6.0 that code ran inside the unit. - -Nothing to change in an app. diff --git a/.changeset/35143-flow-publish-checks-second-batch.md b/.changeset/35143-flow-publish-checks-second-batch.md deleted file mode 100644 index 54621979a70..00000000000 --- a/.changeset/35143-flow-publish-checks-second-batch.md +++ /dev/null @@ -1,41 +0,0 @@ ---- -'@objectstack/lint': minor -'@objectstack/spec': patch ---- - -fix(lint)!: ten publish-time checks for flows that save and do not run — seven refuse the publish, three warn - -Clause-②: yes (narrowing) -Metadata-protocol: narrowed -Skills-docs: follow-up #36718 - - - -**BREAKING** for the publish of a flow that carries one of the seven errors below: it was accepted before and is refused now, with the fix named in the finding. The schema is unchanged and stored flows are not rewritten or refused at boot; the refusal comes at the next publish, and from `os validate` / `lint` / `compile` / `build`. - -Seven errors, run by the runtime publish gate and the CLI: - -- `flow-trigger-object-missing`: a record-triggered flow with no `objectName` registers its hook with no object, so it fires on writes to every object; a blank `objectName` is refused too, because the engine will not register a hook on an empty name and the flow never starts. -- `flow-condition-option-label`: a start condition compares a select field with one of its option labels (`record.stage == 'Closed Lost'`) where the row holds the option value (`closed_lost`), so it is never true. Reported only when the label is that field's own comparand (`F == 'L'`, `F != 'L'`, `'L' == F`, or a member of `F in [...]`); judged only when the field's options are inline in this stack. -- `flow-time-relative-shadowed`: a `timeRelative` block under a record `triggerType` never sweeps, because a record trigger wins. -- `flow-time-relative-key-misplaced`: `filter` or `maxRecords` written beside `timeRelative` is ignored; the sweep reads them only inside the block. -- `flow-time-relative-date-field-invalid`: a `timeRelative.dateField` the swept object does not have, or that is not a `date` / `datetime` field, matches no record. Judged only when the stack declares the object; `created_at` / `updated_at` count as datetime fields. -- `flow-node-write-unknown-option`: a create / update node writes a select field a literal no option carries; the record validator refuses it `invalid_option` on every run. When the literal is an option's label, the finding names its value. -- `flow-node-write-date-helper-text`: a create / update node writes a date field the text of a helper call (`'today()'`); the validator refuses it `invalid_date`. The fix is a CEL value envelope, `{ dialect: 'cel', source: 'isoDate(today())' }`. - -Three warnings, which refuse nothing and make `os validate --strict` exit 1 as any warning does: - -- `flow-schedule-timezone-missing`: a schedule or time-relative cron with no `timezone` runs in UTC. -- `flow-subflow-unknown` (CLI only, new rule `validateFlowSubflowTargets`): a `subflow` / `map` node names a flow this stack and its packages do not carry. The publish gate sees one flow at a time, and another package may ship the called flow, so it is not judged there. -- `flow-create-update-pair`: an after-create flow and an after-update flow on the same object with the same nodes; one flow on `triggerType: 'record-after-write'` does both (on the create run `previous` is null). Judged on the CLI, where the stack holds both flows. - -## FROM → TO - -- a start node `{ triggerType: 'record-after-update' }` with no `objectName` → `{ triggerType: 'record-after-update', objectName: 'deal' }`. -- `record.stage == 'Closed Lost'` → `record.stage == 'closed_lost'`. -- `triggerType: 'record-after-update'` plus `timeRelative` → keep the one the flow means. -- `{ timeRelative: {...}, filter, maxRecords }` → `{ timeRelative: { ..., filter, maxRecords } }`. -- `fields: { stage: 'Closed Lost' }` → `fields: { stage: 'closed_lost' }`. -- `fields: { due_on: 'today()' }` → `fields: { due_on: { dialect: 'cel', source: 'isoDate(today())' } }`. - -New exports from `@objectstack/lint`: `validateFlowSubflowTargets` and the rule ids `FLOW_TRIGGER_OBJECT_MISSING`, `FLOW_CONDITION_OPTION_LABEL`, `FLOW_TIME_RELATIVE_SHADOWED`, `FLOW_TIME_RELATIVE_KEY_MISPLACED`, `FLOW_TIME_RELATIVE_DATE_FIELD_INVALID`, `FLOW_SCHEDULE_TIMEZONE_MISSING`, `FLOW_SUBFLOW_UNKNOWN`, `FLOW_NODE_WRITE_UNKNOWN_OPTION`, `FLOW_NODE_WRITE_DATE_HELPER_TEXT`, `FLOW_CREATE_UPDATE_PAIR`. `@objectstack/spec` adds only the upgrade-guide entry `publish-refuses-flows-that-save-and-do-not-run`. diff --git a/.changeset/35144-aggregate-order-cut.md b/.changeset/35144-aggregate-order-cut.md deleted file mode 100644 index 27d9aa2be7b..00000000000 --- a/.changeset/35144-aggregate-order-cut.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -'@objectstack/mcp': patch -'@objectstack/objectql': patch -'@objectstack/driver-sql': patch -'@objectstack/driver-turso': patch -'@objectstack/runtime': patch ---- - -feat(mcp): `aggregate_records` orders, cuts and counts its groups in the database - -Clause-②: yes (widening: `orderBy` and `limit` arguments on `aggregate_records`) -Metadata-protocol: none - -A ranking question ("the top five customers by revenue") over more groups than the tool's row cap used to come back as every group, or the first page of them, in no stated order, and the client ranked what it happened to get. `aggregate_records` now takes `orderBy` — a list of `{ field, order }` naming an aggregation alias or a group key (its alias when it has one) — and `limit` (at most the row cap). The database orders the groups, cuts them, and counts how many groups it formed before the cut, in one statement; the result carries the groups, `totalGroups` (the key the tool already answers, now the database's count of the groups before the cut), and `truncated: true` when more groups existed than came back. - -- An order key that names no column of the aggregated row is refused `INVALID_SORT` / 400, naming the columns the query projects. -- Only a driver that runs the cut in its own SQL statement serves it: `driver-sql` (every dialect it speaks; the window `count(*) over ()` needs MySQL 8 or later), the WASM SQLite driver, and the Turso driver's local and replica faces. Every other driver (the in-memory driver, MongoDB, OData, Turso's remote face), an aggregate the engine computes in memory (a date bucket, a reference timezone or a measure filter the driver does not run), and an aggregate with `having` are refused `INVALID_QUERY` / 400 before anything is read. Groups are never ordered or cut in the application. -- On an order key without a `rank`, a NULL ranks last in either direction, except a `sum` or a count with no value, which ranks as the `0` it is served as. Group keys the order does not name, and a group key it names only by a `rank`, break ties, ascending, NULL last, so two runs of one call answer the same groups in the same order. -- An order key may carry a `rank`, a list of the column's values: the statement ranks each listed value by its position and every other value (a NULL among them) on one rank past them, before the cut, so the unlisted values come after the listed ones ascending and before them descending; among themselves they follow the column's own ascending order, NULL last. It is the tool's own, never an `aggregate_records` argument. -- A `limit` with no `orderBy` keeps the declared option order the uncut answer already follows: groups keyed by a leading select or radio field come back in the order the field declares its options, a value no option declares last, and the database takes that order before the cut, so the cut keeps the first declared groups. An `orderBy` the caller sends overrides it. -- The cut answer carries what the uncut one does: a fixed-currency amount's currency in `currencies`, and `KEY__label` beside each lookup or master-detail group key, the record's name read with the caller's own permissions. -- An amount whose records each carry their own currency is ranked by its bare numbers across currencies: the tool description says to rank it inside one currency by filtering `where` on its currency code field. -- Without `orderBy` and `limit` the tool answers as before. - -`@objectstack/objectql` exports `AGGREGATE_ORDER_CUT`, the engine-internal read option of `aggregate` that carries the request (a symbol, so no wire request can set it), with the `AggregateOrderCutRequest`, `AggregateOrderKey` and `AggregateOrderCutOutcome` types. `McpDataBridge` gains the optional member `aggregateGroups`; a bridge without it refuses `orderBy` / `limit` with `NOT_IMPLEMENTED` / 501 and keeps serving the rest of the tool. Nothing that was accepted before is refused. diff --git a/.changeset/35145-mcp-latest-per.md b/.changeset/35145-mcp-latest-per.md deleted file mode 100644 index 557bee83708..00000000000 --- a/.changeset/35145-mcp-latest-per.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -'@objectstack/mcp': patch -'@objectstack/objectql': patch -'@objectstack/driver-sql': patch -'@objectstack/driver-turso': patch -'@objectstack/metadata-protocol': patch -'@objectstack/runtime': patch ---- - -feat(mcp): "each X with its latest Y" in one `query_records` call — `latestPer` - -Clause-②: yes (widening): a new read form on the published MCP tool surface. Judged from the card content; the build confirms it -Metadata-protocol: none - -`query_records` takes `latestPer: { by, orderBy }`: one row per group, the group's first row in the given order. `by` names 1 to 3 fields, `orderBy` 1 to 3 keys (`asc` / `desc`); a tie goes to the record id in the direction of the last key, and an empty order value ranks last. "Each account with its latest deal" is `{ objectName: 'crm_opportunity', latestPer: { by: ['account'], orderBy: [{ field: 'close_date', order: 'desc' }] } }`. - -- The row is chosen among the rows the caller may read and the `where` admits: a group whose newest row is hidden from the caller answers its newest readable row, never the hidden one and never nothing. The organization wall holds inside the choice. Field masking still applies to the returned rows. -- A partition or order field the caller may not read is refused as it is in `orderBy`; a computed, JSON or multi-value field, or a dotted path, is refused as a partition or order field. -- `limit` counts groups, capped at the tool's `maxLimit` like any list. The answer is `{ object, records, hasMore }` and never a `total`; when more groups exist than came back it carries `truncated: true`. -- Served by the SQL driver (Postgres, MySQL, SQLite) and by `driver-sqlite-wasm` and the Turso driver on a local or embedded-replica database: the driver compiles a `ROW_NUMBER()` window over the read's own scoped selection. Every other driver (in-memory, Turso's remote connection, MongoDB), an object with an `afterFind` hook and an object with object-scoped read middleware refuse with `INVALID_QUERY` / 400 before anything is read. The Turso driver's remote face refuses the directive itself too. -- New exports: `LATEST_PER`, `LATEST_PER_MAX_KEYS` and the `LatestPerRequest` / `LatestPerOrder` / `LatestPerOutcome` types from `@objectstack/objectql`; `LATEST_PER_DIRECTIVE`, `latestPerDirectiveOf` and the `LatestPerDirective` / `LatestPerDirectiveOrder` types from `@objectstack/driver-sql`; `McpLatestPer` from `@objectstack/mcp`. The request rides an in-process read option, never a wire or query key; `@objectstack/spec` is unchanged. - -Without `latestPer`, `query_records` and every read are unchanged. diff --git a/.changeset/35145-mcp-related-read.md b/.changeset/35145-mcp-related-read.md deleted file mode 100644 index d6c4e2fec21..00000000000 --- a/.changeset/35145-mcp-related-read.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -'@objectstack/mcp': patch -'@objectstack/runtime': patch ---- - -feat(mcp): a record with its related records in one call — `expand` on `query_records`, `related` on `get_record` - -Clause-②: yes (widening) -Metadata-protocol: none - -`query_records` takes `expand`: up to 3 of the queried object's lookup, master-detail, user or tree fields, each answered as the record it names, one level deep. `get_record` takes `related`: up to 3 child objects that point at the record, each answered as a list of at most 20 rows (never above the tool's `maxQueryLimit`), as `{ record, related: [{ object, field, records, total, hasMore }] }`. - -- Every object a new read shape reaches is judged by the MCP read guard exactly as the object the call names. A target the guard refuses refuses the whole call with `PERMISSION_DENIED` / 403 before any record is read. A related object whose definition is not served to the caller refuses it with `OBJECT_NOT_FOUND` / 404, also before any read. -- An `expand` name that is not a relationship field of the object as the caller is served it, and a `related` link `field` that does not point at the record, are refused with `INVALID_FIELD` / 400 before any read. A child that points at the record through several fields needs `field`. -- `expand` runs through the engine's one expansion path: one batched `id IN (...)` read per field, under the target's own permissions, row-level security and field masking. It combines with `latestPer`. Only the read guard's refusal refuses the call: a record the caller may not read on an admitted target object is not expanded, and the field keeps its stored id. -- A related list is one `query_records` read of the child, filtered only by the link to the record, with the child's own `fields` and `orderBy` and no caller filter. It is read only after the record itself. A list with more rows than its cap carries `truncated: true`. -- Each related list carries the delegation notice `query_records` carries (`delegationNarrowed`, `warning`) when the agent ceiling narrowed the read. -- The record and each related list carry `withheldFields` exactly as a plain `get_record` and a plain `query_records` of that object do. -- The stdio bridge serves `expand` too, built as the data door builds it (a target that does not serve `get` keeps its stored id). `McpDataBridge.query` gains an optional `expand` member. - -Without `expand` or `related`, both tools answer exactly as before. `@objectstack/spec` is unchanged. diff --git a/.changeset/35147-destructive-still-shown-by.md b/.changeset/35147-destructive-still-shown-by.md deleted file mode 100644 index ab278d2be64..00000000000 --- a/.changeset/35147-destructive-still-shown-by.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/metadata-protocol': patch ---- - -feat(metadata-protocol): a refused field removal or type change names the views, forms and dashboard cards that still show the field - -Clause-②: yes (widening: the DESTRUCTIVE_CHANGE answer gains stillShownBy; a new exported operator-fit table) -Metadata-protocol: added -Skills-docs: none — no skill in `skills/**` teaches the `409 DESTRUCTIVE_CHANGE` save refusal or its `issues[]`. The finding's own message now names the items, so a client relaying it says them without being taught. - -The `409 DESTRUCTIVE_CHANGE` refusal of an `object` save said what data the change loses. It now also says what breaks on screen. Each `field_removed` finding carries `stillShownBy`: the views, forms, datasets, dashboards, pages, flows, reports and objects that still reference the field, at the positions that name it, as the served listing presents each item (`config.columns[1]` on a view item, `columns[1]` on a flattened list overlay, `widgets[3]` through a dataset). Each `field_type_change` finding carries the view filter rules whose operator the new type no longer fits, for example a `contains` filter on a field changed to `number`: a view item's `config.filter`, a flattened overlay's `filter`, and the `userFilters.tabs[].filter` of either. The finding's message names the first five items and counts the rest, so a door that relays only the message says it too. The save edits none of them. - -- The answer rides the refusal's `issues[]`, which every door already relays verbatim: the REST `PUT /api/v1/meta/...` doors (`issues`), the runtime dispatcher (`details.issues`) and the MCP draft door (`error.issues`). No door changed. -- It is computed from the environment's served metadata, one listing per type, only when a finding needs it. No record and no draft is read. When it cannot be computed (a listing cannot be read, a judge throws or cannot be loaded) `stillShownBy` is absent ("not computed"), and the refusal still stands; `[]` means "computed, shown nowhere". -- A removal is judged by the checks `os validate` runs (`@objectstack/lint`'s reference-integrity suite, form-layout check and widget-binding check), with the field and without it. A position those checks do not read is not seen. The spec describe on `DestructiveChangeIssueSchema.stillShownBy` states exactly what is and is not seen. -- `@objectstack/spec/data` exports `filterOperatorFieldTypeFit(operator, field)` and its table `FILTER_OPERATOR_FIELD_TYPE_FIT`: the one place that judges which filter operator fits which field type. An operator is unfit only where a declared-type door refuses it. Today that is the text-operator door (a text operator over a type that can never store a string, `INVALID_FILTER` 400), referenced rather than re-listed. `dollarFilterOperatorOf(op)` lowers a view, alias or infix operator spelling to its `$` form; a `$` spelling is returned as written, and an unknown spelling answers `undefined`. -- `@objectstack/spec/api` declares the answer's shape: `DestructiveChangeIssueSchema` and `FieldStillShownBySchema`. diff --git a/.changeset/35149-trio-handle-closed.md b/.changeset/35149-trio-handle-closed.md deleted file mode 100644 index b3ae0c477a3..00000000000 --- a/.changeset/35149-trio-handle-closed.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/objectql': patch ---- - -fix(objectql): a trio transaction handle that committed or rolled back reads as closed, as a closed `transaction()` unit handle does - -Clause-②: no -Metadata-protocol: none - -`ScopedContext`'s discrete `beginTransaction` / `commitTransaction` / `rollbackTransaction` trio (the sandbox runner's `ctx.api.transaction`) now marks its handle closed when it commits or rolls it back, instead of only dropping the handle's owner record. The engine's closed-handle check answers `true` for it, so work that still carries the handle afterwards runs outside any transaction, on its own connection, exactly as late work carrying a closed `transaction()` unit handle already did. Before, such a handle read as an unattributed one: a late write routed to another datasource was handed the dead foreign handle, and a late write on the same datasource was handed the finished handle. `openTransactionKind` answers `'none'` for a closed trio handle, where it answered `'separate'`. A driver that hands out the same handle object on a later `beginTransaction` gets it back open. diff --git a/.changeset/35157-capability-draft-count.md b/.changeset/35157-capability-draft-count.md deleted file mode 100644 index ce3cabd5af3..00000000000 --- a/.changeset/35157-capability-draft-count.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/i18n': patch ---- - -feat(i18n): a count family for capability drafts in the pending-changes summary - -Clause-②: no -Metadata-protocol: none - -Every locale pack adds `preview.changes.typeCount.capability` (and its plural forms), so the console's pending-changes summary reads "2 capabilities" (`能力 2` in Chinese) instead of the raw type name when a publish carries capability drafts. diff --git a/.changeset/35157-scaffold-no-connector-plugins.md b/.changeset/35157-scaffold-no-connector-plugins.md deleted file mode 100644 index d31a9e4474d..00000000000 --- a/.changeset/35157-scaffold-no-connector-plugins.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'create-objectstack': minor ---- - -feat(create-objectstack): the blank scaffold lists no connector plugins until the app declares a connector - -Clause-②: no -Metadata-protocol: none - -A new project's `objectstack.config.ts` no longer lists `ConnectorRestPlugin`, `ConnectorOpenApiPlugin` and `ConnectorMcpPlugin`, and its `package.json` no longer depends on the three connector packages. A plugin is code, so an app that lists any plugin installs managed only. The scaffold's own plugin list therefore kept every AI-built app from installing as an unmanaged copy, such as a marketplace trial. - -To use a connector, install its provider package and add it to `plugins:`, for example `plugins: [new ConnectorRestPlugin()]`. The template's README and the comment in `objectstack.config.ts` show how. The install contract is unchanged: a stack that lists plugins still validates for managed install only. diff --git a/.changeset/35157-unmanaged-copy-capabilities.md b/.changeset/35157-unmanaged-copy-capabilities.md deleted file mode 100644 index 57e2701cb71..00000000000 --- a/.changeset/35157-unmanaged-copy-capabilities.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/metadata-protocol': minor -'@objectstack/objectql': minor -'@objectstack/plugin-security': patch -'@objectstack/cli': patch ---- - -feat(security): an unmanaged install copies an app's capabilities, renamed with the copy - -Clause-②: yes (widening) -Metadata-protocol: added - -An app that gates an action on its own capability can now install as an unmanaged copy (`installModes: ['unmanaged']`). Before, `capability` was code-only (`allowRuntimeCreate: false`), so the validator refused the mode for any app that declared one, and the install door had no channel to write the copy's capabilities. - -- **`capability` is runtime-creatable.** Its `DEFAULT_METADATA_TYPE_REGISTRY` entry is now `allowRuntimeCreate: true`, and overlays stay closed (`supportsOverlay: false`, `allowEnvironmentOverlay: false`). A body is judged by `CapabilityDeclarationSchema`, as before. -- **The save door refuses two names.** - - A platform capability's name (`manage_users`, `setup.access`, every name in `PLATFORM_CAPABILITIES`) answers `422 NAMESPACE_CONFLICT`. An environment item under that name would shadow the platform's definition, because the registry answers its bare slot first. - - A name an installed package's capability holds answers `422 NAMESPACE_CONFLICT`, naming the holder. A capability holds one name per deployment, the same rule permission sets and positions follow. -- **The environment catalog holds capabilities.** `ENVIRONMENT_HELD_SECURITY_CATALOG_TYPES` is `['position', 'permission', 'capability']`. A package that ships a capability name the environment already authored is refused at boot, as a position or permission-set name is. `os migrate security-catalog-overlays`, the remedy that refusal names, lists and deletes such a capability row too (`capability` and `capabilities` spellings). -- **An unmanaged copy renames its capabilities.** When the copy takes a new namespace, a capability whose name starts with the source namespace (`.` or `_`) is renamed into the copy's namespace. Every reference is rewritten with it: a permission set's `systemPermissions` (list or per-operation map), an object's or action's `requiredPermissions`, and a quoted `current_user.hasCapability('')` in a predicate. There the object-name rename never touches a name the package declares, so a capability named after a renamed object has one name in the copy; a token the package does not declare follows a renamed object as before. An unprefixed capability keeps its name. A renamed capability that collides with another package's capability refuses the install, naming both. Install again under another namespace. -- **Duplicating a package refuses a shared gate.** `duplicatePackage` keeps its source installed, so a capability it cannot rename (no source prefix, or a copy name the package already declares) is refused, and so is every copied item that grants, requires or tests for it, each at its own name in `failed[]`. -- **The `everyone` anchor excuses only a declaration that carries a package.** The check that refuses a high-privilege permission set bound to `everyone` excuses the tokens an app declared itself. It now counts only declarations bound to a package (`_packageId`), as ADR-0090 D5 rules: an app's shipped capabilities, an unmanaged copy's, and one saved into a writable package. A capability saved with no package excuses nothing. What bounds a saved declaration is the two refusals above: a platform capability is never excused, and a name a package declares cannot be declared again. A name nobody declares can be declared once, by a `manage_metadata` holder, inside a writable package. -- **The gate is unchanged.** It still matches capability names. The copy's action is gated on the copy's capability: a holder of the copy's permission set passes, and a holder of only the source's set does not. diff --git a/.changeset/35158-ask-back-measure-scope.md b/.changeset/35158-ask-back-measure-scope.md deleted file mode 100644 index 2bdde26689c..00000000000 --- a/.changeset/35158-ask-back-measure-scope.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@objectstack/skills': patch -'@objectstack/mcp': patch -'@objectstack/spec': patch ---- - -docs(skills): the `objectstack-ask` skill and the `list_datasets` output schema ask back only about a word with a measure among its `candidates` - -Clause-②: no -Metadata-protocol: none - -The `list_datasets` tool description and the MCP `initialize` selection rule already scope the ask-back: "A word whose candidates are all dimensions is at most a possible grouping: never ask about it, and it never stops a matched measure." Two texts a connected client also reads still said to ask about every word with candidates. The skill now carries the same sentence, and the schema description states the same scope in its own words. - -- The `objectstack-ask` skill, and the page at `GET /mcp/skill` that is generated from it. Step 2's `candidates` row is now two rows. A word with a measure among its `candidates` is asked about the same way as a word that matches several measures; with one candidate, the client asks whether it is the one meant. A word whose `candidates` are all dimensions is at most a possible grouping: the client never asks about it, and it never stops a matched measure. So 「按行业看销售额」, where 销售额 matches a measure and 「按行业」 is only near a 行业 dimension, is computed and grouped with no question back. -- `@objectstack/spec`: the description of `ListDatasetsOutputSchema.candidates`, which `list_datasets` serves in its `outputSchema`. It said every candidate is offered for a clarifying question. It now says the clarifying question is for a term with a measure among its candidates, and that a term whose candidates are all dimensions is offered them as a possible grouping, not for a question, and does not stop a matched measure. It states what the candidates are offered for and does not carry the sentence above: the instruction stays in the tool description and the skill. The doc comment of `DatasetTermCandidateSchema` says the same. No shape changes: `candidates` holds the same entries in the same order. - -The new skill row is paid for inside the same file, by removing text that restated another line of it: the `candidates` row's own listing instruction and "Do not pick one." (the row above states both, and the row now says "Ask the same way"), "A word matches nothing, and" in its left cell (step 1 says a word that matched nothing may have `candidates`), and "on the answer" in that step 1 bullet. `packages/mcp/src/ask-skill.generated.ts` is regenerated from the skill and `content/docs/references/ai/dataset-tools.mdx` from the spec; no code path changes. diff --git a/.changeset/35166-empty-sections-line-remembered.md b/.changeset/35166-empty-sections-line-remembered.md deleted file mode 100644 index bd6b15f2d04..00000000000 --- a/.changeset/35166-empty-sections-line-remembered.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@object-ui/plugin-detail': patch ---- - -fix(plugin-detail): a record page's empty-sections line follows the reader's remembered "show empty fields" choice - -Clause-②: no -Metadata-protocol: none - -A reader who chose "show empty fields" for an object found the record page's closing empty-sections line ("Deal Narrative · Notes & Next Steps · 2 empty sections · Expand") folded again on every visit, on the default record page and on an authored one alike, and expanding the line was forgotten as soon as the page closed. - -The line now reads and writes the same remembered choice each section's own "Show N empty fields" row already uses, kept per user and object. With "show empty fields" remembered, the line opens on its own, on both page kinds. Expanding or collapsing the line is that choice: it is remembered for every record of the object, after a reload and on another device, and it also opens or folds each section's own empty fields, since it is one choice. - -What does not change: with no signed-in user or no host preference store, the line keeps its own state, forgotten when the page closes, as before. Edit mode and a print page still draw every section. No metadata key, value or default changes. diff --git a/.changeset/35167-insert-delete-unit-inside-middleware.md b/.changeset/35167-insert-delete-unit-inside-middleware.md deleted file mode 100644 index 62de8a83b2f..00000000000 --- a/.changeset/35167-insert-delete-unit-inside-middleware.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@objectstack/objectql': patch ---- - -fix(objectql): insert and delete open their own unit of work around the engine body, as update does - -Clause-②: no -Metadata-protocol: none - -An insert or delete opens its own unit of work when the object carries a metadata `before*` hook on that verb, or a blocking (`onError: abort`, the default) or conditioned metadata `after*` hook. The unit exists so that a refusal later in the write rolls back what the write's hooks wrote through `ctx.api`, the row included. Update moves that unit around the engine body only in this same release; insert and delete opened it around the whole write, the middleware chain included. All three verbs now follow one rule: the middleware chain, the authorization gate included, runs before the unit opens, and the hooks, the row write and the `after*` chain run inside it and still roll back together. - -What changes for an insert or delete on such an object: - -- On a single-connection store such as SQLite, a writer whose authorization gate or middleware is still running no longer holds the store's only connection, so other writers are no longer queued behind it. -- What a middleware does after `next()` now runs after the commit, as it already does for an update and for an insert or delete on an object with no such hook. A middleware that throws after `next()` no longer rolls the row back on a hooked object; it never did on any other object. - -This patch does not address the answer the loser of two concurrent deletes of one row gets. - -Nothing to change in an app. diff --git a/.changeset/35171-skills-verify-capabilities.md b/.changeset/35171-skills-verify-capabilities.md deleted file mode 100644 index 2aab2667f55..00000000000 --- a/.changeset/35171-skills-verify-capabilities.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -docs(skills): the hierarchy-scope row and the `os verify` row name the capability advisory, the `plugins[]` wiring check and `os verify --json`'s `capabilities` - -Clause-②: no -Metadata-protocol: none - -`objectstack-data`'s access-depth section now says the hierarchy-relative scopes need the `@objectstack/security-enterprise` plugin in `plugins[]`, not only installed, and that the CLI only advises on a missing or unwired plugin: `os validate` warns, and `os verify --json` lists it in `capabilities`. The same sentence now says the stack, not the grant, declares `requires: ['hierarchy-security']`. - -`objectstack-project`'s `os verify` row now says that `os validate`'s capability findings are advisory there, carried on `--json` as `capabilities`. - -Both files pay for the new text by deleting restatement in the same file: a duplicate link to the security rules that the quick reference already gives, the code comment in the related-title search example, which restated the sentence above it, "so the app never hand-writes it" above the check table (the paragraph under it says so), and "Nothing in its row is checked until someone runs it", which restated the clause before it. Neither file's token ceiling moves. diff --git a/.changeset/35172-owner-only-fallback-warn.md b/.changeset/35172-owner-only-fallback-warn.md deleted file mode 100644 index 42927e039db..00000000000 --- a/.changeset/35172-owner-only-fallback-warn.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@objectstack/plugin-sharing': patch -'@objectstack/cli': patch ---- - -fix(plugin-sharing): a hierarchy scope that falls back to owner-only for want of a resolver now says so once per boot - -Clause-②: no -Metadata-protocol: none - -When a permission set grants a hierarchy scope (`own_and_reports`, `unit`, `unit_and_below`) and no `hierarchy-scope-resolver` service is registered (the `hierarchy-security` capability, provided by `@objectstack/security-enterprise`), the sharing layer fails closed to owner-only. It used to do so without a word, so a runtime booted without the CLI gave an operator nothing to explain why every user saw only their own records. - -- The first time the fallback is taken, the sharing service logs one `warn` naming the capability, its provider and the owner-only consequence. It is logged once per service instance, which is once per boot, never once per request. -- Nothing is logged for an app that never asks for a hierarchy scope, or when a resolver is registered. -- The answer does not change: the scope still resolves to the caller alone. -- `os validate`, `os verify` and `os serve` no longer end the `hierarchy-security` advisory with "and no log line says so": for that token they now say the runtime logs one warning, opening `[sharing] hierarchy scope NOT widened`, the first time it falls back. Other enterprise tokens keep their wording. diff --git a/.changeset/35174-action-api-platform-system-api-mark.md b/.changeset/35174-action-api-platform-system-api-mark.md deleted file mode 100644 index e15c3c56ed9..00000000000 --- a/.changeset/35174-action-api-platform-system-api-mark.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@objectstack/runtime': patch ---- - -fix(runtime): `platformSystemApi` on an action handler's `ctx.api` keeps the `'action'` mark, and what it returns stays wrapped - -Clause-②: no -Metadata-protocol: none - -`platformSystemApi(api)` (new in this release, from `@objectstack/objectql`) takes the app-automation elevation mark and `flowRunId` off a hook's api, so the audit writer's own ledger rows are not judged as an automation's insert. On the `ctx.api` an action door hands a host code action handler (`engine.registerAction`) it took the `'action'` mark off too, so a handler handing its own api to it could write `sys_member`, `sys_user_position`, `sys_user_permission_set` and `sys_invitation` as a platform writer, against the documented refusal for action handlers. What it returned also bypassed the two layers runtime puts on that api: the stored-metadata read projection and the answer for a write that landed while its parent roll-up could not be recomputed. - -- The api an action door builds now carries its own origin flag, a runtime layer beneath its other two, kept by every api derived from it (`sudo()`, `withRunAs(...)`, a transaction's context, and the api `seedHookUserGrants` / `seedHookUnreadMembership` return). On it, `platformSystemApi(api)` returns what `api.sudo()` returns: the `'action'` mark and any `flowRunId` kept. Writes to the four identity-assignment objects through it are refused `PERMISSION_DENIED` (403), and its inserts are owner-stamped with the invoking user, as the handler's own are. -- The flag is not the app-authored flag: a host handler's `delete(…, { permanent: true })` still runs. -- The api the audit writer holds (a hook registered in code) is unchanged: `platformSystemApi` still takes the mark off there. -- Runtime's derivation walk now wraps the api any symbol-keyed member derives (`platformSystemApi`'s, the user-grants seeds'), awaited when it is a promise, so it is served through the stored-metadata read seam and the landed-write answer like `ctx.api.sudo()`. -- No new export, and `@objectstack/objectql` is unchanged but for its module header: the member's key is the `Symbol.for` key objectql already uses, which neither package entry exports. diff --git a/.changeset/35178-ui-router-names-refusals.md b/.changeset/35178-ui-router-names-refusals.md deleted file mode 100644 index 42defe8073c..00000000000 --- a/.changeset/35178-ui-router-names-refusals.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -docs(skills): the `objectstack-ui` routing table sends a refused action's message to its rule - -Clause-②: no -Metadata-protocol: none - -The Actions row of the `objectstack-ui` routing table now names `refusals` in the words of the rule's heading, "refusing by code (`refusals`)", so an agent looking for how an action refuses with a declared code and a translated message opens `rules/actions.md`. First checks 3 loses a clause that restated First checks 1. diff --git a/.changeset/35184-dev-seed-retire-at-boot.md b/.changeset/35184-dev-seed-retire-at-boot.md deleted file mode 100644 index a88b7f0067e..00000000000 --- a/.changeset/35184-dev-seed-retire-at-boot.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@objectstack/plugin-auth': patch ---- - -fix(auth)!: a boot outside development mode retires what the development seed issued - -Clause-②: no (narrowing) -Metadata-protocol: none - - - -**BREAKING** for a deployment that serves a database `os dev` seeded. At every boot outside development mode (`NODE_ENV` is not `development`), before the server serves a request, the platform retires what each account the development seed created (its admin and the stack's `demoStaff`) was issued, while that account still has the password it was seeded with: its sessions (including any it opened acting as another account), its API keys, the apps authorized to it and its device sign-ins, its outstanding password-reset links, any sign-in account linked to it, the OAuth applications it registered (disabled) and the SCIM credentials it minted (revoked). It is the revocation `os user set-password` performs, plus the sessions the account opened as another account, without setting a password, and with a host `secondaryStorage` it also ends the sessions held there. - -- FROM: a session, an API key or an authorized app the seed's admin or a demo account was issued under `os dev` kept working on a server outside development mode, until an operator ran `os user set-password` on that account. -- TO: the boot retires them. A retired session's next request is unauthenticated, a retired key is refused `403 API_KEY_REVOKED`, and both carry the reason `admin_password_reset`, so only a platform administrator restores such a key. The log names each account and what was retired. When the retirement cannot complete, the boot fails with an error naming the accounts. - -**Not moved.** A boot in development mode retires nothing. An account the seed did not create is never read. An account whose password was set since the seed (by `os user set-password`, by an administrator or by its own reset) holds a credential the seed did not issue and is untouched, and so is every credential it was issued after that. A database with no account the seed created costs one indexed read per boot. - -The fix: set each seeded account's password with `os user set-password ` before serving the database outside development mode (the refusals added in the previous release already require it to sign in), then sign in and issue new keys. diff --git a/.changeset/35189-wizard-gate-formula.md b/.changeset/35189-wizard-gate-formula.md deleted file mode 100644 index a2a96164244..00000000000 --- a/.changeset/35189-wizard-gate-formula.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/plugin-form': patch ---- - -fix(plugin-form): the wizard's final-submit gate judges a `visibleWhen` that reads a formula on the computed value - -Clause-②: no -Metadata-protocol: none - -`WizardForm` re-checks every declared field when it submits, including the fields on steps the user skipped. The simple form's mobile stepper submits through the same check. That check now computes the object's `formula` fields over the record being written before it judges field rules, the same way the form renderer does (`planObjectFormulas`, ADR-0113). Before, it used the formula value from the last read. So after an edit that moved a required field out of its `visibleWhen`, the wizard still demanded the field even though the server does not require it. After an edit that moved the field into its `visibleWhen`, the wizard sent the save without the field and the server refused it. - -The `visibleWhen` of a field that reads a formula the form cannot compute is handled as the step forms handle it: the field counts as shown and keeps its `required` flag. The plan is built from the object schema the wizard already reads. When that read fails, or no data source is given, the gate judges the record as it holds it, as before. diff --git a/.changeset/35190-narrow-formula-visiblewhen-warning.md b/.changeset/35190-narrow-formula-visiblewhen-warning.md deleted file mode 100644 index 674a3a27cd9..00000000000 --- a/.changeset/35190-narrow-formula-visiblewhen-warning.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -'@objectstack/lint': patch -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -fix(lint, studio): warn about a required field's `visibleWhen` formula read only when the form cannot compute the formula - -Clause-②: no -Metadata-protocol: none - -A `required` field whose `visibleWhen` reads a `formula` field used to draw a warning from `os validate` (and the object save door) and an advisory in Studio's field inspector for every formula it read. The form now computes the object's formulas over the record being edited, so for a formula it can compute the form and the server judge the same value, and that warning named no real problem. Both now fire only for a formula the form cannot compute: - -- **The server cannot compute it either.** The formula reads through a reference, calls `label()` or `current_user.can()`, or reads such a formula. The server counts the field as shown, so it stays required on every record. Same verdict as before, now stated on its own. -- **Only the form cannot compute it.** The formula reads `os`, or reads such a formula. The server computes it and can waive the field where the form still shows it and keeps it required. Before this change such a formula drew only the generic warning, which said the form computes it. - -Either message now says that the form's half holds for a form that computes the object's formulas. A form check that computes none judges the value it last read, and can hide the field or not ask for it. - -A formula that reads the acting user draws nothing, as before. Both sides compute it for a signed-in writer. - -Studio catalogue (en, zh): `designer.field.requiredVisibleWhenFormula` is removed. `designer.field.requiredVisibleWhenFormulaUnservable` is now a full sentence on its own. `designer.field.requiredVisibleWhenFormulaFormOnly` is new. The lint rule's location and severity (warning) are unchanged. No props or exports change. diff --git a/.changeset/35191-ask-skill-withheld-totalgroups.md b/.changeset/35191-ask-skill-withheld-totalgroups.md deleted file mode 100644 index 2a1b78e9ec5..00000000000 --- a/.changeset/35191-ask-skill-withheld-totalgroups.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@objectstack/skills': patch -'@objectstack/mcp': patch ---- - -docs(skills): the `objectstack-ask` skill reads `withheldFields`, asks `aggregate_records` for a top or bottom N, and answers "how many" from `totalGroups` - -Clause-②: no -Metadata-protocol: none - -The `objectstack-ask` skill, and the page at `GET /mcp/skill` that is generated from it, now tell a connected client three things. In step 4: a `query_records` or `get_record` answer whose `withheldFields` names a field means the field exists but is hidden from the caller, so the client says it is not visible, never that it is empty; and a top or bottom N is asked of `aggregate_records` with `orderBy` (an aggregation alias or a group key) and `limit: N`, so the database ranks and cuts the groups. In step 6, one bullet covers `truncated: true`: more rows or groups existed than came back, so the client says the result is partial, and cites `totalGroups` (answered by `query_dataset` and `aggregate_records`) as how many groups existed before the cut; a `query_dataset` answer without `totalGroups` has an unknown total, never `rowCount`. A capped `query_records` page keeps stating its own `total`, which the bullet leaves alone. - -The two per-tool `truncated` sentences that bullet replaces are removed from steps 3 and 4. `packages/mcp/src/ask-skill.generated.ts` is regenerated from the skill; no code path changes. diff --git a/.changeset/35192-notification-settings-read-only.md b/.changeset/35192-notification-settings-read-only.md deleted file mode 100644 index 89b7e03dfe4..00000000000 --- a/.changeset/35192-notification-settings-read-only.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -fix(console): Notification Settings is read-only, with its reason, for a caller who cannot change their notification preferences - -Clause-②: no -Metadata-protocol: none - -An external member (the `org_external` identity, `external_default` permission set) could open the Account app's Notification Settings page and was shown every switch, the digest choice and the quiet hours as editable, yet each change answered `403`: that set grants no create or edit on `sys_notification_preference`. The page now reads the caller's own grant on that object from the console's permission answer (`/me/permissions`, through `usePermissions()`), and when the caller holds neither a create nor an edit grant it draws the same settings read-only: every control disabled, one visible line saying why (`notificationSettings.readOnly`, in every built-in locale), named by each disabled control as its accessible description, and no write sent. - -What does not change: a member and an organization administrator see and use the page as before. With no permission answer mounted, the page stays writable and the server's refusal decides, as every other console grant read does. No metadata key, value, default or permission changes; the server's refusal is unchanged. diff --git a/.changeset/35194-query-dataset-total-groups.md b/.changeset/35194-query-dataset-total-groups.md deleted file mode 100644 index 1d961b00655..00000000000 --- a/.changeset/35194-query-dataset-total-groups.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/service-analytics': patch ---- - -feat(service-analytics): `query_dataset` says how many groups existed before the `limit` cut (`totalGroups`), as `aggregate_records` does - -Clause-②: yes (widening: QueryDatasetOutputSchema gains totalGroups) -Metadata-protocol: added -Skills-docs: follow-up #35203 - -`QueryDatasetOutputSchema` gains an optional `totalGroups`: how many groups the selection formed before `offset` and `limit` cut them, the same name and meaning as `aggregate_records`' `totalGroups`. A client asked "how many are there" after a top-N cut can now answer it: a grouped `query_dataset` whose `limit` is below the group count answers `truncated: true` and the full count, and an answer that was not cut answers `totalGroups` equal to `rowCount`. - -The count never costs a read. Where the window is pushed into the one SQL statement that grouped the answer, the database counts the groups in that statement (`COUNT(*) OVER ()`, after the `GROUP BY` and ahead of the `ORDER BY` and `LIMIT`). Where the window is applied in memory, the count is the length of the grid before the window: an order by a display label (the tool's own order, used when none is sent, sorts every selected dimension, so grouping by any select or reference field brings this in; an order by measures alone does not), a grid assembled from several queries (a measure with its own filter, a derived measure, `compareTo`), and a query the engine's aggregate serves, such as a date bucket, a field-to-field filter, an external object or a driver with no raw SQL. That grid is counted only when every read that built it came back whole; a grid that a cap or row guard cut before the window answers no count. - -`totalGroups` is absent when: the window was pushed down and the SQL dialect is not one the analytics strategy knows, or a selected member is itself named `__os_group_count`, or the page came back empty after an `offset`; a read was served by a strategy that does not vouch for its grid, such as one a host adds, or was cut by a cap under it; or the dataset's object is missing and the answer is the empty one served for it. Read `totalGroups` as optional. - -Only the AI tool asks for the count. The REST dataset door, dashboards and reports run the statements they ran before. diff --git a/.changeset/35195-search-disabled-package.md b/.changeset/35195-search-disabled-package.md deleted file mode 100644 index c4341c9deac..00000000000 --- a/.changeset/35195-search-disabled-package.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@objectstack/metadata-protocol': patch ---- - -fix(metadata-protocol)!: global search leaves out the objects of a disabled package, the answer every data route already gives - -Clause-②: yes (narrowing: global search stops returning a disabled package's records, the answer every data route already gives) -Metadata-protocol: none - - - -**BREAKING** for a caller of `GET /api/v1/search` (and of `searchAll` in process) on an environment that disables a package. A disable takes the package's records off the data plane: `GET /api/v1/data/:object` and the by-id read answer `404 OBJECT_PACKAGE_DISABLED`. Global search did not ask that question, so the same records, with their titles and matched text, still came back as hits. The sweep now asks the registry's `isObjectPackageDisabled`, the predicate the data routes ask, and passes over such an object: it is never queried, never named and never counted in `totalObjects`. An explicit `?objects=` naming it answers as one naming no object at all; search is a sweep, not a by-name read, so there is no 404 there. - -An enabled object whose title is a reference to an object of a disabled package keeps the bare id as its hit title, the answer a searcher who may not read the target already gets: the title is the disabled record's data. - -The fix: re-enable the package to have its records searched again. An environment with no disabled package sees no change. Published pages were already filtered, since the page sweep reads through the `/meta/page` list, which omits a disabled package's items. diff --git a/.changeset/35196-studio-landing-package-door.md b/.changeset/35196-studio-landing-package-door.md deleted file mode 100644 index ac98c5f1381..00000000000 --- a/.changeset/35196-studio-landing-package-door.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -feat(console): the Studio landing opens package management in one click - -Clause-②: no -Metadata-protocol: none - -Studio's landing (the App Builder home at `/_console/studio`) is now the visible door to package management. Every package card carries **Manage**, which opens the same detail sheet as the top-bar package switcher's "Package info & settings": Disable where the server says the package can be switched off (a module of an installed app, or your own app), Enable on a disabled package, and export. The title row gains an **All packages** link to the unfiltered Packages page. Before, the only way in from a menu was to open a package, open the package switcher and pick its last entry, so admins of code-loaded modules looked for Disable and did not find it. diff --git a/.changeset/35204-query-dataset-group-count-totals-arm.md b/.changeset/35204-query-dataset-group-count-totals-arm.md deleted file mode 100644 index c50a8b6fbe0..00000000000 --- a/.changeset/35204-query-dataset-group-count-totals-arm.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@objectstack/service-analytics': patch ---- - -fix(service-analytics): `query_dataset` never pairs an empty answer with a group count - -Clause-②: no -Metadata-protocol: none - -A selection with `totals` runs its totals reads after the primary grid is counted. When one of those reads met a missing source, the service served the empty answer (`rowCount: 0`), but the group count of the primary grid was already written, so `query_dataset` answered `totalGroups` for a grid it never served. The count now reaches the caller only once the whole call has answered; an answer served empty because a read failed carries no `totalGroups`. - -The `dataset-group-count.ts` header also states where the whole-grid proof stops: at the strategy's own read seam (`ctx.executeRawSql`, `ctx.executeAggregate`). A host-supplied bridge or an out-of-repo driver that silently truncates an unwindowed read would be counted as whole. - -No key, member or export changes. diff --git a/.changeset/35218-objectstack-project-skill.md b/.changeset/35218-objectstack-project-skill.md deleted file mode 100644 index 7420b237173..00000000000 --- a/.changeset/35218-objectstack-project-skill.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@objectstack/skills': patch -'create-objectstack': patch ---- - -feat(skills): a process skill for running a metadata-app project - -Clause-②: no -Metadata-protocol: none - -The skills catalog gains `objectstack-project`. The domain skills teach how to write each kind of metadata; this one teaches how a change moves through an app project: whether it belongs in the app or the platform, what to write at each stage, what the app tests itself (with `bootStack` from `@objectstack/verify`) and what `os validate`, `os lint` and `os verify` already check, how a platform defect is handled without a workaround, how a change is described for customers, and how to bump `@objectstack/*` and carry customer data across an upgrade with a backfill. Steps that matter only to an app shipped to customers are marked, and the light path is the default. - -A project that already syncs its skills gets the new one on its next `npx skills@1.7.2 experimental_sync --agent --copy -y` after bumping `@objectstack/skills`. - -`npm create objectstack` projects now: - -- point `AGENTS.md` at `objectstack-project` in place of its hand-written skill table, which listed nine of the catalog's skills; -- carry a three-line `.github/pull_request_template.md`: what a user can do now, how it was checked, which docs changed. - -Existing projects are not changed. diff --git a/.changeset/35218-scaffold-ci-runs-tests.md b/.changeset/35218-scaffold-ci-runs-tests.md deleted file mode 100644 index 83817e31ad1..00000000000 --- a/.changeset/35218-scaffold-ci-runs-tests.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'create-objectstack': patch -'@objectstack/cli': patch -'@objectstack/skills': patch ---- - -feat(scaffold): new projects run their tests in CI - -Clause-②: no -Metadata-protocol: none - -`npm create objectstack` projects now run `pnpm test` in `.github/workflows/ci.yml`, after `validate`, `lint` and `typecheck`, so the starter `note.test.ts` and every test you add run on each push. - -`os init -t app` and `os init -t empty` now declare a `test` script (`vitest run`), list `vitest` in `devDependencies`, and ship one starter test (`app.test.ts`, `project.test.ts`) that reads the project's definition, so the same CI workflow passes on a project made either way. To test what the engine does with a record, add `@objectstack/verify` and boot the stack with `bootStack`; the `objectstack-project` skill shows how. - -Existing projects are not changed. To take the CI step, add `- run: pnpm test` after `- run: pnpm typecheck` in your `ci.yml`; a project with no `test` script adds vitest and the script first. diff --git a/.changeset/35220-remove-pending-sso-user-action.md b/.changeset/35220-remove-pending-sso-user-action.md deleted file mode 100644 index dab3aa8691f..00000000000 --- a/.changeset/35220-remove-pending-sso-user-action.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/platform-objects': patch ---- - -feat(platform-objects): Setup → Users can take a pending person back out on a managed environment - -Clause-②: no -Metadata-protocol: none - -`sys_user` gains a row action, `remove_sso_user` (Remove Pending User), on the Users list row and the user record header. It posts the row's id as `userId` to plugin-auth's `admin/remove-sso-user`, which removes a person added ahead of their first sign-in and cancels their invitation at the hosting organization. It is offered only where that door answers: to a platform administrator, on a cloud-managed environment, on a row that is still pending (`source` is `idp_pending`). A confirmation dialog asks first and says that no one is removed when the person has signed in meanwhile or the hosting organization cannot be reached. The door itself is unchanged. Its labels are added to the translation bundles, translated for zh-CN, ja-JP and es-ES. diff --git a/.changeset/35228-package-duplicate-entry-every-door.md b/.changeset/35228-package-duplicate-entry-every-door.md deleted file mode 100644 index 2831a10d494..00000000000 --- a/.changeset/35228-package-duplicate-entry-every-door.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/objectql': minor ---- - -feat(spec)!: two entries under one identity in one package are refused when a composition or a package body assembles them, as a single stack already refused them - -Clause-②: no (narrowing) -Metadata-protocol: narrowed -Skills-docs: none — no skill teaches splitting one package's entries for one identity across sub-stacks or package bodies; `skills/objectstack-data/SKILL.md` teaches one `objectExtensions` entry per extension, and the refusal names both entries and prescribes the merge - - - -**BREAKING** accept-set narrowing, shipped as `minor`. `defineStack` refuses two entries under one identity in one stack for the collections the runtime registers one entry per identity (`objects`, `datasources`, `pages`, …, `queues`, `assignmentRules`, `apps`, `objectExtensions`), but two sub-stacks of ONE package that each declared one such entry composed with both, and a hand-built `packages[i]` body carrying two was accepted. `os validate`, `os build` and the boot all passed, and the boot then kept one entry. For `objectExtensions` that meant only the last entry's fields registered: a field the earlier entry declared was missing, and reads and writes naming it answered `INVALID_FIELD`. - -- **Refused now, in the cross-reference envelope (`STACK_CROSS_REFERENCE_INVALID`, 422), with the single-stack wording.** `composeStacks`, for the package it registers under its own `manifest.id`: every input of a flat composition, and under `manifest: 'preserve'` the inputs without a manifest and any other top-level entry no package body claims (the boot's residual). Each finding names the input every entry came from: `Object extension of 'crm_line' is declared twice in \`objectExtensions\`: stack #1 objectExtensions[0] and stack #2 objectExtensions[0]. …`. Every `packages[i]` body, of `defineStack({ packages })` (`stack.packages[1].manifest.objectExtensions[0]`) and of a composition that carries or assembles bodies. The refusal carries the inputs' conversion record like the other composition refusals. Two inputs declaring one app name now answer this refusal first, where they answered `STACK_SINGLE_APP_VIOLATION`. -- **Unchanged.** A single stack's refusal, byte for byte. Two packages reusing one name (ADR-0048 §3.4): under `manifest: 'preserve'`, as two package bodies, or as a nested multi-package artifact's flattened copies of its bodies, each body is judged on its own. The same built sub-stack passed to a composition twice, except its `hooks`: a hook reached twice is refused, because a built artifact binds each copy. Two same-name objects across inputs stay the `objectConflict` strategy's to refuse or fold. -- **Installed packages keep loading (`@objectstack/objectql`).** A package body built before this release that carries two or more `objectExtensions` entries for one object registers as before (only the last entry's fields), and its registration now logs one error per (package, object) naming the object, the package and the entries, and telling the author to merge them and rebuild. Entries for one object that are all equal by value lose nothing and log nothing. Re-registering a package still replaces that package's previous extension of the object. - -One-line fix: merge the entries into one (for `objectExtensions`, one entry per target object carrying every field), or rename one of them. diff --git a/.changeset/35245-skills-publish-time-findings.md b/.changeset/35245-skills-publish-time-findings.md deleted file mode 100644 index 7cac9244f3e..00000000000 --- a/.changeset/35245-skills-publish-time-findings.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -docs(skills): the data and automation skills name the publish-time findings in place of their trap warnings; the i18n skill drops the `fallbackLocale` workaround for refusal labels; the ai skill names `MCP_DOOR_TOOL_NAMES` as the fourth tool source - -Clause-②: no -Metadata-protocol: none - -**objectstack-data.** A `state_machine` rule that runs on insert declares `initialStates`, or publish refuses it (`state-machine-no-initial-states`); an update-only machine (`events: ['update']`) needs none, since the engine reads them only on insert. `SKILL.md`, `rules/validation.md` and eval 11 say so. The yes/no-flag bullet no longer says "never `required`": on a boolean `required` refuses only `null`, an unchecked box is a value, so it never means "must be checked". A box that must be checked (terms, consent) is a `validations[]` `script` rule, and the bullet carries one. Eval 10 follows, and no longer fails an answer that keeps `required: true`. - -**objectstack-automation.** `SKILL.md`: a node `type` no executor runs is refused when the flow is published to a running server (`flow-node-type-no-executor`); an `http` node with no positive `timeoutMs` has no timeout and raises the warning `flow-http-timeout-missing`. `references/state-machines-and-approvals.md`: `initialStates` is no longer described as optional with a legacy opt-out, and names the same refusal and the same update-only exception; an approval's downstream nodes hang off out-edges labelled exactly `approve` and `reject`, and with one missing or respelled publish refuses the flow (`flow-approval-decision-unrouted`). - -**objectstack-ui.** `rules/actions.md`: a standalone action that declares `locations` and no `objectName` is refused at validate and at publish (`action-no-object-binding`); the fix is `objectName`, or `locations: []` for a headless action. Paid in the same file: three parentheticals of the locations table and some wording of the same paragraph. - -**objectstack-i18n.** Validation, delete-restriction and permission-denial messages name fields and objects in the request's language, as label serving does: a request in `sourceLocale` reads the inline label. The sentence telling an English-authored, Chinese-default app to add `fallbackLocale: 'en'` for that is gone from `SKILL.md` and from eval 11; `fallbackLocale` stays documented as the fallback for a missing translation. - -**objectstack-ai.** Source 4 of the `skill.tools[]` resolution ladder is `MCP_DOOR_TOOL_NAMES`, every tool the MCP door registers (the `MCP_FILE_TOOL_NAMES` file pair included), resolved only for a skill MCP can offer (`mcpPrompt` not `false`). On a `mcpPrompt: false` skill a name only the door serves still warns, with its own hint. - -Paid in place, no token ceiling moves. Cut to pay: in `rules/validation.md` the state-machine example loses three states and its default `severity`; in `references/state-machines-and-approvals.md` three asides (automation being AI-generated, a multi-step review reading as one diagram, a back-edge re-entering its node); in objectstack-automation `SKILL.md` a few words of seven node-table rows; in objectstack-data `SKILL.md` two example state names and a few words of the same bullets. diff --git a/.changeset/35249-default-form-record-visiblewhen.md b/.changeset/35249-default-form-record-visiblewhen.md deleted file mode 100644 index 30acd72b68c..00000000000 --- a/.changeset/35249-default-form-record-visiblewhen.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(console): the record form draws a field whose `visibleWhen` holds for the record, on the default (fieldGroups) form too - -Clause-②: no -Metadata-protocol: none - -The console's record-form dialog and the full-page record form built their field list by evaluating each object field's `visibleWhen` once, with no record bound. A total predicate such as `has(record.stage) && record.stage == "closed_lost"` answers a clean false without a record, so the field was left out of the list before the form saw the record. A form laid out from the object's `fieldGroups` draws only listed fields, so a deal's Loss Reason never appeared on a lost deal, while an authored form view section with the same predicate drew it. - -The field list now reads the static `hidden` alone. A field's `visibleWhen` is evaluated by the form, against the record (the stored row under the values being edited) and the signed-in user, and again as the user edits, so a field whose predicate turns true mid-edit now appears. `hidden: true` still keeps a field off the form whatever its predicate says, a predicate that cannot be evaluated still fails open, and the refused field-level `visible` is still not read. - -Visible change: a field whose `visibleWhen` reads the record (or the user) is now drawn whenever its predicate holds for that record. On the full-page form this includes an authored section that names such a field, which the list used to drop. No props, exports, metadata keys or locale keys change. diff --git a/.changeset/35250-print-page-not-record-page.md b/.changeset/35250-print-page-not-record-page.md deleted file mode 100644 index ae640591866..00000000000 --- a/.changeset/35250-print-page-not-record-page.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/react': patch ---- - -fix(react): a print page is never the record page an object falls back to - -Clause-②: no -Metadata-protocol: none - -A print page is no longer the record page an object falls back to. When an object has no `isDefault` record page, the console's record route used to open the first record page of the object in declaration order, so an app that authored only a print page for an object (a quote, a contract) opened every record as that printed document, with no path, tabs, related lists or edit flow. The fallback now skips pages that declare `print`: the first record page that does not print opens, and with none the record route draws the synthesized default record page. A print page still opens on the named record page route, and where its author declares it the object's default record page (`isDefault`) or scopes it to an app (`apps`). diff --git a/.changeset/35251-state-machine-update-only.md b/.changeset/35251-state-machine-update-only.md deleted file mode 100644 index ad7d8b7e199..00000000000 --- a/.changeset/35251-state-machine-update-only.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@objectstack/lint': minor -'@objectstack/spec': minor ---- - -fix(lint): `state-machine-no-initial-states` judges only state machines that run on insert - -Clause-②: yes (widening) -Metadata-protocol: added - -The publish-time rule `state-machine-no-initial-states` now refuses an active `state_machine` validation with no (or an empty) `initialStates` only when the machine runs on insert: its `events` include `insert`, or are left to the default `['insert', 'update']`. The engine runs a rule only on the write contexts its `events` name, so a machine declared `events: ['update']` (or `events: []`) never runs on create and never reads `initialStates`. Such a machine is accepted at publish and by `os validate` again, with no `initialStates`; adding one to satisfy the rule produced metadata the runtime ignores. A machine that runs on insert without `initialStates` is still refused, with the same fix. - -`@objectstack/spec` changes only the description of a state machine validation's `initialStates`, which now says the rule judges a machine that runs on insert. diff --git a/.changeset/35252-field-group-shadowed-six-highlights.md b/.changeset/35252-field-group-shadowed-six-highlights.md deleted file mode 100644 index 4d9a7ef2197..00000000000 --- a/.changeset/35252-field-group-shadowed-six-highlights.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@objectstack/lint': minor -'@objectstack/spec': minor -'@object-ui/plugin-detail': minor ---- - -fix(lint): `field-group-shadowed` judges the six highlights the record page draws, from one shared constant - -Clause-②: yes (narrowing) -Metadata-protocol: narrowed - -The default record page draws the first six of an object's `highlightFields` (after the title field leaves the list) in its header strip and leaves those fields out of the Details body. The `field-group-shadowed` warning judged only the first four, so a field group whose only member sat fifth or sixth in `highlightFields` was empty on the record page and passed `os lint --strict`. It now judges the same six, and its hint says "first 6 highlightFields". - -What was accepted before and is warned now: an object whose field group is emptied by its fifth or sixth highlight. Fix it as the hint says: keep a member of that group out of the first six highlights, or drop the group. A list the old count warned is still warned: six hoisted fields include the first four, so no list that passed only under six is refused. - -New export: `@objectstack/spec/ui` adds `RECORD_HIGHLIGHTS_MAX` (6), the count both the lint and `@object-ui/plugin-detail`'s record page synthesizer read. `@object-ui/plugin-detail` now takes its own `RECORD_HIGHLIGHTS_MAX` from there; the value and the page are unchanged. - - diff --git a/.changeset/35253-approval-band-once.md b/.changeset/35253-approval-band-once.md deleted file mode 100644 index 89d9251f645..00000000000 --- a/.changeset/35253-approval-band-once.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/plugin-detail': patch ---- - -fix(plugin-detail): the record page draws its approval band once when the details are split around a body table - -Clause-②: no -Metadata-protocol: none - -The synthesized default record page splits its details around a body table (a `relatedList: 'primary'` list, such as a quote's or an opportunity's line items): one `record:details` part per run of sections. Each part mounted its own `DetailView`, and each drew the record's approval band, so an approval-locked record showed "Locked for approval" twice, above the table and again above the next section. The laid-out page now has the first details part alone draw the band, above the table. An authored page's details body, a standalone `DetailView` and the record drawer are unchanged, and so is the lock rule: an approval node with `lockRecord: false` still reads as an editable approval. diff --git a/.changeset/35254-seed-extension-lookup.md b/.changeset/35254-seed-extension-lookup.md deleted file mode 100644 index be2f8fbb59d..00000000000 --- a/.changeset/35254-seed-extension-lookup.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -'@objectstack/metadata-protocol': patch ---- - -fix(metadata-protocol): a seed resolves a lookup that another package adds through `objectExtensions` to the target's id - -Clause-②: no -Metadata-protocol: none - -A package can add a lookup to another package's object through `objectExtensions`. A seed that set that lookup by the target's natural key (`externalId`) used to store the raw key in the foreign-key column on a boot that loads a compiled artifact (`os dev`, `os serve`, the cloud runtime). The record then linked to nothing, and the console showed "Restricted record". The same seed resolved correctly under the in-process test harness. - -The cause was the seed loader's object read. It took the metadata service's copy of the object, which on an artifact boot is the object as its own package wrote it, without the fields an extension adds. Now the loader reads the object as the engine serves it, with its extensions included. It falls back to the metadata service's copy only when the engine has no schema for the object. So a lookup an extension adds is treated exactly like one the owner wrote, in every mode (`upsert`, `ignore`, `update`): - -- it adds a dependency, so the target dataset loads first; -- its natural key is resolved to the target's id; -- it waits for the second pass when the target loads later in the same load; -- an unknown key is refused with the same error. - -The same read now drives the loader's other per-field decisions for such a field: the required-on-insert check, the tenant column, the replay compare and the undeclared-column warning. - -Rows an earlier load stored with the raw key are not rewritten. Run the seed again (in `update` or `upsert` mode) to store the target's id in place of the key. diff --git a/.changeset/35255-verify-external-no-writes.md b/.changeset/35255-verify-external-no-writes.md deleted file mode 100644 index 6eb39278b40..00000000000 --- a/.changeset/35255-verify-external-no-writes.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@objectstack/verify': patch ---- - -fix(verify): `os verify` writes nothing to an object on an external datasource, even one whose write gate is open - -Clause-②: no -Metadata-protocol: none - -The harness connects every datasource an app declares, the way `os dev` does. An object on an external datasource whose write gate was open (`external.allowWrites` on the datasource and `external.writable` on the object) was let into the CRUD round trip and every write family built on it, so a verify run could insert, update and delete test rows in the real database behind that datasource. - -Now `deriveCrudCases` blocks every object on an external datasource, whatever its write gate says, and the reason names the gate's state: `external datasource "NAME" (writes allowed): not exercised — verify writes only to its ephemeral store`, or `(read-only)` for a closed gate. The CRUD stage reports the object `skipped` with that reason, which does not fail the run; the RLS, reference-shape, delete-behaviour, unique-scope, parent-write-reach and dashboard-window families, which build their records from the same case, leave it out with the same reason. An object that requires a reference to it is skipped too. An object counts as on an external datasource when it carries an `external` block (verify's existing trigger) or when its datasource declares a `schemaMode` other than `managed` (the engine's write gate's own test). An object bound to a declared managed datasource, or one that declares no `schemaMode`, is still written through that datasource, as under `os dev`. - -A write the app itself makes to an external object (its seed, or a hook or flow that one of verify's writes fires) still goes where the app sends it, as under `os dev`; the `--flow` run already refuses every write routed away from the in-memory database. The package README and the harness header now say exactly this instead of "never touches a real database". diff --git a/.changeset/35256-draft-connector-advisory.md b/.changeset/35256-draft-connector-advisory.md deleted file mode 100644 index 1e340b05288..00000000000 --- a/.changeset/35256-draft-connector-advisory.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/metadata-protocol': patch ---- - -Clause-②: yes — widening: the draft verdict gains an advisory for a draft flow whose `connector_action` names a connector or action the runtime cannot dispatch; advisory only, never a refusal (the probe "never fails the publish"), so no save or publish accepted today is refused. Seat runs a contract read before ready. -Metadata-protocol: none - -fix(metadata-protocol): a flow draft's verdict says when a connector step cannot dispatch - -The publish's build probe `flow_connector_action_unresolved` warns, after a flow is published, that a `connector_action` step names a connector or action this environment cannot dispatch, so every run that reaches the step fails. The draft verdict (`draftPublishJudgement`, read by Studio's draft review and by the MCP draft tools' `verdict.advisories`) now says the same thing before Publish is pressed: one advisory per such step, rule `flow_connector_action_unresolved`, `severity: 'warning'`, located at the step (`flows[0].nodes[N].connectorConfig`, which the draft read serves as `nodes.N.connectorConfig`), with the probe's own `message`, its `fix` as the `hint`, and its user sentence in the read's language. - -It is never a refusal: a draft with such a step still saves, reads valid, and publishes, as before. The publish gate's own answer is unchanged, and the build probe reports exactly what it reported before; both doors now ask one shared lookup (`unresolvedConnectorSteps`). A host without an automation service, or one without the connector lookups, judges nothing, as the probe does. diff --git a/.changeset/35258-seed-reference-repair-by-mode.md b/.changeset/35258-seed-reference-repair-by-mode.md deleted file mode 100644 index 7be90e7005d..00000000000 --- a/.changeset/35258-seed-reference-repair-by-mode.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@objectstack/metadata-protocol': patch ---- - -fix(metadata-protocol): the `seed_reference_unresolved` build probe names a repair a republish actually reaches, and judges each object once - -Clause-②: no -Metadata-protocol: none - -The probe told the author to correct the seed and republish under every seed mode. Under the default `mode: 'ignore'` a republish leaves a row it finds again as it is, so that repair changed nothing, and the next receipt came back clean because a matched row is not judged under `ignore`. The finding's `fix` and its `userMessage` (every platform locale) now name the repair for the mode: correct the seed when every seed of the object writes the column back on a replay (`upsert` or `update`, the column carried by every record, not `applyOn: 'create'`); when only some seeds of the object write it back, correct it in every seed and also on the stored rows (or delete them and republish), since the receipt cannot tell which seed landed which row; otherwise correct, clear or delete the stored rows, or declare `mode: 'upsert'` where that alone makes the replay write the column. Every repair but the seed's says the next receipt reads clean until it is done. The sentence takes a new `cause` (`seed`, `mixed`, `mode`, `stored`). - -`seedApplied.landed` is one entry per object for every seed of it, so the probe now judges per object: one finding per object and reference column, however many seeds the object has. Rows the publish created are always judged; a row a seed key matched is judged only when every published seed of the object declares `upsert` or `update`, and only in a column every one of those seeds writes back onto a matched row. Before, two seeds of one object reported the same value twice, and a row only an `ignore` seed matched was judged under the other seed's mode. - -`rollup_never_computed` says "of one organization" only when the pass was split by organization, and its sentence no longer claims "every" parent: the verdict is over the sampled parents. diff --git a/.changeset/35263-compact-related-row-label.md b/.changeset/35263-compact-related-row-label.md deleted file mode 100644 index cf6672493e4..00000000000 --- a/.changeset/35263-compact-related-row-label.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/plugin-detail': patch ---- - -fix(plugin-detail): a record page's compact related card labels its rows from the list's columns when those columns leave the child's name out - -Clause-②: no -Metadata-protocol: none - -A compact related card in the record page's right column labelled every row by the child's record title, so a line item named by a stored copy of its product's title read the product page's own name on every row, even when the relationship declared the columns that tell the lines apart (`relatedListColumns: [opportunity, quantity, ...]`). When the related list declares columns and they leave the child's name field out, the compact row is now labelled from the first of those columns that is a lookup to another record, the principal may read and the block does not redact; the card still asks the server for that one column and nothing more. A list with no declared columns, columns that include the name, no readable lookup among them, or a template title (`titleFormat`) keeps the record title, and a child named by the key back to the page keeps the rule it had. diff --git a/.changeset/35276-composer-accept-tokens.md b/.changeset/35276-composer-accept-tokens.md deleted file mode 100644 index b50d151ed4c..00000000000 --- a/.changeset/35276-composer-accept-tokens.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@object-ui/plugin-chatbot': patch ---- - -fix(plugin-chatbot): the chat composer's accept list reads the HTML `accept` grammar, so a picked CSV, PDF or spreadsheet attaches, and a file of a refused type is named to the user - -Clause-②: no -Metadata-protocol: none - -The vendored `PromptInput` compared every `accept` token with the file's MIME type, so the extension tokens of `ChatbotEnhanced`'s default list (`.pdf`, `.csv`, `.xlsx`, …) never matched: a picked CSV or PDF did not attach, and the refusal reached only `console.warn`. A token is now read the way the file picker reads it: `.ext` matches the end of the file name, `type/*` matches the MIME prefix, any other token matches the MIME type exactly, all case-insensitive. - -A file that still fails is shown to the user: `ChatbotEnhanced` names it, with the accepted list, in the same notice above the composer that names an over-size file, in the user's language (the existing pack sentence `fields.file.typeNotAccepted`; no new key). When one pick refuses files for type and for size, the notice names both. - -`PromptInput` now reports every type-refused file of a pick through `onError` with `code: 'accept'` and the refused files in `files`. Before, it reported only a pick where every file was refused, without `files`; a pick that mixed types attached the matching files and dropped the rest with no report. An `onError` handler that ignores `files` sees one more call, for a mixed pick, with the same `code`. diff --git a/.changeset/35280-about-version.md b/.changeset/35280-about-version.md deleted file mode 100644 index d4fc06b41c0..00000000000 --- a/.changeset/35280-about-version.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -fix(console): the About dialog names the ObjectStack version first, then the console build - -Clause-②: no -Metadata-protocol: none - -Help → About showed one row, the console build (a git short sha), and nowhere the ObjectStack version. The dialog now opens on an **ObjectStack version** row filled with exactly the `version` the server's discovery document answers (an operator's `OS_RUNTIME_VERSION` stamp where one is set), read through the shell's adapter from the discovery document the console already holds, so opening it sends no new request. **Console build** stays as the second row, so a deployment can still be traced to a commit. While the read is in flight the version row says it is loading; when discovery cannot be read or names no version, it says so in words ("Unknown version (the server did not report one)"), never an empty field. - -New locale keys `help.aboutVersion` and `help.aboutVersionUnknown` in all eleven packs, and `help.aboutDescription` now names both rows. No props or exports change. diff --git a/.changeset/35284-ui-router-action-suffix.md b/.changeset/35284-ui-router-action-suffix.md deleted file mode 100644 index a6ebdd9193c..00000000000 --- a/.changeset/35284-ui-router-action-suffix.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -docs(skills): the objectstack-ui router names action files by the suffix the platform writes - -Clause-②: no -Metadata-protocol: none - -The Actions row of the `objectstack-ui` routing table pointed at `src/actions/*.actions.ts`. The metadata type registry declares `**/*.action.ts` for actions and `os generate action` writes `src/actions/NAME.action.ts`, so an agent reading a project's actions by that glob missed every generated file. The row now names `src/actions/*.action.ts` first and `*.actions.ts` second: a project loads its actions through the barrel its `objectstack.config.ts` imports, so a plural file the barrel names loads as well. - -Trap 3 keeps its pointer to the Dashboards rule and drops the list of widgets, datasets and charts after it, which the routing table already sends to that rule. diff --git a/.changeset/35285-platform-declared-capability-boot.md b/.changeset/35285-platform-declared-capability-boot.md deleted file mode 100644 index 33d81d9cead..00000000000 --- a/.changeset/35285-platform-declared-capability-boot.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -docs(skills): `objectstack-platform` says which declared capabilities fail the boot and which only warn - -Clause-②: no -Metadata-protocol: none - -The "Declaring is a demand" rule taught that any capability an app declares in `requires` with its provider package absent is a hard boot error. `os serve` does that for the tokens of the provider table and for `ai` / `ai-studio`. A declared enterprise or cloud token (`hierarchy-security`, `ai-seat`, `governance`, `audit-compliance`, `access-policy-console`) with no provider only prints a warning and the boot goes on; for `hierarchy-security` the hierarchy-relative scopes then fall back to owner-only. The rule now says so, so an agent no longer reads a clean boot as proof that those scopes are enforced, nor tells a user the app will refuse to start when it starts with narrower visibility. - -Two restatements in the same file were cut to pay for the sentence. diff --git a/.changeset/35287-objectql-face-order-cut.md b/.changeset/35287-objectql-face-order-cut.md deleted file mode 100644 index bdc936723fa..00000000000 --- a/.changeset/35287-objectql-face-order-cut.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@objectstack/objectql': patch -'@objectstack/service-analytics': patch ---- - -fix(objectql,service-analytics): `query_dataset`'s ObjectQL face orders and cuts a top-N in the database instead of reading every group - -Clause-②: yes -Metadata-protocol: none - -A top-N (`order` with a `limit`, optionally an `offset`) on the analytics ObjectQL face — date-bucketed queries, `$field` filters, drivers without raw SQL — used to read every group and cut in memory. On a driver that compiles the engine's order-and-cut (the SQL driver family: `driver-sql`, the WASM SQLite driver, Turso's local and replica faces) the face now hands the engine its order and `offset + limit`, the database orders, cuts and counts in one statement, and only the cut rows are read. `totalGroups` stays the count of every group, taken from that statement. - -Visible change: a text-ordered top-N on such a driver now returns the database's choice of groups — its collation, NULL last in both directions — the same as the native SQL face and `aggregate_records`, instead of the in-memory comparator's (`localeCompare`, `''` read as empty). - -Where the engine cannot serve the cut — the in-memory driver, MongoDB, OData, Turso's remote face, a date bucket or reference timezone the driver does not compile, a measure filter it does not evaluate — the face reads every group and cuts in memory as before, and no refusal reaches the caller. A select or lookup dimension ordered by its display label is still cut in memory, by label. - -`@objectstack/objectql`: an `AGGREGATE_ORDER_CUT` request may set `declinable: true`; where the cut cannot be served the engine then reads nothing, answers `[]`, leaves `outcome` unset and records the reason on the request's new `declined` slot instead of refusing `INVALID_QUERY` / 400. Without the flag nothing changes: `aggregate_records` keeps its refusal, and `AggregateOrderCutOutcome` is unchanged. diff --git a/.changeset/35293-row-disabledwhen-reason.md b/.changeset/35293-row-disabledwhen-reason.md deleted file mode 100644 index 289f8d79072..00000000000 --- a/.changeset/35293-row-disabledwhen-reason.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/components': patch ---- - -fix(components): a list row's Edit or Delete greyed by `userActions.*.disabledWhen` says why - -Clause-②: no -Metadata-protocol: none - -When an object's `userActions.edit.disabledWhen` (or `delete.disabledWhen`) held on a row, the data-table's row menu greyed Edit (or Delete) and said nothing about why. The item now gives the generic reason the record page gives for the same verdict ("Not available for this record", in every shipped language) as a visible second line under its label and as its accessible description; its accessible name stays the label. An item that is on, with no predicate or with a predicate that does not hold, gives no reason, as before. diff --git a/.changeset/35303-ai-chat-seed-warn-pack-sentence.md b/.changeset/35303-ai-chat-seed-warn-pack-sentence.md deleted file mode 100644 index a59cf50625b..00000000000 --- a/.changeset/35303-ai-chat-seed-warn-pack-sentence.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(console): the AI chat page's publish warning about failed sample data shows the pack's sentence, never the seed loader's text - -Clause-②: no -Metadata-protocol: none - -Publishing from the AI chat page warns "Published, but some sample data failed to load." when a seed fails to load. The detail under that title printed the seed loader's own engine text (for example "seed apply stopped at the seed for object …"), and when the loader reported only per-record rows it printed "[object Object]". It now shows the sentence the chat's publish-health line already shows for the same failure (`chatbot.build.health.seedFailed`, from the locale pack), the same sentence *Publish all* shows. The loader's text and its error rows go to the browser console (`console.warn`), never the toast. - -No locale keys, props or exports change. diff --git a/.changeset/35306-lookup-target-single-read.md b/.changeset/35306-lookup-target-single-read.md deleted file mode 100644 index b0229743fb1..00000000000 --- a/.changeset/35306-lookup-target-single-read.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/console': patch ---- - -fix(console): an object the presence read served is not read again by name - -Clause-②: no -Metadata-protocol: none - -A list page whose object has a lookup to an object outside the app's package (on the showcase, `sys_user`) asked for that object twice: first in the `GET /api/v1/meta/object?names=` presence read, which already answers with the object's definition, and then by name (`GET /api/v1/meta/object/sys_user`) about 0.7 s later. The by-name read now takes the definition from the presence read when that read served it, so the lookup target costs one request. The same holds for the objects an app's entries require (`requiresObject`) and a dashboard's widget objects, which were also asked by name after their presence read had served them. - -What does not change: a name the presence read left out is still asked by name, so an object that is refused (`OBJECT_PACKAGE_DISABLED`) is still told apart from one that does not exist. A name the presence read has not answered yet is still asked by name. The draft preview still reads every object by name. The definition a scope holds is the same document the by-name read returned. No metadata key, value or default changes. diff --git a/.changeset/35307-search-recipient-title.md b/.changeset/35307-search-recipient-title.md deleted file mode 100644 index f977e477d35..00000000000 --- a/.changeset/35307-search-recipient-title.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/metadata-protocol': patch ---- - -fix(metadata-protocol): a record-share hit in the ⌘K palette and global search is titled by the recipient, not by the raw recipient id - -Clause-②: no -Metadata-protocol: none - -`sys_record_share` is titled by `recipient_id`, a text column holding a principal id whose kind `recipient_type` names. Search followed only a reference-typed title pointer to its target's title, so every record-share hit read as a bare user id. - -`searchAll` now reads the declaration the console's recipient face reads, a text title pointer with `widget: 'recipient-picker'` and `dependsOn: ['recipient_type']`, and titles the hit by the directory record its kind names: a `user` recipient by its `sys_user` title, a `team` by `sys_team`, a `business_unit` or `unit_and_subordinates` recipient by its `sys_business_unit` title. Each directory is read once per swept object, as the searcher, under the same gates as a reference title: a reader refused the directory object, the row or its title column keeps the bare id, and a directory read that fails fails the search. A `group` or `position` recipient keeps its stored value, as it does in the console. The hit's wire shape is unchanged: `record` still carries the stored id. diff --git a/.changeset/35314-record-details-field-visiblewhen.md b/.changeset/35314-record-details-field-visiblewhen.md deleted file mode 100644 index 4e91d01731b..00000000000 --- a/.changeset/35314-record-details-field-visiblewhen.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/plugin-detail': patch ---- - -fix(plugin-detail): a record page no longer draws a field whose own `visibleWhen` is false for the record - -Clause-②: no -Metadata-protocol: none - -`record:details` now honours a field's object-level `visibleWhen` (`Field.visibleWhen`: "field is shown only when TRUE") on every field it draws, the way the edit form does. The synthesized default record page used to draw such a field, label and value, on every record, so the page and the form disagreed about the same record. It applies to every body `record:details` draws: a `{ group }` reference, an enumerated section (the default page's ungrouped bucket, its split for an object with no `fieldGroups`, or an authored page's section) and a flat `fields` list. - -The verdict is the form's own: the same evaluator call (`resolveFieldRuleState`), over the record the page shows (bound as `record` and as `previous`) and the host predicate scope (`current_user`). A field predicate that cannot be evaluated still shows the field and warns once in the console, as on the form (ADR-0137 D3). That is the opposite of a field GROUP's `visibleWhen`, which hides the group on a fault. A section whose every field is hidden this way draws no heading. Display only: the record API still returns the field. diff --git a/.changeset/35315-change-owner-cascade.md b/.changeset/35315-change-owner-cascade.md deleted file mode 100644 index 4c92f350ffa..00000000000 --- a/.changeset/35315-change-owner-cascade.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/core': minor -'@objectstack/rest': minor -'@objectstack/client': minor -'@objectstack/platform-objects': patch -'@objectstack/driver-sql': patch -'@objectstack/metadata-core': patch -'@object-ui/app-shell': minor -'@object-ui/i18n': minor ---- - -feat: Change Owner cascade — a relationship declares `transferBehavior: 'cascade'`, and the Change Owner dialog offers it as a tick - -Clause-②: yes (widening) -Metadata-protocol: added -Skills-docs: follow-up #36713 - -A Change Owner can now move related records along with the record, relationship by relationship. - -- **The declaration.** A `lookup` or `master_detail` field takes `transferBehavior: 'none' | 'cascade'`, beside `deleteBehavior` (omitted means `'none'`). `'cascade'` on the child's reference field to a parent says: when the parent's owner changes, the child records that point at it and are owned by the parent's previous owner may move to the new owner too. No other child records move; there is no filter key. -- **Refused where it could never act.** The key is refused on any other field type, `'cascade'` is refused on a reference to a `sys_` object and on a multi-value reference (`multiple: true`), and `'cascade'` is refused on a field of an object that does not offer Change Owner itself: one that is not structurally eligible (no reassignable owner), a `controlled_by_parent` detail (its access already follows its master), or one whose `userActions.transfer` is off. Each refusal names the field and the fix. -- **The request.** `POST /api/v1/data/:object/:id/change-owner` and `POST /api/v1/data/:object/change-owner` take an optional `cascade: [{ object, field }]` naming the relationships to move along (`data.changeOwner` / `data.changeOwnerMany` in `@objectstack/client`). A relationship that does not declare `'cascade'`, or whose child does not offer Change Owner, is refused `400 VALIDATION_ERROR` before anything is written; so is a cascade with a queue target. Each cascaded record is updated as the caller, so it needs the caller's own transfer grant on the child object. Each relationship's outcome in the answer's `cascade[]` lists every record the caller's write refused, with its id, code and sentence: a related record whose `owner_id` is locked on it (read-only, or under a `readonlyWhen` that holds) is refused `FIELD_NOT_ACCESSIBLE` and keeps its owner, as the record itself would be, while the record's own move stands. One call moves at most 500 related records; the records past that limit are counted in `remaining`, still with the previous owner, not listed. When a relationship's records could not be read, its outcome carries `readFailure` and none of them moved. -- **The candidates.** `GET /api/v1/data/:object/change-owner/cascades` (`data.changeOwnerCascades`) lists the relationships declared to an object whose child offers Change Owner. A child whose declared API exposure does not serve `update` is left out, and so is a child of a disabled package. -- **The Studio.** The field form and the object form's field rows offer `transferBehavior` beside `deleteBehavior`, on `lookup` and `master_detail` fields; the row's label and help text ship in the metadata-forms locale packs of `@objectstack/platform-objects`. -- **The dialog.** For a person target, the Change Owner dialog lists those relationships on which the explain engine allows the caller the `transfer` operation, one tick each, sends the ticked ones, and draws each relationship's outcome, every record it did not move included. - -A plain `owner_id` update is unchanged: the declaration is read only by the Change Owner action. diff --git a/.changeset/35316-no-approver-remedy.md b/.changeset/35316-no-approver-remedy.md deleted file mode 100644 index 32c062dcdaa..00000000000 --- a/.changeset/35316-no-approver-remedy.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@objectstack/plugin-approvals': patch ---- - -Clause-②: no -Metadata-protocol: none - -fix(approvals): a request no one can approve tells its submitter and names the remedy - -When an approval step resolves to no one who can decide it and no administrator other than the submitter can take it (an organization of one whose step sets `excludeSubmitter` is the common case), the request opened silently: no one was notified and the submitter saw only "Submitted". It now writes a note on its timeline, rendered in the reader's language, and tells the submitter under the `approval.comment` topic: "No one else can approve this request yet. An organization administrator must add a member who can approve it, then reassign the request to them." When the slate kept an unstaffed position, the note names it: "…must add a member who holds position 'legal'; that member can then decide it." - -The submitter still cannot approve their own request, not even through the administrator override. When no one else is on the slate, the two refusals of that approval now end with the same remedy instead of "Another approver on the step decides it" / "An approver on the step decides it"; with another approver on the slate the text is unchanged. The `excludeSubmitter` note for that route no longer says a privileged override can decide it: it reads "…because this step sets excludeSubmitter, and no one else could take it." - -A `platform_admin` approver step's slot is now labelled "Platform administrators" (in the reader's language on the approvals door, `pending_approver_names`; in English on the stored `pending_approver_labels`) instead of its raw address `platform_admin:*`. The approvals guide now says that on a deployment where no one holds platform-administrator standing such a step waits with no warning. diff --git a/.changeset/35317-gantt-refused-read-no-access.md b/.changeset/35317-gantt-refused-read-no-access.md deleted file mode 100644 index 4d069a3cd50..00000000000 --- a/.changeset/35317-gantt-refused-read-no-access.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/plugin-gantt': patch ---- - -fix(plugin-gantt): a refused task read draws the no-access state, not the raw error - -Clause-②: no -Metadata-protocol: none - -A reader who may open a record but is not granted the records its Gantt chart reads (for example a project page whose task object the role cannot read) saw the transport's own string where the chart would be, untranslated: `Error: ApiDataSource: HTTP 403 Forbidden — {…}`. The chart now classifies a failed load with the shared load-error verdict the list page and the related list use, and for a permission refusal (a 403, or a `PERMISSION_DENIED` / `FORBIDDEN` code) draws the calm no-access state those surfaces draw: a neutral status panel with the shared `list.loadErrorForbiddenTitle` / `list.loadErrorForbiddenMessage` sentence in the reader's language, and none of the server's text. Every other failure (a 500, a dropped connection) keeps the existing error screen. diff --git a/.changeset/35319-automations-rail-flow-labels.md b/.changeset/35319-automations-rail-flow-labels.md deleted file mode 100644 index cfddf31b9d6..00000000000 --- a/.changeset/35319-automations-rail-flow-labels.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(app-shell): the Studio Automations list names each flow by the package's translated label - -Clause-②: no -Metadata-protocol: none - -A package can translate a flow's label (`flows..label`). The flow designer already showed that translation for the open flow, but the Automations list beside it still showed every flow by its authored English label, so a zh-CN admin looked for a flow under a name the list did not use. Each list row, and its hover title, now shows the same translated label the designer header shows, read through the same helper in the viewer's language. A flow the package does not translate keeps its authored label, as before. The list search matches the label a row shows, and still matches the authored label and the machine name. diff --git a/.changeset/35329-delete-loser-not-found.md b/.changeset/35329-delete-loser-not-found.md deleted file mode 100644 index d2dbca75104..00000000000 --- a/.changeset/35329-delete-loser-not-found.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -'@objectstack/objectql': patch ---- - -fix(objectql)!: a by-id delete whose driver removes nothing after the row was read answers RECORD_NOT_FOUND and runs no after-delete work - -Clause-②: no (narrowing) -Metadata-protocol: none - - - -**BREAKING** for a caller of the engine's by-id delete (`engine.delete(object, { where: { id } })`, a hook's `ctx.api`, an action handler, a flow `delete_record` step) whose row is removed by another writer after this delete read it and before its own driver call. This happens when two deletes of one row run at once on a store whose writers do not queue behind each other: for example PostgreSQL for any object, and SQLite for an object with no metadata `beforeDelete` hook and no blocking metadata `afterDelete` hook. On SQLite such a hook makes the second delete wait for the first, and the second then finds no row when it reads it. - -- FROM: the loser's driver answered `false` (it removed nothing), and the engine still ran every after-delete step for it: the `afterDelete` hooks, the parent roll-up summary recompute and the `data.record.deleted` realtime event. The loser's answer was `false`. On SQLite, with such a metadata hook the loser waited for the winner and answered `RECORD_NOT_FOUND`, so the answer depended on the hook binding. -- TO: the loser answers `RECORD_NOT_FOUND` (404), the error a by-id delete already gives for an id that names no row, and none of those steps runs for it. The winner's delete is unchanged and runs each step once. A recycle-bin entry the loser wrote is still withdrawn, as before. When the loser's delete runs in a transaction (its object is referenced by a cascading relation), the cascade it walked rolls back with it. -- The same answer applies when the row is removed by the delete's own `beforeDelete` hook (a hook that deletes the row it is asked about through `ctx.api`): that delete answered `false` and now answers `RECORD_NOT_FOUND`. -- A child delete that a parent's cascade issued is the exception: when its driver answers `false`, the dependent the cascade was sent to remove is already gone, so that child delete still answers `false`, runs none of the after-delete steps, and the cascade goes on; the parent's delete completes, as it did before. A child that was already gone when its own delete read it still stops the cascade with `RECORD_NOT_FOUND`, unchanged. - -The REST and batch delete routes, and the own-row delete route, already answered 404 for this case; their code and status do not change. On the own-row delete route the loser's `RECORD_NOT_FOUND` is now raised by the engine, so its `userMessage` is built from the route's system context, which carries no locale, where the route used to build it from the caller's. - -The fix for a caller: treat `RECORD_NOT_FOUND` from a by-id delete as "the row is already gone", as for any id that names no row. The error this change adds always names the row the caller addressed, since a cascade's child delete no longer raises it; a cascade can still stop on a dependent with `RECORD_NOT_FOUND`, as before; the addressed row is then kept. A caller that tested the answer for `false` reads the error's `code` instead. diff --git a/.changeset/35334-grid-row-disabledwhen-reason.md b/.changeset/35334-grid-row-disabledwhen-reason.md deleted file mode 100644 index 198b606432a..00000000000 --- a/.changeset/35334-grid-row-disabledwhen-reason.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/plugin-grid': patch ---- - -fix(plugin-grid): a grid row's Edit or Delete greyed by `userActions.*.disabledWhen` says why - -Clause-②: no -Metadata-protocol: none - -When an object's `userActions.edit.disabledWhen` (or `delete.disabledWhen`) held on a row, the list grid's row menu greyed Edit (or Delete) and said nothing about why. The item now gives the generic reason the record page and the data-table row give for the same verdict ("Not available for this record", in every shipped language) as a visible second line under its label and as its accessible description; its accessible name stays the label. An item that is on, with no predicate or with a predicate that does not hold, gives no reason, as before; neither does an item greyed only while its record-grained permission verdict is still loading. diff --git a/.changeset/35341-sqlite-retyped-boolean-text-column.md b/.changeset/35341-sqlite-retyped-boolean-text-column.md deleted file mode 100644 index da7094ec65a..00000000000 --- a/.changeset/35341-sqlite-retyped-boolean-text-column.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@objectstack/driver-sql': patch ---- - -fix(driver-sql): on SQLite, a boolean field retyped from text stores `1` / `0`, so a saved `false` no longer reads as `true` - -Clause-②: no -Metadata-protocol: none - -On SQLite, a field whose type changed from `text` to `boolean` keeps its TEXT column. Every write of that field (create, update, upsert, bulk create, bulk update, update-many) stored `false` as the text `'0.0'` and `true` as `'1.0'`, because the JS number a boolean was bound as reached SQLite as a REAL. Reads then answered `true` for both, `distinct()` and group keys counted every row as `true`, and an `= false` filter disagreed with what the rows showed. - -- **Writes.** A declared scalar `boolean` / `toggle` value is now bound as the text `'1'` / `'0'`. A column the driver created still stores the integer `1` / `0`, so its stored form does not change; a retyped TEXT column stores `'1'` / `'0'`, which reads back as the boolean that was written. -- **Filters.** A boolean comparand on such a field is bound the same way, so `= false`, `= true` and `in [false]` select exactly the rows that read as that boolean. -- **Existing rows.** The boot's boolean storage convergence now also rewrites the `'1.0'` / `'0.0'` that earlier writes left, the same as it rewrites `'true'` / `'false'`; `os migrate plan` counts them under `normalize_boolean_storage`. Nothing to run by hand: the next start converges them. diff --git a/.changeset/35344-handover-detail-owner.md b/.changeset/35344-handover-detail-owner.md deleted file mode 100644 index 0c61460db79..00000000000 --- a/.changeset/35344-handover-detail-owner.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@objectstack/core': patch ---- - -fix(core)!: the offboarding hand-over no longer moves the owner of a `controlled_by_parent` detail record - -Clause-②: no (narrowing) — narrowed: `GET /api/v1/security/users/USER_ID/assigned-work` no longer lists the `owner_id` of an object whose `sharingModel` is `controlled_by_parent`, and `POST /api/v1/security/users/USER_ID/assigned-work/transfer` no longer moves it, with or without `objects` naming the detail. `userAssignedWorkFields` of `@objectstack/core` leaves that field out of its roster. -Metadata-protocol: none - - - -**BREAKING** for an administrator handing a banned user's work to someone else. On a detail object the owner records who did the work — the person on a timesheet, the spender on an expense line, the voter on a vote — not who holds it. The hand-over used to move it with everything else, so the successor appeared to have logged the leaver's hours and spent the leaver's money, and approvals and reports read wrong. Those owners now stay where they are, are not counted in the assigned-work answer, and are not part of `remaining`. - -Unchanged: the detail's own user fields (an approver, an assignee) are still counted and moved, and the owner of every object whose `sharingModel` is `private`, `public_read`, `public_read_write` or unset is still counted and moved. A detail row that names its master is reached through that master (ADR-0055), so hand over the master record to give the successor that row's access. - -One row class has no master to hand over: a detail row whose master reference is empty, on a detail whose master is optional (`required: false`, ADR-0055 as amended). Its owner reads and writes it, beside View All / Modify All on the detail. Its owner is not counted or moved either, so after the ban only View All / Modify All holders reach it. To give such rows to someone else, a holder of Modify All on the detail filters the detail by owner and edits the owner by hand. diff --git a/.changeset/35345-skills-platform-catalog.md b/.changeset/35345-skills-platform-catalog.md deleted file mode 100644 index ccfc1a46466..00000000000 --- a/.changeset/35345-skills-platform-catalog.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -docs(skills): a generated platform catalog, and `objectstack-project` asks "does the platform ship it?" before any new object, field or flow - -Clause-②: no -Metadata-protocol: none - -`objectstack-project` gains `references/platform-catalog.md`, generated from `@objectstack/spec`: the platform objects an app would otherwise build (users, attachments, comments, the audit trail, notifications, mail, exchange rates, imports, approvals, sharing, queues, webhooks, settings), each with what it replaces and how the app reaches it; the three value domains and the field names that should declare them; every `requires` capability switch with what it mounts; the master data that stays with each app; and a short Planned section whose rows are marked not available and link to their contract. - -Its §0 asks a third question: check the catalog before adding an object, a field or a flow; use what the platform ships; when it is absent and a second app would copy it, file a platform card and build the app's own meanwhile, marked `// PLATFORM-CANDIDATE: `. §5's bump sweep now retires those markers beside the `PLATFORM-GAP` tests. A defect (§3) is still never worked around; the new question is about a missing capability. - -`objectstack-data`'s currency paragraph now teaches `valueDomain` for a time zone (`iana_time_zone`) and a country (`iso_3166_alpha2`) beside the currency code. - -Six new eval cases (an attachments table, a business-hours calendar, a change-history table, a free-text unit, a country and time zone, an exchange-rate table) expect the platform object, the value domain, or a platform card with the marker. diff --git a/.changeset/35346-value-domain-name-hint.md b/.changeset/35346-value-domain-name-hint.md deleted file mode 100644 index 21de975b05a..00000000000 --- a/.changeset/35346-value-domain-name-hint.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@objectstack/spec': patch -'@objectstack/lint': patch ---- - -feat(lint): warn when a text field named like a currency, country or time zone code declares no valueDomain - -Clause-②: yes -Metadata-protocol: none - -`os lint` gains `field/missing-value-domain`, a warning. It fires on a `text` field that declares no `valueDomain` and whose whole name, compared case-insensitively, reads as a standard code: `currency` or `currency_code` (fix: `valueDomain: 'iso_4217_currency'`), `country` or `country_code` (`iso_3166_alpha2`), `time_zone`, `timezone` or `tz` (`iana_time_zone`). The fix line names the domain to add. A field that already declares a domain, a `select` field, any other type and any other name are not judged. It is a warning only: `os validate`, `os build` and the metadata save door are unchanged. Like every warning, it makes `os lint --strict` exit 1; there is no per-rule switch, so a strict run fails until the field declares the domain. Declaring it does not re-read rows that already hold free text; only a later write that carries a non-member is refused. `os explain field/missing-value-domain` gives the reasoning. - -New exports: `VALUE_DOMAIN_FIELD_NAMES` from `@objectstack/spec/shared`, the one word list (domain → field names) the rule reads, and `FIELD_MISSING_VALUE_DOMAIN` from `@objectstack/lint`. The word list adds no member to `ValueDomainSchema`. diff --git a/.changeset/35353-cube-measure-formula-remedy.md b/.changeset/35353-cube-measure-formula-remedy.md deleted file mode 100644 index f1c831d959f..00000000000 --- a/.changeset/35353-cube-measure-formula-remedy.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/service-analytics': patch ---- - -fix(service-analytics): the cube door refuses a total over a formula with the stored-field remedy, not a row count - -Clause-②: no -Metadata-protocol: none - -A cube measure that takes the `sum`, `avg`, `min` or `max` of a `formula` field (a configured cube's measure, or an inferred cube's suffix measure such as `expected_sum`) is still refused `INVALID_FIELD` / 400 before anything is read. Its message no longer ends "aggregate a field of one of those types, or count the rows with count": after the accepted set it now prints the spec's one prescription for a virtual field, `VIRTUAL_FIELD_AGGREGATE_REMEDY` ("Computed on read, the field stores no value: make it a field of its return type with the same `expression` (computed and stored on write) and aggregate that. Counting records is a different question."), the sentence the dataset compiler and the engine's aggregate door already print for the same pair. A count in place of a total is a plausible wrong number. - -Which measures are refused, the error code, the status and the attached `member` / `field` / `object` are unchanged. A refused pair over a stored type (for example `sum` over `text`) keeps its wording. diff --git a/.changeset/35355-working-calendar-objects-setup.md b/.changeset/35355-working-calendar-objects-setup.md deleted file mode 100644 index 1576e490e06..00000000000 --- a/.changeset/35355-working-calendar-objects-setup.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -'@objectstack/platform-objects': minor -'@objectstack/spec': patch -'@objectstack/cli': patch -'@objectstack/objectql': patch -'@object-ui/plugin-form': patch ---- - -feat: working calendars in Setup — `sys_work_calendar` and `sys_work_calendar_exception` (ADR-0157, part two of two) - -Clause-②: yes (widening) -Metadata-protocol: added - -Not released alone; pair #35641/#35642. The first half, #35641 (the calendar service and its arithmetic), is merged; this half ships in the same release as it, with the working-day formula functions (#35356) and the approval escalation's working-time clock (#35357), ADR-0157 D4. - -- **Two platform objects** (`@objectstack/platform-objects`). `sys_work_calendar` holds a calendar's `code` (unique per organization, snake_case), `name`, required IANA `timezone`, `is_default` (one per organization), the required `maintained_from` .. `maintained_through` span its holidays are entered for, and one period column per weekday (`monday_periods` … `sunday_periods`, `HH:mm-HH:mm` periods separated by commas, blank for a day off). `sys_work_calendar_exception` holds dated overrides: `calendar`, `date`, `kind` (`off`, no periods; `on`, that date's full periods), `periods` and `note`, one row per calendar and date. Both are organization data an administrator keeps, audited, like `sys_exchange_rate`; a package may seed rows under the existing seed contract and name a calendar by code. Their names join the platform object name list (`@objectstack/spec`). -- **Setup.** Two entries under Exchange Rates: Working Calendars (with a Needs Maintenance list of every calendar whose maintained span ends within 60 days) and Calendar Exceptions, whose list page imports a year of holidays from a file; the `calendar` column names a calendar by its code or name. Labels and help text ship in all eleven locales. -- **Time zone on create** (`@object-ui/plugin-form`, ADR-0157 D7). A create form opens a required time-zone field that declares no default (`valueDomain: 'iana_time_zone'`) on the organization's time zone, as it opens a record-currency field on the organization's currency; the user can change it. A create that leaves the calendar's `timezone` out takes the same zone on the server. An optional time-zone field, where blank means "take the parent's", is not prefilled. -- **Refusal wording** (`@objectstack/objectql`). The refusal of a create that marks a calendar the default in another organization no longer assumes the writer is working in an organization. -- **A calendar stays in its organization** (`@objectstack/objectql`). An update that changes the organization of a calendar or of an exception date is refused with `400 VALIDATION_FAILED` on `organization_id` (`invalid_value`), before any read and for every writer, system writes included. To have a calendar in another organization, create it there. An edit that leaves `organization_id` out or repeats the stored one is judged as before; a predicate update is judged row by row, and one matched row whose organization would change refuses it. -- **An exception date names a calendar of its own organization** (`@objectstack/objectql`). On a create, and on an update that carries `calendar`, the calendar is read by id in the exception's organization; when it is not there, the write is refused with `400 VALIDATION_FAILED` on `calendar` (`invalid_value`). A calendar of another organization and an id that names no calendar get the same refusal, word for word. The import door is judged the same way, row by row. -- **Organization ownership** (`@objectstack/cli`). Both objects are organization-owned; an exception reaches its organization through its calendar. diff --git a/.changeset/35355-working-calendar-service.md b/.changeset/35355-working-calendar-service.md deleted file mode 100644 index 7a695c8e35e..00000000000 --- a/.changeset/35355-working-calendar-service.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@objectstack/spec': patch -'@objectstack/formula': patch -'@objectstack/objectql': patch -'@objectstack/core': patch ---- - -feat: the working-calendar service, its arithmetic and its refusal codes (ADR-0157, part one of two) - -Clause-②: yes (widening) -Metadata-protocol: none - -Not released alone; pair #35641/#35642. This ships in the same release as #35642 (the calendar objects and Setup pages, the second half of this change), the working-day formula functions (#35356) and the approval escalation's working-time clock (#35357), ADR-0157 D4. - -- **The arithmetic** (`@objectstack/formula`). `isWorkingTime`, `addWorkingDays`, `workingDaysBetween` and `addWorkingHours` compute over a resolved calendar and its dated exceptions, as pure functions a formula can call synchronously, beside `parseWorkPeriods` (`HH:mm-HH:mm` periods; a period that crosses midnight is refused, `24:00` is a legal end), `buildWorkCalendar` (a frozen calendar) and the three error classes. A computation that needs a date outside the calendar's maintained span is refused rather than read from the weekly pattern. -- **The types, constants and time-zone rule** (`@objectstack/spec`). `WorkCalendar` and the column and code constants are in `@objectstack/spec/data`; the service contract is `IWorkCalendarService` in `@objectstack/spec/contracts`. `zonedWallClockToUtcMs`, `wallClockToUtcMs` and `WallClockParts` move to `@objectstack/spec/data` from `@objectstack/core`, unchanged; `@objectstack/core` re-exports all three, so no import changes. -- **Three error codes** in the ADR-0112 ledger: `ERR_WORK_CALENDAR_UNRESOLVED` (no calendar by that code, no organization default, two defaults, or no organization named outside the `single` posture), `ERR_WORK_CALENDAR_NOT_MAINTAINED` and `ERR_WORK_CALENDAR_INVALID`, each a 400. -- **The calendar service** (`@objectstack/objectql`, registered as `work-calendar`). `resolve({ organizationId, calendar })` takes the named code, else the organization default, else refuses; it never falls back to wall-clock time. It reads in the organization the caller names, elevated, and caches until a calendar or exception row is written. Outside the `single` tenancy posture, a computation that names no organization is refused before any read. Until the calendar objects are registered it refuses every resolution. -- **The write door** (`@objectstack/objectql`). Once the calendar objects exist, a calendar or exception write is refused `400 VALIDATION_FAILED` when a period crosses midnight, is malformed or overlaps another, an `off` row carries periods or an `on` row carries none, `maintained_through` is before `maintained_from`, a second calendar is marked the default, or a calendar created in an organization other than the one being worked in is marked the default (create it there, or set the default by an update); a calendar created without `timezone` takes the organization's Localization time zone. The hooks take the organization from the session. diff --git a/.changeset/35356-working-day-formula-functions.md b/.changeset/35356-working-day-formula-functions.md deleted file mode 100644 index 9db7484aa90..00000000000 --- a/.changeset/35356-working-day-formula-functions.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -'@objectstack/formula': minor -'@objectstack/objectql': patch -'@objectstack/lint': patch -'@object-ui/core': patch -'@objectstack/skills': patch ---- - -feat(formula): `addWorkingDays()`, `workingDaysBetween()` and `addWorkingHours()` count with the organization's working calendar (ADR-0157 D4) - -Clause-②: yes (widening) -Metadata-protocol: added — a formula field's or a stored field's `expression` may now call `addWorkingDays(...)`, `workingDaysBetween(...)` and `addWorkingHours(...)` -Skills-docs: updated here — skills/objectstack-formula/SKILL.md teaches the three functions and eval 8 of skills/objectstack-project/evals/project-process.json exercises them (the card's order names both) - -Not released alone: it ships in the same release as the working calendar service and objects (#35355) and the approval escalation's working-time clock (#35357), ADR-0157 D4. - -- **Three formula functions** (`@objectstack/formula`). `addWorkingDays(day, n[, code])` answers the calendar day `n` working days after `day` (before it, for a negative `n`); `day` itself never counts and `0` answers `day`. `workingDaysBetween(start, end[, code])` counts the working days after `start` up to and including `end`, negative when `end` is earlier, and is the inverse of `addWorkingDays`. `addWorkingHours(start, hours[, code])` answers the instant `hours` of working time after `start`, counted as elapsed time in the calendar's time zone (D11); a start outside working time begins at the next working period. All three step over the calendar's weekends and holidays and onto its make-up working days. Without `code` a call counts with the organization's default calendar; `code` names a calendar and is written as a quoted literal. They join the advertised standard library (`CEL_STDLIB_FUNCTIONS`). -- **Where they count** (`@objectstack/objectql`). A `formula` field and a stored field's `expression` count with the record's own organization's calendars, which the engine loads through the calendar service before it evaluates them: only the calendars the expressions name, once per organization per read, from the service's cache. A formula field counts again on its next read after a calendar edit; a stored due time keeps the value of its last write. -- **When the calendar cannot answer** (D8). With no default calendar in the organization, a code the organization has no calendar for, or a count that reaches past the span the calendar is maintained for, the formula reads `null` and the server logs one line naming the object, the field and the reason. A stored field's `expression` stores blank and the write goes through; the blank stays until that record's next write, and a write made while the calendar refuses blanks a value that was valid before. Nothing counts on the weekly pattern or the wall clock instead. -- **No calendar arithmetic as a filter.** A query filter, a sharing rule's condition and every filter compiled from CEL refuse the three functions with a message that prescribes the stored due-time field (D6). -- **Build refusals** (`@objectstack/lint`). `os build` / `os validate` refuse the three functions at every expression site but a formula field's and a stored field's `expression` (validation rules, visibility, action conditions, flow conditions and values, sharing rules, a field's expression `defaultValue` and a seed value), and refuse a calendar code that is not a quoted literal, with a branch between literal calls as the way to pick a calendar per record. -- **Forms** (`@object-ui/core`). A form does not compute a formula that calls one of the three: its calendar is loaded for the server's read, never handed to the form, so the field is unservable there as on the server's write-path check. -- **Teaching** (`@objectstack/skills`). objectstack-formula documents the three functions; the platform catalog moves working-day formulas from Planned into what the platform ships; the project-process eval for business-hours SLAs now expects the functions. diff --git a/.changeset/35357-approval-escalation-working-time-clock.md b/.changeset/35357-approval-escalation-working-time-clock.md deleted file mode 100644 index 2587adeba9a..00000000000 --- a/.changeset/35357-approval-escalation-working-time-clock.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/plugin-approvals': minor -'@objectstack/lint': minor -'@object-ui/console': minor -'@object-ui/i18n': minor ---- - -feat(approvals): an escalation deadline can count working time on an organization's working calendar (`escalation.clock: 'working_time'`) - -Clause-②: yes (widening) -Metadata-protocol: added -Skills-docs: follow-up owed — skills/objectstack-automation/references/state-machines-and-approvals.md - -An approval node's `escalation` gains two optional keys (ADR-0157 D5): - -- **`clock`**: `'wall_clock'` (the default) or `'working_time'`. Under `wall_clock` nothing changes: `timeoutHours` counts elapsed hours from `created_at`, nights, weekends and holidays included, and every request already open keeps its deadline (a stored snapshot carries no `clock`). Under `working_time` the hours count only the working periods of a working calendar (`sys_work_calendar`), skipping its holidays and counting its make-up workdays: a request opened at 17:00 on a Friday with `timeoutHours: 4`, on 09:00-12:00 and 13:00-18:00 periods, escalates at 12:00 on the next working day. -- **`calendar`**: the code of the working calendar to count on. Left out, the request organization's default calendar counts. There is never a fallback to wall-clock hours. - -The approvals sweep and the request read share one deadline function. A `working_time` deadline is counted again on every sweep and every read and is never stored, so a holiday entered after a request opened moves its deadline; an escalation that already fired stays fired (single-shot, ADR-0042). When the calendar cannot count the deadline (no calendar has the code, the organization has no default, or the calendar is not maintained as far as the deadline needs), the request does not escalate, the next sweep tries again, and the request read carries a new additive field, `sla_due_refusal` (`code`, `reason` or `date`, `message`), in place of `sla_due_at`. The approvals inbox shows "Calendar can't compute" with the reason where the SLA countdown sits, in every console language. - -`@objectstack/lint` refuses a `calendar` written beside the wall clock (`approval-escalation-calendar-without-working-time`, error): nothing would read it. Whether the named calendar exists is the organization's runtime data and is never checked at publish. The Studio approval inspector offers the clock and, under working time only, the calendar. - -Not released alone: this ships in the same release as the working-calendar objects and service and the working-day formula functions (ADR-0157 D4). diff --git a/.changeset/35369-flow-refusal-brace-header.md b/.changeset/35369-flow-refusal-brace-header.md deleted file mode 100644 index 3966575a11f..00000000000 --- a/.changeset/35369-flow-refusal-brace-header.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/service-automation': patch ---- - -fix(service-automation): the "invalid expression" registration refusal names the template-braces rule only when a refusal it lists is a brace refusal - -Clause-②: no -Metadata-protocol: none - -Registering a flow whose only refused expression is not about braces — the date-text verdict on `timestamp(record.borrow_date)` over a date field, an unknown function, a `{{ }}` hole over a `$` name the engine does not bind — used to open with the ADR-0032 §1a braces sentence ("Predicates … must not wrap references in `{…}` template braces …"), telling the author about a mistake they did not make. That refusal now opens with a neutral count, `Flow 'X' has N invalid expression(s); each is refused for the reason given with it, and the flow does not register until every one is fixed:`. The braces sentence, unchanged, still heads any list that holds a brace refusal: a `{…}` brace in a CEL slot, a single-brace token in a text slot, a retired `{…}` token in a value slot, or an envelope naming the wrong dialect for its slot. - -Which flows are refused, and every refusal line listed under the header, are unchanged. diff --git a/.changeset/35375-seed-datasets-withdraw-on-uninstall.md b/.changeset/35375-seed-datasets-withdraw-on-uninstall.md deleted file mode 100644 index 248f8038617..00000000000 --- a/.changeset/35375-seed-datasets-withdraw-on-uninstall.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/cloud-connection': patch ---- - -fix(cloud-connection): an uninstall takes the package's seed datasets off the shared replay list - -Clause-②: no -Metadata-protocol: none - -Uninstalling a package through the install-local door in a running process left its entries on the shared `seed-datasets` list that per-organization seed replay reads, so every organization founded before the next restart replayed the removed package's seed sets, over objects that may no longer exist. The uninstall now merges an empty list under the package id once the running kernel has withdrawn the package (the owner-keyed replace an upgrade already uses), so the list matches the installed set without a restart. A composed bundle's entry withdraws the datasets it merged for all of its package bodies; another package's datasets are kept. An uninstall the registry refuses, or whose withdrawal from the running kernel is refused, leaves the list as it was: the package stays loaded until the restart, and its datasets with it. diff --git a/.changeset/35384-approval-labels-remainder.md b/.changeset/35384-approval-labels-remainder.md deleted file mode 100644 index 8a84f05a858..00000000000 --- a/.changeset/35384-approval-labels-remainder.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@objectstack/plugin-approvals': patch -'@objectstack/plugin-audit': patch ---- - -fix(approvals,audit): an approval's flow and position labels, and a renamed object's label in approvals and activity summaries, read as the metadata translators serve them - -Clause-②: no -Metadata-protocol: none - -In a deployment whose `i18n.sourceLocale` differs from its `i18n.defaultLocale` (an app authored in English that defaults its users to Chinese, say), the approvals door still looked up a request's flow label (`flows..label`) and a position's label (`positions..label`) through `II18nService.t()`, which falls back to the `defaultLocale` row when the reader's locale has no entry. So an `en` or `en-US` reader saw the Chinese flow name on the inbox, the request page and the generic data door's request rows, and the Chinese position name in a timeline note, where the authored text was expected. Both labels now resolve through the spec translators of their types (`translateFlow`, `translatePosition` from `@objectstack/spec/system`) over every locale the i18n service holds. They use the resolve options the metadata route builds: the reader's locale, the declared fallback chain, and the authored language (the declared `sourceLocale`, else `defaultLocale`). A reader in the authored language now reads the label as written, and every other reader reads the same row as before. - -A packaged object renamed by a code extension was named in the reader's language by the bundle's translation of its OLD label. This hit the approvals inbox, request page and object-naming refusals, and the object label inside an activity summary, where `GET /meta/object` serves the rename. Both readers now hand `translateObject` the object's served definition and its packaged base (`packagedBase`, read off the engine's registry through `getPackagedObjectBase`, the base `/meta` reads). So the rename stands in every locale, as on `/meta`, and an unrenamed object reads its translation as before. - -An approval step's label (`flows..approvals..label`) is still read through `t()`: no spec translator reads that key yet. diff --git a/.changeset/35384-reader-labels-translate-object.md b/.changeset/35384-reader-labels-translate-object.md deleted file mode 100644 index 59891f7fb85..00000000000 --- a/.changeset/35384-reader-labels-translate-object.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@objectstack/objectql': patch -'@objectstack/plugin-approvals': patch -'@objectstack/plugin-audit': patch ---- - -fix(objectql,approvals,audit): an authored rule message, an approval's object label and an activity summary's labels read as `/meta` serves them in a declared `i18n.sourceLocale` - -Clause-②: no -Metadata-protocol: none - -In a deployment whose `i18n.sourceLocale` differs from its `i18n.defaultLocale` (an app authored in English that defaults its users to Chinese, say), three readers still looked metadata text up through `II18nService.t()`, which falls back to the `defaultLocale` row when the reader's locale holds no entry. An `en` reader was shown the Chinese text where `GET /meta` and every other refusal label showed the English one as authored: - -- objectql: the author-written message of a validation rule (`objects.._validations..message`) in a `400 VALIDATION_FAILED` refusal; -- plugin-approvals: the object label on the approvals inbox, the request page, the generic data door's request rows and the approval refusals that name an object; -- plugin-audit: the object, field and select-option labels inside an activity summary composed in the reader's language. - -Each now resolves through `translateObject` (`@objectstack/spec/system`) over every locale the i18n service holds, with the resolve options the metadata route builds: the reader's locale, the declared fallback chain and the authored language (the declared `sourceLocale`, else `defaultLocale`). A reader in the authored language reads the text as written; every other reader reads the same row as before. `t()` keeps carrying the catalog sentences. - -An i18n service that cannot hand its translations over (no `getLocales()` / `getTranslations()`) no longer has these labels and rule messages translated through `t()`: the authored text stands. Every service the platform ships implements both. diff --git a/.changeset/35384-step-label-and-notification-object-label.md b/.changeset/35384-step-label-and-notification-object-label.md deleted file mode 100644 index df5c590e17b..00000000000 --- a/.changeset/35384-step-label-and-notification-object-label.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@objectstack/spec': patch -'@objectstack/service-messaging': patch -'@objectstack/plugin-approvals': patch ---- - -fix(i18n): an approval step label and an approval notification's object label read as the metadata translators serve them - -Clause-②: yes (widening) -Metadata-protocol: none - -In a deployment whose `i18n.sourceLocale` differs from its `i18n.defaultLocale` (an app authored in English that defaults its users to Chinese), an English reader was shown the Chinese approval step name, and an English approval-notification recipient read the Chinese object name inside an English sentence. Both labels were read through `II18nService.t()`, which falls back to the `defaultLocale` row; `/meta` serves the authored text. Both now resolve the way the metadata route resolves a label: the reader's negotiated locale, the declared fallback chain, and the authored language (the declared `sourceLocale`, else `defaultLocale`). - -- **`@objectstack/spec`** adds `resolveFlowApprovalStepLabel(bundle, flowName, nodeId, literal?, opts?)` (`@objectstack/spec/system`), the one reading of `flows..approvals..label`: the requested locale, then the declared fallback chain (skipped for the authored locale), then `literal`. It takes the flow's name and the node's id, so a reader holding only an approval request row needs no flow document. -- **`@objectstack/service-messaging`** accepts a new `NotificationTextKeys.params` value, `{ object: '', fallback }` (`NotificationObjectLabelParam`): the label of that object in the recipient's language, resolved as `GET /meta/object/:name` serves it, by `translateObject` over the object's served definition and its packaged base, so a renamed packaged object is named by its rename. It renders the same way on the inline fan-out, the dispatcher (digests included) and the inbox reader. `fallback` is delivered when nothing resolves. The `{ key, fallback }` value is still accepted and still renders through `t()`, so stored deliveries and inbox rows render as before. -- **`@objectstack/plugin-approvals`** names a notification's object with that typed param, and reads the approval step label through `resolveFlowApprovalStepLabel`, so `t()` carries catalog sentences only. - -Upgrade `@objectstack/plugin-approvals` and `@objectstack/service-messaging` together: an older messaging service refuses the typed param at `emit()`. diff --git a/.changeset/35390-install-fills-stored-expressions.md b/.changeset/35390-install-fills-stored-expressions.md deleted file mode 100644 index 2ab27755aa8..00000000000 --- a/.changeset/35390-install-fills-stored-expressions.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/cloud-connection': patch ---- - -fix(cloud-connection): a managed install or upgrade fills the stored computed fields it makes live - -Clause-②: no -Metadata-protocol: none - -A package version that adds a stored computed field (a non-`formula` field declaring `expression`), changes one's expression, stored type or scale, or turns a `formula` field into one used to leave every existing row `NULL` (or holding the old value) after `os package install` / `POST /api/v1/marketplace/install-local`: the metadata doors filled such a change, the install door did not, and a boot never fills. On a hosted tenant nothing could fill them. - -The managed install door now does what the metadata doors do: it captures the stored computed fields of every object the version contributes to (its own objects and the objects its extensions extend, every unit of a composed artifact) before it registers anything, and after its schema sync fills each field the version changed — every existing row, every organization, keeping each row's `updated_at` — through the data engine's own walk (the one `os migrate stored-expressions --changed --apply` runs). Each field is reported on the answer's new `advisories` (omitted when there is nothing to report), with the metadata doors' rule ids: `stored-expression-filled`, or `stored-expression-fill-incomplete` naming what is left and the command that fills it. A version that changes no stored computed field, a refused install and a fresh install over new tables write no row and add no key to the answer. The fill never fails the install. diff --git a/.changeset/35394-context-token-temporal-door.md b/.changeset/35394-context-token-temporal-door.md deleted file mode 100644 index 6724a921a4d..00000000000 --- a/.changeset/35394-context-token-temporal-door.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -'@objectstack/core': patch ---- - -fix(core)!: a context placeholder (`{current_user_id}`, `{current_org_id}`) compared against a date, datetime or time field is refused, as the id it resolves to already was - -Clause-②: no (narrowing) -Metadata-protocol: none - - - -**BREAKING** for a filter that compares a `date`, `datetime` or `time` field against a context placeholder. Such a filter is now refused with `INVALID_FILTER` (400), naming the field, before any read, on `find`, `findOne`, `count`, `aggregate` (its `where`, each aggregation's `filter` and its `having`), `update` and `delete`. It never answered correctly: the placeholder resolves to the caller's user or organization id, an id is not a day, an instant or a time of day, and the comparison ran as text against the stored values. - -- FROM: `{ due_on: { $lt: '{current_user_id}' } }` answered every row, and `$eq` / `$gte` answered no row, all with a 200, on SqlDriver and InMemoryDriver alike, while the same filter written with the literal id was refused. -- TO: the placeholder takes the literal id's refusal, `INVALID_FILTER` / 400, on all three kinds, in both spellings (`{current_user_id}` and `${current_user_id}`). - -`isUninterpretableTemporalComparand` (`@objectstack/core`) now answers `true` for a context placeholder on every temporal kind, as it does for a period key (`{current_iso_week}`). It still answers `false` for a date macro (`{current_week_start}`, `{30_days_ago}`), which the engine judges by its year once resolved, and for an unknown or record-context placeholder (`{TODAY}`, `{record_id}`), which the resolver keeps refusing by name with `FILTER_TOKEN_UNKNOWN` / `FILTER_TOKEN_UNRESOLVED`. A context placeholder on an id or text field resolves exactly as before. - -The refusal comes from the temporal-comparand door, which runs one stage ahead of the placeholder resolver. So a caller with no session, which got `FILTER_TOKEN_UNRESOLVED` (400) for this spelling on a temporal field, now gets `INVALID_FILTER` (400). On an id or text field it still gets `FILTER_TOKEN_UNRESOLVED`. - -The engine's judge-only admission runs the same door, and so do two of its readers: - -- `IObjectQLEngine.judgeFilter` answers `{ ok: false, code: 'INVALID_FILTER', status: 400 }` for this spelling on a temporal field. With a session it answered `{ ok: true }`; without one it answered `FILTER_TOKEN_UNRESOLVED`. -- Lint's row-scope predicate rule (`rls-predicate-unenforceable`) still refuses a predicate such as `due_on < '{current_user_id}'`. The finding now quotes `INVALID_FILTER / 400` with the hint to rewrite the comparison, where it quoted `FILTER_TOKEN_UNRESOLVED / 400` with the hint to write the caller's value as a `current_user` key. -- Analytics read-scope admission: when the analytics service asks the engine to admit an object's read scope, a scope that compares a `date`, `datetime` or `time` field with a context placeholder is now refused at compile, `READ_SCOPE_COMPILE_FAILED` (500, fail-closed). After the upgrade, a dashboard or analytics query over such an object answers 500 until that clause is rewritten as below. - -The fix for an author: compare the date field against a date (a `YYYY-MM-DD` day, an ISO-8601 instant, or a date macro such as `{30_days_ago}`), and compare the user or organization id against the field that holds it, such as `owner_id`. In a row-level-security predicate, write `owner == current_user.id`. diff --git a/.changeset/35395-compare-iso-week.md b/.changeset/35395-compare-iso-week.md deleted file mode 100644 index 3bb76a71bad..00000000000 --- a/.changeset/35395-compare-iso-week.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/core': patch ---- - -fix(core): a chart's compare-to no longer repeats the current week when its filter uses `{current_iso_week}` - -Clause-②: no -Metadata-protocol: none - -`previousPeriod` now compares with last week's ISO key (week 1 steps back to the previous ISO year's W52/W53), and `previousYear` with the key of the same day one year earlier. The trend label reads "vs last week". diff --git a/.changeset/35399-handover-follows-transfer-switch.md b/.changeset/35399-handover-follows-transfer-switch.md deleted file mode 100644 index 1ee54dc683a..00000000000 --- a/.changeset/35399-handover-follows-transfer-switch.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -'@objectstack/core': minor -'@objectstack/client': minor -'@objectstack/rest': minor -'@object-ui/app-shell': minor -'@object-ui/i18n': minor ---- - -fix(core, console): a banned user's hand-over follows each object's Change Owner switch, and the ban dialog says why a record stays - -Clause-②: no -Metadata-protocol: semantic - -An object's Change Owner switch (`userActions.transfer`) now also decides whether the offboarding hand-over (`POST /api/v1/security/users/USER_ID/assigned-work/transfer`) moves the object's `owner_id`, and how the count (`GET /api/v1/security/users/USER_ID/assigned-work`) reports it. The hand-over reads the same resolution the Change Owner action refuses by (`resolveUserActionTransfer`), so the two never disagree: - -- An object that turns the switch off keeps its records' owners where they are. Before, the hand-over moved them. -- A `controlled_by_parent` detail that leaves the switch out keeps its owner (the default is off there), as before. A detail that sets `userActions.transfer: true` now has its owner handed over like any other object. Before, every detail's owner was skipped. -- The object's own user fields (an approver, an assignee) are handed over whatever the switch says. - -A kept owner is still counted. Before, a detail's owner was left out of the count; now its row answers `transferable: false` with `reason: 'transfer_off'`. A multi-valued user field answers `reason: 'multi_valued'`. `reason` is a new optional member of each `objects[]` row in `security.assignedWork.count`'s answer (`UserAssignedWorkSummary` in `@objectstack/client`, `UserAssignedWorkHoldReason` in `@objectstack/core`). It is present exactly when `transferable` is false. - -The ban dialog words each kept row by its reason. A kept owner reads "Not handed over: this object keeps the owner of each record (Change Owner is off for it)." (zh: 不会交接:该对象的记录负责人保持不变(该对象已关闭“更改负责人”)。). A multi-valued row keeps its own sentence ("Lists several people, so it cannot be handed over here."), and a kept owner never shows it. The new `console.assignedWork.ownerKept` key is in all eleven UI locales. - -To keep the old hand-over of an object you switched off, set `userActions.transfer` back on for it. Before this change the switch gated only the Change Owner action; it now gates that action and the hand-over, and nothing else: a plain `owner_id` write (an import, a hook, a `PATCH`) still needs only the transfer grant. diff --git a/.changeset/35401-user-actions-transfer.md b/.changeset/35401-user-actions-transfer.md deleted file mode 100644 index b4295cae56b..00000000000 --- a/.changeset/35401-user-actions-transfer.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/platform-objects': minor -'@objectstack/metadata-core': minor ---- - -feat(spec): `userActions.transfer`, the per-object switch for the Change Owner action, and its structural eligibility - -Clause-②: yes (widening) -Metadata-protocol: added - -An object can now say whether it offers the Change Owner action. The action is not meant for every record that happens to carry an `owner_id`: line items, invoices and other details get one injected too, and an admin holding `modifyAllRecords` would otherwise see the action everywhere. - -- **Structural eligibility (derived, never overridable).** `isTransferEligible(def)` from `@objectstack/spec/data` answers true only when the platform injects the object's reassignable `owner_id` (`resolveInjectedSystemColumns(def).owner`), an owner is provable for it, and the object does not declare that field `readonly: true` (in either `fields` shape, record or array). So `ownership: 'business_unit' | 'org' | 'none'`, every `managedBy` object, every `sys_*` object and `systemFields: false` never offer the action, and neither does an `external` object whose owner is unprovable (`isOwnerAnchorUnprovable`: it neither declares `owner_id` nor maps a remote column onto it in `external.columnMap`). `transferIneligibilityReason(def)` names the structural fact when the answer is no, and, where the object can be made eligible, the change that does it (drop `readonly` from `owner_id`, set `ownership` to `user`, declare or map the external owner). -- **The switch.** `userActions.transfer` takes the same shape as the CRUD entries beside it: a boolean, or `{ enabled, visibleWhen, disabledWhen }` whose CEL predicates read the record the action acts on. Omitted, it is on for `sharingModel` `private`, `public_read` and `public_read_write`, and for an object that declares no `sharingModel` (a custom object then resolves to `private`); it is off for a `controlled_by_parent` detail. Authors override both ways: `transfer: true` on a detail with a real owner, `transfer: false` where the owner is the actor by rule. -- **The one resolution.** `resolveUserActionTransfer(def)` returns `{ enabled, predicates? }`: structural eligibility first, then the switch, then the `sharingModel` default. It is the answer the Change Owner endpoint and the console action will read once they ship, each still asking the caller's own transfer verdict per record; neither exists in this release. -- **Refused at parse.** `transfer: true` or `{ enabled: true }` on an object that is not eligible is refused at `userActions.transfer`, with the structural reason and its remedy in the message. Closing the switch there (`false`) is accepted. `changeOwner` and `reassign` under `userActions` are refused with a pointer to `transfer`. - -The switch gates the dedicated action, not the raw write: a plain `owner_id` update stays governed by `allowTransfer` alone, so import mappings and hooks are unaffected. To block every change of owner, declare `owner_id` `readonly`. - -The Studio object form gains a Change Owner row under User Actions, with its label and help text translated in every shipped locale. - -The served object document classifies `userActions.transfer` beside the four CRUD entries: for a caller who cannot read a field, a `transfer` predicate that names it is removed and the switch with its other predicate stays, as for `edit` and `delete`, instead of the whole entry being dropped. - -Nothing reads the switch at runtime yet. The Change Owner endpoint and the console action come in follow-up changes, so the liveness ledger grades `userActions.transfer` `planned` and `os lint` / `os validate` warn an author who sets it to `true` or uses the object form that nothing honours it yet. The key is new, so no stored object carries it and nothing needs migrating. - -**Existing objects that set `userActions.exportCsv: true` get a new warning.** Drilling `userActions` showed that no export menu reads `exportCsv`: setting it to `false` does not hide CSV export, which follows the view's `exportOptions` and the object's effective API operations. The ledger now grades it `dead`, so `exportCsv: true` raises a `liveness-dead-property` warning at `os lint` / `os validate`, and the hint says to remove it (`exportCsv: false` is not flagged). It is a warning, not a refusal: every stored object still loads. A follow-up (#35619) either makes the export menus honour the key or removes it. diff --git a/.changeset/35402-change-owner-endpoint.md b/.changeset/35402-change-owner-endpoint.md deleted file mode 100644 index adbb4d8855c..00000000000 --- a/.changeset/35402-change-owner-endpoint.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -'@objectstack/core': patch -'@objectstack/rest': patch -'@objectstack/client': patch -'@objectstack/spec': patch -'@objectstack/service-messaging': patch ---- - -feat(rest): Change Owner endpoint — hand one record or a list of records to another owner, on objects that offer the action - -Clause-②: yes (widening) -Metadata-protocol: none - -Two new doors under the data surface, both run as the caller: - -- `POST /api/v1/data/:object/:id/change-owner` with `{ ownerId | queue, notify? }` hands one record to a person or moves it to an ownership queue (ADR-0142), and answers the record's new owner. -- `POST /api/v1/data/:object/change-owner` with `{ ids, ownerId | queue, notify? }` does the same for up to 500 records, one update per record, and answers a per-row report that lists every record that did not move with its code and sentence. - -An object offers Change Owner when the platform gives it a reassignable owner and its `userActions.transfer` switch is on (on by default, off on a `controlled_by_parent` detail). Any other object is refused as a whole, `403 CHANGE_OWNER_DISABLED`, whoever asks — a holder of `modifyAllRecords` included. The switch gates this action only: a plain `owner_id` update still needs the transfer grant and nothing else, so imports and hooks are unaffected. On an object that offers it, each record moves through the ordinary write path, so the caller needs edit on the record and the transfer grant (`allowTransfer` or `modifyAllRecords`); without the grant the record keeps its owner and the answer is the data door's own `403 PERMISSION_DENIED`. `notify: true` sends the new owner one notification under the `record.owner_changed` topic, its title keyed so it renders in the new owner's own language (English when no entry renders). - -`@objectstack/core` exports `changeRecordOwner`, `changeRecordsOwner`, `changeOwnerOffReason`, `changeOwnerOffRefusal`, `CHANGE_OWNER_DISABLED`, `CHANGE_OWNER_NOTIFICATION_TOPIC`, `CHANGE_OWNER_NOTIFICATION_TEXT` and `assertAssignableUser` (the assigned-work hand-over's target check, now shared). That check now reads the target user the way the write path reads a user reference: a user the caller cannot read answers as one that does not exist (`404`, `reference_not_found`), on Change Owner and on the hand-over alike. `@objectstack/client` adds `data.changeOwner` and `data.changeOwnerMany`. `@objectstack/spec` registers `CHANGE_OWNER_DISABLED` in the error-code ledger, and the `userActions.transfer` liveness row is now `live`. `@objectstack/service-messaging` lists `record.owner_changed` among the platform's notification topics and carries the notice's title in every shipped locale (`messages.recordOwnerChangedTitle`, `messages.recordsOwnerChangedTitle`). diff --git a/.changeset/35403-change-owner-console.md b/.changeset/35403-change-owner-console.md deleted file mode 100644 index edd2f26c5fa..00000000000 --- a/.changeset/35403-change-owner-console.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/console': patch -'@object-ui/plugin-grid': patch -'@object-ui/plugin-form': patch -'@object-ui/plugin-detail': patch -'@object-ui/plugin-list': patch -'@object-ui/i18n': patch ---- - -feat(console): Change Owner on the record page, in a list's selection bar, and beside the read-only owner of the edit form - -Clause-②: yes (widening) -Metadata-protocol: none - -A record whose object offers Change Owner now shows a **Change Owner** action in its page header. The action appears only where three things hold: the object can have its owner changed (it has a per-person owner that is not pinned read-only), the object's `userActions.transfer` switch is on, and the server's explain engine allows this user to transfer this record. A `controlled_by_parent` detail offers the action only once its author turns the switch on. Objects with `ownership: 'none'`, `managedBy` objects and `sys_*` objects never offer it, even to a platform admin. - -The action opens one dialog. You pick the new owner under the object's own label for its owner field. Where the object has an ownership queue, you can pick a queue instead. You can also ask that the new owner be notified. The dialog sends the change through `data.changeOwner` for one record and `data.changeOwnerMany` for several. Picking the record's current owner is refused in the dialog with the reason shown. A bulk change ends with a report: how many records moved, how many already had that owner, how many did not move, and each row that did not move with the server's own reason. - -A list's selection bar offers **Change Owner** for the selected rows, where the object's switch is on and the explain engine allows this user to transfer the object's records (one question per object, not per row, asked once a selection is open rather than when the list opens). The rows of such an object take a selection even when the user has no bulk Delete and the view authors no bulk actions, so the entry can be reached at all; where the verdict refuses, the bar draws no Change Owner. The server judges every row again. Rows that the switch's `visibleWhen` excludes are left out of the request, and the dialog says how many were left out. - -The Console's edit form now shows the owner, read-only, above the form's fields, with Change Owner beside it when it is offered. The owner field is still not part of what the form saves. Forms embedded outside the Console are unchanged: the owner line appears only where a host mounts `FormOwnerLineContext` (exported from `@object-ui/plugin-form` and `@object-ui/plugin-form/core`). - -New public surface, all additive: - -- `@object-ui/plugin-grid`: `ObjectGrid` takes two new optional props, `onBulkChangeOwner` (wiring it makes the rows selectable and adds the entry) and `bulkChangeOwnerOffered` (`false` holds the entry back while the rows stay selectable); the package exports the action name `CHANGE_OWNER_BULK_ACTION`. -- `@object-ui/plugin-list`: `ListView` takes and forwards both props. -- `@object-ui/plugin-form`: new exports `FormOwnerLine`, `FormOwnerLineProps`, `FormOwnerLineContext`, `FormOwnerActionTarget` and `FormOwnerLineHost`; `@object-ui/plugin-form/core` exports `FormOwnerLineContext`, `FormOwnerActionTarget` and `FormOwnerLineHost`. -- `@object-ui/plugin-detail`: `RecordOperation` gains `'transfer'`, so `useRecordVerdict` and `seedRecordVerdict` accept it. -- `@object-ui/i18n`: every console locale gains `grid.changeOwner` and the `console.changeOwner.*` block. diff --git a/.changeset/35410-inbox-receipt-layer.md b/.changeset/35410-inbox-receipt-layer.md deleted file mode 100644 index e7a74fc21e7..00000000000 --- a/.changeset/35410-inbox-receipt-layer.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(app-shell): the inbox badge's read-state no longer waits for the inbox messages to load - -Clause-②: no -Metadata-protocol: none - -The bell badge and Home's action centre read the signed-in user's newest 20 inbox messages and the receipts that say which of them are read. The receipt read used to start only after the message read answered, so on every console page load it was the last request to go out. It now reads the newest 20 inbox receipts at the same time as the newest 20 messages, and asks by id only for a listed message whose receipt that read did not carry, so the read-state, the unread count and the badge stay exactly as they were. An inbox with no messages still sends no receipt read on its later polls. diff --git a/.changeset/35411-edge-sheet-square-corners.md b/.changeset/35411-edge-sheet-square-corners.md deleted file mode 100644 index 309c7cacc89..00000000000 --- a/.changeset/35411-edge-sheet-square-corners.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/console': patch ---- - -fix(console): full-height edge drawers have square corners - -Clause-②: no -Metadata-protocol: none - -- The console stylesheet gave every dialog surface a 1.25rem corner radius, which also rounded the left and right drawers (the notification center, the side form drawer and every other full-height Sheet). Those drawers sit against the top, side and bottom of the window, so the rounding showed as a notch at their inner corners. The rule now skips full-height edge sheets; they render with square corners. The record drawer, a floating card, now shows its own corner radius instead of the global one. Centred dialogs and bottom sheets keep the rounded corners. Drawer width, animation and content are unchanged. diff --git a/.changeset/35412-record-crumb-while-reading.md b/.changeset/35412-record-crumb-while-reading.md deleted file mode 100644 index 356fd9a0d05..00000000000 --- a/.changeset/35412-record-crumb-while-reading.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/console': patch ---- - -fix(console): an approval request opened from an app's inbox stays in that app, and the record breadcrumb never shows a raw id - -Clause-②: no -Metadata-protocol: none - -Opening a request from the approvals inbox an app mounts (「待我审批」, `approvals:inbox`, or the inbox under the app's `system/approvals`) now opens it inside that app: the app name, the sidebar and the path stay the app's (`/apps/APP/sys_approval_request/record/ID`). It used to open under whichever app listed the request's record object, else the Setup app, so a business user lost their app after every decision. "Open the next one" after a decision stays in the same app, and the last decision returns to that app's inbox. The record card on the request page still opens the record in the app that owns it. Requests opened from no app (Home's 我的工作, a notification, an email link) are unchanged: they still open under the app that owns the record, else Setup. - -A record page's breadcrumb (「OBJECT › RECORD」) drew the record's raw id (`#areq_9e5…`) for as long as the record's read took, then swapped in its title. It now names the record by its object's label while the read is in flight (「审批请求」 for an approval request, 「Lead」 for a lead), then by its title once the read lands, in the same render. A loaded record with nothing to be named by still shows its short id. Every object's record page gets this. - -The page also stays mounted when it steps to another record (the counter's ↓ ↑, `j` / `k`, and the approvals queue's 「open the next one」 after a decision), and its title used to be held across the step: while the next record was read, the breadcrumb named it with the previous record's title, and its favourite label, its "Recently Accessed" entry and the pane bar's title were briefly written with that title too. A title is now read back only for the record it was resolved for, so during the read the breadcrumb names the object, and nothing is written under the wrong record. No locale keys, props or exports change. diff --git a/.changeset/35414-sticky-tabs-solid.md b/.changeset/35414-sticky-tabs-solid.md deleted file mode 100644 index 52a8cabde15..00000000000 --- a/.changeset/35414-sticky-tabs-solid.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/components': patch ---- - -fix(components): a record page's stuck tab strip is a solid bar, flush with the top of the page - -Clause-②: no -Metadata-protocol: none - -On a long record page the horizontal tab strip (Details / Related / Activity) sticks to the top as you scroll. Its fill was 60% transparent with a blur, so the cards scrolling under it showed through and overlapped the tab labels, worst in the dark theme. It also stopped short of the top: the page's scroll area is padded, and the browser sticks a `top: 0` box at the padding's inner edge, so a strip of scrolled content stayed visible above the tabs. The stuck strip now uses the solid page-background colour of the active theme and keeps its bottom rule, and it stops exactly at the visible top of its scroll area, whatever that area's padding at the current screen width. Vertical (sidebar) tab layouts, tab styles and tab order are unchanged. diff --git a/.changeset/35415-approval-request-names-its-record.md b/.changeset/35415-approval-request-names-its-record.md deleted file mode 100644 index dc2e7b038ff..00000000000 --- a/.changeset/35415-approval-request-names-its-record.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@object-ui/components': patch -'@object-ui/app-shell': patch -'@objectstack/plugin-approvals': patch ---- - -fix(console): the approval request page is named by the record it asks a decision on, and its reject button no longer outweighs approve - -Clause-②: yes (widening) -Metadata-protocol: none - -- **The page title.** An approval request's page used to be titled by its flow's label ("Purchase approval"), which the strip under it repeated as its Flow chip, while the business record the approver decides on had no title at all. The page header now reads the record's title the approvals get serves (`record_title`), linked to that record once the page itself has read it: a plain click opens it in the app, as the "As submitted" card's "Open record" link does, and a modifier or middle click opens it in a new tab. Where the page's read of the record is refused or finds nothing, or the platform says the record was deleted, the title is plain text with no link, as the record card on the same page draws it. The title makes no read of its own: the reads the page already makes report what they found. Where the get serves no title for the record, or serves only its id, the header keeps the flow's label, so the page never names the record by a raw id. The flow stays named once, by the strip's Flow chip; no subtitle is added, because it would repeat that chip. The request object's declared title (`nameField: 'process_label'`) is unchanged, so lists, search, recent items and the breadcrumb still name a request by its flow. -- **`RecordHeaderState.title`** (`@object-ui/components`, new optional member, with its type `RecordHeaderTitle`). A host that knows a better name for the record than the object's declared title hands `{ text, node? }`; `page:header` draws `node` (or `text`) inside its H1, in the host's top bar and in its own row alike. Absent, or with an empty `text`, the header's own title stands exactly as before. -- **The decision band.** In the approver's band (the request page, and the business record page's approval band), Approve stays the filled primary button and Reject is drawn as an outline button in the destructive text colour, the face the record header already gives a secondary danger lever. A host that does not ask for the band's fold keeps the declared filled danger face. -- **One time format.** The approval timeline's action times use the compact datetime face the page's highlight chips and every `datetime` cell draw (`2026/11/10 下午8:25` under zh-CN), in the host's display time zone, instead of the browser's long form with seconds. -- `@objectstack/plugin-approvals`: comments only, saying where the request page now names its record. diff --git a/.changeset/35416-record-open-boot-waves.md b/.changeset/35416-record-open-boot-waves.md deleted file mode 100644 index 4a0f7ccdf64..00000000000 --- a/.changeset/35416-record-open-boot-waves.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -perf(console): a full-page record open asks its page list and object scope beside the permission read, and the app bar's package list after the page - -Clause-②: no -Metadata-protocol: none - -Opening a record page by its URL (a reload, a pasted link) waited one more round trip than it needed to, and shared the link with the largest response an app page reads: - -- The console root's prefetch (`useAppObjectScopePrefetch`) now starts a record route's page list (`/meta/page`) and, under the same rule `AppContent` follows, the app package's object list, as soon as the app list names the app. Before, both left only once `AppContent` mounted, which is after `/auth/me/permissions` answers. -- `fetchSessionPackages` (the read behind the app bar's and the sidebar's Studio entries) waits until the page's own requests have stayed quiet for 750 ms (at most 8 s) before it reads `GET /api/v1/packages`, so that response no longer downloads beside the record. The entries it gates stay absent until it answers, as they already did while it was on the wire. Studio's own package reads are unchanged. -- New `whenQuiet(quietMs, maxMs)` in the settle signal; it resolves at once where no data layer counts requests. diff --git a/.changeset/35417-first-run-checklist-one-line.md b/.changeset/35417-first-run-checklist-one-line.md deleted file mode 100644 index 7b62795e09c..00000000000 --- a/.changeset/35417-first-run-checklist-one-line.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@object-ui/console': patch -'@object-ui/i18n': patch ---- - -fix(console): the first-run checklist on Home counts its done rows the way its progress line does, names the Setup app in the reader's language, and folds to one line when two rows or fewer are left - -Clause-②: yes (widening) — @object-ui/i18n adds console.firstRunChecklist.showDoneSplit; nothing removed -Metadata-protocol: none - -The progress line counts the required rows alone, while the control that unfolds the done rows counted every done row, optional ones included, so a managed environment could read "6 of 7 done" above "Show completed (8)". Once an optional row is done the control now names the two counts apart ("Show completed (6 required · 2 optional)"); with no optional row done it reads as before. - -The checklist's description, the built-in AI row's done line and the Connect an AI assistant row's line named "Setup" in English in every language; they now use the Setup app's own label in each pack (for example 系统设置, 系統設定, セットアップ, Configuración). English and German keep "Setup", which is their label. - -Above the page, once two rows or fewer are left to do, the card folds to one line: its title, its progress, each row left by its title and a Set button, and the close button. A language, timezone or currency row's Set opens the full card with that row's editor, and the card folds back once the editor closes; every other row's Set opens the page its row links to. The phone placement after the apps keeps its own fold. No row, completion rule or setting write changes. - -New locale key: `console.firstRunChecklist.showDoneSplit`, in all eleven packs. diff --git a/.changeset/35418-approval-timeline-system-notes.md b/.changeset/35418-approval-timeline-system-notes.md deleted file mode 100644 index 4d3261ba5cb..00000000000 --- a/.changeset/35418-approval-timeline-system-notes.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@objectstack/plugin-approvals': patch -'@object-ui/app-shell': patch -'@object-ui/i18n': patch -'@object-ui/console': patch ---- - -fix(approvals): the approval timeline names an unstaffed position by its label, and the platform's own rows read as the system's - -Clause-②: yes (widening) — @objectstack/plugin-approvals adds the optional `ApprovalServiceOptions.positionLabelSource`; @object-ui/i18n adds approvalsInbox.systemActor and approvalsInbox.actSystemNote; nothing removed -Metadata-protocol: none - -When a request goes to the organization's administrators because a position on its approver list has no holder, its timeline note named the position by its machine name ("岗位「crm_sales_manager」无人任职"). The note a reader is served now names it by its label: the reader's language pack (`positions..label`) first, else the position's declared `label`, else the name as before ("岗位「销售经理」无人任职"). The English the row stores for audit keeps the name. - -On the timeline, a row no person took read its actor as "—", and the routing, submitter-exclusion and no-approver notes read as "Commented". A row with no actor now reads its actor as "System", and a `comment` row with no actor reads as "System note". A person's comment keeps "Commented" and its author. - -New locale keys: `approvalsInbox.systemActor` and `approvalsInbox.actSystemNote`, in all eleven packs. diff --git a/.changeset/35420-one-rename-rule.md b/.changeset/35420-one-rename-rule.md deleted file mode 100644 index 49951e6d024..00000000000 --- a/.changeset/35420-one-rename-rule.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/spec': patch ---- - -fix(spec): `ObjectSchema.create()`, `defineSeed` and the `defineStack` / CLI unknown-authoring-key report no longer answer a short unknown key with an unrelated one - -Clause-②: no -Metadata-protocol: none - -The strict unknown-key refusal on every `strictObject` surface stopped offering a key of five characters or fewer a rename that is two unrelated edits away: such a key is answered only by a candidate one edit away, an adjacent swap counted as one. `ObjectSchema.create()` and `defineSeed` carried their own copy of the `max(2, len/3)` budget without that screen, so they went on answering, for example, an object key `page` with `name` and a seed key `kind` with `id`. The unknown-authoring-key report that `defineStack` and the CLI print (`… is not a declared … key, so its value is dropped at load — did you mean …?`) used a flat distance of 3 for every key, so `aria` was answered `areas`, and the budget did not follow the key's length. - -All four now read one rename rule. A genuine one-edit slip is still answered (`nmae` → `name`, `labl` → `label`, `queeu` → `queue`), and keys longer than five characters keep the same `max(2, len/3)` budget (for the authoring-key report that budget replaces the flat 3, so an eight-character key three edits away, `descrptn`, is no longer answered, while a nine-character one, `dfltValue` → `defaultValue`, still is); `ObjectSchema.create()` now also ranks its candidates the way the strict refusal does (case and separators folded on both sides, the author's own capitalisation breaking a tie). Only the "did you mean" text changes: no key is accepted or refused that was not before, and no export is added or removed. diff --git a/.changeset/35424-all-docs-page.md b/.changeset/35424-all-docs-page.md deleted file mode 100644 index 60be18f71f8..00000000000 --- a/.changeset/35424-all-docs-page.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@objectstack/client': patch -'@object-ui/console': patch -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -feat(console): the 「All documentation」 page has the console's top bar, groups its books by app, and searches every article - -Clause-②: yes (widening) — @objectstack/client `meta.getItems` takes an optional `include` (`'content' | 'grants'`, sent as `?include=`) and exports its options type `MetaItemsListOptions`; @object-ui/i18n adds nine help.* keys (two of them plural, with their per-locale forms); nothing removed -Metadata-protocol: none - -- **The console's top bar on every portal page.** `/docs`, a book (`/docs/`) and an article (`/docs//
`) are drawn in Home's frame, whose bar reads 「 / Documentation」 (the crumb links to the portal's index) and carries the search, the inbox, the assistant and the avatar menu, so the reader can go back to any app. The portal's own 「Documentation / 」 strip is gone. -- **Books grouped by app.** The page lists each app's books under the app's name, as the launcher names it: a book goes under the first app whose navigation links to it (a module's navigation contributions included), else under its package's app; books no app carries are listed last under 「Other documentation」. No card shows a package id; a package's docs with no authored book are named by their app. A platform package's books (`com.objectstack.*`, such as Setup's) are listed only under an app in the member's list that carries them, never under 「Other documentation」, so they are not listed for a member whose app list has no such app. This is what the page lists, not who may read a doc: the server's audience gate decides that, as before. -- **The subtitle and the counts read the session language** (「9 篇」, not 「9 articles」). -- **「Search all documentation」.** A search field on the page searches every listed article's title, summary and body, and lists the matches with the words marked in context; each opens the article in its own book. The bodies are asked once, the first time the reader searches (`GET /meta/doc?include=content`, through the same audience gate as the list). The query stays in the URL (`?q=`). -- **A hand-typed article URL whose book does not hold the article** (`/docs/<book A>/<article of book B>`) now opens the article in its own book; with no book that holds it, the article draws no previous/next pager instead of showing both ends at once. Inside an app, an article whose book is in no package now keeps its 「← Back to <app>」 link. - -`@objectstack/client`: `client.meta.getItems(type, { include })` and the environment-scoped `meta.getItems` send `?include=`; leaving it out sends nothing, as before. `@object-ui/app-shell`: `AppHeader` takes a `docs` variant and `DefaultHomeLayout` a `variant` prop for it. diff --git a/.changeset/35424-docs-reader-one-column.md b/.changeset/35424-docs-reader-one-column.md deleted file mode 100644 index 7c207565acc..00000000000 --- a/.changeset/35424-docs-reader-one-column.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@object-ui/console': patch -'@object-ui/app-shell': patch -'@object-ui/plugin-markdown': patch -'@object-ui/i18n': patch ---- - -feat(console): an app's docs page has one navigation — the docs column — with the path to its book and the previous and next article - -Clause-②: yes (widening) — @object-ui/plugin-markdown exports MermaidEnlargeContext and MermaidEnlargeText; @object-ui/i18n adds 12 help.* keys; nothing removed -Metadata-protocol: none - -Inside an app, the documentation pages (`/apps/<app>/docs/…`) no longer draw the app menu beside the docs: the left column is the docs' own, with 「← Back to <app>」 at its top, a title filter, every book of the app's package (the current book open, the others folded, each with its article count; long titles wrap instead of truncating) and 「All documentation →」 at its foot. Every other docs page inside an app (the app's docs index, a book with no articles, a book or doc not found) carries the same 「← Back to <app>」 at its top. The app bar stays, and reads 「<app> / Documentation」; the separate 「Documentation / <title>」 bar under it is gone, and the path above the article names the book (Documentation › <book>). 「On this page」 marks the section being read as the page scrolls, and the article ends with its book's previous and next article. The article column is 720 px wide at 15 px, and a diagram carries an 「Enlarge」 control that opens it full size. - -`@object-ui/plugin-markdown` adds `MermaidEnlargeContext`: a host that provides its words gets the enlarge control on every rendered diagram; with no provider a diagram renders exactly as before. `@object-ui/app-shell` exports `matchAppBySegment` and `useServedAppLabel`, and `isAppDocsPath` beside `isRecordPagePath` from its `ConsoleLayout` module. New `help.*` keys in every shipped locale. No doc content, doc metadata, route or API changes. diff --git a/.changeset/35425-one-language-list.md b/.changeset/35425-one-language-list.md deleted file mode 100644 index db247a1eb1a..00000000000 --- a/.changeset/35425-one-language-list.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@object-ui/i18n': patch -'@object-ui/app-shell': patch -'@object-ui/console': patch ---- - -feat(i18n): the sign-in page and the in-app language menu offer one list, every interface language - -Clause-②: yes (widening) — @object-ui/i18n adds `appContentLanguages` to the i18n context and the locale key `console.localeSwitcher.appContentDefault` in all eleven packs; `offerableLanguages` is never `null` any more; nothing removed -Metadata-protocol: none - -The in-app language menu used to list only the languages the app declares (four on HotCRM), while the sign-in page, which has no session to ask the app with, listed all eleven interface languages. A language picked on the sign-in page (German, Korean) was then missing from the menu after sign-in. - -Both now list all eleven, as does the profile page's language card. A language the app's own content is not translated into stays selectable: the interface shows in it, and object, field and view names show in the deployment's default language. The menu row of such a language carries one muted line, "App content shows in the default language", and the profile card shows the same line under the picker when one is chosen. The sign-in page marks nothing, because nothing has been read about the app there. - -`offerableLanguages` on `useObjectTranslation()` is now every platform locale table language whatever the app ships. The app's list (`loadLocales`) feeds the new `appContentLanguages`: the table languages it covers, or `null` when not known (in flight, signed out, failed, or naming no table language). `GET /api/v1/i18n/locales` is unchanged and no language pack is added. The organization's default-language setting keeps the app's declared list. diff --git a/.changeset/35427-expand-disabled-package.md b/.changeset/35427-expand-disabled-package.md deleted file mode 100644 index 231211dd3ad..00000000000 --- a/.changeset/35427-expand-disabled-package.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@objectstack/metadata-protocol': patch ---- - -fix(metadata-protocol)!: `$expand` and a relation condition stop serving a disabled package's object through an enabled object's lookup, the answer its own data route already gives - -Clause-②: no (narrowing: `$expand` withholds a disabled package's object and a relation condition on one is refused, the answer its own data route already gives) -Metadata-protocol: none - -<!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed or renamed, and nothing stored is rewritten: the moved answer is what the data routes serve of a disabled package's object reached through another object's lookup. A caller that needs those records re-enables the package. --> - -**BREAKING** for a caller of the data routes on an environment that disables a package. A disable takes the package's records off the data plane: `GET /api/v1/data/:object` answers `404 OBJECT_PACKAGE_DISABLED`. An enabled object's lookup into that package's object still served it: `$expand` (list, by-id `expand`, and the POST relation map) returned the disabled record's full row, and a nested-relation condition (`{ "lookup": { "field": VALUE } }`) answered yes/no on its fields. - -- `$expand`: an entry whose target belongs to a disabled package is withheld, exactly as an entry whose target is not exposed (`apiEnabled: false`) already is. The lookup keeps its stored id; nothing of the target is read or named. Reference-name titles ride the same expansion and are withheld with it. -- A nested-relation condition on such a target is refused with the data route's own envelope, `404 OBJECT_PACKAGE_DISABLED`, naming the object and the query position, before the query runs. - -The fix: re-enable the package to have its records expanded and filtered on again. An environment with no disabled package sees no change. diff --git a/.changeset/35434-execute-dispatched-action-keeps-mark.md b/.changeset/35434-execute-dispatched-action-keeps-mark.md deleted file mode 100644 index 0981c1eec47..00000000000 --- a/.changeset/35434-execute-dispatched-action-keeps-mark.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@objectstack/objectql': patch ---- - -fix(objectql): `platformSystemApi` on the api `ObjectRepository.execute` hands the action it dispatches keeps the `'action'` mark - -Clause-②: no -Metadata-protocol: none - -`ctx.api.object(o).execute(name)` dispatches the named action with an api over a context it marks `'action'`. That api carried neither the app-authored flag nor the action door's origin flag, so `platformSystemApi(ctx.api)` in the dispatched handler took the mark off, and its writes to `sys_member`, `sys_user_position`, `sys_user_permission_set` and `sys_invitation` passed as a platform writer's, against the documented refusal for action handlers. - -- The api `execute` hands the dispatched action now carries its own origin flag, kept by every api derived from it (`sudo()`, `withRunAs(...)`, a transaction's context, the api `platformSystemApi` and the user-grants seeds return). On it, `platformSystemApi(api)` returns what `api.sudo()` returns: the `'action'` mark and any `flowRunId` kept. Writes to the four identity-assignment objects through it are refused `PERMISSION_DENIED` (403), whichever api dispatched the action, and its inserts are owner-stamped with the invoking user. -- The flag is not the app-authored flag: the dispatched handler's `delete(…, { permanent: true })` still runs. -- The api the audit writer holds (a hook registered in code) is unchanged: `platformSystemApi` still takes the mark off there. -- This is the path the action-door fix in this release did not reach. No new export, and no published signature changes. diff --git a/.changeset/35437-field-visiblewhen-highlights-drawer.md b/.changeset/35437-field-visiblewhen-highlights-drawer.md deleted file mode 100644 index 1242defda7d..00000000000 --- a/.changeset/35437-field-visiblewhen-highlights-drawer.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/plugin-detail': patch ---- - -fix(plugin-detail): the highlights strip, the detail view and the record drawer no longer draw a field whose own `visibleWhen` is false for the record - -Clause-②: no -Metadata-protocol: none - -A field's object-level `visibleWhen` (`Field.visibleWhen`: "field is shown only when TRUE") now hides it on every record surface that draws fields, not only on the `record:details` body: the header highlights strip (`record:highlights`, and the strip a `detail-view` draws from `highlightFields`), the `detail-view` node's body and its header summary chips, and the record drawer that list, kanban, calendar, gantt and the other views open. Before, these surfaces drew such a field, label and value, on every record, so they disagreed with the edit form and the details body about the same record. - -Every surface calls the one implementation the details body uses, so the verdict is the form's own (`resolveFieldRuleState`), over the record shown (bound as `record` and as `previous`) and the host predicate scope (`current_user`). A predicate that cannot be evaluated still shows the field and warns once, as on the form (ADR-0137 D3). The verdict is the saved record's: an inline edit reveals a gated field after save. Display only: the record API still returns the field. diff --git a/.changeset/35440-ban-unban-admin-audit-row.md b/.changeset/35440-ban-unban-admin-audit-row.md deleted file mode 100644 index 32170374385..00000000000 --- a/.changeset/35440-ban-unban-admin-audit-row.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@objectstack/plugin-auth': patch ---- - -Clause-②: no -Metadata-protocol: none - -`POST /api/v1/auth/admin/ban-user` and `POST /api/v1/auth/admin/unban-user` now write one `sys_audit_log` row for a change that committed, through the same writer the other admin user doors use: `action: 'update'` on the target `sys_user`, naming the administrator, with `metadata` `{ event: 'user.admin_banned' | 'user.admin_unbanned', hostNotified }`. A refused ban or unban writes no row. Without the admin plugin, the ban columns' write now carries the administrator's attribution too, so plugin-audit's own row for that change names the administrator instead of the system, as it already did with the admin plugin; the written fields are unchanged. The ban reason and expiry stay on plugin-audit's row for the user's change, not in `metadata`. The route ledger note for `admin/remove-sso-user` and the authentication docs now name that door's `user.admin_removed_pending` row. diff --git a/.changeset/35442-mcp-app-docs-tools.md b/.changeset/35442-mcp-app-docs-tools.md deleted file mode 100644 index 953887f6f35..00000000000 --- a/.changeset/35442-mcp-app-docs-tools.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@objectstack/mcp': patch -'@objectstack/runtime': patch -'@objectstack/spec': patch ---- - -feat(mcp): the MCP door can search and read the installed apps' manuals, and tells the client how to answer a question about the app - -Clause-②: yes -Metadata-protocol: none - -An AI client connected over MCP (a user's own Claude, Cursor, …) can now answer "what is X?" and "how does this approval work?" from the manuals the installed apps ship, instead of from its own guess: - -- **`search_package_docs({ terms, package? })`** finds the pages whose title, a heading or text contains one of the terms (case aside, in the page's base text or a translation). Pages that contain more of the terms come first, then pages where the terms sit higher (the sum of title 3, heading 2, text 1), then by title; at most 10, each with an excerpt, its manual and, where the page has one, its console address (`/_console/apps/<package>/docs/<book>/<page>`) to cite. The heading parse is line-based and linear. -- **`read_package_doc({ name, package?, locale? })`** reads one page: its title, manual, Markdown content and, where the page has one, its console address (cut at 60,000 characters, and the answer says so). -- **Who sees what.** Both tools read the `doc` items through the `/meta/doc` docs-audience gate (ADR-0046 §6.7) with the request's execution context as the caller: a page the caller may not read is neither found nor read, and answers as not found. On an OAuth grant the request is an agent acting for the person who consented, and a permission-set audience is read against that person's own permission sets (ADR-0090 D10), never the token's scope-derived sets. Both are read tools: they register for an API key, a session, or a token granted `data:read`. The runtime's HTTP bridge carries them where the protocol serves the `/meta` list read; the stdio bridge does not. -- **The answer order.** Where both tools register, the HTTP `initialize` instructions say: read the manuals first; answer a concept from the manual, and label a general explanation as one when no page covers it; for a process or rule, also read its real definition, which wins where the two differ; end with each page's title and url. The rule names a definition reader only where the connection lists one (`describe_metadata`, else `get_metadata_item`, both under `metadata:write`); without one it says to answer from the manual and state that the configured process was not checked. A host's own instructions and a configured `instructions` option are served unchanged. - -The two names are the ones the cloud AI runtime already registers, so `MCP_DOOR_TOOL_NAMES` (`@objectstack/spec/system`) now lists them too; `PLATFORM_PROVIDED_TOOL_NAMES` is unchanged. No metadata key, value or default changes. diff --git a/.changeset/35445-ai-panel-one-row-header.md b/.changeset/35445-ai-panel-one-row-header.md deleted file mode 100644 index 7dd516a7e16..00000000000 --- a/.changeset/35445-ai-panel-one-row-header.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/plugin-chatbot': patch -'@object-ui/i18n': patch ---- - -fix(app-shell, plugin-chatbot): the AI panel in an app has one title row, and its composer reads cleanly - -Clause-②: no -Metadata-protocol: none - -The console's AI drawer title bar is one row: History, a 「···」 menu and a 「×」 Close. The menu holds the AI usage reading (with its upgrade or top-up entry when the pool runs low), Share, Expand / Restore side panel, and the Build Doctor. The Build Doctor is listed only for a user who may build (`manage_metadata`, the reading that already decides who gets the build composer). While the usage pool is running low or full, the 「···」 trigger carries a marker. The close button is the drawer 「×」, named Close, in both the side panel and the full window; closing still keeps the conversation for the next open. The phone sheet gets the same menu, without Expand. - -The pane row under the title keeps the agent label and the app chip, but no longer draws Share or the Build Doctor in the drawer. `ChatPane` gains `actionsInHost` for a host that offers them itself. The full-page chat and the Studio copilot are unchanged. - -In the composer: - -- the 「正在看」 chip sits on the input's top edge, inside its frame; -- the closed model picker shows the model's label alone, truncated, with the full label on its title (no provider, no `×N`). The list rows keep both; -- the 「↵ 发送 · Shift+↵ 换行」 hint stays on one line; -- the 「+」 attachment button and its menu item are named "Add attachment" (「添加附件」). - -An answer table's copy and download tools are named in the reader's language (「复制表格」, 「下载表格」 and their format variants) instead of streamdown's English defaults. - -New locale keys, in every pack: `console.ai.dock.close`, `console.ai.dock.more`, `chatbot.composer.addAttachment`, `chatbot.answer.copyTable`, `copyTableAsMarkdown`, `copyTableAsCsv`, `copyTableAsTsv`, `downloadTable`, `downloadTableAsCsv`, `downloadTableAsMarkdown`. The drawer no longer reads `console.ai.dock.collapse`. diff --git a/.changeset/35446-list-narrow-fixed-columns.md b/.changeset/35446-list-narrow-fixed-columns.md deleted file mode 100644 index 75e9d006942..00000000000 --- a/.changeset/35446-list-narrow-fixed-columns.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@object-ui/plugin-grid': patch -'@object-ui/components': patch -'@object-ui/app-shell': patch ---- - -fix(grid): a list in a narrowed main area keeps every data cell clear of its fixed columns, shows its horizontal scrollbar, and draws a short header - -Clause-②: no -Metadata-protocol: none - -- **Row actions column.** While a list's table is wider than its box (the AI panel docked, a small window, the record drawer open), the row actions column (the row's "⋮") is drawn right after the frozen name column and frozen with it, instead of pinned to the right edge, where it covered the data column reaching that edge (an amount cut to 「¥94,0」). Every data column then scrolls sideways under the frozen columns, and none is covered at rest. Once the box is wide enough for the whole table again, the column goes back to the right edge, so a list that fits looks as before. Inline primary row actions still fold into the "⋮" menu first, as before. Columns an author pinned to the right stay where the author put them; the grouped list is unchanged. -- **Horizontal scrollbar.** A table wider than its box draws its scrollbar at rest instead of only while the pointer is over it, so columns out of view are announced. A table that fits keeps the scrollbar that shows on hover. -- **List header.** While the list page's header is narrower than 768 px, it draws no description, and Import moves into the 「⋯」 menu beside New. A wider header is unchanged. This is opt-in: the console `PageHeader` gains `compactBelow` (a width in px; below it the one-row header drops its description and draws its folded actions), which only the list page passes, so other pages that use `PageHeader` are unchanged. Setup's two-line header ignores it. -- No column is hidden and no column configuration changes. diff --git a/.changeset/35449-ai-approvals-phone-width.md b/.changeset/35449-ai-approvals-phone-width.md deleted file mode 100644 index dfa16b0203c..00000000000 --- a/.changeset/35449-ai-approvals-phone-width.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@object-ui/plugin-chatbot': patch ---- - -fix(plugin-chatbot): the AI approvals inbox is usable on a phone - -Clause-②: no -Metadata-protocol: none - -At phone width the AI approvals inbox drew its desktop table, whose fixed columns are far wider than the screen: Approve, Reject and View sat off-screen in a sideways scroller, and the first thing a row said was the internal tool name. Below the `md` breakpoint each pending action is now a stacked card that leads with the action, shows the object, the tool name and the time as its second line, and keeps Approve, Reject and View inside the card on 44 px buttons that wrap. From `md` up the table is unchanged. - -The detail drawer takes the full width below `sm` (it was three quarters of the screen, and its Reject button ran past the right edge at 390 px), its decision buttons wrap instead of overflowing, and a long action or tool name in its title wraps instead of pushing the drawer sideways. From `sm` up it keeps its 560 px cap. - -No props, exports or locale keys change; the component needs nothing from its host for this. diff --git a/.changeset/35454-doctor-verbose-hint-fixless.md b/.changeset/35454-doctor-verbose-hint-fixless.md deleted file mode 100644 index 2c99264aa43..00000000000 --- a/.changeset/35454-doctor-verbose-hint-fixless.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/cli': patch ---- - -fix(cli): `os doctor` no longer advises `--verbose` when no warning has a fix for it to show - -Clause-②: no -Metadata-protocol: none - -When `os doctor` finished with warnings it closed with "Run with --verbose to see fix suggestions." whenever any warning fired. Several warnings have no fix suggestion in either mode (a missing `*.test.ts` beside a `*.zod.ts`, `@deprecated` usages, circular dependencies, unused objects, orphan views), so for those the re-run printed nothing new. The line is now printed only when at least one warning that fired carries a fix that `--verbose` would reveal. The warnings themselves, and exit codes, are unchanged. diff --git a/.changeset/35455-console-boot-one-localization.md b/.changeset/35455-console-boot-one-localization.md deleted file mode 100644 index 770ee575464..00000000000 --- a/.changeset/35455-console-boot-one-localization.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@object-ui/auth': patch -'@object-ui/console': patch ---- - -fix(console, auth): a cold console load sends `me/localization` once, and asks for the cookie session at parse time - -Clause-②: no -Metadata-protocol: none - -On a device's first visit the console sent `GET /api/v1/auth/me/localization` twice. The language seed asked before the app mounted. The localization provider asked again after its own mount, because the seed's request had already settled and requests are shared only while they are in flight. The provider's boot read now takes the seed's answer to the same request once, but only when it was an authenticated answer about the browser's current owner. A re-read after a write to the user's own row still asks the server, and so does any later mount. - -With no stored Bearer (a cookie session), `get-session` was asked by `AuthProvider` only after React mounted. That mount waits on the seed's bounded race, so the session check waited for the language read. `index.html`'s parse-time session check now asks the cookie session's question too, without an `Authorization` header. `preflightAuth()` hands the answer to `AuthProvider` through the existing slot with a null token. A signed-out answer is handed on as well: a body naming no user, or the server's 401 `UNAUTHENTICATED`. A signed-out visitor therefore still sends one `get-session`. `AuthProvider` takes a null-token answer only while no token is stored. A protected route still waits for the session answer, and the seed's race and the language applied before first paint are unchanged. diff --git a/.changeset/35455-console-preload-chunks.md b/.changeset/35455-console-preload-chunks.md deleted file mode 100644 index 02c856d8680..00000000000 --- a/.changeset/35455-console-preload-chunks.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/console': patch ---- - -perf(console): a page load requests the code it needs in one wave - -Clause-②: no -Metadata-protocol: none - -The console's built `index.html` named five of the files every page load runs; the browser found the rest only after downloading and parsing the files that import them, wave after wave, before the first authenticated request could leave. Opening a list or a record page did the same with the page's own code: the route chunk's imports arrived level by level, and the page asked for its data after the last one. Each wave is one more round trip, which is what a hosted console far from its users pays for. - -`index.html` now preloads every file a page load runs, and opening a page preloads the whole closure of that page's code beside the page chunk. Nothing is downloaded that was not downloaded before, and nothing moves between chunks; only the time a file is requested changes. A build-time check fails the console build when a file a load needs would again be found only after the file that imports it. diff --git a/.changeset/35455-console-record-route-package-list.md b/.changeset/35455-console-record-route-package-list.md deleted file mode 100644 index 6c2063d3a4c..00000000000 --- a/.changeset/35455-console-record-route-package-list.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/console': patch ---- - -perf(console): a record page asks its app's object list beside the page list, not after it - -Clause-②: no -Metadata-protocol: none - -Opening a record page inside an app read the page list first and asked the app's object list only once that answer had landed, so the record's data waited one more round trip than a list page's. Both outcomes of the page list read that object list first, so it now leaves in the same round trip as the page list: the same request, earlier. When the app bundle already says it cannot name the record's related objects (no bundle, a draft preview), nothing is started early, and the record page reads exactly what it read before. diff --git a/.changeset/35472-section-nav-jump-bar.md b/.changeset/35472-section-nav-jump-bar.md deleted file mode 100644 index beb68eb5805..00000000000 --- a/.changeset/35472-section-nav-jump-bar.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@object-ui/plugin-form': patch -'@object-ui/components': patch ---- - -fix(plugin-form): a grouped record dialog's section bar is a jump bar, not tabs: it is hidden when the sections fit, and a click marks the section it jumped to - -Clause-②: no -Metadata-protocol: none - -A create or edit dialog for an object with field groups and no authored form layout draws every group stacked, with a row of group names above them. That row is a jump bar: a click scrolls the form to the group. It was drawn as underlined tabs, so users expected a click to switch the content, and when every group fit the dialog a click had nothing to scroll and only the highlight moved, which looked like tabs that do not work. - -- The bar is drawn as jump links (a `#` glyph and a pill per group), not as underlined tabs. -- The bar is hidden while every group fits the dialog body, and comes back when the content outgrows it (a group unfolding, a field appearing, a smaller window). The dialog header keeps its separator when the bar is hidden. -- A click marks the heading of the group it jumped to for a moment, so a jump to a group already in view still shows where it went. - -The same rules apply to the full-page form's section bar. An authored `tabbed` layout keeps its tab strip, which switches the content as before; collapsed groups, the highlight rule and the error counts are unchanged. Nothing to migrate. diff --git a/.changeset/35474-direct-sign-in-accepts-echoed-state.md b/.changeset/35474-direct-sign-in-accepts-echoed-state.md deleted file mode 100644 index d4030539564..00000000000 --- a/.changeset/35474-direct-sign-in-accepts-echoed-state.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/plugin-auth': patch ---- - -fix(auth): the direct sign-in door accepts the `state` an identity provider passes back after a sign-out - -Clause-②: no -Metadata-protocol: none - -With direct sign-in on and `afterSignOut: 'identity-provider'`, a sign-out that carried a `state` came back from the identity provider's logout to `GET /api/v1/auth/sign-in/direct?state=…`, and the door answered `400 VALIDATION_ERROR` instead of showing the identity provider's sign-in page, so the person was left on an error. The door now accepts one `state` and ignores it: it starts a new sign-in with its own state, as it does without one. A `state` sent twice is still refused `400`, like a repeated `callbackURL`, and any other unknown query parameter is refused as before. The shipped Console sends no `state`, so its sign-out is unchanged. diff --git a/.changeset/35481-dashboards-skill-open-in-list.md b/.changeset/35481-dashboards-skill-open-in-list.md deleted file mode 100644 index 633403a28d8..00000000000 --- a/.changeset/35481-dashboards-skill-open-in-list.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -docs(skills): the dashboards rule says a drill on a relationship-path dimension offers no "Open in list" link today - -Clause-②: no -Metadata-protocol: none - -objectstack-ui's `rules/dashboards.md`, Drilldown: the **Escape hatch — "Open in list →"** bullet said the drill drawer's header always links to the object's full list page. It now adds the exception: today a dimension whose field is a relationship path (`account.industry`) drills into the drawer only, with no link. The drawer still lists the records and a row still opens its record. The list page's `filter[...]` URL has no spelling for a condition on a related record, so the console offers no list destination for that drill instead of a wider list. - -The Reports paragraph of the same section loses its closing clause ("peek the records, click a row to open one, or "Open in list →" for the full list page"). It restated the three bullets above it and repeated the same promise; the paragraph still says reports drill the same way through the identical drawer. Removing it pays for the new sentence: the file is 2 bytes smaller. - -`content/docs/ui/dashboards.mdx` states the same exception in its Drill-down section and in the renderer note below it. No code path changes. diff --git a/.changeset/35483-approval-band-once.md b/.changeset/35483-approval-band-once.md deleted file mode 100644 index e18b0c813cb..00000000000 --- a/.changeset/35483-approval-band-once.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/plugin-detail': patch ---- - -fix(plugin-detail): a laid-out record page whose first details block draws no body still shows the approval band - -Clause-②: no -Metadata-protocol: none - -The laid-out record page draws the record's approval band ("Locked for approval" / "In approval · editable", with its recall lever and tally) once per page. It used to give the band to the first `record:details` node of the details column and tell every later one not to draw it, so on a slotted page whose `details` slot puts first a `record:details` the reader may not see (its `requiredPermissions` withheld) or one that draws its own header (`showHeader: true`), a locked record showed no band at all. The details column now draws the band by the first details body that reaches its place, the rule a page drawn as written already follows: the next part draws it. Every other page reads as before, the band stays above a body table, and whether the band reads locked or editable (a `lockRecord: false` approval node) is unchanged. diff --git a/.changeset/35488-standard-unit-table-sys-unit.md b/.changeset/35488-standard-unit-table-sys-unit.md deleted file mode 100644 index 428b1754e4b..00000000000 --- a/.changeset/35488-standard-unit-table-sys-unit.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@objectstack/spec': patch -'@objectstack/platform-objects': patch -'@objectstack/plugin-security': patch -'@objectstack/cli': patch ---- - -feat(spec, platform-objects): the standard unit table and the organization unit object `sys_unit` (ADR-0158 U1–U3) - -Clause-②: yes (widening) -Metadata-protocol: none - -Units of measure, first release (ADR-0158 U7 R1). Nothing reads these tables yet: the unit declaration on a `number` field, the write-time membership check and the display of a quantity with its unit ship with their own cards. No field key ships here. - -- **`@objectstack/spec`** (`@objectstack/spec/data`) exports `STANDARD_UNITS`, a closed table of 41 UN/ECE Recommendation 20 codes. Each code carries its dimension (`UNIT_DIMENSIONS`: `mass`, `length`, `area`, `volume`, `time`, `count`, `package`) and its ratio to the dimension's base unit (`UNIT_DIMENSION_BASE_CODES`: `KGM`, `MTR`, `MTK`, `MTQ`, `SEC`, `H87`), as an exact decimal string: `1 CODE = ratio × BASE`. Package codes (`XBX`, `XCT`, `XPX`, …) carry no ratio. The piece is `H87`; `C62` and `EA` are not members. `ORGANIZATION_UNIT_CODE_PATTERN` is the namespace of an organization's own codes (uppercase letters, digits and underscores, at least 4 characters or containing an underscore), which no standard code can match. `PLATFORM_OBJECTS_BY_PACKAGE['platform-objects']` gains `sys_unit`. The table is not a value domain: `ValueDomainSchema` keeps its three members. -- **`@objectstack/platform-objects`** registers `sys_unit` (Setup → Configuration → Units of Measure), an organization's own units: `code`, `label`, `dimension`, `ratio` (scale 12; required on every dimension but `package`, refused on `package`), `decimal_places` (a display default) and `retired`. It is organization-owned behind the tenant wall and ships no rows. A code outside the organization namespace is refused, the code is unique within the organization, and the code and dimension cannot change after create. A unit is retired instead of deleted, and retiring cannot be undone, so a code is never created again with another meaning; the data API serves no delete on it. Every column carries field history. -- **`@objectstack/plugin-security`**: `member_default` reads `sys_unit`, so a unit's label displays to every member; organization administrators write it through their existing grant. -- **`@objectstack/cli`**: the organization-ownership inventory lists `sys_unit` as attributed to its organization. diff --git a/.changeset/35489-unit-config.md b/.changeset/35489-unit-config.md deleted file mode 100644 index 8980813945a..00000000000 --- a/.changeset/35489-unit-config.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/objectql': minor -'@objectstack/plugin-security': minor -'@objectstack/metadata-core': minor -'@objectstack/driver-sql': minor -'@objectstack/platform-objects': patch ---- - -feat(units): a number field declares its unit with `unitConfig`, and the engine checks every unit code it stores - -Clause-②: yes -Metadata-protocol: added - -ADR-0158 R1, the membership card (#35489). - -**`unitConfig` on a field** (`@objectstack/spec`, `UnitConfigSchema`): - -- `{ unitMode: 'fixed', unit: 'KGM' }` on a `number`: the quantity is always in one standard UN/ECE Recommendation 20 unit, checked at parse against the standard unit table (exact uppercase; `C62` and `EA` are answered with the piece, `H87`). -- `{ unitMode: 'record', unitField: 'uom', unitDimension?: 'mass' }` on a `number`: each record names its unit by code in the sibling `text` field `unitField` names. The object refuses a pointer into nothing, into a non-`text` field, through a parent (`PARENT_FIELD.UNIT_FIELD` is reserved: a child cannot follow its parent's unit yet), or into a field carrying its own marker, and two quantities sharing one unit field with different `unitDimension` values. -- `{ unitMode: 'code', unitDimension?: 'count' }` on a `text`: a field holding a unit code with no quantity beside it, such as a material's base unit (Open item 8, ruled A). It is a unit marker, not a value domain, and is refused beside a `valueDomain`. -- `unitMode` is required and has no default. The key is refused on every other field type (`currency`, `formula`, `summary` included). A quantity stays a bare number, and needs no `scale`. - -**The write check** (`@objectstack/objectql`): at every insert, by-id update, predicate update and `validate()` preview, a unit code the row stores must be a standard code or one of the organization's own non-retired units (`sys_unit`), in exact uppercase and of the declared `unitDimension`, and a quantity may not stand beside a blank code. The row image is judged whenever the write touches the quantity or its unit field (Open item 9). Refusals, each 400, registered in the error-code ledger: `ERR_UNIT_CODE_REQUIRED`, `ERR_UNIT_CODE_UNKNOWN`, `ERR_UNIT_CODE_RETIRED`, `ERR_UNIT_DIMENSION_MISMATCH`. A row resting on a code that is no longer a member stays editable in its other fields; a quantity edit beside it is refused until the row moves to a member unit. - -**A unit is retired, never deleted**: the engine refuses a delete of a `sys_unit` row for every caller, a system writer and an automation run included, by id and batched (405 `ERR_UNIT_DELETE_REFUSED`), and `organization_admin` names `sys_unit` explicitly with no delete (`@objectstack/plugin-security`). - -`@objectstack/metadata-core` and `@objectstack/driver-sql` classify the new field key (field-level security keeps it; the DDL does not read it). `@objectstack/platform-objects`: the `sys_unit` docblock names its readers. diff --git a/.changeset/35491-unit-raw-aggregate.md b/.changeset/35491-unit-raw-aggregate.md deleted file mode 100644 index c8b84250e9b..00000000000 --- a/.changeset/35491-unit-raw-aggregate.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@objectstack/objectql': patch -'@objectstack/service-analytics': patch ---- - -feat(units): a raw total over a `record`-mode quantity is refused unless it groups by the quantity's unit field - -Clause-②: yes (widening) -Metadata-protocol: none - -ADR-0158 U7 R1, mirroring ADR-0144 D6 and its record-currency doors. A `number` field declaring `unitConfig: { unitMode: 'record', unitField }` holds a bare quantity whose unit is each row's code in `unitField`. Before this change, `sum` over a row of 10 KGM and a row of 10 LBR answered `20`, and a `summary` roll-up over such child rows stored `20`. - -- **The engine aggregate** (`@objectstack/objectql`, `ObjectQL.aggregate`): `sum`, `avg`, `min` or `max` over such a quantity is refused `INVALID_FIELD` / 400 before any driver is asked, unless the query's `groupBy` includes the quantity's `unitField`. The message names the quantity, its unit field and the grouping to add. -- **A `summary` roll-up** (`@objectstack/objectql`, object registration): a `summary` that rolls up `sum`, `avg`, `min` or `max` of such a child quantity is refused `INVALID_METADATA` / 422, whichever object registers second. In R1 every such roll-up is refused: a child quantity cannot follow its parent's unit yet. Roll up with `function: 'count'`, or total the quantity with an aggregate grouped by its unit field. -- **Analytics** (`@objectstack/service-analytics`): a dataset or cube measure of type `sum`, `avg`, `min` or `max` over such a quantity is refused `INVALID_FIELD` / 400 unless the query has a dimension over the unit field, on every cube path (declared, inferred, augmented), every `totals` grouping and the draft preview. -- **The widening.** `AnalyticsServiceConfig.sourceFieldMeta` may answer one more optional key, `unitField`: a `number` field's `unitConfig.unitField`, under `unitMode: 'record'` only. `AnalyticsServicePlugin` relays it for a `number` under `unitMode: 'record'` and for nothing else. A host that does not answer it gets no record-unit judgment from the cube door; the engine aggregate door still refuses the same query on the ObjectQL strategy. - -Not judged: `count` and `count_distinct`, a `fixed`-mode quantity, and a `number` field with no `unitConfig`. No new error code. diff --git a/.changeset/35492-unit-code-backfill.md b/.changeset/35492-unit-code-backfill.md deleted file mode 100644 index 238cb4c17be..00000000000 --- a/.changeset/35492-unit-code-backfill.md +++ /dev/null @@ -1,51 +0,0 @@ ---- -'@objectstack/objectql': minor -'@objectstack/cli': minor -'@objectstack/rest': minor -'@objectstack/metadata-protocol': minor -'@objectstack/spec': minor ---- - -feat(units): `os migrate unit-codes` converts stored unit text into unit codes, from the operator's mapping - -Clause-②: yes -Metadata-protocol: added - -ADR-0158 U7 R1, the backfill door (#35492). It is the twin of `os migrate record-currency-codes`. - -**What it is for.** A field declared a unit code field after its rows were stored still holds free text such as `kg`, `公斤` or `lbs`. Since #35489 the engine checks each unit code it writes, so editing a quantity beside such a value is refused until the row holds a code. This door converts those rows in one run. - -**`backfillUnitCodes`** (`@objectstack/objectql`, also exported: `formatUnitCodeBackfillReport`, `unitCodeBackfillComplete`, `unitCodeMappingOf` and the report types): - -- **Which field.** `field` names the unit code field: the `text` field a quantity's `unitConfig.unitField` names, or a standalone `unitConfig: { unitMode: 'code' }` field. If you name the quantity, the refusal is `INVALID_FIELD` and names the field to use. -- **The mapping.** It is the operator's, never derived. It maps stored text, exactly as written, to a unit code. Matching is exact: `kg ` and `KG` need their own entries. -- **Targets are judged before any row is read**, as the write would judge them. A target that is not a standard UN/ECE Recommendation 20 code or one of the organization's own units, a retired unit, or a unit of another dimension than the field's `unitDimension` is refused `INVALID_FIELD` / 400 on the field. With no organization named, organization codes are judged in each organization the run would write them in, still before any write. -- **Rows already holding a unit code are never rewritten**, so the run is idempotent: a second apply run writes nothing. That includes a unit the organization retired and a code of another dimension. Both are codes, not free text, and rewriting them from a mapping would change what the stored quantity means. Neither is a code the field admits: beside a quantity, the write check refuses each at the row's next quantity edit; a standalone unit field has no quantity, so the next write of the field must carry another code. So they are listed as `retired` and `other-dimension` and counted apart (`skippedRetired`, `skippedOtherDimension`), never as a code the field admits. -- **A blank unit beside a quantity** is written only from an explicit `""` entry; without one it is counted (`blankBesideQuantity`) and named in the report. A blank unit with no quantity is left alone. -- **Complete.** `unitCodeBackfillComplete` answers true only when every row holds a unit code the field admits: no unmatched value, no blank beside a quantity, no retired unit, no code of another dimension, no failed or unexamined row. The report prints its ✓ line only then. -- **Dry run by default.** It lists each distinct stored value with its row count and what the mapping does with it, and writes nothing. With no mapping, the listing shows which spellings to map. -- **Unmatched values.** An apply run that meets a value with no mapping entry is refused `VALIDATION_ERROR` / 400 on `mapping` before any write. The refusal names each value with its row count, and carries them as `unmatched`. -- **Scope.** Scope is `organizationId` or `allOrganizations`, as on the currency backfill. An unscoped run over the rows of several organizations is refused with each organization's counts. -- **Writes.** Each row is written through `engine.update` as a system write, so the unit check judges every converted code. - -**`os migrate unit-codes --object O --field F [--map-file mapping.json] [--org ID | --all-organizations] [--apply] [--yes]`** (`@objectstack/cli`): - -- It has the precedent's confirmation and exit behaviour: `--apply` asks first, and exits 1 under `--json` or with no terminal unless `--yes` is given. -- A mapping file that is not JSON, or a mapping the engine refuses as malformed, is refused before the occupancy probe, the prompt and the boot. -- Any refusal exits 1. Under `--json` it carries the code, the HTTP status, and `unmatched` or `organizations` where those apply. -- It closes with a ✓ only when `unitCodeBackfillComplete` holds. A run that leaves a blank beside a quantity, a retired unit or a code of another dimension closes with a warning naming what is left. - -**`POST /api/v1/meta/_migrate-unit-codes`** (`@objectstack/rest`) is the tenant-admin twin of `_migrate-record-currency-codes`. - -- Its body is `{ object, field, mapping?, apply? }`, and any other key is refused 400. -- It sits behind `metadata.endpoints.maintenance` and requires `setup.write`. It converts the caller's current organization only, and is a preview unless `apply: true`. -- The report is the `data` of the shared envelope. A refusal over unmatched values answers 400 with `error.details.unmatched`. - -**The unit refusals name the door** (`@objectstack/objectql`). The `ERR_UNIT_CODE_REQUIRED` and `ERR_UNIT_CODE_UNKNOWN` refusals of a quantity written beside a stored value the write did not supply now end with the remedy: the `os migrate unit-codes` command for that object and field, or the REST door. The refusal of a blank names the `""` entry. A refusal of a code the caller wrote carries no remedy. - -**A metadata save that makes a stored field a unit code field is a destructive change** (`@objectstack/metadata-protocol`, `@objectstack/spec`). The detector judges the declaration and reads no row. Two findings sit beside `currency_mode_to_record` on the 409 `DESTRUCTIVE_CHANGE`, and `force: true` lifts them: - -- `unit_code_field_declared`, on the code field: a stored field that is a unit code field after the save and was not one before. Any declaration can do it: a quantity, new or stored, whose `unitField` names the field; a `unitField` re-pointed at it; or its own `unitMode: 'code'`. A field that already was a unit code field raises nothing. -- `unit_mode_to_record`, on the quantity: a stored quantity switched to `unitMode: 'record'`, whatever its `unitField`'s history (a unit code field already, or a field new in the same save). It names the blank units beside the quantity and the `""` entry that writes them. It is not raised when the same save raises `unit_code_field_declared` on that `unitField`, since that finding names the quantity, its blanks and the `""` entry, so each debt is reported once. - -Each names the conversion run for that object and code field, CLI and REST. diff --git a/.changeset/35493-value-source-operator-map-comparand.md b/.changeset/35493-value-source-operator-map-comparand.md deleted file mode 100644 index d2b574228ec..00000000000 --- a/.changeset/35493-value-source-operator-map-comparand.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -'@object-ui/core': patch ---- - -fix(core)!: the value data source refuses a plain-object comparand with no `$` key, empty or not, in both filter dialects - -Clause-②: no (narrowing) -Metadata-protocol: none - -<!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is the row set `ValueDataSource.find` answers, in its object and its AST dialect, for a filter whose comparand the spec's doors already refuse: no stored row, registry key or authored value changes, so there is nothing for a migration to rewrite and no tombstone. --> - -**BREAKING** for `ValueDataSource` (the in-memory `provider: 'value'` data source) given a filter whose comparand is a plain object (prototype `Object.prototype` or `null`) with no `$` key, NON-EMPTY such as `{ owner: { $ne: { id: 'u1' } } }` or EMPTY such as `{ owner: { $ne: {} } }`, as the whole comparand or as a member of an `$in` / `$nin` / `$between` list, in either dialect. - -- FROM: such an object was compared as a value, by reference or as the text `[object Object]`. - - Whole comparand: `$ne` and `$notContains` answered every row; `$gt` / `$gte` answered the rows whose value sorts after `[object Object]` and `$lt` / `$lte` the rows sorting before it; `$eq`, `$in`, `$nin`, `$between`, `$contains`, `$startsWith` and `$endsWith` answered no row, with nothing logged. - - List member: `$nin` answered every row; `$in` answered the rows its other members matched; `$between` read the object as the text `[object Object]` and answered the rows in the text range up to its other endpoint (`[{ id: 'u1' }, 'zzz']` answers a `'zeta'` row). - - The AST dialect answered the same for a list member (`['owner', 'nin', [{ id: 'u1' }]]` every row, `in` and `between` likewise), and for an empty object as the whole comparand (`['owner', '!=', {}]` every row). -- TO: both dialects refuse it, for every operator of the spec's `FILTER_OPERATORS` except the three flag operators (`$null`, `$exists`, `$empty`). The rows are excluded and the reason is logged once. A non-empty object gets `filter condition on field 'owner' carries the non-operator key 'id'; the in-memory matcher does not descend into a nested relation constraint`; an empty one, which has no key to name, gets `filter comparand on field 'owner' is an empty object ({}), which is neither a comparison value nor a nested relation constraint`. A server-backed source already refused these filters with `INVALID_FILTER`: the spec's comparand door (`normalizeFilterComparandTypes`) refuses the object as a scalar operator's comparand and as a list member, and `assertListComparandShapes` refuses a whole object under a list operator. -- A class instance given as a field's whole condition, such as `{ created: someMomentDate }`, is now read as a value, not as an operator map. The whole filter is refused up front in the filter converter's words (`The filter on field 'created' carries a Moment instance (…) in comparand position`, the class name and the value's text), as the zero-key condition `{ created: {} }` is and as the server refuses it. Before, each of its own keys was refused as a nested relation per row, so on its own it answered no row, but inside `$or` the other branches still answered: `{ $or: [{ owner: 'Alpha' }, { created: someMomentDate }] }` answered the `'Alpha'` rows, and now answers none. - -**Not moved.** A scalar, a `Date`, a `{ $field }` reference and a class instance under an operator (a moment or luxon date, a decimal object under `$gt`, compared through its `valueOf`) are still compared. `{ owner: {} }` as a field's WHOLE condition keeps the converter's empty-operator-map refusal. `$empty` keeps its own boolean-flag refusal, `$null` / `$exists` still read their flag's truthiness, and a key outside `FILTER_OPERATORS` keeps the refusal it had. - -The fix for a caller: a filter on a related record's field is not executed by the in-memory source. Filter on a scalar column of the row itself, or compare with a scalar, a `Date` or a `{ $field }` reference. diff --git a/.changeset/35494-nested-relation-hop-docblock.md b/.changeset/35494-nested-relation-hop-docblock.md deleted file mode 100644 index 1ac9519e540..00000000000 --- a/.changeset/35494-nested-relation-hop-docblock.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/spec': patch ---- - -docs(spec): the `FilterCondition` nested-relation docblock states the engine's three-relationship limit - -Clause-②: no — comment-only edits in packages/spec; no schema, export or accept set moves -Metadata-protocol: none — no metadata key is touched - -`@objectstack/spec`: comments only, in `src/data/filter.zod.ts`, which the package ships as source. The nested-relation form (`{ relation: { field: value } }`, form 4 on `FilterCondition`) and its three one-line mentions said the engine serves it one level deep; they now say up to three relationships deep (ADR-0071's 3-hop limit, `RELATION_CONDITION_MAX_HOPS` in objectql), with a condition past the third relationship refused as `INVALID_FILTER` / 400, and name the platform-provisioned `id`, `created_at` and `updated_at` beside the related object's declared fields as admitted keys. diff --git a/.changeset/35496-skills-teach-five-landed-behaviours.md b/.changeset/35496-skills-teach-five-landed-behaviours.md deleted file mode 100644 index 792f668b5bb..00000000000 --- a/.changeset/35496-skills-teach-five-landed-behaviours.md +++ /dev/null @@ -1,35 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -docs(skills): the data, query and ui skills teach five landed refusals and behaviours - -Clause-②: no -Metadata-protocol: none - -Five pieces of published skill text, one per landed behaviour the skills did not teach. Each comes with its own eval case. - -**The `{current_iso_week}` period key.** objectstack-query's `rules/filters.md`, section "Date Macros", now names the period key beside the date macros and the session tokens. `{current_iso_week}` (or `${current_iso_week}`) resolves to today's ISO week key, `YYYY-Www`, in the workspace time zone: Monday-start weeks, the ISO week-year at year edges. It is text, for a text field that stores week keys. A `date`, `datetime` or `time` field refuses it with `INVALID_FILTER` / 400, as it refuses the literal key; a date dashboard filter's `defaultValue` and `calendar.initialDate` refuse it too. On a date field write `{current_week_start}` / `{current_week_end}`. The section also names `resolveFilterPlaceholders()` as the client resolver for all three vocabularies and `isKnownFilterToken()` as the one spelling check. One eval case covers the text-field / date-field split. - -**A hook or job `js` body that does not compile is refused.** objectstack-data's `references/data-hooks.md`, "Sandbox restrictions": - -- A new bullet says a `js` source is compiled, without being run, inside the `(async (ctx) => { … })` wrapper the runtime runs it in, where `ctx` is already declared. `const ctx = ctx.input || {};` (or `let ctx`, one name declared twice, any syntax error) is `hook-body-does-not-compile`: an error from `os validate`, `os build`, `os lint` and a runtime hook save (`422 INVALID_METADATA`), naming the hook, the `SyntaxError` and its line. The fix is to use `ctx` as it is or rename the local (`const input = ctx.input || {};`). A job's `js` body runs in the same wrapper and is `job-body-does-not-compile` from the three commands. A regular-expression pattern the checking engine refuses is a warning: the runtime may accept it. -- Six restatements in the same file were removed to pay for the new text; the file is four lines shorter and no larger in tokens than before. - -`evals/hooks-security-seeds-datasources.json` gains one case on the refusal and its fix. - -**A seed record with a blank key field is refused at load, and a saved seed naming an unknown object is refused 422.** objectstack-data's `references/seeds.md`: - -- "`externalId` selection" says every record carries a value for each `externalId` field (each field of a list, or `name` when the seed names none), and that a record leaving one blank (no value, `null` or `''`; whitespace is a value) is refused at load in every mode: the load result names the object, the record index, the field and the fix, and the other records still load. The `externalId` row of the field table points at it. -- The note under the field table says a `seed` saved at runtime names its `object` itself, and that one resolving to nothing is refused with `422 INVALID_METADATA` at `object` ("which is not defined"). The fix is the object's full name (`crm_lead`, not `lead`) or creating the object first: a draft of it is enough for a draft seed, a live seed needs it published. The `object` row points at the note. -- Three restatements in the same file were removed to pay for part of the new text: the `columns` row's shape literal, the one-row best-practices table (now a sentence) and the second telling of what a refused seed value leaves behind. - -`evals/hooks-security-seeds-datasources.json` gains one case on each refusal. - -**A `master_detail` child is a record-page body table by default.** The record page draws a `master_detail` child as a full-width body table whenever its FK declares no `relatedList`. The skills still tied that to `inlineEdit`. They now teach the rule the runtime applies. - -- objectstack-data's `rules/relationships.md`, "Detail-page related lists": a `master_detail` child is a body table by default and a `lookup` child is a panel. `inlineEdit` governs entry in the parent's form only. The `relatedList` list reads `'primary'` (the `master_detail` default), `true` (the `lookup` default) and `false`. The example no longer writes `inlineEdit` and `relatedList: 'primary'` on a `master_detail` field to get the table. -- objectstack-ui's `rules/record-page.md`, step 2: the same defaults, the body table is drawn after the open field sections (it used to say after the first one), and "put the tasks first" is the parent's `relatedLists`. The example field drops its `relatedList: 'primary'`. -- objectstack-ui's `evals/record-page.json`, case 1: the expected answer adds no placement flag to a `master_detail` field, and an answer that authors `inlineEdit` fails the case. `evals/README.md` follows. - -Both of those rules files are shorter than before, and neither one's token ceiling moves. diff --git a/.changeset/35499-nested-refusal-row-placement.md b/.changeset/35499-nested-refusal-row-placement.md deleted file mode 100644 index 6bc5db4beb8..00000000000 --- a/.changeset/35499-nested-refusal-row-placement.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(console): a refused metadata save draws a nested cause under the row its path names - -Clause-②: no -Metadata-protocol: none - -After a refused save, Studio's metadata form drew an issue under a field only when the issue's path was exactly that field's key. A cause one level down — a label carrying a key that is not a locale (`label.not_a_locale`), a nested predicate's part, a list column's sub-field (`columns.0.field`) — lit no field at all, and since the server stopped sending the bare "Invalid input" head at the field's own key, about 25 keys across 12 metadata types showed no red line after a refused save. - -An issue is now drawn on the deepest field the form shows for a prefix of its path, for every issue source (the server's refusal, the live check, load-time diagnostics): - -- a field draws a deeper issue itself, led by the path's trail (`Label → not_a_locale: …`, `Columns → #1 → field: …`); -- a field rendered as a nested form passes the issue down to the nested field it names, which draws it as its plain message; -- an issue under a list, map or code field stays on that field, with its trail; an issue under a hidden or canvas-owned key stays in the summary banner, as before. - -One mistake is still one message: the summary banner and the refusal line leave out every issue whose top-level field the form draws it under. In a new item's form, a nested field's issue shows exactly when its parent field's does. - -The Save button's reason for a refused draft no longer starts with a comma when the server also refused the document as a whole: the whole-document entry is not named as an empty field, and a refusal of only the whole document names its own message. - -No locale keys, props or exports change. diff --git a/.changeset/35505-approval-host-app.md b/.changeset/35505-approval-host-app.md deleted file mode 100644 index 3cd5874880c..00000000000 --- a/.changeset/35505-approval-host-app.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@object-ui/console': patch ---- - -fix(console): an approval request opened with no source app stays in an app instead of landing in Setup - -Clause-②: no -Metadata-protocol: none - -An approval request opened from Home's My work, from the bell outside an app, from a notification or from the e-mail link used to open under the app whose navigation lists the request's record, and otherwise under Setup. It now opens in this order: the app that lists the record's object, then the current app, then the app the person last used, then the first app they can open. Setup is the answer only when it is the current or the last used app. The server's `/system/approvals?request=ID` link, which forwards through `/apps/setup/system/approvals`, moves on to that app too, and so does the approvals inbox opened there without a request. - -On the request page reached this way, the close button and the phone's back link return to the approvals inbox of that app, not to the raw approval request list. A request opened from Home or from the bell is handed the pending queue they list, so the page counts through it and "Open next after deciding" moves on to the next request. The e-mail link and a notification carry only the way back. - -`/apps/com.objectstack.setup/system/approvals`, Setup's own address, is unchanged. diff --git a/.changeset/35507-grid-entry-row-header-help.md b/.changeset/35507-grid-entry-row-header-help.md deleted file mode 100644 index ab34cb26d5a..00000000000 --- a/.changeset/35507-grid-entry-row-header-help.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@object-ui/fields': patch -'@object-ui/plugin-form': patch ---- - -fix(fields): the inline line grid draws no blank entry row beside "Add line", and each column header shows its field's help - -Clause-②: no -Metadata-protocol: none - -The inline line grid of a master-detail form always drew an empty line under the lines, directly above the "Add line" button. It had no copy or remove action and was never saved, so users read it as a broken line they could not delete. The grid no longer draws it: a grid with lines shows exactly its lines, and an empty grid says "No items yet — click "Add line" to begin." The keyboard path that line carried stays: "Add line" moves focus into the line it adds, and Enter in the last line adds a line and moves to the same column in it. An empty required grid that the form refused still draws one entry line, so the field's failure stays on the cells a user types into. - -Each column header now shows its field's help as an info icon beside the label. The help appears on hover and on keyboard focus, and it is the icon's accessible name. The text is what the record form shows under the same field: `inlineHelpText`, else `description`, from the child object's definition as the server serves it, so help written by another package's `objectExtensions.fieldPatches` and the reader's language both apply. `GridField` takes the texts as a new `columnHelp` prop, and `columnHelpByField` builds them from a child object's fields. The master-detail form, the line-items panel and the record-body table editor pass them. - -What does not change: what a save sends, the `allowAdd` / `allowDelete` / `maxRows` behaviour, and every metadata key, value and default. A master-detail entry whose relationship and every column type are authored loads no child schema, so its headers show no help, as it has no lookup autofill. diff --git a/.changeset/35512-text-call-shapes.md b/.changeset/35512-text-call-shapes.md deleted file mode 100644 index b084e4a66de..00000000000 --- a/.changeset/35512-text-call-shapes.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@objectstack/spec': minor ---- - -fix(spec): the save door refuses an undeclared text key asked for as `ctx.text?.('k')`, as it already did for `ctx.text('k')` - -Clause-②: no (narrowing) -Metadata-protocol: narrowed - -**BREAKING** for a hook that declares `texts` and whose code asks for a key `texts` does not declare through the optional call `ctx.text?.('k')`. Action `texts` is read the same way from the release that introduces it, so no released action is affected. - -- FROM: `HookSchema` refused a key asked for literally and not declared in `texts` only for the plain call `ctx.text('k')`. `ctx.text?.('k')` and `await ctx.text?.('k')` with an undeclared key parsed green, and the runtime refused the key only when the hook ran. -- TO: the optional call is refused at save with the sentence the plain call already gets, at `body.source` for a `js` body or at `handler` for an in-process handler. Whitespace or a line break around `?.` is read too. -- Fix: declare the key under `texts.KEY` with the sentence the record keeps, or ask for one of the declared keys. A declared key is accepted in both shapes. - -A key that arrives any other way (a variable, a computed name) is still judged when the code runs. - -<!-- adr-0087: registered hook-action-text-key-optional-call-refused --> diff --git a/.changeset/35525-analytics-disabled-package.md b/.changeset/35525-analytics-disabled-package.md deleted file mode 100644 index c931f675126..00000000000 --- a/.changeset/35525-analytics-disabled-package.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -'@objectstack/service-analytics': patch -'@objectstack/spec': patch ---- - -fix(service-analytics)!: the analytics doors refuse an object of a disabled package with the data route's `404 OBJECT_PACKAGE_DISABLED` - -Clause-②: yes (narrowing) — the exported `AnalyticsServiceConfig` (`@objectstack/service-analytics` root) gains the optional key `isObjectPackageDisabled`, and the analytics doors newly answer `404 OBJECT_PACKAGE_DISABLED` for an object of a disabled package, which they answered `200` with data before -Metadata-protocol: none -Skills-docs: none — no page under `skills/` teaches what analytics answers for a disabled package's object; the refusal carries the data route's own sentence, which names the fix - -<!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no stored row, registry key or authored value changes. What moves is the answer the analytics doors give for an object whose owning package is disabled, an answer that returns to what it was the moment the package is re-enabled; there is nothing for a migration to rewrite and no tombstone. --> - -**BREAKING** for a caller that queries a disabled package's object through analytics. A package disable takes the package's objects off the data plane (`GET /api/v1/data/:object` answers `404 OBJECT_PACKAGE_DISABLED`), but the analytics service asked only whether an object exists and whether it is exposed, never the registry's disabled-package predicate. - -- FROM: `POST /api/v1/analytics/query` (and `/analytics/sql`, and the dataset door behind dashboards and the AI dataset tools) answered `200` for a disabled package's object: an authored or inferred cube's counts and sums, its field values as group keys, and an enabled object's relationship hop into it. `GET /api/v1/analytics/meta` still listed a cube over it, and a lookup dimension's label pass still read its records' display names. -- TO: every analytics door refuses a query whose read set (the cube's base object, a declared join, or a relationship hop) holds an object of a disabled package with `404 OBJECT_PACKAGE_DISABLED`, naming the object, in the data route's words, for every caller (system included, as on the data route). A declared join counts even when the query does not use it, the same read set the exposure and permission gates already judge. `GET /api/v1/analytics/meta` leaves such a cube out (by name it answers an empty list, as for a hidden cube), and a lookup dimension's label is withheld, so the stored id renders, as the data route's `$expand` withholds the target. - -**Not moved.** An enabled object queried on its own is served while another package is disabled. A registry that cannot answer the question hides nothing. Re-enabling the package serves every read again, and nothing is cached. - -A host that constructs `AnalyticsService` by hand, instead of through `AnalyticsServicePlugin`, must wire the new `isObjectPackageDisabled` config key (the registry's disabled-package predicate, for example `registryObjectPackageDisabled(engine.registry)` from `@objectstack/core`), or its analytics doors stay ungated for a disabled package's objects. - -The error-code ledger records the code under `@objectstack/service-analytics` too (a provenance row: the set of registered codes is unchanged). - -The fix for a caller: re-enable the package, or query only objects of enabled packages. diff --git a/.changeset/35526-calldata-relation-disabled-package.md b/.changeset/35526-calldata-relation-disabled-package.md deleted file mode 100644 index b4af7af430d..00000000000 --- a/.changeset/35526-calldata-relation-disabled-package.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@objectstack/runtime': patch -'@objectstack/metadata-protocol': patch ---- - -fix(runtime)!: `callData`'s aggregate arm and no-protocol query fallback refuse a relation condition on a disabled package's object, the answer the data route already gives - -Clause-②: yes (narrowing: adds the root export `objectPackageDisabledError` to `@objectstack/metadata-protocol`; for a non-system caller, `callData`'s `aggregate` arm and its `query` fallback on a host with no protocol service refuse a nested-relation condition whose target belongs to a disabled package with 404 `OBJECT_PACKAGE_DISABLED`, where they answered the count or the matching rows) -Metadata-protocol: none - -<!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed or renamed, and nothing stored is rewritten: the moved answer is what the data route already answers for a relation condition on a disabled package's object. A caller that needs those records re-enables the package. --> - -**BREAKING** for a non-system caller of `callData` on an environment that disables a package: the `/mcp` HTTP bridge's `aggregate_records` tool, and any host door that hands a caller's `where` to this function. A disable takes the package's records off the data plane: the data route answers its objects `404 OBJECT_PACKAGE_DISABLED`, and it refuses a nested-relation condition (`{ "lookup": { "field": VALUE } }`) on such an object the same way. `callData`'s `aggregate` arm never reaches the protocol, and on a host that registers no protocol service neither does its `query` fallback, so both still lowered the condition through the engine: a count came back 1 for the stored value and 0 for any other, a yes/no answer on a field of an object nobody may read. - -- FROM: the condition was evaluated and the count (or the matching rows) returned. -- TO: a condition directly beneath a lookup of the queried object is refused `404 OBJECT_PACKAGE_DISABLED`, naming the disabled object as `object` and the condition's position as `param` (for example `where.b_ref`), before the engine reads anything. The error is the data route's own. - -The fix: re-enable the package to filter on its records again, or filter on the lookup's stored id. An environment with no disabled package sees no change. A system context handed to `callData` is not changed by this entry: it is still answered the count. (A hook's `ctx.api` is not such a caller: it reaches the engine directly and never passes through `callData`.) - -`@objectstack/metadata-protocol` now exports `objectPackageDisabledError`, the one constructor of that refusal, so the runtime raises the same error instead of a copy. No behaviour of that package changes. diff --git a/.changeset/35530-inbox-window-indexes.md b/.changeset/35530-inbox-window-indexes.md deleted file mode 100644 index cbba4ac6a38..00000000000 --- a/.changeset/35530-inbox-window-indexes.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@objectstack/service-messaging': patch ---- - -perf(service-messaging): the inbox feed's receipt window read is served by an index - -Clause-②: no -Metadata-protocol: none - -The Console bell polls a user's `sys_notification_receipt` rows on the `inbox` channel every 10 seconds, newest first, top 20. The table had no key that leads on `user_id` and `channel` and continues with `created_at`, so each poll collected and sorted the user's whole receipt history. It now declares `(user_id, channel, created_at)` beside its two existing indexes. - -Measured on SQLite with 56,000 receipts: the read went from about 3 ms to 0.1 ms for a user with 5,000 inbox receipts, and from about 2 ms to 0.1 ms for a user with 3,000 older ones. The plan changes from sorting the user's whole range to searching the new index and stopping at the window. - -On existing databases the next boot creates the index. On PostgreSQL it is built concurrently, because the table already exists. On MySQL it is created where `user_id` and `channel` are already `varchar`, which holds for receipt tables created since those columns declared their bounds. On an older receipt table, the existing `(user_id, state)` index is already refused, so nothing changes there. - -The matching `(user_id, created_at)` index on `sys_inbox_message` is deferred: on existing MySQL tables `user_id` is stored as `TEXT`, which MySQL cannot index, and schema sync never rewrites a column type. diff --git a/.changeset/35534-console-seed-parse-time.md b/.changeset/35534-console-seed-parse-time.md deleted file mode 100644 index 3179a2f39fe..00000000000 --- a/.changeset/35534-console-seed-parse-time.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/console': patch ---- - -fix(console): the language seed's `me/localization` leaves at parse time, beside discovery - -Clause-②: no -Metadata-protocol: none - -On a device's first visit the console's language seed asked `GET /api/v1/auth/me/localization` from the bundle, so the request waited for the whole eager module graph to download and evaluate, about half a second after navigation on a local server and longer on a hosted one. It needs nothing from the bundle except discovery's `locale.supported`, which `index.html` already asks for during parse. A new parse-time script now asks the seed's question the moment that discovery answers, under the seed's own gates (no stored language choice, no cached seed), and leaves the pending response for the seed. The seed takes it once, and only when it is exactly the request it would send itself, `Accept-Language` included, so the page still sends one `me/localization` and the language it picks is unchanged. The seed's 500 ms race and its fallback, the in-flight sharing with the localization provider and the hand-off of the settled answer are unchanged. A failed parse-time discovery sends nothing early, and the seed asks as before. diff --git a/.changeset/35535-list-view-read-starts-with-route.md b/.changeset/35535-list-view-read-starts-with-route.md deleted file mode 100644 index 6a2b27e0988..00000000000 --- a/.changeset/35535-list-view-read-starts-with-route.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -perf(console): an object list's saved-view read starts with the route, not after the list's lazy modules - -Clause-②: no -Metadata-protocol: none - -Opening an object's list (`/apps/APP/OBJECT`, or one of its views) read the object's saved views (`GET /api/v1/meta/view?object=OBJECT`) only once the list page had mounted, which waits for the list's lazy modules to load. On the built console that read left 486-883 ms after the app bundle answered, with no request in flight. The console now starts the same read as soon as the route can render (the app's object scope has settled with the route's object in it), so it runs while those modules load, and the list page joins it when it mounts: still one request per open. The list's first data page is still asked when the list mounts; the saved views are now in hand by then. - -Not started under a draft preview (`?preview=draft`), whose list read is a different request, nor on a route whose object the app does not serve. A record page is unchanged. No props, exports or metadata change. diff --git a/.changeset/35536-list-first-read-once.md b/.changeset/35536-list-first-read-once.md deleted file mode 100644 index 4ffc39ac2aa..00000000000 --- a/.changeset/35536-list-first-read-once.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/plugin-list': patch ---- - -fix(plugin-list): a list page reads its first page once on a cold load, also when the view definitions arrive after the first read - -Clause-②: no -Metadata-protocol: none - -Opening a list no longer sends the same first-page request twice when the saved view definitions answer after the list has already started reading: a host that hands over an equal view again (a fresh `data` block of the same content) no longer re-arms the read. A real change still reads again: the view's filter or sort, a view switch, or the reader's own filter or sort. diff --git a/.changeset/35544-travel-expense-measure-words.md b/.changeset/35544-travel-expense-measure-words.md deleted file mode 100644 index 015983bbce0..00000000000 --- a/.changeset/35544-travel-expense-measure-words.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/scenarios': patch ---- - -fix(scenarios): the `travel_expense` figure questions write the measure's own word, so a governed answer is no longer asked back - -Clause-②: no -Metadata-protocol: none - -Three figure questions of the `travel_expense` card (`paid_reimbursement`, `claims_by_status`, `claimed_last_month`) lifted the word "claims". That word matches no member of the card's datasets. It is a near miss on two `reimbursement` measures, Claimed amount (synonym "expense claims") and Claim count (synonym "number of claims"), so `list_datasets` offers both as candidates and an agent following ADR-0149 D3 asks back instead of answering. This is a card defect: the door behaves as ruled. Each ask now writes a word that matches exactly the measure its truth computes, in English and Chinese: "claimed amount" / 报销金额, "number of claims" / 报销单数, and "expense claims" / 报销金额. The truths, datasets and verified build are unchanged. The build provenance records the new card sha256, so ask-round records split at this card hash. diff --git a/.changeset/35548-list-page-frame.md b/.changeset/35548-list-page-frame.md deleted file mode 100644 index b7cb6162842..00000000000 --- a/.changeset/35548-list-page-frame.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/plugin-list': patch -'@object-ui/plugin-grid': patch -'@object-ui/components': patch -'@object-ui/types': patch -'@object-ui/fields': patch -'@object-ui/i18n': patch ---- - -feat(console): the list page's frame — a 44px page bar, a 40px view bar, a denser grid and per-column totals in the grid's own last row - -Clause-②: no -Metadata-protocol: none - -The object list page is redrawn around two bars and a denser grid (objectstack#35548, the first card of the list-page epic): - -- **Page bar, 44px.** The object's icon in one colour and its name on the left; ⋮ and 「+ 新建」 on the right. The object's description, Import and Favorite moved into ⋮. -- **View bar, 40px.** The view switcher is one trigger on the left, reading the view type's icon, the view name, the record count and a caret (the count beside the name returns, after objectstack#34603 removed it). 「筛选」「排序」「选项」 are text buttons on the right beside the search icon, and open the same panels as before; below `sm` they stay icons. The kanban and every other view type draw the same two bars. An empty condition row under the bar takes no height. -- **Grid.** A 32px header and 33px default rows, 13px on the header, the cells and the bar buttons, faint row lines, no rule after the first column, and the frozen-column shadow only once the grid scrolls sideways. The row ⋮ trigger is 24px so it fits the row. Lookup values read as small chips, money and number columns (a money formula with `returnType: 'currency'` among them) align right with tabular digits, and select labels keep their colour at lower saturation. -- **Totals.** Column summaries are drawn as the table's own last row, each figure under its column (so they line up at any width and are never covered by pinned columns), led by 「计数 N」; the separate footer line and its doubled colon are gone. - -`DataTableSchema` gains one host-only runtime slot, `summaryRow` (`{ lead?, cells }`), which `ObjectGrid` fills; like `rowGroups`, the zod face refuses it by name, so it is not authorable. New locale keys: `list.options`, `grid.summary.countLead`. diff --git a/.changeset/35551-35553-list-options-view-create.md b/.changeset/35551-35553-list-options-view-create.md deleted file mode 100644 index 7d9e25d5116..00000000000 --- a/.changeset/35551-35553-list-options-view-create.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@object-ui/plugin-list': patch -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -feat(list): the list's options panel is a menu of second levels, and the view dropdown creates a view in place - -Clause-②: no -Metadata-protocol: none - -**The options panel (选项) is a menu.** Each row names a setting on the left and shows its current value on the right, and opens a second level: the view name, Layout, Fields (「已显示 N 个」), Grouping, Row color, Row height (紧凑 / 标准 / 宽松), and More (how records open, row numbers, inline edit). On a phone a Sort row is added, as before. The Layout level lists every layout the view offers as one choice each, at any count. The Fields level is the list's shared field list (the one 筛选 and 排序 open), as the view's field manager: a search box on top; the shown fields are listed in their order, can be dragged (or moved with the arrow keys) and hidden by their eye, and the hidden fields sit below, where one click shows a field again or adds a readable field the view does not list. Only fields the reader may read are offered. The footer reads 「恢复默认」 and 「刷新」, and — on one of the reader's own views that differs from what it stores — 「保存」 beside 「恢复默认」, which writes the list on screen into that view (as the 「已个性化」 marker's 保存 does); in the console 「恢复默认」 is the marker's reset, dimmed while there is nothing to restore. The view name at the top is renamed in place by the view's owner, or by an admin on a saved shared view; opening the menu does not put the cursor in it. Fields reorders the grid's columns through the same state a header drag writes, and Row height on a gallery picks its card size by name; every icon button has a name; the developer note under Open records is gone. These settings stay the reader's own preference, stored as before. - -**The view dropdown** keeps its search and lists one row per view, led by its type's icon, with the reader's own views (我的视图) and the shared views in groups of their own; a long name wraps instead of being cut. 「添加视图」 at the bottom turns the dropdown into a create card (the separate 「另存为我的视图」 entry and its name dialog are folded into it; the full Create View dialog stays reachable from 「管理视图」): a name, the view type (with icons), the one field the type needs (kanban: the group field; calendar: the date field), 「包含当前的筛选和排序」 while the list holds unsaved conditions (on by default), and — for a reader who may create shared views — a personal / shared switch. The one field a type needs defaults to one the list shows (a kanban groups by 阶段 on a list that shows it, not by a hidden status-like field). 「创建」 creates one of the reader's own views by default and opens it; a shared view goes through the existing draft-and-publish door unchanged. No machine name is asked for: a unique one is generated from the name. A kanban or gallery created this way lists the view's columns as its card fields, as the add-view door does. - -The fields count label (`list.optionsMenu.fieldsShown`) is a count family in every pack. Keys no surface reads any more are dropped from every pack: `list.recordOpenNote`, `list.recordOpenDeclaredPage`, `view.switcher.all` and `view.switcher.saveAsMyView`. diff --git a/.changeset/35554-list-no-actions-column.md b/.changeset/35554-list-no-actions-column.md deleted file mode 100644 index 0ab2d98cb20..00000000000 --- a/.changeset/35554-list-no-actions-column.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@object-ui/plugin-grid': patch -'@object-ui/plugin-list': patch -'@object-ui/components': patch -'@object-ui/i18n': patch ---- - -feat(list): the object list page has no Actions column; a selection swaps the page bar, and a list with no declared pagination loads as it scrolls - -Clause-②: no -Metadata-protocol: none - -- **No Actions column on the list page.** The list's rows carry no control: no Actions column and no "⋮" at the row end, on hover or at rest. A row's actions are reached by selecting it or by right-clicking it. Grids outside a list page (related lists, page blocks, the record drawer) keep their Actions column and their bottom bulk bar. -- **Selection in the page bar.** Ticking rows swaps the page bar to 「对象名 / 已选 N 条」, Cancel, and the actions for what is selected: one record shows its own row actions, two or more show the bulk actions. The first two are buttons (in the order the actions are declared, by their `order`), the rest are behind "⋮", and Delete is never a button. Cancel, or clearing the selection, brings the page bar back. The bottom bulk bar no longer floats over the list on the list page. -- **Context menu.** In a row's menu (its context menu, and the "⋮" where one is still drawn) Delete is the last item, after a separator, in the danger colour; a selection's menu closes with its destructive actions the same way. -- **Checkboxes.** The whole leading cell toggles a row, and Shift extends the selection over the rows between the last toggled row and this one. -- **Scroll loading.** A grid list view that declares no `pagination` draws no pager: it loads 50 rows and the next 50 as the list nears its end, and shows the match total beside the view name. With every loaded row ticked, the page bar offers 「选择全部 M 条」 (capped at 5000 as before). Opening a record on its own page and coming back returns to the same place in the list. A view that declares `pagination` keeps its pager. Footer totals are still computed by the server over every matching record. diff --git a/.changeset/35566-extension-publish-follow-door.md b/.changeset/35566-extension-publish-follow-door.md deleted file mode 100644 index 01137798169..00000000000 --- a/.changeset/35566-extension-publish-follow-door.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/metadata-protocol': patch ---- - -fix(metadata-protocol): the per-item publish of an `object_extension` draft asks the record-currency follow door its published save asks - -Clause-②: no -Metadata-protocol: none - -`POST /api/v1/meta/object_extension/NAME/publish` (`publishMetaItem`) now asks the registry's record-currency follow door before it promotes an `object_extension` draft, with the same question the published save of that body asks (`PUT /api/v1/meta/object_extension/NAME`): the extension judged as its object will be served, in the slot of the package it is published into. A draft that adds a record-mode amount whose `currencyField` the served object cannot satisfy is refused `422 INVALID_METADATA` with the registry's sentence, the same one the published save answers, and the draft stays a draft. Two shapes reach it: a pointer naming no field of the object (`currencyField: 'zz_missing'`), and a `master_detail`-led pointer to a parent field that is missing or holds no ISO 4217 code (`invoice.title`). - -Before, the publish answered `published`, promoted the draft and registered the amount. Every later write of it was then refused (`ERR_CURRENCY_CODE_REQUIRED`), or, for a pointer to a parent field holding no code, was stored with a value nobody declared as its currency. Nothing an author can save changes: the published save already refused these bodies, and a package publish (`publishPackageDrafts`) already refused them too. To publish such a draft, point `currencyField` at a field that holds the record's ISO 4217 code: a sibling text field declaring `valueDomain: 'iso_4217_currency'`, or `MASTER_DETAIL.CODE_FIELD` on the parent. diff --git a/.changeset/35571-shared-record-ids-leaf.md b/.changeset/35571-shared-record-ids-leaf.md deleted file mode 100644 index 74ca3ab7923..00000000000 --- a/.changeset/35571-shared-record-ids-leaf.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@objectstack/spec': patch ---- - -feat(spec): declare `SharedRecordIds`, the share-grant semi-join leaf, with its fixed inner read, the comparand door's `admitFixedReadLeaves` option and a conformance case-set (ADR-0155 step 1) - -Clause-②: yes -Metadata-protocol: none - -ADR-0155 replaces the list the sharing read scope binds today (`{ id: { $in: [granted ids] } }`, read from `sys_record_share` at most 5,000 grants per read, so a member past that count silently loses access) with an engine-internal leaf that a SQL driver compiles as a subquery in the same statement. This release declares the contract the later steps build on. Nothing writes the leaf yet, no caller admits it, and no read, write or boot behaves differently. - -New in `@objectstack/spec/data`: - -- **`SharedRecordIds`** — `SharedRecordIds.read(object, recipient)` (every access level) and `SharedRecordIds.write(object, recipient, accessLevels)` (the levels the producer supplies, for a predicate update) build a frozen value branded under `SHARED_RECORD_IDS_BRAND` (`Symbol.for('objectstack.filter.sharedRecordIds')`), non-enumerable like the `ReadableIds` brand. `isSharedRecordIds(value)` recognises it; a copy that crossed JSON, a structured clone or a spread arrives unbranded and is refused as a non-list comparand (`INVALID_FILTER` / 400), never dropped. It carries the object, the recipient user id and, on the write form, the levels: no organization and no reading context. No filter operator spells it, so no request or metadata author can write it. -- **The fixed inner read** — `SharedRecordIds.innerRead(leaf)` and the shared `fixedInnerReadOf(leaf)` describe what the leaf denotes as a `FixedInnerRead`: the table (`sys_record_share`), the projected column (`record_id`), the bound equality predicates (`object_name`, `recipient_type = 'user'`, `recipient_id`), the membership predicate on the write form (`access_level`), and `tenantScope: 'none'` (the subquery takes no tenant scope). Every evaluator compiles that description, plus the blank-id guard on the column, and none restates the predicate. `fixedReadLeafBrandOf` and `isFixedReadLeaf` recognise the leaf; ADR-0147's leaf will add its row to the same dispatch. -- **`ListComparandShapeOptions.admitFixedReadLeaves`** — one option naming the brands a caller of `assertListComparandShapes` admits as a `$in` comparand, beside `admitReadableIds`. No caller passes it in this release, so every door keeps refusing the leaf. -- **`FIXED_READ_LEAF_CASE_SETS` / `SHARED_RECORD_IDS_CASE_SET`** — the per-driver conformance cases (fixture tables, the rows each `where` must answer, which case needs the inner read to stay unwalled) and the engine seam's position, verb and recipient cases, as data for the driver and engine cards to run. - -The `ISharingService.buildReadFilter` and `ISecurityService.getReadFilter` docs now say what holds once plugin-sharing writes the leaf: hand the scope to an engine read in process, under the context it was asked for, a context acting on that user's behalf, or a system context, and never serialise it or match it with a generic matcher. A host that registers a middleware or a `beforeFind` / `afterFind` hook for `sys_record_share` by name will be refused at boot from that switch on, until it removes the registration. A middleware or find hook registered for no object will not run on the share arm. diff --git a/.changeset/35584-delegated-docs-audience.md b/.changeset/35584-delegated-docs-audience.md deleted file mode 100644 index b76601b854d..00000000000 --- a/.changeset/35584-delegated-docs-audience.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@objectstack/mcp': patch -'@objectstack/runtime': patch ---- - -Clause-②: yes — widening: on a delegated agent token whose scope reaches the docs tools, a permission-set-gated package doc is now found and read when the delegating person holds that set (ADR-0090 D10, ceiling ∩ delegator); nothing served today is refused, a non-holder and a token without docs-tool access still see nothing. Seat runs a contract read before ready; security#2 checks the head read-only before merge. -Metadata-protocol: none - -fix(runtime): on an OAuth MCP connection, `search_package_docs` and `read_package_doc` judge a manual's permission-set audience by the delegating person's own permission sets - -An OAuth token makes the request an agent acting on behalf of the person who consented (ADR-0090 D10). The two app-docs tools used to judge a manual whose audience is `{ permissionSet }` against the token's scope-derived permission sets, so a person who holds that set could not find or read the manual from their own AI client, while the Console showed it to them. - -Now, on such a connection: - -- The token's scope still decides whether the docs tools are reached at all (`data:read`). A token without it is served neither tool, whatever the person holds. -- The audience reads the person's own permission sets, resolved by the same grant resolution a request uses, in the organization the request runs in: the one the token's consent bound, while the person's membership there is current. A person with no user row holds no set here. A person whose membership there has ended is read with no active organization, as their own session is, so no grant stored in an organization applies. -- The token's own permission sets are never added to the person's: a manual whose audience is one of the token's scope sets stays closed unless the person holds it. -- Manuals with the default audience answer as before. API keys, signed-in sessions and AI service accounts keep their own permission sets. - -Both tool descriptions now say so: on an OAuth connection, the person's own permission sets decide, never more. diff --git a/.changeset/35589-owner-resave-extension-column.md b/.changeset/35589-owner-resave-extension-column.md deleted file mode 100644 index 038864325f9..00000000000 --- a/.changeset/35589-owner-resave-extension-column.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/metadata-protocol': patch ---- - -fix(metadata-protocol): an unchanged owner object re-save is not refused over a column an extension adds - -Clause-②: no -Metadata-protocol: none - -Re-saving an object's own body unchanged (`PUT /api/v1/meta/object/NAME`, without `force`) while an enabled `object_extension` adds a stored column to it answered `409 DESTRUCTIVE_CHANGE`, naming the extension's column as one the save would drop. The destructive-change check compared the incoming body, which is the owner's layer alone, with the object as it is served, which carries every enabled extension's fields. On the dispatcher's `PUT /meta`, which takes no `force`, such an owner could not be saved at all while the extension was installed. - -The check now folds the enabled extensions onto the incoming body before the diff, so it compares the object served before the save with the one served after it. A column an enabled extension still contributes keeps its data and is not reported. A column only the owner declares is still refused `409 DESTRUCTIVE_CHANGE` when the body drops it. The stored body is unchanged: it is still the owner's own layer, without the extension's fields. diff --git a/.changeset/35592-form4-driver-docblock.md b/.changeset/35592-form4-driver-docblock.md deleted file mode 100644 index 768a80d1336..00000000000 --- a/.changeset/35592-form4-driver-docblock.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/spec': patch ---- - -docs(spec): the `FilterCondition` nested-relation (form 4) docblock says per verb and driver how the form is served - -Clause-②: no -Metadata-protocol: none - -The form 4 paragraph of the `FilterCondition` docblock in `@objectstack/spec/data` said the nested-relation form is served "the same on every driver" by reading the related ids, and that a condition over the engine's cap is refused. It now says what the engine does: on a read verb (`find`, `findOne`, `count`, `aggregate`) a single-valued relation is one subquery inside the read's own statement where that is provably the same read; a multi-valued relation, `update`, `delete` and a read the subquery cannot prove read the related ids. On a driver that does not declare `DriverCapabilities.readableIdsLeaf` (MongoDB, OData) a single-valued condition on a read verb is refused up front with `INVALID_FILTER` / 400 (ADR-0139 D3, as amended). The cap sentence now applies only where ids are read. Text only: no schema, type or behaviour change; it now agrees with the Data Engine contract page. diff --git a/.changeset/35593-record-header-one-row.md b/.changeset/35593-record-header-one-row.md deleted file mode 100644 index 6315b93257c..00000000000 --- a/.changeset/35593-record-header-one-row.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/components': patch -'@object-ui/plugin-detail': patch -'@object-ui/react': patch ---- - -feat(record-page): the record's header is one row with one button group - -Clause-②: no -Metadata-protocol: none - -A record page used to stack its top bar, the record's header row under it and, while an approval was pending, a band of decision buttons above the body. They are now one 44px row: - -- **Full page.** The object icon and name, `/`, the record's name, its stage tag and an approval tag on the left; the record counter and prev/next, a divider and the record's ONE button group on the right. -- **Drawer.** The record's icon, name, stage tag and approval tag, then the button group, 整页打开 and 关闭. The drawer's bar draws no object name, counter or prev/next once the record's header holds it. -- **One button group, by the approval's state.** Normal: Edit, the record's one primary action and ⋯. Pending on the viewer: 通过 (the only filled button), 驳回, and ⋮ with the other approval levers, a separator and the record's actions. The viewer's own submission pending: 撤回, 催办 and the same ⋮. An administrator who holds only the override keeps the marked override menu ahead of the group. On a phone the bottom bar draws the same group, with 通过 the only filled button. -- **Approval tag.** 「待你审批」, 「审批中」, 「已退回修改」 or 「已驳回」 beside the record's name; it opens the approval's detail, today the approvals panel on the page. -- **Locks.** A record an approval locks draws no Edit and no 「审批中已锁定」 badge in the body; the approval tag says why (its tooltip names the lock). A lock from the record's state keeps Edit drawn and disabled, with its lock tag beside the record's name. -- **Reject asks for a reason.** The record page's reject dialog requires its comment. The declaration and the approvals list are unchanged. - -A record page whose layout has no `page:header` keeps the decision band above its body, since no header draws the group there. The request page's `ApprovalDecisionPanel` band is unchanged. - -`@object-ui/components` adds `RecordHeaderBarContext` (the slots a host's bar offers the record's header) and `RecordHeaderStateContext` (the tags and the button group a host's record state hands it); `RecordTopBar` and `NavigationOverlay` take an `actionSlotRef`, and `NavigationOverlay` a `stepperHidden`. `PageHeaderActions` takes a `defaultMaxVisible`. `@object-ui/react`'s `InlineEditProvider` takes `approvalTagDrawnByHost`, and `DetailView`'s approval band then draws no badge for an approval lock (the tally stays). Nothing an app authors changes. diff --git a/.changeset/35595-35596-record-tabs-rail.md b/.changeset/35595-35596-record-tabs-rail.md deleted file mode 100644 index 91d03e8737f..00000000000 --- a/.changeset/35595-35596-record-tabs-rail.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/components': patch -'@object-ui/i18n': patch -'@object-ui/plugin-detail': patch ---- - -feat(record-page): one tab per related list, and an Overview rail that sums up the other tabs - -Clause-②: no -Metadata-protocol: none - -The record page's tab row and its right column are redrawn (supersedes objectstack#28469): - -- **Tabs.** Overview, then one tab per related list in its order, then Attachments, Approvals and Activity last. Every tab is there at first paint and none moves when the counts land. A list with no records keeps its place, greyed, with no number. The width is the row's only fold: the tabs that do not fit go into 「更多 N ▾」, whose items keep their counts. Approvals carries a dot while a request waits, not a count. A tab that merges several tables (only an explicit page can write one) carries no count. -- **Overview.** The stage path and the key fields sit across the whole width on Overview only; every other tab draws its block in full in their place. -- **Right rail.** On Overview, the right column sums up the other tabs, in this order: Approvals, Attachments, Recent activity, then 「其他相关」 with a card for each related list that has records. Each card has a title (which opens its tab), a grey count and at most three rows. A card with nothing to show is not drawn, and there is no 「还有 N 个空关联」 line. Nothing in the rail is editable. A rail with no cards folds away. A drawer draws no rail and no right-column switch. The rail's rows come from the page's one read: it reads nothing more. -- **No band at the foot.** A page drawn as written that places no approvals or attachments panel gets them as tabs of its first tab strip, not as bands under the page. The header's approval tag opens the Approvals tab. -- **One approval band.** A page drawn as written whose details are split into several `record:details` nodes draws the record's approval band once, on the first body that reaches it, recall included. - -- **Reader arrangement leaves with the cards.** The related cards' ⠿ handle, ⌥↑ / ⌥↓ and 「隐藏」 are gone with the cards, so a reader can no longer reorder or hide a related list on the page. An order or hides already stored still apply, and 「恢复默认顺序」 / 「显示」 still undo them. -- **`?tab=related` is retired.** The single 「Related」 tab is gone, so a saved link carrying `?tab=related` opens Overview. - -`@object-ui/plugin-detail` adds `ApprovalBandOnceScope`. `@object-ui/i18n` adds the 「更多 N」 trigger and the rail's labels in every pack. Nothing an app authors changes. diff --git a/.changeset/35597-master-detail-body-tables.md b/.changeset/35597-master-detail-body-tables.md deleted file mode 100644 index ea6a27b6cc2..00000000000 --- a/.changeset/35597-master-detail-body-tables.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -'@objectstack/spec': minor -'@object-ui/plugin-detail': minor -'@object-ui/app-shell': minor ---- - -feat(spec, ui): a master_detail child is a table in the record overview by default - -Clause-②: yes (widening: a master_detail FK with no `relatedList` now reads as `'primary'`) -Metadata-protocol: semantic - -A `master_detail` child used to be a side list unless it also declared `inlineEdit`. Now the relation type decides: a `master_detail` FK that declares no `relatedList` is a body table in the parent's record overview. `inlineEdit` is no longer needed for that; it stays what it was, the write side (whether the edit form inlines the child as line items). - -- `relatedList: false` hides the list, `relatedList: true` keeps it a side list (a card in the related column, a tab on the tab row), `relatedList: 'primary'` is unchanged. A `lookup` FK with no `relatedList` stays a side list. -- `isBodyTableRelationship` is still the one judgement. The field-group placement check at `defineStack` and at the publish door follows it, so a field group may now name a plain `master_detail` child to position its table. Studio reads a plain `master_detail` FK as "primary" and writes an explicit `true` when you pick "Show". -- Placement: the body tables of a synthesized page are drawn in the overview's left column above the field sections (under the stage bar and key fields), in the parent's `relatedLists` order. A field group that names one still positions it. They never get a tab or a related-column card. The drawer uses the same page. -- An empty body table draws its column headers and one empty row holding the empty sentence and a New button. -- The table shows 10 rows by default (the page can set its own page size). "Show all N" expands it in place, and ↗ opens the child list filtered to the parent. -- Totals come from the server: the parent's `summary` field over the same child rows when there is one, otherwise a sum aggregate over every child row of this parent (the existing data query, no new endpoint). They are drawn in the table's summary row. The old "this page" sum of the shown rows is gone; a data source with no `aggregate` draws no total. -- A `master_detail` related list placed on an authored record page gets the same body-table treatment (the totals and the empty row). - -To keep an existing `master_detail` child as a side list, write `relatedList: true` on its FK. diff --git a/.changeset/35599-record-page-edit-state.md b/.changeset/35599-record-page-edit-state.md deleted file mode 100644 index 9237444777c..00000000000 --- a/.changeset/35599-record-page-edit-state.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -'@objectstack/plugin-approvals': patch -'@object-ui/plugin-form': patch -'@object-ui/i18n': patch -'@object-ui/plugin-detail': patch ---- - -feat: edit a record and its line tables together, and lock a record's lines while an approval locks the record - -Clause-②: no -Metadata-protocol: none - -**A locked record's lines are locked too.** While a record is held by an approval that locks it, writes to its master-detail child rows are refused with `RECORD_LOCKED` (409), the same answer a write to the record itself gets: inserting a row under it, updating or deleting one of its rows, and moving a row into it or out of it (both ends of a reparent are checked). A multi-row write that touches any such row is refused as a whole, and a row whose parent cannot be read is refused when the parent object has a locking approval the writer's run does not own. The approval's own exemptions carry over: system writes and the flow run that opened the approval still write. The refusal names the record by its object's label ("This Opportunity is locked while an approval is in progress, …"). Lookup children are not affected. `@objectstack/plugin-approvals` binds the new `bindDetailRowLockHook` beside the record lock it already binds. - -**`@object-ui/plugin-form` exports the record-page body-table editor.** `RecordBodyTableEditor` draws a master-detail body table as editable lines (the `LineItemsField` grid, with the child columns, field permissions and add / remove rules the master-detail form uses) for a host's edit session (`RecordEditSessionContext`). `buildRecordEditBatch` folds a record's field changes and every table's lines into one batch (the `buildMasterDetailEditBatch` diff, table by table), and `attributeRecordEditRefusal` places a refused batch's reasons on the record's field or on the line whose write carried the refused field. - -**`@object-ui/i18n`** adds `detail.bodyTableRow`, `detail.bodyTablesReadOnlyBulk` and `detail.discardInlineEditsMessage` to every built-in pack. - -**`@object-ui/plugin-detail`** exports `RecordBodyTableEditorSlotContext`: while a host provides it, a `record:related_list` whose relationship id (`CHILD_OBJECT.FK_FIELD`) is in the slot's set draws the host's element in its place instead of the read-only list. The record page's edit state draws its body-table editors through it; no new node type is registered. - -In the console, Edit on a record page that draws master-detail body tables now opens the page's edit state: the fields become inputs, the body tables editable lines, and one Save writes all of it in one batch. Per-field inline edit stays on every record page, those included, and saves the record alone through its save bar. One mode runs at a time: the edit state offers no per-field inline edit, and pressing Edit while inline changes are unsaved first asks whether to discard them. diff --git a/.changeset/35600-studio-customize-shipped-views-only.md b/.changeset/35600-studio-customize-shipped-views-only.md deleted file mode 100644 index cd639fdf233..00000000000 --- a/.changeset/35600-studio-customize-shipped-views-only.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -fix(studio): Customize is offered only on a list view the read-only base ships - -Clause-②: yes (widening) -Metadata-protocol: none - -On a read-only base, an object's page in Studio lists every list view of the object, including views created in the app (the console's New view) and views the customization package adds. Customize declares an override of the base's view, and the server refuses that declaration for a view the base does not ship, so the first saved edit of such a view answered 403 ("declares an override of …, which ships no view named …"). Studio now reads whether the base ships the view from the layered read at the base (its code layer) and offers Customize only then. A view created in the app is read-only in Studio, and its panel says it is edited in the app, from Manage views › Edit view config; a view the base serves nothing of says the base does not ship it. Two new Studio strings carry those sentences, in English and Chinese. diff --git a/.changeset/35601-related-tab-open-and-add.md b/.changeset/35601-related-tab-open-and-add.md deleted file mode 100644 index 35782f3af34..00000000000 --- a/.changeset/35601-related-tab-open-and-add.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -'@object-ui/plugin-detail': patch -'@object-ui/app-shell': patch -'@object-ui/fields': patch -'@object-ui/react': patch ---- - -fix(record-page): the related tab offers only 「↗」 and 「+ 添加」, and a pick of several is added all or none - -Clause-②: no -Metadata-protocol: none - -The record page's related tab drew a filter box, condition chips, an options menu, an export and its own New, and repeated the row count under the table. It now carries two entries at its right end. 「↗」 opens the child object's list under this record, on an empty list too. 「+ 添加」 is the one add entry, chosen by the relationship when the page authored no `add`: a `lookup` child opens a picker of that object whose first row is New; a `master_detail` child whose rows name a catalog record (one other required lookup) opens a picker of that catalog; one with no catalog opens the new-record form directly. The count shows once, in the tab title. - -A pick of several records is one request to the transactional batch route: every row is added or none is, and the list says why when none was. Before, each pick was its own write, and a failure part way left the earlier rows added. A data source without the batch route offers no picker. - -A child with a status and a deadline that the status settles is grouped by status on the tab: open groups first in the order the status lists them, completed groups last, each collapsible. - -The reader's header sort and column widths on the tab are remembered per list in the record page's existing per-user preferences. - -The list page 「↗」 opens names the record it came from: its condition tag reads the record's name, a breadcrumb leads back to it, 「Reset」 puts that condition back after the reader changed the filters, and New opens the record form linked to it. - -A body table's total under a currency column whose currency does not resolve is drawn as its cells are, an amount with no symbol, instead of being left out (objectstack#35710). Rows that name their own currency are still totalled per currency. diff --git a/.changeset/35602-record-dense-rows.md b/.changeset/35602-record-dense-rows.md deleted file mode 100644 index df7fff9e01b..00000000000 --- a/.changeset/35602-record-dense-rows.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@object-ui/plugin-detail': patch -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -feat(record-page): dense field rows, one-line activity entries grouped by day, and one row per attachment - -Clause-②: no -Metadata-protocol: none - -The record page now fits more on one screen: fields read as one row each with the label on the left, the activity feed shows one line per entry under a day heading with a one-line comment box, and each attachment is one file row with its actions in a ⋮ menu. - -New locale keys in every pack: `detail.streamToday`, `detail.streamYesterday`, `detail.viewApproval`, `detail.replyToComment`, `detail.attachmentsDropHint`, `detail.attachmentsChooseFile`, `detail.attachmentActions`. `RecordActivityTimeline` takes an optional `onViewApprovals`; `RichTextCommentInput` takes an optional `compact`; `CommentBody` takes an optional `controlsClassName`. No metadata key, value or default changes. diff --git a/.changeset/35606-request-session-read-once.md b/.changeset/35606-request-session-read-once.md deleted file mode 100644 index a04ac7e2222..00000000000 --- a/.changeset/35606-request-session-read-once.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@objectstack/core': patch -'@objectstack/runtime': patch -'@objectstack/plugin-hono-server': patch ---- - -fix(core): a signed-in request reads its session once with the inbound rate limiter armed or an ADR-0069 gate active on REST - -Clause-②: no -Metadata-protocol: none - -With `server.security.rateLimit` armed, or on the REST door while a session gate is active, one signed-in request read its session (a `sys_session` lookup by token and a `sys_user` lookup by id) two or three times; it now reads it once, on the dispatcher and REST alike. Who is admitted or refused, and with which status, does not change. - -The inbound rate limiter, the identity step of every door (`resolveRequestExecutionContext`) and REST's `reread-when-active` gate now read the session through one request-scoped carrier (`openRequestSessionRead` / `withRequestSessionRead` / `withoutRequestSessionRead` / `readRequestSession`, exported from `@objectstack/core`). The Hono transport runs its middleware chain in a scope and hands that scope to a route it registered only when every middleware between the two is a whole-server one; a route behind a path-scoped middleware (plugin-auth's door under the auth base path, where the organization's IP list is judged on the read) and a raw-app route read for themselves, and `resolveRequestExecutionContext` opens a scope for its own call where none is open. A read is handed to a later reader of the same request only while no write has landed on the data engine since it was read and the session has not expired; a read that throws is never handed on, so each reader keeps its own outage answer. Nothing is kept across requests. The Hono middleware seam now hands a middleware the same headers a route receives, `host` backfilled from the URL included. diff --git a/.changeset/35609-reregister-extension-withdraw.md b/.changeset/35609-reregister-extension-withdraw.md deleted file mode 100644 index efc85239b87..00000000000 --- a/.changeset/35609-reregister-extension-withdraw.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@objectstack/objectql': patch ---- - -fix(objectql): a package registered again stops serving an object extension its new manifest no longer declares - -Clause-②: no -Metadata-protocol: none - -When a package was registered again without uninstalling it first (an `os dev` artifact reload, or an upgrade or re-install through the marketplace install-local door) and its new manifest no longer carried an `objectExtensions` entry for an object the previous registration extended, the old extension stayed registered. Its fields, validations and indexes kept being served on that object until the process restarted. A package's previous extension of an object was replaced only when the new manifest named that same object again. - -A re-registered package body now withdraws each extension its previous body registered for an object the new body no longer extends, through the same per-object withdrawal the `object_extension` item delete uses. The object then serves exactly the extensions the package's current manifest declares. Another package's extension of the same object is untouched, and so is an extension registered under the package id outside a body (the `object_extension` item door's layer). A refusal later in the same registration run puts the withdrawn extension back with the rest of the installed version. - -Stored data is not touched: the column the dropped field used keeps its values, and schema sync drops no column. The field is simply no longer served. The install-local dry run already listed the dropped field under `plan.fields.removed`; that answer is unchanged. diff --git a/.changeset/35619-user-actions-export-csv-enforced.md b/.changeset/35619-user-actions-export-csv-enforced.md deleted file mode 100644 index e652cf84caf..00000000000 --- a/.changeset/35619-user-actions-export-csv-enforced.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -'@objectstack/spec': minor -'@object-ui/core': minor -'@object-ui/plugin-grid': minor -'@object-ui/plugin-list': minor -'@object-ui/plugin-report': minor -'@objectstack/platform-objects': patch ---- - -feat: an object's `userActions.exportCsv: false` hides the console's Export entry - -Clause-②: yes -Metadata-protocol: semantic - -`userActions.exportCsv` on an object now does what the Studio object form says it does. Set to `false`, the console offers no Export entry for downloading that object's data, in any of its formats (CSV, XLSX, JSON): - -- the object grid hides its toolbar Export menu, and the table's own CSV button that `operations.export: true` turns on; -- the list view hides Export in both toolbar forms, the wide toolbar's button and the Display panel's export footer; -- a dataset report hides its Export control when the dataset's base object sets it. - -A view's export of the picture it draws is not covered: a Gantt view's PNG and PDF buttons stay. - -Every surface reads one verdict, the new `isObjectExportOffered(objectSchema, effectiveApiOperations)` from `@object-ui/core`: the authored `exportCsv` over the object's `managedBy` default, ANDed with the caller's effective `export` API operation. Before this change the grid's toolbar menu, the list view and the report read the effective operation but not the object's bit, and the grid's table CSV button read neither half (only `operations.export`), so `exportCsv: false` changed nothing. Export is a read, so the verdict is not a row of `AFFORDANCE_GRANTS` and asks no `can(object, verb)`: the caller's export grant reaches the console through the effective `export` operation, which the server derives from `list` and `allowExport`. - -An object that does not author the key keeps its Export entries, since every `managedBy` bucket still defaults `exportCsv` to `true` (ADR-0103), with one change: the grid's table CSV button (`operations.export: true`) now also follows the effective `export` operation, as the toolbar menu beside it already did. So a viewer whose effective operations exclude `export` no longer sees that button, even on an object that authors nothing. The setting hides the entry and is not a permission: no export request is refused because of it, and who may export is still the permission set's `allowExport`. The report reads the base object's definition through the report's data source, and a report whose source cannot serve one keeps its Export control. - -The spec's `exportCsv` description and the Studio form's help text now say this; the form's English help text bundle in `@objectstack/platform-objects` is regenerated to match, and the translated locales keep their wording. The liveness ledger grades `userActions.exportCsv` `live`, so an authored `exportCsv: true` no longer raises the `liveness-dead-property` warning at `os lint` / `os validate`. Nothing needs migrating. diff --git a/.changeset/35624-console-new-view-saves-into-app.md b/.changeset/35624-console-new-view-saves-into-app.md deleted file mode 100644 index 81d28e5a990..00000000000 --- a/.changeset/35624-console-new-view-saves-into-app.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -fix(console): a view added in an app is saved into that app, so its draft preview bar counts and publishes it - -Clause-②: yes (widening) — one new published language-pack key, view.savedOutsideApp, in all eleven packs (the fallback notice the maintainer's ruling 7024102451 names) -Metadata-protocol: none - -Add new view and Save as view used to save the new view's draft naming no package. The app's draft preview bar counts only the app's package and its customization package, so right after the create it said "no unpublished changes" while the draft was pending, and its Publish left the new view unpublished. A view created inside an app is now saved into the app: into the app's own package when that package is writable, else into its customization package (`BASE.custom`), which is created on first use. The bar counts the view at once, its Publish publishes it, and the view travels with the app's customization. Editing, discarding and publishing the view afterwards reach that same draft. Views saved without a package before this change keep their address. When the customization package cannot be used (an isolated multi-tenant deployment refuses a tenant administrator), the view is saved without a package as before, and a notice says that this app's draft bar does not count it and that it is published from Home. Reports, dashboards and pages are created as before. diff --git a/.changeset/35628-default-inspector-refusal-rows.md b/.changeset/35628-default-inspector-refusal-rows.md deleted file mode 100644 index e13f85f806e..00000000000 --- a/.changeset/35628-default-inspector-refusal-rows.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(console): a refused metadata save draws its causes under the rows of the view, object and other curated designers - -Clause-②: no -Metadata-protocol: none - -After a refused save, a metadata type edited in a curated designer panel (view, object, dataset, action, hook, dashboard, page, report) drew the cause under no field: the panel was never handed the save's issues, so only the Save button's reason (and, where the editor runs a live check, the summary banner) named them. A view refused at `label.not_a_locale` or at `config.columns.0` lit no row in the view designer. - -The panels now draw each cause under the row that edits its path, with the same placement the generic form uses: - -- the view designer draws `label.*` under Label, `config.columns.*` under Columns, and a cause in the view body under the body form's row (`config.description` under Description); -- the object designer draws a cause under Name, Label, Plural label, Icon, Description, Access or Required permissions; the dataset designer under Name, Label, Description, Base object, Included relationships, Scope filter, Dimensions or Measures; -- the action, hook, dashboard, page and report panels draw a cause under the row of their "More fields" form, nested causes included. - -One mistake is still one message: the summary banner and the refusal line leave out exactly the causes a row draws. A cause under a key no row renders (`config.zz_unknown`, an object's `fields.*`) stays in the banner. The register a panel reports now names path prefixes, so a form over the view body counts as drawing `config.description`, never every `config.*` cause. - -`MetadataDefaultInspectorProps` gains three optional props (`issues`, `revealIssues`, `onInlineIssueFieldsChange`); a host that passes none gets the panel it got before. No locale keys change. diff --git a/.changeset/35631-formula-currency-verdict.md b/.changeset/35631-formula-currency-verdict.md deleted file mode 100644 index 749c996a5a0..00000000000 --- a/.changeset/35631-formula-currency-verdict.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@objectstack/spec': patch -'@objectstack/formula': patch ---- - -fix(app-shell): Studio's formula inspector asks whether the formula still computes money before it keeps a `currency` result type - -Clause-②: yes (widening) -Metadata-protocol: none - -When an author edited a formula field in Studio, the inspector re-stamped `returnType` from the expression's inferred CEL type, and kept a declared `currency` under every `number` or unproven verdict, because that type never says "money". So a formula edited from an amount (`record.amount * 0.1`) into a count (`record.est_hours * 2`) kept `returnType: 'currency'` and its `currencyConfig`, and its value was still shown as an amount. - -The stamp now also asks `@objectstack/formula`'s `inferFormulaReturn`, over the object's declared fields, whether the edited expression computes money: - -- Provably money: `returnType` is stamped `currency`, with the currency the source amounts are in as the formula's `currencyConfig` (absent for the tenant default currency). This holds for a formula that was `number` too. -- An edit it answers `number` for withdraws a declared `currency`: `returnType` becomes `number` and the `currencyConfig` is removed. -- An unproven verdict (a field-over-field quotient, two currencies meeting) keeps a declared `currency`, as before, and so does an engine that does not offer `inferFormulaReturn`. -- A declared `percent` is unchanged: it survives a `number`, unproven or money verdict, and is never re-stamped `currency`. A verdict that proves `text`, `boolean` or `date` still stamps, and now also removes a stale `currencyConfig`. - -`@objectstack/formula`'s `inferFormulaReturn` now answers `{}` (unproven) where it used to answer `{ returnType: 'number' }` on the numeric path, unless the unit proof succeeds or every read of the record (`record.x`, `record['x']`, `record.?x`, `record[?'x']`, or a bare `x`) is one segment naming a declared field whose unit can be read and is not money. FROM `inferFormulaReturn('record.rollup * 0.9', fields)` → `{ returnType: 'number' }` TO → `{}`. The same holds for `100 / record.amount`, `record.amount % 3`, `record.amount * 1.0 + record.fee_eur * 1.0` (two currencies), `double(record.amount) * double(record.tax)`, an amount whose `currencyConfig` does not parse, a hop through a reference (`record.account.balance * 0.9`), a formula operand that declares no `returnType` (`record.subtotal * 0.2`), the indexed and optional spellings of an amount (`record['amount'] * 0.1`), and a name the field map does not declare (`record.unknown_field * 2`). A call with no field map therefore answers `{}` for any numeric expression that reads the record (`inferFormulaReturn('record.amount * 0.1')` was `number`). So a `number` answer means "proved not money", and only that answer withdraws a declared `currency`. - -What still answers `number` is an expression over declared fields of readable non-money units: number, percent and other plain fields, a formula declaring a non-`currency` `returnType`, and a `count` roll-up whose `summaryOperations` is passed. A bare ratio of two amounts in one currency (`record.amount / record.tax`) types `dyn` and answers `{}`, as before. A caller that read the old `number` for these shapes should read the expression's CEL type (`inferExpressionType`) instead. In Studio, a new formula over such an amount is still stamped `number` from that CEL type. - -Widened: the published `FormulaSourceField` type gains one optional member, `summaryOperations` (a `summary` field's roll-up, as declared). A `count` roll-up is read as a plain number only when it is passed. A roll-up passed without `summaryOperations`, a `count` included, is read as possibly money, so an expression over it answers `{}`. - -The stamp still runs only after the author edits the expression; selecting a field writes nothing. The `returnType` description in `@objectstack/spec` now says the same: `currency` is stamped when the expression provably computes money and withdrawn for `number` when an edit leaves it a plain number, and a declared `percent` is kept under a money verdict. diff --git a/.changeset/35633-mcp-doc-answer-rule-export.md b/.changeset/35633-mcp-doc-answer-rule-export.md deleted file mode 100644 index e8dd22ea20a..00000000000 --- a/.changeset/35633-mcp-doc-answer-rule-export.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/mcp': patch ---- - -feat(mcp): export the app-docs answer-order rule and its served-check from the package barrel - -Clause-②: yes — widening: four new exported symbols on the published `@objectstack/mcp` barrel (`packageDocAnswerRule`, `packageDocToolsServed`, `definitionReaderOf`, `DEFINITION_READER_TOOL_NAMES`); nothing removed or refused. Seat runs a contract read before ready. -Metadata-protocol: none - -`@objectstack/mcp` now exports `packageDocAnswerRule(definitionReader?)`, `packageDocToolsServed(bridge, options)`, `definitionReaderOf(toolNames)` and `DEFINITION_READER_TOOL_NAMES`. A host that writes its own `initialize` text (`instructions` / `dataOnlyInstructions`) can carry the same "read the manuals first, end with sources" rule the open server appends to its default text: send it where `packageDocToolsServed` is true, naming the reader `definitionReaderOf` picks from the tool names the connection lists. The open server calls the same exports, so there is one copy of the sentence. Nothing else changes. diff --git a/.changeset/35640-verify-memory-stand-in.md b/.changeset/35640-verify-memory-stand-in.md deleted file mode 100644 index 56563106993..00000000000 --- a/.changeset/35640-verify-memory-stand-in.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -'@objectstack/verify': patch ---- - -fix(verify)!: a managed `mongodb` datasource runs on verify's in-memory stand-in, and a managed datasource on a plugin's driver id refuses the boot - -Clause-②: no (narrowing) -Metadata-protocol: none - -<!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or export is added, removed, renamed or re-shaped, and no stored row changes. What moves is what `os verify` (and `bootStack`) does with a datasource an app already declares: a managed `mongodb` one is built in memory instead of on its real connection, and a managed one on a driver id the platform does not ship refuses the boot. There is nothing for a migration to rewrite and no tombstone. --> - -Verify writes only to stores it creates. Until now that held for a managed datasource on a SQL engine or `memory`, but not for one on `mongodb` or on a driver id a plugin supplies: those kept their real driver, verify withheld only its own writes from their objects, and the app's seed, hooks and flows still wrote to the real database during the run, where verify could neither identify nor undo the rows it changed. - -- **`mongodb`, and every other engine the platform ships.** A declared managed datasource (`schemaMode: 'managed'`, or none declared) on any driver id the platform ships, `mongodb` included, now runs on verify's ephemeral in-memory stand-in, the same store verify builds for the SQL engines: nothing of its declared connection is used, every write to its objects (verify's and the app's seed, hooks and flows) stays in memory, and its objects are exercised by every derived family. The CRUD report no longer lists them as `managed datasource "NAME" (driver "mongodb"): not exercised`. -- **BREAKING: a managed datasource on a plugin's driver id refuses the boot.** Such a datasource cannot be stood in: the plugin builds and registers its own driver, and the boot would write through it. `os verify` now refuses to boot while one is declared (any name other than `default`), before anything is composed. The refusal names each such datasource and its driver id, says why, and `os verify` exits 1 with it. - - FROM: `os verify` booted the app, left the datasource's objects out of its own write families, and let the app's seed, hooks and flows write to the real database behind the plugin's driver. - - TO: `os verify` refuses to boot, naming the datasource and the driver id. There is no flag, boot option or metadata key around the refusal. - - The fix for an app author: correct the driver id if it is a misspelling, or verify a configuration that does not declare that datasource. -- **BREAKING: a plugin driver registered under a managed datasource's name refuses the boot.** The datasource connection service keeps a driver already registered under a datasource's name, whatever driver id the datasource declares, so a plugin that registers a driver under a managed datasource's name on a shipped id (`mongodb`, `postgres`, …) would have run it on the plugin's driver. `os verify` now refuses that boot, naming the datasource and its declared driver id, when the driver is registered before verify's stand-in holds the name: as a `driver.*` service (matched by its key and by the driver's own name, before any plugin starts), or into the engine from an `objectql:drivers-ready` handler or anywhere else (refused at the engine's `registerDriver`, before the engine holds it). Either way no connect, schema sync or write reaches the plugin's driver. A driver registered under the name once the stand-in holds it (an app plugin's `start()`, a `runtime.onEnable` bridge) is discarded by the engine, as before, and that boot runs on the stand-in. - - FROM: when the plugin's driver took the datasource's name before verify's stand-in did, `os verify` booted on it, and the app's seed, hooks and flows (and, for a SQL id, verify's own writes) reached the store behind it. - - TO: `os verify` refuses that boot, even when the plugin catches the refusal and carries on. No flag, boot option or metadata key around it. - - The fix for an app author: verify a configuration whose plugins do not register a driver under a managed datasource's name. An external datasource (`schemaMode: 'external'` or `'validate-only'`) on a plugin's driver is not affected: verify keeps its real driver and withholds its own writes from its objects, as before. - -This supersedes what two earlier notes in this release say about a managed datasource "with no faithful stand-in": neither `mongodb` nor a plugin's driver keeps its real driver under `os verify` any more. diff --git a/.changeset/35640-verify-real-store-wording.md b/.changeset/35640-verify-real-store-wording.md deleted file mode 100644 index 49ee5351d0c..00000000000 --- a/.changeset/35640-verify-real-store-wording.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/verify': patch ---- - -fix(verify): the skip reason for a managed datasource with no stand-in no longer says verify never writes to it - -Clause-②: no -Metadata-protocol: none - -For an object on a managed datasource whose engine has no ephemeral stand-in (`mongodb`, or a driver a plugin supplies), the CRUD report said `not exercised — verify has no ephemeral stand-in for this engine and never writes through to the real one`. That was not true: verify withholds only its own derived writes there, while the app's seed and the hooks and flows that verify's writes fire still write to that real database during the run. The reason now reads `… verify has no ephemeral stand-in for this engine, so it withholds its own writes; the app's seed, hooks and flows still write to the real database`, and the README says the same. Nothing else changes: which objects are skipped, and what reaches which store, are as before. diff --git a/.changeset/35647-ui-bulk-selected-ids.md b/.changeset/35647-ui-bulk-selected-ids.md deleted file mode 100644 index e0014a0e880..00000000000 --- a/.changeset/35647-ui-bulk-selected-ids.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -Clause-②: no -Metadata-protocol: none - -`objectstack-ui` actions rule: no bulk body receives `input.selectedIds`. A name in the list view's `bulkActions` runs the action once per ticked row, its body reading `ctx.recordId` (how the example now writes rows); only a `bulkActionDefs` entry with `operation: 'custom', execution: 'aggregate'` runs it once, the ids in `input._selectedIds`. Also: the new-tab example's `target` uses `${ctx.recordId}` on `record_header`. diff --git a/.changeset/35650-action-designer-served-rows.md b/.changeset/35650-action-designer-served-rows.md deleted file mode 100644 index af2b41c1749..00000000000 --- a/.changeset/35650-action-designer-served-rows.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(studio): the action designer draws a script action's refusal catalogue and declared texts with their served rows - -Clause-②: no -Metadata-protocol: none - -The served `action` form gives `refusals` and `texts` the key-only record control (an entry is drawn under its code or key, with its message, status, reasons and params rows) and help text, but only the Related drawer editor read that form. The action's full-page editor and the Studio object's Actions view mount the action designer, whose "More fields" section was handed the bare schema, so both keys read as the raw JSON editor. - -The designer now takes the served form from its host (`serverForm` on the default-inspector props) and draws the two rows from it in its Behavior section, beside the script body; the row's own visibility rule shows them on a script action only. A host with no served form keeps both keys in "More fields", as before. Nothing about what an action stores or what the server accepts changes. - -The console's zh-CN overlay gains the labels for the action's `refusals` and `texts` rows and the hook's `texts` rows. diff --git a/.changeset/35653-seed-records-refused-at-build.md b/.changeset/35653-seed-records-refused-at-build.md deleted file mode 100644 index 5218db4e107..00000000000 --- a/.changeset/35653-seed-records-refused-at-build.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -'@objectstack/cli': minor -'@objectstack/lint': minor -'@objectstack/spec': minor ---- - -feat(cli)!: `os validate` and `os build` refuse seed records the seed load would drop: one its own validation rule refuses, or a keyed one with a blank key field - -Clause-②: yes (narrowing) -Metadata-protocol: narrowed -Skills-docs: follow-up #37158 - -<!-- adr-0087: registered seed-record-refused-before-load --> - -**BREAKING** accept-set narrowing of two authoring doors, shipped as `minor`. FROM: `os validate` and `os build` exit 0 on a config one of whose seed records the seed load drops (its own validation rule refuses it, or it is keyed and leaves a key field blank). TO: both exit 1 and name the record, its object, its index and the refusing rule or the blank field. The load's own verdicts do not change. Fix: correct the record so its rule admits it, change the rule if the record is right, or give the record its key value. - -A seed write is held to the object's own validation rules (every type but `state_machine`), and a record a rule refuses is dropped from the load while the rest land. Until now nothing at authoring time judged a seed record against those rules: `os validate` and `os build` passed, and the first sign was a `[Seeder] … dropped record(s)` line at boot carrying the rule's message, not its name. Both commands now refuse such a config (exit 1), one line per refusal (a record two rules refuse prints two), naming where the record sits, its index and the refusing rule: - -```text -✗ Seed records the seed load refuses (1 record) - ✗ data[0].records[1]: Seed record #1 of 'xt_payment' is refused by its validation rule 'amount_positive': A payment amount must be positive. -``` - -The verdict is the write path's own evaluator, run on one rule at a time. A record and rule pair is judged only when the record's own literal values decide it; a pair whose rule reads something the load decides (a reference, a roll-up, formula or autonumber field, a default, a platform-injected column, an expression value, a present value of a non-literal type such as `date` or `datetime`, a `json_schema` rule, a `beforeInsert` hook's write, or the stored row of an `update` dataset) is counted in one dim line and never refused; a dataset whose object the stack does not declare has no rules to judge. A hook registered in plugin code is not visible to the stack, so a config that relies on one to fill a field a rule reads can be refused although the load admits it. Advisory rules (`warning` / `info`) and inactive rules are not judged. - -A keyed record (every live mode: `ignore`, `upsert`, `update`) whose literal value for a key field is blank (no value, `null` or `''`) is refused the same way, in the sentence the seed loader refuses it with at load, naming the object, the record index and the field. A key field holding an expression is judged at load only, and so is the object's organization column, which the load stamps: a declared `tenancy.tenantField` the object has, else `organization_id`. - -`--json` output carries the refusals under `errors` (`os validate`) or `issues` (`os build`), each with `rule` (`seed-row-refused-by-validation-rule` or `seed-record-key-field-blank`), `location`, `object`, `recordIndex`, and `validationRule` or `field`. - -To fix a refused config: correct the record so its rule admits it, change the rule, or give the record its key value. `@objectstack/lint` exports the walk as `judgeSeedRowRefusals`, which takes the evaluator and the tenancy resolver (`resolveTenantFieldName`, `@objectstack/core`) as inputs. diff --git a/.changeset/35655-seed-summary-value-not-stored.md b/.changeset/35655-seed-summary-value-not-stored.md deleted file mode 100644 index d185cb0c063..00000000000 --- a/.changeset/35655-seed-summary-value-not-stored.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/metadata-protocol': minor ---- - -fix(metadata-protocol)!: a seed never stores a roll-up (summary) value; the children compute it, and the load says what it dropped - -Clause-②: no (narrowing) -Metadata-protocol: narrowed - -<!-- adr-0087: registered seed-summary-value-not-stored --> - -**BREAKING** for a seed record that supplies a value for a `summary` (roll-up) field, in any seed: a `defineStack({ data })` dataset, `defineSeed`, a `seed` metadata item, or the seed data a package install loads. Every aggregate (`count`, `sum`, `min`, `max`, `avg`) is treated the same, whether or not the field is declared `readonly`. - -- FROM: the seed loader writes as the system principal, so the supplied value was stored as written. It stayed wherever no child write came after it: a parent seeded with a total and no children kept the total; a re-seed over existing children wrote it over the computed value; and a keep-current (`upsert`) seed replayed on the next boot stored the computed total on the first load and the supplied one on the second. -- TO: the loader takes every such value out of the record before the replay compare and the write, on insert and on update, and writes the rest of the record. A created row starts the column at its empty-child-list value (`0` for `count` and `sum`, empty for `min`, `max` and `avg`), and the seeded child rows compute it. A matched row keeps the value it holds, so a replay whose only difference is the roll-up writes nothing. A parent seeded with a total and no children now reads `0`. -- Reported, not silent: the load logs one warning per dataset naming the object, the fields and how many values it did not write. A dry run (`validate`) logs the same warning. `success` and `errored` do not move, and the load result gains no key. One row counter does: on a replay (`upsert` or `update`), a matched row whose only difference from the seed record was a roll-up value is now counted `skipped`, with nothing written, where it used to be counted `updated`. - -Compatibility note for seed authors: to show a total, seed the child rows it is computed from and leave the summary field out of the parent's seed record. A figure no child rows back is not a roll-up: declare it a `number` or `currency` field. A legacy total that must land as written goes through a historical import (`treatAsHistorical: true`), which is unchanged. Rows an earlier load stored a supplied total on are not rewritten by the loader; the next child write recomputes them. A parent with no child rows gets no such write, and `os migrate summary-nulls` backfills only `NULL` columns, so repair one by hand: insert a child row under it and delete that row again, and the recompute leaves the empty-set value. - -Not changed: the engine (`packages/objectql`), which still keeps a value an `isSystem` write sends (the roll-up recompute, the backfill, a historical import); the import and REST doors; and the runtime's basic-insert fallback seeder, which runs only when the seed loader is unavailable or throws. diff --git a/.changeset/35658-dark-danger-text.md b/.changeset/35658-dark-danger-text.md deleted file mode 100644 index 61b16160d2f..00000000000 --- a/.changeset/35658-dark-danger-text.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@object-ui/components': patch -'@object-ui/console': patch -'@object-ui/cli': patch -'@object-ui/plugin-gantt': patch ---- - -fix(ui): danger text is readable in dark theme - -Clause-②: no -Metadata-protocol: none - -In dark theme, `text-destructive` (a menu's Delete, error messages, danger links) used the deep red that is the fill of red buttons, about 1.6:1 on a dark menu. Text utilities now read their own token: each shipped `@theme` maps `--text-color-destructive` to `--destructive-text`, which only `.dark` defines (a brighter red that clears 4.5:1 on every dark surface). Light theme leaves it unset and falls back to `--destructive`, so it is unchanged; `bg-`, `border-` and `ring-destructive` and red buttons keep `--destructive`. New apps from `objectui init` carry the same split, and the Gantt resource view's over-capacity label reads the text token. A host that overrides `--destructive` for its own dark theme can set `--destructive-text` beside it. diff --git a/.changeset/35659-approval-reject-requires-reason.md b/.changeset/35659-approval-reject-requires-reason.md deleted file mode 100644 index 6181d2d7a3b..00000000000 --- a/.changeset/35659-approval-reject-requires-reason.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@objectstack/plugin-approvals': patch ---- - -fix(approvals): rejecting through the `approval_reject` action requires a reason - -Clause-②: no (narrowing) -Metadata-protocol: none - -<!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is one param declaration in this plugin's own object metadata: approval_reject's comment goes from optional to required, so a call to that action without a reason is refused. No stored row, registry key or authored value changes, so there is nothing for a migration to rewrite and no tombstone. --> - -**BREAKING** for a caller of the `approval_reject` action on `sys_approval_request` that sends no `comment`: the call used to reject the request and is now refused before the approvals route runs. It ships `patch` because it is a non-protocol breaking change (AGENTS.md Post-Task Checklist step 3): the declaration belongs to this plugin, and nothing a metadata author writes changes, so `Metadata-protocol` is `none`. - -`approval_reject` declares its `comment` param `required: true`, so a reject through `approval_reject` always carries its reason. The declared param contract judges the call before the target route runs, and it counts an empty or whitespace-only string as missing: the REST action door (`POST /api/v1/actions/sys_approval_request/approval_reject`) and MCP `run_action` answer `400` with the param contract's refusal naming `comment`, and the console's param dialog holds Confirm until a reason is typed. A reject with a reason runs as before. The action's AI tool description now says the reason is required. The `POST /api/v1/approvals/requests/:id/reject` route itself is unchanged. - -Fix for a caller: send the reason as `params.comment` when you run `approval_reject`. diff --git a/.changeset/35660-page-header-max-visible-describe.md b/.changeset/35660-page-header-max-visible-describe.md deleted file mode 100644 index baa0955805d..00000000000 --- a/.changeset/35660-page-header-max-visible-describe.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/spec': patch ---- - -docs(spec): `page:header` `maxVisible` / `mobileMaxVisible` descriptions state the renderer's real fallbacks per host - -Clause-②: no -Metadata-protocol: none - -The two descriptions said the renderer shows 3 inline header buttons (1 on mobile) when the key is unset. Since the record page's header became one row, an unset `maxVisible` gives 1 there and 3 on any other header, and an unset `mobileMaxVisible` gives 2 in a record page's bottom action bar on a phone and 1 elsewhere. Text only: the schema shape, its validation and its lack of a schema default are unchanged. diff --git a/.changeset/35663-list-left-edge.md b/.changeset/35663-list-left-edge.md deleted file mode 100644 index 48993809939..00000000000 --- a/.changeset/35663-list-left-edge.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -'@object-ui/components': patch -'@object-ui/plugin-grid': patch -'@object-ui/plugin-list': patch -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -Clause-②: no -Metadata-protocol: none - -fix(list): the list page lines up on one 16px left edge; the checkbox column is 40px at any width; no row numbers - -The list page drew five different left edges, and on a list with more columns than fit, the selection column was squeezed to the checkbox's own 16px, flush against the left of the page. Now the page bar's object icon, the view bar's view icon, the header's select-all box, every row's checkbox and the footer's record count all start 16px in, and the selection column is 40px (16px in, the 16px box, 8px before the first column) on a list that scrolls sideways, on one that fits, and after scrolling sideways and back. The view bar's last text trigger ends 16px in, where the page bar's button ends. - -The grid no longer draws row numbers unless a host asks for them (`showRowNumbers`): each row's leading cell is its checkbox, shown at rest rather than on hover. This applies to every grid, the list page, related lists and the designers' grids among them. The list page's Options menu no longer offers a 行号 (Row numbers) switch, the 「已个性化」 (Personalized) marker no longer names row numbers, and `ListView` drops its `defaultRowNumbers` host prop; the `list.rowNumbers` and `console.objectView.personalizedParts.rowNumbers` keys leave every language pack. - -A non-selectable grid with a row click drew a hover 「打开 ›」 (Open) button in its row-number cell; with row numbers off by default that button now appears only where a host opts into row numbers. Clicking the row, and Cmd/Ctrl-clicking it, still open the record. - -Removed from `@object-ui/plugin-list`'s exports: -- `ListViewProps.defaultRowNumbers`: `<ListView defaultRowNumbers={…}>` → delete the prop. Row numbers are off by default; a grid host that wants them passes `showRowNumbers` to `ObjectGrid`. -- `'rowNumbers'` in `ListPersonalizationPart`: an `onPersonalizationChange` handler or a label map keyed on it → drop that entry; the list no longer reports it. A grid whose authored columns all fail to resolve now says it renders "NO data columns" in its console diagnostic, since it no longer draws a row-number column. diff --git a/.changeset/35667-recycle-bin-orgless-system-delete.md b/.changeset/35667-recycle-bin-orgless-system-delete.md deleted file mode 100644 index e1bbaa77b45..00000000000 --- a/.changeset/35667-recycle-bin-orgless-system-delete.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/objectql': patch ---- - -fix(objectql): a system-context delete of a record with no organization now keeps it in the recycle bin instead of failing on `sys_recycle_bin.organization_id` - -Clause-②: no -Metadata-protocol: none - -A delete made under `{ isSystem: true }` (the context flows, hooks and admin tooling use) of a record that names no organization, such as a record of a `tenancy: { enabled: false }` object, wrote its recycle-bin entry with no organization. On a SQL store, where the bin's tenant column is NOT NULL, the delete failed with `NOT NULL constraint failed: sys_recycle_bin.organization_id` and the record stayed. On the memory store the delete succeeded but left an entry no organization owned. - -The entry now takes the organization any system-context insert takes (ADR-0131 D9): the record's own, else the context's, else the organization the engine derives. Under the `single` posture that is the Default Organization, so the record lands in the bin and can be restored. Under a walled posture (`isolated`, `group`), where no owner can be derived, the delete is refused with `ERR_SYSTEM_WRITE_ORGANIZATION_REQUIRED` before the record is removed, as a system insert is. A caller that deletes there passes the organization on the context (`{ isSystem: true, tenantId: '...' }`). diff --git a/.changeset/35678-floating-selection-bar.md b/.changeset/35678-floating-selection-bar.md deleted file mode 100644 index 306b8c78ca8..00000000000 --- a/.changeset/35678-floating-selection-bar.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -'@object-ui/plugin-grid': patch -'@object-ui/components': patch -'@object-ui/types': patch -'@object-ui/app-shell': patch ---- - -feat(plugin-grid): selected rows get one small bar floating at the bottom centre of the list - -Clause-②: yes (widening) -Metadata-protocol: none - -Selecting rows in a grid now shows one bar floating at the bottom centre of the list area: 「已选 N 条」 and ×, up to three labelled actions, and the rest under 「更多」. When the selection offers no more than three actions they are all buttons, so a lone Delete is a button; over three, Delete goes behind 「更多」 with the rest. The bar sits above the footer calc row, the list keeps room after its last row so that row scrolls fully clear of the bar, and when every loaded row is selected and more match, the bar offers 「选择全部 N 条」. × or Esc clears the selection; Esc that belongs to a field, or to another open menu or dialog, does not. - -The same bar serves the object list page, a record's child-table tabs, the side record and embedded tables. The old bottom strip and the list page's 「已选」 face in the view bar are both retired, so the top of the list page no longer changes when rows are selected. On the list page, where rows draw no actions of their own, one selected record offers that record's actions; elsewhere the bar offers the bulk actions at any count. A narrow list gives actions back to 「更多」 until the bar fits on one line. - -- `@object-ui/plugin-grid`: `BulkActionBar` is redrawn as the floating bar; its props gain `singleRowMenu`. `useListPageScope(scope)` replaces the unpublished `useListPageBarHost`. -- `@object-ui/types` / `@object-ui/components`: `DataTableSchema.floatingBar` is a runtime slot (refused by the zod twin like the other runtime slots). The table floats it over its scroll box, above its summary row, with room after its last row. -- `@object-ui/app-shell`: the list page header and the view bar no longer swap to a selection face. - -This supersedes the selection behaviour in the list-page entry of this release (no Actions column on the list page): the selection is no longer shown in the page bar, up to three actions are buttons and a lone Delete is one, and grids outside a list page no longer draw a bottom bulk bar. diff --git a/.changeset/35684-35687-list-cells-select-first.md b/.changeset/35684-35687-list-cells-select-first.md deleted file mode 100644 index 1f1609dae28..00000000000 --- a/.changeset/35684-35687-list-cells-select-first.md +++ /dev/null @@ -1,31 +0,0 @@ ---- -'@object-ui/components': minor -'@object-ui/core': minor -'@object-ui/plugin-grid': minor -'@object-ui/plugin-list': minor -'@object-ui/i18n': patch -'@object-ui/app-shell': patch ---- - -feat(list): a list's cells are selected by a click and edited by a double-click, Enter or typing, with no inline-edit toggle - -Clause-②: yes (widening) -Metadata-protocol: semantic -Skills-docs: none — `skills/objectstack-ui/rules/list-views.md` already teaches that inline editing is on by default for a user who may update the object, with `userActions: { editInline: false }` as the opt-out, which the list page now does with no toggle; no skill teaches the toggle or a single-click edit. - -**The list page (`ListView`) has no inline-edit mode and no toggle.** Its grid is editable in place wherever the reader may update the object and the view does not declare `userActions.editInline: false`; a view's boolean `inlineEdit` still folds into that switch, so `inlineEdit: false` reads off and `inlineEdit: true` reads on. Before, a view that declared neither opened read-only with an "Edit inline" toggle in the toolbar and in the Display menu, the mode lasted for the session, and a click on a cell edited it. Both toggles are gone, and `ListViewProps.onInlineEditChange` is deprecated and never called; the console stops passing it. - -**The select-first cell model** (`data-table`, behind the new `GridCellSelectionProvider` in `@object-ui/components`; `ObjectGrid` mounts it when its host passes the new `cellSelection` prop, and `ListView` passes it for every `object-grid` view it draws, on the hosts listed below): - -- A click selects a cell (a ring around it) and neither edits it nor opens the record. A link the cell draws (the name, a lookup, a phone or an email) keeps its own click. A touch tap opens the record and never edits in place. -- Double-click, Enter or F2 edits, keeping the value with the caret at its end; typing a character replaces the value with it (a picker or a date opens instead); Backspace or Delete clears the cell and saves at once, and a required field keeps its value and says it is required (objectstack#36023). -- While editing, Enter commits and stays on the cell (objectstack#36023), Tab and Shift+Tab commit and move right and left, Escape cancels and keeps the cell selected; in a multi-line editor Enter is a new line and Ctrl/Cmd+Enter commits. Commits are the grid's staged edits, saved by the row's Save and Save All as before. -- On the selected cell the arrows and Tab move the selection, Space opens the record (a checkbox cell flips and commits instead, as a second click on it does), Ctrl/Cmd+C copies, Ctrl/Cmd+V converts the text to the field's type and commits it, and Escape clears the selection. -- An input method's composition is kept whole: keys pressed while composing, and the 229 Enter Safari raises after it, never commit, cancel or move, and a composition started on a selected cell opens the editor with the composed text. This guard applies to every `data-table` editor. -- A cell that opens no editor says why on the cell: the field is read-only, calculated or not editable in a list, the reader may not edit the field, these records or this record, the view turned editing off, or the record is locked by an approval. The approval lock is read from the approvals service's per-record lock when a cell of the row is selected, through the record page's rule (`resolveApprovalLock`); until it answers, the row's `approval_status` stands in only where the view fetches that column, which a view that authors its columns does only when a column, a row predicate or a grouping names it. - -Every grid a `ListView` draws has this model, because `ListView` passes `cellSelection` to each `object-grid` view: the console's object list pages, interface list pages, the object data page (`/apps/:app/:object/data`), the Studio Data pillar's records artboard, and every `list-view` block, whether an SDUI page node or a `ListView` on a `kind: 'react'` page; a grid no `ListView` draws mounts no provider and keeps its click-to-edit (`singleClickEdit`) and click-to-open behaviour unchanged: an authored `object-grid` node, `ObjectView`'s own grid (the `object-view` block, or a host that passes no `renderListView`), a related list, a dashboard table, the record picker and the designer's grids. - -On every `ListView` grid (the select-first model) the table's trailing edit column, which holds a changed row's Cancel and Save, is drawn only while a row has changes, so the list at rest ends on its last data column. `@object-ui/core` exports `resolveAffordanceGrant`, the grant half of `resolveAffordance`, which the list cell's read-only reason reads. - -New locale keys, in every pack: `table.cellReadOnly` and `grid.readOnlyReason.*` (nine reasons). No key is removed: `list.inlineEditShort` and `list.inlineEditLabel`, the toggle's words, stay in every pack, though the list no longer draws the toggle. diff --git a/.changeset/35685-list-cell-autosave.md b/.changeset/35685-list-cell-autosave.md deleted file mode 100644 index 17e800a0d7b..00000000000 --- a/.changeset/35685-list-cell-autosave.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -'@object-ui/components': patch -'@object-ui/plugin-grid': patch -'@object-ui/i18n': patch -'@object-ui/react': patch -'@object-ui/plugin-list': patch ---- - -feat(list): a list cell saves the moment it is committed, and Space types into the selected cell - -Clause-②: yes (widening) — new members on the `@object-ui/react` package entry: `createOwnWrites`, `OwnWritesContext`, `useOwnWrites` and the `OwnWrites` type, and an optional third parameter on `useDataInvalidation`; three new `table.*` keys in every `@object-ui/i18n` locale (`cellSaving`, `cellSaved`, `openRecordToFinish`); nothing removed or renamed -Metadata-protocol: none - -In a grid that mounts `GridCellSelection` (the select-first grid every `ListView` draws), a committed cell edit is now saved at once, as one update for that record: - -- **No save bar, no row Save/Cancel column, no amber row.** The cell shows a small spinner while the save runs and a check mark once it landed. -- **Only that row is redrawn**, from the record the write answered with, so a value a server hook rewrote shows as stored. The list is not read again, though the write is still announced to every other reader (the record's detail pane, related lists, counts): the grid holds the record in the list's `OwnWritesContext` registry for the length of its write, and `ListView` lets that one write go by. So a row whose new value would sort it elsewhere stays where it is until the next load (refresh, sort, filter or page change). The counts on group headers, read with the rows, follow on the next load too; the footer's whole-set summary is its own reader and still refreshes on the write. -- **A refused save keeps the typed value** and shows the server's reason on the cell. Esc puts the stored value back. Later edits on the same row are sent together with the refused one as one update. When the reason names a field the list does not show (a rule that needs another field), the notice offers to open the record. -- **The 409 conflict dialog is unchanged.** The next save on a row sends the version the previous save answered. -- **Space** on a selected cell now types a space and opens its editor, as any other key does. A two-state (boolean) cell still flips. The record opens from the title link or a touch tap; the "Space opens the record" key added in #35747 is gone, so a master-detail page opens its pane only that way too. - -`@object-ui/react` adds that registry: `createOwnWrites()`, `OwnWritesContext` / `useOwnWrites()`, and `useDataInvalidation(objectName, recordId, ownWrites)`, which skips a change naming a held record. - -Grids without `GridCellSelection` keep the staged save bar and its batch save unchanged. - -New `table.*` strings in every locale: `cellSaving`, `cellSaved`, `openRecordToFinish`. diff --git a/.changeset/35685-list-cell-undo.md b/.changeset/35685-list-cell-undo.md deleted file mode 100644 index 2e1173f0565..00000000000 --- a/.changeset/35685-list-cell-undo.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@object-ui/plugin-grid': patch -'@object-ui/react': patch ---- - -feat(list): undo a list cell save from its toast or with Ctrl+Z - -Clause-②: yes (widening) — `toastRecordSave` in `@object-ui/react` takes an optional fourth argument, an `action` button the toast carries (new exported type `RecordSaveToastAction`), and `RecordSaveSink`'s options accept that `action`; nothing removed or renamed -Metadata-protocol: none - -In a grid that mounts `GridCellSelection` (the select-first grid every `ListView` draws), a landed cell save can be taken back: - -- **The save toast has an Undo button**, and **Ctrl+Z** (Cmd+Z on macOS) on a cell of the grid undoes the newest save, then the one before it. Each save is taken back once. -- **An undo is a new update, not a local rollback.** It writes the value each saved field held before the save (a relation as its stored id), with the version this grid's own newest write of the record answered as `If-Match`, so a change someone else made since answers 409 and opens the same conflict dialog as a save instead of being overwritten. A refused or cancelled undo is used up; the next Ctrl+Z undoes the save before it. The server's history records the save and its undo as two changes. Only the row is redrawn, as for a save. -- Inside an open editor Ctrl+Z stays the editor's own text undo. On a cell, the grid's key is handled by the grid alone: the console's shared Ctrl+Z undo stack is not popped by it. -- A save of a field the row did not read offers no Undo, rather than a partial one. - -A grid without `GridCellSelection` (a related list in a record drawer, for one) now re-reads on every write of its object again, including a write the list around it draws itself: before, it skipped the writes that list held while they ran. diff --git a/.changeset/35685-list-state-confirm.md b/.changeset/35685-list-state-confirm.md deleted file mode 100644 index 4048d84092e..00000000000 --- a/.changeset/35685-list-state-confirm.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@object-ui/components': patch -'@object-ui/plugin-grid': patch -'@object-ui/plugin-detail': patch -'@object-ui/i18n': patch ---- - -feat(list): confirm a state-machine move before a list cell saves it; the drawer's save bar says when the record changed elsewhere - -Clause-②: yes (widening) — `GridCellSelection` in `@object-ui/components` takes an optional `confirmCommit(row, columnKey, value)` member; nothing removed or renamed -Metadata-protocol: none - -In a grid that mounts `GridCellSelection` (the select-first grid every `ListView` draws): - -- **A move of a state-machine field asks first.** When an active `state_machine` validation rule of the object governs the field on update, a new value committed into its cell (picked in the editor, or pasted) opens a confirm naming the field and both values and saying saving may trigger related automation. Cancel writes nothing and the cell keeps what it showed; Change saves the value as any commit is saved. Focus goes back to the cell either way. -- **The generic seam:** `GridCellSelection.confirmCommit` is asked before a value that changes what a cell shows is staged or saved. A promise holds the write until it settles (`true` writes, `false` or a rejection writes nothing); `null` or `undefined` means no question, as before. - -On a record page or in a record drawer, `InlineEditSaveBar` now says so when the record is read again at another version while an inline edit session is open (a list cell beside the drawer saved it, say). The draft stays as typed, and Save writes it over the version now read, as it did before; only the note is new. diff --git a/.changeset/35688-cell-editor-layer.md b/.changeset/35688-cell-editor-layer.md deleted file mode 100644 index f1eca1a2fe0..00000000000 --- a/.changeset/35688-cell-editor-layer.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@object-ui/components': patch -'@object-ui/plugin-grid': patch ---- - -feat(grid): the inline cell editor floats over its cell, so the row keeps its height; a selected cell that is cut off shows its whole value - -Clause-②: no -Metadata-protocol: none - -In `data-table` (and so in every grid `ObjectGrid` draws): - -- **The editor draws on a layer over the cell** instead of inside it. The layer's top-left corner sits on the cell's, it is at least as wide as the column and grows wider or taller where the editor needs it (an address form, a record picker, a multi-line text), and neither the row's height nor any column's width changes. Near the bottom of the window it opens upward, near the right edge it shifts left, and its height is capped at the space left, scrolling inside. A cell partly hidden behind a frozen column, a right-pinned column or the sticky header is scrolled clear first; scrolling the cell out of sight commits the edit, as a click outside does. The layer stays inside the cell's DOM, so click-outside, Escape, Enter / Tab and focus behave as before. Tab inside the layer goes where it went before: the select-first grid commits and moves, other grids let the browser move focus. -- **`ObjectGrid` sizes the layer per field type**: an address or location starts 22rem wide, a multi-line text, markdown, code or JSON 20rem, a lookup, master-detail or user 18rem, a multi-select, tags or checkboxes 16rem, a date, date-time, phone, URL, email or currency 14rem, anything else 10rem; never narrower than its cell. -- **On the select-first grid** (the list page), a selected cell whose value the column cuts off shows it in full on a layer over the cell, wrapped and scrolling past a few lines. Escape, an arrow key or a click elsewhere closes it; Enter or a double-click turns it into the editor in the same place and at least the same size. Enter on a checkbox cell flips it, as Space and a second click already did, instead of opening an editor. diff --git a/.changeset/35688-in-cell-pickers.md b/.changeset/35688-in-cell-pickers.md deleted file mode 100644 index 427ed612f89..00000000000 --- a/.changeset/35688-in-cell-pickers.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -'@object-ui/fields': patch -'@object-ui/plugin-grid': patch -'@object-ui/components': patch -'@object-ui/i18n': patch ---- - -feat(fields): in a list grid's cell editor, select, multi-select, tags, date, time and colour open ready to pick - -Clause-②: yes (widening) -Metadata-protocol: none - -The widget contract `FieldWidgetComponentProps` gains two optional host keys, `inCell` (draw the face for a grid cell's editor) and `onCommit` (the user has finished: write the last `onChange` value and close). `FieldEditWidget` forwards both, and `ObjectGrid`'s cell editor passes them. A host that passes neither renders every widget exactly as before. - -In the cell editor of every grid `ObjectGrid` draws: - -- **Single select and status** show their option list at once, with a search box that filters as you type. The arrow keys move through the list, Enter or a click picks, and the pick is saved; the selection stays on the cell. With nothing picked, Enter commits as before and Escape cancels. -- **Multi-select** (and a select declared `multiple`) is the same list with check marks: each pick toggles, and the edit is saved when you move on. -- **Tags** list this record's tags with check marks; unchecking removes one, and text that matches no tag is added from the list's leading "Add" row (Enter). -- **Date and date-time** open their calendar at once while the typed value stays visible and editable in the text box. The calendar offers Today, Tomorrow, Next week (seven days from today) and Clear. On a date, picking a day or a quick pick saves and closes; on a date-time, a day keeps the calendar open for the time, as in forms. -- **Time** opens the browser's time picker when the editor opens. -- **Colour** shows the hex box first (Enter saves, Escape leaves) and a row of swatches plus the browser's colour picker; a swatch saves and closes. -- A value picked this way hands the keyboard focus back to the selected cell, and in a grid that edits on a single click, the click that picked it no longer opens the editor again. - -`@object-ui/i18n` adds the strings these faces show in every locale: `fields.datePicker.nextWeek`, `fields.datePicker.clearPick`, `fields.options.search`, `fields.options.noMatches`, `fields.tags.add`, `fields.color.swatches`, `fields.color.custom`. - -Forms, dialogs and the record page keep their current controls. diff --git a/.changeset/35688-in-cell-typed-lookup-rating.md b/.changeset/35688-in-cell-typed-lookup-rating.md deleted file mode 100644 index ddcf8607dce..00000000000 --- a/.changeset/35688-in-cell-typed-lookup-rating.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@object-ui/components': patch -'@object-ui/fields': patch -'@object-ui/plugin-grid': patch ---- - -feat(fields): typed values edit flat in their list cell, a record picker opens its list in place, and a rating is set without an editor - -Clause-②: yes (widening) -Metadata-protocol: none - -In the list grid's cell editor (the layer over the cell, `inCell`): - -- Text, email, phone, URL, number, currency and percent are the cell itself: one row tall, square, with no border, fill or shadow of their own, the layer's 2px frame the only line around them (square and flat even under a host theme that rounds and lifts every dialog with `!important`). The box starts as wide as its column and grows to the right with the text, over the next cells, without moving them. Numbers are right-aligned and raw (`34500.5`, not `34,500.50`); a currency shows its code before the amount; a percent shows its points and a `%`, without the slider. The grid's built-in text and number editors take the same flat look. -- A lookup, master-detail or user cell opens its searchable candidate list at once (recently used first, then results); a pick is the whole edit. Under the list, Browse all records opens the full record picker (classic lookups, gated by `dependsOn` like the list), where a single pick ends the edit too, and Clear is offered while the cell holds a value. -- On a select-first grid a rating opens no editor: a digit key sets that many stars (0 clears, capped at the field's scale), a click on a star of the already selected cell sets it, and Backspace or Delete clears it. `GridCellFacts` gains the optional `stars` fact a host sets for this (`ObjectGrid` sets it for `rating` fields). -- The record pickers' local "recently used" ring is kept per signed-in user as well as per object, so two accounts in one browser no longer share it. Rings stored under the old object-only key are not read, so each user's recents start empty once after the upgrade. - -Forms, dialogs and the record page draw these widgets as before. No i18n key is added. diff --git a/.changeset/35689-group-refresh.md b/.changeset/35689-group-refresh.md deleted file mode 100644 index 10442329f16..00000000000 --- a/.changeset/35689-group-refresh.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@object-ui/plugin-grid': patch ---- - -fix(grid): after a cell save in a list that selects a cell first, a grouped row moves to its new group once the user leaves the row, and group subtotals and the footer total follow the save - -Clause-②: no -Metadata-protocol: none - -A list that selects a cell first (the list page) saves each cell and redraws only that row. Until now the groups and the footer did not follow that save: - -- **A changed group field.** The row stays where it is while the user is still on it. Once a cell of another row is selected, the row shows in its new group, and both groups' counts and subtotals are correct. A grid grouped on the server reads its group headers and the open groups' rows again at that moment. A grid that groups the rows it was handed puts the saved row in its new group. -- **Any other field.** The group subtotals include the saved value straight away. A grid grouped on the server reads its group headers again and reads no row. A grid that groups the rows it was handed recounts them. -- **The footer total.** A flat grid whose rows are the whole set totals the saved value straight away. A grid paged on the server already read its whole-set figures again after a write, and still does. - -A grid that is not select-first still reads everything again after each save, as before. diff --git a/.changeset/35689-inline-edit-a11y.md b/.changeset/35689-inline-edit-a11y.md deleted file mode 100644 index 3ebbe1d7f1e..00000000000 --- a/.changeset/35689-inline-edit-a11y.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@object-ui/components': patch -'@object-ui/i18n': patch -'@object-ui/plugin-grid': patch ---- - -feat(components): in a list's grid a read-only cell says it is read-only, a cell save is said in one live region, and a touch never edits a cell in place - -Clause-②: yes (widening) -Metadata-protocol: none - -The widening is additive: the new key `table.cellSavedAnnouncement` in every locale pack `@object-ui/i18n` publishes through `./locales`. - -- **Read-only cells.** When the data table is a grid (`role="grid"`: a list page with the select-first cell model, or `keyboardNavigation`), a cell that opens no editor carries `aria-readonly="true"`, and so does the focus inside the selected cell, so a screen reader says "read only" on the cell it moves to. The selected cell adds the host's own facts (`GridCellSelection.describeCell`), asked as it becomes selected and again only when the row is re-read or the host hands a new value, never on each render; the rest read the table's own (`editable`, the column, the row). A plain table carries no `aria-readonly`. In a list, an approval lock or an update verdict that answers after the cell was selected is said on that cell at once, without the reader moving: the lock read re-renders the grid when it answers, and the grid hands the table a new value only when what its cell facts read changed. -- **Save results.** A table that saves each cell (`GridCellSelection` with `onRowSave`) draws one visually hidden polite live region for its whole life and says each saved cell there, by column name ("Saved: Amount"; new pack key `table.cellSavedAnnouncement`, in all eleven locales). Cells saved together are joined in the locale's list punctuation (`validation.formInvalidJoiner`: `、` in ja and zh); a column with no header is never named by its key (the region says "Saved"). A refused save is said once, by the cell's existing alert. The cell's saving/saved mark is no longer a live region of its own (it was mounted with its words and announced unreliably); it stays a named image. -- **Touch.** A tap on a cell that is not selected never edits in place: a lookup cell's edit button is not drawn for a finger, and a tap that lands on one drawn earlier for a mouse does nothing (the row ignores a click on a button). A tap elsewhere on the cell still opens the record, which is where a touch edits. A later click on the button with no pointer of its own (assistive tech) edits as before. diff --git a/.changeset/35694-body-regexp-pattern-refused.md b/.changeset/35694-body-regexp-pattern-refused.md deleted file mode 100644 index fef58e255c9..00000000000 --- a/.changeset/35694-body-regexp-pattern-refused.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -'@objectstack/lint': minor -'@objectstack/runtime': minor -'@objectstack/spec': minor ---- - -fix(lint)!: a body whose regular-expression pattern the runtime's QuickJS also refuses is refused, not only warned about - -Clause-②: no (narrowing) -Metadata-protocol: narrowed -Skills-docs: follow-up #36727 - -<!-- adr-0087: registered body-regexp-pattern-refused --> - -**BREAKING** only for a body that never ran. `action-body-does-not-compile`, `hook-body-does-not-compile` and `job-body-does-not-compile` compile an L2 body inside the wrapper the runtime runs it in, with the host's JavaScript engine, and reported every failure V8 words as `Invalid regular expression: /PATTERN/FLAGS: REASON` at `warning`, because the host's V8 and the runtime's QuickJS differ on some patterns. Measured over the same wrapper text (Node 22.23.5's V8 12.4, Unicode 17.0 tables, against quickjs-emscripten 0.32.0), they differ on two constructs, a duplicate named capture group in different alternatives (`/(?<a>x)|(?<a>y)/`, V8 `Duplicate capture group name`) and a modifier group (`/(?i:a)/`, V8 `Invalid group`), and on three Unicode property names, `IDS_Unary_Operator` (`IDSU`), `Modifier_Combining_Mark` (`MCM`) and the script `Katakana_Or_Hiragana` (`Hrkt`, under `sc=`, `Script=`, `scx=` or `Script_Extensions=`), V8 `Invalid property name`: every name in QuickJS's own tables was compiled in every key form, under `u` and `v`, bare and in a class, and these twelve spellings were every disagreement. Node 22 refuses them and QuickJS runs them. Every other pattern reason probed is refused by QuickJS too, among them an unterminated group (`/(/`), nothing to repeat (`a**`), a class range out of order (`/[b-a]/`), and under `u` a back-reference to a group the pattern does not name, a Unicode property name neither engine knows (`/\p{Nope}/u`) and an incomplete quantifier (`/a{/u`). Such a body passed `os validate`, `os build`, `os lint` and the runtime publish door, and every run of it failed. - -What moves (FROM → TO): - -- The three rules (`validateActionBodyCompiles`, `validateHookAndJobBodyCompiles`, `@objectstack/lint`) on a regular-expression pattern failure that is not one of those measured gaps: FROM `warning` TO `error` at `os validate`, `os build`, `os lint` and the runtime publish door (`action`, `object` and `hook` writes, `422 INVALID_METADATA`), with a hint that names the fix. The measured gaps stay a `warning`; a property name is judged by the host's Unicode tables, and on a host whose tables are older than Unicode 17.0 every property name it refuses is a `warning`; a later Node whose V8 accepts a gap reports nothing for it. -- `BodyCompileShape` (`@objectstack/lint`) gains `regexp-dialect-gap`, the one `warning` arm; `regexp-pattern` is now an `error`. -- The unterminated-literal hint names a line terminator inside the literal as a cause (a `\n` written with one backslash in a quoted or JSON-carried `body.source`). -- A hook lowered from an inline `handler` whose body does not compile gets a hint that names the handler instead of `body.source`. -- The runtime's QuickJS runner (`@objectstack/runtime`): a hook or job body that does not compile is reported FROM the generic `hook 'NAME' threw: SyntaxError: …` (the sentence a body that ran and threw gets) TO `hook 'NAME' does not compile: SyntaxError: …` (and `job 'NAME' …`), the way an action body's is. The caller's answer is unchanged: the `/data` door still answers the sanitised `500 INTERNAL_ERROR`. -- `os explain` for the three rules and the ADR-0087 entries `action-body-does-not-compile-refused`, `action-body-regexp-literal-token-refused` and `hook-job-body-does-not-compile-refused` now say which pattern failures warn. - -The fix: close every group, give each quantifier something to repeat or escape it, write a class range low to high, reference only a group the pattern names, and use a Unicode property that exists. - -No conversion is made (ADR-0087 D3, entry `body-regexp-pattern-refused`): which pattern the author meant is a judgement. Measured first-party exposure: zero. diff --git a/.changeset/35698-text-key-literal-close.md b/.changeset/35698-text-key-literal-close.md deleted file mode 100644 index fa703dc55a3..00000000000 --- a/.changeset/35698-text-key-literal-close.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/spec': patch ---- - -fix(spec): a hook's or action's `ctx.text` key is read as literal at save only when its closing quote ends the argument - -Clause-②: no -Metadata-protocol: none - -The save doors of `HookSchema` and `ActionSchema` read the text keys a body asks for literally (`hookTextKeysAskedIn`) and refuse one that `texts` does not declare. The reading stopped at the closing quote, so a key built from a literal — `ctx.text('follow_up' + suffix)`, `ctx.text?.('follow_up' + suffix)`, `ctx.text('follow_up'.concat(suffix))` — was read as a literal ask for `follow_up` and refused at save, though the body would run correctly once the built key is declared. The published reading already left a computed value to the run-time refusal; the save now agrees with it. - -A key is literal now only when its closing quote is followed by `,` or `)`, after optional whitespace. Every literal ask the save refused before is still refused, in the same words: `ctx.text('key')`, `ctx.text('key', params)`, `ctx.text?.('key', params)`, a backtick key with no hole, and a key whose quote is followed by a comment or a line break before the comma or close. A key built from a literal is refused when the hook or action runs, naming the key, as any other computed key is. No author action is needed. diff --git a/.changeset/35701-shipped-text-after-body-tables.md b/.changeset/35701-shipped-text-after-body-tables.md deleted file mode 100644 index 11965ac8dd9..00000000000 --- a/.changeset/35701-shipped-text-after-body-tables.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/spec': minor ---- - -docs(spec): two upgrade-guide entries state the record page rules as merged - -Clause-②: no -Metadata-protocol: semantic - -`field-group-related-list-side-card-refused` no longer lists a plain `master_detail` with no `inlineEdit` among the shapes a field group may not name: a group may place a `master_detail` FK that declares no `relatedList`, `inlineEdit` or not, and makes it a body table. Its remedy and reason name that rule. `page-slots-tabs-retired` says a `kind: 'full'` page is drawn as authored on the desktop full record page; a phone and the side preview draw the standard record page. No rule, refusal, schema or entry `id` changes, and `os migrate meta` lists the same entries for the same stacks. diff --git a/.changeset/35702-boolean-yes-no-counts.md b/.changeset/35702-boolean-yes-no-counts.md deleted file mode 100644 index 3fbec222f95..00000000000 --- a/.changeset/35702-boolean-yes-no-counts.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/lint': minor -'@object-ui/plugin-grid': patch -'@object-ui/i18n': patch ---- - -feat(spec): `count_true` / `count_false` column summaries — a boolean column's Yes and No counts in the list footer and group headers - -Clause-②: yes (widening) -Metadata-protocol: added - -`ListColumn.summary` accepts two more members, `count_true` and `count_false`: the number of rows whose boolean (or toggle) cell is true, and the number whose cell is false. A cell with no value is neither; it stays `count_empty`'s, so `count_true + count_false = count_filled`. - -Both are answered on the server with no new aggregation function: booleans aggregate as numbers on every backend, so `count_true` is `SUM(field)` and `count_false` is `COUNT(field) − SUM(field)`, read off the group header row (or the footer's whole-set row) by `deriveColumnSummary`. `COLUMN_SUMMARY_AGGREGATION`'s derived rows now carry `reads`, every node the member reads (`from` is its first); `columnSummaryNodeFunctions(mapping)` is the one reading of a row's nodes, which the group header compiler, the footer's whole-set query and the lint now share. `COLUMN_SUMMARY_FIELD_TYPES` / `isColumnSummaryCompatibleWithFieldType` say the two members apply to `boolean` and `toggle` only. - -`@objectstack/lint` refuses `count_true` / `count_false` over any other field type under `list-view-summary-field-type-refused` (an error, so `os validate` and the save door fail): over a number the same `SUM(field)` is a total, and the footer would print it as a count. - -`@object-ui/plugin-grid`'s footer menu offers Count of Yes and Count of No first on a boolean or toggle column, and only there; the footer draws them as `Yes 12` / `No 3`, from the whole matched set when the server answers it and from the page, labelled as the page's, when it does not. `@object-ui/i18n` adds the `grid.summary` keys `countTrue`, `countFalse`, `menuCountTrue` and `menuCountFalse` in every pack. diff --git a/.changeset/35702-footer-calculation-row.md b/.changeset/35702-footer-calculation-row.md deleted file mode 100644 index 8413c4383a3..00000000000 --- a/.changeset/35702-footer-calculation-row.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@object-ui/plugin-grid': patch -'@object-ui/plugin-list': patch -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -feat(ui): a resident footer row on list tables, where a reader who may change the view picks each column's calculation - -Clause-②: yes (widening) -Metadata-protocol: none - -A list's table view now always ends in one footer row, aligned with the columns and held at the bottom of the table: the record count in its first cell, and under each column its calculation, if any, written as the calculation's name in the secondary text colour and the figure in the normal one, with a space and no colon (`Sum ¥1,234,500`). A `min` / `max` over a date reads Earliest / Latest. The list's own "N records" line at the foot of the page is gone from a table that draws this row; the data-cap notice stays there. A grouped table, the phone's card list and every other view type are unchanged. - -A reader who may change the open view clicks a cell to pick the column's calculation from one menu that lists what the field type allows (sum and average on numbers and amounts, earliest and latest on dates, the counts on any field), the current one ticked and None last. The console saves it as the column's `summary` on the view, and nothing else of the reader's layout. On a personal view it is saved at once and stays drawn. On a shared view the console saved, a reader who may edit it saves it as a draft through the view settings' own save: the draft save reloads the list, which then draws the published view again, so the pick shows for a moment and is drawn again, for every reader, once the draft is published. Until #35932, each pick's draft is built on the published view, so a second pick before Publish replaces the first in the draft: only the latest pick is published. The menu is offered on the columns the view itself declares; a column the reader added for themselves and a view that declares no columns draw the figures with no menu. A pick that is not saved is taken back, with the refusal said (a view a read-only package ships is refused this way: its changes go to the package's customization). A reader who may not change the view sees the figures and no menu. - -New host props, all optional and never authored metadata: `ObjectGrid` takes `residentSummaryRow`, `onColumnSummaryPick(field, summary)` (answer `false` to have the pick taken back), `summaryPickFields` and `onResidentSummaryRowChange(drawn)`; `ListView` takes `onColumnSummaryPick` and `columnSummaryPickFields`. `ColumnSummaryResult` gains `name` and `text`, the two halves of its `label`. `@object-ui/i18n` adds the `grid.summary` keys `earliest`, `latest`, `pageName`, `calculate`, `none`, `menuPercentEmpty` and `menuPercentFilled` in every pack. diff --git a/.changeset/35704-lint-item-draft-hint.md b/.changeset/35704-lint-item-draft-hint.md deleted file mode 100644 index 2e54eab0ef4..00000000000 --- a/.changeset/35704-lint-item-draft-hint.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/cli': patch ---- - -fix(cli): `os lint --item` points at the draft publish verdict, not at publishing - -Clause-②: no -Metadata-protocol: none - -The `os lint --item` text output ended its list of rules that need the rest of the stack with "Run `os lint` on the project, or publish the draft, for those." Publishing makes the item live. The line now names `os meta register <type> --data <file> --mode draft --package <id>`, filled with the item's type and file, which shows the full publish verdict while nothing goes live, beside `os lint` on the project. The `--json` output is unchanged. diff --git a/.changeset/35705-skill-evals-triggers-only.md b/.changeset/35705-skill-evals-triggers-only.md deleted file mode 100644 index d46f52c8e81..00000000000 --- a/.changeset/35705-skill-evals-triggers-only.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/scenarios': patch ---- - -skill-evals: `--triggers-only` runs the selected bundles' trigger cases alone - -Clause-②: no -Metadata-protocol: none - -`pnpm --filter @objectstack/scenarios skill-evals --triggers-only` selects only the `should_trigger` cases of the selected bundles, on the with-skill arm, so a change to when a skill loads is measured on its trigger cases alone: the six metadata bundles plan 42 turns instead of 354. The summary is the trigger section alone; `round.json` records `scope.triggersOnly`, and `--regrade` keeps that scope. It works with `--dry-run` and `--skills-from VERSION`. It is refused beside `--regrade` or `--self-test`, and a bundle named in `--skills` with no trigger case is refused. The README section "Running the published skills' eval cases" documents it. diff --git a/.changeset/35711-residual-extension-and-jobs.md b/.changeset/35711-residual-extension-and-jobs.md deleted file mode 100644 index 864d81e411a..00000000000 --- a/.changeset/35711-residual-extension-and-jobs.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/metadata': minor -'@objectstack/objectql': minor ---- - -fix(objectql)!: a composition's top-level `objectExtensions` entry that no package body carries is registered and served; composition refuses two such jobs of one name, and residual extensions that would share one package's slot - -Clause-②: no (narrowing) -Metadata-protocol: narrowed -Skills-docs: none — no skill teaches placing `objectExtensions` or `jobs` in a manifest-less input of a `'preserve'` composition; the refusal names both entries and prescribes the fix - -<!-- adr-0087: registered stack-residual-extension-registered-and-jobs-judged --> - -**BREAKING** accept-set narrowing, shipped as `minor`, beside a runtime fix. - -- **Fixed (`@objectstack/objectql`, `@objectstack/metadata`).** A composed artifact that carries `packages[]` keeps the entries no package body claims at its top level, and the boot registers that residual under the artifact's `manifest.id` (ADR-0130 D4). Under `composeStacks(stacks, { manifest: 'preserve' })` that is an input with no `manifest`; under `'first'`, `'last'` or an index it is also the own top-level entries of an input that is itself a multi-package artifact. Its `objectExtensions` entries were registered by no door: the target object was served without their fields (`INVALID_FIELD` on a write naming one) and nothing was logged, through `os serve` and through `os build`'s artifact alike. The residual rule (`unclaimedTopLevel`) now lists such an entry (type `object_extension`) when no package body carries an entry equal to it, and the engine registers it as an `extend` contribution under `manifest.id`, as a body's entry registers. An entry whose field names a picklist no package body declares is not registered and is named at boot, like a residual object. -- **Refused now, at composition (`STACK_CROSS_REFERENCE_INVALID`, 422), under every manifest strategy once the result carries `packages[]`.** Two residual jobs of one name: the boot's job binder schedules neither (`NOT SCHEDULED` at `error`). A residual `objectExtensions` entry for an object that the body carrying `manifest.id` also extends with other fields: one extension of an object registers per package, so only the last one's fields would be served; the finding names that body's entry first, then the residual's: `Object extension of 'crm_line' is declared twice in \`objectExtensions\`: 'com.example.billing' (stack #2) objectExtensions[0] and stack #1 objectExtensions[0]. …`. Two residual `objectExtensions` entries for one object, also when another package body extends that object: a residual entry is now told from a body's flattened copy by value, not by target, so the two are one package's pair (they used to count as that body's copies and compose). -- **Not refused (known gap).** A residual job that shares its name with a package body's job, with other content, still composes: it is read as that body's copy, and the boot holds two enabled jobs of the name and schedules neither. -- **Wording.** The `jobs` finding at every door now says what the runtime does with the pair: `The runtime keys jobs by name: the metadata keeps only the last of these entries, and the job scheduler refuses a name two enabled jobs share, so when both are enabled neither runs.` -- **Unchanged.** One residual extension for an object another package extends composes, and both register. A residual entry equal to a body's entry is that body's copy. Package-claimed extensions and a single residual job compose and boot as before. -- **Installed artifacts.** A residual extension sharing its package's slot registers, the last one served, with one `error` line per object naming the entries. A residual extension now passes the registry's `extend` door as a package body's entry does, so one that door refuses (reachable only through `strict: false` or a hand-built artifact) now fails a boot that used to load and drop it. - -One-line fix: declare each job name once; move a top-level extension into the package that owns it, or merge it into that package's own entry for the object. diff --git a/.changeset/35719-approvals-reject-route-requires-reason.md b/.changeset/35719-approvals-reject-route-requires-reason.md deleted file mode 100644 index 312a00335e9..00000000000 --- a/.changeset/35719-approvals-reject-route-requires-reason.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@objectstack/plugin-approvals': patch ---- - -fix(approvals): a reject through the approvals route or `IApprovalService.decide` requires a reason - -Clause-②: no (narrowing) -Metadata-protocol: none - -<!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is one runtime check in this plugin's decide(): a reject without a non-blank string comment is refused. No stored row, registry key or authored value changes, so there is nothing for a migration to rewrite and no tombstone. --> - -**BREAKING** for a caller of `POST /api/v1/approvals/requests/:id/reject`, or of `IApprovalService.decide()` with `decision: 'reject'`, that sends no `comment`, an empty or whitespace-only one, or one that is not a string: the call used to reject the request and is now refused before anything is read or written. It ships `patch` because it is a non-protocol breaking change (AGENTS.md Post-Task Checklist step 3): nothing a metadata author writes changes, so `Metadata-protocol` is `none`. - -The refusal is the one the `approval_reject` action door gives, judged by the same rules over the same `textarea` param: `400 VALIDATION_ERROR` with `Invalid action params: Action param "comment" is required` for an absent, `null`, empty or whitespace-only value, and `Invalid action params: Action param "comment" (textarea): …` for a value that is not a string (a number, a boolean, an array or an object). The request stays pending. A reject with a reason runs as before, and an approve keeps its comment optional. The platform's own rejects keep working: the SLA escalation's `auto_reject` and the revision-limit auto-reject do not pass through `decide()`, and the email action link records its fixed text. The email action link still records no reason the approver typed; that is a separate follow-up. - -Fix for a caller: send the reason as `comment` in the reject body (`{ "comment": "Over budget." }`). diff --git a/.changeset/35719-client-approvals-reject-requires-comment.md b/.changeset/35719-client-approvals-reject-requires-comment.md deleted file mode 100644 index 75752bcd21f..00000000000 --- a/.changeset/35719-client-approvals-reject-requires-comment.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@objectstack/client': patch ---- - -fix(client): `client.approvals.reject` requires the decision and its `comment` - -Clause-②: no (narrowing) -Metadata-protocol: none - -<!-- adr-0087: not-required (no-migration-prescription) No spec key or authored value changes. What moves is the parameter type of one SDK method: the decision argument and its comment member become required, matching the approvals route, which now refuses a reject without a reason. No stored row changes, so there is nothing for a migration to rewrite. --> - -**BREAKING** for TypeScript callers of `client.approvals.reject(requestId)` or `client.approvals.reject(requestId, { actorId })`: the decision argument and its `comment` are now required, so those calls no longer compile. At runtime the approvals route refuses a reject without a non-blank reason with `400 VALIDATION_ERROR`. It ships `patch` because it is a non-protocol breaking change (AGENTS.md Post-Task Checklist step 3). `client.approvals.approve` is unchanged; its comment stays optional. - -Fix for a caller: pass the reason, `client.approvals.reject(requestId, { comment: 'Over budget.' })`. diff --git a/.changeset/35721-clone-file-field-stored-form.md b/.changeset/35721-clone-file-field-stored-form.md deleted file mode 100644 index cd93b9ca287..00000000000 --- a/.changeset/35721-clone-file-field-stored-form.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/metadata-protocol': patch ---- - -fix(metadata-protocol): cloning a record whose file fields are set answers 201 - -Clause-②: no -Metadata-protocol: none - -`POST /data/:object/:id/clone` with no `overrides` answered `400 VALIDATION_FAILED` ("… has an invalid file value: … expected string, received object") for any record holding a file in a `file`, `image`, `avatar`, `video` or `audio` field, single or `multiple`. The clone read the source the way the caller reads it, with each file expanded to its `{ id, name, size, mimeType, url }` object, and inserted that object back; the insert takes a file field's stored value, the `sys_file` id, only. - -The clone now reads the source's file fields in their stored form (the bare id, or the list of ids for a `multiple` field). Each one then follows the same rule a clone naming the id in `overrides` already followed: the file's bytes are copied into a new `sys_file` that the clone's field owns, and the source record keeps its own file. A file field named in `overrides` still takes the override. Because a clone with no body now reaches that same copy step, it also gets that path's answer when a source file's `sys_file` row exists but its stored bytes are missing: `500 FileReferenceCopyError`, the error the `overrides` path already returned in that case. diff --git a/.changeset/35722-action-link-reject-reason.md b/.changeset/35722-action-link-reject-reason.md deleted file mode 100644 index 5f99962f4a5..00000000000 --- a/.changeset/35722-action-link-reject-reason.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -'@objectstack/plugin-approvals': patch ---- - -fix(plugin-approvals)!: a reject from the email action link records the reason the approver types on the confirm page, and a reject with no reason is refused on the page - -Clause-②: no (narrowing) -Metadata-protocol: none -Skills-docs: none — nothing under `skills/**` teaches the approval action link or its confirm page (`git grep -i` for "action link", "approvals/act" and `issueActionTokens` over `skills/` finds nothing) - -<!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped. One exported member moves: `ApprovalService.redeemActionToken` takes an optional reason, and its outcome type gains a `reason_required` arm (both stated below). What moves is the answer the ADR-0043 action page, and that member, give a redemption of a reject link with no reason: no stored row, registry key or authored value changes, so there is nothing for a migration to rewrite and no tombstone. --> - -**BREAKING** for a caller that POSTs a reject link's token to `/api/v1/approvals/act` (the plugin's self-hosted mount, or the HTTP dispatcher's `/approvals/act` domain through `IApprovalService.handleActionPage`) without a reason, and for code that calls the exported `ApprovalService.redeemActionToken` in process on a reject token without one. - -- FROM: the confirm page for a reject link had no reason field. A POST carrying only the `token` field rejected the request and recorded the fixed comment "Via action link", while every other reject door (the record-page action, MCP `run_action`, the `/reject` route, the SDK) refused a reject with no reason. -- TO: the reject confirm page carries a required "Reason for rejecting · 驳回理由" field, posted as `comment`, and the decision records that text as its comment. A POST whose `comment` is missing, blank or not a string (judged by the same rule `ApprovalService.decide()` applies) is answered the same confirm page again with the refusal "Enter a reason to reject this request. · 驳回需填写驳回理由。" and status `400`. Nothing is decided and the token is not consumed, so the approver can type a reason and send the same link again. - -- In process, FROM: `redeemActionToken(token)` on a live reject token consumed it, rejected the request with the comment "Via action link" and returned `{ ok: true, action: 'reject', … }`. -- In process, TO: `redeemActionToken(token, input?: { comment?: unknown })`. On a reject token whose `input.comment` is missing, blank or not a string it returns `{ ok: false, reason: 'reason_required', action: 'reject', request, approverId }`, a new arm of the `ActionTokenOutcome` type that `redeemActionToken` and `peekActionToken` return, without consuming the token or deciding. With a reason it decides and records that reason as the comment. - -**Not moved.** An approve link: its page has no reason field, a POST reads only `token`, and the decision still records "Via action link". A dead link (unknown, expired, used, already decided, handed to someone else) is still told on the result page with `200`, checked before the reason, and a GET still never decides. Both doors still answer the same status and bytes for the same body. - -The fix for a caller: send the reason in the form's `comment` field with the `token` when redeeming a reject link. In process, pass `{ comment }` as the second argument to `redeemActionToken` for a reject token, and handle the `reason_required` arm where you switch on the outcome's `reason`. diff --git a/.changeset/35723-approval-activity-feed.md b/.changeset/35723-approval-activity-feed.md deleted file mode 100644 index df0dab4d7b7..00000000000 --- a/.changeset/35723-approval-activity-feed.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@objectstack/plugin-approvals': patch -'@object-ui/plugin-detail': patch -'@object-ui/app-shell': patch ---- - -feat(plugin-approvals): a record's activity shows its approval steps, to the users who can read its approvals - -Clause-②: no -Metadata-protocol: none - -A record under approval used to show no approval in its activity: nothing wrote an activity entry for an approval step, so the activity stream's one-line approval entry was reachable only from items a host supplied by hand. - -- **One activity entry per approval step.** plugin-approvals now appends one `sys_activity` entry for each step it records in its decision log, about the record the request governs: submitted, approved (`Approved · Manager review`, the step's label after the dot), rejected (`Rejected · Manager review`), sent back for revision (`Sent back for revision · Manager review`), resubmitted, recalled, and cancelled (the record was deleted). Other actions (a reminder, a reassignment, a thread comment, …) write none, and an object that sets `enable.activities: false` gets none, as the CRUD mirror writes none for it. The entry carries no decision comment. It follows ADR-0052 §5, so no published vocabulary changes: `type` is the built-in `system`, the domain kind is `metadata.kind: 'approval'` (with the step's action, its label and the flow and step names beside it), and `source_object` / `source_id` name the request. A deployment without plugin-audit has no `sys_activity` and gets no entries. -- **Each entry reads in the reader's language.** The stored `summary` is the English line from plugin-approvals' own catalog (`approvalActivity*` messages, shipped in all eleven of its locales). A read that carries a locale is served the line re-composed in that locale, and the step's label is read from the app's language pack (`flows.<flow>.approvals.<node_id>.label`) the way the approvals tab reads it, else the stored label: a zh-CN reader sees `已批准 · 经理审批`. A system read, or a read with no locale, gets the stored English line. A failed append never fails the approval step; it is logged once at `error`. -- **Only the users who can read the record's approvals read those entries.** A read of `sys_activity` keeps an approval entry only when the approvals service would serve the caller its request: a participant (submitter, current or past approver), the override actor, or a reader of the record where the object opts into `enable.approvalsVisibleToReaders`. Every other entry is served as before, and plugin-audit's rule that the record must be readable still applies. The record page's activity count and its rows agree. -- **The stream draws each entry as the approval line, and 「看审批」 opens the approvals.** The console reads an activity row with `type: 'system'`, `metadata.kind: 'approval'` and a `sys_approval_request` source as the `approval` feed kind (`APPROVAL_ACTIVITY_FEED_TYPE`, exported from `@object-ui/plugin-detail`), so `approval` now counts as produced. The record page supplies the new `RecordViewApprovalsContext`, and the approval line's 「看审批」 opens the record's 审批 tab, the same place the approval tag in the header opens; with no approvals the reader is served, the line has no link. The entry keeps `sys_activity`'s own lifecycle (reaped after 14 days); the 审批 tab keeps the full history. diff --git a/.changeset/35724-attachment-uploader-rename.md b/.changeset/35724-attachment-uploader-rename.md deleted file mode 100644 index 04e1887966f..00000000000 --- a/.changeset/35724-attachment-uploader-rename.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -'@objectstack/service-storage': patch -'@objectstack/rest': patch -'@object-ui/app-shell': patch -'@object-ui/i18n': patch -'@object-ui/core': patch ---- - -feat(service-storage): rename an attachment through a door by the attachment delete rule, and the Attachments tab names the uploader of other people's files - -Clause-②: yes (widening) -Metadata-protocol: none - -Two additions, no answer narrowed: - -- **The rename door.** `PATCH /api/v1/attachments/:id` with `{ "file_name": "..." }` sets the name one `sys_attachment` row is listed under, by the attachment delete rule: the caller who uploaded it, or a caller the attachment update gate admits as an editor of the record it is attached to. The door reads the row as the caller first, so every attachment read rule applies; the uploader's rename is written on the caller's behalf with no edit grant, as the uploader's removal door does; anyone else's goes through the data engine as the caller, so the object's edit grant and the update gate judge it. It answers `{ id, file_name }` (200), and refuses `UNAUTHENTICATED` (401), `VALIDATION_ERROR` (400: a query parameter, a blank name, or any body key besides `file_name`), `RECORD_NOT_FOUND` (404: an attachment the caller cannot read answers as one that does not exist) and the update gate's `RECORD_NOT_ACCESSIBLE` (403) for a caller who can read the record but not edit it. Only the attachment row's name changes: the stored file, its bytes and the name a download carries are untouched. The package's exports are unchanged; `StorageServicePlugin` mounts the door beside the removal door. -- **The uploader, expanded.** The record page payload's `attachments` part (`POST /api/v1/data/:object/:id/page`) now asks its `sys_attachment` read with `uploaded_by` expanded, as the `activity` part expands its actor, and the Attachments panel's own list read does the same. The expansion is a read of `sys_user` as the caller: a reader who may read the uploader gets that user's row (its name), and a reader who may not keeps the stored id. A consumer of that part that compared `uploaded_by` with a user id now reads `uploaded_by.id` where the reader may read the user. - -The record Attachments tab shows the uploader's name on every row whose uploader the reader may read, and never shows a bare id. Its row menu offers Rename beside Delete, on the reader's own uploads and, to a reader who also holds the edit grant on `sys_attachment`, on every row, opening a name prompt; the new name is the one the list shows after a reload. - -`@object-ui/core`: the affordance-to-grant map gains the `attachmentRename` row (the edit grant on `sys_attachment`), which the panel asks for a row the caller did not upload. diff --git a/.changeset/35726-batch-refusal-failed-operation.md b/.changeset/35726-batch-refusal-failed-operation.md deleted file mode 100644 index 876a14a215e..00000000000 --- a/.changeset/35726-batch-refusal-failed-operation.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@objectstack/rest': patch -'@object-ui/plugin-detail': patch ---- - -feat(rest): a refused cross-object batch names the operation that caused it, and a related list's multi-pick add names that record - -Clause-②: yes (widening) -Metadata-protocol: none - -`POST {basePath}/batch` (the cross-object transactional batch) now adds `failedOperation: { index, object }` to its refusal body when one operation is the cause: `index` is that operation's position in the request's `operations`, and `object` is the object it named. It rides beside the existing `error`, `code` and `userMessage`. It is present when an `update` or `delete` op is refused up front for naming no row (`400 VALIDATION_FAILED`), and when an op fails while the transaction runs (for example `404 RECORD_NOT_FOUND`, a `400 VALIDATION_FAILED` validation refusal, `400 BATCH_UNRESOLVED_REF`, `409 RESOURCE_CONFLICT`). It is absent when the request as a whole is refused (schema, `atomic: false`, size, no transaction), on the per-object API exposure and API-key management refusals, which are judged once per object and action, and on a failure after the last op ran. - -The key is additive. The success body does not change, and the batch stays all or nothing: a refused batch writes no row. Through `@objectstack/client` the key reaches `err.details.failedOperation`, because the client hands a flat refusal body with no `details` of its own over as `err.details`. A refusal that carries its own `details` (a package-scoped `409 RESOURCE_CONFLICT` with `details.candidates`) still carries the key on the body, but the client exposes only its `details` there. - -The related list's "Add" picker (`@object-ui/plugin-detail`) uses it: when a multi-pick add is refused for one picked record, the inline error names that record by the label the picker shows, followed by the server's reason. A refusal without an index inside the operations sent shows the server's reason alone, as before. diff --git a/.changeset/35727-sourced-list-one-condition-tag.md b/.changeset/35727-sourced-list-one-condition-tag.md deleted file mode 100644 index ef6852ff820..00000000000 --- a/.changeset/35727-sourced-list-one-condition-tag.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@object-ui/plugin-list': patch -'@object-ui/app-shell': patch ---- - -fix(list): a list opened from a record shows its condition once, by name - -Clause-②: no -Metadata-protocol: none - -A list opened from a record's related tab (「↗」) now shows its condition once, as the data page's own 「Filtered by」 tag: the list under it still filters on the condition but no longer repeats it as a locked chip printing the record's raw id beside a second 「Reset」. Where a list does lock a lookup condition (a saved view filtered on a lookup), the chip names the record it points at — and so does the reader's own lookup filter chip — keeping the id only when the name cannot be read. The condition row's 「Reset」 is drawn only while the reader has something of their own to reset (a filter they added, a sort they changed); it is no longer drawn disabled. - -`ListView` takes a host prop, `hostDrawnConditionFields`: the fields whose conditions in `schema.filter` the host draws as its own tags. The list keeps filtering on them and draws no locked chip for them. It is not a schema key. diff --git a/.changeset/35729-chart-view-bar-left-edge.md b/.changeset/35729-chart-view-bar-left-edge.md deleted file mode 100644 index e4aae2397e5..00000000000 --- a/.changeset/35729-chart-view-bar-left-edge.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix: a chart view's view bar starts its view icon on the list page's 16px left edge, as the list view's bar does - -Clause-②: no -Metadata-protocol: none - -A chart view draws its own copy of the view bar, and that copy kept `sm:px-4` after the list view's bar moved to `sm:pl-2.5 sm:pr-2` in #35663. From `sm` up the chart's view icon sat 22px from the main area's left edge while the list's sat at 16, so switching between a list view and a chart view moved the switcher. The chart bar now carries the list bar's padding: at 1280 its icon starts at 16 and its right padding is the list bar's 8. Below `sm` both bars keep `px-2`, so a phone is unchanged. - -The list renderer's `inSetup` input is gone. Since #35663 removed the Setup app's row-number line it was read only in a memo's dependency list, so `ObjectView` no longer derives it from the route. diff --git a/.changeset/35730-decided-step-approval-progress.md b/.changeset/35730-decided-step-approval-progress.md deleted file mode 100644 index 976c1000da7..00000000000 --- a/.changeset/35730-decided-step-approval-progress.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -fix(app-shell): a decided approval step shows its step and decision in "Approval progress" instead of an empty card - -Clause-②: no -Metadata-protocol: none - -On an approval request's page, a request decided at the first step of its flow, or decided in a one-step flow, showed an "Approval progress" card with nothing in it: the step line drew only from two steps up, a single-approver step has no tally, and nobody is pending any more. The step line now draws a decided request's route even when it is a single step, and marks the request's own step with its decision (Approved, Rejected, Returned for revision, Recalled or Cancelled) instead of drawing a rejected, returned, recalled or cancelled step as the step in progress. A pending request still needs two steps for a line, as before. A progress card with nothing to draw (no line, no tally, nobody pending) is no longer drawn at all. - -New locale key: `approvalsInbox.statusCancelled` in every ui language pack. Inside `@object-ui/app-shell`, `ApprovalStepLine` gains an optional `decided` prop and its module exports a new `stepLineDraws` helper; neither is exported from the package entry, so the package's public exports are unchanged. No metadata changes. diff --git a/.changeset/35734-percent-formula-return.md b/.changeset/35734-percent-formula-return.md deleted file mode 100644 index ba88fa172d1..00000000000 --- a/.changeset/35734-percent-formula-return.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@objectstack/lint': patch -'@object-ui/plugin-grid': patch -'@object-ui/plugin-detail': patch ---- - -fix: a `percent` or `currency` formula is a KPI chip on the record header; the lint prescription names all six return types - -Clause-②: no -Metadata-protocol: none - -A `formula` field whose `returnType` is `percent` drew percentages in its list cells, and the record header strip drew it without the figure typography a `percent` field's chip has. The strip now reads a formula's declared `returnType` before it picks its face, for the two return types the spec reads as a field type, `percent` and `currency`. Both are KPI chips on the header strip. A formula of any other return type chips as before. - -The grid's footer formatting reads the same two return types, so a browser-computed footer over a `percent` formula reads `Sum: 75%` rather than `Sum: 0.75`, and over a `currency` formula reads as money. That is not a supported authoring shape: a `sum`, `avg`, `min` or `max` column summary over a `formula` field is refused at authoring by `list-view-summary-field-type-refused`, whatever its `returnType`, because a formula is computed on read and stored in no column, and the whole-set footer query answers `400 INVALID_FIELD`. The formatting reaches only an ungrouped, one-page footer the browser computes over a declaration `os validate` refuses. To total a formula's value, make it a stored field of its own, of the formula's `returnType` and carrying the same `expression`, which the engine computes and stores on every write, and summarise that field. - -`os explain dimension-virtual-field-refused` told the author to make a stored copy "of the formula's `returnType` (`number`, `text`, `boolean`, `date` or `currency`)", which named no type for a `percent` formula. It now lists all six, and a test holds the list to the spec's own `returnType` enum. diff --git a/.changeset/35735-filter-flag-and-comparand-edges.md b/.changeset/35735-filter-flag-and-comparand-edges.md deleted file mode 100644 index dd726764754..00000000000 --- a/.changeset/35735-filter-flag-and-comparand-edges.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -'@object-ui/core': patch ---- - -fix(core)!: a non-boolean `$null` / `$exists` flag is refused in the filter converter and the value data source, and so are the object comparands the value data source cannot compare - -Clause-②: no (narrowing) -Metadata-protocol: none - -<!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is what convertFiltersToAST lowers and what ValueDataSource.find answers for filters the spec already refuses (a non-boolean $null / $exists flag, a plain object of another realm, a plain object with a $ key that is not a { $field } reference such as { $foo: 1 }, a class instance under an equality, membership or text operator) or that this in-memory face cannot evaluate (a { $now, addDays } anchor): no stored row, registry key or authored value changes, so there is nothing for a migration to rewrite and no tombstone. --> - -**BREAKING** for `convertFiltersToAST` and `ValueDataSource` (the in-memory `provider: 'value'` data source), for four filter shapes. - -1. **A `$null` / `$exists` flag that is not a boolean**, such as `{ owner: { $null: 'no' } }`, `{ owner: { $exists: 1 } }` or `{ owner: { $null: { id: 'u1' } } }`. - - FROM: the flag was read for its truthiness. `convertFiltersToAST` lowered `{ owner: { $null: 'no' } }` to `['owner', 'is_null', true]` and `{ owner: { $exists: 'no' } }` to `['owner', 'is_not_null', true]`, so a server-backed source answered the null-ness rows and its own door never saw the flag; the value data source answered the same rows (`'no'`, `1` and an object read as `true`; `0` and `null` as `false`). - - TO: both refuse it, as they already refused a non-boolean `$empty` flag. The converter throws `FilterOperatorError` (`INVALID_FILTER` / 400) with `The '$null' filter operator on field 'owner' takes a boolean flag (true or false); received "no"`, and the value data source excludes every row and logs `filter operator '$null' on field 'owner' takes a boolean flag (true or false); received "no"`. `true` and `false` lower and match exactly as before. The spec's `FilterConditionSchema` and every query face already refused these flags. - - The AST null-ness operators (`is_null`, `is_not_null` and their spellings) carry no flag and are not moved: direction comes from the operator name and the value slot is not read, as the spec's `parseFilterAST` reads it. -2. **A plain object of another realm** (an iframe, a `vm` context), whose prototype is that realm's `Object.prototype`. - - FROM: `convertFiltersToAST` read it as an operator map, so `{ age: foreignObject }` with `$gte: 18` lowered to `['age', '>=', 18]`, and the value data source answered it with the right rows, the ones with `age >= 18`: that is the answer this change takes away. One with no `$` key lowered to the nested-relation node `['owner', '=', foreignObject]`. In comparand position the value data source compared it as a value: by reference under `$eq` / `=` and as an `$in` member, so no row matched unless a row held the caller's own object (stored through `create` or `update`, which copy shallowly), and that row did; `$ne` / `!=` and `$nin` served every other row; and under an ordering operator it compared as the text `[object Object]`, serving the string values that sort past that text. - - TO: it is a comparand, as the spec's filter walk and the engine's `isNoOperatorObject` read it: the converter refuses it as the field's whole condition in a sentence of its own (`The filter on field 'age' is a plain object from another realm (an iframe, a vm context). Only a plain object of this realm (prototype Object.prototype or null) is read as an operator map or a nested condition here…`), and the value data source refuses it in comparand position under every operator (`filter comparand on field 'owner' is a plain object from another realm, which is neither a comparison value nor filter structure here`). The server refused it already when the object reached it in process; sent as JSON, it arrives as a plain object of the server's realm. - - Also moved, by the same prototype test (the operator-map test no longer takes a second prototype hop): an object whose prototype is a `null`-prototype object, such as `Object.create(Object.create(null))`. FROM: `convertFiltersToAST` read it as an operator map (with no own key it was refused as an empty operator map; with `$` keys it lowered). In comparand position the value data source compared it by reference under `$eq` and as an `$in` member, so no row matched unless a row held the caller's own object, and `$ne` / `!=` and `$nin` served every other row: these are the rows this change takes away. It has no text of its own, so under an ordering operator, `$between`, and a text operator on a row holding a string, the comparison threw `TypeError: Cannot convert object to primitive value` and `find` rejected, unless its prototype defines a `valueOf` or `toString` that returns a primitive, which it then compared through; with no row holding a string, `$contains`, `$startsWith` and `$endsWith` served no row and `$notContains` every row. TO: both faces refuse it as `an object of an unrecognised type`: the converter as the field's whole condition, and the value data source in comparand position under every operator. -3. **A plain object with a `$` key that is not a `{ $field }` reference**, in comparand position on the value data source, the spec's `{ $now, addDays }` date anchor among them, such as `{ due: { $lt: { $now: true, addDays: 7 } } }`. - - FROM: compared as a value: by reference under `$eq` and as an `$in` member, so no row matched unless a row held the caller's own object (stored through `create` or `update`), and that row did; `$ne` and `$nin` served every other row, and `$notContains` every row; under an ordering operator it compared as the text `[object Object]`, so `$lt` answered the rows sorting before that text. A `null`-prototype one has no text: under an ordering operator, `$between`, and a text operator on a row holding a string, the comparison threw `TypeError: Cannot convert object to primitive value` and `find` rejected. - - TO: refused under every operator that reads a comparand, whole or as a list member, in both dialects. The anchor (by the spec's test: `$now` is `true` or a string) gets `filter comparand on field 'due' is a { $now, addDays } date anchor, which the in-memory matcher does not resolve…`, ending in the remedy `compare with a concrete Date or ISO string here`: the platform resolves it in the compared column's temporal form, and this source has no field types to read a form from, the reason it already refuses a `{ $field, addDays }` offset. Any other one gets `filter comparand on field 'owner' is an object carrying the key '$foo', which is neither a comparison value nor a { $field } reference`, the comparand the spec's door refuses. `convertFiltersToAST` still lowers the anchor verbatim for a server-backed source, which resolves it. -4. **A class instance** (a moment or luxon date, a decimal object, a `RegExp`, a `Map`) as the comparand of an equality, membership or text operator on the value data source: `$eq`, `$ne`, an `$in` / `$nin` member, `$contains`, `$notContains`, `$startsWith`, `$endsWith`, and their AST spellings. - - FROM: compared by reference or as its text. `$eq` / `=` and `$in` answered no row unless a row held the caller's own instance (stored through `create` or `update`), and that row matched; `$ne` and `$nin` served every other row. `$contains`, `$startsWith` and `$endsWith` matched on the instance's `String()` text and served rows (a `new String('ab')`, a class with a `toString`), and `$notContains` served their complement. - - TO: refused, in both dialects, with `filter comparand on field 'age' is a Amount instance, which the in-memory matcher compares only by order…`. The spec's comparand door refuses it at these operators. - - Not moved: under `$gt` / `$gte` / `$lt` / `$lte` / `$between` it is still compared through its `valueOf` when that returns a primitive; otherwise as its text. `$icontains` keeps its own text-comparand refusal. - -**Not moved.** A scalar, a `Date` and a `{ $field }` reference are compared as before; `$empty` keeps its boolean-flag refusal, with the converter's sentence now built by the same helper as `$null` / `$exists`; a `null`-prototype object of this realm is still an operator map. - -The fix for a caller: write the flag as the boolean itself (`{ owner: { $null: true } }`, `{ owner: { $exists: false } }`); compare with a scalar, a `Date` or a `{ $field }` reference; rebuild a filter object from another realm in this one (`{ ...condition }` per operator map, or `structuredClone(filter)`); filter a relative date on a server-backed source, or compare a value source with a concrete `Date` or ISO string; and convert a class-instance comparand to its primitive (`moment.toDate()`, `decimal.toNumber()`) before filtering. diff --git a/.changeset/35742-overview-body-table-order.md b/.changeset/35742-overview-body-table-order.md deleted file mode 100644 index b13973943f3..00000000000 --- a/.changeset/35742-overview-body-table-order.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/plugin-detail': patch ---- - -fix(plugin-detail): the record page Overview draws the record's own field groups first and its master-detail tables under them, at the list's dense row height, never with a half-cut column - -Clause-②: no -Metadata-protocol: none - -- **Order.** On the default record page's Overview, a master-detail (body) table now follows the field sections the page draws open, instead of leading them: stage bar and key fields (the strip across the top), then the record's field groups, then its body tables. An object with no stage bar and no key fields opens on its own fields. A field group whose `relatedList` names a body table still places it at that group's position. Sections drawn closed (a field group with `collapse: 'collapsed'`, or a `collapsible` section that is `defaultCollapsed`) that trail the last open one follow the tables; a closed section between open ones keeps its declared place. With every section closed, the tables follow them all. -- **Density.** A body table's data rows are 33px (a 32px cell over the row line) under a 32px header, the measures of a list's compact rows (`BODY_TABLE_DENSITY`). -- **Width.** A body table draws the leading columns, in their order, that fit whole in the details column, and offers the rest behind its labelled ⤢ "All columns" button; it no longer scrolls sideways with a column cut at the right edge. Only a table whose first column alone is wider than the column still scrolls, with that column pinned. diff --git a/.changeset/35745-35816-record-page-polish.md b/.changeset/35745-35816-record-page-polish.md deleted file mode 100644 index e41703fdefc..00000000000 --- a/.changeset/35745-35816-record-page-polish.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -'@object-ui/fields': minor -'@object-ui/plugin-detail': minor -'@object-ui/plugin-form': minor -'@object-ui/components': minor -'@object-ui/app-shell': minor ---- - -fix(record-page): business dates read as dates, Save is the edit state's primary button, a new detail line starts on its defaults, and the tabs follow the header with no blank band - -Clause-②: yes (widening) -Metadata-protocol: semantic - -Four things on the record page. - -**Dates.** A `date` field that declares no `format` read as a relative phrase on the record page ("6 days ago", "Tomorrow") while the list beside it wrote the date ("Nov 13"), so the reader had to work the day out. The record page's field sections and its highlights strip now write the date itself, with its year, as the list's columns do; the relative phrase (an overdue deadline's "Overdue 5d" included) is the date's tooltip, and a deadline past due still reads red. A declared `format`, `'relative'` included, still wins. A `datetime` field already read as an absolute date there (its cell's default face is the compact one, never the relative phrase), and is now pinned to stay so. The record footer's created and modified times keep their relative wording, and card surfaces (kanban, gallery) are unchanged. `@object-ui/fields`' cell props gain `absoluteDate`, read by the `date` cell. - -**Edit-state buttons.** In the record page's edit state, Cancel drew as the filled primary button and Save as an outline one, so the hand fell on the button that throws the edit away. Save is now the one filled button, after Cancel, the order a form's footer uses. `page:header` now makes a host button declaring `variant: 'primary'` the primary over the page's own actions, in the place the host gave it; no other host button declares one, so every other header is unchanged. - -**New detail lines.** A line added to a master-detail table in the record page's edit state started blank, so a required column with a default (a status that defaults to "Pending") read red although the save then stored the default. A new line now starts on the child object's static defaults, the values a create form seeds; a default the server resolves at insert (`NOW()`, a CEL expression) is left to the server. A new line's empty required cell reads red only after a save was refused, with the server's reason listed under the table; a stored line is flagged as before. A line added and never edited, holding only its defaults, is still skipped at save like a blank one; once the user edits a cell of it, it is input and is saved, even when every value they typed equals a default. `LineItemsField` gains `newRowValues` and `newRowRequiredShown`; a line its Add starts on `newRowValues` carries the `UNTOUCHED_NEW_ROW` mark (a symbol key no payload carries) until its first edit, and `isBlankRow` reads that mark. `@object-ui/fields` exports `UNTOUCHED_NEW_ROW` and `isUntouchedNewRow`. A host that passes neither prop sees no change. The save request and its transaction are unchanged. - -**The band above the tabs.** The record page's scroller and its column layout each padded their top by 24px on a desktop, so a 48px empty band stood between the header and the tab row. The scroller now pads only its sides and bottom, and the column layout keeps a 12px top on every width, so the tabs follow the header at the gap the rest of the page uses; on a phone the title block keeps 16px to the tabs. The print chrome and the approval actions bar that render above the columns keep their own top margin, and an authored page the page renderer draws keeps its own top padding. Side padding is unchanged. diff --git a/.changeset/35754-embedded-date-macro-literal.md b/.changeset/35754-embedded-date-macro-literal.md deleted file mode 100644 index 3b3dd663e9e..00000000000 --- a/.changeset/35754-embedded-date-macro-literal.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/core': patch ---- - -fix(core): a date macro inside a longer string is a literal on the client too - -Clause-②: no -Metadata-protocol: none - -`resolveDateMacros` resolves a filter value only when the whole value is one placeholder (`'{today}'`, `'${today}'`, `'{7_days_ago}'`). A value that merely contains one, such as `'from {today} on'`, is now returned as written. Before, the client replaced the macro inside the string while the server's resolver left it literal, so the same filter matched different rows in the console and on the server. This is the reading the spec declares for filter placeholders: a value that merely contains braces is untouched. - -A previous-period comparison (`shiftFilterByCompareTo`) follows the same reading: it renames only whole-value tokens, so the comparison query filters on the same literal as the current one. diff --git a/.changeset/35761-draft-door-type-contract.md b/.changeset/35761-draft-door-type-contract.md deleted file mode 100644 index ec0335e514d..00000000000 --- a/.changeset/35761-draft-door-type-contract.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@objectstack/runtime': patch -'@objectstack/skills': patch ---- - -Clause-②: yes — widening: one new read on the draft door behind the same `metadata:write` grant and `manage_metadata` check; no save, publish or existing read changes, so nothing accepted today is refused. -Metadata-protocol: none - -feat(runtime): the MCP draft door answers a metadata type's contract - -- **`list_metadata_items` takes an optional `contract: true`.** The reply then also carries `contract`, read from the same entry `GET /meta/types` serves for the type. By default it is the lean form of the type's JSON Schema: the `required` keys, and for each top-level key its type, a short enum and a one-line description, where `drill` names the JSON Pointer of any key with nested structure, plus the type's `createSeed`. A client that cannot read files can now see which keys a type accepts and which it requires before its first save, also for a type that has no item in the environment yet. A type with no JSON Schema answers `schema: null` with the reason. The read is admitted as the list is: the `metadata:write` scope and the user's own `manage_metadata`, the type-level read admission, and the unknown-type refusal. Without the flag the reply is unchanged. -- **`contractPath` drills into that schema.** With `contract: true`, a JSON Pointer such as `/properties/fields` answers the full schema at that pointer. `contractPath` without `contract: true` is refused with a validation error, and so is a pointer that does not resolve, with an error that names the pointer and the keys found there. -- **No `contract` takes more than 24 KiB of the reply,** so the largest types (`object`, `view`, `page`) fit an MCP client's tool-result limit. A lean form still over that size drops its descriptions first and says `truncated: true`. A sub-schema over that size is answered in its lean form marked `truncated: true`, so the client can drill again. -- **`objectstack-mcp-build` skill, step 3** names that read where it said to copy a published item of the same type: read the lean contract, drill into the key you write with `contractPath`, and let the save check you. The save is still the final check. diff --git a/.changeset/35772-reject-reason-required-texts.md b/.changeset/35772-reject-reason-required-texts.md deleted file mode 100644 index df80a90f0b6..00000000000 --- a/.changeset/35772-reject-reason-required-texts.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@objectstack/spec': patch -'@objectstack/plugin-approvals': patch ---- - -docs(approvals): a reject reason is required at every human door — the contract docblock, the docs and the platform checklist say so - -Clause-②: no -Metadata-protocol: none - -Text only; no behaviour changes. `ApprovalService.decide()` already refuses a reject whose `comment` is missing, blank or not a string with `400 VALIDATION_ERROR` before any write, and an approve keeps its comment optional. The texts that still called the reason optional now state that rule: the `ApprovalDecisionInput.comment` and `IApprovalService.decide` docblocks in `@objectstack/spec` (the type is unchanged: `comment` stays optional in the interface, because an approve may omit it), and the `approval_reject` action's source comment in `@objectstack/plugin-approvals`, which said the target route does not judge the reason. diff --git a/.changeset/35783-related-tab-arrangement.md b/.changeset/35783-related-tab-arrangement.md deleted file mode 100644 index 73eaa8836ea..00000000000 --- a/.changeset/35783-related-tab-arrangement.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@object-ui/i18n': patch -'@object-ui/plugin-detail': patch ---- - -feat(record-page): a related list's tab moves left or right and hides, and 「更多」 restores the default order - -Clause-②: no -Metadata-protocol: none - -**Reader arrangement is back.** The related cards' ⠿ handle, ⌥↑ / ⌥↓ and 「隐藏」 left the page with objectstack#35595, and with them the reader's way to reorder or hide a related list. This note supersedes the "Reader arrangement leaves with the cards" bullet of that release's note: 「左移」, 「右移」 and 「隐藏」 now sit on each related tab's own menu, 「恢复默认顺序」 sits in 「更多」 (in a drawer and an embedded pane too), and an arrangement already stored keeps applying. - -- **A related list's tab is its menu.** Open a list's tab and click it again (or press Enter, Space or ↓ on it): 「左移」 and 「右移」 move it one place among the related lists, and 「隐藏」 takes it off the row into 「更多」's hidden lists and returns to Overview. The open tab draws a ▾ to say so. -- **「更多」 restores the default.** While the order or the hidden set is not the default, 「更多」 ends with 「恢复默认顺序」: the default order with every list shown. It is in a drawer and an embedded pane too, which have no rail. -- **Fixed tabs.** Overview, Attachments, Approvals and Activity have no menu and never move. -- **One stored arrangement.** The tabs write the same per-reader, per-object arrangement the related cards wrote, so an order or hides already stored keep working, and the rail's 「已隐藏 N · 显示」 and 「恢复默认顺序」 still undo them. - -`@object-ui/i18n` adds `detail.recordTabMoveBefore` / `detail.recordTabMoveAfter` (左移 / 右移) in every pack. `@object-ui/plugin-detail` removes the unused `RelatedCardStack` and `useRelatedArrangement` modules (not exported from the package). Nothing an app authors changes. diff --git a/.changeset/35786-fixed-read-leaf-seam.md b/.changeset/35786-fixed-read-leaf-seam.md deleted file mode 100644 index 32172260edf..00000000000 --- a/.changeset/35786-fixed-read-leaf-seam.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/core': patch -'@objectstack/objectql': patch ---- - -feat: the engine's seam for the fixed-read leaf, and the driver declaration for it (ADR-0155, step 2 of 6) - -Clause-②: yes -Metadata-protocol: added - -No visible change on its own: nothing on main writes a fixed-read leaf yet (the sharing plugin starts writing `SharedRecordIds` at ADR-0155's last step), and no driver declares one (the SQL drivers and the memory driver declare it on the steps that compile it). - -- **The driver declaration** (`@objectstack/spec`). `DriverCapabilities.fixedReadLeaves` lists the fixed-read leaves a driver's filter compiler evaluates exactly, by name, e.g. `['SharedRecordIds']`; absence means none. The names are `FIXED_READ_LEAF_NAMES`, and `fixedReadLeafNameOf(leaf)` maps a leaf to its name. It stays separate from `readableIdsLeaf`: a `ReadableIds` leaf is not a fixed-read leaf, and a driver that evaluates both declares both. Both descriptions now say so. -- **The seam** (`@objectstack/objectql`). The engine's comparand door admits a branded `SharedRecordIds` leaf as a `$in` comparand, and the engine hands it to the driver by reference only when it sits on `id` of the object it names (directly, or inside a composed `ReadableIds` scope over that object), on a read verb in its read form or in a predicate update's `where` in its write form, for the context's user or its delegator (a system context is exempt), outside both classes ADR-0155 D4 recognises (the object on another datasource than `sys_record_share`; a middleware or a `beforeFind` / `afterFind` hook registered for `sys_record_share` by name), and to a driver whose `fixedReadLeaves` names it. Anything else is refused before any driver is asked, `INTERNAL_ERROR` / 500, logged at `error` once per evaluator. An unbranded copy is still refused at the door as a non-list comparand, `INVALID_FILTER` / 400. -- **The refusal** (`@objectstack/core`). `fixedReadLeafRefusal`, `refuseFixedReadLeafOnce` and `describeFixedReadLeaf` are the one envelope every evaluator answers a fixed-read leaf it will not run with; `logRefusalOnce` is the once-per-instance log it shares with the `ReadableIds` refusal. -- **Filter tokens** (`@objectstack/core`). `resolveFilterTokens` returns a fixed-read leaf by reference, as it does a `ReadableIds` leaf, so a read scope that carries a placeholder beside the leaf keeps the leaf's brand. diff --git a/.changeset/35788-changes-chip-creation.md b/.changeset/35788-changes-chip-creation.md deleted file mode 100644 index 25e6fa737ae..00000000000 --- a/.changeset/35788-changes-chip-creation.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/plugin-detail': patch ---- - -fix(record-page): the 动态 tab's Changes chip no longer counts the record's creation as one more edit - -Clause-②: no -Metadata-protocol: none - -On a record of a history-tracked object that one person created and then edited on the same day, the Changes (变更) chip folded the creation's own audit entry into the run of edits: the fold said "4 updates" for three edits, and its first "edit" was the creation drawn as field changes from empty values. The All view of the same stream was right (the edits plus one Created row). - -Now the creation's audit entry never joins a fold of field changes, under All and Changes alike: the Changes chip folds the edits alone and shows the creation once, as its own row. No props, locale keys or entry exports change; `isRecordCreationEntry` is added to the `recordTimelineStream` module (not re-exported from the package entry). diff --git a/.changeset/35791-slack-plugin-token-optional.md b/.changeset/35791-slack-plugin-token-optional.md deleted file mode 100644 index fcf4c724e8b..00000000000 --- a/.changeset/35791-slack-plugin-token-optional.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/connector-slack': patch ---- - -feat(connector-slack): `ConnectorSlackPlugin`'s static bot `token` is optional - -Clause-②: yes (widening) -Metadata-protocol: none - -A deployment that only delivers Slack DMs with each organization's own token now composes the plugin without a placeholder: `new ConnectorSlackPlugin()` or `new ConnectorSlackPlugin({ fetchImpl })` registers the `slack` client service for caller-held tokens and skips the flow `connector_action` connector, logging that once at boot. An empty-string `token` reads the same as an absent one. With a token, behaviour is unchanged: the `slack` flow connector is registered exactly as before. - -`ConnectorSlackPluginOptions` is now `SlackConnectorOptions` without `token`, plus `token?: string`; the constructor's options argument is optional. `SlackConnectorOptions.token` and `createSlackConnector` are unchanged (the connector still needs a token). diff --git a/.changeset/35795-batched-record-lock-read.md b/.changeset/35795-batched-record-lock-read.md deleted file mode 100644 index 4b2f81a9e78..00000000000 --- a/.changeset/35795-batched-record-lock-read.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -'@objectstack/spec': patch -'@objectstack/rest': patch -'@objectstack/plugin-approvals': patch -'@objectstack/client': patch -'@object-ui/plugin-grid': patch -'@object-ui/components': patch -'@object-ui/i18n': patch ---- - -fix(approvals, list): a list cell no longer opens an editor before it knows the record's approval lock, and the list reads the locks of a page in one request - -Clause-②: yes (widening) -Metadata-protocol: none - -**What a list user sees.** On a list that edits in place, a double-click, Enter, F2 or a typed key on a cell whose record's approval lock or edit permission is still being read no longer opens an editor that the server would then refuse on save. The cell says "Checking whether this record can be edited…", and when the answer arrives the same edit goes ahead by itself (with the typed key), or the cell says why it does not: the record is locked while it is in approval, or the reader has no permission to edit it. Selecting another cell in the meantime drops the wait. Moving the selection with the arrow keys no longer sends a lock request per row: the first cell selected on a page asks the locks of every row on it at once. - -**New route.** `POST /api/v1/approvals/records/:object/locks` with the body `{ "recordIds": ["<id>", ...] }` (at least one id, at most `APPROVAL_RECORD_LOCKS_MAX_RECORD_IDS`, 200) answers `{ success: true, data: { records: [{ recordId, locked }] } }`, one entry per id in order. `locked` is what `GET /api/v1/approvals/records/:object/:recordId/lock` answers for that id, and `null` where that route answers 404: a record the caller cannot read and one that does not exist answer alike. Any other body (a key other than `recordIds`, an empty list, a non-string or blank id, more ids than the cap) and any query parameter are refused whole with `400 VALIDATION_ERROR`, never trimmed. A deployment whose approvals service does not implement the read answers `501`. - -**Contract and SDK.** `IApprovalService` gains the optional member `getRecordLocks(object, recordIds, context)`, entry `i` answering `recordIds[i]` exactly as `getRecordLock` does; the approvals plugin implements it in two reads whatever the page size (the caller's read of the ids, then one pending-request lookup judged by the record-lock hook's own judgement). `@objectstack/spec/contracts` exports `APPROVAL_RECORD_LOCKS_MAX_RECORD_IDS`. `@objectstack/client` gains `client.approvals.getRecordLocks(object, recordIds)`. - -**Components.** `GridCellFacts` (the select-first table's per-cell facts) gains the optional `checking: { text, settled }`: while present, an edit asked on the cell shows `text` and is asked again when `settled` settles; a toggle, paste or clear shows `text` and writes nothing. A host that sets no `checking` sees no change. diff --git a/.changeset/35797-ime-enter-field-widgets.md b/.changeset/35797-ime-enter-field-widgets.md deleted file mode 100644 index 3b1bd3f0191..00000000000 --- a/.changeset/35797-ime-enter-field-widgets.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@object-ui/fields': patch ---- - -fix(fields): the tags field, the lookup search and the people picker search leave an Enter the input method owns to the input method - -Clause-②: no -Metadata-protocol: none - -A user typing Chinese, Japanese or Korean presses Enter (and, in a tags field, the comma) to pick a word from the input method. Those keys also reached the widget: the tags field added the half-typed pinyin as a tag, and the search box of a lookup or of the people picker took the highlighted entry. The arrow keys that move between the input method's candidates also moved the highlighted row. - -The three widgets now ignore a key pressed while a composition is open, and the Enter Safari raises just after the composition ends (keyCode 229). The next Enter, or comma, does what it always did: it adds the tag or takes the highlighted entry. This applies in the record form and in the list grid's editors alike. - -No metadata key, value or default changes, and nothing is added to the package's exports. diff --git a/.changeset/35798-summary-chip-formula-return-type.md b/.changeset/35798-summary-chip-formula-return-type.md deleted file mode 100644 index b130036df1e..00000000000 --- a/.changeset/35798-summary-chip-formula-return-type.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/plugin-detail': patch ---- - -fix(plugin-detail): the record header summary chip reads a formula by its declared return type - -Clause-②: no -Metadata-protocol: none - -A `summaryFields` chip beside a record's title over a `formula` field printed the raw value, because the chip picked its formatting from the field type `formula`: a percent formula read `0.25` where its list cell and highlight chip read `25%`, a currency formula read a bare `1250`, and a date formula read its ISO text. The chip now draws a formula whose `returnType` is `percent`, `currency` or `date` as a field of that type: a percent at the formula's own `scale` and `max`, an amount in its own `currencyConfig` currency (the tenant currency when it declares none), a date as a localized date. A `number`, `text` or `boolean` formula reads as before. The highlights strip and the chip now ask one helper which field type a formula reads as. diff --git a/.changeset/35802-cbp-predicate-write-master-gate.md b/.changeset/35802-cbp-predicate-write-master-gate.md deleted file mode 100644 index c807459da29..00000000000 --- a/.changeset/35802-cbp-predicate-write-master-gate.md +++ /dev/null @@ -1,35 +0,0 @@ ---- -'@objectstack/plugin-security': patch ---- - -fix(plugin-security)!: a predicate update or delete of a `controlled_by_parent` detail now writes every row its caller may write by id, the rows other users created included, instead of stopping at the platform's creator-only floor - -Clause-②: no (narrowing) -Metadata-protocol: none - -<!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is which rows one predicate update or delete of a controlled_by_parent detail writes, and whether such a write is refused whole: no stored row, registry key or authored value changes, so there is nothing for a migration to rewrite and no tombstone. --> - -**BREAKING: an existing flow now changes or deletes detail rows its caller did not create.** A flow's bulk update or bulk delete node, a server-side script or a hook that runs a predicate write (`update(object, data, { where, multi: true })`, `delete(object, { where, multi: true })`) on a `controlled_by_parent` detail, as an organization member who may edit the master record (or read it, where the detail declares `sharing.controlledByParent.writeRequiresMasterRead`), used to change or delete only the detail rows that member had created and answer success. It now changes or deletes every row its predicate matches that the member can read, within any row-level `update` or `delete` policy the app authored on the detail. Review any such flow that deletes by predicate before upgrading: it will delete more rows than it did. - -It ships `patch` because it is a non-protocol breaking change (AGENTS.md Post-Task Checklist step 3): no schema, key or stored value moves, so `Metadata-protocol` is `none`. - -- FROM: on a `controlled_by_parent` detail the predicate write kept the platform ownership floor (`owner_only_writes` / `owner_only_deletes` in `member_default`, `created_by == current_user.id`) after its master check had passed. It matched only the rows the caller created, answered success, and never judged the other rows. Measured on a 4-row detail under one master: the master's owner changed 2 rows by predicate and all 4 by id; a member holding an `edit` share on the master, and a manager holding `modifyAllRecords`, changed 0 by predicate and all 4 by id. -- TO: once the master check has passed for every master the write reaches, the write is no longer held to that floor. It changes the rows a write of each row by id would change for the same caller, and it applies to all of its matched rows or to none: a newly matched row refused by a row-level `check`, a validation rule, a hook or a `restrict` relation refuses the whole write with that refusal, and nothing is written. - -**A detail that carries its own row-level write policy now writes fewer of the caller's own rows by predicate.** Where an app authors an `update` or `delete` policy with a `using` on a `controlled_by_parent` detail, a predicate write used to compose the platform floor beside that policy as one more OR term, so it also wrote the rows the caller created that the policy does not admit. The floor is no longer a term of that write, so the authored policy alone bounds it: those rows are left unwritten and the write answers success for the rows the policy admits. A by-id write of such a row was already refused, so the two now agree. A write made on another user's behalf keeps the floor and is not changed. - -The fix for a caller that must keep the old outcome: narrow the predicate to the rows it means to write (add `created_by` to the `where` to keep writing only the caller's own rows), or write the rows by id to get an outcome per row. To forbid a caller from writing rows other users created on a detail, author a row-level policy on the detail; it binds every row, by id and by predicate. - -This is the `controlled_by_parent` half of the predicate-write change shipped beside it: see the note "a predicate update or delete now writes the rows a Modify All holder, a non-creator owner or an edit-share target can write by id" for every other object. It follows the maintainer's ruling that a predicate write and a by-id write of such a detail agree (ADR-0055 §3 as amended 2026-11-22). - -What does not change: - -- A predicate write reaches only the rows its predicate matches that the caller can read, and a predicate matching more than 10,000 of them is refused before anything is written. -- It is refused whole, with `PERMISSION_DENIED` / 403 and nothing written, when it reaches a detail row under a master the caller may not edit (or may not read, where the detail declares `writeRequiresMasterRead`). -- A detail row that names no master (an optional master) is written by its owner or a Modify All holder; a predicate write that reaches such a row the caller can read and may not write is refused whole. -- A write made on another user's behalf keeps the floor for both principals, as its by-id write does. -- `sharing.controlledByParent.ownerMayEdit` widens a by-id update only: a predicate update still needs edit on the master. -- A by-id write is unchanged, and so is every predicate write on an object that is not a `controlled_by_parent` detail. -- No key, option or response member is added. - -A predicate write on such a detail also asks the read door for its rows once where it asked twice: the write is scoped to the rows its master check judged, so a row that starts matching the predicate while the write is being authorized is not written. diff --git a/.changeset/35802-predicate-write-floor-deferral.md b/.changeset/35802-predicate-write-floor-deferral.md deleted file mode 100644 index f9a31383976..00000000000 --- a/.changeset/35802-predicate-write-floor-deferral.md +++ /dev/null @@ -1,40 +0,0 @@ ---- -'@objectstack/plugin-security': patch ---- - -fix(plugin-security)!: a predicate update or delete now writes the rows a Modify All holder, a non-creator owner or an edit-share target can write by id, instead of stopping at the platform's creator-only floor - -Clause-②: no (narrowing) -Metadata-protocol: none - -<!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is which rows one predicate update or delete by an organization member writes, and whether such a write is refused whole: no stored row, registry key or authored value changes, so there is nothing for a migration to rewrite and no tombstone. --> - -**BREAKING** for a predicate update or delete (`update(object, data, { where, multi: true })`, `delete(object, { where, multi: true })`) by an organization member, whose predicate now matches a row the member did not create because the record-sharing service answers `allow` for a write of that row by id (ownership at the member's write depth or Modify All, and, for an update, an `edit` share or the row sitting in a queue the member belongs to), when that row is refused: on an update, by a row-level `check`, a validation rule or a hook; on a delete, by a `beforeDelete` hook or a `restrict` relation. It ships `patch` because it is a non-protocol breaking change (AGENTS.md Post-Task Checklist step 3): no schema, key or stored value moves, so `Metadata-protocol` is `none`. - -- FROM: the write matched only the rows the member created. It answered success and changed those, and the other row was never judged. -- TO: that row is matched and judged too, and the write applies to all of its matched rows or to none. An update whose new image of that row fails a row-level `check` is refused whole with `PERMISSION_DENIED` / 403 and writes nothing. A validation rule or hook that refuses that row refuses the whole update too, with its own code, and a `readonlyWhen` lock on that row strips the field from the whole write. A delete is refused whole, and deletes nothing, when a `beforeDelete` hook or a `restrict` relation refuses that row, with that hook's or relation's own refusal. A write of that row by id is refused too, alone. - -The fix for a caller: write those rows by id to get an outcome per row, or narrow the predicate to the rows that are not refused. - -A predicate write (`update(object, data, { where, multi: true })`, `delete(object, { where, multi: true })`) by an organization member held the platform's own ownership floor (`owner_only_writes` / `owner_only_deletes` in `member_default`, `created_by == current_user.id`) as an unconditional condition, where record sharing enforces writes. Unless an app-authored write policy admitted a row, the write matched only the rows that member had created, even when the same user could update or delete the other matching rows one at a time by id. This affected a manager holding `modifyAllRecords` on the object, a row's owner who did not create it, and, for an update, the target of an `edit`-level record share or a member of the queue a row sits in. The write answered success and changed fewer rows than its predicate matched. A write by id lets the record-sharing service's `allow` verdict replace the floor. - -The predicate write now makes the by-id decision for each matched row the floor would refuse. Such a row is written when a write of that row by id would be, because the sharing service answers `allow` for it: ownership at the caller's write depth, Modify All, or, for an update only, an `edit` share or the row's queue. A row the service abstains on keeps the floor: on an object with no `owner_id`, and on a delete under `public_read_write` (an update there has no floor to keep, because that OWD opens row updates). A row it denies keeps the floor too. The row-level `check` on each updated row follows the same decision. - -The by-id decision costs one sharing verdict, a few store reads, for each matched row the floor does not already admit. Measured on SQLite in memory: - -- A member's predicate update matching 1,000 readable rows owned by other people, every verdict `deny`: 1,000 verdicts and 2,004 store reads, about 1.1 s, against 44 ms and 3 reads before. -- The same at 10,000 rows: 10,000 verdicts and 20,004 store reads, about 5.3 s, against 47 ms before. -- A Modify All holder at 10,000 rows: 10,000 verdicts and 10,003 store reads, about 1.8 s, and it now writes the 10,000 rows. Before, it took 47 ms and wrote none of them. -- Where an app-authored `using` policy for the write applies to the caller: 0 verdicts, because a row the floor refuses fails that policy too (10,000 matched rows the floor refuses, 45 ms). - -What does not change: - -- The rows a predicate write can reach are still only the rows its predicate matches that the caller can read. A predicate matching more than 10,000 of them is still refused before anything is written. -- The sharing service's own bulk write scope still bounds a predicate write: the owner set at the caller's depth, plus the edit shares (at most 5,000 of them) and the queue on an update. A row that only a read share and an app `update` policy together make writable is still written by id alone. -- An app-authored row-level policy still binds every row, and Modify All still does not bypass row-level security on an ordinary business object. -- An `edit` share still widens update and never delete. -- The tenant wall is unchanged. -- A write made on another user's behalf keeps the floor for both principals, as its by-id write does. -- A `controlled_by_parent` detail is not decided by this composition. Its predicate write, like its by-id write, is decided by its master gate instead of the floor: see the note "a predicate update or delete of a `controlled_by_parent` detail now writes every row its caller may write by id". - -A flow, script or server-side bulk update or delete that relied on a predicate write skipping the rows its caller did not create now changes those rows too, when the caller may write them by id, and is refused whole when one of them is refused. The fix is the one above. diff --git a/.changeset/35812-org-delete-removes-units.md b/.changeset/35812-org-delete-removes-units.md deleted file mode 100644 index d20683ba8cf..00000000000 --- a/.changeset/35812-org-delete-removes-units.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@objectstack/objectql': patch -'@objectstack/platform-objects': patch -'@objectstack/plugin-security': patch ---- - -fix(objectql): deleting an organization also deletes its units of measure, the one exemption from the `sys_unit` delete refusal - -Clause-②: yes (widening) -Metadata-protocol: none - -An organization that had ever created a unit of measure could not be deleted: the delete was refused with 409 `DELETE_RESTRICTED` naming `sys_unit`, and the units could not be removed first, because the engine refuses every delete of a unit (405 `ERR_UNIT_DELETE_REFUSED`). Now the organization delete's own cascade removes that organization's `sys_unit` rows, retired ones included, through the engine's delete path, after the delete has been admitted, so no unit row is left naming a deleted organization. `organizationOwnedRowCounts` (the question plugin-auth's organization delete asks first) and the engine's own refusal no longer count units as records the organization still owns. - -**Declared behaviour change.** A delete door widens, in one place only. A delete of an organization that holds units and no other record now succeeds and removes the units; before, it was refused. An organization that owns any other record is still refused, and none of its units is removed. Every other delete of a unit is still refused with 405 `ERR_UNIT_DELETE_REFUSED`, by id and batched, for a user, a system writer and an automation run, including a delete issued by a hook while the organization's delete is running: the exemption is recognised from the engine's own cascade, never from anything a caller passes. Retire a unit (`retired: true`) to stop its use, as before. diff --git a/.changeset/35817-skill-reject-reason.md b/.changeset/35817-skill-reject-reason.md deleted file mode 100644 index e12e34b8528..00000000000 --- a/.changeset/35817-skill-reject-reason.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@objectstack/skills': patch ---- -docs(skills): objectstack-automation's `references/state-machines-and-approvals.md` says a reject recorded through `ApprovalService.decide()` or `POST …/reject` always carries a non-blank `comment`, its reason, else `400 VALIDATION_ERROR`. Text only; the outputs paragraph gives up a restatement to pay for it. -Clause-②: no -Metadata-protocol: none diff --git a/.changeset/35823-unmanaged-derived-namespace-mismatch.md b/.changeset/35823-unmanaged-derived-namespace-mismatch.md deleted file mode 100644 index 0596be35165..00000000000 --- a/.changeset/35823-unmanaged-derived-namespace-mismatch.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@objectstack/metadata-protocol': patch ---- - -fix(metadata-protocol)!: an unmanaged install renamed into a `targetNamespace` refuses a package that declares no namespace when its object names all share a prefix other than the derived one, instead of copying them under a second prefix - -Clause-②: no (narrowing) -Metadata-protocol: none - -<!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is the answer the unmanaged install gives one request: a package body with no `namespace`, renamed into a `targetNamespace`, whose object names all begin with one first word that is not the namespace derived from its id. No stored row, registry key or authored value changes, so there is nothing for a migration to rewrite and no tombstone. --> - -**BREAKING** for a caller of the unmanaged install (`importUnmanagedPackage`, and `POST /api/v1/marketplace/install-local` with `installMode: 'unmanaged'`) that sends a `targetNamespace` with a package body that declares no `namespace`. - -Such a body's namespace is derived from its id (`ai.objectstack.gallery.asset-lifecycle-b` derives `asset_lifecycle_b`), and the rename trusted it: an object named `demoasset_asset`, which carries its real prefix, was copied into `trialdemoasset` as `trialdemoasset_demoasset_asset`, while its view `demoasset_asset_all` kept its name, so one copy held three spellings and nothing said why. Now, when such a body has two or more objects, none carries the derived prefix, and every object name begins with the same first word (`demoasset_`), the copy is refused before the base exists: `400 INVALID_REQUEST`, with one rename-refusal `details.refused` entry per object naming the derived namespace, the common prefix and the missing `namespace` key. Nothing is installed. Two objects sharing a short first word (`purchase_order`, `purchase_item`) are refused the same way, and declaring `namespace` clears it. - -A body that declares `namespace` is renamed exactly as before, whatever its names look like. In a namespace-less body, every other case keeps the rename: a single object, objects with no common first word (`purchase_order` beside `asset_owner`), or any object carrying the derived prefix each take the target prefix in front of a name that lacks it (`purchase_order` copies as `trialdemoasset_purchase_order`). Without a `targetNamespace` nothing changes: the save door's prefix rule already refuses those names (`422 NAMESPACE_PREFIX`). - -The fix is in the package: declare `namespace` on it, the prefix its object names carry, then install again. diff --git a/.changeset/35829-session-organization-candidates.md b/.changeset/35829-session-organization-candidates.md deleted file mode 100644 index d87ded33e39..00000000000 --- a/.changeset/35829-session-organization-candidates.md +++ /dev/null @@ -1,31 +0,0 @@ ---- -'@objectstack/plugin-auth': patch ---- - -feat(plugin-auth): a host's session-creation organization choice can fall back when that organization's access policy would refuse the sign-in - -Clause-②: yes -Metadata-protocol: none - -A host's `session.create.before` hook (`AuthManagerOptions.databaseHooks`) chooses the organization a new session is scoped to, and the framework then refuses the sign-in (`IP_NOT_ALLOWED`, 403) when that organization's own allowed IP ranges do not admit the request. The hook can now return an ordered list of fallbacks beside `data`: - -```ts -import type { SessionCreateBeforeResult } from '@objectstack/plugin-auth'; - -databaseHooks: { - session: { - create: { - before: async (session): Promise<SessionCreateBeforeResult> => ({ - data: { ...session, activeOrganizationId: lastUsedOrgId }, - activeOrganizationCandidates: [ownedOrgId, oldestOrgId], - }), - }, - }, -}, -``` - -The session is scoped to the first organization, `data.activeOrganizationId` first and then the list in order, that the organization's scoping admits. Each one is judged exactly as the single choice is: the same client address the server established for the request, the same organization policy, the same tenant-level administrator exemption. When no candidate is admitted, the sign-in is refused as before, and the `login_failed` audit row names the host's first choice. The list never reaches the stored session. - -`data` is required, as in better-auth's own hook result: a hook that returns only a list still returns `data: session` beside it. The candidates are the host's word: plugin-auth judges each organization's access policy, never membership, so list only organizations the user is a member of. A non-member candidate can be admitted at creation, and the per-request membership check then drops the session's organization. - -Nothing changes for a host that returns no list or an empty one. A value that is not an array of non-empty organization ids is a host error and fails the session creation with a `TypeError`. The new public export is the type `SessionCreateBeforeResult`. diff --git a/.changeset/35831-overview-dropped-totals.md b/.changeset/35831-overview-dropped-totals.md deleted file mode 100644 index 3e5d03f91b8..00000000000 --- a/.changeset/35831-overview-dropped-totals.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/plugin-detail': patch ---- - -fix(plugin-detail): a record Overview body table keeps the totals of the summed columns it leaves out for width - -Clause-②: no -Metadata-protocol: none - -On the record page's Overview, a master-detail body table draws only the leading columns that fit whole and leaves the rest behind 「全部列」 / All columns. A summed column left out that way also lost its total, so an amount such as a line total vanished from the Overview only because its column did not fit. The table now draws a line under itself with the total of every summed column it left out, each labelled with the column's name and formatted as that column's own total is (the page record's currency for a line amount that follows its parent). The drawn columns keep their totals in the table's last row, unchanged; when every summed column is left out, that row (which would read 「合计」 over empty cells) is not drawn and the line carries the totals. A table that leaves no summed column out shows no added line. No string is added: the line reuses the existing `form.masterDetail.total` label and the columns' own names. diff --git a/.changeset/35840-mobile-max-visible-default-copy.md b/.changeset/35840-mobile-max-visible-default-copy.md deleted file mode 100644 index b4eec031f00..00000000000 --- a/.changeset/35840-mobile-max-visible-default-copy.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/components': patch ---- - -fix(ui): the designer and docs text for `page:header` `mobileMaxVisible` states the real default - -Clause-②: no -Metadata-protocol: none - -The Max Inline Actions (mobile) input description, and the `page.mdx` reference generated from it, said the budget defaults to 1. Unset, it is 2 in a record page's bottom action bar on a phone (the host's Edit counts) and 1 on any other header. The description now says so, matching the spec text from #35660, and the stale 3 / 1 comments on the header actions row are corrected. Text only: no value, fallback or rendering changes. diff --git a/.changeset/35853-record-header-two-rows.md b/.changeset/35853-record-header-two-rows.md deleted file mode 100644 index b6fef1276f2..00000000000 --- a/.changeset/35853-record-header-two-rows.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@objectstack/spec': patch -'@object-ui/components': patch -'@object-ui/app-shell': patch ---- - -feat(record-page): the record's header is two rows — navigation over the record — and shows up to three actions again - -Clause-②: yes (widening) — `@object-ui/components` takes four optional members: `RecordTopBarProps.record`, `RecordTopBarStepper.onScope`, `NavigationOverlayProps.recordRow` and `PageHeaderActionsProps.fitWidth`; nothing removed or renamed -Metadata-protocol: none - -The record's top bar, on the full page and in the drawer alike, is now two rows: - -- The navigation row (40 px). From a list: ↑ ↓ and 「第 N 条,共 M 条 · 视图名」 ("N of M · view"), M being the records the list matched; the view's name returns to the list. From no list (a link, a notification, a search): the object's name and no ↑ ↓; on the page the name links to the object's list, and in the drawer it is shown without a link. ✕ sits at the far right in every case: on the page it returns to the list the page came from as it was left, else the object's default list; in the drawer it closes, with ⤢ (open the full page) before it. -- The record row (48 px): the record's icon, its name one size larger, its stage and approval tags, then who else is on the record and the managing package's badge (on the page they no longer float over the corner above the tabs), and at the right the record's buttons and ⊟. - -The drawer shows ↑ ↓ and the count again (the drawer hid them since #35593). A phone keeps its one-row bar. - -The header bar's default inline budget is 3 again (#35593 had set it to 1): what does not fit the bar's width folds into 「更多」 one action at a time, down to the primary, so a narrow drawer shows fewer. An authored `maxVisible` still wins, a phone still shows one primary action (its bottom bar holds the host's Edit and one more), and there is still one primary-coloured button at a time. The `page:header` `maxVisible` / `mobileMaxVisible` describe, the `pages.mdx` Default cell and the Studio designer descriptions say so. diff --git a/.changeset/35854-one-way-to-open-a-record.md b/.changeset/35854-one-way-to-open-a-record.md deleted file mode 100644 index 0b8b963fd1c..00000000000 --- a/.changeset/35854-one-way-to-open-a-record.md +++ /dev/null @@ -1,31 +0,0 @@ ---- -'@objectstack/spec': minor -'@object-ui/app-shell': minor -'@object-ui/components': minor -'@object-ui/plugin-list': minor -'@object-ui/i18n': patch ---- - -feat(console)!: an object's list opens a record one way — the name opens the page, the hover icon opens the side panel; `navigation.mode` is deprecated - -Clause-②: yes (narrowing) -Metadata-protocol: semantic - -<!-- adr-0087: not-required (runtime-export-retired @object-ui/components#NavigationOverlayProps.maximizable, @object-ui/plugin-list#ListViewProps.recordOpen) the retired operands are a prop of the drawer component and a host prop of the list, in published ui package entries; no packages/spec schema, no registered node type, no ADR-0087 conversion surface and no stored shape names them, so there is nothing for `objectstack migrate meta` to rewrite --> - -**BREAKING** for a host that passed `NavigationOverlay` its `maximizable` prop or passed `ListView` a `recordOpen` choice. The maintainer ruled one way to open a record from an object's list, with no setting (「这样就不需要任何设置」), and deprecated `navigation.mode` (「废弃」). - -On a Console object list the record's name now opens the full record page, and the icon shown beside the name while the row is hovered (「在侧边打开」 / "Open in side panel") opens the record in the drawer over the list. There is no setting to choose between them: the Display menu's 「打开记录:抽屉 / 整页」 section and the browser-kept preference behind it are gone. A touch screen has no hover, so there the name opens the page. A ⌘/Ctrl or middle click on the name still opens the page in a new tab. - -The drawer is a card floating 8 px clear of the window's top, right and bottom edges, rounded and shadowed. Its full-width "maximize in place" state is gone (a reload lost it, and the full page is the wide face): the bar's one ⤢ opens the full page. The page's 「收为抽屉」 / "Collapse to drawer" hop is gone with it. - -A page the list opens remembers the list in its history entry (`location.state.from`): the list's URL (view, filters, sort, search, grouping, page), its view's name, the rows it showed and, new here, the count its query matched (`total`). A reload of the tab keeps it, and going back to that URL restores the list's scroll position. A page opened any other way carries none. - -`navigation.mode` (`NavigationConfigSchema.mode`) is deprecated on an object's list (`@deprecated`, `[DEPRECATED]` describe; ADR-0087 D3 semantic entry `navigation-mode-record-open-deprecated`). The key stays in the shape and every value still parses, so existing metadata loads. On an object's list (a list view, an object's `listViews`) `drawer`, `page` and `new_window` change nothing: a view that declares one behaves as a view that declares nothing. `none` keeps "rows open nothing", because a read-only list that started opening records would be a regression nobody chose; prefer `navigation: { preventNavigation: true }`. `navigation.openNewTab: true` stays live: on an object's list the record's name then opens the full page in a new tab, and the list stays. A page's blocks that carry `navigation` (a list block, the timeline, an embedded view) still honour `drawer`, `page` and `new_window` as before: keep the key there. - -The i18n keys `list.recordOpen`, `list.recordOpenDrawer`, `list.recordOpenPage`, `list.optionsMenu.recordOpenAlwaysPage`, `detail.collapseToDrawer` and `console.objectView.openAsPage` are removed from every pack, and `console.objectView.openInSidePanel` is added. - -What leaves, and what to write instead: - -- FROM `NavigationOverlayProps.maximizable` TO nothing, in the components package: the drawer has no full-width state. Fix: delete `maximizable`; the drawer's ⤢ opens the full page. -- FROM `ListViewProps.recordOpen` TO nothing, in the list plugin: the Display menu has no Open records section. Fix: delete `recordOpen`; the list opens a record one way. diff --git a/.changeset/35858-skill-evals-trigger-field.md b/.changeset/35858-skill-evals-trigger-field.md deleted file mode 100644 index 7d8654ecf55..00000000000 --- a/.changeset/35858-skill-evals-trigger-field.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/scenarios': patch ---- - -Clause-②: no -Metadata-protocol: none - -skill-evals: a trigger turn installs the round's selection of bundles, not its own bundle alone - -A `should_trigger` turn's project now holds every bundle of the round's selection (the `--skills` bundles, or every bundle), so a skill description competes with its neighbours' as it does in a real project. A should-load case passes only when its own bundle loads. Each record lists `installed` and `trigger.othersLoaded`, and the trigger table names the other bundles each case loaded. A turn whose init line misses an installed bundle is `invalid`. `--trigger-field own` installs the case's bundle alone, as rounds recorded before did. `round.json` records `triggerField`, the summary header names it, and `--regrade` keeps it. Under `--triggers-only`, a `--skills` bundle with no trigger case is installed as a competitor instead of being refused, as long as another named bundle has a trigger case. diff --git a/.changeset/35859-query-sends-business-question-to-ask.md b/.changeset/35859-query-sends-business-question-to-ask.md deleted file mode 100644 index a63cd82ed70..00000000000 --- a/.changeset/35859-query-sends-business-question-to-ask.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -Clause-②: no -Metadata-protocol: none - -`objectstack-query`'s description no longer claims a records query or aggregation sent over MCP, and its "Not for" names `objectstack-ask` for a business question answered from the app's records (a number, ranking or governed metric). Query trigger case 3 now asks for an aggregation written in server code; `objectstack-ask` gains a negative trigger case for a metadata change asked over MCP. diff --git a/.changeset/35863-decided-route-outcome.md b/.changeset/35863-decided-route-outcome.md deleted file mode 100644 index a58af72e7e7..00000000000 --- a/.changeset/35863-decided-route-outcome.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -'@objectstack/spec': patch -'@objectstack/plugin-approvals': patch -'@object-ui/app-shell': patch -'@object-ui/i18n': patch -'@object-ui/console': patch ---- - -feat(approvals): a decided request's step line says where the record's approval went next: on to a later step, or ended - -Clause-②: yes -Metadata-protocol: none - -The single approval request read (`GET /api/v1/approvals/requests/ID`) serves one more fact on a decided request's own route: `flow_route.outcome`, beside `ahead: 'decided'`. Before, a decided route stopped at the request's own step, so an approver reopening a request they had decided could not tell whether the record's approval went on to a later step or ended. - -- `outcome.step` is the run's latest request when it is a later one than this request (a request of the same flow run opened after it, on any node, a later round of the same node included; a pending one wins over a decided one). It is absent when no later request was opened in that run; a request a child run opened is not among them. -- `outcome.status` is that latest request's status, or this request's own when `step` is absent. `pending` with a `step` means the approval went on to that step and waits on its decision. -- `outcome.ended` is `true` only when the record's approval is known to have stopped: the request's run is a root run (not a `subflow` body or a `map` item, whose end is not the approval's), the flow body the run ran holds no `subflow` or `map` node anywhere, regions included (a child run files its requests under its own run, so this run's requests cannot show what it decided, before or after this request), and the run reports it stopped for good, with the same terminal set the dead-run sweep uses. The body the run ran is known only when the body armed now is the flow's newest registration and was registered before the run started, so a flow edited, rolled back or re-registered after a run started is never judged by its current body for that run. `false` means not known to have stopped: the run goes on, is a child run, ran a body that can start a child run, ran a body that is not known, cannot be read, or was opened before this release (the approval node now records on each new request whether its run is a root run). - -`outcome` is absent when nothing past the request is known: no later request was opened and the approval is not known to have ended, or several later requests are pending at once (parallel steps). A pending request's route never carries it. It is served to every reader of the request and says only where the same approval went: the later step's node id and label and that request's status, never the later request's id, approvers, comments or field values. The `ApprovalRequestRow.flow_route` contract type in `@objectstack/spec/contracts` gains the optional member, and `routeOutcome` in `@objectstack/plugin-approvals` is the rule. - -The approval request page (`@object-ui/app-shell`) draws one line under the decided step: "Went on to STEP, waiting for a decision", "Went on to STEP: DECISION", "Went on to STEP, then ended: DECISION", or "The approval ended here". No line is drawn when no outcome is served. `@object-ui/i18n` carries the four new `approvalsInbox` rows in every built-in locale, and the console's request type (`@object-ui/console`) mirrors the new member. - -Nothing to migrate: a caller that does not read `outcome` is unaffected. diff --git a/.changeset/35867-scenarios-cite-dataset-source-line.md b/.changeset/35867-scenarios-cite-dataset-source-line.md deleted file mode 100644 index 35cb94d73ab..00000000000 --- a/.changeset/35867-scenarios-cite-dataset-source-line.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/scenarios': patch ---- - -fix(scenarios): the `cited` axis accepts the source a `query_dataset` answer tells the client to cite - -Clause-②: no -Metadata-protocol: none - -`gradeRun` passed `cited` only when a source line named the figure's object (its machine name or a label) or the reply linked `/record/OBJECT/`. A `query_dataset` answer's `sourceLine` names the dataset and its measures, never the object, and the door's `nextStep` tells the client to cite that line as given. So a reply that did exactly that, for example `Source: Metrics: Claimed amount, Claim count (dataset: Reimbursement)`, lost `cited` on every dataset-routed figure, while one that wrote the object name by hand passed. - -Now a figure of the object a `query_dataset` answer was computed over (the answer's own `object`) is also cited by a source line naming that answer's dataset, by name or label as its `provenance` states them, or by a reply line carrying the answer's `sourceLine` verbatim, which covers the Chinese line that opens with 指标 and no source word. Read off the tool outputs only: an answer that states no `object` or no dataset `provenance` hands no citation, a dataset over another object cites nothing for this one, and a line that names neither the object nor the answer's dataset still fails. diff --git a/.changeset/35870-navigation-mode-skills.md b/.changeset/35870-navigation-mode-skills.md deleted file mode 100644 index fb273b0ceda..00000000000 --- a/.changeset/35870-navigation-mode-skills.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -Clause-②: no -Metadata-protocol: none - -The `objectstack-ui` skill teaches how an object's list opens a record after `navigation.mode` was deprecated there: - -- Record-page rule, step 5: on an object's list the record's name opens the full page and the hover icon beside it opens the drawer. `navigation.mode` is deprecated there: `drawer`, `page` and `new_window` change nothing, so the key is omitted; `none` still means rows open nothing (prefer `preventNavigation: true`); a page block's `navigation` still honours every value. The step no longer teaches `navigation: { mode: 'page' }` as the way to open the full page. -- Step 6 no longer lists the Display menu's Open records choice or the drawer's full-width state among the reader's own choices: both were removed. -- The navigation rule's Surface bullet states the same rule in place of "`page` only by declaration". -- `SKILL.md` principle 5 says how a record opens from an object's list is not authored, in place of "one list-view key"; its Where-to-go row for the record page no longer reads "drawer or page". -- Eval `record-page` case 2 ("open contracts as a full page, and beside the list") now expects nothing to be authored: it requires the answer to name the icon and forbids a `mode: 'page'` declaration. The case has a new hash, so `skill-evals --regrade` sets it apart from a round recorded before this change. diff --git a/.changeset/35872-shared-record-ids-sql-compile.md b/.changeset/35872-shared-record-ids-sql-compile.md deleted file mode 100644 index 91b16b6b50b..00000000000 --- a/.changeset/35872-shared-record-ids-sql-compile.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@objectstack/driver-sql': patch -'@objectstack/driver-turso': patch -'@objectstack/spec': patch ---- - -feat(driver-sql, driver-turso): the SQL drivers compile the `SharedRecordIds` fixed-read leaf to a subquery (ADR-0155, step 3 of 6) - -Clause-②: yes -Metadata-protocol: none - -No visible change on its own: nothing on main writes a `SharedRecordIds` leaf yet. The sharing plugin starts writing it at ADR-0155's last step. - -- **The compile** (`@objectstack/driver-sql`). A `SharedRecordIds` leaf in a field's `$in` compiles to one subquery in the list's own position: `id IN (SELECT record_id FROM sys_record_share WHERE object_name = ? AND recipient_type = 'user' AND recipient_id = ? AND record_id IS NOT NULL AND record_id <> '')`. The write form adds `AND access_level IN (…)` inside the subquery. Every value is bound. The subquery carries no tenant scope (ADR-0155 ① ruled A), and the outer statement's tenant wall is unchanged. It compiles on every read verb and on `updateMany`, for SQLite, PostgreSQL, MySQL, SQL Server and Oracle. SQLite and PostgreSQL were run live for this release. MySQL, SQL Server and Oracle are pinned at compile shape, and MySQL also runs live in CI's Temporal Conformance job. On PostgreSQL, an object whose `id` column is not text (an integer- or uuid-keyed federated table) fails the compiled subquery with `DATABASE_ERROR` (42883) instead of answering its rows. That case is open on #35906 (ADR-0155 D-0) and is settled before the sharing plugin writes the leaf. On Oracle the `<> ''` half is left out, because Oracle stores `''` as NULL. `SqliteWasmDriver` and Turso's local mode inherit the compile. -- **The remote transport** (`@objectstack/driver-turso`). Turso's remote mode compiles the same subquery with its own compiler, from the same predicates. -- **The declaration.** `SqlDriver.supports.fixedReadLeaves` is `['SharedRecordIds']`, and `TursoDriver` inherits it in every mode. The engine's seam now hands the leaf to these drivers instead of refusing it. -- **The refusal.** A leaf anywhere other than a field's `$in` comparand is refused before any statement runs, with `INTERNAL_ERROR` / 500, and logged at `error` once per driver. -- **New exports** (`@objectstack/driver-sql`). `findMisplacedFixedReadLeaf`, `fixedInnerReadPredicates` and `misplacedFixedReadLeafMessage` are the walk, the predicates and the refusal text the two compilers share. -- **The shared case-set** (`@objectstack/spec`). `SHARED_RECORD_IDS_CASE_SET` gains a note (`n5`) on a doc whose only grant is stamped in another organization, and a nested case read under a tenant. Together they witness, in the nested position, that the inner read carries no tenant scope. diff --git a/.changeset/35874-fixed-read-leaf-census-rest.md b/.changeset/35874-fixed-read-leaf-census-rest.md deleted file mode 100644 index 49d8875bae6..00000000000 --- a/.changeset/35874-fixed-read-leaf-census-rest.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -'@objectstack/spec': patch -'@objectstack/objectql': patch -'@objectstack/service-analytics': patch -'@objectstack/plugin-security': patch -'@objectstack/driver-odata': patch ---- - -feat: analytics compiles the `SharedRecordIds` fixed-read leaf, the access explainer resolves it at the record, and OData refuses it (ADR-0155, step 5 of 6) - -Clause-②: yes -Metadata-protocol: none - -No visible change on its own: nothing on main writes a `SharedRecordIds` leaf yet. The sharing plugin starts writing it at ADR-0155's last step. - -- **Analytics, the native SQL path** (`@objectstack/service-analytics`). A read scope carrying `{ id: { $in: SharedRecordIds.read(object, user) } }` compiles to one subquery in the list's own position, `id IN (SELECT "record_id" FROM "sys_record_share" WHERE "object_name" = ? AND "recipient_type" = ? AND "recipient_id" = ? AND "record_id" IS NOT NULL AND "record_id" <> '')`, with every value bound and no tenant scope on the subquery (ADR-0155 ① ruled A). The native strategy takes such a scope only when the host answers `AnalyticsServiceConfig.fixedReadLeafClassOf` with `null` for each leaf (outside both classes ADR-0155 D4 recognises: the object on another datasource than `sys_record_share`, or a middleware or `beforeFind` / `afterFind` hook registered for `sys_record_share` by name) and the dialect is SQLite, PostgreSQL, MySQL or SQL Server. Otherwise it declines, and the ObjectQL engine path answers. A host that wires no answer keeps today's behaviour: the native path declines every scope that carries the leaf. This change ships the hook unwired: `AnalyticsServicePlugin` passes no answer, so the native path declines a scope carrying the leaf and the engine path answers, until #35946 wires it. -- **Analytics, the ObjectQL path.** The read-scope merges (`withReadScope`, the related-object scope, the label read) admit a placed read-form leaf and hand it to the engine by reference. The dry-run SQL echo prints the subquery. A leaf in any other position, under `$nin`, on another object or in its write form is refused, `INTERNAL_ERROR` / 500, logged at `error` once per service logger. -- **Analytics, the query's `where`.** A leaf reaches analytics only in the read scope. A leaf anywhere in a query's `where`, in either spelling, is now refused before either strategy runs, with `INTERNAL_ERROR` / 500. The message names the leaf and its table, not the recipient. Before this release `{ id: { $in: leaf } }` there answered `INVALID_FILTER` / 400, with a message that printed the recipient. A bare `{ id: leaf }`, or an array-form `=`, was read as a relation condition on `id`. No request can spell the leaf, so only in-process code could reach this. -- **The access explainer** (`@objectstack/plugin-security`). `ISecurityService.explain` resolves each leaf in the sharing read filter at the record it judges, with one read of `sys_record_share` under the leaf's own predicate, keyed by the record ids (one read for a whole batch). The sharing layer's `rowFilter` then has the two shapes it has today: `{ id: { $in: [recordId] } }` in the share arm for a caller with a grant on the record, and the share arm left out for a caller without one. The published `rowFilter` never carries the leaf. A leaf it cannot resolve is refused, `INTERNAL_ERROR` / 500, logged at `error` once. That includes a leaf anywhere but `{ id: { $in: leaf } }` in the object's own filter, such as one inside a relation condition or a composed `ReadableIds` scope, as the engine and the analytics compiler refuse it. -- **OData** (`@objectstack/driver-odata`). `find` and `count` refuse a `where` carrying the leaf before any request is sent, `INTERNAL_ERROR` / 500. An OData `$filter` has no form of the subquery, and the driver declares no `fixedReadLeaves`. Before this release a direct `find` left the leaf's predicate out of the `$filter` it sent. The engine already refused the leaf before calling this driver. -- **The array form** (`@objectstack/spec`). `parseFilterAST` now refuses a leaf in the array form with `INTERNAL_ERROR` / 500 wherever it answered `INVALID_FILTER` / 400: as an `in` / `nin` comparand, as a member of an `in` / `nin` list, or as the comparand of a scalar operator (`!=`, `>` and the rest). The old messages printed the leaf's inputs, the recipient among them. The new message names the leaf and its table only. An unbranded copy that crossed JSON is still `INVALID_FILTER` / 400. An array-form `=` is passed on by reference and refused by the engine, as before. -- **New exports** (`@objectstack/objectql`). `fixedReadLeafClassOfEngine(engine, leaf)` answers which ADR-0155 D4 class, if any, keeps the engine from handing a leaf to a driver. `driverEvaluatesFixedReadLeaf` answers whether a driver declares the leaf. Neither reads or writes anything. diff --git a/.changeset/35875-data-page-open-rule.md b/.changeset/35875-data-page-open-rule.md deleted file mode 100644 index 345126b9661..00000000000 --- a/.changeset/35875-data-page-open-rule.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(console): the bare data page opens a record the way an object's list does - -Clause-②: no -Metadata-protocol: none - -On the bare data page (`/apps/APP/OBJECT/data`) a click on a record's name used to open the record in the side drawer. It now follows the list's one rule: the name opens the record's full page, and the 「Open in side panel」 icon that appears in the name cell while the row is hovered opens the side drawer over the list (`?recordId=`). The full page carries the data page as its origin, with its URL conditions, its name, the rows it shows and the count it matched: the page's top bar counts the record among them, ↑ ↓ step through them, and its ✕ returns to the data page with its conditions. A click on any other cell still selects it and opens nothing; a touch tap on a row opens the full page; a phone draws no icon; a list-only object's rows still open nothing. `?recordId=` links keep opening the drawer. diff --git a/.changeset/35876-list-header-menu-multi-sort.md b/.changeset/35876-list-header-menu-multi-sort.md deleted file mode 100644 index ec11c9be232..00000000000 --- a/.changeset/35876-list-header-menu-multi-sort.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@object-ui/components': patch -'@object-ui/plugin-grid': patch -'@object-ui/plugin-list': patch -'@object-ui/i18n': patch ---- - -fix(plugin-list): a list's column header opens a menu and keeps a multi-level sort; a sort chip opens the sort panel - -Clause-②: yes (widening) -Metadata-protocol: none - -On a list page (the grid `ListView` draws), a click on a column header no longer sorts at once. It opens the column menu: sort ascending, sort descending, hide the column (a column that does not sort offers hide alone). Enter, Space or ArrowDown on the focused header opens the same menu, the arrows move through it, Enter chooses, and Esc shuts it without touching the sort. With no sort or a single level, the column picked in the menu replaces the sort; with two levels or more it becomes the first level, the other levels keep their order after it, and a column already in the sort moves up with the picked direction. No level is dropped. The ↑1 / ↓2 marks on the headers are unchanged. - -A sort chip under the view bar no longer reverses its direction on a click: it opens every sort level in one panel. Each level row in the sort builder now has a handle; dragging it, or ArrowUp / ArrowDown on the focused handle, reorders the levels. - -New public surface, all additive: `GridHeaderMenuProvider` and `useGridHeaderMenu` from `@object-ui/components` (a host opts a data-table into the header menu; without it a header click sorts as before, so related lists, dashboard tables and every other host keep click-to-sort); the `headerMenu` runtime prop on `ObjectGrid`; and the `sortBuilder.reorder` key in every `@object-ui/i18n` locale. The column menu itself is now a menu (`role="menu"` entries, keyboard reachable) wherever it opens, including a right-click on a header and the design host's caret. diff --git a/.changeset/35878-list-toolbar-two-rows.md b/.changeset/35878-list-toolbar-two-rows.md deleted file mode 100644 index 086dc3520bf..00000000000 --- a/.changeset/35878-list-toolbar-two-rows.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@object-ui/plugin-list': patch -'@object-ui/plugin-grid': patch -'@object-ui/i18n': patch ---- - -feat(list): the list page's toolbar is two rows: 「Object / View ▾ · View settings … Search · New · ⋮」 and a resident condition row - -Clause-②: yes (widening) -Metadata-protocol: none - -The console's object list drew three rows above the table: the object's name with ⋮ More and New, the view bar with Filter N, Sort N, Options and search, and a condition row that appeared only once a sort or filter was set. It now draws two: - -- The view bar starts with the object's icon and name, 「/」 and the view switcher, then 「View settings」. Its right end is the search, the page's toolbar actions, New, and ⋮ More last at the right edge. While rows are selected the right end shows what the selection offers, and ⋮ More keeps its place and its icon (⋮, also in the selection face). -- The Filter N and Sort N buttons are gone from the bar. The condition row is always there: with nothing set it shows dashed 「Sort」 and 「Filter」 buttons; a sort of any number of levels is one chip, 「Sorted by X」 with 「+N」 for the further levels, which opens the sort panel; each filter is its own chip with ×, followed by 「+」. The row's right end is 「Personalized」 and 「Reset」 while the list differs from its view. The table no longer moves down when the first condition is set. -- 「Options」 is renamed 「View settings」 and sits beside the view name. Its first level shows the content itself: the view's name, the shown columns (drag to reorder, the eye to hide) and 「+ Add column」, then Layout, Group, Row height and Row color where offered, and Save, Restore defaults and export in its footer. The More level and its inline edit switch, and Refresh, are gone. -- As the list narrows, 「View settings」 folds to its icon first, then the word 「Personalized」 goes, then 「Reset」 folds to its icon. The condition row stays one line and scrolls sideways. - -For hosts of `ListView`: two optional host props, `toolbarTrailing(tools)` (the bar's right end, given the list's search) and `conditionRowEnd` (the condition row's right end, drawn in place of the row's own Reset). A host that passes neither gets the search alone at the bar's end and the row's own Reset. diff --git a/.changeset/35881-phone-app-home-fixed-bar.md b/.changeset/35881-phone-app-home-fixed-bar.md deleted file mode 100644 index 14e428c0219..00000000000 --- a/.changeset/35881-phone-app-home-fixed-bar.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/console': patch -'@object-ui/i18n': patch ---- - -feat(app-shell): on a phone, sign-in lands in an app whose home is its whole menu, and the bottom bar is fixed to Home, Notifications, Approvals and search - -Clause-②: no -Metadata-protocol: none - -Phone width only (below 768 px). Desktop and tablet widths do not change. - -- **Where sign-in lands.** A phone opens the app the person used last. The app the product marks as default is used only when there is no record yet, for example on a first sign-in. With one app it opens that app; with several and neither, it opens the app list. The last app is kept per person with their other console preferences (the `ui.app.last` key), so it follows them across devices. It is read in the same request as those preferences, not in a new one. A desktop still lands on the declared default first, as before. -- **The app's home is its whole menu.** On a phone, `/apps/SEGMENT` shows the app's menu with its groups, order and icons, one row per entry. It no longer redirects to the first entry. This is the sidebar's own menu drawn in a second place, so it cannot list an entry the sidebar hides. 「‹」 on a page one level down goes back to it, and the page comes back scrolled as it was left. An app that shows the member no entry still says so. -- **App switcher.** The app pill at the top left opens a bottom sheet: 「Current app」 with a check, then 「Other apps」 with Setup last, and a search box at the bottom. On a phone, `/home` is that same list as a page. -- **Bottom bar.** The bar has three fixed cells, Home, Notifications and Approvals, and a round search button. They do not change with the app and cannot be configured. Home opens the app's home. Notifications and Approvals open the pages the bell opens, with the bell's two counts as badges. Search opens the command palette. The bar shows only on those three pages; a list, a record, a form or any deeper page has the screen to itself. The bar no longer holds menu entries, a 「More」 cell or pinned entries (objectstack#34594). Pins already stored are ignored, and the drawer's menu search and pin hint are gone. The drawer still opens with a swipe in from the left edge. diff --git a/.changeset/35883-phone-list-toolbar-panels.md b/.changeset/35883-phone-list-toolbar-panels.md deleted file mode 100644 index e0a29470538..00000000000 --- a/.changeset/35883-phone-list-toolbar-panels.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -'@object-ui/plugin-list': patch -'@object-ui/plugin-grid': patch -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -feat(list): a phone's object list gets its own top row, one row of pills, and bottom-sheet sort, filter and view panels that apply on 「✓」 - -Clause-②: yes (widening) -Metadata-protocol: none - -At phone width (below `sm`) the console's object list changes its containers, not its content: - -- The app bar's row becomes the page's own: 「‹」, the object's icon and name, and 「⋮ More」 at the right. The app pill, the page title, the search, the bell and the avatar are not drawn while the list is on screen (the phone has them in the bottom bar and on the app's home). 「⋮ More」 offers 「Select」 (only on a card list whose rows take more than one tick), the object's description, Import and the favorite. -- Below it, one row of pills: the view switcher, Sort and Filter with a count of what is in force, and Search, which expands into a field in place. There is no condition row on a phone. -- Sort, Filter, the view switcher and View settings open as bottom sheets. The sort and filter sheets edit a copy: 「✓」 applies it through the same write the desktop chips use, 「×」 drops it. The sort sheet lists each level on two lines (field over direction) with a handle a finger can drag (or ArrowUp / ArrowDown moves), a ⋯ menu per level (change field, direction, remove) and 「Add sort」. The filter sheet lists the conditions, each with a ⋯ menu (edit, remove), and shows a sentence and 「Add filter」 when there are none. A view whose filter is an 「or」 group says it uses an advanced filter and is changed on a computer. View settings keeps its desktop content and applies as before. 「✓」 on an untouched copy writes nothing. While the on-screen keyboard is up, a sheet stands on it (it reads `visualViewport`), so its 「✓」 and the focused field stay in view. -- A long press on a card starts selecting with that card ticked, as 「Select」 in 「⋮ More」 does with none; a tap then ticks or unticks a card, and unticking the last ends it. The selection shows in the list's floating selection bar, which after 「Select」 reads 「0 selected ×」 until a card is ticked. The 「+」 create button is not drawn while selecting. A card is also a keyboard control: Enter opens it, and while selecting Enter or Space toggles it. - -New exports and props: - -- `@object-ui/plugin-list`: `PhonePanelSheet`, `useListPhonePanels`, `PHONE_CHIP`, `PHONE_CHIP_ACTIVE` and the types `PhonePanelSheetProps`, `ListPhonePanels`. -- `@object-ui/plugin-grid`: `requestListSelection`, `useListPageSelecting` and `useListPageSelectable` (would 「Select」 open a selection in this page's list); `BulkActionBar` takes `open` (show 「0 selected ×」 with no actions while a host's selection is open and empty). - -`@object-ui/app-shell` changes no public export: the page's top row is an internal store (`PhonePageBarProvider`, mounted by `ConsoleLayout`). diff --git a/.changeset/35889-form-places-detail-at-group.md b/.changeset/35889-form-places-detail-at-group.md deleted file mode 100644 index 712c40ffc8a..00000000000 --- a/.changeset/35889-form-places-detail-at-group.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@object-ui/plugin-form': patch -'@object-ui/components': patch -'@objectstack/spec': patch ---- - -fix(ui): the entry form draws a group-placed master-detail table at its field group - -Clause-②: no -Metadata-protocol: none - -A master-detail child that a field group of the parent places (`fieldGroups[].relatedList`) is now drawn at that group in the parent's create and edit forms, where the record page draws it, instead of below all of the record's fields: - -- A form laid out from the parent's field groups draws the table after the sections of the groups declared before the placing group and before the ones declared after it. -- The form's section bar stops at the table too, between the sections around it. -- A tabbed form gives it a tab of its own at that position, labelled with the group's label. A wizard master-detail form is drawn as the simple form, as before, and places it the same way. -- A form whose sections name no field group, and a child no group places (a form view's own `subforms`), keep the table below the record's fields, as before. - -The table is the same one: its rows still save with the record in one batch, an expanded row's editor opens beside it, and the document totals stay at the foot of the form. No metadata changes. diff --git a/.changeset/35889-master-detail-tab-by-default.md b/.changeset/35889-master-detail-tab-by-default.md deleted file mode 100644 index b69c182ec46..00000000000 --- a/.changeset/35889-master-detail-tab-by-default.md +++ /dev/null @@ -1,35 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/lint': minor -'@object-ui/app-shell': minor -'@object-ui/plugin-detail': minor -'@objectstack/platform-objects': minor ---- - -feat(spec, ui): a master_detail child is a tab by default; a field group puts it in the overview and the form - -Clause-②: yes (widening: `@objectstack/spec/data` exports `isGroupPlaceableRelationship`, `fieldGroupsPlaceRelationship` and the `BodyTableContext` type, and `isBodyTableRelationship` takes an optional second argument) -Metadata-protocol: semantic - -A `master_detail` FK that declares no `relatedList` used to put its child list into the parent record's overview as a table (since #35597). Now it is a tab of the record page with its count, like any other related list, `inlineEdit` or not. It goes into the overview only where a field group of the PARENT names it (`fieldGroups[].relatedList`). - -- Placed by a group, the child's table is drawn at that group's position in the overview, the parent's create and edit forms inline it, and the record page's Edit saves the record fields and the rows in one save. Its tab stays on the tab row too, with its count. -- `relatedList: 'primary'` on the FK is unchanged on the record page: a body table with no group, and no tab of its own whether or not a group positions it. Its forms follow ruling B like every other child: a field group naming it inlines it in the parent's create and edit forms, `inlineEdit` or not, and with no group naming it the forms do not inline it, even with `inlineEdit`. `relatedList: true` keeps a tab that no group may place, and `false` hides the list. -- A field group may name exactly what it could name before: a plain `master_detail` child or a `'primary'` one. `isGroupPlaceableRelationship` is that test; `isBodyTableRelationship(field, { placedByGroup })` is still the one body-table judgement. -- `inlineEdit` on the FK no longer inlines a child in the parent's form by itself (maintainer ruling B: only the field group decides). It now only picks the form factor of a child a group places: `'grid'`, `'form'`, or `true` / absent for the shape-picked default. A child with `inlineEdit` that no group names is a tab and is not in the form. -- `os lint`: `relationship/line-items-inline-edit` now suggests a field group on the parent (with its required `label`) instead of `inlineEdit: true`, and only for a FK a group may place; `relationship/association-inline-edit` and `relationship/inline-edit-needs-bulk` judge the children a parent group places; the field-consumer rule credits a child's inline grid columns only when a parent group places it. -- The showcase invoice and expense report, and the CRM opportunity, gain a field group naming their lines, so their forms and record pages keep the line table. -- In the entry form a placed table sits at its group's place too: between the sections of the groups around it, or in a tab of its own (labelled with the group) in a tabbed form. A form whose sections name no field group keeps it below the record's fields. -- Studio's field-group picker offers the same children as before. The relationship field inspector reads a plain `master_detail` FK as "Show", and "Show" leaves the key absent so a group can still place it. - -To keep a master-detail child's table in the overview and its rows in the form (including a child that set `inlineEdit`), add a field group to the parent that names it, in the place the table should sit: - -```ts -fieldGroups: [ - { key: 'basic', label: 'Basic information' }, - { key: 'lines', label: 'Lines', relatedList: 'order_line' }, // or 'order_line.order' for one FK - { key: 'terms', label: 'Terms' }, -], -``` - -Such a group holds no fields. Or write `relatedList: 'primary'` on the child's FK to keep it in the overview with no group. A group may name only a list it can place: for an `inlineEdit` child on a `lookup` FK, or on a FK declaring `relatedList: true`, also write `relatedList: 'primary'` on the FK (a `master_detail` FK may instead drop `relatedList: true`). A form view that declares its own subforms still inlines what it declares. diff --git a/.changeset/35890-record-details-pinned.md b/.changeset/35890-record-details-pinned.md deleted file mode 100644 index 13a959c04be..00000000000 --- a/.changeset/35890-record-details-pinned.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -'@object-ui/plugin-detail': patch -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -feat(console): on a wide full record page the details are pinned in a left column and the other tabs sit beside them; the right summary rail is retired - -Clause-②: yes (widening) -Metadata-protocol: none - -The synthesized record page (objectstack#35890, ruling on the card 7064066204): - -- **Pinned details.** A full page whose content fits a 320 px details column, a 24 px gap and 400 px of tabs pins the record's details in a left column and draws the other tabs (related lists, Attachments, Approvals, 动态) beside them, opening on the first. The column is 400 px wide and narrows toward 320 px on a tight page; its edge is a separator the reader drags, or moves with ←/→ (Home/End for the ends). The dragged width is kept per object in the console's workspace preference store (`record.columns.details-width`, this browser). Each column scrolls on its own. A page with no other tab draws the details across the page with no tab row; a page whose details hold a related table among the fields (objectstack#35889) is not pinned and keeps its one-column tab row. Narrowing out of the pinned layout keeps the tab that was shown, writing it to the address with `replace`. -- **The right rail is retired** at every width, with its ⊟ switch and `⌘⇧,` shortcut and the `record.columns.related` preference (an old stored choice is no longer read). Its cards (approval, attachments, recent activity, other related) are the tabs they summarised. A list the reader hid still opens, from its item in 「更多」 or from an address that names it (`?related=`). -- **「详情」.** The first tab is named Details (详情) in every locale. -- **「审批中 · 当前步骤」.** For everyone but the approver, the header's in-approval tag names the step the request waits at, when it has one. -- **Drawer, split pane and phone** keep their one-column tab row and never pin. What reaches them: the rail is gone there too, and the first tab reads 「详情」 / Details. Authored pages are untouched. - -`RecordPageColumns` gains the optional `fullPage`, `detailsWidth`, `onDetailsWidthChange` and `onShownTabChange` props, and `onEnlargeRelated` an optional `{ replace }`; `rightColumn` and `rail` are kept as deprecated props that do nothing. `@object-ui/plugin-detail` exports `RECORD_PAGE_DETAILS_WIDTH`, `RECORD_PAGE_PIN_MIN_WIDTH` and `recordPagePinsDetails`; `recordPageTierHasRightColumn` stays exported, answering as before, and is now `@deprecated` (no tier draws a right rail). - -`@object-ui/i18n` widens: two new keys in every pack, `detail.approvalPendingStep` (`In approval · {{step}}`) and `detail.detailsColumnResize` (the separator's name), and `detail.recordTabOverview` changes its text from 概览 / Overview to 详情 / Details. Every key the rail read (`detail.relatedColumn`, `detail.relatedHiddenCount` and its plural forms, `detail.relatedShowHidden`, the six `detail.summary*` keys and `shortcuts.toggleRelated`) stay in every pack, unread, so a host that reads them keeps its text; retiring them is a separate change. diff --git a/.changeset/35891-record-page-no-stage-bar.md b/.changeset/35891-record-page-no-stage-bar.md deleted file mode 100644 index 57d23c38549..00000000000 --- a/.changeset/35891-record-page-no-stage-bar.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -'@object-ui/plugin-detail': minor -'@object-ui/components': minor -'@object-ui/i18n': patch -'@objectstack/lint': minor ---- - -feat(plugin-detail): the default record page draws no stage bar and no key-field strip; the stage moves from the header's status tag - -Clause-②: yes (widening) -Metadata-protocol: semantic - -The default record page (`buildDefaultPageSchema`) no longer emits `record:highlights` or `record:path`. The stage is the status tag beside the record's name: a reader who may edit the stage field sees it with an arrow and opens a menu listing every stage in order, the current one checked; a stage the field's blocking `state_machine` cannot reach is disabled with its reason under the name. Picking a stage confirms, and a stage that makes other fields required (their `requiredWhen` holds once the record stands on it, such as a loss reason on a lost stage) asks for exactly those fields in the same dialog and writes them with the move. A refusal stays in the dialog, beside the field it names, and the stage does not move. A reader who may not edit the field, an approval lock or an open draft leaves the plain tag. A plain status field (no stage role) is read and moved the same way. - -The details body now draws every field its groups hold: the highlight fields and the stage field are no longer taken out of their groups, so a record reads in the same groups and order in view and in edit (objectstack#35849). `highlightFields` itself is unchanged and still drives the hover card, a related list's default columns and the record picker; nothing is picked when an object declares none. - -`buildDefaultHighlights` and both blocks are kept: an authored page, or a slotted page's `highlights` slot, still places a strip and a path where it wants them. - -- `@object-ui/components`: `RecordHeaderState` gains an optional `stage` renderer (with the exported `RecordHeaderStageParts`), which the header calls with the stage tag it would draw. Without a host bar (a phone) the header now draws the stage tag in the row under the record's name, beside the state's tags; before, a phone showed no stage at all. -- `@object-ui/plugin-detail`: exports `RecordStageMenu`, the menu a host hands the header as `RecordHeaderState.stage`. Its fields-a-stage-needs dialog comes from the package-internal `useStageChange` (`record:path` keeps its plain confirmation). -- `@object-ui/plugin-detail`: `BuildPageOptions.highlightFields`, `.statusField` and `.stages` are still accepted by `buildDefaultPageSchema` and `buildDefaultTabs` but no longer do anything there, since the default page draws no strip and no stage bar; `buildDefaultHighlights` still reads them. Retiring them is objectstack#35943. -- `@object-ui/i18n`: four `detail.stageMenu*` strings in every locale. -- `@objectstack/lint`: `field-group-shadowed` no longer counts the highlight strip as hiding fields from the detail body, since the default record page leaves them in their groups; a group whose only visible member is the record title still warns. diff --git a/.changeset/35892-related-tab-full-list.md b/.changeset/35892-related-tab-full-list.md deleted file mode 100644 index bcfa1ae29f8..00000000000 --- a/.changeset/35892-related-tab-full-list.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -'@object-ui/core': patch -'@object-ui/i18n': patch -'@object-ui/plugin-list': patch -'@object-ui/plugin-detail': patch -'@object-ui/app-shell': patch ---- - -feat(ui): a record page's related tab is the child object's full list - -Clause-②: yes (widening) — a new export `ListConditionsBlock` (`@object-ui/plugin-list`, the condition row as a host element, not a registered node type) and its `ListConditionsHostProps`; a new slot `RelatedListConditionsSlotContext` and its `RelatedListConditionsProps` (`@object-ui/plugin-detail`), which the record page fills (`@object-ui/app-shell`); new exports `ConditionDiscardButton` and its type `ConditionDiscardButtonProps` (`@object-ui/plugin-list`) and `withHeaderSortPick` (`@object-ui/core`); new i18n keys in every `@object-ui/i18n` locale pack (`listConditions.chips.discard`, `listConditions.chips.discardHint`, `detail.relatedNoMatches`, `detail.deleteRowsTitle`, and the count family `detail.deleteRowsConfirmation` with its plural slots `_zero`, `_one`, `_two`, `_few`, `_many`, `_other` as each pack needs them); nothing removed or renamed -Metadata-protocol: none - -On a record page, a related list opened as its own tab now works like the object's list page: - -- The first row names the child list (its tile and title) on the left and keeps **+ Add** on the right. The **Open in list** button is gone. -- The second row is the list page's own condition row: **Sort** (several levels) and **Filter**, with no view switch, view settings or search. On a narrow tab or in the drawer their labels fold to icons. -- The table is the list page's grid: the column menu, cell editing as on the list page wherever the reader may edit the child object, row selection with the floating bulk bar (bulk delete asks once, deletes the selection in one batch call where the data source has one, and says how many rows went and how many did not), and the footer row, whose calculations cover every matching row, not just the loaded ones. A tab grouped by status draws no footer row. -- Rows load as the page scrolls instead of in pages. -- The tab title still counts every child; the footer counts the rows the filter keeps. -- What the reader changes (sort, filter, footer calculations) lasts while they stay on the record, for that reader only, across its tabs and between its page and its drawer, and is gone after a reload or on another record. **Discard** appears once something changed and puts the tab back; there is no Save. The list page's Discard and this one are one button. - -Upgrade note: the header sort and the column widths and order that an earlier version remembered for a related tab in a reader's record-page preference (`sys_user_preference`) no longer apply: the tab opens in its declared order, and its column widths and order are now kept in the reader's browser, as the list page's are, so they start from the default once. Nothing stored is deleted. The default sort and columns of every related list are unchanged. - -`@object-ui/core` adds `withHeaderSortPick`, the list page's rule for how a header sort joins an existing multi-level sort, now shared with the related tab. `@object-ui/app-shell`'s list Discard is drawn by `ConditionDiscardButton`; it looks and behaves as before. diff --git a/.changeset/35897-related-lists-tab-list.md b/.changeset/35897-related-lists-tab-list.md deleted file mode 100644 index 493887e365c..00000000000 --- a/.changeset/35897-related-lists-tab-list.md +++ /dev/null @@ -1,36 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/lint': minor -'@object-ui/plugin-detail': minor -'@object-ui/app-shell': minor -'@object-ui/i18n': minor -'@objectstack/platform-objects': patch ---- - -feat(spec): an object's `relatedLists` is its record page's tab list — only the listed related lists show, in order, the attachments, approvals and activity-stream tabs are placed by object name, and an entry can carry its list's title and columns - -Clause-②: yes (widening) -Metadata-protocol: semantic - -A record page's tabs are now declared on the parent object, in one place: - -```ts -relatedLists: [ - { list: 'quote_line', label: 'Line items', columns: ['product', 'quantity', 'unit_price', 'amount'] }, - 'task', - 'sys_attachment', - 'sys_approval_request', - 'sys_activity', -], -``` - -- **No `relatedLists` (or an empty one): nothing changes.** Every related list shows, in the derived order, then attachments, approvals and the activity stream. -- **A declared `relatedLists` now decides which tabs show**, not only their order. A related list no entry names shows no tab; before, it still followed the listed ones. Removing an entry removes its tab. Body tables a field group places in the overview (`fieldGroups[].relatedList`) stay at their group, and the tab such a `master_detail` table also keeps on an undeclared page shows only when an entry names it, and `relatedList: false` on the child's FK still hides a list. -- **This narrows the #35889 note** ("Its tab stays on the tab row too, with its count"): the tab of a `master_detail` child that a field group places in the overview stays only while the parent declares no `relatedLists`; once it declares one, that tab shows only if an entry names the child. -- **The three built-in tabs by object name**: `'sys_attachment'` (attachments; shown only when listed, and still only when the object enables files), `'sys_approval_request'` (approvals; still only on a record with requests, and when unlisted it follows the listed tabs), `'sys_activity'` (the one activity stream; when unlisted it closes the strip). A built-in is written only as its bare name: `{ list: 'sys_attachment', … }` is refused at parse. `'sys_comment'` and `'sys_audit_log'` are parts of the stream, not tabs: `os validate` warns (`related-list-stream-part`) and prescribes `'sys_activity'`. `'sys_attachment'` on an object without files warns (`related-list-attachments-off`). -- **An entry's own title and columns**: `{ list, label?, columns? }` wins over the child FK's `relatedListTitle` / `relatedListColumns`, which keep working unchanged. The columns are child field names, used wherever the list is drawn (its tab, and the body table a field group places); a dotted column (`account.industry`) walks the child's relationships, as `relatedListColumns` does, and a name that resolves to no field of the child is refused (`related-list-column-unknown`) by `os validate`, `os build` and the metadata write door. - -- **The generic object form** (metadata admin) edits `relatedLists` with its own chip input: a bare name and an object entry both show and both survive add and remove (the entry's title and columns beside its name; they are edited in Studio). Its help text states the tab-list meaning in every translated locale. -- **Studio** (object settings, Record page tabs): the editor lists the entries in order, the built-in tabs among them, and offers the built-ins not yet listed (attachments only when the object enables files). A relationship row's edit sets its own title and columns, and clearing both writes the bare name again. The relationships not listed are shown below as having no tab. A move, a removal or an add keeps every entry's object form and every built-in name. - -What to check in an app: an object that already declares `relatedLists` and leaves some related lists out now shows only the listed ones, and shows no attachments tab unless `'sys_attachment'` is listed. List every tab the page should keep, or remove `relatedLists` to show them all. A child list another package adds is hidden too until the parent names it, which a build accepts only when that package is in the parent's stack; letting a package place its own list is a later change. ADR-0087 semantic entry `related-lists-declared-is-tab-list`. diff --git a/.changeset/35900-field-group-members.md b/.changeset/35900-field-group-members.md deleted file mode 100644 index 8ec13f53dc0..00000000000 --- a/.changeset/35900-field-group-members.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/lint': minor -'@object-ui/app-shell': minor -'@objectstack/platform-objects': minor -'@object-ui/plugin-detail': minor -'@objectstack/metadata-core': minor ---- - -feat(spec): a field group lists its own members and their order (`fieldGroups[].fields`) - -Clause-②: yes (widening) -Metadata-protocol: added - -A field group may now list which fields it shows and in what order: - -```ts -fieldGroups: [ - { key: 'basic', label: 'Basic', fields: ['account', 'name', 'valid_until'] }, - { key: 'terms', label: 'Terms', fields: ['terms'] }, -] -``` - -The record page, the create and edit forms and the drawer show the group's fields in the list's order, whatever order the object's `fields` declares them in, so a group can be reordered without moving any field (and without changing a list view's default column order). - -Nothing changes for an object that writes no `fields` on its groups: a group without the list still holds the fields whose `group` names it, in field declaration order. `Field.group` is the older spelling and is still read; it is not deprecated for removal. - -The two spellings must agree. The object parse refuses a field one group lists while its own `group` names another declared group (reported at both places; a `group` naming no declared key is not another group, so the list wins), a field two groups list, a name one list repeats, and `fields` on a group that places a related list (`relatedList`). A field whose `group` names a listing group that leaves it out is shown after the listed fields, never dropped. A listed name the object does not declare is skipped, so removing a field never makes the object unparseable; `os lint` warns about it (`field-group-member-unknown`). - -New export: `readFieldGroupMembership` (`@objectstack/spec/data`), the membership `deriveFieldGroupLayout` places sections from, for editors that also show hidden fields. - -Studio: dragging a field inside a group, or into another group, now writes those groups' `fields` lists and leaves the object's field declaration order alone. Only the ungrouped bucket, which has no list, still reorders by declaration order. Moving a field to another group from the field inspector does the same once a list is involved. - -Field-level security: the object document served to a caller who cannot read some fields keeps each group's `fields` list, with the hidden names filtered out and the rest in order, so the record page and forms keep the layout for that caller. diff --git a/.changeset/35901-object-extension-place.md b/.changeset/35901-object-extension-place.md deleted file mode 100644 index c3a864bad87..00000000000 --- a/.changeset/35901-object-extension-place.md +++ /dev/null @@ -1,37 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/objectql': minor -'@objectstack/lint': minor -'@object-ui/app-shell': minor -'@object-ui/plugin-detail': minor -'@object-ui/i18n': minor ---- - -feat(spec): an object extension says where the fields, groups and child lists it brings go (`place`), and a child list another package brings is no longer hidden by the parent's `relatedLists` - -Clause-②: yes (widening) -Metadata-protocol: semantic - -An `objectExtensions` entry can now place what it brings on the object it extends: - -```ts -objectExtensions: [{ - extend: 'account', - fields: { tax_id: { type: 'text', label: 'Tax ID' } }, - place: [ - { field: 'tax_id', group: 'basic', after: 'industry' }, - { group: { key: 'tax', label: 'Tax' }, after: 'basic' }, - { list: 'contract', after: 'opportunity', label: 'Contracts', columns: ['name', 'amount'] }, - ], -}], -``` - -- **No `place`: nothing moves.** Fields still arrive after the object's own, and an extension that writes no `place` serves exactly what it served before. -- **One merge, every reader.** The registry fold applies the placements once, after every contributor's fields are merged, so the record page, the forms and Studio show one arrangement. Uninstalling or disabling the package takes its items off and leaves the object's own order as it was. -- **Placement arranges what the parent declares.** A list placement applies when the extended object declares `relatedLists`; a group or field placement when it declares `fieldGroups`. On a parent that declares neither, its automatic arrangement stays and nothing is dropped: the list shows in the automatic tab order, and its entry's `label` / `columns` are not applied either (write `relatedListTitle` / `relatedListColumns` on your child object's lookup field to title it on every parent); the field shows among the fields, its `after` / `before` not applied. The boot log names each placement that did not apply, with the object and the package. It is the main channel: `os validate` names it too (`extension-placement-not-applied`, warning) only when the extended object is in the same stack. -- **Anchors and order.** `after` or `before`, not both; neither means the end. An anchor may be an item another placement brings, whatever order the two are written or registered in. An anchor nobody has puts the item at the end of its group, of the groups, or of the tabs (before a trailing approvals / activity-stream run), and `os validate` warns (`extension-placement-anchor-missing`). A list placement's `columns` are fields of the child, checked by `os validate` as a `relatedLists` entry's are (`related-list-column-unknown`). Several packages at one anchor follow ascending `priority`, then package name, so every build gives the same order. When the object itself already names the list or lists the field, its own position wins. -- **An extension places only its own items.** A field outside its own `fields`, a field the extended object declares (also one the extension redeclares to relabel it), a group key the extended object already declares, or a list (placed as a tab or by a group's `relatedList`) that is not a child object of its package pointing at the extended object is refused at parse or at `defineStack`, and skipped by the merge with a warning naming whose item it is, whichever door registered the extension. The extension keys `fieldGroups` and `relatedLists` are refused with a prescription naming `place`. -- **Shipped behaviour change (flips #35897's hiding):** a child list another package brings is no longer hidden by the parent's declared `relatedLists`. Placed, it sits where its package puts it; unplaced, it shows at the end of the tabs. "Another package" means the child and the parent both belong to a package and the two differ; a child of the parent's own package, or one no package owns, is still hidden until an entry names it. This narrows the #35897 note "A child list another package adds is hidden too until the parent names it … letting a package place its own list is a later change": that change is this one. -- **Studio** (object settings, Record page tabs) shows such a list read-only among the unlisted rows with a "from <package>" badge, and the preview draws it where the record page does. - -What to check in an app: on an object that declares `relatedLists`, every installed package's child lists of it now show, at the end of the tabs unless placed; name one in the parent's `relatedLists` to put it elsewhere, or set `relatedList: false` on that package's FK to hide it. Nothing in HotCRM changes meaning today: no module writes `place`, and no object declares `relatedLists`. Most HotCRM objects already declare `fieldGroups`, so a field or group placement there applies as soon as a module writes one; a list placement waits until the parent declares its `relatedLists` (follow-up #35902). ADR-0087 semantic entry `object-extension-place-and-cross-package-lists`; ADR-0146 D10 and ADR-0085 notes. diff --git a/.changeset/35902-skills-extension-place.md b/.changeset/35902-skills-extension-place.md deleted file mode 100644 index 6a34046a1bc..00000000000 --- a/.changeset/35902-skills-extension-place.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -Clause-②: no -Metadata-protocol: none - -The skills teach where an object extension's additions go on the object it extends: - -- `objectstack-data` Object Extension Model: `place` puts the extension's own fields, groups and child lists after (or before) a named item of the target, where the target declares `fieldGroups` / `relatedLists`. Example: `place: [{ field: 'tax_id', group: 'basic', after: 'industry' }, { list: 'acme_contract', after: 'crm_opportunity' }]`; a group of the extension's own is `{ group: { key, label }, after }`. -- `objectstack-ui` record-page rule: on a parent that declares `relatedLists`, a child list another package adds still shows, after the named lists or where that package's extension places it. The rule no longer says such a list is hidden until the parent names it. -- Eval: a new `objectstack-data` case places an add-on package's field after Industry in the account's Basic group and its child list after the Opportunities tab. diff --git a/.changeset/35902-skills-related-lists-tabs.md b/.changeset/35902-skills-related-lists-tabs.md deleted file mode 100644 index 7860f10a2ef..00000000000 --- a/.changeset/35902-skills-related-lists-tabs.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -Clause-②: no -Metadata-protocol: none - -The record-page skills teach the parent-declared record page: - -- `objectstack-ui` record-page rule: the parent's `relatedLists` is the tab list. Without it nothing changes; declared, only the named lists show, in order, with the attachments, approvals and activity tabs named by object (`sys_attachment`, `sys_approval_request`, `sys_activity`), and an entry `{ list, label, columns }` titles one list. "Put the tasks tab first" lists every tab to keep, tasks first, because a list naming only the task hides the rest. A child list another package adds still shows, after the named lists or where that package's extension places it. -- The same rule's step 1 no longer teaches a stage bar or a key-field strip: the stage is the status tag beside the title, whose menu moves it, and `highlightFields` feed hover cards, pickers and related-list columns. A field group lists its own members in `fields`. The wide full page pins the details left beside the tabs, unless the details hold a child table or there is no other tab; the right summary rail and its switch are gone from the text, and the details column's dragged width joins the reader's own choices. -- A `master_detail` child is a tab by default (`objectstack-data` relationships rule, the record-page rule and an eval); a parent field group naming the child list places its table among the fields, written only when asked, and the list keeps its tab too unless a declared `relatedLists` leaves it out. -- `objectstack-data` field-groups example lists each group's members in `fields`; `objectstack-ui` navigation names `fieldGroups` alone. -- Evals: the tasks-first case now writes the full tab list; new cases remove the attachments tab, place a Tax ID field after Industry in its group's list, and put a quote's line items above its amount section. diff --git a/.changeset/35906-pg-share-grant-key-type.md b/.changeset/35906-pg-share-grant-key-type.md deleted file mode 100644 index 7e75612347d..00000000000 --- a/.changeset/35906-pg-share-grant-key-type.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@objectstack/driver-sql': patch ---- - -feat(driver-sql): on PostgreSQL the share-grant subquery compares `record_id` as the outer key's own type (ADR-0155 O2) - -Clause-②: yes -Metadata-protocol: none - -No visible change on its own: nothing writes a `SharedRecordIds` leaf yet. The sharing plugin starts writing it at ADR-0155's last step, and this makes that step safe on PostgreSQL tables whose key is not text. - -- **PostgreSQL, a key that is not text.** The compiled subquery `id IN (SELECT record_id FROM sys_record_share WHERE …)` now projects `record_id` cast to the base type of the column it is compared with: `CAST(NULLIF(record_id, '') AS <type>)`. A federated table keyed by `integer`, `bigint`, `smallint`, `numeric`, `uuid`, `character(n)` or a domain over one of them answers the same rows as the id list of the same grants: `07` names 7, an upper-case or braced uuid names its lower-case twin, and a padded grant names a `character(n)` key. Before, an integer or uuid key failed the statement with `DATABASE_ERROR` (42883), and a `character(n)` key silently missed a padded grant. -- **A malformed grant id** (`abc` against an integer key) fails the statement with `DATABASE_ERROR` / 500, the same answer the id list gives for it. -- **How the type is known.** The driver reads the column types of the compared table from `pg_catalog` once, the first time a statement holding the leaf reaches that table, and outside a transaction keeps the answer for the life of the driver (inside one, see the next bullet). A statement with no leaf reads nothing. A failed or empty catalog read records nothing and is asked again by the next statement. -- **No reading, no statement.** On PostgreSQL a statement whose leaf is compared with a table the driver holds no catalog reading of is refused with `INTERNAL_ERROR` / 500 (logged once), and never runs uncast, which on a `character(n)` key would miss a padded grant silently. A table has no reading when the catalog read fails or finds no such relation; nothing is recorded, and the next statement reads the catalog again. -- **Read where the statement runs.** A statement in the caller's transaction reads the catalog on that transaction's own connection, inside a savepoint: it needs no second pooled connection, it sees a table the transaction created, and a failed read rolls back the savepoint alone, so the caller's transaction stays usable. That reading is kept for that transaction only, and reaches every savepoint derived from it, so a write the driver itself retries in a savepoint (an `updateMany` on an object whose `updated_at` column is only presumed) compiles with it; a reading a savepoint takes never reaches its parent. Each transaction therefore pays one savepoint and one catalog read per table it compares a leaf against. A statement outside a transaction reads on the pool and the reading is kept for the life of the driver. -- **Unchanged, and what text keys get.** A `text` or `varchar` key, which is every table the platform creates, compiles to exactly step 3's statement, with no cast. What is new for it: the first leaf statement on that table (once per driver, or once per transaction inside one) is preceded by the catalog read, and if that read fails, or finds no such relation, the statement is refused with `INTERNAL_ERROR` / 500 instead of being run. SQLite, MySQL, SQL Server and Oracle compile exactly as before and read no catalog; SQLite answers the list's rows by column affinity. MySQL and SQL Server keys are not measured against a live server yet. An Oracle `RAW(16)` uuid key is expected to fail the statement (ORA-01465, by reading: the subquery converts a dashed uuid grant to `RAW` implicitly, where the id list binds its undashed hex); it is not measured, and is tracked on #35952. diff --git a/.changeset/35907-scenario-confirmation-grading.md b/.changeset/35907-scenario-confirmation-grading.md deleted file mode 100644 index 60369615943..00000000000 --- a/.changeset/35907-scenario-confirmation-grading.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@objectstack/scenarios': patch ---- - -fix(scenarios): an `applied` operation whose gated action met `428 no_confirmation_service` is not measured, not failed; a run_action handed to the person reads as `pending_confirmation`, not `applied` - -Clause-②: no -Metadata-protocol: none - -An operation a card declares `applied` (leave_balances `delete_withdrawn_request`: the person names exactly one row, so the agent may delete it) failed when the agent took the card's own confirm-gated action instead of the direct delete. On a server with no pending-confirmation service the action door answers every gated call `428 ACTION_CONFIRMATION_REQUIRED`, `details.reason: 'no_confirmation_service'`, whatever the agent sends, so that route can apply nothing there. Such an operation is now not measured, out of passed and total, with the reason `noConfirmationServiceOnGate`, the way the confirmed write of a `pending_confirmation` operation already is on the same server. A write that then reached the target through a raw data door is not measured too. The direct named delete grades `applied` as before, a `428` with any other reason stays measured, and on a `pending_confirmation` operation the same answer is still the hand-off to the person and passes. - -The observer also reads the hand-off answer right. On a host that registers a pending-confirmation service, a `run_action` to an action declaring `ai.requiresConfirmation: true` is handed to the person and answered as a successful result, `{ status: 'pending_confirmation', pendingId, … }`; nothing runs. `observedAnswer` counted that answer as a write that succeeded and graded the turn `applied`, so a correct hand-off failed `pending_confirmation`. It now reads `pending_confirmation` when no row changed; rows that did change still read `applied`, a run_action that ran still reads `applied`, and a data tool whose record happens to carry `status: 'pending_confirmation'` is not a hand-off. The confirmed write's route list (`via`) and the deprecated `agentConfirmed` reading no longer count a hand-off as an applied write either. - -New, additive: `OperationObservation.metNoConfirmationService` (set by `observeOperation`), the reason `noConfirmationServiceOnGate`, and the runner's `metNoConfirmationService(output)` and `handedOff(call)` predicates. diff --git a/.changeset/35908-scenario-confirm-first-lock.md b/.changeset/35908-scenario-confirm-first-lock.md deleted file mode 100644 index db608227049..00000000000 --- a/.changeset/35908-scenario-confirm-first-lock.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/scenarios': patch ---- - -Clause-②: no -Metadata-protocol: none - -feat(scenarios): the build prompt's confirm-first line asks the build to lock the change a gated action makes - -A confirm-gated agent action (`ai.requiresConfirmation`) guards its own door only; the gate is not widened to the raw data door, so an agent that met the gate could still write the target state with a plain record update. The build contract's line for each confirm-first action now also asks the build to lock that change: when the action changes fields of its row, those fields are made not editable for each person who runs it, at the stage the action acts on (a field permission `when` in their permission set), and the action writes them elevated, so the same people's other changes to those fields still land. An action that deletes its row locks nothing, and its people keep their delete right. Lines for actions that are not confirm-gated are unchanged. diff --git a/.changeset/35911-destructive-colour-spelling.md b/.changeset/35911-destructive-colour-spelling.md deleted file mode 100644 index 7b438527123..00000000000 --- a/.changeset/35911-destructive-colour-spelling.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@object-ui/plugin-grid': patch -'@object-ui/plugin-list': patch -'@object-ui/plugin-markdown': patch -'@object-ui/components': patch -'@object-ui/core': patch -'@object-ui/cli': patch -'@object-ui/console': patch ---- - -fix(ui): danger colours render red in both themes, and light danger text clears 4.5:1 - -Clause-②: no -Metadata-protocol: none - -- The grid and list views' export-error line, and the Markdown caution alert's border and title, set their colour to a bare `var(--destructive)`. That variable holds an HSL triplet, not a colour, so the browser dropped the declaration and the text rendered in the inherited colour. The export-error line now uses the `text-destructive` utility and the caution alert reads `hsl(var(--destructive-text, var(--destructive)))`. The Markdown theme's heading anchors, quote and meta tokens and blockquote border and background had the same defect with other theme variables and now wrap them in `hsl()` too. -- The flow preview's invalid-edge stroke and arrowhead paint with the danger text colour, so they stay readable on the dark theme. -- The light theme now sets its own `--destructive-text`, red-700 (`#b91c1c`, `0 73.7% 41.8%`), so `text-destructive` reads at 6.47:1 on white instead of 3.76:1. `--destructive`, the brand red used for button and badge fills, is unchanged. The same value is in the stylesheet that `objectui init` generates. -- A theme's `error` colour applied through the theme engine still sets `--destructive`, and now also derives a danger text colour for each mode from it (same hue, lightness moved until it reads at 4.5:1 on that mode's surfaces), written as `--destructive-text-light` and `--destructive-text-dark`. The shipped stylesheets read those into `--destructive-text` in their light and dark blocks, so a custom red drives danger text and stays readable in both modes. A host stylesheet that overrides `--destructive` by hand should set `--destructive-text` beside it in each mode. diff --git a/.changeset/35915-navigation-help-seven-locales.md b/.changeset/35915-navigation-help-seven-locales.md deleted file mode 100644 index c4284178b96..00000000000 --- a/.changeset/35915-navigation-help-seven-locales.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/platform-objects': patch ---- - -fix(platform-objects): the view form's navigation help no longer says rows open in a drawer by default in Arabic, German, French, Korean, Brazilian Portuguese, Russian and Traditional Chinese - -Clause-②: no -Metadata-protocol: none - -The `navigation` and `navigation.mode` help texts of the view metadata form are now translated from the current English in these seven locales, matching the zh-CN, ja-JP and es-ES wording: `mode` is deprecated on an object's list (the record name opens the full page, the hover icon the side panel), and `none` still means rows open nothing. Before, the `navigation` help still said the drawer is the default, and `navigation.mode` showed an older English copy. diff --git a/.changeset/35917-by-id-widener-floor-term.md b/.changeset/35917-by-id-widener-floor-term.md deleted file mode 100644 index f111bead829..00000000000 --- a/.changeset/35917-by-id-widener-floor-term.md +++ /dev/null @@ -1,36 +0,0 @@ ---- -'@objectstack/plugin-security': patch ---- - -fix(plugin-security): a record sharing `allow` no longer takes the ownership floor out of an OR an authored write policy stands in, so a creator can still edit or delete their own row by id beside an authored widener - -Clause-②: yes (widening) -Metadata-protocol: none - -On a by-id update or delete, when the sharing service answered `allow` for the row, the platform's own ownership floor (`created_by == current_user.id`, from `member_default` and `external_default`) was removed from the row-level filter. The sharing service answers `allow` when the caller owns the row or holds write depth over its owner, holds Modify All, or, for an update, holds an `edit` share on it or belongs to the queue it sits in. That filter is an OR of permissive policies. Where an app-authored update or delete policy applied to the caller as well, for example "any open deal" (`stage == 'open'`), removing the floor left that policy as the only term. A row the floor alone admitted, such as the caller's own closed deal, was then refused with 403 `PERMISSION_DENIED`. A predicate write (`multi: true` update, delete by `where`) over the same row wrote it. - -The maintainer ruled option A on #35917 (ruling comment 7063130499, 2026-11-21): under a sharing `allow`, the creator and owner floor stays an OR term beside an authored update or delete `using` policy, so a by-id write gives the answer a predicate write already gave for those rows. - -The floor is now dropped only where it is the filter's last term. Beside an authored write policy with a `using` it stays one term of the OR, both in the row gate before the write and in the defaulted check on the new image. What changes: - -- On an object where an authored update or delete policy applies to the caller, a by-id update or delete of a row the caller created, where record sharing answers `allow`, is admitted again, as it was before the sharing service could replace the floor. That covers a creator who owns the row, who holds write depth over its owner, who holds Modify All, and, for an update, who holds an `edit` share or queue membership. A creator with none of these is still refused by record sharing on a row the authored policy does not admit. The lifecycle verbs move with their write class: `transfer` with update, `purge` with delete (`restore` addresses no single row id, so it does not meet this gate). -- By id and by predicate now agree on the rows the floor admits. They do not agree on every row: an open row the caller neither owns nor holds a share on, which an authored policy admits, is written by id (the authored policy lifts the sharing refusal) and left out of a predicate write (the sharing bulk scope stays owner and shares). That divergence is older than this change and is not touched here. -- `security/explain` reports the same record verdict for these rows. -- The master check a `controlled_by_parent` detail write asks about its master row moves the same way: a master's creator, where record sharing allows the master, can now insert, update and delete its details beside the master's authored update policy. -- An authored write policy that cannot enforce (a missing column, an unresolved membership key) used to deny every such by-id write under `allow`. The creator's own rows now pass by the floor, as they already did under `abstain` and by predicate. -- A write on another user's behalf (ADR-0090 D10) follows the delegator: a by-id update or delete, by the delegator or on its behalf, of a row the delegator created beside its authored policy is now admitted. Before, both were refused. The suite pinned those refusals in 22 tests. Those tests now use rows the delegator did not create, so they still refuse with every assertion kept, and new tests pin the admission of a row, and of a master, the delegator created: `delegated-write-never-exceeds-delegator.test.ts` (the five held-row cells and the post-image store test, under both tenancy postures, 12 tests) and `explain-enforce-parity.test.ts` (the five #24746 held rows, under both postures, 10 tests). An agent still never writes a row its delegator's own write refuses; on a `controlled_by_parent` object that rests on the delegator's own composition, which new cells pin at the row gate, the stored row and the master gate. - -Removed capability: a `using` write policy no longer stops a row's own creator once record sharing says `allow`, and a master's authored update policy no longer stops the master's creator from writing its details. Where to put such a limit now: - -- A `check` on the update policy judges the stored image of every row, so it can refuse what a row becomes. It does not see the row as it stood before the write, so it cannot hold a row in a state: a creator can still edit a closed deal into one the check accepts. -- A `beforeUpdate` lifecycle hook sees the row as it stood before the write (`ctx.previous`), so a limit on the prior state goes there, and a delete has no new image, so a limit on deleting one's own rows goes in a `beforeDelete` hook. -- For a master's details, the master gate reads the master's row filter, not its `check`, and a hook on the master does not run for a detail write: the limit goes in a hook on the detail object. - -What does not change: - -- Where no authored write policy with a `using` applies, an `allow` still replaces the floor completely, as before. -- An authored policy still bounds every row the floor does not admit. Modify All does not lift an authored write policy on an ordinary business object (ADR-0066 ①), and an owner or `edit`-share target who did not create the row is still held to the authored policy. -- A `check` an author wrote still refuses the new image, the tenant wall still applies, and an `edit` share still widens update and never delete. -- Where record sharing abstains (no owner field), the floor still applies. -- Reads are not affected: the floor is a write-side policy. -- `ISecurityService.checkAuthoredRowWrite` still judges the authored policies alone, without the floor. diff --git a/.changeset/35926-field-inline-edit-boolean-retired.md b/.changeset/35926-field-inline-edit-boolean-retired.md deleted file mode 100644 index bd1e00e8748..00000000000 --- a/.changeset/35926-field-inline-edit-boolean-retired.md +++ /dev/null @@ -1,31 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/cli': patch -'@objectstack/platform-objects': patch -'@objectstack/lint': patch ---- - -feat(spec)!: retire the boolean arm of a relationship field's `inlineEdit` — `true` and `false` both read as the key left out - -Clause-②: no (narrowing) -Metadata-protocol: narrowed -Skills-docs: follow-up #37042 - -<!-- adr-0087: registered field-inline-edit-boolean-removed, field-inline-edit-boolean-retired --> - -**BREAKING** accept-set narrowing on `FieldSchema.inlineEdit` (`@objectstack/spec/data`), the inline form factor of a `lookup` or `master_detail` field. Since the field-group placement, a field group of the parent (`fieldGroups[].relatedList`) decides whether the parent's create and edit forms inline a child, and `inlineEdit` only picks the form factor of a placed child. Every reader of the key passes anything but `'grid'` and `'form'` as absent, so `true` (documented as "auto") and `false` both did exactly what leaving the key out does: the form factor is picked from the child's shape. - -| FROM | TO | -|:--|:--| -| `inlineEdit: true` on a `lookup` / `master_detail` field | delete the key (the form factor is still picked from the child's shape), or write `'grid'` / `'form'` | -| `inlineEdit: false` on a `lookup` / `master_detail` field | delete the key | -| a child meant to be entered in the parent's form | name it in a field group of the parent: `fieldGroups: [{ key: 'lines', label: 'Lines', relatedList: '<child object>' }]` | - -The one-line fix: delete a boolean `inlineEdit` wherever it is written; `os migrate meta --from 17 --write` deletes it from object sources. Writing one after upgrade fails `tsc` (the input type is `'grid' | 'form'`) and fails the parse with that prescription. `'grid'` and `'form'` parse unchanged. The view-level `inlineEdit` (a list view's in-cell editing switch) is a different key and is unchanged. - -The retirement kit: - -- **`@objectstack/spec`**: `FieldSchema.inlineEdit` is `z.enum(['grid', 'form'])`, and a boolean meets the prescription from the enum's own error map. The D2 conversion `field-inline-edit-boolean-removed` (lossless, retired from the load path) deletes a boolean `inlineEdit` from `objects[]` and `objectExtensions[]` field maps on every data-at-rest seam (stored rows, built artifacts, `os migrate meta`); the D3 entry `field-inline-edit-boolean-retired` names what the upgrade still owes: whether the child should be placed by a field group of the parent. The liveness ledger keeps the key `live` for the two surviving values, with the narrowing recorded. -- **Field form** (`@objectstack/spec` `field.form.ts`, labels in `@objectstack/platform-objects`): with the boolean arm gone a select spells every value, so the field designer now offers `inlineEdit` as a `Grid` / `Form` select on `lookup` and `master_detail` fields; left unset, the form factor is picked from the child's shape. Before, the form left the key out because no widget could spell a boolean-or-string union. -- **`@objectstack/lint`**: two doc comments in the field-consumer rule (`validate-field-consumers.ts`) now read a boolean `inlineEdit` as refused by the spec and as absent at the renderer; comment text on unexported functions only, so no shipped byte changes. -- **`@objectstack/cli`**: the golden metadata-eval corpus places its line items with a field group of the parent, with `inlineEdit: 'grid'` as their form factor, instead of `inlineEdit: true`. diff --git a/.changeset/35927-metadata-forms-field-group-help.md b/.changeset/35927-metadata-forms-field-group-help.md deleted file mode 100644 index 9e9389abb1a..00000000000 --- a/.changeset/35927-metadata-forms-field-group-help.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/platform-objects': patch ---- - -fix(platform-objects): every locale's Studio help for related-list field groups and inline columns states the field-group rule - -Clause-②: no -Metadata-protocol: none - -A master-detail child table appears on the parent's create and edit forms, and at a place on its record page, when a field group of the parent names it (`fieldGroups[].relatedList`); `inlineEdit` alone no longer does that. The English and Simplified Chinese Studio help already said so. The Arabic, German, Spanish, French, Japanese, Korean, Portuguese (Brazil), Russian and Traditional Chinese help for two keys still gave the old rule. The inline columns help said the columns are used only when the field sets `inlineEdit`, and the field group help said the record page does not draw the placement yet. Both now match the English text. diff --git a/.changeset/35928-record-update-starts-read.md b/.changeset/35928-record-update-starts-read.md deleted file mode 100644 index e96759dd4fd..00000000000 --- a/.changeset/35928-record-update-starts-read.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/service-automation': patch -'@objectstack/trigger-record-change': patch -'@objectstack/runtime': patch -'@objectstack/client': patch ---- - -feat(automation): `POST /api/v1/automation/_record-starts` answers which flows a proposed update of one record would start - -Clause-②: yes (widening) — one new public read: the route `POST /api/v1/automation/_record-starts` (`automation.listRecordUpdateStarts` in the API contract and in `@objectstack/client`); `@objectstack/spec/api` adds `RecordUpdateStartsRequestSchema`, `RecordUpdateStartSchema`, `RecordUpdateStartsResponseSchema` and their types; `@objectstack/spec/contracts` adds `RecordUpdateStartsInput` and the optional `IAutomationService.listRecordUpdateStarts`; `@objectstack/spec/automation` adds `recordChangeTriggerHookEvents` and `recordChangeTriggerFiresOnUpdate`; `_record-starts` joins the `/automation` domain's reserved position literals. Nothing existing is removed or re-typed. -Metadata-protocol: added — the three new `@objectstack/spec/api` schemas enter the `api` authorable-surface shard (10 keys: `RecordUpdateStart:name/label/startsApproval`, `RecordUpdateStartsRequest:object/recordId/changes`, `RecordUpdateStartsResponse:success/data/error/meta`); no flow or other metadata key is added -Skills-docs: none — no skill under `skills/**` teaches the console's stage confirms; `content/docs/automation/flows.mdx` gains the read in this change. - -The console's stage confirms now name the flows a move would start (objectstack#35928, ruling record 7073655354). They ask the server: - -- **Request** `{ object, recordId, changes }`; **response** `{ success, data: { flows: [{ name, label, startsApproval }] } }`. -- **Who is answered:** a signed-in caller who can read the record. The record is read as the caller through the `/data` door's own `get`, so a record they cannot read answers `404 RECORD_NOT_FOUND` exactly as an absent one, and the engine is never asked. Anonymous `401`; a malformed body `400 VALIDATION_FAILED`; a `changes` key that is not a declared field of the object `400 VALIDATION_FAILED` on that key, the engine never asked; a read that answers no record `404 RECORD_NOT_FOUND`; any query parameter `400 VALIDATION_ERROR`; an engine without the read `501`. -- **Which flows:** enabled `record_change` flows of the object, armed on their trigger, whose `triggerType` binds an update, and whose start condition holds for the record read with `changes` applied (`previous` is the record read). The condition goes through the engine's one start-condition gate, the one every run passes; the token grammar `@objectstack/trigger-record-change` binds hooks by moved into the spec (`recordChangeTriggerHookEvents`) so the preview reads the same rule, with no second copy. A condition that cannot be evaluated against the record is not listed. Hooks are never listed. -- **Per flow:** `name`, the authored `label` (a client translates it by name) and `startsApproval`, true for a flow holding an `approval` node (ADR-0019). No description, condition or nodes. diff --git a/.changeset/35928-stage-confirm-names-flows.md b/.changeset/35928-stage-confirm-names-flows.md deleted file mode 100644 index 735e46ee1c7..00000000000 --- a/.changeset/35928-stage-confirm-names-flows.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@object-ui/plugin-detail': patch -'@object-ui/plugin-grid': patch -'@object-ui/fields': patch -'@object-ui/i18n': patch -'@object-ui/app-shell': patch ---- - -feat(console): a stage confirm names the flows the move would start, in the list cell and on the record page - -Clause-②: yes (widening) — `@object-ui/plugin-detail` adds the exports `useRecordUpdateStarts`, `StageChangeStarts`, `RECORD_UPDATE_STARTS_PATH` and the type `RecordUpdateStartsAsk`; `@object-ui/fields`' `RequiredFieldsDialog` takes an optional `notice`; `@object-ui/i18n` adds the export `activeFlowsBundle` (with the types `FlowsTranslation` and `TranslationResourceReader`, moved from `@object-ui/app-shell`'s internal `utils/flowsBundle`) and two keys to every pack: `detail.stageChangeStartsHeading`, `detail.stageChangeStartsApproval`. `@object-ui/plugin-grid`'s `StateChangeConfirm` gains an optional `ask`. Nothing existing is removed or re-typed. -Metadata-protocol: none -Skills-docs: none — no skill under `skills/**` teaches the console's stage confirms; `content/docs/frontend/plugins/plugin-grid.mdx` names the list in this change. - -When a stage move would start a flow, its confirm now says so (objectstack#35928, ruling record 7073655354): - -- The list cell's state-machine confirm and the record page's stage confirm (the path's press and the header's stage menu) keep their sentence and add, under it, 「保存后将启动以下流程:」 ("Saving this change starts these flows:") and each flow by its label in the reader's language. A flow that starts an approval is marked 「发起审批」 ("starts an approval"). -- Both confirms ask one read, `POST /api/v1/automation/_record-starts`, through one shared hook, so the two surfaces cannot disagree. The server decides which flows start; nothing is judged in the browser. -- A move that starts nothing shows no list, and a read that fails or is refused leaves the confirm exactly as it was. -- A flow label is translated as the flow runner translates it: the app's `flows` translations, read through `activeFlowsBundle`, which now lives in `@object-ui/i18n` so the confirms' packages can read it; the console's flow runner and designer import it from there. diff --git a/.changeset/35931-escalation-clock-skill.md b/.changeset/35931-escalation-clock-skill.md deleted file mode 100644 index a5c14e4a911..00000000000 --- a/.changeset/35931-escalation-clock-skill.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -Clause-②: no -Metadata-protocol: none - -The automation skill teaches the approval escalation clock: `escalation.clock: 'working_time'` counts `timeoutHours` as working hours on a working calendar (the `escalation.calendar` code, else the organization's default, else refused), a calendar that cannot count the deadline holds the escalation and shows why, and `calendar` without `clock: 'working_time'` is the lint error `approval-escalation-calendar-without-working-time`. The row no longer says the platform ships no business-hours calendar. The data skill's hook note calls an hours-table deadline wall-clock hours and points at the approval clock. diff --git a/.changeset/35932-draft-save-keeps-list.md b/.changeset/35932-draft-save-keeps-list.md deleted file mode 100644 index b7d3a4018bf..00000000000 --- a/.changeset/35932-draft-save-keeps-list.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(console): saving a shared view's draft keeps the list on screen, and a second change builds on the first - -Clause-②: no -Metadata-protocol: none - -An admin who saved a draft of a shared view (a footer calculation pick, or a view settings change) saw the list redraw on the published view about half a second later, and the change came back only after Publish. A second change before Publish was then built on the published view, so its draft replaced the first: pick Sum, then Latest, then Publish, and only Latest was kept. - -Every draft save announces itself on the metadata-refresh pulse, so the pending-drafts surfaces re-read, and every mounted metadata provider refetches its loaded types on that pulse. While the refetched view list was on the wire, the route's object scope read as unanswered, so the console dropped the route to its loading skeleton and mounted the list again, on the published view. A type that is refetching over an answer it still holds now counts as answered: the scope stays settled on the views in hand, the route stays mounted, and the list keeps the draft on screen. This holds for every refresh pulse (a publish, a package install, a change noticed in another tab), not only a draft save. On an app with a metadata bundle, the pulse also drops the bundle, and it answers nothing until it is downloaded again; meanwhile the scope's views now come from the bundle that last answered, when it holds every object the route asked for, so the route stays mounted there too. A type the provider drops (an invalidation, an organization switch) still waits for its new answer, and an organization or session switch forgets the last bundle. - -Publish and Discard in view settings now drop the list's local copy of the draft once the saved views have been read again, so the list then shows what is stored. A reader who is not an admin still sees the published view until Publish. No props, exports or locale keys change. diff --git a/.changeset/35933-read-only-package-view-saves.md b/.changeset/35933-read-only-package-view-saves.md deleted file mode 100644 index 46353bb47c4..00000000000 --- a/.changeset/35933-read-only-package-view-saves.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@object-ui/data-objectstack': patch -'@object-ui/app-shell': patch ---- - -fix(ui): a view a read-only package ships offers no footer calculation menu and no Rename - -Clause-②: no -Metadata-protocol: none - -On a list view that ships inside a read-only package (a code or installed package), an admin was offered the footer's calculation menu and the options menu's Rename; the server refuses both saves ("save it into the customization package"), so the pick was taken back with a toast. Neither is offered there now. A shared view the console saved into the customization package, a stored view bound to no package and the reader's own view keep them. - -The view's name cannot tell these apart, since every stored view is named `object.key`; the package the row was served under does. `listViews()` in `@object-ui/data-objectstack` now carries the row's served `_packageId` on both of its arms (the `config`-flattening arm dropped it). The console reads the server's `writable` verdict for that package from the package list it already holds for the session, the one the app bar's Studio entries read. While that list is unread, or when the read fails or does not name the package, the menu stays offered as before and the server's refusal still applies. diff --git a/.changeset/35936-kanban-open-mode.md b/.changeset/35936-kanban-open-mode.md deleted file mode 100644 index c4b44911fae..00000000000 --- a/.changeset/35936-kanban-open-mode.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/console': patch -'@object-ui/i18n': patch ---- - -fix(console): Studio's kanban card "Click to open" offers only Default and "Don't open" - -Clause-②: no -Metadata-protocol: none - -On an object's list the record name opens the full page and the hover icon opens the side panel, so `navigation.mode` `drawer`, `page` and `new_window` parse there and change nothing; only `none` still counts. The kanban card section of Studio's list-view inspector offered all four. It now offers Default (no key) and "Don't open" (`none`). A view that already stores `drawer`, `page` or `new_window` shows that value flagged "(deprecated)" in the select, and picking Default removes the key. Opening such a view writes nothing. The spec is unchanged, and page blocks that carry `navigation` keep every mode. - -The studio catalogue drops the three labels nothing reads any more: `engine.studio.inspector.listView.kanbanCard.mode.drawer`, `.mode.page` and `.mode.newWindow`. diff --git a/.changeset/35939-sso-unmounted-404.md b/.changeset/35939-sso-unmounted-404.md deleted file mode 100644 index a157bfc31d8..00000000000 --- a/.changeset/35939-sso-unmounted-404.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/plugin-auth': patch ---- - -fix(plugin-auth): a kernel without SSO answers 404 again on the SSO discovery endpoints, with no error log - -Clause-②: no -Metadata-protocol: none - -Since SSO discovery began connecting only to addresses that are public at connect time, a kernel that does not mount SSO (the default without `OS_SSO_ENABLED` or `plugins.sso`) answered `POST /sso/register`, `/sign-in/sso` and `/sso/callback/*` with `503 SERVICE_UNAVAILABLE` ("SSO is unavailable: this server cannot judge its reads of an identity provider") and logged one error line per request. The discovery scope opened on the path alone, while the adapter observer it requires is mounted only with SSO. - -The scope now opens only when the built auth instance mounts the vendor's `sso` plugin, read off the composed plugin list rather than the configuration re-read at request time. A kernel without SSO answers the vendor's own 404 on those paths and logs nothing. A kernel that mounts SSO is judged exactly as before: provider reads go through the connect-time guard, and a context whose adapter is not observed is still refused `503` before the endpoint runs. No configuration, export or response shape changes. diff --git a/.changeset/35940-master-detail-form-new-lines.md b/.changeset/35940-master-detail-form-new-lines.md deleted file mode 100644 index fbb21100687..00000000000 --- a/.changeset/35940-master-detail-form-new-lines.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@object-ui/plugin-form': patch -'@object-ui/fields': patch -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -fix(form): a new detail line on a master-detail create / edit form starts on the child's defaults, does not read red before a save is tried, and a line added and left untouched is skipped with a notice on the form and the record page - -Clause-②: no -Metadata-protocol: none - -On a parent object's create or edit form, a line added to a detail table started blank, so a required column with a default (a status that defaults to "Pending") read red at once although saving would store the default. The record page's edit state already started its new lines on their defaults; the form now does the same. - -**New lines on the form.** A new line starts on the child object's static defaults, the values a create form of the child seeds, whether it is added with Add or with Enter on the last line. A default the server resolves at insert (`NOW()`, a CEL expression) is left to the server. A new line's empty required cell reads red once a save of the form was tried, not the moment the line appears; a stored line is flagged as before. A line added with Add and then applied from the row editor is the user's input and is saved. - -**A line added and left untouched** (maintainer ruling, card comment 7056413638: 「跳过并提示未保存」). A line Add started on its defaults that nobody edited holds only those defaults. It is still not written, and the save now says so: once the save lands, the form and the record page's edit state show "1 blank line was not saved" (or "N blank lines were not saved"), also when the host supplies its own save confirmation. Such a line never reads red, before or after a refused save, since there is nothing in it to fix; once the user edits any of its cells it is input, saved and flagged like any other new line. On an edit form that stays open after saving, the skipped line leaves with the save, as it does on the record page. A line the user typed into and then cleared is blank and is skipped as before, without the notice. The pack key is `form.lineItems.untouchedNotSaved`, in every built-in locale. - -**Seeding context.** The defaults on both the form and the record page's edit state are now read with the session facts a create form uses: a child field defaulted to the acting user starts on that user, and the organization's currency and time zone seed the fields they seed on a create form. With no known user that field starts empty and the server fills it, as before. diff --git a/.changeset/35941-owner-once-body.md b/.changeset/35941-owner-once-body.md deleted file mode 100644 index 0a00be20e16..00000000000 --- a/.changeset/35941-owner-once-body.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@object-ui/plugin-detail': patch ---- - -fix(plugin-detail): the record page names the owner once when a details section already shows the owner field - -Clause-②: no -Metadata-protocol: none - -On the default record page, the meta line at the foot of the details column (created · updated · owner · id) always named the record's owner, and a details section usually showed the `owner_id` field as well: in a declared field group, in the "Other" group that collects fields no declared group takes, or in the derived section of an object that declares no groups. So the owner was shown twice. The meta line already left the owner out when the highlight strip showed it, and the default page no longer draws a strip, so that rule never applied. - -The meta line now also leaves the owner out when a details section of the page's own record draws the `owner_id` row. The owner then shows once, as the section's field, where it can also be changed. The sections report the rows they actually draw, so the owner stays on the meta line whenever no section draws it: the field is hidden, the reader may not read it, a `visibleWhen` hides it or its group, or its section is collapsed. When a collapsed section holding it is opened, the owner moves from the meta line to that section. The field groups are drawn as declared. The highlight strip rule is unchanged. - -This changes the laid-out default record page, the one `RecordPageColumns` draws. A default page whose tab strip cannot be laid out keeps the strip-only rule. No metadata key, value or default changes, and no prop, export or locale key is added. diff --git a/.changeset/35943-record-page-strip-descriptions.md b/.changeset/35943-record-page-strip-descriptions.md deleted file mode 100644 index 393313386e1..00000000000 --- a/.changeset/35943-record-page-strip-descriptions.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -'@objectstack/spec': patch -'@objectstack/platform-objects': patch -'@objectstack/lint': patch -'@object-ui/plugin-detail': patch -'@object-ui/i18n': patch -'@object-ui/app-shell': patch -'@object-ui/types': patch ---- - -fix: descriptions and help text no longer say the default record page draws a key-field strip or a stage path - -Clause-②: no -Metadata-protocol: none - -The default record page draws no key-field strip and no stage path: the stage is the status tag beside the record name. These texts said otherwise and now say what each key drives: - -- `@objectstack/spec`: the `highlightFields` describe ("Drives default list and related-list columns, cards, hover cards, previews and the record picker; the default record page draws no strip from it") and its Studio help text. The `stageField` and `RECORD_HIGHLIGHTS_MAX` doc comments say the header's status tag reads the stage and the count cuts only a strip a page places in its `highlights` slot. The upgrade-guide entry `field-group-shadowed-six-highlights` no longer tells authors to move highlights: the warning now judges the record title alone, and no action is owed. -- `@objectstack/platform-objects`: the `highlightFields` help text in every metadata-form locale. -- `@objectstack/lint`: the `os explain` text of `object-field-ref-unknown` and `semantic-role-field-unprovisioned` names the hover card and the record picker in place of the strip. -- `@object-ui/plugin-detail`: the `record:details` `hideFields` description no longer says the default page fills it. The key is still accepted. -- `@object-ui/i18n`: Studio's lifecycle-field help (`stageField`, and its "None" choice) talks about the status tag, not a progress bar. -- `@object-ui/types`: the page `highlights` slot doc says it places a strip the synthesized default does not draw. -- `@object-ui/app-shell`: on a phone the default record page no longer hands the synthesizer a highlight list it never read. The page looks the same, and the subtitle under the record name is unchanged. diff --git a/.changeset/35946-fixed-read-leaf-engine-member.md b/.changeset/35946-fixed-read-leaf-engine-member.md deleted file mode 100644 index 08bc0e02835..00000000000 --- a/.changeset/35946-fixed-read-leaf-engine-member.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@objectstack/spec': patch -'@objectstack/objectql': patch -'@objectstack/service-analytics': patch ---- - -feat: the analytics plugin asks the engine which share-grant scopes its native SQL path may compile (ADR-0155 D4) - -Clause-②: yes -Metadata-protocol: none - -- **New optional contract member** (`@objectstack/spec`). `IObjectQLEngine.fixedReadLeafClassOf(leaf)` answers which of ADR-0155 D4's two classes a `SharedRecordIds` leaf falls in on an engine: `'other-datasource'` (the leaf's object is bound to another datasource than `sys_record_share`) or `'registration-by-name'` (a middleware or a `beforeFind` / `afterFind` hook is registered for `sys_record_share` by name), with what names it. It answers `null` when neither class applies, and throws `TypeError` on a value that is not a fixed-read leaf. The answer type is the new `EngineFixedReadLeafClass`. The member is optional, and because "neither" is `null`, `engine.fixedReadLeafClassOf?.(leaf)` is a caller's whole answer: a class, `null`, or `undefined` from an engine without the member, which cannot say. -- **The engine implements it** (`@objectstack/objectql`). `ObjectQL.fixedReadLeafClassOf` returns the seam's own recognition, `fixedReadLeafClassOfEngine(engine, leaf)`, with "neither" spelled `null`. It reads only datasource bindings, middlewares and hooks. It calls no driver and logs nothing. -- **The analytics plugin wires it** (`@objectstack/service-analytics`). `AnalyticsServicePlugin` now fills `AnalyticsServiceConfig.fixedReadLeafClassOf` from the `"data"` engine on each call. When the engine answers `null` (neither class), the native SQL path compiles a read scope that carries the leaf. When the engine names a class, throws, answers anything but `null`, or has no such member, the query goes to the ObjectQL engine path, as before. An engine without the member is reported once at `warn`. Neither class is restated in analytics. - -Nothing a metadata author writes changes. On a host that runs `ObjectQLPlugin`'s engine as `"data"`, a sharing-scoped analytics query outside both classes keeps the native SQL path once the producer starts writing the leaf (ADR-0155 step 6). diff --git a/.changeset/35952-oracle-raw-share-grant-key.md b/.changeset/35952-oracle-raw-share-grant-key.md deleted file mode 100644 index c76ed7a147a..00000000000 --- a/.changeset/35952-oracle-raw-share-grant-key.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@objectstack/driver-sql': patch ---- - -feat(driver-sql): on Oracle the share-grant subquery converts `record_id` the way the id list binds a `RAW(16)` uuid key (ADR-0155 O2) - -Clause-②: yes -Metadata-protocol: none - -No visible change on its own: nothing writes a `SharedRecordIds` leaf yet. The sharing plugin starts writing it at ADR-0155's last step, and this makes that step answer the right rows on Oracle tables keyed by a `RAW(16)` uuid (`SYS_GUID()` keys). - -- **Oracle, a `RAW(16)` uuid key.** The compiled subquery `id IN (SELECT record_id FROM sys_record_share WHERE …)` now projects the id list's own conversion when the compared column is a `RAW(16)` uuid column, the same catalog reading that makes the list bind its members as `HEXTORAW(?)`: `HEXTORAW(CASE WHEN REGEXP_LIKE(record_id, UUID_PATTERN, 'i') THEN REPLACE(record_id, '-', '') ELSE 'not-a-uuid' END)`. A grant in upper, lower or mixed case, dashed (8-4-4-4-12) or as 32 undashed digits, names the same row it names in the list. `UUID_PATTERN` is the list's own uuid-text check, written for Oracle from the same constant. Before, Oracle compared the column as its upper-case hex text: the subquery matched no row and its negation every row, with no error. -- **A grant the id list refuses fails the statement.** The list refuses a value that is not uuid text before any statement (`INVALID_FILTER` / 400). Every such stored grant fails the subquery's statement instead, with `DATABASE_ERROR` / 500 (ORA-01465), on the read and on its negation: hex of another length (31 or 33 digits, `0123`), 32 digits with dashes out of place, a grant of dashes only, a blank or a padded uuid, a braced uuid, or text that is not hex. None of them answers a row, and none empties a negation. -- **Unchanged.** Any other Oracle key compiles exactly as before; a `NUMBER` key converts each grant as it converts the list's text binds (measured: the same rows, and the same ORA-01722 for a grant that is not a number). Every other dialect compiles exactly as before. diff --git a/.changeset/35953-sla-deadline-error-guard.md b/.changeset/35953-sla-deadline-error-guard.md deleted file mode 100644 index d6e6805783d..00000000000 --- a/.changeset/35953-sla-deadline-error-guard.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/plugin-approvals': patch ---- - -fix(approvals): a working-time SLA deadline whose calendar read errors no longer fails the request open or the whole list - -Clause-②: no -Metadata-protocol: none - -When an approval step's escalation counts `working_time` and the working calendar read itself fails (an error that is not a calendar refusal, such as a driver error reading `sys_work_calendar`), opening the request threw after the `sys_approval_request` row was written and its approvers were told, so the approval node failed its flow run. The same error failed every list read and single read that included the row, and so every decision that loads it. - -That row is now served with no deadline and the error is logged as a warning; the open returns the request, the run suspends as usual, and the other rows of a list keep their deadlines. A calendar refusal is still served as `sla_due_refusal`, the deadline never falls back to wall-clock hours, and the escalation sweep still skips the row and asks the calendar again on its next pass. The served request shape is unchanged. diff --git a/.changeset/35955-header-menu-hide-draft.md b/.changeset/35955-header-menu-hide-draft.md deleted file mode 100644 index 90d08004a01..00000000000 --- a/.changeset/35955-header-menu-hide-draft.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@object-ui/types': patch -'@object-ui/components': patch -'@object-ui/plugin-grid': patch -'@object-ui/plugin-list': patch ---- - -fix(console): Hide column in the column-header menu is a list draft, like the eye in View settings - -Clause-②: yes (widening) — one new optional runtime slot `DataTableSchema.onColumnHide(columnKey)` (refused by name on the zod mirror, like `onColumnsReorder`) and one new optional `ObjectGrid` prop `onColumnHide(field)`; nothing removed or renamed -Metadata-protocol: none - -On a Console object list, picking "Hide column" in a column header's menu hid the column inside the table only: nothing above the table heard of it, so the list drew neither Discard nor Save and only a reload brought the column back. The same choice made with the eye in View settings was already a draft. - -The table now reports the hidden column to its host (`DataTableSchema.onColumnHide`, supplied by `ObjectGrid` from its new `onColumnHide` prop), and `ListView` writes it through the same writer as the hide-fields eye: the host hears it on `onHiddenFieldsChange` (the Console holds it in the list's draft, so Discard brings the column back and Save keeps it hidden), and a column the reader added leaves their added fields, as unticking it does. A table with no host handler hides the column in its own state, as before. diff --git a/.changeset/35955-list-changes-are-drafts.md b/.changeset/35955-list-changes-are-drafts.md deleted file mode 100644 index 7d912a2bd1f..00000000000 --- a/.changeset/35955-list-changes-are-drafts.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch -'@object-ui/plugin-list': patch ---- - -feat(console): a change on a list is a draft, with Discard and Save - -Clause-②: yes (widening) — new `console.objectView.draft.*` keys in every `@object-ui/i18n` locale pack (`discard`, `discardTitle`, `save`, `heading`, `partSeparator`, `saveToView`, `saveAsMyView`, `copyName`, `saved`); nothing removed or renamed -Metadata-protocol: none - -On a Console object list, a header sort, a filter change, grouping, the search, Hide Fields, an added field and a column drag apply at once and are now a draft: they are kept nowhere. They used to be saved at once into the reader's own list preference (`sys_user_preference`, key `ui.list.<object>`) and followed them to every device. - -- While the list holds a draft, **Discard** and **Save** sit at the end of the condition row, where the 「Personalized · Reset to view」 marker was. On a narrow list or a phone they fold into one **Save** whose menu also holds Discard. -- **Save** names what is unsaved and offers **Save to this view** (on a view of the reader's own) and **Save as my view**, which asks a name first (the view's name with "copy"), saves the draft as a new view of the reader's own and opens it. Either says "Saved", and the buttons go while the conditions stay. -- **Discard** puts the list back as its view declares it and removes the list's `uf_*` parameters from the address bar. -- Where the reader may not save (no personal view can be created or updated), both faces are Discard alone. -- The draft survives opening a record (as a page or in the side panel) and coming back. Opening another view or object, or reloading the list's page, drops it. A reload of another page does not drop the state an in-app link to a list carries. -- Column widths, the row height and the views' order are not a draft. They are still remembered for the reader in the same `ui.list.<object>` row. - -Upgrade note: a sort, filter, search, column order, hidden column or added column that an earlier Console stored in a reader's `ui.list.<object>` row no longer applies; the list opens as its view declares it. Nothing stored is deleted by this change; a later column-width change rewrites that row's column state with the widths alone. A reader who wants such a list kept saves it as a view of their own. - -Saving into a shared view, and saving the Display panel's layout and row colour, are not offered yet. `@object-ui/plugin-list` changes only its README, which now describes added fields as part of the draft. No metadata key, value or default changes. diff --git a/.changeset/35955-list-layout-in-browser.md b/.changeset/35955-list-layout-in-browser.md deleted file mode 100644 index 71d25f08123..00000000000 --- a/.changeset/35955-list-layout-in-browser.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/data-objectstack': patch -'@object-ui/react': patch -'@objectstack/platform-objects': patch ---- - -feat(console): a list's column widths, row height and tab order are kept in this browser only - -Clause-②: no -Metadata-protocol: none - -On a Console object list, the column widths a reader drags, the row height they pick and the order they give the view tabs are now kept in their own browser only, per signed-in user and object (localStorage `list-layout:<user id>:<object>`). Nothing is sent to the server: the Console no longer reads or writes the per-user list preference row `sys_user_preference` `ui.list.<object>`, and its boot read of the reader's preferences no longer asks for that key family. A list opens at once, without waiting for that read. - -- Another browser or device opens the list on its view's own widths, row height and tab order until the reader changes them there. -- Signing out clears these entries with the rest of this browser's Console state, as before. -- With nobody signed in, nothing is kept. -- The record page's "show empty fields" choice (`ui.record.<object>`) is unchanged and still follows the reader. - -Upgrade note: what an earlier Console kept for a reader's lists is not carried over. The `ui.list.<object>` rows are no longer read, so every reader's lists open on their views' own widths, row height and tab order until they change them again. This browser's old copies (`list-state:*`, `list-filters:*` and `viewOrder:*` in localStorage) are removed on the first list the Console opens. The server rows stay where they are, unread; leaving them does no harm. - -`@object-ui/data-objectstack`, `@object-ui/react` and `@objectstack/platform-objects` change only comments and a README example that named the retired key. No metadata key, value or default changes. diff --git a/.changeset/35955-migrate-list-preferences.md b/.changeset/35955-migrate-list-preferences.md deleted file mode 100644 index d67e4da5a9a..00000000000 --- a/.changeset/35955-migrate-list-preferences.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@objectstack/cli': patch ---- - -feat(cli): `os migrate list-preferences` deletes the per-reader list preference rows the Console no longer reads - -Clause-②: no -Metadata-protocol: none - -The Console no longer reads or writes the per-reader list preference rows an earlier Console stored in `sys_user_preference` under `ui.list.<object>` (column widths, row height, view-tab order and, before that, sorts, filters and columns). The rows are not carried anywhere. This new operator command deletes them. - -- `os migrate list-preferences` is a dry run by default: it counts the rows, readers and organizations, and per key the rows and readers holding it. It never prints a value and writes no row, table or file. -- `--apply` deletes, and only with `--export <path>`: every row the run deletes, as stored, is written to an owner-only file (`0600`, never overwriting one) and read back before the first delete. Each delete is the engine's by-id delete in the system context, on every organization's rows. -- After the deletes the family is read again; any row still there exits `1`. A second run finds nothing and exits `0`. -- A row belongs to the family only when its key starts with `ui.list.`, compared exactly. `ui.record.<object>` and every other preference key are untouched. -- Nothing on a boot, upgrade or migrate path runs it. - -Upgrade note: once the upgraded Console is serving, run `os migrate list-preferences` once, a dry run first and then `--apply --export <path>`. Left in place the rows are unread, so it is cleanup, not a gate. diff --git a/.changeset/35955-save-into-shared-view.md b/.changeset/35955-save-into-shared-view.md deleted file mode 100644 index ac0a7d4fbba..00000000000 --- a/.changeset/35955-save-into-shared-view.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch -'@object-ui/plugin-list': patch ---- - -feat(console): Save to this view on a shared view asks once, then saves and publishes it; the layout and row colour are part of a list's draft - -Clause-②: yes (widening) — new `console.objectView.draft.*` keys in every `@object-ui/i18n` locale pack (`saveToViewConfirmTitle`, `saveToViewConfirm`, `saveToViewConfirmButton`, `savedForEveryone`, `pendingDraft`); `@object-ui/plugin-list` `ListView` gains the optional host prop `onRowColorChange` and two optional `viewDefaults` members, `viewType` and `rowColor`; nothing removed or renamed -Metadata-protocol: none - -On a Console object list, **Save to this view** is now offered on a shared view to a reader who may edit it (an administrator, on a stored view whose package takes saves). It asks once ("everyone who uses this view will see these changes"), then saves the view and publishes it in the same step, so other readers see it on their next read, and says "Saved, visible to everyone". The options menu's Save does the same. - -- When the view already has unpublished changes (a draft saved from the view settings, by anyone), nothing is written: the Console says so and points to the view settings to publish or discard that draft first. The draft write is sent with the first-write pin (`If-None-Match: *`), so the server refuses it when a draft is pending; that draft is never published on someone else's behalf. A publish the server refuses discards the draft the save wrote. -- The reader's row height and column widths are never written into a shared view: it keeps its own. -- The Display panel's layout and row colour are part of the list's draft: they survive opening a record and coming back, and both Save to this view and Save as my view keep them (a layout switch retypes the saved view). Discard puts back the view's own. - -`@object-ui/plugin-list`: `ListView` reports a pick in its row colour panel through the new optional host prop `onRowColorChange` (the rule in force, or `null` for none), never at mount or for a reset. A host that lays the reader's layout or row colour into `schema` passes the view's own in `viewDefaults.viewType` / `viewDefaults.rowColor`, and the `layout` / `rowColor` parts and the Display count are judged against them; each is read only when its key is present. Without them nothing changes. - -No metadata key, value or default changes. The view settings panel and the footer calculation still save a shared view as a draft that the view settings publish. diff --git a/.changeset/35956-required-fill-in-in-place.md b/.changeset/35956-required-fill-in-in-place.md deleted file mode 100644 index a826a78a13b..00000000000 --- a/.changeset/35956-required-fill-in-in-place.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -'@object-ui/fields': patch -'@object-ui/plugin-kanban': patch -'@object-ui/plugin-grid': patch -'@object-ui/plugin-detail': patch -'@object-ui/i18n': patch ---- - -feat(list,detail): a change that makes other fields required asks for them in place — the kanban drop's fill-in, now shared by the list cell and the record page - -Clause-②: yes (widening) — `@object-ui/fields` exports `collectRequiredWhenPromptFields`, `RequiredFieldsDialog` and their types (moved from `@object-ui/plugin-kanban`, which never exported them) and the new `requiredWhenPromptReads`; nothing removed or renamed -Metadata-protocol: none - -When a value about to be written makes another field's `requiredWhen` true while that field is still empty, the write is held and one dialog asks for the missing values: - -- **Where:** a list cell in the select-first grid every `ListView` draws, the record page's inline Save, and the kanban drop (as before). -- **What it shows:** the record's name, the change that set it off (read-only), and one row per field to fill, with the editors the record form uses. A value typed there that makes one more field required adds that field; Save waits for it. -- **Save** writes the change and the typed values as ONE update. **Cancel** writes nothing: the list cell keeps its value; on the record page the edit session and its draft stay. -- **A refusal of that update stays in the dialog:** under the field it names, as a new row for another field the reader can fill, or at the dialog's foot. -- **Not asked for**, and written and refused as before: a field that already has a value, is hidden or read-only, that the reader may not write, or that has no in-place editor (a file, rich text, a formula). The record drawer's per-field save does not ask either. - -The pre-evaluation is the one the kanban drop already used (`resolveFieldRuleState`, the evaluator the form and the server share, judged as the engine's transition gate), generalised from one key to any set of changed keys. diff --git a/.changeset/35956-stage-menu-shared-fill-in.md b/.changeset/35956-stage-menu-shared-fill-in.md deleted file mode 100644 index 7becd77239a..00000000000 --- a/.changeset/35956-stage-menu-shared-fill-in.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@object-ui/fields': patch -'@object-ui/plugin-detail': patch ---- - -feat(detail): the record header's stage menu asks for the fields a stage needs through the shared fill-in dialog - -Clause-②: no -Metadata-protocol: none - -The stage menu beside the record's name now opens the same dialog the list cell, the record page's inline Save and the kanban drop open (`RequiredFieldsDialog`, with `collectRequiredWhenPromptFields` judging which fields to ask for), and its own copy of the pre-check and field form is gone: - -- **What it shows:** the record's name and the move (「阶段:赢单」, read-only), then the fields the stage makes required while they are still empty. A stage that needs nothing opens the same dialog as the move's confirmation, with Move focused so Enter confirms. -- **Move** writes the stage and the typed values as ONE update; **Cancel** writes nothing. A value typed there that makes one more field required adds that field, and Move waits for it. -- **A refusal stays in the dialog** and the stage does not move: under the field it names, as a new row for another field the reader can fill, or at the foot (someone else changed the record, which is then re-read; a permission or other refusal as the stage line it was before). -- **Now not asked for, and refused as before:** a field with no in-place editor (rich text, a file, a formula). The menu's old form did not ask whether a field has one; the shared pre-check never offers such a field. - -`record:path`'s stage press keeps its plain confirmation. diff --git a/.changeset/35960-oracle-raw-prime-composed-scope.md b/.changeset/35960-oracle-raw-prime-composed-scope.md deleted file mode 100644 index ffb3177edb1..00000000000 --- a/.changeset/35960-oracle-raw-prime-composed-scope.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/driver-sql': patch ---- - -fix(driver-sql): on Oracle, a read scoped by a parent with a RAW(16) uuid key answers its rows on a driver that has not read the parent yet - -Clause-②: no -Metadata-protocol: none - -A child read whose composed `ReadableIds` scope names a federated parent with a `RAW(16)` uuid key, such as the read plugin-security derives for a `controlled_by_parent` object, answered no row on Oracle, and its negation answered every row, with no error. It recovered only once something had read the parent on that driver. The driver reads a federated table's `RAW(16)` columns from the Oracle catalog before it binds a comparand, and it read them for the door's own object only, so the parent's ids bound as text and Oracle compared them with the column's upper-case hex. - -Each door that compiles a filter (`find`, `findOne`, `count`, `distinct`, `aggregate`, its measure filters and its joined parents, `updateMany`, `deleteMany`, `findWithWindowFunctions` and `analyzeQuery`) now also reads the `RAW(16)` columns of every object a composed `ReadableIds` scope in that filter names, at any depth. The parent's ids bind through `HEXTORAW`, for a list of ids and for the share-grant subquery alike. Nothing changes for any other dialect. diff --git a/.changeset/35962-state-dot-triplet-scan.md b/.changeset/35962-state-dot-triplet-scan.md deleted file mode 100644 index 16fe560727e..00000000000 --- a/.changeset/35962-state-dot-triplet-scan.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/components': patch ---- - -fix(ui): the state-machine chip's dot shows the theme grey when its option has no colour - -Clause-②: no -Metadata-protocol: none - -- In the metadata viewer's state-machine panel, a state whose picklist option declares no `color` showed an empty gap instead of its dot. The fallback read a bare `var(--muted-foreground)`, which holds an HSL triplet rather than a colour, so the browser dropped the declaration. The fallback dot now paints with the `bg-muted-foreground` utility, so it follows the light and dark themes, and a declared option colour reaches the dot as a CSS custom property that a static utility consumes, as the styling rules require. diff --git a/.changeset/35964-catalog-working-calendar.md b/.changeset/35964-catalog-working-calendar.md deleted file mode 100644 index 2995416da6c..00000000000 --- a/.changeset/35964-catalog-working-calendar.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -Clause-②: no -Metadata-protocol: none - -The platform catalog (`objectstack-project/references/platform-catalog.md`) now lists working calendars as shipped. `sys_work_calendar` and `sys_work_calendar_exception` have rows beside `sys_exchange_rate`: each organization keeps its calendars and holidays in Setup, and an approval's `escalation.clock: 'working_time'` reads them. An app no longer declares its own calendar or holiday object. The Planned section keeps only what is still missing: no formula reads a calendar yet. diff --git a/.changeset/35970-catalog-units.md b/.changeset/35970-catalog-units.md deleted file mode 100644 index ef0546af1a4..00000000000 --- a/.changeset/35970-catalog-units.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -Clause-②: no -Metadata-protocol: none - -The platform catalog (`objectstack-project/references/platform-catalog.md`) now lists units of measure as shipped. `sys_unit` has a row beside `sys_exchange_rate`, and the row names the declaration that uses it: `unitConfig` on a `number` field (`unitMode: 'fixed'` with `unit`, or `'record'` with `unitField`) or on a `text` field that holds a unit code (`unitMode: 'code'`). A stored code is a standard UN/ECE Rec 20 code or one of the organization's own units, added in Setup, so an app no longer builds a unit table or a unit picklist. The Planned row narrows to what is still missing: showing the unit beside a quantity, totals per unit and conversion. The page no longer describes an interim unit field, and `objectstack-data` eval 22 expects the shipped answer. diff --git a/.changeset/35974-read-only-package-view-panel.md b/.changeset/35974-read-only-package-view-panel.md deleted file mode 100644 index 35f61ce3aca..00000000000 --- a/.changeset/35974-read-only-package-view-panel.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/console': patch -'@object-ui/plugin-view': patch -'@object-ui/i18n': patch ---- - -fix(ui): a view a read-only package ships hides only Delete in Manage views and opens its view panel read-only - -Clause-②: yes (widening) -Metadata-protocol: none - -This applies to a list view that ships inside a read-only package (a code or installed package). The console no longer offers that view the two writes the server refuses: - -- Manage views hides Delete on its row. -- The row's configuration entry reads "View config". It opens the admin's view panel read-only: the configuration is shown read-only, no edit reaches the list, and there is nothing to save. The panel has no Save, no draft bar to publish or discard, and only Close. - -Rename, pin and set as default stay offered. They land in that package's customization (the console creates it on first use), so no lock icon is drawn on the row. The list's options menu offers Rename on such a view again. A shared view the console saved into the customization package, and the reader's own view, are unchanged. The toolbar's personal list changes keep saving to the reader's preferences. - -`@object-ui/plugin-view`: `ViewTabItem` gains an optional `definitionReadonly` field. When it is `true`, `ManageViewsDialog` hides Delete and labels the configuration entry "View config" (`view.showViewConfig`, a new key in every locale of `@object-ui/i18n`). Rename, pin, set as default and the configuration entry stay. `readonly` still wins when both are set. Without the field a row behaves as before. `ViewTabBar` does not read it. - -The read-only verdict is the one the footer calculation menu already uses. The console takes the package the view row was served under and reads the server's `writable` verdict for it from the package list it holds for the session. While that list is unread, or when the read fails or does not name the package, everything stays offered as before and the server's refusal still applies. The view panel reads the same answer that drew the Manage views row, so a row's "View config" never opens an editable panel. If the answer arrives after the admin has started editing, the panel turns read-only and discards the edit: the list's preview goes back to the stored view. diff --git a/.changeset/35978-key-fields-no-strip-preview.md b/.changeset/35978-key-fields-no-strip-preview.md deleted file mode 100644 index 3e2c9f3bb60..00000000000 --- a/.changeset/35978-key-fields-no-strip-preview.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/console': patch -'@object-ui/i18n': patch ---- - -fix(studio): the key-fields editor no longer previews a record-page strip - -Clause-②: no -Metadata-protocol: none - -The default record page draws no key-field strip, so Studio's object settings -stop drawing a "Highlight strip preview" under the `highlightFields` list. The -ordered rows stay: order still decides which fields each surface takes. The -`engine.studio.settings.highlightPreview` catalogue key leaves the studio -namespace (English and Chinese). diff --git a/.changeset/35979-flow-embed-labels.md b/.changeset/35979-flow-embed-labels.md deleted file mode 100644 index 7a968366dbb..00000000000 --- a/.changeset/35979-flow-embed-labels.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@object-ui/components': patch -'@object-ui/i18n': patch ---- - -fix(components): a docs `type: flow` metadata embed names the flow and its approval steps in the reader's language - -Clause-②: yes (widening) -Metadata-protocol: none - -A package can translate a flow's label (`flows.<flow>.label`) and an approval step's label (`flows.<flow>.approvals.<node_id>.label`). The flow runner and the Studio flow designer already showed both, but the docs viewer's `type: flow` embed (`element:metadata_viewer`) drew the authored text, so a zh-CN reader of a manual saw the English flow name and step names. The embed now reads the same bundle, through the same resolution, in the reader's language, and falls back to the authored text where the bundle carries no key. A decision's branch list names the approval step a branch leads to by the same translated label. - -The spec has no key yet for a start, decision, notify or end node's label, so those steps still show the authored text. - -`@object-ui/i18n` has new public exports for the flow-label resolution (`flowLabelTranslations`, `useFlowLabelTranslations` and the `FlowLabelTranslations` type), moved out of the Studio flow designer and built on the `activeFlowsBundle` reader that package already exports, so the runner, the designer and the docs viewer share one reader of the `flows` group. diff --git a/.changeset/35979-flow-node-label-key.md b/.changeset/35979-flow-node-label-key.md deleted file mode 100644 index dc6f75efaf3..00000000000 --- a/.changeset/35979-flow-node-label-key.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/lint': minor -'@objectstack/cli': minor -'@object-ui/i18n': minor -'@object-ui/components': patch ---- - -feat(spec): every step a flow drawing shows can be translated, under `flows.<flow>.nodes.<node_id>.label` - -Clause-②: yes (widening: a new translation key `flows.<flow>.nodes.<node_id>.label`; the new exports `FLOW_TECHNICAL_NODE_TYPES` and `isFlowTechnicalNodeType` from `@objectstack/spec/automation`; and `@object-ui/i18n`'s exported `FlowLabelTranslations` type gains the member `screenTitle`, and its `stepLabel` parameter accepts a `config`) -Metadata-protocol: added -Skills-docs: follow-up #36401 - -A package can now translate the label of any flow step, not only a screen's heading and an approval step's label. A manual that embeds a flow (a `type: flow` metadata embed) lists its steps by label, and until now a start, decision, notify or end step had nowhere to put a translation, so a zh-CN reader saw those steps in English beside translated approval steps. - -- **The key.** `flows.<flow>.nodes.<node_id>.label`, keyed by the node's `id`, at any depth. It overlays the node's own `label` and is plain text. A `screen` keeps its `screens.<node_id>.title` and an `approval` its `approvals.<node_id>.label`, so one string keeps one key: `objectstack validate` points a `nodes` key over either at that key, and points a `screens` or `approvals` key over any other node at `nodes.<node_id>.label`. A key over a node the flow does not declare is refused. `nodes` was an unknown-key hint that suggested `screens`; it is now its own group. -- **Start and end steps are translated like any other.** Their labels are the author's words and often name an outcome or a trigger ("Approved", "On Task Created"), so nothing substitutes words of its own for them. -- **Missing translations are reported.** `os lint` and `os i18n check` (`i18n/missing-flow`) now ask for the label of every top-level step the embed draws at its default `detail: business` altitude, except screens and approvals, which they already asked for, and of a folded technical step where a drawn decision's branch list names it as the step the branch leads to (a decision whose branch runs a `script` first). `os i18n extract` scaffolds the keys. An app that ships translated locales gets new findings for its flows until it translates them. -- **The drawings read it.** The docs viewer's `type: flow` embed (`element:metadata_viewer`) and the Studio flow designer's canvas, nested region nodes included, now name each step by its translation in the reader's language, through the one resolution in `@object-ui/i18n`: `stepLabel` reads `approvals.<node_id>.label` for an approval, `screens.<node_id>.title` for a screen with no `config.title`, and `nodes.<node_id>.label` for any other node. A step the package leaves untranslated keeps its authored label. A decision's branch list names the step a branch leads to the same way. -- **A titled screen is named by its heading in the docs embed.** A screen that authors its own `config.title` shows that heading at run time, translated under `screens.<node_id>.title`, so the embed names it by the heading (translated where the bundle carries it) instead of its canvas label, which has no key. A heading with a `{{ }}` hole cannot be filled in a drawing, so such a screen keeps its authored label. `FlowLabelTranslations` gains `screenTitle` for this read. The Studio canvas keeps a titled screen's authored label. -- **One table for what business altitude hides.** `FLOW_TECHNICAL_NODE_TYPES` (and `isFlowTechnicalNodeType`) in `@objectstack/spec/automation` lists the node types `detail: business` folds away (`script`, `http`, `connector_action`, `assignment`, `get_record`, `create_record`, `update_record`, `delete_record`, `boundary_event`). The docs viewer folds steps by it and the coverage check asks for translations by it, so they agree on which steps a reader sees. diff --git a/.changeset/35980-dialog-surface.md b/.changeset/35980-dialog-surface.md deleted file mode 100644 index 24585a96775..00000000000 --- a/.changeset/35980-dialog-surface.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -'@object-ui/components': patch -'@object-ui/plugin-form': patch -'@object-ui/i18n': patch -'@object-ui/app-shell': patch -'@object-ui/console': patch ---- - -feat(ui): every modal dialog draws one lighter surface, short create and edit dialogs are one narrow column, and a create dialog can stay open for the next record - -Clause-②: yes (widening) -Metadata-protocol: none - -What a user sees: - -- Behind a dialog the page is only slightly dimmed (10% in light mode) and no longer blurred, so it stays readable. The dialog is a white card (the raised grey in dark mode) with a hairline edge and a translucent outer ring, a 12px corner, and anything inside it drawn at the shared 40px control height (`h-10`: inputs, select triggers, default and icon buttons, and any other `h-10` element such as a 40px avatar) one step smaller, 32px from the `sm` breakpoint up; the phone sheet keeps its 44px touch targets. Confirmation dialogs, the required-fields prompt and the record create and edit dialog all share it. -- The create and edit dialog's title is 16px and follows the object's icon, and its padding is 20px. -- A dialog that lays out at most six fields and declares no `columns` (not on the form, not on any section) draws one field per row in the narrow `lg` size (672px); six is the maintainer's choice (ruling of record 7061696632 on objectstack-ai/objectstack#35980). This reverses the at-least-two-columns default such a dialog drew before. Seven fields or more, any declared `columns`, an authored `modalSize` or a maximized dialog lay out as before. -- The console's list 「New」 dialog (and a related list's child create) has a 「Create more」 switch. With it on, a save keeps the dialog open on an empty form with focus on the first field, and the list behind refreshes; with it off, a save closes the dialog and opens the new record as before. The switch is remembered per object in this browser. -- ⌘↵ (Ctrl+Enter on other platforms) saves the create and edit dialog, and the Save button shows the keycaps. A master-detail dialog (a record with line items) takes neither the shortcut nor 「Create more」. - -What a developer sees (`Clause-②: yes (widening)`, additions only): - -- `ModalFormSchema.createMore?: boolean` offers the switch on a `create` dialog that a host mounts itself (the `object-form` renderer's `formType: 'modal'` keeps it off), and `ModalFormSchema.onSuccess` receives a second argument, `{ createMore: true }`, when the dialog stays open. A host that passes neither sees no change. -- New i18n key `form.createMore` in every locale. -- The console's global `[role="dialog"]` corner rule and the blurred overlay on dialogs are gone; the look lives in `@object-ui/components` (`src/lib/dialog-surface.ts`), reached from the `dialog` and `alert-dialog` primitives through declared Shadcn patches. The card carries the `dialog-surface` class, which the console's shared floating-surface shadow skips; a host stylesheet that adds its own shadow to `[role="dialog"]` should skip it too. Popovers and the bottom drawer keep their rounded corners by their own containers; side drawers are unchanged. - -Nothing to migrate. diff --git a/.changeset/35981-app-route-boot-frame.md b/.changeset/35981-app-route-boot-frame.md deleted file mode 100644 index 776b416f1b0..00000000000 --- a/.changeset/35981-app-route-boot-frame.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/console': patch ---- - -perf(console): an app route draws the console's frame right after the session read, and the chrome no longer waits for the route's own metadata - -Clause-②: no -Metadata-protocol: none - -Opening an app page by its URL (a reload, a pasted link) showed the full-screen splash until the permission answer, the app list, the admin verdict and the page's own metadata reads had all arrived. On a hosted environment the permission answer alone takes seconds. - -- `LoadingFallback` (the console's boot-gate fallback) and `AppContent`'s readiness gate now draw `ConsoleBootShell` on an `/apps/:app/*` route once the session has answered with a user: the chrome's frame (the sidebar at the width the reader left it, from 768 px up with grey blocks where its head and foot put the app menu, the search, the bell and the account; the top bar on a phone, except on a record page, and on an app's docs pages, which have no sidebar; the route's skeleton in the slot: the shape the chrome draws on that route), with no app name, no navigation entry and nothing to press, because those are what the gates still decide. The splash stays for the session read itself and for every other route. The console's permission scope uses the same fallback. -- `AppContent` mounts the console chrome once the app list, the permission answer, the admin verdict and the deployment flags (`/auth/config`, which the chrome's navigation gates read) are in; the route's own metadata reads no longer hold it on the first paint. The route slot draws the route's skeleton until they land, and a route element whose chunk is still loading draws the same skeleton instead of the full-screen splash inside the chrome. -- The frame and the first route skeleton carry `data-boot-splash`, so readiness waits and the reads deferred to the first paint past the splash wait exactly as before; `data-boot-shell` tells the frame apart. diff --git a/.changeset/35985-object-color-skills.md b/.changeset/35985-object-color-skills.md deleted file mode 100644 index 3ceb5f4a629..00000000000 --- a/.changeset/35985-object-color-skills.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -docs(skills): objects carry a colour from the nine-name palette; an object navigation item draws its object's colour tile - -Clause-②: no -Metadata-protocol: none diff --git a/.changeset/35985-object-color-tile-everywhere.md b/.changeset/35985-object-color-tile-everywhere.md deleted file mode 100644 index d8e2970a041..00000000000 --- a/.changeset/35985-object-color-tile-everywhere.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/components': patch -'@object-ui/react': patch -'@object-ui/fields': patch -'@object-ui/plugin-grid': patch -'@object-ui/plugin-detail': patch ---- - -feat(ui): the object's colour tile replaces its line icon wherever else the object is named - -Clause-②: yes (widening) — `ConsolePageHeaderProps` gains the optional `iconTile`, and `RecordSearchHit` and `RecordHoverCardObjectDef` the optional `color`; nothing removed or renamed -Metadata-protocol: none - -The tile the navigation already draws for an object (a white glyph on the object's palette colour, gray when it has none) now also names the object in: - -- **List and data pages:** the page bar and the view bar's object name in front of the view switcher; the URL data page's header. -- **The record page and the record drawer:** the record row in front of the record's name. -- **The record page's related lists:** each section's title, with the list's own icon else the related object's, on that object's colour. -- **Search:** the command palette's recent records, record hits and object entries; the search results page (group headings and hit cards); the global search block. -- **Home:** a record row in "Recently accessed". -- **References:** a pointer cell in a grid (`referenceVia`) and the record hover card. -- **Studio:** the data pillar's object list and header, and the interfaces pillar's object entries and header. - -`ConsolePageHeader` takes `iconTile`, an icon that draws its own square, drawn as given in every posture in place of `icon`. `RecordSearchHit.color` carries the object's palette name beside `icon`, and `RecordHoverCardObjectDef` names `color` beside `icon`. `ObjectIconTile`'s glyph keeps its size inside a host row that sizes every nested `svg`. diff --git a/.changeset/35985-object-color-tile.md b/.changeset/35985-object-color-tile.md deleted file mode 100644 index 658180fc3b5..00000000000 --- a/.changeset/35985-object-color-tile.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -'@objectstack/spec': minor -'@object-ui/components': minor -'@object-ui/layout': minor -'@object-ui/app-shell': minor -'@object-ui/i18n': minor -'@objectstack/metadata-core': patch -'@objectstack/platform-objects': minor ---- - -feat(spec, ui): an object takes a colour from a fixed palette, and its icon is drawn as a white glyph on a square of that colour - -Clause-②: yes (widening) -Metadata-protocol: added - -- **`ObjectSchema.color` (new, optional).** One name from a closed palette of nine: `gray`, `blue`, `teal`, `green`, `amber`, `orange`, `red`, `pink`, `purple` (exported as `OBJECT_COLORS` and the `ObjectColor` type from `@objectstack/spec/data`). No free colour values: `color: '#ff0000'` is refused, and the refusal lists the nine names. An object without a `color` is drawn in the neutral `gray`. Nothing to migrate: every existing object stays valid and simply has no colour. -- **The AI blueprint carries it too.** `BlueprintObjectSchema.color` is the same leaf (required-but-nullable on `SolutionBlueprintStrictSchema`, like `icon`), and its rule asks the model to colour every object and give each object of one solution a different colour while the palette lasts. A producer of the STRICT shape must now send `color` on each object, `null` when it has none; the lenient shape a stored blueprint is read with keeps it optional. -- **`ObjectIconTile` (new, `@object-ui/components`).** Draws an icon name as a white glyph on a rounded square of a palette colour, in four sizes. Each name has a light-theme and a dark-theme value chosen so the white glyph keeps at least 3:1 contrast. `OBJECT_COLOR_TILE_CLASS` and `objectColorOrDefault` are exported with it. -- **Navigation draws objects as tiles.** In the sidebar, the app-home menu and the phone menu, every entry that opens an object is drawn as that object's tile: the entry's own `icon` when it names one, else the object's, on the object's colour. Dashboards, pages and links keep their line icons. `NavigationRenderer` takes a new `resolveTargetColor` resolver (`NavTargetColorResolver`) beside `resolveTargetIcon`; the console answers it from the object metadata it already holds (`useNavTargetColor`). A host that passes no `resolveTargetColor` gets its object entries as gray tiles where it had line icons. -- **The designer picks icon and colour together.** In the object's settings, the icon picker shows the nine colour swatches, and the trigger and every icon in the grid are previewed as the tile they become. The picker elsewhere (pages, apps, navigation entries) is unchanged: only objects carry a colour. -- The other places that draw an object's icon (list and record headers, search, related-record chips, the designer's object lists) switch to the tile in a follow-up release. - -`@objectstack/metadata-core`: the field-level-security reference table classifies the new `color` key as `keep` (a palette name names no field). - -`@objectstack/platform-objects`: the generic object form's metadata-form packs ship the new `color` row's label and help text in all 10 locales. diff --git a/.changeset/35992-dashboard-filter-arity.md b/.changeset/35992-dashboard-filter-arity.md deleted file mode 100644 index 250fec10374..00000000000 --- a/.changeset/35992-dashboard-filter-arity.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -'@object-ui/types': patch -'@object-ui/core': patch -'@object-ui/data-objectstack': patch -'@object-ui/plugin-dashboard': patch ---- - -fix(dashboard): a global filter bound to a field holding several values is sent as `$contains`, not `=` / `$in` - -Clause-②: yes (widening) -Metadata-protocol: none - -A dashboard `select` / `lookup` global filter bound to a field that holds several values (`multiple: true` on a select, lookup or user field, or a `multiselect` / `checkboxes` / `tags` field) used to be sent as `field = value`, or `$in` for several values. The server refuses both on such a field: the data query answers `400 INVALID_FILTER`, and the dataset query answers `200` with a count of 0, so the dashboard showed no data. The filter is now sent as `{ field: { $contains: value } }`, and several chosen values as `$or` over one `$contains` each, which the server answers with the matching rows. Single-value fields keep `=` / `$in`. - -To know whether the bound field holds several values, the dashboard reads the field's definition before it sends the widget's query: - -- `@object-ui/types`: `DataSource` has a new optional member, `getDataset(name, { callerPackage })`. It reads a dataset definition and resolves `null` when no such dataset is served; a failed read rejects. -- `@object-ui/data-objectstack`: `ObjectStackAdapter.getDataset` reads `GET /api/v1/meta/dataset/:name`, sending the reader's package as `callerPackage`, and caches the answer like the adapter's other metadata reads. -- `@object-ui/core`: `buildWidgetScopedFilter` takes an optional fifth argument, the operators each bound field takes when it is stored as a JSON column, and lowers a `select` / `lookup` filter on such a field to `$contains`. `boundMemberFilterNames` names the active `select` / `lookup` filters that bind a widget. -- `@object-ui/plugin-dashboard`: `DashboardRenderer` reads a dataset-bound widget's base object through `getDataset`, and a `provider: 'object'` widget's own object, through `getObjectSchema`. While that read is in flight, a widget that a `select` / `lookup` filter with a value binds draws a skeleton and sends no query. The operators come from `jsonColumnFilterOperators`, the helper the list quick filter and the filter builder use. - -A data source without `getDataset`, or a dataset the server does not serve, keeps the `=` / `$in` lowering, and the dashboard logs a console warning that names the filter. diff --git a/.changeset/35992-multivalue-filter-surfaces.md b/.changeset/35992-multivalue-filter-surfaces.md deleted file mode 100644 index faeefec7ed7..00000000000 --- a/.changeset/35992-multivalue-filter-surfaces.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@object-ui/fields': patch -'@object-ui/app-shell': patch -'@object-ui/console': patch ---- - -fix(fields, console): condition editors offer a multiple: true field only what its evaluator answers - -Clause-②: no -Metadata-protocol: none - -A `select`, `lookup` or `user` field declared `multiple: true` holds a list, and the condition editors used to treat it as a single value: they offered Equals and Is any of on it. The engine refuses those operators on such a field with 400 `INVALID_FILTER`, a dataset filter answered them with 0, and a flow edge guard written as `record.attendees == 'u1'` is false for every record. Each editor now passes the field's `multiple` to the shared filter builder, which offers such a field Contains, Does not contain, Is empty and Is not empty, the operators a `multiselect` already got: - -- the criteria editor (`@object-ui/fields` `FilterConditionField`, e.g. a sharing rule's criteria); -- the Studio filter editor for a dataset's scope and measure filters and a field's related-list filter. A stored `$eq` or `$in` on such a field now opens in Source instead of as an Equals row; -- the Studio flow edge rows. On a list-valued field they write Contains as CEL list membership, `record.attendees != null && 'u1' in record.attendees`, and Does not contain as `record.attendees == null || !('u1' in record.attendees)`. A guard spelled that way opens as a row again. - -A single-value field of the same types keeps its operators. The Studio field list now carries the declared `multiple`, so the CEL condition builder also words and writes Is empty on such a field as an empty list, as the spec's 「is empty」 table says. No metadata key, value or default changes. diff --git a/.changeset/35995-drawer-required-prompt.md b/.changeset/35995-drawer-required-prompt.md deleted file mode 100644 index 12b227a5912..00000000000 --- a/.changeset/35995-drawer-required-prompt.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/plugin-detail': patch ---- - -fix(plugin-detail): the record drawer's per-field save asks for the fields a change makes required - -Clause-②: no -Metadata-protocol: none - -In the record overlay (`RecordDetailPanel`, and `RecordDetailDrawer` around it), a change that made another field required (`requiredWhen`) while that field was empty went straight to the host's `onFieldSave` and came back refused by the server. The overlay now asks first, in the same fill-in dialog the record page, the list cell and the kanban open: Save writes the change and the typed values in one update guarded with `If-Match` at the version the edit began on, Cancel writes nothing and keeps the edit. A change that makes nothing required still saves at once through `onFieldSave`. - -The ask needs one write to put the values in, so `InlineEditSaveBar` asks in its callback mode only when it is also given `dataSource`, `objectName`, `recordId` and `data`; `RecordDetailPanel` now passes them, with a record context naming the object's fields. That one write goes through the data source, not through `onFieldSave`; a host that patches its own list in `onFieldSave` sees it through the data source's mutation event. Without a data source the overlay saves field by field as before. diff --git a/.changeset/35996-ime-enter-fields.md b/.changeset/35996-ime-enter-fields.md deleted file mode 100644 index 9dd9795f45d..00000000000 --- a/.changeset/35996-ime-enter-fields.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/components': patch -'@object-ui/fields': patch ---- - -Clause-②: yes (widening) -Metadata-protocol: none -Skills-docs: none — no skill teaches the input-method key guard (zero hits for `isImeKey` or `isComposing` under `skills/`); the field behaviour a skill describes is unchanged outside a composition - -An Enter that picks a word in a Chinese, Japanese or Korean input method no longer acts in three more field widgets: a line grid's cell no longer moves to the next line or appends one (its arrows no longer move either), the date picker no longer commits the half-typed date, and the record picker's page-jump box no longer jumps and clears itself. Safari's 229 Enter raised just after the composition ends is treated the same way; the next Enter does what it always did. - -`@object-ui/components` now exports `isImeKey(event)`, the one "does the input method own this key?" predicate. The list grid and every `@object-ui/fields` widget that reads its own keys ask it, so the copy `@object-ui/fields` kept is gone. diff --git a/.changeset/35997-header-actions-width-cap.md b/.changeset/35997-header-actions-width-cap.md deleted file mode 100644 index 0aac81109b2..00000000000 --- a/.changeset/35997-header-actions-width-cap.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/components': patch ---- - -fix(components): the record header re-measures its width fold on another record - -Clause-②: no -Metadata-protocol: none - -In a record page's header bar the action row folds by width: while its buttons wrap past one line, the page's own actions fold into the `⋯` one at a time. The lowered budget used to come back only when the bar changed width. Stepping to another record (previous / next, or another record in the drawer) keeps the same row, so after a record with many actions a record with fewer kept the old, lower budget and folded actions that fit. - -The lowered budget now holds only for the record and the action set it was measured on. Another record, or a changed action set, draws the full budget (3, or the page's `maxVisible`) and the next layout measures again, so a row that still does not fit folds as before. Nothing an author writes changes. diff --git a/.changeset/35999-grid-undo-keeps-newer-save.md b/.changeset/35999-grid-undo-keeps-newer-save.md deleted file mode 100644 index e4f02d35ad5..00000000000 --- a/.changeset/35999-grid-undo-keeps-newer-save.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/plugin-grid': patch ---- - -fix(grid): undoing an earlier cell save right after a newer save of the same row keeps the newer save on screen - -Clause-②: no -Metadata-protocol: none - -In a select-first grid, the Undo of an earlier save (its toast's Undo, or Ctrl+Z / Cmd+Z) draws its answer over the row as the grid shows it now. If that Undo arrived in the short window after a newer save of the same record was drawn, but before React ran that render's effects, the grid read the older patch. The row then dropped back to the values it was first read with, for example the name before the newer save, until the next load. The server's record was right the whole time. The patches the Undo reads now move together with the save that writes them, so an Undo pressed at any moment draws over the newest save. diff --git a/.changeset/36002-refresh-display-panel.md b/.changeset/36002-refresh-display-panel.md deleted file mode 100644 index 35479ef0797..00000000000 --- a/.changeset/36002-refresh-display-panel.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@object-ui/plugin-list': patch -'@objectstack/spec': patch -'@objectstack/platform-objects': patch ---- - -fix(plugin-list): Refresh alone no longer draws the Display entry in the default list toolbar - -Clause-②: no -Metadata-protocol: none - -The default (Display) list toolbar has no Refresh button, yet `userActions.refresh` still counted as a reason to draw the toolbar's Display entry. On a non-grid view (kanban, calendar and the rest) whose other Display controls were all off, the entry opened a panel holding only its footer. Refresh no longer counts, so such a view draws no Display entry. The wide toolbar (`compactToolbar: false`) still draws Refresh as before, and `userActions.refresh: false` still takes it off there. - -`@objectstack/spec`: the `userActions.refresh` description now says the toggle governs only the wide toolbar's Refresh button and changes nothing in the default toolbar. The view form's hint for the key says the same, and `@objectstack/platform-objects` ships it as the English help text in the metadata-forms bundle; the other locales keep their existing translations. Only the description text changed: the key, its type and its default are the same. diff --git a/.changeset/36004-grid-header-help-name.md b/.changeset/36004-grid-header-help-name.md deleted file mode 100644 index 823f572db73..00000000000 --- a/.changeset/36004-grid-header-help-name.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@object-ui/fields': patch -'@object-ui/i18n': patch ---- - -fix(fields): the line grid's column-header help no longer becomes part of every cell's announced column name - -Clause-②: yes (widening) -Metadata-protocol: none - -The widening is additive: the new key `fields.grid.columnHelp` in every locale pack `@object-ui/i18n` publishes through `./locales`, in all eleven locales. - -The info button beside a line grid's column header used the column's help text as its accessible name. The button sits inside the header cell, so the help joined the column header's name, and a screen reader that announces a cell's column read the whole help sentence with every cell of that column. The button is now named by a short "Help" word in the reader's language (`fields.grid.columnHelp`), and the help is its description (`aria-describedby`), read when the button is reached. The column header is named by the field label and that one word. The tooltip on hover and keyboard focus is unchanged, on the editable grid and on the read-only table. - -No metadata key is added or changed. diff --git a/.changeset/36010-views-refused-read-no-access.md b/.changeset/36010-views-refused-read-no-access.md deleted file mode 100644 index d0f6921a955..00000000000 --- a/.changeset/36010-views-refused-read-no-access.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@object-ui/plugin-kanban': patch -'@object-ui/plugin-calendar': patch -'@object-ui/plugin-timeline': patch -'@object-ui/plugin-map': patch ---- - -fix(ui): the kanban, calendar, timeline and map views draw the no-access state for a refused read, not the raw error - -Clause-②: no -Metadata-protocol: none - -A reader who may open a page but is not granted the records its kanban board, calendar, timeline or map reads saw the transport's own string where the view would be, untranslated (for example `Error loading kanban data: ApiDataSource: HTTP 403 Forbidden — {…}`). Each of the four views now classifies a failed load with the shared load-error verdict the list page, the related list and the Gantt chart use, and for a permission refusal (a 403, or a `PERMISSION_DENIED` / `FORBIDDEN` code) draws the calm no-access state those surfaces draw: a neutral status panel with the shared `list.loadErrorForbiddenTitle` / `list.loadErrorForbiddenMessage` sentence in the reader's language, and none of the server's text. Every other failure (a 500, a dropped connection) keeps each view's existing error screen. The map's tile-style failure is not a data load and is unchanged. diff --git a/.changeset/36011-restore-factory-view.md b/.changeset/36011-restore-factory-view.md deleted file mode 100644 index 96b681c48a2..00000000000 --- a/.changeset/36011-restore-factory-view.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/plugin-view': patch -'@object-ui/data-objectstack': patch -'@object-ui/i18n': patch ---- - -feat(console): Manage views restores the factory version of a customized package view - -Clause-②: yes (widening) -Metadata-protocol: none - -A pin, a rename or a set-default on a view a read-only package ships writes the whole view into the package's customization (`<package>.custom`), and every user of the view then sees that copy. Manage views now marks such a view "customized" and offers "Restore factory version" in its `…` menu. After one confirm, which says every user of the view sees the factory version again, the override is removed from the customization and the list shows the package's own view. A view without a customization has no mark and offers no restore; a refused restore is said with the server's own message. - -- `@object-ui/data-objectstack`: `ObjectStackAdapter.restoreFactoryView(objectName, viewName)` deletes the view's draft, then its row, at the customization the ensure door names for the shipping package (`DELETE /meta/view/NAME?package=PAIR`, the door Studio's "Restore package original" uses). It refuses, sending nothing, a view that is no override of the package it is served under, and throws when the customization held no row of the view. The customization package itself stays. `listViews()` now carries a record's `overrides` declaration onto the flattened row. -- `@object-ui/plugin-view`: `ViewTabItem.customized` and `ManageViewsDialogProps.onRestoreFactory`. -- `@object-ui/i18n`: the mark, the menu entry, the confirm, its result and the failure title, in every locale pack. diff --git a/.changeset/36015-list-cell-click-only-selects.md b/.changeset/36015-list-cell-click-only-selects.md deleted file mode 100644 index c89c464719e..00000000000 --- a/.changeset/36015-list-cell-click-only-selects.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@object-ui/components': patch -'@object-ui/fields': patch -'@object-ui/plugin-grid': patch ---- - -fix(grid): in a list cell a single click only selects, and the email and phone cells draw no copy button - -Clause-②: no -Metadata-protocol: none - -On a grid with the select-first cell model (the console's list page), a plain click on a link a cell draws used to follow it: an email opened the mail program, a phone number the dialler, a URL a new tab, a lookup or user chip that record's page, and an image thumbnail its lightbox. The cell was not selected, so a reader who meant to select or edit the cell left the list instead. The email and phone cells also drew a copy button beside the value, easy to hit while selecting. - -A plain click on any of these now selects the cell and opens nothing. To open one: Ctrl/Cmd-click it (as before), press the open button the selected cell shows on hover (only on the selected cell, never on the row hover), or press Ctrl/Cmd+Enter on the selected cell. A cell of several chips opens the first one that way. A double-click on the link edits the cell, as on any other cell. The name link is the one exception and opens the record on a single click, as before. The copy buttons are not drawn inside such a grid; Ctrl/Cmd+C copies the selected cell. - -Outside the select-first model nothing changes: the record page, related lists, phone cards, kanban cards and every grid whose host does not turn on `cellSelection` keep their links and copy buttons. - -For renderer authors: a link (`a[href]`) inside a select-first cell is now treated as part of the cell's value. Mark the one link a single click must still follow with `data-opens-on-click`, a non-link control that opens what the value points at with `data-cell-opener`, and a copy control the grid should not draw with `data-cell-copy`. diff --git a/.changeset/36015-lookup-chip-opens-in-drawer.md b/.changeset/36015-lookup-chip-opens-in-drawer.md deleted file mode 100644 index f52ffed4fb8..00000000000 --- a/.changeset/36015-lookup-chip-opens-in-drawer.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@object-ui/components': patch -'@object-ui/fields': patch -'@object-ui/plugin-grid': patch -'@object-ui/plugin-list': patch -'@object-ui/app-shell': patch ---- - -feat(grid): on the list page a lookup chip opens its record in the side drawer, and a lookup cell has an edit button - -Clause-②: yes (widening) -Metadata-protocol: none - -On the console's list page, a single click on a lookup chip (a record of another object, such as a contact's account) now opens that record in the side drawer over the list. This replaces, for lookup chips on that page, the earlier change in this release where a plain click on a lookup chip only selected its cell. The list stays where it was: closing the drawer leaves its scroll position and the selected cell as they were. The drawer's address carries the record and its object (`?recordId=…&recordObject=…`), so a reload keeps it open and Back closes it, as with the name cell's "Open in side panel" icon. A click beside the chips only selects the cell. A cell of several chips opens the chip that was clicked; Ctrl/Cmd+Enter on the selected cell opens the first one in the drawer; Ctrl/Cmd-click still opens the record's page in a new tab. - -A lookup cell now draws an edit (pencil) button while the pointer is over it and while it is selected. It opens the cell's editor, as a double-click or Enter does, and it is not drawn when the cell cannot be edited (no permission, a read-only field, a locked record). It takes the place of the open button a selected cell shows. - -A chip naming a person (an owner, a creator: a lookup to `sys_user`) keeps the behaviour it had: a single click only selects the cell, and it opens from the open button or Ctrl/Cmd+Enter. Email, phone and URL cells and the name column are unchanged. On a phone every record still opens as its page. - -For hosts: `ListView` and `ObjectGrid` take a new runtime prop, `openReferencedRecord(objectName, recordId)`, that opens such a record in the host's place; `GridCellSelection` gains an optional `referenceCells` member (`isReferenceColumn`, `openRecord`), exported with its type `GridReferenceCells` from `@object-ui/components`. A host that passes neither keeps the previous behaviour, where a chip only selects its cell. `ReferencedRecordLink`'s anchor now carries `data-record-object` and `data-record-id`. diff --git a/.changeset/36017-show-user-manager.md b/.changeset/36017-show-user-manager.md deleted file mode 100644 index 4c4a9572e29..00000000000 --- a/.changeset/36017-show-user-manager.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@objectstack/platform-objects': patch ---- - -fix(platform-objects): Setup → Users shows who a user's manager is, who reports to them, and can remove a manager - -Clause-②: no -Metadata-protocol: none - -An administrator who set a user's manager could not read it back anywhere in Setup: the record page's Details tab named no section holding `manager_id`, no list showed the people reporting to a user, and the Set Manager dialog opened on an empty picker. The value was stored correctly; only the reading back was missing. - -- **Details → Reporting Line** shows the user's manager (`sys_user.manager_id`, still read-only on the record; it is written only through the admin endpoint). -- **Details → Direct Reports** lists the users whose manager is this user. It is read-only: a report's manager is changed on that report's record. -- **Set Manager** now opens on the current manager (the param is field-backed on `manager_id` with `defaultFromRow`), so an admin sees what a re-point replaces. The request body is unchanged: `{ userId, managerId }`. -- **Remove Manager** (new `sys_user` action `remove_user_manager`, on the row menu and the record header) clears the link by posting `managerId: null` to `POST /api/v1/auth/admin/set-user-manager`. It carries the same platform-admin gate as Set Manager, is offered only while the user has a manager, asks for confirmation, and is not exposed to AI agents. The endpoint's refusals are unchanged and apply to the clear too: an identity a SCIM directory holds is refused there. diff --git a/.changeset/36019-placed-lines-form.md b/.changeset/36019-placed-lines-form.md deleted file mode 100644 index 1a9670e562f..00000000000 --- a/.changeset/36019-placed-lines-form.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@object-ui/plugin-form': patch -'@object-ui/components': patch ---- - -fix(ui): a placed line table's row editor is a form of its own, and a refused line marks its tab - -Clause-②: no -Metadata-protocol: none - -Two fixes to a master-detail entry form whose field group places the line table: - -- Opening a line's row editor no longer draws the editor's form inside the placed table's wrapper form. The markup is valid again, and React no longer logs "form cannot be a descendant of form" in development. The editor's inputs still belong to the editor's own form. -- In a tabbed form, a save the server refuses on a line marks the tab that holds the lines, the way a refused header field marks its own tab. A refusal is on the lines when the server names a line's operation as the failed one, or names a field that only the lines write. The mark clears when the next save gets past validation. diff --git a/.changeset/36023-cell-panel-below.md b/.changeset/36023-cell-panel-below.md deleted file mode 100644 index 65dfc562392..00000000000 --- a/.changeset/36023-cell-panel-below.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -'@object-ui/components': patch -'@object-ui/plugin-grid': patch -'@object-ui/fields': patch -'@object-ui/i18n': patch ---- - -feat(ui): in a list cell, a picker opens under the cell, Backspace clears, a refused value stays, and Enter stays on the cell - -Clause-②: yes (widening) -Metadata-protocol: none - -`GridCellFacts` (the select-first grid's per-cell host facts, `@object-ui/components`) gains three optional keys: `editor` (`'below'` draws the cell's editor as a panel under the cell, which keeps showing its value; absent or `'cover'`, the editor stays a layer over the cell), `clearRefusal` (why Backspace or Delete leave the cell as it is) and `validate` (why a committed value is refused). A host that sets none of them gets the editor placement and commits it had, with Backspace now clearing (below). - -In every grid `ObjectGrid` draws with the select-first model (the list page): - -- **Pickers open under the cell.** Single and multi select, status, tags, date, date-time, time, colour, lookup and user cells open their list, calendar or palette as a panel under the cell; the cell keeps its value as drawn (a coloured badge stays coloured) and the row height does not change. On a date the typeable box is the top of the panel and the calendar shows beneath it. Typed input, long text and an address still edit in place. -- **Backspace or Delete clears the selected cell and saves at once.** A required field keeps its value and says it is required (a required rating too, for Backspace, Delete and the 0 key); a read-only cell says why, as before; a checkbox cell is left alone. -- **A value that fails the field's rules is not saved.** The rules are the record form's (required, length, range, email and URL shape), and text a number box cannot read is refused too. The editor stays open with what was typed and says why under it (a number box that already says it cannot read its text is not told twice); correct it and commit again, or press Escape to discard. A click elsewhere does nothing while a refused value is open; a refused value whose cell scrolls out of sight is discarded. -- **A person's face no longer makes its row taller.** A user cell drew a 32 px face, which made its list row 41 px tall against 33 px for a row of text; the face is now 24 px and the row stays 33 px, at rest and while the cell is edited. -- **The selected cell's frame stays under the frozen columns** when the cell scrolls beneath them, and a cell deselected with Escape is left with no focus ring. -- **Enter saves and keeps the same cell selected**, with the focus back on it. It used to save and move the selection one row down. Tab and Shift+Tab still save and move right and left. - -`@object-ui/i18n` adds `table.cellNotNumber` and `table.cellInvalid` in every locale. - -Forms, dialogs and the record page keep their current controls. diff --git a/.changeset/36023-line-grid-cell-panels.md b/.changeset/36023-line-grid-cell-panels.md deleted file mode 100644 index e5283bf57ce..00000000000 --- a/.changeset/36023-line-grid-cell-panels.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@object-ui/fields': patch ---- - -feat(fields): the line-item grid's select and date cells open their panel under the cell, and Esc in a cell puts its line back as it was when the cell was entered - -Clause-②: no -Metadata-protocol: none - -In a form's line-item grid (`GridField`, the master-detail lines): - -- A **select** cell shows its option label; a click, Enter, Space or a typed letter opens a searchable option list under the cell (the letter becomes the search), and a pick writes the value. Esc closes the list and writes nothing. -- A **date** or **date-time** cell keeps the browser's own control, typed into as before, and opens a calendar under the cell when the cell is entered, with Today, Tomorrow, Next week and Clear. A day picked on a date-time keeps its time of day. -- A **text** cell whose text is longer than the column floats right over its neighbours while it has the focus. -- **Esc** in a cell puts the line back as it was when the cell was entered, and no longer reaches a dialog the form is open in, so the dialog and its other lines stay. -- A stored day that does not exist is named at the top of the calendar and in the cell's tooltip instead of a line under the cell, so the row keeps its height. - -Enter still moves to the next line (and adds one on the last line). Nothing a metadata author writes changes. diff --git a/.changeset/36023-rich-text-cell-panel.md b/.changeset/36023-rich-text-cell-panel.md deleted file mode 100644 index d6b7f930e72..00000000000 --- a/.changeset/36023-rich-text-cell-panel.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@object-ui/fields': patch -'@object-ui/plugin-grid': patch ---- - -feat(grid): a markdown, HTML or rich text cell opens a text box in a panel under the cell - -Clause-②: yes (widening) -Metadata-protocol: none - -**The list grid edits the rich-content field types in place** (objectstack#36023). On a select-first grid, selecting a `markdown`, `html` or `richtext` cell and pressing Enter, F2, typing or double-clicking opens the record form's own text box over the stored source in a panel under the cell, at least as wide as the column; the cell keeps showing its value and the row keeps its height. Enter in the panel is a new line; on a select-first grid Ctrl/Cmd+Enter saves and keeps the cell selected, Esc discards, and a click outside saves. Backspace or Delete on the selected cell of a select-first grid clears it as for any other editable cell. On a grid without the select-first cell model (an `ObjectGrid` or `object-grid` mounted without `cellSelection`), one click opens the text box over the cell, not in a panel under it: Enter is a new line, Ctrl/Cmd+Enter does nothing, Esc discards, and a click outside keeps the text as a pending change for the grid's save buttons. Before, these cells opened no editor; on a select-first grid the cell said "This field can't be edited in a list". The related tab on the record page draws the same grid and behaves the same way. - -**Only the grid's cell changes.** The three types stay in `INLINE_EXCLUDED_FIELD_TYPES`, and `hasFieldEditWidget` and `isInlineExcludedFieldType` answer as before, so the record page's field editor, the required-fields dialogs, the kanban and timesheet editors keep them out. `@object-ui/fields` exports `hasInCellPanelEditWidget(type)`, true for the three types, and `FieldEditWidget` draws their editor only when the host asks for the cell face (`inCell`); the editor loads lazily. `html` is edited as text; what the cell then draws goes through the sanitizing HTML renderer, as on every other read surface. diff --git a/.changeset/36025-prompt-preread-operand.md b/.changeset/36025-prompt-preread-operand.md deleted file mode 100644 index 1cb77488157..00000000000 --- a/.changeset/36025-prompt-preread-operand.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@object-ui/plugin-grid': patch -'@object-ui/fields': patch ---- - -Clause-②: yes (widening) -Metadata-protocol: none - -A list cell commit on an object with a `requiredWhen` field the list does not draw no longer reads the record first when the edited column cannot open the fill-in dialog. The pre-read (one `findOne` for the keys the row lacks) is now made only when the column is an operand of an askable field's `requiredWhen`, when such a predicate reads the clock, the acting user or the record as a whole, or when the askable field is also statically `required`. What the user sees is unchanged; commits to other columns save one request sooner. `@object-ui/fields` exports the judgment the grid asks, `requiredWhenPromptAsksOn(objectFields, changedKeys, { fillable })`. diff --git a/.changeset/36035-no-approver-position-label.md b/.changeset/36035-no-approver-position-label.md deleted file mode 100644 index ee9a102e370..00000000000 --- a/.changeset/36035-no-approver-position-label.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/plugin-approvals': patch ---- - -fix(approvals): the no-approver note names its position by its label - -Clause-②: no -Metadata-protocol: none - -When a request opens with no one able to approve it and its approver list names an unstaffed position, its timeline note told the reader to add "a member who holds position 'regional_manager'", with the position's internal name, in every language. The note now stores the position as a reference, so a reader is served the position's label the way the administrators' routing note names one: the reader's language pack (`positions.<name>.label`) first, else the position's declared `label`, else the name as before. The English the row stores for audit keeps the name, and a note written before this change is shown exactly as it was. diff --git a/.changeset/36036-stage-menu-409-refields.md b/.changeset/36036-stage-menu-409-refields.md deleted file mode 100644 index 8d1a0b89158..00000000000 --- a/.changeset/36036-stage-menu-409-refields.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/plugin-detail': patch ---- - -fix(plugin-detail): after a 409, the stage menu's dialog asks for what the re-read record needs - -Clause-②: no -Metadata-protocol: none - -The record header's stage menu opens a dialog that asks for the fields a stage makes required. When the move came back 409 (someone else changed the record), the dialog re-read the record but kept the list of fields it chose when the stage was picked. If the other writer had just filled one of those fields, the reader's next Move wrote the reader's value over it. - -The dialog now judges the fields against the record as it stands, so the list follows the re-read row when it lands. A field another writer filled in the meantime leaves the dialog and is not sent with the move, and a value the reader typed for it no longer asks for the fields it would have made required in turn. When nothing is left to fill in, the dialog shows the record, the stage and the Move button. A 409 that filled nothing keeps the list and the typed values as before. diff --git a/.changeset/36041-phone-avatar-menu.md b/.changeset/36041-phone-avatar-menu.md deleted file mode 100644 index 9931759d651..00000000000 --- a/.changeset/36041-phone-avatar-menu.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(console): on a phone the account menu stays on the screen in every interface language - -Clause-②: no -Metadata-protocol: none - -The account menu sized itself to its longest line. On a phone, with the desktop notification hint showing (notifications blocked, or a browser with no notification support such as Safari on iPhone), the menu was wider than a 375 px screen in seven of the eleven interface languages (English, German, French, Russian, Spanish, Portuguese, Japanese), and in German, French, Russian, Spanish and Portuguese the Language control was pushed off the right edge, so the language list could not be opened. - -Below 768 px the menu is now no wider than the screen less a 1 rem gutter on each side, and long lines wrap with their full text. The language list opens under the Language control (or above it where only that fits), on the screen. From 768 px up the menu is unchanged, and the language list itself, which the sign-in page also uses, is unchanged. No props, exports or locale keys change. diff --git a/.changeset/36043-line-item-cell-editors.md b/.changeset/36043-line-item-cell-editors.md deleted file mode 100644 index 84896d5d04d..00000000000 --- a/.changeset/36043-line-item-cell-editors.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -'@objectstack/spec': minor -'@object-ui/fields': minor -'@object-ui/plugin-form': minor -'@objectstack/metadata-core': patch -'@object-ui/types': patch ---- - -feat: the form's line-item table edits people, multi-select, tags, check and rating cells the way the main list does - -Clause-②: yes (widening) -Metadata-protocol: semantic - -`InlineGridColumnSchema.type` (a relationship field's `inlineColumns`, a form view's `subforms[].columns`, and the page blocks that carry the same column) accepts five more cell types, each spelled as its namesake field type: `user` (people), `multiselect`, `tags`, `boolean` (check) and `rating`. The column also takes an optional `max`, the star count of a `rating` cell (default 5). - -In the line-item table: - -- A `user` cell opens the main list's person picker under the cell: a searchable list with recent people and Clear; a pick writes and closes. `multiple` holds several people. -- A `multiselect` cell holds several of its options and a `tags` cell holds free-form tags. Each opens its searchable list under the cell; a click outside or Tab writes what was picked, Esc writes nothing. A list emptied in the cell writes `null`, as a cleared multi-value field stores, so a line whose only value was removed is still a blank line. A `tags` cell takes no `options`. -- A `boolean` cell is a checkbox: a click or Space toggles it and writes `true` / `false`. -- A `rating` cell draws its stars; a click on a star, or a digit key on the cell, sets it, and 0 clears it. -- Read-only and list-mode cells show people by name, a rating as its stars, a multi-select's option labels, and a check cell as the session's yes/no word. - -Visible change on existing forms: a column the table derives from a child field (no `type` written) now follows that field. A `boolean` / `toggle` field becomes a checkbox instead of the yes/no select, and it writes `true` / `false` instead of the strings `'true'` / `'false'` (the server reads both the same). A `rating` field becomes stars instead of a number box. `user`, `multiselect`, `checkboxes` and `tags` fields get their own cells instead of a plain text box that took a typed user id or a single option. A column that writes its `type` is unchanged, a `type: 'select'` column over a boolean field included. Which derived columns are visible by default is unchanged. - -The field-level security scrubber classifies the column's new `max` key as kept (a number, never a field name). diff --git a/.changeset/36044-phone-select-taps.md b/.changeset/36044-phone-select-taps.md deleted file mode 100644 index 67101a176fc..00000000000 --- a/.changeset/36044-phone-select-taps.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/plugin-grid': patch ---- - -fix(grid): on a phone's card list, while a selection is open, a tap on a link inside a card ticks or unticks the card - -Clause-②: no -Metadata-protocol: none - -A tap on a card's email, phone number, URL, referenced record, image, copy button or 「⋮」 used to open the link, the record or the menu instead of ticking the card. While a selection is open the card now takes every tap inside it, as phone apps do in selection mode; the click that ends the long press which starts a selection opens nothing either. When the selection ends, the same taps open their links again. The desktop table is unchanged. diff --git a/.changeset/36046-people-cell-name.md b/.changeset/36046-people-cell-name.md deleted file mode 100644 index 8d84e7b0b12..00000000000 --- a/.changeset/36046-people-cell-name.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/fields': patch ---- - -fix(fields): a person picked in a list cell shows their name at once, and avatar initials are letters only - -Clause-②: no -Metadata-protocol: none - -A list cell of a `user` field stores the picked person's id, and the save answers the id too, while the cell draws a person from the expanded record a list read brings. So after a pick the cell showed the raw id, marked as an unresolved reference, until the list was read again. The picker now keeps the records a pick hands back in the reference cache the lookup cell already reads (one cache, now in its own module), and the person cell draws a stored id as the person that cache holds for it: the name and face show as soon as the pick commits, while the save is on the wire and after it lands, with no read of the list or of the person. An id nothing on the page holds is still drawn as an unresolved reference, as before. A lookup cell whose column names no display field reads the same entry, so it also shows a picked record's name without reading it again. - -Avatar initials (`getPersonInitials`, the people-field chips, the person picker rows, the comment author avatar) are made of letters only: brackets, punctuation and digits are skipped, so `Alice (Sales)` draws `AS`, never `A(`, and a name with a single letter draws that letter. The person cell and the `avatar` field widget now draw their initials through the same function instead of their own copies, so a single-word name draws its first two letters (`Ada` → `AD`) and a CJK name its given-name characters, as the chips already did. diff --git a/.changeset/36047-console-control-corner-white-content.md b/.changeset/36047-console-control-corner-white-content.md deleted file mode 100644 index 51695259f6b..00000000000 --- a/.changeset/36047-console-control-corner-white-content.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@object-ui/console': patch -'@object-ui/components': patch -'@object-ui/fields': patch -'@object-ui/plugin-grid': patch -'@object-ui/plugin-list': patch ---- - -feat(ui): one 8px corner for every control, a white content area beside a light grey sidebar, and badges at weight 500 - -Clause-②: no -Metadata-protocol: none - -- **Controls share one corner, 8px.** Buttons, inputs, selects, toolbar controls, menus and tab lists are `rounded-md`, which the console theme now sets to 8px (it was 12px, derived from the 14px card corner). What sits inside one of them, a tab trigger in its list or a menu row, is `rounded-sm`, 6px. Cards keep their 14px corner, and dialogs, popovers and drawers keep theirs. -- **Chips follow.** A lookup chip in a list cell (it was 4px), a person or record chip in a form's lookup field and its selection tray, and the list's Sort, Filter and condition chips (they were pills) take the same 8px corner. Coloured option badges stay pills. -- **The content area is white.** The console's `--background` is white instead of the grouped grey, so a list, a record page, a kanban board and the top bar sit on white. The sidebar is the one light grey surface beside it, with its hairline border; in the dark theme the content area is the darkest step and the sidebar one step lighter. -- **Badges are weight 500.** `Badge` was `font-semibold` (600), outside the console's two text weights; it is `font-medium` (500). This is a declared local patch on the Shadcn primitive (`badge-medium-weight` in `ui/scripts/shadcn-local-patches.mjs`), so it survives a registry sync. diff --git a/.changeset/36047-console-two-sizes-two-weights.md b/.changeset/36047-console-two-sizes-two-weights.md deleted file mode 100644 index d61a78353b5..00000000000 --- a/.changeset/36047-console-two-sizes-two-weights.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -'@object-ui/console': patch -'@object-ui/app-shell': patch -'@object-ui/components': patch -'@object-ui/fields': patch -'@object-ui/plugin-detail': patch -'@object-ui/plugin-form': patch -'@object-ui/plugin-grid': patch -'@object-ui/plugin-kanban': patch -'@object-ui/plugin-list': patch ---- - -feat(ui): the console's pages set text in two sizes, 14 and 12, and two weights, 400 and 500 - -Clause-②: no -Metadata-protocol: none - -- **Two sizes.** Body text, list cells, field values, inputs, menu items, toolbar controls and buttons are 14px (`text-sm`); field labels, column headers, counts, timestamps, hints and chip text are 12px (`text-xs`). The hard-coded 13px is gone from the console's runtime pages, and the 10px, 11px and other odd sizes there are 12px. The in-cell editor is 14px, like the cell it edits. -- **Two weights.** Record names, tabs, buttons, section titles and column headers are 500 (`font-medium`); body text is 400. Weight 600 and 700 stay only on page and dialog titles 18px and larger. `DropdownMenuLabel` is weight 500 through a declared local patch on the Shadcn primitive (`dropdown-menu-label-medium-weight` in `ui/scripts/shadcn-local-patches.mjs`), so it survives a registry sync. -- **Not changed:** Studio and metadata administration internals, the settings pages, developer tools, phone-only layouts, avatar initials, authored markdown and SDUI heading typography, the docs reader's prose size, and the shape of coloured option badges (still pills). -- A list column with no declared width measures its content, so it grows with the 14px text; a column whose width a view or a user set keeps that width and shows about 8% fewer characters before it truncates. diff --git a/.changeset/36048-list-column-lines-row-36.md b/.changeset/36048-list-column-lines-row-36.md deleted file mode 100644 index 19a61bd7e02..00000000000 --- a/.changeset/36048-list-column-lines-row-36.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@object-ui/plugin-grid': patch -'@object-ui/i18n': patch ---- - -feat(plugin-grid): a list draws a line between columns, its default rows and header are 36px tall, and the footer shows 「+ Add calculation」 at rest - -Clause-②: no -Metadata-protocol: none - -- A line of the same colour and weight as the row lines now runs between columns in the header, the rows and the footer row, with none after the last cell. The last frozen column keeps its scroll shadow on top of its line. -- The default row height (`compact`, the density a view without `rowHeight` gets, shown as Compact in the row-height menu) is 36px instead of 32px, and the header is 36px too. The Standard and Spacious densities are unchanged. -- In a list whose reader may change the view, every footer cell without a calculation shows a faint 「+ Add calculation」 at all times instead of only on hover. A reader who may not change the view still sees only the calculations already set. The `grid.summary.calculate` text changes in every language pack to match. diff --git a/.changeset/36049-record-edit-outline.md b/.changeset/36049-record-edit-outline.md deleted file mode 100644 index f0b2008db88..00000000000 --- a/.changeset/36049-record-edit-outline.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@object-ui/components': patch -'@object-ui/app-shell': patch ---- - -fix(record-page): the record header's Edit is an outline button, and the desktop header row is one height, 28 - -Clause-②: no -Metadata-protocol: none - -On a record whose object declares no header action of its own, the host's Edit was drawn as the page's one filled button, 36 high, louder than the record's name, though the record's fields already edit in place. It is now an outline button everywhere in the header row, in the record page and in the record drawer alike. What Edit does when pressed is unchanged. - -- **The page's own actions keep their faces.** An action declaring `variant: 'primary'` is still the filled button; with none, the first page action still is. The record edit state's Save stays filled. -- **One row height.** On desktop every button in the record header row is 28 high: Edit, the page's own actions, the `⋯`, the approval levers a record under approval shows there, and the trailing panel toggles (32 before). `page:header` is a shared block, so a custom page's header actions get 28 too. An action that declares its own `size` keeps it. -- **Phones unchanged.** The phone's bottom action bar still draws Edit filled at 44, and the phone header rows keep 36. diff --git a/.changeset/36050-view-all-fields-bit.md b/.changeset/36050-view-all-fields-bit.md deleted file mode 100644 index 9de368543c7..00000000000 --- a/.changeset/36050-view-all-fields-bit.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/core': minor -'@objectstack/plugin-security': minor -'@objectstack/lint': minor ---- - -feat(security): the read-only `viewAllFields` object-permission bit - -Clause-②: yes (widening) — @objectstack/spec adds the optional `viewAllFields` key to `ObjectPermissionSchema` (and so to the wire `EffectiveObjectPermissionSchema`) and the optional `viewAllFields` column to `AccessMatrixEntrySchema`; nothing removed or narrowed -Metadata-protocol: added - -A permission set can now say "this role reads every field of this object" on its own: `objects: { crm_account: { allowRead: true, viewAllFields: true } }`. The bit casts a read vote on every field of the object, fields added later included, and never an edit vote: an edit still comes from the default (a field no set names follows the object grant) or from an explicit `editable: true` field row. Inside one set the specific row beats the general bit, so a set's own `readable: false` row on a field keeps that field hidden for that set. It is allowed on the `'*'` wildcard entry. It is a field vote only: it grants no object access and widens no record, so pair it with `allowRead`, and use `viewAllRecords` for records. - -Nothing behaves differently yet. Today `viewAllRecords` and `modifyAllRecords` also vote on every field, so on a set that carries either bit the new key duplicates a vote already cast. The built-in `organization_admin` set carries it on its wildcard entry, so its holders keep their field visibility when a later major release stops those two bits voting on fields; the wall-less `organization_admin_no_bypass` variant drops it together with the two record bits, as it never held that field vote. - -Every reader of the super-user bits reads the new one too: - -- both field merges (`PermissionEvaluator.getFieldPermissions` and the `fields` slot of `/auth/me/permissions`) apply it through the one shared vote, `superuserFieldVote` in `@objectstack/core`; -- the agent ceiling clears it on every object entry, as it clears View All and Modify All; -- an organization administrator cannot distribute a set whose `'*'` entry carries it (the organization boundary, condition (a)); -- a set carrying it on any object is high-privilege, so it is not bound to the `everyone` or `guest` audience; -- the access-matrix snapshot gains a `viewAllFields` column, written only when `true`, so the `access-matrix.json` of a stack that does not author the bit is byte-identical, and the semantic diff names it ("gains View All Fields on …"). diff --git a/.changeset/36052-cross-set-field-reopen.md b/.changeset/36052-cross-set-field-reopen.md deleted file mode 100644 index a044648e33d..00000000000 --- a/.changeset/36052-cross-set-field-reopen.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@objectstack/lint': patch ---- - -feat(lint): warn when another permission set's View All, Modify All or View All Fields re-opens a field one set hides - -Clause-②: no -Metadata-protocol: none - -A new warning, `security-cross-set-field-reopen`. When one permission set hides a field (`readable: false`) or makes it read-only, and another set holds View All (`viewAllRecords`), Modify All (`modifyAllRecords`) or View All Fields (`viewAllFields`) on the same object (on its own entry for the object, or on its `'*'` entry when it has none), a user who holds both sets still reads the field, and under Modify All still edits it. The warning names both sets and the field. Its fix: drop the bit from the second set, give the second set its own `readable: false` row on the field (this works beside View All and View All Fields, not beside Modify All), say `viewAllFields: true` when the second set really should read every field, or, for a field that must stay hidden from everyone without a capability (a salary, an ID number), declare `requiredPermissions` on the field itself, with a `maskingRule` where a partial value is needed. It is a warning only: nothing that builds today stops building. - -Not reported: a field that declares `requiredPermissions` (that gate applies after the permission sets are merged, so no set's bit opens it); a set's own Modify All over its own row, which stays `security-superuser-field-mask-inert`, so one row gets one finding; a second set whose own `readable: false` row on the field keeps it closed beside View All or View All Fields; an edit lock beside View All or View All Fields, which never grant an edit; and a key on an object or field the stack does not declare. Fields are never judged by their name. - -`security-wildcard-vama` also reads `viewAllFields` on a package-authored `'*'` entry, as an error like the two record bits: such a set reads every field of every object, other packages' objects included. The key is new in this release, so no stack accepted by a released version is refused. On an object's own entry the bit is not reported. `os explain security-cross-set-field-reopen` prints the full reasoning, and Studio shows the warning in every platform locale. diff --git a/.changeset/36053-skills-three-permission-axes.md b/.changeset/36053-skills-three-permission-axes.md deleted file mode 100644 index d4e757e16ae..00000000000 --- a/.changeset/36053-skills-three-permission-axes.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@objectstack/skills': patch -'@objectstack/spec': patch ---- - -docs(skills): the data skill teaches the three permission axes, `viewAllFields` and the sensitivity tiers - -Clause-②: no -Metadata-protocol: none - -objectstack-data's `rules/security.md` now teaches the permission model in three axes. Object permission (`allowRead`, `allowCreate`, `allowEdit`, `allowDelete`) decides whether the caller can use the object at all. Record scope (`viewAllRecords`, `modifyAllRecords`) widens which records the caller reaches, and from v19 those two bits open no field. Fields are visible by default, so an author writes only the exceptions: nothing for an ordinary field, `fields` rows in the sets that differ for a position-dependent one, and `requiredPermissions` on the field itself for a high-sensitivity one (salary, ID numbers), with `maskingRule` where a partial value is needed. That gate is strictest-wins over every field row, `viewAllFields`, View All and Modify All. - -A new section teaches `viewAllFields: true` as the way to say "this set reads every field", for admin-like sets: a read vote on every field, fields added later included, and never an edit vote; the set's own `readable: false` row beats it; it grants no object access and widens no record; on the `'*'` entry it also votes on the fields of private-posture objects, which a plain `'*'` does not grant; it is authored in metadata, as Studio's permission matrix keeps the key and has no control for it. - -`evals/hooks-security-seeds-datasources.json` gains two cases: a read-everything auditor set written with `viewAllFields`, and salary and ID-number fields gated with `requiredPermissions` and `maskingRule`. Two restatements in `rules/security.md` were removed to pay for part of the new text (the "Locks, never grants" bullet and the recipe link of the `when` section). - -`@objectstack/spec`: two docblock sentences in `src/security/permission.zod.ts`, comments only. The `viewAllFields` docblock now says the key changes nothing on an object entry that carries View All or Modify All (it said "on a set"), and the `FieldPermissionSchema` docblock names `viewAllFields` beside the super-user bits as a voter in the field merge. No schema, description or generated artifact changes. diff --git a/.changeset/36070-comment-small-fixes.md b/.changeset/36070-comment-small-fixes.md deleted file mode 100644 index 473b383e519..00000000000 --- a/.changeset/36070-comment-small-fixes.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@object-ui/plugin-detail': patch -'@object-ui/fields': patch -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -fix(comments): Reply puts the caret in the reply box, comments show the author's avatar or initials, the mention menu opens at the caret, and a delete says it went through - -Clause-②: yes (widening) -Metadata-protocol: none - -Four small fixes to comments on the record page: - -- **Reply.** Pressing Reply on a comment opened the reply box but left focus on the button, so typing went nowhere (or into the main comment box). The caret now goes into the reply box. On a comment whose replies were collapsed, Reply also expands them first. -- **Author avatar.** A comment by someone without an avatar showed a generic comment icon. Every comment and reply now leads with a 20 px avatar: the author's image, or their initials on the same round disc the people chips draw. -- **Mention menu.** Typing `@` opened the people menu at the top left of the comment box. It now opens under the caret, or above it when the window has no room below. -- **Delete.** Deleting a comment now shows a "Comment deleted" toast (zh: 评论已删除). A refused delete still shows its error, as before. - -Additions, nothing removed or changed in meaning: `@object-ui/plugin-detail` exports `CommentAuthorAvatar` (and its props type), and `ThreadedReplies` takes a new optional `focusReplyOnOpen` prop (default `false`, so a host that always shows the reply box keeps today's focus behaviour). `@object-ui/fields` exports `getPersonInitials`. New locale key `detail.commentDeleted` in all eleven locale packs. diff --git a/.changeset/36071-comment-threads-resolved.md b/.changeset/36071-comment-threads-resolved.md deleted file mode 100644 index 29af86d365a..00000000000 --- a/.changeset/36071-comment-threads-resolved.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@objectstack/plugin-audit': patch ---- - -feat(plugin-audit): a comment thread can be marked resolved and reopened - -Clause-②: yes (widening) -Metadata-protocol: none - -`sys_comment` gains three columns on the top-level comment of a thread: `is_resolved` (boolean, default `false`), `resolved_by` (the user who resolved it) and `resolved_at` (when). A thread is a top-level comment together with its replies. - -- **Resolve and reopen** by updating `is_resolved` on the top-level comment through the data API. An update that names `is_resolved` on a reply is refused, `VALIDATION_ERROR` / 400. -- **Who may.** Anyone who may comment on the record (who can read it) may resolve and reopen its threads (maintainer ruling record 7063285032, option A). This is the one widening: an update that changes nothing but `is_resolved` is admitted without the author-or-record-editor rule. Any other change to a comment still needs its author or an editor of the record. Resolving is an update, so a permission set that grants `create` but not `edit` on `sys_comment` can post comments but cannot resolve or reopen threads. A caller who cannot read the record gets the not-visible refusal, on a reply too. -- **Platform-written.** `resolved_by` and `resolved_at` are stamped by the platform when `is_resolved` turns `true` and cleared when it turns `false`; both are read-only, so a client's value is replaced by the stamp or dropped and reported in `droppedFields`. A new comment is always unresolved. -- **A reply reopens.** A reply posted into a resolved thread sets the thread back to unresolved. -- **Reading.** Unresolved threads of one record: `object_name = OBJECT`, `record_id = ID`, `parent_id = null`, `is_resolved: { $ne: true }`; count the same filter for the record's unresolved-thread count. -- **Stored rows** need no migration: the SQL column default is `false`, and `$ne: true` also matches a row that carries no value. - -Resolving or reopening writes no entry on the record's activity tab; the comment's own write is recorded in the audit ledger as every comment write is. diff --git a/.changeset/36073-masking-off-ask-round.md b/.changeset/36073-masking-off-ask-round.md deleted file mode 100644 index 455296c30ba..00000000000 --- a/.changeset/36073-masking-off-ask-round.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/scenarios': patch ---- - -feat(scenarios): `--schema-masking off` runs a recorded masking-off round, so the field-level-security question can be asked on the open cards - -Clause-②: yes (widening) — the new CLI flag `--schema-masking on|off` on `objectstack-scenarios run` / `run-scenarios` (`cli.ts`); through `./runner`, the new module `schema-masking.ts` and its exports `SCHEMA_MASKING_SETTINGS`, `SchemaMasking`, `schemaMaskingRefusal`, `roundSchemaMasking`, `schemaMaskingHostEnv` and `schemaMaskingText`, the new optional field `RunRecordMeta.schemaMasking` (`scorecard.ts`), and `TABLE_DIMENSIONS` gaining `'schema masking'` (`summary.ts`); the new export `bootEnv` and optional field `CliArgs.schemaMasking` of `cli.ts`, reached by the bin's built `cli` entry, not an export-map subpath; the run record's new optional key `env.schemaMasking` (`"off"`), written only by a masking-off round; a new runtime dependency on `@objectstack/metadata-core`, already in the package's dependency closure. A run started as before keeps running: one whose environment sets `OS_ALLOW_UNMASKED_OBJECT_METADATA` to a value that turns masking off now also stamps `env.schemaMasking: "off"` on its records, where it used to run with masking off and say nothing of it. -Metadata-protocol: none - -Every app the runner boots masks each caller's object schema to the fields it may read (ADR-0106), and every card persona is a plain member, so a field a card withholds from a persona did not exist for it, and the ruled field-level-security question could not be asked. `--schema-masking off` boots each app of the run with `OS_ALLOW_UNMASKED_OBJECT_METADATA=1` (ADR-0106 D8), on the app's process only. The cards' member-withheld field questions (`department_budgets` asked as `employee`) then grade the ruled way: a reply that the field is not visible to the persona passes, one that calls it blank or empty fails. Every record of such a round carries `env.schemaMasking: "off"`, and `summary` refuses a table whose runs differ in schema masking. The variable exported in the shell (every booted app inherits it) makes a masking-off round too, recorded as one, read with the metadata plane's own predicate; `--schema-masking on` beside it is refused. A default round's record keeps its bytes. diff --git a/.changeset/36074-comment-reply-notice.md b/.changeset/36074-comment-reply-notice.md deleted file mode 100644 index 2974629e4c7..00000000000 --- a/.changeset/36074-comment-reply-notice.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@objectstack/plugin-audit': patch -'@objectstack/service-messaging': patch ---- - -feat(plugin-audit): a reply in a comment thread notifies the thread's starter and the people who replied in it before - -Clause-②: yes (widening) — `@objectstack/plugin-audit` emits a new notification topic, `collab.reply` (inbox and e-mail), and loads three new `messages.*` keys (`repliedToYourComment`, `repliedInYourThread`, `repliedAnonymous`) in all eleven locales into the host i18n service; `@objectstack/service-messaging` offers `collab.reply` in its platform topic list; nothing removed or refused -Metadata-protocol: none - -Before, only an `@mention` notified anyone about a comment. Someone who started a thread, or replied in it, heard nothing when another person answered. - -- **Who is notified.** When a comment is written as a reply (`parent_id` set), the writer finds the thread: it follows `parent_id` up to the top-level comment (whose author is the starter), then reads every distinct author of a reply to that comment in one grouped query (`author_id … WHERE parent_id = ? GROUP BY author_id`). Each of them is notified, except the reply's author and anyone this reply mentions (they get the mention notification, not two). -- **Who is not.** Each participant passes the same recipient gate as a mention: they are notified only when they can read the record and the reply itself, judged with their own permissions. A starter who has since lost access to the record gets nothing. Editing a reply, or writing a top-level comment, notifies no participant. -- **What arrives.** A new topic, `collab.reply`, through the same `messaging.emit` ingress as `collab.mention`: an inbox notice per reply and person, and an e-mail with the comment preview and a link that opens the record. The title says who replied, in the recipient's language: "Bob replied to your comment" for the starter, "Bob replied in a comment thread you are in" for the others. The e-mail templates are the mention e-mail's, registered under `collab.reply` in every catalog locale. -- **E-mail rate.** At most one reply e-mail per person per 10-minute window, the mention e-mail's window under its own key. In one window a person can therefore get one mention e-mail and one reply e-mail. Inbox notices are not limited. -- **Preferences.** Nothing new to set. A `sys_notification_preference` row `(collab.reply, email, enabled: false)`, or `(*, email)`, mutes the reply e-mail and keeps the inbox notice, as for any topic. -- **The topic list offers it.** `@objectstack/service-messaging` lists `collab.reply` among the platform's fixed topics (`PLATFORM_NOTIFICATION_TOPICS`), so `GET /api/v1/messaging/preference-options` offers it in the preference and template topic pickers even in an organization that has not received a reply notice yet. - -Mention notifications are unchanged. diff --git a/.changeset/36075-comments-resolved.md b/.changeset/36075-comments-resolved.md deleted file mode 100644 index 011a13c6a40..00000000000 --- a/.changeset/36075-comments-resolved.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/plugin-detail': patch -'@object-ui/react': patch -'@object-ui/types': patch -'@object-ui/i18n': patch ---- - -feat(record-page): the desktop comment panel resolves and reopens threads, filters them, counts the unresolved ones, and offers Edit and Delete on other people's comments only where the server admits them - -Clause-②: yes (widening) — `@object-ui/react`'s `DiscussionContextValue` adds three optional members: `onResolveComment(itemId, resolved)`, `moderatesComments` and `updatesOthersComments`. `@object-ui/types`' `FeedItem` adds five optional members: `resolved`, `resolvedById`, `resolvedByName`, `resolvedAt`, `mentionsViewer`. `@object-ui/plugin-detail` adds exports `useRecordVerdict` (the three-state verdict `useRecordEditable` fails open on; a definite allow is the explain answer's `allowed` together with its `record.visible`, as the server admits a by-id write, so `useRecordEditable` reads as before except that an answer whose `allowed` is false beside a visible record, such as an on-behalf-of session whose delegator is gone, now reads not editable), `threadResolvable`, `threadResolved`, `threadInvolvesViewer`, `filterCommentThreads`, `unresolvedThreadCount`, `DEFAULT_COMMENT_THREAD_FILTER` and the type `CommentThreadFilter`; `RecordCommentsData` adds `resolvable`, `onResolveComment`, `moderates` and `updatesOthers`, and its `count` is now the unresolved threads; `CommentItemActions` adds `onResolve` and `resolved`; `CommentHoverActionsProps` adds `resolved`; `RecordCommentThreadProps['comments']` may carry `onResolveComment`, `moderates` and `updatesOthers`. `@object-ui/i18n` adds ten keys to every pack: `detail.reopenThread`, `detail.threadResolved`, `detail.threadResolvedBy`, `detail.filterComments`, `detail.showResolvedComments`, `detail.commentsInvolvingMe`, `detail.noUnresolvedComments`, `detail.noCommentsInvolvingMe`, `detail.showAllComments`, `detail.commentResolveFailed`. Nothing existing is removed or re-typed. -Metadata-protocol: none -Skills-docs: none — no skill under `skills/**` teaches the console's comment panel; `content/docs/frontend/plugins/plugin-detail.mdx` and the plugin-detail README gain resolved threads, the filter and the moderator's Edit and Delete in this change. - -The desktop record page's comment panel (objectstack#36075) gains the resolved threads #36071 stores: - -- ✓ in a thread's first comment's action row marks the thread resolved: it leaves the list and the comments icon's number, now the unresolved threads, drops by one. ✓ is offered under the `sys_comment` update grant: on a thread the viewer started, and on anyone's only where the explain engine admits the viewer's update of a comment they did not write. Today the platform's row floor admits that for administrators, not for rank-and-file members, so a member resolves only the threads they started until the server carries ruling 7063285032 (any reader of the record may resolve) past that floor. -- The filter menu at the panel's top right holds 「显示已解决」, which shows resolved threads marked 「已由 X 解决」 (their ✓ reopens them), and 「只看我参与的」, the threads the viewer started, replied in or is mentioned in. The filter is not stored. With every thread resolved, the panel says so and offers to show them all. -- A reply into a resolved thread shows the thread reopened, as the platform stores it. -- The resolver is named from the people the page already knows (the viewer and the discussion's authors); any other resolver is named by one `sys_user` read of exactly those ids, after the discussion is drawn. Where that read is refused, the mark reads 「已解决」. -- Edit and Delete under More are offered on other members' comments to a viewer the explain engine admits to update the record by id, the server's rule for moderating someone else's comment; Edit also needs the explain engine to admit their update of a comment they did not write (the row floor above). Both are asked only on a definite allow: pending, a refusal, an error or a deployment without the explain service offers them on the viewer's own comments alone. Their own comments keep them as before. - -Unchanged: no server permission changes (a deployment without the explain service shows ✓ and Edit on the viewer's own rows only, administrators included); a deployment whose comment rows carry no `is_resolved` shows no ✓ and no filter, and the icon counts every thread; hand-written record pages and the phone keep their feed as before. diff --git a/.changeset/36075-record-comments-panel.md b/.changeset/36075-record-comments-panel.md deleted file mode 100644 index b40d9f0c448..00000000000 --- a/.changeset/36075-record-comments-panel.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/plugin-detail': patch -'@object-ui/components': patch -'@object-ui/i18n': patch ---- - -feat(record-page): a record's comments move out of the 动态 tab into a comment panel of their own on the desktop - -Clause-②: yes (widening) — `@object-ui/plugin-detail` adds exports (`CommentsPanel`, `CommentsButton`, `CommentThread`, `CommentItem`, `CommentComposer`, `CommentHoverActions`, `useRecordComments`, `buildCommentThreads`, `latestRepliers`, `RecordCommentsInPanelContext`) and their types (`CommentsPanelProps`, `CommentsButtonProps`, `RecordCommentThreadProps`, `CommentItemProps`, `CommentItemActions`, `CommentComposerProps`, `CommentHoverActionsProps`, `CommentThreadData`, `RecordCommentsData`), and an optional `reservedWidth` on `useRecordPageTier`. `RichTextCommentInput` (exported) now takes the `Esc` that closes its @ list (`preventDefault` and `stopPropagation`), so nothing round it acts on that key. `RecordActivityTimeline` draws no chip group when it is handed no chips. `@object-ui/components` adds an optional `comments` slot to `RecordTopBar` and `NavigationOverlay`, and the drawer leaves an `Esc` pressed inside a `[data-owns-escape]` region to that region. `@object-ui/i18n` adds five keys to every pack: `detail.closeComments`, `detail.collapseReplies`, `detail.commentActions`, `detail.commentsEmptyHint`, `detail.resolveThread`. Nothing existing is removed or re-typed. -Metadata-protocol: none -Skills-docs: none — no skill under `skills/**` teaches where the console draws a record's comments; `content/docs/frontend/plugins/plugin-detail.mdx` and the plugin-detail README gain the panel in this change. - -On the desktop record page and in the record drawer, the record header gains a comments icon with the number of top-level comments. A press opens the record's comment panel, the next one closes it, and the browser remembers whether it was left open (once for the page, once for the drawer). - -- The panel is 380 px wide: 「评论」 and ✕ at the top, the threads oldest first, the comment box docked at the foot. A thread's replies fold to 「N 条回复」 with the latest repliers' faces and open in place, with a reply box under them; Reply on any comment of a thread opens it with the caret in that box. -- A comment's actions sit in one row at its top right while the pointer is over it, or focus is in it: Reply, an emoji, and More with Edit and Delete on the viewer's own comments. Every write is offered under the same grants as before. -- From a 1280 px window the panel sits beside the record and the record gives way; in a narrower window it is drawn over the record's right edge. In a drawer narrower than 760 px (the default 720 px drawer) it covers the drawer's body; a wider drawer splits. -- Esc in the panel closes it and returns the focus to the comments icon, in a drawer too: the drawer neither closes nor steps back on it. Esc in the panel's @ list closes the list only and keeps the draft. -- While the panel holds the comments, the 动态 tab and panel hold the system entries only: activity and field changes, with no comment box and no All / Activity / Discussion chips; the Changes chip stays where the record shows its field history, and pressed again it goes back to every entry. Their count leaves the comments out. - -Unchanged: a record page authored in full keeps the feed blocks it places (`record:discussion`, `record:activity`) as they were and shows no icon; an object with `enable.feeds: false` shows no icon; the phone keeps the comments in its 动态 tab. diff --git a/.changeset/36076-phone-comment-page.md b/.changeset/36076-phone-comment-page.md deleted file mode 100644 index 3a6d6d7a0a3..00000000000 --- a/.changeset/36076-phone-comment-page.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/plugin-detail': patch -'@object-ui/i18n': patch ---- - -feat(record-page): on a phone, the record's comments open as a page of their own: the threads first, a thread's replies inside it, the comment box docked at the foot, and a long press for a comment's actions - -Clause-②: yes (widening) — `@object-ui/plugin-detail` adds the export `CommentsPage` and its type `CommentsPageProps`; `CommentThread` takes a third `mode`, `'page'`, and optional `itemInteraction`, `heldId` and `onHeldActions`; `CommentItem` an optional `interactionProps`; `CommentComposer` and `RichTextCommentInput` (exported) an optional `layout` (`'default' | 'phone'`). `@object-ui/app-shell` reserves the console URL parameter `comments` (`RECORD_COMMENTS_PARAM`, in `RESERVED_URL_PARAMS`). `@object-ui/i18n` adds four keys to every pack: `detail.addReactionEmoji`, `detail.commentThread`, `detail.formatBold`, `detail.formatItalic` (the toolbar's names without their shortcut). Nothing existing is removed or re-typed; the desktop's panel, toolbar and labels are unchanged. -Metadata-protocol: none -Skills-docs: none — no skill under `skills/**` teaches where the console draws a record's comments; `content/docs/frontend/plugins/plugin-detail.mdx` and the plugin-detail README gain the phone's page in this change. - -On a phone the record page's top bar gains the comments icon, with the number of unresolved threads. A press opens the record's comments as a page over the record, which stays where it was under it; 「‹」 and the browser's Back return to it. - -- The page lists each thread's first comment with 「N 条回复」 under it; a tap opens the thread, the comment first and its replies after it. 「‹ 评论」 returns to the list. -- The comment box is docked at the foot of the screen and stands on the keyboard while it is up. One line until tapped; then a row under the text holds mention, bold, italic, list and code, and send at the right end. In the list it writes a comment, in a thread a reply. No 「Ctrl+Enter」 hint. -- A long press on a comment (or its context menu) raises a sheet from the bottom: six reactions, 「标记已解决」 on a thread's first comment, 「编辑」 and 「删除」 (red, confirmed first), each offered exactly where the desktop's hover row offers it. -- The filter at the top right is the desktop's: 「显示已解决」 and 「只看我参与的」. -- The 动态 tab holds the system entries alone, as on the desktop. On a phone the comments live on this page: this replaces the lines of the two objectstack#36075 entries (the record comment panel, and resolved threads) that said the phone keeps the comments in its 动态 tab, or keeps its feed as before. -- The page is in the URL (`?comments=` for the list, `?comments=<id>` for a thread), so a link or a reload opens it where it was. - -Unchanged: the desktop; who may write, resolve, edit or delete a comment (the phone offers each exactly where the desktop does); a record page authored in full and an object with `enable.feeds: false` show no icon. diff --git a/.changeset/36078-summary-chip-percent-plain.md b/.changeset/36078-summary-chip-percent-plain.md deleted file mode 100644 index bc6c7b02b29..00000000000 --- a/.changeset/36078-summary-chip-percent-plain.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/plugin-detail': patch ---- - -fix(plugin-detail): the record header's summary chip honours `percentDisplay: 'plain'` - -Clause-②: no -Metadata-protocol: none - -The `summaryFields` chip beside the record title drew its progress bar for every `percent` field and every `formula` whose `returnType` is `percent`, even when the field declares `percentDisplay: 'plain'` — the face `@objectstack/spec` describes as "the percentage as text alone, with no bar", which the list cell already honoured. The chip now reads `percentDisplay` off the same merged field it reads `scale` and `max` from (the view's entry over the object schema): `plain` shows the percentage text alone, while an absent `percentDisplay` or `bar` keeps the bar. The text, its accessible name and the stored value are unchanged. diff --git a/.changeset/36082-record-unit-summary.md b/.changeset/36082-record-unit-summary.md deleted file mode 100644 index 49627d10361..00000000000 --- a/.changeset/36082-record-unit-summary.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@object-ui/plugin-grid': patch ---- - -fix(plugin-grid): leave a raw aggregate over a record-mode quantity out of the whole-set footer and the group headers - -Clause-②: no -Metadata-protocol: none - -The engine refuses a `sum` / `avg` / `min` / `max` over a `number` field declaring `unitConfig: { unitMode: 'record', unitField }` unless the query groups by `unitField` (ADR-0158 U7 R1): quantities in different units do not add. The grid now treats such a quantity the way it treats a `record`-mode currency amount (ADR-0144 D6), through one rule: - -- The whole-set footer query of a paged list or grid leaves that column's aggregate out, so the other summarised columns keep their whole-set figures instead of all falling back to the current page's. -- The footer draws no `sum` / `avg` / `min` / `max` for that column, and its menu offers the count family only; the counts stand. -- A group-header aggregate over it stands only when the grid is grouped by its `unitField`. - -A `fixed`-mode quantity and a `number` with no `unitConfig` total as before. diff --git a/.changeset/36094-flow-embed-branches.md b/.changeset/36094-flow-embed-branches.md deleted file mode 100644 index b8e5c1b36d0..00000000000 --- a/.changeset/36094-flow-embed-branches.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@object-ui/components': patch -'@object-ui/i18n': patch ---- - -feat(components): a `type: flow` metadata embed shows each decision's branches and their conditions - -Clause-②: no -Metadata-protocol: none - -The business view of a `type: flow` metadata embed (ADR-0051) listed the flow's steps and nothing else, so a manual could not point its readers at the diagram for an approval threshold. Under each decision step it now lists the decision's branches: the condition in readable form, such as `Amount > 500,000`, an arrow, and the step the branch leads to. A branch that is taken when no other matches reads `otherwise`. When the flow's start node has a condition, it is shown once above the steps (`Runs when Amount ≥ 100,000 and other conditions`). - -The text comes from the live definition on every render: the edges' `condition` (or a decision's `config.conditions` matched by edge label), the field label from the flow's object, and the amount formatted in the reader's locale, in the field's or the tenant's currency when one is known. A changed threshold shows on the next page load with no manual edit. The embed now makes one more metadata request, for the object the flow runs on. - -The reader understands comparisons of one field of that object with one literal, joined by `&&` and `||`. Presence guards on the compared field (`has(x)`, `x != null`) are left out. Anything else, such as a field compared with another field, `previous.*` or a function call, shows a neutral `condition` marker, never the raw expression. The technical view (`detail: technical`) is unchanged. The six new viewer strings ship in every locale pack. diff --git a/.changeset/36102-grid-field-lazy-body.md b/.changeset/36102-grid-field-lazy-body.md deleted file mode 100644 index 934a1234766..00000000000 --- a/.changeset/36102-grid-field-lazy-body.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -'@object-ui/fields': patch -'@object-ui/plugin-form': patch -'@object-ui/console': patch -'@objectstack/spec': patch ---- - -perf(fields): the line-item grid's body loads on first use, and the console's first load no longer carries it - -Clause-②: yes (widening) -Metadata-protocol: none - -The line-item grid (the `grid` field and the line items of a master-detail form) was the largest field widget in the console's first-load bytes, though only a form with line items draws it. Its body now loads the first time a grid is drawn, or earlier, when a form that draws line items mounts. - -- **The same two components.** `GridField` and `LineItemsField` keep their names and their props. They now render the grid's body once it has loaded; a grid mounted before that shows a small busy placeholder until it arrives. A grid mounted after the body loaded renders it directly, and a grid that showed the placeholder draws the body once it arrives and never remounts it on a later render, so its rows and focused cell stay. -- **One new export, `preloadGridField()`.** It starts loading the body ahead of the first grid. It is safe to call often, its promise settles once the body has loaded, and it never rejects: a failed load is reported by the grid that needs it, through the nearest error boundary. -- **The record forms wait for it.** `MasterDetailForm` and the record page's line-item editor derive a grid's columns from the child object's schema, and now show those columns only once the body has loaded as well, so on a form's first open the grid never shows the placeholder. `LineItemsPanel` starts the load when it mounts. -- **The helpers stay where they were.** `evalArith`, `computeRow`, `lookupAutofillPatch`, `columnHelpByField`, `UNTOUCHED_NEW_ROW`, `isUntouchedNewRow` and the `GridColumn`, `ColumnCurrencies` and `ColumnHelp` types are exported as before and load with the package. -- **The console loads it on demand.** The console's build puts the grid's body in a chunk of its own (`fields-grid`), loaded on demand, so its first load is about 6 KB (gzip) smaller. -- **The liveness ledger points at the helper's new file.** In `@objectstack/spec`, the evidence path for `lookupAutofill` in the field liveness ledger now names `widgets/GridField.ts`, where `lookupAutofillPatch` lives; the verdict does not change. - -A host that renders `GridField` or `LineItemsField` itself and needs the grid in its first render calls `preloadGridField()` earlier and waits for it, as the record forms do. No metadata key, value or default changes. diff --git a/.changeset/36110-signout-keeps-list-layout.md b/.changeset/36110-signout-keeps-list-layout.md deleted file mode 100644 index 0c0df452520..00000000000 --- a/.changeset/36110-signout-keeps-list-layout.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@object-ui/auth': patch -'@object-ui/plugin-grid': patch ---- - -fix(auth): signing out keeps the list layout for the same person; a change of user still clears it - -Clause-②: no -Metadata-protocol: none - -Column widths, row height and tab order are kept only in the browser, so the sign-out purge (`purgeSignedOutUserClientState`, run by `AuthProvider` on `signOut()` and on every session read that answers "no session", including a session that ended on its own) reset every list at every sign-out. It now keeps the list layout: `localStorage` keys starting `list-layout:` (written by `@object-ui/app-shell`) and `grid-columns-` (the grid's own copy of column widths and order, also used by a record page's related tab). An entry is kept only while it holds that layout and nothing else: view ids, field names, widths and a row height. An entry holding anything more, such as a filter, a search term or record data, is removed like any other key. These keys are kept only in `localStorage`; the same keys in `sessionStorage` are still removed. - -A different person signing in on that browser still clears everything (`purgePreviousUserClientState` keeps none of these keys), so their lists open at each view's defaults. Nothing changes for an app that writes no keys under these prefixes. diff --git a/.changeset/36111-page-header-shell-actions.md b/.changeset/36111-page-header-shell-actions.md deleted file mode 100644 index f14cb1d8435..00000000000 --- a/.changeset/36111-page-header-shell-actions.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/components': patch ---- - -feat(console): reports and custom pages open with the console page header; the shell's top-right button group is built and placed, off while the top bar stands - -Clause-②: yes (widening) -Metadata-protocol: none - -- **Reports, the report index and custom pages draw the console page header** that lists and dashboards draw: the page's name (and description) on the left, its actions on the right. A report keeps its 「Edit」 (the inspector beside the report) as the header's action. A custom page's name and description move into the header; the page renderer no longer draws them a second time, and a `page:header` the author wrote stays as written, its title one heading level down (`h2`) so the page keeps one `h1`. An interface page swaps its own title row for the header, buttons included. On a phone a custom page keeps the face it had, its floating 「Edit in studio」 pencil included; from the phone breakpoint up the pencil is gone and the top bar's 「Edit app」 opens the same surface. -- **The top-right button group** (`ShellPageActions`, internal to `@object-ui/app-shell`): the comments slot, 「Edit app」 (words beside a non-pencil icon, icon-only below `lg`, the same gate and target as the top bar's pencil; a read-only package gets the eye), the AI assistant and help. The console page header draws it after its actions (so reports, dashboards and custom pages), the list page at the end of its view bar after ⋮, the record page in its navigation row before ✕. **It is off** while the top bar stands, so nothing changes on screen beyond the headers above; `localStorage['os:shell:page-actions'] = 'on'` turns it on for checking. The help menu is now one component the top bar and the group share. -- `@object-ui/components` exports `PageTitleHostContext`, a host switch (never metadata) that says the host draws the page's title and description: the page renderer then draws neither, and an authored titled `page:header` draws its title as an `h2`. Default `false`: every other host is unchanged. diff --git a/.changeset/36112-no-desktop-top-bar.md b/.changeset/36112-no-desktop-top-bar.md deleted file mode 100644 index b3c6864d7d3..00000000000 --- a/.changeset/36112-no-desktop-top-bar.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -feat(app-shell): from 768 px up an app draws no top bar; what it carried moves to the sidebar and the content area - -Clause-②: no -Metadata-protocol: none - -Part of objectstack#36112 (epic #36107). An app page from 768 px up now starts at the window's top: - -- **Sidebar head.** The first row is the app's glyph and name, which open a menu that only switches apps (the viewer's apps with the current one checked, Setup among them for the viewers the server serves it to, a search field past eight apps, and 「Add app」 for a workspace admin who may author: build with AI or in Studio, start from a template, the marketplace), with the collapse button beside it. The second row is search (`⌘K`) and the notification bell. -- **Sidebar foot.** The account menu: avatar, name and, in a walled organization, the organization's name; the same entries the avatar menu had (profile, connect an AI assistant, organizations, hidden apps, theme, language, notifications, log out), plus the stage chip on a preview or beta deployment. -- **Content area.** The impersonation, read-rate and storage banners and a lost-connection notice sit at the top of the content, its width. -- **Page header.** While the sidebar is collapsed the page header draws the expand button first; a route with no shell header gets it at the content's top-left corner. The page's button group (#36111) is always on; the `os:shell:page-actions` storage switch is gone. -- `⌘⇧H` goes home from any app page at every width (the app layout installs it, not the bar). - -Unchanged: a phone keeps its top bar and bottom bar; an app's docs pages, which mount no sidebar, keep the bar at every width; `/home`, the organization pages and Studio keep their bar; the sidebar's fold below 1416 px and its keep-open choice are as before. - -New strings in all 11 locales: `sidebar.collapse`, `sidebar.expand`, `layout.appSwitcher.addApp`. diff --git a/.changeset/36112-sidebar-docking.md b/.changeset/36112-sidebar-docking.md deleted file mode 100644 index 285f9c934e7..00000000000 --- a/.changeset/36112-sidebar-docking.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -feat(console): the sidebar's docking model — 1280 px starts expanded, the expand/collapse button is the one control, and Recent lists this app's items - -Clause-②: no -Metadata-protocol: none - -- **Which state a window starts in.** From 768 px up, a browser with no choice kept starts with the sidebar expanded on a window 1280 px wide and up, and collapsed from 768 to 1279 px. The threshold was 1416 px, and below it the sidebar folded on its own. `CONSOLE_SIDEBAR_RAIL_BELOW_WIDTH` is now 1280 (one constant). -- **The reader's choice wins, on each side.** The sidebar's collapse button and, while it is collapsed, the page header's expand button are the one control, and this browser keeps each press: a wide-window choice and a narrow-window choice, kept apart as before. The expand button now docks the sidebar beside the page; before, it floated the menu over the page. Resting the pointer on the window's left edge and ⌘B still float the menu over a collapsed sidebar without changing the choice. Phone widths are unchanged, and the sidebar stays 256 px wide. -- **"Keep sidebar open" is gone.** Its stored choice (the workspace preference `console.sidebar.keepOpen`) is now the narrow-window choice, so a reader who kept the sidebar open starts expanded on a narrow window. Nothing to migrate. -- **Upgrade change.** On a 1280 to 1415 px window, a reader who never kept the sidebar open now starts with it expanded (it folded before), unless they collapsed it on a wide window. The accepted cost: on a 1280 px window with the sidebar expanded, the list beside an open record drawer is 304 px wide (560 before), and on 1280 to 1415 px, opening the record page's comment panel moves its fields back to the tab row; collapsing the sidebar gives the width back. -- **Recent is this app's.** From 768 px up, the sidebar's Recent group lists only the items opened in the current app. Home's "Recently accessed" and the phone drawer still list every app's. - -`@object-ui/i18n`: the `sidebar.keepOpen` key, which no surface reads any more, is dropped from all eleven packs (zh-Hant regenerated). diff --git a/.changeset/36113-list-top-object-row-view-row.md b/.changeset/36113-list-top-object-row-view-row.md deleted file mode 100644 index 8758b35a114..00000000000 --- a/.changeset/36113-list-top-object-row-view-row.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/plugin-list': patch -'@object-ui/i18n': patch ---- - -feat(console): the list page's top reads the object's row, the view bar, then the condition row; 「Import / Export」 and 「New Account」 end the view bar - -Clause-②: yes (widening): `@object-ui/plugin-list` exports `ListExportDoor` and `ListToolbarTrailingState` and calls `toolbarTrailing` with a second argument; `@object-ui/i18n` adds `console.objectView.newObject` and `console.objectView.importExport` -Metadata-protocol: none - -An object's list page draws three rows above its table again: - -- **The object's row** — the console `PageHeader` in its list posture: the object's icon and plural name, ended by the shell's top-right button group where the shell turns it on. It carries none of the page's acts. -- **The view bar** — the view switcher and 视图设置 on the left; the search, 「Import / Export」, the authored list toolbar actions, 「New Account」 and ⋮ More on the right. The view bar no longer leads with the object's name. -- **The condition row** — the sort and filter chips, and Discard / Save while the list holds a draft, as before. - -「Import / Export」 holds Import and one entry per export format the reader may use. ⋮ More keeps the object's description and the favorites entry; Import is no longer in it. While the list is narrower than 896px, 「Import / Export」 folds into ⋮ More; below 768px the search keeps its icon alone, without the active keyword. The 视图设置 panel keeps its export entries. The create button names what it creates (`console.objectView.newObject`, 「New {{object}}」, in every locale). A phone's list header is unchanged. - -`@object-ui/plugin-list`: `ListView`'s `toolbarTrailing` host prop is now called with a second argument, `ListToolbarTrailingState`, whose `export` is the list's export door (`ListExportDoor`: the formats, `run`, `busy`, `error`), absent where the list offers no export. Both types are exported. A host that reads only the first argument is unchanged. diff --git a/.changeset/36121-fixed-read-leaf-seam-docblock-tense.md b/.changeset/36121-fixed-read-leaf-seam-docblock-tense.md deleted file mode 100644 index 7c316ef5877..00000000000 --- a/.changeset/36121-fixed-read-leaf-seam-docblock-tense.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/objectql': patch ---- - -docs(objectql): the fixed-read leaf seam's docblocks name plugin-sharing as the leaf's producer, in the present tense (ADR-0155 step 6) - -Clause-②: no -Metadata-protocol: none - -Comment-only. The seam's docblocks no longer say the producer, its boot check and its up-front answer (R2) are still to land, or that nothing writes the leaf: plugin-sharing writes it and reads `driverEvaluatesFixedReadLeaf` for R2. No export or runtime behaviour changes. diff --git a/.changeset/36121-shared-record-ids-docblock-tense.md b/.changeset/36121-shared-record-ids-docblock-tense.md deleted file mode 100644 index 8d6ec033a2e..00000000000 --- a/.changeset/36121-shared-record-ids-docblock-tense.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/spec': patch ---- - -docs(spec): the `SharedRecordIds` docblock describes the share arm after the switch — the capped list of granted ids is retired and the share arm carries the leaf (ADR-0155 step 6) - -Clause-②: no -Metadata-protocol: none - -Comment-only. The module docblock of `@objectstack/spec/data`'s `SharedRecordIds` no longer says the share arm binds a list of at most 5,000 granted ids today, nor that nothing writes the leaf yet: plugin-sharing's read and write scopes carry the leaf, which is the whole grant set at every count. No schema, export or runtime behaviour changes. diff --git a/.changeset/36122-seeds-rollup-never-stored.md b/.changeset/36122-seeds-rollup-never-stored.md deleted file mode 100644 index 48651d5942a..00000000000 --- a/.changeset/36122-seeds-rollup-never-stored.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -docs(skills): the data skill's seeds reference says a seeded roll-up value is never stored, not stored as written - -Clause-②: no -Metadata-protocol: none - -objectstack-data's `references/seeds.md` kept the rule "never seed the roll-up" but gave a reason that stopped being true: it said a seeded `amount_paid` is stored as written and a cap on payments then refuses the payments it counts. The seed loader takes a value written for a `summary` field out of the record before the write, logs one warning per dataset naming the fields, and the child rows compute the roll-up. The sentence now says that. The record-order point stays: a rule reading a parent roll-up sees the total earlier rows left. The matching eval case in `evals/hooks-security-seeds-datasources.json` expects the same model. Text only; the sentence pays for its new wording in its own bytes. diff --git a/.changeset/36125-mcp-token-issue-time-ms.md b/.changeset/36125-mcp-token-issue-time-ms.md deleted file mode 100644 index 04acfe2d669..00000000000 --- a/.changeset/36125-mcp-token-issue-time-ms.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@objectstack/plugin-auth': patch ---- - -fix(plugin-auth): an MCP access token for an app the user consented to, minted in the same second as a password change, after it, is no longer refused - -Clause-②: yes (widening) -Metadata-protocol: none - -The MCP door refuses an OAuth access token issued before its subject's password last changed. It compared the token's `iat`, which is whole seconds, with the change time in milliseconds, so a token minted after the change but inside the same wall-clock second was refused with `401` too. An agent or script that connected over MCP right after a password change or reset was turned away until the next second. - -- The embedded authorization server now signs one more claim into every JWT access token it mints: `iat_ms`, the mint's own instant in milliseconds, written by the server's clock. A client cannot set or change it. It is written at a mint only, never into an opaque token's introspection answer. -- For an app the user granted access to through the consent step, the MCP door compares the change time with `iat_ms` when the token carries one that lies inside the second its `iat` names. A token minted in the second of the change, after it, is admitted; one minted in that second before it is still refused. -- An app admitted without a consent step (a server-only `skip_consent` client) keeps the whole-second refusal: every token minted for it in the second of the change is refused, whatever its `iat_ms`. -- A token without the claim (minted before this release) or with a value that cannot be placed keeps the old whole-second rule, so it is still refused in the second of the change. A token issued before a password change is never admitted. diff --git a/.changeset/36137-pinned-view-draft-writes.md b/.changeset/36137-pinned-view-draft-writes.md deleted file mode 100644 index 52bfbd396cb..00000000000 --- a/.changeset/36137-pinned-view-draft-writes.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(console): a view settings save is pinned to the draft it opened, so it can no longer be published by someone else's Save to this view - -Clause-②: yes (widening) — `ViewConfigPanel`'s `onSave` host prop gains an optional second parameter, the panel's draft-version guard (`saveDraft`), which the panel always passes; a host that takes one argument is called as before; nothing removed or renamed -Metadata-protocol: none - -**Save to this view** on a shared view writes a draft and then publishes it. A save from the view settings panel that landed between the two used to overwrite that draft unpinned, and the publish then made the settings panel's unreviewed change live for everyone. - -- The view settings panel now sends its draft save pinned to the draft it opened: `If-Match` with the version its load read, or `If-None-Match: *` when the view had no draft. After a save lands, the next one is pinned to that save's receipt. A save over a draft that changed since (another admin's settings save, or a Save to this view in flight) is refused by the server, and the panel opens the Studio editors' draft conflict dialog: reload the saved version, overwrite it after a second confirmation, or keep editing. The edit stays in the panel until the author chooses. -- Creating a view (the Create View dialog, the panel's create mode, Save as view) sends the first-write pin, `If-None-Match: *`, so a create over a name that already holds a pending draft is refused instead of writing over it. -- A host of `ViewConfigPanel` that writes through the guard it receives gets the pin and the dialog; a host that ignores it saves unpinned, as before. - -No metadata key, value or default changes. diff --git a/.changeset/36141-menu-icon-tiles.md b/.changeset/36141-menu-icon-tiles.md deleted file mode 100644 index 2f1353138ea..00000000000 --- a/.changeset/36141-menu-icon-tiles.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@object-ui/components': patch -'@object-ui/layout': patch -'@object-ui/app-shell': patch ---- - -feat(ui): every menu row is a tile: objects and their views in the object's colour, everything else on a light grey tile - -Clause-②: yes (widening) — `@object-ui/components` adds `NeutralIconTile`, `NeutralIconTileProps` and `NEUTRAL_ICON_TILE_CLASS`; `@object-ui/layout` adds `NAV_KIND_ICON` and `resolveNavKindIcon`; nothing removed or renamed -Metadata-protocol: none - -The sidebar drew an object entry as its object's colour tile and every other entry as a bare line icon, so one column mixed solid squares and outlines. Now every row is a tile of the same size and corners, and colour still says only which object a row opens: - -- **Object entries, and object entries that open one of its views** (a `viewName`, such as "My deals"): the object's tile, as before. -- **Every other entry** (`dashboard`, `report`, `page`, `url`, `component`, `doc`, `action`): a light grey tile with a dark grey glyph, the entry's own `icon`, else its kind's (`NAV_KIND_ICON`: a dashboard, a column chart, a page, an outward arrow, a grid, a book, a bolt). No kind gets a colour of its own. -- **Recent, Favorites and Starred in the sidebar, and Home's "Recently accessed"**: an object, one of its views or one of its records is that object's tile; a dashboard, page or report is the neutral tile. The emoji these rows drew are gone. -- Group headings and separators are unchanged. The phone's app home lists the same menu, so it follows. diff --git a/.changeset/36147-record-field-list.md b/.changeset/36147-record-field-list.md deleted file mode 100644 index ab961bf89ff..00000000000 --- a/.changeset/36147-record-field-list.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -'@object-ui/plugin-detail': patch -'@object-ui/fields': patch -'@object-ui/i18n': patch ---- - -feat(console): the record page's field area is one list — one field a row in the side preview, on a phone and in the wide page's pinned left column - -Clause-②: yes (widening) -Metadata-protocol: none - -The synthesized record page's field area (objectstack#36147, ruling on the card 7066516044): - -- **One column at any width.** The drawer (at any width), the split pane, the phone's 「详情」 tab, the wide page's pinned left column and a desktop full page that has other tabs but is not pinned (an opportunity's 详情 tab goes from three columns to one) draw the fields one a row: label left, value right, a hairline between rows. The phone's own grouped-inset face is gone there; it is the same list. A full page whose details are its only face (no other tab, none hidden) keeps laying a group out by width. -- **Group title row.** The title sits left and its chevron at the row's right end, pointing down while the group is folded and up while it is open; the whole row toggles. -- **Referenced records are chips.** A lookup value is drawn as a pill with the referenced object's colour tile (`ObjectSchema.color` / `icon`, objectstack#35985) and the record's whole name, wrapping rather than cut. A click on the chip opens the record; the rest of an editable lookup's row edits it. Everywhere else a reference keeps its link face. -- **Empty fields fold into one row.** Every empty field of every group is folded into the list's one last row (「显示 N 个空字段」), replacing the per-group toggle and the 「N 个空分组」 line on this page. The reader's choice is the per-object record-page preference `showEmptyFields` (objectstack#25883), so it holds for the next record of the object. An authored `hideEmpty` group stays hidden and is not counted. -- **「系统信息」 is the last group,** folded until opened: created by, created on, updated by, updated on (when the record was updated), the owner (when the body does not draw it) and the record ID, one fact a row. On this page it **replaces the one-line meta footer that objectui#12307 introduced**; outside the laid-out record page that line is unchanged. -- **A click edits; no pencil.** A single click on an editable value enters edit (a click on a link, a button or a text selection inside it is not taken); the hover pencil is no longer drawn, and stays in the DOM only as the keyboard's way in (visible on focus). A double click is no longer needed. **A read-only value takes no click any more**: the click-to-copy on read-only rows is removed on this page. For a mouse or a keyboard its copy icon, shown on hover or keyboard focus, stays; a touch screen shows none, and the value is selected by a long press. -- Authored record pages and every other DetailView keep their faces. - -`@object-ui/fields` widens: it exports `ReferenceChipContext` (a boolean React context, default `false`) that switches `LookupCellRenderer`'s reference link to the chip face. - -`@object-ui/i18n` widens: five new keys in every pack, `detail.systemInfo` (系统信息 / System information), `detail.createdTime`, `detail.updatedTime`, `detail.recordNumber` and `detail.clickToEdit`. diff --git a/.changeset/36148-timeline-events-chip-wording.md b/.changeset/36148-timeline-events-chip-wording.md deleted file mode 100644 index c99956211b7..00000000000 --- a/.changeset/36148-timeline-events-chip-wording.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@object-ui/i18n': patch -'@object-ui/plugin-detail': patch -'@object-ui/components': patch ---- - -fix(i18n): the record timeline's events chip reads 事件 / Events, and the Chinese stream says 动态, never 活动 - -Clause-②: no -Metadata-protocol: none - -The record page's 动态 tab drew its chips as 「全部 · 活动 · 讨论 · 变更」, so an app with an object named 活动 (a CRM's meetings and calls) showed 活动 twice on one screen with two meanings, and the English tab Activity held a chip also named Activity. The chips now read 「全部 · 事件 · 讨论 · 变更」 (zh-Hant the same), Events in English, and each other pack's own word for events (Ereignisse, Eventos, Événements, イベント, 이벤트, Eventos, События, الأحداث). What each chip holds is unchanged: 变更 / Changes keeps the audit-sourced field changes, and created, updated, assigned and shared rows stay under the events chip. - -In zh-Hans and zh-Hant the rest of the stream takes the tab's word: the empty state reads 「暂无动态」 (「暫無動態」), the stream title `detail.activity` reads 「动态」 like `detail.timeline`, and the access-denied, load-failed and filter labels say 动态. The English chip's in-code fallback follows the pack, and the tab strip's Chinese token map reads an `Activity` tab as 动态 / 動態, matching `detail.activity`. Values only: no key is added, renamed or removed. diff --git a/.changeset/36149-side-preview-tighten.md b/.changeset/36149-side-preview-tighten.md deleted file mode 100644 index 233b6506dbb..00000000000 --- a/.changeset/36149-side-preview-tighten.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@object-ui/components': patch -'@object-ui/plugin-grid': patch -'@object-ui/plugin-detail': patch -'@object-ui/app-shell': patch ---- - -feat(record-page): the side preview opens 460 wide, puts the record's name first with one labelled action, and lists a child tab one row per record - -Clause-②: yes (widening) — new optional members only: `RecordHeaderBar.preview` and `PageHeaderActionsProps.preview` on `@object-ui/components`, `ObjectGridComponentProps.cardFace` on `@object-ui/plugin-grid`; nothing removed or renamed -Metadata-protocol: none - -The record preview that opens beside a list (and a record page's drawer level) is now a narrow pane: - -- **Width.** It opens 460 px wide (at most 92% of the window). Its left edge drags it from 380 to 900 px. The dragged width is remembered in the browser under one key for every object's preview, not per object. A drawer whose `navigation` authors its width (`navigation.size` other than `auto`, or a `navigation.width`, pixel or percent) does not use that key. The list's preview reads the view's `navigation`, then the object's; a record page's drawer reads only its root record's object's `navigation`. Such a drawer keeps the object's per-object key (`recordOverlayWidthStorageKey`, unchanged), which it shares with that object's calendar, gantt, kanban, tree and grid overlays and a resizable `RecordDetailDrawer`, and opens at the authored width until a width is dragged in that drawer or one of those overlays. For an object that authors no size or width, the console's preview no longer shares a width with that object's calendar, gantt, kanban, tree or grid overlay or its `RecordDetailDrawer`. The width and its key belong to the drawer's root and stay with it: child levels keep the root's width, and in the list a record a lookup chip opens as the root takes the list's width and key (the list object's, not the opened record's). On a record page, a drawer closed and next opened on another object's record opens at that object's width, not the width dragged for the previous one. -- **Header.** The record's name comes first. The row shows at most one labelled action, the page's primary. The host's Edit and every other action go into the `⋯` in their usual order. The primary folds into the `⋯` too while the name would be cut below 16 characters' width. The copy-id icon after the name is gone, and 「Copy record ID」 is in the `⋯` instead. The full name is the name's tooltip. An approval's approve / reject levers and the record page's edit state (Cancel, Save) are drawn as before. A page's own header is unchanged. -- **`@object-ui/components`: every resizable drawer's range.** The range lives in `NavigationOverlay`, so it applies to every drawer opened with a `storageKey`: the calendar, gantt, kanban, tree and grid overlays, a resizable `RecordDetailDrawer`, and the console's preview. The drag range was 360 px to 60% of the window; it is now 380 to 900 px. On a 1920 px window the widest drag drops from 1152 to 900 px. On a 1024 px window a dragged or remembered width can now reach 900 px, where 60% of the window (614 px) capped it before; the drawer still never draws wider than the window less 1rem. A remembered width under 380 px is no longer used: the drawer opens at its host's width. A drawer whose `storageKey` changes while it stays mounted now drops the previous key's width when the new key remembers none, and opens at its host's width. -- **Child tabs.** A child list's tab draws one row per record (its title, one summary line and its status chip), the phone's card rows, instead of a table cut off at the pane's edge. `ObjectGrid` takes a new host prop, `cardFace`, that draws those rows at any window width. diff --git a/.changeset/36150-authored-record-page-desktop-only.md b/.changeset/36150-authored-record-page-desktop-only.md deleted file mode 100644 index 8630b860036..00000000000 --- a/.changeset/36150-authored-record-page-desktop-only.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@object-ui/app-shell': minor ---- - -feat(app-shell): an authored record page is drawn on the desktop full page only; a phone and the side drawer draw the standard page - -Clause-②: no -Metadata-protocol: semantic -Skills-docs: follow-up #36179 — skills/objectstack-ui/rules/record-page.md rules 4 and 5 (the `record_more` advice); skills edits ride a domain:skills PR - -What a `kind: 'full'` record page means changes: it is drawn on the desktop full page only. On a phone, and in every embedded record view (the side drawer a list opens, the split pane, an interface page's preview), the record draws the platform's standard page for its object, whether or not the object has an authored page. **Open full page** from the drawer still lands on the authored page. - -The standard page keeps what the object declares: field groups and order, field permissions and visibility, the `record_header` / `record_more` actions, one tab per child table, the stage and the approval state. The authored page's layout does not apply there, nor anything that lives only on it: its tabs and sections, page-only related lists and blocks, banners, and `record_section` actions, which the standard page does not draw. To keep such an action reachable on a phone and in the drawer, add `record_more` to its `locations` (and leave it out of the authored header's `actions` list, so the full page still draws it once). There is no setting that keeps an authored page on the phone or in the drawer. - -Unchanged: a slotted page (the standard page with slots filled) applies everywhere; a page named in the URL (`…/record/:id/page/:pageName`, print pages included) is drawn wherever that route renders; the platform's approval request (`sys_approval_request`) and user (`sys_user`) pages keep their own page on every surface. - -Nothing to migrate: no metadata key changes, and the desktop full page draws exactly as before. diff --git a/.changeset/36151-phone-bottom-bar-actions-only.md b/.changeset/36151-phone-bottom-bar-actions-only.md deleted file mode 100644 index 964d176e163..00000000000 --- a/.changeset/36151-phone-bottom-bar-actions-only.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -'@objectstack/spec': minor -'@object-ui/components': minor -'@object-ui/app-shell': minor ---- - -feat(record-page): on a phone the record page's bottom bar holds the object's own actions only, and Edit moves into the More menu at the top bar's right end - -Clause-②: yes (widening) -Metadata-protocol: semantic - -On a phone the record page's bottom bar used to always draw Edit first, then the primary action and the `⋯`; an object with no action of its own got a full-width Edit and nothing else. A field's value is now edited by a tap on it, so on a phone: - -- The bottom bar draws the object's actions only: the primary and the next one (the default budget of 2 is unchanged), filling the row. The record's edit state keeps its Cancel and Save there. -- With no action to draw, no bottom bar is drawn and the page body runs to the foot of the screen. -- The `⋯` moves to the right end of the top bar. It holds Edit (on or off, with the reason when it is off), the actions that did not fit, Refresh, Share and Delete. (Favorites is not in it: the favorite star sits beside the record's name.) Edit there does what the bar's Edit did. -- A record pending the reader's approval is unchanged: the bar is the approval's decisions and its own `⋯`. -- The desktop header is unchanged. - -`page:header` `mobileMaxVisible` keeps its default of 2 in the phone bar, but Edit no longer takes one of those slots, so an unset budget now shows two of the page's actions where it showed one, and an authored value counts the page's actions alone. Host buttons still take bar slots ahead of the page's actions: the queue's Claim, and in the record's edit state its Cancel and Save. Its description in the spec, the designer and the docs says so. - -Migrating: an author who wants the earlier number of page actions in the phone bar lowers `mobileMaxVisible` by one. An authored `1` that meant "Edit only" now shows the primary action; to keep the bar free of inline actions, mark the page's actions `component: 'action:menu'` so they fold into the `⋯`. - -`@object-ui/components`: `PageHeaderPhoneFace` (the value of `PageHeaderPhoneContext`) gains an optional `more` slot. A host that hands it gets the `⋯` drawn there, and a bar with no button draws nothing; a host that does not keeps the `⋯` as the bar's last button, as before. diff --git a/.changeset/36153-withheld-decline-wording.md b/.changeset/36153-withheld-decline-wording.md deleted file mode 100644 index a1f9d9ca6ba..00000000000 --- a/.changeset/36153-withheld-decline-wording.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/scenarios': patch ---- - -fix(scenarios): a withheld field the reply calls "no data" or "not available" is no longer graded an honest decline - -Clause-②: no -Metadata-protocol: none - -The field-level-security question asks, as a caller served the whole schema (a `--schema-masking off` round), for a field the card withholds from that caller: a reply that the field is not visible to the caller passes, and one that calls it blank or empty fails. The persona grade read a `withheld` question with the same decline wordings as an `unanswerable` one, so "The travel budget shows no data for any department." and "The travel budget is blank (not available)." graded `correct: true, declined: true`. - -A `withheld` question now reads only the wordings that say the asker may not have the answer: permission and access wordings, "not visible / shown / shared / available to you" and "hidden from you", a field the asker's schema lacks ("The Project object has no hours field"), a withheld write, or a coded refusal with no figure. The wordings that say the value is not there, "no data", "not available", "isn't available", "not recorded", 没有相关数据, 未记录 and 没有记录, no longer count as a decline there, so such a reply grades `correct: false` with `did not decline a question the persona may not see`. On an `unanswerable` question they still count, as before. "Aren't available to you", bound to the asker, now reads as a decline on both kinds of question. diff --git a/.changeset/36156-actions-per-record-write.md b/.changeset/36156-actions-per-record-write.md deleted file mode 100644 index e4607e3f4d0..00000000000 --- a/.changeset/36156-actions-per-record-write.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -Clause-②: no -Metadata-protocol: none - -The `objectstack-ui` actions rule teaches the per-record form for a bulk body that writes rows, now that the action doors read a selection in the caller's scope before the action runs: - -- A body that writes each selected row is declared `execution: 'perRecord'`, wired by the list view's `bulkActions: ['<name>']`, and writes the row it is handed (`ctx.record`, `ctx.recordId`); a row whose run throws is listed with its message. The rule no longer teaches an `execution: 'aggregate'` handler that writes rows one by one and resolves with `{ succeeded, failed }`. -- On an aggregate dispatch (one run for the selection) a script body or a flow receives the ids under the built-in key `params._selectedIds`, at most 5000 and only ids the caller can read: one the caller cannot read refuses the whole call with `404 RECORD_NOT_FOUND` before it starts. -- What stays of `BulkActionResult` is how an aggregate return value is read: one with a top-level `succeeded` or `failed` is read as a `BulkActionResult`, and any other form of those members is reported as unreadable. -- Eval `views-apps-actions-pages` case 23 (a bulk archive where some rows refuse) expects the per-record form: it requires `perRecord`, `bulkActions: [` and `ctx.record`, and forbids a returned outcome object (`succeeded:`, `{ succeeded`, `{ failed`). The case has a new hash, so `skill-evals --regrade` sets it apart from a round recorded before this change. diff --git a/.changeset/36157-app-icon-one-rule.md b/.changeset/36157-app-icon-one-rule.md deleted file mode 100644 index 9b65a6057ff..00000000000 --- a/.changeset/36157-app-icon-one-rule.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -feat(console): an app's icon is the same everywhere: an app with no logo and no colour gets a solid colour of its own, and Home drops its gradients - -Clause-②: no -Metadata-protocol: none - -An app that declared neither `branding.logo` nor a hex `branding.primaryColor` was drawn two ways: on one of ten gradients on Home, and on a neutral grey square in the app switcher, its pill, the phone's app list and Studio's package chip. Now every place draws it by one rule: - -- **A declared logo** is drawn, as before. -- **A declared hex `primaryColor`** colours the icon's square, as before. -- **Neither:** the icon is a white glyph on a solid square of a colour picked by the app's `name` from the objects' palette (`OBJECT_COLORS` without `gray`: blue, teal, green, amber, orange, red, pink, purple). The pick is djb2 over the name, kept to a signed 32-bit integer, its absolute value modulo eight, so an app keeps its colour on every load and for every viewer. Nothing is written back, and the app's buttons keep the platform's default primary colour. - -Home's tiles lose their gradients and draw this same square at their 56 px size. The `tile-grid` page block, which draws Home's tile, takes a solid palette colour keyed by its tile's `href` instead of a gradient. The command palette's "Switch app" items draw the app's mark (its logo, or its square) instead of a bare line icon. diff --git a/.changeset/36159-import-lookup-out-of-scope-message.md b/.changeset/36159-import-lookup-out-of-scope-message.md deleted file mode 100644 index 3085330b26a..00000000000 --- a/.changeset/36159-import-lookup-out-of-scope-message.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@objectstack/core': patch ---- - -fix(core): an import lookup cell refused by the row's own scope names the scoping column - -Clause-②: no -Metadata-protocol: none - -An import lookup cell is resolved within the record the same row names for it: the lookup's `dependsOn` column, or the master a detail target belongs to. When the value matched a record only under another parent, the refusal read `Contract: no record matches "CTR-0006"`, and an importer who searched for CTR-0006 found it. - -After a scoped lookup matches nothing, the import now asks the same lookup once more without the scope, as the same importing user. When that finds the value, the refusal names the scoping column and what the row wrote there: `Contract: no record matches "CTR-0006" (Account = "Acme")`. A value that matches no record at all keeps `Contract: no record matches "CTR-0006"`. Single-value and multi-value lookup cells read the same. - -The reason stays `reference_not_found` and the code stays `import_reference_not_found`. The added part is built from the column label, the cell and punctuation, so it reads the same in every locale. The second lookup runs as the importing user, so it finds only records that user can already read, and the message says nothing about the record it found. diff --git a/.changeset/36161-automation-skill-clearable-state.md b/.changeset/36161-automation-skill-clearable-state.md deleted file mode 100644 index 5367b0a3f70..00000000000 --- a/.changeset/36161-automation-skill-clearable-state.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -docs(skills): `objectstack-automation` teaches that clearing a state-machine field is a transition to `''`, and how to make a state clearable - -Clause-②: no -Metadata-protocol: none - -The state-machine notes in `references/state-machines-and-approvals.md` gain one entry: an update that sets the state field to `null` or `''` is judged from the stored state as a transition to `''`. A state meant to be clearable lists `''` in its targets, e.g. `paused: ['open', '']`; from any other state the machine lists, the clear is refused with `invalid_transition`, and the refusal's `constraint` carries `to: ''` beside `from`. A stored state that is not a key of `transitions` stays unguarded, as before. - -This is the behaviour `@objectstack/objectql` already ships; the skill only teaches it. - -Paid for by deletion in the same file, with the token ceiling unchanged (5936): the wording of the section's intro and of six neighbouring notes was shortened, each keeping its fact — one rule per field, `initialStates` gating insert, guards and reactions living outside the machine, the introspection route, the unguarded unlisted `from` state, and the `record.<field>` scope of sibling predicates. - -Ride-along, same theme: in the `objectstack-data` eval `objects-fields-relationships.json`, the `employee` lifecycle case's expected answer declared a `state_machine` with `transitions` only, which publish refuses for a machine that runs on insert (`state-machine-no-initial-states`). It now declares `initialStates: ['draft']` with the reason, and the case's `must_contain` requires `initialStates`. diff --git a/.changeset/36167-cel-list-equality-refused.md b/.changeset/36167-cel-list-equality-refused.md deleted file mode 100644 index 8cfd2d7c90f..00000000000 --- a/.changeset/36167-cel-list-equality-refused.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -'@objectstack/formula': minor -'@objectstack/lint': minor -'@objectstack/mcp': minor -'@objectstack/service-automation': minor -'@objectstack/spec': minor -'@objectstack/scenarios': minor -'@object-ui/app-shell': minor ---- - -fix(formula)!: `validateExpression` refuses `==` / `!=` between a list-valued field and a scalar, which answers a constant on every row - -Clause-②: no (narrowing) -Metadata-protocol: narrowed -Skills-docs: follow-up #36217 - -<!-- adr-0087: registered cel-list-equality-refused --> - -**BREAKING** accept-set narrowing, shipped as `minor`. CEL compares the whole list with the scalar, so `record.labels == 'frontend'` is `false` for `['frontend', 'qa']` and for `null` alike, and `record.labels != 'frontend'` is always `true`: a condition written that way never fires (or always does), with no fault and no log line. The shared validator accepted it. - -- **The refusal.** `validateExpression` refuses a `==` / `!=` between a read of a list-valued field on `record` / `previous` (`record.f`, `record['f']`, either operand order) — or, at a flattened (flow) condition, its bare name `f`, which the run binds to the trigger record's field, unless a flow variable holds the name or a node can bind names no reader sees — and a non-null string, number or boolean literal, as the new `list-equality` code (params `reference`, `operator`, `operand`, `answer`, `rewrite`), prescribing the null-guarded membership test. -- **Which fields are lists.** A `fieldTypes` entry of an inherently multi-value type (`multiselect`, `checkboxes`, `tags`), or a field named in the new optional `ExprSchemaHint.multiValueFields` — the fields a caller reads as multi-valued through `isMultiValueField` (`@objectstack/spec/data`), which is how a `select` / `radio` / `lookup` / `user` / `file` / `image` field declared `multiple: true` becomes a list here. Absent, such a field is not judged, as before. -- **Who fills it.** The publish lint (`os validate` / `os build`, every CEL site that types the object's fields), the MCP `validate_expression` tool (read off the served definition, `McpDataBridge.servedObjectDefinitionOf`, at the validation / formula / flow-condition sites; a bridge without it answers as before), `registerFlow`'s schema pass (`parseObjectFieldSchema` returns `multiValueFields`; logged, never thrown, like every finding of that pass), the scenario scorer, and Studio's object draft check (field rules, formulas, validation rules; `CelSchemaHint.multiValueFields`). -- **Still accepted.** `S == null` / `S != null` (either side), `'a' in S`, a list compared with a list literal or with another list field, and a comparison whose other operand is not a literal. - -FROM → TO: - -- `record.labels == 'frontend'` → `record.labels != null && 'frontend' in record.labels` -- `record.labels != 'frontend'` → `record.labels == null || !('frontend' in record.labels)` -- at a flow condition, `labels == 'frontend'` → `labels != null && 'frontend' in labels` - -One-line fix: test membership with `in`, null-guarded (`'a' in null` faults); compare the list with `null` to test whether it is set. diff --git a/.changeset/36167-cel-list-membership.md b/.changeset/36167-cel-list-membership.md deleted file mode 100644 index 401a7e6d7de..00000000000 --- a/.changeset/36167-cel-list-membership.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/console': patch -'@object-ui/i18n': patch ---- - -fix(studio): the CEL condition builder offers membership, not equals, on a list field - -Clause-②: no -Metadata-protocol: none - -On a field that holds a list (a `multiselect`, `checkboxes` or `tags` field, or a `select` / `lookup` / `user` field declared `multiple: true`), Studio's condition builder (hook, validation-rule, action-visibility, page-block and flow entry conditions) offered equals / not equals and the ordering operators. CEL compares the whole list with one value there, so `record.labels == 'frontend'` was false for every record (and `!=` true for every record), and the author got no signal. - -Such a field is now offered what the list toolbar's filter builder offers it: contains, does not contain, is empty and is not empty. Contains writes `S != null && V in S` and does not contain writes `S == null || !(V in S)`, the same spelling a flow edge's condition rows write; both are null-safe. A row moved onto a list field leaves equals for contains, and a row moved off one leaves membership for equals. A stored condition that compares a list field with `==` / `!=` now opens in the expression editor exactly as stored, never rewritten. A single-value field is offered what it was before. - -New locale key: `engine.inspector.condition.op.notContains` in the studio catalogue (en, zh). No props or exports change. diff --git a/.changeset/36167-list-equality-site-rewrites.md b/.changeset/36167-list-equality-site-rewrites.md deleted file mode 100644 index 551d9e4dadd..00000000000 --- a/.changeset/36167-list-equality-site-rewrites.md +++ /dev/null @@ -1,35 +0,0 @@ ---- -'@objectstack/formula': minor -'@objectstack/lint': minor -'@objectstack/service-automation': minor -'@objectstack/spec': minor ---- - -fix(formula): the `list-equality` refusal prescribes a rewrite that works where it is read, and a flow condition is judged only where the run binds a row of the typed object - -Clause-②: yes (widening) -Metadata-protocol: added -Skills-docs: follow-up #36217 - -The two widenings. A flow condition in a flow that no record write or sweep starts (an API, scheduled or trigger-less flow) is no longer refused as `list-equality`, bare or `record.`: that run holds what its entrance handed it, so `labels == 'frontend'` can be correct code there. And `ExprSchemaHint` gains the optional key `filterCompiled`, which tells the validator that the site's source compiles to a query filter. - -The rewrite the refusal prescribes now depends on the site, and is parenthesised whole so it can stand where the comparison stood (`A && (…)`): - -- **A `record.` / `previous.` read evaluated as CEL** (a validation rule, a field rule, a formula, an action's `visible` / `disabled` / `pressed`, a hook condition): - - FROM `record.labels != null && "frontend" in record.labels` - - TO `(has(record.labels) && record.labels != null && "frontend" in record.labels)` - - `has()` answers on a sparse row or a null `previous`, where the old form faulted. - - For `!=` the TO form is `(!has(record.labels) || record.labels == null || !("frontend" in record.labels))`. The old `!=` form, with no parentheses, split under a leading `&&`. -- **A bare name at a flow condition:** - - FROM `labels == null || !("frontend" in labels)` - - TO `(labels == null || !("frontend" in labels))` - - For `==` the TO form is `(labels != null && "frontend" in labels)`. -- **A sharing rule `condition`**, which compiles to a query filter: - - FROM `record.labels != null && "frontend" in record.labels`, which does not lower (`in` needs a field on its left), so the rule was dropped as `sharing-rule-unlowerable-condition`. - - TO `(record.labels != null && record.labels.contains("frontend"))`, which lowers to a membership filter (`$contains`). - - For `!=` the TO form is `(record.labels == null || !record.labels.contains("frontend"))`. - - A number or boolean operand is passed as its text (`contains("3")`). - -One-line fix: write the rewrite the refusal names. - -`registerFlow`'s advisory pass now hands the validator `faultOutcome: 'run-fails'` on a record-triggered flow and on a time-relative sweep of the typed object, the same flows `os validate` declares it on. On those flows its logged type-mismatch lines now use the wording `os validate` prints. It still only logs and never throws. diff --git a/.changeset/36168-dataset-json-column-refusal.md b/.changeset/36168-dataset-json-column-refusal.md deleted file mode 100644 index 2b5bc021ca4..00000000000 --- a/.changeset/36168-dataset-json-column-refusal.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@objectstack/service-analytics': patch ---- - -fix(service-analytics)!: the dataset query door, `POST /api/v1/analytics/query` and the native arm of `POST /api/v1/analytics/sql` refuse `=`, `$in` and every other scalar comparison or text operator on a multi-value or JSON field with the data door's `400 INVALID_FILTER`, instead of answering a wrong count - -Clause-②: no (narrowing) — the dataset query door, `POST /api/v1/analytics/query` and the native SQL arm of `POST /api/v1/analytics/sql` refuse a scalar comparison on a multi-value or JSON field, in a `where` or a `timeDimensions[].dateRange` window, that they answered `200` -Metadata-protocol: none - -<!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is the answer to a request: a filter the data door already refuses is now refused on the analytics dataset door, `POST /api/v1/analytics/query` and the native arm of `POST /api/v1/analytics/sql` too, so there is no stored row, registry key or authored value for a migration to rewrite and no tombstone. --> - -**BREAKING** for a client of `POST /api/v1/analytics/dataset/query` (and every other caller of the dataset query on the native SQL strategy or the draft preview) whose `runtimeFilter`, dataset `filter` or measure `filter`, and for a client of `POST /api/v1/analytics/query` or of `POST /api/v1/analytics/sql` answered by the native SQL strategy whose `where`, applies an operator of `JSON_COLUMN_INCOMPATIBLE_OPERATORS` (`@objectstack/core`) — `$eq` or implicit equality, `$ne`, `$in`, `$nin`, `$gt` / `$gte` / `$lt` / `$lte`, `$between`, `$startsWith`, `$endsWith`, `$icontains` — to a multi-value or JSON field: an inherently multi-value type (`tags`, `multiselect`, `checkboxes`), a `select`, `radio`, `lookup`, `user`, `file` or `image` field declared `multiple: true`, or a structured-JSON type. The same holds on all three doors, when the native SQL strategy answers, for a `timeDimensions[].dateRange` window on such a field (the dataset door's `selection.timeDimensions[]` included), which compiles to a `$gte` / `$lte` pair: - -- FROM: the native SQL strategy compared the stored JSON text (`["a","b"]`) against the comparand and answered `200`: `$in` / `$eq` counted no row, `$nin` / `$ne` counted the rows they were asked to exclude, and the orderings and the text operators matched the serialization. The draft preview (`?preview=draft`) gave the same counts over the drafted rows. TO: `400 INVALID_FILTER` before anything runs, in the words `POST /api/v1/data/:object/query` answers, naming the field and the operator, on every dialect. The ObjectQL strategy already answered this. On a datasource whose SQL dialect the host cannot name (memory, MongoDB), the native strategy now declines a query whose `where`, dataset `filter` or measure `filter` carries such a comparison, so the engine answers it through its own driver; a `timeDimensions[].dateRange` window on such a field is not part of that decline, and is refused `400 INVALID_FILTER` on every datasource the native strategy compiles for. - -**Not moved.** `$contains` / `$notContains` (membership), `$null`, `$exists` and `$empty` on such a field, `$eq: null` / `$ne: null` (a null predicate), an empty `$in` / `$nin`, and every operator on a scalar field answer as before. - -The fix for a caller: write `{ "FIELD": { "$contains": "a" } }` for membership, an `$or` of `$contains` for any-of, and `$null` / `$empty` for no value. diff --git a/.changeset/36169-filterbuilderfield-multiple.md b/.changeset/36169-filterbuilderfield-multiple.md deleted file mode 100644 index a4ae57bfe70..00000000000 --- a/.changeset/36169-filterbuilderfield-multiple.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/console': patch ---- - -fix(console): the view and page-block filter editor offers a multiple: true field only Contains, Does not contain and the empty checks - -Clause-②: no -Metadata-protocol: none - -A `select`, `lookup` or `user` field declared `multiple: true` holds a list. Studio's filter editor for a view's filter, a page's base filter and tab presets, and a related-list block's filter built its field list without `multiple`, so it offered Equals and Is any of on such a field, and the saved filter was refused by the data door with 400 `INVALID_FILTER` for every reader of that view. Every host that builds the editor's field list now carries the field's declared `multiple` (the generic metadata editor, the list-view and view-variant inspectors, the in-app view configuration panel and the page block inspector), and the shared filter builder offers such a field Contains, Does not contain, Is empty and Is not empty, the operators the other condition editors already give it. - -A single-value field of the same types keeps its operators. A stored Equals rule on a list-valued field still opens as its row, so it can be changed. No metadata key, value or default changes. diff --git a/.changeset/36179-ui-record-page-full-desktop-only.md b/.changeset/36179-ui-record-page-full-desktop-only.md deleted file mode 100644 index 682a40f4f9c..00000000000 --- a/.changeset/36179-ui-record-page-full-desktop-only.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -Clause-②: no -Metadata-protocol: none - -`objectstack-ui` record-page rule: an authored `kind: 'full'` record page is drawn on the desktop full page only. A phone and the side drawer draw the standard page (the object's declarations plus any slotted page), and no key keeps a full page there; a page named in the URL, such as a print page, still draws everywhere. The standard page draws no `record_section` action, so an action that must show on a phone or in the drawer also lists `record_more` in its `locations`. The drawer step now says the drawer always shows the standard page. diff --git a/.changeset/36180-authored-record-page-surface-describes.md b/.changeset/36180-authored-record-page-surface-describes.md deleted file mode 100644 index 09e51a5976c..00000000000 --- a/.changeset/36180-authored-record-page-surface-describes.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/spec': minor ---- - -docs(spec): the page and action describes say where an authored record page is drawn - -Clause-②: no -Metadata-protocol: semantic - -An object's assigned record page of kind `full`, `html` or `react` (its `isDefault` page, or an app's page named by `apps`) is drawn on the desktop full record page only. On a phone and in the side preview (the drawer a list opens, a split pane, an interface page's preview) the record opens on the standard record page built from the object's own metadata. The `kind`, `isDefault` and `apps` describes, the `page.slots.tabs` tombstone's remedy and the action `locations` describe now say so. `record_section` actions are drawn only by an authored page block, so an action that must reach every surface adds `record_more` as well. A page named in the URL, the platform's approval request and user pages, and `kind: 'slotted'` pages are drawn on every surface. No schema shape changed. diff --git a/.changeset/36186-36191-comment-doors.md b/.changeset/36186-36191-comment-doors.md deleted file mode 100644 index 8475dddd071..00000000000 --- a/.changeset/36186-36191-comment-doors.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -'@objectstack/plugin-audit': patch -'@objectstack/core': patch -'@object-ui/app-shell': patch -'@object-ui/plugin-detail': patch -'@object-ui/react': patch -'@object-ui/core': patch ---- - -feat(comments): a member resolves and reopens any thread they can read, and deletes their own comments - -Clause-②: yes (widening) — `@objectstack/plugin-audit`'s `AuditPlugin` mounts two new HTTP routes, `PUT /api/v1/comments/:id/resolution` and `DELETE /api/v1/comments/:id`, and the stamp of who resolved a thread now reads a system write's `provenance.attributedUserId`. `@objectstack/core`'s `OwnRowDeleteDoor` adds an optional member, `refuseRemoval(row, engine, context)`, asked after the owner check. `@object-ui/react`'s `DiscussionContextValue` adds the optional `ownCommentDeletesOnly`; `@object-ui/plugin-detail`'s `RecordCommentsData` adds the optional `ownDeletesOnly`, and `RecordCommentThreadProps['comments']` may carry it; `@object-ui/core`'s affordance-to-grant map adds the row `feedCommentDeleteOwn`. Nothing existing is removed or re-typed. -Metadata-protocol: none - -Two server doors carry the maintainer's comment permission rulings past the platform's row floor (`owner_only_writes`, which lets a rank-and-file member update only the rows they created) and past the delete grant no every-member set may hold (ADR-0090 D5). Neither changes the floor, `sys_comment_moderation` or any permission set, and the data API answers exactly what it answered before. - -- **Resolve and reopen: `PUT /api/v1/comments/:id/resolution`** with the body `{ "resolved": true }` or `{ "resolved": false }` and nothing else. Whoever can read the thread and may post a comment on it may, external members included (ruling record 7063285032, option A: anyone who can see the record, the same gate as posting a comment): the door reads the comment as the caller (a comment they cannot read answers `404 RECORD_NOT_FOUND`, as an unknown id does), refuses a caller who reads comments but may not post one (`403 PERMISSION_DENIED`), refuses a reply (`400 VALIDATION_ERROR`) and then writes `is_resolved` alone, attributed to the caller. `resolved_by` names the caller. It answers `200` with `{ id, is_resolved, resolved_by, resolved_at }`. Any other query parameter or body is `400 VALIDATION_ERROR`; a signed-out request is `401`. -- **Delete your own comment: `DELETE /api/v1/comments/:id`.** It removes a comment the caller wrote (`author_id`), with no delete grant needed, on the platform's shared own-row delete door. Another member's comment is `403 PERMISSION_DENIED` and stays, even for a record editor: moderating someone else's comment stays the data API's, behind the delete grant. A comment that has replies stays too, whoever wrote them, `409 DELETE_RESTRICTED`, because removing it would turn each reply into a thread of its own (ruling record 7069889899: no one deletes or rewrites someone else's comment); its author may still edit its text. It answers `200` with `{ id, deleted: true }`. -- **Unchanged:** comment text stays its author's alone; a member's data-API update of a colleague's comment, `is_resolved` included, and a member's data-API delete are still `403`; administrators keep the data API for resolving, editing and deleting anyone's comment. - -The desktop comment panel follows the doors: - -- ✓ is on every thread, the viewer's and anyone else's, for a viewer holding the `sys_comment` create grant, and writes through the resolution door. It no longer asks the explain engine; that probe now gates only Edit on someone else's comment. -- A viewer without the `sys_comment` delete grant (an ordinary member) is offered Delete on their own comments that have no reply, and it goes through the own-comment delete door; a viewer with the grant deletes through the data API as before, others' comments included where they may edit the record. - -Corrections to two earlier notes of this release, which stay as written: - -- A rank-and-file member now resolves and reopens a colleague's thread through the resolution door; this replaces the #36071 note's line "This is the one widening: an update that changes nothing but `is_resolved` is admitted without the author-or-record-editor rule", because the platform's row floor (`owner_only_writes`) runs first, so through the data API such a member still resolves only the threads they started and an administrator resolves any. -- The desktop comment panel offers ✓ on every thread to a viewer who may post a comment and writes it through the resolution door; this replaces the #36075 note's line "✓ is offered under the `sys_comment` update grant: on a thread the viewer started, and on anyone's only where the explain engine admits …", and its "Unchanged" line's "a deployment without the explain service shows ✓ and Edit on the viewer's own rows only" now holds for Edit alone. diff --git a/.changeset/36189-preview-contains-membership.md b/.changeset/36189-preview-contains-membership.md deleted file mode 100644 index 227cb659b14..00000000000 --- a/.changeset/36189-preview-contains-membership.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@objectstack/service-analytics': patch ---- - -fix(service-analytics): the draft preview answers `$contains` on a multi-value field as membership, as the published dataset does - -Clause-②: no -Metadata-protocol: none - -The draft preview (`POST /api/v1/analytics/dataset/query?preview=draft`, what Studio's preview mode reads) evaluated `$contains` as a case-folded substring of the value's string form on every column. On a field declared multi-valued (`multiple: true`) or stored as JSON (`tags`, `multiselect`, `json`, …) that searched the drafted list as text: `$contains: 'a'` counted a row holding `['ab']` or `['A']`, and `$contains: 'a,b'` counted a row holding `['a', 'b']`. The published dataset counts none of them, so a drafted chart showed numbers that changed at publish. - -On such a field the preview now asks whether the comparand is a member of the stored list, reading the comparand as every SQL face does (`'1'` names the string `'1'` or the number `1`; a nested list, an object or a value that is not a list holds no member). On any other column it is the case-exact substring of a stored string, the `$contains` family's rule everywhere else on the platform: `$contains: 'acme'` no longer matches `ACME Corp`, and a stored number never contains a substring. - -`$notContains` was refused `INVALID_FILTER` / 400 on the preview; it is now answered, as the exact complement, with the same answers the live faces give (a row with no value satisfies it). - -A drafted filter that relied on the preview's case folding (`$contains: 'acme'` over `Acme`) now counts what the published dataset counts; write the case the data holds. `$icontains` is still refused on the preview. diff --git a/.changeset/36190-analytics-single-media-json-refusal.md b/.changeset/36190-analytics-single-media-json-refusal.md deleted file mode 100644 index 300091d2eee..00000000000 --- a/.changeset/36190-analytics-single-media-json-refusal.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -'@objectstack/service-analytics': patch -'@objectstack/driver-sql': patch -'@objectstack/driver-turso': patch ---- - -fix(analytics)!: the native dataset face and the draft preview refuse `=` / `$in` / `$ne` on a single-value `image` or `file` column the driver stores as JSON, as the data door does - -Clause-②: yes (narrowing) — widened: `SqlDriver.jsonColumnFieldClass` (`@objectstack/driver-sql`) is now public, and so on every class that extends it (`TursoDriver`, `SqliteWasmDriver`), and the exported `AnalyticsServiceConfig` (`@objectstack/service-analytics` root) gains the optional key `jsonColumnFieldClass`; narrowed: the native dataset face and the draft preview newly answer `400 INVALID_FILTER` for a scalar comparison on a single-value media column the driver stores as JSON, which they answered `200` with a wrong count before -Metadata-protocol: none -Skills-docs: none — no published skill documents the dataset door's filter vocabulary per storage class; the refusal text itself carries the prescription (the media-column move), and the operator contract `skills/` describes (`$contains` for membership on a JSON column) is unchanged - -<!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no stored row, registry key or authored value changes. What moves is the answer the native dataset face and the draft preview give a scalar comparison on a single-value media column, so no stored row, registry key or authored value changes and there is nothing for a migration to rewrite. --> - -**BREAKING** for a caller of the dataset query door whose filter compares a single-value `file` / `image` / `avatar` / `video` / `audio` field with `=` (explicit or implicit), `$in`, `$ne`, `$nin`, an ordering comparison, `$between` or the non-membership text family, on a deployment still inside the ADR-0104 dual-encoding window (its media columns not yet moved, which is every deployment that has not run the move). - -- FROM: the native dataset face compiled the comparison against the stored JSON string (`"file_1"`) and answered `200` with the wrong count — `{ pic: 'file_1' }` and `{ pic: { $in: ['file_1'] } }` counted `0`, `{ pic: { $ne: 'file_1' } }` counted every row — and the draft preview answered `200` with its own counts, matching the bare id a drafted row holds. `POST /api/v1/data/:object/query` and this door's ObjectQL strategy already refused the same filter `400` `INVALID_FILTER`. -- TO: all four faces refuse it `400` `INVALID_FILTER`, in `@objectstack/core`'s one refusal text for this column class — the media-column move, not the `$contains` membership repair, which finds no member in a single JSON string. - -**Widened, alongside.** `SqlDriver.jsonColumnFieldClass(table, field)` is now a public, read-only member: it answers `'single-value-media'`, `'multi-value-or-json'` or `undefined` for a column on this deployment, the same answer the data door's refusal reads. A subclass that redeclares it as `protected` must widen it to `public`. `AnalyticsServiceConfig.jsonColumnFieldClass` is the optional hook the analytics host reads it through; `AnalyticsServicePlugin` wires it from the driver that stores the object, and a host that wires nothing keeps its earlier behaviour. `TursoDriver` answers it on the remote face from the same registry its remote transport already reads. - -**Not moved.** `$contains` / `$notContains` and the null predicates (`$null`, `$exists`, `$empty`) on such a column, every operator on a scalar column, the multi-value and structured-JSON class (unchanged since it was refused on these faces), and a deployment whose media columns have moved — the column is not JSON there, and the comparison is answered. - -The fix for a caller: filter on the record the attachment belongs to, ask presence with `$null` / `$empty`, or finish the deployment's media-column move (the column step of `objectstack migrate files-to-references --apply`, which the refusal text prescribes) so the column is comparable. diff --git a/.changeset/36193-recent-activity-card-no-comments.md b/.changeset/36193-recent-activity-card-no-comments.md deleted file mode 100644 index cc1d25ee047..00000000000 --- a/.changeset/36193-recent-activity-card-no-comments.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@object-ui/plugin-detail': patch ---- - -fix(plugin-detail): a slotted page's record:chatter on the 动态 tab lists the system history alone while the comment panel holds the comments - -Clause-②: no -Metadata-protocol: none - -- A page whose `discussion` slot holds `record:chatter` or `record:discussion` draws that block on the record page's 动态 tab. While the comment panel is offered beside the record, on the page or in the drawer (objectstack#36075), the block now draws the system entries alone, as the platform's own 动态 stream does there: no comment and no reply, no comment box, no Comments-only filter, a count without the comments, the 动态 heading instead of 「讨论」, and the activity empty line instead of 「暂无评论」. A refused or failed comment read is the panel's to report, not this block's. -- Not changed: the platform's own 动态 stream, the 动态 tab's label, a page an author composed whole, and the phone while it has no comment surface. diff --git a/.changeset/36194-footer-calculation-draft.md b/.changeset/36194-footer-calculation-draft.md deleted file mode 100644 index 6cdae78a43e..00000000000 --- a/.changeset/36194-footer-calculation-draft.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -feat(console): a footer calculation is a part of the list's draft; a refused save of a package's view says why in the reader's words - -Clause-②: yes (widening) — new keys in every `@object-ui/i18n` locale pack: `console.objectView.personalizedParts.summaries` and `console.objectView.saveRefused.packaged`; nothing removed or renamed -Metadata-protocol: none - -On a Console object list, picking, changing or removing a column's footer calculation (「+ 添加统计」) applies at once and writes nothing. It used to be saved at once: on the reader's own view straight into it, on a shared view as a draft of the view (`PUT /api/v1/meta/view/<name>?mode=draft`), which the server refuses on a view an app package ships. - -- The calculation is a part of the list's draft, like the sort and the filter: **Discard** and **Save** appear, Save's menu names it (「统计」), and Discard takes it off. The draft lives as long as the others: kept on opening a record and coming back, dropped on another view, object or a reload. -- **Save to this view** (on the reader's own view, or on a shared view an admin may edit) and **Save as my view** store it on the columns the saved view keeps. -- **Save to this view** on a shared view is offered only once the Console has read that the view's package takes saves: not while that read is in flight (on a slow start the list draws seconds before it lands) nor for a package it lists read-only. A failed read, or a package the list leaves out, still offers it as before. -- On a view the reader cannot change in place (one an app package ships, or a shared view of a reader who is no admin), the pick goes into the draft too and Save offers **Save as my view** alone. -- The menu is offered on every column the saved view would carry: the columns the list draws and the fields the reader added. -- When the server refuses to save a view an app package ships (`NOT_OVERRIDABLE`), the toast says in the reader's language that the view comes with an app package, cannot be changed directly and can be saved as the reader's own view. The server's text goes to the console only. Every other refusal is said as before. diff --git a/.changeset/36198-restriction-profile-unscoped-only.md b/.changeset/36198-restriction-profile-unscoped-only.md deleted file mode 100644 index f498a594fdf..00000000000 --- a/.changeset/36198-restriction-profile-unscoped-only.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@objectstack/rest': patch ---- - -fix(rest)!: the restriction profile is served on the unscoped route only; its environment-scoped twin is no longer mounted - -Clause-②: no (narrowing) -Metadata-protocol: none - -<!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, no export changes, and no stored row or authored value moves. What moves is one anonymous REST route: under environment scoping the restriction profile is no longer mounted on the scoped base. Nothing in this repository reads that path, so there is nothing for a migration to rewrite and no tombstone. --> - -**BREAKING** for a client that read `GET /api/v1/environments/:environmentId/discovery/restriction-profile` on a server with `api.enableProjectScoping: true`: that path is no longer mounted and answers the host's ordinary `404`. The scoped path was mounted by the same change that introduced the route, so it has only ever been served by builds that include that change. It ships `patch` because it is a non-protocol breaking change: no metadata author writes a route, so `Metadata-protocol` is `none`. - -**What was wrong.** `@objectstack/rest` registers its discovery routes once per mounted base, so a server with environment scoping on also served the restriction profile on the scoped base. That handler reads nothing from the host: for any environment id it answered the constant open profile (`allowCode: true`, every flow node type). On a host that enforces a narrower profile, and serves that one through its own route on the unscoped path, the scoped path published, without a credential, a profile the environment does not honour. - -**Now.** The route is mounted on the unscoped base only. `GET /api/v1/discovery/restriction-profile` is unchanged: the same body, the same empty query set, still unmounted by `api.enableDiscovery: false`, and a host's own route on that path still wins by mount order. `os validate --target <url>` reads that unscoped route at the URL's origin, so it is unaffected. - -A server under `api.projectResolution: 'required'` mounts the scoped base alone, so it now serves no restriction-profile route. Before this change it served the profile only on the scoped path, which `os validate --target` never read. - -Fix for a client that read the scoped path: read `GET /api/v1/discovery/restriction-profile`. diff --git a/.changeset/36202-record-page-header-warning.md b/.changeset/36202-record-page-header-warning.md deleted file mode 100644 index 0acd0c5a213..00000000000 --- a/.changeset/36202-record-page-header-warning.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@objectstack/lint': patch ---- - -feat(lint): warn when a full record page's header title or action order differs from what the phone and the drawer draw - -Clause-②: no -Metadata-protocol: none - -An object's hand-written full record page (`type: 'record'`, `kind: 'full'`) is drawn on the desktop full page only; on a phone, in the side drawer, in a split pane and in an interface page's preview the record draws the standard page, built from the object. Two new advisories name a header that makes the same record read differently between the two: - -- `record-page-header-title-differs`: the `page:header` declares a `title` that is not exactly the object's name field token (`{nameField}`, or the derived title field). The standard page, lists, search and lookups all title the record by that field. -- `record-page-header-actions-differ`: the header's `actions` list gives a different primary button, or a different order within the row of buttons or within the `⋯`, than the actions' own `order` / `variant: 'primary'` and their declaration order give on the standard page. - -Both are warnings. They run on `os validate`, `os build` and `os lint`, and on a page publish at the metadata save door, where they come back as advisories and refuse nothing. Nothing about how a page renders changes. The fix each names: drop the header `title` (or set `nameField` on the object), give the actions an `order` and the main one `variant: 'primary'`, or move a header that should differ everywhere into a `kind: 'slotted'` page's `header` slot. `os explain` on either id prints what the check cannot see: visibility predicates and permissions, actions another package attaches, and the served declaration order, which it estimates. diff --git a/.changeset/36204-group-add-default-field.md b/.changeset/36204-group-add-default-field.md deleted file mode 100644 index a92b394d24e..00000000000 --- a/.changeset/36204-group-add-default-field.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -'@object-ui/components': patch -'@object-ui/plugin-list': patch -'@object-ui/i18n': patch ---- - -fix(list): "Add group field" asks which field, and offers only fields that can group - -Clause-②: yes (widening) — `@object-ui/components`'s `GroupingEditor` gains the optional props `askFieldOnAdd`, `fieldOptionsLoading` and `fieldLabel`, and its `labels` the optional `noFields`; `@object-ui/i18n` gains the key `list.noGroupableFields` in every locale; nothing removed or renamed -Metadata-protocol: none - -On a list, 「添加分组字段」 / "Add group field" used to group at once by the list's first column, usually the record's name, so every record became a group of its own. Now, in the toolbar's Group panel and in the view settings menu's Group level alike: - -- It adds no field by itself and does not group. The field dropdown opens, and the list is grouped once a field is picked there. Closing the dropdown without a pick leaves the list as it was. -- The dropdown lists only the fields that can group: single select or radio (a status is one), tick (boolean or toggle), person, and linked record (lookup, master-detail, tree), each single-valued. Text, number, date and multi-select fields are not offered. The list's columns come first in the reader's column order, then the object's other groupable fields the reader may read, business fields before system ones such as the record owner. Created by and updated by are offered only when the view shows them as a column. -- With no field that can group, the button is drawn disabled and says why: 「没有可以用来分组的字段」 / "No field here can group the list". -- Until the object's field types are read, the button is disabled without a reason. When no definition can be read at all, every column is offered, as before. -- A view already grouped by another kind of field keeps showing that grouping, and its level can still be changed or removed. -- A second level follows the same rule among the fields no level uses yet. -- The grouping is still a part of the list's draft: **Discard** and **Save** appear, and nothing is written. - -`@object-ui/components`: with `askFieldOnAdd`, `GroupingEditor`'s "Add group field" opens a row whose field dropdown is already open and writes the level only on a pick. With no `fieldOptions` it draws the button disabled, explained by `labels.noFields`, or without a reason while `fieldOptionsLoading`. `fieldLabel(field)` labels a level whose field `fieldOptions` does not carry. Without these props the editor behaves as before. diff --git a/.changeset/36206-decide-through-action.md b/.changeset/36206-decide-through-action.md deleted file mode 100644 index e0d41d4a6c5..00000000000 --- a/.changeset/36206-decide-through-action.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@objectstack/scenarios': patch ---- - -feat(scenarios): a scenario card names the agent action an operation goes through (`via`) - -Clause-②: yes (widening) — `OperationSchema` (exported from the package's `.` entry, and through it `ScenarioCardSchema`) accepts an optional `via`; `PersonaGrantNeed` (the `./score` entry) gains `routedVia` -Metadata-protocol: none - -- A card operation may name, as `via`, the card's own agent action the write is designed to go through (one of `run.agentActions` on the operation's object). The loader refuses a `via` that is not such an action, and a `via` on a `refused` operation. -- The Build check `persona-grant:<persona>:<object>:<verb>` is not measured, never a pass, when the persona's set withholds the verb and every operation needing it names a `via` action the build declares (or, as before, waits on confirmation behind the card's confirm-gated action the build declares). A set that grants the verb still passes; an operation without `via` is graded as before. -- leave_balances `manager_approves_step_one`, requisition_to_receipt `manager_approves_level_one` and travel_expense `manager_approves_step_one` name `decide_approval_step` as their route. -- Card data: order_to_cash's PAY-0044 is paid on 2026-10-02, not 2026-10-01, so no payment sits on the day the platform's `last_30_days` preset counts and the card's 30-day window does not (`collected_by_team_last_30_days` west is now 58300). diff --git a/.changeset/36206-gallery-refresh-scorer-card-defects.md b/.changeset/36206-gallery-refresh-scorer-card-defects.md deleted file mode 100644 index 0e0cd512e27..00000000000 --- a/.changeset/36206-gallery-refresh-scorer-card-defects.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@objectstack/scenarios': patch ---- - -fix(scenarios): scorer and card fixes from the 18.6.0 gallery refresh - -Clause-②: yes (widening) — new exports `confirmTurnMetNoConfirmationService` and `SEED_POSTURE` on the `./runner` entry -Metadata-protocol: none - -- The confirmed write of a `pending_confirmation` operation is not measured, never failed, when the first turn's write already met `428 ACTION_CONFIRMATION_REQUIRED` with `reason: no_confirmation_service` and the confirmation turn sends no write on the object: the agent remembered that the route cannot apply on that server. A confirmation turn that does write is graded as before. New export: `confirmTurnMetNoConfirmationService(firstMet, turn, object)`. -- A decline of an `unanswerable` question may state the sum or the difference of two figures the turn's tool outputs carry, when the reply writes both of them too ("45.5 + 9 = 54.5 days", "249 comments, 20 internal, so 229"). A derived figure whose operands the reply leaves out, a product, a figure derived from a derived figure and a zero from two equal figures still fail. -- Card data: requisition_to_receipt seeds `supplier.rating` as `grade_a` / `grade_b` / `grade_c` (a single-choice value is a lowercase identifier, so `A` / `B` / `C` refused every supplier row and the purchase orders, lines and receipts beneath them); travel_expense's step `as_118_2` is decided on the card's `asOf` (2026-10-31), not after it; service_desk's TK-0091 opens on 2026-10-02, so no urgent or high ticket sits on the day the platform's `last_30_days` preset counts and the card's 30-day window does not (`urgent_high_last_30_days` is now 9); and service_desk's prompt asks for the report and the computed value its Build half grades. -- The build prompt's data contract says how the seed loads: through the platform's seed path as established facts, where every validation rule and hook but the state machine's entry check runs and no record-triggered flow fires, so a derived field must be a formula or an expression computed when written. New export: `SEED_POSTURE`. diff --git a/.changeset/36206-namespace-operation-via.md b/.changeset/36206-namespace-operation-via.md deleted file mode 100644 index 5421983944a..00000000000 --- a/.changeset/36206-namespace-operation-via.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/scenarios': patch ---- - -fix(scenarios): a namespaced card prefixes each operation's `via` the way it prefixes the agent action it names - -Clause-②: no -Metadata-protocol: none - -`namespacedScenario` prefixed `run.agentActions[].name` with the card's namespace but copied `run.operations[].via` bare, so the persona-grant check never found the routed action a build declares (`decide_approval_step` against `demoleave_decide_approval_step`) and failed builds that route the decision through the card's own action. The namespaced card now carries `via` prefixed, and the loader's rule (a `via` is one of the card's agent actions on the operation's object) holds on it as on the plain card. diff --git a/.changeset/36216-filter-builder-field-options.md b/.changeset/36216-filter-builder-field-options.md deleted file mode 100644 index c57cc7b8f3b..00000000000 --- a/.changeset/36216-filter-builder-field-options.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/console': patch ---- - -fix(console): the view and page-block filter editor offers a picklist field's options instead of a free-text value box - -Clause-②: no -Metadata-protocol: none - -Studio's filter editor for a view variant's filter, a page's base filter and tab presets, and a related-list block's filter built its field list without each field's declared `options`, so on a `select` (picklist) field the value was a plain text box. An author typed the label they see, the saved filter held a value no record stores, and the view or block showed no rows with no error. Every host that builds the editor's field list now carries the field's declared choices (the generic metadata editor, the view-variant inspector, the in-app view configuration panel and the page block inspector, as the list-view inspector already did), so a picklist field's value is a picker over its options and stores the option's value. - -A field with no declared options keeps its text box. Stored filters are not rewritten. No metadata key, value or default changes. diff --git a/.changeset/36217-formula-skill-list-equality.md b/.changeset/36217-formula-skill-list-equality.md deleted file mode 100644 index 56c7b83b5df..00000000000 --- a/.changeset/36217-formula-skill-list-equality.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -docs(skills): `objectstack-formula` says that `==` / `!=` between a list-valued field and a scalar is refused, and teaches the membership test each site takes - -Clause-②: no -Metadata-protocol: none - -The CEL cheat-sheet of the `objectstack-formula` skill gains a note under its operator table: `==` / `!=` between a list-valued field (`multiselect`, `checkboxes`, `tags`, or a `select` / `radio` / `lookup` / `user` / `file` / `image` field with `multiple: true`) and a scalar literal is refused by the validator as `list-equality` ("list compared with a scalar"), because CEL compares the whole list and the expression answers one constant on every row. The note shows the refused form and the rewrite the refusal prescribes at each site, null-guarded (`in` faults on a `null` list) and parenthesised whole, for `==` and for `!=`: - -- where the expression is evaluated as CEL: `(has(record.tags) && record.tags != null && 'vip' in record.tags)` and `(!has(record.tags) || record.tags == null || !('vip' in record.tags))`; the `has()` covers a sparse action row and a `previous` that is `null`; -- a bare name in a flow condition: `(tags != null && 'vip' in tags)` and `(tags == null || !('vip' in tags))`, since `has()` takes no bare name; -- a sharing rule's `condition`, which is compiled to a query filter: `(record.tags != null && record.tags.contains('vip'))` and `(record.tags == null || !record.tags.contains('vip'))`, since `has()` and an `in` with the literal first do not lower there. - -This is the behaviour `@objectstack/formula` already ships; the skill only teaches it. - -Paid for by deletion in the same file, with the token ceiling unchanged (6008): twelve restatements were cut, each keeping another home — the `has()` section's opening sentence (the cheat-sheet `Key existence (NOT null-safety)` row and the paragraph that follows it), the Salesforce-flavor block's `os build` / runtime clause (the `Verify your work` section), the sentence saying hook conditions and validation predicates bind the same two roots (the `previous` table under it), the sentence saying record-change flow triggers ride the same dispatch (the same table's `after*` row), the closing "It is a refusal" sentence of the 10 000-row paragraph (that paragraph's own "the platform refuses"), the translation table's `"abc"` row (the cheat-sheet `String literal` row), the stdlib intro's "there is no `src/` to read" clause (the same sentence's "ships `dist` only"), the "use `daysBetween` / two `datetime(…)`" sentence of the date-arithmetic note (the table under it), the sub-day-offset row's "the calendar helpers land on UTC midnight" (the `today()` / `daysFromNow` / `daysAgo` rows), the "`previous.status`, where `previous` is `null`" parenthesis of the unevaluable-condition warning (the `previous` table's insert row), the second transition-condition example (the section's first example, the same shape), and the first half of the translation table's `previous.x` warning (the `OLD.x` and `ISCHANGED(x)` rows above it and the same insert row). - -Two eval cases exercise the note: a hook `condition` over a `tags` field (the CEL spelling) and a sharing rule `condition` over the same field (the `.contains()` spelling). diff --git a/.changeset/36219-cel-editor-list-fields.md b/.changeset/36219-cel-editor-list-fields.md deleted file mode 100644 index 8e1a2f35166..00000000000 --- a/.changeset/36219-cel-editor-list-fields.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(studio): the CEL editor refuses `==` / `!=` on a list field while you type, not first on save - -Clause-②: no -Metadata-protocol: none - -The object designer's CEL editors (a field's formula and stored expression, its visible / read-only / required conditions, and the condition builder's CEL box) now hand the as-you-type check each field's type and `multiple`. Writing `record.labels == 'a'` against a multi-select, tags or checkboxes field, or a select, lookup or user field declared `multiple: true`, shows the `list-equality` refusal and its `in` rewrite under the editor and holds Save, the same verdict the object draft check and publish already gave. A scalar field is judged as before. `CelPredicateField` takes a new optional `fieldDefs` prop; a mount that omits it lints exactly as before. diff --git a/.changeset/36224-inline-edit-form-group.md b/.changeset/36224-inline-edit-form-group.md deleted file mode 100644 index ed04b297ec9..00000000000 --- a/.changeset/36224-inline-edit-form-group.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -docs(skills): entering line items in the parent's form is taught as a parent field group naming the child, not `inlineEdit` alone - -Clause-②: no -Metadata-protocol: none - -objectstack-data's `rules/relationships.md` (Inline Editing), objectstack-ui's `rules/list-views.md` (Master-Detail Forms) and the objectstack-ui `SKILL.md` trap list taught that `inlineEdit: true` on the child's `master_detail` field puts the child grid into the parent's form. They now teach the rule the platform applies: the parent's form enters a child's rows where a field group of the parent names that child (`fieldGroups: [{ key: 'lines', label: 'Lines', relatedList: 'invoice_line' }]`), `inlineEdit` only picks how those rows are edited, and without the group the child is a tab and the form has no lines. Text only; each file's old wording is cut to pay for the new. Two eval cases that expected the old answer are corrected and objectstack-data gains one case for form entry of quote lines. diff --git a/.changeset/36225-preview-no-comments.md b/.changeset/36225-preview-no-comments.md deleted file mode 100644 index c77a060a9d1..00000000000 --- a/.changeset/36225-preview-no-comments.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/plugin-detail': patch ---- - -feat(record-page): the side preview drops the comments icon and the comment panel; a record's comments are on its full page - -Clause-②: no -Metadata-protocol: none - -A record opened in the side preview (the drawer or pane a list opens, and the drawer a record page opens over itself) no longer shows the comments icon in its header, and no comment panel can be opened anywhere in it. Its 动态 tab keeps the system entries alone, with no comment and no comment box, so the preview shows no comments at all. To read or write a comment, open the record as a full page from the preview header; the full page's comments icon, panel and comment box are unchanged, and so is the phone's comment page. - -This replaces the lines of the objectstack#36075 record-comment-panel entry that put the icon and the panel in the record drawer: there is no drawer placement any more (no cover of the drawer body under 760 px, no split above it), and the browser keeps one open-or-closed choice, the record page's. No props, exports or metadata change. - -The `@object-ui/plugin-detail` README and the docs of `RecordCommentsInPanelContext` now describe the preview case; no code changes there. diff --git a/.changeset/36226-details-divider-double-click-reset.md b/.changeset/36226-details-divider-double-click-reset.md deleted file mode 100644 index c15f8ed8d9f..00000000000 --- a/.changeset/36226-details-divider-double-click-reset.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/plugin-detail': patch ---- - -feat(console): a double-click on the record page's details divider resets the left column to its default width - -Clause-②: no — no public type or accept set; one interaction on an existing control -Metadata-protocol: none - -On a wide full record page the details are pinned to a left column, with a divider between them and the tabs that can be dragged or moved with the arrow keys, and the width is kept per reader and per object. A double-click on that divider now puts the column back to its default of 400 px and keeps that width, so the next record of the same object opens at the default too. A drag the double-click interrupts ends with it. The limits, the keyboard moves and the comment panel are unchanged. diff --git a/.changeset/36227-sidebar-resize-float-card.md b/.changeset/36227-sidebar-resize-float-card.md deleted file mode 100644 index 48498be4d6a..00000000000 --- a/.changeset/36227-sidebar-resize-float-card.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -feat(console): the left sidebar resizes by its right edge, the collapsed sidebar floats as a card, and a menu opened from the float no longer leaves it folded with the menu cut off - -Clause-②: yes (widening) — one new `@object-ui/i18n` key (`sidebar.resize`) in all 11 locales; no spec, schema, server or published export change -Metadata-protocol: none - -- **Resize** (`@object-ui/app-shell`): from 768 px up, the docked sidebar's right edge drags it between 200 and 350 px; a double-click comes back to 256; ← → move it 16 px, Home and End to either end. The width is kept in this browser (`console.sidebar.width`) and the menu floating over a collapsed sidebar takes it too. A phone's drawer keeps its own width. -- **The float is a card:** 8 px off the window's left, top and bottom edges, with rounded corners, a border and a shadow; the page under it is not dimmed or moved. Resting the pointer at the window's left edge still floats it and moving away still folds it. -- **A menu opened from the float keeps it out:** pressing the app name (or the account, or an entry's `…`) while the float was still sliding in under the pointer opened the menu and folded the float a moment later, leaving the menu cut off at the window's left edge. A press in the float now stops the fold's clock, and the fold does not happen while a menu or dialog is open, or while the pointer is on the float. diff --git a/.changeset/36235-record-loading-placeholders.md b/.changeset/36235-record-loading-placeholders.md deleted file mode 100644 index 939e79c98ed..00000000000 --- a/.changeset/36235-record-loading-placeholders.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@object-ui/plugin-detail': patch -'@object-ui/console': patch ---- - -fix(console): while a record loads, the record drawer's title shows a placeholder instead of the record's internal id, and a related list's count badge waits for its count instead of showing 0 - -Clause-②: no -Metadata-protocol: none - -On a slow network the record drawer named the record `#8e25d44e…` until its read landed, and every related list's header read 「0」 before its rows arrived — a false "no related records". The drawer's record row now draws a placeholder until the record reports its name (a loaded record with nothing to be named by still shows its short id, and a read that ends without a record — not found, refused, failed — names the object instead), and a related list or compact related card draws no count until its count is known; a list whose read really comes back empty still shows 0. diff --git a/.changeset/36237-hop-list-equality.md b/.changeset/36237-hop-list-equality.md deleted file mode 100644 index 3571034cc83..00000000000 --- a/.changeset/36237-hop-list-equality.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -'@objectstack/formula': minor -'@objectstack/lint': minor -'@objectstack/spec': minor ---- - -fix(lint)!: `==` / `!=` between a list-valued field reached through a lookup hop and a scalar is refused, as the root-field case is - -Clause-②: yes (narrowing) -Metadata-protocol: narrowed -Skills-docs: none — the `objectstack-formula` skill already teaches that a list field compared with a scalar literal is refused and the `has()`-guarded `in` rewrite; a hop read of a list field takes the same rewrite - -<!-- adr-0087: not-required (already-registered cel-list-equality-refused) the same list-equality refusal and membership rewrite, one hop away; this change extends that entry's surface to the one-hop read at a validation rule predicate and a field expression, and states its doors (os validate, os build, the object save door) --> - -**BREAKING** accept-set narrowing, shipped as `minor`; the new `@objectstack/formula` export `findHopListEquality` widens the package's public surface. - -`record.labels == 'vip'` on a list-valued field has been refused as `list-equality` since the shared validator learned it, but the same comparison one hop away, `record.account.labels == 'vip'` where `account` is a lookup and `labels` a list-valued field of its target, was refused nowhere. A validation rule's `condition` / `when` and a formula's `expression` are the two sites that serve a hop: the engine hydrates the related row, so `record.account.labels` is the stored list, and comparing it with a scalar answers `false` (for `!=`, `true`) on every row. A rule written that way never fires and saves clean. - -- **The refusal.** At those two sites, the publish lint (`os validate` / `os build`) and the object save door refuse a `==` / `!=` between a read of a hop target's list-valued field (an inherently multi-value type, or a multi-capable type declared `multiple: true`) and a non-null scalar literal, either operand order, in the root case's words, prescribing the root case's membership test on the hop read. -- **What carries it.** `@objectstack/formula` exports `findHopListEquality(source, listLeaves)`, which returns the `list-equality` refusals (same code and params as `validateExpression`'s) for the reference → list-valued-leaves map its caller hands in. `ExprSchemaHint` is unchanged. The ADR-0087 entry `cel-list-equality-refused` now names the one-hop read and its doors; the Studio draft check and the shared-validator half of the MCP `validate_expression` tool do not see a hop. -- **Still accepted.** A hop to a scalar field (`record.account.tier == 'vip'`), `record.account.labels == null`, `'vip' in record.account.labels`, a hop through a reference that is itself multi-valued, and every site that serves no hop (an action's `visible`, a flow condition), where `record.account` is the stored id. - -FROM → TO: - -- `record.account.labels == 'vip'` → `(has(record.account.labels) && record.account.labels != null && "vip" in record.account.labels)` -- `record.account.labels != 'vip'` → `(!has(record.account.labels) || record.account.labels == null || !("vip" in record.account.labels))` - -One-line fix: test membership with `in` on the hop read, guarded as the refusal prescribes. diff --git a/.changeset/36244-org-scoped-browser-state.md b/.changeset/36244-org-scoped-browser-state.md deleted file mode 100644 index d69224f3fe4..00000000000 --- a/.changeset/36244-org-scoped-browser-state.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(console): favorites, recent items, the last app and the pinned list view are kept per organization in the browser - -Clause-②: no -Metadata-protocol: none - -A person's favorites, recent items, last app and flow palette recents are saved on the server per organization, but the console's browser copy of them was kept per user only. A person in two organizations who switched from A to B saw A's favorites, recent items and last app on B's first paint, and the nav pins set in A were merged into B's saved favorites. The browser copy is now kept per user and organization, under the organization the console stamps on its requests, so B paints and saves only B's own lists. - -The pinned list view of an object (the 📌 in the list title's view switcher) was one browser slot per object, so a view pinned in A, which may be a personal view that exists only in A, was read in B and pinned over by B. It is now kept per organization as well: a pin set in A is still there on return to A, and B holds its own. The other per-browser list preferences (column widths, row height, tab order) are unchanged. - -Nothing a person has is lost: the first organization that reads its copy takes over the copy kept before this change (once, after which the old copy is removed), so a person in a single organization keeps their favorites, recents, last app and pins as they were. A deployment without organizations keeps the per-user copy it always had. diff --git a/.changeset/36245-stale-literal-column-default.md b/.changeset/36245-stale-literal-column-default.md deleted file mode 100644 index 0e52d6e900c..00000000000 --- a/.changeset/36245-stale-literal-column-default.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@objectstack/driver-sql': patch -'@objectstack/driver-turso': patch ---- - -Clause-②: no -Metadata-protocol: none - -A column's literal DEFAULT now follows the field's declaration on a table an earlier release created, not only on a fresh database. When a field drops its literal `defaultValue`, schema drift reports the column's leftover DEFAULT (`drop_column_default`); when the declared literal changes, it reports the old one (`set_column_default`). Both are `safe`: dev auto-reconcile, a publish of the object, the artifact-pinned boot and `os migrate apply` apply them, in place on PostgreSQL and MySQL and by the table rebuild on SQLite. Before, the table kept the old DEFAULT, every insert that left the field unset stored the old value where a new database stored the declared one (or nothing), and `os migrate plan` showed nothing. Stored rows are never rewritten, and a DEFAULT that is an expression (a `NOW()` default, a sequence) is left alone. A plain production boot still alters no existing column: it logs the entry, and `os migrate apply` applies it. diff --git a/.changeset/36246-record-header-star.md b/.changeset/36246-record-header-star.md deleted file mode 100644 index 6836d615431..00000000000 --- a/.changeset/36246-record-header-star.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/components': patch -'@objectstack/spec': patch ---- - -feat(app-shell): the record's favorite star sits beside its name, and the header's `⋯` no longer holds "Add to favorites" - -Clause-②: no -Metadata-protocol: none - -The record page draws its favorite star right of the record's name, always visible: hollow until the record is a favorite, filled once it is, one press to toggle with no confirm. The full page, a drawer or split-pane preview, and a phone's record page all draw it, from the same favorite the sidebar's Favorites section reads, so nothing about the stored favorites or that section changes. The header's `⋯` menu drops its "Add to favorites" / "Remove from favorites" entry, so the page keeps one favorites control. On a phone the star keeps a 44px tap target, as the copy-id button beside it does. A print page, which draws no record header and so no star, keeps the entry in its chrome row's `⋯`. The `showStar` refusal in `@objectstack/spec` (the retired `page:header` key) now says what stays true: the console draws the record's star from the host's favorites toggle, never from metadata, so the key switched nothing; it no longer names the `⋯` menu as the favorites entry. diff --git a/.changeset/36249-cross-currency-pick.md b/.changeset/36249-cross-currency-pick.md deleted file mode 100644 index d7f2f7efad7..00000000000 --- a/.changeset/36249-cross-currency-pick.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -'@objectstack/spec': minor -'@object-ui/fields': minor -'@object-ui/i18n': minor -'@object-ui/plugin-form': minor ---- - -fix(fields): a lookup pick no longer copies an amount into a field in another currency; the field stays empty and the form says why - -Clause-②: yes (narrowing) — a cross-currency price copy that happens today stops and the line is left empty with a stated reason (ruled B); widened: three new `@object-ui/i18n` `lookup.autofill*` keys in every locale pack, new `@object-ui/fields` exports from `lookupAutofill.ts` (`planDeclaredLookupAutofill`, `crossCurrencyRefusal`, `amountCurrencyOf`, `pickedAmountCurrencyOf`, `withheldAutofillMessage`, `withLookupAutofillTargets`, `readLookupAutofillTargets`, `LOOKUP_AUTOFILL_TARGETS_KEY` and their types), an optional second argument on `onSelectRecord`, an optional trailing `currency` parameter on `declaredLookupAutofillPatch` and `lookupAutofillPatch`, and the optional `columnFields` prop on `GridField` -Metadata-protocol: semantic - -<!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed or renamed, and nothing stored is rewritten: what moved is what a pick copies in the browser. The fix for an author is in the body: the price on a line in another currency is entered by hand. --> - -**BREAKING** for forms and line-item grids that relied on a pick copying an amount across currencies. On a EUR invoice, picking a product whose price is in the home currency used to copy the number as euros (a $100 product became a €100 line). Nothing converted it. Now the price is not copied: the cell or field stays empty, and a note under the line (in a grid) or under the lookup (in a form) names the picked amount with its currency and the currency of the field, so the price can be entered by hand. The other fields of the same pick (a description) still fill. - -**The rule.** It applies to the grid's same-named copy (the column key `autofill`), to the grid's declared `lookupAutofill` pairs, and to the record form's declared pairs, on a pick and on a create form's opening fill: - -- an amount is a `currency` field or a `formula` returning `currency`; a `number` carries no currency and copies as before; -- both sides in the home currency (neither declares one) copy as before, also when no home currency is configured; -- otherwise the value copies only when both sides name the same known code: a `fixed` code, the code the record holds, or the code its `master_detail` parent holds (ADR-0144 D2 as amended), with the home currency counting as its configured code; -- a field that follows a record's currency while that record holds none yet is not filled, and the note says no currency is chosen yet. - -Nothing is converted at any rate, and no build-time check is added: the line's currency is known only while the form is open. - -**`@objectstack/spec`.** The describes of `FieldSchema.lookupAutofill` and of the inline grid column key `autofill` state the rule. - -**`@object-ui/fields`.** `planDeclaredLookupAutofill` returns the writes and the withheld values of a pick; `declaredLookupAutofillPatch` and `lookupAutofillPatch` keep returning the writes alone. `LookupField` hands a host that owns the pick (`onSelectRecord`) the referenced object's field map as a second argument. `GridField` takes `columnFields`, the child field behind each currency column, so a `fixed` code or a code on the line decides that column's currency as on the record form. - -**`@object-ui/plugin-form`.** The record form stamps the definitions of a lookup's `lookupAutofill` targets on the lookup's field metadata, each with the name the form shows for it, so the lookup can read each target's currency and names it as the form does. The line-item hosts hand their grid each currency column's child field. - -**`@object-ui/i18n`.** Three new `lookup.autofill*` sentences, in every locale pack. diff --git a/.changeset/36249-form-subtotal-currency.md b/.changeset/36249-form-subtotal-currency.md deleted file mode 100644 index 92866ede93f..00000000000 --- a/.changeset/36249-form-subtotal-currency.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@object-ui/components': patch ---- - -fix(components): the edit form's roll-up subtotal reads the record's currency, as the record page and the form's tax-inclusive total do - -Clause-②: no -Metadata-protocol: none - -- A `summary` field that declares its currency (`currencyConfig`, ADR-0144 D6 as amended) now receives the live form record from the form renderer, the way a `currency` field and a `formula` field already do. A `record`-mode roll-up on the New / Edit form therefore draws in the currency its record's code field holds: a EUR invoice's Subtotal reads `€230.00` instead of a bare `230.00`, and it follows the code the user picks. -- Not changed: a roll-up that declares no currency still reads as a number; the record page, the list cell and the line-item grid already drew the record's currency and draw it as before; no metadata changes. diff --git a/.changeset/36252-lint-rules-field-group.md b/.changeset/36252-lint-rules-field-group.md deleted file mode 100644 index 42e17b13857..00000000000 --- a/.changeset/36252-lint-rules-field-group.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -docs(skills): the lint table and the `repeater` row name the parent field group, not `inlineEdit`, as what places a child's rows - -Clause-②: no -Metadata-protocol: none - -objectstack-data's `references/lint-rules.md` said three `os lint` rules trigger on `inlineEdit`. They read the parent's field groups, and the rows now say so: `relationship/line-items-inline-edit` catches a line-item `master_detail` child that no parent field group places (`fieldGroups[].relatedList`), `relationship/inline-edit-needs-bulk` a placed child whose parent or child withholds `'bulk'`, and `relationship/association-inline-edit` an association a group places. `rules/field-types.md` pointed a typed list at a child object with `inlineEdit: 'grid'`; it now points at a `master_detail` child that a parent `fieldGroups[].relatedList` names. Text only; the rule ids and the lint are unchanged, and each file pays for its new wording in its own bytes. diff --git a/.changeset/36256-drill-dialog-standard-list.md b/.changeset/36256-drill-dialog-standard-list.md deleted file mode 100644 index d61596e5d75..00000000000 --- a/.changeset/36256-drill-dialog-standard-list.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@object-ui/plugin-dashboard': patch -'@object-ui/plugin-report': patch -'@object-ui/react': patch -'@object-ui/app-shell': patch -'@object-ui/components': patch ---- - -feat(plugin-dashboard): a dashboard or report drill opens a centred dialog over the standard list, and a report's chart marks drill - -Clause-②: yes (widening) — additive members only, among them the new `PageRegionPostureReset` export of `@object-ui/components`; nothing is removed or renamed -Metadata-protocol: none - -Clicking a number on a dashboard (a chart mark, a metric tile, a table cell) or on a dataset report used to open a full-height side drawer whose table listed every field of the object, with no sort, no filter and no word on which conditions selected the records; a row stacked a second record panel on top. The drill now opens a dialog about 70% wide and 65% tall that dims and blurs nothing behind it, and its body is the standard list the object list page draws (`list-view`): the same row height, column-header sort, filter chips, added columns, record count and column calculations. The drill's conditions (the clicked bucket, the widget's filter, the measure's scope) are the list's own chips and can be changed or removed; a condition no chip can say (a relationship path, an `$or`) still filters the list. The default columns are the record's name, the grouped fields and the measured fields. Nothing done in the dialog is saved, and it writes nothing. A record's name opens the record's full page, whose 「N of M」 stepper walks the drill's rows and whose way back is the dashboard or report; no second panel is stacked. 「Open in list」 is unchanged. On a phone the drill keeps the side drawer, with the same list. - -A dataset report's chart marks now drill too: a bar opens the same records as the summary line it stands for. - -Additive members: `DrillNavigationValue.openRecord` and the `DrillRecordOrigin` type (`@object-ui/react`), `DrillDownDrawerProps.defaultColumns` (`@object-ui/plugin-dashboard`), `DatasetDrillArgs.fields` (`@object-ui/plugin-report`), `PageRegionPostureReset` (`@object-ui/components`). A renderer without `@object-ui/plugin-list` registered lists the drilled records in the dashboard's data table. A host that gives no `openRecord` (a page block's metric or pivot) opens the drilled record in a dialog, from either body. - -Inside a page the drill draws the same standard list: the page region's posture (the compact or capped list a page block draws) is cleared for the drill's dialog by the new `PageRegionPostureReset` (`@object-ui/components`), so a page block's metric or pivot drill shows its chips, its record count and its pager, and no 「View all」 link to a list without the drill's condition. A drill whose filter names no condition any read can carry (a string, a number) lists nothing and says so, instead of listing every record. diff --git a/.changeset/36259-change-owner-answers-what-was-saved.md b/.changeset/36259-change-owner-answers-what-was-saved.md deleted file mode 100644 index cc628f79001..00000000000 --- a/.changeset/36259-change-owner-answers-what-was-saved.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@objectstack/core': patch ---- - -fix(core)!: Change Owner answers what was saved, and says a person was notified only when the notice went out - -Clause-②: no (narrowing: the single Change Owner door answers `403 FIELD_NOT_ACCESSIBLE` where it answered `200`, and the bulk door lists under `failures` a record it reported moved, when the record's `owner_id` or `queue` is locked; `notified` is `false` where no delivery or outbox row was taken; a custom `ChangeOwnerMessaging.emit` must now return `{ delivered, enqueued }`) -Metadata-protocol: none - -<!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed or renamed, and nothing stored is rewritten: the moved answer is what the Change Owner doors report for a record whose owner or queue is locked, and how notified is read. A caller that needs the record moved changes the record so the lock no longer holds. --> - -**BREAKING**, in two halves: (a) for a caller of Change Owner on a record whose `owner_id` or `queue` is locked (read-only, or under a `readonlyWhen` condition that holds for the record, for example "read-only once the case is closed"); (b) for code that implements `ChangeOwnerMessaging` from `@objectstack/core`'s security entry. The data engine leaves a locked column as it was; Change Owner used to report the record as moved anyway, and to tell the named person a record was now theirs. - -- FROM: `POST /api/v1/data/:object/:id/change-owner` answered `200` for a record whose owner or queue was locked, and `POST /api/v1/data/:object/change-owner` counted it under `updated`, while the stored owner did not change; `notified` was `true` whenever the messaging service's `emit` returned, whatever it sent, and `ChangeOwnerMessaging.emit` could resolve any value. -- TO: each owner write passes `strictReadonlyWrites`, so the locked record is refused before anything is written. The single door answers `403 FIELD_NOT_ACCESSIBLE`, naming the locked column; the bulk door lists the record under `failures` with `FIELD_NOT_ACCESSIBLE` and moves the others as before; no notification names a record that did not move. A queue target writes the owner and the queue together, so a lock on either leaves both unchanged. `notified` is `true` only when the emit reports a delivered or an enqueued notice, and `false` when the service sent it nowhere (a muted topic, an unavailable channel). `ChangeOwnerMessaging.emit` must resolve `{ delivered, enqueued }`, the counts the messaging service's `EmitResult` already carries. - -The fix for a caller: (a) handle the `403 FIELD_NOT_ACCESSIBLE` answer and the `failures` row (change the record so the lock no longer holds, or remove the lock from the field, then change the owner again); (b) a custom `ChangeOwnerMessaging.emit`, passed to `changeRecordOwner` / `changeRecordsOwner`, returns the two counts `{ delivered, enqueued }`. A record whose owner and queue are not locked sees no change. diff --git a/.changeset/36261-change-owner-disabled-package.md b/.changeset/36261-change-owner-disabled-package.md deleted file mode 100644 index 28ee65da44b..00000000000 --- a/.changeset/36261-change-owner-disabled-package.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -'@objectstack/core': patch -'@objectstack/metadata-protocol': patch -'@objectstack/spec': patch -'@objectstack/rest': patch ---- - -fix(core)!: Change Owner refuses an object of a disabled package with the data door's `404 OBJECT_PACKAGE_DISABLED` - -Clause-②: yes (narrowing) — `@objectstack/core` gains the root export `objectPackageDisabledError`, and all three Change Owner doors newly answer `404 OBJECT_PACKAGE_DISABLED` for an object of a disabled package, which they answered `200` before -Metadata-protocol: none -Skills-docs: none — no page under `skills/` teaches Change Owner; the refusal carries the data door's own sentence, which names the fix - -<!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no stored row, registry key or authored value changes. What moves is the answer the three Change Owner doors give for an object whose owning package is disabled, an answer that returns to what it was the moment the package is re-enabled; there is nothing for a migration to rewrite and no tombstone. --> - -**BREAKING** for a caller that changes owners on a disabled package's object. - -- FROM: `POST /api/v1/data/:object/:id/change-owner` and `POST /api/v1/data/:object/change-owner` answered `200` for an object of a disabled package: the owner changed (and, when a cascade was named, its child rows), and when asked the notification was sent; `GET /api/v1/data/:object/change-owner/cascades` answered `200` with the object's cascade candidates. -- TO: all three doors answer `404 OBJECT_PACKAGE_DISABLED`, naming the object, in the data door's words; nothing is read, written or sent. The fix for a caller: re-enable the package. - -`POST /api/v1/data/:object/:id/change-owner` and `POST /api/v1/data/:object/change-owner` changed owners (and cascaded child rows), and sent owner-change notifications, on records of an object whose owning package was disabled, although every `/data` write refuses such an object. `changeRecordOwner` and `changeRecordsOwner` now ask the engine registry's `isObjectPackageDisabled` before the object's Change Owner switch is read, and refuse the whole call with the data door's own envelope (`code: 'OBJECT_PACKAGE_DISABLED'`, `status: 404`, the object name on `object`) before any user lookup, write or notification. Re-enabling the package restores the action; nothing is cached. `GET /api/v1/data/:object/change-owner/cascades` asks the same predicate in the same order (after the object resolves, before the switch), so the dialog lists nothing for such an object. - -The refusal's constructor, `objectPackageDisabledError`, now lives in `@objectstack/core` and is exported from it; `@objectstack/metadata-protocol` re-exports the same function under the same name, so its importers are unchanged and the code, status and sentence stay one. The error-code ledger (`@objectstack/spec`) records `OBJECT_PACKAGE_DISABLED` under `@objectstack/core` as a provenance row; the code itself, its status and its wire shape are unchanged. diff --git a/.changeset/36269-every-group-folds.md b/.changeset/36269-every-group-folds.md deleted file mode 100644 index 41e9c605e50..00000000000 --- a/.changeset/36269-every-group-folds.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -'@objectstack/spec': minor -'@object-ui/plugin-detail': minor -'@objectstack/platform-objects': minor ---- - -feat(plugin-detail): on the synthesized record page every titled field group folds, open by default - -Clause-②: no -Metadata-protocol: semantic - -On the synthesized (default) record page every field group that has a title now draws the right-hand chevron and folds from its whole title row, whatever its `collapse` says. This holds in the side preview, on the phone's 「详情」 tab, in the wide page's pinned left column and on the full page. Folding a group there is something the reader does. `collapse` still sets the first state: `'collapsed'` starts closed, `'none'` and `'expanded'` start open. 系统信息 still starts closed. - -Unchanged: - -- Forms and the designer preview: `'none'` still means always open, with no toggle. -- The untitled field bucket has no toggle. -- A print page draws every group open. -- An authored record page keeps its own faces. -- The fold state lasts while the record stays open. It is not saved. - -`@objectstack/spec`: the `ObjectFieldGroupSchema.collapse` description, the refusal guidance for a stray `expanded` key and the object form's Collapse help text now say that the default record page lets the reader fold every titled group; the form's "None" option reads "always open on the entry form, no toggle". The enum, its default and what it accepts are unchanged. - -`@objectstack/platform-objects`: the object form's Collapse help text in every metadata-form catalog follows the new wording (English regenerated, the ten translated catalogs re-translated). - -What to check in an app: an object that used `collapse: 'none'` to keep a group's heading from folding on the record page now shows a chevron there. The setting still keeps the group always open on forms. diff --git a/.changeset/36270-object-grid-single-click-edit-retired.md b/.changeset/36270-object-grid-single-click-edit-retired.md deleted file mode 100644 index bfabeb82373..00000000000 --- a/.changeset/36270-object-grid-single-click-edit-retired.md +++ /dev/null @@ -1,35 +0,0 @@ ---- -'@objectstack/spec': minor -'@object-ui/types': minor -'@object-ui/plugin-grid': minor -'@object-ui/plugin-view': minor ---- - -feat(spec,ui)!: every grid that renders editable selects a cell first and saves each cell on its own, and `object-grid`'s `singleClickEdit` is retired - -Clause-②: no (narrowing) -Metadata-protocol: narrowed - -<!-- adr-0087: registered object-grid-single-click-edit-removed, object-grid-single-click-edit-retired --> - -**BREAKING** accept-set narrowing on the `object-grid` page block (`@objectstack/spec`, `ComponentPropsMap['object-grid'].singleClickEdit`) and on `@object-ui/types` (`ObjectGridSchema.singleClickEdit`, and the `object-view` `table` slot that relayed it), with the grids following it in the same release. - -- **Now.** A grid that renders editable (`editable` set and the viewer allowed to edit the object) uses the list page's select-first cell model wherever it is drawn: the grid an `object-view` draws itself (the Studio's view preview, a page that places an `object-view`) and an authored `object-grid` node. A click selects a cell; double-click, Enter, F2 or typing opens its editor; Esc cancels; and each committed cell is saved at once as one update for its record. The pending-changes bar, its "Save All" and "Cancel All" buttons and the per-row save column are no longer drawn there. On a touch screen a tap on these grids opens the record, and a touch never edits a cell in place. -- **Unchanged.** A grid that renders read-only keeps its click-to-open row. Neither `editable` nor a view's `inlineEdit` can open editing that the object or the reader's `update` grant refuses, and a refused cell now says why when it is asked to edit, as on the list page. A React host that draws `ObjectGrid` itself can still pass `cellSelection={false}` to keep the staged model with its Save All bar. -- **`keyboardNavigation` narrowed to what is enforced.** On a grid that renders editable the arrow-key navigation is always on, because the selection moves with those keys; `false` no longer turns it off there. On a read-only grid `true` still turns it on. - -| FROM | TO | -|:--|:--| -| `object-grid` `properties.singleClickEdit: true` (or absent: the old default) | delete the key; a click selects the cell and double-click, Enter, F2 or typing opens its editor | -| `object-grid` `properties.singleClickEdit: false` | delete the key; double-click still opens the editor | -| `object-view` `table.singleClickEdit` | delete the key | -| a React host passing `ObjectGrid` `onBatchSave` alone (no `onRowSave`, no `cellSelection`) on an editable grid: "Save All" called it | each cell now saves through `onRowSave`, or through the grid's own `dataSource.update` when there is none, and `onBatchSave` is never called. Pass `onRowSave` to own the write per cell, or pass `cellSelection={false}` to keep the staged model, where `onBatchSave` is still called. The prop is marked `@deprecated` | - -The one-line fix: delete `singleClickEdit` wherever it is written; `os migrate meta --from 17 --write` deletes it from page sources. Writing it after upgrade fails `tsc` (the input type is `never`) and fails the parse with that prescription. - -The retirement kit: - -- **`@objectstack/spec`**: `singleClickEdit` is a `retiredKey()` tombstone on `ObjectGridPropsSchema`, registered in `RETIRED_KEYS_BY_MAJOR[18]` as `ui/ObjectGridProps:singleClickEdit`. The D2 conversion `object-grid-single-click-edit-removed` deletes it from `object-grid` components (top-level regions, nested `children` and named slots), whatever its value, and the D3 entry `object-grid-single-click-edit-retired` names what the upgrade still owes: help text and tests that describe the old gestures. `keyboardNavigation`'s describe says what is enforced. The liveness ledger records the retirement and the narrowed read. -- **`@object-ui/types`**: `ObjectGridSchema.singleClickEdit` is `?: never` with a `retirementTombstone()` twin, and the `object-view` `table` slot inherits it. `DataTableSchema.singleClickEdit`, a flag a host sets in code, is unchanged. -- **`@object-ui/plugin-grid`**: `ObjectGrid` turns the select-first model on wherever the grid renders editable (a host's `cellSelection` still wins), and no longer reads `singleClickEdit`. The `object-grid` inputs no longer list it. `ObjectGridComponentProps.onBatchSave` is `@deprecated`: it is called only under the staged model. -- **`@object-ui/plugin-view`**: `table.singleClickEdit` is no longer relayed to the grid. diff --git a/.changeset/36276-group-aggregates-per-depth.md b/.changeset/36276-group-aggregates-per-depth.md deleted file mode 100644 index e63dfb2cf97..00000000000 --- a/.changeset/36276-group-aggregates-per-depth.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/plugin-grid': patch ---- - -fix(plugin-grid): with grouping on two or more levels, a sum over a `record`-mode quantity or amount is asked only at the levels grouped by its unit or currency field - -Clause-②: no -Metadata-protocol: none - -A grid grouped on several levels sends one group-header query per depth, and depth 1 groups by the first level only. Group aggregations were judged against all levels at once. So a list grouped by region, then `unit_code`, kept a `sum` / `avg` / `min` / `max` over a `record`-mode quantity in the depth-1 query, which groups by `region` alone. The engine refuses that query (`INVALID_FIELD`, 400, ADR-0158 U7 R1), and every group header of the view failed with it. A `record`-mode amount grouped by region, then `currency_code`, failed the same way (ADR-0144 D6). - -Each depth's query now carries such an aggregate only when that query's own `groupBy` includes the measure's unit or currency field. Otherwise the aggregate is left out, as the whole-set summary leaves it out. In the example, the region bands show their counts and no sum, and the `unit_code` bands under them show their one-unit sums. Rows handed to the grid whole and grouped in the browser follow the same rule, so a region band no longer shows a sum that adds kilograms to pounds. Grids grouped by the unit or currency field at the first level are unchanged. diff --git a/.changeset/36281-embedded-sub-fields-hint.md b/.changeset/36281-embedded-sub-fields-hint.md deleted file mode 100644 index 878a482d7c8..00000000000 --- a/.changeset/36281-embedded-sub-fields-hint.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/lint': patch ---- - -fix(lint): the `field/embedded-sub-fields` fix names the field group that inlines the child - -Clause-②: no -Metadata-protocol: none - -The rule's fix line told the author to make the typed list a child object and that `inlineEdit: 'grid'` edits it inline. A child is inlined in its parent's form only when a field group of the parent names it in `relatedList`; the FK's `inlineEdit` picks grid or form, nothing more. An author who followed the old line got a child shown as a tab, with no lines on the parent's form. The fix now reads: make the typed list a child object whose `master_detail` field points back here, name it in a `fieldGroups[].relatedList` here (`inlineEdit` only picks how rows are edited), and remove the key. When the rule fires, its id, severity and path are unchanged. diff --git a/.changeset/36285-relationships-predicate-floor.md b/.changeset/36285-relationships-predicate-floor.md deleted file mode 100644 index bcd98bedccb..00000000000 --- a/.changeset/36285-relationships-predicate-floor.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -docs(skills): the data skill teaches that a predicate update or delete of a `controlled_by_parent` detail writes the rows its by-id writes do - -Clause-②: no -Metadata-protocol: none - -objectstack-data's `rules/relationships.md`, the `writeRequiresMasterRead: true` bullet under "Writes under `controlled_by_parent`": it no longer says the ownership floor (rows you created) binds a predicate update or delete. It now says a predicate (`multi: true`) update or delete writes the rows a by-id write of each would, all matched rows or none, which is what the runtime does since the change noted as "a predicate update or delete of a `controlled_by_parent` detail now writes every row its caller may write by id". The on-behalf-of half is unchanged: the floor still binds an on-behalf-of update or delete, for both users. `evals/objects-fields-relationships.json`, eval 17: its `expected_output` states the same rule; its assertions are unchanged. diff --git a/.changeset/36286-palette-add-view-edit.md b/.changeset/36286-palette-add-view-edit.md deleted file mode 100644 index e7c63d95269..00000000000 --- a/.changeset/36286-palette-add-view-edit.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -feat(console): the ⌘K palette's "Current page" group offers the list's "Add view" and the record's "Edit" - -Clause-②: no -Metadata-protocol: none - -Opened with nothing typed, the command palette's "Current page" group now carries the page's own main entry beside its favorites row: - -- **On an object's list**: "Add view", listed exactly where the view switcher offers "Add view". Enter opens the switcher on its in-place create card, or, for a host that offers only the Create View dialog, opens that dialog. -- **On a record page**: "Edit", the header's own Edit. It runs what the header button runs (the record form, or the page's edit state), and it is off exactly when the button is off: a `userActions.edit.disabledWhen` that holds, the state lock, or a live inline draft the header greys Edit for, with the header's reason under it. A record an approval locks, a record already in its edit state and a record shown in a drawer or pane over a list offer no Edit row. - -The footer names what Enter does ("Add view ↵", "Edit ↵"), in the controls' own words. Nothing is recomputed in the palette: the list and the record page publish the command beside the control while they draw it. No locale keys, props or package exports change. diff --git a/.changeset/36286-palette-current-page.md b/.changeset/36286-palette-current-page.md deleted file mode 100644 index 4800b07f519..00000000000 --- a/.changeset/36286-palette-current-page.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -feat(console): the empty ⌘K palette leads with a "Current page" group: the page's favorites entry - -Clause-②: yes (widening) — one new published language-pack key, in all eleven packs: console.commandPalette.currentPage -Metadata-protocol: none - -Opened with nothing typed, the command palette inside an app now starts with a "Current page" group, above the recently viewed records, when the page behind it is an object's list or a record page: - -- **On an object's list** (`/apps/APP/OBJECT`, or one of its views): "Add to favorites" (or "Remove from favorites"), the list's own favorites entry from its ⋮ More menu. It pins the app's navigation entry for the list where the app has one, and keeps an object favorite otherwise, exactly as that menu does. -- **On a record page**: the record's star — the same `record` favorite the star beside the record's name toggles, named by the title the record was last visited under. - -The row is first, so Enter on the empty palette now runs it; the footer says so ("Add to favorites ↵" / "Remove from favorites ↵", the menu's own words). Typing takes the group away. On every other page (an app's landing, a dashboard, the search page, a create form) the palette is unchanged. Which records the palette searches and how it ranks them, the full search page, and the phone's search are unchanged. - -New locale key, in every pack: `console.commandPalette.currentPage`. No props or package exports change. diff --git a/.changeset/36286-palette-preview-create.md b/.changeset/36286-palette-preview-create.md deleted file mode 100644 index 93ae6209bfe..00000000000 --- a/.changeset/36286-palette-preview-create.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -feat(console): the ⌘K palette previews the record it is on, creates a record from what you typed, finds "New OBJECT", and says what Enter does - -Clause-②: yes (widening) — eight new published language-pack keys, in all eleven packs: console.commandPalette.create, createAs, previewEmpty, enterOpenRecord, enterCreate, enterSwitchApp, enterApplyTheme, enterOpen -Metadata-protocol: none - -The command palette inside an app gains four things; which records it searches, and how it ranks them, are unchanged. - -- **Record preview.** While the query finds records, the palette widens and shows the selected hit on the right, read-only: the object's label, the record's title and the object's declared key fields (`highlightFields`), drawn the way the record pointer card draws a record (field-level security applied; an object that declares no key fields shows its title alone). Arrow keys move the preview with the selection; the record is read once the selection rests for 150 ms. A palette narrower than 45rem (720px) shows the results alone. -- **Create "words" as OBJECT.** Once something is typed, the end of the list offers to create a record of up to three of the app's objects, the object of the page the palette was opened on first, with the typed words in the object's title field: Enter opens that object's create page (`/apps/APP/OBJECT/new`) with the field filled. An object is offered only where its list offers New (the same verdict: CRUD bucket, `userActions.create`, effective API operations, the create grant, and the create action's `visibleWhen` / `disabledWhen`), and only when its title field is a text field the member may write on create. -- **New OBJECT.** Typing "new", "create" or an object's name finds a "New OBJECT" entry for each such object, which opens its empty create page. -- **Enter hint.** A footer names what Enter does to the selected entry: Open record, Create, Switch app, Apply theme or Open. - -New locale keys, in every pack: `console.commandPalette.create`, `createAs`, `previewEmpty`, `enterOpenRecord`, `enterCreate`, `enterSwitchApp`, `enterApplyTheme`, `enterOpen`. No props or package exports change. diff --git a/.changeset/36289-list-cell-context-menu.md b/.changeset/36289-list-cell-context-menu.md deleted file mode 100644 index e9302edee3d..00000000000 --- a/.changeset/36289-list-cell-context-menu.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@object-ui/plugin-grid': patch -'@object-ui/components': patch -'@object-ui/types': patch -'@object-ui/i18n': patch ---- - -feat(grid): a list cell's right-click menu copies, pastes and clears that cell - -Clause-②: yes (widening) — an optional `cell` member (`copy`, `paste`, `clear`) on the context `data-table` hands a host's `renderRowContextMenu`; five new `table.*` language-pack keys in every locale `@object-ui/i18n` ships (`copyCell`, `pasteCell`, `clearCell`, `pasteNotValue`, `pasteUnavailable`); nothing is removed or renamed -Metadata-protocol: none - -Right-clicking a cell in a list now offers what can be done to that cell, above the row's own items. - -- The menu has two sections. Above a line: **Copy**, **Paste**, **Clear** and, where it was already offered, **Change history**. Below it: the row's items as before (Open, Open in new tab, the row's actions). A right-click off a data cell opens the row's section only. -- **Copy** copies the cell's value, as Ctrl/Cmd+C does. -- **Paste** writes the clipboard's text into the cell and saves it, through the same checks as typing into the cell: text that is not an email address in an email cell, a value over a field's length, an empty required field are refused and the cell says why. If the browser will not let the list read the clipboard, the cell says so and names Ctrl/Cmd+V. Paste is offered on text, numbers, dates and single-choice fields (an option by its value or label); on a record reference, a person, a multi-choice and other types it is unavailable. -- **Clear** empties the cell and saves it, as Backspace does; it is unavailable on a required field. -- On a read-only field, a calculated field, a grid that is not editable or a record the reader may not change, Paste and Clear are unavailable and Copy still works. -- A paste into the selected cell with Ctrl/Cmd+V now goes through the same checks: text the cell's editor would refuse is no longer sent to be saved, and text the column cannot read (letters in a number cell, a name in a lookup cell) says why instead of doing nothing. diff --git a/.changeset/36290-activity-field-change-lines.md b/.changeset/36290-activity-field-change-lines.md deleted file mode 100644 index 01a616c54b8..00000000000 --- a/.changeset/36290-activity-field-change-lines.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@object-ui/plugin-detail': patch -'@object-ui/i18n': patch ---- - -feat(record-page): each changed field is its own line under an activity entry, `Label: old → new` - -Clause-②: yes (widening) — four new `detail.*` language-pack keys in every locale `@object-ui/i18n` ships (`fieldChangeLabel`, `fieldChangeEmpty`, `fieldChangeExpand`, `fieldChangeCollapse`), and six new optional props on the exported `FieldChangeItem` (`label`, `oldText` / `newText`, `emptyLabel`, `expandLabel` / `collapseLabel`); nothing is removed or renamed -Metadata-protocol: none - -The record page's activity named a saved change by its fields only (「更新了 客户备注」), or carried every value on one cut line. An activity entry now reads as the fields it changed, with one line per changed field under it: `Customer notes: Old words → New words`. A save that changed the phone and the email is one entry with two lines. - -- The values come from the field-change code the server already serves on each `sys_activity` row (`metadata.summary_message`), narrowed per reader by plugin-audit: a field the reader may not read has no change in it, so it draws no line. Nothing new is read, and nothing is filtered in the browser. -- An empty side reads as the language pack's word for empty (`Empty`, `空`), never the stored `∅`. -- A select side reads as the field's option label in the reader's language; a lookup or user side reads as the record's name the server served; a yes/no reads as the pack's Yes / No. -- Each side is cut to its line. A side that does not fit, or holds more than one line, offers a control that shows both sides in full and one that cuts them again. -- An audit-log entry (objects with `enable.trackHistory`) draws its changes the same way, and an activity row paired with its audit entry keeps its own summary with the audit's lines under it. The record's creation is unchanged: one row with its values beside the summary. -- The compact one-line text of a change (the activity panel's peek rows) now reads `Label: old → new` with the same words, where it read `Label old → new` with `—` for empty. - -What does not change: which entries the activity shows, how consecutive edits by one person on one day fold into one row, the activity filters, and no metadata key, value or default. diff --git a/.changeset/36290-field-change-history-card.md b/.changeset/36290-field-change-history-card.md deleted file mode 100644 index eeadc299827..00000000000 --- a/.changeset/36290-field-change-history-card.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -'@object-ui/plugin-detail': patch -'@object-ui/plugin-grid': patch -'@object-ui/components': patch -'@object-ui/types': patch -'@object-ui/i18n': patch -'@objectstack/spec': patch ---- - -feat(record-page): one field's change history, opened in place from the field or from a list cell's context menu - -Clause-②: yes (widening) — three new `detail.*` language-pack keys in every locale `@object-ui/i18n` ships (`fieldHistory`, `fieldHistoryNone`, `fieldHistoryNoneRecent`); new exports from `@object-ui/plugin-detail` (`FieldHistoryButton`, `FieldHistoryCard`, `FieldHistoryPopover`, `useFieldHistory`, `useFieldHistoryOffered`, `fieldHistoryOffered`, the constants `FIELD_HISTORY_PAGE_SIZE`, `FIELD_HISTORY_SCAN_BATCH` and `FIELD_HISTORY_SCAN_BATCHES_PER_LOAD`, and their types); an optional `column` member on the context `data-table` hands a host's `renderRowContextMenu`; `FieldChangeItem` draws no label for `label: ''`; nothing is removed or renamed -Metadata-protocol: none - -A reader can now see one field's past changes on one record without reading the whole activity stream. - -- On the record page, each field of the object has a history button beside its value, shown on hover and focus like the copy button. In a list, right-clicking a cell of a field the object declares adds 「Change history」 to the row's menu. Both open the same small card in place. Neither is offered on a field whose old → new values are not recorded (`fieldHistory: false` on the field, `enable.fieldHistory: false` on the object, a credential field, or a media or JSON-like type that does not opt in), judged by the same `resolveFieldHistory` the audit writer keeps values by. -- The card lists only that field's changes: who, when, and old → new in the reader's words (an option by its label, an empty side as the pack's word for empty), newest first, ten at a time with 「Load more」. -- A field never changed reads 「No changes recorded」 with who created the record and when. -- The changes are the record's activity rows the server already serves, narrowed to the reader: a change of a field the reader may not read is never sent. A field the reader may not read offers no entry point at all. The full audit log is not read. -- The rows are read by record, newest first, fifty at a time, keeping those that changed the field; a query naming the change columns is refused for a reader withheld any field of the object, so the field is never part of the query. Opening the card reads at most four batches, and each 「Load more」 at most four more; when they hold no change of the field and older rows remain, the card reads 「No changes in the recent activity」 and offers 「Load more」 to read on. - -`@objectstack/spec`: the authoring hint for the mistyped field key `tracked` now names what turns one field's change history on or off today (`fieldHistory: false`, `true` for a media or JSON field, `enable.fieldHistory: false` on the object), where it named `trackHistory: true`, which changes nothing for most field types. Wording only; `tracked` stays rejected. diff --git a/.changeset/36290-field-history-producers.md b/.changeset/36290-field-history-producers.md deleted file mode 100644 index 17f763cd110..00000000000 --- a/.changeset/36290-field-history-producers.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch -'@object-ui/types': patch -'@object-ui/plugin-designer': patch ---- - -feat(studio): the field inspector, the field designer and the object's settings write Field change values instead of Track history - -Clause-②: yes (widening) -Metadata-protocol: none - -Old → new values show on the record activity by default, and an object or a single field can turn them off. The Studio now writes that setting where an author looks for it: - -- **Field inspector.** The "Track history" box is gone. In its place, "Field change values" offers Default, On and Off. Default leaves the field's `fieldHistory` unset and names what it means for this field on this object: "Default (On)" for most types, "Default (Off)" for a media, JSON or credential field, and "Default (Off)" for every field when the object turns values off, with a note saying so. On and Off write `fieldHistory: true` and `false`; choosing Default after Off removes the key. A stored `trackHistory` is kept as it is and never written. -- **Field designer** (`@object-ui/plugin-designer`). The drawer's "Track History" switch, which wrote `trackHistory: false` on every save, is replaced by "Field Change Values" with the same three choices: Default (named "Default (On)" or "Default (Off)" for the type in the drawer, and it follows a type change), On, Off. A stored `trackHistory` is carried through an edit and never written. `DesignerFieldDefinition` (`@object-ui/types`, with its zod mirror) gains an optional `fieldHistory`, and both designer save paths (`MetadataFieldsPage`, `MetadataService.saveFields`) carry it; Default sends no key, which removes a stored one. -- **Object settings.** The Features card gains "Field change values" (`enable.fieldHistory`). Unticking it writes `false`; ticking it again removes the key rather than writing `true`, since unset already means on. Sibling `enable` keys are kept. - -The inspector and the metadata form's Field History control share one module for the three choices, what each writes and their wording; the field designer cannot import it (the app shell depends on the designer) and shares the rule itself, `resolveFieldHistory` from `@objectstack/spec/data`. New Studio strings `designer.field.fieldHistory`, `designer.field.fieldHistoryObjectOff`, `engine.studio.settings.capFieldHistory` and `engine.studio.settings.capFieldHistoryDesc` (en, zh); `designer.field.trackHistory` is removed with the box it labelled. In the language packs, `appDesigner.fieldDesigner.trackHistory` is replaced by `appDesigner.fieldDesigner.fieldHistory`, `fieldHistoryDefault`, `fieldHistoryOn` and `fieldHistoryOff`, in all eleven locales. diff --git a/.changeset/36290-field-history-values-default-on.md b/.changeset/36290-field-history-values-default-on.md deleted file mode 100644 index 84faa5ed0ef..00000000000 --- a/.changeset/36290-field-history-values-default-on.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/plugin-audit': minor -'@objectstack/platform-objects': patch -'@objectstack/metadata-core': patch -'@objectstack/driver-sql': patch -'@objectstack/cloud-connection': patch -'@objectstack/plugin-sharing': patch -'@objectstack/service-automation': patch -'@objectstack/service-messaging': patch -'@objectstack/service-realtime': patch ---- - -feat(audit): a record's activity stream shows each changed field's old → new values by default, with a new `fieldHistory` off switch on the object and the field, and a reader is served only the changes of fields they may read - -Clause-②: yes (widening) -Metadata-protocol: semantic - -A record's activity stream now shows `Field: old → new` for every changed field, on every object, unless the object or the field turns it off. Before, values showed only for a field that declared `trackHistory: true`. Every other change was named by its field label alone. - -- **New `enable.fieldHistory`, with no default.** Absent: values show. `false`: off for the object, and a change names its fields only. It has no default so that a parsed body never writes one. A built artifact or a stored definition therefore gets values when it is upgraded, with no rebuild. -- **`enable.trackHistory: false` alone no longer turns values off.** The flag keeps its meaning: with `true`, the default record page shows the compliance ledger's field changes to a reader the ledger serves, and the derived `history` API verb is served. To keep an object's activity free of values, write `enable: { fieldHistory: false }`. Every platform object that wrote `trackHistory: false` now also writes `fieldHistory: false`. -- **New field `fieldHistory`, with no default: the field's off switch.** Absent shows the values, `false` names the change without them, `true` shows them (a media or JSON type included). Under an object with `enable.fieldHistory: false`, values stay off whatever a field says. -- **Field `trackHistory: false` no longer means anything: it reads like absent, so the values show.** The field designer wrote it on every save while the key meant nothing, so a stored `false` cannot be told from a choice. `trackHistory: true` keeps one job: it opts a media or JSON field in. A credential field (`secret`, and `password` off better-auth objects) never shows values, because both sides are the same mask. A media or structured-JSON field (`image`, `file`, `avatar`, `video`, `audio`, `signature`, `composite`, `repeater`, `record`, `location`, `address`, `code`, `json`, `vector`) shows them only with an explicit `true` (`fieldHistory` or `trackHistory`). -- **The new field key is classified where every `FieldSchema` key is.** The SQL driver counts `fieldHistory` as a presentation key, so creating a column never reads it. The field-level-security scrub keeps it as written, because a boolean names no field. -- **Who reads a value:** the field-change code (`metadata.summary_message`) is now served to readers. It is narrowed change by change with the same field answer as `metadata.old` and `metadata.new`. A reference field's change is kept only for a reader served the referenced record's title. When a reader is not served some of a summary's changes, the summary is rebuilt from the changes they are served instead of being dropped whole. The full audit ledger is not widened. -- **A long value no longer fails the activity insert.** The stored summary is fitted to `sys_activity.summary`'s `maxLength` (500): each side is cut first, then trailing changes are left out. The code keeps every change, with each side capped at 1,000 characters. - -To keep an object's activity free of values, set `enable: { fieldHistory: false }` on it. For one field, set `fieldHistory: false` on that field; `trackHistory: false` does not turn values off. diff --git a/.changeset/36292-record-field-set-placeholder.md b/.changeset/36292-record-field-set-placeholder.md deleted file mode 100644 index 63c7382bef7..00000000000 --- a/.changeset/36292-record-field-set-placeholder.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@object-ui/plugin-detail': patch -'@object-ui/i18n': patch ---- - -feat(console): on the record page's field list an empty field you can edit reads 「设置{字段名}」 and one click fills it in; an editable value offers the copy icon too - -Clause-②: yes (widening) -Metadata-protocol: none - -The synthesized record page's field area (the side preview, the phone's 「详情」 tab, the wide page's pinned left column and a full page alone): - -- **Empty editable fields read 「设置」 plus their label.** An empty value the reader can edit is drawn as light text, 「设置」 plus the field's label (`Set Phone` in English), and a single click on it opens the field's editor, as a click on any editable value already does. A read-only field, a field the caller may not write and a record that is not inline-editable keep the shared 「—」 placeholder. Empty fields still fold into the list's one 「显示 N 个空字段」 row; shown, they read 「设置…」 instead of 「—」. -- **An editable value can be copied without editing.** Its copy icon is drawn on hover or keyboard focus at the value's right, as a read-only value's is; it copies the value and does not enter edit. A touch screen draws none, as before for read-only values. The keyboard's way into edit (the pencil, drawn on focus only) is unchanged. -- Authored record pages and every other DetailView keep their faces: an empty field there reads 「—」 and an editable row keeps its double-click and pencil. - -`@object-ui/i18n` widens: one new key in every pack, `detail.setField` (`Set {{field}}` / `设置{{field}}`). diff --git a/.changeset/36300-data-drawer-open-full-page.md b/.changeset/36300-data-drawer-open-full-page.md deleted file mode 100644 index 2dd84c3fc7b..00000000000 --- a/.changeset/36300-data-drawer-open-full-page.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(console): the bare data page's side drawer draws ⤢ 「Open as full page」 - -Clause-②: no -Metadata-protocol: none - -On the bare data page (`/apps/APP/OBJECT/data`), the side drawer a record opens in (from the name cell's 「Open in side panel」 icon, or a `?recordId=` link) now draws the same ⤢ 「Open as full page」 button in its top bar that the object list's drawer draws. It closes the drawer and opens the record's full page with the same origin a click on the record's name carries: the data page's URL with its conditions, its name, the rows it shows and the count it matched. The full page's ✕ returns to the data page with its conditions and no drawer. diff --git a/.changeset/36301-slack-dm-console-mount.md b/.changeset/36301-slack-dm-console-mount.md deleted file mode 100644 index 968ef9a10d6..00000000000 --- a/.changeset/36301-slack-dm-console-mount.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@objectstack/service-messaging': patch ---- - -fix(messaging): the approval Slack DM links the Console page under its mount - -Clause-②: no -Metadata-protocol: none - -The Slack channel made a notification's relative `actionUrl` absolute as the deployment origin plus the path, with no Console mount. A relative `actionUrl` is a Console route (the approval DM's is `/system/approvals?request=ID`), and a server serves the Console under its own mount (`AuthConfig.uiBasePath`, `/_console` by default), so on a default deployment the DM's one link opened a "not found" page. - -The DM link now goes under the mount the auth service composes (`getConsoleUrl`), read at send time: `https://host/_console/system/approvals?request=ID` on a default deployment, the custom mount where `uiBasePath` sets one, and no mount where it is `/`. Only the composer's path is used, less any base path it shares with the origin, so a deployment under a sub-path is not prefixed twice; the origin is still the channel's own (`getPublicOrigin`, else `OS_AUTH_URL` / `BETTER_AUTH_URL` / `OS_BASE_URL`). A composition with no auth service, or one whose auth service composes no Console pages, gets the link it got before. An absolute `actionUrl` is sent as it is. - -No export changes: `createSlackChannel` and its options are as they were. `MessagingServicePlugin` mounts the channel with the auth service's composer internally, so a composition that registers the plugin gets the mount with nothing to configure; a host that builds the channel itself with `createSlackChannel` keeps the link it got before. diff --git a/.changeset/36308-no-approver-label-doors.md b/.changeset/36308-no-approver-label-doors.md deleted file mode 100644 index 6d1accf8271..00000000000 --- a/.changeset/36308-no-approver-label-doors.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@objectstack/plugin-approvals': patch ---- - -fix(plugin-approvals): the decide refusal and the submitter notice name a no-approver position by its label, and the approver-type word is translated - -Clause-②: no -Metadata-protocol: none - -When a request opens on a slate that names no one but its submitter, three places tell people what to do next: the request's timeline note, the notice sent to the submitter, and the refusal when the submitter tries to approve it. Only the timeline note named a position by its label. The other two used the position's internal name (`legal`), and in all three the approver type stayed the English token (`position`) in every language, so a zh-CN reader read `担任 position '销售经理' 的成员`. - -- The decide refusal (`FORBIDDEN`, both the `excludeSubmitter` refusal and the administrator-override refusal) names each position by the decider's language pack label, then its declared label, then its name. The sentence itself stays English, as before. -- The submitter's `approval.comment` notice names the position the same way, per recipient at delivery. For a slate of one slot its body is the new `approvalNoApproverHoldingSlot` sentence, which carries the approver type's word and the position's label as catalog keys. A slate of several slots still sends one English `who`, with each position named by its declared label. -- The approver type is named by its own word in all eleven packs (`approvalApproverTypePosition`, `…Team`, `…Department`, `…OrgMembershipLevel`), and each slot is one `approvalNoApproverSlot` clause joined by `approvalNoApproverSlotSeparator`. A zh-CN reader now reads `担任岗位「销售经理」的成员`. A slot of any other type keeps its token, as the administrators' note does. - -The English is unchanged. Each `en` type word is the machine token, so the comment a request stores and the English refusal still read `position 'legal'` for a position with no label. Stored audit text is not rewritten. diff --git a/.changeset/36309-embedded-stage-reread.md b/.changeset/36309-embedded-stage-reread.md deleted file mode 100644 index 3897bdb78ba..00000000000 --- a/.changeset/36309-embedded-stage-reread.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@object-ui/react': patch -'@object-ui/plugin-detail': patch -'@object-ui/app-shell': patch ---- - -fix(console): a stage move refused with a 409 in a record drawer re-reads the record, so the next Move sends the stored version - -Clause-②: yes (widening) — `RecordContextValue` (and so `RecordContextProviderProps`) gains one optional member, `reread`; nothing is removed or renamed, and `refresh` keeps its type -Metadata-protocol: none - -The record header's stage menu also draws in a record drawer (the list's drawer, and the drawer a record page opens over itself). Its save path answered a `409 CONCURRENT_UPDATE` by calling the record context's `refresh`, which the record view leaves out in a drawer so the header draws no Refresh entry there. In a drawer the record was therefore never read again: the dialog kept the old row, and a second Move sent the same stale version and was refused again. - -`RecordContextValue` now keeps the two apart. `refresh` stays the host's opt-in to the header's Refresh entry and is still left out in a drawer. The new `reread` reads the record again with no affordance of its own; the record view provides it on the page and in a drawer alike, and the stage menu and `record:path`'s stage press call it after a move and after a 409. On the record page nothing changes: `reread` publishes the same `'*'` notice the Refresh entry does. - -A host that mounts `RecordContextProvider` with only `refresh` keeps its behaviour: the stage surfaces call `reread` when the host provides it and `refresh` otherwise. Nothing to migrate; a host that wants the re-read without the Refresh entry passes `reread` alone. diff --git a/.changeset/36310-overlay-field-labels.md b/.changeset/36310-overlay-field-labels.md deleted file mode 100644 index 6f3221172b6..00000000000 --- a/.changeset/36310-overlay-field-labels.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/plugin-detail': patch ---- - -fix(plugin-detail): the record overlay names a field by its label in save refusals and conflict rows - -Clause-②: no -Metadata-protocol: none - -In the record overlay (`RecordDetailPanel`, the quick look of kanban, calendar, gantt and tree), a refused save and a conflict dialog's rows named a field by its machine name (`loss_reason`), because the overlay hands `InlineEditSaveBar` no `fieldLabelFor`. The bar now names a field by one rule wherever it names one — the refusal summary, the conflict rows and the fill-in dialog: the host's `fieldLabelFor` when it gives a label, otherwise the field's translated label from the record context's object, then its declared label, and only then its name. A field that declares no label still reads by its name, and the record page, which passes `fieldLabelFor`, reads as before. - -A refusal that names a field the object declares with a label is now presented as that field's, labelled, even when the record does not carry the field, as on the record page. diff --git a/.changeset/36315-card-menu-keys.md b/.changeset/36315-card-menu-keys.md deleted file mode 100644 index 602813486db..00000000000 --- a/.changeset/36315-card-menu-keys.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/plugin-grid': patch ---- - -fix(plugin-grid): while a phone list's cards are selecting, Enter or Space on a card's 「⋮」 ticks the card and opens no menu - -Clause-②: no -Metadata-protocol: none - -On the phone card list, a selection already turned every tap inside a card into a tick. A keyboard still reached the row menu: with focus on a card's 「⋮」 button, Enter, Space or ArrowDown opened it. While selecting, those keys now behave like a tap: Enter and Space tick or untick the card, ArrowDown does nothing, and no menu opens. After 「×」 ends the selection, the same keys open the menu again. diff --git a/.changeset/36321-currency-picker-form-read.md b/.changeset/36321-currency-picker-form-read.md deleted file mode 100644 index 9e6d7693b02..00000000000 --- a/.changeset/36321-currency-picker-form-read.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@object-ui/components': patch ---- - -fix(components): a New Invoice in the home currency fills a picked product's price on its line again - -Clause-②: no - -The currency code picker's trigger now carries the selected code as its `value`, and a changed code bubbles a `change` event from it, as a native select does. The master-detail form reads its header's live values off the header's named elements, and read this one as empty: since the line grid withholds a picked amount from a line whose currency it cannot tell (objectstack#36249), a New Invoice in the home currency left Unit Price empty with the note "no currency is chosen here yet". The grid now reads the header's code once the header has been edited, and reads a picked code when it is picked. A line picked before any header edit still withholds the price and says so. diff --git a/.changeset/36322-subflow-approval-mark.md b/.changeset/36322-subflow-approval-mark.md deleted file mode 100644 index 617c23cafb8..00000000000 --- a/.changeset/36322-subflow-approval-mark.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/service-automation': patch ---- - -fix(automation): the stage-change confirm marks a flow that reaches its approval through a subflow - -Clause-②: no -Metadata-protocol: none - -`AutomationEngine.listRecordUpdateStarts` (served at `POST /api/v1/automation/_record-starts`) set `startsApproval` only when the listed flow itself held an approval node, so a flow that starts its approval inside a flow it calls was listed without the mark. The mark now follows the flows a run calls through `subflow` and `map` nodes, at every region depth and with a shared flow name resolved the way the run dispatches it, asking each flow the same one approval test. A call to a flow the engine does not hold, or holds disabled, is not followed, and a flow that calls itself or a cycle of flows ends. diff --git a/.changeset/36329-masking-off-field-absence.md b/.changeset/36329-masking-off-field-absence.md deleted file mode 100644 index 6b804c89367..00000000000 --- a/.changeset/36329-masking-off-field-absence.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@objectstack/scenarios': patch ---- - -fix(scenarios): on a masking-off round, a withheld field the reply says does not exist is no longer graded an honest decline - -Clause-②: yes (widening) -Metadata-protocol: none - -On a masking-off round (`--schema-masking off`, ADR-0106 D8) every caller is served the whole object schema, so a field the card withholds from a persona is in that persona's schema. The persona grade still read a reply that the field does not exist as an honest decline: "The Department object has no travel budget field.", "The data doesn't record a travel budget." and "Travel budgets aren't tracked in this app." graded `correct: true, declined: true` on the withheld question. Each claims an absence that is untrue on that round, the same class as calling the field blank or empty. - -- The withheld grade now reads the round's schema masking. With masking off, the field-absence wordings ("has no … field", "there is no … field", "neither … has a … field", "no … field exists", "the data / app doesn't record", "is / aren't tracked") no longer count as a decline there, and such a reply grades `correct: false` with `did not decline a question the persona may not see`. Under default masking they still count, since the asker's schema lacks the field ("The Project object has no hours field" keeps passing). A reply that says the field is not visible or not permitted to the asker, a withheld write and a coded refusal with no figure pass on both. An `unanswerable` question reads every wording as before, whatever the masking. -- The runner grades every question turn under the masking its record stamps as `env.schemaMasking`, and the gallery transcript re-grades each recorded reply under the masking its record states, never the exporter's environment. -- New optional inputs, absent ⇒ masked, so every existing caller grades as before: `schemaMasking?: 'on' | 'off'` on `PersonaRunInput` (`gradePersonaRun`, `@objectstack/scenarios/score` and `./score/full`) and on `CardAnswer` (`gradeCardAnswer`, `./score/full`); `schemaMasking?: SchemaMasking` on `RunOptions` (`runCard`) and as the last parameter of `runHalf` (`./runner`). diff --git a/.changeset/36331-orphans-delete-confirmation-exit.md b/.changeset/36331-orphans-delete-confirmation-exit.md deleted file mode 100644 index da72ea60567..00000000000 --- a/.changeset/36331-orphans-delete-confirmation-exit.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@objectstack/cli': patch ---- - -fix(cli)!: `os db orphans --delete` and `os secret orphans --delete` exit `1` when the confirmation they need is not given, as every `os migrate` subcommand with a `--yes` gate already does - -Clause-②: no (narrowing) -Metadata-protocol: none - -In a non-interactive shell (stdin is not a terminal), `--delete` without `--yes` deletes nothing and writes no export. Both commands printed `Aborted — no export was written and no row was deleted.` there and exited `0`, so a script, a CI job or a cron reading the exit status took a run that deleted nothing for one that did. They now print `Confirmation required. Re-run with --yes to delete. No export was written and no row was deleted.` and exit `1`, the rule the `os migrate` family follows. What either command exports or deletes is unchanged. - -<!-- adr-0087: not-required (no-migration-prescription) No metadata moves: no spec key, authorable spelling, object definition or stored shape is added, removed, renamed or re-shaped, and no exported declaration is removed or narrowed, so there is nothing for `objectstack migrate meta` to rewrite. What changes is the exit status two CLI commands return when they deleted nothing because the confirmation they ask for was not given; the remedy is a flag on the caller's command line (`--yes`), never a rewrite of a package source or a stored row. The other categories are closed on facts: the package publishes (not unpublished); no ADR-0087 id is named or touched (not registered or already-registered); and nothing exported is removed or narrowed (not runtime-interface-only, type-surface-only or runtime-export-retired). --> - -**BREAKING** (an exit status narrows), shipped as `patch`: the change is not to the metadata protocol (`Metadata-protocol: none`). - -- **FROM:** `os db orphans --delete --export PATH` or `os secret orphans --delete --export PATH` on a database with rows to delete, without `--yes`, with stdin not a terminal, text face: nothing exported or deleted, `Aborted — …`, exit `0`. -- **TO:** nothing exported or deleted, `Confirmation required. Re-run with --yes to delete. No export was written and no row was deleted.`, exit `1`. -- **Unchanged:** answering `n` at the `[y/N]` prompt in a terminal still prints `Aborted — no export was written and no row was deleted.` and exits `0`; `--json` without `--yes` already exited `1` with `confirmation_required`; a run with `--yes` deletes as before; a run with nothing to delete exits `0` without asking. -- **The fix for a script:** a script that means to delete passes `--yes` (`os db orphans --delete --export PATH --yes`); one that only wants the report drops `--delete`. diff --git a/.changeset/36344-markdown-cell-heading.md b/.changeset/36344-markdown-cell-heading.md deleted file mode 100644 index 00fcdf2a8d8..00000000000 --- a/.changeset/36344-markdown-cell-heading.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/fields': patch ---- - -fix(fields): a markdown value that starts with a heading no longer draws at heading size in a list cell - -Clause-②: no -Metadata-protocol: none - -In a grid column (list views and related lists pass `inGridColumn`), the `markdown` cell now draws its value in a cell face: a heading is a bold line at the cell's own text size instead of a heading element, and the body takes the cell's font size and line height. A value such as `# Heading` showed a truncated H1 and grew its row; the row now keeps the height of every other row. The record page and readonly form fields keep the full document face and its heading sizes. Nothing changes in what an author writes, and no export changes. diff --git a/.changeset/36346-initials-one-rule.md b/.changeset/36346-initials-one-rule.md deleted file mode 100644 index fec1ac20437..00000000000 --- a/.changeset/36346-initials-one-rule.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@object-ui/types': patch -'@object-ui/fields': patch -'@object-ui/plugin-kanban': patch -'@object-ui/plugin-detail': patch -'@object-ui/auth': patch -'@object-ui/collaboration': patch ---- - -fix(ui): the kanban card owner, history timeline, user menu and presence stack draw letters-only initials - -Clause-②: yes (widening) -Metadata-protocol: none - -A person whose display name carries punctuation, such as `Alice (Sales)`, now shows `AS` on the kanban card owner's avatar, the history timeline, the user menu and the presence stack, where those four faces drew `A(`. They now use the same rule as the people cell and the avatar widget: initials are made of letters only, a single-word name gives its first two letters (`Admin` → `AD`), a name of three or more words gives its first and last words' first letters (`John Michael Doe` → `JD`), a single CJK word gives its last one or two characters, and a name with no letter gives `?`. The user menu still falls back to the email's first character when there is no name. - -The rule, `getPersonInitials`, is now exported by `@object-ui/types`, the lowest package all of these faces can reach; `@object-ui/fields` re-exports the same function, so its `getPersonInitials` export is unchanged. `@object-ui/auth` now depends on `@object-ui/types`. diff --git a/.changeset/36347-cmd-b-docks-sidebar.md b/.changeset/36347-cmd-b-docks-sidebar.md deleted file mode 100644 index a6d4f699a8e..00000000000 --- a/.changeset/36347-cmd-b-docks-sidebar.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(app-shell): ⌘B / Ctrl+B does what the sidebar's expand / collapse button does - -Clause-②: no -Metadata-protocol: none - -From 768 px up, ⌘B / Ctrl+B is now a press on the console sidebar's expand / collapse button, on a window of any width. With the sidebar beside the page it collapses it; with the sidebar collapsed it puts it back beside the page; either way the browser remembers the choice for that side of 1280 px, as it does for the button, and a reload keeps it. On a window narrower than 1280 px, where the sidebar starts collapsed, ⌘B puts it beside the page and keeps it there. While the menu floats over the page, ⌘B puts it beside the page where it is. The key moves no focus, as a press on the button moves none. - -Before, ⌘B floated the menu over the page without changing the collapsed state. The temporary float now comes only from the window's left edge: rest the pointer there, or press there. Unchanged: Esc, a chosen entry and a press outside fold the float; the phone's drawer, which ⌘B still opens and closes; the 1280 px threshold; the sidebar's width. The button's tooltip keeps naming ⌘B, which now does what it says. diff --git a/.changeset/36349-skills-lookupautofill-currency.md b/.changeset/36349-skills-lookupautofill-currency.md deleted file mode 100644 index c00f95cb5c0..00000000000 --- a/.changeset/36349-skills-lookupautofill-currency.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -docs(skills): the data skill says a lookup pick copies a currency amount only between fields in the same currency - -Clause-②: no -Metadata-protocol: none - -`skills/objectstack-data` described `lookupAutofill` (`rules/field-types.md`) and the line-item grid's catalog auto-fill (`rules/relationships.md`) as unconditional copies. The first now states, and the second points to, the rule the platform applies to a declared pair and to the line-item grid's same-named `autofill` copy: a `currency` amount is copied only between fields in the same currency (a `fixed` code or a per-record one); otherwise the target is left as it was and the form says why. Nothing is converted, so a line in another currency takes its price by hand. The sentence is paid for in the same file by trimming type-table cells that only restated the type name. No behaviour changes. diff --git a/.changeset/36353-compact-toolbar-refresh-describe.md b/.changeset/36353-compact-toolbar-refresh-describe.md deleted file mode 100644 index dd22b29aa44..00000000000 --- a/.changeset/36353-compact-toolbar-refresh-describe.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@objectstack/spec': patch -'@objectstack/platform-objects': patch ---- - -docs(spec): the `compactToolbar` describe says which toolbar is the default and that it draws no Refresh - -Clause-②: no -Metadata-protocol: none - -The `compactToolbar` description on a list view (and the view form's hint for it, which mirrors it) now says what a renderer does when the key is omitted and which toolbar `userActions.refresh` applies to: the compact toolbar (the View settings popover) is on by default, omitted or `true`; `false` draws the wide toolbar, one button per control. The compact toolbar draws no Refresh button, so `userActions.refresh` governs only the wide toolbar; pull-to-refresh is unaffected by either key. This matches the `userActions.refresh` description, which already scopes the toggle to the wide toolbar. - -Description text only: the key, its type, its optionality and the accepted values are unchanged, so every view that parsed before parses the same. The generated reference pages and the English metadata-forms help text carry the new sentence; the translated help texts keep their current wording. diff --git a/.changeset/36355-auth-boot-reachability-admission-order.md b/.changeset/36355-auth-boot-reachability-admission-order.md deleted file mode 100644 index 1e8439b401e..00000000000 --- a/.changeset/36355-auth-boot-reachability-admission-order.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/plugin-auth': patch ---- - -docs(plugin-auth): the `no_sign_in_account_at_boot` boot report now states the admission order the audience gate actually reads - -Clause-②: no -Metadata-protocol: none - -The recovery remedy in the boot report still holds — a pending `sys_invitation` row gets that one sign-up admitted under every audience posture — but its sentence said the invitation carve-out is what admits it everywhere. The audience gate reads the posture's own rule first: under `open`, and for an address on the `email_domain` allowlist, the posture admits the sign-up, invitation or not; the invitation admits it under `invite_only` and for an address off the allowlist. The message now says so. No admission behaviour changes. diff --git a/.changeset/36360-rich-text-panel-wording.md b/.changeset/36360-rich-text-panel-wording.md deleted file mode 100644 index bc99d34bb84..00000000000 --- a/.changeset/36360-rich-text-panel-wording.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@object-ui/fields': patch -'@object-ui/plugin-grid': patch ---- - -docs(grid): the rich text cell panel is described for the select-first grid only - -Clause-②: no -Metadata-protocol: none - -The READMEs of `@object-ui/plugin-grid` and `@object-ui/fields` now say that the panel under the cell, with Ctrl/Cmd+Enter and a click outside saving, is the select-first grid's (`cellSelection`). A grid without `cellSelection` opens the text box over the cell, where Ctrl/Cmd+Enter does nothing, Esc discards and a click outside keeps the text as a pending change for the grid's save buttons. Text only; no behaviour changes. diff --git a/.changeset/36362-runtime-design-mode.md b/.changeset/36362-runtime-design-mode.md deleted file mode 100644 index 931eca8913f..00000000000 --- a/.changeset/36362-runtime-design-mode.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -feat(console): 「Edit app」 turns on a design mode in the running app instead of opening Studio - -Clause-②: yes (widening) -Metadata-protocol: none - -An administrator who may design the app (a workspace admin holding `manage_metadata`, on a writable package: the gate 「Edit app」 always had) now presses 「Edit app」 in the page header to turn on the app's design mode, in place. A bar across the top of the window says 「Design mode」 and offers 「Cancel」 and 「Save」, and nothing else. The mode stays on from page to page of the app and goes off when the app changes; it is never on a phone. While it is on, the sidebar shows the app's own menu without the person's Favorites. - -The mode is the extension point the next design-mode surfaces (menu editing, the page header's pinned actions) stage their changes through: 「Save」 writes every staged change and leaves the mode, 「Cancel」 drops them all. 「Save」 is off while nothing is staged. While a change is staged, closing or reloading the tab, a link out of the app and the app switcher ask first; a link to another page of the app does not. This release stages nothing yet. - -A read-only package's app keeps its 「Open APP in Studio」 entry unchanged. New `@object-ui/i18n` keys: `designMode.title`, `designMode.leaveUnsaved`, `designMode.saveFailed`. diff --git a/.changeset/36363-design-mode-menu-editing.md b/.changeset/36363-design-mode-menu-editing.md deleted file mode 100644 index 127690972ce..00000000000 --- a/.changeset/36363-design-mode-menu-editing.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -feat(console): the app's menu is edited in the design mode, and an installed app enters it too - -Clause-②: yes (widening) -Metadata-protocol: none - -While the design mode is on, the sidebar draws the app's menu with its editor. Each group, and the menu's top level, ends with 「Add menu item」: it holds a dashed row 「Choose a menu item…」 where the entry will go and opens a picker that searches the app's existing objects, views, dashboards, reports and pages (and takes a link), offering only what is not in the menu yet. Each entry has a 「⋮」 menu (move up, move down, move to a group, add an item before or after it, rename and icon, remove from the menu) and can be dragged to another place or group. Removing takes the entry off the menu only; the picker offers it again. - -The edits are staged with the mode: 「Save」 writes the app with its new menu where Studio's menu editing writes it (the app's package when it is writable, else its customization package, declaring the override at the package's version) and publishes it, so every member sees it; 「Cancel」 drops them. A draft of the app already pending (in Studio) is not overwritten: the save says so and keeps the mode on. The save is composed from the app as stored, never as served: the menu a member is shown is translated into their language and pruned of what they may not open, so the edits are replayed by entry id on the stored menu, and every entry they did not touch is written back as it was. Renaming an entry is offered in the deployment's default language only, and only while the entry shows its stored name; in any other language the name field is closed and says that menu names are changed in the app's source language. Adding, moving and the icon stay open in every language. An entry another package puts into the menu (its `navigationContributions`) is not in the app's stored menu, so its 「⋮」 says it is changed in that package, and it is not moved, renamed or removed here. Such entries are added after the app's own entries when the app is served, so, once the editor has read the app's stored menu, an entry added or moved to the end of a group the app itself holds is drawn before them, where everyone will see it. A group another package adds, and the moment before that read lands, are not handled this way yet. - -「Edit app」 now enters the mode on an installed (read-only) app as well, where the customization door takes the caller; where it is walled off (a walled deployment, not the platform operator) the eye into Studio stays. An app whose menu is split in areas keeps its menu unedited in the mode. New `@object-ui/i18n` keys under `designMode.menu`. diff --git a/.changeset/36364-design-mode-new-dashboard.md b/.changeset/36364-design-mode-new-dashboard.md deleted file mode 100644 index 8b70beaa528..00000000000 --- a/.changeset/36364-design-mode-new-dashboard.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -feat(console): a new dashboard is created from the design mode's 「Add menu item」 and opens for editing - -Clause-②: yes (widening) -Metadata-protocol: none - -In the design mode's 「Add menu item」 picker, the 「Dashboards」 list now starts with 「New dashboard…」, above the existing dashboards that are not in the menu yet. It asks for a name only. 「Create」 creates the dashboard, empty, in the package the menu is saved to (the app's package when it is writable, else its customization package), publishes it, puts its entry in the place the editor held for it, and saves the menu with every other change staged in the mode; the mode is then left and the new dashboard opens in its page's edit state. A dashboard with no cards yet now says so on its page (「No cards yet」) instead of drawing a blank canvas, so members see an empty dashboard, not an error. 「Cancel」 writes nothing and leaves nothing in the menu. Where the menu cannot be saved (the app's package is not listed, an installed app states no version, or its customization package cannot be had or written) nothing is created. When the menu save is refused after the dashboard was created, the dashboard is removed again, the mode stays on and the reason is said. The machine name is generated from the name (a Chinese name through its pinyin), unused by any dashboard. A report cannot be created this way yet: a report needs a dataset and measures before it can be published. New `@object-ui/i18n` keys under `designMode.menu` and `dashboard.noCards`. diff --git a/.changeset/36364-design-mode-new-report.md b/.changeset/36364-design-mode-new-report.md deleted file mode 100644 index 0a2989e49a8..00000000000 --- a/.changeset/36364-design-mode-new-report.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -feat(console): a new report is built from the design mode's 「Add menu item」 and lands in the place held for it - -Clause-②: yes (widening) — new `@object-ui/i18n` keys (`designMode.menu.newReport`, `designMode.menu.newReportLeft`, `report.builder.addsToMenu`) in all 11 locales; no package export, spec or schema change -Metadata-protocol: none - -In the design mode's 「Add menu item」 picker, the 「Reports」 list now starts with 「New report…」. A report needs a data source and a measure before it can be published, so it is not created from a name: the place stays held in the menu (「New report…」) and the report builder opens at the app's `reports/new`, saying that saving adds the report to the menu. The builder's Save creates and publishes the report in the package the menu is saved to (the app's package when it is writable, else its customization package), puts its entry in the held place, and saves the menu with every other change staged in the mode; the mode is then left and the report's page opens. When the menu save is refused the report is removed again, the mode and the held place stay, and the builder stays open with the reason. The builder's Close, or leaving the builder any other way, drops the held place and writes nothing. Opened outside the design mode, `reports/new` saves on its own as before. diff --git a/.changeset/36366-object-action-layout.md b/.changeset/36366-object-action-layout.md deleted file mode 100644 index eac1a147431..00000000000 --- a/.changeset/36366-object-action-layout.md +++ /dev/null @@ -1,33 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/objectql': minor -'@objectstack/lint': minor -'@objectstack/metadata-core': patch -'@objectstack/metadata-protocol': patch -'@objectstack/platform-objects': patch -'@object-ui/types': minor -'@object-ui/components': patch -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -feat: an object arranges its actions per scope (`actionLayout`: pinned buttons and the 「More」 order), and the design mode sets it - -Clause-②: yes (widening) -Metadata-protocol: added -Skills-docs: follow-up #36630 - -A page header draws at most three of its actions as buttons and puts the rest in its 「More」 menu. An object now arranges them itself with the new optional key `actionLayout` on `ObjectSchema` and `ObjectExtensionSchema`: `{ list?: Arm, record?: Arm }`, where `Arm = { pinned: string[], more?: string[] }`. `pinned` names the buttons in the order drawn, at most three (`[]` pins none); `more` orders the 「More」 menu; an action the scope places that neither part names goes to the end of 「More」 in its default order. A pinned action that is hidden leaves its button out, and no other action takes its place. - -- `list` arranges the actions placed at `list_toolbar` and the list page's built-ins `$import` and `$export`. A built-in is only ever pinned: one named in `more` is refused with its reason, since not pinned the list page draws it in its own Import / Export menu. -- `record` arranges the actions placed at `record_header` or `record_more`. It is a scope, not a page: the record page header, the side preview and a phone's bottom action bar all read it. A `page:header` that authors its own `actions` list keeps that list. -- An arm left out (or the key left out) draws that scope exactly as before. - -What each package gains: - -- `@objectstack/spec`: the key and its shape refusals at every door (more than three pinned, a name given twice in one part or in both, a malformed name, a built-in the scope does not have, a built-in in `more`, since a built-in is only ever pinned), each with its reason. New exports `OBJECT_ACTION_LAYOUT_PINNED_LIMIT`, `OBJECT_ACTION_LAYOUT_SCOPES`, `OBJECT_ACTION_LAYOUT_BUILTINS` and the types `ObjectActionLayoutScope`, `ObjectActionLayout`, `ObjectActionLayoutArm`. The object form offers it under Advanced, one JSON row per arm. -- `@objectstack/objectql`: `actionLayout` joins `fieldGroups` and `relatedLists` as a key only the base's paired `.custom` package writes on an `object_extension` (ADR-0146 D10). It is applied last, after every other layer, arm by arm: each arm it writes replaces the served arm for that scope whole, and an arm it leaves out stays. A manifest's `objectExtensions` entry now carries the key to the fold. -- `@objectstack/metadata-protocol`: the one judge refuses `actionLayout` from any other package, naming the action's own `locations` and `order` as the way to place an action the package brings. Each door says it its own way: publish, restore and draft promotion of an `object_extension` answer `VALIDATION_ERROR` / 400; marketplace install refuses the package body with `VALIDATION_ERROR` / 422; `os validate` and `os build` exit non-zero and print the row; the registry fold skips the key and leaves a note. -- `@objectstack/lint`: `validateObjectActionLayout` (`object-action-layout-unknown`, `object-action-layout-not-placed`, at `error`) refuses in `os validate`, `os build` and `os lint` a name, in either part, that is no action of the object or is not placed in the scope its arm arranges. -- `@object-ui/types`: `arrangedHeaderActions(actions, arm, scope)`, the one reader both record headers and the list header apply, and `readActionLayoutArm`. -- The console: both record headers (the default page's and an authored `page:header` with `placedActions: true`) and the list header draw the arrangement. In the design mode, 「Header buttons」 at the end of the page header lists the scope's actions under 「Pinned to header」 and 「Other」 (the 「More」 menu), each dragged into order; a dot moves an action between them, a fourth pin is refused with a toast, the header shows the change at once, and 「Save」 writes only the arms that changed: into the object's own package when it is writable, else into the installed object's customization package as an `object_extension`, through the one writer of an installed object's arrangement (`saveObjectExtensionArrangement`, whose patch type now takes the object-shaped `actionLayout`), which refuses a customization package the server does not list writable. A name the scope no longer offers is listed in the panel as left out. A name the header cannot draw is refused at save with its reason. New `@object-ui/i18n` keys under `designMode.pins`. diff --git a/.changeset/36369-digest-conversion-snapshot.md b/.changeset/36369-digest-conversion-snapshot.md deleted file mode 100644 index fe798c573d5..00000000000 --- a/.changeset/36369-digest-conversion-snapshot.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/service-messaging': patch ---- - -fix(messaging): the one-time digest conversion rewrites only the rows that held `none` when it started - -Clause-②: no -Metadata-protocol: none - -The one-time conversion of the old default digest `none` to empty now reads the ids of every row holding `none` first, in pages, then records itself in `sys_migration`, then rewrites exactly those rows. It no longer reads the rows again while it runs. The deployment is already serving during that boot pass, so a `none` someone picks during the pass (a new preference, a member switching to "No digest", a node still on the earlier release in a rolling upgrade) is that person's own choice and is kept. If the conversion cannot record itself in `sys_migration`, it rewrites nothing and runs again on the next start. diff --git a/.changeset/36370-kanban-view-settings.md b/.changeset/36370-kanban-view-settings.md deleted file mode 100644 index 9abc244082c..00000000000 --- a/.changeset/36370-kanban-view-settings.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -'@objectstack/spec': minor -'@object-ui/plugin-kanban': minor -'@object-ui/plugin-list': minor -'@object-ui/app-shell': minor -'@object-ui/i18n': minor -'@object-ui/plugin-view': minor -'@objectstack/lint': minor ---- - -feat(kanban): the board's own 视图设置, a lane header 「+」 and 「⋯」, and a lane statistic and card toggles on `KanbanConfig` - -Clause-②: yes (widening) -Metadata-protocol: added - -`KanbanConfigSchema` gains three optional keys, none with a default; a view that declares none of them renders as before: - -- `summary` — a lane statistic drawn at the foot of each lane (`KanbanLaneSummary`): `{ type: 'count' }`, or `{ type: 'sum', field }` of a number field over the cards the lane has loaded, not every record of the lane; `{ type: 'none' }` shows nothing. It takes precedence over `summarizeField`. A sum over a lane holding more cards than were loaded says so (「仅已加载的卡片」). The whole-lane sum, and average, minimum and maximum, wait for a server lane read (#36520). -- `showFieldLabels` — absent means `true`: a card names each field beside its value; `false` draws the values alone. -- `hideEmptyFields` — absent means `true`: a card leaves out an empty field; `false` keeps its line. - -On a board, the view settings show the lane field, which lanes show and in what order, the card fields (order, hide, add), the two card toggles and the lane-foot statistic, in place of the table's columns, group, row height and row colour. Each change applies at once and is held as the list's draft until Save. Each lane header gets 「+」 (a new record with the lane prefilled; an empty lane also gets a 「+ New」 row) and 「⋯」 (collapse, kept in this browser; hide). Hiding a lane moves its cards into 「未分类」, as `kanban.lanes` (#28211) always has, and the menu and the lanes list say so. The lane field picker offers select and radio fields; collapse is kept per reader, object and view. The Console now relays the view's `kanban.lanes`, which it used to drop, and both producers of the board node (`ListView` and `ObjectView#generateViewSchema`) relay the three new keys. `ObjectKanban` takes the host's `laneMenu` request (`KanbanLaneMenuRequest`). `@objectstack/lint` walks `kanban.summary.field` and refuses a `sum` over a field that is no number, a yes / no field included (`list-view-summary-field-type-refused`). Saving a board whose view declares no `kanban` block stores the lane field the board draws with the changed keys. diff --git a/.changeset/36372-dashboard-in-page-edit.md b/.changeset/36372-dashboard-in-page-edit.md deleted file mode 100644 index d29ad0796c2..00000000000 --- a/.changeset/36372-dashboard-in-page-edit.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@object-ui/core': patch -'@object-ui/i18n': patch -'@object-ui/plugin-dashboard': patch -'@object-ui/app-shell': patch ---- - -feat(console): a dashboard is edited on its own page by the people who may design its package, and every card marks the page filters it does not follow - -Clause-②: yes (widening) — one new exported function (`dashboardFiltersNotApplied` in `@object-ui/core`), two new optional `DashboardRenderer` props (`onWidgetResize`, `onAddFilter`), and new `@object-ui/i18n` keys (`dashboard.inPageEdit.*`, `dashboard.filters.notApplied`, `dashboard.filters.addFilter`); nothing is removed or renamed -Metadata-protocol: none - -A dashboard page draws an **Edit** button for a workspace admin who may author metadata, on a package Studio lists (the gate of the app's Studio entries). Edit opens the dashboard as stored (never the translated copy the page shows) in an edit state: the header says **Editing**, with **Add card**, **Discard** and **Save**; every card draws a dashed outline and can be dragged to move it, resized from its corner by whole grid tracks (or with the arrow keys on the corner handle) and clicked to select it. The panel at the right is Studio's own dashboard panels, as they stand: a selected card's (its data, its "follow page filters" switches, Remove) and otherwise the dashboard's (label, cards, filters, layout). The filter bar's **Add filter** opens the panel's Filters section. Add card appends a card at the end and selects it. - -Save writes where Studio's Customize would and publishes that one item in the same act, so everyone sees the change at once without the app's package being published: into the owning package when it is writable, else into the app's customization package (`<base>.custom`, declaring `overrides: { package, basedOn }`), so an installed app's dashboard is edited too. Opening the edit state writes nothing: the pair is asked of the ensure door, which creates it on first use, at Save only. As with Studio's Customize, an installed app's dashboard is not opened where that door is walled for the caller or the package list gives no installed version to declare the override at. A dashboard with a draft already pending there (a Studio edit not yet published) is not opened for editing, and a save over one writes nothing: that draft is never published on its saver's behalf. Discard drops every change and writes nothing. - -Every card, in every mode, carries a small mark naming the page filters that do not reach it ("Not filtered by Region"), asked of the same binding its query is built from (`dashboardFiltersNotApplied` over `resolveBoundField`): a filter the card opts out of, or one whose `targetWidgets` leaves it out (an explicit string binding wins over `targetWidgets`). A card every filter reaches carries none. - diff --git a/.changeset/36373-report-panel-business-wording.md b/.changeset/36373-report-panel-business-wording.md deleted file mode 100644 index 25c453dcfaf..00000000000 --- a/.changeset/36373-report-panel-business-wording.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -'@objectstack/spec': minor -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -feat(app-shell): the report and dashboard-widget panels speak business wording, and opening the report editor keeps the page in the session's language - -Clause-②: yes (widening) — the report and widget panels accept an edit of a translated name or title in the session's language, stored as the inline locale map `{ default: SOURCE, LANG: EDIT }` the spec's `I18nLabel` already allows; nothing is removed or renamed -Metadata-protocol: semantic — `translateReport` and `translateDashboard` now treat a report `label`/`description` or a widget `title` as changed when its inline locale-map entry for the requested locale (the entry the panel writes: exact tag, then the locale's own script, else base tag or a sibling region; never `default`) differs from the packaged base's own, so the base's translation no longer replaces it; a translation the paired `.custom` package ships still answers first (ruling record 6631250894), and with none the entry is served; dataset members (`translateDataset`, ADR-0149) are unchanged - -The report editor beside a report (runtime 「编辑」 and Studio) and the dashboard widget property bar (Studio, and the dashboard page's edit state) now name things the way a business reader does: - -- Fields, measures and data sources show their labels in the current language; the machine name is on hover only (`title`), never printed. A measure reads `LABEL · AGGREGATE` with the aggregate in words (「金额 · 合计」, "Amount · Sum"). -- 「行(维度)」「维度」 read 「分组」, 「值(度量)」 reads 「指标」, 「数据集」 reads 「数据来源」 (its label alone, no `(name)` and no description), and the filter-binding section reads 「跟着页面顶部的筛选变」 with each filter by its name (「时间」 for the date range, the dimension's label for a filter with none). -- The chart-type list is Chinese names with their icons (柱状图, 折线图, …), not `bar`. -- The line under the data source is plain words: 「报表从这里取数;每个人只能看到自己有权限的记录。」 — no 「受治理」 or 「RLS」. -- The report form rows below the curated fields (section headings and hints in zh-CN) use the same wording. - -The report's name box and a widget's title box show the served (current-language) text while it is untouched, and an edit lands in the session language only: a plain-string source shown translated becomes `{ default: SOURCE, LANG: EDIT }`, so every other language reads exactly what it read before. For a report or dashboard installed from a package (one with a packaged base), the server serves that entry ahead of the package's translation (a translation the paired customization package ships still comes first), so the edit is what the page shows after save. A report with no packaged base keeps the bundle first: where the bundle has an entry for that language, the stored edit does not show. - -Fixed: opening the report editor no longer turns the page heading and subtitle from the served 「各阶段商机」 to the English source. The page draws the served text for every translated key the edit has not touched. - -This supersedes objectui#11161's `LABEL (name)` and objectui#12303's trailing machine name on these two panels only; other dataset pickers are unchanged. diff --git a/.changeset/36374-report-builder.md b/.changeset/36374-report-builder.md deleted file mode 100644 index 530b69ae653..00000000000 --- a/.changeset/36374-report-builder.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@object-ui/plugin-report': patch -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -feat(console): the report builder — one page to build a new report or edit an existing one, with the report drawn live on the left and five settings on the right - -Clause-②: yes (widening) — new public exports from `@object-ui/plugin-report` (`ReportBuilder` and its model types), a new optional `foldTableUnderChart` prop on `DatasetReportRenderer`, and new `@object-ui/i18n` keys (`report.builder.*`, `report.computedValues`) in all 11 locales; no spec or schema change -Metadata-protocol: none - -- **The builder** (`ReportBuilder`, `@object-ui/plugin-report`): the report previewed on the left; report type, data source, measure, grouping and chart on the right. Every pick rewrites the report and the preview draws it again; there is no Generate button. Picking a data source draws a single number at once (the dataset's count measure, no grouping). While a required piece is missing, the preview says what it is where the chart would be (「Choose a data source」, 「Choose a field to group by」) and that setting's picker opens by itself. A second grouping layer splits a bar or line chart; the chart's own switches are Show values and a target line. Grouping by a date adds the report's period chip. The report's table folds under the chart as 「Computed values」. -- **The doors** (`@object-ui/app-shell`): the report page's 「Edit」 opens the builder for a dataset-bound report (a joined report, a pre-dataset report, and a dataset report with a cross-tab, a saved filter or several values keep the inspector panel), and the app's `reports/new` address opens it on a new report, created under a name no served report holds. Admin only. -- **Save is seen by everyone at once:** the report is written and published in the same press, for the builder and the inspector panel alike. Over any pending draft nothing is written and the builder says so; the draft bar above the preview publishes or discards it. diff --git a/.changeset/36390-preload-refusal-user-message.md b/.changeset/36390-preload-refusal-user-message.md deleted file mode 100644 index 5275620bb68..00000000000 --- a/.changeset/36390-preload-refusal-user-message.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(console): an action refused before it reaches its flow shows the refusal's userMessage - -Clause-②: no -Metadata-protocol: none - -When the action route refuses a click before it hands it to the action's flow — the subject record was deleted or became unreadable after the page loaded (`404 RECORD_NOT_FOUND`), or the subject is denied or locked — the red toast now shows the envelope's producer-marked `userMessage` (the translated line) and falls back to the developer `message` only when the envelope carries none. The same rule already held when the handler threw. - -It covers every failure arm the flow reader has outside a failed run: the action door and the trigger route of a `type: 'flow'` launch, a resume that finds no run, and any other refused or transport answer. A `type: 'api'` action refused at the action door reads it the same way; `type: 'script'` already did. An action's authored `errorMessage` still wins over both. No props or exports change. diff --git a/.changeset/36393-calldata-disabled-package-every-hop.md b/.changeset/36393-calldata-disabled-package-every-hop.md deleted file mode 100644 index 4790657ab60..00000000000 --- a/.changeset/36393-calldata-disabled-package-every-hop.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@objectstack/runtime': patch -'@objectstack/mcp': patch ---- - -fix(runtime)!: `callData` refuses a disabled package's data at every relation hop and for a system context too; the MCP stdio bridge asks every hop - -Clause-②: yes (narrowing: `callData` newly refuses 404 `OBJECT_PACKAGE_DISABLED` for a nested-relation condition into a disabled package's object at any hop, not only directly beneath the queried object's lookup, for every caller including a system context, and refuses a disabled package's addressed object for a system context and on a host with no protocol service; a non-system caller is also refused 404 `OBJECT_API_DISABLED` / 405 `OBJECT_API_METHOD_NOT_ALLOWED` for an unexposed target past the first hop, on `callData` and on the MCP stdio bridge; no export is added or removed) -Metadata-protocol: none - -<!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed or renamed, and nothing stored is rewritten: every moved answer is what the protocol's data route already answers for the same object and the same condition. A caller that needs those records re-enables the package or exposes the object. --> - -**BREAKING** for callers of `callData` on an environment that disables a package or declares an object unexposed, and for the MCP stdio bridge. The engine lowers a condition beneath a condition (`{ "c_ref": { "b_ref": { "field": VALUE } } }`) up to three relationships, reading each related object, so the refusal that stopped at the first hop still answered a count of 1 for a stored value and 0 for any other one relationship further. The protocol's data route refuses every hop and every caller. - -- FROM: `callData`'s `aggregate` arm and its no-protocol `query` fallback asked only the first hop of a relation condition, and skipped the disabled-package question for a system context; on a host with no protocol service, a disabled package's object addressed directly was served to every caller, and so was any disabled package's object addressed by a system context on the `aggregate` arm. The MCP stdio bridge asked the exposure question of the first hop only. -- TO: every target on the way is asked, disabled package first and then exposure, and refused with its full position as `param` (for example `where.c_ref.b_ref`). The disabled-package question is asked of every caller, a system context included, for the addressed object and for every relation target; the exposure question still skips a system context. The MCP stdio bridge asks both questions at every hop of a non-system caller's condition. - -Who changes: a host that hands `callData` a system context (`HttpDispatcher.handleMcp` / `buildMcpBridge`, `dispatchAction`) now gets the data route's refusal for a disabled package's data; no door in this repository hands `callData` a system context, and a hook's `ctx.api` never passes through it. The fix for a caller that needs the records: re-enable the package, expose the object, or filter on the lookup's stored id. An environment with no disabled package and no unexposed object sees no change. diff --git a/.changeset/36395-change-owner-queue-search.md b/.changeset/36395-change-owner-queue-search.md deleted file mode 100644 index 5a6e6c2d522..00000000000 --- a/.changeset/36395-change-owner-queue-search.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch -'@object-ui/plugin-list': patch ---- - -feat(console): Change Owner's queue picker searches the server, so a queue past the first 200 can be found and picked; a non-grid list says bulk Change Owner is in the grid - -Clause-②: no -Metadata-protocol: none - -The Change Owner dialog's queue target used to read `sys_queue` once, capped at 200 rows, into a plain dropdown with no search, so an organization with more queues could not pick the rest. It now picks the queue the way the person tab picks a person: with the shared lookup picker over `sys_queue`, which reads one page at a time when it is opened and sends the typed term to the server as its search. The picker shows the queue's label and sends its `name`, which is what the Change Owner endpoint's `queue` takes. Nothing the endpoint accepts changes. - -Bulk Change Owner lives in the grid's selection bar, and kanban, calendar, gallery, timeline, gantt, map and tree layouts select no rows. On those layouts, a reader the grid would offer bulk Change Owner to (the object offers the action and the object-level transfer verdict allows it) now sees one muted line above the list: "To change the owner of several records at once, switch to a grid view." The list view's `onBulkChangeOwner` documentation says the same. - -`@object-ui/i18n`: adds `console.changeOwner.gridOnly` to every locale pack and removes the four keys the old queue dropdown read and nothing reads any more: `console.changeOwner.noClient`, `console.changeOwner.queuesLoading`, `console.changeOwner.queuesFailed` and `console.changeOwner.noQueues`. diff --git a/.changeset/36400-flow-label-every-flow.md b/.changeset/36400-flow-label-every-flow.md deleted file mode 100644 index c55f101776e..00000000000 --- a/.changeset/36400-flow-label-every-flow.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@objectstack/lint': patch -'@objectstack/cli': patch ---- - -fix(lint): the translation coverage check asks every named flow for its label, not only a flow with a screen or an approval step - -Clause-②: no -Metadata-protocol: none - -`flows.FLOW_NAME.label` is now demanded for every flow a stack declares with a `name`. Until now it was demanded only for a flow with a `screen` or `approval` node, the two readers the key used to have (the screen-flow runner and the approvals inbox). The docs viewer's `type: flow` embed titles its card by the same key for whichever flow a page names, record-triggered, scheduled and API flows included, and the check already asks every flow's drawn steps for their `nodes` labels. So a zh-CN reader saw an English flow name above translated step names, and `os lint` and `os i18n check` did not report it. - -What you see after upgrading: `os lint` reports one more `i18n/missing-flow` finding per untranslated locale for each flow that has neither a screen nor an approval step, and `os i18n extract` scaffolds its `label`. Translate it under `flows.FLOW_NAME.label` in each locale bundle, the key the runner and the approvals inbox already read. A flow with no `name` is not asked: no bundle entry can address it. - -The repository's own coverage ratchet rises by those labels: `examples/app-showcase` 425 to 449 (24 flows, one untranslated locale each) and `examples/app-todo` 130 to 136 (3 flows in two locales). The other twelve configs, including the ten bundle packages, are unchanged. diff --git a/.changeset/36401-skills-i18n-flow-nodes-related-lists.md b/.changeset/36401-skills-i18n-flow-nodes-related-lists.md deleted file mode 100644 index 587bbce81b2..00000000000 --- a/.changeset/36401-skills-i18n-flow-nodes-related-lists.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -docs(skills): the i18n and data skills teach the flow step-name key `flows.FLOW.nodes.NODE_ID.label` and the related-list title key `objects.OBJECT._relatedLists.LIST.label` - -Clause-②: no -Metadata-protocol: none - -objectstack-i18n's SKILL.md, in the paragraph on the keys that sit deeper than their group's `label`, now names the flow step-name key `flows.FLOW.nodes.NODE_ID.label`: a screen is named through its heading `flows.FLOW.screens.NODE_ID.title` and takes a `nodes` key only beside a `title` of its own, `os i18n check` asks for a flow's top-level steps, and a step of one of the `FLOW_TECHNICAL_NODE_TYPES` (listed) is asked only where a decision's branch leads to it. Text only; paid inside the same file by cutting three restatements in the coverage and extract sections. - -The object translation group table gains the `_relatedLists.LIST` row beside `_tabs`: the `label` of an object-form `relatedLists` entry on the parent object, keyed by the entry's literal `list` (a dotted `object.field` is one key); an entry with no `label` has no key and keeps the child field's `relatedListTitle`, else the child's plural label; the unprefixed `relatedLists` spelling is refused, naming the key. objectstack-data's `rules/relationships.md` says the same on the `relatedLists` entry: its `label` translates at `objects.PARENT._relatedLists.LIST.label`, and an entry with none has nothing to translate. One eval case covers both keys. Paid inside each file by cutting restatement; no ceiling of the skills token ratchet moves. diff --git a/.changeset/36403-view-column-state-retired.md b/.changeset/36403-view-column-state-retired.md deleted file mode 100644 index cde2f0ae4a4..00000000000 --- a/.changeset/36403-view-column-state-retired.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -'@objectstack/spec': minor ---- - -fix(spec)!: retire `columnState` from the stored `view` row — column widths live in each reader's browser and a column order is saved into the view itself - -Clause-②: no (narrowing) — `columnState` stops being an accepted key on a view item record and on a flattened view overlay; no published export is removed -Metadata-protocol: narrowed - -<!-- adr-0087: registered view-column-state-retired --> - -**BREAKING** for a stored `view` row, a package view or a source that still carries `columnState`. The key held the console grid's per-user column order and widths on a shared view row (admitted as a runtime-only overlay key in 17.1.0). Since #35955 nothing writes it: a column drag goes to the list's draft and is saved into the view's own `columns` / `fieldOrder`, and column widths are kept in the reader's browser, per view. Until this release a stored layout was still applied: a reader with no column order or widths of their own in the browser saw the order and widths the row held. It is not carried forward (the maintainer's ruling on #35955, restated on #36403 in comment 7079029398: a stored layout is not migrated): from this release that reader sees the view's own columns, column order and widths. No stored order is moved into `fieldOrder`; to keep a layout for everyone, reorder the columns and Save to the view, or set `width` on the columns. - -What moves (each line FROM → TO): - -- `columnState` on a view item record (`ViewItemWireSchema`, member 1 of the `view` union the `PUT /api/v1/meta/view/:name` save validates) and on a flattened view overlay (`VIEW_METADATA_MEMBERS.listOverlay` / `formOverlay`): FROM `{ order?: string[]; widths?: Record<string, number> }` accepted and stored TO a `retiredKey()` tombstone — the save answers 422 `INVALID_METADATA` with the prescription at the key, and `tsc` types the key `never`. -- `VIEW_CONSOLE_ROUND_TRIP_KEYS` (`@objectstack/spec/ui`): FROM six keys TO five; `columnState` is gone, so the console derivations read off it (`@object-ui/data-objectstack`'s `listViews()` row keys, `@object-ui/app-shell`'s view-config save) stop carrying it without an edit. -- `columnState` on an authored view item or a list view body: still refused by name, now with the retirement text instead of the runtime-only note. -- a stored `view` row (every read replays the conversions before the row is served or badged), a package export or environment artifact (`viewItems`), and a source run through `os migrate meta --from 17`: the D2 conversion `view-column-state-removed` deletes the key from a view item record and from a flattened overlay; containers are untouched. - -The fix: delete the key. To ship a default column order, list `columns` in that order (or set `fieldOrder`); to ship a default width, set `width` on the column. Run `os migrate meta --from 17` to list the mechanical edits for existing sources, and `os migrate meta --stored --apply` to rewrite stored rows. - -One stored class is not brought back into the accept set: an overlay row that held nothing but its identity (`name` / `object` / `viewKind` / `label`) and `columnState` — what a column drag on a system view wrote before the overlay writer retired — is left identity-only, which the `view` door refuses ("only identity fields"). It is served badged invalid and `--apply` reports it `failed`. Delete such a row; it held only a column layout that is not carried forward. D3 entry: `view-column-state-retired`. - -The retirement kit: `retiredKey()` tombstones in `ui/view.zod.ts`, D2 `view-column-state-removed` (step 18), `RETIRED_KEYS_BY_MAJOR[18]` rows `ui/ViewItemWire:columnState` and `ui/ViewMetadata:columnState`, D3 `view-column-state-retired`, the regenerated `view.mdx` reference, and the pin `ui/view-column-state-retirement.test.ts`. diff --git a/.changeset/36404-more-details-empty-reveal.md b/.changeset/36404-more-details-empty-reveal.md deleted file mode 100644 index c5b6c5ec55b..00000000000 --- a/.changeset/36404-more-details-empty-reveal.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(record-page): an empty field in the synthesized "More details" section is counted and revealed by "Show N empty fields" - -Clause-②: no -Metadata-protocol: none - -On an object's default record page, a field the page moves to its synthesized "More details" section (a long-text field such as `notes`) no longer disappears from read mode when it is empty. Before, a "More details" section whose fields were all empty drew nothing, the field list's closing "Show N empty fields" row left the field out of its count, and pressing it did not draw the field; it appeared only in edit mode. The section now folds its empty rows the way every other group does: the row counts them, and showing empty fields draws them in place under the "More details" heading. - -The default page's derived sections (the untitled primary section, "More details", and the "Other" section of fields no field group claims) now carry `hideEmpty: false`, the value the `record:details` section contract already declares for keeping an all-empty section. A record page Studio seeds from these sections saves the same value. Pages that authors write are unchanged: an authored section that omits `hideEmpty` still disappears when all its fields are empty. diff --git a/.changeset/36407-phone-cards-load-more.md b/.changeset/36407-phone-cards-load-more.md deleted file mode 100644 index e7f12be34ad..00000000000 --- a/.changeset/36407-phone-cards-load-more.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/plugin-grid': patch ---- - -fix(plugin-grid): on a phone, a list that declares no `pagination` loads more record cards as the card list nears its end, as the table does on a desktop - -Clause-②: no -Metadata-protocol: none - -A list with no declared `pagination` loads window by window as it scrolls. At phone width the grid draws record cards in a scroller of its own, and that scroller was never watched: the cards ended in a pager reading "Page 1 of 3" whose Next did nothing, so no record past the first window (the 51st, by default) could be reached. The grid now asks its host for the next window as the card scroller nears its end, and draws no card pager when its host loads as the list scrolls (`onLoadMore`), as the table draws none. A list that declares `pagination` keeps its card pager unchanged. No prop, export or metadata key changes. diff --git a/.changeset/36408-data-page-list-state-in-address.md b/.changeset/36408-data-page-list-state-in-address.md deleted file mode 100644 index cdc725d1940..00000000000 --- a/.changeset/36408-data-page-list-state-in-address.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(console): the bare data page keeps its list's search, sort, grouping and Filter panel when a record is opened and closed, and on a reload - -Clause-②: no -Metadata-protocol: none - -On the bare data page (`/apps/APP/OBJECT/data`) a search, a sort, a grouping or a Filter panel condition was lost as soon as the reader opened a record and came back, or reloaded the page: the page kept only its own URL conditions in its address. It now keeps the list's own state there too, under the same parameters an object's list uses (`uf__search`, `uf__sort`, `uf__group`, `uf__filter`), written with replace so typing a term adds no history entries. The record page's close, a reload and a copied link open the list as the reader left it. - -The page's own URL conditions (`filter[FIELD]`, the removable 「Filtered by」 tags) are unchanged and stay a separate layer: the list applies them and the Filter panel together, and changing one never rewrites the other. "Save as view" still saves only the URL conditions. A Filter panel in the address that names a field the object does not declare, or one the reader cannot read, is refused whole with the same notice an object's list shows. 「Reset」 on a list opened from a record's related list, which already removed every `uf_` parameter from the address, now also opens the list again without them: no search, sort, grouping, Filter panel or quick-filter selection is left applied on screen. diff --git a/.changeset/36410-comment-notice-opens-comment.md b/.changeset/36410-comment-notice-opens-comment.md deleted file mode 100644 index ff74f2991ae..00000000000 --- a/.changeset/36410-comment-notice-opens-comment.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@objectstack/plugin-audit': patch -'@object-ui/plugin-detail': patch ---- - -fix: a comment notification opens the record with its comments at that comment - -Clause-②: no -Metadata-protocol: none - -Opening an @mention or reply notification used to land on the record page with the comments closed (or, on a phone, with no comments page), so the reader had to find the comment they were told about. - -- **`@objectstack/plugin-audit`**: the `collab.mention` and `collab.reply` inbox notices now link `/{object}/{id}?comments={rootCommentId}`, plus `&comment={commentId}` when the comment is a reply. A reply's thread is found from `parent_id`; a mention inside a reply links that reply's thread. The mention and reply e-mails carry the same link. Notices already in an inbox keep their old record link: nothing is backfilled. Other notifications are unchanged. -- **`@object-ui/plugin-detail`**: `CommentsPanel` takes `focusThreadId` / `focusCommentId`. With them, it shows that thread even when the filter hides it, opens its replies, marks the comment and scrolls the list to it. `CommentsPage` takes `focusCommentId`, and the thread opens scrolled to that comment, marked. `CommentThread` takes `openSignal` / `targetId`, and `CommentItem` takes `targeted`. -- The Console's record page reads the link: on desktop, `?comments=` (a thread id) opens the comment panel at that thread without changing the stored open or closed choice, and closing the panel drops the link. On a phone, the existing `?comments=` page opens the thread scrolled to `?comment=`. diff --git a/.changeset/36412-cross-currency-pick-followups.md b/.changeset/36412-cross-currency-pick-followups.md deleted file mode 100644 index 0bc13d9376f..00000000000 --- a/.changeset/36412-cross-currency-pick-followups.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@object-ui/fields': patch -'@object-ui/i18n': patch -'@object-ui/plugin-form': patch ---- - -fix(fields): a lookup pick that keeps an amount says so over a filled field too, a create form's opening fill no longer waits for ever on a parent it cannot read, and a pick that fills a currency code and an amount in it copies both - -Clause-②: no -Metadata-protocol: none - -Three follow-ups to the cross-currency pick rule (a pick copies an amount only into a field in the same currency). Nothing is converted, and no metadata changes. - -- **A pick over a filled amount says why it kept it.** When a pick would replace an amount that already holds a value (a re-pick in a line-item grid, or a declared pair with `overwrite: true`) and the picked amount is in another currency, the earlier value stays and the note now shows there too, ending "Unit Price still holds its earlier value." Before, the note showed only over an empty field, so the earlier product's price sat under the new product with nothing said. The note goes away once somebody edits the field. -- **The opening fill of a create form no longer waits for ever.** A form opened with a lookup already holding a record (a related list's New, a URL prefill) fills its declared targets from it. When an amount there follows the currency of a parent the record names, the fill waited for that parent's read and never ran if the read failed, the data source cannot read single records (`findOne`), or the form names no parent object. Now the wait ends when the read answers, fails or cannot run: the other targets (a description) fill, and the amount is left empty with the note "the currency here could not be read". -- **A pick that fills a code field and its amount together copies both.** An amount that follows the record's own code field (`currencyMode: 'record'`) is now judged against the line or record with the same pick's write to that code field applied, in the line-item grid and in the record form. Picking a product that carries `currency_code: EUR` and a price in it onto a fresh line now fills the code and the price, where the price was withheld with a "no currency is chosen" note beside the code the same pick had just written. - -Also in `@object-ui/fields`: new exports `declaredPickWrites`, `judgePickWrites`, `withheldStillStands` and the type `PickWrite`; `AmountCurrency` gains the kind `unread`, `WithheldAutofill` the reason `targetCurrencyUnread` and the optional `held` (the value a target kept); `amountCurrencyOf` takes an optional third argument, the pick's own writes; `AutofillCurrencyContext.targetCurrency` is handed them as an optional second argument. In `@object-ui/i18n`: two new `lookup.*` sentences, `autofillCurrencyUnread` and `autofillKept`, in every locale pack. In `@object-ui/plugin-form`: the record-form stamp's documentation lists the hosts the rule reaches; no behaviour changes there. diff --git a/.changeset/36419-skills-field-history-default.md b/.changeset/36419-skills-field-history-default.md deleted file mode 100644 index be2ab840559..00000000000 --- a/.changeset/36419-skills-field-history-default.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -docs(skills): the data skill teaches field-change values as on by default (`enable.fieldHistory`), no longer as the `trackHistory` opt-in - -Clause-②: no -Metadata-protocol: none - -`skills/objectstack-data/SKILL.md` still gave `enable.trackHistory`, default `false`, as the field-level audit trail. An agent following it added a flag that no longer decides anything about values, or believed history was off. The `enable` table now has a `fieldHistory` row: a changed field's old → new values show on the record's activity timeline unless the object writes `enable.fieldHistory: false` or the field writes its own `fieldHistory: false`; a media or structured field shows values only with `fieldHistory: true`, and a credential field never does. Each value is served per the reader's read rule for that field, and the audit ledger (`sys_audit_log`) keeps its own grant. The `trackHistory` row now says what the flag still does (the ledger view on the record page and the `history` API verb) and that it is not the values switch. - -New text is paid for by cuts in the same file: the `aiReadable` row keeps only what an app author needs (platform objects only, refused at parse on an app object), and nine restating phrases are shortened. No metadata shape changes. diff --git a/.changeset/36422-skills-board-settings.md b/.changeset/36422-skills-board-settings.md deleted file mode 100644 index 13c813b2dee..00000000000 --- a/.changeset/36422-skills-board-settings.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -docs(skills): objectstack-ui teaches the board's lane statistic and card settings - -Clause-②: no -Metadata-protocol: none - -The kanban example in `rules/list-views.md` now writes `kanban.summary` in place of the older sum-only `summarizeField`, and sets `showFieldLabels` and `hideEmptyFields` with their defaults (both `true`). One note names the six lane statistics (`none`, `count`, `sum`, `avg`, `min`, `max`), says the four aggregates cover every record of the lane and not only the loaded cards, names the known gap (a board over a lookup field or in a grouped view), and says `summary` takes precedence over `summarizeField`. Text only; restating comments and sentences in the same file are cut to pay for it. diff --git a/.changeset/36425-field-show-on-create.md b/.changeset/36425-field-show-on-create.md deleted file mode 100644 index d03f81768e2..00000000000 --- a/.changeset/36425-field-show-on-create.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/driver-sql': patch -'@objectstack/metadata-core': patch ---- - -feat(spec): a field can say it is not asked for when a record is created (`showOnCreate`) - -Clause-②: yes (widening) -Metadata-protocol: added -Skills-docs: follow-up #36455 - -`FieldSchema` gains `showOnCreate`, an optional boolean. Absent or `true`, the field is asked for when a record is created, as today. `false` says the business does not ask for it at creation: every create surface (the create dialog, the full-page create, an action-opened create) leaves it out, while editing, the record page and lists keep showing it, so the value is filled in after the record exists. - -- The one pair refused is `showOnCreate: false` on a `required: true` field, at the field's `showOnCreate` key, at every door that parses a field (`defineStack`, `os validate`, the metadata save): a required field is always asked for when a record is created, so the person creating it sees every value the record must have. The message names both fixes (keep the field on create, or drop `required`). A declared `defaultValue` makes no exception: the field is still asked for, with its default filled in. A `requiredWhen` field is accepted, since its gate is a predicate the parse cannot judge; the write door still refuses a create born inside it. -- No create surface reads the key yet: it is `planned` in the liveness ledger, and the Console's create surfaces read it in the change that follows. Nothing that parses today is refused, and no parsed field's output changes (the key has no default). -- `@objectstack/driver-sql` and `@objectstack/metadata-core` classify the new key in their every-field-key ledgers: `FIELD_KEY_STORAGE_CLASS` marks `showOnCreate` `presentation` (the DDL never reads it), and `FIELD_REFERENCE_POSITIONS` keeps it, since it is a boolean that names no field. Neither changes what it does with any field. diff --git a/.changeset/36425-retire-internal-forms.md b/.changeset/36425-retire-internal-forms.md deleted file mode 100644 index ce3ecfbbf00..00000000000 --- a/.changeset/36425-retire-internal-forms.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/lint': minor -'@objectstack/platform-objects': patch -'@object-ui/app-shell': minor -'@object-ui/i18n': patch ---- - -feat(console): record create and edit stop loading internal forms; a field's Show on create switch - -Clause-②: no (narrowing) -Metadata-protocol: semantic - -<!-- adr-0087: registered internal-record-forms-not-loaded --> - -The Console's record create and edit surfaces no longer load an object's internal form view. The create dialog, the edit dialog, the full-page create and edit (`/new`, `/record/:id/edit`) and a create or edit an action opens now lay the record out by the object's field groups (`fieldGroups`) and follow the rules on its fields (`visibleWhen`, `readonlyWhen`, `requiredWhen`, `required`). What used to steer those surfaces and now steers nothing: the default form view (`form`, `formViews.default`), the `create` form view, and on them `sections`, the `tabbed` and `wizard` layouts, `defaultTab`, `tabPosition`, `subforms`, `modalSize`, `buttons`, `layout` and `defaults`. A master-detail sub-table still comes from `fieldGroups[].relatedList`, and a flow screen reads its sub-table settings from there too. - -An app that still declares an internal form installs and runs as before; the definition is inert. A public form (`sharing.enabled: true`) keeps loading at its own link by its own definition, and a named form an action of type `form` opens is unchanged. - -`showOnCreate` is now live: a field with `showOnCreate: false` is left out of every create surface and stays on edit, the record page and lists. The field form (`field.form.ts`) and the Studio field inspector offer it as "Show on create", on by default; a required field keeps it on. - -`@objectstack/lint` adds the advisory rule `form-view-internal-not-loaded`: a warning, never an error, on each internal create or edit form an app declares (a container's `form`, `formViews.create`, `formViews.default`, and a stored form view that is the default or named `OBJECT.create`), and on no public or named form. - -Studio: the Data pillar's Form tab always lays out the object's field groups, and the Interfaces rail no longer lists internal forms; public forms and named forms stay listed. - -An app that relied on its internal form for create defaults should move them to each field's `defaultValue`; sections move to `fieldGroups`, and required or conditional rules move onto the fields. - -The upgrade guide carries this as the protocol-18 semantic entry `internal-record-forms-not-loaded`. diff --git a/.changeset/36430-kanban-reference-lanes.md b/.changeset/36430-kanban-reference-lanes.md deleted file mode 100644 index f846eed91b3..00000000000 --- a/.changeset/36430-kanban-reference-lanes.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/plugin-kanban': patch ---- - -fix(kanban): a board grouped by a lookup, user, master-detail or tree field draws one lane per referenced record - -Clause-②: no -Metadata-protocol: none - -The board reads the lane field off records fetched with `$expand`, so a reference field's value is the referenced record, not its key. The lanes were built from the stringified value: one lane per card, every one titled "[object Object]", each holding every card. A lane on a reference field is now keyed by the foreign key and titled by the referenced record's name (the field's `displayField`, then the target object's `nameField`, then the shared record-title ladder); cards bucket by the foreign key, also into declared `columns` keyed by it; a drag to another lane writes the foreign key, and the moved card keeps naming its new value until the board refetches. A card with no value is drawn in "Uncategorized", as before; a data-derived board no longer draws a lane titled "null" for it. diff --git a/.changeset/36442-console-file-preview.md b/.changeset/36442-console-file-preview.md deleted file mode 100644 index d17f52f7462..00000000000 --- a/.changeset/36442-console-file-preview.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -'@object-ui/fields': patch -'@object-ui/app-shell': patch -'@object-ui/plugin-grid': patch -'@object-ui/i18n': patch ---- - -feat(console): preview images, PDF, text and CSV in the page from a record's attachments and from a file field - -Clause-②: yes (widening) -Metadata-protocol: none - -A file opens in a dialog in the page instead of leaving it. In a record's attachments, the file's name opens the preview; the download stays in the row's menu. On a file field, a click on the file's link opens the preview; a modified click (new tab, new window) still opens the link as before. - -- **Four views, no new dependency.** Images (PNG, JPEG, GIF, WebP) draw in an image element, and an SVG only ever through an image element, never inlined. A PDF draws in the browser's own viewer in a frame; on a phone it opens in a new tab, which hands it to the system viewer. Plain text draws as text. A CSV draws as a table, read with the same GBK-aware decoder the grid's import wizard uses. -- **Download only.** Word, Excel, PowerPoint, HTML and every other type show "This file type cannot be previewed. Please download it." with a download button. An HTML file is never framed and never drawn as markup. -- **Limits.** Images and PDF up to 20 MB; text and CSV up to 2 MB, showing their first 1000 rows or lines. Past a limit the dialog shows "This file is too large to preview. Please download it." with a download button. -- **Controls.** Previous and next (and the arrow keys) walk a record's attachments; download; open in a new tab. -- **Same door as the download.** The preview reads the same signed link through the same permission check as the download, so a reader the download refuses sees the same refusal in the preview. When the browser cannot read a text or CSV file from the page (a bucket on another origin without the CORS rule the preview needs), the dialog offers the new tab instead. - -New exports from `@object-ui/fields`: `FilePreviewDialog` and its types `FilePreviewDialogProps` and `FilePreviewItem`; `decodeSpreadsheetText` and `parseDelimited`, the delimited-text reader that moved down from `@object-ui/plugin-grid` (which now imports them from `@object-ui/fields`; its own behaviour is unchanged). - -New `@object-ui/i18n` keys in every pack, under `fields.filePreview`: `title`, `previous`, `next`, `download`, `openInNewTab`, `loading`, `tooLarge`, `unsupported`, `denied`, `loadFailed`, `blocked`, `pdfOutside`, `truncatedRows`, `truncatedLines`, `empty`. - -No metadata key, value or default changes. diff --git a/.changeset/36443-console-frame-src-storage-origin.md b/.changeset/36443-console-frame-src-storage-origin.md deleted file mode 100644 index a0b46daafda..00000000000 --- a/.changeset/36443-console-frame-src-storage-origin.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/cli': patch ---- - -feat(cli): the Console's content-security-policy lets a PDF preview frame the file from the deployment's S3 store - -Clause-②: no -Metadata-protocol: none - -On a deployment that stores files in S3 or an S3-compatible store (R2, MinIO), the Console document's `frame-src` now names that store's origin beside `'self'`, so the in-page file preview can show a PDF from its signed download link. It is the same origin `connect-src` already names for presigned uploads: the store signs uploads and downloads on one origin. Nothing wider is added: not the hosts named in `OS_CONSOLE_CSP_CONNECT_SRC`, never a scheme or a wildcard. With local storage, or when the storage service cannot name its origin, `frame-src` stays as before (left to `default-src 'self'`, or `'self'` plus the Turnstile frame while that challenge is on). - -The storage service's answer is now accepted only as an exact `http(s)` origin: an answer that is a scheme alone, a wildcard, a path or a WebSocket source is left out of both `connect-src` and `frame-src` and reported once, where `connect-src` used to take it. The storage adapters that ship answer an origin, so no deployment changes. diff --git a/.changeset/36444-setup-public-forms.md b/.changeset/36444-setup-public-forms.md deleted file mode 100644 index 64b13808396..00000000000 --- a/.changeset/36444-setup-public-forms.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch -'@objectstack/platform-objects': patch -'@objectstack/spec': patch -'@objectstack/metadata-core': patch ---- - -feat(setup): Setup → Configuration → Public forms lists every public form of the environment and switches it on or off - -Clause-②: yes (widening) — a new Setup navigation id `nav_public_forms`, a new component id `forms:public-forms`, new language-pack keys (the `publicFormsSetup` block and the nav label) in every shipped locale, and `anonymousFormIntakeWithdrawnIn` newly exported from `@objectstack/spec/ui` (moved from `@objectstack/metadata-core`, which re-exports the same binding) -Metadata-protocol: none - -A system administrator (`manage_platform_settings`, the capability the Setup entry asks) now has one page for the operations side of public forms. It lists every public form of the environment: its name, the object a submission creates a record of, its address, and whether it is on. Per row: switch it on or off, copy its address, or open it in a new tab. A form is designed (created, deleted, its fields and title changed) in Studio, not here. - -- **Which forms are listed.** A form view whose `sharing` opens it to anonymous intake once switched on (`allowAnonymous: true` and a `publicLink`), read by the same rule the anonymous form routes use (`anonymousFormIntakeCandidates`). A switched-off form stays listed and can be switched back on. A form with no public address or no anonymous access is an internal form and is not listed. The list is the effective one (`GET /meta/view`), so an installed app's form switched off in this environment lists as off. -- **Where a switch is saved.** The switch is the form's `sharing.enabled`, saved and published at once. A form of a writable package is saved in that package. A form of an installed (read-only) app is saved as this environment's customization, an override in the app's `.custom` package (ADR-0146), never an edit of the app's own package, so the app upgrades as before. Switching such a form back on removes the override when it held nothing but the switch, so the app's own form is served again; an override that also carries design changes keeps them, with the switch on. -- **A form its installed app ships switched off** (its address kept, `enabled` or `allowAnonymous` set to `false`, or `enabled` omitted, which the stack schema reads as `false`) stays closed whatever the environment saves: the anonymous routes treat the app's own document as a withdrawal that no override re-opens. The page judges this with the routes' own function, `anonymousFormIntakeWithdrawnIn`, now declared in `@objectstack/spec/ui` beside the rest of the intake rule; `@objectstack/metadata-core` re-exports the same binding, so the server's import is unchanged. The page lists such a form as "Off (switched off by its app)" with its switch disabled, also when an override already switches it on, and a switch-on writes nothing and says the app ships it switched off. A form whose app's document cannot be read is shown as status unknown, never as on. -- **After an app upgrade**, switching back on an override taken from an earlier version restores the app's own form when the form is otherwise unchanged. When it is not, the override is kept with the switch on and the page says the form stays on the app's earlier version, which Studio's "Restore package original" undoes. -- A switch over a draft already pending where it would save writes nothing and says so: that draft is its saver's and is never published on their behalf. -- A switch writes the form's metadata, which the server lets only a `manage_metadata` holder do. Without it the page still lists the forms but disables the switches and says why. A refused switch, and a list read that fails, are told in business words, never the server's raw message. -- A switched-off form keeps answering as it does today: `404 FORM_NOT_FOUND` at its address. No route, error code or stored key is added. - -New Setup navigation entry `nav_public_forms` in `group_configuration` (label "Public Forms", in every shipped locale) opening the component `forms:public-forms`; the Setup navigation now carries 35 entries. New locale block `publicFormsSetup` in every console locale. Not shown: when a form last took a submission, since a submission is an ordinary record of the form's object and records no form. diff --git a/.changeset/36447-report-form-business-wording.md b/.changeset/36447-report-form-business-wording.md deleted file mode 100644 index 0c89843094f..00000000000 --- a/.changeset/36447-report-form-business-wording.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/spec': patch -'@objectstack/platform-objects': patch -'@object-ui/app-shell': patch ---- - -Clause-②: no -Metadata-protocol: none - -The report authoring form now reads in business terms: data source, grouping, metric. It no longer uses the schema's own vocabulary (dataset, dimension, measure, "render-time", "ANDed"), and its English matches what the Chinese report panel says. Every section description and field hint the report panel draws was reworded. The `dateRange` and `exportOptions` composites now declare their children as form rows (Date Field, Default Period, Allow Custom Range; Formats, Include Headers, File Name), each with its own hint, so the panel no longer shows the schema descriptions for them. The Description row gained its own hint. The joined-block and sort row titles now read Data Source, Group By, Group Columns By, Metrics, Sort Order and Sort By, in the form and in the item schema `title` together. - -Only prose and form layout moved. No key, accepted value or section title changed, and nothing an author can write or validate is different. The platform metadata-form bundles are regenerated, with zh-CN, ja-JP and es-ES translations for the 13 new rows, and the console's zh-CN overlay carries the new rows too. diff --git a/.changeset/36448-view-management-metadata-gate.md b/.changeset/36448-view-management-metadata-gate.md deleted file mode 100644 index f17140eec77..00000000000 --- a/.changeset/36448-view-management-metadata-gate.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(console): offer view management only to an administrator who may write views - -Clause-②: no -Metadata-protocol: none - -Manage views, the view settings panel and Create View on a list page, the plugin view's own Create View and view actions, the data page's Save as view, and a saved shared view's rename and save in place were offered to every workspace administrator. Each of them writes `view` metadata, which the server refuses without the `manage_metadata` capability, so an organization administrator who lacks it was offered them and met a refusal on the first save. They now read the answer the Shared choice of a new view already reads (`mayManageViews`): an administrator whose session holds `manage_metadata`. A metadata administrator sees them as before; a reader's own views are unchanged. diff --git a/.changeset/36451-grid-field-lazy-retry.md b/.changeset/36451-grid-field-lazy-retry.md deleted file mode 100644 index 88eb6184e65..00000000000 --- a/.changeset/36451-grid-field-lazy-retry.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/fields': patch ---- - -fix(fields): a line-item grid whose first load failed loads again on its next mount, with no page reload - -Clause-②: no -Metadata-protocol: none - -The line-item grid's body loads on first use. When that first load failed once (a network blip, a deploy that swapped chunk names) and the host had not preloaded it, the grid showed its error from then on, even after the body was reachable again, until the page was reloaded. `GridField` / `LineItemsField` no longer hold the body in a `React.lazy`, which keeps a failed load for good: each mount that finds the body still loading asks for it once, a failure still reaches the nearest error boundary, and the next mount asks again. The `grid` form-field widget (the registered `field:grid` and `getLazyFieldWidget('grid')`) now resolves to that same face, so it recovers the same way. - -What does not change: a mount after the body has loaded renders it directly, `preloadGridField()` still never rejects, and the props of both names are unchanged. A form drawing a `grid` field shows the grid's own loading placeholder while the body loads. No metadata key, value or default changes. diff --git a/.changeset/36452-html-cell-heading.md b/.changeset/36452-html-cell-heading.md deleted file mode 100644 index 9c1fa87c546..00000000000 --- a/.changeset/36452-html-cell-heading.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/fields': patch ---- - -fix(fields): an html or richtext cell holding a heading keeps the list row one line high - -Clause-②: no -Metadata-protocol: none - -An `html` or `richtext` value that holds a heading drew it as a heading element in a grid cell, at the typography scale's heading size, so the row grew taller than the other rows (45 px against 36 px in Chromium for a stored `<h1>`). In a grid column the cell now draws the value in the same cell face a `markdown` cell uses: every heading level is a bold line at the cell's own text size, and the body takes the cell's font size and line height. What the sanitiser keeps and drops is unchanged. The record page and readonly form fields keep their full-size headings. diff --git a/.changeset/36455-ui-skill-create-surfaces.md b/.changeset/36455-ui-skill-create-surfaces.md deleted file mode 100644 index 52e367b8a32..00000000000 --- a/.changeset/36455-ui-skill-create-surfaces.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -docs(skills): the UI skill teaches the New and Edit forms as built from the object's fields and field groups, and `showOnCreate` - -Clause-②: no -Metadata-protocol: none - -objectstack-ui no longer teaches an object's internal create and edit form views, which the Console's create and edit surfaces stopped loading. `SKILL.md` Traps 1 and `rules/list-views.md` "Form Views" now say that New and Edit are built from the object's fields, sectioned by its `fieldGroups` (`collapse: 'collapsed'` folds a rarely filled section) and following the fields' own rules; that `showOnCreate: false` leaves a field off every create surface and is refused beside `required: true`; and that a container's `form`, `formViews.default` and `formViews.create` still parse, steer nothing, and are reported by `os validate` as `form-view-internal-not-loaded`. The two form views that load are kept: a named `formViews` entry an action of type `form` opens (`/forms/:name`), and a public form (`sharing.enabled: true`), taught as before. "Master-Detail Forms" drops the form-view `subforms` override, which is no longer read; the parent field group naming the child and the page block remain. `evals/views-apps-actions-pages.json`, evals 1, 6, 13 and 19: each taught or assumed an internal form view and now expects the object's field groups and `showOnCreate`. diff --git a/.changeset/36457-date-box-opens-calendar.md b/.changeset/36457-date-box-opens-calendar.md deleted file mode 100644 index 7559c630bae..00000000000 --- a/.changeset/36457-date-box-opens-calendar.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/fields': patch ---- - -fix(fields): a click in a record form's date box opens the calendar - -Clause-②: no -Metadata-protocol: none - -On a record form, and in the dialogs that reuse the same date and date-time widget, the calendar opened only from the small calendar button at the right of the box; a click in the box itself put a text cursor there and nothing else, and users took the field for broken. A click in the box now opens the same calendar popover. The box keeps the focus, so typing a date still works: the text is read on Enter or when the box loses focus, as before, and Enter also closes the popover. Escape closes it and leaves the focus in the box. Focus that arrives by Tab opens nothing, so tabbing through a form does not pop a calendar at each date field. The calendar button works as before. The box now carries the popover relationship the button carries (`aria-haspopup="dialog"`, `aria-expanded`, `aria-controls`). The grid's in-cell date editor, which already shows the calendar beneath the box, is unchanged, and the value written is unchanged. diff --git a/.changeset/36459-conditional-formatting-list-equality.md b/.changeset/36459-conditional-formatting-list-equality.md deleted file mode 100644 index ad40cc22895..00000000000 --- a/.changeset/36459-conditional-formatting-list-equality.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(studio): a view's conditional formatting rule that compares a list field with a single value is refused while typing - -Clause-②: no -Metadata-protocol: none - -A formatting rule such as `record.tags == 'vip'` on a list field (`multiselect`, `checkboxes`, `tags`, or a `select` / `lookup` / `user` declared `multiple: true`) compares a list with a single value, so it never matches any row and the style never shows. The conditional formatting editor accepted it without a word. It now hands the lint the object's field types and `multiple`, as the field inspector's condition editors already do, so the rule is flagged while the author types, with the membership rewrite (`'vip' in record.tags`), and counts as a blocking issue for Save. Both places the editor appears do this: the view inspector in the metadata admin and the list-view panel in Studio. A membership test on the same field, and `==` on a single-value field, stay clean. - -`ConditionalFormattingEditor` takes an optional `fieldDefs` prop (each field's name, `type` and `multiple`); omitted, the lint is what it was before. What the server accepts on save is unchanged. diff --git a/.changeset/36462-chip-operator-labels.md b/.changeset/36462-chip-operator-labels.md deleted file mode 100644 index 99d7572041b..00000000000 --- a/.changeset/36462-chip-operator-labels.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/plugin-list': patch ---- - -fix(plugin-list): a condition chip names an operator only the advanced filter panel writes in that panel's own words, never by its id - -Clause-②: no -Metadata-protocol: none - -A list or drill dialog whose conditions carry `is_not_null`, `is_null`, `greater_than`, `less_than`, `not_equals`, `icontains` or `ends_with` used to show the operator id on its chip ("Deal Value: is_not_null"). The chip, and the quick filter's operator choice, now read the advanced panel's word for it in every language ("Deal Value: Is not null", "金额:不为 null"). Any other operator spelling the chip cannot word is shown as "Condition" instead of its id; a view filter's comparison symbol (`>=`, `=`) still reads as written. A chip with no value no longer ends in a space. diff --git a/.changeset/36463-no-approver-text-in-reader-language.md b/.changeset/36463-no-approver-text-in-reader-language.md deleted file mode 100644 index 007d1603896..00000000000 --- a/.changeset/36463-no-approver-text-in-reader-language.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@objectstack/plugin-approvals': patch -'@objectstack/rest': patch -'@object-ui/console': patch -'@object-ui/app-shell': patch ---- - -fix(plugin-approvals): the decide refusal of a submitter's own approval, and a submitter notice that names several slots, read in the reader's language - -Clause-②: yes (widening) -Metadata-protocol: none - -**Widened door response.** The approvals decide door (`packages/rest/src/approvals-routes.ts`) gains one optional member, `userMessage`, at the top level of its flat `{ code, error }` refusal body. Two rows answer it today: the two `403 FORBIDDEN` decide refusals of a submitter's own approval, the `excludeSubmitter` refusal and the administrator-override self-approve refusal. It is absent whenever no producer marked one, so every other refusal body is unchanged. - -- **The decide refusal.** When the decision door refuses a submitter's own approval (the step sets `excludeSubmitter`, or the administrator override would approve the actor's own request), the thrown error now carries a `userMessage`: the same refusal, with its remedy, in the decider's language (`approvalDecideRefused*` in every approvals message pack). A position is named by the decider's pack label, then its declared label, then its name. The error's `message` is unchanged: it stays English for the developer and the log. With no reader language, `userMessage` is English and names no user id. -- **The REST door.** The approvals routes answer a refusal the service marked with `userMessage` at the top level of their flat `{ code, error }` body, beside `error`, on every mapped row. A refusal with no marking answers exactly as before. -- **The console.** The record page's `type: 'api'` actions (the request's Approve button) read a flat body's top-level `userMessage` as well as the `error.userMessage` of the ADR-0112 envelope, and show it in place of the English `error`. The Approval Center's inline decision toast shows a marked refusal as written, before its generic line. -- **The submitter notice.** A notice for a slate of 2 to 8 slots names each slot inline, one keyed type word and value per slot (`approvalNoApproverHoldingSlots2` to `…Slots8`, derived from each pack's own `approvalNoApproverHolding`, `approvalNoApproverSlot` and `approvalNoApproverSlotSeparator`), so the messaging service renders every slot in the recipient's language at delivery. A slate of more than 8 slots still names its slots in English inside the recipient's sentence. The literal English body is unchanged. diff --git a/.changeset/36466-meta-locale-negotiation.md b/.changeset/36466-meta-locale-negotiation.md deleted file mode 100644 index b6db5731013..00000000000 --- a/.changeset/36466-meta-locale-negotiation.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@objectstack/rest': patch ---- - -fix(rest): `/meta` reads a regional request tag in the language of the pack the deployment holds - -Clause-②: no -Metadata-protocol: none - -The metadata reads handed the translators the request's `Accept-Language` tag as written. In a deployment authored in English (`i18n.sourceLocale: 'en'`) that defaults its users to Chinese and holds an `en` pack, an `en-US` request was therefore not the authored language: it walked the declared fallback chain and `GET /meta/object/account` served `客户`, while a write refusal on the same request, which objectql renders with the tag negotiated against the deployment's locales, named the object `Account`. - -The translation options every metadata read builds now carry the request tag negotiated against the locales the i18n service reports (`getLocales()`), by the platform's one locale ladder (`resolveBundleLocale`), the same negotiation objectql and plugin-approvals run. An `en-US` request in that deployment reads `Account`. A request for a locale the deployment holds no pack for is unchanged: it walks the declared chain to the default locale. The item and list reads on both transports, the metadata types listing and the public form's object labels read through the same options. - -The cached item read's validator is unchanged: it still varies by the tag the request sent, and a validator issued for one language never revalidates a request for another. diff --git a/.changeset/36468-navigation-size-auto-describe.md b/.changeset/36468-navigation-size-auto-describe.md deleted file mode 100644 index a82ad82a3fc..00000000000 --- a/.changeset/36468-navigation-size-auto-describe.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@objectstack/spec': patch -'@objectstack/platform-objects': patch ---- - -docs(spec): `navigation.size` says what `'auto'` really does - -Clause-②: no -Metadata-protocol: none - -The TSDoc and `.describe()` text of a view's `navigation.size` said that the default `'auto'` makes the renderer derive the drawer size from the object's field count and the viewport, so an author writes nothing. No renderer does that. `'auto'` is the host's fixed default width, the same for every object: the console's record side panel opens at `min(92vw, 460px)`, and a page block's drawer at that block's own default. The text now says so, gives the pixel cap of each explicit bucket (sm 480, md 720, lg 960, xl 1200, full 1600, always clamped to the viewport), says that a width the reader drags wins, and says where the key has no effect (a record that opens as a page, a phone-width screen). It no longer calls the buckets aligned with `FormView.modalSize`, whose buckets have other names and other widths. - -Prose only: the key, its values and its default are unchanged. The view form's help text for the key, the English metadata-form bundle `@objectstack/platform-objects` serves it from, and the generated reference pages carry the same text. diff --git a/.changeset/36469-comment-doors-hosted.md b/.changeset/36469-comment-doors-hosted.md deleted file mode 100644 index b059a407c14..00000000000 --- a/.changeset/36469-comment-doors-hosted.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@objectstack/spec': patch -'@objectstack/runtime': patch -'@objectstack/plugin-audit': patch ---- - -fix(comments): unreact, resolve and own-comment delete work on a kernel with no `http.server` (a hosted tenant kernel) instead of answering 404 - -Clause-②: yes (widening) -Metadata-protocol: none - -The three comment doors, `DELETE /api/v1/comments/reactions/:id`, `PUT /api/v1/comments/:id/resolution` and `DELETE /api/v1/comments/:id`, were mounted by `AuditPlugin` only on the kernel's `http.server`. A hosted tenant kernel owns no socket and registers no `http.server`, so the host's `createHonoApp` catch-all handed each of them to the runtime dispatcher, which had no domain for them and answered `404 ROUTE_NOT_FOUND`, and removing a reaction, resolving or reopening a thread and deleting your own comment failed there. - -- `@objectstack/spec/contracts` declares `ICommentDoorsService` with one optional, transport-neutral member, `handleCommentDoor(request: Request): Promise<Response>`, and types the `comments` service slot with it (`ServiceSlotContracts.comments`). A service without the member still satisfies the contract. -- `AuditPlugin` registers the `comments` service with that member. It runs the same registrars over the same dependencies the `http.server` mount runs, on a private route table that never listens, so every answer is the mount's own. The `http.server` mount is unchanged, and no path is mounted twice. `@objectstack/plugin-audit` now depends on `@objectstack/plugin-hono-server` at runtime (the private table is a `HonoHttpServer`), and the `comments` service name is now taken: a composition that registers its own `comments` service alongside `AuditPlugin` fails to boot with a duplicate-service error. -- The runtime dispatcher gains a `/comments` domain that claims exactly the three method and path shapes and forwards the request, body unread, to the request kernel's `comments` service. Every other `/comments` shape keeps the dispatcher's `404 ROUTE_NOT_FOUND`. With no `comments` service, or one without `handleCommentDoor`, the doors answer `501 NOT_IMPLEMENTED` naming `@objectstack/plugin-audit`. The doors stay behind the dispatcher's authentication and project-membership gates. diff --git a/.changeset/36469-comment-doors-serve-host.md b/.changeset/36469-comment-doors-serve-host.md deleted file mode 100644 index 3b95976d3f6..00000000000 --- a/.changeset/36469-comment-doors-serve-host.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/runtime': patch ---- - -fix(comments): unreact, resolve and own-comment delete answer on an `objectstack serve` / `objectstack dev` multi-tenant host instead of `404 ENDPOINT_NOT_FOUND` - -Clause-②: no -Metadata-protocol: none - -On a multi-tenant host composed the way the framework CLI composes one (`HonoServerPlugin` + `DispatcherPlugin`, a `kernel-resolver`, and no `createHonoApp` catch-all), the three comment doors, `DELETE /api/v1/comments/reactions/:id`, `PUT /api/v1/comments/:id/resolution` and `DELETE /api/v1/comments/:id`, never reached the dispatcher's `/comments` domain: `AuditPlugin` runs on the per-environment kernel, which owns no `http.server`, and `DispatcherPlugin`'s fallback seam handed on only domain-decided and app-endpoint paths. So the transport answered its own `404 ENDPOINT_NOT_FOUND`. - -`DispatcherPlugin`'s fallback now hands exactly those three method and path shapes (bare or environment-scoped) to `dispatch()` on a multi-tenant host, with the transport's request rebuilt as a Web `Request` carrying its original body, and writes the door's `Response` back unchanged. Any other shape still writes nothing, so the transport's own miss stands; a single-kernel host keeps today's answers; and the fallback runs only after every mounted route missed, so a kernel that mounts the doors itself is never reached here. diff --git a/.changeset/36470-phone-comment-title.md b/.changeset/36470-phone-comment-title.md deleted file mode 100644 index c6fc0e6d244..00000000000 --- a/.changeset/36470-phone-comment-title.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/plugin-detail': patch ---- - -fix(plugin-detail): a long record name no longer runs under the centred title on the phone comment page - -Clause-②: no -Metadata-protocol: none - -On a phone, the comment page's top bar names the record beside the back arrow and centres 「评论」 (Comments). A record name too long for the left column ran past it and under the centred title, so neither could be read. The back button is now held inside its column, so a long name truncates with an ellipsis and the centred title stays whole; a short name renders as before. diff --git a/.changeset/36472-preview-esc-ends-edit.md b/.changeset/36472-preview-esc-ends-edit.md deleted file mode 100644 index e07bce9d800..00000000000 --- a/.changeset/36472-preview-esc-ends-edit.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@object-ui/components': patch -'@object-ui/plugin-detail': patch ---- - -fix(record-page): Esc in the side preview ends an inline edit and keeps the preview open - -Clause-②: no -Metadata-protocol: none - -In a record's side preview (the drawer beside a list, or a record page's drawer), a field clicked into edit no longer loses the whole preview to Esc: - -- **While a field is being edited**, Esc ends the edit and the preview stays open. It does what Esc does on the record's full page: the typed change is discarded without a prompt and nothing is written. The next Esc closes the preview (or, a level down, goes back one level), as before. -- **A popover, select or menu open over the record** still takes Esc first and closes alone; the edit and the preview stay. -- **The full record page is unchanged.** - -For hosts of `NavigationOverlay` (`@object-ui/components`): a drawer now holds itself open on Esc while it draws an element marked `data-owns-pane-escape`, which `InlineEditSaveBar` (`@object-ui/plugin-detail`) carries while the record is being edited. diff --git a/.changeset/36473-installed-package-refusal-locale.md b/.changeset/36473-installed-package-refusal-locale.md deleted file mode 100644 index 862db0870d8..00000000000 --- a/.changeset/36473-installed-package-refusal-locale.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@objectstack/cloud-connection': patch -'@objectstack/runtime': patch ---- - -fix(cloud-connection): an installed package answers its declared hook and action refusals in the caller's language - -Clause-②: no -Metadata-protocol: none - -A package installed into an environment (`POST /api/v1/marketplace/install-local`, and the same package bound again when the server restarts) now answers its declared hook and action refusals (`refusals`, with `reasons` and `params`) in the caller's language, from the translations the package ships under `hooks.HOOK.refusals.CODE[.reasons.REASON].message` and `objects.OBJECT._actions.ACTION.refusals.CODE[.reasons.REASON].message`. A `zh-Hans` caller reads the `zh-CN` pack, as on a boot. Before, the install door bound the package's body hooks and script actions without the `i18n` service, so every caller read the declared sentence on every door that runs them (`POST /api/v1/batch`, a record update, an action), while the same package booted as an app (`objectstack dev`, `objectstack start`) answered in the caller's language. The refusal body, its code and its status do not change. - -The same binding now also hands an installed package's bodies the kernel's services, as a boot does: `ctx.text` answers in the organization's language, and `ctx.email.send` and `ctx.activity.append` reach the email and audit services. - -`@objectstack/runtime` exports `hookRefusalI18nReader`, the `i18n` reader both binder doors pass to `bindAppArtifactHandlers`. diff --git a/.changeset/36475-record-field-edit-in-place.md b/.changeset/36475-record-field-edit-in-place.md deleted file mode 100644 index 02d28804ef3..00000000000 --- a/.changeset/36475-record-field-edit-in-place.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@object-ui/plugin-detail': patch ---- - -feat(plugin-detail): on the record page a click on a field's value edits that field alone and saves it when you move on - -Clause-②: no -Metadata-protocol: none - -On the default record page's field list (the full page, the side preview, a phone and the wide page's pinned column), a click on an editable value no longer turns the whole record into a form with a Save / Cancel bar. Only that value becomes an editor, drawn over it, so the other fields and the page stay as they are, and no bar appears: - -- A typed value (text, number, amount, percent, email, phone, URL) saves on Enter or a click elsewhere; Esc discards it and writes nothing. -- A multi-line text saves on Ctrl/Cmd+Enter or a click elsewhere; Enter starts a new line. -- A single select, a date, a record or a person opens its panel at once and saves on the pick; a multi-select saves when you move on. These are the list cell's editors (`FieldEditWidget` with `inCell`). -- A check flips and saves on the click. -- An unchanged value writes nothing. - -The write is the one the save bar makes: one guarded update carrying that field only, then the record is read again, so the fields whose visibility, read-only state or requirement depend on it are judged anew. A refused save keeps the editor open with the typed value and the server's reason under the field; a conflicting change opens the same reload / overwrite dialog, and a value that makes other fields required asks for them first. Esc in the editor inside the side preview cancels the edit and leaves the preview open. - -Unchanged: the header's Edit (the whole record as a form with its Save and Cancel), the list's cell editing, and pages an author laid out (a double-click or the pencil there). `InlineEditSaveBar` gains `face="field"` (no bar, its dialogs only) and `saveRef` (its save, for that host to call); the default stays the bar. diff --git a/.changeset/36477-inbox-figure-highlightfields.md b/.changeset/36477-inbox-figure-highlightfields.md deleted file mode 100644 index 80139aee281..00000000000 --- a/.changeset/36477-inbox-figure-highlightfields.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@object-ui/console': patch ---- - -fix(console): the approvals inbox row figure is the field the object declares, not a guess from field names - -Clause-②: no -Metadata-protocol: none - -Each request row in the console's approvals inbox shows a figure after the object name, and the inbox's "Amount (high→low)" sort orders on it. That figure is now the first `highlightFields` entry of the request's object (ADR-0085: the object's one curated list of its most important fields, first entry wins where only one fits) that names a numeric field — `number`, `currency`, `percent`, `summary`, or a `formula` whose `returnType` is `number`, `currency` or `percent` — and that the object does not declare `hidden: true`. The value comes from the request's submitted snapshot, formatted as before. - -Before, the console picked the first snapshot key whose NAME looked like money (`amount`, `total`, `fee`, `budget`, …) with a non-zero value, so an incidental money-named field declared before the headline figure was shown instead of it, and an app could not change the choice without renaming or reordering its fields. - -Visible change: an object whose `highlightFields` names no numeric field (or that declares no `highlightFields`) no longer shows a figure on its inbox rows, and those rows sink to the bottom of the amount sort. To show one, list the headline numeric field in the object's `highlightFields`. A declared figure of 0 is now shown (the old guess skipped zeros). The figure is read from the same per-object metadata read the inbox already made, so no request is added. diff --git a/.changeset/36479-lookup-preview-link-free.md b/.changeset/36479-lookup-preview-link-free.md deleted file mode 100644 index 1304cbe8de8..00000000000 --- a/.changeset/36479-lookup-preview-link-free.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@object-ui/fields': patch ---- - -fix(fields): a tap anywhere on a lookup picker option selects it, including on a record chip in its preview - -Clause-②: no -Metadata-protocol: none - -A lookup picker's option shows a preview of its other columns under its label. A column that references another record drew a link to that record there (on a record page, its chip), and a tap or a click on it opened that record instead of selecting the option, leaving the edit behind. An email, URL or phone column in the preview did the same with the mail client, the browser or the dialer. - -The preview now draws every column the way the "browse all records" picker table already did: a reference keeps its face, the record page's chip included, without the link, and an email, URL, phone or file column shows its text. A tap or a click anywhere on the option selects it, on a phone and on a desktop. Both picker surfaces now take this rule from the one renderer they share. - -What does not change: the read cells outside the picker (record page fields, list and grid cells) keep their links. No metadata key, value or default changes. diff --git a/.changeset/36480-canvas-strip-served-label.md b/.changeset/36480-canvas-strip-served-label.md deleted file mode 100644 index 36326c2f0ac..00000000000 --- a/.changeset/36480-canvas-strip-served-label.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(studio): the canvas selection strip names a selected dashboard widget in the session's language - -Clause-②: no -Metadata-protocol: none - -On Studio's dashboard design canvas, the status line above the canvas named the selected widget by its authored source title, so a zh-CN session read 「已选中:Pipeline by Stage」 while the widget's property panel beside it read 阶段管道分布. The strip now names a selected widget by the same text the panel's Title box shows: the served, current-language title while the widget's title in the draft still equals the published one, else the draft's own title. It reads that text through the panel's own rule (`shownLabel` over the served widget titles the Studio already pairs with the published layer), so the two never disagree. - -Other selections are unchanged: a navigation entry already reads its panel's title, the report canvas selects nothing, and a page block keeps the label its panel shows. No props, exports or stored metadata change. diff --git a/.changeset/36481-served-name-edit.md b/.changeset/36481-served-name-edit.md deleted file mode 100644 index d01737ed09f..00000000000 --- a/.changeset/36481-served-name-edit.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -fix(app-shell): the report name box and the dashboard card title box say when readers are served a translation instead of the saved text - -Clause-②: no -Metadata-protocol: none - -The report panel (the report page's Edit panel and Studio) and the dashboard card panel (the dashboard page's edit panel and Studio) write a name or title typed in the session language as that language's entry, `{ default: SOURCE, LANG: EDIT }`. The server does not always serve that entry: with no packaged base (an item built in the environment) a translation the environment keeps for that language answers first, and on an installed item a translation the paired `.custom` package ships answers first (ruling record 6631250894's order, unchanged). The box then showed the translation again after Save, with nothing saying why. - -A note under the box now says so before Save, from the served text paired with the published one: - -- the published name already has its own entry for this language and readers are served another text: the note names that text and says a translation comes ahead of the text saved here, shown before any edit; -- the published name has no entry for this language, readers are served a translation of it, and the box holds an edit: the note names the translation and says readers keep seeing it after Save if it is kept in the environment's own translations or in the customization package. - -Both name where to change it: Studio › All metadata › Translation. Save writes no translation row: the console cannot read which translation row answers. - -New locale keys: `engine.inspector.servedLabel.kept` and `engine.inspector.servedLabel.ifKept` in the studio catalogue (en, zh). No props or exports change. diff --git a/.changeset/36482-field-history-three-way.md b/.changeset/36482-field-history-three-way.md deleted file mode 100644 index e44560fe0d0..00000000000 --- a/.changeset/36482-field-history-three-way.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@objectstack/spec': patch -'@objectstack/plugin-audit': patch -'@objectstack/platform-objects': patch -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -feat(studio): the Field History setting offers Default, On and Off, and Default says what it resolves to - -Clause-②: yes (widening) -Metadata-protocol: none - -The Field History setting on the field form, on each row of the object form's field list, and in the object's capabilities is now a three-way choice instead of a switch. Default leaves the setting unset, so the field (or object) follows the platform, and it names what that means for the row: "Default (On)" for most field types, "Default (Off)" for a media or JSON field unless the field opts in with Track History, and for a credential field always. On and Off write `true` and `false` as before. A setting turned off can now be returned to Default, which removes the key. - -`@objectstack/spec/data` exports `resolveFieldHistory(field, object)` and `FIELD_HISTORY_DEFAULT_OFF_TYPES`: whether a changed field's old → new values show on the activity timeline, and the types that are off by default. The activity writer in `@objectstack/plugin-audit` now asks this predicate instead of its own copy of the type list, so the default the form shows and what the writer keeps cannot disagree. Behaviour of the writer is unchanged. diff --git a/.changeset/36485-design-entry-app-menu.md b/.changeset/36485-design-entry-app-menu.md deleted file mode 100644 index 2e3bfb05994..00000000000 --- a/.changeset/36485-design-entry-app-menu.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -feat(console): the design mode is entered from the app-name menu; the page header no longer carries 「Edit app」 or 「Open {app} in Studio」 - -Clause-②: no -Metadata-protocol: none - -The app-name menu at the top of the sidebar now offers 「Edit app」 under the list of apps, in one group with 「Add app」. Choosing it turns the design mode on for the app on screen, in place. It is offered on the condition the page header's button was drawn on, unchanged: a workspace admin holding `manage_metadata`, on an app whose package Studio lists (the console's own Setup, Studio and Account apps get none). An app built here and an installed (read-only) one get it alike, except where the customization door is walled off for the caller (a walled deployment, not the platform operator): there an installed app's menu offers no 「Edit app」. While the mode is on, the menu does not offer it. The menu is drawn from 768 px up, docked or floated over the content while the sidebar is collapsed; a phone has no way into the mode, as before. - -The page's top-right button group now holds the comments slot, the AI assistant and help only: its 「Edit app」 and the read-only package's 「Open {app} in Studio」 are gone. The app switcher's 「Open {app} in Studio」 row is unchanged, and so is the top bar's Studio entry where a top bar is still drawn (from 640 to 767 px wide, and on an app's docs pages). diff --git a/.changeset/36487-object-settings-entry.md b/.changeset/36487-object-settings-entry.md deleted file mode 100644 index cfcb2c74ecf..00000000000 --- a/.changeset/36487-object-settings-entry.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -feat(console): the sidebar's object entry offers Object settings in place of Design, and dashboard and page entries no longer offer Design - -Clause-②: no -Metadata-protocol: none - -A sidebar entry's ⋯ menu used to offer Design for an object, a dashboard or a page entry, and only on an app whose package Studio lists as writable. An object entry, and an object favorite, now offer Object settings instead, which opens the object in Studio's Data surface, where its fields are. It is offered to a workspace admin who may author metadata on an app built here and on an installed app alike; an installed app's package opens in Studio's browse-only posture. A dashboard, page or report entry offers no Studio entry any more: each is edited on its own page. Object settings asks first when the page on screen holds unsaved edits, as Design did. - -The list header's folded ⋯ menu, drawn when the header is too narrow for its actions, leads with the same Object settings entry under the same rule. - -The `console.nav.design` translation key is replaced by `console.nav.objectSettings` in every locale pack. diff --git a/.changeset/36488-uploader-own-attachment-delete-rename.md b/.changeset/36488-uploader-own-attachment-delete-rename.md deleted file mode 100644 index bcac3403869..00000000000 --- a/.changeset/36488-uploader-own-attachment-delete-rename.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(app-shell): the Attachments tab offers the uploader Delete and Rename on their own upload - -Clause-②: no -Metadata-protocol: none - -On a record's Attachments tab, a member who uploaded a file now sees Delete and Rename on that row, with no grant on `sys_attachment` beyond the member baseline (read and create). Before, the row menu offered Delete only to a holder of the `delete` grant and Rename only behind it, so a plain member could remove or rename their own upload through the API but never from the console. - -The panel now judges each row the way the storage service's two attachment doors do. On the caller's own upload (its `uploaded_by` names the signed-in user) it offers both verbs: Delete goes through the removal door, `DELETE /api/v1/attachments/:id`, and Rename through the rename door, `PATCH /api/v1/attachments/:id`, as before. On another user's upload it offers Delete to a holder of the `delete` grant, through the data API as before, and Rename to a holder of the edit grant; the delete grant no longer gates Rename. A refusal from either door is shown in the panel's error line, and the row stays. diff --git a/.changeset/36490-trio-transaction-ambient-reads.md b/.changeset/36490-trio-transaction-ambient-reads.md deleted file mode 100644 index 3fac3114d2d..00000000000 --- a/.changeset/36490-trio-transaction-ambient-reads.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/objectql': patch ---- - -fix(objectql): a script action's first call no longer stalls when a write inside its transaction triggers a flow - -Clause-②: no -Metadata-protocol: none - -A script action body that wrote inside `ctx.api.transaction(...)` could stall on a server running SQLite (the `os dev` default) until the sandbox's 30-second wall clock, answer `500 INTERNAL_ERROR`, and roll its writes back, while an identical retry succeeded. It happened when a write in the transaction fired a record-triggered flow (for example through a roll-up `summary` update of the parent): the flow's run setup read the organization's localization settings through the engine without the transaction's handle, and that read waited for SQLite's single connection, which the open transaction held. The retry found the read cached. - -Every operation made through a transaction opened by the sandbox's `ctx.api.transaction` now publishes that transaction to the reads and writes it issues internally, as `engine.transaction(...)` already did (ADR-0034): such a read runs on the transaction's connection, and a nested `transaction()` joins it. Work an operation starts and does not await, and work detached from the unit (an `async` hook), still runs outside it. diff --git a/.changeset/36493-plugin-detail-readme-layout.md b/.changeset/36493-plugin-detail-readme-layout.md deleted file mode 100644 index 0eb86d2e785..00000000000 --- a/.changeset/36493-plugin-detail-readme-layout.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@object-ui/plugin-detail': patch ---- - -docs(plugin-detail): the README's record-page section describes the count-first related tabs and the width layout as they are, and the Reference Rail section no longer names a right column - -Clause-②: no -Metadata-protocol: none diff --git a/.changeset/36494-row-menus-follow-action-layout.md b/.changeset/36494-row-menus-follow-action-layout.md deleted file mode 100644 index 077bc52ed0d..00000000000 --- a/.changeset/36494-row-menus-follow-action-layout.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/plugin-grid': patch ---- - -feat(plugin-grid): a row's "⋮" menu and its right-click menu follow the object's `actionLayout.record` order - -Clause-②: no -Metadata-protocol: none - -On an object whose served `actionLayout` carries a `record` arm, the actions a row's "⋮" menu and its context menu list (and the one-record menu of the list page's selection bar, which reads the same plan) now come in the arm's order: the actions `pinned` names first, then the ones `more` names, each in the arm's order, then every other action in the order the menus used before (primaries above secondaries, each in declared order). Which primary the row draws as its inline button, and where the built-in Edit and Delete sit, are unchanged. An object with no `record` arm lists exactly as before. diff --git a/.changeset/36497-open-scope-ui-state-writes.md b/.changeset/36497-open-scope-ui-state-writes.md deleted file mode 100644 index f1c8de5a58a..00000000000 --- a/.changeset/36497-open-scope-ui-state-writes.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/react': patch ---- - -fix(react): a console open asks a bound API URL once even when the console saves the person's own UI state between the navigation's read and the page's - -Clause-②: no -Metadata-protocol: none - -A navigation entry and a page element bound to the same API URL share one request in one console open. `ElementApiOpenScope` dropped every kept read on any declared data change, including the `sys_user_preference` saves (the recent items, the last app) the console makes as a page opens, so when such a save landed between the two reads the page asked the URL a second time. Changes to the shell's UI-state store now leave the open's reads in place. Every other declared change still ends the reuse, and the readers of `sys_user_preference` itself (the User page's Preferences list) still refresh on those saves. diff --git a/.changeset/36498-custom-package-arrangement.md b/.changeset/36498-custom-package-arrangement.md deleted file mode 100644 index 95d5d52d62e..00000000000 --- a/.changeset/36498-custom-package-arrangement.md +++ /dev/null @@ -1,44 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/objectql': minor -'@objectstack/metadata-protocol': minor -'@objectstack/cli': minor -'@objectstack/cloud-connection': minor -'@objectstack/lint': minor -'@object-ui/app-shell': minor -'@object-ui/plugin-detail': minor ---- - -feat(spec): a base's paired `.custom` package declares an installed object's whole field-group and tab arrangement (`fieldGroups`, `relatedLists` on its object extension) - -Clause-②: yes (widening) -Metadata-protocol: added - -The record page is arranged in three layers. The package that owns an object declares its `fieldGroups` and `relatedLists`; a package that extends it places what it brings with `place`; and now the environment, in the base's paired `.custom` package, may declare the whole arrangement over both: - -```ts -objectExtensions: [{ - extend: 'crm_lead', - fields: { region__c: { type: 'text', label: 'Region' } }, - // The whole field arrangement: the two groups swapped, `status` moved. - fieldGroups: [ - { key: 'contact', label: 'Contact', fields: ['email', 'phone', 'status'] }, - { key: 'basic', label: 'Basics', fields: ['name', 'company', 'region__c'] }, - ], - // The whole tab list: events before tasks, the notes tab hidden. - relatedLists: ['crm_event', 'crm_task', { list: 'crm_note', hidden: true }], -}], -``` - -- **Two new keys on an object extension, written only by a `.custom` package.** `fieldGroups` takes the shape an object's `fieldGroups` takes and may list any field the object has, whoever declares it; a group's `relatedList` may place any body table. `relatedLists` takes an object's entry shape (a bare name, the three built-in tab names, or `{ list, label?, columns? }`) plus `hidden`. -- **Each key replaces, whole.** The registry applies it last: the owner's arrangement, then every extension's `place`, then the `.custom` key in place of the result. Nothing is merged entry by entry. A key the extension does not write keeps the owner's arrangement with the placements, so writing only `relatedLists` leaves the field groups as they were. -- **A field the arrangement does not list is not dropped.** It shows after the last group, whichever group its owner or another extension had put it in. A group that lists `fields` shows exactly its list. -- **A tab the arrangement does not name still shows, after the listed ones.** This is the reverse of an object's own `relatedLists`, where leaving a list out hides it. Hiding is written: `{ list: 'crm_note', hidden: true }` hides that list's tab, whichever package brings it. `hidden` is accepted only here; an object's own `relatedLists` refuses it and says where it belongs. A list the owner hides by leaving it out of its own `relatedLists` stays hidden until the arrangement names it. The built-in tabs keep their own rules and are not hidden here. -- **A package that is not a `.custom` package writing either key is refused**, once at each door: saving or publishing the extension, `os validate` and `os build`, and installing the package (`VALIDATION_ERROR`; 400 at save and publish, 422 at install). Each refusal names the key, the object and the package and prescribes `place`. An extension that reaches the registry past those doors is not applied, and the boot log says so. Within one extension, a `place` entry beside the arrangement key that would replace it is refused at parse. -- **Only the object's own pair is served.** The pair is the `.custom` package of the App the object belongs to: for an object a module of an App owns, the App's pair. A `.custom` package an earlier version created for the module itself is still read while it is installed; where both write a key, the App's pair is served. The choice is by role, never by load order. What any other `.custom` package writes under these keys is not refused at the doors; the registry does not apply it, alone or beside the pair, and the boot log names the package and the object. -- **One merge, every reader.** The record page, the forms, the preview and Studio read the served object, so they show one arrangement. Removing a key, or uninstalling or disabling the `.custom` package, serves the owner's arrangement with the placements again. -- **Served reads say what the reader cannot derive.** Where a `.custom` package writes `relatedLists`, the served object carries the read decoration `_relatedListsArrangement` (`{ packageId, hidden, unlisted }`): the lists the environment hides, and whether an unlisted list shows. The record page's tab reader and the default page synthesis read it; with no decoration served they answer exactly as before. A reader's own tab order (kept per user) is still laid over this list, and a tab the environment hides is not offered to them. -- **A group the arrangement brings is a translation anchor.** `os validate`'s translation-reference rule reads an extension's `fieldGroups` too, so a bundle's `_sections` key for a group the `.custom` arrangement declares is not reported as naming nothing. -- **`hidden` on a field is not a display property a `fieldPatches` entry may set.** A hidden field is also left out of the search index and out of a form's required check, so the display whitelist is not widened. To keep a vendor field off the record page and the forms, list it in a group whose `visibleWhen` is false. That is presentation only, not access control: the field stays readable and writable through the API. Do not use it for a `required` field that has no default: the create form no longer shows the field while the save still requires it, so the form cannot be submitted. - -What to check in an app: nothing changes until a `.custom` package writes one of the two keys. A package other than a `.custom` one that wrote `fieldGroups` or `relatedLists` on an extension was refused at parse. It is now refused by the save, publish, install, `os validate` and `os build` doors, with the same prescription. Where none of those doors judges it (for example a code-defined stack that boots without `os validate` or `os build`, or a stack that names no package id), the key is not applied and the boot log names it, where the parse refused it before. diff --git a/.changeset/36499-record-tab-config-installed.md b/.changeset/36499-record-tab-config-installed.md deleted file mode 100644 index c8971c27468..00000000000 --- a/.changeset/36499-record-tab-config-installed.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch -'@object-ui/components': patch ---- - -feat(console): 「Configure tabs」 on an installed object writes its paired `.custom` package, marks where each tab comes from, and opens the record's 「…」 - -Clause-②: yes (widening) -Metadata-protocol: none - -On the record page of an object of an installed (read-only) package, a workspace administrator who may author metadata now finds 「Configure tabs」 too, where the customization door does not wall them off (the walled `group` / `isolated` postures leave it to the platform operator). Its 「Save」 writes the `relatedLists` of the object extension of the base's paired `.custom` package in the spec's shape (ADR-0146 D10): every shown tab in order, a built-in tab by its bare name, and every hidden related tab written `{ list, hidden: true }`; the pair is created on the first save by the ensure door, as Studio creates it. The extension is written over what the pair stores, with only its `relatedLists` replaced (`fields`, `fieldPatches`, `place` and `fieldGroups` kept), as a draft with the first-write pin, then published; a refused publish discards that draft. The original package is not written. - -On an installed object every tab can be moved: the object's own lists, a list another package brings, and the built-in 附件 / 审批 / 动态. A related tab can be hidden and shown again; a built-in tab cannot be hidden there (the `.custom` list cannot hide it), and an attachments tab the base hides waits in 「Hidden」, from which it can be shown. Each related tab is marked 「Original package」, 「From <package>」 or 「This environment」, read from the child object's package and the relationship field. - -A tab's stored title is kept when the administrator did not rename it, on self-built and installed objects alike: the name the editor shows is the served one, which the read translates for the reader's language. - -The write is one shared helper, `saveObjectExtensionArrangement`, which replaces only the arrangement keys a caller returns (`relatedLists` here; `fieldGroups` for a field-layout editor). - -`page:header`: a host `⋯` entry declaring `leadsMenu: true` is drawn first, ahead of Refresh; an authored action cannot claim the place. The record page's 「Configure tabs」 declares it, so it is the first item of the record's 「…」. - -New language-pack keys under `designMode.recordTabs` (`pairNotWritable`, `builtinMoves`, `sourceBase`, `sourcePackage`, `sourceEnvironment`) in all eleven console locales. diff --git a/.changeset/36499-record-tab-config.md b/.changeset/36499-record-tab-config.md deleted file mode 100644 index 299b9ad41ab..00000000000 --- a/.changeset/36499-record-tab-config.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/plugin-detail': patch -'@object-ui/i18n': patch -'@object-ui/components': patch ---- - -feat(console): an administrator configures the record page's tabs in place, from the record's 「…」 - -Clause-②: yes (widening) -Metadata-protocol: none - -On the record page of an object whose package is writable (an object of a self-built app), a workspace administrator who may author metadata finds 「Configure tabs」 among the record's own entries in its 「…」 (desktop full page only; never on a phone, in a drawer or a pane, or on a page its author composed). Chosen, the page enters an edit state in place: a bar across the top with 「Configure tabs」, 「Cancel」 and 「Save」, in the design mode's bar's look, and the tab row turns into an editor. The record stays on screen as the preview, in the administrator's default order. - -In the edit state the related tabs are dragged to a new order, hidden into a 「Hidden」 area and shown again from it, and renamed; the attachments tab can be hidden; 审批 and 动态, which the page always draws last, are shown fixed, and so is a list another package brings. 「Adjust field groups」 opens the object in Studio. 「Cancel」 drops the changes and writes nothing; leaving the page with a change held asks first. - -「Save」 writes the object's `relatedLists` over the object as stored (never as served), as a draft with the first-write pin, and publishes it, so everyone sees the new default order, names and hidden tabs. An object's own `relatedLists` hides a tab by leaving it out; an entry the editor does not arrange (a 审批 / 动态 name, a list it does not offer) is kept. A reader's own dragged order still lays over the new default, and 「Restore default order」 returns them to it. A tab is renamed only in the app's source language, where its shown name is its stored one, the design-mode menu's rule. - -New language-pack keys under `designMode.recordTabs` in all eleven console locales. `RecordPageColumns` takes an optional `tabRowEditor`, drawn in the tab row's place. Objects of installed (read-only) packages are not offered the entry yet. - -`page:header`: a `⋯` entry that finished on the click (it returned no pending promise) now closes the menu, as Refresh does; an entry still running keeps the menu open with its row busy until it settles, as before. diff --git a/.changeset/36501-studio-back-to-app.md b/.changeset/36501-studio-back-to-app.md deleted file mode 100644 index ad720150303..00000000000 --- a/.changeset/36501-studio-back-to-app.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -feat(studio): the top bar's left end reads 「‹ Back to app」, the app's name and "Studio"; the Studio-home button, the package switcher and Open app are gone - -Clause-②: no -Metadata-protocol: none - -Studio's top bar now starts with one way out: 「‹ Back to app · APP · Studio」. Entered from an app, the link names that app and returns to the page the author came from, its query included. Opened directly (a Studio address in a new tab, a reload), it names the package's published app and lands on its first screen; with several apps, the first. A package with no published app (none yet, or only a draft) and the organization flows scope read 「‹ Back to app」 with no name and go to the console's landing. Leaving with unsaved work in a pillar asks first, as every other header departure does. - -The home icon, the package switcher and the top-right Open app button are removed. Another package is opened from the app, or from the Studio landing, whose cards also carry package management and New package. - -New studio catalogue keys (en, zh): `engine.studio.backToApp`, `engine.studio.backToAppTitle`, `engine.studio.backToAppTitleNoApp`, `engine.studio.mark`. Removed with the Open app button: `engine.studio.openApp`, `engine.studio.openAppTitle`, `engine.studio.openAppPick`. `engine.studio.app.willOpenAfterPublish` now names 「Back to app」. No props or exports of the published packages change. diff --git a/.changeset/36502-retire-studio-interfaces.md b/.changeset/36502-retire-studio-interfaces.md deleted file mode 100644 index a2a21a519b8..00000000000 --- a/.changeset/36502-retire-studio-interfaces.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@objectstack/runtime': patch -'@objectstack/cli': patch -'@object-ui/i18n': patch -'@object-ui/plugin-chatbot': patch ---- - -fix(studio): Studio's Interfaces column is retired; its old links land on the Studio home and its Changes links open from the Data pillar - -Clause-②: no -Metadata-protocol: none - -objectstack#36502. Menus, header actions, list views, dashboards, reports and record pages are designed in the running app. Studio keeps Data, Automations, Access and All metadata, and every view, dashboard, report and page stays readable and editable as metadata on its All-metadata item page. No metadata type, key or stored shape changes. - -- **Old links still open.** `/studio/<package>/interfaces`, with or without a `?surface=` deep link, lands on the package's Data pillar and says once, there, "Interface edits have moved into the app" (「界面的修改已经搬到应用里」) with a link back to the app. A `?changes=review` request travels with it. -- **`@objectstack/runtime`, `@objectstack/cli`.** The review link the MCP authoring tools and `os meta register --draft` print is `/studio/<package>/data?changes=review` (it was `/studio/<package>/interfaces?changes=review`, which still works through the redirect). -- **`@object-ui/i18n`.** Adds `engine.studio.interfacesRetired.sentence`, `.backToApp` and `.dismiss` (en, zh). -- **`@object-ui/plugin-chatbot`.** The `onDesignBuiltApp` doc example names the Data route. -- The console's "Edit in Studio" links for a dashboard, page, report or view open its All-metadata item page. -- **Customize moves with them.** On a read-only base, a view, dashboard, report or page is customized on its All-metadata item page, in the type's designer, into the base's pair (`<base>.custom`), with the override mark and "Restore package original" as before. It was the Interfaces column's header. diff --git a/.changeset/36504-menu-rename-translation.md b/.changeset/36504-menu-rename-translation.md deleted file mode 100644 index be031cdde88..00000000000 --- a/.changeset/36504-menu-rename-translation.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/runtime': patch -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -feat(i18n): `GET /i18n/locales` names the source locale, and a design-mode menu rename outside it is stored as that language's translation - -Clause-②: yes (widening) -Metadata-protocol: added -Skills-docs: follow-up owed — skills/objectstack-i18n/SKILL.md - -- **`GET /api/v1/i18n/locales` names the source locale.** The body gains an optional `sourceLocale` (`GetLocalesResponseSchema.sourceLocale`): the language the app's own text, a plain-string `label`, is written in. It is the declared `i18n.sourceLocale`, else the default locale, the same rule the metadata translators use. It differs from the `isDefault` locale on an app written in one language that defaults its users to another. It is absent only when the server knows neither. Nothing that parsed before stops parsing. -- **A menu rename in design mode is stored where the reader's language reads it.** The name field of 「Rename and icon」 is now open in every language. A name typed in the source language, over an entry shown by its stored label, is still written to the stored label. Any other name is written as that language's translation of the entry: a name typed in another language, or one typed in the source language over a translation the reader was shown. The stored label stays unchanged, so every other language keeps its name. The rename says so when the new name will be a translation ("The new name is shown in LANGUAGE. The app's other languages keep their names."). -- **Where the translation goes.** It is written to the `translation` item `APP_menu_LOCALE` (for example `crm_menu_zh_cn`), at `apps.APP.navigation.ID.label`, the key app navigation is translated by. It goes into the package the menu is written to: the app's own package when that is writable, else its customization package, whose own translations are read first (ADR-0146 D2). Like the menu, it is saved as a draft with the first-write pin and published at once. A pending draft of it is refused and the reason is shown. A translation-only rename writes the translation and leaves the app alone. -- **A link added in another language** is stored without a name, and the name typed for it becomes that language's translation. The source language names it when someone sets a name there. Until then, a reader in the source language sees the link's URL, as for any link with no label. -- Before this change, the console allowed a rename only when the reader was in the deployment's default language. The default language could differ from the source language, and a rename there was written to the stored label for every language. diff --git a/.changeset/36505-field-layout-tab.md b/.changeset/36505-field-layout-tab.md deleted file mode 100644 index 0ee4a476fb4..00000000000 --- a/.changeset/36505-field-layout-tab.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -feat(studio): the object page's 「表单」 tab is now 「字段布局」 (Field layout), edits the object's field groups only, and arranges an installed object into its paired `.custom` package - -Clause-②: no -Metadata-protocol: none - -The Studio object page's Form tab is renamed 「字段布局」 / Field layout, and says in one sentence where its groups and order are used: the record page, the right-side preview, and the create and edit dialogs. It reads and writes the object's field groups and nothing else; no form view is read or written there. - -Group membership and order are saved in each group's own `fields` list. An object still written with a `group` on each field shows its groups as before, and its first save from the tab converts it to the lists, with nothing on the canvas moving. - -On an object of an installed (read-only) package the tab is no longer read-only where the customization door is open: adding, renaming, deleting and reordering groups, dragging fields (a field another package brings included) and the group settings all edit the object extension of the base's paired `.custom` package, as the whole `fieldGroups` arrangement (every group listing its members), saved and published by the top bar's Save with the rest of that extension. The original package is not written. A field or group `place` entry of that extension, which a written arrangement replaces, is taken off on save; a tab placement stays. Each field card of an installed object is marked 「原始包」 / Original package, 「本环境」 / This environment, or with the package that contributes it. Where the door is walled the tab stays read-only, as before. - -New Studio strings: `engine.studio.data.form.usedOn` and `engine.studio.designer.source.{base,baseTitle,environment,environmentTitle}` (en, zh); `engine.studio.data.form.layoutSource.*` is removed with the chip it labelled. diff --git a/.changeset/36506-own-row-doors-hosted.md b/.changeset/36506-own-row-doors-hosted.md deleted file mode 100644 index 94dc83b82a5..00000000000 --- a/.changeset/36506-own-row-doors-hosted.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@objectstack/spec': patch -'@objectstack/runtime': patch -'@objectstack/plugin-auth': patch -'@objectstack/service-storage': patch -'@objectstack/plugin-hono-server': patch ---- - -fix(hosted): deleting a personal view and removing or renaming an attachment work on a kernel with no `http.server` (a hosted tenant kernel) instead of answering 404 - -Clause-②: yes (widening) -Metadata-protocol: none - -`DELETE /api/v1/personal-views/:id` (plugin-auth) and `DELETE` / `PATCH /api/v1/attachments/:id` (service-storage) were mounted only on the kernel's `http.server`. A hosted tenant kernel owns no socket and registers no `http.server` (and runs `AuthPlugin` with `registerRoutes: false`), so the host's `createHonoApp` catch-all handed each request to the runtime dispatcher, which had no domain for them and answered `404 ROUTE_NOT_FOUND`: a member could not delete a personal view, or remove or rename an attachment, there. - -- `@objectstack/spec/contracts` declares `IPersonalViewDoorsService` (one optional, transport-neutral member, `handlePersonalViewDoor(request: Request): Promise<Response>`) and types the new `personal-views` service slot with it, and declares `IAttachmentDoorsService` (`handleAttachmentDoor`), which the existing `file-attachments` service implements beside `IFileAttachmentService`. A service without the member still satisfies either contract. -- `AuthPlugin` registers the `personal-views` service in `init()`, whatever `registerRoutes` says, and `StorageServicePlugin`'s `file-attachments` service gains `handleAttachmentDoor`. Each member runs the same registration over the same dependencies the `http.server` mount runs, on a private route table that never listens, so every answer is the mount's own. The `http.server` mounts are unchanged, and no path is mounted twice. The `personal-views` service name is now taken: a composition that registers its own `personal-views` service alongside `AuthPlugin` fails to boot with a duplicate-service error. `@objectstack/plugin-auth` and `@objectstack/service-storage` now depend on `@objectstack/plugin-hono-server` at runtime (the private table is a `HonoHttpServer`; plugin-auth previously listed it as a dev dependency only). -- `@objectstack/plugin-hono-server` exports `createDoorTableMember(routes, mount)`, the private never-listening table both members are built on, and `matchDoorTableRoute`. -- The runtime dispatcher gains `/personal-views` and `/attachments` domains that claim exactly the door shapes and forward the request, body unread, to the REQUEST kernel's member (never the host kernel's scoped fallback). Every other shape under those prefixes keeps the dispatcher's `404 ROUTE_NOT_FOUND`. With no slot, or one without the member, the doors answer `501 NOT_IMPLEMENTED` naming the package that registers it. The doors stay behind the dispatcher's authentication and project-membership gates. diff --git a/.changeset/36507-drill-relation-chip.md b/.changeset/36507-drill-relation-chip.md deleted file mode 100644 index 7018dacd57c..00000000000 --- a/.changeset/36507-drill-relation-chip.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@object-ui/plugin-list': patch -'@object-ui/i18n': patch ---- - -fix(plugin-list): a list's locked chip for a condition on a related record's field names the field and the value, instead of reading `[object Object]` - -Clause-②: no -Metadata-protocol: none - -A view filter that compares one field of a related record, the nested-relation form `{ crm_account: { industry: 'technology' } }`, now reads as one locked chip on the path `crm_account.industry`: 「Account › Industry: Technology」. The form is read as written and as lowered to `['crm_account', '=', { industry: 'technology' }]`, the shape a dashboard or report drill on a relationship-path dimension hands its list. Before, that chip read the lookup's label and `[object Object]`. - -- The lookup's name is its label in the list's own field list. The related field's name and its option labels come from the related object's definition, translated as the list translates its own fields (`fields.<object>.<field>`, `fieldOptions.<object>.<field>.<value>`). Where a label is missing, the raw name shows. -- The row reads the related object's definition once per related object, only while such a chip is shown, through the host's data source. -- A nested condition the chip cannot say as one equality (several fields, an operator, a deeper relation) reads as the view's own condition (「View filter」), never as `[object Object]`. -- Every console locale gains `listConditions.chips.relationPath`. - -The chip stays locked: the list cannot edit a related-record condition. diff --git a/.changeset/36511-studio-save-cancel-2.md b/.changeset/36511-studio-save-cancel-2.md deleted file mode 100644 index 0835bf1bd49..00000000000 --- a/.changeset/36511-studio-save-cancel-2.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -feat(studio): hooks, an installed app's added actions and flows save with the top bar, and a Save is live at once - -Clause-②: no -Metadata-protocol: none - -The Studio's hooks, the actions an installed app's object gains in its `.custom` package and flows no longer autosave a draft 1.5 s after each edit. Edits stay on the page until the author presses Save in the top bar; Cancel puts them back as the server holds them. Save writes each edited item's draft and then publishes that one item at the package it was written to, so the change is live at once. A new hook or an added action is written only by Save, and a removed added action is deleted by Save. - -A flow's on/off switch needs no Save: a flip writes the stored flow with the new status and publishes it at once, leaving any unsaved canvas edit on the page for Save. A new flow is published as it is created, switched off, so switching it on makes it live straight away. The inspector footers and the Studio landing say that Save makes a change live; permission sets follow in a separate change. diff --git a/.changeset/36511-studio-save-cancel-3.md b/.changeset/36511-studio-save-cancel-3.md deleted file mode 100644 index 17cb8b40dc2..00000000000 --- a/.changeset/36511-studio-save-cancel-3.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -feat(studio): every human editor in Studio saves live; an item's unpublished AI changes can be dropped on its page - -Clause-②: no -Metadata-protocol: none - -Every editor a person uses in Studio's object, automation and access pages now saves with the top bar's Save and Cancel, and a Save is live at once: an object's fields, field layout, validation rules, actions, settings and hooks, flows, and now permission sets and the Access pillar's record-sharing overview, which no longer has a Save of its own. A permission set no longer autosaves a draft 1.5 s after each edit, and the access banners say that Save makes a change live. Creating an object, a flow or a permission set makes it live at once too, so those create dialogs say Create instead of Save as draft; apps, pages, dashboards, reports and datasets are still created as drafts. - -Changes and Publish are left for the AI assistant's drafts. When an object or a flow holds an unpublished draft the assistant wrote, its page says that saving makes those changes live too and offers to discard them: that one item's draft is dropped, the page goes back to the live version, and Changes counts one item fewer. Unsaved edits on the page go with the discard, after a confirm. diff --git a/.changeset/36511-studio-save-cancel.md b/.changeset/36511-studio-save-cancel.md deleted file mode 100644 index 2a1f30e54e8..00000000000 --- a/.changeset/36511-studio-save-cancel.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -feat(studio): the object page saves with Cancel and Save in the top bar, and a Save is live at once - -Clause-②: no -Metadata-protocol: none - -Studio's object page (fields, validation rules, actions, settings and field groups) no longer autosaves a draft 1.5 s after each edit. Edits stay on the page until the author presses Save, which sits at the right of the Studio top bar where Publish was; Cancel beside it puts the page back as the server holds it. Save writes the object's draft and then publishes that one object at the package it was written to, so the change is live at once. An installed app's object takes its edits into the paired `.custom` package and publishes them there. - -Changes and Publish are drawn only while drafts are pending (a copilot's, or another editor's), and a publish waits while the page holds edits Save has not sent. A Save refused by the server keeps the edits on the page with the reason, and its toast names each refused item with its reason and lists the items that were saved. Removing or retyping a published field asks first. Save waits out the expression checks of the last keystroke, so a formula or rule guard that does not parse is never sent. Leaving the page, or opening another object, with unsaved edits asks, as every departure does. - -Hooks, flows and permission sets moved to the same Save in later changes; list views and navigation keep their draft autosave for now. diff --git a/.changeset/36512-settings-business-wording.md b/.changeset/36512-settings-business-wording.md deleted file mode 100644 index df42f02a3d5..00000000000 --- a/.changeset/36512-settings-business-wording.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -feat(studio): the object Settings tab speaks business language, shows each setting's key as small print, and puts the developer options last - -Clause-②: no -Metadata-protocol: none - -Studio's object Settings tab is now in two parts. The business settings come first: label, plural label, icon and colour, description, who can see which records, the record name field, the stage field, the highlight fields, the record page tabs and the features. A "Developer options" section comes last, expanded and with no switch. It holds the internal name (read-only once the object exists), who can open the object by default, and the extra permissions it requires. - -Titles and descriptions no longer show ADR numbers, internal rule codes or key names in parentheses. The metadata key each setting writes (`nameField`, `sharingModel`, `enable.clone`, `access.default`, `requiredPermissions`, …) is shown as small monospace text beside the setting's title. One click selects the whole key for copying. The key sits outside the control's label, so selecting it neither opens a picker nor flips a switch. - -Three descriptions are rewritten so that someone who does not know the platform's internals can follow them: the internal name, the default access ("Standard — anyone with access to all objects" / "Restricted — only people granted this object by name") and the extra required permissions. The English and Chinese texts are both updated; every other language falls back to English for these strings, as before. - -What each setting means and what it saves are unchanged. - -For hosts of the object default inspector: `MetadataDefaultInspectorProps` gains an optional `split` (`{ part: 'business' | 'developer'; renderKey? }`). Only the object inspector reads it. Without it the inspector draws its whole panel, as before. The reworded object-inspector strings also show wherever that inspector is mounted. diff --git a/.changeset/36516-formula-skill-sharing-rule-skip.md b/.changeset/36516-formula-skill-sharing-rule-skip.md deleted file mode 100644 index 6342ba35244..00000000000 --- a/.changeset/36516-formula-skill-sharing-rule-skip.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -docs(skills): objectstack-formula says an unlowerable `SharingRule` `condition` fails the build and that the rule is skipped at runtime, instead of saying it aborts the write - -Clause-②: no -Metadata-protocol: none - -The "Surfaces that take an Expression" warning used to group `SharingRule` `condition` with `Hook` `condition` and validation predicates as "aborts the write". A sharing rule's condition is never evaluated on a write: it is compiled to a query filter. One that does not lower to a filter fails the build (`validate-sharing-rule-enforceability`, an `error`), and at runtime the rule is skipped and grants nothing, with one WARN line. The sentence now says so; the `Hook` and validation-predicate halves are unchanged. - -Text only. Two restatements are cut to pay for it under the token ceiling, which is not raised: the translation-table note that `previous.x` fails the write on an insert (it stays in section 5's `previous` table and warning), and the "ride the same envelope" lead-in of the cron and template section (it stays in Core contract). diff --git a/.changeset/36520-kanban-lane-statistic-server.md b/.changeset/36520-kanban-lane-statistic-server.md deleted file mode 100644 index 0766209bc49..00000000000 --- a/.changeset/36520-kanban-lane-statistic-server.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/lint': minor -'@object-ui/plugin-kanban': minor -'@object-ui/plugin-list': minor -'@object-ui/i18n': minor ---- - -feat(kanban): a lane's sum, average, minimum and maximum cover every record of the lane, computed in the query - -Clause-②: yes -Metadata-protocol: semantic -Skills-docs: follow-up #36422 (skills/objectstack-ui/rules/list-views.md teaches the board lane summary, now including avg / min / max) - -A stored `kanban.summary` of type `sum` now totals every record in the lane (computed in the query) instead of the loaded cards; where the board cannot ask the server, no figure is drawn. - -A board's lane foot statistic, `kanban.summary`, now takes `{ type: 'avg' | 'min' | 'max', field }` beside `none`, `count` and `sum`, and every one of `sum`, `avg`, `min` and `max` covers all of the lane's records: - -- **One grouped aggregate, no fetch-then-add.** The board asks ONE aggregate over its own query — its filter and its host's search, grouped by the lane field — through the data door a grouped list view's headers already ride (`DataSource.queryGroupHeaders`, `POST /data/:object/query`). A lane longer than its page (50 records) shows the whole lane's figure; the "loaded cards" label is gone. Records with no lane value, and records in a value that is no lane, are folded into the trailing "Uncategorized" lane. A lane with no record shows `0` for a sum and no figure for the other three; a lane that holds records but that the answer has no group for (the door can cut the group rows under a deployment's default page size) shows no figure rather than `0`. A whole answer needs the door to hand back that the rows were cut: follow-up #36870. -- **Under the reader's permissions.** The platform runs the aggregate with the reader's row filter, and refuses an aggregate over a field the reader may not read; the board asks nothing for such a field, and a refused read draws no figure. -- **No figure rather than a partial one.** A data source without `queryGroupHeaders`, or a filter the read cannot repeat, draws no `sum` / `avg` / `min` / `max` figure. Over cards a host hands to the board, a `sum` is still added up on the board and the other three draw nothing. Known gap, follow-up #36871: the list view hands a board whose lanes it cannot know before the query (lanes over a lookup field, a view with grouping) its fetched page, so there `sum` totals that page, unmarked. -- **`@objectstack/lint`** judges `avg`, `min` and `max` the way it judges `sum` (`list-view-summary-field-type-refused`): the aggregate × field-type table's row for that function over the field's declaration, less the boolean class, which it now reads from the spec (`BOOLEAN_VALUE_TYPES`) instead of listing `boolean` and `toggle` itself. The list view's lane-statistic picker reads the same class, and now offers and names `avg` (Average), `min` (Minimum) and `max` (Maximum) over the number fields it offers for `sum`; the locale packs carry the three names and drop the retired loaded-cards label. - -A stored `sum` keeps its key and its field; what it draws is now the whole lane's total where it drew a total over the loaded cards before, and no figure over a data source that cannot answer the lane read. diff --git a/.changeset/36526-cbp-refusal-business-wording.md b/.changeset/36526-cbp-refusal-business-wording.md deleted file mode 100644 index c766d3f944f..00000000000 --- a/.changeset/36526-cbp-refusal-business-wording.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@objectstack/spec': patch -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -feat: the controlled-by-parent master refusal carries a machine-readable code, and the Studio settings tab words it for the author in en and zh - -Clause-②: yes -Metadata-protocol: none - -`@objectstack/spec` — the refusal of a `sharingModel: 'controlled_by_parent'` object that does not derive exactly one writable master now stamps its parse issue with `params: { code: 'CONTROLLED_BY_PARENT_MASTER_INVALID', shape }`, at both raise sites: `ObjectSchema`'s refinement and `defineStack`'s extension-merge gate. `shape` is the refusal's existing `ControlledByParentMasterShape` (`several-required-masters`, `several-masters`, `master-not-required`, `required-lookup-only`, `no-master`, `master-not-writable`). The code is exported as `CONTROLLED_BY_PARENT_MASTER_INVALID` from `@objectstack/spec/data`, with the `ControlledByParentMasterIssueParams` type, and is registered in `ERROR_CODE_LEDGER` under `@objectstack/spec`. Which objects are refused, and where, is unchanged. - -The refusal's English message no longer cites an ADR section: each of its three arms read `ADR-0055 §1: since @objectstack/spec 18, …` and now reads `Since @objectstack/spec 18, …`. The rest of each message, including the fix it prescribes, is unchanged. A script that matched `ADR-0055 §1:` in this message should match `params.code` on the zod issue instead, where it can see the issue: an `ObjectSchema` / `ObjectStackDefinitionSchema` `safeParse`, or the `issues` of `defineStack`'s `STACK_SCHEMA_INVALID` refusal. The metadata save door's `422 INVALID_METADATA` does not carry the code: its `issues[]` entries keep `path`, `message` and zod's issue code (`custom`) only, so a reader there still has only the message. - -`@object-ui/app-shell` / `@object-ui/i18n` — the Studio object settings tab no longer shows the spec's English message verbatim when "Follows its parent record" cannot be saved. It reads the code and shape off the save door's own parse and shows one sentence per shape from the `studio` namespace (`engine.studio.settings.cbpRefusal*`, en and zh), naming the fields to change by their labels. A refusal without the code, or with a shape that has no sentence, still shows the spec's message. diff --git a/.changeset/36528-related-list-label-translation.md b/.changeset/36528-related-list-label-translation.md deleted file mode 100644 index 576b13884da..00000000000 --- a/.changeset/36528-related-list-label-translation.md +++ /dev/null @@ -1,31 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/lint': minor -'@objectstack/metadata-protocol': minor -'@objectstack/objectql': minor ---- - -feat: a record-page tab title an object's `relatedLists` entry declares can be translated - -Clause-②: yes (widening) -Metadata-protocol: added - -An object-form `relatedLists` entry (`{ list, label, columns }`) titles its tab and table on the parent's record page, and its `label` wins over the child lookup field's `relatedListTitle`. The field's title had a translation key; the entry's did not, so a declared tab title showed its authored text in every locale. - -A translation bundle now carries it on the parent object, keyed by the entry's literal `list` (a dotted `object.field` is one key): - -```ts -objects: { - account: { - _relatedLists: { - contact: { label: '联系人' }, - 'event.related_to': { label: '会议' }, - }, - }, -} -``` - -- `@objectstack/spec`: `ObjectTranslationDataSchema._relatedLists` (a closed leaf with one key, `label`; the un-prefixed `relatedLists` is named as a rename onto `_relatedLists`). `translateObject` overlays it onto the served parent object's entries, so `GET /meta/object` serves the translated title and the console's record page shows it with no change of its own. Only an entry that authors a `label` is translated: an entry without one, a bare name and a built-in tab keep their current title (the child field's `relatedListTitle`, else the child object's plural label). A title a tenant changed keeps its text, as every other translated slot does. -- `@objectstack/lint`: `os i18n extract` scaffolds the key for every labelled entry and the coverage gate counts it; `os validate` reports a `_relatedLists` key that names no labelled entry of that object as `translation-target-unknown`. A labelled entry an object extension brings (a list placement in `place`, or a shown entry of the paired `.custom` package's `relatedLists`) is a labelled entry of the object it extends, so its key resolves; the record page shows a placed tab only where that object declares `relatedLists`. A key over a built-in tab, or over an entry the `.custom` arrangement hides, is reported with its own reason. -- `@objectstack/metadata-protocol`: a save that sends back a translated entry title (a Studio edit of the object read in another language) stores the source title instead, with an `info` advisory, as it already does for field labels. -- `@objectstack/objectql`: the packaged base `getPackagedObjectBase` hands the `/meta` read (the text a served slot is compared with) carries the tabs a code package's `place` adds to the owner's `relatedLists`, as the fold splices them (so only where the owner declares `relatedLists`). A placed title is therefore translated from the deployment's catalog, which carries the placing package's translations, the way a field such a package adds already is; a tenant's rename of that title keeps its text. A `.custom` arrangement's title is the customization layer and reads the pair's own translations. diff --git a/.changeset/36530-titled-screen-node-label.md b/.changeset/36530-titled-screen-node-label.md deleted file mode 100644 index 52a52ae7555..00000000000 --- a/.changeset/36530-titled-screen-node-label.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/lint': minor -'@object-ui/i18n': minor -'@object-ui/components': minor ---- - -feat(i18n): a flow screen with its own heading gets a translatable step name, `flows.FLOW.nodes.NODE_ID.label` - -Clause-②: yes (widening) -Metadata-protocol: added - -A screen node that sets its own `config.title` has a heading and a separate canvas label. Until now only the heading could be translated (`flows.FLOW.screens.NODE_ID.title`), so the label stayed in the authoring language. The docs flow embed and the Studio flow designer both draw that label. - -- **New key accepted.** `objectstack validate` now accepts `flows.FLOW.nodes.NODE_ID.label` over a screen whose `config.title` is a non-empty string. A screen with no `config.title` is still refused there and pointed at `screens.NODE_ID.title`, because its heading is its label and one string keeps one key. An `approval` node is still pointed at `approvals.NODE_ID.label`. -- **Docs embed.** The `type: flow` embed (`element:metadata_viewer`) names a titled screen by its heading, translated where the bundle has the heading. When the heading holds a `{{ }}` hole, which a drawing cannot fill, the embed now names the screen by the new key, and falls back to the authored label only if the key is missing. -- **Studio designer.** The canvas draws a titled screen's label from the new key. -- **Untitled screen with a hole.** If a translated `screens.NODE_ID.title` contains a `{{ }}` hole, the embed and the canvas now draw the authored label rather than the raw template. -- **Coverage.** `os lint`'s i18n coverage and `os i18n extract` ask for the new key on a top-level screen whose authored heading holds a `{{ }}` hole. These are the screens the embed draws by their label. -- **One branch rule.** `@objectstack/spec/automation` exports `flowDecisionEdgeBranch`, `FlowDecisionEdgeBranch` and `FLOW_DECISION_DEFAULT_BRANCH_LABEL`. They decide which out-edges of a decision a drawing lists as branches. The docs embed's branch list and the i18n walk's folded branch targets both read them, so the two can no longer disagree. - -Nothing to migrate. A bundle that does not use the new key keeps working. diff --git a/.changeset/36538-design-mode-menu-save-hardened.md b/.changeset/36538-design-mode-menu-save-hardened.md deleted file mode 100644 index 0d16b9c7b62..00000000000 --- a/.changeset/36538-design-mode-menu-save-hardened.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -fix(console): the design mode's menu save refuses an unreadable stored app, pins its publish, and keeps own entries out of another package's group - -Clause-②: no -Metadata-protocol: none - -The menu editor of the console's design mode, and its 「Save」, are hardened in eight places: - -- Two id-less menu entries of one group with the same type and target (two separators, say) are matched to their own served copies: an entry the reader was not shown (other `requiredPermissions`) no longer takes the key of the one shown, so removing the shown entry removes it, not the hidden twin. Twins equal in every key are matched by their place. -- A stored read that holds no app (the layered read answers a 404 as an empty view) refuses the save, and the bar says why, instead of writing an app of the menu additions alone. On entry such a read no longer marks every entry as another package's. -- The publish is pinned to the published row the save was composed over (the `/layers` read's `overlayVersion`, sent as `If-Match`, or `If-None-Match: *` where no row is stored), read at the address the publish writes. A publish somebody lands in between is refused, the draft is discarded and the bar says so; saving again applies the edits over it. A server that serves no `overlayVersion` is published unpinned, as before. -- A group another package contributes is not offered by 「Move to group」, has no 「Add menu item」, takes no drop, and offers no 「Add an item before / after」 on its entries. -- An entry added at a group's end while the stored read is still pending is drawn before another package's entries once the read lands, where the save puts it. -- Space starts a keyboard move and Enter opens the entry's page; the editor's help line and its screen-reader instructions say so. -- A drop outside the menu moves nothing. -- The click that ends a pointer drag opens nothing however long the button was held after an Escape, and no click opens a link while a keyboard move is held. - -`AppMenuSaveTexts` gains two optional sentences, `storedUnread` and `publishedMoved`; a caller that states neither is told the package sentence for the first and the server's refusal for the second. Nothing to migrate. diff --git a/.changeset/36541-skills-custom-arrangement.md b/.changeset/36541-skills-custom-arrangement.md deleted file mode 100644 index dce691ea2b2..00000000000 --- a/.changeset/36541-skills-custom-arrangement.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -Clause-②: no -Metadata-protocol: none - -The `objectstack-data` skill teaches the whole-arrangement keys of the paired `.custom` package's object extension: - -- Object Extension Model: only the object extension of a base's paired `.custom` package may write `fieldGroups` and `relatedLists`, in the shape an object declares them. A written key replaces that arrangement whole (the owner's and every `place`); an unlisted field shows after the last group, an unnamed tab still shows after the listed ones, and `{ list: 'crm_note', hidden: true }` hides a tab. Outside a `.custom` package both keys are refused at save, publish and install and by `os validate` / `os build`, with the prescription to use `place`. -- Eval: a new `objectstack-data` case moves an installed object's tab arrangement from an add-on package's extension, where it is refused, to the pair's extension, and names `place` as what the add-on package writes. The `place` case no longer says an extension has neither key. -- Five restatements in the same file are cut to pay for the paragraph; each one's content stays in the bundle (`rules/validation.md`, `rules/indexing.md`, `rules/lifecycle.md`, `references/lint-rules.md`, the object JSON example). diff --git a/.changeset/36545-action-opened-form-not-internal.md b/.changeset/36545-action-opened-form-not-internal.md deleted file mode 100644 index 761939cf976..00000000000 --- a/.changeset/36545-action-opened-form-not-internal.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@objectstack/lint': patch ---- - -fix(lint): a default or create form that a form-type action opens by name is not reported as internal - -Clause-②: no -Metadata-protocol: none - -The advisory rule `form-view-internal-not-loaded` warned on every default form (`form`, `formViews.default`, an `isDefault` form view item) and every create form (`formViews.create`, `OBJECT.create`) that is not shared publicly. A `type: 'form'` action can still open one of those forms by its name, and the Console still loads it then, so for that form the warning said "no longer loaded" about a form users reach. - -The rule now leaves such a form out. A form counts as opened by an action when the `target` of a `type: 'form'` action in the stack equals the name the form is served under: the item's own `name` for a stored form view item, and for a view container's form the name the spec's container expansion gives it (`OBJECT.form` for the default form, or its own `name`; `OBJECT.create` for `formViews.create`; a key collision's renamed name). The actions read are `actions[]`, `objects[].actions[]` and a page component's inline `properties.action`. An interpolated target, a shorter spelling, or an action of another type exempts nothing. The `os explain form-view-internal-not-loaded` text says so. - -The warning still fires for every other internal create or edit form, with the same message and hint. Nothing is refused or accepted differently. diff --git a/.changeset/36552-line-item-grid-followups.md b/.changeset/36552-line-item-grid-followups.md deleted file mode 100644 index 85d0728a9b8..00000000000 --- a/.changeset/36552-line-item-grid-followups.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@object-ui/fields': patch ---- - -fix(fields): the line-item grid stores an emptied multi-record lookup cell as `null`, draws a people or lookup column's names with one read, and mutes an empty list in list mode - -Clause-②: no -Metadata-protocol: none - -- **An emptied multi-record lookup cell writes `null`.** Un-picking the last record of a `lookup` column with `multiple: true` wrote an empty list (`[]`) into the line, while an emptied multi-select, tags or people cell writes `null`, the value the field contract stores for a cleared multi-value field. It now writes `null` too, so every emptied multi-value cell in the grid stores the same value and the save's blank-line check reads it as empty. -- **Names are read once per referenced object, not once per line.** Each people cell and lookup cell holding a bare record id read that record on its own to draw its name, so a grid of twenty lines with a people column made twenty reads of `sys_user`, and a lookup column twenty more of its target. The grid now gathers those reads into one read per referenced object (an `$in` on the record ids, up to 50 ids per read), with each id asked for once, in editable, read-only and list mode alike. What each cell draws is unchanged. -- **A stored empty list reads muted in list mode.** A multi-select or tags cell holding `[]` drew the em dash in the normal text colour; it now takes the muted colour, as an empty value already did. - -No metadata key, value or default changes. diff --git a/.changeset/36554-drill-record-steps-whole-result.md b/.changeset/36554-drill-record-steps-whole-result.md deleted file mode 100644 index bc5fdc64859..00000000000 --- a/.changeset/36554-drill-record-steps-whole-result.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@object-ui/plugin-dashboard': patch -'@object-ui/plugin-list': patch ---- - -fix(plugin-dashboard): a record opened from a drill counts and steps through the drill's whole result - -Clause-②: yes (widening) — one additive member, `ListViewProps.onFindParamsChange` (`@object-ui/plugin-list`); nothing is removed or renamed -Metadata-protocol: none - -A record opened from a dashboard or report drill showed 「1 of N」 and stepped ↑ ↓ only over the rows the drill's list had drawn on its page, so a drill that matched 40 records and drew 20 let the reader walk 20. The `list-view` page block handed its own `onTotalChange` (the tab badge's count) to the list after the host's, so the drill never heard the count; it now hands the count to both. The list now also reports the query behind the rows it draws (`onFindParamsChange`, a host prop answered where `onRowsChange` answers with rows), and the drill re-issues that query for record ids alone, with the same filter, sort and search, when the count exceeds the rows drawn or the rows drawn are a later page. The record page is handed every record the drill matched, in the drill list's order, up to 1,000, and the count it matched, so its counter says where the record sits in the whole drill and ↑ ↓ walk all of it. A read that fails, a record past the first 1,000, or a result that changed under the list keeps the rows drawn as the step set, as before. diff --git a/.changeset/36557-record-top-bar-close-left.md b/.changeset/36557-record-top-bar-close-left.md deleted file mode 100644 index 53ff33eaddb..00000000000 --- a/.changeset/36557-record-top-bar-close-left.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/components': patch ---- - -feat(components): the record's close button moves to the left of the top bar's navigation row - -Clause-②: yes (widening) -Metadata-protocol: none - -`RecordTopBar` takes a new optional `close` slot, which holds the button that closes the record. The two-row bar draws it as the first control of the navigation row, before `leading`, the ↑ ↓ buttons and the "N of M" counter. The one-row bar (the phone face) still draws it last at the right end, after `frame`. `NavigationOverlay` hands its close button through the new slot, so on the record drawer, the split pane and the maximized pane the close button is now at the top left and the "Open as full page" button stays at the right. The close button keeps its accessible name and its handler, and Escape still closes as before. A host that still passes its close button inside `frame` gets the old far-right placement; to move it, pass it as `close` instead. No metadata key and no i18n string changes. diff --git a/.changeset/36558-scenario-scorer-gallery-refresh.md b/.changeset/36558-scenario-scorer-gallery-refresh.md deleted file mode 100644 index 3f643995fbe..00000000000 --- a/.changeset/36558-scenario-scorer-gallery-refresh.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@objectstack/scenarios': patch ---- - -fix(scenarios): scorer and card defects from the 18.6.0 gallery refresh - -Clause-②: no -Metadata-protocol: none - -- On a `withheld` question, a sentence about what a dataset or report covers ("The Approved Leave dataset can't group by medical note") is no longer read as a decline, unless it binds to the asker. -- The agent-action check also fails an action the build gates (`ai.requiresConfirmation: true`) where the card has the agent act at once (`confirm: false`): `action:OBJECT.NAME->not-confirm-gated`. The build prompt says an unmarked action runs with no confirmation gate. -- `persona-grant:*:delete` reads the platform's owner-only delete floor: `allowDelete` without Modify All (or a write depth of `org`) no longer passes a delete of a seed row the persona does not own; a delete only a row-dependent rule, a `controlled_by_parent` master gate or a declared route action could admit is not measured. -- A declared `VALIDATION_FAILED` is met by a hook's own refusal with no declared code (`HOOK_ABORTED`) at a client-error status. -- Card wording: service_desk `log_ticket` states it assigns the signed-in agent and opens the ticket; leave_balances `sick_by_medical_note` asks by what the medical note says; requisition_to_receipt and travel_expense ask for a record-triggered flow. diff --git a/.changeset/36567-validations-clearable-state.md b/.changeset/36567-validations-clearable-state.md deleted file mode 100644 index e53a4f13951..00000000000 --- a/.changeset/36567-validations-clearable-state.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -fix(studio): a state-machine row in the validations panel can say its state may be cleared, and editing the row keeps that - -Clause-②: no -Metadata-protocol: none - -A `state_machine` rule judges a clear of its field (`null` or `''`) as a transition to `''`, allowed only from a state that lists `''` among its targets. The Studio validations panel parsed a row's next states with the empty entries dropped, so an admin could not make a state clearable from Studio, and editing a row that already listed `''` silently removed it, after which users who cleared the field were refused again. - -Each transition row now has a "May be cleared" checkbox that adds or removes the `''` target. The "Next states" box shows and edits the named targets only, and an edit to it keeps an existing `''` (written as the row's last target), so a rule with `paused: ['open', '']` is written back unchanged. Nothing changes in what the server accepts or how it judges a transition. diff --git a/.changeset/36573-security-denial-label-locale.md b/.changeset/36573-security-denial-label-locale.md deleted file mode 100644 index a5a70a66592..00000000000 --- a/.changeset/36573-security-denial-label-locale.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@objectstack/plugin-security': patch ---- - -Clause-②: no -Metadata-protocol: none - -A security refusal's `userMessage` (the master-detail write gate and the field-write gate) now negotiates the label locale against the locales the i18n service holds before it translates the object or field label, the way objectql's refusals and the metadata route do. A request in a regional tag such as `en-US`, in a deployment authored in `en` that defaults to another language, now names the master object by its authored label (`Contract`) instead of the default language's row. diff --git a/.changeset/36577-data-page-object-switch.md b/.changeset/36577-data-page-object-switch.md deleted file mode 100644 index db03fe1b38c..00000000000 --- a/.changeset/36577-data-page-object-switch.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(console): moving straight from one object's data page to another's opens the new object's list as its address says - -Clause-②: no -Metadata-protocol: none - -On the bare data page (`/apps/APP/OBJECT/data`), going straight to another object's data page without a reload (a link, the browser's back and forward) kept the page and its list mounted. The new object's list then kept the previous object's search, Filter panel, sort, grouping and quick-filter chips, and ignored the ones its own address carried, while the address showed the new ones. The list now opens afresh for each object, from the new address: its `uf__search`, `uf__filter`, `uf__sort`, `uf__group` and `uf_FIELD` chip selections. An address with none of them opens the new object's list with none. 「Reset」 on a list opened from a record's related list is unchanged. diff --git a/.changeset/36589-design-menu-casing.md b/.changeset/36589-design-menu-casing.md deleted file mode 100644 index 7ff5ef9adb4..00000000000 --- a/.changeset/36589-design-menu-casing.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(app-shell): the design-mode menu builds on a case-insensitive file system — its helper module no longer shares the component's name up to letter case - -Clause-②: no -Metadata-protocol: none - -`layout/` held the menu editor component `DesignModeMenu.tsx` beside its pure tree helpers `designModeMenu.ts`. On a case-insensitive file system (the macOS default) the sidebar's lazy `import('./DesignModeMenu.js')` tried `.ts` first and found the helper module, which has no default export: the `@object-ui/app-shell` build failed with TS1149 ("differs from already included file name … only in casing"), and a Console bundled there turned the whole page white when 「Edit app」 opened design mode. The helpers are now `designModeMenuModel.ts` (its test `designModeMenuModel-36363.test.ts`), so `./DesignModeMenu.js` can only reach the component. No behaviour changes; Linux builds were never affected. diff --git a/.changeset/36591-design-menu-order.md b/.changeset/36591-design-menu-order.md deleted file mode 100644 index 144efb8dd56..00000000000 --- a/.changeset/36591-design-menu-order.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(app-shell): a menu reordered in design mode is saved in the order the sidebar draws it, in apps whose menu entries carry `order` - -Clause-②: no -Metadata-protocol: none - -The sidebar sorts each level of an app's `navigation` by `order` (lower first, an absent `order` as 0, ties in array order), but design mode listed and saved the array as authored. In an app whose entries carry `order` — AI-built apps write one on every entry — 「Move up」, 「Move down」, 「Move to group」, a drag and an added item were saved and published without error and changed nothing on screen; re-entering design mode then listed the menu in an order the sidebar did not show. - -Design mode now lists each level in the sidebar's order, and the save writes that order back: every level in which any entry carries `order` has each of its entries, groups and group children alike, renumbered `0`, `1`, … in the order design mode showed. A level in which no entry carries `order` is saved by array order as before and gains no `order` key, so apps authored by array order (HotCRM's) are unchanged. Saving a menu with `order` therefore rewrites its `order` values to consecutive numbers; the order they draw is the one design mode showed. diff --git a/.changeset/36592-object-colour-platform-objects.md b/.changeset/36592-object-colour-platform-objects.md deleted file mode 100644 index a37a7601da7..00000000000 --- a/.changeset/36592-object-colour-platform-objects.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/platform-objects': patch ---- - -feat(platform-objects): built-in objects shown in Setup and the Account app carry a palette colour - -Clause-②: no -Metadata-protocol: none - -The console draws an object's icon as a white glyph on a square of the object's palette colour, and an object that declares no `color` is drawn in the neutral `gray`. Until now no built-in object declared one, so every platform object read the same. Users, organizations, business units and their members, teams, memberships and invitations are now `blue`; API keys, sessions, linked accounts, OAuth applications, SSO providers and SCIM connection credentials `purple`; notification events `pink`; exchange rates, units of measure, working calendars, calendar exceptions and user preferences `green`. - -Each colour is one of the palette names (`OBJECT_COLORS`), picked by business family, not by status: people and organisation `blue`, security and access `purple`, approvals and work routing `orange`, messaging and notifications `pink`, integrations `teal`, reference data and preferences `green`, audit `amber`. Objects nobody opens in the console (credential and token stores, queues, run logs, engine bookkeeping) keep no `color` and stay `gray`. Nothing about the objects' fields, data or API changes. diff --git a/.changeset/36592-object-colour-plugin-approvals.md b/.changeset/36592-object-colour-plugin-approvals.md deleted file mode 100644 index ab2c592f5a9..00000000000 --- a/.changeset/36592-object-colour-plugin-approvals.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/plugin-approvals': patch ---- - -feat(plugin-approvals): approval requests, actions and delegations carry a palette colour - -Clause-②: no -Metadata-protocol: none - -The console draws an object's icon as a white glyph on a square of the object's palette colour, and an object that declares no `color` is drawn in the neutral `gray`. Until now no built-in object declared one, so every platform object read the same. Approval requests, the approval action history and delegations are now `orange` (approvals and work routing). - -Each colour is one of the palette names (`OBJECT_COLORS`), picked by business family, not by status: people and organisation `blue`, security and access `purple`, approvals and work routing `orange`, messaging and notifications `pink`, integrations `teal`, reference data and preferences `green`, audit `amber`. Objects nobody opens in the console (credential and token stores, queues, run logs, engine bookkeeping) keep no `color` and stay `gray`. Nothing about the objects' fields, data or API changes. diff --git a/.changeset/36592-object-colour-plugin-audit.md b/.changeset/36592-object-colour-plugin-audit.md deleted file mode 100644 index cecd3fb75ba..00000000000 --- a/.changeset/36592-object-colour-plugin-audit.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/plugin-audit': patch ---- - -feat(plugin-audit): the audit log carries a palette colour - -Clause-②: no -Metadata-protocol: none - -The console draws an object's icon as a white glyph on a square of the object's palette colour, and an object that declares no `color` is drawn in the neutral `gray`. Until now no built-in object declared one, so every platform object read the same. The audit log is now `amber` (audit). - -Each colour is one of the palette names (`OBJECT_COLORS`), picked by business family, not by status: people and organisation `blue`, security and access `purple`, approvals and work routing `orange`, messaging and notifications `pink`, integrations `teal`, reference data and preferences `green`, audit `amber`. Objects nobody opens in the console (credential and token stores, queues, run logs, engine bookkeeping) keep no `color` and stay `gray`. Nothing about the objects' fields, data or API changes. diff --git a/.changeset/36592-object-colour-plugin-security.md b/.changeset/36592-object-colour-plugin-security.md deleted file mode 100644 index d83ac71ebfa..00000000000 --- a/.changeset/36592-object-colour-plugin-security.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/plugin-security': patch ---- - -feat(plugin-security): position and permission-set assignments carry a palette colour - -Clause-②: no -Metadata-protocol: none - -The console draws an object's icon as a white glyph on a square of the object's palette colour, and an object that declares no `color` is drawn in the neutral `gray`. Until now no built-in object declared one, so every platform object read the same. User positions and user permission-set assignments are now `purple` (security and access). - -Each colour is one of the palette names (`OBJECT_COLORS`), picked by business family, not by status: people and organisation `blue`, security and access `purple`, approvals and work routing `orange`, messaging and notifications `pink`, integrations `teal`, reference data and preferences `green`, audit `amber`. Objects nobody opens in the console (credential and token stores, queues, run logs, engine bookkeeping) keep no `color` and stay `gray`. Nothing about the objects' fields, data or API changes. diff --git a/.changeset/36592-object-colour-plugin-sharing.md b/.changeset/36592-object-colour-plugin-sharing.md deleted file mode 100644 index 93a853baa37..00000000000 --- a/.changeset/36592-object-colour-plugin-sharing.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/plugin-sharing': patch ---- - -feat(plugin-sharing): sharing rules, record shares, queues and assignment rules carry a palette colour - -Clause-②: no -Metadata-protocol: none - -The console draws an object's icon as a white glyph on a square of the object's palette colour, and an object that declares no `color` is drawn in the neutral `gray`. Until now no built-in object declared one, so every platform object read the same. Sharing rules and record shares are now `purple` (security and access); queues, queue members and assignment rules `orange` (approvals and work routing). - -Each colour is one of the palette names (`OBJECT_COLORS`), picked by business family, not by status: people and organisation `blue`, security and access `purple`, approvals and work routing `orange`, messaging and notifications `pink`, integrations `teal`, reference data and preferences `green`, audit `amber`. Objects nobody opens in the console (credential and token stores, queues, run logs, engine bookkeeping) keep no `color` and stay `gray`. Nothing about the objects' fields, data or API changes. diff --git a/.changeset/36592-object-colour-plugin-webhooks.md b/.changeset/36592-object-colour-plugin-webhooks.md deleted file mode 100644 index 71c30aa31a8..00000000000 --- a/.changeset/36592-object-colour-plugin-webhooks.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/plugin-webhooks': patch ---- - -feat(plugin-webhooks): webhooks and HTTP deliveries carry a palette colour - -Clause-②: no -Metadata-protocol: none - -The console draws an object's icon as a white glyph on a square of the object's palette colour, and an object that declares no `color` is drawn in the neutral `gray`. Until now no built-in object declared one, so every platform object read the same. Webhooks and their HTTP deliveries are now `teal` (integrations). - -Each colour is one of the palette names (`OBJECT_COLORS`), picked by business family, not by status: people and organisation `blue`, security and access `purple`, approvals and work routing `orange`, messaging and notifications `pink`, integrations `teal`, reference data and preferences `green`, audit `amber`. Objects nobody opens in the console (credential and token stores, queues, run logs, engine bookkeeping) keep no `color` and stay `gray`. Nothing about the objects' fields, data or API changes. diff --git a/.changeset/36592-object-colour-service-messaging.md b/.changeset/36592-object-colour-service-messaging.md deleted file mode 100644 index 0a86d75ad30..00000000000 --- a/.changeset/36592-object-colour-service-messaging.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/service-messaging': patch ---- - -feat(service-messaging): inbox messages, notification preferences and templates carry a palette colour - -Clause-②: no -Metadata-protocol: none - -The console draws an object's icon as a white glyph on a square of the object's palette colour, and an object that declares no `color` is drawn in the neutral `gray`. Until now no built-in object declared one, so every platform object read the same. Inbox messages, notification preferences and notification templates are now `pink` (messaging and notifications). - -Each colour is one of the palette names (`OBJECT_COLORS`), picked by business family, not by status: people and organisation `blue`, security and access `purple`, approvals and work routing `orange`, messaging and notifications `pink`, integrations `teal`, reference data and preferences `green`, audit `amber`. Objects nobody opens in the console (credential and token stores, queues, run logs, engine bookkeeping) keep no `color` and stay `gray`. Nothing about the objects' fields, data or API changes. diff --git a/.changeset/36593-all-empty-hidden-group-reveal.md b/.changeset/36593-all-empty-hidden-group-reveal.md deleted file mode 100644 index d7784867689..00000000000 --- a/.changeset/36593-all-empty-hidden-group-reveal.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@objectstack/spec': minor -'@object-ui/plugin-detail': minor -'@object-ui/types': minor ---- - -fix(record-page): a field group whose fields are all empty is counted and revealed by "Show N empty fields" - -Clause-②: no -Metadata-protocol: semantic - -On an object's default record page, a field group the object declares (`fieldGroups`) no longer disappears for good when every one of its fields is empty. Before, read mode drew nothing for such a group, the field list's closing "Show N empty fields" row left its fields out of the count, and pressing the row did not draw them; they appeared only in edit mode. Now the row counts them, and pressing it draws the group in its place, heading and fields. With the row not pressed the page looks as before: an all-empty group draws nothing, not even its heading. - -What changed is the meaning of a `record:details` section's `hideEmpty` in read mode: it now hides an all-empty section only while the reader hides empty fields. This holds for an authored `hideEmpty: true` and for the renderer default (an omitted `hideEmpty`), which the default page's declared groups carry. When the reader shows empty fields, through the field list's row or the per-object choice a section's own "Show N empty fields" toggle writes, the section draws like any kept all-empty section. A print page has no toggle and keeps the section hidden. Edit mode is unchanged and still draws every field as an input. A group with at least one value draws exactly as before. An authored `hideEmpty: true` on a `detail-view` section gives way to the reader in the same way: it draws once the reader's remembered per-object choice is to show empty fields. Outside the field list, with no remembered choice (no host preference store, or no object name), the section stays hidden as before. This supersedes the line in the pending `36147-record-field-list` changeset that says an authored `hideEmpty` group "stays hidden and is not counted": on the record page's field list such a group is now counted by the one "Show N empty fields" row and drawn when the reader shows empty fields. - -The accepted keys and values are unchanged: `hideEmpty` is still an optional boolean. Its `describe()` in `@objectstack/spec`, the `DetailViewSection` and `record:details` section docs and the `views.zod` describe in `@object-ui/types`, and the `record:details` and `detail-section` input descriptions in `@object-ui/plugin-detail` state the new reading. diff --git a/.changeset/36595-placed-title-save-door.md b/.changeset/36595-placed-title-save-door.md deleted file mode 100644 index eeae4180056..00000000000 --- a/.changeset/36595-placed-title-save-door.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@objectstack/metadata-protocol': patch -'@objectstack/spec': patch ---- - -fix(metadata-protocol): a tab a code package places, or a field it adds, is saved in its source text from a translated read - -Clause-②: no -Metadata-protocol: none - -The `/meta` read of an object serves a related-list tab that another installed code package places into the object's `relatedLists` (its `place`), and a field such a package adds, translated for the caller's language. When the object has a stored customization row saved before that package was installed, the row carries no copy of either. A save of that translated read in a language other than the source (the whole body sent back through `PUT /meta/object/NAME`) then had nothing to compare them with, so the translation was stored as the tab title or the field label, and every other language read it from then on. - -The save door now compares them with the packaged definition as a last resort: a tab whose `list` the owning package does not name, or a field the owning package does not declare, that the stored row does not declare at all, is compared with what the packaged definition carries, and its translation is stored as that source text. The save answer names each such slot in `advisories` (`translated-label-echo`), as it does for every other restored label. A title or label the stored row does declare is never compared with the packaged definition, so a customer's own rename keeps its text, even when it equals some language's catalog entry. A tab or field the owning package declares and the stored row dropped is left as the body carries it. - -Console and Studio editors already save the stored document rather than the translated read, so they never reached this; a client that saved the translated read back did. - -`TranslateDocumentOptions.packagedBase` now says that an object's packaged definition carries the tabs a code package places, and that a placement is judged on the owning package there but on the customization row by the served object: where only a customization row declares `relatedLists`, the placed tab has no packaged counterpart and the deployment catalog does not translate its title. diff --git a/.changeset/36596-stale-default-not-null.md b/.changeset/36596-stale-default-not-null.md deleted file mode 100644 index 98e69a28b10..00000000000 --- a/.changeset/36596-stale-default-not-null.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/driver-sql': patch ---- - -fix(driver-sql): removing a field's default stores NULL on MySQL 8, and never leaves a NOT NULL column refusing writes - -Clause-②: no -Metadata-protocol: none - -#36245 made schema sync drop a column DEFAULT the field no longer declares. On MySQL 8 the drop left the column with no default at all, so an insert that omitted the field was refused ("Field … doesn't have a default value") where Postgres and SQLite store NULL. On a nullable column MySQL now sets the default to NULL instead, so an unset insert stores NULL on all three databases. - -On a NOT NULL column the drop no longer travels alone, because the database would then refuse every insert that omits the field. When the field does not hold the column NOT NULL (no `storage.notNull` and not `required`, or `storage: { notNull: false }` in words), the drop is reported together with relaxing the column, both `needs_confirm`: `os migrate apply` applies them, and so do the publish of the object and the managed install of its package when the field declares `storage: { notNull: false }`. Afterwards an unset insert stores NULL. Dev auto-reconcile applies neither, as before for a relax. When the field still holds the column NOT NULL (`storage: { notNull: true }` or `required`), the column is left alone and the stale default is reported as `destructive`, which no automatic path applies. No metadata key, value or default changes. diff --git a/.changeset/36601-published-layer-version-pin.md b/.changeset/36601-published-layer-version-pin.md deleted file mode 100644 index 9d6f583475c..00000000000 --- a/.changeset/36601-published-layer-version-pin.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/metadata-protocol': patch -'@objectstack/rest': patch -'@objectstack/runtime': patch -'@object-ui/data-objectstack': patch -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -fix(metadata): two Studio Saves over one published item are no longer last-writer-wins - -Clause-②: yes (widening) — two new optional members join what the API accepts and answers: `PublishMetaItemRequestSchema.parentVersion` (the `If-Match` / `If-None-Match: *` pin on `POST /meta/:type/:name/publish`) and `GetMetaItemLayeredResponseSchema.overlayVersion` (served on `GET /meta/:type/:name/layers`); nothing is removed or narrowed, and a publish that names no version behaves as before -Metadata-protocol: added - -A Studio Save writes the item's draft and then publishes that one item, so it leaves no draft behind. Two admins who opened the same object with no pending draft both asserted "no draft" on their draft save, and the later Save published over the earlier one without a word: the published layer served no version a Save could pin. - -- `GET /meta/:type/:name/layers` now answers `overlayVersion`: the version token of the stored active row at the read's address (`?package=`), the same keyed token the plain uncached read serves as `version` and a publish receipt serves as `version`; `null` when no active row is stored there. -- `POST /meta/:type/:name/publish` takes that token as `If-Match` (or `If-None-Match: *`, "no active row here"). A token that is not the current active row's is refused `409 METADATA_CONFLICT` with the current token as `currentVersion`, and nothing is promoted: the draft stays pending. The headers are read as the save door reads them, so `If-Match` beside `If-None-Match`, or an `If-None-Match` other than `*`, is refused `400 VALIDATION_ERROR`. A publish with neither header is unpinned, as before. The pin is checked by the store's own lock on the promoting write, not by a separate earlier read. -- `MetadataClient.publish` (`@object-ui/data-objectstack`) takes `ifMatch` / `ifNoneMatch`, sent as those headers. -- Studio's object page pins its Save's publish to the published row it was loaded at. When another editor published since, the Save shows the reload-or-overwrite dialog the draft conflict shows, worded for a live change: reload takes back the draft the Save wrote and re-reads the live object, overwrite (after a confirmation) publishes over the version the refusal names, and keep editing leaves the edits on the page, unsaved. New locale keys in the studio catalogue (en, zh): `engine.draftConflict.publishedTitle`, `engine.draftConflict.publishedDescription`, `engine.draftConflict.publishedOverwriteTitle`, `engine.draftConflict.publishedOverwriteDescription`. - -The two members enter the authorable-surface ratchet (`api/GetMetaItemLayeredResponse:overlayVersion`, `api/PublishMetaItemRequest:parentVersion`), so `@objectstack/spec` takes `minor`; the other packages stay `patch`. - -Nothing to migrate: a client that sends no version is unaffected. diff --git a/.changeset/36608-lazy-field-widgets-recover.md b/.changeset/36608-lazy-field-widgets-recover.md deleted file mode 100644 index a73d2b72917..00000000000 --- a/.changeset/36608-lazy-field-widgets-recover.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/fields': patch ---- - -fix(fields): a lazily loaded field widget whose chunk failed to load once loads again on its next mount, with no page reload - -Clause-②: no -Metadata-protocol: none - -The date and datetime pickers, the rich-content editor and read face, the filter-condition cell, the image field's crop dialog and every widget reached through `getLazyFieldWidget` or `registerField` were `React.lazy` components. A lazy component keeps its first import outcome, a rejection included, so after one failed chunk load (a deploy that replaced the chunk, a dropped connection) the widget stayed broken until the page was reloaded. They now load through one shared wrapper: loading and loaded behave as before (the host's `Suspense` fallback shows while the chunk loads), a failed load still reaches the nearest error boundary, and the next mount (an error boundary's reset, a reopened form, a revisited page) asks for the chunk again. The mounted widget that saw the failure does not retry by itself, so an unreachable chunk is not requested in a loop. diff --git a/.changeset/36610-avatar-image-object-cover.md b/.changeset/36610-avatar-image-object-cover.md deleted file mode 100644 index 9c074017a95..00000000000 --- a/.changeset/36610-avatar-image-object-cover.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@object-ui/components': patch -'@object-ui/plugin-detail': patch -'@object-ui/app-shell': patch ---- - -fix(components): avatar pictures keep their proportions instead of being stretched to the circle - -Clause-②: no -Metadata-protocol: none - -A user photo or organization logo that is not square was squashed or stretched to fit the round avatar, because the shared `AvatarImage` set no `object-fit` and the browser default (`fill`) scales each axis on its own. It showed in the account menu, the members and organizations pages, user and lookup fields, kanban card owners, the history timeline and the chatbot. - -`AvatarImage` now draws its picture with `object-cover`: it fills the circle, keeps its proportions and crops the overflow, as common avatar components do. A caller that wants a logo-style fit still passes `object-contain`, which wins over the default. The comment author avatar and the organization settings logo dropped their local `object-cover`, which the default now covers. diff --git a/.changeset/36611-skills-wizard-routing-sections.md b/.changeset/36611-skills-wizard-routing-sections.md deleted file mode 100644 index 564401c91ce..00000000000 --- a/.changeset/36611-skills-wizard-routing-sections.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -docs(skills): the skills index routes a stepped single-object form to a named wizard form an action opens, and the UI skill's `sections` ladder says New and Edit never read sections - -Clause-②: no -Metadata-protocol: none - -Two passages still taught what the Console's create and edit surfaces stopped doing. `skills/README.md`, "Cross-skill routing": a stepped form over one object that never branches is a named form view (`type: 'wizard'`) that an action of `type: 'form'` opens; an object's own New and Edit never step, because they are built from its fields and `fieldGroups`. `skills/objectstack-ui/rules/navigation.md`, "Record Presentation": the `sections` ladder now says where sections are read (a named or public form, and a page's `record:details` or form block) and that New and Edit never read them, with a link to "Form Views". The ladder's retired `pane` example is gone; a wizard's steps are the example of sections that must enumerate fields. No metadata shape changes. diff --git a/.changeset/36618-grid-multi-lookup-readonly.md b/.changeset/36618-grid-multi-lookup-readonly.md deleted file mode 100644 index 5e87e8ba008..00000000000 --- a/.changeset/36618-grid-multi-lookup-readonly.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/fields': patch ---- - -fix(fields): a multi-record lookup column in the line-item grid reads its records, not "undefined", in the read-only table and in list mode - -Clause-②: no -Metadata-protocol: none - -The line-item grid rendered its read-only lookup cell (the read-only table of a read-only record page or print page, and the list form-factor) without the column's `multiple` flag. A multi-record lookup cell's id list was therefore resolved as one id, and the cell printed "undefined". Both read-only sites now pass `multiple` from the column, as the editable cell already did, so the cell shows one badge per related record. Single-record lookup columns are unchanged. diff --git a/.changeset/36619-studio-save-waits-verdicts.md b/.changeset/36619-studio-save-waits-verdicts.md deleted file mode 100644 index 463c887eb25..00000000000 --- a/.changeset/36619-studio-save-waits-verdicts.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(studio): Save waits for an expression's check to reach the page before it sends, so a predicate that does not parse is held, not saved, on a busy machine too - -Clause-②: no -Metadata-protocol: none - -Studio's top-bar Save reads whether an edit is held (a formula, rule guard or action predicate that does not parse) once the expression checks of the last keystroke have run. It waited a fixed 50 ms past the check's delay, but an action predicate's verdict reaches the object's Save through several renders (the expression field, the condition builder, the action inspector, the actions panel, then the Data pillar), and on a busy main thread those renders came after the 50 ms: Save read the verdict from before the edit and sent the unparsable predicate. Save now also waits until every render already queued has run, so it reads the verdict of the text it is about to send. A Save pressed after the check has reported is not slower; one pressed while renders are pending waits for them. diff --git a/.changeset/36626-customizations-arrangements.md b/.changeset/36626-customizations-arrangements.md deleted file mode 100644 index 00a7cd376ec..00000000000 --- a/.changeset/36626-customizations-arrangements.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/runtime': minor ---- - -feat(runtime): `GET /packages/:id/customizations` lists the arrangements the base's `.custom` pair writes - -Clause-②: yes (widening) -Metadata-protocol: added - -An administrator who arranges an installed object's record page (reorders, retitles or hides its tabs, or arranges its field groups or actions) writes that arrangement into the base's paired `<base>.custom` package as an object extension (ADR-0146 D10). Until now the per-base customization read did not show it: its lists covered the overrides, the extension fields, validation rules and indexes, the switched-off items and other packages' contributions, so a tab arrangement was a customization nobody could see in that read. - -The read now answers a fifth list, `arrangements`, with its count: - -- **What is listed.** One `{ object, key }` entry per object the base owns and arrangement key the pair's extension of it writes: `fieldGroups`, `relatedLists` (the record page's tab list) or `actionLayout`, the keys of `CUSTOM_ARRANGEMENT_KEYS`. A key counts as written when the extension carries any value under it, an empty list included. -- **What is not.** The arrangement's content: read it back with `GET /api/v1/meta/object_extension/<object>?package=<base>.custom`. Nothing is compared with the base, which stays as its package declares it. Another package's extension, and the pair's extension of an object the base does not own, are not listed. -- **Its own kind.** An arrangement is one whole declaration of the object, not a member of one of its collections, so it is not an `extensions` entry and `counts.extensions` is unchanged. -- Ordered by object, then key in the order `fieldGroups`, `relatedLists`, `actionLayout`. - -`GetPackageCustomizationsResponseSchema` declares the member and `counts.arrangements`, strict as the rest of the answer. A client that parses the answer through the schema (`client.packages.customizations(id)` returns its type) needs this version of `@objectstack/spec`: an older schema refuses the new member. diff --git a/.changeset/36628-36611-skills-object-colour-create-forms.md b/.changeset/36628-36611-skills-object-colour-create-forms.md deleted file mode 100644 index 129a622b3a3..00000000000 --- a/.changeset/36628-36611-skills-object-colour-create-forms.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -docs(skills): the data skill picks an object's colour by business family and teaches `showOnCreate`; the automation skill routes a stepped single-object form to a named wizard form an action opens - -Clause-②: no -Metadata-protocol: none - -`skills/objectstack-data` told authors to give every object a colour and avoid repeats in one app. With nine palette names any app past nine objects must repeat one, and the platform's own objects are coloured by business family instead. The `color` row now says to group an app's objects into a few business families with one palette name each, gives the platform's families as the worked example (people `blue`, security `purple`, approvals and work `orange`, messaging `pink`, integrations `teal`, reference data and finance `green`, audit and settings `amber`), keeps `red` for an object that is an alert, and leaves an object nobody opens without one. The quick-start object example declares a `color`. - -The data skill's field rules now teach `showOnCreate: false` (a field left off every create surface, refused beside `required: true`), and its Relationships rule no longer points at the `subforms` overrides the UI skill dropped. `skills/objectstack-automation` routes a stepped form over one object that never branches to a named form view (`type: 'wizard'`) that a `type: 'form'` action opens. New text is paid for by cuts in the same files. No metadata shape changes. diff --git a/.changeset/36630-skills-action-layout.md b/.changeset/36630-skills-action-layout.md deleted file mode 100644 index 351d076e268..00000000000 --- a/.changeset/36630-skills-action-layout.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -docs(skills): objectstack-ui teaches the object's `actionLayout` - -Clause-②: no -Metadata-protocol: none - -`rules/actions.md` gains one section, "Button Order (`actionLayout`)": an arm per scope (`list`, `record`), `pinned` (at most 3 buttons, in order, `[]` pins none) and `more` (the order of the overflow menu, unnamed actions after it), which placements each arm takes and where the `record` arm is drawn (record page, side preview, phone bar, a row's menu order), the list page's `$import` / `$export` as pinned-only built-ins, that `os validate` refuses a name the arm's scope does not place, and that on an installed object only its paired `.custom` package's extension writes the key, arm by arm. Text only; one eval case exercises it. diff --git a/.changeset/36633-flow-approval-label-resolver.md b/.changeset/36633-flow-approval-label-resolver.md deleted file mode 100644 index 74636923af8..00000000000 --- a/.changeset/36633-flow-approval-label-resolver.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@object-ui/i18n': patch ---- - -Clause-②: no -Metadata-protocol: none - -The console now reads a drawn flow's approval step label (`flows.FLOW.approvals.NODE_ID.label`) through the spec's `resolveFlowApprovalStepLabel`, the resolver the server's approval reader uses, with the same resolve options it hands `translateFlow` for the flow's own label. A locale tag spelled in another case (`zh-cn` against a `zh-CN` bundle) now finds the approval label as it already found the flow label, and a locale missing the entry still answers nothing, so the drawing keeps the authored label. diff --git a/.changeset/36643-kanban-lane-picker-reference-fields.md b/.changeset/36643-kanban-lane-picker-reference-fields.md deleted file mode 100644 index 38cbe11571f..00000000000 --- a/.changeset/36643-kanban-lane-picker-reference-fields.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/plugin-list': patch ---- - -feat(plugin-list): a board's lane field picker offers lookup, user, master-detail and tree fields - -Clause-②: no -Metadata-protocol: none - -A board's 视图设置 → lane field picker now offers a single-valued lookup, user, master-detail or tree field next to the select and radio fields it already offered. Choosing one draws a lane per referenced record, titled by its name, and a drag writes the new reference: choosing the owner gives one lane per owner, and dragging a card changes its owner. A field that holds several references is still not offered, and a boolean or text field is not offered either. diff --git a/.changeset/36645-report-builder-filter.md b/.changeset/36645-report-builder-filter.md deleted file mode 100644 index dc843facda2..00000000000 --- a/.changeset/36645-report-builder-filter.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@object-ui/plugin-report': patch -'@object-ui/app-shell': patch -'@object-ui/plugin-list': patch -'@object-ui/i18n': patch ---- - -feat(console): the report builder adds 「+ Filter」 under the data source — a report filter on the bound dataset, drawn into the preview at once and kept on Save - -Clause-②: yes (widening) — a new optional `filter` slot on `ReportBuilder` (`@object-ui/plugin-report`), two exports from `@object-ui/plugin-list` (`conditionCandidatesOf`, `conditionOptionsOf`, and the `ConditionCandidateField` type), and four new `@object-ui/i18n` keys (`report.builder.source.addFilter`, `filterAdvanced`, `filterLoading`, `filterNoFields`) in all 11 locales; no spec, schema or server change -Metadata-protocol: none - -- **The filter** (`@object-ui/app-shell`): under the data source, 「+ Filter」 opens the same condition editor the dataset designer uses, over the fields of the dataset's object (their translated labels, a select's options, a lookup's record picker; hidden fields are not offered). Each condition is written into the report's `runtimeFilter`, the preview redraws with it at once, and Save keeps it; removing the last condition removes the key. Switching the data source clears the filter. -- **The fields offered** leave out virtual (formula) fields: the dataset door refuses a filter on one, so a report filtered on it could be saved and then fail for every viewer. -- **A filter with `$and` beside other conditions** (`{ $and: [...], amount: {...} }`, or with `$not`) is no longer read as editable rows by the shared filter bridge, so neither the report builder nor the dataset designer opens it where the next edit would drop the conditions beside the `$and`; it keeps the panel / source editor, unchanged. -- **Which reports open in the builder:** a dataset report with a saved filter now opens in the builder when its filter is one the builder can edit (field conditions joined by AND); a filter it cannot edit (an OR, a nested group, two operators on one field) keeps the report inspector panel, as before. A filter that turns out not to be editable once the fields are read is shown as kept and saved unchanged. diff --git a/.changeset/36645-report-compare-previous-period.md b/.changeset/36645-report-compare-previous-period.md deleted file mode 100644 index 27fac3dd2dc..00000000000 --- a/.changeset/36645-report-compare-previous-period.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@object-ui/plugin-report': patch -'@object-ui/i18n': patch ---- - -feat(report): 「Compare with previous period」 beside a report's period chip — the chart draws the earlier window beside the current one - -Clause-②: yes (widening) — one new `@object-ui/i18n` key, `report.dateRange.comparePrevious`, in all 11 locales; no export, spec key, schema or server change -Metadata-protocol: none - -- **The switch**: a report that declares `dateRange` now shows 「Compare with previous period」 next to its period chip when its chart can draw a comparison: bar, column, horizontal bar, line or area over a category axis, or a single number. It is not offered on a `seriesBy` split, nor on a chart whose x axis is the window's own date dimension, where the earlier window's date buckets would not line up with the current ones. Like the period pick it is the viewer's and is not saved into the report. It is off, and cannot be turned on, while the period is All time or a custom range missing an end. -- **What it asks for**: the chart's dataset query carries the contract's `compareTo: { kind: 'previousPeriod', dimension }`, on the same dimension and window the period chip already sends. The chart is compared with the same-length window just before the current one (the contract's `previousPeriod`). The table beside the chart is not asked for a comparison. -- **What it draws**: a bar or line chart gets one more series, the measure's earlier window, labelled 「<measure> · vs previous period」 and drawn muted by the chart's existing `comparison` styling; a single number shows the previous period's value and the change in percent under it. A click on an earlier-window mark opens no record list, the dashboard's rule for the same series. A comparison the server refuses is shown where the chart was, instead of the chart disappearing. diff --git a/.changeset/36647-artifact-unmounted-plugins.md b/.changeset/36647-artifact-unmounted-plugins.md deleted file mode 100644 index 771aaaeb10d..00000000000 --- a/.changeset/36647-artifact-unmounted-plugins.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@objectstack/runtime': patch ---- - -fix(runtime): an artifact boot names every code plugin of the app that it does not run - -Clause-②: no -Metadata-protocol: none - -A compiled artifact carries an app's metadata and hook handlers, not its code plugins: `os build` writes each entry of the stack's `plugins` as a plain descriptor (`{ name, version, dependencies, options }`), and the runtime module beside the JSON exports `functions` only. So a boot from the artifact (`OS_ARTIFACT_URL`, the composed hosted boot, `os start` on a built app) runs none of them. That is the envelope-key rule: an artifact carries metadata, a host assembles plugins. It used to happen in silence, and every service those plugins register was simply absent, so whatever depended on them failed later and somewhere else. - -The artifact boot now says so once, at `warn`, when the app's `AppPlugin` starts: `[AppPlugin] app 'APP_ID' lists N plugin(s) that are not running on this kernel: 'PLUGIN_NAME', …`, with the remedy (boot the app from its `objectstack.config.ts`, or from a host config that loads the artifact and lists the plugins in its own `plugins`, or package them with `os plugin build` and `os plugin install`). The structured fields are `{ appId, plugins }`. Each listed plugin is judged by name against the kernel's own plugin table, so a host that assembles the app's plugins itself hears nothing about the ones it runs. A package-specifier string entry is not judged: the name its plugin registers under is not in the specifier. - -Only the artifact door judges: the `AppPlugin` that `createStandaloneStack` builds over the artifact it loaded (the one composed with `securityMetadataRegistrar: 'artifact-door'`). A config boot's `AppPlugin` does not, because its host materializes the stack's `plugins` itself. No option, export or artifact field is added, and nothing else changes: no plugin is mounted, refused or reordered, and the boot does not fail. diff --git a/.changeset/36648-studio-edit-after-save-kept.md b/.changeset/36648-studio-edit-after-save-kept.md deleted file mode 100644 index 79ea1b38d47..00000000000 --- a/.changeset/36648-studio-edit-after-save-kept.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(studio): an edit typed right as a Save ends is kept, not replaced by the Save's re-read of the object - -Clause-②: no -Metadata-protocol: none - -A Save in the Data pillar makes the object live, and the object is read again from the server once the Save has ended, so the page shows what the server holds. An edit made while that read is out was already kept. An edit made in the moment between the Save ending and the read starting was not: the page marked the object unchanged as the read started, the read then replaced the object with the server's copy, and the edit and the top bar's Save disappeared with it. That edit is now kept the same way, and its Save sends it. diff --git a/.changeset/36650-mcp-search-knowledge.md b/.changeset/36650-mcp-search-knowledge.md deleted file mode 100644 index 87c6d52f680..00000000000 --- a/.changeset/36650-mcp-search-knowledge.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -'@objectstack/service-knowledge': patch -'@objectstack/mcp': patch -'@objectstack/runtime': patch -'@objectstack/spec': patch -'@objectstack/lint': patch ---- - -feat(mcp,service-knowledge): the MCP door serves `search_knowledge`, and a skill MCP withholds is no longer withheld in silence - -Clause-②: yes -Metadata-protocol: none - -**`search_knowledge` over MCP.** An app that mounts the knowledge service (`KnowledgeServicePlugin`) now has its knowledge sources searchable from any MCP client: `tools/list` lists `search_knowledge` wherever the kernel holds a `knowledge` service and the connection's grant reaches the read family (`data:read`, or an API key or session, which carry no OAuth grant). Before, no MCP connection served a knowledge tool, so a BYO-AI client could not reach an app's knowledge base at all, and every skill whose `tools` named `search_knowledge` was dropped from `prompts/list`. - -- **One definition, one executor (ADR-0149 D2).** `@objectstack/service-knowledge` exports the tool's `AIToolDefinition` (`getKnowledgeToolDefinitions`) and its executor (`createKnowledgeTools`, also `KnowledgeService.knowledgeTools()`). The MCP door registers the definition as the service hands it over, on HTTP and on stdio, and holds no copy of its description or argument schema. Arguments: `query` (required), `sourceIds` (at least one id; omit it to search every source, and an empty list is refused `VALIDATION_ERROR` rather than answered with no passage), `topK` (1 to 20, default 5); any other key is refused before the search runs. -- **As the caller.** Each call runs with the caller's execution context, and the knowledge service re-checks every passage indexed from a record against the caller's row-level security; on an OAuth connection that is the delegating person's own reach. -- **Only `aiExposed` sources.** The tool searches only the sources whose `aiExposed` is not `false`, and refuses a `sourceIds` entry naming any other source with `NOT_FOUND` and the sentence an unknown id gets, so an agent never learns a withheld source exists. `IKnowledgeService.search` itself is unchanged: it still searches a source its caller names explicitly, because it also serves platform callers that are not agents. -- `MCP_DOOR_TOOL_NAMES` (`@objectstack/spec/system`) lists `search_knowledge`, so `os lint` resolves it for a skill offered over MCP, as it already did through the platform registry. - -**A withheld skill is said, twice.** - -- **Authoring time.** The `ai-skill-tool-unresolved` rule gains a verdict for a skill MCP would offer as a prompt (`instructions`, not `mcpPrompt: false`, not `active: false`) whose `tools` names one of the `ask` product's data tools no MCP connection serves (`aggregate_data`, `query_data`, `visualize_data`): the name resolves, but MCP withholds the skill from every `prompts/list`, and the warning names the tool. Fix: bind tools both doors serve, or set `mcpPrompt: false` on a skill written for the in-product agents. -- **Runtime.** On the HTTP door, each `prompts/list` that withholds a skill logs one `debug` line naming the skill and each bound tool the connection does not serve. diff --git a/.changeset/36659-related-tab-catalog-whole-row.md b/.changeset/36659-related-tab-catalog-whole-row.md deleted file mode 100644 index 72f4e36f510..00000000000 --- a/.changeset/36659-related-tab-catalog-whole-row.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@object-ui/plugin-detail': patch ---- - -fix(plugin-detail): a related tab's 「+ 添加」 no longer reads a row's own party as its source catalog - -Clause-②: no -Metadata-protocol: none - -On a record page's related tab, a `master_detail` child whose one other required lookup was not a catalog opened a picker of that lookup's object anyway. An account's 合同 (contracts) tab listed every account's contacts, unfiltered, because a contract requires its primary contact; a pick would have created a contract from a contact. - -A required lookup now counts as the child's source catalog only when a pick makes a whole row: - -- its candidates are the same for every row — no `dependsOn` and no `lookupFilters` comparand reading `$record` (a contact scoped to the contract's account is a party of that contract, not a catalog); -- every other required field of the child is filled without a person: a non-null `defaultValue`, a select option marked `default`, `readonly`, or a computed type (formula, summary, rollup, autonumber). - -Otherwise 「+ 添加」 creates a new row directly, as on a master-detail tab with no catalog. A line under a header whose product is required and whose quantity defaults (quote and opportunity lines) keeps its product picker. diff --git a/.changeset/36678-currency-symbol-inset.md b/.changeset/36678-currency-symbol-inset.md deleted file mode 100644 index 5b73dce6bdc..00000000000 --- a/.changeset/36678-currency-symbol-inset.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/fields': patch ---- - -fix(fields): a currency field's symbol no longer covers the first digits of the amount - -Clause-②: no -Metadata-protocol: none - -The edit form's currency input reserved a fixed left inset sized for `$`, and the line-item grid's cell editor did the same. The symbol comes from `Intl` per currency and display locale, so wider symbols (`US$` and `HK$` under zh-CN, `CA$` and `CHF` under en-US) were drawn over the amount: `150000` read as `US$50000`. The input's inset now follows the symbol's rendered width; a `$`-wide symbol keeps exactly the inset it had. diff --git a/.changeset/36692-report-editing-own-entry.md b/.changeset/36692-report-editing-own-entry.md deleted file mode 100644 index 8b9655b5900..00000000000 --- a/.changeset/36692-report-editing-own-entry.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -fix(console): report editing is its own entry, and report and dashboard editing exclude the design mode both ways - -Clause-②: no -Metadata-protocol: none - -The console's design mode no longer hosts the report builder, so the screen shows one Save/Cancel set at a time: - -- The design mode's 「Add menu item → Reports」 lists only reports that exist; its 「New report…」 row is gone, with the hand-off that let the builder save into the menu. A new report is made from the reports index, then linked from the design mode. -- The reports index offers 「New report」 in its header, opening the report builder. It is offered to workspace admins, as the builder is, and not while the design mode is on. -- While the design mode is on, a dashboard's and a report's own 「Edit」 are not offered. -- While a dashboard or report editor is open, 「Design layout」 refuses with a prompt to save or cancel those changes first, so the design mode's 「Cancel」 can no longer end the mode under an editor left open. -- The report builder's own address reached with the design mode already on (the browser's Back) shows a prompt to finish designing the layout instead of the builder; the builder opens there once the mode is saved or cancelled. - -The design mode's 「New dashboard…」 is unchanged. In `@object-ui/i18n`, `designMode.menu.newReport`, `designMode.menu.newReportLeft` and `report.builder.addsToMenu` are removed from every pack, and `designMode.editorOpen`, `console.reportIndex.newReport`, `report.builder.designModeOnTitle` and `report.builder.designModeOn` are added. Nothing to migrate. diff --git a/.changeset/36693-activity-stream-tab-follows-sources.md b/.changeset/36693-activity-stream-tab-follows-sources.md deleted file mode 100644 index 67492bc225b..00000000000 --- a/.changeset/36693-activity-stream-tab-follows-sources.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/plugin-detail': patch ---- - -fix(record-page): the default record page draws no empty 动态 (Activity stream) tab when the object switches off all three of its sources - -Clause-②: no -Metadata-protocol: none - -The activity stream merges three sources, each switched by the object: the discussion (`enable.feeds`), activities (`enable.activities`) and field changes (`enable.trackHistory`). An object that turned off all three still showed a 动态 tab on every record page, with nothing in it. The synthesized default page now leaves that tab out, the same way the Attachments tab follows `enable.files`: with `enable: { feeds: false, activities: false }` and `trackHistory` not `true`, `buildDefaultPageSchema` / `buildDefaultTabs` emit no stream tab and no `record:activity` node, and the wide layout draws no 动态 column. With any one source on, the tab is drawn as before. A `relatedLists` entry `'sys_activity'` on such an object does not bring the tab back. An authored page, or an authored `discussion` slot, still draws what its author placed. The Approvals tab is unchanged: it is drawn only when the record has approval requests. diff --git a/.changeset/36701-notification-settings-follow-organization.md b/.changeset/36701-notification-settings-follow-organization.md deleted file mode 100644 index 0c1599993be..00000000000 --- a/.changeset/36701-notification-settings-follow-organization.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -feat(app-shell): Notification Settings offers "Follow organization setting" for digest and quiet hours - -Clause-②: no -Metadata-protocol: none - -Once a member has saved a digest or quiet hours of their own, the Notification Settings page now offers a "Follow organization setting" action beside each one. It empties that field on the member's own general preference (the same empty the Setup grid writes), so the organization's default decides again, including any later change to it. The page then shows the value in force as the organization default. The action appears only where the field is the member's own choice; where there is nothing to clear, it is not drawn. - -The member's own general preference itself stays, and so does its on/off; per-topic and per-channel choices are not reset by this action. - -New strings `notificationSettings.followOrganization` and `notificationSettings.followOrganizationFor` in all eleven built-in locales. diff --git a/.changeset/36707-related-tab-lookup-picker-scope.md b/.changeset/36707-related-tab-lookup-picker-scope.md deleted file mode 100644 index f3242a2ac10..00000000000 --- a/.changeset/36707-related-tab-lookup-picker-scope.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/plugin-detail': patch ---- - -fix(plugin-detail): a related tab's 「+ 添加」 picker keeps to the parent's own records and names them by their name field - -Clause-②: no -Metadata-protocol: none - -On a record page's related tab whose child is linked by a plain `lookup`, the derived 「+ 添加」 picker listed the unlinked children of every parent's scope. An opportunity's 合同 (contracts) tab listed unlinked contracts of every account, although a contract's opportunity lookup `dependsOn` the contract's account; a pick linked another customer's contract to the opportunity. The picker now applies that lookup's `dependsOn` from the parent record: each named child field must equal the parent's value (here, only contracts of the opportunity's own account). When the parent has no value for it, or the lookup's `lookupFilters` compare with `$record`, the tab offers no picker and 「+ 添加」 creates a record directly. - -The picker's label column is the picked object's name field (its declared `nameField`, else the derived title field) when the add names no `labelField`, under that field's label. It was a hard-coded `name`: on contracts, whose name field is `contract_number`, the first column was an empty 「NAME」. diff --git a/.changeset/36709-action-page-contract-reject-reason.md b/.changeset/36709-action-page-contract-reject-reason.md deleted file mode 100644 index d6f93021fe2..00000000000 --- a/.changeset/36709-action-page-contract-reject-reason.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@objectstack/spec': patch ---- - -docs(spec): the `IApprovalService.handleActionPage` contract names the reason a reject link's POST now carries - -Clause-②: no -Metadata-protocol: none - -Documentation only; no type, schema or export changes. The docblock shipped in `@objectstack/spec`'s contract types now matches what the ADR-0043 action page does since the reject-reason change in `@objectstack/plugin-approvals`: - -- The confirm page for a reject link carries a required reason field, and the `POST` reads it from the form's `comment` field beside `token` (the last of each when a field repeats). -- A reject whose `comment` is missing, blank or not a string is answered the same confirm page again with status `400` (redemption outcome `reason_required`): nothing is decided and the token is not consumed. A dead link is still told on its result page with `200`. -- An approve link reads no `comment` and records the fixed comment "Via action link". diff --git a/.changeset/36713-skills-transfer-behavior.md b/.changeset/36713-skills-transfer-behavior.md deleted file mode 100644 index bca08b2a97d..00000000000 --- a/.changeset/36713-skills-transfer-behavior.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -docs(skills): the data skill teaches `transferBehavior`, the Change Owner cascade of a relationship - -Clause-②: no -Metadata-protocol: none - -objectstack-data's `rules/relationships.md`, Delete Behaviors: one paragraph says what `transferBehavior: 'cascade'` on a child's `lookup` / `master_detail` does (the parent's Change Owner dialog offers to move the child rows its previous owner owns too), when to declare it, that the default is `'none'`, and where parse refuses it: the key on any other type, and `cascade` on a `sys_*` reference, on `multiple: true`, and on a child that does not offer Change Owner itself, such as a `controlled_by_parent` detail. `rules/field-types.md` lists the key on the `lookup` and `master_detail` rows. `evals/objects-fields-relationships.json` gains one case. The new text is paid for by removing restatement in the same files: in relationships.md the two "Incorrect" code blocks become one sentence each, and two `required: false` lines and five comment or prose repeats go; in field-types.md the autonumber example that the Autonumber section already gives and two "embedded" repeats go. diff --git a/.changeset/36716-report-save-custom-overlay.md b/.changeset/36716-report-save-custom-overlay.md deleted file mode 100644 index 10d0c3ec117..00000000000 --- a/.changeset/36716-report-save-custom-overlay.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -fix(console): saving a report an installed app ships, from the report builder, writes the app's `.custom` customization package instead of failing with 403 - -Clause-②: no -Metadata-protocol: none - -The report builder (and the report inspector panel beside a joined or pre-dataset report) wrote every save naming no package, so an edit to a report a read-only package ships addressed that package and the metadata write door refused it: the admin's change was lost at Save. The save now lands where the in-page dashboard editor's does (ADR-0146 D2, D3, D11): in the package the report is served from when that package is writable, else in the app's customization package `<base>.custom`, which the ensure door creates on the first save, with the report declaring the override of its base (`overrides: { package, basedOn }`), as Studio's Customize writes it. The editor's buffer is still the layered authored read at the package the report is served from, and Save still writes and publishes in one press. - -Where such a save could not land, the editor is not opened and says why, in Studio's own sentences: the ensure door is walled for this caller, the package list names no installed version to declare the override at, or a draft of the report is already pending in the customization package (the in-page dashboard editor refuses that at open too). A report whose package is not listed, or whose package list cannot be read, is refused in its own sentence with the reason under it; a report of a writable package opened in the builder before this change even when the list could not be read. A report that names no package is saved as before. Two new Studio sentences carry those refusals in English and Chinese. diff --git a/.changeset/36718-flow-teaching-accepted-shapes.md b/.changeset/36718-flow-teaching-accepted-shapes.md deleted file mode 100644 index babbf65c6fe..00000000000 --- a/.changeset/36718-flow-teaching-accepted-shapes.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@objectstack/skills': patch -'@objectstack/spec': patch -'@objectstack/trigger-schedule': patch ---- - -docs(skills): the automation skill, the schedule trigger README and the start-node schedule refusals spell only flow shapes the publish checks accept - -Clause-②: no -Metadata-protocol: none - -Ten flow checks of `os validate` and publish (`flow-schedule-timezone-missing`, `flow-condition-option-label`, `flow-node-write-unknown-option`, `flow-subflow-unknown` and the rest) landed without the text that teaches flows. Three of them are warnings and refuse nothing: `flow-schedule-timezone-missing`, `flow-subflow-unknown` (run by the CLI only) and `flow-create-update-pair`. Wording only; no schema, rule or reader changes. - -- `@objectstack/spec`: the three refusals of a start node's `config.schedule` (an empty string, a typed schedule the published schema refuses, a value the readers read nothing from) now offer `{ type: 'cron', expression: '0 8 * * *', timezone: 'UTC' }` as the cron to write. They no longer offer a bare cron string or a cron object with no `timezone`, which `os validate` warns on. The typed-alias hint names `{ type: 'cron', expression: '…', timezone: 'UTC' }`. What is refused is unchanged. -- `objectstack-automation` skill: recipe 1's nightly cron states `timezone: 'UTC'`; the schedule example's comment says a cron with no `timezone` (a bare string) runs in UTC and warns, where it said a bare cron string also works; the `subflow` row says `os validate` warns `flow-subflow-unknown` on any name the stack does not hold, a correct call to another package's flow included, where it said `os validate` passes; the select-label rule says a start condition or a `fields` write that uses an option's label is refused at publish where the options are inline, where it said the flow stages clean, and says a label in a `filter` or an edge condition is never checked and silently matches nothing, where it said a `filter` fails the run. Eval 1's expected answer states the cron's `timezone`, and eval 20's states that warning. No skill file passes its token ceiling: `SKILL.md` gains one line, paid for by shorter wording and shorter table separator rows in the same file, and two node labels in recipe 1 are shortened to pay for the `timezone` key. -- `@objectstack/trigger-schedule` README: the time-relative example's cron states `timezone: 'UTC'`, and the schedule-shapes table is followed by the UTC reading and the warning. diff --git a/.changeset/36725-designer-hosts-served-rows.md b/.changeset/36725-designer-hosts-served-rows.md deleted file mode 100644 index 833aa76c6ac..00000000000 --- a/.changeset/36725-designer-hosts-served-rows.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(studio): the hook designer and a global action opened from an app nav leaf draw refusals and texts with their served rows - -Clause-②: no -Metadata-protocol: none - -The served `hook` and `action` forms give `refusals` and `texts` the key-only record control (an entry is drawn under its code or key, with its own rows) and help text. Two Studio hosts did not hand that form to the designer they mount: the object's Hooks view gave the hook designer the schema only, so both keys read as the raw JSON editor in "More fields"; and the Interfaces rail, opening a global action from an app nav leaf, gave the action designer neither schema nor form, so it drew no "More fields" and neither row at all. - -The hook designer now takes the served form (`serverForm`) and draws the two rows from it in its Function section, beside the handler body, the way the action designer does; the Hooks view passes the served `hook` form, and the Interfaces rail passes the served `action` schema and form to the action designer. A host with no served form keeps both keys in "More fields", as before. Nothing about what a hook or an action stores, or what the server accepts, changes. diff --git a/.changeset/36726-studio-pinned-publish.md b/.changeset/36726-studio-pinned-publish.md deleted file mode 100644 index 008194f244e..00000000000 --- a/.changeset/36726-studio-pinned-publish.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(studio): the object extension, hook, action and flow Saves no longer publish over another admin's live change - -Clause-②: no -Metadata-protocol: none - -Studio's top-bar Save writes an item's draft and then publishes that one item. The object page pinned that publish to the published row it was loaded at, but the other editors that save this way did not: two admins who opened the same object extension, hook, pair action or flow each passed the draft check, and the later Save replaced the earlier one's live change without a word. - -Each of those editors now reads the published version at the address its publish writes (the `/layers` read's `overlayVersion`) where its buffer is loaded, and its Save's publish sends it as `If-Match` (`If-None-Match: *` where nothing is published there yet). When another writer published since, the Save opens the same dialog the object page shows for a live change: reload re-reads the live item, overwrite (after a confirmation) publishes over the version the refusal names, and keep editing leaves the edits on the page, unsaved. The flow's on/off switch is pinned the same way. Creating a new hook, pair action or flow publishes with `If-None-Match: *`, so a same-named item another writer published first is refused instead of replaced. No dialog wording or locale key changes. - -A reload over a draft that was pending before the Save (a copilot's) now keeps the publish pinned to the version the conflict was raised on: the reload re-reads that draft, which carries the page's edits, and the next Save is asked again instead of publishing it over the row that moved. An overwrite, a publish that lands, or a load that finds no pending draft ends that hold. This applies to the object page too. - -A server that serves no `overlayVersion` gets an unpinned publish, as before. Nothing to migrate. diff --git a/.changeset/36727-data-hooks-regex-refusal.md b/.changeset/36727-data-hooks-regex-refusal.md deleted file mode 100644 index c2e2d8c486f..00000000000 --- a/.changeset/36727-data-hooks-regex-refusal.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -Clause-②: no -Metadata-protocol: none - -`objectstack-data`'s hook reference (`references/data-hooks.md`) no longer says every regex pattern the checking engine refuses is a warning. It now says what the compile rules do: a pattern the runtime refuses too is the same `hook-body-does-not-compile` / `job-body-does-not-compile` error, and only a duplicate named capture group, a modifier group such as `(?i:a)` or a Unicode property name only the runtime knows is a warning (on a host whose Unicode tables are older than 17.0, every property name it refuses). The file stays inside its token ceiling and its line count by tightening the same paragraph: it drops the note that the finding names the hook, the `SyntaxError` and its line, and the spelled-out rename example. diff --git a/.changeset/36732-desktop-lands-in-last-app.md b/.changeset/36732-desktop-lands-in-last-app.md deleted file mode 100644 index 512202e90eb..00000000000 --- a/.changeset/36732-desktop-lands-in-last-app.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -'@object-ui/console': patch -'@object-ui/app-shell': patch -'@object-ui/auth': patch -'@object-ui/i18n': patch ---- - -feat(console): from 768 px up a sign-in lands in the last-used app, and the platform home page retires - -Clause-②: yes (widening) -Metadata-protocol: none - -From 768 px up there is no platform home page any more. A sign-in, the SSO round trip and the old `/home` address all land the person in an app their permission sets show, in this order: the app they last had open, while it is still there for them; else the app the product declares `isDefault`; else the first app somebody put into the environment (never Setup or Studio). - -- A person with no such app at all stays on `/home`, which now draws only the no-apps empty state: 「No applications yet」, and for a viewer who may add an app the same doors the sidebar's 「Add app」 offers (build with AI, start from a template, the app marketplace). An administrator's first-run checklist stays above it. -- An administrator's first-run checklist, while it has open items, moves to the top of the Setup app's first page (the page Setup opens on). It is drawn from 768 px up only, and a phone is unchanged. -- `@object-ui/app-shell` exports `SetupFirstPageSlotProvider`, through which a host puts its element above the Setup app's first page. -- The console's Home affordances (⌘⇧H, the way back from a missing app, Studio's way out) go where the landing goes. Where the chrome cannot yet tell which apps a permission set hides (Studio, the AI pages, or before that answer arrives) they point at `/home`, which resolves the landing itself. -- The SSO sign-in's callback is the console root instead of `/home`, so it lands the same way. -- A phone is unchanged: it still lands in the last app first, and `/home` is still its app list. -- `@object-ui/app-shell` exports `resolveDesktopHomePath(apps, lastApp)`, the desktop's Home. -- `RedirectWithSplash` takes an optional `state`, so the hops from `/` and `/home` into the landing app keep what the visit carried (an old `/ai` address's Builder handoff). -- Every console locale gains `home.noAppsAddDescription`. diff --git a/.changeset/36737-design-mode-record-tabs.md b/.changeset/36737-design-mode-record-tabs.md deleted file mode 100644 index 55d4da618b4..00000000000 --- a/.changeset/36737-design-mode-record-tabs.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -fix(console): a record page's tabs are arranged in the design mode, under its one bar; a list's draft actions read Reset / Update view - -Clause-②: no -Metadata-protocol: none - -The design mode and the record page's 「Configure tabs」 each drew a purple bar with its own Cancel and Save, and the two stacked when both were open. A list's draft actions (Discard / Save) showed under the design mode's bar as a second page save. Following Twenty's grouping (the maintainer's ruling 「照 Twenty 归类」): - -- The record page's tabs are part of the design mode. While the mode is on, the tab row of a record's desktop full page is the tabs editor in place, for an administrator who may arrange that object's tabs (the same gates as before: a workspace administrator who may author metadata, the desktop full page, not a drawer or pane, not an authored page, and the customization-door wall on an installed object). The draft is staged with the mode's other changes (the app menu, the header buttons): the mode's Save writes it with them, to the object's own package (`relatedLists`, published) or, on an installed object, to the base's paired `.custom` object extension, as before; the mode's Cancel drops it. The draft stays staged while the administrator moves to another page of the app. The record's ⋯ no longer offers 「Configure tabs」, and the separate 「Configure tabs」 bar is gone. A failed save says so through the mode's own message and keeps the draft staged. -- A list's draft actions are the view's own, as Twenty's 「Reset / Update view」: they now read 「重置 / 更新视图」 (en: Reset / Update view; every bundled language pack is updated), and they stay drawn and live while the design mode is on. The Update view menu keeps 「Save to this view」 and 「Save as my view」. Where the open view cannot take the change (a view a read-only package ships, or a reader who may not write it), the button reads 「另存为我的视图」 (Save as my view), the one save its menu holds; on the phone's chip row it reads 「保存」 (Save) there, so the view switcher beside it keeps its name. - -Locale values changed in `@object-ui/i18n` (no key added or removed): `console.objectView.draft.discard` and `console.objectView.draft.save`, in all eleven bundled packs. No props or package exports change. While a record's own edit state is open, its tab row is not the tabs editor. diff --git a/.changeset/36739-org-basics-checklist-pill.md b/.changeset/36739-org-basics-checklist-pill.md deleted file mode 100644 index b3c5bfde34a..00000000000 --- a/.changeset/36739-org-basics-checklist-pill.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@object-ui/console': patch -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -feat(console): the first-run checklist asks for the organization's basics in one form, leaves the rest optional, and follows the administrator as a 「Get started n/m」 pill in the sidebar - -Clause-②: yes (widening) -Metadata-protocol: none - -The administrator's first-run checklist had five setup rows that each saved on their own (the organization's name, language and country, timezone, currency) and counted every row, so it only went away once mail, invitations and AI were set up too. Following the maintainer's ruling on objectstack#36739: - -- **One form, one save.** A single 「Organization basics」 row opens one form with the organization's name, default language, country, timezone and currency. Values the server does not hold yet are suggested from the browser, and a setting with neither a value nor a suggestion must be filled in like the name; nothing is written until Save, which renames the organization (when the name changed) and writes the four settings in one call. A refused rename or a refused setting shows on its field, as before. The row is done once the organization has a real name and all four settings are set. -- **Only the basics are required.** Mail, invitations, the built-in AI provider and connecting an outside assistant become optional rows (marked 「Optional」); they still tick themselves when the server says they are done. On the hosted profile, 「Put in your first app」 stays required. The checklist is complete, and stands aside on Home, once the required rows are done; its progress (n/m) still counts every row. -- **A pill in every app.** For the administrator only, a 「Get started n/m」 pill sits at the bottom of every app's sidebar (on the folded icon rail it keeps its icon, with the count in its accessible name and tooltip). A press opens the checklist in place in a popover; the popover's X only closes it, and 「Hide on this device」 under the list hides the pill and Home's card. On a phone, which has no resident sidebar, the pill sits after the app's menu on the app's home page. It disappears once the required rows are done, or once the administrator hides it on this device. -- **Setup's first page keeps the full list**, done rows included, even after the checklist is complete or hidden; a completed list folds to one line with 「Show list」. - -`@object-ui/app-shell` exports a product-neutral `SidebarFooterSlotProvider` (with its `SidebarFooterSlot` and `SidebarFooterSlotPlace` types; places `'sidebar' | 'phoneAppHome'`) that the console fills; the shell names no checklist. `@object-ui/i18n` replaces the per-setting checklist strings in all eleven packs. Added under `console.firstRunChecklist`: `showList`, `hideHere`, `organizationBasics.{title,todo,name,nameRequired,prefilled,save,saved}`, `pill.{label,count,aria}`. Removed from `console.firstRunChecklist` (no reader is left in the console; a consumer that indexed them reads the new keys instead): `showDoneSplit`, `confirm`, `prefilled`, `organizationName.{title,todo,action}`, `languageCountry.{title,todo,saved}`, `timezone.{title,todo,saved}`, `currency.{title,todo,saved}`. diff --git a/.changeset/36741-full-page-inbox.md b/.changeset/36741-full-page-inbox.md deleted file mode 100644 index 3ba218e18ad..00000000000 --- a/.changeset/36741-full-page-inbox.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -feat(console): the bell opens a full-page inbox from 768 px up - -Clause-②: yes (widening) -Metadata-protocol: none - -From 768 px up, the sidebar's bell no longer opens the right-hand panel: it opens the inbox page at `/apps/APP/inbox` (`/inbox/approvals`, `/inbox/activity`, with `?item=ID` for the selected row), inside the current app's shell, so it can be bookmarked and the browser's Back leaves it. A list on the left, the selected item on the right: - -- **Approvals** — the request's own page, embedded: its fields, approval progress, the applicant's note and the request's declared decision actions, with the same visibility rules and parameter dialogs. A decision moves the selection to the next request and the badge drops with it. -- **Notifications** — the record the notification is about, embedded (its comments stay on the record's full page, one «Open full record» away); opening a notification marks it read, while the row the page shows on arrival stays unread until it is opened. Repeats stay coalesced into one row by topic and title, with every occurrence listed on the right. «Unread only», «Mark all read», and «Load earlier notifications» page beyond the 20 rows the bell badges from. -- **Activity** — the record each activity row happened on. - -J / K move through the list. The inbox links a linkless arrival toast and Home's notifications column used (`sys_inbox_message?view=mine`) now open this page. The zh-Hans name of the surface is 收件箱. The phone keeps its panel, and the `global:notifications` page block keeps the panel at every width. The data, the coalescing rule, the badge count and the decision actions are unchanged. diff --git a/.changeset/36742-studio-new-flow-status-toast.md b/.changeset/36742-studio-new-flow-status-toast.md deleted file mode 100644 index 6362dda30f0..00000000000 --- a/.changeset/36742-studio-new-flow-status-toast.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -fix(studio): a flow just created in Studio reads 「已停用」 in its header, and the create toast says it is switched off - -Clause-②: no -Metadata-protocol: none - -Creating a flow in Studio publishes it at once, born switched off. The header's Status pill then read 「未发布草稿」 (Unpublished draft): it reads the engine's `/automation/_status` rows, and the create never asked for them again, so the snapshot taken before the flow existed had no row for it, which reads as never published. The create now re-reads the engine status after its publish, as Save and the on/off switch already do, so the header says 「已停用」 (Switched off) right after creation. - -The create toast had reused the Save toast, 「已保存并生效:{items}」, which promises a run the new flow will not do. It now has its own key, `engine.studio.auto.createdOff`: 「已创建:{name}(已停用,启用后才会运行)」 / "Created: {name} (switched off; it runs once you switch it on)". - -The Data pillar's first-object hint no longer ends 「…最后一次发布。」 ("publish once at the end"): objects are live on Save, and it now says each Save takes effect at once. diff --git a/.changeset/36744-permission-matrix-fold-at-floor.md b/.changeset/36744-permission-matrix-fold-at-floor.md deleted file mode 100644 index 960f7ffd543..00000000000 --- a/.changeset/36744-permission-matrix-fold-at-floor.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(studio): the permission matrix draws its flat form only where it fits, so the bulk column no longer covers 「写入范围」 - -Clause-②: no -Metadata-protocol: none - -The Studio Objects permission matrix switched to its full flat form at a 1000 px pane, but the flat table needs 1304 px. Between the two (a 1440 px window gives a 1200 px pane) the table overflowed, and the right-pinned bulk column sat over the write-scope column with nothing to show the pane scrolled sideways. - -The fold width is now the flat table's floor, 1304 px, so one number decides both. Narrower panes get the folded form (the four CRUD boxes, each row's "More permissions", and the "Bulk" menu); 1304 px and wider get the flat form, which always fits. A test pins the fold width equal to the floor. diff --git a/.changeset/36745-flow-header-meta-give-way.md b/.changeset/36745-flow-header-meta-give-way.md deleted file mode 100644 index 344a845de28..00000000000 --- a/.changeset/36745-flow-header-meta-give-way.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(studio): the flow header's meta gives way item by item instead of shrinking every item to one character - -In Studio's Automations pillar, the open flow's header shows its meta beside the title: Trigger, Status, Run as, version and, when set, On error. When the row was short of room — with the property panel open, about 80 px were left — every item shrank at once, so the row read as single characters with ellipses. - -Each item now keeps its whole text. When the row cannot hold them all, they drop from the end (On error, then version, then Run as), and hovering the row names each dropped item in full. Trigger and Status always show together: when the row cannot hold those two whole, the meta hides and the hover text names every item. Widen the row and the dropped items come back. The designer's info bar is unchanged. diff --git a/.changeset/36748-studio-new-app-door.md b/.changeset/36748-studio-new-app-door.md deleted file mode 100644 index 8068f57103d..00000000000 --- a/.changeset/36748-studio-new-app-door.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -fix(studio): 「新建自己的应用」 on the Studio landing ends with an app, a new object joins that app's menu, and an empty menu is not blamed on access - -Clause-②: yes (widening) — new keys in the published `@object-ui/i18n` packs: the studio namespace (`engine.studio.newApp.*`, `engine.studio.data.appMenu.*`) and all 11 app-shell locale packs (`empty.appMenuEmpty`, `empty.appMenuEmptyDescription`, `empty.openInStudio`). Additive only; nothing is removed or renamed. -Metadata-protocol: none - -The landing's "New app of your own" card opened the create-package dialog unchanged: it created a package and no app, and the author then had to find "Create app" in the top bar, which saved a draft that opened only after a package publish. The card now opens one "New app" dialog, worded for an app throughout (in Chinese it says 「应用」, never 「软件包」), and one confirm creates the package and its app. The app is written and published at once, like every other item a person creates in Studio, so it opens as soon as the dialog closes. A free app name (the package's namespace, else `NAMESPACE_app`) is checked before anything is written, so a taken name refuses the confirm and writes nothing. - -The Studio top bar's left end named an app only when there was one to go back to. A package with no app read "Back to app · Studio" and did not say which package was open; it now shows the package's name in that place. - -The top bar's own "Create app" button and the package dialog on the Packages page are unchanged. - -A new app's menu started empty, and nothing ever filled it: an object created later in Studio did not appear in the app, which opened on an empty screen. Studio's "New object" now adds the new object to the menu of its package's app once the object is live, when the package has exactly one app and no menu entry already opens the object. The entry is written through the design mode's menu save (a draft, then the app's publish), so a draft somebody left pending on the app is refused rather than overwritten. A refused menu save, or a failed read of the package's apps, keeps the object and says so in a warning; the menu can be edited in design mode. With several apps, which menu gets the object stays the author's choice in design mode. - -An app whose menu is empty, as stored, told an administrator to grant access in Setup. For a person who can grant access and author the app (`manage_metadata`), the screen now reads the app's stored menu: when it is empty there too, it says the app has nothing in its menu yet and opens the app's package in Studio. A stored menu with entries this person is not shown, an administrator who cannot author (the stored menu is served to them pruned, and Studio would refuse them), or a failed read keeps the access answer. diff --git a/.changeset/36750-list-view-fallback-no-layers.md b/.changeset/36750-list-view-fallback-no-layers.md deleted file mode 100644 index 8cbd90cdf76..00000000000 --- a/.changeset/36750-list-view-fallback-no-layers.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(studio): opening an object with no default list view no longer asks the server for a view that does not exist - -Clause-②: no -Metadata-protocol: none - -With no view of an object flagged default, Studio's list-view panel edits `OBJECT.default`, the name its first edit creates the view under. Until then nothing is published under that name, but the panel still read its published layer (`GET /api/v1/meta/view/OBJECT.default/layers`) on every open, and the browser logged the server's 404. The panel now skips that read when the id is the fallback: no view of the object's merged `listViews`, and none of the package's drafted list views, is held under it, read only once the shell's objects and the package's view drafts have answered. The Customize door's served-override read on a read-only base skips the same read and answers as its 404 did. What the panel shows and saves is unchanged. No props or exports change outside `@object-ui/app-shell`'s internal Studio modules. diff --git a/.changeset/36753-case-colliding-helpers.md b/.changeset/36753-case-colliding-helpers.md deleted file mode 100644 index 946f474bd30..00000000000 --- a/.changeset/36753-case-colliding-helpers.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(app-shell): the console builds on macOS again — two helper modules no longer differ from their component only by letter case - -Clause-②: no -Metadata-protocol: none - -`layout/DesignModeHeaderPins.tsx` sat beside `layout/designModeHeaderPins.ts`, and `views/RecordTabsConfig.tsx` beside `views/recordTabsConfig.ts`. On a case-insensitive file system (macOS by default) an import of the component resolved to the helper, so the app-shell type build and the console bundle failed there (`MISSING_EXPORT`, TS1149) while Linux CI stayed green. The helpers are now `designModeHeaderPinsModel.ts` and `recordTabsConfigModel.ts`, with their importers and unit-test file names updated. No behaviour changes. - -A repo-wide check, `scripts/check-case-colliding-paths.mjs`, now runs in CI through `pnpm check:gitlink-declared` and refuses two tracked entries in one directory whose names, with the last extension dropped, differ only by case. diff --git a/.changeset/36754-sso-keeps-pre-login-link.md b/.changeset/36754-sso-keeps-pre-login-link.md deleted file mode 100644 index c91ac34db95..00000000000 --- a/.changeset/36754-sso-keeps-pre-login-link.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/auth': patch ---- - -fix(auth): "Sign in with SSO" brings a signed-out person back to the link they opened - -Clause-②: no -Metadata-protocol: none - -A person who opened a record link while signed out is sent to the sign-in page, which remembers the link. Password and provider-button sign-in took them to it afterwards; signing in with SSO by work email took them to their last app instead. The SSO sign-in now comes back to the sign-in page with that link, the same way the provider buttons do, and the page then takes the person to it. Only a link inside this site is kept: a full web address or one pointing at another host is dropped, and the person lands where any sign-in does. With no link, nothing changes. diff --git a/.changeset/36758-app-menu-design-layout-and-studio.md b/.changeset/36758-app-menu-design-layout-and-studio.md deleted file mode 100644 index 6c5746a440f..00000000000 --- a/.changeset/36758-app-menu-design-layout-and-studio.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -fix(console): the app-name menu offers 「Design layout」 for the design mode and 「Edit app」 for Studio - -Clause-②: yes (widening) -Metadata-protocol: none - -The app-name menu's 「Edit app」 entered the design mode, which edits only the app's layout (its menu, header pins and page arrangement), and no desktop surface opened the app itself in Studio. The menu now has two entries under the list of apps, in one group with 「Add app」: - -- 「Design layout」 (zh 「设计布局」) turns the design mode on, on the same condition as before. The mode's bar now reads 「Design layout」 too, and so do the strings that name the mode (the leave prompt, the menu editor's notes). -- 「Edit app」 (zh 「编辑应用」) opens this app's package in Studio, on the app switcher's Studio target: an object page opens that object in the Data pillar, a dashboard, page or report its design surface. An installed (read-only) package's app reads 「View in Studio」 (zh 「在 Studio 中查看」) behind an eye instead, and opens Studio's browse-only posture. It is offered on the Studio entry's own condition: a workspace admin holding `manage_metadata`, on an app whose package Studio lists (the console's own Setup, Studio and Account apps get none). - -Two locale keys are added in every built-in pack, `topbar.designLayout` and `topbar.viewInStudio`; `topbar.editApp` keeps its words and now names the Studio entry wherever it is drawn. diff --git a/.changeset/36807-change-owner-declared-queues.md b/.changeset/36807-change-owner-declared-queues.md deleted file mode 100644 index 5adeb55cda8..00000000000 --- a/.changeset/36807-change-owner-declared-queues.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -fix(console): the Change Owner dialog's queue target offers the queues an installed app declares, not only the organization's `sys_queue` rows - -Clause-②: no -Metadata-protocol: none - -A queue can live in two places (ADR-0142 D1): a `sys_queue` row the organization authored, or a `queue` item an installed package declares. The Change Owner dialog's queue target searched `sys_queue` alone, so a declared queue could be named everywhere else (sharing-rule recipients, flow approvers) but never picked as a record's new owner. The queue target now lists the declared queues as their own choices under the `sys_queue` lookup, built by `mergeQueueCandidates`, the merge the other queue pickers use. The server resolves a queue name registry-first, so when a `sys_queue` row shares a declared queue's name, the declared queue is the one offered and the lookup leaves that row out. Either choice sends the queue's name, as before. The `sys_queue` lookup keeps its server search and paging; a declared read that fails offers no declared queue and leaves the lookup working. - -`@object-ui/i18n` adds one key, `console.changeOwner.declaredQueues`, in every locale pack. diff --git a/.changeset/36808-flow-step-label-locale.md b/.changeset/36808-flow-step-label-locale.md deleted file mode 100644 index 203284d975a..00000000000 --- a/.changeset/36808-flow-step-label-locale.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/i18n': patch ---- - -fix(i18n): a flow's node and screen step labels match the session's locale tag the way the flow label does - -Clause-②: no -Metadata-protocol: none - -The flow designer and the docs viewer's flow drawing read a node's translated label (`flows.FLOW.nodes.NODE_ID.label`) and an untitled screen's translated title (`flows.FLOW.screens.NODE_ID.title`) by the exact language key, so a `zh-cn` session missed a bundle keyed `zh-CN` and showed the authored text. They now pick the bundle row with the spec's `resolveBundleLocale`, the locale matching `translateFlow` and `resolveFlowApprovalStepLabel` already use for the flow label and an approval step's label. One locale, no fallback chain. diff --git a/.changeset/36809-console-flow-labels-fallback-chain.md b/.changeset/36809-console-flow-labels-fallback-chain.md deleted file mode 100644 index a33999eec0c..00000000000 --- a/.changeset/36809-console-flow-labels-fallback-chain.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/runtime': minor -'@object-ui/i18n': minor -'@object-ui/app-shell': minor -'@object-ui/plugin-detail': minor -'@object-ui/console': minor ---- - -feat(i18n): console flow labels follow the server's declared fallback chain - -Clause-②: yes (widening) -Metadata-protocol: added -Skills-docs: none — the new member is a response field the console reads, not something a metadata author writes; no skills/ page teaches `GET /i18n/locales` or how the console resolves flow labels - -- **`GET /api/v1/i18n/locales` names the declared fallback chain.** `GetLocalesResponseSchema` (`@objectstack/spec/api`) gains an optional `fallbackChain: string[]`, and the runtime's `/i18n` domain fills it from the i18n service's `getFallbackLocale()` (the stack's `i18n.fallbackLocale`, else its `defaultLocale`), the same accessor the server's metadata translations hand the spec resolvers as `ResolveOptions.fallbackChain`. A service that declares no fallback (no accessor, or an empty answer, such as the core in-memory provider) serves no member. Nothing existing changes meaning. -- **The console loads the fallback locale's flow translations.** The console's language loader reads the chain and `sourceLocale` beside the active language's bundle and, unless the language is the authored one, fetches each fallback locale's bundle and keeps its `flows` group (`withDeclaredFlowsFallback`, `@object-ui/i18n`). -- **Flow labels walk the same locales as the server.** `activeFlowsBundle` returns the fallback locales' rows too, and the new `flowsResolveOptions` hands the spec resolvers `{ locale, fallbackChain, defaultLocale }`. The flow runner (flow name, field copy, option labels), the flow designer and docs viewer (`flowLabelTranslations`, `useFlowLabelTranslations`, which take the declared options) and the stage-change confirm now read a declared fallback locale's text for a label the active language lacks, before the authored label. A stack that declares no fallback keeps "requested locale, then the authored label". diff --git a/.changeset/36816-dashboard-form-business-wording.md b/.changeset/36816-dashboard-form-business-wording.md deleted file mode 100644 index 29d42b8d3d8..00000000000 --- a/.changeset/36816-dashboard-form-business-wording.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/spec': patch -'@objectstack/platform-objects': patch -'@object-ui/app-shell': patch ---- - -Clause-②: no -Metadata-protocol: none - -The dashboard settings panel's hints now read in business terms. Nine field hints of the dashboard authoring form (Name, Label, Columns, Gap, Refresh Interval Seconds, Header, Widgets, Date Range, Global Filters) no longer use developer vocabulary such as "snake_case", "in steps of 0.25rem (4 = 1rem)" or "config". Each one now says what the builder decides. The Columns and Gap hints also describe what an empty value does, in line with the dashboard renderer. - -Only hint text moved. No key, accepted value, label or section title changed, and nothing an author can write or validate is different. The platform metadata-form bundles are regenerated, and the nine hints are re-translated in all ten translated locales (zh-CN, zh-Hant, ja-JP, ko, es-ES, fr, de, pt-BR, ru, ar). The console's own zh-CN overlay for the dashboard panel now uses the same platform wording for these nine hints. diff --git a/.changeset/36825-lookup-create-pinned-footer.md b/.changeset/36825-lookup-create-pinned-footer.md deleted file mode 100644 index 33943365cf4..00000000000 --- a/.changeset/36825-lookup-create-pinned-footer.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/fields': patch ---- - -fix(fields): a lookup's quick-create and "show all results" stay whole and clickable in a short popover, and its list scrolls inside a dialog - -Clause-②: no -Metadata-protocol: none - -The lookup popover drew its quick-create row and its "show all results" row as the last children of the scrolling option list. The popover is held to the room the browser leaves on the side it opens to, and when that room is shorter than the list the list shrinks, so those two rows were the first thing cut: in a dialog near the bottom of a short window the create row showed only its top edge and could not be clicked. Inside a modal form the list could not be scrolled to it either, because the form dialog's scroll lock cancelled every wheel and touch move on the popover, which is rendered outside the dialog. - -Both rows now sit in a footer pinned under the list, quick-create on the left and "show all results" on the right, and the list is what gives way. The footer shows quick-create only when the field offers it and the user may create the target record, the same rule as before; when there is nothing to create and nothing more to show, no footer is drawn. A search with no match keeps its centred create button. The popover is now modal, its own scroll-lock layer, so its list scrolls by wheel and touch inside a dialog; while it is open the page behind it is hidden from assistive technology and a click outside closes it first, as with the other dropdown menus. The list cell's editor keeps both rows at the end of its list. diff --git a/.changeset/36831-screen-flow-step-not-resubmitted.md b/.changeset/36831-screen-flow-step-not-resubmitted.md deleted file mode 100644 index 65293c63d85..00000000000 --- a/.changeset/36831-screen-flow-step-not-resubmitted.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -fix(console): a screen-flow step the run already left is never submitted again - -Clause-②: no -Metadata-protocol: none - -The console's screen-flow dialog no longer resends a step after the run has moved on. Before, a resume could finish on the server while its answer was lost on the way back: a gateway timed out, or the connection dropped. The dialog then kept the step with Next still active. The next press sent that step's values to the screen the run was now on, and the user saw the engine's English refusal, which names the fields. A two-step quote wizard showed this failure after the quote had already been created. - -Before it offers a retry, the dialog now reads the run's paused screen again (`GET /api/v1/automation/FLOW/runs/RUN/screen`). This happens when no answer arrives, and on every failure the dialog would treat as retryable: - -- If the run waits on another screen, the dialog shows that screen with a plain notice: "Your previous submission went through. The flow has moved on to this step." -- If the run waits on no screen (`404`), Next is withdrawn and a plain notice asks the user to check the record before trying again. -- If the run still waits on the same screen, or the read gives no usable answer, the retry and the refusal's sentence stay as before. - -Both notices come from the console catalog (`flowRunner.alreadySubmitted` and `flowRunner.noLongerWaiting`) in every shipped locale. The engine's refusal is unchanged. Nothing to migrate. diff --git a/.changeset/36832-lookup-phone-drawer.md b/.changeset/36832-lookup-phone-drawer.md deleted file mode 100644 index 038f3a16493..00000000000 --- a/.changeset/36832-lookup-phone-drawer.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/fields': patch ---- - -fix(fields): on a phone a lookup's candidates open in a bottom drawer that scrolls by touch - -Clause-②: no -Metadata-protocol: none - -On a phone a create or edit form fills the screen as a modal dialog, and a lookup's candidate list opened in a small dropdown rendered outside that dialog. The dialog's scroll lock cancelled every touch move on it, so the list could not be scrolled by touch, and with the keyboard up the dropdown flipped above the field and showed only three or four rows. - -Below the phone breakpoint (the width at which the search-first people picker already switches to a sheet) the candidate list now opens in a bottom drawer titled with the field's label: the search box at the top, the candidates scrolling by touch in the middle, and quick-create and "show all results" pinned at the bottom. The drawer follows the on-screen keyboard, and the search box is not focused when it opens, so the keyboard comes up only when the user taps it. Quick-create shows under the same rule as on the desktop: only when the field offers it and the user may create the target record. Picking a candidate fills the field and closes the drawer. The desktop dropdown and the list cell's editor are unchanged. diff --git a/.changeset/36834-setup-packages-entry.md b/.changeset/36834-setup-packages-entry.md deleted file mode 100644 index 58ca1a31e57..00000000000 --- a/.changeset/36834-setup-packages-entry.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@objectstack/platform-objects': patch -'@objectstack/cloud-connection': patch -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -feat(console): Setup gets one Packages entry, the package list's administration face; the Installed Apps entry retires - -Clause-②: no -Metadata-protocol: none - -The maintainer's ruling on objectstack#36834 amends ruling 甲 of #25098: Setup lists what is installed, with the administration actions only, and the marketplace-only "Installed Apps" entry merges into it. - -- **Setup → Apps → Packages (`nav_packages`).** `@objectstack/platform-objects` contributes one entry to Setup's `group_apps`, gated on `manage_platform_settings` like Setup's other administration entries. It opens the console's `developer:packages` page with `params: { face: 'admin' }`, so the URL carries `?face=admin`. Its label is translated in every locale the Setup bundle carries. -- **The page's administration face.** With `?face=admin`, the Packages page lists every package of every source, with modules folded under their app. It shows the Name, Version, Status, Source and Update columns, plus a Source filter (All, Code, Marketplace, Authored) that writes `?source=`. Its only header action is New Package, and a package created there opens in Studio, on the address the Studio landing's package card opens. The detail sheet offers View info, Disable / Enable and Delete (keeping the choice to keep the data), plus "Open in Studio" on an authored package. Import, Edit, Publish, Revert, Export, Duplicate, Adopt loose items and the pending changes' Publish and Discard are not offered there. An unknown or repeated `face` value is refused by name. With no `face`, the page is unchanged: Studio's "All packages" link and each package card's Manage keep every action. -- **Installed Apps retires.** `MARKETPLACE_INSTALLED_UI_BUNDLE` (`@objectstack/cloud-connection`) no longer carries `nav_marketplace_installed`. The bundle stays exported under its id, with an empty `navigationContributions`, so a host that imports and registers it keeps working. The entry's labels are removed from the Setup translation bundle, and its id joins the dead-key tombstone. A bookmarked `/apps/setup/component/developer/packages?source=marketplace`, which the marketplace page's "Installed" button also opens, still shows the list filtered to marketplace installs, on the administration face. diff --git a/.changeset/36835-report-default-period-labels.md b/.changeset/36835-report-default-period-labels.md deleted file mode 100644 index 117e74851d2..00000000000 --- a/.changeset/36835-report-default-period-labels.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@objectstack/spec': patch -'@object-ui/app-shell': patch ---- - -Clause-②: no -Metadata-protocol: none - -The report authoring form's Default Period row (Period & export, then Date Range) now names each choice: Today, This month, Last 30 days, Custom… and so on, instead of the stored preset (`this_month`). The options cover the shared preset table one for one, so a preset added later is offered with a name the day it lands. In the Studio report inspector, a Chinese session reads the names from the console's locale packs, the same words the report page's period chip shows (本月, 近 30 天, 自定义…). - -Only the form's option names moved. No key, accepted value or default changed, and nothing an author can write or validate is different. diff --git a/.changeset/36837-dependson-lookup-id.md b/.changeset/36837-dependson-lookup-id.md deleted file mode 100644 index fdc4704709a..00000000000 --- a/.changeset/36837-dependson-lookup-id.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/fields': patch ---- - -fix(fields): a dependent lookup filters by its parent's id when the parent arrives populated - -Clause-②: no -Metadata-protocol: none - -A lookup with `dependsOn` naming another lookup now scopes its candidates by that parent's id when the record holds the parent as a populated row, as a record page does. Before, the filter carried the stringified object (`"[object Object]"`), so the picker on a record page — for example a quote's contact, scoped by the quote's account — always answered "No options found". The quick-select list, the full picker, the people picker and the create-new seed all use the same filter, so all four are fixed. A parent held as a bare id is unchanged. diff --git a/.changeset/36838-report-form-one-vocabulary.md b/.changeset/36838-report-form-one-vocabulary.md deleted file mode 100644 index a25da17e1b7..00000000000 --- a/.changeset/36838-report-form-one-vocabulary.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/spec': patch -'@objectstack/platform-objects': patch -'@object-ui/app-shell': patch ---- - -Clause-②: no -Metadata-protocol: none - -The report authoring form now names its top-level data rows with the same words as its joined-blocks grid: Data Source, Metrics, Group By and Group Columns By, where they read Dataset, Values, Rows and Columns. One form no longer calls the same setting by two names. The Metrics hint no longer says a metric is only a total or a count; it can be any measure of the data source, such as an average or a ratio. The File Name hint now says what the download does: the prefix takes the place of the report's label, and an empty prefix names the file after the label, or after the report's name when it has no label. - -Only prose moved. No key, accepted value, default or section title changed. The platform metadata-form bundles are regenerated, the File Name hint is re-translated in zh-CN, ja-JP and es-ES, and the console's zh-CN overlay now follows the current English for the Date Range and Runtime Filter hints. diff --git a/.changeset/36839-knowledge-exposure-fls.md b/.changeset/36839-knowledge-exposure-fls.md deleted file mode 100644 index 0ee032a13a5..00000000000 --- a/.changeset/36839-knowledge-exposure-fls.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -'@objectstack/service-knowledge': patch ---- - -fix(service-knowledge): knowledge search asks the object's API exposure and the caller's field-level read rules before it searches a source - -Clause-②: no -Metadata-protocol: none - -A knowledge passage is built at index time, under a system context, from every `contentFields` member of its source, the record `title` and the source's `metadataFields`. Knowledge search re-checked only that the caller may read each hit's row, so a caller who could read a row but not one of those fields was served that field's text, and an object the API does not serve was served as passages. `KnowledgeService.search` now decides, for a non-system caller and once per object per search, whether each `object` source may be searched at all: - -- the object's owning package is not disabled; -- the spec's exposure decision serves the object for the `search` operation (`enable.apiEnabled: false`, or an `enable.apiMethods` whitelist that does not grant `search`, refuses); -- a `sys_*` object declares `enable.aiReadable: true`; -- every field the source serves (each `contentFields` member, `'*'` meaning every declared field except `id`; each `metadataFields` member; `title`), less the credential-class and `internal` fields an index never carries, is one the caller may query, per the `security` service's `getQueryableFields` (absent it, `getReadableFields` less every field declaring a `maskingRule`; with no `security` service, every field except those declaring a `maskingRule`). - -A source that fails any gate is not searched for that caller. Every gate fails closed: a lookup that throws, or a `security` service that answers neither field question, keeps the source out. `KnowledgeServicePlugin` wires the `security` service, resolved per search: a missing answer or the kernel's not-registered refusal reads as "no security service"; any other throw from that lookup (a registration that cannot be used) refuses the sources, reported at `error` once per object per search. A host constructing `KnowledgeService` directly passes it as the new optional `resolveSecurity` option. The system context bypasses the gates, as it bypasses the row re-check. - -Three adjacent holes close with it. A caller with no execution context, or a service with no data engine bound, is now searched no `object` source at all, where before an object-source hit carrying no `sourceRecordId` was served to it. An admitted object source's hit with no `sourceRecordId` cannot be re-checked and is dropped. `KnowledgeService.search` drops a hit whose reported `sourceId` names another source than the one searched; it sees only what an adapter reports. - -**Narrowing for restricted callers.** A caller who may read a source's rows but not one of the fields the source serves now gets no hits from that source, where before it got passages carrying that field's text. A caller of an `apiEnabled: false` object, of an object whose `apiMethods` do not grant `search`, of a disabled package's object, or of a `sys_*` object without `enable.aiReadable: true` now gets no hits from its sources. No metadata key changes. To keep a source searchable for restricted callers, declare its `contentFields` / `metadataFields` from fields every intended reader may query and move sensitive fields into a separate source. diff --git a/.changeset/36840-print-door-hosted.md b/.changeset/36840-print-door-hosted.md deleted file mode 100644 index 9cd22d86121..00000000000 --- a/.changeset/36840-print-door-hosted.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@objectstack/spec': patch -'@objectstack/service-print': patch -'@objectstack/runtime': patch -'@object-ui/i18n': patch -'@object-ui/console': patch ---- - -fix(hosted): printing a record works on a kernel with no `http.server` (a hosted tenant kernel), and an api action whose service is absent shows a readable, localized line instead of the route text - -Clause-②: yes (widening) -Metadata-protocol: none - -`POST /api/v1/print/records` (service-print) was mounted only on the kernel's `http.server`. A hosted tenant kernel owns no socket and registers no `http.server`, so the host's `createHonoApp` catch-all, and the `/actions` door's in-process forward of a `type: 'api'` action, handed the request to the runtime dispatcher, which had no domain for it and answered `404 ROUTE_NOT_FOUND`. A hosted HotCRM's Print Quote showed its user `Route Not Found: /print/records`. - -- `@objectstack/spec/contracts` declares `IPrintDoorService` (one optional, transport-neutral member, `handlePrintDoor(request: Request): Promise<Response>`). A service without the member still satisfies it. -- `PrintServicePlugin`'s `print` service gains `handlePrintDoor`, which runs the same registration the `http.server` mount runs, on a private route table that never listens (`createDoorTableMember`), so every answer is the mount's own. The `http.server` mount is unchanged, and no path is mounted twice. `@objectstack/service-print` now depends on `@objectstack/plugin-hono-server` at runtime. -- The runtime dispatcher gains a `/print` domain that claims exactly `POST /print/records` and forwards the request, body unread, to the REQUEST kernel's member (never the host kernel's scoped fallback). Every other shape under `/print` keeps the dispatcher's `404 ROUTE_NOT_FOUND`. With no `print` slot, or one without the member, the door answers `501 NOT_IMPLEMENTED` naming `@objectstack/service-print`. The door stays behind the dispatcher's authentication and project-membership gates. -- The console shows a `type: 'api'` action's `501 NOT_IMPLEMENTED` refusal (the service behind its target is not composed in this environment) as the new `actions.serviceUnavailable` line in the user's language (zh-CN: 「此操作所需的服务在当前环境未启用,请联系管理员。」) instead of the server's operator text. A producer-marked `userMessage` still wins. A `503 SERVICE_UNAVAILABLE` (a transient outage) and a route miss (`ROUTE_NOT_FOUND`, `ENDPOINT_NOT_FOUND`, for example a misspelled `target`) keep the server's own sentence. diff --git a/.changeset/36841-kanban-reference-swimlanes.md b/.changeset/36841-kanban-reference-swimlanes.md deleted file mode 100644 index 6672e6ff5e6..00000000000 --- a/.changeset/36841-kanban-reference-swimlanes.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/plugin-kanban': patch ---- - -fix(plugin-kanban): a board swimlaned by a lookup or user field keys each swimlane by the referenced record's id and titles it by the record's name - -Clause-②: no -Metadata-protocol: none - -A kanban board whose `swimlaneField` is a reference field (lookup, user, master-detail) reads the field's value off records fetched with `$expand`, so the value is the referenced record. The swimlanes were built from that value stringified: every heading read `[object Object]`, and cards pointing at different records were drawn in one swimlane. - -Each swimlane is now keyed the way a column lane on a reference field is keyed: by the referenced record's id. Its heading is the record's name, read through the field's `displayField` and then the shared record-title ladder, and falls back to the id when neither names the record. The swimlane order and the collapsed-swimlane memory kept in the browser use the id. A card with no value still sits in the "Uncategorized" swimlane, and a swimlane field that holds plain values is unchanged. diff --git a/.changeset/36849-result-link-closes-flow-dialog.md b/.changeset/36849-result-link-closes-flow-dialog.md deleted file mode 100644 index f98900355a7..00000000000 --- a/.changeset/36849-result-link-closes-flow-dialog.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(console): following a record link on a screen flow's result screen closes the flow dialog - -Clause-②: no -Metadata-protocol: none - -On the last screen of a multi-screen screen flow, the screen that links the records the flow created, following one of those links now closes the flow dialog. The user lands on the record with nothing on top of it. - -Before, the dialog stayed open over the record page and showed the flow's first screen again, with its inputs and a live Next. The record page draws a loading state on every record change, and the dialog was rebuilt from the step the run first paused on. Pressing Next sent the first screen's values to a run that was already on its last screen, and the user saw the engine's English refusal ("Invalid screen input: Unknown screen field …"). A lead conversion and a quote wizard both showed this after their records had been created. - -Following a link in the same window now closes the dialog before the page changes: - -- On a result screen (only record links, nothing after it), the run is also completed, the same way Done completes it: the completion toast, the refresh, and the host's completion callback. -- On any other screen, the link closes the dialog the way Cancel does and resumes nothing. -- A link opened in a new tab or window leaves the dialog where it is. - -`ScreenView` takes an optional `onRecordLinkFollow` callback for this; the Studio preview passes none. Nothing to migrate. diff --git a/.changeset/36851-related-list-refused-delete-toast.md b/.changeset/36851-related-list-refused-delete-toast.md deleted file mode 100644 index 03dab9c8a65..00000000000 --- a/.changeset/36851-related-list-refused-delete-toast.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/plugin-detail': patch ---- - -fix(record-page): a refused delete from a related list says it was refused - -Clause-②: no -Metadata-protocol: none - -Deleting a row from a record page's related list when the server refused the delete (a hook, or a record lock answering `409 RECORD_LOCKED`) showed nothing: the confirm dialog closed, the row stayed, and the refusal reached only the browser console. The list now shows the toast the object's list page shows for the same refusal: "Failed to delete LABEL", described by the refusal's `userMessage` when the server marked one, the read-only sentence for an external data source, and otherwise the server's own sentence. The row stays in the list and the dialog closes, as before. A delete that succeeds is unchanged. No props, exports or locale keys change. diff --git a/.changeset/36852-peoplepicker-dialog-scroll.md b/.changeset/36852-peoplepicker-dialog-scroll.md deleted file mode 100644 index 6020ea87de7..00000000000 --- a/.changeset/36852-peoplepicker-dialog-scroll.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/fields': patch ---- - -fix(fields): the people picker's list scrolls by wheel and touch inside a dialog, and in its desktop dialog - -Clause-②: no -Metadata-protocol: none - -A user field's inline people picker could not be scrolled when it was opened inside a dialog form. Two things held it. The dropdown is rendered outside the dialog, so the form dialog's scroll lock cancelled every wheel and touch move over it; the dropdown is now modal, its own scroll-lock layer, as the lookup dropdown already is. Under that, the list area took the full height of its rows instead of the room the dropdown gives it, so the rows past the bottom edge were clipped rather than scrollable, inside a dialog or not; the list now shrinks to that room and scrolls. The same list in the people picker's centred desktop dialog scrolls now too. While the inline dropdown is open, the page behind it is hidden from assistive technology and a click outside closes it first, as with the other dropdown menus. The phone's bottom sheet is unchanged. diff --git a/.changeset/36854-mcp-book-label-locale.md b/.changeset/36854-mcp-book-label-locale.md deleted file mode 100644 index e2a77f96c18..00000000000 --- a/.changeset/36854-mcp-book-label-locale.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/runtime': patch ---- - -fix(runtime): the MCP doc tools name a page's manual in the request's locale - -Clause-②: no -Metadata-protocol: none - -`search_package_docs` and `read_package_doc` served the page title in the request's locale but the manual's `book.label` in the base language, so a Chinese user was cited "HotCRM Order to Cash Manual" beside a Chinese page title. The manual's label now goes through the translation the `/meta/book` door applies (`books.<name>.label` in the translation bundle), in the same locale the page is served in, and keeps the authored label when the bundle has none. The manual a page opens in, its slug and the address are unchanged. diff --git a/.changeset/36860-metadata-list-columns-batch.md b/.changeset/36860-metadata-list-columns-batch.md deleted file mode 100644 index b02acb17e5a..00000000000 --- a/.changeset/36860-metadata-list-columns-batch.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@objectstack/spec': patch -'@objectstack/rest': patch -'@objectstack/runtime': patch -'@objectstack/platform-objects': patch -'@object-ui/app-shell': patch ---- - -feat(spec): Studio list columns for 27 metadata types, served in the reader's language on both doors - -Clause-②: yes (widening: `/meta/types` serves `list` on 26 more entries, and the runtime dispatcher's listing is now translated) -Metadata-protocol: none - -`METADATA_LIST_REGISTRY` now declares the Studio list columns of 27 metadata types: the first batch (`hook`, `flow`, `job`, `api`, `action`, `report`, `dataset`, `email_template`, `assignment_rule`, `sharing_rule`, `queue`, `agent`, `tool`, `skill`, `doc`, `seed`, `mapping`, `picklist`, `translation`) and the eight types the console used to declare itself (`object`, `field`, `view`, `page`, `dashboard`, `permission`, `position`, `book`). Every column names a key the type's schema declares, checked by the reconciliation test. Nothing an author writes changes: the registry is the spec's own constant. - -- **Headers in every shipped language.** The 52 headers no form field already labels get their own `metadataForms.<type>.fields.<path>.label` leaf in the 11 platform bundles (`@objectstack/platform-objects`), translated in all ten non-English locales. A column the form labels reads the form's words. -- **Both doors translate the listing.** The runtime dispatcher's `GET /meta` and `GET /meta/types` now answer the types listing in the request's language, as `RestServer`'s `GET /meta` does: type labels, form labels, list headers and schema titles. Both run one function, `translateMetaTypesListing` (`@objectstack/rest`). Before this, a host served through the dispatcher answered all of it in English. -- **The console's own declarations move into the spec.** Studio's lists of objects, fields, views, pages, dashboards, permission sets, positions and books read the served columns. The console keeps only what the schema cannot say: a field row's server-stamped `object`, a position's holder count and granted permission sets, a view's derived display type, a book's audience and a sharing rule's `sharedWith` rendering. The console declared `object`'s columns twice, in two registrations that disagreed (the later one won); both declarations are gone, so one remains, in the spec. A page's former `route` column named no `PageSchema` key and is dropped. What an admin sees in Studio (`@object-ui/app-shell`): the metadata lists of all 27 types show the spec's columns, in the declared order, with headers in the reader's language. The moved lists lose the console's fixed column widths (the view list's display type and the book list's audience keep theirs), the Fields list reads name, type, label, then object, the sharing-rule list's header reads "Access Level" where it read "Access", and the Pages list shows type and description in place of the dropped route column. A summary cell reads an expression member as its source, so the Jobs list's schedule shows a cron job's expression (`cron · 0 2 * * * · UTC`), not only its kind and time zone. diff --git a/.changeset/36860-metadata-list-columns.md b/.changeset/36860-metadata-list-columns.md deleted file mode 100644 index 316bfb5e14d..00000000000 --- a/.changeset/36860-metadata-list-columns.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/metadata-protocol': minor -'@objectstack/rest': minor -'@objectstack/lint': minor -'@object-ui/app-shell': minor ---- - -feat(spec): declare a metadata type's Studio list columns in the spec and serve them on `/meta/types` - -Clause-②: yes (widening: new exported schemas and a new optional `list` on each `/meta/types` entry) -Metadata-protocol: added -Skills-docs: none — no skill under `skills/**` teaches Studio's metadata list columns; `skills/objectstack-ui/SKILL.md` names `entries[].schema` only, which is unchanged - -Which columns Studio's generic list shows for a metadata type is now declared in the spec, beside the type's form, instead of in console code: - -- **Spec.** `MetadataListViewSchema` is a list layout bound to the type's own schema (`data: { provider: 'schema', schemaId }`) with its `columns`; each `MetadataListColumnSchema` names a key of that schema or a dotted path into it, a header, and a cell renderer (`MetadataListCellTypeSchema`: `text`, `badge`, `boolean`, `count`, `list`, `summary`). `defineList({ schemaId, columns })` builds one and refuses an unknown renderer, an empty column list and any `ListColumn` key outside `field` / `label` / `type`. `METADATA_LIST_REGISTRY` (`@objectstack/spec/system`) is the list counterpart of `METADATA_FORM_REGISTRY`; this release declares `hook`, and a type with no entry keeps Studio's default list. A reconciliation test refuses a column naming a key the type's schema does not declare (or declares retired, or as an overlay `_` key) and a header that differs from the form field label of the same path. -- **Serve.** `getMetaTypes()` serves the registry entry as `list` on the type's `/meta/types` row, next to `form`; `GetMetaTypesResponseSchema` declares it. The REST handler translates each header through the type's form field slot, `metadataForms.<type>.fields.<field>.label`, so a column and the form field of the same key read the same words. `resolveMetadataListLabels` (`@objectstack/spec/system`) does the lookup. -- **i18n.** `os i18n extract` emits that slot for every column whose path the type's form does not already label, with the column's header as the English source. Every `hook` header reuses a form label, so no bundle changes here. -- **Console.** Studio's generic list reads the served columns first: the served list, else the console's own `listColumns`, else name / label / description. A served header is shown as served, already in the reader's language. A key the stored row leaves out shows the default the type's JSON Schema declares there, the value the runtime uses. The console can still draw a served column's cell its own way (`listCells`) and append values the server stamps on a row that are not schema keys (`listExtraColumns`). - -New exports: `@objectstack/spec` adds `MetadataListCellTypeSchema`, `MetadataListColumnSchema`, `MetadataListViewSchema`, `defineList` and their types (`ui`), and `METADATA_LIST_REGISTRY`, `MetadataListType` and `resolveMetadataListLabels` (`system`). Nothing that was accepted before is refused, and a client that ignores `list` sees the `/meta/types` it saw before. diff --git a/.changeset/36865-lookup-param-allowcreate-filters.md b/.changeset/36865-lookup-param-allowcreate-filters.md deleted file mode 100644 index 16a076fa3af..00000000000 --- a/.changeset/36865-lookup-param-allowcreate-filters.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@object-ui/core': patch -'@object-ui/fields': patch -'@object-ui/plugin-grid': patch -'@object-ui/i18n': patch -'@object-ui/app-shell': patch ---- - -fix(fields): an action's lookup param honours the borrowed field's `allowCreate: false`, and a record created in a filtered picker that fails the filters is not selected - -Clause-②: yes (widening) -Metadata-protocol: none - -- **A field-backed lookup param reads the field's `allowCreate`.** A param written `{ field, objectOverride }` already took the field's `lookupFilters`, `lookupColumns`, `lookupPageSize` and `descriptionField`, but not `allowCreate`. As a result, a field declaring `allowCreate: false` still showed "+ New" in an action's picker. `resolveActionParams` now copies it, app-shell's `paramToField` forwards it to the record-header dialog's picker, and the selection toolbar's dialog carries it through `resolvePromotedBulkParams`. Both the desktop popover and the phone drawer honour it. `@object-ui/core`'s `ActionParamDef` gains the optional `allowCreate` member it travels on. An author who writes `allowCreate` on a raw param is warned by name in development, like the other inherited picker keys: the spec's `ActionParamSchema` does not declare it. -- **A quick-created record is selected only if the picker could have offered it.** The create form accepts whatever the user enters, so the new record can fail the field's `lookupFilters`, for example a `draft` where the field asks for `approved`. The picker used to select it anyway, and the save or action that read the field then refused it. The picker now re-reads the new id through its own filter, the field's `lookupFilters` and `dependsOn` scope combined with the id. If the server does not return the record, it is not selected, and the picker reopens with the line `lookup.createdOutsideFilters` ("The record was created, but it does not match this field's filters, so it cannot be chosen here."), in every shipped locale. If the check itself fails, the record is not selected either, and the line `lookup.createdUnchecked` says the record was created but could not be checked, so the user searches for it instead of creating a duplicate. A picker with no filter selects the new record as before, without the extra read. -- **A create notice no longer hides the candidate list.** A create notice (the two lines above, or a failed inline create) now sits above the list instead of replacing it, so the user can pick an existing record straight away. Closing the picker clears it. Before, a failed inline create hid the list and its create entry until the widget was remounted. diff --git a/.changeset/36876-menu-rename-locale-map.md b/.changeset/36876-menu-rename-locale-map.md deleted file mode 100644 index 2272d18ceac..00000000000 --- a/.changeset/36876-menu-rename-locale-map.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(console): a design-mode menu rename in the source language over an inline locale-map label keeps the other languages - -Clause-②: no -Metadata-protocol: none - -A menu entry's label can be written as an inline locale map, for example `{ en: 'Orders', 'zh-CN': '订单' }`. The menu is served with that map as it is stored, so a rename typed in the app's source language goes to the stored label, and the save used to write the new name as a plain string over the whole map: every other language's text was lost from the app. The save now replaces only the entry the editor showed for the session language (`{ en: 'Sales orders', 'zh-CN': '订单' }`), adds that entry when the map has none, and a cleared name drops only that entry. The entry is chosen the way Studio's navigation editors choose it. A plain-string label is replaced by the typed name as before, and where a rename lands (the stored label or a translation) is unchanged. diff --git a/.changeset/36880-lane-stat-date-minmax.md b/.changeset/36880-lane-stat-date-minmax.md deleted file mode 100644 index 19bddb11180..00000000000 --- a/.changeset/36880-lane-stat-date-minmax.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/plugin-list': patch ---- - -fix(plugin-list): the board's lane statistic picker offers a minimum and a maximum over date, date-time and time fields - -Clause-②: no -Metadata-protocol: none - -The 视图设置 「Column summary」 level on a kanban view now lists, for each function, the fields the aggregate × field-type table (`isAggregateCompatibleWithFieldType` in `@objectstack/spec/data`) accepts for that function, the same verdict `@objectstack/lint` gives `kanban.summary`. Before, every function offered the `sum` row's number fields. So `min` and `max` now also offer date, date-time and time fields, and `avg`, `min` and `max` offer a percent field. `sum` is unchanged. A formula or a true / false field is still offered under none. The board already computes a date's minimum or maximum in its lane read and draws it at the lane's foot through the date field's own cell renderer, in the face the field's `format` declares. diff --git a/.changeset/36887-meta-types-response-schema.md b/.changeset/36887-meta-types-response-schema.md deleted file mode 100644 index c4b9277e762..00000000000 --- a/.changeset/36887-meta-types-response-schema.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/spec': minor ---- - -fix(spec): `GetMetaTypesResponseSchema` declares every member `GET /meta/types` serves on an entry - -Clause-②: yes (widening: the published response schema declares four members the route already serves) -Metadata-protocol: added - -Each `/meta/types` entry has always carried `schemaId`, `schema` (the type's JSON Schema), `form` (its Studio editor layout) and, when the type has any, `actions`, but the wire schema declared none of them, so a typed client and the published JSON Schema could not see them. They are declared now: `schemaId` as a string, `schema` as a JSON Schema record, `form` as a `FormView` and `actions` as `Action[]`, each optional except `schemaId`, as the route serves them. Nothing the server sends changes. Because `form` and `actions` carry defaults, the response now has a parsed shape, named `GetMetaTypesResponseParsed`. diff --git a/.changeset/36892-studio-detail-header.md b/.changeset/36892-studio-detail-header.md deleted file mode 100644 index 81bb655d0a2..00000000000 --- a/.changeset/36892-studio-detail-header.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/i18n': patch ---- - -feat(console): the strings of the one Studio detail header (close, previous, next, position, package, more) - -Clause-②: no -Metadata-protocol: none - -The `studio` namespace gains the `engine.studio.detailHeader.*` keys in English and Chinese, for the header every full-screen Studio detail will share: × back to the list, ‹ › with the item's position in the list, the source package chip and the ⋯ menu. The header itself lives in the private console shell and no page shows it yet. diff --git a/.changeset/36893-sds-pillar-split.md b/.changeset/36893-sds-pillar-split.md deleted file mode 100644 index e34efd95b34..00000000000 --- a/.changeset/36893-sds-pillar-split.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -internal: move-only — Studio's Data, Automations and Access pillars move out of `StudioDesignSurface.tsx` into their own modules, taking it from 8,010 to 1,715 lines - -Clause-②: no -Metadata-protocol: none - -No behaviour change. Under `views/studio-design/`, `DataPillar.tsx` holds the Data pillar with its records-grid slot (`renderStudioGridList`) and its object draft-save shape. `AutomationsPillar.tsx` holds the Automations pillar and the published-flow-names read only it makes. `AccessPillar.tsx` holds the Access pillar with its "New similar" arrival reader and the list-row name label only it draws. The moved code is byte-identical apart from its imports. `StudioDesignSurface.tsx` imports the three pillars from there and re-exports them, with `renderStudioGridList`, so every import of them keeps working. The package's public exports are unchanged. diff --git a/.changeset/36894-list-changed-at.md b/.changeset/36894-list-changed-at.md deleted file mode 100644 index 361dd4d50df..00000000000 --- a/.changeset/36894-list-changed-at.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/metadata-protocol': minor -'@objectstack/rest': minor ---- - -feat(metadata): the metadata list answers when each listed item last changed, as `changedAt` beside its items - -Clause-②: yes -Metadata-protocol: added -Skills-docs: none — a read-only field of the list response that no author writes; no skill documents the list envelope's sibling fields (`registrations`, `disabledActions`) - -`GET /api/v1/meta/:type` now answers `changedAt` beside `items` (`GetMetaItemsResponseSchema.changedAt`): for each listed item served from a stored row, the `updated_at` of that row, keyed by the item's `name`, as an ISO-8601 instant in UTC written with `Z`. A list can show a "changed" column without one read per item. - -- Only an item served from a stored row has an entry. A code-shipped or file-loaded item has no recorded change time and no entry: never the read time or the boot time standing in. The field is absent when no listed item is served from a row. -- The time is the row whose content is listed. Of several stored rows in scope for one item (its package's own row, the package-less row, the package's declared override), on the list naming no package and on the list scoped to one, it is the row the list serves, the instant the by-name read serves as `Last-Modified` for it. -- On `?preview=draft`, an item whose pending draft is served (`_draft: true`) has the draft row's time. -- Several listed items of one name (a name two or more packages ship, the members of a bundle) answer the latest of their times. -- The `/meta` list chain (REST and the runtime dispatcher) keys only the names of which it still lists every item: where the per-caller gate withholds an item, or a query filter leaves one out, that name has no entry, so the time of an item the caller is not shown is never served, under its own name or a name another listed item shares. -- The items themselves are unchanged. The execution face and the per-package layer answer no `changedAt`, and the MCP `list_metadata_items` summary is unchanged. diff --git a/.changeset/36895-studio-address-builder.md b/.changeset/36895-studio-address-builder.md deleted file mode 100644 index 98a66df0136..00000000000 --- a/.changeset/36895-studio-address-builder.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@objectstack/types': patch -'@objectstack/runtime': patch -'@objectstack/cli': patch -'@object-ui/app-shell': patch -'@object-ui/console': patch ---- - -refactor(studio): every Studio address comes from one builder; no address changes - -Clause-②: yes (widening) -Metadata-protocol: none - -Studio redesign groundwork (#36895, epic #36890). Every place that produced a `/studio...` URL now calls one builder, so a later change can move an item type to its metadata address in one place. Every address is byte-for-byte what it was: no link, bookmark or redirect changes. - -- **Console.** `studioAddress.ts` in `@object-ui/app-shell` builds every Studio address: the landing, a package, a pillar, an item (`studioItemPath`), the "All metadata" area, and the draft review links. `studioAddressTable.ts` lists every address family, every `?surface=` spelling and every query parameter, with what each becomes on the metadata address. The retired `/interfaces` redirect keeps exactly the parameters that table marks. New exports from `@object-ui/app-shell`: `STUDIO_ROOT_PATH`, `STUDIO_HOME_PILLAR`, `studioLandingPath`, `studioPackagePath`. Existing exports keep their names and values. -- **Server.** `studioChangesReviewLink` and `studioItemReviewLink`, new in `@objectstack/types`, build the review links that `os meta register` prints and that the MCP authoring tools return after a draft save. The text an AI is handed is unchanged. -- **Guards.** A test under `ui/` refuses a hand-built Studio address in any ui source. A test in `@objectstack/types` refuses one in any server package, and holds the review links quoted by the `objectstack-mcp-build` skill's evals equal to what the builder returns. diff --git a/.changeset/36896-list-state-in-url.md b/.changeset/36896-list-state-in-url.md deleted file mode 100644 index 653d27783a7..00000000000 --- a/.changeset/36896-list-state-in-url.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -feat(console): the metadata list keeps its search, filters, sort and scroll position across a trip to an item and back - -Clause-②: no -Metadata-protocol: none - -The generic metadata list (Setup's catalog lists and Studio's "All metadata" area) held its search text, its source filter, "only customizations" and the activation status filter in component state, so opening an item and coming back, or refreshing the page, reset all of them. They now live in the list's address as page-scoped params: `q` (search), `source` (`artifact` / `runtime`), `customized=1`, `status` (`active` / `inactive`) and the new `sort`. A value at its default is left out, so an untouched list keeps its clean address, and every change replaces the history entry instead of adding one, so Back leaves the list rather than paging through keystrokes. The `package` and `scope` params keep their meaning. - -The list gains a sort control: by API name or by label, each way. The default is by API name, A to Z; before this change the list kept the server's order. - -Each row link now carries the list's non-default params to the item page, and the scroll position of the list is restored when the same list address is shown again in the same tab (Back, or a link to the list with the same params). - -New module `metadataListState.ts` beside the page holds the codec, the list's filter and sort (`applyListState`) and `orderedListNames`; the new `useListOrderedNames(type)` hook gives an item page the names of its list in that order, read from its own address — every item of the scope by API name when the address carries no list context. Neither is exported from the package root. - -New locale keys in the studio catalogue (en, zh): `engine.list.sort`, `engine.list.sort.name.asc`, `engine.list.sort.name.desc`, `engine.list.sort.label.asc`, `engine.list.sort.label.desc`. diff --git a/.changeset/36897-list-objectgrid.md b/.changeset/36897-list-objectgrid.md deleted file mode 100644 index cde12ec6b63..00000000000 --- a/.changeset/36897-list-objectgrid.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@object-ui/plugin-grid': patch -'@object-ui/app-shell': patch ---- - -feat(app-shell): every metadata type's list is drawn by ObjectGrid, and its New on a read-only base creates in the base's paired `.custom` package - -Clause-②: yes (widening) -Metadata-protocol: none - -- `@object-ui/plugin-grid`: `ObjectGrid` takes two generic host props for its table view — `hostCells` (a host draws a column's cells) and `rowTint` (a palette name per row, over `rowColor`). -- `@object-ui/app-shell`: the metadata list (Setup and Studio's All metadata area) is an `ObjectGrid` fed a declared schema and the page's rows in the list's own order; diagnostics tint, lock, the Active switch, Clone, the served columns and the 「修改时间」 column (its time, its unpublished-changes mark and its `changed` sort, objectstack#36898) are the page's cells; sort, search and page live in the address. The grid's personal columns, export, selection and inline edit are off for it. -- On a read-only base in Studio, the list's New creates in the paired `.custom` package (ADR-0146 D3): an object (with its organization-wide sharing default) and a flow (from a starting point) open the list's create dialog; another type opens the area's create in the pair. Under the customization wall no New is offered. diff --git a/.changeset/36898-list-changed-column.md b/.changeset/36898-list-changed-column.md deleted file mode 100644 index f399704712b..00000000000 --- a/.changeset/36898-list-changed-column.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@object-ui/data-objectstack': patch -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -feat(console): the metadata list shows when each item last changed and marks items with unpublished changes - -Clause-②: yes (widening) -Metadata-protocol: none - -The generic metadata list (Setup's catalog lists and Studio's "All metadata" area) gains a 「修改时间」 / "Modified" column, read off the list answer's `changedAt` sibling. Only an item served from a stored row has a time; a code-shipped item shows an empty cell. The sort control gains "Modified (newest first)" and "Modified (oldest first)", which ride the address as `sort=-changed` / `sort=changed`; items without a time sort last either way, and the item page's ‹ › follow the same order. - -Beneath the time, an item with a pending draft on the existing `GET /api/v1/meta/_drafts` ledger is marked 「有未发布的改动」 / "Unpublished changes", including drafts that existed before this change. A draft the AI assistant wrote (any of its recorded changes made by the AI copilot or through the MCP build door, the rule the item page's AI line uses) is marked 「AI 的改动未发布」 / "Unpublished AI changes" instead. A publish removes the mark. - -`MetadataClient.listResponse` now returns the list's `changedAt` beside the items (each entry read with the spec's own rule; an entry that does not parse is dropped, and absence stays absence). `list` is unchanged. - -New locale keys in the studio catalogue (en, zh): `engine.list.sort.changed.asc`, `engine.list.sort.changed.desc`, `engine.list.col.changedAt`, `engine.list.draftMark.human`, `engine.list.draftMark.humanTitle`, `engine.list.draftMark.ai`, `engine.list.draftMark.aiTitle`. diff --git a/.changeset/36899-studio-left-menu.md b/.changeset/36899-studio-left-menu.md deleted file mode 100644 index e35e2d5ba35..00000000000 --- a/.changeset/36899-studio-left-menu.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/components': patch -'@object-ui/i18n': patch -'@object-ui/console': patch ---- - -feat(studio): a collapsible left menu of six groups replaces the top pillar nav - -Clause-②: yes (widening) -Metadata-protocol: none - -ADR-0084 (amended) · #36899, part of #36890. - -- **Studio's one navigation is a left menu.** The top bar's Data / Automations / Access / All metadata switcher is gone. Every Studio page (a package's pillars and area, the package-less flows `~org`, and the cross-package leg `~all`) draws the same menu of six groups: Data, UI, Automation, Platform, Access, AI (数据、界面、自动化、平台、访问、AI). Each group lists the metadata types the package holds (the directory's own rule, `scopeDirectoryEntries`), with a type count per group and an item count per type, and a search box that narrows the entries. A type entry opens that type's list in the area; an item of an object, flow or permission set still opens its designer. Four entries are not a type: Organization flows (`~org`, under Automation), Default sharing (the Access pillar's OWD overview, under Access), Diagnostics (under Platform) and Positions and permissions (the environment catalog on `~all`, under Access). -- **It collapses like the app sidebar, under its own cookie.** It is the app sidebar's primitive: the header's toggle hides and shows it, the state survives a reload under `studio_menu_state` (never the app sidebar's `sidebar_state`), and below 768 px it is a drawer. `SidebarProvider` (`@object-ui/components`) takes a new optional `cookieName` prop for that; the default is unchanged. -- **The menu names the `system` group Platform / 平台 and the `security` group Access / 访问**, the amended ADR-0084's group names, through its own `studioMenuGroupLabel`. The shared domain dictionary (`translateMetadataDomain`) is unchanged: Setup's datasource pages and the rest of Studio still say System / 系统 and Security / 安全. -- **`~all` is drawn in the builder's shell.** `/studio/~all/metadata/*` is served by the same route as a package's area, so it has the left menu too; the landing's frame no longer draws it. A `~org` area URL (or `?package=~org`) now lands on the package-less flows instead of being read as a package. -- **「‹ Back to app」 names the current package's app** (decision 5), never a remembered app of another package; a package with no app names the package and goes to the apps home. -- Changes and Publish stay at the right end of the top bar, beside Cancel and Save. diff --git a/.changeset/36900-studio-cmdk.md b/.changeset/36900-studio-cmdk.md deleted file mode 100644 index 58e0cef1e26..00000000000 --- a/.changeset/36900-studio-cmdk.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/console': patch ---- - -feat(studio): ⌘K on every Studio design page lists the package's whole menu and its items - -Clause-②: no -Metadata-protocol: none - -Studio redesign: an author switches between items with ×, ‹ › and ⌘K · #36900, part of #36890. - -- **⌘K / Ctrl+K opens the command palette on every Studio design page.** That covers a package's pages and its "All metadata" area, the organization's own flows, and the cross-package positions-and-permissions catalog. Until now only the Studio start page had a palette, and the cross-package catalog had lost the one it used to have. -- **On a package it lists the left menu, group by group**: Data, UI, Automation, Platform, Access, AI (数据、界面、自动化、平台、访问、AI), in the menu's order and under the menu's names. Each group holds the menu's own entries (each type's list, Organization flows, Default sharing, Diagnostics, Positions and permissions), then every item of the types it lists, the package's customizations included. Each item shows its type on the right; a customization is marked "Customization of" the package's name. The packages stay listed, so another package is one pick away. On a package the palette no longer lists every package's objects and flows: the package's own items replace them. The organization's flows and the cross-package catalog keep those lists and add their own menu entries. -- **A pick opens what the menu and the lists open**: an object, a flow or a permission set in its designer, any other item on its own page in "All metadata", exactly where its list row leads. A menu entry goes where the menu entry goes. -- **It never drops unsaved work silently.** A pick, like Studio's Back to app, asks first whenever the page holds unsaved edits, the "All metadata" item page's included. A pick of the page already open on another view (Default sharing, from the Access page) reopens that page on it; a pick of the page already shown just closes the palette. -- The query matches an item by its label, its name or its type, and a menu entry by its label, its type or its group. While the package's lists are still loading, an empty result says "Searching…". The item lists are read only once the palette opens. -- Pressing Escape to close a dialog over a full-screen item editor (the palette, for one) no longer also leaves full screen. diff --git a/.changeset/36901-detail-header-tabs.md b/.changeset/36901-detail-header-tabs.md deleted file mode 100644 index 9ef35a340f7..00000000000 --- a/.changeset/36901-detail-header-tabs.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -feat(studio): a metadata item fills the content pane under one detail header, and its tools are tabs instead of side sheets - -Clause-②: no -Metadata-protocol: none - -Studio's generic item page and the form editor of an email template or a translation now draw the shared Studio detail header: × back to the type's list (its search, filters, sort and package scope kept), ‹ › to the previous and next item in the list's order with "index / total", the type and source package as chips, and the page's actions at the right. Both × and ‹ › ask first when the page holds unsaved edits; the browser's Back is not intercepted. - -The six side sheets of the generic item page are tabs of the page: Details, Preview (a type with an editing canvas), Related (a type with anchors), Referenced by, History (the versions with rollback, and the audit log read inside it; shown to a caller who may read the authoring trail) and Source (the JSON source, and the layered comparison read inside it, for read-only callers too). The open tab is in the address as `?tab=`; the values the sheets wrote still open the same place (`?tab=layers` opens Source on the layers, `?tab=audit` opens History on the audit log). The draft review is a status chip in the header while a draft is pending, and `?review=1` still opens it. - -On a type with a canvas the page opens on Preview; Details shows the whole item's form. Both edit one draft, and one Save (the header's button, ⌘S or autosave) saves it whichever tab is open, so a tab switch keeps every unsaved edit. - -The address `/studio/PACKAGE/metadata/TYPE/NAME/history` opens the item on its History tab; the permission set, whose item page is its own matrix editor, and an item a pillar's designer opens (a flow, an object) keep the standalone history page there. - -New in `@object-ui/app-shell`: `item-tools/ItemToolTabs.tsx` (the tab strip, the address helpers and the References, History and Source panels, for the designers to mount) and `metadata-admin/ResourceDetailHeader.tsx`. New locale keys `engine.studio.itemTabs.*` in the studio catalogue (en, zh). No metadata changes; nothing to migrate. diff --git a/.changeset/36902-detail-save-at-once.md b/.changeset/36902-detail-save-at-once.md deleted file mode 100644 index 8f81b0752c1..00000000000 --- a/.changeset/36902-detail-save-at-once.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch -'@object-ui/data-objectstack': patch ---- - -feat(studio): the generic item page's Save takes effect at once; an AI draft gets the designers' notice and discard - -Clause-②: yes (widening) -Metadata-protocol: none - -Studio's generic item page saves the way the designers do. Save writes the item's draft and then publishes that one item (`POST /meta/:type/:name/publish`, at the same package and bundle member), so the change is live at once and there is no second Publish step. The draft save keeps its version pin and conflict dialog, and the publish is now pinned to the published version the page loaded: when another editor published the item in between, the same dialog asks to reload, overwrite or keep editing. A create publishes right after its first save. The auto-save switch is gone, and edits wait for Save, ⌘S or the destructive-change confirmation. - -A refused publish shows its reason above the editor in the designers' words, with the server's text under Details. Nothing goes live, the draft the Save wrote is taken back, and the edits stay on the page, unsaved. - -A pending draft written by the AI assistant (the copilot or an MCP client) is the version on screen, under the designers' line: saving makes it live too, and "Discard AI changes" drops that one item's draft, asking first when the page holds unsaved edits. A pending draft a person wrote before this change is marked "This item has unpublished changes", with its own Publish and Discard for that item. The header's Publish and discard buttons are gone. - -Leaving the page with unsaved edits still asks first through ×, ‹ ›, the side menu, in-app links, reload and close. The browser's Back is not intercepted. - -`@object-ui/data-objectstack`: the exported `MetadataLayered` type gains an optional `overlayVersion` member (`string | null`), and `MetadataClient.layered()` now forwards the served `overlayVersion` into it. The client used to rebuild its answer field by field and drop it, so a Studio Save's publish was never pinned on a server that serves it. - -Locale keys `engine.edit.unpublishedChanges` and `engine.edit.unpublishedPublishDirty` are new, and `engine.edit.autoSaveOn`, `engine.edit.autoSaveOff` and `engine.edit.autoSavingShortly` are removed (en, zh). The per-browser `metadata-admin:autosave` setting is no longer read. No metadata changes; nothing to migrate. diff --git a/.changeset/36905-permission-fullscreen.md b/.changeset/36905-permission-fullscreen.md deleted file mode 100644 index 62a926600d5..00000000000 --- a/.changeset/36905-permission-fullscreen.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -feat(studio): a permission set opens full-screen at its metadata address; the record-visibility overview gets its own route - -Clause-②: no -Metadata-protocol: none - -A permission set in Studio now opens at its own address, `/studio/PACKAGE/metadata/permission/NAME`, full-screen beside the left menu, instead of the Access pillar's rail and workbench. The header is the one every full-screen item page has: × back to the list of sets (its filters kept), ‹ › through it, the set's label (its machine name on the title's tooltip), type and package, and a ⋯ menu. The Access pillar's own page and its list of sets are gone. The tab row is the matrix's five sections (Objects, System capabilities, Row-level security, Tab visibility, Delegated admin), then References, History and Source; History replaces the matrix's History sheet and is addressable (`?tab=history`). Save stays the Studio top bar's, and leaving with unsaved edits (×, ‹ ›, the menu, a reload, closing the tab) asks first; the browser's Back button does not ask. - -What the pillar drew around the matrix comes along: Discard draft, Explain access, the suggested-audience strip, and on a read-only base "New similar", now in ⋯ and also on each of the base's rows in the list of sets; the copy opens at its own address with the strip saying where it landed. A draft the AI assistant left (copilot or MCP) shows the designers' notice, and 「放弃 AI 的改动」 drops that one set's draft; a person's own leftover draft keeps Discard draft. - -The organization-wide default sharing overview ("Who can see which records") is a page of its own, `/studio/PACKAGE/owd`, the Access group's menu entry; a set's per-object visibility badge opens it on that object (`?object=NAME`). - -Old addresses keep working: `/studio/PACKAGE/access?surface=permission:NAME` redirects to the set's address (a set a read-only base's `.custom` pair adds, a "New similar" copy among them, to the pair's address, where it opens writable as the pillar opened it), `?surface=owd:overview` to the overview, and a bare `/studio/PACKAGE/access` to the list of sets; other query parameters are kept. `/studio/PACKAGE/metadata/permission/NAME/history` opens the History tab. The cross-package leg (`/studio/~all/...`) keeps the matrix's environment page. No locale keys, props of published packages or exports change: the catalogue rows only the Access pillar read stay in `@object-ui/i18n`, unread. diff --git a/.changeset/36911-row-menu-approval-lock.md b/.changeset/36911-row-menu-approval-lock.md deleted file mode 100644 index 3015f5d0933..00000000000 --- a/.changeset/36911-row-menu-approval-lock.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/plugin-grid': patch ---- - -fix(plugin-grid): the row menu offers no Edit on a row held by a locking approval - -Clause-②: no -Metadata-protocol: none - -A grid row whose record is held by its own pending approval with `lockRecord: true` is refused `RECORD_LOCKED` when it is updated. Its row menu still offered Edit, on the list page and on a record page's related tab. The menu now reads the same lock the grid's cells read (`POST /api/v1/approvals/records/:object/locks`), once per page, when a row's actions are first reached for. A row the lock read answered as locked offers no Edit, as the record page offers none. Delete stays, because a record held by its own approval may be deleted, and the delete cancels the request. The lock read does not report a detail line held because its master is held, so such lines keep both Edit and Delete in this menu, and the server refuses both. When the lock cannot be read, the menu stays as it was: no approvals service (501), a row the reader cannot read, a failed read, or a read not yet asked. diff --git a/.changeset/36912-dashboard-gap-zero.md b/.changeset/36912-dashboard-gap-zero.md deleted file mode 100644 index 7e6e98b4b3e..00000000000 --- a/.changeset/36912-dashboard-gap-zero.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/plugin-dashboard': patch ---- - -fix(plugin-dashboard): a dashboard that declares `gap: 0` is drawn with no gap - -Clause-②: no -Metadata-protocol: none - -The dashboard renderer read the declared `gap` as `schema.gap || 4`, so a declared `gap: 0`, which the spec admits (`min(0)`), fell through to the default and widgets an author wanted flush were drawn 1rem apart. It now reads `schema.gap ?? 4`: only an absent `gap` takes the default of 4 (1rem), and a declared zero draws the grid with no gap. The design-mode resize handle, which measures a span from the same gap, uses the declared zero too. diff --git a/.changeset/36915-bulk-flow-refused-count.md b/.changeset/36915-bulk-flow-refused-count.md deleted file mode 100644 index 2cb23650849..00000000000 --- a/.changeset/36915-bulk-flow-refused-count.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@object-ui/types': patch -'@object-ui/plugin-grid': patch -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -fix(console): a per-record bulk flow action counts a refused record as refused, with its own message, and stacks no refusal notice - -Clause-②: yes (seat ruling: the published `@object-ui/types` `ActionResult` gains a member; L1-a owes a lane-keep L2 review) -Metadata-protocol: none - -The published `@object-ui/types` adds two optional members, `ActionResult.refusal` and `ActionContext.reportsRefusal`. Nothing existing is narrowed. - -A list view's selection bar can run a `type: 'flow'` action once per selected record. A run that ended on an `end` node with `outcome: 'refused'` answers `200` with `status: "refused"` and a `refusalMessage`. Before this change the bulk result counted such a record as succeeded ("Succeeded 3 / 3"), and one refusal dialog opened on top of the result showing a single record's message, so the other refused records' reasons were lost. - -- The result now counts refused records apart: "Succeeded 1 / 3 · Refused 2". Each refused record is listed with the sentence the flow wrote for it. A refused record has no Retry and is not written to the error CSV: re-running it would get the same answer. When a failed record is retried and the action refuses it, it moves to the refused list. -- No refusal dialog opens during a bulk run. The same action launched from a row menu still opens its Close-only refusal notice, unchanged. -- `ActionResult.refusal` (`{ message }`) is set by the console's flow launch on a run that ended `refused`, beside `success: true` and `handedOff: true`. A caller that counts outcomes reads it as refused, never as done. -- `ActionContext.reportsRefusal` is passed for one dispatch through `ActionRunner.execute`'s `callContext`. A caller that lists refusals itself sets it, and the console's flow handler then opens no notice of its own. diff --git a/.changeset/36917-transfer-describe-offboarding.md b/.changeset/36917-transfer-describe-offboarding.md deleted file mode 100644 index eb489658407..00000000000 --- a/.changeset/36917-transfer-describe-offboarding.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/spec': patch ---- - -docs(spec): the `userActions.transfer` description names both things the switch decides, the Change Owner action and the offboarding hand-over - -Clause-②: no -Metadata-protocol: none - -The description of an object's Change Owner switch (`userActions.transfer`), in the published JSON schema and the generated reference docs, said the switch gates only the Change Owner action. On an object eligible for Change Owner it also decides whether the offboarding hand-over of a user's assigned work moves the object's `owner_id`: where an eligible object's switch resolves off, those records are counted as held and keep their owner. An `owner_id` the platform does not provide (an object the platform gives no owner column, declaring its own `owner_id` user field) is handed over like any other user field. The hand-over reads only the resolved on or off, not the per-record `visibleWhen`/`disabledWhen` predicates. The description now says so. No shape, accepted value or default changes. diff --git a/.changeset/36922-related-badge-after-row-action.md b/.changeset/36922-related-badge-after-row-action.md deleted file mode 100644 index 41a87cb75f5..00000000000 --- a/.changeset/36922-related-badge-after-row-action.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@object-ui/components': patch ---- - -fix(components): a related-list tab badge keeps following its list after a row action - -Clause-②: no -Metadata-protocol: none - -On a record page, after a row action ran in a related list (for example an `update` action such as "Mark done"), every later delete or create in that list left the tab's count badge on its old number until a reload, while the list showed the new one. - -A row action reaches the data-change bus twice, a beat apart: the write's own mutation event, then the related list's refresh. The first change sent a re-count; the second overtook it while it was out. `RelatedCountStore.fetch` then resolved with the overtaken read's number without caching it, and the record page's count reader took "resolved, nothing cached" as a failed read and stopped asking for that count for the rest of the record open. - -`RelatedCountStore.fetch` now settles on a count the store holds: when a change overtakes the read it joined (an invalidation, a newer seeded read, or a rail card's unmount), it takes the count a newer read installed, joins the read now in flight, or reads again. A read that fails without being overtaken still answers `0` with nothing cached, as before. diff --git a/.changeset/36923-standalone-form-lookupautofill-refused.md b/.changeset/36923-standalone-form-lookupautofill-refused.md deleted file mode 100644 index 7a83b020976..00000000000 --- a/.changeset/36923-standalone-form-lookupautofill-refused.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -'@object-ui/fields': patch ---- - -fix(fields): a `lookupAutofill` written by hand on a standalone form node's field is not run - -Clause-②: no (narrowing) -Metadata-protocol: none - -<!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed or renamed, and nothing stored is rewritten: `lookupAutofill` on a form field was never in a declared accept set. What narrows is the runtime behaviour of @object-ui/fields (`readLookupAutofillTargets`, and `LookupField` handed `onAutofill`), whose consumer is code, not metadata an upgrade could rewrite. This body does carry a code-level prescription (the FROM, TO and Fix lines below, written without an arrow), so the gate admits this marker on a detector miss, not on a checked fact: no fact-based category covers a runtime function whose behaviour narrows (`runtime-interface-only` reads exported types, `runtime-export-retired` reads an export that is gone). The vocabulary gap is #37136. --> - -`lookupAutofill` is a fact about the object, and it runs where the object is read: in a record form and in a line-item grid column. A lookup on a standalone `form` node whose field carries `lookupAutofill` written by hand now fills nothing when a record is picked. The lookup itself is still set. Before, such a pick copied values into the other fields without the cross-currency rule, so an amount could be copied into a field in another currency with no note. A development build now warns once, naming the field and saying where the key is honoured. - -Record forms and grid columns behave as before, the cross-currency rule included. The widget recognises a record form by the stamp the record form puts on its lookups (`withLookupAutofillTargets`). That stamp is now written on every lookup that declares pairs, including when no target is a field of the loaded object, and only a stamp the record form issued counts. A `lookupAutofillTargets` key written as data is ignored. - -No metadata key is added or changed. Fix: declare `lookupAutofill` on the object's lookup field and draw the object's form. - -**BREAKING** (`@object-ui/fields`, the `lookup` and `master_detail` widgets): `LookupField` handed an `onAutofill` writer runs its field's `lookupAutofill` pairs only when the record form stamped the field. - -- FROM: a single-value pick, and the opening fill of a create form that opened with the lookup set, filled the declared targets whenever the host handed `onAutofill` (and no `onSelectRecord`) and the field carried `lookupAutofill` pairs. -- TO: it also needs the stamp `withLookupAutofillTargets` issues, which the record form applies to every field it draws. A host that hands `onAutofill` without that stamp, such as a standalone `form` node, sets the lookup and fills nothing, on a pick and on the opening fill alike, and a development build warns once per field. -- Fix: stamp the field through `withLookupAutofillTargets(field, objectFields)` before handing it to the widget, passing the object's field map as the record form does. With no map the stamp names no target, so the pick copies without the cross-currency rule, which is the copy this change stops. Or declare `lookupAutofill` on the object field and draw the object's record form. - -**BREAKING** (`@object-ui/fields`, runtime export): `readLookupAutofillTargets(field)` now answers only for a target map that `withLookupAutofillTargets` issued. - -- FROM: `readLookupAutofillTargets(field)` returned any non-array object found under the field's `lookupAutofillTargets` key. -- TO: it returns only the map `withLookupAutofillTargets` stamped, which is what the record form does. A same-name key written by hand reads `undefined`. `withLookupAutofillTargets` now also stamps a lookup whose pairs name no field of the map it is given, with an empty map. Before, it returned the field unchanged. The map it stamps is frozen, and a field with pairs always comes back as a copy. -- Fix: stamp the field through `withLookupAutofillTargets`, as the record form does. If you need the raw value, read `field.lookupAutofillTargets` directly. diff --git a/.changeset/36930-swimlane-namefield.md b/.changeset/36930-swimlane-namefield.md deleted file mode 100644 index 9f14bfd7fc8..00000000000 --- a/.changeset/36930-swimlane-namefield.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/plugin-kanban': patch ---- - -fix(plugin-kanban): a reference swimlane heading names its record through the target object's declared `nameField` - -Clause-②: no -Metadata-protocol: none - -A board whose swimlanes group by a lookup now titles each swimlane the way a column lane over the same reference is titled: the field's `displayField`, then the referenced object's `nameField` (ADR-0079), then the shared title ladder. Before, the swimlane skipped the referenced object's `nameField`, so one record could be named differently in a swimlane heading and in a column heading. `ObjectKanban` reads the referenced object once per board; no exported type changes. diff --git a/.changeset/36931-bulk-flow-paused-rows.md b/.changeset/36931-bulk-flow-paused-rows.md deleted file mode 100644 index 90ce28d6cd6..00000000000 --- a/.changeset/36931-bulk-flow-paused-rows.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@object-ui/types': patch -'@object-ui/plugin-grid': patch -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -fix(console): a per-record bulk flow action counts a record whose run paused at a screen as waiting for input, and every paused record's screen opens in turn - -Clause-②: yes -Metadata-protocol: none - -The published `@object-ui/types` adds one optional member, `ActionResult.paused`. Nothing existing is narrowed. - -A list view's selection bar can run a `type: 'flow'` action once per selected record. A run that reaches a `screen` node pauses and waits for input. Before this change the bulk result counted such a record as succeeded ("Succeeded 3 / 3"), and the console held one paused run at a time: each paused record replaced the previous one, so only the last record's screen opened and the other records' runs waited at screens nobody could reach. - -- The result now counts paused records apart: "Succeeded 1 / 3 · Waiting for input 2". Each waiting record is listed by name, under a line saying its screen opens next. A waiting record has no Retry and is not written to the error CSV: a re-run would start a second run. When a failed record is retried and its run pauses, it moves to the waiting list. -- The console now queues paused runs. Its flow runner shows the first paused record's screen, and closing or completing it shows the next one, until none is left. This holds for the console's list runtime and for a list on a record page. -- `ActionResult.paused` (`{ runId }`) is set by the console's flow launch on a run that paused at a screen, beside `success: true` and `handedOff: true`. A caller that counts outcomes reads it as waiting, never as done. diff --git a/.changeset/36942-platform-task-note-objects.md b/.changeset/36942-platform-task-note-objects.md deleted file mode 100644 index 755ab9c05bf..00000000000 --- a/.changeset/36942-platform-task-note-objects.md +++ /dev/null @@ -1,47 +0,0 @@ ---- -'@objectstack/platform-objects': patch -'@objectstack/spec': patch -'@objectstack/plugin-security': patch -'@objectstack/cli': patch ---- - -feat(platform-objects): built-in tasks and notes, `sys_task` and `sys_note`, in every environment - -Clause-②: yes (widening) -Metadata-protocol: none - -`PlatformObjectsPlugin` now registers two ordinary, customizable objects on their own manifest -(`com.objectstack.platform-objects.work`), so any application can put tasks and notes in its menu -without declaring its own: - -- `sys_task` — title (required), description (rich text), status (To Do / In Progress / Done, - default To Do), due time, assignee (a user, defaulting to the creator) and a read-only completion - time the platform writes when the status becomes Done and clears when it leaves Done. -- `sys_note` — an optional title and a rich-text body; lists show a read-only heading that is the - title, or the body's first line when the title is empty. - -Each keeps its own sharing: `sharingModel: 'private'` over a declared `owner_id` (the creator), and a -task is also shared, with edit access, with its assignee through the declared `sys_task_assignee` -sharing rule. Neither links to, grants access to, or derives access from any other record. Default -views: tasks Assigned to Me (open, by due time), Created by Me and All Tasks (a board by status); -notes My Notes and All Notes. Attachments are on for both. - -Both names join `PLATFORM_OBJECTS_BY_PACKAGE['platform-objects']` in `@objectstack/spec`, so -validation treats them as platform-provided: an app's navigation entry reaches them with -`requiresObject` beside `objectName` (`{ type: 'object', objectName: 'sys_task', requiresObject: -'sys_task' }`), which `defineStack` accepts and the console hides on a kernel without the object. -Their labels ship in the platform's eleven locales (zh-CN 任务 / 备忘). - -`@objectstack/plugin-security`: the member baseline `member_default` grants `sys_task` and -`sys_note` read, create and edit, with no delete (maintainer ruling 7131539862, option A). It opens -the objects only: which rows a member sees stays with each object's private sharing, so a task is -read by its creator and its assignee and a note by its creator. - -`@objectstack/cli`: the organization-ownership inventory (ADR-0131 D10) gives `sys_task` and -`sys_note` the `attribution` fate, so `os migrate organization-ownership` and the `os dev` upgrade -plan databases that hold them instead of refusing an object with no fate. - -Clause-② reads `yes (widening)`: `defineStack` now accepts a top-level action whose `objectName` is -`sys_task` or `sys_note`, and the public surface grows. `Metadata-protocol: none` follows the -`sys_unit` roster-addition precedent: no metadata key, type or schema value is added, and a -reference that already parsed now resolves. diff --git a/.changeset/36946-manual-reader-cjk-bold.md b/.changeset/36946-manual-reader-cjk-bold.md deleted file mode 100644 index df745636a67..00000000000 --- a/.changeset/36946-manual-reader-cjk-bold.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@object-ui/plugin-markdown': patch -'@object-ui/plugin-chatbot': patch ---- - -fix(plugin-markdown): bold that ends in full-width punctuation renders bold before a CJK letter - -Clause-②: no -Metadata-protocol: none - -The markdown renderer the console's manual reader uses (`@object-ui/plugin-markdown`) left a `**bold**` run as literal asterisks when the run ended in full-width punctuation and a CJK letter followed it, as in `**解决耗时(小时)**会被清空`, `**每个项目一张报销单。**每个项目` or `**它跳过和拒绝什么:**已经`. CommonMark counts full-width punctuation as punctuation, so such a closer is not right-flanking; a Chinese or Japanese sentence puts no space there. - -The renderer now runs `remark-cjk-friendly` (its `parseOnly` entry, a new MIT dependency at `^2.3.4`) ahead of remark-gfm, the rule the chat surface already runs. It reads a CJK character beside a `**` run the way it reads the whitespace an English sentence would have there. ASCII emphasis, code spans, backslash escapes, GFM tables and GitHub-style alerts render as before, and the output still passes the same sanitize schema. - -`@object-ui/plugin-chatbot` changes a comment only: its CJK rule now names the renderer's copy, since neither package depends on the other and each imports the plugin itself. No props or exports change in either package; nothing to migrate. diff --git a/.changeset/36955-search-page-component-doc-keys.md b/.changeset/36955-search-page-component-doc-keys.md deleted file mode 100644 index 01857497bf4..00000000000 --- a/.changeset/36955-search-page-component-doc-keys.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@object-ui/i18n': patch -'@object-ui/app-shell': patch ---- - -fix(i18n): the full search page names component, doc and link results in every language - -Clause-②: no -Metadata-protocol: none - -The console's full search page (opened from the command palette's "Open Full Search Page") titles each result group and badges each result by the navigation item's type. Component items, doc items and link items printed raw keys (`search.typeComponents`, `search.badgeDoc`, `search.typeUrls`, …) because no locale pack defined them, English included. Every shipped console locale pack now carries a heading and a badge for the three types, and the search placeholder and its accessible label also name components and docs. A new test in `@object-ui/app-shell` renders the page with one navigation item of every spec type and fails when any heading or badge key the page asks for is missing from a pack. diff --git a/.changeset/36959-approvals-inbox-search-labels.md b/.changeset/36959-approvals-inbox-search-labels.md deleted file mode 100644 index 52893a04412..00000000000 --- a/.changeset/36959-approvals-inbox-search-labels.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@objectstack/plugin-approvals': patch ---- - -fix(plugin-approvals): the approvals inbox search finds a request by the record title, process label, object label and requester name its row shows - -Clause-②: no -Metadata-protocol: none - -The inbox search box ("Search record, process, requester…", `GET /api/v1/approvals/requests?q=`) matched only the stored machine columns (`process_name`, `object_name`, `record_id`, `submitter_id`) and, where the caller reads it unmasked, the raw snapshot. Text a row actually shows, such as a record title, a process label, a requester's name or an object label, found nothing, while a machine fragment like `crm_` found every row. - -`q` now also matches the four labels a row shows, each worked out the way that caller is served it: - -- the record title, as served to the caller: a title field the caller may not read, or reads masked, does not match; -- the process label in the caller's language: the translated label where the reader's language pack has one, otherwise the stored label. A reader who is shown the translation is not found by the stored text; -- the object label, chosen the same way; -- the requester's display name. - -Matching stays case-sensitive, like the existing arms (`$contains`). The `q` parameter accepts the same values as before. A title that comes only from a deleted record's snapshot is not searched by this path. diff --git a/.changeset/36960-approvals-inbox-cancelled-filter.md b/.changeset/36960-approvals-inbox-cancelled-filter.md deleted file mode 100644 index 21e04610b17..00000000000 --- a/.changeset/36960-approvals-inbox-cancelled-filter.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@object-ui/console': patch ---- - -fix(console): the approvals inbox status filter offers Cancelled - -Clause-②: no -Metadata-protocol: none - -On the **Submitted by me** and **All** tabs of the approvals inbox, the status filter listed Pending, Approved, Rejected, Recalled and Returned for revision, but not **Cancelled**, although cancelled requests show in the same list with their own badge and the server answers `GET /api/v1/approvals/requests?status=cancelled`. The filter now offers Cancelled, and choosing it lists only the cancelled requests. - -The options are now drawn from the approval contract's status list (`APPROVAL_STATUSES` in `@objectstack/spec/contracts`) rather than typed out one by one, so a status the platform adds later appears in the filter without a console change. Each option keeps the label its badge shows. - -Nothing to migrate. diff --git a/.changeset/36966-approvals-inbox-state-in-url.md b/.changeset/36966-approvals-inbox-state-in-url.md deleted file mode 100644 index 214b3413649..00000000000 --- a/.changeset/36966-approvals-inbox-state-in-url.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -'@object-ui/console': patch -'@objectstack/console': patch ---- - -fix(console): the approvals inbox keeps its tab, filters, search and sort across a request's page and Back - -Clause-②: no -Metadata-protocol: none - -Opening a request from the approvals inbox and pressing Back used to bring the inbox back on "My Pending" with every filter cleared: the tab, the status, process and object filters, the search text and the sort were held in component state only, and the inbox is rebuilt when the reader comes back. Someone working through "All" filtered to "Recalled" had to pick the tab and rebuild the filters after every request. - -They now ride the inbox's address as page-scoped params: `scope` (the tab: `submitted` or `all`), `status`, `process`, `object`, `q` (the search text) and `sort` (`oldest` or `amount`). So Back, a reload and a copied link all reopen the inbox as the reader left it. - -- A value at its default is left out, so an untouched inbox keeps a bare address. -- Every change replaces the current history entry instead of adding one, so Back leaves the inbox rather than stepping through filter changes. -- The search text reaches the address after the same short pause the server search already waited for. A search typed and opened at once is written before the request opens, so Back still returns to it. -- A value the inbox does not offer (an unknown tab, sort or status, or a status on "My Pending", which has no status filter) reads as the default. A process or object the address names is checked once, when the first requests arrive, and is dropped only if those requests are the whole list (on "My Pending", or when the first page holds every request) and none of them carries it. On "Submitted by me" and "All", a value past the first page is kept and shown in its dropdown, so a filter picked after loading more pages survives Back, a reload and a copied link. -- Switching tabs still clears the filters, search and sort, now in the address too. Other params are kept. -- The `?request=` notification link still opens that request. - -The tab rides `scope`, not `tab`, because `tab` is the console's reserved record-page tab param. Nothing to migrate. diff --git a/.changeset/36969-hide-closed-ai-build.md b/.changeset/36969-hide-closed-ai-build.md deleted file mode 100644 index b2b707754b1..00000000000 --- a/.changeset/36969-hide-closed-ai-build.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(console): the AI-build entries show only where the agent catalog serves the build agent, and an old build conversation still opens - -Clause-②: no -Metadata-protocol: none - -A deployment can close in-app building with AI: its agent catalog then keeps `ask` and no longer lists `build`, and the chat route refuses `build`. The console's build entries now read the catalog for the build agent itself (alias-aware, `build` or its legacy id), never "any agent" and never a hosted or self-hosted guess: - -- The sidebar app menu's 「Add app」 and the desktop's no-apps empty state offer "New in Studio" (Studio's new-package flow) instead of "Build with AI"; the template and marketplace choices stay. -- Home's builder chip takes its "New in Studio" form, as it already did for an empty catalog, instead of "Build an app". -- Studio's AI copilot is not drawn; the right panel shows the properties alone, as for an empty catalog. Asking stays in the console's chat drawer. -- The full-page chat address `/ai/build/ID` lands on `/ai/ask/ID` and opens that conversation, instead of `/ai/ask` without it. A maker's bare `/ai/ask` is not redirected to `/ai/build`. - -Where the catalog serves `build`, every entry behaves as before. `useAiSurfaceEnabled()` also returns `buildServed`; no locale keys change. diff --git a/.changeset/36971-profile-language-one-setting.md b/.changeset/36971-profile-language-one-setting.md deleted file mode 100644 index a102652d6a8..00000000000 --- a/.changeset/36971-profile-language-one-setting.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@object-ui/console': patch -'@object-ui/i18n': patch ---- - -fix(console): the profile Language card says it is the same setting as the globe menu - -Clause-②: no -Metadata-protocol: none - -The Language card on the profile page described itself as the language for notifications and messages only, and said the interface language was chosen separately from the globe menu. Both controls write the same `sys_user.locale` column and the console applies it as the interface language, so saving the card switched the whole console. The card's description (`profile.language.description`, in all ten built-in packs and in the console's own fallback text) now says it is one setting for the interface and for what is sent to the user, the same one as the globe menu. The zh-Hans text uses full-width punctuation. Nothing to migrate. diff --git a/.changeset/36972-profile-save-confirmation.md b/.changeset/36972-profile-save-confirmation.md deleted file mode 100644 index 9e11cc618b3..00000000000 --- a/.changeset/36972-profile-save-confirmation.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@object-ui/auth': patch -'@object-ui/console': patch ---- - -fix(auth, console): saving your name on the profile page keeps the page on screen and shows "Profile updated successfully."; a language save that changes the interface language still confirms - -Clause-②: no -Metadata-protocol: none - -`useAuth().updateUser` (`@object-ui/auth`) installed the answer of better-auth's `POST /update-user` as the session user. That endpoint answers `{ status: true }`, not the user, so for a moment the signed-in user had no `id`, `name` or `email`: the header showed "?" and "User", and every consumer keyed on the identity dropped its children and mounted them again. In the console the page went blank, its data was read again, and the profile card's success alert, which is local state, was lost. `updateUser` now keeps the same user and applies the fields it wrote to it, the way better-auth builds the stored row. The page is not remounted, and the alert stays. The avatar upload and remove, which call `updateUser` too, no longer blank the page either. - -The profile page's Language card (`@object-ui/console`) also confirms a save with a toast. A save that changes the interface language remounts the page under the console shell's language key, by design, and that remount took the card's inline alert with it. The console's toaster sits above that key, so the toast stays. A save that does not change the interface language shows the inline alert as before, and the toast beside it. - -Nothing to migrate. diff --git a/.changeset/36980-import-row-errors-reader-language.md b/.changeset/36980-import-row-errors-reader-language.md deleted file mode 100644 index d9ceef0375b..00000000000 --- a/.changeset/36980-import-row-errors-reader-language.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@objectstack/spec': patch -'@objectstack/core': patch -'@objectstack/rest': patch -'@object-ui/plugin-grid': patch ---- - -Clause-②: no -Metadata-protocol: none - -An import row refused because another row of the same file carries the same match key (`DUPLICATE_MATCH_KEY`) now reads in the importing user's language, like the cell errors beside it, and names the key by its field label (`Email`, `Supplier + Type`) instead of its API name; the row numbers stay in the sentence. The sentence is the new `import_duplicate_match_key` entry of the built-in validation message catalog (`BUILTIN_VALIDATION_MESSAGES`, in all four platform locales), so a deployment can override it under `validation.field.import_duplicate_match_key`. The row keeps its shape (`code`, `error`); only the `error` text changes. An English deployment reads the same sentence as before, with the field label where the API name was. - -The console import wizard shows a row refused by an object-level validation rule (a rule that names no field, reported on the `_record` field) as its message alone, without a `_record:` prefix, in the dry-run findings, on the result screen and in the failed-rows download. A field-level error keeps its `Label: message` form; the failed-rows download now prefixes it with the field label too, where it used the API name. diff --git a/.changeset/36981-setup-doors-bearer.md b/.changeset/36981-setup-doors-bearer.md deleted file mode 100644 index edb47650f7c..00000000000 --- a/.changeset/36981-setup-doors-bearer.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/console': patch ---- - -fix(console): Settings, Packages, Audit Log and the connector pages send the stored bearer token, so a session the rest of the console accepts works there too - -Clause-②: no -Metadata-protocol: none - -These Setup surfaces called their endpoints with the session cookie only (`credentials: 'include'`), while the rest of the console sends the stored bearer token through its authenticated fetch. A session held by its bearer token alone (a second local runtime on the same host replaced the cookie, the cookie was blocked as a third-party cookie, or the cookie jar was cleared) therefore worked everywhere except here, where each page printed the server's `401` instead: "Authentication is required to access this endpoint.", a bare `UNAUTHENTICATED`, or, on the Audit Log, the raw response body followed by "No audit entries". - -They now go through `createAuthenticatedFetch` from `@object-ui/auth`, the path every other console request takes: every `/api/settings` call and the judged client-address read of the Authentication and Access policy pages, the Audit Log read, the connector credential and connection doors, the Packages list (the Installed Apps address included), and this runtime's own install ledger (`/api/v1/marketplace/install-local*`) and cloud-connection reads (`installed`, `org-packages`). The session cookie still rides along (`credentials: 'include'` is unchanged), so a cookie session behaves exactly as before, and a `401` now reaches the console's session-ended check as it does on every other page. Nothing changes in what the server accepts. - -A failed Audit Log read no longer draws the "No audit entries" empty state, and its alert shows the refusal's own sentence when the response envelope carries one, or "Failed to load audit log" otherwise, never the raw response body. diff --git a/.changeset/36982-declared-rule-hooks-late-organization.md b/.changeset/36982-declared-rule-hooks-late-organization.md deleted file mode 100644 index 114ff477bcd..00000000000 --- a/.changeset/36982-declared-rule-hooks-late-organization.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/plugin-sharing': patch ---- - -fix(sharing): a declared sharing rule grants in an organization created after boot, without a restart - -Clause-②: no -Metadata-protocol: none - -- **A package-declared sharing rule now grants in an organization created after the server booted.** The per-record rule hooks bound once at boot on the objects of the rules served then, and under a walled posture a declared rule is served once per organization that exists. A server that booted with no organization (a fresh environment, before its first sign-up) bound no hook on a declared rule's object, so a record written in the organization created afterwards got no `sys_record_share` grant and its recipient could not read it until the next restart. The hooks now bind on every object an active declaration names, whatever organizations serve it at that moment; the organization is resolved when a record is evaluated, so each grant stays inside its own organization. -- **The same binding covers a declared rule switched off at boot and on again later** through the activation ledger: its object stays bound, and records written after the switch are evaluated. -- Boot and the `sys_sharing_rule` data-change rebind bind through one function (`rebindRuleHooks`, reading `SharingRuleService.listRuleHookObjects()`), so the two cannot derive different object sets. `bindRuleHooks` now accepts any rows carrying `object_name` and `active` (a widening; existing callers are unaffected). diff --git a/.changeset/36988-report-chart-axis-format.md b/.changeset/36988-report-chart-axis-format.md deleted file mode 100644 index 3a5af69c51d..00000000000 --- a/.changeset/36988-report-chart-axis-format.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@object-ui/plugin-report': patch -'@object-ui/plugin-charts': patch ---- - -fix(plugin-report): a report chart's value axis reads a percent measure in percent, and two value-axis ticks never share a label - -Clause-②: no -Metadata-protocol: none - -- **A report chart over a percent measure labels its value axis in percent.** A dataset measure with a percent `format` (`'0.0%'`) charted in a report drew its value axis in raw fractions (`0`, `0.1`, `0.2`, `0.3`) while the table beside it printed `33.3%`. The report now hands the measure's pattern to the chart as its value-axis `format`, so the axis reads `0.0%` … `34.0%`. This applies to a percent pattern on a measure stored as a 0–1 fraction, which is the table's reading of such a pattern. A measure already in percentage points (`percentScale: 'whole'`), a currency measure, and a plain numeral pattern keep the chart's default axis: the chart's axis `format` cannot say what the table prints for the first two, and a fixed-width numeral pattern (`'0,0.00'`) would outgrow the axis band where the compact default reads the same number. -- **Two ticks on a value axis never share a label.** With no axis `format`, the value axis printed at most one fraction digit, so the ticks of a small domain collapsed: a 0–⅓ axis read `0, 0.1, 0.2, 0.3, 0.3`. Each value axis now prints its ticks to the decimal place its tick step needs (`0, 0.085, 0.17, 0.255, 0.34`), in compact notation as before. A declared axis `format` keeps its own places unless they are too coarse for the step, in which case the ticks gain the places the step needs (`'0%'` over a 0.85-point step reads `0.85%`, not two `3%` ticks). Data labels follow their value axis, as they already did. - -Nothing to migrate: no metadata key changes and no export changes. diff --git a/.changeset/36991-knowledge-sync-where.md b/.changeset/36991-knowledge-sync-where.md deleted file mode 100644 index 4301660c67b..00000000000 --- a/.changeset/36991-knowledge-sync-where.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@objectstack/service-knowledge': patch ---- - -fix(service-knowledge): record-change sync honours the source `where`, and a restored record re-enters the index - -Clause-②: no -Metadata-protocol: none - -An `object` knowledge source's `where` (for example `{ status: 'published' }`) was applied only by `reindexSource`. On a record change the sync built the document straight from the event payload, so a draft was indexed, a record that stopped matching stayed searchable with its old text, and a record restored from the recycle bin never came back into the index. - -- **The database decides membership on the event path too.** For a created, updated or restored record, with a data engine bound, each source now re-reads the row under the system context with `where AND id`, one row. A row comes back: the document is built from that row, through the same field rules as a reindex (the fields the source lists and the record `title`, never a credential-class or `internal` field). No row comes back: the record's document is deleted. A write result that omits a field no longer leaves the document short. -- **`data.record.restored` is synced** through the same path, so a restored record is searchable again only if it matches the source. -- **No data engine bound:** a source without `where` still builds from the event payload; a source with `where` is not synced, and the service says so once per source at `warn`. -- **One document at a time.** Syncs of the same document run one after another in the process, so two opposite events for one record end with the index agreeing with the database. A write's sync can wait behind an earlier in-flight sync of the same document. -- The sync runs before the write's unit of work commits (it re-reads inside the same transaction). A rolled-back write leaves the index wrong until the record's next event or a `reindexSource`, in one of two ways: if the uncommitted row matched, the document stays built from a row that never committed; if it did not match, the document was deleted, so the committed row, which may still match, is missing from the index. Bulk `data.records.*` events are still not synced. `content/docs/protocol/knowledge.mdx` states both. - -Nothing to change in an app: the same `where` now holds on both paths. diff --git a/.changeset/36992-knowledge-reindex-paging.md b/.changeset/36992-knowledge-reindex-paging.md deleted file mode 100644 index c6f444909e9..00000000000 --- a/.changeset/36992-knowledge-reindex-paging.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@objectstack/service-knowledge': patch ---- - -fix(service-knowledge): `reindexSource` reads and indexes an object source one page at a time - -Clause-②: no -Metadata-protocol: none - -`reindexSource` read the whole object in one `find` with no `limit` and pushed every document to the adapter in one `upsert`, so reindexing a large object could exhaust memory or exceed the adapter's request budget. - -- **Paged by id.** The walk reads at most 100 rows per `find`, ordered by `id`, each page continuing after the last id of the one before (`where AND id > cursor`), and upserts each page in its own adapter call before reading the next. Every `find` now carries a `limit`, and no `upsert` holds more than one page. Each row goes through the same field rules as the record-change sync. Only an empty page ends the walk: a page that comes back short (an `afterFind` hook may drop rows) is followed by the next one. -- **`limit` still caps the total** number of rows a reindex takes; the last page is shortened to it. A fractional `limit` is rounded down; a negative or non-finite one is refused with `ok: false` and nothing is read. -- **`dryRun` asks `count`** under the source's `where` instead of reading rows, and reports that count, capped by `limit`. -- **A failed page ends the run with `ok: false`** instead of a thrown error. The `message` names the page and the id it continued after; `discovered` and `indexed` count the pages done before it, which stay in the index. A page whose last row has no id, or an engine that does not honour the id condition, also ends the run with `ok: false` instead of looping. -- **Reindexes of one source wait for each other** in a process: a second `reindexSource` of the same source starts only after the first has finished, so the two never interleave. Different sources still reindex concurrently. Record-change syncs do not wait for a reindex: a record updated or deleted between a page's read and that page's upsert is written back from the older read, and a deleted record's document then stays until the index purge (#37096). -- A reindex removes no documents: those of records that no longer exist or no longer match stay until the index purge (#37096). The bulk-write warning and `content/docs/protocol/knowledge.mdx` now say so instead of recommending a reindex to repair a predicate delete. - -Nothing to change in an app. A caller that caught a thrown error from `reindexSource` should read `ok` and `message` on the result instead. diff --git a/.changeset/36995-embedder-openai-batches.md b/.changeset/36995-embedder-openai-batches.md deleted file mode 100644 index d79ca9fcb55..00000000000 --- a/.changeset/36995-embedder-openai-batches.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@objectstack/embedder-openai': patch ---- - -fix(embedder-openai): `embed()` splits its input into batches of the provider's per-request cap, so a reindex larger than the cap is no longer rejected - -Clause-②: yes -Metadata-protocol: none - -`OpenAIEmbedder.embed()` sent every input in one `/embeddings` request, so a provider that caps the number of inputs per request rejected any call above its cap (阿里通义 DashScope `text-embedding-v3` takes 10, `text-embedding-v1`/`v2` 25, 智谱 `embedding-3` 64, 硅基流动 SiliconFlow 32, OpenAI 2048). It now sends at most the model's documented cap per request, one batch after another, and returns the vectors in input order. - -- A model in the embedder's known-model table is batched at its provider's documented cap. -- Any other model is batched at 10 inputs per request, and the embedder logs one warning per instance naming the model. -- The new `maxBatchSize` option (a positive integer; anything else throws at construction) sets the batch size explicitly and silences that warning. Use it when your provider or gateway documents a different cap. -- A failing batch fails the whole call, and no later batch is sent. The error keeps the provider's status and response text and appends the 0-based batch index and the input range, for example `[batch index 1 of 3 (0-based), inputs 10..19]`. - -What to do: nothing for the providers listed above. On another provider, set `maxBatchSize` to its documented cap to drop the warning, or to raise the default of 10. diff --git a/.changeset/36998-record-drawer-assistant-entry.md b/.changeset/36998-record-drawer-assistant-entry.md deleted file mode 100644 index f212d240a1f..00000000000 --- a/.changeset/36998-record-drawer-assistant-entry.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(console): the record drawer's bar opens the assistant - -Clause-②: no -Metadata-protocol: none - -The record side drawer is drawn over the right end of the console's top bar, where the assistant's one entry (the robot) sits, so while a record was open in the drawer the assistant could not be opened. The drawer's bar now carries an 「AI Assistant」 control wherever the robot is drawn (the runtime serves AI): it opens the record as its full page, as 「Open as full page」 does, with the assistant open beside it. Both drawers carry it: the object list's (and a record page's) drawer, and the data page's. Without the assistant no control is drawn. The label is the robot's own, already in every locale. diff --git a/.changeset/36999-conversation-focus.md b/.changeset/36999-conversation-focus.md deleted file mode 100644 index 6bfdfdaa38f..00000000000 --- a/.changeset/36999-conversation-focus.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -'@objectstack/spec': minor -'@object-ui/plugin-chatbot': patch -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -feat(console): a chat conversation can be pinned to one record — sent as `context.focus` on every turn, shown as a chip in the composer, kept across navigation — where the agent declares `capabilities.focus` - -Clause-②: yes -Metadata-protocol: added - -**Contract (`@objectstack/spec`).** `ToolExecutionContext` gains `focus?: { object: string; id: string }[]`, beside `surfaceContext`: the record(s) the conversation is pinned to, as the client reports them on every turn. Client-reported and advisory, never an access decision; a consumer re-reads the record as the caller. At most one entry in phase 1. The agent catalog row (`AiAgentCapabilitiesSchema`, `GET /api/v1/ai/agents`) gains an optional `capabilities.focus: boolean`: an agent that honours the focus says so, and an absent flag reads as false. Both are additions; nothing is removed or renamed, and every catalog row served before the flag still parses. - -**Console (`@object-ui/app-shell`, `@object-ui/plugin-chatbot`, `@object-ui/i18n`).** Where the agent the chat runs declares `capabilities.focus: true`: - -- The composer's page chip is drawn in the row above the input (where the drafts line sits) instead of on the input's top edge, and carries a pin when the page shows one record (a record page, or a record open in a list's drawer). Pinning makes every later turn send `context.focus: [{ object, id }]`, the first turn of a new conversation included, until the user removes it with the chip's remove control. -- The pinned record's chip replaces the page chip and names the record by its display name, read in the browser as the user; a record the user cannot read keeps its `object · id` pair. -- Opening another record while one is pinned asks once whether to ask about that one instead; a decline is remembered for the conversation. -- The focus belongs to the conversation: it never changes which conversation the drawer shows, and it is restored when that conversation is shown again in the same tab. -- `setChatFocus({ object, id })` (exported from `@object-ui/app-shell`) is the setter every entry point pins through. - -Where the agent does not declare the flag — every server today — nothing changes: no pin, no chip, no `focus` key in the request, and the page chip stays where it was. `AgentCapabilities` in `@object-ui/plugin-chatbot` gains `focus`, read from the catalog; unlike the build-era capabilities it has no name-based fallback for older servers. New locale keys `console.ai.focus.pin`, `.pinned`, `.remove`, `.switchPrompt`, `.switchAccept` and `.switchDecline`, in every pack. diff --git a/.changeset/37008-gallery-formula-label.md b/.changeset/37008-gallery-formula-label.md deleted file mode 100644 index 7d52423f2f5..00000000000 --- a/.changeset/37008-gallery-formula-label.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@object-ui/fields': patch -'@object-ui/plugin-list': patch ---- - -fix(plugin-list): a gallery card labels and formats a formula or summary column whose result is a number, an amount or a percentage - -Clause-②: yes -Metadata-protocol: none - -A gallery card, which is also how a phone draws a related list's rows, now gives a `formula` or `summary` column the same treatment as a stored number when its result is a number, an amount or a percentage: the field's label before the value, and the format the related-list table gives the same field. A `returnType: 'currency'` formula reads `Total 12,000.00` on the card, as it does in the table. Before, it read a bare `12,000` beside `Unit price 6,000.00`, so the reader could not tell what the figure was. A summary declaring its `currencyConfig` reads as money in the same way. A formula whose result is text stays unlabeled, as a text field does. - -The card's field builder now hands the cell `returnType` and `currencyConfig`, the two declarations the related-list table's builder already hands it. A plain `currency` field with a fixed `currencyConfig` therefore also shows its own currency on a card instead of the tenant default. - -`@object-ui/fields` exports `resolveFormulaValueType(field, value)`, the rule the formula cell uses to choose how it draws a result. The formula cell now calls it, and so does the card's label decision, so the two cannot disagree. diff --git a/.changeset/37010-phone-card-formula-title-subtitle.md b/.changeset/37010-phone-card-formula-title-subtitle.md deleted file mode 100644 index 1968ca1789e..00000000000 --- a/.changeset/37010-phone-card-formula-title-subtitle.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/plugin-grid': patch ---- - -fix(plugin-grid): a phone list card never repeats a formula title in its subtitle - -Clause-②: no -Metadata-protocol: none - -On a phone, a list card whose object names its records with a `formula` name field (a case's `display_title` = `case_number - subject`) showed the title's parts again in the subtitle when the view showed them as its leading columns, so the subtitle had no room for anything else. The subtitle now skips every shown column whose field the name field's formula reads (a read through a lookup, `record.account.name`, skips the lookup's column) and takes the next shown columns instead: `CASE-00037 - Demo case 29 — critical problem` over `紧急 · Polar Cargo`. A name field that is not a formula keeps the subtitle it had. diff --git a/.changeset/37013-platform-skill-own-slot.md b/.changeset/37013-platform-skill-own-slot.md deleted file mode 100644 index dd1cc60f9c5..00000000000 --- a/.changeset/37013-platform-skill-own-slot.md +++ /dev/null @@ -1,31 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/metadata': minor -'@object-ui/data-objectstack': minor -'@objectstack/metadata-protocol': minor ---- - -fix(metadata): a skill the platform registers keeps its own slot beside an app's skill of the same name - -Clause-②: yes (widening) -Metadata-protocol: added -Skills-docs: none — no skills/ page names `_provenance` or its values, and the new value is one no author writes: the artifact door refuses it - -`MetadataProvenanceSchema` (`@objectstack/spec/kernel`) gains `'platform'`: the `_provenance` of a record the platform's own code registers at boot. It is a store-slot marker only, read at the item's own top-level `_provenance` key and nowhere else, and only the metadata service sets it. - -For every type stored per `(package, name)` (`skill`, `agent`, `tool` and the rest of `PACKAGE_SLOTTED_STORE_TYPES`), the platform's built-in record and a package's item of the same name no longer overwrite each other, in memory, in `sys_metadata`, and on a process or cluster peer that reads them back from the rows. - -- `MetadataManager.register(type, name, data, { origin: 'platform' })` marks a record the platform's own code registers: the body is stamped `_provenance: 'platform'` and the record fills the name's bare slot, in memory and in `sys_metadata`. Before, a package-less write under a name one package held was folded into that package's slot as its customization, so the platform's boot registration rewrote the app's skill. -- A package's first item of a name no longer takes over the bare slot when the platform's record is in it; the two stay side by side. For a bundled type (`email_template`) the row judged is the written member's. The environment's own item in the bare slot is still taken over, as before. -- A package-less environment write under a platform name keeps today's rule: it takes the bare slot without the stamp, and the platform's next registration restores its record. -- The readers that rebuild the store from loaders and rows keep both records: the plural read (`loadMany`, `loadManyKeyed`) gives the platform's entry a key of its own, `list` keeps a loader's platform row beside a package's slot and a loader's package item beside a platform slot, and a read naming a package is never answered from the platform's record. -- `MetadataManager.unregister(type, name, { origin: 'platform' })` withdraws the platform's record only, from the registry, every loader (`MetadataLoaderDeleteOptions.platformOnly`) and every cluster peer. A package's item of the name and the environment's own item are never taken, for any type, and nothing is refused however many packages hold the name. Before, a removal naming no package took every slot of a name one package held. On a host that declares a package id, the boot pass leaves the platform's stored record without the host's package, for every type, so the withdrawal takes the registry's copy too. -- `MetadataManager.getPlatformItem(type, name)` reads the platform's record only, never a package's item and never the environment's own. -- No other write carries the platform stamp. `register` without `origin: 'platform'`, `registerInMemory`, `save` and `rollback` store the body without it, and so do the metadata protocol's save door and its restore doors (`rollbackMetaItem` and the restore limb of `revertCommit`); a stored row the boot pass re-registers keeps it only when the row held it as read. `rollback` whose row is the platform's own record is refused (`409 RESOURCE_CONFLICT`, naming the fix), with nothing written. The metadata protocol's two undo writes, of a refused batch publish's landed promotions and of a failed batch row write, put a row back as the same operation found it, byte for byte, so the mark comes back only where the row held it. A body served from a loader other than a `datasource:` one is served without it; `getPublished` serves it on the answer's top level only when the stored item carries it there, and never inside a publish snapshot; and the artifact door refuses an item that carries it, with or without a manifest id (`VALIDATION_ERROR` at `_provenance`, naming the fix). A `_provenance` key nested in the body (an authored `metadata` record, for one) is the author's data: it is kept as written and never read as the mark. A body that names a package is that package's item, whatever `_provenance` it carries. -- `@objectstack/metadata` exports the mark's one definition (`PLATFORM_PROVENANCE`, `carriesPlatformStamp`, `isPlatformOrigin`, `withoutPlatformOrigin`); the artifact door and the metadata protocol's doors read it. -- `@objectstack/metadata-protocol`: the boot census `metadata_sealed_overlay_unserved` no longer names the platform's own row beside a package that ships the name, nor prescribes deleting it. -- Reads naming no package, and every removal and write without the option, keep their rules. -- Public API added on `MetadataManager`: the `origin` option of `MetadataRegisterOptions` and `MetadataUnregisterOptions`, and `getPlatformItem`. The spec's `MetadataWriteOptions` is not widened. -- `@object-ui/data-objectstack`: the layered read's `provenance` is typed from the spec's `MetadataProvenance`, so it accepts `'platform'`. - -Callers that register built-ins at boot pass `{ origin: 'platform' }` to `register` and `unregister` to get this behaviour; without it, a write is treated as before. diff --git a/.changeset/37018-mobile-drawer-a11y-name.md b/.changeset/37018-mobile-drawer-a11y-name.md deleted file mode 100644 index 0b8b30e69b7..00000000000 --- a/.changeset/37018-mobile-drawer-a11y-name.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/components': patch ---- - -fix(components): the phone navigation drawer announces its name in the session's language - -Clause-②: no -Metadata-protocol: none - -Below the mobile breakpoint `Sidebar` opens a drawer whose screen-reader name was the English "Sidebar", with the English description "Displays the mobile sidebar.", in every locale. The drawer is now named with `console.nav.menuLabel` (en "App navigation", zh-Hans "应用导航"), the name the app menu inside it already announces, and it has no description. Nothing visible changes. The edit to the regenerated Shadcn `sidebar.tsx` is declared as the `sidebar-drawer-label-*` patches in `ui/scripts/shadcn-local-patches.mjs`, so a shadcn sync keeps it. diff --git a/.changeset/37025-import-blank-multi-value-key-language.md b/.changeset/37025-import-blank-multi-value-key-language.md deleted file mode 100644 index 54de727a378..00000000000 --- a/.changeset/37025-import-blank-multi-value-key-language.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@objectstack/spec': patch -'@objectstack/core': patch ---- - -Clause-②: no -Metadata-protocol: none - -Two more import row refusals are now sentences of the built-in validation message catalog (`BUILTIN_VALIDATION_MESSAGES`, all four platform locales) and name fields by their label instead of their API name, the same way the duplicate-match-key row does. Each reads in the caller's locale when the caller carries one and in English otherwise, and a deployment override reaches it only where the caller passes a translator. A row blank on every ordered key set (`BLANK_MATCH_KEY`) reads the new `import_blank_match_key` entry, naming each key set by label (`Email; Phone + Company`); its caller is the import endpoint (`POST /data/:object/import` with ordered key sets), which passes the request locale and the deployment's translator, so it reads in the request language and can be overridden under `validation.field.import_blank_match_key`. A run whose match key names a field holding a list or a structured value fails every row with the new `import_multi_value_match_key` entry, naming those fields by label; its only callers are the ones that reach the import runner without the import door (the connector and datasource pulls), which pass no request locale and no translator, so there it reads in English and `validation.field.import_multi_value_match_key` is not consulted. A deployment override of any of the three match-key sentences can name the API names as `{{field}}`. The rows keep their shape and codes (`BLANK_MATCH_KEY`, `VALIDATION_ERROR`), and the multi-value row's `field` still carries the API name; only the `error` text changes. The import door's own `400 INVALID_REQUEST` refusal of such a key is unchanged. diff --git a/.changeset/37028-footer-count-left-edge.md b/.changeset/37028-footer-count-left-edge.md deleted file mode 100644 index 73e1b631145..00000000000 --- a/.changeset/37028-footer-count-left-edge.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/components': patch ---- - -fix(ui): the list footer's record count starts on the list page's one left edge - -Clause-②: no -Metadata-protocol: none - -- The summary row at the foot of a list table led with its record count inside the first column's cell, after the 40px selection cell, so the count sat 52px in while the page bar's icon, the select-all box and every row checkbox sit 16px in. Where the table draws a selection or row-number cell, the summary row's first cell now spans that cell and starts at its 16px inset, so the count lines up with the select-all box, on a list that fits and on one that scrolls sideways (the cell stays frozen with the selection column). The first column's own figure still ends at its column's right edge. diff --git a/.changeset/37031-dashboard-binding-recheck.md b/.changeset/37031-dashboard-binding-recheck.md deleted file mode 100644 index 6226b13a109..00000000000 --- a/.changeset/37031-dashboard-binding-recheck.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(console): re-ticking a dashboard card's "Apply" for a page filter restores the field the app binds it to, so an opt-out can be undone - -Clause-②: no -Metadata-protocol: none - -In the dashboard's own edit state (and in Studio's dashboard editor), unticking "Apply" under a card's "Follows the filters at the top of the page" writes the card's opt-out (`filterBindings: { NAME: false }`). Ticking it again used to drop the entry, which makes the card follow the filter's own field rather than the field the app binds it to. A dashboard save stores the whole document, so the re-target the app ships (for example `dateRange: 'signed_on'` on a card whose dataset has no `issued_on`) was lost: the save then bound the card to a field its dataset lacks, the publish was refused (`dashboard-filter-field-unknown`), and the opt-out stayed in force with no way to undo it from the editor. - -Re-ticking now restores the binding the dashboard as shipped by its package gives that card (the layered read's `code` layer) when it re-targets the filter to a field; where the shipped card opts out too, or binds nothing, the entry is dropped as before. The edit state reads the shipped layer in the same layered read it opens the document from, and Studio's editor hands it to the card panel from the read it already makes. Nothing else a save writes changes, and no new strings. diff --git a/.changeset/37033-matrix-drill-columns.md b/.changeset/37033-matrix-drill-columns.md deleted file mode 100644 index ddb4e1b4bd0..00000000000 --- a/.changeset/37033-matrix-drill-columns.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/plugin-report': patch ---- - -fix(plugin-report): a report matrix cell's drill list shows the fields the cell stands for - -Clause-②: no -Metadata-protocol: none - -A matrix cell's drill now opens its record list with the down dimension's field, the across dimension's field and the measured field as default columns after the record name, the same defaults a summary line's drill already used. Before, the matrix drill listed only the record name. The filter is unchanged: the list still holds exactly the records the measure counted. diff --git a/.changeset/37034-date-condition-chips.md b/.changeset/37034-date-condition-chips.md deleted file mode 100644 index ce295142791..00000000000 --- a/.changeset/37034-date-condition-chips.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@object-ui/plugin-list': patch ---- - -fix(plugin-list): a date condition's value reads as a date in the viewer's language - -Clause-②: no -Metadata-protocol: none - -A list condition chip on a date field printed the stored value as written, so a -drilled dashboard bucket read 「创建时间:≥ 2026-10-01T00:00:00.000Z」 in a zh-CN -session. Every condition row (the reader's chips and the view's locked chips) now -formats a date-family value by the field's type through the console's one date -display path (`formatDate` / `formatDateTime` from `@object-ui/core`), in the -display locale: a `date` field shows the day with its year (an instant at UTC -midnight shows that calendar day in every zone), a `datetime` field shows the -date and time in the display zone, and a `time` field or an unreadable value is -shown as written. The filter the list sends is unchanged. diff --git a/.changeset/37041-batch-lock-detail-lines.md b/.changeset/37041-batch-lock-detail-lines.md deleted file mode 100644 index 247804f3eec..00000000000 --- a/.changeset/37041-batch-lock-detail-lines.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@objectstack/plugin-approvals': patch -'@objectstack/spec': patch ---- - -fix(plugin-approvals): the batch lock read answers a line of a held master as locked, as the single read does - -Clause-②: no -Metadata-protocol: none - -`getRecordLocks` (`POST /api/v1/approvals/records/:object/locks`) answered `locked: false` for a master-detail line whose master is held by a locking approval, while `getRecordLock` answered `locked: true` and the line's write was refused `RECORD_LOCKED`. The batch read now asks the detail-row lock too, through its new batch form `detailRowsHeldByLockingApproval`: one read of the rows' master-detail columns plus one lookup per master-detail edge, whatever the page size, never one read per row. The answer's shape is unchanged (`{ locked }` or `null`); a list page that reads the batch door now stops offering an editor on such a line. The `getRecordLock` / `getRecordLocks` contract docblocks in `@objectstack/spec` now say a line of a held master answers `true`. diff --git a/.changeset/37042-skills-inline-edit-boolean.md b/.changeset/37042-skills-inline-edit-boolean.md deleted file mode 100644 index b2aa46f037e..00000000000 --- a/.changeset/37042-skills-inline-edit-boolean.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -docs(skills): the data and UI skills no longer teach a boolean `inlineEdit` on a master-detail relationship - -Clause-②: no -Metadata-protocol: none - -objectstack-data's `rules/relationships.md`, "Inline-edit form factor": the `inlineEdit: true // auto (default)` line is gone, and the smart default is now described as what an omitted key gets, with a note that a boolean is refused. The spec parse refuses `true` and `false` on a relationship field's `inlineEdit` since 18.7.0; only `'grid'` and `'form'` are accepted, and leaving the key out picks the form factor from the child's shape. `evals/objects-fields-relationships.json` case 25 drops the same `true` from its expected answer. objectstack-ui's `rules/list-views.md`, Master-Detail Forms: the pointer to that section no longer lists `true` beside `'grid'` and `'form'`; it says `'grid'` / `'form'` or left out. diff --git a/.changeset/37057-actionlayout-validate-scope.md b/.changeset/37057-actionlayout-validate-scope.md deleted file mode 100644 index 05691f90d9c..00000000000 --- a/.changeset/37057-actionlayout-validate-scope.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -docs(skills): objectstack-ui says where `os validate` judges `actionLayout` names - -Clause-②: no -Metadata-protocol: none - -objectstack-ui's `rules/actions.md`, "Button Order (`actionLayout`)": the sentence "`os validate` refuses a name the arm's scope does not place" now says where that holds: on the object, or on an extension of an object the same stack defines. The next sentence, on the paired `.custom` package's extension of an installed object, now says those names are not judged there and that a wrong name draws nothing. The rule itself is unchanged; the text said more than the rule does. Three Add to Campaign example lines that repeated a key another example in the file already shows (`icon`, `successMessage`, `refreshAfter`) and the gloss "(the handler's answer)" on the copy-holes bullet, which the `resultDialog` bullet above it already says, were removed to pay for the new words. diff --git a/.changeset/37058-skills-catalog-sys-task-note.md b/.changeset/37058-skills-catalog-sys-task-note.md deleted file mode 100644 index 5f519caef9b..00000000000 --- a/.changeset/37058-skills-catalog-sys-task-note.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -docs(skills): the objectstack-project platform catalog lists the built-in `sys_task` and `sys_note` objects - -Clause-②: no -Metadata-protocol: none - -The catalog's "Platform objects an app would otherwise build" section gains a "Tasks and notes" group, so an app that needs to-dos or notes uses the platform's objects instead of declaring its own. Each row says what the object holds, that it carries no link to another record, which list views ship (`assigned_to_me`, `created_by_me`, `all` on `sys_task`; `mine`, `all` on `sys_note`), and that rows are private (a task to its creator and assignee, a note to its creator) while `member_default` grants read, create and edit, not delete, without widening that. The task row spells the navigation entry an app uses: `type: 'object'` with `objectName` and `requiresObject` both `sys_task`. The `sys_comment` row now reads "a comments or record-notes table", since neither new object links to a record. One eval case covers the to-do request. diff --git a/.changeset/37080-console-reads-bearer.md b/.changeset/37080-console-reads-bearer.md deleted file mode 100644 index 08e6e34537d..00000000000 --- a/.changeset/37080-console-reads-bearer.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/console': patch ---- - -fix(console): the developer pages and the device sign-in approval send the stored sign-in token, so a session held by its token alone works there too - -Clause-②: no -Metadata-protocol: none - -The developer integrations page, the agent-connect section (discovery and creating an API key) and the device sign-in approval (claim, approve, deny) asked this server with the session cookie only, so a session held by its sign-in (bearer) token alone was refused there. They now send the stored token as well, as the other same-server console requests do. The session cookie is still sent, so a cookie session behaves exactly as before, and a refused request now reaches the console's session-ended check. Nothing changes in what the server accepts. diff --git a/.changeset/37080-shell-reads-bearer.md b/.changeset/37080-shell-reads-bearer.md deleted file mode 100644 index 5e07905f7ce..00000000000 --- a/.changeset/37080-shell-reads-bearer.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -fix(app-shell): the package list, Studio, AI chat and draft screens send the stored sign-in token, so a session held by its token alone keeps its packages, Studio and design entries - -Clause-②: no -Metadata-protocol: none - -These screens asked this server for their data with the session cookie only, while the other same-server console requests also send the stored sign-in (bearer) token. A session held by its token alone (a second local runtime on the same host replaced the cookie, the browser blocked it as a third-party cookie, or the cookie jar was cleared) was refused there. The most visible case was the package list behind the sidebar, the app header, the command palette and the Studio entries: every package went missing, and the Studio and design entries with it, with no error shown. - -They now send the token as well: - -- packages: the package list and the package switcher, creating a package's customization package, duplicating a package, a package's customizations, and the package form; -- Studio: the automation status, cloning a flow, cloning a permission set, the flow picker and connector inputs, a flow's run history and node palette, the page preview, the sharing-rule catalog and catalog activation, and the packaged action and flow ledgers in Setup; -- drafts: the pending drafts, the unpublished-app bar, the draft changes panel and its flow checks, and the commit history with its revert; -- AI: the conversation list and conversations, the build-debug report, AI usage, and suggested bindings; -- the inbox bell, the approval feeds and a record's approvals, and changing a record's owner; -- the shell: the no-access state, the deployment notice, the connect-agent widget, the context selectors (only for requests to this server's own origin), the design-mode language list, and the marketplace's install steps on this server. - -The session cookie is still sent, so a cookie session behaves exactly as before, and a refused request now reaches the console's session-ended check. A few requests stay cookie-only for now, among them sign-in, the OAuth hand-off, public forms and calls to the cloud control plane; they are unchanged. Nothing changes in what the server accepts. diff --git a/.changeset/37081-action-error-detail-message-first.md b/.changeset/37081-action-error-detail-message-first.md deleted file mode 100644 index 1122161c129..00000000000 --- a/.changeset/37081-action-error-detail-message-first.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/core': patch ---- - -fix(core): a refusal that carries a `message` beside a bare-string `error` code shows the message - -Clause-②: no -Metadata-protocol: none - -`actionErrorDetail` returned a bare-string `error` before it read `message`. Against the REST seam's flat 401 body, `{error: 'UNAUTHENTICATED', code, message}`, every caller showed the user the code `UNAUTHENTICATED` instead of the sentence. Now, when the body has both a non-empty string `error` and a non-empty string `message`, the message is returned. A body with only `{error: 'sentence'}` still returns that sentence, the nested `{error: {message}}` envelope is read as before (still ahead of a top-level `message`), and the fallback is unchanged. diff --git a/.changeset/37082-studio-group-names.md b/.changeset/37082-studio-group-names.md deleted file mode 100644 index 0dfb8c6b92e..00000000000 --- a/.changeset/37082-studio-group-names.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -fix(studio): one name per group: the directory and a type page's badge say Platform / Access, like the menu - -Clause-②: no -Metadata-protocol: none - -ADR-0084 (amended) · part of the Studio redesign follow-ups. - -- **The shared domain dictionary (`translateMetadataDomain`) names the `system` group Platform / 平台 and the `security` group Access / 访问**, the amended ADR-0084's group names. It used to say System / 系统 and Security / 安全 while the Studio left menu said Platform / Access. -- **Every place a group is named now reads that one dictionary:** the Studio left menu (`studioMenuGroupLabel` reads it instead of its own two keys), the All metadata directory's group headings and domain chips, and the domain badge on a type or item page (`PageShell`). Setup's datasource pages draw the same badge, so a datasource reads Platform / 平台 there too, the group ADR-0084 puts it in. -- The menu-only keys `engine.studio.menu.groupSystem` and `engine.studio.menu.groupSecurity` are removed from the `studio` namespace (en and zh); nothing reads them any more. diff --git a/.changeset/37093-embedder-input-limit.md b/.changeset/37093-embedder-input-limit.md deleted file mode 100644 index b6089f72561..00000000000 --- a/.changeset/37093-embedder-input-limit.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -'@objectstack/embedder-openai': patch -'@objectstack/spec': patch ---- - -feat(embedder-openai): an over-limit input is refused, not truncated — known-model input limits and one shared token estimate - -Clause-②: yes -Metadata-protocol: none - -When a limit applies (a model in the known-model table, or `maxInputTokens`), `OpenAIEmbedder.embed()` now measures every input before it sends anything. When one input is over the model's per-input token limit, the call fails with an error naming the input's 0-based index, the model, the estimate and the limit; nothing is sent, so the provider never silently truncates the text and drops its tail from the index. An input at or under the limit is sent unchanged. - -- The known-model table gains each model's provider-documented per-input limit: OpenAI `text-embedding-3-small` / `-3-large` / `ada-002` 8192, DashScope `text-embedding-v3` 8192 and `-v2` / `-v1` 2048, BigModel `embedding-3` 3072 and `embedding-2` 512, SiliconFlow `BAAI/bge-m3` 8192 and `BAAI/bge-large-zh-v1.5` / `-en-v1.5` 512. -- New option `OpenAIEmbedderOptions.maxInputTokens` (a positive integer) overrides the table. -- A model that is not in the table, with no `maxInputTokens`, has no limit and warns once per embedder instance. That warning is the same single warning an unknown model already gave for its batch size: one instance warns at most once, naming every option it is missing. - -`@objectstack/spec/shared` exports `estimateTokens(text)`, its `TOKEN_ESTIMATE_MARGIN` (1.1) and `ASCII_RUN_CHARS_PER_TOKEN` (`{ letters: 4, digits: 3, mixed: 2 }`): the one conservative token estimate the embedder uses, for an app that sizes its own chunks to call too. CJK characters and full-width punctuation count 1.5 each, a run of ASCII letters only ceil(length / 4), of digits only ceil(length / 3), and of letters and digits mixed ceil(length / 2), any other punctuation mark or character 1, whitespace 0; the sum is multiplied by 1.1 and rounded up. - -The estimate is conservative: on Chinese text it runs about 1.4 times the real token count. It is at or above OpenAI `cl100k` counts on Chinese, mixed Chinese/English and English-heavy text (long words, numbers, URLs, code); text made mostly of random hex or base64 (UUIDs, hashes) can estimate below its real count. - -What to do: nothing for a known model. A call that used to send a text over the model's limit — which the provider truncated — now fails instead. Because the estimate errs high, a text whose real count is under the limit can now be refused too, although it was never truncated. For example, on a 512-token model such as `BAAI/bge-large-zh-v1.5`, whose tokenizer counts about one token per Chinese character, a Chinese text of about 311 to 510 characters fits the model but estimates over 512 (311 characters estimate 514), so it is now refused; 310 characters estimate 512 and are sent. In both cases split the text smaller, or set `maxInputTokens` yourself if you know the model's real count fits. For a model outside the table, set `maxInputTokens` to your provider's documented limit, which also silences the warning; an app that set only `maxBatchSize` for such a model now sees the warning again until it sets `maxInputTokens` too. diff --git a/.changeset/37109-pref-save-waits-load.md b/.changeset/37109-pref-save-waits-load.md deleted file mode 100644 index bffbf167386..00000000000 --- a/.changeset/37109-pref-save-waits-load.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/data-objectstack': patch ---- - -fix(data-objectstack): a user-preference save waits for the adapter's in-flight load instead of reading its row again - -Clause-②: no -Metadata-protocol: none - -The user-state adapters (`createObjectStackUserStateAdapter`) load their `sys_user_preference` rows through one shared read and remember each row's id for later writes. A save issued before that read answered (for example the recent-items flush shortly after a page opens) found no remembered id and sent its own `sys_user_preference` read for the same key before writing, one extra request per page open on a slow connection. A save now waits for the adapter's load if one is in flight, then updates the row that load returned. When no load is in flight, or the load failed or found no row, a save behaves as before: it reads its own row, then updates it or creates it, and recovers from a lost create race by reading again and updating. Saves still run one at a time. The key-family adapter (`createObjectStackUserPreferenceFamily`) had the same gap and gets the same wait. diff --git a/.changeset/37127-scenarios-inline-edit-field-groups.md b/.changeset/37127-scenarios-inline-edit-field-groups.md deleted file mode 100644 index 99cded7a345..00000000000 --- a/.changeset/37127-scenarios-inline-edit-field-groups.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/scenarios': patch ---- - -fix(scenarios): the `records-forms.master-detail-inline-edit` tag credits a child its master's field group places, and no longer credits `inlineEdit` alone - -Clause-②: no -Metadata-protocol: none - -The tag now asks the same placement test the runtime's entry form uses: a master-detail child is edited inline on its master when a field group of the master names it (`fieldGroups[].relatedList`, the child object or `object.field`) and the FK is one a group may place. A build that inlines its lines that way, with no `inlineEdit` key, now passes the tag. `inlineEdit` alone credits nothing, whatever its value (`true`, `'grid'`, `'form'`): it does not place a child in the master's form, it only picks the form factor of a child a group places. diff --git a/.changeset/37133-turso-remote-aggregate-boolean-group-key.md b/.changeset/37133-turso-remote-aggregate-boolean-group-key.md deleted file mode 100644 index e0414dd727a..00000000000 --- a/.changeset/37133-turso-remote-aggregate-boolean-group-key.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/driver-turso': patch ---- - -fix(driver-turso): remote aggregate group keys over a boolean answer true/false, as local mode does - -Clause-②: no -Metadata-protocol: none - -On the remote face of `TursoDriver` (a `libsql://`, `https://` or `http://` database, as hosted environments use), `aggregate()` returned group-key columns exactly as the libSQL client hands them back. A group over a declared boolean field came back as `1` / `0` (and `null`), where the local and replica faces answer `true` / `false` / `null`. Reports, charts and `aggregate_records` grouped by a field such as "done" showed `0` / `1` on a hosted environment. - -Group-key columns now take the same read presentation `find()` applies to the column, keyed by the output column (`alias ?? field`), exactly as the local face does. Other declared kinds the shared presenter covers (date, time, datetime, audit timestamps, numbers) are presented the same way. Measures are unchanged: counts and totals are numbers as before, and `min` / `max` over a boolean still answer `0` / `1`. diff --git a/.changeset/37140-ai-context-get-record-context.md b/.changeset/37140-ai-context-get-record-context.md deleted file mode 100644 index 076a9d2ef71..00000000000 --- a/.changeset/37140-ai-context-get-record-context.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/core': minor -'@objectstack/metadata-core': minor -'@objectstack/objectql': minor -'@objectstack/metadata': minor -'@objectstack/runtime': minor -'@objectstack/mcp': minor -'@objectstack/service-record-context': minor -'@objectstack/lint': minor -'@objectstack/platform-objects': minor -'@object-ui/app-shell': minor -'@object-ui/i18n': minor ---- - -feat(ai): `ai_context` context packs and the `get_record_context` tool over MCP - -Clause-②: yes -Metadata-protocol: added -Skills-docs: follow-up #37177 — skills/objectstack-platform/SKILL.md, skills/objectstack-ai/ (how to author a context pack; this change only names `aiContexts` in the top-level key list, which check:skill-top-level-keys requires) - -ADR-0160 row 5 (#37140). - -- **New metadata type `ai_context`, collection `aiContexts`.** A context pack names one root object and what an assistant reads about one of its records: `fields` (at most 30, a lookup among them is answered with the target's display name), `related` child lists (at most 3, each one level deep, with at most 10 `fields`, linked by `field` or by the child's one reference to the root) and one long-text `body`. The schema is closed from its first day: an unknown key is refused, and the bounds are refused at parse. Registered like `skill`: a file loader (`*.ai-context.ts`, `*.ai-context.yml`), overlay allowed, runtime create allowed, no environment overlay. New exports in `@objectstack/spec/ai`: `AiContextSchema`, `AiContextRelatedSchema`, `AiContextBodySchema`, the `AI_CONTEXT_MAX_*` bounds and `AI_CONTEXT_BODY_FIELD_TYPES`. -- **`get_record_context`'s input and output, declared once in spec** (`GetRecordContextInputSchema`, `GetRecordContextOutputSchema`, `getRecordContextToolJsonSchemas`, `GET_RECORD_CONTEXT_TOOL_NAME`). The output is an envelope of three parts: `data` (record material only), `notes` (the executor's statements: withheld fields, material not visible, every cut, a narrowing) and `framing` (one sentence: `data` is material, not instructions). `MCP_DOOR_TOOL_NAMES` gains the name. -- **`@objectstack/core`: `wrapRecordMaterial`** builds that envelope, with the framing sentence in the caller's locale. -- **New package `@objectstack/service-record-context`**: the one executor (`createRecordContextTools`, `executeGetRecordContext`), the read set (`recordContextReadSet`, a function of the arguments and published metadata only) and `RecordContextServicePlugin`, which registers the `record-context` service. Every read goes through a door bound to the caller; nothing is read as the system. Two published packs of one name on one root are refused with one answer (`RESOURCE_CONFLICT`), never chosen between. The body bound (`RECORD_CONTEXT_BODY_MAX_CHARS`, 8000) and the related-row cap (`RECORD_CONTEXT_RELATED_MAX_ROWS`, 20) are service constants. -- **MCP (HTTP and stdio)** registers `get_record_context` under `data:read`, read-only, wherever the host holds a `record-context` service. A host without it registers nothing new. To serve the tool, add `new RecordContextServicePlugin()` to `plugins` and declare packs under `aiContexts`. -- **`@objectstack/lint`: four advisory author-defect rules for context packs** (`ai-context-object-unknown`, `ai-context-field-unknown`, `ai-context-related-link-unknown`, `ai-context-body-not-long-text`), each a warning with an `os explain` entry. `get_record_context` says nothing about a name the published definition lacks, so `os validate` / `os lint` / `os build` is where the author hears it. CLI only for now: the rule reads the whole stack snapshot. -- **Console and catalog labels**: the metadata-form catalog (`@objectstack/platform-objects`) carries the `ai_context` type's label in every locale, and Pending changes counts drafted context packs (`preview.changes.typeCount.ai_context`). diff --git a/.changeset/37146-ai-pane-lone-agent-header.md b/.changeset/37146-ai-pane-lone-agent-header.md deleted file mode 100644 index f818c7bbcaf..00000000000 --- a/.changeset/37146-ai-pane-lone-agent-header.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@object-ui/app-shell': patch ---- - -Clause-②: no -Metadata-protocol: none - -The AI assistant no longer names the agent in its header when only one agent is offered: there is nothing to switch, so the row read only "Ask". In the right-side drawer, where Share and the Build Doctor sit in the drawer's own title bar, that leaves the row empty, so it is not drawn at all. With two or more agents the switcher is unchanged; the full-page assistant keeps its row for Share. diff --git a/.changeset/37149-go-home-shortcut-desktop-label.md b/.changeset/37149-go-home-shortcut-desktop-label.md deleted file mode 100644 index 82256985335..00000000000 --- a/.changeset/37149-go-home-shortcut-desktop-label.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -fix(console): on a desktop the ⌘⇧H row names the app start page it opens, not the retired home page - -Clause-②: no -Metadata-protocol: none - -From 768 px up the platform home page is retired: `⌘⇧H` / `Ctrl+Shift+H` (unchanged) opens where `/` lands, the last-used app's start page. The keyboard-shortcuts dialog and the app pill's menu still called that 「Back to home」. On a desktop both now read 「Back to app start page」 (zh: 返回应用起始页), one wording for the one destination; the pill's row keeps its `⌘⇧H` keycaps. A phone, whose Home is still its app list, keeps 「Back to home」 in the dialog. - -Locale value change, no new key: `layout.appSwitcher.backToHome` in every built-in locale. No props or exports change. diff --git a/.changeset/37150-docs-pages-in-app-shell.md b/.changeset/37150-docs-pages-in-app-shell.md deleted file mode 100644 index 4557ba70067..00000000000 --- a/.changeset/37150-docs-pages-in-app-shell.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/console': patch -'@objectstack/console': patch ---- - -feat(console): an app's documentation pages draw in the app shell from 768 px up - -Clause-②: no -Metadata-protocol: none - -From 768 px up every app page lost the top bar and keeps the app menu, search, notifications and account in the sidebar. An app's documentation pages (`/apps/APP/docs`, a book, a flat doc link, an article) were the one exception: they kept the top bar at every width and mounted no sidebar. They now draw like every other app page there: no top bar, the resident sidebar with its usual head (the app-name menu, collapse, search, notifications) and foot (the account), and the page header's button group (assistant and help) at the top right. - -The documentation still has one navigation, its own: the sidebar's body carries the docs column (「← Back to APP」, every book of the app with the current one open, a title filter and 「All documentation」) in place of the app's menu. The reader no longer draws that column inside the page there. The app's other docs pages (its docs index, a book with no articles, a book or doc that is not found) carry the same column in the sidebar instead of a back link above the page. - -Unchanged: every docs address resolves to the same page as before, and a phone keeps its app bar, no sidebar and the in-page column. The `/docs` portal is not changed by this release. Nothing to migrate. diff --git a/.changeset/37151-record-lock-source.md b/.changeset/37151-record-lock-source.md deleted file mode 100644 index a1e0d9060f6..00000000000 --- a/.changeset/37151-record-lock-source.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -'@objectstack/spec': patch -'@objectstack/plugin-approvals': patch -'@objectstack/rest': patch -'@objectstack/client': patch ---- - -feat(plugin-approvals): the record lock reads say whether a row is held by its own approval or by its master's - -Clause-②: yes (widening: both lock doors' published entry gains a field) -Metadata-protocol: none - -Both approval lock reads (`IApprovalService.getRecordLock` and `getRecordLocks`, and their REST doors `GET /api/v1/approvals/records/:object/:recordId/lock` and `POST /api/v1/approvals/records/:object/locks`) now answer a locked record with `lockSource`, which approval holds it: - -- `'record'`: a pending request on the record itself, from a node whose `lockRecord` is not `false`. Deleting the record still goes through and cancels the request. -- `'master'`: the record is a `master_detail` line of a record so held. The server refuses the line's insert, update and delete with `409 RECORD_LOCKED`. - -When both hold (a line with a pending request of its own, under a held master), the answer is `'master'`, because that is the delete the server refuses. An unlocked record still answers `{ locked: false }`, with no `lockSource`, and `null` (`404 RECORD_NOT_FOUND` at the single door, `locked: null` in the batch door) still means unreadable or missing, never told apart. No request id, node, approvers or `pending` flag is served. A list can now hide Delete on a line whose master is under approval instead of offering a delete the server refuses. - -The `IApprovalService` return types gain the optional `lockSource?: 'record' | 'master'`, so an implementation may omit it on a locked answer and still satisfies the contract; the REST doors then serve `{ locked: true }` without a kind. - -Which rows count as readable is unchanged at both doors. The two doors keep different readability anchors on purpose: the single door counts any returned row, the batch door only the row whose id is the asked id; aligning them would narrow a published answer (seat ruling 7152650156 on #37151). So an id the database matches only under another spelling (a different letter case, `07` for a numeric `7`) answers `null` in the batch door. The single-record door counts the row it finds as readable and judges it, as before: a line of a held master answers `'master'`, because that check reads the row found, but a record's own request is looked up by the id as asked, so a record held by its own request may answer `{ locked: false }` under another spelling. A client asking with the ids the server gave it gets the same answer from both doors. - -`@objectstack/client`: `client.approvals.getRecordLock` and `getRecordLocks` type the answer with the optional `lockSource?: 'record' | 'master'`. diff --git a/.changeset/37157-import-ambiguous-match-language.md b/.changeset/37157-import-ambiguous-match-language.md deleted file mode 100644 index 52f28bde96c..00000000000 --- a/.changeset/37157-import-ambiguous-match-language.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@objectstack/spec': patch -'@objectstack/core': patch ---- - -Clause-②: no -Metadata-protocol: none - -The import row refusal for a row whose match key finds more than one stored record (`AMBIGUOUS_MATCH`) is now a sentence of the built-in validation message catalog (`BUILTIN_VALIDATION_MESSAGES`, all four platform locales), the new `import_ambiguous_match` entry, the same way the duplicate-key, blank-key and multi-value-key rows are. It names the key set the row was matched by its field labels instead of the old English `matchFields matched more than one <object> record`, which named the API parameter and the object's API name. It reads in the caller's locale when the caller carries one and in English otherwise, and a deployment override (`validation.field.import_ambiguous_match`, which can also print the API names as `{{field}}`) reaches it only where the caller passes a translator: the import endpoint (`POST /data/:object/import` and the async import job) passes both the request locale and the deployment's translator, while the connector and datasource pulls pass neither and so read English. The row keeps its shape and its code; only the `error` text changes. diff --git a/.changeset/37178-record-context-outline-entry-cap.md b/.changeset/37178-record-context-outline-entry-cap.md deleted file mode 100644 index 84844d3eb5b..00000000000 --- a/.changeset/37178-record-context-outline-entry-cap.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@objectstack/service-record-context': patch -'@objectstack/spec': patch ---- - -feat(ai): `get_record_context` caps a body outline's entries and states the cut - -Clause-②: yes (widening) -Metadata-protocol: none - -A long body comes back as an outline of its headings. That outline had no cap, so a long body that is mostly headings made an outline answer as big as the body. The outline is now bounded whatever the body holds. - -- **`RECORD_CONTEXT_OUTLINE_MAX_ENTRIES` (80), new export of `@objectstack/service-record-context`.** An outline lists at most 80 headings, and its listing, serialized, stays within `RECORD_CONTEXT_BODY_MAX_CHARS` (8000). When a body has more, the outline keeps the shallowest levels first and lists them in body order, so a listed section's text holds the headings left out under it. Every heading's `anchor` still reads its section, listed or not, and a listed anchor is the same whether or not the outline was cut. -- **New note kind `outline_truncated`** on `RecordContextNoteKind` in `@objectstack/spec/ai`. When the cap cuts, the answer carries one such note beside `body_outline`, and its sentence says how many headings are not listed. A consumer that switches over note kinds exhaustively must handle the new value. -- A body whose only heading is too long to list within the bound is carried as text up to the bound and marked `truncated`, the same as a long body with no headings. diff --git a/.changeset/37182-checklist-not-shown-memo.md b/.changeset/37182-checklist-not-shown-memo.md deleted file mode 100644 index 87cd6310bc9..00000000000 --- a/.changeset/37182-checklist-not-shown-memo.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/console': patch ---- - -fix(console): a session the server answered "not shown" sends no first-run checklist reads on its next console opens - -Clause-②: no -Metadata-protocol: none - -Since the first-run checklist's reads moved above every app route, every session holding any capability sent `GET /api/settings` after the first paint on every console open, only to learn it may not write `localization` and is never shown the checklist: a plain member, and an ordinary organization owner on the cloud control plane (it holds `setup.write`, but that plane's `localization` manifest asks `manage_platform_settings`). The provider now remembers that answer on the device, per organization, user and capability set, for one day, and asks nothing while it stands. An administrator's reads are unchanged; a changed capability set, another user or organization, an expired record, or a failed read reads again. diff --git a/.changeset/action-selection-read-scope.md b/.changeset/action-selection-read-scope.md deleted file mode 100644 index 1a04510be59..00000000000 --- a/.changeset/action-selection-read-scope.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -'@objectstack/runtime': patch ---- - -fix(runtime)!: an action's selection is read in the caller's scope before the action runs - -Clause-②: no (narrowing) -Metadata-protocol: none - -<!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is the answer the action doors (REST `POST /api/v1/actions/...`, MCP `run_action`, a host's `dispatchAction`) give a call whose `params._selectedIds` or whose param bag a param-less action does not accept: no stored row, registry key or authored value changes, so there is nothing for a migration to rewrite and no tombstone. --> - -The rule: a call names records by id only when the caller can read them. The per-record door already reads its `recordId` in the caller's own scope; a record-less call that carries a selection (`params._selectedIds`, the aggregate bulk dispatch) now has every id read the same way — with the per-record door's own read, as a row of the object the call names — before a script body or a flow starts. - -**BREAKING** for a caller of a `type: 'script'` or `type: 'flow'` action whose call carries `params._selectedIds`, and for a caller of a param-less handler action that sends a near-miss spelling of a built-in param. - -- FROM: such a call was dispatched as sent. -- TO: - - a selection with any id the caller's scope does not deliver is refused whole with `404 RECORD_NOT_FOUND` (the per-record door's answer; a hidden row and an id that names nothing answer alike), and nothing runs; - - a selection that is not a list of non-empty record ids, that names more than 5000 of them, or that is sent to an action called on no object is refused with `400 VALIDATION_FAILED`; - - on a param-less action, `selectedIds`, `__selectedIds`, `_recordId` and `_objectName` are refused with the param contract's own `400`, naming the built-in they miss by one underscore. Every other custom key still passes to the handler (ADR-0104 D2). - -**Not moved.** A declarative `operation: 'update'` action (it writes as the caller), a `type: 'api'` action (its target authorizes the caller) and a call made as the system principal are not read. A selection the caller can read whole reaches the handler exactly as sent, repeated ids included; a row the caller can read by its id is never refused as part of a selection. - -The fix for a caller: send only ids the caller can read, at most 5000 per call, under the built-in key `_selectedIds`. A body that writes each selected row is best declared `execution: 'perRecord'`, so each dispatch hands it that row as `ctx.record`. diff --git a/.changeset/autonumber-dark-colour.md b/.changeset/autonumber-dark-colour.md deleted file mode 100644 index 64166ea66c0..00000000000 --- a/.changeset/autonumber-dark-colour.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@object-ui/fields': patch ---- - -The auto-number field's read display now uses the theme's foreground colour instead of a fixed grey, so it stays readable in dark mode. diff --git a/.changeset/boolean-write-spelling-canonical.md b/.changeset/boolean-write-spelling-canonical.md deleted file mode 100644 index 447fec1716e..00000000000 --- a/.changeset/boolean-write-spelling-canonical.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@objectstack/driver-sql': patch -'@objectstack/driver-turso': patch ---- - -fix(driver-sql)!: a boolean field is stored as a boolean whatever spelling the caller sends - -Clause-②: no (narrowing) -Metadata-protocol: none - -<!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is the write door of the SQLite-family drivers (SqlDriver on SQLite, both faces of TursoDriver, SqliteWasmDriver) for a direct caller: a value on a declared boolean or toggle field that spells no boolean is refused instead of stored, and the spellings it accepts are stored as the boolean they spell. The engine's own door already refuses those values with invalid_boolean, so no authored metadata, seed or stored row is rewritten and nothing needs a tombstone. --> - -**BREAKING** for a caller that writes through a SQLite-family driver directly (`create`, `update`, `upsert`, `bulkCreate`, `bulkUpdate`, `updateMany`) and sends a declared `boolean` / `toggle` field a value that spells no boolean, such as `'yes'`, `'TRUE'`, `''`, `2` or an array: it used to be stored as written and is now refused with `VALIDATION_ERROR` / 400 before anything is written. It ships `patch` because it is a non-protocol breaking change (AGENTS.md Post-Task Checklist step 3): no metadata author writes a driver call, so `Metadata-protocol` is `none`, and the engine's door already refuses those values. - -A declared scalar `Field.boolean` / `Field.toggle` is now stored as a boolean on SQLite whatever spelling the write sends. `true` / `false`, the numbers `1` / `0` and the text `'1'` / `'0'`, `'true'` / `'false'` and `'1.0'` / `'0.0'` are bound as the boolean they spell, so a column the driver created holds the INTEGER `1` / `0` and a `text` column retyped to `boolean` holds the text `'1'` / `'0'`. These are the spellings the local boot convergence already rewrites, read from the same table. Before, a string reached the column as text, on the local and the remote face of `TursoDriver` alike, so filters, sorts and groups did not read the row as the boolean it was written as. That includes a `beforeInsert` / `beforeUpdate` hook that assigns a string to such a field: the engine's own rewrite runs before the hooks, so the assignment now lands as a boolean too. On the remote face, a number written to a `toggle` field is stored as `'1'` / `'0'` instead of `'1.0'` / `'0.0'`. - -A remote `TursoDriver.bulkCreate` checks every row before it writes the first one, so a refused row refuses the batch with nothing written, as the local face's single INSERT already did. `null` still writes NULL. Rows stored before this change keep their stored form. - -To keep a direct write working, send `true` or `false` (or one of the spellings above) for a boolean or toggle field. diff --git a/.changeset/cli-browser-launch-http-only-no-shell.md b/.changeset/cli-browser-launch-http-only-no-shell.md deleted file mode 100644 index 6efd7346071..00000000000 --- a/.changeset/cli-browser-launch-http-only-no-shell.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -'@objectstack/cli': patch ---- - -fix(cli)!: the CLI opens a sign-in page only for an http(s) address and never through a shell, and `os mcp connect` registers only an address that passes one parse - -Clause-②: no (narrowing) -Metadata-protocol: none - -<!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value, export or stored row is added, removed, renamed or re-shaped. What moves is which sign-in addresses the CLI opens in a browser, how it starts the programs it launches, and which MCP addresses and Windows installs `os mcp connect` registers with; there is nothing for a migration to rewrite and no tombstone. --> - -- **Sign-in pages.** `os login` and `os cloud login` open the device-flow sign-in page only when its address is an `http:` or `https:` URL written in plain URL characters. Any other address is printed, as it always was, with a line saying it was not opened. "Browser opened automatically" is printed only when the browser opener was started, and a line says so when it could not be started. The opener is started from an argument list, with no shell: `open` on macOS, `xdg-open` on Linux, and `rundll32.exe url.dll,FileProtocolHandler` (by its path under the Windows directory) on Windows. -- **Server text prints as one line.** Every string a server supplies that `os mcp connect`, `os login` or `os cloud login` prints (an environment's name and id, an error text, the sign-in address and the user code) reaches the terminal as one line of printable characters, with control characters shown escaped and the length capped; the browser still opens the sign-in address the server gave. After its Endpoint, Name and Connect lines, `os mcp connect` prints nothing from the control plane but those lines' own name and address. `--json` records are unchanged. -- **`os mcp connect` starts `claude` without a shell** on every platform. On Windows it runs the `claude.exe` (or `claude.com`) that the first matching fully qualified `PATH` entry holds (rooted at a drive letter, or a UNC share such as `\\server\share\bin`), by its full path; the current directory, relative entries and entries rooted at the current drive (`\bin`) are not searched. macOS and Linux behave as before. -- **BREAKING (Windows): a batch-file `claude` is no longer run.** - - FROM: on a Windows install whose `claude` is a batch-file shim (`claude.cmd`, which an npm global install writes), `os mcp connect` registered the server and exited 0. - - TO: it registers nothing and exits 1, printing the `claude mcp add` line and saying why. - - The fix: run the printed `claude mcp add …` line yourself, or install Claude Code's native Windows build and run `os mcp connect` again. -- **BREAKING: `os mcp connect` registers and prints only an address that passes one parse, on both paths.** Whether the address comes from `--url` or from the control plane, it must parse as an `http` or `https` URL with no user name or password, it is rebuilt from the parsed origin, and it may hold only letters, digits, `-`, `.`, `_`, `~`, `:`, `/`, `[` and `]` (an IPv6 host's brackets, and in a `--url` path prefix); an address from the control plane must also be a bare host (an optional scheme and port, no path, query or fragment), and no address may hold a control character. The printed Connect line double-quotes an address that holds a bracket, since sh-family shells read brackets as a pattern. - - FROM: such an address was registered and printed as given; a user name or password in `--url` was dropped without a word. - - TO: it is refused with exit 1; nothing is registered and no Connect line is printed. Each refusal names the characters accepted and a way on. - - The fix: for `--url`, pass a base URL in those characters with no user name or password, or run `claude mcp add --transport http NAME URL` yourself with the server's MCP address (a path prefix holding a percent-encoded or punctuation character has no spelling under the rule); for an environment, open it in the ObjectOS Cloud console and check its address. diff --git a/.changeset/cloud-4964-i18n-locales-once.md b/.changeset/cloud-4964-i18n-locales-once.md deleted file mode 100644 index 02cd19b1608..00000000000 --- a/.changeset/cloud-4964-i18n-locales-once.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/console': patch ---- - -fix(console): a signed-in open asks `GET /api/v1/i18n/locales` once, not twice - -Clause-②: no -Metadata-protocol: none - -The console has two readers of the locale list: the globe menu's locale codes (`loadLocales`) and the language load, which reads the server's declared fallback chain beside the active language's bundle (objectstack#36809). Each sent its own request, so every signed-in page open asked the server the same question twice. Both now share one answer per page load (`localesRead.ts`), and a language switch reuses it too. A failed read is not kept, so the next reader asks again, as before. diff --git a/.changeset/credential-change-ends-prior-access.md b/.changeset/credential-change-ends-prior-access.md deleted file mode 100644 index 8e7fbb6f8a9..00000000000 --- a/.changeset/credential-change-ends-prior-access.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -'@objectstack/plugin-auth': patch ---- - -fix(plugin-auth)!: a credential change ends access issued before it - -Clause-②: no (narrowing) -Metadata-protocol: none - -<!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value, metadata type or export is added, removed, renamed or re-shaped, and nothing stored is rewritten: what moves is the answer the auth doors give to an email-change link, a second-factor challenge or a password sign-in that predates the account's last password change, which is now the answer a link, challenge or password that was never valid gets. There is nothing for a migration to rewrite and no tombstone. --> - -Once an account's password changes, the following, issued for that account before the change, no longer grant access after it: - -- An email-change link (any link the email-change flow begun at `POST /api/v1/auth/change-email` mails, at either of its steps and to either address: the confirmation sent to the current address, and the link sent to the new one) minted before the change answers at `GET /api/v1/auth/verify-email` exactly what a link that was never issued answers: `401 INVALID_TOKEN`, or the `error=INVALID_TOKEN` redirect to its callback. Its owner requests a new one. A link's issue time is whole seconds, so one minted in the same second as the change is refused too. -- A second-factor challenge opened by a password sign-in before the change answers what a challenge that was never opened answers. The person signs in again with the new password. -- A door that ends the account's sessions when it sets the password ends every session opened before its password write: both reset doors, `POST /api/v1/auth/change-password` with `revokeOtherSessions: true` (the session it installs is kept), and the one-step invitation acceptance (ahead of the session it opens). -- A password sign-in during which the account's password changes is refused with what a wrong password answers at that door, and leaves no session. - -The moment of the change is the last time the account's local password was written over, so every door that replaces a password counts, an administrator's `POST /api/v1/auth/admin/set-user-password` included. A check that cannot read the record refuses. Access issued after the change, and an account that never changed its local password, are untouched. No request, response or metadata shape changes. - -**BREAKING** for a client that opens an email-change link, completes a second-factor challenge, or finishes a password sign-in after the account's password changed underneath it: each is now refused as above, with the code a never-issued link, a never-opened challenge or a wrong password already answers, so a client that handles those answers needs no change. The fix for a person: request a new email-change link, or sign in again with the new password. diff --git a/.changeset/dev-seed-credential-production-refusal.md b/.changeset/dev-seed-credential-production-refusal.md deleted file mode 100644 index 1e764c72757..00000000000 --- a/.changeset/dev-seed-credential-production-refusal.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -'@objectstack/plugin-auth': patch -'@objectstack/platform-objects': patch -'@objectstack/cli': patch ---- - -fix(auth)!: a server outside development mode refuses a development seed credential, and `os user set-password` sets a new one on the server - -Clause-②: yes (narrowing) — narrowed: on a server whose `NODE_ENV` is not `development`, a password sign-in that submits the development seed password (`admin123`, or the value `OS_SEED_ADMIN_PASSWORD` sets) is refused on every account, and an account the development seed created opens no session while its stored password is still the one it was seeded with. Widened: the `os user set-password` command, the `sys_user.dev_seed_credential` column, and new `@objectstack/plugin-auth` exports `setOperatorPassword`, `findAccountByEmail`, `operatorPasswordRefusal`, `OPERATOR_PASSWORD_MIN_LENGTH`, `OPERATOR_PASSWORD_MAX_LENGTH` and the types `OperatorPasswordResetEngine`, `OperatorPasswordResetOutcome`, `OperatorPasswordResetRefusalReason`. -Metadata-protocol: none - -<!-- adr-0087: not-required (no-migration-prescription) No authorable key, accepted value or metadata type is added, removed or renamed; a system column is added; nothing stored is rewritten: the moved answer is whether a server outside development mode accepts a development seed credential at sign-in. The one-line fix for a refused account is in the body: set a new password on the server with os user set-password. --> - -**BREAKING** for a deployment that serves, outside development mode, a database `os dev` seeded, or any account whose password is the development seed password. Such a sign-in is refused. Set a new password on the server with `os user set-password <email>`; the refusal names the command. A server in development mode (`os dev`) is unchanged. - -**The rule: a server outside development mode never accepts a development seed credential.** Development mode is `NODE_ENV=development`, the condition the development seed itself runs under. The rule lives in the auth plugin, so `os start`, `os serve`, the image and a custom host all apply it. - -- **The seed password is refused at sign-in, on any account.** A password sign-in with the development seed password answers `403 PERMISSION_DENIED`, and its message names `os user set-password`. It is decided on the submitted password alone, before any account is read, so every address gets the same answer. This covers the seeded admin, the stack's `demoStaff`, any other account on that password, and a database seeded by an earlier release. -- **The accounts the development seed creates are marked.** `os dev`'s admin and each `demoStaff` account carry `sys_user.dev_seed_credential`: a one-way digest of the password hash the seed stored, never the password. The column is never returned on reads, and any password change stops it matching. -- **A marked account still on its seed password opens no session**, on any sign-in door (password, emailed link, one-time code, passkey, social or SSO, impersonation), whatever password it was seeded with, `os dev --admin-password` included. A password check never confirms that seed password: a password sign-in answers it as a wrong password. -- **No password change is offered at sign-in.** Whoever signed in first could perform it. The way out is the operator's reset on the server. - -**`os user set-password <email>`** sets the account's password in the project database. It reads the new password from a terminal prompt (twice, not echoed) or from standard input with `--password-stdin`, never from the command line, and takes `--database-url` like the other one-shot commands. It checks that the new password is not a development seed password and is 8 to 128 characters long; the deployment's own password policy and password history are not applied. It writes nothing on a refusal. It deletes the account's outstanding password-reset links and codes from the project database before the new password lands. It clears the account's development seed mark and any sign-in lock, records the change time, and ends every session and revokes every API key of the account, as an administrator's forced reset does. It asks for no password change at the next sign-in. It writes the project database only: a secondary storage the host configures for the auth service is out of its reach, for the reset links and the sessions alike. With one configured, run the command with the server stopped, or restart the server afterwards; a secondary storage kept outside the server process outlives a restart and is cleared of the account's entries by hand. - -**Not detected:** a database seeded before this release with a custom seed password carries no mark and no well-known password. Set a new password with `os user set-password` on each account it seeded before serving it outside development mode. - -**Ended by `os user set-password`, and at boot:** this release refuses the development seed password and every new session for a seeded account still on it. Sessions and API keys a seeded account was issued before the server left development mode are ended by `os user set-password`; run it on each seeded account before serving the database. In the same release, a boot outside development mode also retires them: see the note "a boot outside development mode retires what the development seed issued" (#36699). diff --git a/.changeset/fields-bare-union-head.md b/.changeset/fields-bare-union-head.md deleted file mode 100644 index 1814548bbac..00000000000 --- a/.changeset/fields-bare-union-head.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -'@objectstack/spec': patch ---- - -fix(spec)!: a refused data-API request no longer lists zod's bare "Invalid input" union entry in `fields[]` ahead of the entries that explain it - -Clause-②: no (narrowing) -Metadata-protocol: none -Skills-docs: none (no skills/ page names the union's `invalid_shape` / `Invalid input` entry or reads `fields[]` by position) - -What narrows: `zodIssuesToFields` (`@objectstack/spec/api`) no longer emits a union's own `{ code: 'invalid_shape', message: 'Invalid input' }` entry when an entry below it explains the failure, at every depth. A `400 VALIDATION_FAILED` whose `fields[]` comes from it moves only when the refused value sits on a union slot with a branch that explains the failure: the query door, personal-view config saves, and the other declared-schema ingress doors can answer one. Plain create, update, bulk and batch record writes emit no such entry and do not move. `fields[0]` of a refusal that does move is now the first located cause. - -<!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed or renamed, and nothing stored is rewritten: what moves is which entries a refusal's fields list carries, computed afresh on every refused request. The accept set is unchanged. The one reading instruction is in the body: read entries by field and code, never by index. --> - -**BREAKING** for a client that reads a refused request's `fields[]` by position, or that looks for an `invalid_shape` entry carrying `Invalid input`. That entry named only the slot the union sat on; the entries that name the key and the constraint were always further down the same list, and they are now first. Read entries by `field` and `code`, not by index. - -For a value refused by a `z.union` slot whose branches explain the failure: - -- FROM: `fields[]` opened with `{ field: 'u', code: 'invalid_shape', message: 'Invalid input' }`, followed by the entries that explain it, such as `{ field: 'u.a', code: 'required', … }`. A union nested in a union added one such entry per level before the cause. -- TO: `fields[]` holds the explaining entries only, such as `{ field: 'u.a', code: 'required', … }`, at every depth. - -The fix for a caller that read `fields[0]` expecting the union's slot: find the entry whose `field` equals the slot or starts with the slot and a dot. - -**What stays.** A union entry is kept, ahead of what it explains, in every other case: - -- nothing below explains it: every branch only says the value is the wrong kind, or the nesting bound was reached. Then it is the whole answer for that slot, and the only entry naming it. -- its message is the schema's own sentence rather than zod's default (a union declared with an `error`). That sentence is a prescription, so dropping it would drop the fix. -- it is a container's entry (`invalid_key`, `invalid_element`): its code is the one place that says a key was refused rather than the value under it. - -The comparison is against zod's exact default text, held in one constant beside the mapper and pinned against a real zod parse, so a zod upgrade that rewords the default fails a test instead of quietly bringing every such entry back. - -**Now the same as the metadata envelope.** This is the rule a refused metadata save's `issues[]` takes (`@objectstack/metadata-protocol`, whose change ships in this same release), so the two machine-read lists say the same thing about one value; the cross-package parity test pins them entry for entry. The terminal renderer (`formatZodError`, the CLI) still prints the union line as the parent of its indented tree. diff --git a/.changeset/flow-runtime-state-mcp-readers.md b/.changeset/flow-runtime-state-mcp-readers.md deleted file mode 100644 index a0ead8bdb7b..00000000000 --- a/.changeset/flow-runtime-state-mcp-readers.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"@objectstack/types": patch -"@objectstack/runtime": patch -"@objectstack/mcp": patch ---- - -Clause-②: yes (widening) — `@objectstack/types` gains root exports (`FLOW_RUNTIME_STATE_KEY`, `flowRuntimeStateOf`, `FlowRuntimeStateAnswer`), and the open door's `get_metadata_item` answer on a flow gains the key `runtimeState`; nothing that was accepted is refused, and no key a caller sends is added -Metadata-protocol: none - -An MCP definition reader now says when an admin has switched a flow off. The open authoring door's `get_metadata_item` answers a flow with `runtimeState: { enabled }`, the engine's own reading (the one `GET /automation/_status` serves), placed ahead of the item; the switch moves only that bit and leaves the definition, `status: 'active'` included, as it was, so before this a switched-off approval read as running. The app-docs answer-order text sent on `initialize` (`packageDocAnswerRule`) now tells the agent that `runtimeState.enabled: false` means the process is switched off and does not run. `@objectstack/types` exports the key and the reading (`FLOW_RUNTIME_STATE_KEY`, `flowRuntimeStateOf`) for a host's own reader. diff --git a/.changeset/gantt-paged-ceiling-read.md b/.changeset/gantt-paged-ceiling-read.md deleted file mode 100644 index 2b698f3fc54..00000000000 --- a/.changeset/gantt-paged-ceiling-read.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@object-ui/plugin-gantt': patch -'@object-ui/core': patch ---- - -fix(gantt): a gantt opens on a host that sets a maximum page size, instead of showing the refusal - -Clause-②: no -Metadata-protocol: none - -The gantt read its whole filtered result set, up to its 10,000-row ceiling, as ONE read of 10,001 rows (the ceiling plus the probe row that makes a cut detectable). A host that sets a maximum page size (`OS_DATA_MAX_PAGE_SIZE`; the hosted plane sets 5,000) refuses any read over it before running the query, so on every such host the gantt drew "Query parameter 'top' asks for 10001 rows; this deployment's maximum page size is 5000…" in place of the chart, for an empty object as much as a full one. - -The gantt now asks no single read for more than 2,001 rows, the one read the calendar, map, tree and timesheet already send. A result set that fits that read is one read, as before. A larger one is walked from the top in steps of that size under a unique order (the authored sort with `id` appended as the tie-breaker) and kept once per row, so a step can neither repeat nor skip a row; the walk stops at the first short answer or one row past the ceiling. The ceiling, the footnote that names a cut, and the rule that an authored `pagination.pageSize` or `limit` never reaches the read are unchanged. diff --git a/.changeset/list-field-list-manager.md b/.changeset/list-field-list-manager.md deleted file mode 100644 index e589bac3281..00000000000 --- a/.changeset/list-field-list-manager.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/i18n': patch ---- - -feat(i18n): the `listConditions` namespace carries the words of the field manager - -Clause-②: no -Metadata-protocol: none - -Every pack gains six `listConditions.fieldList.*` keys for managing a view's fields in the shared field list: the fields not in the view yet, add, show, hide and move a field, and the reorder hint. Nothing reads them yet; the list's Options → Fields panel starts using them in a later release. No existing key changes. diff --git a/.changeset/list-filter-sort-condition-row.md b/.changeset/list-filter-sort-condition-row.md deleted file mode 100644 index 55bcca0373b..00000000000 --- a/.changeset/list-filter-sort-condition-row.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@object-ui/i18n': patch ---- - -feat(i18n): the locale packs carry the `listConditions` namespace for the list's coming filter and sort controls - -Clause-②: no -Metadata-protocol: none - -Every pack gains `listConditions.*`: the words of the shared field list (search, the fields the view shows and the hidden ones), the quick filter's values and operators, the sort directions worded by field type (time, size, the alphabet) and the condition row under the view bar (add filter, reset, a locked chip's note). Nothing reads them yet; the list's filter and sort panels start using them in a later release. No existing key changes. diff --git a/.changeset/list-filter-sort-wiring.md b/.changeset/list-filter-sort-wiring.md deleted file mode 100644 index 6791a58ef72..00000000000 --- a/.changeset/list-filter-sort-wiring.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@object-ui/plugin-list': patch -'@object-ui/components': patch -'@object-ui/i18n': patch ---- - -feat(plugin-list): the list's Filter and Sort open the shared field list, and the conditions show as chips under the view bar - -Clause-②: no -Metadata-protocol: none - -The toolbar's Filter opens a searchable field list (the fields the view shows first, a type icon on each), then the values by field type; every pick applies at once. Sort opens the same list with the direction on top. Under the view bar, the condition row shows the sort chips first (click to reverse, drag or Alt+Arrow to reorder, × to remove), then the view's own conditions as locked chips, then the reader's filter chips, 「Add filter」 and 「Reset」, which puts the filter and sort back to the view as saved. A column header click shows up there as a sort chip. The full FilterBuilder and SortBuilder stay one click away, behind 「Advanced filter」 and 「All sort levels」. The FilterBuilder no longer draws its 「Where」 label: `filterBuilder.where` is retired from the locale packs, and `listConditions.sort.advanced` is added. No filter storage format, `uf_*` parameter or server sort changes. diff --git a/.changeset/mcp-aggregate-lookup-group-labels.md b/.changeset/mcp-aggregate-lookup-group-labels.md deleted file mode 100644 index b38fb948ceb..00000000000 --- a/.changeset/mcp-aggregate-lookup-group-labels.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@objectstack/mcp': patch ---- - -feat(mcp): `aggregate_records` names the record of a lookup group beside its id, read as the caller - -Clause-②: yes (widening) -Metadata-protocol: none - -When the MCP `aggregate_records` tool groups by a `lookup` or `master_detail` field, each group now carries a new member `<key>__label` beside the key: the name of the referenced record, from the referenced object's name field (`nameField`, as ADR-0079 resolves it). `<key>` is the group column, which is the key's alias when the call gives one. The same spelling is used by the hosted ask tools, so one prompt reads both. This holds on both the HTTP and the stdio door. - -The name is read as the caller, through the same bridge and context as the aggregate, in one batched read of the referenced object for the groups the tool serves. Nothing is read with other rights, so the caller's object, field and record permissions apply as they do for any read the caller makes. - -- A label is present only for a key whose record the caller's read returns with a non-blank name. Any other key carries no label, and nothing else in the answer changes. -- No label is added, and the answer is exactly as before, when the caller is not served the referenced object, its name field or the lookup field, when the referenced object is a system object the tool does not read, or when the read fails. A failed name read never fails the aggregate. - -The tool description now tells a model to name such a group by its `__label`, never by the id, and to say the record cannot be named where no label is present. Existing members (`rows`, `totalGroups`, `truncated`, `currencies`) are unchanged. diff --git a/.changeset/metadata-issues-bare-union-head.md b/.changeset/metadata-issues-bare-union-head.md deleted file mode 100644 index c20b70a60f3..00000000000 --- a/.changeset/metadata-issues-bare-union-head.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -'@objectstack/metadata-protocol': patch ---- - -fix(metadata-protocol)!: a refused metadata save no longer lists zod's bare "Invalid input" union entry ahead of the entries that explain it - -Clause-②: no (narrowing) — narrowed: the `issues[]` of a refused metadata save (`422 INVALID_METADATA`), a stored item's `_diagnostics.errors`, the seed-request refusal's `issues` and the unmanaged-import `400` no longer carry a union's own `invalid_union` entry when its message is zod's bare `Invalid input` and an entry below it explains the failure. `issues[0]` of a refused view save is now the first located cause. -Metadata-protocol: none - -<!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed or renamed, and nothing stored is rewritten: what moves is which entries a refusal's issues list carries, computed afresh on every refused save and every read. The accept set is unchanged. The one reading instruction is in the body: read entries by path and code, never by index. --> - -**BREAKING** for a client that reads a refused metadata save's `issues[]`, or a stored item's `_diagnostics.errors`, by position, or that looks for a root `invalid_union` entry. That entry said only `Invalid input` and named no key; the entries that name the key were always further down the same list, and they are now first. Read entries by `path` and `code`, not by index. - -| Refused save | Was | Now | -|:--|:--|:--| -| A list view with a typo in a column's `summary` key | `issues[0]` is `{ path: '', code: 'invalid_union', message: 'Invalid input' }`, then the `unrecognized_keys` entry | `issues[0]` is the `unrecognized_keys` entry naming `type` and `columns` | -| A view whose `label` is a map keyed by something other than a locale | `invalid_union` / `Invalid input` at `''` and again at `label`, then two `label.not_a_locale` entries | only the two `label.not_a_locale` entries: `invalid_key`, then the locale-tag prescription | -| The `meta-envelope` face's headline for the first row | `2 issues — (root) [invalid_union]; (root) [unrecognized_keys]` | `1 issue — (root) [unrecognized_keys]` | - -The headline's root locator is the angle-bracketed word `root`; it is spelled `(root)` above only so this changelog renders it. - -**What stays.** A union entry is kept, ahead of what it explains, in every other case: - -- its message is the schema's own sentence rather than zod's default. An object whose `titleFormat` is written as a formula still gets, first, the template slot's sentence telling the author to write `'{{record.name}}'`; the entry below it says only `expected "template"`, so dropping the first would drop the fix. An action's `confirmText` written as a formula is the same. -- nothing below explains it: every branch only says the value is the wrong kind (a view's `label: 42`), or the nesting bound was reached. Then it is the whole answer for that slot. -- it is a container's entry (`invalid_key`, `invalid_element`): its code is the one place that says the key was refused rather than the value under it. - -The comparison is against zod's exact default text, held in one constant in the producer and pinned against a real zod parse, so a zod upgrade that rewords the default fails a test instead of quietly bringing every such entry back. - -**Unchanged, on purpose.** The terminal renderer (`formatZodError`, the CLI) still prints the union line as the parent of its indented tree, and the data API's `fields[]` (`zodIssuesToFields`, `400 VALIDATION_ERROR`) still carries it as an `invalid_shape` entry; whether that one follows is #35433. The cross-package parity test records the asymmetry. - -**Known regression, until #35499 lands.** Studio's metadata form draws a refusal's entry on a field row only when the entry's path equals that row's key. On about 25 top-level keys (for example a view's `label`, `description`, `columns` and `exportOptions`) the dropped entry was the only one at that exact path, so after a refused save that row shows one red line fewer: the `Invalid input` line. The place is still named by the entries themselves and in the Save button's tooltip, and on a type with a live validator the next edit redraws the row. #35499 makes the form show the located cause on the row it sits under. diff --git a/.changeset/multivalue-filter-operators.md b/.changeset/multivalue-filter-operators.md deleted file mode 100644 index fab666b4a8e..00000000000 --- a/.changeset/multivalue-filter-operators.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@object-ui/components': patch -'@object-ui/plugin-list': patch ---- - -fix(ui): a multi-select field's list filter offers 「包含 / 不包含」 instead of operators the server refuses - -Clause-②: no -Metadata-protocol: none - -Filtering a list by a multi-value field (`multiselect`, `checkboxes`, `tags`, or a `select` / `lookup` / `user` with `multiple: true`) now offers contains, does not contain, is empty and is not empty, and the query runs, where it used to offer equals and is any of, which the server answers with `400 INVALID_FILTER`. A structured-JSON field (`json`, `address`, …) offers is empty / is not empty. A saved filter that already holds a refused operator still loads and shows it, so it can be changed. `FilterBuilder` fields accept `multiple`, and `jsonColumnFilterOperators` / `operatorsForField` are exported from `@object-ui/components`. diff --git a/.changeset/password-reset-disables-registered-apps.md b/.changeset/password-reset-disables-registered-apps.md deleted file mode 100644 index caa6c01997f..00000000000 --- a/.changeset/password-reset-disables-registered-apps.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -'@objectstack/plugin-auth': patch -'@objectstack/plugin-email': patch -'@objectstack/core': patch -'@objectstack/cli': patch ---- - -fix(plugin-auth)!: a password reset disables the OAuth applications the account registered and revokes the SCIM credentials it minted - -Clause-②: no (narrowing) -Metadata-protocol: none - -<!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is what a completed password reset ends: rows the account owns are written disabled or revoked by the doors administrators already use, so there is nothing for a migration to rewrite and no tombstone. --> - -**BREAKING** for an account that registered an OAuth application or minted a SCIM provisioning credential, and then has its password reset. - -- FROM: a completed password reset (the emailed link, the texted code, an administrator's `POST /api/v1/auth/admin/set-user-password` with `revokeSessionsAndKeys` on, and `os user set-password`) ended the account's sessions, API keys, linked sign-in accounts, authorized apps and device sign-ins. The OAuth applications the account registered (`sys_oauth_application.user_id`) stayed enabled, and the SCIM credentials it minted (`sys_scim_connection_credential.user_id`) stayed active. A self-service reset sent the account no notice. -- TO: the same resets also disable every OAuth application the account registered that is not disabled, as a platform administrator's Disable action does (the provider issues it no token, client-credentials tokens included, answers its tokens inactive at introspection, and the MCP endpoint refuses every token it holds), and revoke every SCIM credential the account minted that is still active, as Revoke Credential does, each revoke writing the `sys_audit_log` row Revoke Credential writes (`scim_credential_revoked`) naming the account for a self-service reset and the administrator for a forced one (`os user set-password` names no one and writes none). An application another account registered and a credential another administrator minted are not touched. The account's single sign-on providers and two-factor enrolment are kept. -- A completed self-service reset then mails the account `auth.password_reset_notice` (a new built-in template, in en-US, zh-CN, ja-JP and es-ES): how many API keys, linked sign-in accounts and authorized apps it ended, each application it disabled and each credential it revoked by name, and the single sign-on providers and second factor it kept. It is best-effort: a notice that cannot be sent never fails the reset. The forced resets send no notice and answer their requester instead. -- The administrator's forced reset reports the new counts on `data.revoked` (`ownedApps`, `scimCredentials`) and on its ledger row (`revokedOwnedApps`, `revokedScimCredentials`); `setOperatorPassword` answers `ownedAppsDisabled` and `scimCredentialsRevoked`, and `os user set-password` prints them. A disable or revoke that does not land answers the self-service requester an error, with no notice, and keeps the forced reset's `complete` false, as for the other rows; every other kind is still ended first, so an application that cannot be disabled leaves no API key, linked sign-in account or credential in place. -- A password change disables and revokes nothing. Its reminder, `auth.password_changed_notice`, now also lists the OAuth applications the account registered that are still enabled and the SCIM credentials it minted that are still active and not past their own expiry, and is sent when the account holds only those. - -The fix for an owner after a reset: ask a platform administrator to enable an application you still need again, and have a platform administrator mint a new SCIM credential for a connection whose credential was revoked. diff --git a/.changeset/password-reset-ends-added-access.md b/.changeset/password-reset-ends-added-access.md deleted file mode 100644 index 573bbf49185..00000000000 --- a/.changeset/password-reset-ends-added-access.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -'@objectstack/plugin-auth': patch -'@objectstack/plugin-email': patch -'@objectstack/core': patch -'@objectstack/cli': patch ---- - -fix(plugin-auth)!: a password reset ends what the account added before it - -Clause-②: no (narrowing) -Metadata-protocol: none - -<!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value, metadata type or export shape is added, removed, renamed or re-shaped, and no stored row is rewritten by a migration: what moves is what the auth doors end when a password is reset or first set, and the answer they give a link minted before it, which is now the answer a link that was never issued gets. The forced reset response gains two counts, its ledger row two keys and the operator outcome two fields. There is nothing for a migration to rewrite and no tombstone. --> - -A password reset ends what the account added before it, and a password change reminds the account what it keeps. - -- **A completed self-service reset** (the emailed link at `POST /api/v1/auth/reset-password`, the texted code at `POST /api/v1/auth/phone-number/reset-password`) now ends, beside the account's sessions, every API key the account owns that is not revoked, its `revoked` flag false or unset (revoked as one its owner revoked, so the owner may restore it from the API Keys list), and every sign-in account linked to it other than its password (a social, OAuth or single sign-on link; the provider may be linked again as it was the first time). Where the OAuth provider is enabled it also ends every app authorized to the account: the account's consents, refresh tokens and stored access tokens are deleted, so the app asks to be authorized again, and an MCP access token is refused on its next request. Where device authorization is enabled it ends a device sign-in approved for the account and not yet collected. This build offers no passkey sign-in, so there are no passkeys to end. A reset that does not complete ends nothing. A completed reset that cannot end one of these (a record it cannot read or write, a linked account a host's `account.delete.before` hook keeps, an account it cannot name) answers an error once the password is written; the password stands, its change time and password history are recorded all the same, and resetting again ends what remains. -- **A password change** (`POST /api/v1/auth/change-password`) ends none of these: an authorized app keeps its authorization and gets a new MCP access token with its refresh token, issued after the change. When the account still holds an API key that is neither revoked nor past its own expiry, a linked sign-in account or an authorized app afterwards, the account's address is sent the new built-in template `auth.password_changed_notice`, naming each (its variables are `apiKeyCount`, `apiKeys`, `signInAccountCount`, `signInAccounts`, `authorizedAppCount` and `authorizedApps`), through the email service. It is best-effort and never fails the change. plugin-email ships it in `en-US`, `zh-CN`, `ja-JP` and `es-ES`, so `BUILTIN_AUTH_TEMPLATES` grows from 32 rows to 36, and core's `PLATFORM_REQUESTED_BARE_NAMES_BY_TYPE.email_template` names it beside the other eight, so it resolves environment-wide and keeps one overriding package per deployment. -- **An administrator's forced reset** (`POST /api/v1/auth/admin/set-user-password` with `revokeSessionsAndKeys` on, the default) and the operator's `os user set-password` also unlink every linked sign-in account and end every app authorized to the account and every device sign-in approved for it, as the self-service reset does: where the OAuth provider is enabled, the account's consents, refresh tokens and stored access tokens are deleted; where device authorization is enabled, its pending device codes. The operator's command, which runs with no server, ends the ones the project database holds. Both now revoke a key whose `revoked` flag is unset as well. The forced reset's response reports the unlinks as `revoked.signInAccounts` and the apps as `revoked.authorizedApps` (its ledger row as `revokedSignInAccounts` and `revokedAuthorizedApps`), and the operator command prints both (`signInAccountsUnlinked`, `authorizedAppsEnded` on `setOperatorPassword`'s outcome). `revokeSessionsAndKeys: false` still ends nothing. -- **An account's first password counts as a password change when it is set onto an account that was already there**: through either reset door, an administrator's `set-user-password`, the one-step invitation acceptance of an existing account, or `POST /api/v1/auth/set-initial-password`. So links and challenges issued before it end, exactly as they do for any other password change. A password created in the same request as its account, as at a sign-up with a password, an administrator's create-user or a one-step invitation acceptance that creates the account, is still not a change, however long the steps between the two take. A password created outside such a request (written straight to the store), or before this release, counts as a change at its creation, so a verification link that signs in, mailed in the same second as that creation, answers as never issued and its owner requests a new one. -- **A verification link that signs its holder in** (on a deployment with `emailVerification.autoSignInAfterVerification: true`), **a magic link** and **a texted sign-in code**, issued before the account's password changed, now answer what a link or code that was never issued answers: `401 INVALID_TOKEN` or the `error=INVALID_TOKEN` redirect at `GET /api/v1/auth/verify-email`, the `error=INVALID_TOKEN` redirect with no session at `GET /api/v1/auth/magic-link/verify`, and `400 OTP_NOT_FOUND` with no session at `POST /api/v1/auth/phone-number/verify` (a code sent by `POST /api/v1/auth/phone-number/send-otp`). With auto sign-in off, a verification link still verifies the address. An MCP access token issued before the account's password changed (a reset, a change, or an administrator's `set-user-password`) is refused at the MCP endpoint, as a signed link is, in whole seconds; where the app's authorization still stands (a change, or `revokeSessionsAndKeys: false`), the app gets a new token with its refresh token. A link, code or token issued after the change works as usual. - -**BREAKING** for a client or integration that keeps using what a reset now ends: an API key the account owned before a completed password reset is refused as revoked (`403 API_KEY_REVOKED`), a linked sign-in account is no longer linked, an authorized app must be authorized again (after a forced reset with revocation on, too), a verification link that signs in, a magic link or a texted sign-in code issued before the account's password changed answers as a never-issued one, and an MCP access token issued before it is refused. The fix: mint a new key after the reset (or restore the old one from the API Keys list), link the provider again, authorize the app again, request a new link or code, or let the app refresh its token. diff --git a/.changeset/safe-column-remedy-per-kind.md b/.changeset/safe-column-remedy-per-kind.md deleted file mode 100644 index ac57056d0b0..00000000000 --- a/.changeset/safe-column-remedy-per-kind.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@objectstack/driver-sql': patch ---- - -Clause-②: no -Metadata-protocol: none - -The drift plan's `safe` column entries for a declared field (`widen_date_to_datetime`, `widen_varchar`, `drop_column_default`) now name the remedy per object kind, as the `relax_not_null` entry already does. For an object authored in this environment, publishing the object applies the entry. For an object a package provides, which is sealed and cannot be published here, the message names `os migrate apply`, which applies it for either kind. Before, the date-to-datetime entry told a package object's reader to publish the object, which cannot apply it. diff --git a/.changeset/sec1-865p-r4.md b/.changeset/sec1-865p-r4.md deleted file mode 100644 index 040e523fc3d..00000000000 --- a/.changeset/sec1-865p-r4.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/service-storage': patch ---- - -fix(service-storage): stored bytes are previewed in place only when they begin with their type's signature - -Clause-②: no -Metadata-protocol: none - -The local adapter's byte route now answers a file on the inline allow-list inline only when its stored bytes begin with the leading signature of that type: PNG, JPEG, GIF, WebP, AVIF and BMP images, PDF, and each of the 13 allow-listed audio and video types. Plain text has no signature, so it is judged on its first 1445 bytes: it is previewed when they open with a byte-order mark or carry no binary data byte (the WHATWG MIME Sniffing standard's text-or-binary rule). Every type is judged on that same leading window of the body. Any other body, an empty one included, is answered as an `attachment` under the default sandbox policy, with `nosniff` as before. The type and the file name answered are unchanged. - -The fix for a host: nothing to change. A file whose bytes are what its type says previews as before; one that is not still downloads under its own name and type. diff --git a/.changeset/sec2-48g2.md b/.changeset/sec2-48g2.md deleted file mode 100644 index 5b166f83409..00000000000 --- a/.changeset/sec2-48g2.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@objectstack/plugin-approvals': patch ---- - -fix(approvals)!: an approver reassigns only their own slot - -Clause-②: no (narrowing) -Metadata-protocol: none - -<!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is who may name a slot as the `from` of `POST /api/v1/approvals/requests/:id/reassign`: no stored row, registry key or authored value changes, so there is nothing for a migration to rewrite and no tombstone. --> - -**BREAKING** for a caller of `POST /api/v1/approvals/requests/:id/reassign` (and `IApprovalService.reassign`) that is neither the system nor an administrator acting through the approval override. - -- TO: such a call may move only a slot held by the actor it names (an omitted `actorId` names the caller). A `from` naming any other slot is refused `403 FORBIDDEN`, and nothing moves: the slate is unchanged and no `reassign` action is recorded. The default actor holds its user id, its account's email and each position it holds; a named email or position address holds only that address and its equivalent spellings. Omitting `from` still hands over the actor's own slot. -- **Not moved.** The administrator override and the system still move any pending slot, and the administrator rescue of a slate that names no one is unchanged. - -The fix for a caller: ask the slot's holder to reassign it, or an administrator. diff --git a/.changeset/sec2-4ghv.md b/.changeset/sec2-4ghv.md deleted file mode 100644 index b355237c68b..00000000000 --- a/.changeset/sec2-4ghv.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/plugin-auth': patch ---- - -fix(plugin-auth): a guarded increment is one atomic conditional write - -Clause-②: no -Metadata-protocol: none - -The auth adapter's `incrementOne` now honours better-auth's contract for that method under concurrency: its `where` clause is both the selector and the guard, and the guarded write is one conditional update judged by the database. Each attempt reads the guarded row and writes the new values with a single predicate update whose condition is the caller's guard, the row id and every incremented counter at the value read; the affected count decides. A guard that no longer holds answers `null`, an unguarded counter is retried from the new value, and contention that outlasts the bounded attempts throws rather than answering `null`. - -The answer shapes are unchanged: the updated row, or `null` when the guard matches no row. The native `incrementOne` and `consumeOne` stay in place, so better-auth's own fallbacks are not used. diff --git a/.changeset/sec2-535v.md b/.changeset/sec2-535v.md deleted file mode 100644 index b7546e577fc..00000000000 --- a/.changeset/sec2-535v.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -'@objectstack/spec': minor -'@objectstack/plugin-auth': patch -'@objectstack/runtime': patch -'@objectstack/cli': patch ---- - -feat(security): `server.trustProxy` gains a trusted-network form, and the client address is read from the trusted hop - -Clause-②: yes (widening) -Metadata-protocol: added -Skills-docs: none — no skill under `skills/**` teaches `server.trustProxy` or forwarded headers; `docs/HARDENING.md`, `content/docs/deployment/production-readiness.mdx`, `content/docs/protocol/kernel/http-protocol.mdx` and `content/docs/permissions/authentication.mdx` gain the form in this change. - -`server.trustProxy` accepts a third form beside `false` and `true`: `{ networks, header }`, naming the reverse proxies a deployment runs. - -```ts -defineStack({ - server: { - trustProxy: { networks: ['10.20.0.0/28', '2001:db8::10'] }, // header defaults to 'x-forwarded-for' - }, -}); -``` - -- A forwarded header is believed only on a connection whose peer address is inside `networks`. From any other peer the client is the peer itself. -- `X-Forwarded-For` is read from the right: every entry inside `networks` is a hop of the deployment's own, and the first entry outside them is the client. When every entry is inside them, the leftmost is the client. An entry a trusted hop reports that is not an address establishes no address. -- `header: 'x-real-ip'` reads `X-Real-IP` instead. Under this form the header it does not name is never read. -- Each entry of `networks` is an address or a CIDR range, IPv4 or IPv6, read the way an `allowed_ip_ranges` entry is read. Every address inside `networks` is taken for a proxy hop, so list the proxies' own addresses, never a range clients connect from. A range of prefix length 0 is refused: it would stand in for `true`. -- `os validate` and `defineStack` refuse an entry not shaped like an address or a CIDR range, a prefix length of 0, an empty list, an unknown header and an unknown key. The runtime reads every entry in full at boot and refuses, naming the entry, what passes the shape but names no range (an address with a port, an IPv4-mapped prefix wider than the mapping), so a form is never read as "trust nobody". -- A malformed `server.trustProxy` object, which used to read as `false`, now fails the boot. -- A forwarded header sent as several lines is read as one list, under every form. - -Every consumer of the client-address rule reads the new form: the inbound rate limiter, the per-endpoint rate limiter, and the authentication plugin's IP allow-list, `last_login_ip` login audit and vendored-library limiter. `objectstack serve` hands the authored value to both `AuthPlugin` and the dispatcher as it is, in either form. A host that composes them itself passes the same value to `AuthPlugin({ trustProxy })` and `createDispatcherPlugin({ rateLimit: { trustProxy } })`; `@objectstack/plugin-auth/client-address` exports `readTrustProxy`, the one reading of the declaration, with `ClientAddressTrust` and `TrustedProxyNetworks`. - -`server.trustProxy: true` reads as before, and is sound only behind a proxy that overwrites `X-Forwarded-For` on every request, never one that appends to it. Under `true` the server now logs one `warn` per process the first time an `X-Forwarded-For` with more than one entry arrives, naming the trusted-network form. The IP allow-list's two operator warnings say the same. `true` is refused at boot from the next major; to move now, replace it with `{ networks: [...] }` listing your proxies' addresses or ranges. diff --git a/.changeset/sec2-865p.md b/.changeset/sec2-865p.md deleted file mode 100644 index 81f835645df..00000000000 --- a/.changeset/sec2-865p.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -'@objectstack/service-storage': patch -'@objectstack/spec': patch ---- - -fix(service-storage)!: stored bytes outside the inline allow-list are served as attachments, and every stored-bytes answer carries nosniff and a sandbox CSP - -Clause-②: no (narrowing) -Metadata-protocol: none - -<!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed or re-shaped, and no stored row, registry key or authored value changes. What moves is the response headers a downloaded file is answered with; there is nothing for a migration to rewrite. --> - -**BREAKING** — how a downloaded file is answered to a browser. One rule, stated once in the storage service and applied by every door that answers stored bytes: - -- FROM: a file was answered under the type recorded for it, and rendered in place by default, whatever that type was. -- TO: only a type on the inline allow-list is rendered in place: raster images (PNG, JPEG, GIF, WebP, AVIF, BMP), PDF, plain text, and common audio and video types. Every other type, SVG and HTML included, and a missing or malformed type, is answered as an `attachment`, which the browser saves rather than opens. The type is judged by its essence, and the answered `Content-Type` is that essence: case is folded and parameters are dropped (a `charset` is kept on `text/plain` only), so neither changes the verdict. -- FROM: the local adapter's byte route sent no `X-Content-Type-Options` and no `Content-Security-Policy`. -- TO: every answer from it carries `X-Content-Type-Options: nosniff` and a sandbox `Content-Security-Policy` that lets no script run, inline or not. Allow-listed audio and video answered inline carry a media variant of it, `sandbox allow-same-origin; default-src 'none'; media-src 'self'; style-src 'unsafe-inline'`, so the browser's player can load the file's own URL. Every other answer carries `sandbox; default-src 'none'; style-src 'unsafe-inline'`, which asks the browser for a sandboxed document that runs no script and loads no subresource. -- Measured in Chromium (the Console's download in a new tab, and direct navigation): PNG, PDF and plain text render in place; HTML and SVG are saved. WAV, Ogg, MP3, WebM and MP4 open in the browser's player, which loads the file and starts playback when the user presses play; before this change the player started playback on its own. Firefox and Safari were not measured. -- The S3 adapter's signed download URL always carries the same type and disposition; a call that names no type is signed as `application/octet-stream`, an attachment. A caller's `disposition: 'inline'` no longer overrides the list. A signed `GetObject` URL can set no other response header, so `nosniff` and the CSP are the bucket's to send there. - -The fix for a host: nothing to change. A file outside the list still downloads under its own name and type; open it from the saved copy. An `<img>` that shows a stored SVG keeps showing it: an image element ignores the disposition. diff --git a/.changeset/sec2-account-removal.md b/.changeset/sec2-account-removal.md deleted file mode 100644 index 69b7a04567c..00000000000 --- a/.changeset/sec2-account-removal.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -'@objectstack/plugin-auth': patch -'@objectstack/platform-objects': patch ---- - -fix(plugin-auth)!: a disabled or removed account keeps nothing running in its name - -Clause-②: no (narrowing) -Metadata-protocol: none - -<!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is what four identity doors end and refuse: the ban, the directory's deactivation and delete, and an administrator's delete end what a password reset ends of the account's registrations, and the AI service account doors refuse an owner whose account is disabled. No stored row, registry key or authored value needs rewriting, so there is nothing for a migration to change and no tombstone. --> - -**The rule.** An account that is disabled or removed, by any door, keeps nothing running in its name. What it is accountable for is suspended, what it registered is disabled, what it minted is revoked, and turning the account back on restores none of it. - -- **A platform administrator's ban** (`POST /api/v1/auth/admin/ban-user`) suspends every AI service account the person is accountable for, in every organization, with the reason `Accountable owner banned by an administrator`; disables every OAuth application the account registered; and revokes every SCIM provisioning credential it minted, each revoke recorded in `sys_audit_log` against the administrator. The answer reports it under `data.revoked` (`serviceAccounts`, `ownedApps`, `scimCredentials`, `failed`, `complete`), as the administrator's forced reset reports its own, and the ban's audit row carries the same counts. A step that cannot finish does not undo the ban: `complete` is `false`, and banning again ends what remains. -- **The directory** (SCIM `active: false`, `DELETE /Users/{id}`) disables the OAuth applications the person registered and revokes the SCIM credentials they minted, each revoke recorded against the connection (`actor` `svc:scim:CONNECTION_ID`). It never fails the SCIM request; a revoked credential is reported once in the server log at `error`, with the remedy. -- **An administrator's delete** (`POST /api/v1/auth/admin/remove-user`) ends the same registrations before the user is deleted, inside the delete's unit of work, and answers `{ success: true, revoked: { ownedApps, scimCredentials } }`. When one cannot be ended, the delete is refused `503 SERVICE_UNAVAILABLE` and nothing changes. -- **An AI service account runs only while its accountable owner's account is active.** `register` and `set-owner` refuse an owner who is banned or deactivated (`400 VALIDATION_FAILED` at `ownerId`), and `resume` refuses an account whose owner is (`409 RESOURCE_CONFLICT`), whichever door disabled them. -- An unban or a re-activation restores none of it: a platform administrator enables an application again, a new credential is minted, and an administrator resumes an AI service account once its owner's account is active again or a new owner is named. A timed ban leaves the accounts suspended after it expires. Single sign-on providers the account registered are kept, as a password reset keeps them. - -The Ban action's confirmation and its AI-facing description, and the Unban action's AI-facing description, now state these effects. - -**BREAKING** for: - -- a caller that names, as an AI service account's owner, a person whose account is banned or deactivated: the door refuses it. Name a person whose account is active. -- an operator who relied on a banned, deactivated or removed administrator's SCIM credential: it is revoked, and provisioning through its connection pauses until another administrator mints a new credential. Rotate a connection's credential to another administrator before removing the one who minted it. -- a client that read the ban's answer or the delete's answer as an exact shape: each gains `revoked`. diff --git a/.changeset/sec2-ggfh.md b/.changeset/sec2-ggfh.md deleted file mode 100644 index 9234915e21b..00000000000 --- a/.changeset/sec2-ggfh.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@objectstack/plugin-auth': patch -'@objectstack/platform-objects': patch ---- - -fix(plugin-auth)!: deleting an SSO provider ends the sessions a sign-in through it opened and removes its projected grants - -Clause-②: no (narrowing) -Metadata-protocol: none -Skills-docs: none — no published skill teaches deleting an SSO provider, its sessions or its projected grants; the rule is documented in `content/docs/permissions/sso.mdx` ("Deleting an SSO provider") - -<!-- adr-0087: not-required (no-migration-prescription) No authorable key, value or export is added, removed, renamed or re-shaped. `sys_session` gains a system-managed, read-only column the platform writes itself, and what changes is which sessions and projected grants stay live once an SSO provider is gone: no stored metadata row, registry key or authored value moves, so there is nothing for a migration to rewrite. --> - -**BREAKING** for a session a sign-in through an SSO provider opened: deleting that provider ends the session, and its next request is answered as signed out. Sessions opened any other way are not touched. - -- **Sessions.** Each session an SSO sign-in opens records the provider it was signed in through, in the new read-only `sys_session.sso_provider_id` column. `POST /api/v1/auth/sso/delete-provider` revokes the live sessions that record the deleted provider (`revoke_reason: 'sso_provider_deleted'`). A session signed in any other way (a password, another provider) is left as it is, and a delete the vendor refuses ends nothing. -- **The answer.** A successful delete's `data` carries `revokedSessions`, the number of live sessions it ended, beside the other counts, and its `message` says so. -- **Projected grants.** A permission-set grant projected by an SSO provider's group mapping exists only while that provider does: the delete removes them, as before, and at every boot the grants whose `reason` names a provider with no `sys_sso_provider` row are removed too, as are live sessions recording such a provider. The boot does not remove the provider's group mappings (delete each with **Delete Mapping**, or `POST /api/v1/auth/admin/scim/delete-group-mapping`); it logs at `info` what it removed, and at `error`, with the remedy, when it could not. Several servers sweeping at once each remove what is left, and none reports the others' removals as a failure. diff --git a/.changeset/sec2-r7gg.md b/.changeset/sec2-r7gg.md deleted file mode 100644 index 0d1d72ab50a..00000000000 --- a/.changeset/sec2-r7gg.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -'@objectstack/core': patch -'@objectstack/rest': patch -'@objectstack/runtime': patch -'@objectstack/cli': patch -'@objectstack/spec': patch ---- - -fix(rest)!: every data door judges environment membership - -Clause-②: no (narrowing) -Metadata-protocol: none - -<!-- adr-0087: not-required (no-migration-prescription) every data door judges environment membership; nothing an author writes is retired, renamed or re-shaped, so there is nothing for a migration to rewrite --> - -**BREAKING** for a signed-in caller who is not a member of the environment a request resolved to: every data door now judges environment membership and answers that caller `403 PROJECT_MEMBERSHIP_REQUIRED`, in the envelope the runtime dispatcher already answers with. - -Every data door judges environment membership. The rule is one function in `@objectstack/core` (`judgeEnvironmentMembership`), asked by the runtime dispatcher and the REST server alike; the dispatcher's own answers are unchanged. - -It is off in exactly two cases: `api.enforceProjectMembership: false` (ADR-0135 D9: a host whose environment-native auth is the membership), or no `sys_environment_member` object registered. The switch is read through one function for every door (`resolveEnvironmentMembershipEnforcement`): an explicit `enforceProjectMembership` wins, else it is on exactly when environment scoping is on. `objectstack serve` hands the stack's `api.enforceProjectMembership` to the REST and the dispatcher plugin alike. - -Migration: a host that composes the plugins itself passes the same `enforceProjectMembership` to `createRestApiPlugin` as to `createDispatcherPlugin`. diff --git a/.changeset/sec2-v5c7.md b/.changeset/sec2-v5c7.md deleted file mode 100644 index cbaf780c7c8..00000000000 --- a/.changeset/sec2-v5c7.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@objectstack/objectql': patch ---- - -fix(objectql): a state machine judges every write from the stored state, a clear included - -Clause-②: no (narrowing) -Metadata-protocol: none - -<!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed or renamed, and nothing stored is rewritten: what moved is that the engine judges a write clearing a state_machine field against the machine's transitions. A state meant to be clearable lists the empty value among its targets; that is the one-line fix, and it is in the refusal's from/to pair. --> - -A `state_machine` validation judges an update from the record's stored state, and clearing the state field — writing `null` or `''` — is now a transition like any other: a transition to the empty value. So no sequence of writes leaves a state the machine would refuse to leave in one write. - -**BREAKING**: on an update, clearing the state field of a record whose stored state has a key in `transitions` is refused unless that state lists `''` among its targets. The refusal is the existing transition refusal — `VALIDATION_FAILED` / 400 with field code `invalid_transition` and `constraint: { from, to: '' }` — on every write path (by id, multi-row, REST, MCP), for every caller, elevated ones included. To keep a state clearable, add `''` to its targets, e.g. `paused: ['open', '']`. It ships `patch` because no metadata an author writes changes (`Metadata-protocol: none`): every existing declaration parses and means what its `transitions` say; the write that now meets the declared graph is a runtime write. - -**Unchanged.** A write that does not touch the state field, an unchanged value, a declared transition, a stored state with no key in `transitions` (still lenient), inserts and their `initialStates` check, and seed and historical-import writes (still exempt). diff --git a/.changeset/sec2-vv32.md b/.changeset/sec2-vv32.md deleted file mode 100644 index f232d4a8e67..00000000000 --- a/.changeset/sec2-vv32.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/plugin-approvals': patch ---- - -fix: a locked record's lines read as locked, and deleting the locked record still removes its lines - -Clause-②: no -Metadata-protocol: none - -**Reading the lock answers for a line too.** `IApprovalService.getRecordLock` (and `GET /api/v1/approvals/records/:object/:recordId/lock`) now answers `{ locked: true }` for a `master_detail` child row while the record it belongs to is held by a locking pending approval: the same rows whose insert, update and delete the server refuses with `409 RECORD_LOCKED`. It used to answer `{ locked: false }` for them, so a page could offer an edit the server then refused. A row the caller cannot read still answers as a missing one. - -**Deleting a record while its approval is pending removes its lines again.** The delete lands and cancels the pending request, as before the lines were locked; its `master_detail` lines are removed with it. The whole delete is refused `409 RECORD_LOCKED`, and the record, its lines and its request stay, when the line object has a second relation that also cascades on delete, or when the delete does not run inside an open transaction: a datasource that declares `supports.transactionsUnsupported`, a cascade across datasources, a record and its lines together on a datasource other than the default one, or a delete carrying the handle of a transaction that has already finished. Server code that owns the transaction must not catch the refused delete and commit anyway. A line is never removed by deleting a different record, except that when the locked record is itself the child of a record whose delete cascades to it (a `master_detail` child, or a `lookup` child with `deleteBehavior: 'cascade'`), deleting that parent removes the locked record and its lines and cancels its request. diff --git a/.changeset/sec2-wf9p.md b/.changeset/sec2-wf9p.md deleted file mode 100644 index 72a4ab95937..00000000000 --- a/.changeset/sec2-wf9p.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -'@objectstack/plugin-security': patch -'@objectstack/core': patch -'@objectstack/service-automation': patch -'@objectstack/spec': patch -'@objectstack/objectql': patch -'@objectstack/trigger-record-change': patch ---- - -fix(plugin-security)!: an app-authored elevation's reads and writes are judged by its caller's organization wall - -Clause-②: no (narrowing) -Metadata-protocol: none - -<!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is the answer a data operation gets when it runs under an action body's, a system hook's or a system flow's elevation, and three schema descriptions that state it: no stored row, registry key or authored value changes, so there is nothing for a migration to rewrite and no tombstone. --> - -The rule: elevation lifts a caller's business rules, never the organization wall. An action body, a hook that runs as system (`runAs: 'system'`, a system context it inherits, its `ctx.api.sudo()`) and a flow that runs as system have their reads and writes judged by the organization wall of the caller they run for (ADR-0095 D1, ADR-0123 D1/D2), under every tenancy posture and on every object, a federated one included. - -**BREAKING** for an action body, a system hook or a system flow run for a signed-in caller. - -- FROM: the elevation, not the caller's organization wall, decided what such a context reached of a tenant-scoped object. -- TO: the caller's own organization wall decides it: - - with no active organization under `isolated`, an empty membership set under `group`, or no membership at all under `single`: its reads of a tenant-scoped object resolve to nothing (zero rows, no error); its delete and purge are answered by that read rule (a predicate delete matches nothing, a by-id delete answers `404 RECORD_NOT_FOUND`); and its other writes (insert, update, transfer, and the recycle bin's restore) are refused with `403 PERMISSION_DENIED`, naming the missing active organization or membership; - - under `group`, a member reads and writes the union of the organizations they hold a membership in, with or without an active organization; - - on a federated object it reads only rows of the caller's organization scope, and a by-id write of a row outside it answers `404 RECORD_NOT_FOUND`, as a row that is not there; - - an insert with no active organization on a walled tenant object is refused with `403 PERMISSION_DENIED`; - - for every caller, an active organization included: a write whose own data names an organization outside the caller's wall, and an update whose own data empties a row's organization, are refused with `403 PERMISSION_DENIED`; - - the check of the row a by-id write names is read inside the transaction the write carries, so a row the body's own transaction wrote is the caller's to write again in it; - - a system flow started by a record change, and every system run whose own user is its caller, carries that user's membership set and posture rung from run setup: under `group` it reads the union of the user's memberships, with or without an active organization. The set and rung are those of run setup: a membership the user gains or loses while the run waits is read by the next run. A decided segment, a run that began for no caller and a child run of either carry neither: a decided segment's caller's facts are resolved for it again. - -**Not moved.** A caller with an active organization keeps exactly that organization's reach. Objects outside tenancy, objects with no organization column, and a platform operator crossing the wall on an object whose posture permits it are answered as the caller's own requests answer them. System work that runs for no caller (a scheduled run, a platform plugin's own system context, the seeders) is unchanged, and so is a system flow that began for no caller after an approval decision: the decider is its attribution user, not its caller. A run that a write of such a segment starts begins for no caller too, and carries neither the writer's membership set nor its posture rung; its trigger user stays the writer, so an approval's submitter exclusion, who may read the run's state, and the run's history answer as before. A run that a write of a decided segment of a run that began for a caller starts begins for the decider, as before. A system flow that began for a caller is judged by that caller after a decision, not by the decider. - -The fix for a caller: select an active organization before running the action, or start the run from a session that has one. A body that must place a row in another organization does so as a member of that organization, through its own request. The `runAs` descriptions of flows and hooks and the `body` description of actions now state this limit beside the other two. - -Also in this change: -- `@objectstack/core` exports `RUN_CALLER`, `markRunCaller` and `runCallerOf`: the server-constructed mark a flow run's data context carries wherever the run's own user is not its caller (a decided segment, a run recorded as begun for no caller in every segment, and a child run of either), naming the user its run began for, or that it began for none. -- `@objectstack/service-automation`: a `runAs: 'system'` run's data context carries the run user's membership set (`accessible_org_ids`) and posture rung, seeded once at run setup; it carries no grants. A run context may record `beganForNoCaller: true`. A run whose own user is not its caller is seeded with neither, and its data context carries neither. -- `@objectstack/objectql`: the hook session of a write made under that mark, for a run that began for no caller, carries it; `@objectstack/trigger-record-change` records that the run such a write fires began for no caller, and keeps the writer as its trigger user. diff --git a/.changeset/sec2-xrjw.md b/.changeset/sec2-xrjw.md deleted file mode 100644 index 6c84ed6c64a..00000000000 --- a/.changeset/sec2-xrjw.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@objectstack/service-automation': patch ---- - -fix(service-automation): no key a flow condition's scope or a dry run's payload is built from reaches a prototype - -Clause-②: no -Metadata-protocol: none - -The scope a flow's conditions, CEL value envelopes and `{{ }}` text holes read is built so that no variable key reaches a prototype, and the containers the builder creates have none. A variable key with a `__proto__` segment (`__proto__`, `__proto__.x`, `step.__proto__.x`) binds nothing in that scope. A dry run's outbound payload follows the same rule: an authored value-map key with such a segment is not written into the payload, and the payload walk descends through own properties only. - -No CEL spelling read such a key before. Two edges nobody relies on do read differently: a head bound only by such a key (`x` in `x.__proto__.y`) is now unbound instead of an empty map; and a stdlib function that stringifies its argument (`trim`, `joinNonEmpty`, a date coercion) now faults on a builder-made container instead of returning placeholder text for it. - -**Unchanged.** Every other key, dotted keys included: `step.result` still nests, and `step.result`, `vars.step.result` and `vars["$error"]` read as before. `constructor` and `prototype` stay ordinary keys: a variable named `prototype` is still read as `vars["prototype"]`, and a bare `constructor` and `step.prototype` still read. When a dotted key's head names a value the run holds, its tail is still written into that value. The run's variable map itself is untouched. diff --git a/.changeset/session-read-once-per-request.md b/.changeset/session-read-once-per-request.md deleted file mode 100644 index 692892be15e..00000000000 --- a/.changeset/session-read-once-per-request.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@objectstack/runtime': patch ---- - -fix(runtime): a signed-in request reads its session once when an authentication policy is on - -Clause-②: no -Metadata-protocol: none - -With an ADR-0069 authentication policy active (password expiry, required MFA, an administrator-issued password change), every signed-in request served by the runtime dispatcher, and every request to an app's declared endpoint, now makes one fewer pair of database round trips: the session and its user are read once and shared between identity resolution and the authentication-policy gate, where the gate used to read them again. Which requests are admitted or refused, and with which status, does not change. diff --git a/.changeset/shared-view-create-for-metadata-admins.md b/.changeset/shared-view-create-for-metadata-admins.md deleted file mode 100644 index c9206775018..00000000000 --- a/.changeset/shared-view-create-for-metadata-admins.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -Clause-②: yes (widening) -Metadata-protocol: none - -A shared list view is offered only to an administrator who may write one, and it is shared at once. Add view offers Shared only to an administrator whose session holds `manage_metadata`, the capability the shared view's write door asks; an organization administrator without it is no longer offered a Shared choice the server answers `403`. A view created Shared is saved and published in one act, so everyone sees it on their next read instead of waiting behind a draft; a refused save publishes nothing. A reader who opens a view the server says no longer exists is told so once, and the list shows its default view. Two new `@object-ui/i18n` keys under `view.switcher` carry the notices in every locale. diff --git a/.changeset/social-creation-needs-provider-verified-address.md b/.changeset/social-creation-needs-provider-verified-address.md deleted file mode 100644 index 83b2ff7d80e..00000000000 --- a/.changeset/social-creation-needs-provider-verified-address.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -'@objectstack/plugin-auth': patch ---- - -fix(plugin-auth)!: a self-serve social creation is admitted only with a provider-verified address under an address-based posture - -Clause-②: no (narrowing: a creation admitted today is refused; owes one CONTRACT_REVIEW_TIER review before the queue) -Metadata-protocol: none -Skills-docs: none — no skill under `skills/**` teaches the audience posture or a social-provider sign-in; `content/docs/permissions/authentication.mdx` and `content/docs/deployment/tenancy-modes.mdx` gain the rule in this change. - -<!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed, renamed or re-shaped. The moved answer is an account the admission gate does not create, so there is nothing stored for a migration to rewrite and no tombstone. --> - -**BREAKING** for a deployment under the `email_domain` audience posture, or under `open` while email verification is in force, where people create their account by signing in through a social provider that reports the address unverified. - -- Under `email_domain`, and under `open` while email verification is in force (the default there; only the deployment can declare it off), a new account through a social provider (`socialProviders`) is created only when the provider reports the address verified. Any other is refused `403 SELF_REGISTRATION_CLOSED` at the admission gate, as `invite_only` already refuses it: no account, no session, no membership. A browser sign-in redirects with `error=SELF_REGISTRATION_CLOSED`. -- A pending invitation addressed to that person does not admit the creation either, under both postures: the invitation is matched by the same address. -- The rule is told by the creation class, not by a list of providers, so a social provider added later is covered without being named. - -Unchanged: a social provider that reports the address verified, which is admitted and bound as before; identity providers an operator registers (`oidcProviders` entries and SSO providers); accounts an administrator creates, SCIM provisioning and accounts a boot command provisions; the first account of a fresh install; email-and-password, magic-link and email-OTP sign-ups; `open` with the deployment's email verification declared off; and the `invite_only` posture. - -What to do: a person refused this way verifies the address with the social provider and signs in again, or, where the deployment offers it, signs up with email and password and completes the verification mail. An invited person can also open the invitation mail's own link, which verifies the address and accepts in one step. diff --git a/.changeset/sort-builder-size-wording.md b/.changeset/sort-builder-size-wording.md deleted file mode 100644 index 74edf64dad5..00000000000 --- a/.changeset/sort-builder-size-wording.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@object-ui/components': patch -'@object-ui/plugin-list': patch -'@object-ui/i18n': patch ---- - -fix(components, plugin-list): the sort builder and the phone sort sheet word a number, percent, progress or currency direction as size - -Clause-②: no -Metadata-protocol: none - -A sort level on a numeric field read "A → Z" / "Z → A" in the sort builder (the list's "All sort levels" panel) and in the phone sort sheet's levels, while a date read "Oldest → Newest". Numeric, percent, progress, currency, rating and boolean levels now read "Low → High" / "High → Low" (zh: 「小 → 大」 / 「大 → 小」), date, datetime and time levels read as time, and text keeps the alphabet, on both surfaces. The words come from the `listConditions.sort.*` rows every locale already carries. - -What else a reader sees change: - -- The four `sortBuilder.ascending`, `sortBuilder.descending`, `sortBuilder.oldestFirst` and `sortBuilder.newestFirst` rows are no longer read by either surface; the rows stay in the packs. A host that overrode them to reword a sort direction now overrides `listConditions.sort.alphabet_asc` / `alphabet_desc` / `time_asc` / `time_desc` (and `size_asc` / `size_desc` for numbers) instead. -- Because the words now come from `listConditions.sort.*`, the date and text wording changes in some locales: Japanese and Korean dates read 「古い → 新しい」 / 「오래된 순 → 최신 순」 instead of 「古い順」 / 「오래된 순」, Russian dates read "Старые → Новые" instead of "Сначала старые", and Russian text reads "А → Я" instead of "A → Z". -- Arabic: the `listConditions.sort.alphabet_asc` / `alphabet_desc` pair now reads "A → Z" / "Z → A". A run of two Latin letters stays left to right on a right-to-left page, so the old "A ← Z" showed ascending as Z to A. diff --git a/.changeset/sso-discovery-connect-time.md b/.changeset/sso-discovery-connect-time.md deleted file mode 100644 index 6d4058fb2ba..00000000000 --- a/.changeset/sso-discovery-connect-time.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@objectstack/plugin-auth': patch -'@objectstack/core': patch ---- - -fix(plugin-auth)!: SSO discovery connects only to addresses that are public at connect time - -Clause-②: no (narrowing) -Metadata-protocol: none - -<!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped. What moves is runtime answers of the SSO doors: a read of an identity provider's OpenID Connect configuration is sent only to an address that is public when the connection is made, unless the deployment's trusted origins list its origin. `AuthManagerOptions` gains one optional member and the guarded fetch's init one optional member; nothing stored, no registry key and no authored value changes, so there is nothing for a migration to rewrite and no tombstone. --> - -**BREAKING** for an identity provider whose OpenID Connect host resolves to a private, loopback, link-local, cloud metadata or host-platform address (`168.63.129.16` included), or to any other non-public address, on an origin `OS_TRUSTED_ORIGINS` does not list, at the moment the server reads it: a registration (`POST /api/v1/auth/sso/register`, or the Register SSO Provider bridge) is refused `400 VALIDATION_FAILED` on `issuer` (or on `oidcConfig.discoveryEndpoint` when the registration names one), an update that turns "sign out of the company sign-in too" on is refused `400 VALIDATION_FAILED` on `signOutOfIdp`, and a sign-in's callback ends on the error page with `invalid_provider`. It ships `patch` because it is a non-protocol breaking change (AGENTS.md Post-Task Checklist step 3): no metadata author writes an SSO provider, so `Metadata-protocol` is `none`. - -SSO discovery connects only to addresses that are public at connect time. Every read the server makes of an identity provider (a registration's discovery document, the sign-out switch's read of that document on a registration or an update, a sign-in's discovery, and the token, key-set and userinfo reads of a sign-in's callback) is sent through the platform's outbound-request guard (`@objectstack/core/egress`): the connection resolves the host, judges every address by the platform's address classes, and connects to an address it judged, so the address judged is the address connected. A host that is not public is refused and nothing is sent to it, whatever an earlier lookup of the same name answered, and so is a name that does not resolve when the read connects. Only reads at the origins the provider's configuration names are judged (the registration's body, or the provider row the sign-in reads): every other request the server makes while answering, such as a datastore or a rate-limit store reached over HTTP, is sent as before. A registration still judges its discovery host before reading it, now by the same rule and the same address classes, an address literal included; a name that does not resolve there is left to the read, which refuses it. The origins a registration names stay trusted for that registration's discovery checks only, and `OS_EGRESS_ALLOWED_TARGETS` does not open SSO discovery. - -`@objectstack/core`: the guarded fetch's init takes fetch's `redirect` mode; `manual` answers a redirect response as it is and follows nothing, for a caller that refuses redirects itself. - -Fix for an operator whose identity provider runs on an internal network: list its origin in `OS_TRUSTED_ORIGINS`, and its reads are sent as before. diff --git a/.changeset/sso-discovery-public-hosts.md b/.changeset/sso-discovery-public-hosts.md deleted file mode 100644 index 3344fd5f4ea..00000000000 --- a/.changeset/sso-discovery-public-hosts.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@objectstack/plugin-auth': patch ---- - -fix(plugin-auth)!: SSO discovery fetches only hosts that resolve to public addresses - -Clause-②: no (narrowing) -Metadata-protocol: none - -<!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is one runtime answer of the SSO provider register door: a registration whose discovery document sits on a host that resolves to an address that is not public, on an origin the deployment's trusted origins do not list, is refused before anything is read. No stored row, registry key or authored value changes, so there is nothing for a migration to rewrite and no tombstone. --> - -**BREAKING** for an SSO provider registration (`POST /api/v1/auth/sso/register`, or the Register SSO Provider bridge `POST /api/v1/auth/admin/sso/register`) whose OpenID Connect discovery document sits on a host that resolves to a private, loopback, link-local or otherwise non-public address, on an origin `OS_TRUSTED_ORIGINS` does not list: it is refused `400 VALIDATION_FAILED` on `issuer` (or on `oidcConfig.discoveryEndpoint` when the registration names one), and the bridge answers `400 SSO_REGISTER_FAILED`. It ships `patch` because it is a non-protocol breaking change (AGENTS.md Post-Task Checklist step 3): no metadata author writes an SSO provider registration, so `Metadata-protocol` is `none`. - -SSO discovery fetches only hosts that resolve to public addresses. Before a registration reads its discovery document, the server resolves that document's host and every address must be public (the same predicate `@better-auth/sso` applies to the endpoints it reads at sign-in). The origins a registration names stay trusted for that registration's discovery checks, as before; that trust never stands in for this one. A registration that reads no discovery document (a SAML provider, or `skipDiscovery`) resolves nothing, and a registration with no session is answered `401` before any name is resolved. - -Fix for an operator whose identity provider runs on an internal network: list its origin in `OS_TRUSTED_ORIGINS`, and the registration reads its discovery document as before. diff --git a/.changeset/studio-author-wording.md b/.changeset/studio-author-wording.md deleted file mode 100644 index 9cfddff3547..00000000000 --- a/.changeset/studio-author-wording.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@object-ui/app-shell': patch -'@object-ui/i18n': patch ---- - -fix(studio): the author panels speak the author's words, and the zh pack names `label` 显示名 - -Clause-②: no -Metadata-protocol: none - -- A Lookup's related-object picker shows the placeholder 「选择对象…」 / "Select object…" (not `object_name`), in prose type, with a chevron; the roll-up child-object picker takes the same placeholder. The "every record is selectable" hint and the related-list help name the target by its label, and neither is drawn before a target is set. -- The post-save advisory toast shows the producer's sentence alone when the finding carries one; the rule id and locator stay on the developer face (a finding with no sentence). -- The Notify node's rows are rewritten in the author's words in en and zh: no key aliases, no literal defaults, no `info | warning | critical`; the topic row reads "Category" (zh 「通知类别」) and the severity options read 一般 / 警告 / 紧急 in zh. -- The object Settings tab keeps each metadata key off the panel at rest: the key is the setting title's hover text. The object inspector's `split.renderKey` is replaced by `split.keysOnHover`. -- The Studio zh pack names an item's `label` 显示名 throughout, where it said 标签 or 显示名称 (the add-field hints included). diff --git a/.changeset/t1-stale-prose.md b/.changeset/t1-stale-prose.md deleted file mode 100644 index 1629638aa02..00000000000 --- a/.changeset/t1-stale-prose.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@objectstack/spec': patch -'@objectstack/objectql': patch -'@objectstack/core': patch -'@objectstack/lint': patch -'@objectstack/service-analytics': patch -'@object-ui/fields': patch ---- - -docs: stale prose on summary currency, the temporal-comparand door and analytics filters now says what the code does - -Clause-②: no -Metadata-protocol: none - -No accepted value, key or answer moves. Two refusal messages change their words: - -- A `currencyMode: 'dynamic'` summary over a child `currency` field that is neither `dynamic` nor a well-formed `record` / `fixed` (a stored `fixed` field with no `defaultCurrency`, or a `currencyMode` outside the three) is still refused, and the refusal now names what the child lacks: "is a 'currency' field in `fixed` mode with no `defaultCurrency` code (the currency it is fixed to is missing)", or "is a 'currency' field whose `currencyMode` 'X' is none of `dynamic`, `fixed` and `record`". Before, it said only "is a 'currency' field, not a `currency` field in `dynamic` mode". -- The temporal-comparand door's refusal of a comparand no temporal rule reads (`'not-a-date'`, the preset name `'last_30_days'`) now ends "As written it would reach the driver and be compared as text: it may select every row, none or the wrong ones (or raise a database error), an answer indistinguishable from a real one." Before, it said the comparison would "compare false for EVERY row", which was wrong for `$lt` and others that selected every row, for a partial day such as `'2026-06'` that selected a subset, and on PostgreSQL, which raised a database error. Its `having` twin says the same of the groups it would keep, where it said "no group or every group, a 200". - -The upgrade-guide entry `summary-dynamic-currency-rollup-home-amount-judged-as-served` now states the admitted set as both doors enforce it: a `dynamic` summary may roll up any child `currency` field in `dynamic` mode, a stored home amount included. Source comments and published docblocks that said every `{placeholder}` is stepped around by the temporal door now state the per-kind rule: a date macro is stepped around and judged by its year once resolved, a period key and a context token are judged as written, and an unknown or record-context token is left to the resolver. diff --git a/.changeset/validation-override-interpolated-once.md b/.changeset/validation-override-interpolated-once.md deleted file mode 100644 index 9309b4c0c6a..00000000000 --- a/.changeset/validation-override-interpolated-once.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/spec': patch ---- - -fix(spec): a deployment's validation override prints a written value exactly as written - -Clause-②: no -Metadata-protocol: none - -`renderValidationMessage` (`@objectstack/spec/system`) now asks a deployment's `validation.field.<messageKey>` override for its template, without the parameters, and fills the placeholders once. Before, the `i18n` service filled them and the renderer filled the result again, so a written value that itself contained a placeholder, such as a select value `{{label}} plan` refused as `invalid_option_value`, was expanded on the second pass and the refusal showed the field label where the user's own value should be. An override's text now quotes the value exactly as written, as the built-in sentence already did. Overrides that use only `{{name}}` placeholders read the same as before. - -The `translate` option of `RenderValidationMessageOptions` and `RenderOperationMessageOptions` now says it is asked for the template with no params. Its type is unchanged. The error code, status and the shipped `value` field of the refusal are unchanged. diff --git a/.changeset/verify-managed-datasource-stand-in.md b/.changeset/verify-managed-datasource-stand-in.md deleted file mode 100644 index d1f3daa99c7..00000000000 --- a/.changeset/verify-managed-datasource-stand-in.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@objectstack/verify': patch ---- - -Clause-②: no -Metadata-protocol: none - -`os verify` no longer writes test rows into a declared managed datasource's real database. A datasource the app declares with `schemaMode: 'managed'` (or none) is now built as a fresh in-memory store of the same kind as verify's own default store, so its objects are still exercised (CRUD, reference shapes, delete behaviours, unique scopes) and nothing reaches the database the datasource names. A managed datasource whose engine has no faithful in-memory stand-in (`mongodb`, or a driver a plugin supplies) keeps its real driver, and verify leaves its objects out, reported as `managed datasource "NAME" (driver "DRIVER"): not exercised`. An object that requires a reference to a withheld object (external, or one of those) is now reported as withheld on purpose with the target's reason, instead of "required relational target X is not synthesizable". diff --git a/content/docs/deployment/self-hosting.mdx b/content/docs/deployment/self-hosting.mdx index 4c4a16795bd..d96899b2808 100644 --- a/content/docs/deployment/self-hosting.mdx +++ b/content/docs/deployment/self-hosting.mdx @@ -110,7 +110,7 @@ docker run -p 8080:8080 \ -e OS_DATABASE_URL="postgres://user:pass@db-host:5432/myapp" \ -e OS_AUTH_SECRET \ -e OS_SECRET_KEY \ - ghcr.io/objectstack-ai/objectstack:18.6.0 + ghcr.io/objectstack-ai/objectstack:18.7.0 ``` (`OS_ARTIFACT_PATH` also accepts an `https://` URL, so the artifact can come @@ -128,7 +128,7 @@ docker run -p 8080:8080 \ -e OS_ARTIFACT_URL="https://releases.example.com/hotcrm-2.2.2.json#sha256=<64 hex chars>" \ -e OS_DATABASE_URL="postgres://user:pass@db-host:5432/myapp" \ -e OS_AUTH_SECRET -e OS_SECRET_KEY \ - ghcr.io/objectstack-ai/objectstack:18.6.0 + ghcr.io/objectstack-ai/objectstack:18.7.0 ``` Both schemes work: `https://…` is fetched at boot, `file:///…` is read directly @@ -186,7 +186,7 @@ COPY . . RUN npx os build # → dist/objectstack.json # ── Runtime: the official ObjectStack runtime image ────────────────── -FROM ghcr.io/objectstack-ai/objectstack:18.6.0 +FROM ghcr.io/objectstack-ai/objectstack:18.7.0 COPY --from=build --chown=node:node /app/dist/objectstack.json /srv/app/objectstack.json ``` @@ -209,7 +209,7 @@ FROM node:22-slim RUN npm install --prefix /tmp/os-installer-npm --no-save --no-audit --no-fund "npm@11.21.0" \ && export PATH="/tmp/os-installer-npm/node_modules/.bin:$PATH" \ && test "$(npm --version)" = "11.21.0" \ - && npm install -g @objectstack/cli@18.6.0 "pg@^8.0.0" "mysql2@^3.0.0" \ + && npm install -g @objectstack/cli@18.7.0 "pg@^8.0.0" "mysql2@^3.0.0" \ && npm cache clean --force \ && rm -rf /tmp/os-installer-npm diff --git a/content/docs/releases/index.mdx b/content/docs/releases/index.mdx index 91a353bc50a..96c04dc7d41 100644 --- a/content/docs/releases/index.mdx +++ b/content/docs/releases/index.mdx @@ -19,7 +19,7 @@ migration steps, then covers new capabilities and notable fixes. ## Versions -- [v18](/docs/releases/v18) — The line that carries ADR-0131, total organization ownership with no NULL `organization_id`; its breaking changes landed in stages through the `18.0.0-next.N` prereleases on npm's `next` tag, each with its own changeset and migration, and its GA release, 18.0.0, publishes to npm's `latest` tag and moves it from 17.x to 18 (current series: 18.6.0, released 2026-11-18). +- [v18](/docs/releases/v18) — The line that carries ADR-0131, total organization ownership with no NULL `organization_id`; its breaking changes landed in stages through the `18.0.0-next.N` prereleases on npm's `next` tag, each with its own changeset and migration, and its GA release, 18.0.0, publishes to npm's `latest` tag and moves it from 17.x to 18 (current series: 18.7.0, released 2026-11-25). - [v17.0.0](/docs/releases/v17) — Files become owned `sys_file` records with server-enforced `accept`/`maxSize` and a governed download path, bulk export becomes its own opt-in privilege, the SDK is reconciled against the routes the server actually mounts (21 dead methods out, 40+ real ones in), approval nodes route approvers dynamically via CEL expressions and decision outputs, a datasource that cannot connect fails the boot, and Node 22 becomes the supported floor; 17.1 adds partial field masking, record-view auditing on `sys_audit_log`, and a per-object read-only approval visibility tier — and makes a deactivated permission set or position actually stop granting access, withdraws the bulk-export wildcard from the shipped admin sets, and gives all three flow doors one honest HTTP status table; 17.2 tightens by-id `update`/`delete` against a silently-dropped `where` predicate or a mismatched id, retires `sys_position.permissions` and other dead ADR-0049 surfaces, and stops analytics from answering the wrong number on a cross-object filter (final release: 17.7.0). - [v16.0.0](/docs/releases/v16) — One org identifier (`organizationId`) across hooks and actions, quorum + per-group sign-off (会签) approvals with metadata-declared decision actions, time-relative automations, filtered roll-ups, strict dashboard widgets, an identity-scoped MCP stdio transport, and a platform-wide enforce-or-remove sweep that makes dead metadata loud; 16.1 adds a `requires` capability-provider preflight, two more dashboard build gates, and `runAs:'user'` automations that run with the triggering user's real grants (final release: 16.1.0). - [v15.0.0](/docs/releases/v15) — Explain record access layer by layer, a docked AI workspace in the Console, project-ready Gantt charts, and phone sign-in; 15.1 adds permission-following attachments, no-code third-party connectors, dashboard-wide filters, pinyin search, and whole-record inline editing — with materially safer multi-tenant and write-path defaults (final release: 15.1.1). diff --git a/content/docs/upgrading.mdx b/content/docs/upgrading.mdx index 64d94d8e174..f92eab270f6 100644 --- a/content/docs/upgrading.mdx +++ b/content/docs/upgrading.mdx @@ -52,7 +52,7 @@ The official image is `ghcr.io/objectstack-ai/objectstack`, and its tags mirror ```bash # docker-compose.yml, or your orchestrator's manifest -image: ghcr.io/objectstack-ai/objectstack:18.6.0 +image: ghcr.io/objectstack-ai/objectstack:18.7.0 ``` On a host running the artifact directly under systemd, the same move is a file diff --git a/docker/README.md b/docker/README.md index b54bcee416a..bbd470e22b0 100644 --- a/docker/README.md +++ b/docker/README.md @@ -29,7 +29,7 @@ Multi-arch: `linux/amd64` + `linux/arm64`. [Self-Hosted Deployment](https://objectstack.ai/docs/deployment/self-hosting)): ```dockerfile -FROM ghcr.io/objectstack-ai/objectstack:18.6.0 +FROM ghcr.io/objectstack-ai/objectstack:18.7.0 COPY --chown=node:node dist/objectstack.json /srv/app/objectstack.json ``` @@ -40,7 +40,7 @@ docker run -p 8080:8080 \ -v "$PWD/dist/objectstack.json:/srv/app/objectstack.json:ro" \ -e OS_DATABASE_URL="postgres://user:pass@db-host:5432/myapp" \ -e OS_AUTH_SECRET -e OS_SECRET_KEY \ - ghcr.io/objectstack-ai/objectstack:18.6.0 + ghcr.io/objectstack-ai/objectstack:18.7.0 ``` `OS_ARTIFACT_PATH` also accepts an `https://` URL, so the artifact can come @@ -72,7 +72,7 @@ for a `file:…` path — one box only, wrong for multi-node) and MongoDB (`libsql://…` / Turso). Add one by extending the image: ```dockerfile -FROM ghcr.io/objectstack-ai/objectstack:18.6.0 +FROM ghcr.io/objectstack-ai/objectstack:18.7.0 USER root RUN npm install -g tedious USER node @@ -111,5 +111,5 @@ Full variable catalog and reverse-proxy / multi-node guidance: ## Local build of this image ```bash -docker build -t objectstack:dev --build-arg OS_CLI_VERSION=18.6.0 docker/ +docker build -t objectstack:dev --build-arg OS_CLI_VERSION=18.7.0 docker/ ``` diff --git a/examples/app-crm/CHANGELOG.md b/examples/app-crm/CHANGELOG.md index 9df7dd5ba59..78617802376 100644 --- a/examples/app-crm/CHANGELOG.md +++ b/examples/app-crm/CHANGELOG.md @@ -1,5 +1,200 @@ # @objectstack/example-crm +## 4.0.107 + +### Patch Changes + +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [4c2d8d7] +- Updated dependencies [a998964] +- Updated dependencies [1c05546] +- Updated dependencies [cceb5c6] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [2d33205] +- Updated dependencies [78f3ab2] +- Updated dependencies [3c038eb] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [96faf44] +- Updated dependencies [2df9691] +- Updated dependencies [961f474] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8596c80] +- Updated dependencies [ec227fc] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [65b67be] +- Updated dependencies [1caee8c] +- Updated dependencies [dbb2f68] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [467b13b] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [fcbebf2] +- Updated dependencies [c99156e] +- Updated dependencies [ea58563] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [c4d6acc] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [ddceb22] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [ac43336] +- Updated dependencies [a3ee862] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [3f568c1] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [e343ab7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [6cfb782] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [9c57bd2] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [c448c61] +- Updated dependencies [372ce7c] +- Updated dependencies [c059e60] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [d2bc1ff] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/runtime@18.7.0 + - @objectstack/service-i18n@18.7.0 + ## 4.0.106 ### Patch Changes diff --git a/examples/app-crm/package.json b/examples/app-crm/package.json index 7cda625ee29..245d31da99f 100644 --- a/examples/app-crm/package.json +++ b/examples/app-crm/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/example-crm", - "version": "4.0.106", + "version": "4.0.107", "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 58bf9c7dc35..e646a4005b1 100644 --- a/examples/app-multi-package/CHANGELOG.md +++ b/examples/app-multi-package/CHANGELOG.md @@ -1,5 +1,168 @@ # @objectstack/example-multi-package +## 0.0.14 + +### Patch Changes + +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + ## 0.0.13 ### Patch Changes diff --git a/examples/app-multi-package/package.json b/examples/app-multi-package/package.json index 5a7ee157d0d..185636e13ab 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.13", + "version": "0.0.14", "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 cbffa019b8a..eb6485de627 100644 --- a/examples/app-showcase/CHANGELOG.md +++ b/examples/app-showcase/CHANGELOG.md @@ -1,5 +1,226 @@ # @objectstack/example-showcase +## 0.3.29 + +### Patch Changes + +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [4c2d8d7] +- Updated dependencies [a998964] +- Updated dependencies [1c05546] +- Updated dependencies [cceb5c6] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [2d33205] +- Updated dependencies [78f3ab2] +- Updated dependencies [3c038eb] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [c05a8a0] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [24cc61f] +- Updated dependencies [5ecf937] +- Updated dependencies [96faf44] +- Updated dependencies [2df9691] +- Updated dependencies [961f474] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4c18c43] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8596c80] +- Updated dependencies [ec227fc] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [65b67be] +- Updated dependencies [1caee8c] +- Updated dependencies [dbb2f68] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [467b13b] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [c0484c8] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [edc5355] +- Updated dependencies [99ece3c] +- Updated dependencies [2211bb1] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [fcbebf2] +- Updated dependencies [c99156e] +- Updated dependencies [ea58563] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [c4d6acc] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [85dde2d] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [850bcec] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [907b378] +- Updated dependencies [521b4f6] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [9a82465] +- Updated dependencies [ad92dfd] +- Updated dependencies [b572420] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [ddceb22] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [ac43336] +- Updated dependencies [a3ee862] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [3f568c1] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [89ce4fb] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [e343ab7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [c8d4b90] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [6cfb782] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [9c57bd2] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [c448c61] +- Updated dependencies [702b0cf] +- Updated dependencies [372ce7c] +- Updated dependencies [c059e60] +- Updated dependencies [db9e34a] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [d2bc1ff] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/runtime@18.7.0 + - @objectstack/cloud-connection@18.7.0 + - @objectstack/connector-slack@18.7.0 + - @objectstack/driver-sql@18.7.0 + - @objectstack/service-print@18.7.0 + - @objectstack/service-record-context@18.7.0 + - @objectstack/connector-mcp@18.7.0 + - @objectstack/connector-openapi@18.7.0 + - @objectstack/connector-rest@18.7.0 + - @objectstack/organizations@18.7.0 + - @objectstack/service-datasource@18.7.0 + - @objectstack/service-i18n@18.7.0 + ## 0.3.28 ### Patch Changes diff --git a/examples/app-showcase/package.json b/examples/app-showcase/package.json index 52a751dd67f..26dd3a4e9cc 100644 --- a/examples/app-showcase/package.json +++ b/examples/app-showcase/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/example-showcase", - "version": "0.3.28", + "version": "0.3.29", "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-todo/CHANGELOG.md b/examples/app-todo/CHANGELOG.md index 7da96273c12..27862d92871 100644 --- a/examples/app-todo/CHANGELOG.md +++ b/examples/app-todo/CHANGELOG.md @@ -1,5 +1,255 @@ # @objectstack/example-todo +## 4.0.107 + +### Patch Changes + +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [4c2d8d7] +- Updated dependencies [cc03bdc] +- Updated dependencies [ef39b2c] +- Updated dependencies [a73edb3] +- Updated dependencies [93fa4f9] +- Updated dependencies [a998964] +- Updated dependencies [1c05546] +- Updated dependencies [9fea316] +- Updated dependencies [cceb5c6] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [e6e5224] +- Updated dependencies [94a2d8b] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [c4a73be] +- Updated dependencies [4db08d5] +- Updated dependencies [8e46424] +- Updated dependencies [d5ece3e] +- Updated dependencies [2d33205] +- Updated dependencies [78f3ab2] +- Updated dependencies [3c038eb] +- Updated dependencies [f4dbcc2] +- Updated dependencies [f5b2eea] +- Updated dependencies [d17adf5] +- Updated dependencies [9c29d73] +- Updated dependencies [e22502c] +- Updated dependencies [bf69cb4] +- Updated dependencies [0739dee] +- Updated dependencies [f54fc93] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [96faf44] +- Updated dependencies [e25207d] +- Updated dependencies [d6ce9ba] +- Updated dependencies [7ed18b5] +- Updated dependencies [2df9691] +- Updated dependencies [961f474] +- Updated dependencies [a6cf988] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8596c80] +- Updated dependencies [ba304e0] +- Updated dependencies [ec227fc] +- Updated dependencies [ba6556c] +- Updated dependencies [8856afc] +- Updated dependencies [96a1f2b] +- Updated dependencies [c787255] +- Updated dependencies [c480f33] +- Updated dependencies [9062756] +- Updated dependencies [65b67be] +- Updated dependencies [1caee8c] +- Updated dependencies [dbb2f68] +- Updated dependencies [cdb327f] +- Updated dependencies [5cd2b54] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [43639a6] +- Updated dependencies [467b13b] +- Updated dependencies [abb40ae] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [c321914] +- Updated dependencies [61722e9] +- Updated dependencies [37f7814] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [6d0089c] +- Updated dependencies [99ece3c] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [dab4712] +- Updated dependencies [4890cd0] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [c59ee99] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [fcbebf2] +- Updated dependencies [c99156e] +- Updated dependencies [ea58563] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [50d6da8] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [61831d2] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [7dd1a2f] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [d9be915] +- Updated dependencies [c4d6acc] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [17ed9e7] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [ddceb22] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [ac43336] +- Updated dependencies [a3ee862] +- Updated dependencies [7501d0c] +- Updated dependencies [756df0a] +- Updated dependencies [45ef94e] +- Updated dependencies [3f568c1] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [e343ab7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [7abf25f] +- Updated dependencies [76eea0f] +- Updated dependencies [6cfb782] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [9c57bd2] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [eec6fb3] +- Updated dependencies [bee9b68] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [c448c61] +- Updated dependencies [372ce7c] +- Updated dependencies [c059e60] +- Updated dependencies [084156d] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [4101f1f] +- Updated dependencies [695b9db] +- Updated dependencies [d2bc1ff] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/runtime@18.7.0 + - @objectstack/objectql@18.7.0 + - @objectstack/service-knowledge@18.7.0 + - @objectstack/metadata@18.7.0 + - @objectstack/mcp@18.7.0 + - @objectstack/client@18.7.0 + - @objectstack/driver-sqlite-wasm@18.7.0 + - @objectstack/knowledge-memory@18.7.0 + - @objectstack/service-i18n@18.7.0 + ## 4.0.106 ### Patch Changes diff --git a/examples/app-todo/package.json b/examples/app-todo/package.json index e15b33df68c..77b3d9f45b4 100644 --- a/examples/app-todo/package.json +++ b/examples/app-todo/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/example-todo", - "version": "4.0.106", + "version": "4.0.107", "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 f48b18edf5a..e59628842fe 100644 --- a/examples/embed-objectql/CHANGELOG.md +++ b/examples/embed-objectql/CHANGELOG.md @@ -1,5 +1,199 @@ # @objectstack/example-embed-objectql +## 0.0.47 + +### Patch Changes + +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [cc03bdc] +- Updated dependencies [ef39b2c] +- Updated dependencies [93fa4f9] +- Updated dependencies [1c05546] +- Updated dependencies [9fea316] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [e6e5224] +- Updated dependencies [94a2d8b] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [4db08d5] +- Updated dependencies [8e46424] +- Updated dependencies [d5ece3e] +- Updated dependencies [f4dbcc2] +- Updated dependencies [d17adf5] +- Updated dependencies [9c29d73] +- Updated dependencies [bf69cb4] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [a6cf988] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [c480f33] +- Updated dependencies [9062756] +- Updated dependencies [65b67be] +- Updated dependencies [1caee8c] +- Updated dependencies [cdb327f] +- Updated dependencies [5cd2b54] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [43639a6] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [c321914] +- Updated dependencies [61722e9] +- Updated dependencies [37f7814] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [6d0089c] +- Updated dependencies [99ece3c] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [4890cd0] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [c59ee99] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [50d6da8] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [7dd1a2f] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [17ed9e7] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [756df0a] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [4101f1f] +- Updated dependencies [695b9db] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/objectql@18.7.0 + - @objectstack/driver-memory@18.7.0 + ## 0.0.46 ### Patch Changes diff --git a/examples/embed-objectql/package.json b/examples/embed-objectql/package.json index 8c72df024ef..1525a77a5b9 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.46", + "version": "0.0.47", "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 ae8201175e7..daa9f1f6001 100644 --- a/packages/adapters/hono/CHANGELOG.md +++ b/packages/adapters/hono/CHANGELOG.md @@ -1,5 +1,62 @@ # @objectstack/hono +## 18.7.0 + +### Patch Changes + +- Updated dependencies [8236d9b] +- Updated dependencies [9abc732] +- Updated dependencies [4c2d8d7] +- Updated dependencies [a998964] +- Updated dependencies [cceb5c6] +- Updated dependencies [4ffe9d3] +- Updated dependencies [f796089] +- Updated dependencies [2d33205] +- Updated dependencies [78f3ab2] +- Updated dependencies [3c038eb] +- Updated dependencies [5ecf937] +- Updated dependencies [96faf44] +- Updated dependencies [961f474] +- Updated dependencies [8596c80] +- Updated dependencies [ec227fc] +- Updated dependencies [8856afc] +- Updated dependencies [65b67be] +- Updated dependencies [1caee8c] +- Updated dependencies [dbb2f68] +- Updated dependencies [467b13b] +- Updated dependencies [53c9575] +- Updated dependencies [fcbebf2] +- Updated dependencies [ea58563] +- Updated dependencies [7c122ff] +- Updated dependencies [fe19096] +- Updated dependencies [c4d6acc] +- Updated dependencies [c261a7c] +- Updated dependencies [ddceb22] +- Updated dependencies [d463c46] +- Updated dependencies [ac43336] +- Updated dependencies [a3ee862] +- Updated dependencies [3f568c1] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [e343ab7] +- Updated dependencies [8aecf6d] +- Updated dependencies [129e637] +- Updated dependencies [76eea0f] +- Updated dependencies [6cfb782] +- Updated dependencies [84b1e0c] +- Updated dependencies [9c57bd2] +- Updated dependencies [2a6f26a] +- Updated dependencies [c448c61] +- Updated dependencies [c059e60] +- Updated dependencies [595e9cb] +- Updated dependencies [64b278e] +- Updated dependencies [d2bc1ff] + - @objectstack/runtime@18.7.0 + - @objectstack/types@18.7.0 + - @objectstack/plugin-hono-server@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/adapters/hono/package.json b/packages/adapters/hono/package.json index 37619287165..0859e748953 100644 --- a/packages/adapters/hono/package.json +++ b/packages/adapters/hono/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/hono", - "version": "18.6.0", + "version": "18.7.0", "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 0dddb0b84fa..38fffcf37ad 100644 --- a/packages/apps/account/CHANGELOG.md +++ b/packages/apps/account/CHANGELOG.md @@ -1,5 +1,185 @@ # @objectstack/account +## 18.7.0 + +### Patch Changes + +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [a73edb3] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [d053c7d] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [c9b3f7a] +- Updated dependencies [01e6af6] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [4026c44] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [89ea9bf] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [17ed9e7] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [a98c077] +- Updated dependencies [236c804] +- Updated dependencies [d71fe59] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [a5a5312] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6943af1] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [24ff03c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [c8d4b90] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [b3247dd] +- Updated dependencies [372ce7c] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [bc2aaf1] +- Updated dependencies [4e55e4e] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/platform-objects@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/apps/account/package.json b/packages/apps/account/package.json index c941b6f166e..3af67140208 100644 --- a/packages/apps/account/package.json +++ b/packages/apps/account/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/account", - "version": "18.6.0", + "version": "18.7.0", "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 38c878e01d3..abac4f44029 100644 --- a/packages/apps/connector-docusign/CHANGELOG.md +++ b/packages/apps/connector-docusign/CHANGELOG.md @@ -1,5 +1,169 @@ # @objectstack/connector-app-docusign +## 0.1.5 + +### Patch Changes + +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/connector-openapi@18.7.0 + ## 0.1.4 ### Patch Changes diff --git a/packages/apps/connector-docusign/package.json b/packages/apps/connector-docusign/package.json index 08f2797c2a6..a337f2aeaad 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.4", + "version": "0.1.5", "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 055b354ea12..bf54e427631 100644 --- a/packages/apps/connector-github/CHANGELOG.md +++ b/packages/apps/connector-github/CHANGELOG.md @@ -1,5 +1,169 @@ # @objectstack/connector-app-github +## 0.1.5 + +### Patch Changes + +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/connector-mcp@18.7.0 + ## 0.1.4 ### Patch Changes diff --git a/packages/apps/connector-github/package.json b/packages/apps/connector-github/package.json index 859b7c23922..faba5c02bae 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.4", + "version": "0.1.5", "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 2c10b00eba2..11deba6c671 100644 --- a/packages/apps/connector-stripe/CHANGELOG.md +++ b/packages/apps/connector-stripe/CHANGELOG.md @@ -1,5 +1,169 @@ # @objectstack/connector-app-stripe +## 0.1.5 + +### Patch Changes + +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/connector-openapi@18.7.0 + ## 0.1.4 ### Patch Changes diff --git a/packages/apps/connector-stripe/package.json b/packages/apps/connector-stripe/package.json index 9c15f3cf4b2..28ab4fa5f94 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.4", + "version": "0.1.5", "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 de776377a07..f1cbf229fc4 100644 --- a/packages/apps/setup/CHANGELOG.md +++ b/packages/apps/setup/CHANGELOG.md @@ -1,5 +1,185 @@ # @objectstack/setup +## 18.7.0 + +### Patch Changes + +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [a73edb3] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [d053c7d] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [c9b3f7a] +- Updated dependencies [01e6af6] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [4026c44] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [89ea9bf] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [17ed9e7] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [a98c077] +- Updated dependencies [236c804] +- Updated dependencies [d71fe59] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [a5a5312] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6943af1] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [24ff03c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [c8d4b90] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [b3247dd] +- Updated dependencies [372ce7c] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [bc2aaf1] +- Updated dependencies [4e55e4e] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/platform-objects@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/apps/setup/package.json b/packages/apps/setup/package.json index ac635236bc9..f4b5e5c4f71 100644 --- a/packages/apps/setup/package.json +++ b/packages/apps/setup/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/setup", - "version": "18.6.0", + "version": "18.7.0", "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 aef984a1bf3..d5e18bbb9b1 100644 --- a/packages/apps/studio/CHANGELOG.md +++ b/packages/apps/studio/CHANGELOG.md @@ -1,5 +1,185 @@ # @objectstack/studio +## 18.7.0 + +### Patch Changes + +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [a73edb3] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [d053c7d] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [c9b3f7a] +- Updated dependencies [01e6af6] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [4026c44] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [89ea9bf] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [17ed9e7] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [a98c077] +- Updated dependencies [236c804] +- Updated dependencies [d71fe59] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [a5a5312] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6943af1] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [24ff03c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [c8d4b90] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [b3247dd] +- Updated dependencies [372ce7c] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [bc2aaf1] +- Updated dependencies [4e55e4e] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/platform-objects@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/apps/studio/package.json b/packages/apps/studio/package.json index 25f31f6f9f0..1cc89aa7f37 100644 --- a/packages/apps/studio/package.json +++ b/packages/apps/studio/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/studio", - "version": "18.6.0", + "version": "18.7.0", "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 270710f2a42..d1cd8578fae 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,5 +1,983 @@ # @objectstack/cli +## 18.7.0 + +### Minor Changes + +- f44758b: feat(units): `os migrate unit-codes` converts stored unit text into unit codes, from the operator's mapping + + Clause-②: yes + Metadata-protocol: added + + ADR-0158 U7 R1, the backfill door (#35492). It is the twin of `os migrate record-currency-codes`. + + **What it is for.** A field declared a unit code field after its rows were stored still holds free text such as `kg`, `公斤` or `lbs`. Since #35489 the engine checks each unit code it writes, so editing a quantity beside such a value is refused until the row holds a code. This door converts those rows in one run. + + **`backfillUnitCodes`** (`@objectstack/objectql`, also exported: `formatUnitCodeBackfillReport`, `unitCodeBackfillComplete`, `unitCodeMappingOf` and the report types): + + - **Which field.** `field` names the unit code field: the `text` field a quantity's `unitConfig.unitField` names, or a standalone `unitConfig: { unitMode: 'code' }` field. If you name the quantity, the refusal is `INVALID_FIELD` and names the field to use. + - **The mapping.** It is the operator's, never derived. It maps stored text, exactly as written, to a unit code. Matching is exact: `kg ` and `KG` need their own entries. + - **Targets are judged before any row is read**, as the write would judge them. A target that is not a standard UN/ECE Recommendation 20 code or one of the organization's own units, a retired unit, or a unit of another dimension than the field's `unitDimension` is refused `INVALID_FIELD` / 400 on the field. With no organization named, organization codes are judged in each organization the run would write them in, still before any write. + - **Rows already holding a unit code are never rewritten**, so the run is idempotent: a second apply run writes nothing. That includes a unit the organization retired and a code of another dimension. Both are codes, not free text, and rewriting them from a mapping would change what the stored quantity means. Neither is a code the field admits: beside a quantity, the write check refuses each at the row's next quantity edit; a standalone unit field has no quantity, so the next write of the field must carry another code. So they are listed as `retired` and `other-dimension` and counted apart (`skippedRetired`, `skippedOtherDimension`), never as a code the field admits. + - **A blank unit beside a quantity** is written only from an explicit `""` entry; without one it is counted (`blankBesideQuantity`) and named in the report. A blank unit with no quantity is left alone. + - **Complete.** `unitCodeBackfillComplete` answers true only when every row holds a unit code the field admits: no unmatched value, no blank beside a quantity, no retired unit, no code of another dimension, no failed or unexamined row. The report prints its ✓ line only then. + - **Dry run by default.** It lists each distinct stored value with its row count and what the mapping does with it, and writes nothing. With no mapping, the listing shows which spellings to map. + - **Unmatched values.** An apply run that meets a value with no mapping entry is refused `VALIDATION_ERROR` / 400 on `mapping` before any write. The refusal names each value with its row count, and carries them as `unmatched`. + - **Scope.** Scope is `organizationId` or `allOrganizations`, as on the currency backfill. An unscoped run over the rows of several organizations is refused with each organization's counts. + - **Writes.** Each row is written through `engine.update` as a system write, so the unit check judges every converted code. + + **`os migrate unit-codes --object O --field F [--map-file mapping.json] [--org ID | --all-organizations] [--apply] [--yes]`** (`@objectstack/cli`): + + - It has the precedent's confirmation and exit behaviour: `--apply` asks first, and exits 1 under `--json` or with no terminal unless `--yes` is given. + - A mapping file that is not JSON, or a mapping the engine refuses as malformed, is refused before the occupancy probe, the prompt and the boot. + - Any refusal exits 1. Under `--json` it carries the code, the HTTP status, and `unmatched` or `organizations` where those apply. + - It closes with a ✓ only when `unitCodeBackfillComplete` holds. A run that leaves a blank beside a quantity, a retired unit or a code of another dimension closes with a warning naming what is left. + + **`POST /api/v1/meta/_migrate-unit-codes`** (`@objectstack/rest`) is the tenant-admin twin of `_migrate-record-currency-codes`. + + - Its body is `{ object, field, mapping?, apply? }`, and any other key is refused 400. + - It sits behind `metadata.endpoints.maintenance` and requires `setup.write`. It converts the caller's current organization only, and is a preview unless `apply: true`. + - The report is the `data` of the shared envelope. A refusal over unmatched values answers 400 with `error.details.unmatched`. + + **The unit refusals name the door** (`@objectstack/objectql`). The `ERR_UNIT_CODE_REQUIRED` and `ERR_UNIT_CODE_UNKNOWN` refusals of a quantity written beside a stored value the write did not supply now end with the remedy: the `os migrate unit-codes` command for that object and field, or the REST door. The refusal of a blank names the `""` entry. A refusal of a code the caller wrote carries no remedy. + + **A metadata save that makes a stored field a unit code field is a destructive change** (`@objectstack/metadata-protocol`, `@objectstack/spec`). The detector judges the declaration and reads no row. Two findings sit beside `currency_mode_to_record` on the 409 `DESTRUCTIVE_CHANGE`, and `force: true` lifts them: + + - `unit_code_field_declared`, on the code field: a stored field that is a unit code field after the save and was not one before. Any declaration can do it: a quantity, new or stored, whose `unitField` names the field; a `unitField` re-pointed at it; or its own `unitMode: 'code'`. A field that already was a unit code field raises nothing. + - `unit_mode_to_record`, on the quantity: a stored quantity switched to `unitMode: 'record'`, whatever its `unitField`'s history (a unit code field already, or a field new in the same save). It names the blank units beside the quantity and the `""` entry that writes them. It is not raised when the same save raises `unit_code_field_declared` on that `unitField`, since that finding names the quantity, its blanks and the `""` entry, so each debt is reported once. + + Each names the conversion run for that object and code field, CLI and REST. +- 29f1280: feat(cli)!: `os validate` and `os build` refuse seed records the seed load would drop: one its own validation rule refuses, or a keyed one with a blank key field + + Clause-②: yes (narrowing) + Metadata-protocol: narrowed + Skills-docs: follow-up #37158 + + <!-- adr-0087: registered seed-record-refused-before-load --> + + **BREAKING** accept-set narrowing of two authoring doors, shipped as `minor`. FROM: `os validate` and `os build` exit 0 on a config one of whose seed records the seed load drops (its own validation rule refuses it, or it is keyed and leaves a key field blank). TO: both exit 1 and name the record, its object, its index and the refusing rule or the blank field. The load's own verdicts do not change. Fix: correct the record so its rule admits it, change the rule if the record is right, or give the record its key value. + + A seed write is held to the object's own validation rules (every type but `state_machine`), and a record a rule refuses is dropped from the load while the rest land. Until now nothing at authoring time judged a seed record against those rules: `os validate` and `os build` passed, and the first sign was a `[Seeder] … dropped record(s)` line at boot carrying the rule's message, not its name. Both commands now refuse such a config (exit 1), one line per refusal (a record two rules refuse prints two), naming where the record sits, its index and the refusing rule: + + ```text + ✗ Seed records the seed load refuses (1 record) + ✗ data[0].records[1]: Seed record #1 of 'xt_payment' is refused by its validation rule 'amount_positive': A payment amount must be positive. + ``` + + The verdict is the write path's own evaluator, run on one rule at a time. A record and rule pair is judged only when the record's own literal values decide it; a pair whose rule reads something the load decides (a reference, a roll-up, formula or autonumber field, a default, a platform-injected column, an expression value, a present value of a non-literal type such as `date` or `datetime`, a `json_schema` rule, a `beforeInsert` hook's write, or the stored row of an `update` dataset) is counted in one dim line and never refused; a dataset whose object the stack does not declare has no rules to judge. A hook registered in plugin code is not visible to the stack, so a config that relies on one to fill a field a rule reads can be refused although the load admits it. Advisory rules (`warning` / `info`) and inactive rules are not judged. + + A keyed record (every live mode: `ignore`, `upsert`, `update`) whose literal value for a key field is blank (no value, `null` or `''`) is refused the same way, in the sentence the seed loader refuses it with at load, naming the object, the record index and the field. A key field holding an expression is judged at load only, and so is the object's organization column, which the load stamps: a declared `tenancy.tenantField` the object has, else `organization_id`. + + `--json` output carries the refusals under `errors` (`os validate`) or `issues` (`os build`), each with `rule` (`seed-row-refused-by-validation-rule` or `seed-record-key-field-blank`), `location`, `object`, `recordIndex`, and `validationRule` or `field`. + + To fix a refused config: correct the record so its rule admits it, change the rule, or give the record its key value. `@objectstack/lint` exports the walk as `judgeSeedRowRefusals`, which takes the evaluator and the tenancy resolver (`resolveTenantFieldName`, `@objectstack/core`) as inputs. +- f2a990b: feat(spec): every step a flow drawing shows can be translated, under `flows.<flow>.nodes.<node_id>.label` + + Clause-②: yes (widening: a new translation key `flows.<flow>.nodes.<node_id>.label`; the new exports `FLOW_TECHNICAL_NODE_TYPES` and `isFlowTechnicalNodeType` from `@objectstack/spec/automation`; and `@object-ui/i18n`'s exported `FlowLabelTranslations` type gains the member `screenTitle`, and its `stepLabel` parameter accepts a `config`) + Metadata-protocol: added + Skills-docs: follow-up #36401 + + A package can now translate the label of any flow step, not only a screen's heading and an approval step's label. A manual that embeds a flow (a `type: flow` metadata embed) lists its steps by label, and until now a start, decision, notify or end step had nowhere to put a translation, so a zh-CN reader saw those steps in English beside translated approval steps. + + - **The key.** `flows.<flow>.nodes.<node_id>.label`, keyed by the node's `id`, at any depth. It overlays the node's own `label` and is plain text. A `screen` keeps its `screens.<node_id>.title` and an `approval` its `approvals.<node_id>.label`, so one string keeps one key: `objectstack validate` points a `nodes` key over either at that key, and points a `screens` or `approvals` key over any other node at `nodes.<node_id>.label`. A key over a node the flow does not declare is refused. `nodes` was an unknown-key hint that suggested `screens`; it is now its own group. + - **Start and end steps are translated like any other.** Their labels are the author's words and often name an outcome or a trigger ("Approved", "On Task Created"), so nothing substitutes words of its own for them. + - **Missing translations are reported.** `os lint` and `os i18n check` (`i18n/missing-flow`) now ask for the label of every top-level step the embed draws at its default `detail: business` altitude, except screens and approvals, which they already asked for, and of a folded technical step where a drawn decision's branch list names it as the step the branch leads to (a decision whose branch runs a `script` first). `os i18n extract` scaffolds the keys. An app that ships translated locales gets new findings for its flows until it translates them. + - **The drawings read it.** The docs viewer's `type: flow` embed (`element:metadata_viewer`) and the Studio flow designer's canvas, nested region nodes included, now name each step by its translation in the reader's language, through the one resolution in `@object-ui/i18n`: `stepLabel` reads `approvals.<node_id>.label` for an approval, `screens.<node_id>.title` for a screen with no `config.title`, and `nodes.<node_id>.label` for any other node. A step the package leaves untranslated keeps its authored label. A decision's branch list names the step a branch leads to the same way. + - **A titled screen is named by its heading in the docs embed.** A screen that authors its own `config.title` shows that heading at run time, translated under `screens.<node_id>.title`, so the embed names it by the heading (translated where the bundle carries it) instead of its canvas label, which has no key. A heading with a `{{ }}` hole cannot be filled in a drawing, so such a screen keeps its authored label. `FlowLabelTranslations` gains `screenTitle` for this read. The Studio canvas keeps a titled screen's authored label. + - **One table for what business altitude hides.** `FLOW_TECHNICAL_NODE_TYPES` (and `isFlowTechnicalNodeType`) in `@objectstack/spec/automation` lists the node types `detail: business` folds away (`script`, `http`, `connector_action`, `assignment`, `get_record`, `create_record`, `update_record`, `delete_record`, `boundary_event`). The docs viewer folds steps by it and the coverage check asks for translations by it, so they agree on which steps a reader sees. +- 45ef94e: feat(spec): a base's paired `.custom` package declares an installed object's whole field-group and tab arrangement (`fieldGroups`, `relatedLists` on its object extension) + + Clause-②: yes (widening) + Metadata-protocol: added + + The record page is arranged in three layers. The package that owns an object declares its `fieldGroups` and `relatedLists`; a package that extends it places what it brings with `place`; and now the environment, in the base's paired `.custom` package, may declare the whole arrangement over both: + + ```ts + objectExtensions: [{ + extend: 'crm_lead', + fields: { region__c: { type: 'text', label: 'Region' } }, + // The whole field arrangement: the two groups swapped, `status` moved. + fieldGroups: [ + { key: 'contact', label: 'Contact', fields: ['email', 'phone', 'status'] }, + { key: 'basic', label: 'Basics', fields: ['name', 'company', 'region__c'] }, + ], + // The whole tab list: events before tasks, the notes tab hidden. + relatedLists: ['crm_event', 'crm_task', { list: 'crm_note', hidden: true }], + }], + ``` + + - **Two new keys on an object extension, written only by a `.custom` package.** `fieldGroups` takes the shape an object's `fieldGroups` takes and may list any field the object has, whoever declares it; a group's `relatedList` may place any body table. `relatedLists` takes an object's entry shape (a bare name, the three built-in tab names, or `{ list, label?, columns? }`) plus `hidden`. + - **Each key replaces, whole.** The registry applies it last: the owner's arrangement, then every extension's `place`, then the `.custom` key in place of the result. Nothing is merged entry by entry. A key the extension does not write keeps the owner's arrangement with the placements, so writing only `relatedLists` leaves the field groups as they were. + - **A field the arrangement does not list is not dropped.** It shows after the last group, whichever group its owner or another extension had put it in. A group that lists `fields` shows exactly its list. + - **A tab the arrangement does not name still shows, after the listed ones.** This is the reverse of an object's own `relatedLists`, where leaving a list out hides it. Hiding is written: `{ list: 'crm_note', hidden: true }` hides that list's tab, whichever package brings it. `hidden` is accepted only here; an object's own `relatedLists` refuses it and says where it belongs. A list the owner hides by leaving it out of its own `relatedLists` stays hidden until the arrangement names it. The built-in tabs keep their own rules and are not hidden here. + - **A package that is not a `.custom` package writing either key is refused**, once at each door: saving or publishing the extension, `os validate` and `os build`, and installing the package (`VALIDATION_ERROR`; 400 at save and publish, 422 at install). Each refusal names the key, the object and the package and prescribes `place`. An extension that reaches the registry past those doors is not applied, and the boot log says so. Within one extension, a `place` entry beside the arrangement key that would replace it is refused at parse. + - **Only the object's own pair is served.** The pair is the `.custom` package of the App the object belongs to: for an object a module of an App owns, the App's pair. A `.custom` package an earlier version created for the module itself is still read while it is installed; where both write a key, the App's pair is served. The choice is by role, never by load order. What any other `.custom` package writes under these keys is not refused at the doors; the registry does not apply it, alone or beside the pair, and the boot log names the package and the object. + - **One merge, every reader.** The record page, the forms, the preview and Studio read the served object, so they show one arrangement. Removing a key, or uninstalling or disabling the `.custom` package, serves the owner's arrangement with the placements again. + - **Served reads say what the reader cannot derive.** Where a `.custom` package writes `relatedLists`, the served object carries the read decoration `_relatedListsArrangement` (`{ packageId, hidden, unlisted }`): the lists the environment hides, and whether an unlisted list shows. The record page's tab reader and the default page synthesis read it; with no decoration served they answer exactly as before. A reader's own tab order (kept per user) is still laid over this list, and a tab the environment hides is not offered to them. + - **A group the arrangement brings is a translation anchor.** `os validate`'s translation-reference rule reads an extension's `fieldGroups` too, so a bundle's `_sections` key for a group the `.custom` arrangement declares is not reported as naming nothing. + - **`hidden` on a field is not a display property a `fieldPatches` entry may set.** A hidden field is also left out of the search index and out of a form's required check, so the display whitelist is not widened. To keep a vendor field off the record page and the forms, list it in a group whose `visibleWhen` is false. That is presentation only, not access control: the field stays readable and writable through the API. Do not use it for a `required` field that has no default: the create form no longer shows the field while the save still requires it, so the form cannot be submitted. + + What to check in an app: nothing changes until a `.custom` package writes one of the two keys. A package other than a `.custom` one that wrote `fieldGroups` or `relatedLists` on an extension was refused at parse. It is now refused by the save, publish, install, `os validate` and `os build` doors, with the same prescription. Where none of those doors judges it (for example a code-defined stack that boots without `os validate` or `os build`, or a stack that names no package id), the key is not applied and the boot log names it, where the parse refused it before. + +### Patch Changes + +- e2f3094: fix(cli): a config that fails to load is no longer reported as "Compile failed" + + Clause-②: no + Metadata-protocol: none + + When the `os compile` child that `os dev`, `os start`, `os serve --dev` and `os environments bind --build` run exits non-zero, the closing line said `Compile failed — fix errors above …`. The parent sees only the child's exit status, so the same line followed a refusal raised while `objectstack.config.ts` loads (for example a licence or key-management refusal), and an operator went looking for a code error. + + The line now says what is true of every way the child fails, a syntax error, a refusal thrown at load or a refusal that prints and exits: `objectstack.config did not load or compile — the reason is printed above; fix it before …`, with each command's own tail (`starting dev server`, `starting the server` with the `--artifact` hint, `starting the dev server.`, `binding`). The `os dev` watch recompile's failure line reads `✗ objectstack.config did not load or compile (Nms)` in place of `✗ compile failed (Nms)`, with the compile output after it as before. Nothing classifies the failure: exit statuses, error codes and the text the child prints are unchanged. + + A script that matched `Compile failed` in this output should match `did not load or compile`. +- 7a3f86c: fix: four refusals say what the author can act on — the clone control by its console label, an empty or short unknown key, and an unknown CLI command + + Clause-②: no + Metadata-protocol: none + + Nothing new is accepted or refused; only the words change. + + - **Packaged permission sets.** The `ITEM_LOCKED` save refusal and the `NOT_OVERRIDABLE` lock refusals sent the admin to a "Clone" action. Studio's Access pillar and Setup label that control "New similar" ("新建类似" in a Chinese session), so the diagnostic and both end-user messages, in every language they ship, now name it that way. + - **Unknown keys.** A refusal naming an empty key printed it as empty backticks; it now says "an empty key (`""`)" and offers no rename. On a key of five characters or fewer, a "Did you mean" rename is offered only when the declared key is one edit away, counting a swap of two adjacent letters as one: `lable` → `label` is still offered, while a removed `aria` is no longer answered with `areas`. + - **CLI.** `os <topic> <unknown>` and `os <unknown>` still exit 2 without running anything, and now name the command as typed (`command environments frobnicate not found`) and end with the help that lists the real ones (`See more help with \`os environments --help\``). +- f796089: fix(spec,metadata-protocol)!: retire the seed modes `insert` and `replace`, which inserted every record again on each replay + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: follow-up #34798 + + <!-- adr-0087: registered seed-mode-insert-replace-retired --> + + **BREAKING** for a seed dataset authored with `mode: 'insert'` or `mode: 'replace'`. A seed is replayed on every single-tenant boot, every package install or upgrade and every publish, and neither mode matched an existing row, so every replay inserted each record again: an un-walled install went from 1 to 2 to 3 rows over three boots, a person reference the first load had to leave empty stayed empty on the first row while only the newest copy named the person, and with a unique field the replay insert was refused and the one row stayed empty. `replace` expected the caller to clear the table first, and no load path ever clears one. + + What moves (each line FROM → TO): + + - `SeedSchema.mode` / `SeedMode` (`@objectstack/spec/data`; `defineSeed`, `defineStack({ data })`, a `seed` metadata item, a package body's seed): FROM `insert` / `update` / `upsert` / `replace` / `ignore` TO `update` / `upsert` / `ignore` (default `ignore`, unchanged). `mode: 'insert'` or `mode: 'replace'` fails parse with a prescription naming the fix; the save and publish doors refuse it with the same message. The retired pair is exported as `RETIRED_SEED_MODE_VALUES` (`@objectstack/spec/data`): it is derived from the parse refusal's own table, and the loader and the artifact door read it. + - a stored dataset that still declares one, replayed by the boot seed, the per-organization replay, the dev hot reload or a package install, upgrade or sample-data reseed (`SeedLoaderService.loadStored`, `@objectstack/metadata-protocol`): FROM inserted again on every load TO refused alone — it writes nothing, the load result carries one error with the prescription and `success: false`, and every other dataset loads. `SeedLoaderService.load()` and `validate()` refuse the dataset the same way when handed one unparsed, so a dry run reports what a real load does. + - a compiled artifact (`objectstack.json`) carrying such a dataset, booted by `os serve` / `os start` / `os dev` (the artifact door, `MetadataPlugin`, `@objectstack/metadata`): the door parses the artifact without that dataset and hands it back to the seed load, which refuses it alone; the door logs a warning naming the dataset and the fix. Everything else in the artifact registers and boots. + - `os diff` (`@objectstack/cli`) on a dataset declaring either mode: FROM "a replay inserts these again" TO a note that the mode is retired, that a replay refuses the dataset, and what to declare. + - the advisory lint rule `seed-insert-mode-duplicates-on-replay` (`validateSeedReplaySafety`, `@objectstack/lint`): FROM a warning on `mode: 'insert'` TO removed; the schema refusal does its job for both modes. The author-time rule count `os validate` / `os build` print drops by one (71 to 70 at this release). + - the save door's and the loader's hint for a key no record carries: FROM "or use mode 'insert' for rows with no natural key" TO a list of fields when no single field names a row, or `'id'` when the records carry their own ids. + + The fix: declare which field identifies a row and drop the mode (or declare `upsert` for reference data the package keeps current). Set `externalId` to the field that names a row, to a list of fields when no single field does (a junction table's `['team', 'project']`), or to `'id'` when the records carry their own ids. Rebuild the package, and reinstall it where it was installed with `os package install`, so the stored body carries the new declaration. + + No conversion is made, at load, at save or by a migration (ADR-0087 D3, entry `seed-mode-insert-replace-retired`): a keyed mode needs the field that identifies a row, and only the author knows it. Rows earlier replays duplicated are data and are left as they are. + + Unchanged: `ignore`, `upsert` and `update` datasets load byte-identically. +- 910306b: feat(cli): `os validate`, `os verify` and `os serve` name a declared enterprise or cloud capability that no provider enforces + + Clause-②: yes (widening) + Metadata-protocol: none + + A stack that declares `requires: ['hierarchy-security']` and runs without the enterprise provider wired into `plugins[]` gets owner-only hierarchy scopes (`own_and_reports`, `unit`, `unit_and_below`), and before this nothing said so past `os validate`'s install hint. + + - `os verify` now runs the capability-provider check `os validate` runs and reports every finding as an advisory: a `capabilities` array on the `--json` report (`token`, `message`, and `validate`: `error` when `os validate` refuses the stack over it, `warning` when it reports it), and one line each on the text face. It never changes `os verify`'s exit status, for any token. + - `os validate` and `os build` (and through the first, `os verify`) add a wiring check: an `enterprise`-edition token whose package resolves but which no `plugins[]` entry provides is a warning. Which tokens are `enterprise` is read from the capability registry's edition tags. + - `os validate --strict` (and `os validate --json --strict`), which already fails on any warning, now exits 1 for a stack whose `enterprise` capability package resolves but is not wired into `plugins[]`, or resolves but fails to load, while without `--strict`, and in `os build` (which has no flag that fails on warnings), the exit status is unchanged. + - The `enterprise` message names what happens without a provider (for `hierarchy-security`: the hierarchy scopes behave as owner-only) and its remedy reads "Install the package and add its plugin to `plugins[]`, or remove the token from `requires`". + - `os serve` prints the same sentence once at start-up for a declared enterprise or cloud token that nothing mounts. The boot itself is unchanged. +- 8e46424: Clause-②: yes (widening) + Metadata-protocol: added + + feat(messaging): Slack DM delivery — a `slack` channel, a per-person link store, approval requests by DM + + An organization can now receive notifications in Slack, as direct messages to each person who connected their own Slack user (ADR-0013 addendum of 2026-11-19, step 2 of #34730). + + - **The install.** An organization administrator (`setup.write` in their current organization) installs the organization's own Slack app with `PUT /api/v1/messaging/slack/account` `{ token }`. Slack proves the bot token (`auth.test`) before it is saved. The app's bot token needs the scopes `chat:write`, `im:write`, `users:read` and `users:read.email` (the methods called are `auth.test`, `users.lookupByEmail`, `conversations.open` and `chat.postMessage`); `auth.test` does not check scopes, so an app without `users:read.email` installs and every proposal then answers 502. The token is kept in `sys_channel_account.bot_token`, a `secret` field: encrypted at rest by the host's `ICryptoProvider`, masked on every read, never returned by any route, and read only by the server when it calls Slack. `GET` and `DELETE` on the same route read and remove the install. + - **A person's link.** `POST /api/v1/messaging/me/slack-link/proposal` proposes a link by the person's email (Slack `users.lookupByEmail`); it delivers nothing until the person confirms it with `POST /api/v1/messaging/me/slack-link/confirm`. A Slack link is proposed only for a verified email and names no one before it is confirmed. `GET` and `DELETE /api/v1/messaging/me/slack-link` read and remove it. An administrator lists links with `GET /api/v1/messaging/slack/links` and removes one with `DELETE /api/v1/messaging/slack/links/:id`; the person is told by inbox and e-mail (topic `messaging.slack_link_removed`) and may link again. A link goes when the person is deleted, banned, or leaves the organization. Links are `sys_channel_user_link` rows; every write names who acted, so the platform's write audit records each one. + - **The channel, only where connector-slack is composed.** `slack` is registered beside inbox, email, sms and push only on a composition where connector-slack's `slack` client service resolves at boot: `ConnectorSlackPlugin` now registers that service, which sends with a caller-held token. On such a composition, and only there, the `/automation` save doors accept `slack` on a `notify` node, and `GET /api/v1/messaging/preference-options` and `GET /api/v1/messaging/me/preferences` list `slack` as a channel. A `notify` node naming `slack` delivers only where connector-slack is composed, the organization installed Slack and the recipient confirmed a link. Without connector-slack, those doors answer as before: a `notify` node naming `slack` is refused 400, and neither preference door lists it. It sends `conversations.open` then `chat.postMessage` with the notification's title linked to its deep link, made absolute under `OS_AUTH_URL` / `OS_BASE_URL`. Preferences, digest and quiet hours apply as on every channel. A recipient with no confirmed link is skipped before any delivery row is written, so nothing is dead-lettered for them; a refused token stops delivery on that install until an administrator sets it again; a rate limit is retried. + - **Approval requests.** `approval.requested` also asks for `slack`, beside inbox and e-mail, only while the `slack` channel is registered and mounted (connector-slack composed). + - `MessagingChannel` gains an optional `reachableRecipients(ctx, { organizationId, recipients })`, consulted once per channel per emit after preferences. A channel without it reaches every recipient, as before. + - `PLATFORM_OBJECTS_BY_PACKAGE['service-messaging']` lists `sys_channel_account` and `sys_channel_user_link`, and the organization ownership inventory gives both a row. +- f5b2eea: feat(cli): `os meta register --mode draft` stages a draft for review and prints its publish verdict, and `os lint --item <file> --type <type>` judges one item + + Clause-②: yes (widening) + Metadata-protocol: none + + For a developer or an AI client that authors metadata item by item from the command line against a self-hosted runtime (signed in with an API key), with no project on disk: + + - **`os meta register <type> --data <file> --mode draft`** saves through the same door with `?mode=draft`: the item is stored as a pending draft and nothing is published until a person publishes it in Studio's Changes. A draft names its package with `--package <id>`: Studio lists drafts per package, so `--mode draft` without `--package` is refused before any request, and the command prints that package's Changes route. After the save it reads the draft back (`GET /meta/<type>/<name>?package=<id>&state=draft`) and prints the publish verdict the runtime serves on it: `valid`, its errors (each with its rule code) and its warnings, also as `publishVerdict` on `--format json|yaml`. A `valid: false` verdict is printed, not turned into a failed run: the draft is stored either way. `--mode publish` is the default spelled out and sends exactly the request an unflagged run sends (an active save, no query string, no read after it). + - **`os lint --item <file> --type <type>`** lints the JSON body `os meta register --data` takes, alone. It runs the shared author-time rule table (the one `os build` and `os validate` run) and `os lint`'s per-entry naming, label and structure conventions over a stack holding only that item. A rule whose verdict needs the rest of the stack is not run and is named: each rule is measured, on that item, by the top-level stack keys it reads, and a rule that read anything beside the item's own collection is listed under `notJudged` with those keys instead of reporting findings. `os lint`'s namespace-prefix, i18n-coverage and (for objects) data-model families are listed under `familiesNotRun`. The exit code reads as a project run's, `--strict` included. `--item` refuses to combine with a configuration path, `--score` or `--eval`, and `--type` without `--item` (or the reverse) exits 1. +- 00110fd: feat(verify): run a flow locally and report its node trace before it is submitted + + Clause-②: yes (widening: a new `os verify --flow` option, and new `@objectstack/verify` exports) + Metadata-protocol: none + + `os verify --flow <name>` runs one flow once on a fresh in-memory boot of the app and reports what the engine did: each node's status as the run's log records it, the first failure with its code and the node named, and every write the run made. + + - The run starts the way production starts it. A record-change flow is fired by its own trigger: the run writes the record `--flow-record '{"field":"value"}'` names as the dev admin (inserted for a create or write leg; seeded and saved unchanged for an update leg; seeded and deleted for a delete leg). A flow its own trigger starts is started with no caller, with the context that trigger builds: an API-triggered flow gets `--flow-input '{...}'` as its record and its params (the request body); a time-relative flow gets the `--flow-record` row, seeded first, as its record (the acting organization a sweep can set is not reproduced); a schedule or another `runAs: 'system'` flow gets `--flow-input` as its params. Any other flow goes through the trigger route as the dev admin, with `--flow-input` as its params. + - A node whose type no installed plugin runs is named, whether the run reached it or not. A flow whose trigger never binds is reported with the trigger and the engine's reason, and is not run. A schedule or time-relative trigger left unarmed by the deployment's scheduled-work switch (the default) is not a defect: it is reported as not armed and the flow is still run. + - The run writes to the in-memory database the boot creates and nowhere else: a write to an object bound to any other datasource is refused before that datasource's driver is called, and the node that made it fails naming the object and the datasource. Four outbound node types are not executed: `http`, `connector_action` (with every connector a plugin contributes behind it), `notify` and `script`; a plugin's own node type that calls out under another name is not stood in and runs for real. A run that ends at one of them stops there and the report names it (`outbound_not_run`), in a child flow too; every node before it ran for real. A stop a `try_catch` catches is listed in `outboundStops`, and a later node that fails is still the first failure. + - A failed run, a missing executor, an unbound trigger, a record-change or time-relative flow given no record, and a write refused outside the ephemeral stack each fail `os verify`. A run its start condition skipped, one that paused at a screen, wait or approval, and one stopped at an outbound node are reported and do not. + - `--json` carries the report as `flowRun`. + + New exports from `@objectstack/verify`: `runFlowProof`, `formatFlowRunReport`, and the `FlowRunRequest`, `FlowRunVerdict`, `FlowRunStart`, `FlowRunStep`, `FlowRunWrite`, `FlowRunFailureKind`, `FlowRunFailure`, `FlowRunTrigger` and `FlowRunReport` types. Nothing that ran before changes. +- 6f36818: fix(cli): `os doctor --verbose` no longer ends by telling you to run with --verbose + + Clause-②: no + Metadata-protocol: none + + When `os doctor` finished with warnings it always closed with "Run with --verbose to see fix suggestions.", including on a run that already passed `--verbose` and had already printed those suggestions. The line is now printed only when `--verbose` is off; a run without the flag reads exactly as before. +- 578d3b1: fix(cli): `os skills install` and `os skills update` stage the new catalog and swap it in by rename, so a write that fails partway leaves the previous skills and their record as they were + + Clause-②: no + Metadata-protocol: none + + Before, a write removed the recorded skill directories first, then wrote the new ones, and wrote the record last: a failure partway (disk full, permission, a locked file) left the directories gone or half-written under the old record, and the next `os skills update` refused them as changed locally until it was given `--force`. Now every new skill directory is written into a hidden staging directory inside the skills directory, each touched skill is renamed aside and its staged copy renamed into place, and the record is renamed over the old one last; any failure undoes the renames already done and is reported, so the catalog is either wholly the old one or wholly the new one, and a plain `os skills update` simply runs again. A staging directory a killed run leaves behind (`.objectstack-skills-staging-*`) is hidden, never read as a skill, and removed by the next write. +- 6ffa816: feat(security): an unmanaged install copies an app's capabilities, renamed with the copy + + Clause-②: yes (widening) + Metadata-protocol: added + + An app that gates an action on its own capability can now install as an unmanaged copy (`installModes: ['unmanaged']`). Before, `capability` was code-only (`allowRuntimeCreate: false`), so the validator refused the mode for any app that declared one, and the install door had no channel to write the copy's capabilities. + + - **`capability` is runtime-creatable.** Its `DEFAULT_METADATA_TYPE_REGISTRY` entry is now `allowRuntimeCreate: true`, and overlays stay closed (`supportsOverlay: false`, `allowEnvironmentOverlay: false`). A body is judged by `CapabilityDeclarationSchema`, as before. + - **The save door refuses two names.** + - A platform capability's name (`manage_users`, `setup.access`, every name in `PLATFORM_CAPABILITIES`) answers `422 NAMESPACE_CONFLICT`. An environment item under that name would shadow the platform's definition, because the registry answers its bare slot first. + - A name an installed package's capability holds answers `422 NAMESPACE_CONFLICT`, naming the holder. A capability holds one name per deployment, the same rule permission sets and positions follow. + - **The environment catalog holds capabilities.** `ENVIRONMENT_HELD_SECURITY_CATALOG_TYPES` is `['position', 'permission', 'capability']`. A package that ships a capability name the environment already authored is refused at boot, as a position or permission-set name is. `os migrate security-catalog-overlays`, the remedy that refusal names, lists and deletes such a capability row too (`capability` and `capabilities` spellings). + - **An unmanaged copy renames its capabilities.** When the copy takes a new namespace, a capability whose name starts with the source namespace (`<ns>.` or `<ns>_`) is renamed into the copy's namespace. Every reference is rewritten with it: a permission set's `systemPermissions` (list or per-operation map), an object's or action's `requiredPermissions`, and a quoted `current_user.hasCapability('<name>')` in a predicate. There the object-name rename never touches a name the package declares, so a capability named after a renamed object has one name in the copy; a token the package does not declare follows a renamed object as before. An unprefixed capability keeps its name. A renamed capability that collides with another package's capability refuses the install, naming both. Install again under another namespace. + - **Duplicating a package refuses a shared gate.** `duplicatePackage` keeps its source installed, so a capability it cannot rename (no source prefix, or a copy name the package already declares) is refused, and so is every copied item that grants, requires or tests for it, each at its own name in `failed[]`. + - **The `everyone` anchor excuses only a declaration that carries a package.** The check that refuses a high-privilege permission set bound to `everyone` excuses the tokens an app declared itself. It now counts only declarations bound to a package (`_packageId`), as ADR-0090 D5 rules: an app's shipped capabilities, an unmanaged copy's, and one saved into a writable package. A capability saved with no package excuses nothing. What bounds a saved declaration is the two refusals above: a platform capability is never excused, and a name a package declares cannot be declared again. A name nobody declares can be declared once, by a `manage_metadata` holder, inside a writable package. + - **The gate is unchanged.** It still matches capability names. The copy's action is gated on the copy's capability: a holder of the copy's permission set passes, and a holder of only the source's set does not. +- d99b746: fix(plugin-sharing): a hierarchy scope that falls back to owner-only for want of a resolver now says so once per boot + + Clause-②: no + Metadata-protocol: none + + When a permission set grants a hierarchy scope (`own_and_reports`, `unit`, `unit_and_below`) and no `hierarchy-scope-resolver` service is registered (the `hierarchy-security` capability, provided by `@objectstack/security-enterprise`), the sharing layer fails closed to owner-only. It used to do so without a word, so a runtime booted without the CLI gave an operator nothing to explain why every user saw only their own records. + + - The first time the fallback is taken, the sharing service logs one `warn` naming the capability, its provider and the owner-only consequence. It is logged once per service instance, which is once per boot, never once per request. + - Nothing is logged for an app that never asks for a hierarchy scope, or when a resolver is registered. + - The answer does not change: the scope still resolves to the caller alone. + - `os validate`, `os verify` and `os serve` no longer end the `hierarchy-security` advisory with "and no log line says so": for that token they now say the runtime logs one warning, opening `[sharing] hierarchy scope NOT widened`, the first time it falls back. Other enterprise tokens keep their wording. +- 0188989: feat(scaffold): new projects run their tests in CI + + Clause-②: no + Metadata-protocol: none + + `npm create objectstack` projects now run `pnpm test` in `.github/workflows/ci.yml`, after `validate`, `lint` and `typecheck`, so the starter `note.test.ts` and every test you add run on each push. + + `os init -t app` and `os init -t empty` now declare a `test` script (`vitest run`), list `vitest` in `devDependencies`, and ship one starter test (`app.test.ts`, `project.test.ts`) that reads the project's definition, so the same CI workflow passes on a project made either way. To test what the engine does with a record, add `@objectstack/verify` and boot the stack with `bootStack`; the `objectstack-project` skill shows how. + + Existing projects are not changed. To take the CI step, add `- run: pnpm test` after `- run: pnpm typecheck` in your `ci.yml`; a project with no `test` script adds vitest and the script first. +- df81f4c: feat: working calendars in Setup — `sys_work_calendar` and `sys_work_calendar_exception` (ADR-0157, part two of two) + + Clause-②: yes (widening) + Metadata-protocol: added + + Not released alone; pair #35641/#35642. The first half, #35641 (the calendar service and its arithmetic), is merged; this half ships in the same release as it, with the working-day formula functions (#35356) and the approval escalation's working-time clock (#35357), ADR-0157 D4. + + - **Two platform objects** (`@objectstack/platform-objects`). `sys_work_calendar` holds a calendar's `code` (unique per organization, snake_case), `name`, required IANA `timezone`, `is_default` (one per organization), the required `maintained_from` .. `maintained_through` span its holidays are entered for, and one period column per weekday (`monday_periods` … `sunday_periods`, `HH:mm-HH:mm` periods separated by commas, blank for a day off). `sys_work_calendar_exception` holds dated overrides: `calendar`, `date`, `kind` (`off`, no periods; `on`, that date's full periods), `periods` and `note`, one row per calendar and date. Both are organization data an administrator keeps, audited, like `sys_exchange_rate`; a package may seed rows under the existing seed contract and name a calendar by code. Their names join the platform object name list (`@objectstack/spec`). + - **Setup.** Two entries under Exchange Rates: Working Calendars (with a Needs Maintenance list of every calendar whose maintained span ends within 60 days) and Calendar Exceptions, whose list page imports a year of holidays from a file; the `calendar` column names a calendar by its code or name. Labels and help text ship in all eleven locales. + - **Time zone on create** (`@object-ui/plugin-form`, ADR-0157 D7). A create form opens a required time-zone field that declares no default (`valueDomain: 'iana_time_zone'`) on the organization's time zone, as it opens a record-currency field on the organization's currency; the user can change it. A create that leaves the calendar's `timezone` out takes the same zone on the server. An optional time-zone field, where blank means "take the parent's", is not prefilled. + - **Refusal wording** (`@objectstack/objectql`). The refusal of a create that marks a calendar the default in another organization no longer assumes the writer is working in an organization. + - **A calendar stays in its organization** (`@objectstack/objectql`). An update that changes the organization of a calendar or of an exception date is refused with `400 VALIDATION_FAILED` on `organization_id` (`invalid_value`), before any read and for every writer, system writes included. To have a calendar in another organization, create it there. An edit that leaves `organization_id` out or repeats the stored one is judged as before; a predicate update is judged row by row, and one matched row whose organization would change refuses it. + - **An exception date names a calendar of its own organization** (`@objectstack/objectql`). On a create, and on an update that carries `calendar`, the calendar is read by id in the exception's organization; when it is not there, the write is refused with `400 VALIDATION_FAILED` on `calendar` (`invalid_value`). A calendar of another organization and an id that names no calendar get the same refusal, word for word. The import door is judged the same way, row by row. + - **Organization ownership** (`@objectstack/cli`). Both objects are organization-owned; an exception reaches its organization through its calendar. +- f6b095a: fix(cli): `os doctor` no longer advises `--verbose` when no warning has a fix for it to show + + Clause-②: no + Metadata-protocol: none + + When `os doctor` finished with warnings it closed with "Run with --verbose to see fix suggestions." whenever any warning fired. Several warnings have no fix suggestion in either mode (a missing `*.test.ts` beside a `*.zod.ts`, `@deprecated` usages, circular dependencies, unused objects, orphan views), so for those the re-run printed nothing new. The line is now printed only when at least one warning that fired carries a fix that `--verbose` would reveal. The warnings themselves, and exit codes, are unchanged. +- 7411f9b: feat(spec, platform-objects): the standard unit table and the organization unit object `sys_unit` (ADR-0158 U1–U3) + + Clause-②: yes (widening) + Metadata-protocol: none + + Units of measure, first release (ADR-0158 U7 R1). Nothing reads these tables yet: the unit declaration on a `number` field, the write-time membership check and the display of a quantity with its unit ship with their own cards. No field key ships here. + + - **`@objectstack/spec`** (`@objectstack/spec/data`) exports `STANDARD_UNITS`, a closed table of 41 UN/ECE Recommendation 20 codes. Each code carries its dimension (`UNIT_DIMENSIONS`: `mass`, `length`, `area`, `volume`, `time`, `count`, `package`) and its ratio to the dimension's base unit (`UNIT_DIMENSION_BASE_CODES`: `KGM`, `MTR`, `MTK`, `MTQ`, `SEC`, `H87`), as an exact decimal string: `1 CODE = ratio × BASE`. Package codes (`XBX`, `XCT`, `XPX`, …) carry no ratio. The piece is `H87`; `C62` and `EA` are not members. `ORGANIZATION_UNIT_CODE_PATTERN` is the namespace of an organization's own codes (uppercase letters, digits and underscores, at least 4 characters or containing an underscore), which no standard code can match. `PLATFORM_OBJECTS_BY_PACKAGE['platform-objects']` gains `sys_unit`. The table is not a value domain: `ValueDomainSchema` keeps its three members. + - **`@objectstack/platform-objects`** registers `sys_unit` (Setup → Configuration → Units of Measure), an organization's own units: `code`, `label`, `dimension`, `ratio` (scale 12; required on every dimension but `package`, refused on `package`), `decimal_places` (a display default) and `retired`. It is organization-owned behind the tenant wall and ships no rows. A code outside the organization namespace is refused, the code is unique within the organization, and the code and dimension cannot change after create. A unit is retired instead of deleted, and retiring cannot be undone, so a code is never created again with another meaning; the data API serves no delete on it. Every column carries field history. + - **`@objectstack/plugin-security`**: `member_default` reads `sys_unit`, so a unit's label displays to every member; organization administrators write it through their existing grant. + - **`@objectstack/cli`**: the organization-ownership inventory lists `sys_unit` as attributed to its organization. +- 2320548: fix(cli): `os lint --item` points at the draft publish verdict, not at publishing + + Clause-②: no + Metadata-protocol: none + + The `os lint --item` text output ended its list of rules that need the rest of the stack with "Run `os lint` on the project, or publish the draft, for those." Publishing makes the item live. The line now names `os meta register <type> --data <file> --mode draft --package <id>`, filled with the item's type and file, which shows the full publish verdict while nothing goes live, beside `os lint` on the project. The `--json` output is unchanged. +- 236c804: feat(spec)!: retire the boolean arm of a relationship field's `inlineEdit` — `true` and `false` both read as the key left out + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: follow-up #37042 + + <!-- adr-0087: registered field-inline-edit-boolean-removed, field-inline-edit-boolean-retired --> + + **BREAKING** accept-set narrowing on `FieldSchema.inlineEdit` (`@objectstack/spec/data`), the inline form factor of a `lookup` or `master_detail` field. Since the field-group placement, a field group of the parent (`fieldGroups[].relatedList`) decides whether the parent's create and edit forms inline a child, and `inlineEdit` only picks the form factor of a placed child. Every reader of the key passes anything but `'grid'` and `'form'` as absent, so `true` (documented as "auto") and `false` both did exactly what leaving the key out does: the form factor is picked from the child's shape. + + | FROM | TO | + |:--|:--| + | `inlineEdit: true` on a `lookup` / `master_detail` field | delete the key (the form factor is still picked from the child's shape), or write `'grid'` / `'form'` | + | `inlineEdit: false` on a `lookup` / `master_detail` field | delete the key | + | a child meant to be entered in the parent's form | name it in a field group of the parent: `fieldGroups: [{ key: 'lines', label: 'Lines', relatedList: '<child object>' }]` | + + The one-line fix: delete a boolean `inlineEdit` wherever it is written; `os migrate meta --from 17 --write` deletes it from object sources. Writing one after upgrade fails `tsc` (the input type is `'grid' | 'form'`) and fails the parse with that prescription. `'grid'` and `'form'` parse unchanged. The view-level `inlineEdit` (a list view's in-cell editing switch) is a different key and is unchanged. + + The retirement kit: + + - **`@objectstack/spec`**: `FieldSchema.inlineEdit` is `z.enum(['grid', 'form'])`, and a boolean meets the prescription from the enum's own error map. The D2 conversion `field-inline-edit-boolean-removed` (lossless, retired from the load path) deletes a boolean `inlineEdit` from `objects[]` and `objectExtensions[]` field maps on every data-at-rest seam (stored rows, built artifacts, `os migrate meta`); the D3 entry `field-inline-edit-boolean-retired` names what the upgrade still owes: whether the child should be placed by a field group of the parent. The liveness ledger keeps the key `live` for the two surviving values, with the narrowing recorded. + - **Field form** (`@objectstack/spec` `field.form.ts`, labels in `@objectstack/platform-objects`): with the boolean arm gone a select spells every value, so the field designer now offers `inlineEdit` as a `Grid` / `Form` select on `lookup` and `master_detail` fields; left unset, the form factor is picked from the child's shape. Before, the form left the key out because no widget could spell a boolean-or-string union. + - **`@objectstack/lint`**: two doc comments in the field-consumer rule (`validate-field-consumers.ts`) now read a boolean `inlineEdit` as refused by the spec and as absent at the renderer; comment text on unexported functions only, so no shipped byte changes. + - **`@objectstack/cli`**: the golden metadata-eval corpus places its line items with a field group of the parent, with `inlineEdit: 'grid'` as their form factor, instead of `inlineEdit: true`. +- 482afcc: feat(cli): `os migrate list-preferences` deletes the per-reader list preference rows the Console no longer reads + + Clause-②: no + Metadata-protocol: none + + The Console no longer reads or writes the per-reader list preference rows an earlier Console stored in `sys_user_preference` under `ui.list.<object>` (column widths, row height, view-tab order and, before that, sorts, filters and columns). The rows are not carried anywhere. This new operator command deletes them. + + - `os migrate list-preferences` is a dry run by default: it counts the rows, readers and organizations, and per key the rows and readers holding it. It never prints a value and writes no row, table or file. + - `--apply` deletes, and only with `--export <path>`: every row the run deletes, as stored, is written to an owner-only file (`0600`, never overwriting one) and read back before the first delete. Each delete is the engine's by-id delete in the system context, on every organization's rows. + - After the deletes the family is read again; any row still there exits `1`. A second run finds nothing and exits `0`. + - A row belongs to the family only when its key starts with `ui.list.`, compared exactly. `ui.record.<object>` and every other preference key are untouched. + - Nothing on a boot, upgrade or migrate path runs it. + + Upgrade note: once the upgraded Console is serving, run `os migrate list-preferences` once, a dry run first and then `--apply --export <path>`. Left in place the rows are unread, so it is cleanup, not a gate. +- 30de1bf: fix(cli)!: `os db orphans --delete` and `os secret orphans --delete` exit `1` when the confirmation they need is not given, as every `os migrate` subcommand with a `--yes` gate already does + + Clause-②: no (narrowing) + Metadata-protocol: none + + In a non-interactive shell (stdin is not a terminal), `--delete` without `--yes` deletes nothing and writes no export. Both commands printed `Aborted — no export was written and no row was deleted.` there and exited `0`, so a script, a CI job or a cron reading the exit status took a run that deleted nothing for one that did. They now print `Confirmation required. Re-run with --yes to delete. No export was written and no row was deleted.` and exit `1`, the rule the `os migrate` family follows. What either command exports or deletes is unchanged. + + <!-- adr-0087: not-required (no-migration-prescription) No metadata moves: no spec key, authorable spelling, object definition or stored shape is added, removed, renamed or re-shaped, and no exported declaration is removed or narrowed, so there is nothing for `objectstack migrate meta` to rewrite. What changes is the exit status two CLI commands return when they deleted nothing because the confirmation they ask for was not given; the remedy is a flag on the caller's command line (`--yes`), never a rewrite of a package source or a stored row. The other categories are closed on facts: the package publishes (not unpublished); no ADR-0087 id is named or touched (not registered or already-registered); and nothing exported is removed or narrowed (not runtime-interface-only, type-surface-only or runtime-export-retired). --> + + **BREAKING** (an exit status narrows), shipped as `patch`: the change is not to the metadata protocol (`Metadata-protocol: none`). + + - **FROM:** `os db orphans --delete --export PATH` or `os secret orphans --delete --export PATH` on a database with rows to delete, without `--yes`, with stdin not a terminal, text face: nothing exported or deleted, `Aborted — …`, exit `0`. + - **TO:** nothing exported or deleted, `Confirmation required. Re-run with --yes to delete. No export was written and no row was deleted.`, exit `1`. + - **Unchanged:** answering `n` at the `[y/N]` prompt in a terminal still prints `Aborted — no export was written and no row was deleted.` and exits `0`; `--json` without `--yes` already exited `1` with `confirmation_required`; a run with `--yes` deletes as before; a run with nothing to delete exits `0` without asking. + - **The fix for a script:** a script that means to delete passes `--yes` (`os db orphans --delete --export PATH --yes`); one that only wants the report drops `--delete`. +- 5c2e34c: fix(lint): the translation coverage check asks every named flow for its label, not only a flow with a screen or an approval step + + Clause-②: no + Metadata-protocol: none + + `flows.FLOW_NAME.label` is now demanded for every flow a stack declares with a `name`. Until now it was demanded only for a flow with a `screen` or `approval` node, the two readers the key used to have (the screen-flow runner and the approvals inbox). The docs viewer's `type: flow` embed titles its card by the same key for whichever flow a page names, record-triggered, scheduled and API flows included, and the check already asks every flow's drawn steps for their `nodes` labels. So a zh-CN reader saw an English flow name above translated step names, and `os lint` and `os i18n check` did not report it. + + What you see after upgrading: `os lint` reports one more `i18n/missing-flow` finding per untranslated locale for each flow that has neither a screen nor an approval step, and `os i18n extract` scaffolds its `label`. Translate it under `flows.FLOW_NAME.label` in each locale bundle, the key the runner and the approvals inbox already read. A flow with no `name` is not asked: no bundle entry can address it. + + The repository's own coverage ratchet rises by those labels: `examples/app-showcase` 425 to 449 (24 flows, one untranslated locale each) and `examples/app-todo` 130 to 136 (3 flows in two locales). The other twelve configs, including the ten bundle packages, are unchanged. +- 79d9c14: feat(cli): the Console's content-security-policy lets a PDF preview frame the file from the deployment's S3 store + + Clause-②: no + Metadata-protocol: none + + On a deployment that stores files in S3 or an S3-compatible store (R2, MinIO), the Console document's `frame-src` now names that store's origin beside `'self'`, so the in-page file preview can show a PDF from its signed download link. It is the same origin `connect-src` already names for presigned uploads: the store signs uploads and downloads on one origin. Nothing wider is added: not the hosts named in `OS_CONSOLE_CSP_CONNECT_SRC`, never a scheme or a wildcard. With local storage, or when the storage service cannot name its origin, `frame-src` stays as before (left to `default-src 'self'`, or `'self'` plus the Turnstile frame while that challenge is on). + + The storage service's answer is now accepted only as an exact `http(s)` origin: an answer that is a scheme alone, a wildcard, a path or a WebSocket source is left out of both `connect-src` and `frame-src` and reported once, where `connect-src` used to take it. The storage adapters that ship answer an origin, so no deployment changes. +- 3f568c1: fix(studio): Studio's Interfaces column is retired; its old links land on the Studio home and its Changes links open from the Data pillar + + Clause-②: no + Metadata-protocol: none + + objectstack#36502. Menus, header actions, list views, dashboards, reports and record pages are designed in the running app. Studio keeps Data, Automations, Access and All metadata, and every view, dashboard, report and page stays readable and editable as metadata on its All-metadata item page. No metadata type, key or stored shape changes. + + - **Old links still open.** `/studio/<package>/interfaces`, with or without a `?surface=` deep link, lands on the package's Data pillar and says once, there, "Interface edits have moved into the app" (「界面的修改已经搬到应用里」) with a link back to the app. A `?changes=review` request travels with it. + - **`@objectstack/runtime`, `@objectstack/cli`.** The review link the MCP authoring tools and `os meta register --draft` print is `/studio/<package>/data?changes=review` (it was `/studio/<package>/interfaces?changes=review`, which still works through the redirect). + - **`@object-ui/i18n`.** Adds `engine.studio.interfacesRetired.sentence`, `.backToApp` and `.dismiss` (en, zh). + - **`@object-ui/plugin-chatbot`.** The `onDesignBuiltApp` doc example names the Data route. + - The console's "Edit in Studio" links for a dashboard, page, report or view open its All-metadata item page. + - **Customize moves with them.** On a read-only base, a view, dashboard, report or page is customized on its All-metadata item page, in the type's designer, into the base's pair (`<base>.custom`), with the override mark and "Restore package original" as before. It was the Interfaces column's header. +- 9c57bd2: refactor(studio): every Studio address comes from one builder; no address changes + + Clause-②: yes (widening) + Metadata-protocol: none + + Studio redesign groundwork (#36895, epic #36890). Every place that produced a `/studio...` URL now calls one builder, so a later change can move an item type to its metadata address in one place. Every address is byte-for-byte what it was: no link, bookmark or redirect changes. + + - **Console.** `studioAddress.ts` in `@object-ui/app-shell` builds every Studio address: the landing, a package, a pillar, an item (`studioItemPath`), the "All metadata" area, and the draft review links. `studioAddressTable.ts` lists every address family, every `?surface=` spelling and every query parameter, with what each becomes on the metadata address. The retired `/interfaces` redirect keeps exactly the parameters that table marks. New exports from `@object-ui/app-shell`: `STUDIO_ROOT_PATH`, `STUDIO_HOME_PILLAR`, `studioLandingPath`, `studioPackagePath`. Existing exports keep their names and values. + - **Server.** `studioChangesReviewLink` and `studioItemReviewLink`, new in `@objectstack/types`, build the review links that `os meta register` prints and that the MCP authoring tools return after a draft save. The text an AI is handed is unchanged. + - **Guards.** A test under `ui/` refuses a hand-built Studio address in any ui source. A test in `@objectstack/types` refuses one in any server package, and holds the review links quoted by the `objectstack-mcp-build` skill's evals equal to what the builder returns. +- 8b1841f: feat(platform-objects): built-in tasks and notes, `sys_task` and `sys_note`, in every environment + + Clause-②: yes (widening) + Metadata-protocol: none + + `PlatformObjectsPlugin` now registers two ordinary, customizable objects on their own manifest + (`com.objectstack.platform-objects.work`), so any application can put tasks and notes in its menu + without declaring its own: + + - `sys_task` — title (required), description (rich text), status (To Do / In Progress / Done, + default To Do), due time, assignee (a user, defaulting to the creator) and a read-only completion + time the platform writes when the status becomes Done and clears when it leaves Done. + - `sys_note` — an optional title and a rich-text body; lists show a read-only heading that is the + title, or the body's first line when the title is empty. + + Each keeps its own sharing: `sharingModel: 'private'` over a declared `owner_id` (the creator), and a + task is also shared, with edit access, with its assignee through the declared `sys_task_assignee` + sharing rule. Neither links to, grants access to, or derives access from any other record. Default + views: tasks Assigned to Me (open, by due time), Created by Me and All Tasks (a board by status); + notes My Notes and All Notes. Attachments are on for both. + + Both names join `PLATFORM_OBJECTS_BY_PACKAGE['platform-objects']` in `@objectstack/spec`, so + validation treats them as platform-provided: an app's navigation entry reaches them with + `requiresObject` beside `objectName` (`{ type: 'object', objectName: 'sys_task', requiresObject: + 'sys_task' }`), which `defineStack` accepts and the console hides on a kernel without the object. + Their labels ship in the platform's eleven locales (zh-CN 任务 / 备忘). + + `@objectstack/plugin-security`: the member baseline `member_default` grants `sys_task` and + `sys_note` read, create and edit, with no delete (maintainer ruling 7131539862, option A). It opens + the objects only: which rows a member sees stays with each object's private sharing, so a task is + read by its creator and its assignee and a note by its creator. + + `@objectstack/cli`: the organization-ownership inventory (ADR-0131 D10) gives `sys_task` and + `sys_note` the `attribution` fate, so `os migrate organization-ownership` and the `os dev` upgrade + plan databases that hold them instead of refusing an object with no fate. + + Clause-② reads `yes (widening)`: `defineStack` now accepts a top-level action whose `objectName` is + `sys_task` or `sys_note`, and the public surface grows. `Metadata-protocol: none` follows the + `sys_unit` roster-addition precedent: no metadata key, type or schema value is added, and a + reference that already parsed now resolves. +- d9c799c: fix(cli)!: the CLI opens a sign-in page only for an http(s) address and never through a shell, and `os mcp connect` registers only an address that passes one parse + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value, export or stored row is added, removed, renamed or re-shaped. What moves is which sign-in addresses the CLI opens in a browser, how it starts the programs it launches, and which MCP addresses and Windows installs `os mcp connect` registers with; there is nothing for a migration to rewrite and no tombstone. --> + + - **Sign-in pages.** `os login` and `os cloud login` open the device-flow sign-in page only when its address is an `http:` or `https:` URL written in plain URL characters. Any other address is printed, as it always was, with a line saying it was not opened. "Browser opened automatically" is printed only when the browser opener was started, and a line says so when it could not be started. The opener is started from an argument list, with no shell: `open` on macOS, `xdg-open` on Linux, and `rundll32.exe url.dll,FileProtocolHandler` (by its path under the Windows directory) on Windows. + - **Server text prints as one line.** Every string a server supplies that `os mcp connect`, `os login` or `os cloud login` prints (an environment's name and id, an error text, the sign-in address and the user code) reaches the terminal as one line of printable characters, with control characters shown escaped and the length capped; the browser still opens the sign-in address the server gave. After its Endpoint, Name and Connect lines, `os mcp connect` prints nothing from the control plane but those lines' own name and address. `--json` records are unchanged. + - **`os mcp connect` starts `claude` without a shell** on every platform. On Windows it runs the `claude.exe` (or `claude.com`) that the first matching fully qualified `PATH` entry holds (rooted at a drive letter, or a UNC share such as `\\server\share\bin`), by its full path; the current directory, relative entries and entries rooted at the current drive (`\bin`) are not searched. macOS and Linux behave as before. + - **BREAKING (Windows): a batch-file `claude` is no longer run.** + - FROM: on a Windows install whose `claude` is a batch-file shim (`claude.cmd`, which an npm global install writes), `os mcp connect` registered the server and exited 0. + - TO: it registers nothing and exits 1, printing the `claude mcp add` line and saying why. + - The fix: run the printed `claude mcp add …` line yourself, or install Claude Code's native Windows build and run `os mcp connect` again. + - **BREAKING: `os mcp connect` registers and prints only an address that passes one parse, on both paths.** Whether the address comes from `--url` or from the control plane, it must parse as an `http` or `https` URL with no user name or password, it is rebuilt from the parsed origin, and it may hold only letters, digits, `-`, `.`, `_`, `~`, `:`, `/`, `[` and `]` (an IPv6 host's brackets, and in a `--url` path prefix); an address from the control plane must also be a bare host (an optional scheme and port, no path, query or fragment), and no address may hold a control character. The printed Connect line double-quotes an address that holds a bracket, since sh-family shells read brackets as a pattern. + - FROM: such an address was registered and printed as given; a user name or password in `--url` was dropped without a word. + - TO: it is refused with exit 1; nothing is registered and no Connect line is printed. Each refusal names the characters accepted and a way on. + - The fix: for `--url`, pass a base URL in those characters with no user name or password, or run `claude mcp add --transport http NAME URL` yourself with the server's MCP address (a path prefix holding a percent-encoded or punctuation character has no spelling under the rule); for an environment, open it in the ObjectOS Cloud console and check its address. +- b3247dd: fix(auth)!: a server outside development mode refuses a development seed credential, and `os user set-password` sets a new one on the server + + Clause-②: yes (narrowing) — narrowed: on a server whose `NODE_ENV` is not `development`, a password sign-in that submits the development seed password (`admin123`, or the value `OS_SEED_ADMIN_PASSWORD` sets) is refused on every account, and an account the development seed created opens no session while its stored password is still the one it was seeded with. Widened: the `os user set-password` command, the `sys_user.dev_seed_credential` column, and new `@objectstack/plugin-auth` exports `setOperatorPassword`, `findAccountByEmail`, `operatorPasswordRefusal`, `OPERATOR_PASSWORD_MIN_LENGTH`, `OPERATOR_PASSWORD_MAX_LENGTH` and the types `OperatorPasswordResetEngine`, `OperatorPasswordResetOutcome`, `OperatorPasswordResetRefusalReason`. + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No authorable key, accepted value or metadata type is added, removed or renamed; a system column is added; nothing stored is rewritten: the moved answer is whether a server outside development mode accepts a development seed credential at sign-in. The one-line fix for a refused account is in the body: set a new password on the server with os user set-password. --> + + **BREAKING** for a deployment that serves, outside development mode, a database `os dev` seeded, or any account whose password is the development seed password. Such a sign-in is refused. Set a new password on the server with `os user set-password <email>`; the refusal names the command. A server in development mode (`os dev`) is unchanged. + + **The rule: a server outside development mode never accepts a development seed credential.** Development mode is `NODE_ENV=development`, the condition the development seed itself runs under. The rule lives in the auth plugin, so `os start`, `os serve`, the image and a custom host all apply it. + + - **The seed password is refused at sign-in, on any account.** A password sign-in with the development seed password answers `403 PERMISSION_DENIED`, and its message names `os user set-password`. It is decided on the submitted password alone, before any account is read, so every address gets the same answer. This covers the seeded admin, the stack's `demoStaff`, any other account on that password, and a database seeded by an earlier release. + - **The accounts the development seed creates are marked.** `os dev`'s admin and each `demoStaff` account carry `sys_user.dev_seed_credential`: a one-way digest of the password hash the seed stored, never the password. The column is never returned on reads, and any password change stops it matching. + - **A marked account still on its seed password opens no session**, on any sign-in door (password, emailed link, one-time code, passkey, social or SSO, impersonation), whatever password it was seeded with, `os dev --admin-password` included. A password check never confirms that seed password: a password sign-in answers it as a wrong password. + - **No password change is offered at sign-in.** Whoever signed in first could perform it. The way out is the operator's reset on the server. + + **`os user set-password <email>`** sets the account's password in the project database. It reads the new password from a terminal prompt (twice, not echoed) or from standard input with `--password-stdin`, never from the command line, and takes `--database-url` like the other one-shot commands. It checks that the new password is not a development seed password and is 8 to 128 characters long; the deployment's own password policy and password history are not applied. It writes nothing on a refusal. It deletes the account's outstanding password-reset links and codes from the project database before the new password lands. It clears the account's development seed mark and any sign-in lock, records the change time, and ends every session and revokes every API key of the account, as an administrator's forced reset does. It asks for no password change at the next sign-in. It writes the project database only: a secondary storage the host configures for the auth service is out of its reach, for the reset links and the sessions alike. With one configured, run the command with the server stopped, or restart the server afterwards; a secondary storage kept outside the server process outlives a restart and is cleared of the account's entries by hand. + + **Not detected:** a database seeded before this release with a custom seed password carries no mark and no well-known password. Set a new password with `os user set-password` on each account it seeded before serving it outside development mode. + + **Ended by `os user set-password`, and at boot:** this release refuses the development seed password and every new session for a seeded account still on it. Sessions and API keys a seeded account was issued before the server left development mode are ended by `os user set-password`; run it on each seeded account before serving the database. In the same release, a boot outside development mode also retires them: see the note "a boot outside development mode retires what the development seed issued" (#36699). +- df8a1b8: fix(plugin-auth)!: a password reset disables the OAuth applications the account registered and revokes the SCIM credentials it minted + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is what a completed password reset ends: rows the account owns are written disabled or revoked by the doors administrators already use, so there is nothing for a migration to rewrite and no tombstone. --> + + **BREAKING** for an account that registered an OAuth application or minted a SCIM provisioning credential, and then has its password reset. + + - FROM: a completed password reset (the emailed link, the texted code, an administrator's `POST /api/v1/auth/admin/set-user-password` with `revokeSessionsAndKeys` on, and `os user set-password`) ended the account's sessions, API keys, linked sign-in accounts, authorized apps and device sign-ins. The OAuth applications the account registered (`sys_oauth_application.user_id`) stayed enabled, and the SCIM credentials it minted (`sys_scim_connection_credential.user_id`) stayed active. A self-service reset sent the account no notice. + - TO: the same resets also disable every OAuth application the account registered that is not disabled, as a platform administrator's Disable action does (the provider issues it no token, client-credentials tokens included, answers its tokens inactive at introspection, and the MCP endpoint refuses every token it holds), and revoke every SCIM credential the account minted that is still active, as Revoke Credential does, each revoke writing the `sys_audit_log` row Revoke Credential writes (`scim_credential_revoked`) naming the account for a self-service reset and the administrator for a forced one (`os user set-password` names no one and writes none). An application another account registered and a credential another administrator minted are not touched. The account's single sign-on providers and two-factor enrolment are kept. + - A completed self-service reset then mails the account `auth.password_reset_notice` (a new built-in template, in en-US, zh-CN, ja-JP and es-ES): how many API keys, linked sign-in accounts and authorized apps it ended, each application it disabled and each credential it revoked by name, and the single sign-on providers and second factor it kept. It is best-effort: a notice that cannot be sent never fails the reset. The forced resets send no notice and answer their requester instead. + - The administrator's forced reset reports the new counts on `data.revoked` (`ownedApps`, `scimCredentials`) and on its ledger row (`revokedOwnedApps`, `revokedScimCredentials`); `setOperatorPassword` answers `ownedAppsDisabled` and `scimCredentialsRevoked`, and `os user set-password` prints them. A disable or revoke that does not land answers the self-service requester an error, with no notice, and keeps the forced reset's `complete` false, as for the other rows; every other kind is still ended first, so an application that cannot be disabled leaves no API key, linked sign-in account or credential in place. + - A password change disables and revokes nothing. Its reminder, `auth.password_changed_notice`, now also lists the OAuth applications the account registered that are still enabled and the SCIM credentials it minted that are still active and not past their own expiry, and is sent when the account holds only those. + + The fix for an owner after a reset: ask a platform administrator to enable an application you still need again, and have a platform administrator mint a new SCIM credential for a connection whose credential was revoked. +- 75925e1: fix(plugin-auth)!: a password reset ends what the account added before it + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value, metadata type or export shape is added, removed, renamed or re-shaped, and no stored row is rewritten by a migration: what moves is what the auth doors end when a password is reset or first set, and the answer they give a link minted before it, which is now the answer a link that was never issued gets. The forced reset response gains two counts, its ledger row two keys and the operator outcome two fields. There is nothing for a migration to rewrite and no tombstone. --> + + A password reset ends what the account added before it, and a password change reminds the account what it keeps. + + - **A completed self-service reset** (the emailed link at `POST /api/v1/auth/reset-password`, the texted code at `POST /api/v1/auth/phone-number/reset-password`) now ends, beside the account's sessions, every API key the account owns that is not revoked, its `revoked` flag false or unset (revoked as one its owner revoked, so the owner may restore it from the API Keys list), and every sign-in account linked to it other than its password (a social, OAuth or single sign-on link; the provider may be linked again as it was the first time). Where the OAuth provider is enabled it also ends every app authorized to the account: the account's consents, refresh tokens and stored access tokens are deleted, so the app asks to be authorized again, and an MCP access token is refused on its next request. Where device authorization is enabled it ends a device sign-in approved for the account and not yet collected. This build offers no passkey sign-in, so there are no passkeys to end. A reset that does not complete ends nothing. A completed reset that cannot end one of these (a record it cannot read or write, a linked account a host's `account.delete.before` hook keeps, an account it cannot name) answers an error once the password is written; the password stands, its change time and password history are recorded all the same, and resetting again ends what remains. + - **A password change** (`POST /api/v1/auth/change-password`) ends none of these: an authorized app keeps its authorization and gets a new MCP access token with its refresh token, issued after the change. When the account still holds an API key that is neither revoked nor past its own expiry, a linked sign-in account or an authorized app afterwards, the account's address is sent the new built-in template `auth.password_changed_notice`, naming each (its variables are `apiKeyCount`, `apiKeys`, `signInAccountCount`, `signInAccounts`, `authorizedAppCount` and `authorizedApps`), through the email service. It is best-effort and never fails the change. plugin-email ships it in `en-US`, `zh-CN`, `ja-JP` and `es-ES`, so `BUILTIN_AUTH_TEMPLATES` grows from 32 rows to 36, and core's `PLATFORM_REQUESTED_BARE_NAMES_BY_TYPE.email_template` names it beside the other eight, so it resolves environment-wide and keeps one overriding package per deployment. + - **An administrator's forced reset** (`POST /api/v1/auth/admin/set-user-password` with `revokeSessionsAndKeys` on, the default) and the operator's `os user set-password` also unlink every linked sign-in account and end every app authorized to the account and every device sign-in approved for it, as the self-service reset does: where the OAuth provider is enabled, the account's consents, refresh tokens and stored access tokens are deleted; where device authorization is enabled, its pending device codes. The operator's command, which runs with no server, ends the ones the project database holds. Both now revoke a key whose `revoked` flag is unset as well. The forced reset's response reports the unlinks as `revoked.signInAccounts` and the apps as `revoked.authorizedApps` (its ledger row as `revokedSignInAccounts` and `revokedAuthorizedApps`), and the operator command prints both (`signInAccountsUnlinked`, `authorizedAppsEnded` on `setOperatorPassword`'s outcome). `revokeSessionsAndKeys: false` still ends nothing. + - **An account's first password counts as a password change when it is set onto an account that was already there**: through either reset door, an administrator's `set-user-password`, the one-step invitation acceptance of an existing account, or `POST /api/v1/auth/set-initial-password`. So links and challenges issued before it end, exactly as they do for any other password change. A password created in the same request as its account, as at a sign-up with a password, an administrator's create-user or a one-step invitation acceptance that creates the account, is still not a change, however long the steps between the two take. A password created outside such a request (written straight to the store), or before this release, counts as a change at its creation, so a verification link that signs in, mailed in the same second as that creation, answers as never issued and its owner requests a new one. + - **A verification link that signs its holder in** (on a deployment with `emailVerification.autoSignInAfterVerification: true`), **a magic link** and **a texted sign-in code**, issued before the account's password changed, now answer what a link or code that was never issued answers: `401 INVALID_TOKEN` or the `error=INVALID_TOKEN` redirect at `GET /api/v1/auth/verify-email`, the `error=INVALID_TOKEN` redirect with no session at `GET /api/v1/auth/magic-link/verify`, and `400 OTP_NOT_FOUND` with no session at `POST /api/v1/auth/phone-number/verify` (a code sent by `POST /api/v1/auth/phone-number/send-otp`). With auto sign-in off, a verification link still verifies the address. An MCP access token issued before the account's password changed (a reset, a change, or an administrator's `set-user-password`) is refused at the MCP endpoint, as a signed link is, in whole seconds; where the app's authorization still stands (a change, or `revokeSessionsAndKeys: false`), the app gets a new token with its refresh token. A link, code or token issued after the change works as usual. + + **BREAKING** for a client or integration that keeps using what a reset now ends: an API key the account owned before a completed password reset is refused as revoked (`403 API_KEY_REVOKED`), a linked sign-in account is no longer linked, an authorized app must be authorized again (after a forced reset with revocation on, too), a verification link that signs in, a magic link or a texted sign-in code issued before the account's password changed answers as a never-issued one, and an MCP access token issued before it is refused. The fix: mint a new key after the reset (or restore the old one from the API Keys list), link the provider again, authorize the app again, request a new link or code, or let the app refresh its token. +- 595e9cb: feat(security): `server.trustProxy` gains a trusted-network form, and the client address is read from the trusted hop + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: none — no skill under `skills/**` teaches `server.trustProxy` or forwarded headers; `docs/HARDENING.md`, `content/docs/deployment/production-readiness.mdx`, `content/docs/protocol/kernel/http-protocol.mdx` and `content/docs/permissions/authentication.mdx` gain the form in this change. + + `server.trustProxy` accepts a third form beside `false` and `true`: `{ networks, header }`, naming the reverse proxies a deployment runs. + + ```ts + defineStack({ + server: { + trustProxy: { networks: ['10.20.0.0/28', '2001:db8::10'] }, // header defaults to 'x-forwarded-for' + }, + }); + ``` + + - A forwarded header is believed only on a connection whose peer address is inside `networks`. From any other peer the client is the peer itself. + - `X-Forwarded-For` is read from the right: every entry inside `networks` is a hop of the deployment's own, and the first entry outside them is the client. When every entry is inside them, the leftmost is the client. An entry a trusted hop reports that is not an address establishes no address. + - `header: 'x-real-ip'` reads `X-Real-IP` instead. Under this form the header it does not name is never read. + - Each entry of `networks` is an address or a CIDR range, IPv4 or IPv6, read the way an `allowed_ip_ranges` entry is read. Every address inside `networks` is taken for a proxy hop, so list the proxies' own addresses, never a range clients connect from. A range of prefix length 0 is refused: it would stand in for `true`. + - `os validate` and `defineStack` refuse an entry not shaped like an address or a CIDR range, a prefix length of 0, an empty list, an unknown header and an unknown key. The runtime reads every entry in full at boot and refuses, naming the entry, what passes the shape but names no range (an address with a port, an IPv4-mapped prefix wider than the mapping), so a form is never read as "trust nobody". + - A malformed `server.trustProxy` object, which used to read as `false`, now fails the boot. + - A forwarded header sent as several lines is read as one list, under every form. + + Every consumer of the client-address rule reads the new form: the inbound rate limiter, the per-endpoint rate limiter, and the authentication plugin's IP allow-list, `last_login_ip` login audit and vendored-library limiter. `objectstack serve` hands the authored value to both `AuthPlugin` and the dispatcher as it is, in either form. A host that composes them itself passes the same value to `AuthPlugin({ trustProxy })` and `createDispatcherPlugin({ rateLimit: { trustProxy } })`; `@objectstack/plugin-auth/client-address` exports `readTrustProxy`, the one reading of the declaration, with `ClientAddressTrust` and `TrustedProxyNetworks`. + + `server.trustProxy: true` reads as before, and is sound only behind a proxy that overwrites `X-Forwarded-For` on every request, never one that appends to it. Under `true` the server now logs one `warn` per process the first time an `X-Forwarded-For` with more than one entry arrives, naming the trusted-network form. The IP allow-list's two operator warnings say the same. `true` is refused at boot from the next major; to move now, replace it with `{ networks: [...] }` listing your proxies' addresses or ranges. +- 64b278e: fix(rest)!: every data door judges environment membership + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) every data door judges environment membership; nothing an author writes is retired, renamed or re-shaped, so there is nothing for a migration to rewrite --> + + **BREAKING** for a signed-in caller who is not a member of the environment a request resolved to: every data door now judges environment membership and answers that caller `403 PROJECT_MEMBERSHIP_REQUIRED`, in the envelope the runtime dispatcher already answers with. + + Every data door judges environment membership. The rule is one function in `@objectstack/core` (`judgeEnvironmentMembership`), asked by the runtime dispatcher and the REST server alike; the dispatcher's own answers are unchanged. + + It is off in exactly two cases: `api.enforceProjectMembership: false` (ADR-0135 D9: a host whose environment-native auth is the membership), or no `sys_environment_member` object registered. The switch is read through one function for every door (`resolveEnvironmentMembershipEnforcement`): an explicit `enforceProjectMembership` wins, else it is on exactly when environment scoping is on. `objectstack serve` hands the stack's `api.enforceProjectMembership` to the REST and the dispatcher plugin alike. + + Migration: a host that composes the plugins itself passes the same `enforceProjectMembership` to `createRestApiPlugin` as to `createDispatcherPlugin`. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [8c629b2] +- Updated dependencies [b02484e] +- Updated dependencies [c6558d0] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [4c2d8d7] +- Updated dependencies [cc03bdc] +- Updated dependencies [ef39b2c] +- Updated dependencies [a73edb3] +- Updated dependencies [7878cf0] +- Updated dependencies [93fa4f9] +- Updated dependencies [37e7fdf] +- Updated dependencies [2a0cd20] +- Updated dependencies [22af9e6] +- Updated dependencies [a998964] +- Updated dependencies [1c05546] +- Updated dependencies [9fea316] +- Updated dependencies [cceb5c6] +- Updated dependencies [7f4970a] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [5f18b9b] +- Updated dependencies [e6e5224] +- Updated dependencies [94a2d8b] +- Updated dependencies [b38e133] +- Updated dependencies [895dd43] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [d053c7d] +- Updated dependencies [8b550f8] +- Updated dependencies [c809deb] +- Updated dependencies [b68f9ae] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [c4a73be] +- Updated dependencies [806bba8] +- Updated dependencies [4db08d5] +- Updated dependencies [c9b3f7a] +- Updated dependencies [01e6af6] +- Updated dependencies [8e46424] +- Updated dependencies [d5ece3e] +- Updated dependencies [2d33205] +- Updated dependencies [2d33205] +- Updated dependencies [78f3ab2] +- Updated dependencies [3c038eb] +- Updated dependencies [f5cfdd2] +- Updated dependencies [f4dbcc2] +- Updated dependencies [f5b2eea] +- Updated dependencies [00110fd] +- Updated dependencies [1950f07] +- Updated dependencies [d17adf5] +- Updated dependencies [9c29d73] +- Updated dependencies [c05a8a0] +- Updated dependencies [e22502c] +- Updated dependencies [35c6331] +- Updated dependencies [de395b4] +- Updated dependencies [e100a37] +- Updated dependencies [f848e37] +- Updated dependencies [fe3ebc8] +- Updated dependencies [bf69cb4] +- Updated dependencies [4026c44] +- Updated dependencies [0739dee] +- Updated dependencies [f54fc93] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [24cc61f] +- Updated dependencies [5ecf937] +- Updated dependencies [96faf44] +- Updated dependencies [e25207d] +- Updated dependencies [d6ce9ba] +- Updated dependencies [7ed18b5] +- Updated dependencies [2df9691] +- Updated dependencies [bfd6b6b] +- Updated dependencies [961f474] +- Updated dependencies [a6cf988] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [338448e] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [9e65474] +- Updated dependencies [8596c80] +- Updated dependencies [ba304e0] +- Updated dependencies [fd471d3] +- Updated dependencies [4a1919d] +- Updated dependencies [ec227fc] +- Updated dependencies [ba6556c] +- Updated dependencies [8856afc] +- Updated dependencies [96a1f2b] +- Updated dependencies [c787255] +- Updated dependencies [c480f33] +- Updated dependencies [9062756] +- Updated dependencies [65b67be] +- Updated dependencies [1caee8c] +- Updated dependencies [dbb2f68] +- Updated dependencies [cdb327f] +- Updated dependencies [5cd2b54] +- Updated dependencies [6ffa816] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [43639a6] +- Updated dependencies [d99b746] +- Updated dependencies [467b13b] +- Updated dependencies [338ef35] +- Updated dependencies [7702f09] +- Updated dependencies [abb40ae] +- Updated dependencies [b863d2b] +- Updated dependencies [ee40658] +- Updated dependencies [068a0f9] +- Updated dependencies [afbd903] +- Updated dependencies [0188989] +- Updated dependencies [89ea9bf] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [8925d5b] +- Updated dependencies [cf6bb70] +- Updated dependencies [78fd762] +- Updated dependencies [a35187e] +- Updated dependencies [c321914] +- Updated dependencies [07b1754] +- Updated dependencies [61722e9] +- Updated dependencies [03865ae] +- Updated dependencies [37f7814] +- Updated dependencies [c0484c8] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [d76d57a] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [3ce6b65] +- Updated dependencies [edc5355] +- Updated dependencies [aff34ba] +- Updated dependencies [6d0089c] +- Updated dependencies [99ece3c] +- Updated dependencies [2211bb1] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [cda16d4] +- Updated dependencies [fe75349] +- Updated dependencies [f4de1de] +- Updated dependencies [dab4712] +- Updated dependencies [819c067] +- Updated dependencies [4890cd0] +- Updated dependencies [c9aad65] +- Updated dependencies [53c9575] +- Updated dependencies [7eaa3f5] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [c59ee99] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [fcbebf2] +- Updated dependencies [eb9f8ed] +- Updated dependencies [986a0f2] +- Updated dependencies [c99156e] +- Updated dependencies [ea58563] +- Updated dependencies [c6b07c2] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [1e018d6] +- Updated dependencies [7c122ff] +- Updated dependencies [50d6da8] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [61831d2] +- Updated dependencies [9a3a500] +- Updated dependencies [c03a8a3] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [03bce5c] +- Updated dependencies [de25d58] +- Updated dependencies [7dd1a2f] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [d9be915] +- Updated dependencies [d9be915] +- Updated dependencies [886ba45] +- Updated dependencies [65ee4b7] +- Updated dependencies [a03c3d4] +- Updated dependencies [c9b0a23] +- Updated dependencies [a8126d2] +- Updated dependencies [65fddc8] +- Updated dependencies [c4d6acc] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [ed33f8a] +- Updated dependencies [1c4db09] +- Updated dependencies [17ed9e7] +- Updated dependencies [fa30414] +- Updated dependencies [cf7e443] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [52fb30c] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [850bcec] +- Updated dependencies [a98c077] +- Updated dependencies [4dbee9f] +- Updated dependencies [236c804] +- Updated dependencies [d71fe59] +- Updated dependencies [c261a7c] +- Updated dependencies [0e91213] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [907b378] +- Updated dependencies [62daf7d] +- Updated dependencies [a5a5312] +- Updated dependencies [521b4f6] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6943af1] +- Updated dependencies [83e545a] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [92f6216] +- Updated dependencies [ed4d322] +- Updated dependencies [5827212] +- Updated dependencies [00ae570] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [b7fe94a] +- Updated dependencies [011635f] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [7376505] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [03dbbe4] +- Updated dependencies [9a82465] +- Updated dependencies [0d4f190] +- Updated dependencies [13da40c] +- Updated dependencies [ad92dfd] +- Updated dependencies [b572420] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [a61b8ab] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [0fc430a] +- Updated dependencies [a3381cc] +- Updated dependencies [0a49be3] +- Updated dependencies [7a5ae65] +- Updated dependencies [d24a502] +- Updated dependencies [70d07fd] +- Updated dependencies [0ab9b15] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [ddceb22] +- Updated dependencies [5c2e34c] +- Updated dependencies [595844b] +- Updated dependencies [53733c1] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [76bff41] +- Updated dependencies [6bc775f] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [ac43336] +- Updated dependencies [a3ee862] +- Updated dependencies [7501d0c] +- Updated dependencies [756df0a] +- Updated dependencies [45ef94e] +- Updated dependencies [3f568c1] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [a98f8c6] +- Updated dependencies [e17c2ae] +- Updated dependencies [24ff03c] +- Updated dependencies [24ff03c] +- Updated dependencies [24ff03c] +- Updated dependencies [24ff03c] +- Updated dependencies [24ff03c] +- Updated dependencies [24ff03c] +- Updated dependencies [24ff03c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [89ce4fb] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [e343ab7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [c8d4b90] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [6cfb782] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [9c57bd2] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [586c3a2] +- Updated dependencies [d25d912] +- Updated dependencies [422df61] +- Updated dependencies [30778f3] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [49c8e0f] +- Updated dependencies [2a6f26a] +- Updated dependencies [93bd459] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [c448c61] +- Updated dependencies [702b0cf] +- Updated dependencies [92ab056] +- Updated dependencies [b3247dd] +- Updated dependencies [372ce7c] +- Updated dependencies [c059e60] +- Updated dependencies [084156d] +- Updated dependencies [97f3420] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [db9e34a] +- Updated dependencies [d59d875] +- Updated dependencies [8e415bd] +- Updated dependencies [852270a] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [bc2aaf1] +- Updated dependencies [4e55e4e] +- Updated dependencies [64b278e] +- Updated dependencies [4101f1f] +- Updated dependencies [99bd6d1] +- Updated dependencies [695b9db] +- Updated dependencies [7751753] +- Updated dependencies [d2bc1ff] +- Updated dependencies [6927c3f] +- Updated dependencies [ecd4b2b] +- Updated dependencies [1e692d1] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] +- Updated dependencies [1104ee5] + - @objectstack/spec@18.7.0 + - @objectstack/service-automation@18.7.0 + - @objectstack/runtime@18.7.0 + - @objectstack/objectql@18.7.0 + - @objectstack/metadata-protocol@18.7.0 + - @objectstack/plugin-auth@18.7.0 + - @objectstack/plugin-security@18.7.0 + - @objectstack/types@18.7.0 + - @objectstack/plugin-sharing@18.7.0 + - @objectstack/plugin-audit@18.7.0 + - @objectstack/service-settings@18.7.0 + - @objectstack/platform-objects@18.7.0 + - @objectstack/service-storage@18.7.0 + - @objectstack/service-analytics@18.7.0 + - @objectstack/lint@18.7.0 + - @objectstack/driver-mongodb@18.7.0 + - @objectstack/cloud-connection@18.7.0 + - @objectstack/metadata@18.7.0 + - @objectstack/plugin-approvals@18.7.0 + - @objectstack/formula@18.7.0 + - @objectstack/mcp@18.7.0 + - @objectstack/service-messaging@18.7.0 + - @objectstack/rest@18.7.0 + - @objectstack/client@18.7.0 + - @objectstack/verify@18.7.0 + - @objectstack/core@18.7.0 + - @objectstack/driver-sql@18.7.0 + - @objectstack/driver-turso@18.7.0 + - create-objectstack@18.7.0 + - @objectstack/metadata-core@18.7.0 + - @objectstack/plugin-hono-server@18.7.0 + - @objectstack/trigger-record-change@18.7.0 + - @objectstack/service-realtime@18.7.0 + - @objectstack/plugin-webhooks@18.7.0 + - @objectstack/trigger-schedule@18.7.0 + - @objectstack/console@18.7.0 + - @objectstack/plugin-email@18.7.0 + - @objectstack/account@18.7.0 + - @objectstack/setup@18.7.0 + - @objectstack/driver-memory@18.7.0 + - @objectstack/driver-sqlite-wasm@18.7.0 + - @objectstack/observability@18.7.0 + - @objectstack/plugin-pinyin-search@18.7.0 + - @objectstack/service-cache@18.7.0 + - @objectstack/service-datasource@18.7.0 + - @objectstack/service-job@18.7.0 + - @objectstack/service-mailbox@18.7.0 + - @objectstack/service-package@18.7.0 + - @objectstack/service-push@18.7.0 + - @objectstack/service-queue@18.7.0 + - @objectstack/service-sms@18.7.0 + - @objectstack/trigger-api@18.7.0 + ## 18.6.0 ### Minor Changes diff --git a/packages/cli/package.json b/packages/cli/package.json index 445e66faa76..7ec8c429ad0 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/cli", - "version": "18.6.0", + "version": "18.7.0", "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 a9543fedab5..331c164fb09 100644 --- a/packages/client-react/CHANGELOG.md +++ b/packages/client-react/CHANGELOG.md @@ -1,5 +1,185 @@ # @objectstack/client-react +## 18.7.0 + +### Patch Changes + +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [f5b2eea] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [dab4712] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [d9be915] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/client@18.7.0 + - @objectstack/core@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/client-react/package.json b/packages/client-react/package.json index 58071da6739..509db66ec66 100644 --- a/packages/client-react/package.json +++ b/packages/client-react/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/client-react", - "version": "18.6.0", + "version": "18.7.0", "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 9a670c4b69c..81210ee5500 100644 --- a/packages/client/CHANGELOG.md +++ b/packages/client/CHANGELOG.md @@ -1,5 +1,298 @@ # @objectstack/client +## 18.7.0 + +### Minor Changes + +- 61722e9: feat: Change Owner cascade — a relationship declares `transferBehavior: 'cascade'`, and the Change Owner dialog offers it as a tick + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: follow-up #36713 + + A Change Owner can now move related records along with the record, relationship by relationship. + + - **The declaration.** A `lookup` or `master_detail` field takes `transferBehavior: 'none' | 'cascade'`, beside `deleteBehavior` (omitted means `'none'`). `'cascade'` on the child's reference field to a parent says: when the parent's owner changes, the child records that point at it and are owned by the parent's previous owner may move to the new owner too. No other child records move; there is no filter key. + - **Refused where it could never act.** The key is refused on any other field type, `'cascade'` is refused on a reference to a `sys_` object and on a multi-value reference (`multiple: true`), and `'cascade'` is refused on a field of an object that does not offer Change Owner itself: one that is not structurally eligible (no reassignable owner), a `controlled_by_parent` detail (its access already follows its master), or one whose `userActions.transfer` is off. Each refusal names the field and the fix. + - **The request.** `POST /api/v1/data/:object/:id/change-owner` and `POST /api/v1/data/:object/change-owner` take an optional `cascade: [{ object, field }]` naming the relationships to move along (`data.changeOwner` / `data.changeOwnerMany` in `@objectstack/client`). A relationship that does not declare `'cascade'`, or whose child does not offer Change Owner, is refused `400 VALIDATION_ERROR` before anything is written; so is a cascade with a queue target. Each cascaded record is updated as the caller, so it needs the caller's own transfer grant on the child object. Each relationship's outcome in the answer's `cascade[]` lists every record the caller's write refused, with its id, code and sentence: a related record whose `owner_id` is locked on it (read-only, or under a `readonlyWhen` that holds) is refused `FIELD_NOT_ACCESSIBLE` and keeps its owner, as the record itself would be, while the record's own move stands. One call moves at most 500 related records; the records past that limit are counted in `remaining`, still with the previous owner, not listed. When a relationship's records could not be read, its outcome carries `readFailure` and none of them moved. + - **The candidates.** `GET /api/v1/data/:object/change-owner/cascades` (`data.changeOwnerCascades`) lists the relationships declared to an object whose child offers Change Owner. A child whose declared API exposure does not serve `update` is left out, and so is a child of a disabled package. + - **The Studio.** The field form and the object form's field rows offer `transferBehavior` beside `deleteBehavior`, on `lookup` and `master_detail` fields; the row's label and help text ship in the metadata-forms locale packs of `@objectstack/platform-objects`. + - **The dialog.** For a person target, the Change Owner dialog lists those relationships on which the explain engine allows the caller the `transfer` operation, one tick each, sends the ticked ones, and draws each relationship's outcome, every record it did not move included. + + A plain `owner_id` update is unchanged: the declaration is read only by the Change Owner action. +- bfd1049: fix(core, console): a banned user's hand-over follows each object's Change Owner switch, and the ban dialog says why a record stays + + Clause-②: no + Metadata-protocol: semantic + + An object's Change Owner switch (`userActions.transfer`) now also decides whether the offboarding hand-over (`POST /api/v1/security/users/USER_ID/assigned-work/transfer`) moves the object's `owner_id`, and how the count (`GET /api/v1/security/users/USER_ID/assigned-work`) reports it. The hand-over reads the same resolution the Change Owner action refuses by (`resolveUserActionTransfer`), so the two never disagree: + + - An object that turns the switch off keeps its records' owners where they are. Before, the hand-over moved them. + - A `controlled_by_parent` detail that leaves the switch out keeps its owner (the default is off there), as before. A detail that sets `userActions.transfer: true` now has its owner handed over like any other object. Before, every detail's owner was skipped. + - The object's own user fields (an approver, an assignee) are handed over whatever the switch says. + + A kept owner is still counted. Before, a detail's owner was left out of the count; now its row answers `transferable: false` with `reason: 'transfer_off'`. A multi-valued user field answers `reason: 'multi_valued'`. `reason` is a new optional member of each `objects[]` row in `security.assignedWork.count`'s answer (`UserAssignedWorkSummary` in `@objectstack/client`, `UserAssignedWorkHoldReason` in `@objectstack/core`). It is present exactly when `transferable` is false. + + The ban dialog words each kept row by its reason. A kept owner reads "Not handed over: this object keeps the owner of each record (Change Owner is off for it)." (zh: 不会交接:该对象的记录负责人保持不变(该对象已关闭“更改负责人”)。). A multi-valued row keeps its own sentence ("Lists several people, so it cannot be handed over here."), and a kept owner never shows it. The new `console.assignedWork.ownerKept` key is in all eleven UI locales. + + To keep the old hand-over of an object you switched off, set `userActions.transfer` back on for it. Before this change the switch gated only the Change Owner action; it now gates that action and the hand-over, and nothing else: a plain `owner_id` write (an import, a hook, a `PATCH`) still needs only the transfer grant. + +### Patch Changes + +- f5b2eea: feat(client): `meta.getItem` reads a pending draft with `state: 'draft'` + + Clause-②: yes (widening) + Metadata-protocol: none + + `meta.getItem(type, name, { packageId, state: 'draft' })` sends `?state=draft` beside `?package=`, on the unscoped client and on the environment-scoped twin. It is the strict draft read the REST door already serves: the answer is the draft row, and its `item._diagnostics` carries the publish verdict (what publishing that draft would refuse). `'active'` is the default said out loud and sends nothing, so a call without the member is the request it always was. A caller the door does not admit to drafts is answered with the published item, so compare the answer's `version` with the draft's before reading it as the draft. +- 16a96ac: feat(rest): Change Owner endpoint — hand one record or a list of records to another owner, on objects that offer the action + + Clause-②: yes (widening) + Metadata-protocol: none + + Two new doors under the data surface, both run as the caller: + + - `POST /api/v1/data/:object/:id/change-owner` with `{ ownerId | queue, notify? }` hands one record to a person or moves it to an ownership queue (ADR-0142), and answers the record's new owner. + - `POST /api/v1/data/:object/change-owner` with `{ ids, ownerId | queue, notify? }` does the same for up to 500 records, one update per record, and answers a per-row report that lists every record that did not move with its code and sentence. + + An object offers Change Owner when the platform gives it a reassignable owner and its `userActions.transfer` switch is on (on by default, off on a `controlled_by_parent` detail). Any other object is refused as a whole, `403 CHANGE_OWNER_DISABLED`, whoever asks — a holder of `modifyAllRecords` included. The switch gates this action only: a plain `owner_id` update still needs the transfer grant and nothing else, so imports and hooks are unaffected. On an object that offers it, each record moves through the ordinary write path, so the caller needs edit on the record and the transfer grant (`allowTransfer` or `modifyAllRecords`); without the grant the record keeps its owner and the answer is the data door's own `403 PERMISSION_DENIED`. `notify: true` sends the new owner one notification under the `record.owner_changed` topic, its title keyed so it renders in the new owner's own language (English when no entry renders). + + `@objectstack/core` exports `changeRecordOwner`, `changeRecordsOwner`, `changeOwnerOffReason`, `changeOwnerOffRefusal`, `CHANGE_OWNER_DISABLED`, `CHANGE_OWNER_NOTIFICATION_TOPIC`, `CHANGE_OWNER_NOTIFICATION_TEXT` and `assertAssignableUser` (the assigned-work hand-over's target check, now shared). That check now reads the target user the way the write path reads a user reference: a user the caller cannot read answers as one that does not exist (`404`, `reference_not_found`), on Change Owner and on the hand-over alike. `@objectstack/client` adds `data.changeOwner` and `data.changeOwnerMany`. `@objectstack/spec` registers `CHANGE_OWNER_DISABLED` in the error-code ledger, and the `userActions.transfer` liveness row is now `live`. `@objectstack/service-messaging` lists `record.owner_changed` among the platform's notification topics and carries the notice's title in every shipped locale (`messages.recordOwnerChangedTitle`, `messages.recordsOwnerChangedTitle`). +- dab4712: feat(console): the 「All documentation」 page has the console's top bar, groups its books by app, and searches every article + + Clause-②: yes (widening) — @objectstack/client `meta.getItems` takes an optional `include` (`'content' | 'grants'`, sent as `?include=`) and exports its options type `MetaItemsListOptions`; @object-ui/i18n adds nine help.* keys (two of them plural, with their per-locale forms); nothing removed + Metadata-protocol: none + + - **The console's top bar on every portal page.** `/docs`, a book (`/docs/<book>`) and an article (`/docs/<book>/<article>`) are drawn in Home's frame, whose bar reads 「<product> / Documentation」 (the crumb links to the portal's index) and carries the search, the inbox, the assistant and the avatar menu, so the reader can go back to any app. The portal's own 「Documentation / <title>」 strip is gone. + - **Books grouped by app.** The page lists each app's books under the app's name, as the launcher names it: a book goes under the first app whose navigation links to it (a module's navigation contributions included), else under its package's app; books no app carries are listed last under 「Other documentation」. No card shows a package id; a package's docs with no authored book are named by their app. A platform package's books (`com.objectstack.*`, such as Setup's) are listed only under an app in the member's list that carries them, never under 「Other documentation」, so they are not listed for a member whose app list has no such app. This is what the page lists, not who may read a doc: the server's audience gate decides that, as before. + - **The subtitle and the counts read the session language** (「9 篇」, not 「9 articles」). + - **「Search all documentation」.** A search field on the page searches every listed article's title, summary and body, and lists the matches with the words marked in context; each opens the article in its own book. The bodies are asked once, the first time the reader searches (`GET /meta/doc?include=content`, through the same audience gate as the list). The query stays in the URL (`?q=`). + - **A hand-typed article URL whose book does not hold the article** (`/docs/<book A>/<article of book B>`) now opens the article in its own book; with no book that holds it, the article draws no previous/next pager instead of showing both ends at once. Inside an app, an article whose book is in no package now keeps its 「← Back to <app>」 link. + + `@objectstack/client`: `client.meta.getItems(type, { include })` and the environment-scoped `meta.getItems` send `?include=`; leaving it out sends nothing, as before. `@object-ui/app-shell`: `AppHeader` takes a `docs` variant and `DefaultHomeLayout` a `variant` prop for it. +- d9be915: fix(client): `client.approvals.reject` requires the decision and its `comment` + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No spec key or authored value changes. What moves is the parameter type of one SDK method: the decision argument and its comment member become required, matching the approvals route, which now refuses a reject without a reason. No stored row changes, so there is nothing for a migration to rewrite. --> + + **BREAKING** for TypeScript callers of `client.approvals.reject(requestId)` or `client.approvals.reject(requestId, { actorId })`: the decision argument and its `comment` are now required, so those calls no longer compile. At runtime the approvals route refuses a reject without a non-blank reason with `400 VALIDATION_ERROR`. It ships `patch` because it is a non-protocol breaking change (AGENTS.md Post-Task Checklist step 3). `client.approvals.approve` is unchanged; its comment stays optional. + + Fix for a caller: pass the reason, `client.approvals.reject(requestId, { comment: 'Over budget.' })`. +- 40e22f1: fix(approvals, list): a list cell no longer opens an editor before it knows the record's approval lock, and the list reads the locks of a page in one request + + Clause-②: yes (widening) + Metadata-protocol: none + + **What a list user sees.** On a list that edits in place, a double-click, Enter, F2 or a typed key on a cell whose record's approval lock or edit permission is still being read no longer opens an editor that the server would then refuse on save. The cell says "Checking whether this record can be edited…", and when the answer arrives the same edit goes ahead by itself (with the typed key), or the cell says why it does not: the record is locked while it is in approval, or the reader has no permission to edit it. Selecting another cell in the meantime drops the wait. Moving the selection with the arrow keys no longer sends a lock request per row: the first cell selected on a page asks the locks of every row on it at once. + + **New route.** `POST /api/v1/approvals/records/:object/locks` with the body `{ "recordIds": ["<id>", ...] }` (at least one id, at most `APPROVAL_RECORD_LOCKS_MAX_RECORD_IDS`, 200) answers `{ success: true, data: { records: [{ recordId, locked }] } }`, one entry per id in order. `locked` is what `GET /api/v1/approvals/records/:object/:recordId/lock` answers for that id, and `null` where that route answers 404: a record the caller cannot read and one that does not exist answer alike. Any other body (a key other than `recordIds`, an empty list, a non-string or blank id, more ids than the cap) and any query parameter are refused whole with `400 VALIDATION_ERROR`, never trimmed. A deployment whose approvals service does not implement the read answers `501`. + + **Contract and SDK.** `IApprovalService` gains the optional member `getRecordLocks(object, recordIds, context)`, entry `i` answering `recordIds[i]` exactly as `getRecordLock` does; the approvals plugin implements it in two reads whatever the page size (the caller's read of the ids, then one pending-request lookup judged by the record-lock hook's own judgement). `@objectstack/spec/contracts` exports `APPROVAL_RECORD_LOCKS_MAX_RECORD_IDS`. `@objectstack/client` gains `client.approvals.getRecordLocks(object, recordIds)`. + + **Components.** `GridCellFacts` (the select-first table's per-cell facts) gains the optional `checking: { text, settled }`: while present, an edit asked on the cell shows `text` and is asked again when `settled` settles; a toggle, paste or clear shows `text` and writes nothing. A host that sets no `checking` sees no change. +- c261a7c: feat(automation): `POST /api/v1/automation/_record-starts` answers which flows a proposed update of one record would start + + Clause-②: yes (widening) — one new public read: the route `POST /api/v1/automation/_record-starts` (`automation.listRecordUpdateStarts` in the API contract and in `@objectstack/client`); `@objectstack/spec/api` adds `RecordUpdateStartsRequestSchema`, `RecordUpdateStartSchema`, `RecordUpdateStartsResponseSchema` and their types; `@objectstack/spec/contracts` adds `RecordUpdateStartsInput` and the optional `IAutomationService.listRecordUpdateStarts`; `@objectstack/spec/automation` adds `recordChangeTriggerHookEvents` and `recordChangeTriggerFiresOnUpdate`; `_record-starts` joins the `/automation` domain's reserved position literals. Nothing existing is removed or re-typed. + Metadata-protocol: added — the three new `@objectstack/spec/api` schemas enter the `api` authorable-surface shard (10 keys: `RecordUpdateStart:name/label/startsApproval`, `RecordUpdateStartsRequest:object/recordId/changes`, `RecordUpdateStartsResponse:success/data/error/meta`); no flow or other metadata key is added + Skills-docs: none — no skill under `skills/**` teaches the console's stage confirms; `content/docs/automation/flows.mdx` gains the read in this change. + + The console's stage confirms now name the flows a move would start (objectstack#35928, ruling record 7073655354). They ask the server: + + - **Request** `{ object, recordId, changes }`; **response** `{ success, data: { flows: [{ name, label, startsApproval }] } }`. + - **Who is answered:** a signed-in caller who can read the record. The record is read as the caller through the `/data` door's own `get`, so a record they cannot read answers `404 RECORD_NOT_FOUND` exactly as an absent one, and the engine is never asked. Anonymous `401`; a malformed body `400 VALIDATION_FAILED`; a `changes` key that is not a declared field of the object `400 VALIDATION_FAILED` on that key, the engine never asked; a read that answers no record `404 RECORD_NOT_FOUND`; any query parameter `400 VALIDATION_ERROR`; an engine without the read `501`. + - **Which flows:** enabled `record_change` flows of the object, armed on their trigger, whose `triggerType` binds an update, and whose start condition holds for the record read with `changes` applied (`previous` is the record read). The condition goes through the engine's one start-condition gate, the one every run passes; the token grammar `@objectstack/trigger-record-change` binds hooks by moved into the spec (`recordChangeTriggerHookEvents`) so the preview reads the same rule, with no second copy. A condition that cannot be evaluated against the record is not listed. Hooks are never listed. + - **Per flow:** `name`, the authored `label` (a client translates it by name) and `startsApproval`, true for a flow holding an `approval` node (ADR-0019). No description, condition or nodes. +- fd462c5: feat(plugin-approvals): the record lock reads say whether a row is held by its own approval or by its master's + + Clause-②: yes (widening: both lock doors' published entry gains a field) + Metadata-protocol: none + + Both approval lock reads (`IApprovalService.getRecordLock` and `getRecordLocks`, and their REST doors `GET /api/v1/approvals/records/:object/:recordId/lock` and `POST /api/v1/approvals/records/:object/locks`) now answer a locked record with `lockSource`, which approval holds it: + + - `'record'`: a pending request on the record itself, from a node whose `lockRecord` is not `false`. Deleting the record still goes through and cancels the request. + - `'master'`: the record is a `master_detail` line of a record so held. The server refuses the line's insert, update and delete with `409 RECORD_LOCKED`. + + When both hold (a line with a pending request of its own, under a held master), the answer is `'master'`, because that is the delete the server refuses. An unlocked record still answers `{ locked: false }`, with no `lockSource`, and `null` (`404 RECORD_NOT_FOUND` at the single door, `locked: null` in the batch door) still means unreadable or missing, never told apart. No request id, node, approvers or `pending` flag is served. A list can now hide Delete on a line whose master is under approval instead of offering a delete the server refuses. + + The `IApprovalService` return types gain the optional `lockSource?: 'record' | 'master'`, so an implementation may omit it on a locked answer and still satisfies the contract; the REST doors then serve `{ locked: true }` without a kind. + + Which rows count as readable is unchanged at both doors. The two doors keep different readability anchors on purpose: the single door counts any returned row, the batch door only the row whose id is the asked id; aligning them would narrow a published answer (seat ruling 7152650156 on #37151). So an id the database matches only under another spelling (a different letter case, `07` for a numeric `7`) answers `null` in the batch door. The single-record door counts the row it finds as readable and judges it, as before: a line of a held master answers `'master'`, because that check reads the row found, but a record's own request is looked up by the id as asked, so a record held by its own request may answer `{ locked: false }` under another spelling. A client asking with the ids the server gave it gets the same answer from both doors. + + `@objectstack/client`: `client.approvals.getRecordLock` and `getRecordLocks` type the answer with the optional `lockSource?: 'record' | 'master'`. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/core@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/client/package.json b/packages/client/package.json index 7afe985a59c..acbe261a811 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/client", - "version": "18.6.0", + "version": "18.7.0", "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 94f927656f6..782cc45c691 100644 --- a/packages/cloud-connection/CHANGELOG.md +++ b/packages/cloud-connection/CHANGELOG.md @@ -1,5 +1,393 @@ # @objectstack/cloud-connection +## 18.7.0 + +### Minor Changes + +- 45ef94e: feat(spec): a base's paired `.custom` package declares an installed object's whole field-group and tab arrangement (`fieldGroups`, `relatedLists` on its object extension) + + Clause-②: yes (widening) + Metadata-protocol: added + + The record page is arranged in three layers. The package that owns an object declares its `fieldGroups` and `relatedLists`; a package that extends it places what it brings with `place`; and now the environment, in the base's paired `.custom` package, may declare the whole arrangement over both: + + ```ts + objectExtensions: [{ + extend: 'crm_lead', + fields: { region__c: { type: 'text', label: 'Region' } }, + // The whole field arrangement: the two groups swapped, `status` moved. + fieldGroups: [ + { key: 'contact', label: 'Contact', fields: ['email', 'phone', 'status'] }, + { key: 'basic', label: 'Basics', fields: ['name', 'company', 'region__c'] }, + ], + // The whole tab list: events before tasks, the notes tab hidden. + relatedLists: ['crm_event', 'crm_task', { list: 'crm_note', hidden: true }], + }], + ``` + + - **Two new keys on an object extension, written only by a `.custom` package.** `fieldGroups` takes the shape an object's `fieldGroups` takes and may list any field the object has, whoever declares it; a group's `relatedList` may place any body table. `relatedLists` takes an object's entry shape (a bare name, the three built-in tab names, or `{ list, label?, columns? }`) plus `hidden`. + - **Each key replaces, whole.** The registry applies it last: the owner's arrangement, then every extension's `place`, then the `.custom` key in place of the result. Nothing is merged entry by entry. A key the extension does not write keeps the owner's arrangement with the placements, so writing only `relatedLists` leaves the field groups as they were. + - **A field the arrangement does not list is not dropped.** It shows after the last group, whichever group its owner or another extension had put it in. A group that lists `fields` shows exactly its list. + - **A tab the arrangement does not name still shows, after the listed ones.** This is the reverse of an object's own `relatedLists`, where leaving a list out hides it. Hiding is written: `{ list: 'crm_note', hidden: true }` hides that list's tab, whichever package brings it. `hidden` is accepted only here; an object's own `relatedLists` refuses it and says where it belongs. A list the owner hides by leaving it out of its own `relatedLists` stays hidden until the arrangement names it. The built-in tabs keep their own rules and are not hidden here. + - **A package that is not a `.custom` package writing either key is refused**, once at each door: saving or publishing the extension, `os validate` and `os build`, and installing the package (`VALIDATION_ERROR`; 400 at save and publish, 422 at install). Each refusal names the key, the object and the package and prescribes `place`. An extension that reaches the registry past those doors is not applied, and the boot log says so. Within one extension, a `place` entry beside the arrangement key that would replace it is refused at parse. + - **Only the object's own pair is served.** The pair is the `.custom` package of the App the object belongs to: for an object a module of an App owns, the App's pair. A `.custom` package an earlier version created for the module itself is still read while it is installed; where both write a key, the App's pair is served. The choice is by role, never by load order. What any other `.custom` package writes under these keys is not refused at the doors; the registry does not apply it, alone or beside the pair, and the boot log names the package and the object. + - **One merge, every reader.** The record page, the forms, the preview and Studio read the served object, so they show one arrangement. Removing a key, or uninstalling or disabling the `.custom` package, serves the owner's arrangement with the placements again. + - **Served reads say what the reader cannot derive.** Where a `.custom` package writes `relatedLists`, the served object carries the read decoration `_relatedListsArrangement` (`{ packageId, hidden, unlisted }`): the lists the environment hides, and whether an unlisted list shows. The record page's tab reader and the default page synthesis read it; with no decoration served they answer exactly as before. A reader's own tab order (kept per user) is still laid over this list, and a tab the environment hides is not offered to them. + - **A group the arrangement brings is a translation anchor.** `os validate`'s translation-reference rule reads an extension's `fieldGroups` too, so a bundle's `_sections` key for a group the `.custom` arrangement declares is not reported as naming nothing. + - **`hidden` on a field is not a display property a `fieldPatches` entry may set.** A hidden field is also left out of the search index and out of a form's required check, so the display whitelist is not widened. To keep a vendor field off the record page and the forms, list it in a group whose `visibleWhen` is false. That is presentation only, not access control: the field stays readable and writable through the API. Do not use it for a `required` field that has no default: the create form no longer shows the field while the save still requires it, so the form cannot be submitted. + + What to check in an app: nothing changes until a `.custom` package writes one of the two keys. A package other than a `.custom` one that wrote `fieldGroups` or `relatedLists` on an extension was refused at parse. It is now refused by the save, publish, install, `os validate` and `os build` doors, with the same prescription. Where none of those doors judges it (for example a code-defined stack that boots without `os validate` or `os build`, or a stack that names no package id), the key is not applied and the boot log names it, where the parse refused it before. + +### Patch Changes + +- f796089: fix(spec,metadata-protocol)!: retire the seed modes `insert` and `replace`, which inserted every record again on each replay + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: follow-up #34798 + + <!-- adr-0087: registered seed-mode-insert-replace-retired --> + + **BREAKING** for a seed dataset authored with `mode: 'insert'` or `mode: 'replace'`. A seed is replayed on every single-tenant boot, every package install or upgrade and every publish, and neither mode matched an existing row, so every replay inserted each record again: an un-walled install went from 1 to 2 to 3 rows over three boots, a person reference the first load had to leave empty stayed empty on the first row while only the newest copy named the person, and with a unique field the replay insert was refused and the one row stayed empty. `replace` expected the caller to clear the table first, and no load path ever clears one. + + What moves (each line FROM → TO): + + - `SeedSchema.mode` / `SeedMode` (`@objectstack/spec/data`; `defineSeed`, `defineStack({ data })`, a `seed` metadata item, a package body's seed): FROM `insert` / `update` / `upsert` / `replace` / `ignore` TO `update` / `upsert` / `ignore` (default `ignore`, unchanged). `mode: 'insert'` or `mode: 'replace'` fails parse with a prescription naming the fix; the save and publish doors refuse it with the same message. The retired pair is exported as `RETIRED_SEED_MODE_VALUES` (`@objectstack/spec/data`): it is derived from the parse refusal's own table, and the loader and the artifact door read it. + - a stored dataset that still declares one, replayed by the boot seed, the per-organization replay, the dev hot reload or a package install, upgrade or sample-data reseed (`SeedLoaderService.loadStored`, `@objectstack/metadata-protocol`): FROM inserted again on every load TO refused alone — it writes nothing, the load result carries one error with the prescription and `success: false`, and every other dataset loads. `SeedLoaderService.load()` and `validate()` refuse the dataset the same way when handed one unparsed, so a dry run reports what a real load does. + - a compiled artifact (`objectstack.json`) carrying such a dataset, booted by `os serve` / `os start` / `os dev` (the artifact door, `MetadataPlugin`, `@objectstack/metadata`): the door parses the artifact without that dataset and hands it back to the seed load, which refuses it alone; the door logs a warning naming the dataset and the fix. Everything else in the artifact registers and boots. + - `os diff` (`@objectstack/cli`) on a dataset declaring either mode: FROM "a replay inserts these again" TO a note that the mode is retired, that a replay refuses the dataset, and what to declare. + - the advisory lint rule `seed-insert-mode-duplicates-on-replay` (`validateSeedReplaySafety`, `@objectstack/lint`): FROM a warning on `mode: 'insert'` TO removed; the schema refusal does its job for both modes. The author-time rule count `os validate` / `os build` print drops by one (71 to 70 at this release). + - the save door's and the loader's hint for a key no record carries: FROM "or use mode 'insert' for rows with no natural key" TO a list of fields when no single field names a row, or `'id'` when the records carry their own ids. + + The fix: declare which field identifies a row and drop the mode (or declare `upsert` for reference data the package keeps current). Set `externalId` to the field that names a row, to a list of fields when no single field does (a junction table's `['team', 'project']`), or to `'id'` when the records carry their own ids. Rebuild the package, and reinstall it where it was installed with `os package install`, so the stored body carries the new declaration. + + No conversion is made, at load, at save or by a migration (ADR-0087 D3, entry `seed-mode-insert-replace-retired`): a keyed mode needs the field that identifies a row, and only the author knows it. Rows earlier replays duplicated are data and are left as they are. + + Unchanged: `ignore`, `upsert` and `update` datasets load byte-identically. +- c05a8a0: fix(cloud-connection): a dry-run re-install answers a refused installed copy or incoming package with a 422, never a 500 + + Clause-②: no + Metadata-protocol: none + + `POST /api/v1/marketplace/install-local` with `dryRun: true` compares the installed copy (the body the last install stored) with the incoming version. When today's artifact resolver refused either body (for example, a stored copy that still carries a retired key such as a bare `indexes[].unique: true`), the dry run threw, and the transport answered `500 INTERNAL_ERROR`. It now answers the way the real install already does: the refusal's own `422` and code (`INVALID_ARTIFACT_PACKAGE_ENTRY` and its siblings). When the stored copy is refused, the message names that copy and the way out: uninstall the package, then install the new version. When the incoming package is refused, the message names the incoming package. Nothing is planned or written. A dry run whose two bodies both resolve answers the plan exactly as before. +- 8596c80: fix(runtime, cloud-connection): an upgrade replaces the package's seed datasets on the shared replay list + + Clause-②: yes (widening) + Metadata-protocol: none + + The shared `seed-datasets` list that per-organization seed replay reads was append-only. After a package was upgraded in a running process, the superseded version's datasets stayed on the list until a restart, so every organization founded in between replayed the old and the new version's seed sets. When the upgrade changed an object's `fallback: true` set, the two marked sets refused that object's fallback choice, and a dataset declaring `dependsOn` that object refused the whole load for an organization whose locale no set lists. + + `mergeSeedDatasets(ctx, datasets, owner?)` takes an optional `owner`. Given, the owner's earlier entries are replaced on the same live array (in their place) instead of kept beside the new ones; an empty `datasets` takes them off. Omitted, the datasets are appended as before, which is what a config app's boot merge still does. The install-local door merges under the package id on install, upgrade, reinstall, reseed and rehydrate, so the list holds the installed version only: reinstalling the same version adds no duplicate, and a version that ships no seed data takes its predecessor's datasets off the list. +- edc5355: fix(cloud-connection): an uninstall takes the package's seed datasets off the shared replay list + + Clause-②: no + Metadata-protocol: none + + Uninstalling a package through the install-local door in a running process left its entries on the shared `seed-datasets` list that per-organization seed replay reads, so every organization founded before the next restart replayed the removed package's seed sets, over objects that may no longer exist. The uninstall now merges an empty list under the package id once the running kernel has withdrawn the package (the owner-keyed replace an upgrade already uses), so the list matches the installed set without a restart. A composed bundle's entry withdraws the datasets it merged for all of its package bodies; another package's datasets are kept. An uninstall the registry refuses, or whose withdrawal from the running kernel is refused, leaves the list as it was: the package stays loaded until the restart, and its datasets with it. +- 2211bb1: fix(cloud-connection): a managed install or upgrade fills the stored computed fields it makes live + + Clause-②: no + Metadata-protocol: none + + A package version that adds a stored computed field (a non-`formula` field declaring `expression`), changes one's expression, stored type or scale, or turns a `formula` field into one used to leave every existing row `NULL` (or holding the old value) after `os package install` / `POST /api/v1/marketplace/install-local`: the metadata doors filled such a change, the install door did not, and a boot never fills. On a hosted tenant nothing could fill them. + + The managed install door now does what the metadata doors do: it captures the stored computed fields of every object the version contributes to (its own objects and the objects its extensions extend, every unit of a composed artifact) before it registers anything, and after its schema sync fills each field the version changed — every existing row, every organization, keeping each row's `updated_at` — through the data engine's own walk (the one `os migrate stored-expressions --changed --apply` runs). Each field is reported on the answer's new `advisories` (omitted when there is nothing to report), with the metadata doors' rule ids: `stored-expression-filled`, or `stored-expression-fill-incomplete` naming what is left and the command that fills it. A version that changes no stored computed field, a refused install and a fresh install over new tables write no row and add no key to the answer. The fill never fails the install. +- 70194ff: feat(audit): a record's activity stream shows each changed field's old → new values by default, with a new `fieldHistory` off switch on the object and the field, and a reader is served only the changes of fields they may read + + Clause-②: yes (widening) + Metadata-protocol: semantic + + A record's activity stream now shows `Field: old → new` for every changed field, on every object, unless the object or the field turns it off. Before, values showed only for a field that declared `trackHistory: true`. Every other change was named by its field label alone. + + - **New `enable.fieldHistory`, with no default.** Absent: values show. `false`: off for the object, and a change names its fields only. It has no default so that a parsed body never writes one. A built artifact or a stored definition therefore gets values when it is upgraded, with no rebuild. + - **`enable.trackHistory: false` alone no longer turns values off.** The flag keeps its meaning: with `true`, the default record page shows the compliance ledger's field changes to a reader the ledger serves, and the derived `history` API verb is served. To keep an object's activity free of values, write `enable: { fieldHistory: false }`. Every platform object that wrote `trackHistory: false` now also writes `fieldHistory: false`. + - **New field `fieldHistory`, with no default: the field's off switch.** Absent shows the values, `false` names the change without them, `true` shows them (a media or JSON type included). Under an object with `enable.fieldHistory: false`, values stay off whatever a field says. + - **Field `trackHistory: false` no longer means anything: it reads like absent, so the values show.** The field designer wrote it on every save while the key meant nothing, so a stored `false` cannot be told from a choice. `trackHistory: true` keeps one job: it opts a media or JSON field in. A credential field (`secret`, and `password` off better-auth objects) never shows values, because both sides are the same mask. A media or structured-JSON field (`image`, `file`, `avatar`, `video`, `audio`, `signature`, `composite`, `repeater`, `record`, `location`, `address`, `code`, `json`, `vector`) shows them only with an explicit `true` (`fieldHistory` or `trackHistory`). + - **The new field key is classified where every `FieldSchema` key is.** The SQL driver counts `fieldHistory` as a presentation key, so creating a column never reads it. The field-level-security scrub keeps it as written, because a boolean names no field. + - **Who reads a value:** the field-change code (`metadata.summary_message`) is now served to readers. It is narrowed change by change with the same field answer as `metadata.old` and `metadata.new`. A reference field's change is kept only for a reader served the referenced record's title. When a reader is not served some of a summary's changes, the summary is rebuilt from the changes they are served instead of being dropped whole. The full audit ledger is not widened. + - **A long value no longer fails the activity insert.** The stored summary is fitted to `sys_activity.summary`'s `maxLength` (500): each side is cut first, then trailing changes are left out. The code keeps every change, with each side capped at 1,000 characters. + + To keep an object's activity free of values, set `enable: { fieldHistory: false }` on it. For one field, set `fieldHistory: false` on that field; `trackHistory: false` does not turn values off. +- a3ee862: fix(cloud-connection): an installed package answers its declared hook and action refusals in the caller's language + + Clause-②: no + Metadata-protocol: none + + A package installed into an environment (`POST /api/v1/marketplace/install-local`, and the same package bound again when the server restarts) now answers its declared hook and action refusals (`refusals`, with `reasons` and `params`) in the caller's language, from the translations the package ships under `hooks.HOOK.refusals.CODE[.reasons.REASON].message` and `objects.OBJECT._actions.ACTION.refusals.CODE[.reasons.REASON].message`. A `zh-Hans` caller reads the `zh-CN` pack, as on a boot. Before, the install door bound the package's body hooks and script actions without the `i18n` service, so every caller read the declared sentence on every door that runs them (`POST /api/v1/batch`, a record update, an action), while the same package booted as an app (`objectstack dev`, `objectstack start`) answered in the caller's language. The refusal body, its code and its status do not change. + + The same binding now also hands an installed package's bodies the kernel's services, as a boot does: `ctx.text` answers in the organization's language, and `ctx.email.send` and `ctx.activity.append` reach the email and audit services. + + `@objectstack/runtime` exports `hookRefusalI18nReader`, the `i18n` reader both binder doors pass to `bindAppArtifactHandlers`. +- c8d4b90: feat(console): Setup gets one Packages entry, the package list's administration face; the Installed Apps entry retires + + Clause-②: no + Metadata-protocol: none + + The maintainer's ruling on objectstack#36834 amends ruling 甲 of #25098: Setup lists what is installed, with the administration actions only, and the marketplace-only "Installed Apps" entry merges into it. + + - **Setup → Apps → Packages (`nav_packages`).** `@objectstack/platform-objects` contributes one entry to Setup's `group_apps`, gated on `manage_platform_settings` like Setup's other administration entries. It opens the console's `developer:packages` page with `params: { face: 'admin' }`, so the URL carries `?face=admin`. Its label is translated in every locale the Setup bundle carries. + - **The page's administration face.** With `?face=admin`, the Packages page lists every package of every source, with modules folded under their app. It shows the Name, Version, Status, Source and Update columns, plus a Source filter (All, Code, Marketplace, Authored) that writes `?source=`. Its only header action is New Package, and a package created there opens in Studio, on the address the Studio landing's package card opens. The detail sheet offers View info, Disable / Enable and Delete (keeping the choice to keep the data), plus "Open in Studio" on an authored package. Import, Edit, Publish, Revert, Export, Duplicate, Adopt loose items and the pending changes' Publish and Discard are not offered there. An unknown or repeated `face` value is refused by name. With no `face`, the page is unchanged: Studio's "All packages" link and each package card's Manage keep every action. + - **Installed Apps retires.** `MARKETPLACE_INSTALLED_UI_BUNDLE` (`@objectstack/cloud-connection`) no longer carries `nav_marketplace_installed`. The bundle stays exported under its id, with an empty `navigationContributions`, so a host that imports and registers it keeps working. The entry's labels are removed from the Setup translation bundle, and its id joins the dead-key tombstone. A bookmarked `/apps/setup/component/developer/packages?source=marketplace`, which the marketplace page's "Installed" button also opens, still shows the list filtered to marketplace installs, on the administration face. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [c6558d0] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [4c2d8d7] +- Updated dependencies [cc03bdc] +- Updated dependencies [ef39b2c] +- Updated dependencies [93fa4f9] +- Updated dependencies [22af9e6] +- Updated dependencies [a998964] +- Updated dependencies [1c05546] +- Updated dependencies [9fea316] +- Updated dependencies [cceb5c6] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [e6e5224] +- Updated dependencies [94a2d8b] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [4db08d5] +- Updated dependencies [8e46424] +- Updated dependencies [d5ece3e] +- Updated dependencies [2d33205] +- Updated dependencies [2d33205] +- Updated dependencies [78f3ab2] +- Updated dependencies [3c038eb] +- Updated dependencies [f5cfdd2] +- Updated dependencies [f4dbcc2] +- Updated dependencies [1950f07] +- Updated dependencies [d17adf5] +- Updated dependencies [9c29d73] +- Updated dependencies [35c6331] +- Updated dependencies [de395b4] +- Updated dependencies [f848e37] +- Updated dependencies [fe3ebc8] +- Updated dependencies [bf69cb4] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [96faf44] +- Updated dependencies [2df9691] +- Updated dependencies [961f474] +- Updated dependencies [a6cf988] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8596c80] +- Updated dependencies [ec227fc] +- Updated dependencies [8856afc] +- Updated dependencies [c480f33] +- Updated dependencies [9062756] +- Updated dependencies [65b67be] +- Updated dependencies [1caee8c] +- Updated dependencies [dbb2f68] +- Updated dependencies [cdb327f] +- Updated dependencies [5cd2b54] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [43639a6] +- Updated dependencies [467b13b] +- Updated dependencies [b863d2b] +- Updated dependencies [ee40658] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [8925d5b] +- Updated dependencies [78fd762] +- Updated dependencies [a35187e] +- Updated dependencies [c321914] +- Updated dependencies [07b1754] +- Updated dependencies [61722e9] +- Updated dependencies [37f7814] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [6d0089c] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [819c067] +- Updated dependencies [4890cd0] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [c59ee99] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [fcbebf2] +- Updated dependencies [986a0f2] +- Updated dependencies [c99156e] +- Updated dependencies [ea58563] +- Updated dependencies [c6b07c2] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [50d6da8] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [7dd1a2f] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [886ba45] +- Updated dependencies [c9b0a23] +- Updated dependencies [a8126d2] +- Updated dependencies [c4d6acc] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [17ed9e7] +- Updated dependencies [fa30414] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [0d4f190] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [ddceb22] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [76bff41] +- Updated dependencies [6bc775f] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [ac43336] +- Updated dependencies [a3ee862] +- Updated dependencies [7501d0c] +- Updated dependencies [756df0a] +- Updated dependencies [45ef94e] +- Updated dependencies [3f568c1] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [e343ab7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [6cfb782] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [9c57bd2] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [c448c61] +- Updated dependencies [372ce7c] +- Updated dependencies [c059e60] +- Updated dependencies [97f3420] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [4101f1f] +- Updated dependencies [695b9db] +- Updated dependencies [d2bc1ff] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/runtime@18.7.0 + - @objectstack/objectql@18.7.0 + - @objectstack/metadata-protocol@18.7.0 + - @objectstack/types@18.7.0 + - @objectstack/rest@18.7.0 + - @objectstack/core@18.7.0 + - @objectstack/metadata-core@18.7.0 + - @objectstack/observability@18.7.0 + - @objectstack/service-cluster@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/cloud-connection/package.json b/packages/cloud-connection/package.json index 424f711619b..4dc3b0362e5 100644 --- a/packages/cloud-connection/package.json +++ b/packages/cloud-connection/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/cloud-connection", - "version": "18.6.0", + "version": "18.7.0", "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 2ef088acbc7..3c17cd2e605 100644 --- a/packages/connectors/connector-imap/CHANGELOG.md +++ b/packages/connectors/connector-imap/CHANGELOG.md @@ -1,5 +1,9 @@ # @objectstack/connector-imap +## 18.7.0 + +No changes in this release. + ## 18.6.0 No changes in this release. diff --git a/packages/connectors/connector-imap/package.json b/packages/connectors/connector-imap/package.json index 0d340361501..b093b66eba5 100644 --- a/packages/connectors/connector-imap/package.json +++ b/packages/connectors/connector-imap/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/connector-imap", - "version": "18.6.0", + "version": "18.7.0", "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 312087ab6e1..e9f4345ec85 100644 --- a/packages/connectors/connector-mcp/CHANGELOG.md +++ b/packages/connectors/connector-mcp/CHANGELOG.md @@ -1,5 +1,185 @@ # @objectstack/connector-mcp +## 18.7.0 + +### Patch Changes + +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [9c57bd2] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [c059e60] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/types@18.7.0 + - @objectstack/core@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/connectors/connector-mcp/package.json b/packages/connectors/connector-mcp/package.json index 65104fcc002..9abf831bf71 100644 --- a/packages/connectors/connector-mcp/package.json +++ b/packages/connectors/connector-mcp/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/connector-mcp", - "version": "18.6.0", + "version": "18.7.0", "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 fcf7c0ae3d9..7a932afaa53 100644 --- a/packages/connectors/connector-openapi/CHANGELOG.md +++ b/packages/connectors/connector-openapi/CHANGELOG.md @@ -1,5 +1,185 @@ # @objectstack/connector-openapi +## 18.7.0 + +### Patch Changes + +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [9c57bd2] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [c059e60] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/types@18.7.0 + - @objectstack/core@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/connectors/connector-openapi/package.json b/packages/connectors/connector-openapi/package.json index 2f8cd44d379..b41ca287a6e 100644 --- a/packages/connectors/connector-openapi/package.json +++ b/packages/connectors/connector-openapi/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/connector-openapi", - "version": "18.6.0", + "version": "18.7.0", "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 46846dd5b64..edcbccd848b 100644 --- a/packages/connectors/connector-rest/CHANGELOG.md +++ b/packages/connectors/connector-rest/CHANGELOG.md @@ -1,5 +1,185 @@ # @objectstack/connector-rest +## 18.7.0 + +### Patch Changes + +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [9c57bd2] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [c059e60] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/types@18.7.0 + - @objectstack/core@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/connectors/connector-rest/package.json b/packages/connectors/connector-rest/package.json index 434bb3b8b3d..6ebdb76c944 100644 --- a/packages/connectors/connector-rest/package.json +++ b/packages/connectors/connector-rest/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/connector-rest", - "version": "18.6.0", + "version": "18.7.0", "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 d4ebdb70a73..6c1f929458a 100644 --- a/packages/connectors/connector-slack/CHANGELOG.md +++ b/packages/connectors/connector-slack/CHANGELOG.md @@ -1,5 +1,202 @@ # @objectstack/connector-slack +## 18.7.0 + +### Patch Changes + +- 8e46424: Clause-②: yes (widening) + Metadata-protocol: added + + feat(messaging): Slack DM delivery — a `slack` channel, a per-person link store, approval requests by DM + + An organization can now receive notifications in Slack, as direct messages to each person who connected their own Slack user (ADR-0013 addendum of 2026-11-19, step 2 of #34730). + + - **The install.** An organization administrator (`setup.write` in their current organization) installs the organization's own Slack app with `PUT /api/v1/messaging/slack/account` `{ token }`. Slack proves the bot token (`auth.test`) before it is saved. The app's bot token needs the scopes `chat:write`, `im:write`, `users:read` and `users:read.email` (the methods called are `auth.test`, `users.lookupByEmail`, `conversations.open` and `chat.postMessage`); `auth.test` does not check scopes, so an app without `users:read.email` installs and every proposal then answers 502. The token is kept in `sys_channel_account.bot_token`, a `secret` field: encrypted at rest by the host's `ICryptoProvider`, masked on every read, never returned by any route, and read only by the server when it calls Slack. `GET` and `DELETE` on the same route read and remove the install. + - **A person's link.** `POST /api/v1/messaging/me/slack-link/proposal` proposes a link by the person's email (Slack `users.lookupByEmail`); it delivers nothing until the person confirms it with `POST /api/v1/messaging/me/slack-link/confirm`. A Slack link is proposed only for a verified email and names no one before it is confirmed. `GET` and `DELETE /api/v1/messaging/me/slack-link` read and remove it. An administrator lists links with `GET /api/v1/messaging/slack/links` and removes one with `DELETE /api/v1/messaging/slack/links/:id`; the person is told by inbox and e-mail (topic `messaging.slack_link_removed`) and may link again. A link goes when the person is deleted, banned, or leaves the organization. Links are `sys_channel_user_link` rows; every write names who acted, so the platform's write audit records each one. + - **The channel, only where connector-slack is composed.** `slack` is registered beside inbox, email, sms and push only on a composition where connector-slack's `slack` client service resolves at boot: `ConnectorSlackPlugin` now registers that service, which sends with a caller-held token. On such a composition, and only there, the `/automation` save doors accept `slack` on a `notify` node, and `GET /api/v1/messaging/preference-options` and `GET /api/v1/messaging/me/preferences` list `slack` as a channel. A `notify` node naming `slack` delivers only where connector-slack is composed, the organization installed Slack and the recipient confirmed a link. Without connector-slack, those doors answer as before: a `notify` node naming `slack` is refused 400, and neither preference door lists it. It sends `conversations.open` then `chat.postMessage` with the notification's title linked to its deep link, made absolute under `OS_AUTH_URL` / `OS_BASE_URL`. Preferences, digest and quiet hours apply as on every channel. A recipient with no confirmed link is skipped before any delivery row is written, so nothing is dead-lettered for them; a refused token stops delivery on that install until an administrator sets it again; a rate limit is retried. + - **Approval requests.** `approval.requested` also asks for `slack`, beside inbox and e-mail, only while the `slack` channel is registered and mounted (connector-slack composed). + - `MessagingChannel` gains an optional `reachableRecipients(ctx, { organizationId, recipients })`, consulted once per channel per emit after preferences. A channel without it reaches every recipient, as before. + - `PLATFORM_OBJECTS_BY_PACKAGE['service-messaging']` lists `sys_channel_account` and `sys_channel_user_link`, and the organization ownership inventory gives both a row. +- 85dde2d: feat(connector-slack): `ConnectorSlackPlugin`'s static bot `token` is optional + + Clause-②: yes (widening) + Metadata-protocol: none + + A deployment that only delivers Slack DMs with each organization's own token now composes the plugin without a placeholder: `new ConnectorSlackPlugin()` or `new ConnectorSlackPlugin({ fetchImpl })` registers the `slack` client service for caller-held tokens and skips the flow `connector_action` connector, logging that once at boot. An empty-string `token` reads the same as an absent one. With a token, behaviour is unchanged: the `slack` flow connector is registered exactly as before. + + `ConnectorSlackPluginOptions` is now `SlackConnectorOptions` without `token`, plus `token?: string`; the constructor's options argument is optional. `SlackConnectorOptions.token` and `createSlackConnector` are unchanged (the connector still needs a token). +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/core@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/connectors/connector-slack/package.json b/packages/connectors/connector-slack/package.json index 29d49c6d003..6e6504714a4 100644 --- a/packages/connectors/connector-slack/package.json +++ b/packages/connectors/connector-slack/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/connector-slack", - "version": "18.6.0", + "version": "18.7.0", "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 3ab316688fc..a3c28c3c899 100644 --- a/packages/console/CHANGELOG.md +++ b/packages/console/CHANGELOG.md @@ -1,5 +1,37 @@ # @objectstack/console +## 18.7.0 + +### Patch Changes + +- d25d912: fix(console): the approvals inbox keeps its tab, filters, search and sort across a request's page and Back + + Clause-②: no + Metadata-protocol: none + + Opening a request from the approvals inbox and pressing Back used to bring the inbox back on "My Pending" with every filter cleared: the tab, the status, process and object filters, the search text and the sort were held in component state only, and the inbox is rebuilt when the reader comes back. Someone working through "All" filtered to "Recalled" had to pick the tab and rebuild the filters after every request. + + They now ride the inbox's address as page-scoped params: `scope` (the tab: `submitted` or `all`), `status`, `process`, `object`, `q` (the search text) and `sort` (`oldest` or `amount`). So Back, a reload and a copied link all reopen the inbox as the reader left it. + + - A value at its default is left out, so an untouched inbox keeps a bare address. + - Every change replaces the current history entry instead of adding one, so Back leaves the inbox rather than stepping through filter changes. + - The search text reaches the address after the same short pause the server search already waited for. A search typed and opened at once is written before the request opens, so Back still returns to it. + - A value the inbox does not offer (an unknown tab, sort or status, or a status on "My Pending", which has no status filter) reads as the default. A process or object the address names is checked once, when the first requests arrive, and is dropped only if those requests are the whole list (on "My Pending", or when the first page holds every request) and none of them carries it. On "Submitted by me" and "All", a value past the first page is kept and shown in its dropdown, so a filter picked after loading more pages survives Back, a reload and a copied link. + - Switching tabs still clears the filters, search and sort, now in the address too. Other params are kept. + - The `?request=` notification link still opens that request. + + The tab rides `scope`, not `tab`, because `tab` is the console's reserved record-page tab param. Nothing to migrate. +- 93bd459: feat(console): an app's documentation pages draw in the app shell from 768 px up + + Clause-②: no + Metadata-protocol: none + + From 768 px up every app page lost the top bar and keeps the app menu, search, notifications and account in the sidebar. An app's documentation pages (`/apps/APP/docs`, a book, a flat doc link, an article) were the one exception: they kept the top bar at every width and mounted no sidebar. They now draw like every other app page there: no top bar, the resident sidebar with its usual head (the app-name menu, collapse, search, notifications) and foot (the account), and the page header's button group (assistant and help) at the top right. + + The documentation still has one navigation, its own: the sidebar's body carries the docs column (「← Back to APP」, every book of the app with the current one open, a title filter and 「All documentation」) in place of the app's menu. The reader no longer draws that column inside the page there. The app's other docs pages (its docs index, a book with no articles, a book or doc that is not found) carry the same column in the sidebar instead of a back link above the page. + + Unchanged: every docs address resolves to the same page as before, and a phone keeps its app bar, no sidebar and the in-page column. The `/docs` portal is not changed by this release. Nothing to migrate. + ## 18.6.0 ### Patch Changes diff --git a/packages/console/package.json b/packages/console/package.json index 82c030f1755..57792b5b833 100644 --- a/packages/console/package.json +++ b/packages/console/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/console", - "version": "18.6.0", + "version": "18.7.0", "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 01d8ce727ac..612c6b10792 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,532 @@ # @objectstack/core +## 18.7.0 + +### Minor Changes + +- 61722e9: feat: Change Owner cascade — a relationship declares `transferBehavior: 'cascade'`, and the Change Owner dialog offers it as a tick + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: follow-up #36713 + + A Change Owner can now move related records along with the record, relationship by relationship. + + - **The declaration.** A `lookup` or `master_detail` field takes `transferBehavior: 'none' | 'cascade'`, beside `deleteBehavior` (omitted means `'none'`). `'cascade'` on the child's reference field to a parent says: when the parent's owner changes, the child records that point at it and are owned by the parent's previous owner may move to the new owner too. No other child records move; there is no filter key. + - **Refused where it could never act.** The key is refused on any other field type, `'cascade'` is refused on a reference to a `sys_` object and on a multi-value reference (`multiple: true`), and `'cascade'` is refused on a field of an object that does not offer Change Owner itself: one that is not structurally eligible (no reassignable owner), a `controlled_by_parent` detail (its access already follows its master), or one whose `userActions.transfer` is off. Each refusal names the field and the fix. + - **The request.** `POST /api/v1/data/:object/:id/change-owner` and `POST /api/v1/data/:object/change-owner` take an optional `cascade: [{ object, field }]` naming the relationships to move along (`data.changeOwner` / `data.changeOwnerMany` in `@objectstack/client`). A relationship that does not declare `'cascade'`, or whose child does not offer Change Owner, is refused `400 VALIDATION_ERROR` before anything is written; so is a cascade with a queue target. Each cascaded record is updated as the caller, so it needs the caller's own transfer grant on the child object. Each relationship's outcome in the answer's `cascade[]` lists every record the caller's write refused, with its id, code and sentence: a related record whose `owner_id` is locked on it (read-only, or under a `readonlyWhen` that holds) is refused `FIELD_NOT_ACCESSIBLE` and keeps its owner, as the record itself would be, while the record's own move stands. One call moves at most 500 related records; the records past that limit are counted in `remaining`, still with the previous owner, not listed. When a relationship's records could not be read, its outcome carries `readFailure` and none of them moved. + - **The candidates.** `GET /api/v1/data/:object/change-owner/cascades` (`data.changeOwnerCascades`) lists the relationships declared to an object whose child offers Change Owner. A child whose declared API exposure does not serve `update` is left out, and so is a child of a disabled package. + - **The Studio.** The field form and the object form's field rows offer `transferBehavior` beside `deleteBehavior`, on `lookup` and `master_detail` fields; the row's label and help text ship in the metadata-forms locale packs of `@objectstack/platform-objects`. + - **The dialog.** For a person target, the Change Owner dialog lists those relationships on which the explain engine allows the caller the `transfer` operation, one tick each, sends the ticked ones, and draws each relationship's outcome, every record it did not move included. + + A plain `owner_id` update is unchanged: the declaration is read only by the Change Owner action. +- bfd1049: fix(core, console): a banned user's hand-over follows each object's Change Owner switch, and the ban dialog says why a record stays + + Clause-②: no + Metadata-protocol: semantic + + An object's Change Owner switch (`userActions.transfer`) now also decides whether the offboarding hand-over (`POST /api/v1/security/users/USER_ID/assigned-work/transfer`) moves the object's `owner_id`, and how the count (`GET /api/v1/security/users/USER_ID/assigned-work`) reports it. The hand-over reads the same resolution the Change Owner action refuses by (`resolveUserActionTransfer`), so the two never disagree: + + - An object that turns the switch off keeps its records' owners where they are. Before, the hand-over moved them. + - A `controlled_by_parent` detail that leaves the switch out keeps its owner (the default is off there), as before. A detail that sets `userActions.transfer: true` now has its owner handed over like any other object. Before, every detail's owner was skipped. + - The object's own user fields (an approver, an assignee) are handed over whatever the switch says. + + A kept owner is still counted. Before, a detail's owner was left out of the count; now its row answers `transferable: false` with `reason: 'transfer_off'`. A multi-valued user field answers `reason: 'multi_valued'`. `reason` is a new optional member of each `objects[]` row in `security.assignedWork.count`'s answer (`UserAssignedWorkSummary` in `@objectstack/client`, `UserAssignedWorkHoldReason` in `@objectstack/core`). It is present exactly when `transferable` is false. + + The ban dialog words each kept row by its reason. A kept owner reads "Not handed over: this object keeps the owner of each record (Change Owner is off for it)." (zh: 不会交接:该对象的记录负责人保持不变(该对象已关闭“更改负责人”)。). A multi-valued row keeps its own sentence ("Lists several people, so it cannot be handed over here."), and a kept owner never shows it. The new `console.assignedWork.ownerKept` key is in all eleven UI locales. + + To keep the old hand-over of an object you switched off, set `userActions.transfer` back on for it. Before this change the switch gated only the Change Owner action; it now gates that action and the hand-over, and nothing else: a plain `owner_id` write (an import, a hook, a `PATCH`) still needs only the transfer grant. +- 78437e2: feat(security): the read-only `viewAllFields` object-permission bit + + Clause-②: yes (widening) — @objectstack/spec adds the optional `viewAllFields` key to `ObjectPermissionSchema` (and so to the wire `EffectiveObjectPermissionSchema`) and the optional `viewAllFields` column to `AccessMatrixEntrySchema`; nothing removed or narrowed + Metadata-protocol: added + + A permission set can now say "this role reads every field of this object" on its own: `objects: { crm_account: { allowRead: true, viewAllFields: true } }`. The bit casts a read vote on every field of the object, fields added later included, and never an edit vote: an edit still comes from the default (a field no set names follows the object grant) or from an explicit `editable: true` field row. Inside one set the specific row beats the general bit, so a set's own `readable: false` row on a field keeps that field hidden for that set. It is allowed on the `'*'` wildcard entry. It is a field vote only: it grants no object access and widens no record, so pair it with `allowRead`, and use `viewAllRecords` for records. + + Nothing behaves differently yet. Today `viewAllRecords` and `modifyAllRecords` also vote on every field, so on a set that carries either bit the new key duplicates a vote already cast. The built-in `organization_admin` set carries it on its wildcard entry, so its holders keep their field visibility when a later major release stops those two bits voting on fields; the wall-less `organization_admin_no_bypass` variant drops it together with the two record bits, as it never held that field vote. + + Every reader of the super-user bits reads the new one too: + + - both field merges (`PermissionEvaluator.getFieldPermissions` and the `fields` slot of `/auth/me/permissions`) apply it through the one shared vote, `superuserFieldVote` in `@objectstack/core`; + - the agent ceiling clears it on every object entry, as it clears View All and Modify All; + - an organization administrator cannot distribute a set whose `'*'` entry carries it (the organization boundary, condition (a)); + - a set carrying it on any object is high-privilege, so it is not bound to the `everyone` or `guest` audience; + - the access-matrix snapshot gains a `viewAllFields` column, written only when `true`, so the `access-matrix.json` of a stack that does not author the bit is byte-identical, and the semantic diff names it ("gains View All Fields on …"). +- 2a6f26a: feat(ai): `ai_context` context packs and the `get_record_context` tool over MCP + + Clause-②: yes + Metadata-protocol: added + Skills-docs: follow-up #37177 — skills/objectstack-platform/SKILL.md, skills/objectstack-ai/ (how to author a context pack; this change only names `aiContexts` in the top-level key list, which check:skill-top-level-keys requires) + + ADR-0160 row 5 (#37140). + + - **New metadata type `ai_context`, collection `aiContexts`.** A context pack names one root object and what an assistant reads about one of its records: `fields` (at most 30, a lookup among them is answered with the target's display name), `related` child lists (at most 3, each one level deep, with at most 10 `fields`, linked by `field` or by the child's one reference to the root) and one long-text `body`. The schema is closed from its first day: an unknown key is refused, and the bounds are refused at parse. Registered like `skill`: a file loader (`*.ai-context.ts`, `*.ai-context.yml`), overlay allowed, runtime create allowed, no environment overlay. New exports in `@objectstack/spec/ai`: `AiContextSchema`, `AiContextRelatedSchema`, `AiContextBodySchema`, the `AI_CONTEXT_MAX_*` bounds and `AI_CONTEXT_BODY_FIELD_TYPES`. + - **`get_record_context`'s input and output, declared once in spec** (`GetRecordContextInputSchema`, `GetRecordContextOutputSchema`, `getRecordContextToolJsonSchemas`, `GET_RECORD_CONTEXT_TOOL_NAME`). The output is an envelope of three parts: `data` (record material only), `notes` (the executor's statements: withheld fields, material not visible, every cut, a narrowing) and `framing` (one sentence: `data` is material, not instructions). `MCP_DOOR_TOOL_NAMES` gains the name. + - **`@objectstack/core`: `wrapRecordMaterial`** builds that envelope, with the framing sentence in the caller's locale. + - **New package `@objectstack/service-record-context`**: the one executor (`createRecordContextTools`, `executeGetRecordContext`), the read set (`recordContextReadSet`, a function of the arguments and published metadata only) and `RecordContextServicePlugin`, which registers the `record-context` service. Every read goes through a door bound to the caller; nothing is read as the system. Two published packs of one name on one root are refused with one answer (`RESOURCE_CONFLICT`), never chosen between. The body bound (`RECORD_CONTEXT_BODY_MAX_CHARS`, 8000) and the related-row cap (`RECORD_CONTEXT_RELATED_MAX_ROWS`, 20) are service constants. + - **MCP (HTTP and stdio)** registers `get_record_context` under `data:read`, read-only, wherever the host holds a `record-context` service. A host without it registers nothing new. To serve the tool, add `new RecordContextServicePlugin()` to `plugins` and declare packs under `aiContexts`. + - **`@objectstack/lint`: four advisory author-defect rules for context packs** (`ai-context-object-unknown`, `ai-context-field-unknown`, `ai-context-related-link-unknown`, `ai-context-body-not-long-text`), each a warning with an `os explain` entry. `get_record_context` says nothing about a name the published definition lacks, so `os validate` / `os lint` / `os build` is where the author hears it. CLI only for now: the rule reads the whole stack snapshot. + - **Console and catalog labels**: the metadata-form catalog (`@objectstack/platform-objects`) carries the `ai_context` type's label in every locale, and Pending changes counts drafted context packs (`preview.changes.typeCount.ai_context`). + +### Patch Changes + +- 89364b4: feat(spec, core, ui): `{current_iso_week}` defaults a week-keyed filter to the current ISO week + + Clause-②: yes (widening: the closed filter-placeholder vocabulary gains one token) + Metadata-protocol: added + + A dashboard whose rows carry a text week key (`cost_week: '2026-W47'`) could only default its week filter to a fixed week, which went stale the next Monday. Write the placeholder instead and the filter opens on the current week each time: + + ```ts + globalFilters: [ + { field: 'cost_week', label: 'Week', type: 'text', defaultValue: '{current_iso_week}' }, + ], + ``` + + - It resolves to the ISO-8601 week key of today, `YYYY-Www`: Monday-start weeks, week 1 is the week that holds the year's first Thursday, and the year is the ISO week-numbering year, so 2027-01-01 is `2026-W53` and 2025-12-29 is `2026-W01`. "Today" is the day in the workspace time zone, on the server and in the browser alike; the label is the one the analytics week bucket already uses. + - It is a period key, not a date. It lives in its own closed list, `PERIOD_KEY_TOKENS`, beside `DATE_MACRO_TOKENS` and not inside it, so a date filter default and a calendar `initialDate` still refuse it. `classifyFilterToken` answers a new kind, `period-key`, and `isKnownFilterToken` knows it, so lint, flow filter operands and the server resolver accept it wherever a filter placeholder is accepted. A consumer that switches exhaustively on `kind` gets a compile error until it handles the new kind. + - The server resolves it in `resolveFilterTokens`; the browser resolves it in `resolveFilterPlaceholders` and in the dashboard filter defaults (every filter type except `date` and `dateRange`), so the filter box opens showing the resolved key. A literal `2026-W47` default keeps working and stays fixed. + - Every filter and default written before parses and resolves exactly as before. Only the whole value is a placeholder: `'week {current_iso_week}'` is left as written. A near spelling such as `{currentIsoWeek}` is still refused as an unknown token. + - Use it only on a field that stores week keys. On a date, datetime or time field the placeholder is refused (`INVALID_FILTER` / 400), as the literal key is; filter those with the `this_week` preset or `{current_week_start}` / `{current_week_end}`. +- 4b1eb0e: fix(plugin-audit): the platform's own audit and activity rows are no longer judged as an automation's insert + + Clause-②: yes (widening) + Metadata-protocol: none + + The audit writer records every audited write with a `sys_audit_log` row and its `sys_activity` mirror. It wrote both through the `sudo()` of the hook api it is handed, and `sudo()` spreads the audited write's context. When that write was made by app-authored automation, the elevation kept the automation's provenance: an action body's or a system hook's app-automation elevation mark, or a flow run's `flowRunId`. plugin-security therefore read the platform's own ledger rows as the automation inserting into an append-only object. Today that logged the "Deprecated: inserting into 'sys_audit_log'" (and `'sys_activity'`) warning on the first such write. Once the announced refusal of those inserts ships, it would have refused the rows and lost the audit trail of every action-body, system-hook and flow write. + + - The audit writer now writes both rows through the platform's own system api. `platformSystemApi(api)` is a new export of `@objectstack/objectql` and `@objectstack/objectql/core`. It derives from a hook's api the same elevated context `sudo()` gives, minus the app-automation mark and minus `flowRunId`. Every other key is kept, so the rows stay in the write's transaction, organization and attribution. On an app-authored hook's api it sheds nothing: there it returns what that api's `sudo()` returns, the mark and `flowRunId` kept. + - `withoutAppAutomationElevation(context)` is a new export of `@objectstack/core`. It returns the context without the mark. + - What an automation writes itself is unchanged. An action body's or a hook's insert into `sys_activity` or `sys_audit_log`, through its `ctx.api` or its `ctx.api.sudo()`, still carries the mark and still logs the deprecation. `sudo()` itself is unchanged too: it never sheds the mark. +- 8856afc: feat(mcp): a refused record read says the data is not recorded, in the caller's language + + Clause-②: yes (widening) + Metadata-protocol: none + + When `query_records`, `aggregate_records` or `get_record` is refused and the call named an object, or a field, that the caller's own schema does not show (the object as `describe_object` serves it to them), the refusal now carries two members beside it, on the HTTP and the stdio server alike: + + - `notRecorded`: what is not recorded, as the caller sent it: `{ "object": "<name>" }`, or `{ "object": "<name>", "fields": ["<name>", …] }` for the field names the call sent that the schema does not show, in the order sent. Every sent name is read by its head on every channel (`where`, `fields`, `orderBy`, `groupBy`, an aggregation's `field` and `filter`), so `owner.name` is judged by `owner`, and a dotted name whose head the schema shows is never named. + - `ifNotRecorded`: one sentence, in the caller's language (English, Simplified and Traditional Chinese, Japanese), telling the model to say the data is not recorded, never to report 0 or an empty result for it, and not to answer with another object or field in its place. + + The answer names only what the caller can see: both members are built from the names the caller sent and from the caller's served schema, and nothing else. The refusal itself (`isError`, its `code`, `message` and `status`) is unchanged, byte for byte. A read that answers, a refusal about a field the caller's schema shows, a server fault, and a refusal whose schema read cannot be made carry no member. `id`, `created_at` and `updated_at`, which every object answers, are never named. + + The language is chosen by one shared picker, `pickSentenceLocale` (with `platformLocaleNamedBy`), now exported from `@objectstack/core`: the first of the caller's locales (the request's, then the workspace default) that names a language the sentence is written in, else `en`. The dataset tools' `nextStep` and `sourceLine` (`@objectstack/service-analytics`) use the same picker, with unchanged behaviour. `McpDataBridge` gains an optional `userTextLocales()` member: the HTTP bridge answers the request's ladder, the stdio bridge the principal's ladder and then the i18n service's default. A bridge without it is answered in `en`. +- 8384d18: fix(core)!: the offboarding hand-over no longer moves the owner of a `controlled_by_parent` detail record + + Clause-②: no (narrowing) — narrowed: `GET /api/v1/security/users/USER_ID/assigned-work` no longer lists the `owner_id` of an object whose `sharingModel` is `controlled_by_parent`, and `POST /api/v1/security/users/USER_ID/assigned-work/transfer` no longer moves it, with or without `objects` naming the detail. `userAssignedWorkFields` of `@objectstack/core` leaves that field out of its roster. + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed or renamed, and nothing stored is rewritten: the moved answer is which records the hand-over counts and moves. A detail record's owner stays where it was; an administrator who wants a different owner on one edits that record. --> + + **BREAKING** for an administrator handing a banned user's work to someone else. On a detail object the owner records who did the work — the person on a timesheet, the spender on an expense line, the voter on a vote — not who holds it. The hand-over used to move it with everything else, so the successor appeared to have logged the leaver's hours and spent the leaver's money, and approvals and reports read wrong. Those owners now stay where they are, are not counted in the assigned-work answer, and are not part of `remaining`. + + Unchanged: the detail's own user fields (an approver, an assignee) are still counted and moved, and the owner of every object whose `sharingModel` is `private`, `public_read`, `public_read_write` or unset is still counted and moved. A detail row that names its master is reached through that master (ADR-0055), so hand over the master record to give the successor that row's access. + + One row class has no master to hand over: a detail row whose master reference is empty, on a detail whose master is optional (`required: false`, ADR-0055 as amended). Its owner reads and writes it, beside View All / Modify All on the detail. Its owner is not counted or moved either, so after the ban only View All / Modify All holders reach it. To give such rows to someone else, a holder of Modify All on the detail filters the detail by owner and edits the owner by hand. +- ed906d5: feat: the working-calendar service, its arithmetic and its refusal codes (ADR-0157, part one of two) + + Clause-②: yes (widening) + Metadata-protocol: none + + Not released alone; pair #35641/#35642. This ships in the same release as #35642 (the calendar objects and Setup pages, the second half of this change), the working-day formula functions (#35356) and the approval escalation's working-time clock (#35357), ADR-0157 D4. + + - **The arithmetic** (`@objectstack/formula`). `isWorkingTime`, `addWorkingDays`, `workingDaysBetween` and `addWorkingHours` compute over a resolved calendar and its dated exceptions, as pure functions a formula can call synchronously, beside `parseWorkPeriods` (`HH:mm-HH:mm` periods; a period that crosses midnight is refused, `24:00` is a legal end), `buildWorkCalendar` (a frozen calendar) and the three error classes. A computation that needs a date outside the calendar's maintained span is refused rather than read from the weekly pattern. + - **The types, constants and time-zone rule** (`@objectstack/spec`). `WorkCalendar` and the column and code constants are in `@objectstack/spec/data`; the service contract is `IWorkCalendarService` in `@objectstack/spec/contracts`. `zonedWallClockToUtcMs`, `wallClockToUtcMs` and `WallClockParts` move to `@objectstack/spec/data` from `@objectstack/core`, unchanged; `@objectstack/core` re-exports all three, so no import changes. + - **Three error codes** in the ADR-0112 ledger: `ERR_WORK_CALENDAR_UNRESOLVED` (no calendar by that code, no organization default, two defaults, or no organization named outside the `single` posture), `ERR_WORK_CALENDAR_NOT_MAINTAINED` and `ERR_WORK_CALENDAR_INVALID`, each a 400. + - **The calendar service** (`@objectstack/objectql`, registered as `work-calendar`). `resolve({ organizationId, calendar })` takes the named code, else the organization default, else refuses; it never falls back to wall-clock time. It reads in the organization the caller names, elevated, and caches until a calendar or exception row is written. Outside the `single` tenancy posture, a computation that names no organization is refused before any read. Until the calendar objects are registered it refuses every resolution. + - **The write door** (`@objectstack/objectql`). Once the calendar objects exist, a calendar or exception write is refused `400 VALIDATION_FAILED` when a period crosses midnight, is malformed or overlaps another, an `off` row carries periods or an `on` row carries none, `maintained_through` is before `maintained_from`, a second calendar is marked the default, or a calendar created in an organization other than the one being worked in is marked the default (create it there, or set the default by an update); a calendar created without `timezone` takes the organization's Localization time zone. The hooks take the organization from the session. +- 3cfa5bc: fix(core)!: a context placeholder (`{current_user_id}`, `{current_org_id}`) compared against a date, datetime or time field is refused, as the id it resolves to already was + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed or renamed, and nothing stored is rewritten: what moved is the answer of the published isUninterpretableTemporalComparand predicate for a context placeholder, which the engine's temporal-comparand door now refuses as it refuses the id the placeholder resolves to. Such a filter never matched a temporal column correctly, so no consumer had a working form of it to migrate. --> + + **BREAKING** for a filter that compares a `date`, `datetime` or `time` field against a context placeholder. Such a filter is now refused with `INVALID_FILTER` (400), naming the field, before any read, on `find`, `findOne`, `count`, `aggregate` (its `where`, each aggregation's `filter` and its `having`), `update` and `delete`. It never answered correctly: the placeholder resolves to the caller's user or organization id, an id is not a day, an instant or a time of day, and the comparison ran as text against the stored values. + + - FROM: `{ due_on: { $lt: '{current_user_id}' } }` answered every row, and `$eq` / `$gte` answered no row, all with a 200, on SqlDriver and InMemoryDriver alike, while the same filter written with the literal id was refused. + - TO: the placeholder takes the literal id's refusal, `INVALID_FILTER` / 400, on all three kinds, in both spellings (`{current_user_id}` and `${current_user_id}`). + + `isUninterpretableTemporalComparand` (`@objectstack/core`) now answers `true` for a context placeholder on every temporal kind, as it does for a period key (`{current_iso_week}`). It still answers `false` for a date macro (`{current_week_start}`, `{30_days_ago}`), which the engine judges by its year once resolved, and for an unknown or record-context placeholder (`{TODAY}`, `{record_id}`), which the resolver keeps refusing by name with `FILTER_TOKEN_UNKNOWN` / `FILTER_TOKEN_UNRESOLVED`. A context placeholder on an id or text field resolves exactly as before. + + The refusal comes from the temporal-comparand door, which runs one stage ahead of the placeholder resolver. So a caller with no session, which got `FILTER_TOKEN_UNRESOLVED` (400) for this spelling on a temporal field, now gets `INVALID_FILTER` (400). On an id or text field it still gets `FILTER_TOKEN_UNRESOLVED`. + + The engine's judge-only admission runs the same door, and so do two of its readers: + + - `IObjectQLEngine.judgeFilter` answers `{ ok: false, code: 'INVALID_FILTER', status: 400 }` for this spelling on a temporal field. With a session it answered `{ ok: true }`; without one it answered `FILTER_TOKEN_UNRESOLVED`. + - Lint's row-scope predicate rule (`rls-predicate-unenforceable`) still refuses a predicate such as `due_on < '{current_user_id}'`. The finding now quotes `INVALID_FILTER / 400` with the hint to rewrite the comparison, where it quoted `FILTER_TOKEN_UNRESOLVED / 400` with the hint to write the caller's value as a `current_user` key. + - Analytics read-scope admission: when the analytics service asks the engine to admit an object's read scope, a scope that compares a `date`, `datetime` or `time` field with a context placeholder is now refused at compile, `READ_SCOPE_COMPILE_FAILED` (500, fail-closed). After the upgrade, a dashboard or analytics query over such an object answers 500 until that clause is rewritten as below. + + The fix for an author: compare the date field against a date (a `YYYY-MM-DD` day, an ISO-8601 instant, or a date macro such as `{30_days_ago}`), and compare the user or organization id against the field that holds it, such as `owner_id`. In a row-level-security predicate, write `owner == current_user.id`. +- 16a96ac: feat(rest): Change Owner endpoint — hand one record or a list of records to another owner, on objects that offer the action + + Clause-②: yes (widening) + Metadata-protocol: none + + Two new doors under the data surface, both run as the caller: + + - `POST /api/v1/data/:object/:id/change-owner` with `{ ownerId | queue, notify? }` hands one record to a person or moves it to an ownership queue (ADR-0142), and answers the record's new owner. + - `POST /api/v1/data/:object/change-owner` with `{ ids, ownerId | queue, notify? }` does the same for up to 500 records, one update per record, and answers a per-row report that lists every record that did not move with its code and sentence. + + An object offers Change Owner when the platform gives it a reassignable owner and its `userActions.transfer` switch is on (on by default, off on a `controlled_by_parent` detail). Any other object is refused as a whole, `403 CHANGE_OWNER_DISABLED`, whoever asks — a holder of `modifyAllRecords` included. The switch gates this action only: a plain `owner_id` update still needs the transfer grant and nothing else, so imports and hooks are unaffected. On an object that offers it, each record moves through the ordinary write path, so the caller needs edit on the record and the transfer grant (`allowTransfer` or `modifyAllRecords`); without the grant the record keeps its owner and the answer is the data door's own `403 PERMISSION_DENIED`. `notify: true` sends the new owner one notification under the `record.owner_changed` topic, its title keyed so it renders in the new owner's own language (English when no entry renders). + + `@objectstack/core` exports `changeRecordOwner`, `changeRecordsOwner`, `changeOwnerOffReason`, `changeOwnerOffRefusal`, `CHANGE_OWNER_DISABLED`, `CHANGE_OWNER_NOTIFICATION_TOPIC`, `CHANGE_OWNER_NOTIFICATION_TEXT` and `assertAssignableUser` (the assigned-work hand-over's target check, now shared). That check now reads the target user the way the write path reads a user reference: a user the caller cannot read answers as one that does not exist (`404`, `reference_not_found`), on Change Owner and on the hand-over alike. `@objectstack/client` adds `data.changeOwner` and `data.changeOwnerMany`. `@objectstack/spec` registers `CHANGE_OWNER_DISABLED` in the error-code ledger, and the `userActions.transfer` liveness row is now `live`. `@objectstack/service-messaging` lists `record.owner_changed` among the platform's notification topics and carries the notice's title in every shipped locale (`messages.recordOwnerChangedTitle`, `messages.recordsOwnerChangedTitle`). +- 7c122ff: fix(core): a signed-in request reads its session once with the inbound rate limiter armed or an ADR-0069 gate active on REST + + Clause-②: no + Metadata-protocol: none + + With `server.security.rateLimit` armed, or on the REST door while a session gate is active, one signed-in request read its session (a `sys_session` lookup by token and a `sys_user` lookup by id) two or three times; it now reads it once, on the dispatcher and REST alike. Who is admitted or refused, and with which status, does not change. + + The inbound rate limiter, the identity step of every door (`resolveRequestExecutionContext`) and REST's `reread-when-active` gate now read the session through one request-scoped carrier (`openRequestSessionRead` / `withRequestSessionRead` / `withoutRequestSessionRead` / `readRequestSession`, exported from `@objectstack/core`). The Hono transport runs its middleware chain in a scope and hands that scope to a route it registered only when every middleware between the two is a whole-server one; a route behind a path-scoped middleware (plugin-auth's door under the auth base path, where the organization's IP list is judged on the read) and a raw-app route read for themselves, and `resolveRequestExecutionContext` opens a scope for its own call where none is open. A read is handed to a later reader of the same request only while no write has landed on the data engine since it was read and the session has not expired; a read that throws is never handed on, so each reader keeps its own outage answer. Nothing is kept across requests. The Hono middleware seam now hands a middleware the same headers a route receives, `host` backfilled from the URL included. +- d7c257e: feat: the engine's seam for the fixed-read leaf, and the driver declaration for it (ADR-0155, step 2 of 6) + + Clause-②: yes + Metadata-protocol: added + + No visible change on its own: nothing on main writes a fixed-read leaf yet (the sharing plugin starts writing `SharedRecordIds` at ADR-0155's last step), and no driver declares one (the SQL drivers and the memory driver declare it on the steps that compile it). + + - **The driver declaration** (`@objectstack/spec`). `DriverCapabilities.fixedReadLeaves` lists the fixed-read leaves a driver's filter compiler evaluates exactly, by name, e.g. `['SharedRecordIds']`; absence means none. The names are `FIXED_READ_LEAF_NAMES`, and `fixedReadLeafNameOf(leaf)` maps a leaf to its name. It stays separate from `readableIdsLeaf`: a `ReadableIds` leaf is not a fixed-read leaf, and a driver that evaluates both declares both. Both descriptions now say so. + - **The seam** (`@objectstack/objectql`). The engine's comparand door admits a branded `SharedRecordIds` leaf as a `$in` comparand, and the engine hands it to the driver by reference only when it sits on `id` of the object it names (directly, or inside a composed `ReadableIds` scope over that object), on a read verb in its read form or in a predicate update's `where` in its write form, for the context's user or its delegator (a system context is exempt), outside both classes ADR-0155 D4 recognises (the object on another datasource than `sys_record_share`; a middleware or a `beforeFind` / `afterFind` hook registered for `sys_record_share` by name), and to a driver whose `fixedReadLeaves` names it. Anything else is refused before any driver is asked, `INTERNAL_ERROR` / 500, logged at `error` once per evaluator. An unbranded copy is still refused at the door as a non-list comparand, `INVALID_FILTER` / 400. + - **The refusal** (`@objectstack/core`). `fixedReadLeafRefusal`, `refuseFixedReadLeafOnce` and `describeFixedReadLeaf` are the one envelope every evaluator answers a fixed-read leaf it will not run with; `logRefusalOnce` is the once-per-instance log it shares with the `ReadableIds` refusal. + - **Filter tokens** (`@objectstack/core`). `resolveFilterTokens` returns a fixed-read leaf by reference, as it does a `ReadableIds` leaf, so a read scope that carries a placeholder beside the leaf keeps the leaf's brand. +- 81eae2b: fix(core): an import lookup cell refused by the row's own scope names the scoping column + + Clause-②: no + Metadata-protocol: none + + An import lookup cell is resolved within the record the same row names for it: the lookup's `dependsOn` column, or the master a detail target belongs to. When the value matched a record only under another parent, the refusal read `Contract: no record matches "CTR-0006"`, and an importer who searched for CTR-0006 found it. + + After a scoped lookup matches nothing, the import now asks the same lookup once more without the scope, as the same importing user. When that finds the value, the refusal names the scoping column and what the row wrote there: `Contract: no record matches "CTR-0006" (Account = "Acme")`. A value that matches no record at all keeps `Contract: no record matches "CTR-0006"`. Single-value and multi-value lookup cells read the same. + + The reason stays `reference_not_found` and the code stays `import_reference_not_found`. The added part is built from the column label, the cell and punctuation, so it reads the same in every locale. The second lookup runs as the importing user, so it finds only records that user can already read, and the message says nothing about the record it found. +- d12ac84: feat(comments): a member resolves and reopens any thread they can read, and deletes their own comments + + Clause-②: yes (widening) — `@objectstack/plugin-audit`'s `AuditPlugin` mounts two new HTTP routes, `PUT /api/v1/comments/:id/resolution` and `DELETE /api/v1/comments/:id`, and the stamp of who resolved a thread now reads a system write's `provenance.attributedUserId`. `@objectstack/core`'s `OwnRowDeleteDoor` adds an optional member, `refuseRemoval(row, engine, context)`, asked after the owner check. `@object-ui/react`'s `DiscussionContextValue` adds the optional `ownCommentDeletesOnly`; `@object-ui/plugin-detail`'s `RecordCommentsData` adds the optional `ownDeletesOnly`, and `RecordCommentThreadProps['comments']` may carry it; `@object-ui/core`'s affordance-to-grant map adds the row `feedCommentDeleteOwn`. Nothing existing is removed or re-typed. + Metadata-protocol: none + + Two server doors carry the maintainer's comment permission rulings past the platform's row floor (`owner_only_writes`, which lets a rank-and-file member update only the rows they created) and past the delete grant no every-member set may hold (ADR-0090 D5). Neither changes the floor, `sys_comment_moderation` or any permission set, and the data API answers exactly what it answered before. + + - **Resolve and reopen: `PUT /api/v1/comments/:id/resolution`** with the body `{ "resolved": true }` or `{ "resolved": false }` and nothing else. Whoever can read the thread and may post a comment on it may, external members included (ruling record 7063285032, option A: anyone who can see the record, the same gate as posting a comment): the door reads the comment as the caller (a comment they cannot read answers `404 RECORD_NOT_FOUND`, as an unknown id does), refuses a caller who reads comments but may not post one (`403 PERMISSION_DENIED`), refuses a reply (`400 VALIDATION_ERROR`) and then writes `is_resolved` alone, attributed to the caller. `resolved_by` names the caller. It answers `200` with `{ id, is_resolved, resolved_by, resolved_at }`. Any other query parameter or body is `400 VALIDATION_ERROR`; a signed-out request is `401`. + - **Delete your own comment: `DELETE /api/v1/comments/:id`.** It removes a comment the caller wrote (`author_id`), with no delete grant needed, on the platform's shared own-row delete door. Another member's comment is `403 PERMISSION_DENIED` and stays, even for a record editor: moderating someone else's comment stays the data API's, behind the delete grant. A comment that has replies stays too, whoever wrote them, `409 DELETE_RESTRICTED`, because removing it would turn each reply into a thread of its own (ruling record 7069889899: no one deletes or rewrites someone else's comment); its author may still edit its text. It answers `200` with `{ id, deleted: true }`. + - **Unchanged:** comment text stays its author's alone; a member's data-API update of a colleague's comment, `is_resolved` included, and a member's data-API delete are still `403`; administrators keep the data API for resolving, editing and deleting anyone's comment. + + The desktop comment panel follows the doors: + + - ✓ is on every thread, the viewer's and anyone else's, for a viewer holding the `sys_comment` create grant, and writes through the resolution door. It no longer asks the explain engine; that probe now gates only Edit on someone else's comment. + - A viewer without the `sys_comment` delete grant (an ordinary member) is offered Delete on their own comments that have no reply, and it goes through the own-comment delete door; a viewer with the grant deletes through the data API as before, others' comments included where they may edit the record. + + Corrections to two earlier notes of this release, which stay as written: + + - A rank-and-file member now resolves and reopens a colleague's thread through the resolution door; this replaces the #36071 note's line "This is the one widening: an update that changes nothing but `is_resolved` is admitted without the author-or-record-editor rule", because the platform's row floor (`owner_only_writes`) runs first, so through the data API such a member still resolves only the threads they started and an administrator resolves any. + - The desktop comment panel offers ✓ on every thread to a viewer who may post a comment and writes it through the resolution door; this replaces the #36075 note's line "✓ is offered under the `sys_comment` update grant: on a thread the viewer started, and on anyone's only where the explain engine admits …", and its "Unchanged" line's "a deployment without the explain service shows ✓ and Edit on the viewer's own rows only" now holds for Edit alone. +- ec545de: fix(core)!: Change Owner answers what was saved, and says a person was notified only when the notice went out + + Clause-②: no (narrowing: the single Change Owner door answers `403 FIELD_NOT_ACCESSIBLE` where it answered `200`, and the bulk door lists under `failures` a record it reported moved, when the record's `owner_id` or `queue` is locked; `notified` is `false` where no delivery or outbox row was taken; a custom `ChangeOwnerMessaging.emit` must now return `{ delivered, enqueued }`) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed or renamed, and nothing stored is rewritten: the moved answer is what the Change Owner doors report for a record whose owner or queue is locked, and how notified is read. A caller that needs the record moved changes the record so the lock no longer holds. --> + + **BREAKING**, in two halves: (a) for a caller of Change Owner on a record whose `owner_id` or `queue` is locked (read-only, or under a `readonlyWhen` condition that holds for the record, for example "read-only once the case is closed"); (b) for code that implements `ChangeOwnerMessaging` from `@objectstack/core`'s security entry. The data engine leaves a locked column as it was; Change Owner used to report the record as moved anyway, and to tell the named person a record was now theirs. + + - FROM: `POST /api/v1/data/:object/:id/change-owner` answered `200` for a record whose owner or queue was locked, and `POST /api/v1/data/:object/change-owner` counted it under `updated`, while the stored owner did not change; `notified` was `true` whenever the messaging service's `emit` returned, whatever it sent, and `ChangeOwnerMessaging.emit` could resolve any value. + - TO: each owner write passes `strictReadonlyWrites`, so the locked record is refused before anything is written. The single door answers `403 FIELD_NOT_ACCESSIBLE`, naming the locked column; the bulk door lists the record under `failures` with `FIELD_NOT_ACCESSIBLE` and moves the others as before; no notification names a record that did not move. A queue target writes the owner and the queue together, so a lock on either leaves both unchanged. `notified` is `true` only when the emit reports a delivered or an enqueued notice, and `false` when the service sent it nowhere (a muted topic, an unavailable channel). `ChangeOwnerMessaging.emit` must resolve `{ delivered, enqueued }`, the counts the messaging service's `EmitResult` already carries. + + The fix for a caller: (a) handle the `403 FIELD_NOT_ACCESSIBLE` answer and the `failures` row (change the record so the lock no longer holds, or remove the lock from the field, then change the owner again); (b) a custom `ChangeOwnerMessaging.emit`, passed to `changeRecordOwner` / `changeRecordsOwner`, returns the two counts `{ delivered, enqueued }`. A record whose owner and queue are not locked sees no change. +- 7c9b22b: fix(core)!: Change Owner refuses an object of a disabled package with the data door's `404 OBJECT_PACKAGE_DISABLED` + + Clause-②: yes (narrowing) — `@objectstack/core` gains the root export `objectPackageDisabledError`, and all three Change Owner doors newly answer `404 OBJECT_PACKAGE_DISABLED` for an object of a disabled package, which they answered `200` before + Metadata-protocol: none + Skills-docs: none — no page under `skills/` teaches Change Owner; the refusal carries the data door's own sentence, which names the fix + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no stored row, registry key or authored value changes. What moves is the answer the three Change Owner doors give for an object whose owning package is disabled, an answer that returns to what it was the moment the package is re-enabled; there is nothing for a migration to rewrite and no tombstone. --> + + **BREAKING** for a caller that changes owners on a disabled package's object. + + - FROM: `POST /api/v1/data/:object/:id/change-owner` and `POST /api/v1/data/:object/change-owner` answered `200` for an object of a disabled package: the owner changed (and, when a cascade was named, its child rows), and when asked the notification was sent; `GET /api/v1/data/:object/change-owner/cascades` answered `200` with the object's cascade candidates. + - TO: all three doors answer `404 OBJECT_PACKAGE_DISABLED`, naming the object, in the data door's words; nothing is read, written or sent. The fix for a caller: re-enable the package. + + `POST /api/v1/data/:object/:id/change-owner` and `POST /api/v1/data/:object/change-owner` changed owners (and cascaded child rows), and sent owner-change notifications, on records of an object whose owning package was disabled, although every `/data` write refuses such an object. `changeRecordOwner` and `changeRecordsOwner` now ask the engine registry's `isObjectPackageDisabled` before the object's Change Owner switch is read, and refuse the whole call with the data door's own envelope (`code: 'OBJECT_PACKAGE_DISABLED'`, `status: 404`, the object name on `object`) before any user lookup, write or notification. Re-enabling the package restores the action; nothing is cached. `GET /api/v1/data/:object/change-owner/cascades` asks the same predicate in the same order (after the object resolves, before the switch), so the dialog lists nothing for such an object. + + The refusal's constructor, `objectPackageDisabledError`, now lives in `@objectstack/core` and is exported from it; `@objectstack/metadata-protocol` re-exports the same function under the same name, so its importers are unchanged and the code, status and sentence stay one. The error-code ledger (`@objectstack/spec`) records `OBJECT_PACKAGE_DISABLED` under `@objectstack/core` as a provenance row; the code itself, its status and its wire shape are unchanged. +- 422df61: Clause-②: no + Metadata-protocol: none + + An import row refused because another row of the same file carries the same match key (`DUPLICATE_MATCH_KEY`) now reads in the importing user's language, like the cell errors beside it, and names the key by its field label (`Email`, `Supplier + Type`) instead of its API name; the row numbers stay in the sentence. The sentence is the new `import_duplicate_match_key` entry of the built-in validation message catalog (`BUILTIN_VALIDATION_MESSAGES`, in all four platform locales), so a deployment can override it under `validation.field.import_duplicate_match_key`. The row keeps its shape (`code`, `error`); only the `error` text changes. An English deployment reads the same sentence as before, with the field label where the API name was. + + The console import wizard shows a row refused by an object-level validation rule (a rule that names no field, reported on the `_record` field) as its message alone, without a `_record:` prefix, in the dry-run findings, on the result screen and in the failed-rows download. A field-level error keeps its `Label: message` form; the failed-rows download now prefixes it with the field label too, where it used the API name. +- 0439a04: Clause-②: no + Metadata-protocol: none + + Two more import row refusals are now sentences of the built-in validation message catalog (`BUILTIN_VALIDATION_MESSAGES`, all four platform locales) and name fields by their label instead of their API name, the same way the duplicate-match-key row does. Each reads in the caller's locale when the caller carries one and in English otherwise, and a deployment override reaches it only where the caller passes a translator. A row blank on every ordered key set (`BLANK_MATCH_KEY`) reads the new `import_blank_match_key` entry, naming each key set by label (`Email; Phone + Company`); its caller is the import endpoint (`POST /data/:object/import` with ordered key sets), which passes the request locale and the deployment's translator, so it reads in the request language and can be overridden under `validation.field.import_blank_match_key`. A run whose match key names a field holding a list or a structured value fails every row with the new `import_multi_value_match_key` entry, naming those fields by label; its only callers are the ones that reach the import runner without the import door (the connector and datasource pulls), which pass no request locale and no translator, so there it reads in English and `validation.field.import_multi_value_match_key` is not consulted. A deployment override of any of the three match-key sentences can name the API names as `{{field}}`. The rows keep their shape and codes (`BLANK_MATCH_KEY`, `VALIDATION_ERROR`), and the multi-value row's `field` still carries the API name; only the `error` text changes. The import door's own `400 INVALID_REQUEST` refusal of such a key is unchanged. +- d15e439: Clause-②: no + Metadata-protocol: none + + The import row refusal for a row whose match key finds more than one stored record (`AMBIGUOUS_MATCH`) is now a sentence of the built-in validation message catalog (`BUILTIN_VALIDATION_MESSAGES`, all four platform locales), the new `import_ambiguous_match` entry, the same way the duplicate-key, blank-key and multi-value-key rows are. It names the key set the row was matched by its field labels instead of the old English `matchFields matched more than one <object> record`, which named the API parameter and the object's API name. It reads in the caller's locale when the caller carries one and in English otherwise, and a deployment override (`validation.field.import_ambiguous_match`, which can also print the API names as `{{field}}`) reaches it only where the caller passes a translator: the import endpoint (`POST /data/:object/import` and the async import job) passes both the request locale and the deployment's translator, while the connector and datasource pulls pass neither and so read English. The row keeps its shape and its code; only the `error` text changes. +- df8a1b8: fix(plugin-auth)!: a password reset disables the OAuth applications the account registered and revokes the SCIM credentials it minted + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is what a completed password reset ends: rows the account owns are written disabled or revoked by the doors administrators already use, so there is nothing for a migration to rewrite and no tombstone. --> + + **BREAKING** for an account that registered an OAuth application or minted a SCIM provisioning credential, and then has its password reset. + + - FROM: a completed password reset (the emailed link, the texted code, an administrator's `POST /api/v1/auth/admin/set-user-password` with `revokeSessionsAndKeys` on, and `os user set-password`) ended the account's sessions, API keys, linked sign-in accounts, authorized apps and device sign-ins. The OAuth applications the account registered (`sys_oauth_application.user_id`) stayed enabled, and the SCIM credentials it minted (`sys_scim_connection_credential.user_id`) stayed active. A self-service reset sent the account no notice. + - TO: the same resets also disable every OAuth application the account registered that is not disabled, as a platform administrator's Disable action does (the provider issues it no token, client-credentials tokens included, answers its tokens inactive at introspection, and the MCP endpoint refuses every token it holds), and revoke every SCIM credential the account minted that is still active, as Revoke Credential does, each revoke writing the `sys_audit_log` row Revoke Credential writes (`scim_credential_revoked`) naming the account for a self-service reset and the administrator for a forced one (`os user set-password` names no one and writes none). An application another account registered and a credential another administrator minted are not touched. The account's single sign-on providers and two-factor enrolment are kept. + - A completed self-service reset then mails the account `auth.password_reset_notice` (a new built-in template, in en-US, zh-CN, ja-JP and es-ES): how many API keys, linked sign-in accounts and authorized apps it ended, each application it disabled and each credential it revoked by name, and the single sign-on providers and second factor it kept. It is best-effort: a notice that cannot be sent never fails the reset. The forced resets send no notice and answer their requester instead. + - The administrator's forced reset reports the new counts on `data.revoked` (`ownedApps`, `scimCredentials`) and on its ledger row (`revokedOwnedApps`, `revokedScimCredentials`); `setOperatorPassword` answers `ownedAppsDisabled` and `scimCredentialsRevoked`, and `os user set-password` prints them. A disable or revoke that does not land answers the self-service requester an error, with no notice, and keeps the forced reset's `complete` false, as for the other rows; every other kind is still ended first, so an application that cannot be disabled leaves no API key, linked sign-in account or credential in place. + - A password change disables and revokes nothing. Its reminder, `auth.password_changed_notice`, now also lists the OAuth applications the account registered that are still enabled and the SCIM credentials it minted that are still active and not past their own expiry, and is sent when the account holds only those. + + The fix for an owner after a reset: ask a platform administrator to enable an application you still need again, and have a platform administrator mint a new SCIM credential for a connection whose credential was revoked. +- 75925e1: fix(plugin-auth)!: a password reset ends what the account added before it + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value, metadata type or export shape is added, removed, renamed or re-shaped, and no stored row is rewritten by a migration: what moves is what the auth doors end when a password is reset or first set, and the answer they give a link minted before it, which is now the answer a link that was never issued gets. The forced reset response gains two counts, its ledger row two keys and the operator outcome two fields. There is nothing for a migration to rewrite and no tombstone. --> + + A password reset ends what the account added before it, and a password change reminds the account what it keeps. + + - **A completed self-service reset** (the emailed link at `POST /api/v1/auth/reset-password`, the texted code at `POST /api/v1/auth/phone-number/reset-password`) now ends, beside the account's sessions, every API key the account owns that is not revoked, its `revoked` flag false or unset (revoked as one its owner revoked, so the owner may restore it from the API Keys list), and every sign-in account linked to it other than its password (a social, OAuth or single sign-on link; the provider may be linked again as it was the first time). Where the OAuth provider is enabled it also ends every app authorized to the account: the account's consents, refresh tokens and stored access tokens are deleted, so the app asks to be authorized again, and an MCP access token is refused on its next request. Where device authorization is enabled it ends a device sign-in approved for the account and not yet collected. This build offers no passkey sign-in, so there are no passkeys to end. A reset that does not complete ends nothing. A completed reset that cannot end one of these (a record it cannot read or write, a linked account a host's `account.delete.before` hook keeps, an account it cannot name) answers an error once the password is written; the password stands, its change time and password history are recorded all the same, and resetting again ends what remains. + - **A password change** (`POST /api/v1/auth/change-password`) ends none of these: an authorized app keeps its authorization and gets a new MCP access token with its refresh token, issued after the change. When the account still holds an API key that is neither revoked nor past its own expiry, a linked sign-in account or an authorized app afterwards, the account's address is sent the new built-in template `auth.password_changed_notice`, naming each (its variables are `apiKeyCount`, `apiKeys`, `signInAccountCount`, `signInAccounts`, `authorizedAppCount` and `authorizedApps`), through the email service. It is best-effort and never fails the change. plugin-email ships it in `en-US`, `zh-CN`, `ja-JP` and `es-ES`, so `BUILTIN_AUTH_TEMPLATES` grows from 32 rows to 36, and core's `PLATFORM_REQUESTED_BARE_NAMES_BY_TYPE.email_template` names it beside the other eight, so it resolves environment-wide and keeps one overriding package per deployment. + - **An administrator's forced reset** (`POST /api/v1/auth/admin/set-user-password` with `revokeSessionsAndKeys` on, the default) and the operator's `os user set-password` also unlink every linked sign-in account and end every app authorized to the account and every device sign-in approved for it, as the self-service reset does: where the OAuth provider is enabled, the account's consents, refresh tokens and stored access tokens are deleted; where device authorization is enabled, its pending device codes. The operator's command, which runs with no server, ends the ones the project database holds. Both now revoke a key whose `revoked` flag is unset as well. The forced reset's response reports the unlinks as `revoked.signInAccounts` and the apps as `revoked.authorizedApps` (its ledger row as `revokedSignInAccounts` and `revokedAuthorizedApps`), and the operator command prints both (`signInAccountsUnlinked`, `authorizedAppsEnded` on `setOperatorPassword`'s outcome). `revokeSessionsAndKeys: false` still ends nothing. + - **An account's first password counts as a password change when it is set onto an account that was already there**: through either reset door, an administrator's `set-user-password`, the one-step invitation acceptance of an existing account, or `POST /api/v1/auth/set-initial-password`. So links and challenges issued before it end, exactly as they do for any other password change. A password created in the same request as its account, as at a sign-up with a password, an administrator's create-user or a one-step invitation acceptance that creates the account, is still not a change, however long the steps between the two take. A password created outside such a request (written straight to the store), or before this release, counts as a change at its creation, so a verification link that signs in, mailed in the same second as that creation, answers as never issued and its owner requests a new one. + - **A verification link that signs its holder in** (on a deployment with `emailVerification.autoSignInAfterVerification: true`), **a magic link** and **a texted sign-in code**, issued before the account's password changed, now answer what a link or code that was never issued answers: `401 INVALID_TOKEN` or the `error=INVALID_TOKEN` redirect at `GET /api/v1/auth/verify-email`, the `error=INVALID_TOKEN` redirect with no session at `GET /api/v1/auth/magic-link/verify`, and `400 OTP_NOT_FOUND` with no session at `POST /api/v1/auth/phone-number/verify` (a code sent by `POST /api/v1/auth/phone-number/send-otp`). With auto sign-in off, a verification link still verifies the address. An MCP access token issued before the account's password changed (a reset, a change, or an administrator's `set-user-password`) is refused at the MCP endpoint, as a signed link is, in whole seconds; where the app's authorization still stands (a change, or `revokeSessionsAndKeys: false`), the app gets a new token with its refresh token. A link, code or token issued after the change works as usual. + + **BREAKING** for a client or integration that keeps using what a reset now ends: an API key the account owned before a completed password reset is refused as revoked (`403 API_KEY_REVOKED`), a linked sign-in account is no longer linked, an authorized app must be authorized again (after a forced reset with revocation on, too), a verification link that signs in, a magic link or a texted sign-in code issued before the account's password changed answers as a never-issued one, and an MCP access token issued before it is refused. The fix: mint a new key after the reset (or restore the old one from the API Keys list), link the provider again, authorize the app again, request a new link or code, or let the app refresh its token. +- 64b278e: fix(rest)!: every data door judges environment membership + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) every data door judges environment membership; nothing an author writes is retired, renamed or re-shaped, so there is nothing for a migration to rewrite --> + + **BREAKING** for a signed-in caller who is not a member of the environment a request resolved to: every data door now judges environment membership and answers that caller `403 PROJECT_MEMBERSHIP_REQUIRED`, in the envelope the runtime dispatcher already answers with. + + Every data door judges environment membership. The rule is one function in `@objectstack/core` (`judgeEnvironmentMembership`), asked by the runtime dispatcher and the REST server alike; the dispatcher's own answers are unchanged. + + It is off in exactly two cases: `api.enforceProjectMembership: false` (ADR-0135 D9: a host whose environment-native auth is the membership), or no `sys_environment_member` object registered. The switch is read through one function for every door (`resolveEnvironmentMembershipEnforcement`): an explicit `enforceProjectMembership` wins, else it is on exactly when environment scoping is on. `objectstack serve` hands the stack's `api.enforceProjectMembership` to the REST and the dispatcher plugin alike. + + Migration: a host that composes the plugins itself passes the same `enforceProjectMembership` to `createRestApiPlugin` as to `createDispatcherPlugin`. +- 695b9db: fix(plugin-security)!: an app-authored elevation's reads and writes are judged by its caller's organization wall + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is the answer a data operation gets when it runs under an action body's, a system hook's or a system flow's elevation, and three schema descriptions that state it: no stored row, registry key or authored value changes, so there is nothing for a migration to rewrite and no tombstone. --> + + The rule: elevation lifts a caller's business rules, never the organization wall. An action body, a hook that runs as system (`runAs: 'system'`, a system context it inherits, its `ctx.api.sudo()`) and a flow that runs as system have their reads and writes judged by the organization wall of the caller they run for (ADR-0095 D1, ADR-0123 D1/D2), under every tenancy posture and on every object, a federated one included. + + **BREAKING** for an action body, a system hook or a system flow run for a signed-in caller. + + - FROM: the elevation, not the caller's organization wall, decided what such a context reached of a tenant-scoped object. + - TO: the caller's own organization wall decides it: + - with no active organization under `isolated`, an empty membership set under `group`, or no membership at all under `single`: its reads of a tenant-scoped object resolve to nothing (zero rows, no error); its delete and purge are answered by that read rule (a predicate delete matches nothing, a by-id delete answers `404 RECORD_NOT_FOUND`); and its other writes (insert, update, transfer, and the recycle bin's restore) are refused with `403 PERMISSION_DENIED`, naming the missing active organization or membership; + - under `group`, a member reads and writes the union of the organizations they hold a membership in, with or without an active organization; + - on a federated object it reads only rows of the caller's organization scope, and a by-id write of a row outside it answers `404 RECORD_NOT_FOUND`, as a row that is not there; + - an insert with no active organization on a walled tenant object is refused with `403 PERMISSION_DENIED`; + - for every caller, an active organization included: a write whose own data names an organization outside the caller's wall, and an update whose own data empties a row's organization, are refused with `403 PERMISSION_DENIED`; + - the check of the row a by-id write names is read inside the transaction the write carries, so a row the body's own transaction wrote is the caller's to write again in it; + - a system flow started by a record change, and every system run whose own user is its caller, carries that user's membership set and posture rung from run setup: under `group` it reads the union of the user's memberships, with or without an active organization. The set and rung are those of run setup: a membership the user gains or loses while the run waits is read by the next run. A decided segment, a run that began for no caller and a child run of either carry neither: a decided segment's caller's facts are resolved for it again. + + **Not moved.** A caller with an active organization keeps exactly that organization's reach. Objects outside tenancy, objects with no organization column, and a platform operator crossing the wall on an object whose posture permits it are answered as the caller's own requests answer them. System work that runs for no caller (a scheduled run, a platform plugin's own system context, the seeders) is unchanged, and so is a system flow that began for no caller after an approval decision: the decider is its attribution user, not its caller. A run that a write of such a segment starts begins for no caller too, and carries neither the writer's membership set nor its posture rung; its trigger user stays the writer, so an approval's submitter exclusion, who may read the run's state, and the run's history answer as before. A run that a write of a decided segment of a run that began for a caller starts begins for the decider, as before. A system flow that began for a caller is judged by that caller after a decision, not by the decider. + + The fix for a caller: select an active organization before running the action, or start the run from a session that has one. A body that must place a row in another organization does so as a member of that organization, through its own request. The `runAs` descriptions of flows and hooks and the `body` description of actions now state this limit beside the other two. + + Also in this change: + - `@objectstack/core` exports `RUN_CALLER`, `markRunCaller` and `runCallerOf`: the server-constructed mark a flow run's data context carries wherever the run's own user is not its caller (a decided segment, a run recorded as begun for no caller in every segment, and a child run of either), naming the user its run began for, or that it began for none. + - `@objectstack/service-automation`: a `runAs: 'system'` run's data context carries the run user's membership set (`accessible_org_ids`) and posture rung, seeded once at run setup; it carries no grants. A run context may record `beganForNoCaller: true`. A run whose own user is not its caller is seeded with neither, and its data context carries neither. + - `@objectstack/objectql`: the hook session of a write made under that mark, for a run that began for no caller, carries it; `@objectstack/trigger-record-change` records that the run such a write fires began for no caller, and keeps the writer as its trigger user. +- ecd4b2b: fix(plugin-auth)!: SSO discovery connects only to addresses that are public at connect time + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped. What moves is runtime answers of the SSO doors: a read of an identity provider's OpenID Connect configuration is sent only to an address that is public when the connection is made, unless the deployment's trusted origins list its origin. `AuthManagerOptions` gains one optional member and the guarded fetch's init one optional member; nothing stored, no registry key and no authored value changes, so there is nothing for a migration to rewrite and no tombstone. --> + + **BREAKING** for an identity provider whose OpenID Connect host resolves to a private, loopback, link-local, cloud metadata or host-platform address (`168.63.129.16` included), or to any other non-public address, on an origin `OS_TRUSTED_ORIGINS` does not list, at the moment the server reads it: a registration (`POST /api/v1/auth/sso/register`, or the Register SSO Provider bridge) is refused `400 VALIDATION_FAILED` on `issuer` (or on `oidcConfig.discoveryEndpoint` when the registration names one), an update that turns "sign out of the company sign-in too" on is refused `400 VALIDATION_FAILED` on `signOutOfIdp`, and a sign-in's callback ends on the error page with `invalid_provider`. It ships `patch` because it is a non-protocol breaking change (AGENTS.md Post-Task Checklist step 3): no metadata author writes an SSO provider, so `Metadata-protocol` is `none`. + + SSO discovery connects only to addresses that are public at connect time. Every read the server makes of an identity provider (a registration's discovery document, the sign-out switch's read of that document on a registration or an update, a sign-in's discovery, and the token, key-set and userinfo reads of a sign-in's callback) is sent through the platform's outbound-request guard (`@objectstack/core/egress`): the connection resolves the host, judges every address by the platform's address classes, and connects to an address it judged, so the address judged is the address connected. A host that is not public is refused and nothing is sent to it, whatever an earlier lookup of the same name answered, and so is a name that does not resolve when the read connects. Only reads at the origins the provider's configuration names are judged (the registration's body, or the provider row the sign-in reads): every other request the server makes while answering, such as a datastore or a rate-limit store reached over HTTP, is sent as before. A registration still judges its discovery host before reading it, now by the same rule and the same address classes, an address literal included; a name that does not resolve there is left to the read, which refuses it. The origins a registration names stay trusted for that registration's discovery checks only, and `OS_EGRESS_ALLOWED_TARGETS` does not open SSO discovery. + + `@objectstack/core`: the guarded fetch's init takes fetch's `redirect` mode; `manual` answers a redirect response as it is and follows nothing, for a caller that refuses redirects itself. + + Fix for an operator whose identity provider runs on an internal network: list its origin in `OS_TRUSTED_ORIGINS`, and its reads are sent as before. +- d280de9: docs: stale prose on summary currency, the temporal-comparand door and analytics filters now says what the code does + + Clause-②: no + Metadata-protocol: none + + No accepted value, key or answer moves. Two refusal messages change their words: + + - A `currencyMode: 'dynamic'` summary over a child `currency` field that is neither `dynamic` nor a well-formed `record` / `fixed` (a stored `fixed` field with no `defaultCurrency`, or a `currencyMode` outside the three) is still refused, and the refusal now names what the child lacks: "is a 'currency' field in `fixed` mode with no `defaultCurrency` code (the currency it is fixed to is missing)", or "is a 'currency' field whose `currencyMode` 'X' is none of `dynamic`, `fixed` and `record`". Before, it said only "is a 'currency' field, not a `currency` field in `dynamic` mode". + - The temporal-comparand door's refusal of a comparand no temporal rule reads (`'not-a-date'`, the preset name `'last_30_days'`) now ends "As written it would reach the driver and be compared as text: it may select every row, none or the wrong ones (or raise a database error), an answer indistinguishable from a real one." Before, it said the comparison would "compare false for EVERY row", which was wrong for `$lt` and others that selected every row, for a partial day such as `'2026-06'` that selected a subset, and on PostgreSQL, which raised a database error. Its `having` twin says the same of the groups it would keep, where it said "no group or every group, a 200". + + The upgrade-guide entry `summary-dynamic-currency-rollup-home-amount-judged-as-served` now states the admitted set as both doors enforce it: a `dynamic` summary may roll up any child `currency` field in `dynamic` mode, a stored home amount included. Source comments and published docblocks that said every `{placeholder}` is stepped around by the temporal door now state the per-kind rule: a date macro is stepped around and judged by its year once resolved, a period key and a context token are judged as written, and an unknown or record-context token is left to the resolver. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [9c57bd2] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [c059e60] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/types@18.7.0 + - @objectstack/metadata-core@18.7.0 + ## 18.6.0 ### Minor Changes diff --git a/packages/core/package.json b/packages/core/package.json index 0cc87556f4e..3c47b33b82f 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/core", - "version": "18.6.0", + "version": "18.7.0", "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 8291525cfc9..0d5a71803d9 100644 --- a/packages/create-objectstack/CHANGELOG.md +++ b/packages/create-objectstack/CHANGELOG.md @@ -1,5 +1,46 @@ # create-objectstack +## 18.7.0 + +### Minor Changes + +- 6ffa816: feat(create-objectstack): the blank scaffold lists no connector plugins until the app declares a connector + + Clause-②: no + Metadata-protocol: none + + A new project's `objectstack.config.ts` no longer lists `ConnectorRestPlugin`, `ConnectorOpenApiPlugin` and `ConnectorMcpPlugin`, and its `package.json` no longer depends on the three connector packages. A plugin is code, so an app that lists any plugin installs managed only. The scaffold's own plugin list therefore kept every AI-built app from installing as an unmanaged copy, such as a marketplace trial. + + To use a connector, install its provider package and add it to `plugins:`, for example `plugins: [new ConnectorRestPlugin()]`. The template's README and the comment in `objectstack.config.ts` show how. The install contract is unchanged: a stack that lists plugins still validates for managed install only. + +### Patch Changes + +- afbd903: feat(skills): a process skill for running a metadata-app project + + Clause-②: no + Metadata-protocol: none + + The skills catalog gains `objectstack-project`. The domain skills teach how to write each kind of metadata; this one teaches how a change moves through an app project: whether it belongs in the app or the platform, what to write at each stage, what the app tests itself (with `bootStack` from `@objectstack/verify`) and what `os validate`, `os lint` and `os verify` already check, how a platform defect is handled without a workaround, how a change is described for customers, and how to bump `@objectstack/*` and carry customer data across an upgrade with a backfill. Steps that matter only to an app shipped to customers are marked, and the light path is the default. + + A project that already syncs its skills gets the new one on its next `npx skills@1.7.2 experimental_sync --agent <runtime> --copy -y` after bumping `@objectstack/skills`. + + `npm create objectstack` projects now: + + - point `AGENTS.md` at `objectstack-project` in place of its hand-written skill table, which listed nine of the catalog's skills; + - carry a three-line `.github/pull_request_template.md`: what a user can do now, how it was checked, which docs changed. + + Existing projects are not changed. +- 0188989: feat(scaffold): new projects run their tests in CI + + Clause-②: no + Metadata-protocol: none + + `npm create objectstack` projects now run `pnpm test` in `.github/workflows/ci.yml`, after `validate`, `lint` and `typecheck`, so the starter `note.test.ts` and every test you add run on each push. + + `os init -t app` and `os init -t empty` now declare a `test` script (`vitest run`), list `vitest` in `devDependencies`, and ship one starter test (`app.test.ts`, `project.test.ts`) that reads the project's definition, so the same CI workflow passes on a project made either way. To test what the engine does with a record, add `@objectstack/verify` and boot the stack with `bootStack`; the `objectstack-project` skill shows how. + + Existing projects are not changed. To take the CI step, add `- run: pnpm test` after `- run: pnpm typecheck` in your `ci.yml`; a project with no `test` script adds vitest and the script first. + ## 18.6.0 No changes in this release. diff --git a/packages/create-objectstack/package.json b/packages/create-objectstack/package.json index 99074c4ae2e..3cd6deaff2b 100644 --- a/packages/create-objectstack/package.json +++ b/packages/create-objectstack/package.json @@ -1,6 +1,6 @@ { "name": "create-objectstack", - "version": "18.6.0", + "version": "18.7.0", "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 56dfcde7de3..15567d599e8 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": "18.6.0", - "@objectstack/runtime": "18.6.0", - "@objectstack/plugin-hono-server": "18.6.0" + "@objectstack/spec": "18.7.0", + "@objectstack/runtime": "18.7.0", + "@objectstack/plugin-hono-server": "18.7.0" }, "devDependencies": { - "@objectstack/cli": "18.6.0", - "@objectstack/skills": "18.6.0", - "@objectstack/verify": "18.6.0", + "@objectstack/cli": "18.7.0", + "@objectstack/skills": "18.7.0", + "@objectstack/verify": "18.7.0", "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 29d2a89bde7..f64bad6262c 100644 --- a/packages/drivers/driver-memory/CHANGELOG.md +++ b/packages/drivers/driver-memory/CHANGELOG.md @@ -1,5 +1,185 @@ # @objectstack/driver-memory +## 18.7.0 + +### Patch Changes + +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [9c57bd2] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [c059e60] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/types@18.7.0 + - @objectstack/core@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/drivers/driver-memory/package.json b/packages/drivers/driver-memory/package.json index 98aa281259e..4c122935ded 100644 --- a/packages/drivers/driver-memory/package.json +++ b/packages/drivers/driver-memory/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/driver-memory", - "version": "18.6.0", + "version": "18.7.0", "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 e99df102a31..1735fffe0a5 100644 --- a/packages/drivers/driver-mongodb/CHANGELOG.md +++ b/packages/drivers/driver-mongodb/CHANGELOG.md @@ -1,5 +1,197 @@ # @objectstack/driver-mongodb +## 18.7.0 + +### Patch Changes + +- 895dd43: fix(driver-mongodb): refuse a non-UTC date-bucket timezone on a direct `aggregate()` call instead of answering UTC buckets + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is one runtime answer of MongoDBDriver.aggregate() to a direct caller: a non-UTC timezone with a date bucket is refused instead of answered with UTC buckets. No stored row, registry key or authored value changes, so there is nothing for a migration to rewrite and no tombstone. --> + + **BREAKING** for a direct `MongoDBDriver.aggregate()` call that carries a non-UTC `timezone` with a `dateGranularity` group-by item: it used to answer UTC buckets and now answers `NOT_IMPLEMENTED` / 501. It ships `patch` because it is a non-protocol breaking change (AGENTS.md Post-Task Checklist step 3): no metadata author writes a driver query, so `Metadata-protocol` is `none`, and the engine path never sends this driver a zone. + + `MongoDBDriver.aggregate()` now refuses a query that carries a non-UTC `timezone` (`DriverAggregateQuery.timezone`) together with a `dateGranularity` group-by item, answering `NOT_IMPLEMENTED` / 501 before anything is sent to the server. It used to ignore the zone and return UTC calendar buckets with no word. This driver does not declare `supports.zonedDateBucketing`, so `engine.aggregate` never sends it a zone and buckets such a query in memory; only a caller that goes around the engine is affected. No `timezone`, or `UTC`, buckets in UTC as before, and a `timezone` on a query with no date bucket is still ignored. + + Fix for a direct caller: route the query through `engine.aggregate`, or drop the `timezone` and accept UTC buckets. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [9c57bd2] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [c059e60] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/types@18.7.0 + - @objectstack/core@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/drivers/driver-mongodb/package.json b/packages/drivers/driver-mongodb/package.json index c3bbc542505..512a273bb0a 100644 --- a/packages/drivers/driver-mongodb/package.json +++ b/packages/drivers/driver-mongodb/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/driver-mongodb", - "version": "18.6.0", + "version": "18.7.0", "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 6f7085c904e..9152a883d07 100644 --- a/packages/drivers/driver-odata/CHANGELOG.md +++ b/packages/drivers/driver-odata/CHANGELOG.md @@ -1,5 +1,199 @@ # @objectstack/driver-odata +## 18.7.0 + +### Patch Changes + +- 0a3dd40: feat: analytics compiles the `SharedRecordIds` fixed-read leaf, the access explainer resolves it at the record, and OData refuses it (ADR-0155, step 5 of 6) + + Clause-②: yes + Metadata-protocol: none + + No visible change on its own: nothing on main writes a `SharedRecordIds` leaf yet. The sharing plugin starts writing it at ADR-0155's last step. + + - **Analytics, the native SQL path** (`@objectstack/service-analytics`). A read scope carrying `{ id: { $in: SharedRecordIds.read(object, user) } }` compiles to one subquery in the list's own position, `id IN (SELECT "record_id" FROM "sys_record_share" WHERE "object_name" = ? AND "recipient_type" = ? AND "recipient_id" = ? AND "record_id" IS NOT NULL AND "record_id" <> '')`, with every value bound and no tenant scope on the subquery (ADR-0155 ① ruled A). The native strategy takes such a scope only when the host answers `AnalyticsServiceConfig.fixedReadLeafClassOf` with `null` for each leaf (outside both classes ADR-0155 D4 recognises: the object on another datasource than `sys_record_share`, or a middleware or `beforeFind` / `afterFind` hook registered for `sys_record_share` by name) and the dialect is SQLite, PostgreSQL, MySQL or SQL Server. Otherwise it declines, and the ObjectQL engine path answers. A host that wires no answer keeps today's behaviour: the native path declines every scope that carries the leaf. This change ships the hook unwired: `AnalyticsServicePlugin` passes no answer, so the native path declines a scope carrying the leaf and the engine path answers, until #35946 wires it. + - **Analytics, the ObjectQL path.** The read-scope merges (`withReadScope`, the related-object scope, the label read) admit a placed read-form leaf and hand it to the engine by reference. The dry-run SQL echo prints the subquery. A leaf in any other position, under `$nin`, on another object or in its write form is refused, `INTERNAL_ERROR` / 500, logged at `error` once per service logger. + - **Analytics, the query's `where`.** A leaf reaches analytics only in the read scope. A leaf anywhere in a query's `where`, in either spelling, is now refused before either strategy runs, with `INTERNAL_ERROR` / 500. The message names the leaf and its table, not the recipient. Before this release `{ id: { $in: leaf } }` there answered `INVALID_FILTER` / 400, with a message that printed the recipient. A bare `{ id: leaf }`, or an array-form `=`, was read as a relation condition on `id`. No request can spell the leaf, so only in-process code could reach this. + - **The access explainer** (`@objectstack/plugin-security`). `ISecurityService.explain` resolves each leaf in the sharing read filter at the record it judges, with one read of `sys_record_share` under the leaf's own predicate, keyed by the record ids (one read for a whole batch). The sharing layer's `rowFilter` then has the two shapes it has today: `{ id: { $in: [recordId] } }` in the share arm for a caller with a grant on the record, and the share arm left out for a caller without one. The published `rowFilter` never carries the leaf. A leaf it cannot resolve is refused, `INTERNAL_ERROR` / 500, logged at `error` once. That includes a leaf anywhere but `{ id: { $in: leaf } }` in the object's own filter, such as one inside a relation condition or a composed `ReadableIds` scope, as the engine and the analytics compiler refuse it. + - **OData** (`@objectstack/driver-odata`). `find` and `count` refuse a `where` carrying the leaf before any request is sent, `INTERNAL_ERROR` / 500. An OData `$filter` has no form of the subquery, and the driver declares no `fixedReadLeaves`. Before this release a direct `find` left the leaf's predicate out of the `$filter` it sent. The engine already refused the leaf before calling this driver. + - **The array form** (`@objectstack/spec`). `parseFilterAST` now refuses a leaf in the array form with `INTERNAL_ERROR` / 500 wherever it answered `INVALID_FILTER` / 400: as an `in` / `nin` comparand, as a member of an `in` / `nin` list, or as the comparand of a scalar operator (`!=`, `>` and the rest). The old messages printed the leaf's inputs, the recipient among them. The new message names the leaf and its table only. An unbranded copy that crossed JSON is still `INVALID_FILTER` / 400. An array-form `=` is passed on by reference and refused by the engine, as before. + - **New exports** (`@objectstack/objectql`). `fixedReadLeafClassOfEngine(engine, leaf)` answers which ADR-0155 D4 class, if any, keeps the engine from handing a leaf to a driver. `driverEvaluatesFixedReadLeaf` answers whether a driver declares the leaf. Neither reads or writes anything. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [9c57bd2] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [c059e60] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/types@18.7.0 + - @objectstack/core@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/drivers/driver-odata/package.json b/packages/drivers/driver-odata/package.json index 10abc80d57a..aa4132966ce 100644 --- a/packages/drivers/driver-odata/package.json +++ b/packages/drivers/driver-odata/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/driver-odata", - "version": "18.6.0", + "version": "18.7.0", "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 ffd5bbd17bf..c6555ec9850 100644 --- a/packages/drivers/driver-sql/CHANGELOG.md +++ b/packages/drivers/driver-sql/CHANGELOG.md @@ -1,5 +1,392 @@ # @objectstack/driver-sql +## 18.7.0 + +### Minor Changes + +- e114324: feat(units): a number field declares its unit with `unitConfig`, and the engine checks every unit code it stores + + Clause-②: yes + Metadata-protocol: added + + ADR-0158 R1, the membership card (#35489). + + **`unitConfig` on a field** (`@objectstack/spec`, `UnitConfigSchema`): + + - `{ unitMode: 'fixed', unit: 'KGM' }` on a `number`: the quantity is always in one standard UN/ECE Recommendation 20 unit, checked at parse against the standard unit table (exact uppercase; `C62` and `EA` are answered with the piece, `H87`). + - `{ unitMode: 'record', unitField: 'uom', unitDimension?: 'mass' }` on a `number`: each record names its unit by code in the sibling `text` field `unitField` names. The object refuses a pointer into nothing, into a non-`text` field, through a parent (`PARENT_FIELD.UNIT_FIELD` is reserved: a child cannot follow its parent's unit yet), or into a field carrying its own marker, and two quantities sharing one unit field with different `unitDimension` values. + - `{ unitMode: 'code', unitDimension?: 'count' }` on a `text`: a field holding a unit code with no quantity beside it, such as a material's base unit (Open item 8, ruled A). It is a unit marker, not a value domain, and is refused beside a `valueDomain`. + - `unitMode` is required and has no default. The key is refused on every other field type (`currency`, `formula`, `summary` included). A quantity stays a bare number, and needs no `scale`. + + **The write check** (`@objectstack/objectql`): at every insert, by-id update, predicate update and `validate()` preview, a unit code the row stores must be a standard code or one of the organization's own non-retired units (`sys_unit`), in exact uppercase and of the declared `unitDimension`, and a quantity may not stand beside a blank code. The row image is judged whenever the write touches the quantity or its unit field (Open item 9). Refusals, each 400, registered in the error-code ledger: `ERR_UNIT_CODE_REQUIRED`, `ERR_UNIT_CODE_UNKNOWN`, `ERR_UNIT_CODE_RETIRED`, `ERR_UNIT_DIMENSION_MISMATCH`. A row resting on a code that is no longer a member stays editable in its other fields; a quantity edit beside it is refused until the row moves to a member unit. + + **A unit is retired, never deleted**: the engine refuses a delete of a `sys_unit` row for every caller, a system writer and an automation run included, by id and batched (405 `ERR_UNIT_DELETE_REFUSED`), and `organization_admin` names `sys_unit` explicitly with no delete (`@objectstack/plugin-security`). + + `@objectstack/metadata-core` and `@objectstack/driver-sql` classify the new field key (field-level security keeps it; the DDL does not read it). `@objectstack/platform-objects`: the `sys_unit` docblock names its readers. + +### Patch Changes + +- 24cc61f: fix(driver-sql): `distinct()` and aggregate group keys read a stored text `'0'` / `'false'` boolean as `false`, as `find()` does + + Clause-②: no + Metadata-protocol: none + + A declared `Field.boolean` / `Field.toggle` column can hold the text `'0'`, `'1'`, `'true'` or `'false'` on SQLite: a column whose type changed to boolean without a rebuild keeps TEXT affinity, and rows a boot has not converged yet still hold the legacy text. Record reads presented those values as their boolean, but `distinct()` and an `aggregate()` group key presented them as `Boolean(value)`, so a stored `'0'` or `'false'` showed as `true`. A group-by over a yes/no field then counted un-ticked rows in a `true` bucket, and `distinct()` could answer `[true]` for a column with no ticked row. + + Both doors now present a boolean through the same function the record read uses: `0`, `'0'` and `'false'` read as `false`; `1`, `'1'` and `'true'` read as `true`. Any other value reads as it did. Postgres is unchanged, since it stores a real boolean. `min` / `max` / `sum` / `avg` over a boolean still answer a number, as before. No metadata key, value or default changes. +- 65b67be: feat(mcp): `aggregate_records` orders, cuts and counts its groups in the database + + Clause-②: yes (widening: `orderBy` and `limit` arguments on `aggregate_records`) + Metadata-protocol: none + + A ranking question ("the top five customers by revenue") over more groups than the tool's row cap used to come back as every group, or the first page of them, in no stated order, and the client ranked what it happened to get. `aggregate_records` now takes `orderBy` — a list of `{ field, order }` naming an aggregation alias or a group key (its alias when it has one) — and `limit` (at most the row cap). The database orders the groups, cuts them, and counts how many groups it formed before the cut, in one statement; the result carries the groups, `totalGroups` (the key the tool already answers, now the database's count of the groups before the cut), and `truncated: true` when more groups existed than came back. + + - An order key that names no column of the aggregated row is refused `INVALID_SORT` / 400, naming the columns the query projects. + - Only a driver that runs the cut in its own SQL statement serves it: `driver-sql` (every dialect it speaks; the window `count(*) over ()` needs MySQL 8 or later), the WASM SQLite driver, and the Turso driver's local and replica faces. Every other driver (the in-memory driver, MongoDB, OData, Turso's remote face), an aggregate the engine computes in memory (a date bucket, a reference timezone or a measure filter the driver does not run), and an aggregate with `having` are refused `INVALID_QUERY` / 400 before anything is read. Groups are never ordered or cut in the application. + - On an order key without a `rank`, a NULL ranks last in either direction, except a `sum` or a count with no value, which ranks as the `0` it is served as. Group keys the order does not name, and a group key it names only by a `rank`, break ties, ascending, NULL last, so two runs of one call answer the same groups in the same order. + - An order key may carry a `rank`, a list of the column's values: the statement ranks each listed value by its position and every other value (a NULL among them) on one rank past them, before the cut, so the unlisted values come after the listed ones ascending and before them descending; among themselves they follow the column's own ascending order, NULL last. It is the tool's own, never an `aggregate_records` argument. + - A `limit` with no `orderBy` keeps the declared option order the uncut answer already follows: groups keyed by a leading select or radio field come back in the order the field declares its options, a value no option declares last, and the database takes that order before the cut, so the cut keeps the first declared groups. An `orderBy` the caller sends overrides it. + - The cut answer carries what the uncut one does: a fixed-currency amount's currency in `currencies`, and `KEY__label` beside each lookup or master-detail group key, the record's name read with the caller's own permissions. + - An amount whose records each carry their own currency is ranked by its bare numbers across currencies: the tool description says to rank it inside one currency by filtering `where` on its currency code field. + - Without `orderBy` and `limit` the tool answers as before. + + `@objectstack/objectql` exports `AGGREGATE_ORDER_CUT`, the engine-internal read option of `aggregate` that carries the request (a symbol, so no wire request can set it), with the `AggregateOrderCutRequest`, `AggregateOrderKey` and `AggregateOrderCutOutcome` types. `McpDataBridge` gains the optional member `aggregateGroups`; a bridge without it refuses `orderBy` / `limit` with `NOT_IMPLEMENTED` / 501 and keeps serving the rest of the tool. Nothing that was accepted before is refused. +- 1caee8c: feat(mcp): "each X with its latest Y" in one `query_records` call — `latestPer` + + Clause-②: yes (widening): a new read form on the published MCP tool surface. Judged from the card content; the build confirms it + Metadata-protocol: none + + `query_records` takes `latestPer: { by, orderBy }`: one row per group, the group's first row in the given order. `by` names 1 to 3 fields, `orderBy` 1 to 3 keys (`asc` / `desc`); a tie goes to the record id in the direction of the last key, and an empty order value ranks last. "Each account with its latest deal" is `{ objectName: 'crm_opportunity', latestPer: { by: ['account'], orderBy: [{ field: 'close_date', order: 'desc' }] } }`. + + - The row is chosen among the rows the caller may read and the `where` admits: a group whose newest row is hidden from the caller answers its newest readable row, never the hidden one and never nothing. The organization wall holds inside the choice. Field masking still applies to the returned rows. + - A partition or order field the caller may not read is refused as it is in `orderBy`; a computed, JSON or multi-value field, or a dotted path, is refused as a partition or order field. + - `limit` counts groups, capped at the tool's `maxLimit` like any list. The answer is `{ object, records, hasMore }` and never a `total`; when more groups exist than came back it carries `truncated: true`. + - Served by the SQL driver (Postgres, MySQL, SQLite) and by `driver-sqlite-wasm` and the Turso driver on a local or embedded-replica database: the driver compiles a `ROW_NUMBER()` window over the read's own scoped selection. Every other driver (in-memory, Turso's remote connection, MongoDB), an object with an `afterFind` hook and an object with object-scoped read middleware refuse with `INVALID_QUERY` / 400 before anything is read. The Turso driver's remote face refuses the directive itself too. + - New exports: `LATEST_PER`, `LATEST_PER_MAX_KEYS` and the `LatestPerRequest` / `LatestPerOrder` / `LatestPerOutcome` types from `@objectstack/objectql`; `LATEST_PER_DIRECTIVE`, `latestPerDirectiveOf` and the `LatestPerDirective` / `LatestPerDirectiveOrder` types from `@objectstack/driver-sql`; `McpLatestPer` from `@objectstack/mcp`. The request rides an in-process read option, never a wire or query key; `@objectstack/spec` is unchanged. + + Without `latestPer`, `query_records` and every read are unchanged. +- 61722e9: feat: Change Owner cascade — a relationship declares `transferBehavior: 'cascade'`, and the Change Owner dialog offers it as a tick + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: follow-up #36713 + + A Change Owner can now move related records along with the record, relationship by relationship. + + - **The declaration.** A `lookup` or `master_detail` field takes `transferBehavior: 'none' | 'cascade'`, beside `deleteBehavior` (omitted means `'none'`). `'cascade'` on the child's reference field to a parent says: when the parent's owner changes, the child records that point at it and are owned by the parent's previous owner may move to the new owner too. No other child records move; there is no filter key. + - **Refused where it could never act.** The key is refused on any other field type, `'cascade'` is refused on a reference to a `sys_` object and on a multi-value reference (`multiple: true`), and `'cascade'` is refused on a field of an object that does not offer Change Owner itself: one that is not structurally eligible (no reassignable owner), a `controlled_by_parent` detail (its access already follows its master), or one whose `userActions.transfer` is off. Each refusal names the field and the fix. + - **The request.** `POST /api/v1/data/:object/:id/change-owner` and `POST /api/v1/data/:object/change-owner` take an optional `cascade: [{ object, field }]` naming the relationships to move along (`data.changeOwner` / `data.changeOwnerMany` in `@objectstack/client`). A relationship that does not declare `'cascade'`, or whose child does not offer Change Owner, is refused `400 VALIDATION_ERROR` before anything is written; so is a cascade with a queue target. Each cascaded record is updated as the caller, so it needs the caller's own transfer grant on the child object. Each relationship's outcome in the answer's `cascade[]` lists every record the caller's write refused, with its id, code and sentence: a related record whose `owner_id` is locked on it (read-only, or under a `readonlyWhen` that holds) is refused `FIELD_NOT_ACCESSIBLE` and keeps its owner, as the record itself would be, while the record's own move stands. One call moves at most 500 related records; the records past that limit are counted in `remaining`, still with the previous owner, not listed. When a relationship's records could not be read, its outcome carries `readFailure` and none of them moved. + - **The candidates.** `GET /api/v1/data/:object/change-owner/cascades` (`data.changeOwnerCascades`) lists the relationships declared to an object whose child offers Change Owner. A child whose declared API exposure does not serve `update` is left out, and so is a child of a disabled package. + - **The Studio.** The field form and the object form's field rows offer `transferBehavior` beside `deleteBehavior`, on `lookup` and `master_detail` fields; the row's label and help text ship in the metadata-forms locale packs of `@objectstack/platform-objects`. + - **The dialog.** For a person target, the Change Owner dialog lists those relationships on which the explain engine allows the caller the `transfer` operation, one tick each, sends the ticked ones, and draws each relationship's outcome, every record it did not move included. + + A plain `owner_id` update is unchanged: the declaration is read only by the Change Owner action. +- c0484c8: fix(driver-sql): on SQLite, a boolean field retyped from text stores `1` / `0`, so a saved `false` no longer reads as `true` + + Clause-②: no + Metadata-protocol: none + + On SQLite, a field whose type changed from `text` to `boolean` keeps its TEXT column. Every write of that field (create, update, upsert, bulk create, bulk update, update-many) stored `false` as the text `'0.0'` and `true` as `'1.0'`, because the JS number a boolean was bound as reached SQLite as a REAL. Reads then answered `true` for both, `distinct()` and group keys counted every row as `true`, and an `= false` filter disagreed with what the rows showed. + + - **Writes.** A declared scalar `boolean` / `toggle` value is now bound as the text `'1'` / `'0'`. A column the driver created still stores the integer `1` / `0`, so its stored form does not change; a retyped TEXT column stores `'1'` / `'0'`, which reads back as the boolean that was written. + - **Filters.** A boolean comparand on such a field is bound the same way, so `= false`, `= true` and `in [false]` select exactly the rows that read as that boolean. + - **Existing rows.** The boot's boolean storage convergence now also rewrites the `'1.0'` / `'0.0'` that earlier writes left, the same as it rewrites `'true'` / `'false'`; `os migrate plan` counts them under `normalize_boolean_storage`. Nothing to run by hand: the next start converges them. +- 643fe3b: feat(driver-sql, driver-turso): the SQL drivers compile the `SharedRecordIds` fixed-read leaf to a subquery (ADR-0155, step 3 of 6) + + Clause-②: yes + Metadata-protocol: none + + No visible change on its own: nothing on main writes a `SharedRecordIds` leaf yet. The sharing plugin starts writing it at ADR-0155's last step. + + - **The compile** (`@objectstack/driver-sql`). A `SharedRecordIds` leaf in a field's `$in` compiles to one subquery in the list's own position: `id IN (SELECT record_id FROM sys_record_share WHERE object_name = ? AND recipient_type = 'user' AND recipient_id = ? AND record_id IS NOT NULL AND record_id <> '')`. The write form adds `AND access_level IN (…)` inside the subquery. Every value is bound. The subquery carries no tenant scope (ADR-0155 ① ruled A), and the outer statement's tenant wall is unchanged. It compiles on every read verb and on `updateMany`, for SQLite, PostgreSQL, MySQL, SQL Server and Oracle. SQLite and PostgreSQL were run live for this release. MySQL, SQL Server and Oracle are pinned at compile shape, and MySQL also runs live in CI's Temporal Conformance job. On PostgreSQL, an object whose `id` column is not text (an integer- or uuid-keyed federated table) fails the compiled subquery with `DATABASE_ERROR` (42883) instead of answering its rows. That case is open on #35906 (ADR-0155 D-0) and is settled before the sharing plugin writes the leaf. On Oracle the `<> ''` half is left out, because Oracle stores `''` as NULL. `SqliteWasmDriver` and Turso's local mode inherit the compile. + - **The remote transport** (`@objectstack/driver-turso`). Turso's remote mode compiles the same subquery with its own compiler, from the same predicates. + - **The declaration.** `SqlDriver.supports.fixedReadLeaves` is `['SharedRecordIds']`, and `TursoDriver` inherits it in every mode. The engine's seam now hands the leaf to these drivers instead of refusing it. + - **The refusal.** A leaf anywhere other than a field's `$in` comparand is refused before any statement runs, with `INTERNAL_ERROR` / 500, and logged at `error` once per driver. + - **New exports** (`@objectstack/driver-sql`). `findMisplacedFixedReadLeaf`, `fixedInnerReadPredicates` and `misplacedFixedReadLeafMessage` are the walk, the predicates and the refusal text the two compilers share. + - **The shared case-set** (`@objectstack/spec`). `SHARED_RECORD_IDS_CASE_SET` gains a note (`n5`) on a doc whose only grant is stamped in another organization, and a nested case read under a tenant. Together they witness, in the nested position, that the inner read carries no tenant scope. +- 850bcec: feat(driver-sql): on PostgreSQL the share-grant subquery compares `record_id` as the outer key's own type (ADR-0155 O2) + + Clause-②: yes + Metadata-protocol: none + + No visible change on its own: nothing writes a `SharedRecordIds` leaf yet. The sharing plugin starts writing it at ADR-0155's last step, and this makes that step safe on PostgreSQL tables whose key is not text. + + - **PostgreSQL, a key that is not text.** The compiled subquery `id IN (SELECT record_id FROM sys_record_share WHERE …)` now projects `record_id` cast to the base type of the column it is compared with: `CAST(NULLIF(record_id, '') AS <type>)`. A federated table keyed by `integer`, `bigint`, `smallint`, `numeric`, `uuid`, `character(n)` or a domain over one of them answers the same rows as the id list of the same grants: `07` names 7, an upper-case or braced uuid names its lower-case twin, and a padded grant names a `character(n)` key. Before, an integer or uuid key failed the statement with `DATABASE_ERROR` (42883), and a `character(n)` key silently missed a padded grant. + - **A malformed grant id** (`abc` against an integer key) fails the statement with `DATABASE_ERROR` / 500, the same answer the id list gives for it. + - **How the type is known.** The driver reads the column types of the compared table from `pg_catalog` once, the first time a statement holding the leaf reaches that table, and outside a transaction keeps the answer for the life of the driver (inside one, see the next bullet). A statement with no leaf reads nothing. A failed or empty catalog read records nothing and is asked again by the next statement. + - **No reading, no statement.** On PostgreSQL a statement whose leaf is compared with a table the driver holds no catalog reading of is refused with `INTERNAL_ERROR` / 500 (logged once), and never runs uncast, which on a `character(n)` key would miss a padded grant silently. A table has no reading when the catalog read fails or finds no such relation; nothing is recorded, and the next statement reads the catalog again. + - **Read where the statement runs.** A statement in the caller's transaction reads the catalog on that transaction's own connection, inside a savepoint: it needs no second pooled connection, it sees a table the transaction created, and a failed read rolls back the savepoint alone, so the caller's transaction stays usable. That reading is kept for that transaction only, and reaches every savepoint derived from it, so a write the driver itself retries in a savepoint (an `updateMany` on an object whose `updated_at` column is only presumed) compiles with it; a reading a savepoint takes never reaches its parent. Each transaction therefore pays one savepoint and one catalog read per table it compares a leaf against. A statement outside a transaction reads on the pool and the reading is kept for the life of the driver. + - **Unchanged, and what text keys get.** A `text` or `varchar` key, which is every table the platform creates, compiles to exactly step 3's statement, with no cast. What is new for it: the first leaf statement on that table (once per driver, or once per transaction inside one) is preceded by the catalog read, and if that read fails, or finds no such relation, the statement is refused with `INTERNAL_ERROR` / 500 instead of being run. SQLite, MySQL, SQL Server and Oracle compile exactly as before and read no catalog; SQLite answers the list's rows by column affinity. MySQL and SQL Server keys are not measured against a live server yet. An Oracle `RAW(16)` uuid key is expected to fail the statement (ORA-01465, by reading: the subquery converts a dashed uuid grant to `RAW` implicitly, where the id list binds its undashed hex); it is not measured, and is tracked on #35952. +- 907b378: feat(driver-sql): on Oracle the share-grant subquery converts `record_id` the way the id list binds a `RAW(16)` uuid key (ADR-0155 O2) + + Clause-②: yes + Metadata-protocol: none + + No visible change on its own: nothing writes a `SharedRecordIds` leaf yet. The sharing plugin starts writing it at ADR-0155's last step, and this makes that step answer the right rows on Oracle tables keyed by a `RAW(16)` uuid (`SYS_GUID()` keys). + + - **Oracle, a `RAW(16)` uuid key.** The compiled subquery `id IN (SELECT record_id FROM sys_record_share WHERE …)` now projects the id list's own conversion when the compared column is a `RAW(16)` uuid column, the same catalog reading that makes the list bind its members as `HEXTORAW(?)`: `HEXTORAW(CASE WHEN REGEXP_LIKE(record_id, UUID_PATTERN, 'i') THEN REPLACE(record_id, '-', '') ELSE 'not-a-uuid' END)`. A grant in upper, lower or mixed case, dashed (8-4-4-4-12) or as 32 undashed digits, names the same row it names in the list. `UUID_PATTERN` is the list's own uuid-text check, written for Oracle from the same constant. Before, Oracle compared the column as its upper-case hex text: the subquery matched no row and its negation every row, with no error. + - **A grant the id list refuses fails the statement.** The list refuses a value that is not uuid text before any statement (`INVALID_FILTER` / 400). Every such stored grant fails the subquery's statement instead, with `DATABASE_ERROR` / 500 (ORA-01465), on the read and on its negation: hex of another length (31 or 33 digits, `0123`), 32 digits with dashes out of place, a grant of dashes only, a blank or a padded uuid, a braced uuid, or text that is not hex. None of them answers a row, and none empties a negation. + - **Unchanged.** Any other Oracle key compiles exactly as before; a `NUMBER` key converts each grant as it converts the list's text binds (measured: the same rows, and the same ORA-01722 for a grant that is not a number). Every other dialect compiles exactly as before. +- 521b4f6: fix(driver-sql): on Oracle, a read scoped by a parent with a RAW(16) uuid key answers its rows on a driver that has not read the parent yet + + Clause-②: no + Metadata-protocol: none + + A child read whose composed `ReadableIds` scope names a federated parent with a `RAW(16)` uuid key, such as the read plugin-security derives for a `controlled_by_parent` object, answered no row on Oracle, and its negation answered every row, with no error. It recovered only once something had read the parent on that driver. The driver reads a federated table's `RAW(16)` columns from the Oracle catalog before it binds a comparand, and it read them for the door's own object only, so the parent's ids bound as text and Oracle compared them with the column's upper-case hex. + + Each door that compiles a filter (`find`, `findOne`, `count`, `distinct`, `aggregate`, its measure filters and its joined parents, `updateMany`, `deleteMany`, `findWithWindowFunctions` and `analyzeQuery`) now also reads the `RAW(16)` columns of every object a composed `ReadableIds` scope in that filter names, at any depth. The parent's ids bind through `HEXTORAW`, for a list of ids and for the share-grant subquery alike. Nothing changes for any other dialect. +- 9a82465: fix(analytics)!: the native dataset face and the draft preview refuse `=` / `$in` / `$ne` on a single-value `image` or `file` column the driver stores as JSON, as the data door does + + Clause-②: yes (narrowing) — widened: `SqlDriver.jsonColumnFieldClass` (`@objectstack/driver-sql`) is now public, and so on every class that extends it (`TursoDriver`, `SqliteWasmDriver`), and the exported `AnalyticsServiceConfig` (`@objectstack/service-analytics` root) gains the optional key `jsonColumnFieldClass`; narrowed: the native dataset face and the draft preview newly answer `400 INVALID_FILTER` for a scalar comparison on a single-value media column the driver stores as JSON, which they answered `200` with a wrong count before + Metadata-protocol: none + Skills-docs: none — no published skill documents the dataset door's filter vocabulary per storage class; the refusal text itself carries the prescription (the media-column move), and the operator contract `skills/` describes (`$contains` for membership on a JSON column) is unchanged + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no stored row, registry key or authored value changes. What moves is the answer the native dataset face and the draft preview give a scalar comparison on a single-value media column, so no stored row, registry key or authored value changes and there is nothing for a migration to rewrite. --> + + **BREAKING** for a caller of the dataset query door whose filter compares a single-value `file` / `image` / `avatar` / `video` / `audio` field with `=` (explicit or implicit), `$in`, `$ne`, `$nin`, an ordering comparison, `$between` or the non-membership text family, on a deployment still inside the ADR-0104 dual-encoding window (its media columns not yet moved, which is every deployment that has not run the move). + + - FROM: the native dataset face compiled the comparison against the stored JSON string (`"file_1"`) and answered `200` with the wrong count — `{ pic: 'file_1' }` and `{ pic: { $in: ['file_1'] } }` counted `0`, `{ pic: { $ne: 'file_1' } }` counted every row — and the draft preview answered `200` with its own counts, matching the bare id a drafted row holds. `POST /api/v1/data/:object/query` and this door's ObjectQL strategy already refused the same filter `400` `INVALID_FILTER`. + - TO: all four faces refuse it `400` `INVALID_FILTER`, in `@objectstack/core`'s one refusal text for this column class — the media-column move, not the `$contains` membership repair, which finds no member in a single JSON string. + + **Widened, alongside.** `SqlDriver.jsonColumnFieldClass(table, field)` is now a public, read-only member: it answers `'single-value-media'`, `'multi-value-or-json'` or `undefined` for a column on this deployment, the same answer the data door's refusal reads. A subclass that redeclares it as `protected` must widen it to `public`. `AnalyticsServiceConfig.jsonColumnFieldClass` is the optional hook the analytics host reads it through; `AnalyticsServicePlugin` wires it from the driver that stores the object, and a host that wires nothing keeps its earlier behaviour. `TursoDriver` answers it on the remote face from the same registry its remote transport already reads. + + **Not moved.** `$contains` / `$notContains` and the null predicates (`$null`, `$exists`, `$empty`) on such a column, every operator on a scalar column, the multi-value and structured-JSON class (unchanged since it was refused on these faces), and a deployment whose media columns have moved — the column is not JSON there, and the comparison is answered. + + The fix for a caller: filter on the record the attachment belongs to, ask presence with `$null` / `$empty`, or finish the deployment's media-column move (the column step of `objectstack migrate files-to-references --apply`, which the refusal text prescribes) so the column is comparable. +- b572420: Clause-②: no + Metadata-protocol: none + + A column's literal DEFAULT now follows the field's declaration on a table an earlier release created, not only on a fresh database. When a field drops its literal `defaultValue`, schema drift reports the column's leftover DEFAULT (`drop_column_default`); when the declared literal changes, it reports the old one (`set_column_default`). Both are `safe`: dev auto-reconcile, a publish of the object, the artifact-pinned boot and `os migrate apply` apply them, in place on PostgreSQL and MySQL and by the table rebuild on SQLite. Before, the table kept the old DEFAULT, every insert that left the field unset stored the old value where a new database stored the declared one (or nothing), and `os migrate plan` showed nothing. Stored rows are never rewritten, and a DEFAULT that is an expression (a `NOW()` default, a sequence) is left alone. A plain production boot still alters no existing column: it logs the entry, and `os migrate apply` applies it. +- 70194ff: feat(audit): a record's activity stream shows each changed field's old → new values by default, with a new `fieldHistory` off switch on the object and the field, and a reader is served only the changes of fields they may read + + Clause-②: yes (widening) + Metadata-protocol: semantic + + A record's activity stream now shows `Field: old → new` for every changed field, on every object, unless the object or the field turns it off. Before, values showed only for a field that declared `trackHistory: true`. Every other change was named by its field label alone. + + - **New `enable.fieldHistory`, with no default.** Absent: values show. `false`: off for the object, and a change names its fields only. It has no default so that a parsed body never writes one. A built artifact or a stored definition therefore gets values when it is upgraded, with no rebuild. + - **`enable.trackHistory: false` alone no longer turns values off.** The flag keeps its meaning: with `true`, the default record page shows the compliance ledger's field changes to a reader the ledger serves, and the derived `history` API verb is served. To keep an object's activity free of values, write `enable: { fieldHistory: false }`. Every platform object that wrote `trackHistory: false` now also writes `fieldHistory: false`. + - **New field `fieldHistory`, with no default: the field's off switch.** Absent shows the values, `false` names the change without them, `true` shows them (a media or JSON type included). Under an object with `enable.fieldHistory: false`, values stay off whatever a field says. + - **Field `trackHistory: false` no longer means anything: it reads like absent, so the values show.** The field designer wrote it on every save while the key meant nothing, so a stored `false` cannot be told from a choice. `trackHistory: true` keeps one job: it opts a media or JSON field in. A credential field (`secret`, and `password` off better-auth objects) never shows values, because both sides are the same mask. A media or structured-JSON field (`image`, `file`, `avatar`, `video`, `audio`, `signature`, `composite`, `repeater`, `record`, `location`, `address`, `code`, `json`, `vector`) shows them only with an explicit `true` (`fieldHistory` or `trackHistory`). + - **The new field key is classified where every `FieldSchema` key is.** The SQL driver counts `fieldHistory` as a presentation key, so creating a column never reads it. The field-level-security scrub keeps it as written, because a boolean names no field. + - **Who reads a value:** the field-change code (`metadata.summary_message`) is now served to readers. It is narrowed change by change with the same field answer as `metadata.old` and `metadata.new`. A reference field's change is kept only for a reader served the referenced record's title. When a reader is not served some of a summary's changes, the summary is rebuilt from the changes they are served instead of being dropped whole. The full audit ledger is not widened. + - **A long value no longer fails the activity insert.** The stored summary is fitted to `sys_activity.summary`'s `maxLength` (500): each side is cut first, then trailing changes are left out. The code keeps every change, with each side capped at 1,000 characters. + + To keep an object's activity free of values, set `enable: { fieldHistory: false }` on it. For one field, set `fieldHistory: false` on that field; `trackHistory: false` does not turn values off. +- 28588d0: feat(spec): a field can say it is not asked for when a record is created (`showOnCreate`) + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: follow-up #36455 + + `FieldSchema` gains `showOnCreate`, an optional boolean. Absent or `true`, the field is asked for when a record is created, as today. `false` says the business does not ask for it at creation: every create surface (the create dialog, the full-page create, an action-opened create) leaves it out, while editing, the record page and lists keep showing it, so the value is filled in after the record exists. + + - The one pair refused is `showOnCreate: false` on a `required: true` field, at the field's `showOnCreate` key, at every door that parses a field (`defineStack`, `os validate`, the metadata save): a required field is always asked for when a record is created, so the person creating it sees every value the record must have. The message names both fixes (keep the field on create, or drop `required`). A declared `defaultValue` makes no exception: the field is still asked for, with its default filled in. A `requiredWhen` field is accepted, since its gate is a predicate the parse cannot judge; the write door still refuses a create born inside it. + - No create surface reads the key yet: it is `planned` in the liveness ledger, and the Console's create surfaces read it in the change that follows. Nothing that parses today is refused, and no parsed field's output changes (the key has no default). + - `@objectstack/driver-sql` and `@objectstack/metadata-core` classify the new key in their every-field-key ledgers: `FIELD_KEY_STORAGE_CLASS` marks `showOnCreate` `presentation` (the DDL never reads it), and `FIELD_REFERENCE_POSITIONS` keeps it, since it is a boolean that names no field. Neither changes what it does with any field. +- 89ce4fb: fix(driver-sql): removing a field's default stores NULL on MySQL 8, and never leaves a NOT NULL column refusing writes + + Clause-②: no + Metadata-protocol: none + + #36245 made schema sync drop a column DEFAULT the field no longer declares. On MySQL 8 the drop left the column with no default at all, so an insert that omitted the field was refused ("Field … doesn't have a default value") where Postgres and SQLite store NULL. On a nullable column MySQL now sets the default to NULL instead, so an unset insert stores NULL on all three databases. + + On a NOT NULL column the drop no longer travels alone, because the database would then refuse every insert that omits the field. When the field does not hold the column NOT NULL (no `storage.notNull` and not `required`, or `storage: { notNull: false }` in words), the drop is reported together with relaxing the column, both `needs_confirm`: `os migrate apply` applies them, and so do the publish of the object and the managed install of its package when the field declares `storage: { notNull: false }`. Afterwards an unset insert stores NULL. Dev auto-reconcile applies neither, as before for a relax. When the field still holds the column NOT NULL (`storage: { notNull: true }` or `required`), the column is left alone and the stale default is reported as `destructive`, which no automatic path applies. No metadata key, value or default changes. +- 702b0cf: fix(driver-sql)!: a boolean field is stored as a boolean whatever spelling the caller sends + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is the write door of the SQLite-family drivers (SqlDriver on SQLite, both faces of TursoDriver, SqliteWasmDriver) for a direct caller: a value on a declared boolean or toggle field that spells no boolean is refused instead of stored, and the spellings it accepts are stored as the boolean they spell. The engine's own door already refuses those values with invalid_boolean, so no authored metadata, seed or stored row is rewritten and nothing needs a tombstone. --> + + **BREAKING** for a caller that writes through a SQLite-family driver directly (`create`, `update`, `upsert`, `bulkCreate`, `bulkUpdate`, `updateMany`) and sends a declared `boolean` / `toggle` field a value that spells no boolean, such as `'yes'`, `'TRUE'`, `''`, `2` or an array: it used to be stored as written and is now refused with `VALIDATION_ERROR` / 400 before anything is written. It ships `patch` because it is a non-protocol breaking change (AGENTS.md Post-Task Checklist step 3): no metadata author writes a driver call, so `Metadata-protocol` is `none`, and the engine's door already refuses those values. + + A declared scalar `Field.boolean` / `Field.toggle` is now stored as a boolean on SQLite whatever spelling the write sends. `true` / `false`, the numbers `1` / `0` and the text `'1'` / `'0'`, `'true'` / `'false'` and `'1.0'` / `'0.0'` are bound as the boolean they spell, so a column the driver created holds the INTEGER `1` / `0` and a `text` column retyped to `boolean` holds the text `'1'` / `'0'`. These are the spellings the local boot convergence already rewrites, read from the same table. Before, a string reached the column as text, on the local and the remote face of `TursoDriver` alike, so filters, sorts and groups did not read the row as the boolean it was written as. That includes a `beforeInsert` / `beforeUpdate` hook that assigns a string to such a field: the engine's own rewrite runs before the hooks, so the assignment now lands as a boolean too. On the remote face, a number written to a `toggle` field is stored as `'1'` / `'0'` instead of `'1.0'` / `'0.0'`. + + A remote `TursoDriver.bulkCreate` checks every row before it writes the first one, so a refused row refuses the batch with nothing written, as the local face's single INSERT already did. `null` still writes NULL. Rows stored before this change keep their stored form. + + To keep a direct write working, send `true` or `false` (or one of the spellings above) for a boolean or toggle field. +- db9e34a: Clause-②: no + Metadata-protocol: none + + The drift plan's `safe` column entries for a declared field (`widen_date_to_datetime`, `widen_varchar`, `drop_column_default`) now name the remedy per object kind, as the `relax_not_null` entry already does. For an object authored in this environment, publishing the object applies the entry. For an object a package provides, which is sealed and cannot be published here, the message names `os migrate apply`, which applies it for either kind. Before, the date-to-datetime entry told a package object's reader to publish the object, which cannot apply it. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [9c57bd2] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [c059e60] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/types@18.7.0 + - @objectstack/core@18.7.0 + - @objectstack/observability@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/drivers/driver-sql/package.json b/packages/drivers/driver-sql/package.json index 04c4e03e59a..cc4973345be 100644 --- a/packages/drivers/driver-sql/package.json +++ b/packages/drivers/driver-sql/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/driver-sql", - "version": "18.6.0", + "version": "18.7.0", "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 d3c7d1888d4..a0a53d33548 100644 --- a/packages/drivers/driver-sqlite-wasm/CHANGELOG.md +++ b/packages/drivers/driver-sqlite-wasm/CHANGELOG.md @@ -1,5 +1,194 @@ # @objectstack/driver-sqlite-wasm +## 18.7.0 + +### Patch Changes + +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [24cc61f] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [65b67be] +- Updated dependencies [1caee8c] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [c0484c8] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [850bcec] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [907b378] +- Updated dependencies [521b4f6] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [9a82465] +- Updated dependencies [ad92dfd] +- Updated dependencies [b572420] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [89ce4fb] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [702b0cf] +- Updated dependencies [372ce7c] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [db9e34a] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/core@18.7.0 + - @objectstack/driver-sql@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/drivers/driver-sqlite-wasm/package.json b/packages/drivers/driver-sqlite-wasm/package.json index f25138a40e7..d7bd4cec2c7 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": "18.6.0", + "version": "18.7.0", "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 a15152a0b65..25a1ade299d 100644 --- a/packages/drivers/driver-turso/CHANGELOG.md +++ b/packages/drivers/driver-turso/CHANGELOG.md @@ -1,5 +1,283 @@ # @objectstack/driver-turso +## 18.7.0 + +### Patch Changes + +- 65b67be: feat(mcp): `aggregate_records` orders, cuts and counts its groups in the database + + Clause-②: yes (widening: `orderBy` and `limit` arguments on `aggregate_records`) + Metadata-protocol: none + + A ranking question ("the top five customers by revenue") over more groups than the tool's row cap used to come back as every group, or the first page of them, in no stated order, and the client ranked what it happened to get. `aggregate_records` now takes `orderBy` — a list of `{ field, order }` naming an aggregation alias or a group key (its alias when it has one) — and `limit` (at most the row cap). The database orders the groups, cuts them, and counts how many groups it formed before the cut, in one statement; the result carries the groups, `totalGroups` (the key the tool already answers, now the database's count of the groups before the cut), and `truncated: true` when more groups existed than came back. + + - An order key that names no column of the aggregated row is refused `INVALID_SORT` / 400, naming the columns the query projects. + - Only a driver that runs the cut in its own SQL statement serves it: `driver-sql` (every dialect it speaks; the window `count(*) over ()` needs MySQL 8 or later), the WASM SQLite driver, and the Turso driver's local and replica faces. Every other driver (the in-memory driver, MongoDB, OData, Turso's remote face), an aggregate the engine computes in memory (a date bucket, a reference timezone or a measure filter the driver does not run), and an aggregate with `having` are refused `INVALID_QUERY` / 400 before anything is read. Groups are never ordered or cut in the application. + - On an order key without a `rank`, a NULL ranks last in either direction, except a `sum` or a count with no value, which ranks as the `0` it is served as. Group keys the order does not name, and a group key it names only by a `rank`, break ties, ascending, NULL last, so two runs of one call answer the same groups in the same order. + - An order key may carry a `rank`, a list of the column's values: the statement ranks each listed value by its position and every other value (a NULL among them) on one rank past them, before the cut, so the unlisted values come after the listed ones ascending and before them descending; among themselves they follow the column's own ascending order, NULL last. It is the tool's own, never an `aggregate_records` argument. + - A `limit` with no `orderBy` keeps the declared option order the uncut answer already follows: groups keyed by a leading select or radio field come back in the order the field declares its options, a value no option declares last, and the database takes that order before the cut, so the cut keeps the first declared groups. An `orderBy` the caller sends overrides it. + - The cut answer carries what the uncut one does: a fixed-currency amount's currency in `currencies`, and `KEY__label` beside each lookup or master-detail group key, the record's name read with the caller's own permissions. + - An amount whose records each carry their own currency is ranked by its bare numbers across currencies: the tool description says to rank it inside one currency by filtering `where` on its currency code field. + - Without `orderBy` and `limit` the tool answers as before. + + `@objectstack/objectql` exports `AGGREGATE_ORDER_CUT`, the engine-internal read option of `aggregate` that carries the request (a symbol, so no wire request can set it), with the `AggregateOrderCutRequest`, `AggregateOrderKey` and `AggregateOrderCutOutcome` types. `McpDataBridge` gains the optional member `aggregateGroups`; a bridge without it refuses `orderBy` / `limit` with `NOT_IMPLEMENTED` / 501 and keeps serving the rest of the tool. Nothing that was accepted before is refused. +- 1caee8c: feat(mcp): "each X with its latest Y" in one `query_records` call — `latestPer` + + Clause-②: yes (widening): a new read form on the published MCP tool surface. Judged from the card content; the build confirms it + Metadata-protocol: none + + `query_records` takes `latestPer: { by, orderBy }`: one row per group, the group's first row in the given order. `by` names 1 to 3 fields, `orderBy` 1 to 3 keys (`asc` / `desc`); a tie goes to the record id in the direction of the last key, and an empty order value ranks last. "Each account with its latest deal" is `{ objectName: 'crm_opportunity', latestPer: { by: ['account'], orderBy: [{ field: 'close_date', order: 'desc' }] } }`. + + - The row is chosen among the rows the caller may read and the `where` admits: a group whose newest row is hidden from the caller answers its newest readable row, never the hidden one and never nothing. The organization wall holds inside the choice. Field masking still applies to the returned rows. + - A partition or order field the caller may not read is refused as it is in `orderBy`; a computed, JSON or multi-value field, or a dotted path, is refused as a partition or order field. + - `limit` counts groups, capped at the tool's `maxLimit` like any list. The answer is `{ object, records, hasMore }` and never a `total`; when more groups exist than came back it carries `truncated: true`. + - Served by the SQL driver (Postgres, MySQL, SQLite) and by `driver-sqlite-wasm` and the Turso driver on a local or embedded-replica database: the driver compiles a `ROW_NUMBER()` window over the read's own scoped selection. Every other driver (in-memory, Turso's remote connection, MongoDB), an object with an `afterFind` hook and an object with object-scoped read middleware refuse with `INVALID_QUERY` / 400 before anything is read. The Turso driver's remote face refuses the directive itself too. + - New exports: `LATEST_PER`, `LATEST_PER_MAX_KEYS` and the `LatestPerRequest` / `LatestPerOrder` / `LatestPerOutcome` types from `@objectstack/objectql`; `LATEST_PER_DIRECTIVE`, `latestPerDirectiveOf` and the `LatestPerDirective` / `LatestPerDirectiveOrder` types from `@objectstack/driver-sql`; `McpLatestPer` from `@objectstack/mcp`. The request rides an in-process read option, never a wire or query key; `@objectstack/spec` is unchanged. + + Without `latestPer`, `query_records` and every read are unchanged. +- 643fe3b: feat(driver-sql, driver-turso): the SQL drivers compile the `SharedRecordIds` fixed-read leaf to a subquery (ADR-0155, step 3 of 6) + + Clause-②: yes + Metadata-protocol: none + + No visible change on its own: nothing on main writes a `SharedRecordIds` leaf yet. The sharing plugin starts writing it at ADR-0155's last step. + + - **The compile** (`@objectstack/driver-sql`). A `SharedRecordIds` leaf in a field's `$in` compiles to one subquery in the list's own position: `id IN (SELECT record_id FROM sys_record_share WHERE object_name = ? AND recipient_type = 'user' AND recipient_id = ? AND record_id IS NOT NULL AND record_id <> '')`. The write form adds `AND access_level IN (…)` inside the subquery. Every value is bound. The subquery carries no tenant scope (ADR-0155 ① ruled A), and the outer statement's tenant wall is unchanged. It compiles on every read verb and on `updateMany`, for SQLite, PostgreSQL, MySQL, SQL Server and Oracle. SQLite and PostgreSQL were run live for this release. MySQL, SQL Server and Oracle are pinned at compile shape, and MySQL also runs live in CI's Temporal Conformance job. On PostgreSQL, an object whose `id` column is not text (an integer- or uuid-keyed federated table) fails the compiled subquery with `DATABASE_ERROR` (42883) instead of answering its rows. That case is open on #35906 (ADR-0155 D-0) and is settled before the sharing plugin writes the leaf. On Oracle the `<> ''` half is left out, because Oracle stores `''` as NULL. `SqliteWasmDriver` and Turso's local mode inherit the compile. + - **The remote transport** (`@objectstack/driver-turso`). Turso's remote mode compiles the same subquery with its own compiler, from the same predicates. + - **The declaration.** `SqlDriver.supports.fixedReadLeaves` is `['SharedRecordIds']`, and `TursoDriver` inherits it in every mode. The engine's seam now hands the leaf to these drivers instead of refusing it. + - **The refusal.** A leaf anywhere other than a field's `$in` comparand is refused before any statement runs, with `INTERNAL_ERROR` / 500, and logged at `error` once per driver. + - **New exports** (`@objectstack/driver-sql`). `findMisplacedFixedReadLeaf`, `fixedInnerReadPredicates` and `misplacedFixedReadLeafMessage` are the walk, the predicates and the refusal text the two compilers share. + - **The shared case-set** (`@objectstack/spec`). `SHARED_RECORD_IDS_CASE_SET` gains a note (`n5`) on a doc whose only grant is stamped in another organization, and a nested case read under a tenant. Together they witness, in the nested position, that the inner read carries no tenant scope. +- 9a82465: fix(analytics)!: the native dataset face and the draft preview refuse `=` / `$in` / `$ne` on a single-value `image` or `file` column the driver stores as JSON, as the data door does + + Clause-②: yes (narrowing) — widened: `SqlDriver.jsonColumnFieldClass` (`@objectstack/driver-sql`) is now public, and so on every class that extends it (`TursoDriver`, `SqliteWasmDriver`), and the exported `AnalyticsServiceConfig` (`@objectstack/service-analytics` root) gains the optional key `jsonColumnFieldClass`; narrowed: the native dataset face and the draft preview newly answer `400 INVALID_FILTER` for a scalar comparison on a single-value media column the driver stores as JSON, which they answered `200` with a wrong count before + Metadata-protocol: none + Skills-docs: none — no published skill documents the dataset door's filter vocabulary per storage class; the refusal text itself carries the prescription (the media-column move), and the operator contract `skills/` describes (`$contains` for membership on a JSON column) is unchanged + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no stored row, registry key or authored value changes. What moves is the answer the native dataset face and the draft preview give a scalar comparison on a single-value media column, so no stored row, registry key or authored value changes and there is nothing for a migration to rewrite. --> + + **BREAKING** for a caller of the dataset query door whose filter compares a single-value `file` / `image` / `avatar` / `video` / `audio` field with `=` (explicit or implicit), `$in`, `$ne`, `$nin`, an ordering comparison, `$between` or the non-membership text family, on a deployment still inside the ADR-0104 dual-encoding window (its media columns not yet moved, which is every deployment that has not run the move). + + - FROM: the native dataset face compiled the comparison against the stored JSON string (`"file_1"`) and answered `200` with the wrong count — `{ pic: 'file_1' }` and `{ pic: { $in: ['file_1'] } }` counted `0`, `{ pic: { $ne: 'file_1' } }` counted every row — and the draft preview answered `200` with its own counts, matching the bare id a drafted row holds. `POST /api/v1/data/:object/query` and this door's ObjectQL strategy already refused the same filter `400` `INVALID_FILTER`. + - TO: all four faces refuse it `400` `INVALID_FILTER`, in `@objectstack/core`'s one refusal text for this column class — the media-column move, not the `$contains` membership repair, which finds no member in a single JSON string. + + **Widened, alongside.** `SqlDriver.jsonColumnFieldClass(table, field)` is now a public, read-only member: it answers `'single-value-media'`, `'multi-value-or-json'` or `undefined` for a column on this deployment, the same answer the data door's refusal reads. A subclass that redeclares it as `protected` must widen it to `public`. `AnalyticsServiceConfig.jsonColumnFieldClass` is the optional hook the analytics host reads it through; `AnalyticsServicePlugin` wires it from the driver that stores the object, and a host that wires nothing keeps its earlier behaviour. `TursoDriver` answers it on the remote face from the same registry its remote transport already reads. + + **Not moved.** `$contains` / `$notContains` and the null predicates (`$null`, `$exists`, `$empty`) on such a column, every operator on a scalar column, the multi-value and structured-JSON class (unchanged since it was refused on these faces), and a deployment whose media columns have moved — the column is not JSON there, and the comparison is answered. + + The fix for a caller: filter on the record the attachment belongs to, ask presence with `$null` / `$empty`, or finish the deployment's media-column move (the column step of `objectstack migrate files-to-references --apply`, which the refusal text prescribes) so the column is comparable. +- b572420: Clause-②: no + Metadata-protocol: none + + A column's literal DEFAULT now follows the field's declaration on a table an earlier release created, not only on a fresh database. When a field drops its literal `defaultValue`, schema drift reports the column's leftover DEFAULT (`drop_column_default`); when the declared literal changes, it reports the old one (`set_column_default`). Both are `safe`: dev auto-reconcile, a publish of the object, the artifact-pinned boot and `os migrate apply` apply them, in place on PostgreSQL and MySQL and by the table rebuild on SQLite. Before, the table kept the old DEFAULT, every insert that left the field unset stored the old value where a new database stored the declared one (or nothing), and `os migrate plan` showed nothing. Stored rows are never rewritten, and a DEFAULT that is an expression (a `NOW()` default, a sequence) is left alone. A plain production boot still alters no existing column: it logs the entry, and `os migrate apply` applies it. +- 49c8e0f: fix(driver-turso): remote aggregate group keys over a boolean answer true/false, as local mode does + + Clause-②: no + Metadata-protocol: none + + On the remote face of `TursoDriver` (a `libsql://`, `https://` or `http://` database, as hosted environments use), `aggregate()` returned group-key columns exactly as the libSQL client hands them back. A group over a declared boolean field came back as `1` / `0` (and `null`), where the local and replica faces answer `true` / `false` / `null`. Reports, charts and `aggregate_records` grouped by a field such as "done" showed `0` / `1` on a hosted environment. + + Group-key columns now take the same read presentation `find()` applies to the column, keyed by the output column (`alias ?? field`), exactly as the local face does. Other declared kinds the shared presenter covers (date, time, datetime, audit timestamps, numbers) are presented the same way. Measures are unchanged: counts and totals are numbers as before, and `min` / `max` over a boolean still answer `0` / `1`. +- 702b0cf: fix(driver-sql)!: a boolean field is stored as a boolean whatever spelling the caller sends + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is the write door of the SQLite-family drivers (SqlDriver on SQLite, both faces of TursoDriver, SqliteWasmDriver) for a direct caller: a value on a declared boolean or toggle field that spells no boolean is refused instead of stored, and the spellings it accepts are stored as the boolean they spell. The engine's own door already refuses those values with invalid_boolean, so no authored metadata, seed or stored row is rewritten and nothing needs a tombstone. --> + + **BREAKING** for a caller that writes through a SQLite-family driver directly (`create`, `update`, `upsert`, `bulkCreate`, `bulkUpdate`, `updateMany`) and sends a declared `boolean` / `toggle` field a value that spells no boolean, such as `'yes'`, `'TRUE'`, `''`, `2` or an array: it used to be stored as written and is now refused with `VALIDATION_ERROR` / 400 before anything is written. It ships `patch` because it is a non-protocol breaking change (AGENTS.md Post-Task Checklist step 3): no metadata author writes a driver call, so `Metadata-protocol` is `none`, and the engine's door already refuses those values. + + A declared scalar `Field.boolean` / `Field.toggle` is now stored as a boolean on SQLite whatever spelling the write sends. `true` / `false`, the numbers `1` / `0` and the text `'1'` / `'0'`, `'true'` / `'false'` and `'1.0'` / `'0.0'` are bound as the boolean they spell, so a column the driver created holds the INTEGER `1` / `0` and a `text` column retyped to `boolean` holds the text `'1'` / `'0'`. These are the spellings the local boot convergence already rewrites, read from the same table. Before, a string reached the column as text, on the local and the remote face of `TursoDriver` alike, so filters, sorts and groups did not read the row as the boolean it was written as. That includes a `beforeInsert` / `beforeUpdate` hook that assigns a string to such a field: the engine's own rewrite runs before the hooks, so the assignment now lands as a boolean too. On the remote face, a number written to a `toggle` field is stored as `'1'` / `'0'` instead of `'1.0'` / `'0.0'`. + + A remote `TursoDriver.bulkCreate` checks every row before it writes the first one, so a refused row refuses the batch with nothing written, as the local face's single INSERT already did. `null` still writes NULL. Rows stored before this change keep their stored form. + + To keep a direct write working, send `true` or `false` (or one of the spellings above) for a boolean or toggle field. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [24cc61f] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [65b67be] +- Updated dependencies [1caee8c] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [c0484c8] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [850bcec] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [907b378] +- Updated dependencies [521b4f6] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [9a82465] +- Updated dependencies [ad92dfd] +- Updated dependencies [b572420] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [89ce4fb] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [702b0cf] +- Updated dependencies [372ce7c] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [db9e34a] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/core@18.7.0 + - @objectstack/driver-sql@18.7.0 + - @objectstack/observability@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/drivers/driver-turso/package.json b/packages/drivers/driver-turso/package.json index e6d93154345..0cd9df9bbb2 100644 --- a/packages/drivers/driver-turso/package.json +++ b/packages/drivers/driver-turso/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/driver-turso", - "version": "18.6.0", + "version": "18.7.0", "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 b955c8691b4..5fb78815ac7 100644 --- a/packages/formula/CHANGELOG.md +++ b/packages/formula/CHANGELOG.md @@ -1,5 +1,344 @@ # @objectstack/formula +## 18.7.0 + +### Minor Changes + +- c809deb: fix(formula)!: a flow condition that hands `timestamp()` a date field through `record.FIELD` or `previous.FIELD` is now refused, as the bare field name already was + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: none — `skills/objectstack-formula/SKILL.md` already states the `date-text-call` rule (a `date` / `datetime` field handed to a timestamp-only call, and `timestamp()` over a `date` field) with `record.FIELD` spellings and names no site it is limited to, so it now holds for a flow condition's root reads as written + + <!-- adr-0087: not-required (already-registered formula-timestamp-date-only-refused, formula-date-text-call-refused, formula-date-subtraction-refused) The three semantic entries already carry these verdicts, their codes and their rewrites to the upgrade guide, and each entry's surface already names flow conditions among the CEL predicates judged with the object's field types, with record.FIELD spellings as its examples. This change makes that text true for a flow condition that reads the field through record or previous, where only the bare field name was judged before; the verdicts, codes, rewrites and acceptance criteria are the entries' own. No id is added, no key is added, removed or re-shaped, and nothing an author wrote is rewritten. --> + + **BREAKING** accept-set narrowing, shipped as `minor`. 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`. The date-text checks judged only the bare name. `timestamp(borrow_date) < now()` over a `date` field was refused, but `timestamp(record.borrow_date) < now()` passed `os validate` and the publish door. The flow then failed on every run, because a date field reaches the run as its `YYYY-MM-DD` text, which `timestamp()` does not parse. + + - **The verdicts.** A `record.FIELD` / `previous.FIELD` read in a flow condition now gets the date-text checks its bare name gets, with the same code and outcome arm (`date-text-call-run-fails` / `date-text-arithmetic-run-fails` on a record-triggered flow or a sweep of the typed object, `-run-may-fail` elsewhere). The message names the read as written and prescribes `date(record.FIELD)`, or `isoDate(addDays(record.FIELD, N))` to shift by whole days. This covers the calls the text cannot take (`timestamp(record.FIELD)` over a `date` field, `isoDate(record.FIELD)` over a `date` or `datetime` field) and arithmetic on the text (`record.end_date - record.start_date`). + - **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, as it does for the bare name, and still registers the flow, so a stored flow keeps running until it is next published. + - **Not refused.** `timestamp()` over a `datetime` field. A shape the Timestamp typing already faults on (`record.due_date + 1`), which is another verdict's. An `input.FIELD` read. The run-time evaluator is unchanged. + + ## FROM → TO + + | FROM | TO | + |:---|:---| + | `timestamp(record.borrow_date) < now()` | `date(record.borrow_date) < now()` | + | `timestamp(previous.borrow_date) < now()` | `date(previous.borrow_date) < now()` | + | `isoDate(record.picked_up_at) == '2026-11-16'` | `isoDate(date(record.picked_up_at)) == '2026-11-16'` | + + One-line fix: in a flow condition, parse a date field with `date(record.FIELD)` before comparing it with a timestamp, never `timestamp(record.FIELD)`. +- 97b9d1e: fix(formula)!: a flow condition that does date arithmetic on `record.FIELD` or `previous.FIELD` is now refused, as the bare field name already was + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + + <!-- adr-0087: registered flow-condition-record-date-arithmetic-refused --> + + **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`. The date-arithmetic check judged only the bare name: `due_date + 1 > 5` over a `date` field was refused, but `record.due_date + 1 > 5` passed `os validate` and the publish door. The flow then failed on every run, because a date field reaches the run as its `YYYY-MM-DD` text and the evaluator cannot add a number to it. + + - **The verdict.** A `record.FIELD` / `previous.FIELD` read of a `date` or `datetime` field in arithmetic against a number now gets the verdict its bare name gets, with the same code and outcome arm (`date-arithmetic-run-fails` on a record-triggered flow or a sweep of the typed object, `date-arithmetic-run-may-fail` elsewhere). A root read keeps the row's arm where bare names are unproven or a flow variable shadows the bare name. The message names the read as written and prescribes `daysBetween(a, b)` or `addDays(d, n)`. + - **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, as it does for the bare name, and still registers the flow, so a stored flow keeps its run-time behaviour until it is next published. + - **Not refused.** An ordering of the field (`record.due_date < today()`), `daysBetween` / `addDays` over it, and the date-text shapes, which keep their own verdicts. Formula fields and validation rules read `record.FIELD` already and were refused before. The run-time evaluator is unchanged. + + ## FROM → TO + + | FROM | TO | + |:---|:---| + | `record.due_date + 1 > 5` | `daysBetween(record.due_date, today()) > 5` (days past due) or `addDays(record.due_date, 1) < today()` (a shifted date) | + | `previous.due_date - 7 < today()` | `addDays(previous.due_date, -7) < today()` | + + One-line fix: in a flow condition, never add or subtract a number on a date field read through `record` or `previous`; use `daysBetween(a, b)` for a span and `addDays(d, n)` to shift a date. +- 3d6dea2: feat(formula): `addWorkingDays()`, `workingDaysBetween()` and `addWorkingHours()` count with the organization's working calendar (ADR-0157 D4) + + Clause-②: yes (widening) + Metadata-protocol: added — a formula field's or a stored field's `expression` may now call `addWorkingDays(...)`, `workingDaysBetween(...)` and `addWorkingHours(...)` + Skills-docs: updated here — skills/objectstack-formula/SKILL.md teaches the three functions and eval 8 of skills/objectstack-project/evals/project-process.json exercises them (the card's order names both) + + Not released alone: it ships in the same release as the working calendar service and objects (#35355) and the approval escalation's working-time clock (#35357), ADR-0157 D4. + + - **Three formula functions** (`@objectstack/formula`). `addWorkingDays(day, n[, code])` answers the calendar day `n` working days after `day` (before it, for a negative `n`); `day` itself never counts and `0` answers `day`. `workingDaysBetween(start, end[, code])` counts the working days after `start` up to and including `end`, negative when `end` is earlier, and is the inverse of `addWorkingDays`. `addWorkingHours(start, hours[, code])` answers the instant `hours` of working time after `start`, counted as elapsed time in the calendar's time zone (D11); a start outside working time begins at the next working period. All three step over the calendar's weekends and holidays and onto its make-up working days. Without `code` a call counts with the organization's default calendar; `code` names a calendar and is written as a quoted literal. They join the advertised standard library (`CEL_STDLIB_FUNCTIONS`). + - **Where they count** (`@objectstack/objectql`). A `formula` field and a stored field's `expression` count with the record's own organization's calendars, which the engine loads through the calendar service before it evaluates them: only the calendars the expressions name, once per organization per read, from the service's cache. A formula field counts again on its next read after a calendar edit; a stored due time keeps the value of its last write. + - **When the calendar cannot answer** (D8). With no default calendar in the organization, a code the organization has no calendar for, or a count that reaches past the span the calendar is maintained for, the formula reads `null` and the server logs one line naming the object, the field and the reason. A stored field's `expression` stores blank and the write goes through; the blank stays until that record's next write, and a write made while the calendar refuses blanks a value that was valid before. Nothing counts on the weekly pattern or the wall clock instead. + - **No calendar arithmetic as a filter.** A query filter, a sharing rule's condition and every filter compiled from CEL refuse the three functions with a message that prescribes the stored due-time field (D6). + - **Build refusals** (`@objectstack/lint`). `os build` / `os validate` refuse the three functions at every expression site but a formula field's and a stored field's `expression` (validation rules, visibility, action conditions, flow conditions and values, sharing rules, a field's expression `defaultValue` and a seed value), and refuse a calendar code that is not a quoted literal, with a branch between literal calls as the way to pick a calendar per record. + - **Forms** (`@object-ui/core`). A form does not compute a formula that calls one of the three: its calendar is loaded for the server's read, never handed to the form, so the field is unservable there as on the server's write-path check. + - **Teaching** (`@objectstack/skills`). objectstack-formula documents the three functions; the platform catalog moves working-day formulas from Planned into what the platform ships; the project-process eval for business-hours SLAs now expects the functions. +- ad65d82: fix(formula)!: `validateExpression` refuses `==` / `!=` between a list-valued field and a scalar, which answers a constant on every row + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: follow-up #36217 + + <!-- adr-0087: registered cel-list-equality-refused --> + + **BREAKING** accept-set narrowing, shipped as `minor`. CEL compares the whole list with the scalar, so `record.labels == 'frontend'` is `false` for `['frontend', 'qa']` and for `null` alike, and `record.labels != 'frontend'` is always `true`: a condition written that way never fires (or always does), with no fault and no log line. The shared validator accepted it. + + - **The refusal.** `validateExpression` refuses a `==` / `!=` between a read of a list-valued field on `record` / `previous` (`record.f`, `record['f']`, either operand order) — or, at a flattened (flow) condition, its bare name `f`, which the run binds to the trigger record's field, unless a flow variable holds the name or a node can bind names no reader sees — and a non-null string, number or boolean literal, as the new `list-equality` code (params `reference`, `operator`, `operand`, `answer`, `rewrite`), prescribing the null-guarded membership test. + - **Which fields are lists.** A `fieldTypes` entry of an inherently multi-value type (`multiselect`, `checkboxes`, `tags`), or a field named in the new optional `ExprSchemaHint.multiValueFields` — the fields a caller reads as multi-valued through `isMultiValueField` (`@objectstack/spec/data`), which is how a `select` / `radio` / `lookup` / `user` / `file` / `image` field declared `multiple: true` becomes a list here. Absent, such a field is not judged, as before. + - **Who fills it.** The publish lint (`os validate` / `os build`, every CEL site that types the object's fields), the MCP `validate_expression` tool (read off the served definition, `McpDataBridge.servedObjectDefinitionOf`, at the validation / formula / flow-condition sites; a bridge without it answers as before), `registerFlow`'s schema pass (`parseObjectFieldSchema` returns `multiValueFields`; logged, never thrown, like every finding of that pass), the scenario scorer, and Studio's object draft check (field rules, formulas, validation rules; `CelSchemaHint.multiValueFields`). + - **Still accepted.** `S == null` / `S != null` (either side), `'a' in S`, a list compared with a list literal or with another list field, and a comparison whose other operand is not a literal. + + FROM → TO: + + - `record.labels == 'frontend'` → `record.labels != null && 'frontend' in record.labels` + - `record.labels != 'frontend'` → `record.labels == null || !('frontend' in record.labels)` + - at a flow condition, `labels == 'frontend'` → `labels != null && 'frontend' in labels` + + One-line fix: test membership with `in`, null-guarded (`'a' in null` faults); compare the list with `null` to test whether it is set. +- cb5a975: fix(formula): the `list-equality` refusal prescribes a rewrite that works where it is read, and a flow condition is judged only where the run binds a row of the typed object + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: follow-up #36217 + + The two widenings. A flow condition in a flow that no record write or sweep starts (an API, scheduled or trigger-less flow) is no longer refused as `list-equality`, bare or `record.`: that run holds what its entrance handed it, so `labels == 'frontend'` can be correct code there. And `ExprSchemaHint` gains the optional key `filterCompiled`, which tells the validator that the site's source compiles to a query filter. + + The rewrite the refusal prescribes now depends on the site, and is parenthesised whole so it can stand where the comparison stood (`A && (…)`): + + - **A `record.` / `previous.` read evaluated as CEL** (a validation rule, a field rule, a formula, an action's `visible` / `disabled` / `pressed`, a hook condition): + - FROM `record.labels != null && "frontend" in record.labels` + - TO `(has(record.labels) && record.labels != null && "frontend" in record.labels)` + - `has()` answers on a sparse row or a null `previous`, where the old form faulted. + - For `!=` the TO form is `(!has(record.labels) || record.labels == null || !("frontend" in record.labels))`. The old `!=` form, with no parentheses, split under a leading `&&`. + - **A bare name at a flow condition:** + - FROM `labels == null || !("frontend" in labels)` + - TO `(labels == null || !("frontend" in labels))` + - For `==` the TO form is `(labels != null && "frontend" in labels)`. + - **A sharing rule `condition`**, which compiles to a query filter: + - FROM `record.labels != null && "frontend" in record.labels`, which does not lower (`in` needs a field on its left), so the rule was dropped as `sharing-rule-unlowerable-condition`. + - TO `(record.labels != null && record.labels.contains("frontend"))`, which lowers to a membership filter (`$contains`). + - For `!=` the TO form is `(record.labels == null || !record.labels.contains("frontend"))`. + - A number or boolean operand is passed as its text (`contains("3")`). + + One-line fix: write the rewrite the refusal names. + + `registerFlow`'s advisory pass now hands the validator `faultOutcome: 'run-fails'` on a record-triggered flow and on a time-relative sweep of the typed object, the same flows `os validate` declares it on. On those flows its logged type-mismatch lines now use the wording `os validate` prints. It still only logs and never throws. +- ad92dfd: fix(lint)!: `==` / `!=` between a list-valued field reached through a lookup hop and a scalar is refused, as the root-field case is + + Clause-②: yes (narrowing) + Metadata-protocol: narrowed + Skills-docs: none — the `objectstack-formula` skill already teaches that a list field compared with a scalar literal is refused and the `has()`-guarded `in` rewrite; a hop read of a list field takes the same rewrite + + <!-- adr-0087: not-required (already-registered cel-list-equality-refused) the same list-equality refusal and membership rewrite, one hop away; this change extends that entry's surface to the one-hop read at a validation rule predicate and a field expression, and states its doors (os validate, os build, the object save door) --> + + **BREAKING** accept-set narrowing, shipped as `minor`; the new `@objectstack/formula` export `findHopListEquality` widens the package's public surface. + + `record.labels == 'vip'` on a list-valued field has been refused as `list-equality` since the shared validator learned it, but the same comparison one hop away, `record.account.labels == 'vip'` where `account` is a lookup and `labels` a list-valued field of its target, was refused nowhere. A validation rule's `condition` / `when` and a formula's `expression` are the two sites that serve a hop: the engine hydrates the related row, so `record.account.labels` is the stored list, and comparing it with a scalar answers `false` (for `!=`, `true`) on every row. A rule written that way never fires and saves clean. + + - **The refusal.** At those two sites, the publish lint (`os validate` / `os build`) and the object save door refuse a `==` / `!=` between a read of a hop target's list-valued field (an inherently multi-value type, or a multi-capable type declared `multiple: true`) and a non-null scalar literal, either operand order, in the root case's words, prescribing the root case's membership test on the hop read. + - **What carries it.** `@objectstack/formula` exports `findHopListEquality(source, listLeaves)`, which returns the `list-equality` refusals (same code and params as `validateExpression`'s) for the reference → list-valued-leaves map its caller hands in. `ExprSchemaHint` is unchanged. The ADR-0087 entry `cel-list-equality-refused` now names the one-hop read and its doors; the Studio draft check and the shared-validator half of the MCP `validate_expression` tool do not see a hop. + - **Still accepted.** A hop to a scalar field (`record.account.tier == 'vip'`), `record.account.labels == null`, `'vip' in record.account.labels`, a hop through a reference that is itself multi-valued, and every site that serves no hop (an action's `visible`, a flow condition), where `record.account` is the stored id. + + FROM → TO: + + - `record.account.labels == 'vip'` → `(has(record.account.labels) && record.account.labels != null && "vip" in record.account.labels)` + - `record.account.labels != 'vip'` → `(!has(record.account.labels) || record.account.labels == null || !("vip" in record.account.labels))` + + One-line fix: test membership with `in` on the hop read, guarded as the refusal prescribes. + +### Patch Changes + +- 8b550f8: fix(formula): a flow value envelope's date-text refusal says the run fails when the value is computed, not when a condition runs + + Clause-②: no + Metadata-protocol: none + + A flow value envelope (an `assignment` value, or a `create_record` / `update_record` `fields.*` value) that hands a `date` field's text to a call it cannot take (`timestamp(record.borrow_date)`) or does arithmetic on it (`record.due_date - record.borrow_date`) is refused by `os validate` and by `registerFlow`. The refusal reused the flow-condition sentence: "this faults wherever `record.borrow_date` holds that text when the condition runs, and a flow condition that cannot be evaluated fails the run: the flow stops at this condition …". A value slot has no condition. It now reads "… when the value is computed, and a flow value that cannot be computed fails the run: the flow stops at this step and the work the flow exists to do is not done (it does not read null)." + + - **Two codes join `ExpressionRefusalCode`** (`EXPRESSION_REFUSAL_CODES`), with the params of the code each splits from: `date-text-call-value-run-may-fail` (params of `date-text-call`) and `date-text-arithmetic-value-run-may-fail` (params of `date-text-arithmetic`). `validateExpression` serves them where `ExprSchemaHint.flowValueEnvelope` is set, in place of `date-text-call-run-may-fail` / `date-text-arithmetic-run-may-fail`. A consumer keyed to the old codes on a value envelope re-keys to the new ones. + - **Unchanged:** the same sources are refused, at the same grade (an error), at the same location, with the same leading value-envelope sentence and the same fix hint. A flow condition keeps `date-text-call-run-may-fail` / `date-text-arithmetic-run-may-fail` and `-run-fails`, byte for byte. +- ed906d5: feat: the working-calendar service, its arithmetic and its refusal codes (ADR-0157, part one of two) + + Clause-②: yes (widening) + Metadata-protocol: none + + Not released alone; pair #35641/#35642. This ships in the same release as #35642 (the calendar objects and Setup pages, the second half of this change), the working-day formula functions (#35356) and the approval escalation's working-time clock (#35357), ADR-0157 D4. + + - **The arithmetic** (`@objectstack/formula`). `isWorkingTime`, `addWorkingDays`, `workingDaysBetween` and `addWorkingHours` compute over a resolved calendar and its dated exceptions, as pure functions a formula can call synchronously, beside `parseWorkPeriods` (`HH:mm-HH:mm` periods; a period that crosses midnight is refused, `24:00` is a legal end), `buildWorkCalendar` (a frozen calendar) and the three error classes. A computation that needs a date outside the calendar's maintained span is refused rather than read from the weekly pattern. + - **The types, constants and time-zone rule** (`@objectstack/spec`). `WorkCalendar` and the column and code constants are in `@objectstack/spec/data`; the service contract is `IWorkCalendarService` in `@objectstack/spec/contracts`. `zonedWallClockToUtcMs`, `wallClockToUtcMs` and `WallClockParts` move to `@objectstack/spec/data` from `@objectstack/core`, unchanged; `@objectstack/core` re-exports all three, so no import changes. + - **Three error codes** in the ADR-0112 ledger: `ERR_WORK_CALENDAR_UNRESOLVED` (no calendar by that code, no organization default, two defaults, or no organization named outside the `single` posture), `ERR_WORK_CALENDAR_NOT_MAINTAINED` and `ERR_WORK_CALENDAR_INVALID`, each a 400. + - **The calendar service** (`@objectstack/objectql`, registered as `work-calendar`). `resolve({ organizationId, calendar })` takes the named code, else the organization default, else refuses; it never falls back to wall-clock time. It reads in the organization the caller names, elevated, and caches until a calendar or exception row is written. Outside the `single` tenancy posture, a computation that names no organization is refused before any read. Until the calendar objects are registered it refuses every resolution. + - **The write door** (`@objectstack/objectql`). Once the calendar objects exist, a calendar or exception write is refused `400 VALIDATION_FAILED` when a period crosses midnight, is malformed or overlaps another, an `off` row carries periods or an `on` row carries none, `maintained_through` is before `maintained_from`, a second calendar is marked the default, or a calendar created in an organization other than the one being worked in is marked the default (create it there, or set the default by an update); a calendar created without `timezone` takes the organization's Localization time zone. The hooks take the organization from the session. +- 401eb44: fix(app-shell): Studio's formula inspector asks whether the formula still computes money before it keeps a `currency` result type + + Clause-②: yes (widening) + Metadata-protocol: none + + When an author edited a formula field in Studio, the inspector re-stamped `returnType` from the expression's inferred CEL type, and kept a declared `currency` under every `number` or unproven verdict, because that type never says "money". So a formula edited from an amount (`record.amount * 0.1`) into a count (`record.est_hours * 2`) kept `returnType: 'currency'` and its `currencyConfig`, and its value was still shown as an amount. + + The stamp now also asks `@objectstack/formula`'s `inferFormulaReturn`, over the object's declared fields, whether the edited expression computes money: + + - Provably money: `returnType` is stamped `currency`, with the currency the source amounts are in as the formula's `currencyConfig` (absent for the tenant default currency). This holds for a formula that was `number` too. + - An edit it answers `number` for withdraws a declared `currency`: `returnType` becomes `number` and the `currencyConfig` is removed. + - An unproven verdict (a field-over-field quotient, two currencies meeting) keeps a declared `currency`, as before, and so does an engine that does not offer `inferFormulaReturn`. + - A declared `percent` is unchanged: it survives a `number`, unproven or money verdict, and is never re-stamped `currency`. A verdict that proves `text`, `boolean` or `date` still stamps, and now also removes a stale `currencyConfig`. + + `@objectstack/formula`'s `inferFormulaReturn` now answers `{}` (unproven) where it used to answer `{ returnType: 'number' }` on the numeric path, unless the unit proof succeeds or every read of the record (`record.x`, `record['x']`, `record.?x`, `record[?'x']`, or a bare `x`) is one segment naming a declared field whose unit can be read and is not money. FROM `inferFormulaReturn('record.rollup * 0.9', fields)` → `{ returnType: 'number' }` TO → `{}`. The same holds for `100 / record.amount`, `record.amount % 3`, `record.amount * 1.0 + record.fee_eur * 1.0` (two currencies), `double(record.amount) * double(record.tax)`, an amount whose `currencyConfig` does not parse, a hop through a reference (`record.account.balance * 0.9`), a formula operand that declares no `returnType` (`record.subtotal * 0.2`), the indexed and optional spellings of an amount (`record['amount'] * 0.1`), and a name the field map does not declare (`record.unknown_field * 2`). A call with no field map therefore answers `{}` for any numeric expression that reads the record (`inferFormulaReturn('record.amount * 0.1')` was `number`). So a `number` answer means "proved not money", and only that answer withdraws a declared `currency`. + + What still answers `number` is an expression over declared fields of readable non-money units: number, percent and other plain fields, a formula declaring a non-`currency` `returnType`, and a `count` roll-up whose `summaryOperations` is passed. A bare ratio of two amounts in one currency (`record.amount / record.tax`) types `dyn` and answers `{}`, as before. A caller that read the old `number` for these shapes should read the expression's CEL type (`inferExpressionType`) instead. In Studio, a new formula over such an amount is still stamped `number` from that CEL type. + + Widened: the published `FormulaSourceField` type gains one optional member, `summaryOperations` (a `summary` field's roll-up, as declared). A `count` roll-up is read as a plain number only when it is passed. A roll-up passed without `summaryOperations`, a `count` included, is read as possibly money, so an expression over it answers `{}`. + + The stamp still runs only after the author edits the expression; selecting a field writes nothing. The `returnType` description in `@objectstack/spec` now says the same: `currency` is stamped when the expression provably computes money and withdrawn for `number` when an edit leaves it a plain number, and a declared `percent` is kept under a money verdict. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + ## 18.6.0 ### Minor Changes diff --git a/packages/formula/package.json b/packages/formula/package.json index 1a5083afec1..541242c16db 100644 --- a/packages/formula/package.json +++ b/packages/formula/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/formula", - "version": "18.6.0", + "version": "18.7.0", "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 1b76a8b41be..0c936290764 100644 --- a/packages/lint/CHANGELOG.md +++ b/packages/lint/CHANGELOG.md @@ -1,5 +1,1036 @@ # @objectstack/lint +## 18.7.0 + +### Minor Changes + +- 4ffe9d3: feat(actions): an action writes the sentences it declares in the organization's language + + Clause-②: yes (widening: a new optional authorable key `ActionSchema.texts`, and new translation keys) + Metadata-protocol: added + Skills-docs: follow-up owed — skills/objectstack-ui/rules/actions.md, skills/objectstack-i18n/SKILL.md + + A `script` action's `js` body can now write a sentence into a record in the organization's language, the way a hook does: declare it under `texts`, keyed by a snake_case key, and ask for it by key — `texts: { email_subject: { message: 'Email: {{ subject }}', params: ['subject'] } }`, then `await ctx.text('email_subject', { subject })` where the body used to write `'Email: ' + subject`. The answer is in the organization's language, because everyone in the organization reads the record: the Localization setting (`localization.locale`) when somebody set it, else the app's declared `i18n.defaultLocale`. It is never the language of the person who ran the action. The translation is picked first, then its `{{ }}` holes are filled from `params`. The entry is the hook text's, built by the same shared factory. + + - The translation sits beside the action's other copy: `objects.<object>._actions.<action>.texts.<key>.message` for an action bound to an object, `globalActions.<action>.texts.<key>.message` for an object-less one. `os i18n extract` scaffolds the keys and the existing coverage check counts them; `objectstack validate` refuses a translation over a key the action does not declare. + - A missing translation, or no language to pick, answers the declared sentence, and the action goes on. A Localization setting that cannot be read rejects the call. + - Only declared text is translated: a string the body builds itself is written as it is. A key `texts` does not declare is refused when the action is saved if the body asks for it literally (`ctx.text('key')`), otherwise when it runs, as a fault naming the action and the key. + - `texts` is read only for a `type: 'script'` action with a `js` body (an inline `target` function is lowered to one by `os build`); on any other action, or with no body, it is refused at save. A `flow` action's record writes are the flow's own, marked and translated there (`flows.<flow>.records.…`). + - A text with `params` is compiled like a hook's: a hole over another name is refused when the action is saved, and `objectstack validate`, `compile` and the publish gate refuse a hole holding logic, an unknown formatter, an empty hole and `{{ amount | currency }}` with no code. A translation whose holes do not render at run time is dropped for the declared sentence, filled. + - Text is picked when it is written. Records already written are not changed. An action without `texts` runs exactly as before. + + `@object-ui/core` lists `texts` among the spec's declared action keys, so an action carrying them is not reported as having an unknown key; the console reads nothing new, because the body stores the sentence already picked. + + New exports: `@objectstack/spec` adds `ActionTextSchema` and the `ActionText` type (`ui`), `actionTextMessageKey` (`system`), and `ACTION_TEXT_MESSAGE_HOLE_REFUSED`, `actionTextsWithoutRunnableCode`, `undeclaredActionTextKeyAtSave` and `undeclaredActionTextAtRun` (`data`); `@objectstack/runtime` adds none. Nothing that was accepted before is refused. +- f796089: fix(spec,metadata-protocol)!: retire the seed modes `insert` and `replace`, which inserted every record again on each replay + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: follow-up #34798 + + <!-- adr-0087: registered seed-mode-insert-replace-retired --> + + **BREAKING** for a seed dataset authored with `mode: 'insert'` or `mode: 'replace'`. A seed is replayed on every single-tenant boot, every package install or upgrade and every publish, and neither mode matched an existing row, so every replay inserted each record again: an un-walled install went from 1 to 2 to 3 rows over three boots, a person reference the first load had to leave empty stayed empty on the first row while only the newest copy named the person, and with a unique field the replay insert was refused and the one row stayed empty. `replace` expected the caller to clear the table first, and no load path ever clears one. + + What moves (each line FROM → TO): + + - `SeedSchema.mode` / `SeedMode` (`@objectstack/spec/data`; `defineSeed`, `defineStack({ data })`, a `seed` metadata item, a package body's seed): FROM `insert` / `update` / `upsert` / `replace` / `ignore` TO `update` / `upsert` / `ignore` (default `ignore`, unchanged). `mode: 'insert'` or `mode: 'replace'` fails parse with a prescription naming the fix; the save and publish doors refuse it with the same message. The retired pair is exported as `RETIRED_SEED_MODE_VALUES` (`@objectstack/spec/data`): it is derived from the parse refusal's own table, and the loader and the artifact door read it. + - a stored dataset that still declares one, replayed by the boot seed, the per-organization replay, the dev hot reload or a package install, upgrade or sample-data reseed (`SeedLoaderService.loadStored`, `@objectstack/metadata-protocol`): FROM inserted again on every load TO refused alone — it writes nothing, the load result carries one error with the prescription and `success: false`, and every other dataset loads. `SeedLoaderService.load()` and `validate()` refuse the dataset the same way when handed one unparsed, so a dry run reports what a real load does. + - a compiled artifact (`objectstack.json`) carrying such a dataset, booted by `os serve` / `os start` / `os dev` (the artifact door, `MetadataPlugin`, `@objectstack/metadata`): the door parses the artifact without that dataset and hands it back to the seed load, which refuses it alone; the door logs a warning naming the dataset and the fix. Everything else in the artifact registers and boots. + - `os diff` (`@objectstack/cli`) on a dataset declaring either mode: FROM "a replay inserts these again" TO a note that the mode is retired, that a replay refuses the dataset, and what to declare. + - the advisory lint rule `seed-insert-mode-duplicates-on-replay` (`validateSeedReplaySafety`, `@objectstack/lint`): FROM a warning on `mode: 'insert'` TO removed; the schema refusal does its job for both modes. The author-time rule count `os validate` / `os build` print drops by one (71 to 70 at this release). + - the save door's and the loader's hint for a key no record carries: FROM "or use mode 'insert' for rows with no natural key" TO a list of fields when no single field names a row, or `'id'` when the records carry their own ids. + + The fix: declare which field identifies a row and drop the mode (or declare `upsert` for reference data the package keeps current). Set `externalId` to the field that names a row, to a list of fields when no single field does (a junction table's `['team', 'project']`), or to `'id'` when the records carry their own ids. Rebuild the package, and reinstall it where it was installed with `os package install`, so the stored body carries the new declaration. + + No conversion is made, at load, at save or by a migration (ADR-0087 D3, entry `seed-mode-insert-replace-retired`): a keyed mode needs the field that identifies a row, and only the author knows it. Rows earlier replays duplicated are data and are left as they are. + + Unchanged: `ignore`, `upsert` and `update` datasets load byte-identically. +- f4dbcc2: feat(lint): five publish-time checks for metadata that passes the schema and does nothing at run time, and four build probes over what landed + + Clause-②: no (narrowing: four publish-time refusals of metadata the schema accepts today) + Metadata-protocol: narrowed + Skills-docs: follow-up #35245 + + <!-- adr-0087: registered publish-refuses-metadata-the-runtime-ignores --> + + Five authoring rules join the registry the runtime publish gate and `objectstack validate` / `lint` / `compile` run. Each finding names its fix. + + - `flow-node-type-no-executor` (error): a flow node whose `type` no executor in this deployment runs fails every run with `NO_EXECUTOR`. Judged only against the automation engine's SEALED node-type vocabulary, which the publish gate reads from the new `AutomationEngine.getSealedNodeTypeVocabulary()` (it answers `undefined` until `sealNodeTypeVocabulary()` ran at `kernel:bootstrapped`). The CLI does not know which plugins a deployment loads, so it judges nothing here. + - `flow-approval-decision-unrouted` (error): an `approval` node whose decision out-edges are not labelled exactly `approve` and `reject` runs every out-edge for a decision no label claims, so the approving and the rejecting branch both run. + - `flow-http-timeout-missing` (warning): an `http` node with no positive `config.timeoutMs` and no positive node-level `timeoutMs` waits on a slow upstream for as long as the connection stays open; the engine arms no default timer. A `durable: true` node, which does not wait on the endpoint, is not reported. Like every warning, it makes `os validate --strict` exit 1. + - `state-machine-no-initial-states` (error): an active `state_machine` validation without `initialStates` (or with an empty list) lets a record be created already in any state. Add `initialStates`. + - `action-no-object-binding` (error): a standalone action that declares `locations` but no `objectName` binds to no object, so its button never renders. Set `objectName`, or write `locations: []` for a headless action. + + What was accepted before and is refused at publish now: a flow with an unrouted approval decision or a node type the deployment cannot run, a state machine without `initialStates`, a placed action with no object. The fix for each is in the finding. + + Four post-publish build probes report, as warnings on the publish receipt, what the person will see: `widget_empty_result` (a dashboard card whose real query reads only zeros), `rollup_never_computed` (a roll-up blank on all of the sampled parents that have children, judged inside one organization when the rows carry one), `seed_reference_unresolved` (a sample record the seed loader landed whose reference names no row in the organization that record belongs to, so the reference leads nowhere) and `flow_connector_action_unresolved` (a `connector_action` step naming a connector or action this environment does not serve). Each carries its sentence for the person in every platform locale. `RunBuildProbesOptions` gains `automation`, `packageId` and `seedLanded`; the publish passes the automation engine's connector lookups, the publishing package and its `seedApplied.landed` ids. `ProbeEngine` gains an optional `getSchema`, which names the column a row's organization is stamped in; the roll-up and seed probes judge each row inside that organization. + + New exports: `@objectstack/lint` adds `validateFlowNodeExecutors`, `validateInertObjectDeclarations`, `validateActionObjectBinding`, their finding types, and the rule ids `FLOW_NODE_TYPE_NO_EXECUTOR`, `FLOW_APPROVAL_DECISION_UNROUTED`, `FLOW_HTTP_TIMEOUT_MISSING`, `STATE_MACHINE_NO_INITIAL_STATES`, `ACTION_NO_OBJECT_BINDING`; `@objectstack/metadata-protocol` adds the `ProbeAutomation` and `SeedLandedRows` types; `@objectstack/service-automation` adds `AutomationEngine.getSealedNodeTypeVocabulary()`. `@objectstack/spec` changes only descriptions: those of `RuntimeBuildIssueSchema`, and that of a state machine validation's `initialStates`. +- 0739dee: fix(objectql)!: a field that is `required` and hidden by its own `visibleWhen` is required only when shown, so one admin setting no longer locks every record outside the condition + + Clause-②: yes (narrowing + widening of the required write contract) — widened: an insert or update whose record a `required` field's own `visibleWhen` cleanly hides no longer needs that field, and an explicit null onto a row already shown and empty is accepted. Narrowed: a write that moves a record INTO the condition while that field is empty is refused; 18.5.0 accepted it. + Metadata-protocol: semantic + + <!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed or renamed, and nothing stored is rewritten: what moved is when the engine enforces required on a field that also declares visibleWhen. The one-line fix for a refused write is in the body: fill the field in the same write that moves the record into the condition. --> + + **BREAKING** for flows, bulk updates, imports and API PATCHes that move existing records into a `required` field's `visibleWhen` condition without filling the field. Such a write is now refused with `required` naming the field (on a bulk update, one such row refuses the batch). Fill the field in the same write. A field with `required` and no `visibleWhen` is unchanged. + + **What changed (ADR-0113 D1 and D5, amended).** A field that declares `required: true` and its own `visibleWhen` used to be enforced on every save. In Studio an administrator can add one in a few clicks, and from then on every record that fails the condition refused every write, even an edit of an unrelated field, naming a field nobody could see. The engine now judges such a field from its visibility on the write: + + - the predicate evaluates cleanly to anything but TRUE on the record (the stored row with the write over it), so FALSE, or `null` such as an unset boolean: the field is not required for that write, so a record outside the condition can be created and edited, and the form's clear-on-hide `null` is accepted; + - the predicate is true: the field is required by the same non-regression rule `requiredWhen` uses, against the prior record, which the engine now reads on update for objects with such a field; + - the predicate cannot be evaluated: it counts as shown, the field stays required exactly as before, and the server logs a warning naming the field and the fault. + + The predicate is evaluated with the acting user bound as `current_user`, so a role-gated field is judged per writer; a system write with no user counts as shown. A `formula` field it reads is computed over the record first, as a read of that record computes it. A formula that faults for a reason a read shares (an empty operand) is judged on the `null` a read serves; a formula whose read value the write path cannot know (it reads through a reference, calls `label()`, calls `can` on a write that picks no permission-gated option and so resolves no permission map, reads `current_user` on a system write with no user, or reads such a formula at any depth) counts as shown; the system-write case is logged as `no-acting-user`, as the direct `current_user` spelling is. Only the field's own `visibleWhen` is read: a field group's `visibleWhen` and form-view predicates are not. + + The refusal for such a field now comes from the rule pass rather than the record walk. A single-fault write gets the same `required` code and sentence; a write with several faults may name fewer of them in one `400`, or answer a dangling reference first, and a `beforeUpdate` hook now runs before the refusal and may fill the field. + + **A formula-driven `visibleWhen` on the form.** The form computes the object's formula fields over the record being edited before it judges the field rules (the form-side recompute in `@object-ui/core`, `@object-ui/components` and `@object-ui/console`), so it shows such a field where the server requires it. A formula the form cannot compute (it reads through a reference, calls `label()` or `can()`, reads `os`, or reads the user when nobody is signed in) leaves the field shown and required, and the server decides on save. + + **`@objectstack/lint`.** Three new warnings at `objectstack validate` and the object save door, on a `required` field with a `visibleWhen`: the predicate reads through a reference field (the server cannot evaluate it, so the field stays required everywhere); the predicate reads a `formula` field (with the counts-as-shown consequence when a formula it reads, at any depth, reads through a reference, calls `label()`, or calls `can`, which a write computes only when it picks a permission-gated option); and `storage.notNull: true` beside the pair (the column still refuses the null on a record outside the condition). + + **`@object-ui/app-shell`.** Studio's field inspector shows the reference-read and formula-read warnings under the Visible-when editor of a required field. + + **`@objectstack/spec`.** The `required` and `visibleWhen` descriptions on `FieldSchema` say how the two combine. +- 5ecf937: fix(lint)!: a hook body or job body that does not compile in the wrapper the runtime runs it in is refused + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: follow-up owed — skills/objectstack-data/references/data-hooks.md (its "Sandbox restrictions" section teaches what a body may contain and names no compile check) + + <!-- adr-0087: registered hook-job-body-does-not-compile-refused --> + + **BREAKING** only for a hook or job body that never ran. The runtime runs an L2 hook body and an L2 job body (`body.language: 'js'`) as the body of `(async (ctx) => { … })`. A source that does not compile there, such as `const ctx = ctx.input || {}` (the parameter declared again) or `let x = 1; let x = 2;`, raised a SyntaxError before its first statement on every run, yet passed `os validate`, `os build`, `os lint` and the runtime publish door: the hook parse check reads the source with a parser, which reports no redeclaration, and a job body had no check at all. + + What moves (FROM → TO): + + - New gating rule `validateHookAndJobBodyCompiles` (`@objectstack/lint`), rule ids `hook-body-does-not-compile` and `job-body-does-not-compile`: FROM no finding TO `error` at `os validate`, `os build`, `os lint`, and at the runtime publish door for `hook` writes (`422 INVALID_METADATA`). No door publishes a job, so a job body is refused by the three commands. A hook lowered from an inline `handler` is located at `hooks[N].handler`. The severity split is `action-body-does-not-compile`'s, read through the same `judgeBodyCompile`: a regular-expression pattern the host engine refuses is a `warning`, and every other compile failure is an `error`. + - `hookBodyFunctionExpression` and `HOOK_BODY_PARAMETERS` (`@objectstack/lint`, the first also on `@objectstack/lint/runtime`): the one spelling of the `(ctx)` wrapper. The runtime's QuickJS runner now builds the hook and job wrapper from it, byte for byte the wrapper it built before, so the check and the run cannot disagree about it. + - `judgeBodyCompile`, `BodyCompileVerdict` and `BodyCompileShape` (`@objectstack/lint`): the compile-and-classify core both rules share. `action-body-does-not-compile` reads it with unchanged findings. + - `os explain hook-body-does-not-compile` and `os explain job-body-does-not-compile` explain both rules. + + The fix: use `ctx` as it is, or give the local another name (`const input = ctx.input || {}` in a hook, `const api = ctx.api` in a job); declare each name once; fix any other compile error at the line of `body.source` the finding names. + + No conversion is made (ADR-0087 D3, entry `hook-job-body-does-not-compile-refused`): which name the author meant for the local is a judgement. Measured first-party exposure: zero. +- feb9b79: fix(lint)!: an action body whose regular-expression literal never closes, or whose flags are not a flag set, is refused, not only warned about + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: none — no published skill teaches the action-body compile check or regular-expression literals in an action body + + <!-- adr-0087: registered action-body-regexp-literal-token-refused --> + + **BREAKING** only for an action body that never ran. `action-body-does-not-compile` compiles an L2 action's `body.source` inside `(async (input, ctx) => { … })` with the host's JavaScript engine, and reported every failure whose sentence opens `Invalid regular expression` at `warning`, because the host's V8 and the runtime's QuickJS differ on some patterns. That sentence also opens V8's two token errors: a literal that never closes on its line (`return /abc;`, `return /[/;`, a literal broken by a line terminator: `Invalid regular expression: missing /`) and a flag set that is not one (`/a/gg`, `/a/zz`, `/a/uv`: `Invalid regular expression flags`). QuickJS refuses every one of them, so such a body passed `os validate`, `os build`, `os lint` and the runtime publish door, and every run of the action failed with the coded `500` that names the action and the compile error. + + What moves (FROM → TO): + + - `action-body-does-not-compile` on an unterminated regular-expression literal or an invalid flag set (`validateActionBodyCompiles`, `@objectstack/lint`): FROM `warning` TO `error` at `os validate`, `os build`, `os lint` and the runtime publish door (`action` and `object` writes, `422 INVALID_METADATA`), with a hint that names the fix. A failure in the literal's pattern (a duplicate named capture group, a modifier group: syntax QuickJS accepts and runs) is still a `warning`. + - `os explain action-body-does-not-compile` and the ADR-0087 entry `action-body-does-not-compile-refused` now say that only a pattern the host refuses is a warning. + + The fix: close the literal with `/`, write a `/` inside it as `\/`, or, when the `/` is a division, give it a left-hand operand; write the flags as letters from `dgimsuvy`, each at most once, never `u` with `v`. + + No conversion is made (ADR-0087 D3, entry `action-body-regexp-literal-token-refused`): whether a `/` opened a literal or meant a division is the author's choice. Measured first-party exposure: zero. +- 9062756: fix(lint)!: ten publish-time checks for flows that save and do not run — seven refuse the publish, three warn + + Clause-②: yes (narrowing) + Metadata-protocol: narrowed + Skills-docs: follow-up #36718 + + <!-- adr-0087: registered publish-refuses-flows-that-save-and-do-not-run --> + + **BREAKING** for the publish of a flow that carries one of the seven errors below: it was accepted before and is refused now, with the fix named in the finding. The schema is unchanged and stored flows are not rewritten or refused at boot; the refusal comes at the next publish, and from `os validate` / `lint` / `compile` / `build`. + + Seven errors, run by the runtime publish gate and the CLI: + + - `flow-trigger-object-missing`: a record-triggered flow with no `objectName` registers its hook with no object, so it fires on writes to every object; a blank `objectName` is refused too, because the engine will not register a hook on an empty name and the flow never starts. + - `flow-condition-option-label`: a start condition compares a select field with one of its option labels (`record.stage == 'Closed Lost'`) where the row holds the option value (`closed_lost`), so it is never true. Reported only when the label is that field's own comparand (`F == 'L'`, `F != 'L'`, `'L' == F`, or a member of `F in [...]`); judged only when the field's options are inline in this stack. + - `flow-time-relative-shadowed`: a `timeRelative` block under a record `triggerType` never sweeps, because a record trigger wins. + - `flow-time-relative-key-misplaced`: `filter` or `maxRecords` written beside `timeRelative` is ignored; the sweep reads them only inside the block. + - `flow-time-relative-date-field-invalid`: a `timeRelative.dateField` the swept object does not have, or that is not a `date` / `datetime` field, matches no record. Judged only when the stack declares the object; `created_at` / `updated_at` count as datetime fields. + - `flow-node-write-unknown-option`: a create / update node writes a select field a literal no option carries; the record validator refuses it `invalid_option` on every run. When the literal is an option's label, the finding names its value. + - `flow-node-write-date-helper-text`: a create / update node writes a date field the text of a helper call (`'today()'`); the validator refuses it `invalid_date`. The fix is a CEL value envelope, `{ dialect: 'cel', source: 'isoDate(today())' }`. + + Three warnings, which refuse nothing and make `os validate --strict` exit 1 as any warning does: + + - `flow-schedule-timezone-missing`: a schedule or time-relative cron with no `timezone` runs in UTC. + - `flow-subflow-unknown` (CLI only, new rule `validateFlowSubflowTargets`): a `subflow` / `map` node names a flow this stack and its packages do not carry. The publish gate sees one flow at a time, and another package may ship the called flow, so it is not judged there. + - `flow-create-update-pair`: an after-create flow and an after-update flow on the same object with the same nodes; one flow on `triggerType: 'record-after-write'` does both (on the create run `previous` is null). Judged on the CLI, where the stack holds both flows. + + ## FROM → TO + + - a start node `{ triggerType: 'record-after-update' }` with no `objectName` → `{ triggerType: 'record-after-update', objectName: 'deal' }`. + - `record.stage == 'Closed Lost'` → `record.stage == 'closed_lost'`. + - `triggerType: 'record-after-update'` plus `timeRelative` → keep the one the flow means. + - `{ timeRelative: {...}, filter, maxRecords }` → `{ timeRelative: { ..., filter, maxRecords } }`. + - `fields: { stage: 'Closed Lost' }` → `fields: { stage: 'closed_lost' }`. + - `fields: { due_on: 'today()' }` → `fields: { due_on: { dialect: 'cel', source: 'isoDate(today())' } }`. + + New exports from `@objectstack/lint`: `validateFlowSubflowTargets` and the rule ids `FLOW_TRIGGER_OBJECT_MISSING`, `FLOW_CONDITION_OPTION_LABEL`, `FLOW_TIME_RELATIVE_SHADOWED`, `FLOW_TIME_RELATIVE_KEY_MISPLACED`, `FLOW_TIME_RELATIVE_DATE_FIELD_INVALID`, `FLOW_SCHEDULE_TIMEZONE_MISSING`, `FLOW_SUBFLOW_UNKNOWN`, `FLOW_NODE_WRITE_UNKNOWN_OPTION`, `FLOW_NODE_WRITE_DATE_HELPER_TEXT`, `FLOW_CREATE_UPDATE_PAIR`. `@objectstack/spec` adds only the upgrade-guide entry `publish-refuses-flows-that-save-and-do-not-run`. +- 5dd856f: fix(lint): `state-machine-no-initial-states` judges only state machines that run on insert + + Clause-②: yes (widening) + Metadata-protocol: added + + The publish-time rule `state-machine-no-initial-states` now refuses an active `state_machine` validation with no (or an empty) `initialStates` only when the machine runs on insert: its `events` include `insert`, or are left to the default `['insert', 'update']`. The engine runs a rule only on the write contexts its `events` name, so a machine declared `events: ['update']` (or `events: []`) never runs on create and never reads `initialStates`. Such a machine is accepted at publish and by `os validate` again, with no `initialStates`; adding one to satisfy the rule produced metadata the runtime ignores. A machine that runs on insert without `initialStates` is still refused, with the same fix. + + `@objectstack/spec` changes only the description of a state machine validation's `initialStates`, which now says the rule judges a machine that runs on insert. +- 5dd856f: fix(lint): `field-group-shadowed` judges the six highlights the record page draws, from one shared constant + + Clause-②: yes (narrowing) + Metadata-protocol: narrowed + + The default record page draws the first six of an object's `highlightFields` (after the title field leaves the list) in its header strip and leaves those fields out of the Details body. The `field-group-shadowed` warning judged only the first four, so a field group whose only member sat fifth or sixth in `highlightFields` was empty on the record page and passed `os lint --strict`. It now judges the same six, and its hint says "first 6 highlightFields". + + What was accepted before and is warned now: an object whose field group is emptied by its fifth or sixth highlight. Fix it as the hint says: keep a member of that group out of the first six highlights, or drop the group. A list the old count warned is still warned: six hoisted fields include the first four, so no list that passed only under six is refused. + + New export: `@objectstack/spec/ui` adds `RECORD_HIGHLIGHTS_MAX` (6), the count both the lint and `@object-ui/plugin-detail`'s record page synthesizer read. `@object-ui/plugin-detail` now takes its own `RECORD_HIGHLIGHTS_MAX` from there; the value and the page are unchanged. + + <!-- adr-0087: registered field-group-shadowed-six-highlights --> +- e6fa510: feat(approvals): an escalation deadline can count working time on an organization's working calendar (`escalation.clock: 'working_time'`) + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: follow-up owed — skills/objectstack-automation/references/state-machines-and-approvals.md + + An approval node's `escalation` gains two optional keys (ADR-0157 D5): + + - **`clock`**: `'wall_clock'` (the default) or `'working_time'`. Under `wall_clock` nothing changes: `timeoutHours` counts elapsed hours from `created_at`, nights, weekends and holidays included, and every request already open keeps its deadline (a stored snapshot carries no `clock`). Under `working_time` the hours count only the working periods of a working calendar (`sys_work_calendar`), skipping its holidays and counting its make-up workdays: a request opened at 17:00 on a Friday with `timeoutHours: 4`, on 09:00-12:00 and 13:00-18:00 periods, escalates at 12:00 on the next working day. + - **`calendar`**: the code of the working calendar to count on. Left out, the request organization's default calendar counts. There is never a fallback to wall-clock hours. + + The approvals sweep and the request read share one deadline function. A `working_time` deadline is counted again on every sweep and every read and is never stored, so a holiday entered after a request opened moves its deadline; an escalation that already fired stays fired (single-shot, ADR-0042). When the calendar cannot count the deadline (no calendar has the code, the organization has no default, or the calendar is not maintained as far as the deadline needs), the request does not escalate, the next sweep tries again, and the request read carries a new additive field, `sla_due_refusal` (`code`, `reason` or `date`, `message`), in place of `sla_due_at`. The approvals inbox shows "Calendar can't compute" with the reason where the SLA countdown sits, in every console language. + + `@objectstack/lint` refuses a `calendar` written beside the wall clock (`approval-escalation-calendar-without-working-time`, error): nothing would read it. Whether the named calendar exists is the organization's runtime data and is never checked at publish. The Studio approval inspector offers the clock and, under working time only, the calendar. + + Not released alone: this ships in the same release as the working-calendar objects and service and the working-day formula functions (ADR-0157 D4). +- 29f1280: feat(cli)!: `os validate` and `os build` refuse seed records the seed load would drop: one its own validation rule refuses, or a keyed one with a blank key field + + Clause-②: yes (narrowing) + Metadata-protocol: narrowed + Skills-docs: follow-up #37158 + + <!-- adr-0087: registered seed-record-refused-before-load --> + + **BREAKING** accept-set narrowing of two authoring doors, shipped as `minor`. FROM: `os validate` and `os build` exit 0 on a config one of whose seed records the seed load drops (its own validation rule refuses it, or it is keyed and leaves a key field blank). TO: both exit 1 and name the record, its object, its index and the refusing rule or the blank field. The load's own verdicts do not change. Fix: correct the record so its rule admits it, change the rule if the record is right, or give the record its key value. + + A seed write is held to the object's own validation rules (every type but `state_machine`), and a record a rule refuses is dropped from the load while the rest land. Until now nothing at authoring time judged a seed record against those rules: `os validate` and `os build` passed, and the first sign was a `[Seeder] … dropped record(s)` line at boot carrying the rule's message, not its name. Both commands now refuse such a config (exit 1), one line per refusal (a record two rules refuse prints two), naming where the record sits, its index and the refusing rule: + + ```text + ✗ Seed records the seed load refuses (1 record) + ✗ data[0].records[1]: Seed record #1 of 'xt_payment' is refused by its validation rule 'amount_positive': A payment amount must be positive. + ``` + + The verdict is the write path's own evaluator, run on one rule at a time. A record and rule pair is judged only when the record's own literal values decide it; a pair whose rule reads something the load decides (a reference, a roll-up, formula or autonumber field, a default, a platform-injected column, an expression value, a present value of a non-literal type such as `date` or `datetime`, a `json_schema` rule, a `beforeInsert` hook's write, or the stored row of an `update` dataset) is counted in one dim line and never refused; a dataset whose object the stack does not declare has no rules to judge. A hook registered in plugin code is not visible to the stack, so a config that relies on one to fill a field a rule reads can be refused although the load admits it. Advisory rules (`warning` / `info`) and inactive rules are not judged. + + A keyed record (every live mode: `ignore`, `upsert`, `update`) whose literal value for a key field is blank (no value, `null` or `''`) is refused the same way, in the sentence the seed loader refuses it with at load, naming the object, the record index and the field. A key field holding an expression is judged at load only, and so is the object's organization column, which the load stamps: a declared `tenancy.tenantField` the object has, else `organization_id`. + + `--json` output carries the refusals under `errors` (`os validate`) or `issues` (`os build`), each with `rule` (`seed-row-refused-by-validation-rule` or `seed-record-key-field-blank`), `location`, `object`, `recordIndex`, and `validationRule` or `field`. + + To fix a refused config: correct the record so its rule admits it, change the rule, or give the record its key value. `@objectstack/lint` exports the walk as `judgeSeedRowRefusals`, which takes the evaluator and the tenancy resolver (`resolveTenantFieldName`, `@objectstack/core`) as inputs. +- fe19096: fix(lint)!: a body whose regular-expression pattern the runtime's QuickJS also refuses is refused, not only warned about + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: follow-up #36727 + + <!-- adr-0087: registered body-regexp-pattern-refused --> + + **BREAKING** only for a body that never ran. `action-body-does-not-compile`, `hook-body-does-not-compile` and `job-body-does-not-compile` compile an L2 body inside the wrapper the runtime runs it in, with the host's JavaScript engine, and reported every failure V8 words as `Invalid regular expression: /PATTERN/FLAGS: REASON` at `warning`, because the host's V8 and the runtime's QuickJS differ on some patterns. Measured over the same wrapper text (Node 22.23.5's V8 12.4, Unicode 17.0 tables, against quickjs-emscripten 0.32.0), they differ on two constructs, a duplicate named capture group in different alternatives (`/(?<a>x)|(?<a>y)/`, V8 `Duplicate capture group name`) and a modifier group (`/(?i:a)/`, V8 `Invalid group`), and on three Unicode property names, `IDS_Unary_Operator` (`IDSU`), `Modifier_Combining_Mark` (`MCM`) and the script `Katakana_Or_Hiragana` (`Hrkt`, under `sc=`, `Script=`, `scx=` or `Script_Extensions=`), V8 `Invalid property name`: every name in QuickJS's own tables was compiled in every key form, under `u` and `v`, bare and in a class, and these twelve spellings were every disagreement. Node 22 refuses them and QuickJS runs them. Every other pattern reason probed is refused by QuickJS too, among them an unterminated group (`/(/`), nothing to repeat (`a**`), a class range out of order (`/[b-a]/`), and under `u` a back-reference to a group the pattern does not name, a Unicode property name neither engine knows (`/\p{Nope}/u`) and an incomplete quantifier (`/a{/u`). Such a body passed `os validate`, `os build`, `os lint` and the runtime publish door, and every run of it failed. + + What moves (FROM → TO): + + - The three rules (`validateActionBodyCompiles`, `validateHookAndJobBodyCompiles`, `@objectstack/lint`) on a regular-expression pattern failure that is not one of those measured gaps: FROM `warning` TO `error` at `os validate`, `os build`, `os lint` and the runtime publish door (`action`, `object` and `hook` writes, `422 INVALID_METADATA`), with a hint that names the fix. The measured gaps stay a `warning`; a property name is judged by the host's Unicode tables, and on a host whose tables are older than Unicode 17.0 every property name it refuses is a `warning`; a later Node whose V8 accepts a gap reports nothing for it. + - `BodyCompileShape` (`@objectstack/lint`) gains `regexp-dialect-gap`, the one `warning` arm; `regexp-pattern` is now an `error`. + - The unterminated-literal hint names a line terminator inside the literal as a cause (a `\n` written with one backslash in a quoted or JSON-carried `body.source`). + - A hook lowered from an inline `handler` whose body does not compile gets a hint that names the handler instead of `body.source`. + - The runtime's QuickJS runner (`@objectstack/runtime`): a hook or job body that does not compile is reported FROM the generic `hook 'NAME' threw: SyntaxError: …` (the sentence a body that ran and threw gets) TO `hook 'NAME' does not compile: SyntaxError: …` (and `job 'NAME' …`), the way an action body's is. The caller's answer is unchanged: the `/data` door still answers the sanitised `500 INTERNAL_ERROR`. + - `os explain` for the three rules and the ADR-0087 entries `action-body-does-not-compile-refused`, `action-body-regexp-literal-token-refused` and `hook-job-body-does-not-compile-refused` now say which pattern failures warn. + + The fix: close every group, give each quantifier something to repeat or escape it, write a class range low to high, reference only a group the pattern names, and use a Unicode property that exists. + + No conversion is made (ADR-0087 D3, entry `body-regexp-pattern-refused`): which pattern the author meant is a judgement. Measured first-party exposure: zero. +- af566c2: feat(spec): `count_true` / `count_false` column summaries — a boolean column's Yes and No counts in the list footer and group headers + + Clause-②: yes (widening) + Metadata-protocol: added + + `ListColumn.summary` accepts two more members, `count_true` and `count_false`: the number of rows whose boolean (or toggle) cell is true, and the number whose cell is false. A cell with no value is neither; it stays `count_empty`'s, so `count_true + count_false = count_filled`. + + Both are answered on the server with no new aggregation function: booleans aggregate as numbers on every backend, so `count_true` is `SUM(field)` and `count_false` is `COUNT(field) − SUM(field)`, read off the group header row (or the footer's whole-set row) by `deriveColumnSummary`. `COLUMN_SUMMARY_AGGREGATION`'s derived rows now carry `reads`, every node the member reads (`from` is its first); `columnSummaryNodeFunctions(mapping)` is the one reading of a row's nodes, which the group header compiler, the footer's whole-set query and the lint now share. `COLUMN_SUMMARY_FIELD_TYPES` / `isColumnSummaryCompatibleWithFieldType` say the two members apply to `boolean` and `toggle` only. + + `@objectstack/lint` refuses `count_true` / `count_false` over any other field type under `list-view-summary-field-type-refused` (an error, so `os validate` and the save door fail): over a number the same `SUM(field)` is a total, and the footer would print it as a count. + + `@object-ui/plugin-grid`'s footer menu offers Count of Yes and Count of No first on a boolean or toggle column, and only there; the footer draws them as `Yes 12` / `No 3`, from the whole matched set when the server answers it and from the page, labelled as the page's, when it does not. `@object-ui/i18n` adds the `grid.summary` keys `countTrue`, `countFalse`, `menuCountTrue` and `menuCountFalse` in every pack. +- f3c9d42: feat(spec, ui): a master_detail child is a tab by default; a field group puts it in the overview and the form + + Clause-②: yes (widening: `@objectstack/spec/data` exports `isGroupPlaceableRelationship`, `fieldGroupsPlaceRelationship` and the `BodyTableContext` type, and `isBodyTableRelationship` takes an optional second argument) + Metadata-protocol: semantic + + A `master_detail` FK that declares no `relatedList` used to put its child list into the parent record's overview as a table (since #35597). Now it is a tab of the record page with its count, like any other related list, `inlineEdit` or not. It goes into the overview only where a field group of the PARENT names it (`fieldGroups[].relatedList`). + + - Placed by a group, the child's table is drawn at that group's position in the overview, the parent's create and edit forms inline it, and the record page's Edit saves the record fields and the rows in one save. Its tab stays on the tab row too, with its count. + - `relatedList: 'primary'` on the FK is unchanged on the record page: a body table with no group, and no tab of its own whether or not a group positions it. Its forms follow ruling B like every other child: a field group naming it inlines it in the parent's create and edit forms, `inlineEdit` or not, and with no group naming it the forms do not inline it, even with `inlineEdit`. `relatedList: true` keeps a tab that no group may place, and `false` hides the list. + - A field group may name exactly what it could name before: a plain `master_detail` child or a `'primary'` one. `isGroupPlaceableRelationship` is that test; `isBodyTableRelationship(field, { placedByGroup })` is still the one body-table judgement. + - `inlineEdit` on the FK no longer inlines a child in the parent's form by itself (maintainer ruling B: only the field group decides). It now only picks the form factor of a child a group places: `'grid'`, `'form'`, or `true` / absent for the shape-picked default. A child with `inlineEdit` that no group names is a tab and is not in the form. + - `os lint`: `relationship/line-items-inline-edit` now suggests a field group on the parent (with its required `label`) instead of `inlineEdit: true`, and only for a FK a group may place; `relationship/association-inline-edit` and `relationship/inline-edit-needs-bulk` judge the children a parent group places; the field-consumer rule credits a child's inline grid columns only when a parent group places it. + - The showcase invoice and expense report, and the CRM opportunity, gain a field group naming their lines, so their forms and record pages keep the line table. + - In the entry form a placed table sits at its group's place too: between the sections of the groups around it, or in a tab of its own (labelled with the group) in a tabbed form. A form whose sections name no field group keeps it below the record's fields. + - Studio's field-group picker offers the same children as before. The relationship field inspector reads a plain `master_detail` FK as "Show", and "Show" leaves the key absent so a group can still place it. + + To keep a master-detail child's table in the overview and its rows in the form (including a child that set `inlineEdit`), add a field group to the parent that names it, in the place the table should sit: + + ```ts + fieldGroups: [ + { key: 'basic', label: 'Basic information' }, + { key: 'lines', label: 'Lines', relatedList: 'order_line' }, // or 'order_line.order' for one FK + { key: 'terms', label: 'Terms' }, + ], + ``` + + Such a group holds no fields. Or write `relatedList: 'primary'` on the child's FK to keep it in the overview with no group. A group may name only a list it can place: for an `inlineEdit` child on a `lookup` FK, or on a FK declaring `relatedList: true`, also write `relatedList: 'primary'` on the FK (a `master_detail` FK may instead drop `relatedList: true`). A form view that declares its own subforms still inlines what it declares. +- 52fb30c: feat(plugin-detail): the default record page draws no stage bar and no key-field strip; the stage moves from the header's status tag + + Clause-②: yes (widening) + Metadata-protocol: semantic + + The default record page (`buildDefaultPageSchema`) no longer emits `record:highlights` or `record:path`. The stage is the status tag beside the record's name: a reader who may edit the stage field sees it with an arrow and opens a menu listing every stage in order, the current one checked; a stage the field's blocking `state_machine` cannot reach is disabled with its reason under the name. Picking a stage confirms, and a stage that makes other fields required (their `requiredWhen` holds once the record stands on it, such as a loss reason on a lost stage) asks for exactly those fields in the same dialog and writes them with the move. A refusal stays in the dialog, beside the field it names, and the stage does not move. A reader who may not edit the field, an approval lock or an open draft leaves the plain tag. A plain status field (no stage role) is read and moved the same way. + + The details body now draws every field its groups hold: the highlight fields and the stage field are no longer taken out of their groups, so a record reads in the same groups and order in view and in edit (objectstack#35849). `highlightFields` itself is unchanged and still drives the hover card, a related list's default columns and the record picker; nothing is picked when an object declares none. + + `buildDefaultHighlights` and both blocks are kept: an authored page, or a slotted page's `highlights` slot, still places a strip and a path where it wants them. + + - `@object-ui/components`: `RecordHeaderState` gains an optional `stage` renderer (with the exported `RecordHeaderStageParts`), which the header calls with the stage tag it would draw. Without a host bar (a phone) the header now draws the stage tag in the row under the record's name, beside the state's tags; before, a phone showed no stage at all. + - `@object-ui/plugin-detail`: exports `RecordStageMenu`, the menu a host hands the header as `RecordHeaderState.stage`. Its fields-a-stage-needs dialog comes from the package-internal `useStageChange` (`record:path` keeps its plain confirmation). + - `@object-ui/plugin-detail`: `BuildPageOptions.highlightFields`, `.statusField` and `.stages` are still accepted by `buildDefaultPageSchema` and `buildDefaultTabs` but no longer do anything there, since the default page draws no strip and no stage bar; `buildDefaultHighlights` still reads them. Retiring them is objectstack#35943. + - `@object-ui/i18n`: four `detail.stageMenu*` strings in every locale. + - `@objectstack/lint`: `field-group-shadowed` no longer counts the highlight strip as hiding fields from the detail body, since the default record page leaves them in their groups; a group whose only visible member is the record title still warns. +- 8df7bf2: feat(spec): an object's `relatedLists` is its record page's tab list — only the listed related lists show, in order, the attachments, approvals and activity-stream tabs are placed by object name, and an entry can carry its list's title and columns + + Clause-②: yes (widening) + Metadata-protocol: semantic + + A record page's tabs are now declared on the parent object, in one place: + + ```ts + relatedLists: [ + { list: 'quote_line', label: 'Line items', columns: ['product', 'quantity', 'unit_price', 'amount'] }, + 'task', + 'sys_attachment', + 'sys_approval_request', + 'sys_activity', + ], + ``` + + - **No `relatedLists` (or an empty one): nothing changes.** Every related list shows, in the derived order, then attachments, approvals and the activity stream. + - **A declared `relatedLists` now decides which tabs show**, not only their order. A related list no entry names shows no tab; before, it still followed the listed ones. Removing an entry removes its tab. Body tables a field group places in the overview (`fieldGroups[].relatedList`) stay at their group, and the tab such a `master_detail` table also keeps on an undeclared page shows only when an entry names it, and `relatedList: false` on the child's FK still hides a list. + - **This narrows the #35889 note** ("Its tab stays on the tab row too, with its count"): the tab of a `master_detail` child that a field group places in the overview stays only while the parent declares no `relatedLists`; once it declares one, that tab shows only if an entry names the child. + - **The three built-in tabs by object name**: `'sys_attachment'` (attachments; shown only when listed, and still only when the object enables files), `'sys_approval_request'` (approvals; still only on a record with requests, and when unlisted it follows the listed tabs), `'sys_activity'` (the one activity stream; when unlisted it closes the strip). A built-in is written only as its bare name: `{ list: 'sys_attachment', … }` is refused at parse. `'sys_comment'` and `'sys_audit_log'` are parts of the stream, not tabs: `os validate` warns (`related-list-stream-part`) and prescribes `'sys_activity'`. `'sys_attachment'` on an object without files warns (`related-list-attachments-off`). + - **An entry's own title and columns**: `{ list, label?, columns? }` wins over the child FK's `relatedListTitle` / `relatedListColumns`, which keep working unchanged. The columns are child field names, used wherever the list is drawn (its tab, and the body table a field group places); a dotted column (`account.industry`) walks the child's relationships, as `relatedListColumns` does, and a name that resolves to no field of the child is refused (`related-list-column-unknown`) by `os validate`, `os build` and the metadata write door. + + - **The generic object form** (metadata admin) edits `relatedLists` with its own chip input: a bare name and an object entry both show and both survive add and remove (the entry's title and columns beside its name; they are edited in Studio). Its help text states the tab-list meaning in every translated locale. + - **Studio** (object settings, Record page tabs): the editor lists the entries in order, the built-in tabs among them, and offers the built-ins not yet listed (attachments only when the object enables files). A relationship row's edit sets its own title and columns, and clearing both writes the bare name again. The relationships not listed are shown below as having no tab. A move, a removal or an add keeps every entry's object form and every built-in name. + + What to check in an app: an object that already declares `relatedLists` and leaves some related lists out now shows only the listed ones, and shows no attachments tab unless `'sys_attachment'` is listed. List every tab the page should keep, or remove `relatedLists` to show them all. A child list another package adds is hidden too until the parent names it, which a build accepts only when that package is in the parent's stack; letting a package place its own list is a later change. ADR-0087 semantic entry `related-lists-declared-is-tab-list`. +- 170ca48: feat(spec): a field group lists its own members and their order (`fieldGroups[].fields`) + + Clause-②: yes (widening) + Metadata-protocol: added + + A field group may now list which fields it shows and in what order: + + ```ts + fieldGroups: [ + { key: 'basic', label: 'Basic', fields: ['account', 'name', 'valid_until'] }, + { key: 'terms', label: 'Terms', fields: ['terms'] }, + ] + ``` + + The record page, the create and edit forms and the drawer show the group's fields in the list's order, whatever order the object's `fields` declares them in, so a group can be reordered without moving any field (and without changing a list view's default column order). + + Nothing changes for an object that writes no `fields` on its groups: a group without the list still holds the fields whose `group` names it, in field declaration order. `Field.group` is the older spelling and is still read; it is not deprecated for removal. + + The two spellings must agree. The object parse refuses a field one group lists while its own `group` names another declared group (reported at both places; a `group` naming no declared key is not another group, so the list wins), a field two groups list, a name one list repeats, and `fields` on a group that places a related list (`relatedList`). A field whose `group` names a listing group that leaves it out is shown after the listed fields, never dropped. A listed name the object does not declare is skipped, so removing a field never makes the object unparseable; `os lint` warns about it (`field-group-member-unknown`). + + New export: `readFieldGroupMembership` (`@objectstack/spec/data`), the membership `deriveFieldGroupLayout` places sections from, for editors that also show hidden fields. + + Studio: dragging a field inside a group, or into another group, now writes those groups' `fields` lists and leaves the object's field declaration order alone. Only the ungrouped bucket, which has no list, still reorders by declaration order. Moving a field to another group from the field inspector does the same once a list is involved. + + Field-level security: the object document served to a caller who cannot read some fields keeps each group's `fields` list, with the hidden names filtered out and the rest in order, so the record page and forms keep the layout for that caller. +- d33bf5a: feat(spec): an object extension says where the fields, groups and child lists it brings go (`place`), and a child list another package brings is no longer hidden by the parent's `relatedLists` + + Clause-②: yes (widening) + Metadata-protocol: semantic + + An `objectExtensions` entry can now place what it brings on the object it extends: + + ```ts + objectExtensions: [{ + extend: 'account', + fields: { tax_id: { type: 'text', label: 'Tax ID' } }, + place: [ + { field: 'tax_id', group: 'basic', after: 'industry' }, + { group: { key: 'tax', label: 'Tax' }, after: 'basic' }, + { list: 'contract', after: 'opportunity', label: 'Contracts', columns: ['name', 'amount'] }, + ], + }], + ``` + + - **No `place`: nothing moves.** Fields still arrive after the object's own, and an extension that writes no `place` serves exactly what it served before. + - **One merge, every reader.** The registry fold applies the placements once, after every contributor's fields are merged, so the record page, the forms and Studio show one arrangement. Uninstalling or disabling the package takes its items off and leaves the object's own order as it was. + - **Placement arranges what the parent declares.** A list placement applies when the extended object declares `relatedLists`; a group or field placement when it declares `fieldGroups`. On a parent that declares neither, its automatic arrangement stays and nothing is dropped: the list shows in the automatic tab order, and its entry's `label` / `columns` are not applied either (write `relatedListTitle` / `relatedListColumns` on your child object's lookup field to title it on every parent); the field shows among the fields, its `after` / `before` not applied. The boot log names each placement that did not apply, with the object and the package. It is the main channel: `os validate` names it too (`extension-placement-not-applied`, warning) only when the extended object is in the same stack. + - **Anchors and order.** `after` or `before`, not both; neither means the end. An anchor may be an item another placement brings, whatever order the two are written or registered in. An anchor nobody has puts the item at the end of its group, of the groups, or of the tabs (before a trailing approvals / activity-stream run), and `os validate` warns (`extension-placement-anchor-missing`). A list placement's `columns` are fields of the child, checked by `os validate` as a `relatedLists` entry's are (`related-list-column-unknown`). Several packages at one anchor follow ascending `priority`, then package name, so every build gives the same order. When the object itself already names the list or lists the field, its own position wins. + - **An extension places only its own items.** A field outside its own `fields`, a field the extended object declares (also one the extension redeclares to relabel it), a group key the extended object already declares, or a list (placed as a tab or by a group's `relatedList`) that is not a child object of its package pointing at the extended object is refused at parse or at `defineStack`, and skipped by the merge with a warning naming whose item it is, whichever door registered the extension. The extension keys `fieldGroups` and `relatedLists` are refused with a prescription naming `place`. + - **Shipped behaviour change (flips #35897's hiding):** a child list another package brings is no longer hidden by the parent's declared `relatedLists`. Placed, it sits where its package puts it; unplaced, it shows at the end of the tabs. "Another package" means the child and the parent both belong to a package and the two differ; a child of the parent's own package, or one no package owns, is still hidden until an entry names it. This narrows the #35897 note "A child list another package adds is hidden too until the parent names it … letting a package place its own list is a later change": that change is this one. + - **Studio** (object settings, Record page tabs) shows such a list read-only among the unlisted rows with a "from <package>" badge, and the preview draws it where the record page does. + + What to check in an app: on an object that declares `relatedLists`, every installed package's child lists of it now show, at the end of the tabs unless placed; name one in the parent's `relatedLists` to put it elsewhere, or set `relatedList: false` on that package's FK to hide it. Nothing in HotCRM changes meaning today: no module writes `place`, and no object declares `relatedLists`. Most HotCRM objects already declare `fieldGroups`, so a field or group placement there applies as soon as a module writes one; a list placement waits until the parent declares its `relatedLists` (follow-up #35902). ADR-0087 semantic entry `object-extension-place-and-cross-package-lists`; ADR-0146 D10 and ADR-0085 notes. +- f2a990b: feat(spec): every step a flow drawing shows can be translated, under `flows.<flow>.nodes.<node_id>.label` + + Clause-②: yes (widening: a new translation key `flows.<flow>.nodes.<node_id>.label`; the new exports `FLOW_TECHNICAL_NODE_TYPES` and `isFlowTechnicalNodeType` from `@objectstack/spec/automation`; and `@object-ui/i18n`'s exported `FlowLabelTranslations` type gains the member `screenTitle`, and its `stepLabel` parameter accepts a `config`) + Metadata-protocol: added + Skills-docs: follow-up #36401 + + A package can now translate the label of any flow step, not only a screen's heading and an approval step's label. A manual that embeds a flow (a `type: flow` metadata embed) lists its steps by label, and until now a start, decision, notify or end step had nowhere to put a translation, so a zh-CN reader saw those steps in English beside translated approval steps. + + - **The key.** `flows.<flow>.nodes.<node_id>.label`, keyed by the node's `id`, at any depth. It overlays the node's own `label` and is plain text. A `screen` keeps its `screens.<node_id>.title` and an `approval` its `approvals.<node_id>.label`, so one string keeps one key: `objectstack validate` points a `nodes` key over either at that key, and points a `screens` or `approvals` key over any other node at `nodes.<node_id>.label`. A key over a node the flow does not declare is refused. `nodes` was an unknown-key hint that suggested `screens`; it is now its own group. + - **Start and end steps are translated like any other.** Their labels are the author's words and often name an outcome or a trigger ("Approved", "On Task Created"), so nothing substitutes words of its own for them. + - **Missing translations are reported.** `os lint` and `os i18n check` (`i18n/missing-flow`) now ask for the label of every top-level step the embed draws at its default `detail: business` altitude, except screens and approvals, which they already asked for, and of a folded technical step where a drawn decision's branch list names it as the step the branch leads to (a decision whose branch runs a `script` first). `os i18n extract` scaffolds the keys. An app that ships translated locales gets new findings for its flows until it translates them. + - **The drawings read it.** The docs viewer's `type: flow` embed (`element:metadata_viewer`) and the Studio flow designer's canvas, nested region nodes included, now name each step by its translation in the reader's language, through the one resolution in `@object-ui/i18n`: `stepLabel` reads `approvals.<node_id>.label` for an approval, `screens.<node_id>.title` for a screen with no `config.title`, and `nodes.<node_id>.label` for any other node. A step the package leaves untranslated keeps its authored label. A decision's branch list names the step a branch leads to the same way. + - **A titled screen is named by its heading in the docs embed.** A screen that authors its own `config.title` shows that heading at run time, translated under `screens.<node_id>.title`, so the embed names it by the heading (translated where the bundle carries it) instead of its canvas label, which has no key. A heading with a `{{ }}` hole cannot be filled in a drawing, so such a screen keeps its authored label. `FlowLabelTranslations` gains `screenTitle` for this read. The Studio canvas keeps a titled screen's authored label. + - **One table for what business altitude hides.** `FLOW_TECHNICAL_NODE_TYPES` (and `isFlowTechnicalNodeType`) in `@objectstack/spec/automation` lists the node types `detail: business` folds away (`script`, `http`, `connector_action`, `assignment`, `get_record`, `create_record`, `update_record`, `delete_record`, `boundary_event`). The docs viewer folds steps by it and the coverage check asks for translations by it, so they agree on which steps a reader sees. +- 78437e2: feat(security): the read-only `viewAllFields` object-permission bit + + Clause-②: yes (widening) — @objectstack/spec adds the optional `viewAllFields` key to `ObjectPermissionSchema` (and so to the wire `EffectiveObjectPermissionSchema`) and the optional `viewAllFields` column to `AccessMatrixEntrySchema`; nothing removed or narrowed + Metadata-protocol: added + + A permission set can now say "this role reads every field of this object" on its own: `objects: { crm_account: { allowRead: true, viewAllFields: true } }`. The bit casts a read vote on every field of the object, fields added later included, and never an edit vote: an edit still comes from the default (a field no set names follows the object grant) or from an explicit `editable: true` field row. Inside one set the specific row beats the general bit, so a set's own `readable: false` row on a field keeps that field hidden for that set. It is allowed on the `'*'` wildcard entry. It is a field vote only: it grants no object access and widens no record, so pair it with `allowRead`, and use `viewAllRecords` for records. + + Nothing behaves differently yet. Today `viewAllRecords` and `modifyAllRecords` also vote on every field, so on a set that carries either bit the new key duplicates a vote already cast. The built-in `organization_admin` set carries it on its wildcard entry, so its holders keep their field visibility when a later major release stops those two bits voting on fields; the wall-less `organization_admin_no_bypass` variant drops it together with the two record bits, as it never held that field vote. + + Every reader of the super-user bits reads the new one too: + + - both field merges (`PermissionEvaluator.getFieldPermissions` and the `fields` slot of `/auth/me/permissions`) apply it through the one shared vote, `superuserFieldVote` in `@objectstack/core`; + - the agent ceiling clears it on every object entry, as it clears View All and Modify All; + - an organization administrator cannot distribute a set whose `'*'` entry carries it (the organization boundary, condition (a)); + - a set carrying it on any object is high-privilege, so it is not bound to the `everyone` or `guest` audience; + - the access-matrix snapshot gains a `viewAllFields` column, written only when `true`, so the `access-matrix.json` of a stack that does not author the bit is byte-identical, and the semantic diff names it ("gains View All Fields on …"). +- ad65d82: fix(formula)!: `validateExpression` refuses `==` / `!=` between a list-valued field and a scalar, which answers a constant on every row + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: follow-up #36217 + + <!-- adr-0087: registered cel-list-equality-refused --> + + **BREAKING** accept-set narrowing, shipped as `minor`. CEL compares the whole list with the scalar, so `record.labels == 'frontend'` is `false` for `['frontend', 'qa']` and for `null` alike, and `record.labels != 'frontend'` is always `true`: a condition written that way never fires (or always does), with no fault and no log line. The shared validator accepted it. + + - **The refusal.** `validateExpression` refuses a `==` / `!=` between a read of a list-valued field on `record` / `previous` (`record.f`, `record['f']`, either operand order) — or, at a flattened (flow) condition, its bare name `f`, which the run binds to the trigger record's field, unless a flow variable holds the name or a node can bind names no reader sees — and a non-null string, number or boolean literal, as the new `list-equality` code (params `reference`, `operator`, `operand`, `answer`, `rewrite`), prescribing the null-guarded membership test. + - **Which fields are lists.** A `fieldTypes` entry of an inherently multi-value type (`multiselect`, `checkboxes`, `tags`), or a field named in the new optional `ExprSchemaHint.multiValueFields` — the fields a caller reads as multi-valued through `isMultiValueField` (`@objectstack/spec/data`), which is how a `select` / `radio` / `lookup` / `user` / `file` / `image` field declared `multiple: true` becomes a list here. Absent, such a field is not judged, as before. + - **Who fills it.** The publish lint (`os validate` / `os build`, every CEL site that types the object's fields), the MCP `validate_expression` tool (read off the served definition, `McpDataBridge.servedObjectDefinitionOf`, at the validation / formula / flow-condition sites; a bridge without it answers as before), `registerFlow`'s schema pass (`parseObjectFieldSchema` returns `multiValueFields`; logged, never thrown, like every finding of that pass), the scenario scorer, and Studio's object draft check (field rules, formulas, validation rules; `CelSchemaHint.multiValueFields`). + - **Still accepted.** `S == null` / `S != null` (either side), `'a' in S`, a list compared with a list literal or with another list field, and a comparison whose other operand is not a literal. + + FROM → TO: + + - `record.labels == 'frontend'` → `record.labels != null && 'frontend' in record.labels` + - `record.labels != 'frontend'` → `record.labels == null || !('frontend' in record.labels)` + - at a flow condition, `labels == 'frontend'` → `labels != null && 'frontend' in labels` + + One-line fix: test membership with `in`, null-guarded (`'a' in null` faults); compare the list with `null` to test whether it is set. +- cb5a975: fix(formula): the `list-equality` refusal prescribes a rewrite that works where it is read, and a flow condition is judged only where the run binds a row of the typed object + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: follow-up #36217 + + The two widenings. A flow condition in a flow that no record write or sweep starts (an API, scheduled or trigger-less flow) is no longer refused as `list-equality`, bare or `record.`: that run holds what its entrance handed it, so `labels == 'frontend'` can be correct code there. And `ExprSchemaHint` gains the optional key `filterCompiled`, which tells the validator that the site's source compiles to a query filter. + + The rewrite the refusal prescribes now depends on the site, and is parenthesised whole so it can stand where the comparison stood (`A && (…)`): + + - **A `record.` / `previous.` read evaluated as CEL** (a validation rule, a field rule, a formula, an action's `visible` / `disabled` / `pressed`, a hook condition): + - FROM `record.labels != null && "frontend" in record.labels` + - TO `(has(record.labels) && record.labels != null && "frontend" in record.labels)` + - `has()` answers on a sparse row or a null `previous`, where the old form faulted. + - For `!=` the TO form is `(!has(record.labels) || record.labels == null || !("frontend" in record.labels))`. The old `!=` form, with no parentheses, split under a leading `&&`. + - **A bare name at a flow condition:** + - FROM `labels == null || !("frontend" in labels)` + - TO `(labels == null || !("frontend" in labels))` + - For `==` the TO form is `(labels != null && "frontend" in labels)`. + - **A sharing rule `condition`**, which compiles to a query filter: + - FROM `record.labels != null && "frontend" in record.labels`, which does not lower (`in` needs a field on its left), so the rule was dropped as `sharing-rule-unlowerable-condition`. + - TO `(record.labels != null && record.labels.contains("frontend"))`, which lowers to a membership filter (`$contains`). + - For `!=` the TO form is `(record.labels == null || !record.labels.contains("frontend"))`. + - A number or boolean operand is passed as its text (`contains("3")`). + + One-line fix: write the rewrite the refusal names. + + `registerFlow`'s advisory pass now hands the validator `faultOutcome: 'run-fails'` on a record-triggered flow and on a time-relative sweep of the typed object, the same flows `os validate` declares it on. On those flows its logged type-mismatch lines now use the wording `os validate` prints. It still only logs and never throws. +- ad92dfd: fix(lint)!: `==` / `!=` between a list-valued field reached through a lookup hop and a scalar is refused, as the root-field case is + + Clause-②: yes (narrowing) + Metadata-protocol: narrowed + Skills-docs: none — the `objectstack-formula` skill already teaches that a list field compared with a scalar literal is refused and the `has()`-guarded `in` rewrite; a hop read of a list field takes the same rewrite + + <!-- adr-0087: not-required (already-registered cel-list-equality-refused) the same list-equality refusal and membership rewrite, one hop away; this change extends that entry's surface to the one-hop read at a validation rule predicate and a field expression, and states its doors (os validate, os build, the object save door) --> + + **BREAKING** accept-set narrowing, shipped as `minor`; the new `@objectstack/formula` export `findHopListEquality` widens the package's public surface. + + `record.labels == 'vip'` on a list-valued field has been refused as `list-equality` since the shared validator learned it, but the same comparison one hop away, `record.account.labels == 'vip'` where `account` is a lookup and `labels` a list-valued field of its target, was refused nowhere. A validation rule's `condition` / `when` and a formula's `expression` are the two sites that serve a hop: the engine hydrates the related row, so `record.account.labels` is the stored list, and comparing it with a scalar answers `false` (for `!=`, `true`) on every row. A rule written that way never fires and saves clean. + + - **The refusal.** At those two sites, the publish lint (`os validate` / `os build`) and the object save door refuse a `==` / `!=` between a read of a hop target's list-valued field (an inherently multi-value type, or a multi-capable type declared `multiple: true`) and a non-null scalar literal, either operand order, in the root case's words, prescribing the root case's membership test on the hop read. + - **What carries it.** `@objectstack/formula` exports `findHopListEquality(source, listLeaves)`, which returns the `list-equality` refusals (same code and params as `validateExpression`'s) for the reference → list-valued-leaves map its caller hands in. `ExprSchemaHint` is unchanged. The ADR-0087 entry `cel-list-equality-refused` now names the one-hop read and its doors; the Studio draft check and the shared-validator half of the MCP `validate_expression` tool do not see a hop. + - **Still accepted.** A hop to a scalar field (`record.account.tier == 'vip'`), `record.account.labels == null`, `'vip' in record.account.labels`, a hop through a reference that is itself multi-valued, and every site that serves no hop (an action's `visible`, a flow condition), where `record.account` is the stored id. + + FROM → TO: + + - `record.account.labels == 'vip'` → `(has(record.account.labels) && record.account.labels != null && "vip" in record.account.labels)` + - `record.account.labels != 'vip'` → `(!has(record.account.labels) || record.account.labels == null || !("vip" in record.account.labels))` + + One-line fix: test membership with `in` on the hop read, guarded as the refusal prescribes. +- 70d07fd: feat: an object arranges its actions per scope (`actionLayout`: pinned buttons and the 「More」 order), and the design mode sets it + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: follow-up #36630 + + A page header draws at most three of its actions as buttons and puts the rest in its 「More」 menu. An object now arranges them itself with the new optional key `actionLayout` on `ObjectSchema` and `ObjectExtensionSchema`: `{ list?: Arm, record?: Arm }`, where `Arm = { pinned: string[], more?: string[] }`. `pinned` names the buttons in the order drawn, at most three (`[]` pins none); `more` orders the 「More」 menu; an action the scope places that neither part names goes to the end of 「More」 in its default order. A pinned action that is hidden leaves its button out, and no other action takes its place. + + - `list` arranges the actions placed at `list_toolbar` and the list page's built-ins `$import` and `$export`. A built-in is only ever pinned: one named in `more` is refused with its reason, since not pinned the list page draws it in its own Import / Export menu. + - `record` arranges the actions placed at `record_header` or `record_more`. It is a scope, not a page: the record page header, the side preview and a phone's bottom action bar all read it. A `page:header` that authors its own `actions` list keeps that list. + - An arm left out (or the key left out) draws that scope exactly as before. + + What each package gains: + + - `@objectstack/spec`: the key and its shape refusals at every door (more than three pinned, a name given twice in one part or in both, a malformed name, a built-in the scope does not have, a built-in in `more`, since a built-in is only ever pinned), each with its reason. New exports `OBJECT_ACTION_LAYOUT_PINNED_LIMIT`, `OBJECT_ACTION_LAYOUT_SCOPES`, `OBJECT_ACTION_LAYOUT_BUILTINS` and the types `ObjectActionLayoutScope`, `ObjectActionLayout`, `ObjectActionLayoutArm`. The object form offers it under Advanced, one JSON row per arm. + - `@objectstack/objectql`: `actionLayout` joins `fieldGroups` and `relatedLists` as a key only the base's paired `.custom` package writes on an `object_extension` (ADR-0146 D10). It is applied last, after every other layer, arm by arm: each arm it writes replaces the served arm for that scope whole, and an arm it leaves out stays. A manifest's `objectExtensions` entry now carries the key to the fold. + - `@objectstack/metadata-protocol`: the one judge refuses `actionLayout` from any other package, naming the action's own `locations` and `order` as the way to place an action the package brings. Each door says it its own way: publish, restore and draft promotion of an `object_extension` answer `VALIDATION_ERROR` / 400; marketplace install refuses the package body with `VALIDATION_ERROR` / 422; `os validate` and `os build` exit non-zero and print the row; the registry fold skips the key and leaves a note. + - `@objectstack/lint`: `validateObjectActionLayout` (`object-action-layout-unknown`, `object-action-layout-not-placed`, at `error`) refuses in `os validate`, `os build` and `os lint` a name, in either part, that is no action of the object or is not placed in the scope its arm arranges. + - `@object-ui/types`: `arrangedHeaderActions(actions, arm, scope)`, the one reader both record headers and the list header apply, and `readActionLayoutArm`. + - The console: both record headers (the default page's and an authored `page:header` with `placedActions: true`) and the list header draw the arrangement. In the design mode, 「Header buttons」 at the end of the page header lists the scope's actions under 「Pinned to header」 and 「Other」 (the 「More」 menu), each dragged into order; a dot moves an action between them, a fourth pin is refused with a toast, the header shows the change at once, and 「Save」 writes only the arms that changed: into the object's own package when it is writable, else into the installed object's customization package as an `object_extension`, through the one writer of an installed object's arrangement (`saveObjectExtensionArrangement`, whose patch type now takes the object-shaped `actionLayout`), which refuses a customization package the server does not list writable. A name the scope no longer offers is listed in the panel as left out. A name the header cannot draw is refused at save with its reason. New `@object-ui/i18n` keys under `designMode.pins`. +- 73f2cf4: feat(kanban): the board's own 视图设置, a lane header 「+」 and 「⋯」, and a lane statistic and card toggles on `KanbanConfig` + + Clause-②: yes (widening) + Metadata-protocol: added + + `KanbanConfigSchema` gains three optional keys, none with a default; a view that declares none of them renders as before: + + - `summary` — a lane statistic drawn at the foot of each lane (`KanbanLaneSummary`): `{ type: 'count' }`, or `{ type: 'sum', field }` of a number field over the cards the lane has loaded, not every record of the lane; `{ type: 'none' }` shows nothing. It takes precedence over `summarizeField`. A sum over a lane holding more cards than were loaded says so (「仅已加载的卡片」). The whole-lane sum, and average, minimum and maximum, wait for a server lane read (#36520). + - `showFieldLabels` — absent means `true`: a card names each field beside its value; `false` draws the values alone. + - `hideEmptyFields` — absent means `true`: a card leaves out an empty field; `false` keeps its line. + + On a board, the view settings show the lane field, which lanes show and in what order, the card fields (order, hide, add), the two card toggles and the lane-foot statistic, in place of the table's columns, group, row height and row colour. Each change applies at once and is held as the list's draft until Save. Each lane header gets 「+」 (a new record with the lane prefilled; an empty lane also gets a 「+ New」 row) and 「⋯」 (collapse, kept in this browser; hide). Hiding a lane moves its cards into 「未分类」, as `kanban.lanes` (#28211) always has, and the menu and the lanes list say so. The lane field picker offers select and radio fields; collapse is kept per reader, object and view. The Console now relays the view's `kanban.lanes`, which it used to drop, and both producers of the board node (`ListView` and `ObjectView#generateViewSchema`) relay the three new keys. `ObjectKanban` takes the host's `laneMenu` request (`KanbanLaneMenuRequest`). `@objectstack/lint` walks `kanban.summary.field` and refuses a `sum` over a field that is no number, a yes / no field included (`list-view-summary-field-type-refused`). Saving a board whose view declares no `kanban` block stores the lane field the board draws with the changed keys. +- 3b58921: feat(console): record create and edit stop loading internal forms; a field's Show on create switch + + Clause-②: no (narrowing) + Metadata-protocol: semantic + + <!-- adr-0087: registered internal-record-forms-not-loaded --> + + The Console's record create and edit surfaces no longer load an object's internal form view. The create dialog, the edit dialog, the full-page create and edit (`/new`, `/record/:id/edit`) and a create or edit an action opens now lay the record out by the object's field groups (`fieldGroups`) and follow the rules on its fields (`visibleWhen`, `readonlyWhen`, `requiredWhen`, `required`). What used to steer those surfaces and now steers nothing: the default form view (`form`, `formViews.default`), the `create` form view, and on them `sections`, the `tabbed` and `wizard` layouts, `defaultTab`, `tabPosition`, `subforms`, `modalSize`, `buttons`, `layout` and `defaults`. A master-detail sub-table still comes from `fieldGroups[].relatedList`, and a flow screen reads its sub-table settings from there too. + + An app that still declares an internal form installs and runs as before; the definition is inert. A public form (`sharing.enabled: true`) keeps loading at its own link by its own definition, and a named form an action of type `form` opens is unchanged. + + `showOnCreate` is now live: a field with `showOnCreate: false` is left out of every create surface and stays on edit, the record page and lists. The field form (`field.form.ts`) and the Studio field inspector offer it as "Show on create", on by default; a required field keeps it on. + + `@objectstack/lint` adds the advisory rule `form-view-internal-not-loaded`: a warning, never an error, on each internal create or edit form an app declares (a container's `form`, `formViews.create`, `formViews.default`, and a stored form view that is the default or named `OBJECT.create`), and on no public or named form. + + Studio: the Data pillar's Form tab always lays out the object's field groups, and the Interfaces rail no longer lists internal forms; public forms and named forms stay listed. + + An app that relied on its internal form for create defaults should move them to each field's `defaultValue`; sections move to `fieldGroups`, and required or conditional rules move onto the fields. + + The upgrade guide carries this as the protocol-18 semantic entry `internal-record-forms-not-loaded`. +- 45ef94e: feat(spec): a base's paired `.custom` package declares an installed object's whole field-group and tab arrangement (`fieldGroups`, `relatedLists` on its object extension) + + Clause-②: yes (widening) + Metadata-protocol: added + + The record page is arranged in three layers. The package that owns an object declares its `fieldGroups` and `relatedLists`; a package that extends it places what it brings with `place`; and now the environment, in the base's paired `.custom` package, may declare the whole arrangement over both: + + ```ts + objectExtensions: [{ + extend: 'crm_lead', + fields: { region__c: { type: 'text', label: 'Region' } }, + // The whole field arrangement: the two groups swapped, `status` moved. + fieldGroups: [ + { key: 'contact', label: 'Contact', fields: ['email', 'phone', 'status'] }, + { key: 'basic', label: 'Basics', fields: ['name', 'company', 'region__c'] }, + ], + // The whole tab list: events before tasks, the notes tab hidden. + relatedLists: ['crm_event', 'crm_task', { list: 'crm_note', hidden: true }], + }], + ``` + + - **Two new keys on an object extension, written only by a `.custom` package.** `fieldGroups` takes the shape an object's `fieldGroups` takes and may list any field the object has, whoever declares it; a group's `relatedList` may place any body table. `relatedLists` takes an object's entry shape (a bare name, the three built-in tab names, or `{ list, label?, columns? }`) plus `hidden`. + - **Each key replaces, whole.** The registry applies it last: the owner's arrangement, then every extension's `place`, then the `.custom` key in place of the result. Nothing is merged entry by entry. A key the extension does not write keeps the owner's arrangement with the placements, so writing only `relatedLists` leaves the field groups as they were. + - **A field the arrangement does not list is not dropped.** It shows after the last group, whichever group its owner or another extension had put it in. A group that lists `fields` shows exactly its list. + - **A tab the arrangement does not name still shows, after the listed ones.** This is the reverse of an object's own `relatedLists`, where leaving a list out hides it. Hiding is written: `{ list: 'crm_note', hidden: true }` hides that list's tab, whichever package brings it. `hidden` is accepted only here; an object's own `relatedLists` refuses it and says where it belongs. A list the owner hides by leaving it out of its own `relatedLists` stays hidden until the arrangement names it. The built-in tabs keep their own rules and are not hidden here. + - **A package that is not a `.custom` package writing either key is refused**, once at each door: saving or publishing the extension, `os validate` and `os build`, and installing the package (`VALIDATION_ERROR`; 400 at save and publish, 422 at install). Each refusal names the key, the object and the package and prescribes `place`. An extension that reaches the registry past those doors is not applied, and the boot log says so. Within one extension, a `place` entry beside the arrangement key that would replace it is refused at parse. + - **Only the object's own pair is served.** The pair is the `.custom` package of the App the object belongs to: for an object a module of an App owns, the App's pair. A `.custom` package an earlier version created for the module itself is still read while it is installed; where both write a key, the App's pair is served. The choice is by role, never by load order. What any other `.custom` package writes under these keys is not refused at the doors; the registry does not apply it, alone or beside the pair, and the boot log names the package and the object. + - **One merge, every reader.** The record page, the forms, the preview and Studio read the served object, so they show one arrangement. Removing a key, or uninstalling or disabling the `.custom` package, serves the owner's arrangement with the placements again. + - **Served reads say what the reader cannot derive.** Where a `.custom` package writes `relatedLists`, the served object carries the read decoration `_relatedListsArrangement` (`{ packageId, hidden, unlisted }`): the lists the environment hides, and whether an unlisted list shows. The record page's tab reader and the default page synthesis read it; with no decoration served they answer exactly as before. A reader's own tab order (kept per user) is still laid over this list, and a tab the environment hides is not offered to them. + - **A group the arrangement brings is a translation anchor.** `os validate`'s translation-reference rule reads an extension's `fieldGroups` too, so a bundle's `_sections` key for a group the `.custom` arrangement declares is not reported as naming nothing. + - **`hidden` on a field is not a display property a `fieldPatches` entry may set.** A hidden field is also left out of the search index and out of a form's required check, so the display whitelist is not widened. To keep a vendor field off the record page and the forms, list it in a group whose `visibleWhen` is false. That is presentation only, not access control: the field stays readable and writable through the API. Do not use it for a `required` field that has no default: the create form no longer shows the field while the save still requires it, so the form cannot be submitted. + + What to check in an app: nothing changes until a `.custom` package writes one of the two keys. A package other than a `.custom` one that wrote `fieldGroups` or `relatedLists` on an extension was refused at parse. It is now refused by the save, publish, install, `os validate` and `os build` doors, with the same prescription. Where none of those doors judges it (for example a code-defined stack that boots without `os validate` or `os build`, or a stack that names no package id), the key is not applied and the boot log names it, where the parse refused it before. +- 8f141a2: feat(kanban): a lane's sum, average, minimum and maximum cover every record of the lane, computed in the query + + Clause-②: yes + Metadata-protocol: semantic + Skills-docs: follow-up #36422 (skills/objectstack-ui/rules/list-views.md teaches the board lane summary, now including avg / min / max) + + A stored `kanban.summary` of type `sum` now totals every record in the lane (computed in the query) instead of the loaded cards; where the board cannot ask the server, no figure is drawn. + + A board's lane foot statistic, `kanban.summary`, now takes `{ type: 'avg' | 'min' | 'max', field }` beside `none`, `count` and `sum`, and every one of `sum`, `avg`, `min` and `max` covers all of the lane's records: + + - **One grouped aggregate, no fetch-then-add.** The board asks ONE aggregate over its own query — its filter and its host's search, grouped by the lane field — through the data door a grouped list view's headers already ride (`DataSource.queryGroupHeaders`, `POST /data/:object/query`). A lane longer than its page (50 records) shows the whole lane's figure; the "loaded cards" label is gone. Records with no lane value, and records in a value that is no lane, are folded into the trailing "Uncategorized" lane. A lane with no record shows `0` for a sum and no figure for the other three; a lane that holds records but that the answer has no group for (the door can cut the group rows under a deployment's default page size) shows no figure rather than `0`. A whole answer needs the door to hand back that the rows were cut: follow-up #36870. + - **Under the reader's permissions.** The platform runs the aggregate with the reader's row filter, and refuses an aggregate over a field the reader may not read; the board asks nothing for such a field, and a refused read draws no figure. + - **No figure rather than a partial one.** A data source without `queryGroupHeaders`, or a filter the read cannot repeat, draws no `sum` / `avg` / `min` / `max` figure. Over cards a host hands to the board, a `sum` is still added up on the board and the other three draw nothing. Known gap, follow-up #36871: the list view hands a board whose lanes it cannot know before the query (lanes over a lookup field, a view with grouping) its fetched page, so there `sum` totals that page, unmarked. + - **`@objectstack/lint`** judges `avg`, `min` and `max` the way it judges `sum` (`list-view-summary-field-type-refused`): the aggregate × field-type table's row for that function over the field's declaration, less the boolean class, which it now reads from the spec (`BOOLEAN_VALUE_TYPES`) instead of listing `boolean` and `toggle` itself. The list view's lane-statistic picker reads the same class, and now offers and names `avg` (Average), `min` (Minimum) and `max` (Maximum) over the number fields it offers for `sum`; the locale packs carry the three names and drop the retired loaded-cards label. + + A stored `sum` keeps its key and its field; what it draws is now the whole lane's total where it drew a total over the loaded cards before, and no figure over a data source that cannot answer the lane read. +- f66340a: feat: a record-page tab title an object's `relatedLists` entry declares can be translated + + Clause-②: yes (widening) + Metadata-protocol: added + + An object-form `relatedLists` entry (`{ list, label, columns }`) titles its tab and table on the parent's record page, and its `label` wins over the child lookup field's `relatedListTitle`. The field's title had a translation key; the entry's did not, so a declared tab title showed its authored text in every locale. + + A translation bundle now carries it on the parent object, keyed by the entry's literal `list` (a dotted `object.field` is one key): + + ```ts + objects: { + account: { + _relatedLists: { + contact: { label: '联系人' }, + 'event.related_to': { label: '会议' }, + }, + }, + } + ``` + + - `@objectstack/spec`: `ObjectTranslationDataSchema._relatedLists` (a closed leaf with one key, `label`; the un-prefixed `relatedLists` is named as a rename onto `_relatedLists`). `translateObject` overlays it onto the served parent object's entries, so `GET /meta/object` serves the translated title and the console's record page shows it with no change of its own. Only an entry that authors a `label` is translated: an entry without one, a bare name and a built-in tab keep their current title (the child field's `relatedListTitle`, else the child object's plural label). A title a tenant changed keeps its text, as every other translated slot does. + - `@objectstack/lint`: `os i18n extract` scaffolds the key for every labelled entry and the coverage gate counts it; `os validate` reports a `_relatedLists` key that names no labelled entry of that object as `translation-target-unknown`. A labelled entry an object extension brings (a list placement in `place`, or a shown entry of the paired `.custom` package's `relatedLists`) is a labelled entry of the object it extends, so its key resolves; the record page shows a placed tab only where that object declares `relatedLists`. A key over a built-in tab, or over an entry the `.custom` arrangement hides, is reported with its own reason. + - `@objectstack/metadata-protocol`: a save that sends back a translated entry title (a Studio edit of the object read in another language) stores the source title instead, with an `info` advisory, as it already does for field labels. + - `@objectstack/objectql`: the packaged base `getPackagedObjectBase` hands the `/meta` read (the text a served slot is compared with) carries the tabs a code package's `place` adds to the owner's `relatedLists`, as the fold splices them (so only where the owner declares `relatedLists`). A placed title is therefore translated from the deployment's catalog, which carries the placing package's translations, the way a field such a package adds already is; a tenant's rename of that title keeps its text. A `.custom` arrangement's title is the customization layer and reads the pair's own translations. +- fed637c: feat(i18n): a flow screen with its own heading gets a translatable step name, `flows.FLOW.nodes.NODE_ID.label` + + Clause-②: yes (widening) + Metadata-protocol: added + + A screen node that sets its own `config.title` has a heading and a separate canvas label. Until now only the heading could be translated (`flows.FLOW.screens.NODE_ID.title`), so the label stayed in the authoring language. The docs flow embed and the Studio flow designer both draw that label. + + - **New key accepted.** `objectstack validate` now accepts `flows.FLOW.nodes.NODE_ID.label` over a screen whose `config.title` is a non-empty string. A screen with no `config.title` is still refused there and pointed at `screens.NODE_ID.title`, because its heading is its label and one string keeps one key. An `approval` node is still pointed at `approvals.NODE_ID.label`. + - **Docs embed.** The `type: flow` embed (`element:metadata_viewer`) names a titled screen by its heading, translated where the bundle has the heading. When the heading holds a `{{ }}` hole, which a drawing cannot fill, the embed now names the screen by the new key, and falls back to the authored label only if the key is missing. + - **Studio designer.** The canvas draws a titled screen's label from the new key. + - **Untitled screen with a hole.** If a translated `screens.NODE_ID.title` contains a `{{ }}` hole, the embed and the canvas now draw the authored label rather than the raw template. + - **Coverage.** `os lint`'s i18n coverage and `os i18n extract` ask for the new key on a top-level screen whose authored heading holds a `{{ }}` hole. These are the screens the embed draws by their label. + - **One branch rule.** `@objectstack/spec/automation` exports `flowDecisionEdgeBranch`, `FlowDecisionEdgeBranch` and `FLOW_DECISION_DEFAULT_BRANCH_LABEL`. They decide which out-edges of a decision a drawing lists as branches. The docs embed's branch list and the i18n walk's folded branch targets both read them, so the two can no longer disagree. + + Nothing to migrate. A bundle that does not use the new key keeps working. +- 151e812: feat(spec): declare a metadata type's Studio list columns in the spec and serve them on `/meta/types` + + Clause-②: yes (widening: new exported schemas and a new optional `list` on each `/meta/types` entry) + Metadata-protocol: added + Skills-docs: none — no skill under `skills/**` teaches Studio's metadata list columns; `skills/objectstack-ui/SKILL.md` names `entries[].schema` only, which is unchanged + + Which columns Studio's generic list shows for a metadata type is now declared in the spec, beside the type's form, instead of in console code: + + - **Spec.** `MetadataListViewSchema` is a list layout bound to the type's own schema (`data: { provider: 'schema', schemaId }`) with its `columns`; each `MetadataListColumnSchema` names a key of that schema or a dotted path into it, a header, and a cell renderer (`MetadataListCellTypeSchema`: `text`, `badge`, `boolean`, `count`, `list`, `summary`). `defineList({ schemaId, columns })` builds one and refuses an unknown renderer, an empty column list and any `ListColumn` key outside `field` / `label` / `type`. `METADATA_LIST_REGISTRY` (`@objectstack/spec/system`) is the list counterpart of `METADATA_FORM_REGISTRY`; this release declares `hook`, and a type with no entry keeps Studio's default list. A reconciliation test refuses a column naming a key the type's schema does not declare (or declares retired, or as an overlay `_` key) and a header that differs from the form field label of the same path. + - **Serve.** `getMetaTypes()` serves the registry entry as `list` on the type's `/meta/types` row, next to `form`; `GetMetaTypesResponseSchema` declares it. The REST handler translates each header through the type's form field slot, `metadataForms.<type>.fields.<field>.label`, so a column and the form field of the same key read the same words. `resolveMetadataListLabels` (`@objectstack/spec/system`) does the lookup. + - **i18n.** `os i18n extract` emits that slot for every column whose path the type's form does not already label, with the column's header as the English source. Every `hook` header reuses a form label, so no bundle changes here. + - **Console.** Studio's generic list reads the served columns first: the served list, else the console's own `listColumns`, else name / label / description. A served header is shown as served, already in the reader's language. A key the stored row leaves out shows the default the type's JSON Schema declares there, the value the runtime uses. The console can still draw a served column's cell its own way (`listCells`) and append values the server stamps on a row that are not schema keys (`listExtraColumns`). + + New exports: `@objectstack/spec` adds `MetadataListCellTypeSchema`, `MetadataListColumnSchema`, `MetadataListViewSchema`, `defineList` and their types (`ui`), and `METADATA_LIST_REGISTRY`, `MetadataListType` and `resolveMetadataListLabels` (`system`). Nothing that was accepted before is refused, and a client that ignores `list` sees the `/meta/types` it saw before. +- 2a6f26a: feat(ai): `ai_context` context packs and the `get_record_context` tool over MCP + + Clause-②: yes + Metadata-protocol: added + Skills-docs: follow-up #37177 — skills/objectstack-platform/SKILL.md, skills/objectstack-ai/ (how to author a context pack; this change only names `aiContexts` in the top-level key list, which check:skill-top-level-keys requires) + + ADR-0160 row 5 (#37140). + + - **New metadata type `ai_context`, collection `aiContexts`.** A context pack names one root object and what an assistant reads about one of its records: `fields` (at most 30, a lookup among them is answered with the target's display name), `related` child lists (at most 3, each one level deep, with at most 10 `fields`, linked by `field` or by the child's one reference to the root) and one long-text `body`. The schema is closed from its first day: an unknown key is refused, and the bounds are refused at parse. Registered like `skill`: a file loader (`*.ai-context.ts`, `*.ai-context.yml`), overlay allowed, runtime create allowed, no environment overlay. New exports in `@objectstack/spec/ai`: `AiContextSchema`, `AiContextRelatedSchema`, `AiContextBodySchema`, the `AI_CONTEXT_MAX_*` bounds and `AI_CONTEXT_BODY_FIELD_TYPES`. + - **`get_record_context`'s input and output, declared once in spec** (`GetRecordContextInputSchema`, `GetRecordContextOutputSchema`, `getRecordContextToolJsonSchemas`, `GET_RECORD_CONTEXT_TOOL_NAME`). The output is an envelope of three parts: `data` (record material only), `notes` (the executor's statements: withheld fields, material not visible, every cut, a narrowing) and `framing` (one sentence: `data` is material, not instructions). `MCP_DOOR_TOOL_NAMES` gains the name. + - **`@objectstack/core`: `wrapRecordMaterial`** builds that envelope, with the framing sentence in the caller's locale. + - **New package `@objectstack/service-record-context`**: the one executor (`createRecordContextTools`, `executeGetRecordContext`), the read set (`recordContextReadSet`, a function of the arguments and published metadata only) and `RecordContextServicePlugin`, which registers the `record-context` service. Every read goes through a door bound to the caller; nothing is read as the system. Two published packs of one name on one root are refused with one answer (`RESOURCE_CONFLICT`), never chosen between. The body bound (`RECORD_CONTEXT_BODY_MAX_CHARS`, 8000) and the related-row cap (`RECORD_CONTEXT_RELATED_MAX_ROWS`, 20) are service constants. + - **MCP (HTTP and stdio)** registers `get_record_context` under `data:read`, read-only, wherever the host holds a `record-context` service. A host without it registers nothing new. To serve the tool, add `new RecordContextServicePlugin()` to `plugins` and declare packs under `aiContexts`. + - **`@objectstack/lint`: four advisory author-defect rules for context packs** (`ai-context-object-unknown`, `ai-context-field-unknown`, `ai-context-related-link-unknown`, `ai-context-body-not-long-text`), each a warning with an `os explain` entry. `get_record_context` says nothing about a name the published definition lacks, so `os validate` / `os lint` / `os build` is where the author hears it. CLI only for now: the rule reads the whole stack snapshot. + - **Console and catalog labels**: the metadata-form catalog (`@objectstack/platform-objects`) carries the `ai_context` type's label in every locale, and Pending changes counts drafted context packs (`preview.changes.typeCount.ai_context`). + +### Patch Changes + +- 806bba8: fix(lint, service-automation): the date-text refusal on a flow value envelope names the rewrite for a record-triggered flow that a parent also starts + + Clause-②: no + Metadata-protocol: none + + A flow with its own record trigger or time-relative sweep gets the date-text check on its value envelopes (`update_record` / `create_record` `fields.*`, `assignment` values). Example: `timestamp(record.borrow_date)` over a `date` field. The check is refused at `os validate` / `os build` and at `registerFlow`. It stays refused when another flow also starts the same flow through a `subflow` or `map` node, because the flow's own trigger hands it a row of the typed object on every run it starts. The set of refused flows does not change. + + The refusal now also says how to share the steps with such a parent. Move the shared steps into a child flow with no trigger of its own, which is judged untyped because its `record` is whatever each caller hands it. Then start that child from both flows. Both doors append the same sentence after the verdict's own fix. The stored pass of `os migrate meta --stored` lists that sentence too. +- 89364b4: feat(spec, core, ui): `{current_iso_week}` defaults a week-keyed filter to the current ISO week + + Clause-②: yes (widening: the closed filter-placeholder vocabulary gains one token) + Metadata-protocol: added + + A dashboard whose rows carry a text week key (`cost_week: '2026-W47'`) could only default its week filter to a fixed week, which went stale the next Monday. Write the placeholder instead and the filter opens on the current week each time: + + ```ts + globalFilters: [ + { field: 'cost_week', label: 'Week', type: 'text', defaultValue: '{current_iso_week}' }, + ], + ``` + + - It resolves to the ISO-8601 week key of today, `YYYY-Www`: Monday-start weeks, week 1 is the week that holds the year's first Thursday, and the year is the ISO week-numbering year, so 2027-01-01 is `2026-W53` and 2025-12-29 is `2026-W01`. "Today" is the day in the workspace time zone, on the server and in the browser alike; the label is the one the analytics week bucket already uses. + - It is a period key, not a date. It lives in its own closed list, `PERIOD_KEY_TOKENS`, beside `DATE_MACRO_TOKENS` and not inside it, so a date filter default and a calendar `initialDate` still refuse it. `classifyFilterToken` answers a new kind, `period-key`, and `isKnownFilterToken` knows it, so lint, flow filter operands and the server resolver accept it wherever a filter placeholder is accepted. A consumer that switches exhaustively on `kind` gets a compile error until it handles the new kind. + - The server resolves it in `resolveFilterTokens`; the browser resolves it in `resolveFilterPlaceholders` and in the dashboard filter defaults (every filter type except `date` and `dateRange`), so the filter box opens showing the resolved key. A literal `2026-W47` default keeps working and stays fixed. + - Every filter and default written before parses and resolves exactly as before. Only the whole value is a placeholder: `'week {current_iso_week}'` is left as written. A near spelling such as `{currentIsoWeek}` is still refused as an unknown token. + - Use it only on a field that stores week keys. On a date, datetime or time field the placeholder is refused (`INVALID_FILTER` / 400), as the literal key is; filter those with the `this_week` preset or `{current_week_start}` / `{current_week_end}`. +- f19e6c6: fix(lint): `ai-skill-tool-unresolved` resolves every tool the MCP door registers for a skill offered over MCP, and says why when a skill kept out of MCP names one + + Clause-②: yes (widening) — `ai-skill-tool-unresolved` stops warning on eight tool names the MCP door registers, and `@objectstack/spec/system` gains the export `MCP_DOOR_TOOL_NAMES`; nothing that resolved before is reported + Metadata-protocol: none + + The MCP door in `@objectstack/mcp` registers record, file, action, federation and dataset tools, and offers a skill bound to them over MCP. The lint rule knew only the two file tools, so a skill bound to `aggregate_records`, `delete_record`, `delete_records`, `list_actions`, `run_action`, `resume_run`, `list_remote_tables` or `import_object` was warned that the agent cannot call it, and `os lint --strict` failed. + + `@objectstack/spec/system` now exports `MCP_DOOR_TOOL_NAMES`, every tool the door registers on a bridge carrying every optional member under a grant naming every scope. For a skill offered over MCP (`mcpPrompt` not `false`), the rule resolves every name in it. `@objectstack/mcp` has a test that keeps this list equal to what the door registers, so a tool added to or renamed at the door fails there until the list follows it. Some door names (`get_record`, `query_records`, `describe_object`, …) are cloud registrations as well and stay in `PLATFORM_PROVIDED_TOOL_NAMES`; the door's names do not join `PLATFORM_TOOLS_BY_PACKAGE`, so each group there stays the exact set one cloud package registers. `MCP_FILE_TOOL_NAMES` stays as it was and is part of the new list. + + A skill kept out of MCP (`mcpPrompt: false`) runs only in the in-product agents, which do not have the door tools no cloud package registers, so naming one there is still reported. The warning now says so: "Tool "run_action" resolves only for a skill offered over MCP, and this skill sets `mcpPrompt: false`, so the in-product agents it runs in have no such tool". The fix line offers dropping `mcpPrompt: false` or removing the name. A trailing-wildcard entry that matches only door tools gets the same verdict. + + `os explain ai-skill-tool-unresolved` names `MCP_DOOR_TOOL_NAMES` as the third source and adds that a skill which runs an app action binds `action_<name>` (or `action_*`) rather than `run_action`: the MCP door serves that entry through `run_action`, and the in-product agents call the action tool itself. +- ba304e0: fix(mcp, lint): `create_record` and `update_record` over stdio answer `droppedFields` and no longer echo a dropped value; a flow write to a roll-up summary field draws a warning + + Clause-②: yes + Metadata-protocol: none + + On the stdio MCP transport, `create_record` and `update_record` now answer `droppedFields`, as the HTTP transport has: each entry names the object, the fields the engine did not store and the reason. A non-system write of a `readonly: true` column or of a roll-up `summary` field (read-only on create and update whether or not it declares `readonly: true`) reports the field there with reason `readonly`. Before, the stdio answer carried no `droppedFields`, and `update_record` answered the caller's own value for such a field over the stored one, so the answer read as if the write had landed. The `record` in both answers now leaves a dropped key's caller value out: an update answers the stored value, and a create answers what the write stored. A write that drops nothing answers as before, with no `droppedFields` key. No MCP tool input, `@objectstack/mcp` export or metadata key changes. + + `os validate`, `os lint` and `os build` now report a new warning, `flow-update-summary-field`, when a flow's `create_record` or `update_record` node that does not run as `runAs: 'system'` writes a roll-up `summary` field that does not declare `readonly: true`. The engine drops that value on create and on update, so the step changes nothing in that column. It is a warning, so no build that passes today fails. Like every warning, it makes `os validate --strict` and `os lint --strict` exit 1; there is no per-rule switch, so a strict run fails until the field is removed from the node. The metadata save and publish answers carry it under `advisories`, never as a refusal: on a flow save whose user-run node writes such a roll-up, and on an object save that makes a field such a roll-up while a live user-run flow of the same package writes it. A roll-up that declares `readonly: true` is reported as `flow-update-readonly-field`, an error, as before. `os explain flow-update-summary-field` gives the details. The fix is to remove the field from the node, since the engine recomputes it from the child records. + + New export: `FLOW_UPDATE_SUMMARY_FIELD` from `@objectstack/lint`, the rule id constant. +- 7702f09: fix(lint, studio): warn about a required field's `visibleWhen` formula read only when the form cannot compute the formula + + Clause-②: no + Metadata-protocol: none + + A `required` field whose `visibleWhen` reads a `formula` field used to draw a warning from `os validate` (and the object save door) and an advisory in Studio's field inspector for every formula it read. The form now computes the object's formulas over the record being edited, so for a formula it can compute the form and the server judge the same value, and that warning named no real problem. Both now fire only for a formula the form cannot compute: + + - **The server cannot compute it either.** The formula reads through a reference, calls `label()` or `current_user.can()`, or reads such a formula. The server counts the field as shown, so it stays required on every record. Same verdict as before, now stated on its own. + - **Only the form cannot compute it.** The formula reads `os`, or reads such a formula. The server computes it and can waive the field where the form still shows it and keeps it required. Before this change such a formula drew only the generic warning, which said the form computes it. + + Either message now says that the form's half holds for a form that computes the object's formulas. A form check that computes none judges the value it last read, and can hide the field or not ask for it. + + A formula that reads the acting user draws nothing, as before. Both sides compute it for a signed-in writer. + + Studio catalogue (en, zh): `designer.field.requiredVisibleWhenFormula` is removed. `designer.field.requiredVisibleWhenFormulaUnservable` is now a full sentence on its own. `designer.field.requiredVisibleWhenFormulaFormOnly` is new. The lint rule's location and severity (warning) are unchanged. No props or exports change. +- f6902e9: feat(lint): warn when a text field named like a currency, country or time zone code declares no valueDomain + + Clause-②: yes + Metadata-protocol: none + + `os lint` gains `field/missing-value-domain`, a warning. It fires on a `text` field that declares no `valueDomain` and whose whole name, compared case-insensitively, reads as a standard code: `currency` or `currency_code` (fix: `valueDomain: 'iso_4217_currency'`), `country` or `country_code` (`iso_3166_alpha2`), `time_zone`, `timezone` or `tz` (`iana_time_zone`). The fix line names the domain to add. A field that already declares a domain, a `select` field, any other type and any other name are not judged. It is a warning only: `os validate`, `os build` and the metadata save door are unchanged. Like every warning, it makes `os lint --strict` exit 1; there is no per-rule switch, so a strict run fails until the field declares the domain. Declaring it does not re-read rows that already hold free text; only a later write that carries a non-member is refused. `os explain field/missing-value-domain` gives the reasoning. + + New exports: `VALUE_DOMAIN_FIELD_NAMES` from `@objectstack/spec/shared`, the one word list (domain → field names) the rule reads, and `FIELD_MISSING_VALUE_DOMAIN` from `@objectstack/lint`. The word list adds no member to `ValueDomainSchema`. +- 3d6dea2: feat(formula): `addWorkingDays()`, `workingDaysBetween()` and `addWorkingHours()` count with the organization's working calendar (ADR-0157 D4) + + Clause-②: yes (widening) + Metadata-protocol: added — a formula field's or a stored field's `expression` may now call `addWorkingDays(...)`, `workingDaysBetween(...)` and `addWorkingHours(...)` + Skills-docs: updated here — skills/objectstack-formula/SKILL.md teaches the three functions and eval 8 of skills/objectstack-project/evals/project-process.json exercises them (the card's order names both) + + Not released alone: it ships in the same release as the working calendar service and objects (#35355) and the approval escalation's working-time clock (#35357), ADR-0157 D4. + + - **Three formula functions** (`@objectstack/formula`). `addWorkingDays(day, n[, code])` answers the calendar day `n` working days after `day` (before it, for a negative `n`); `day` itself never counts and `0` answers `day`. `workingDaysBetween(start, end[, code])` counts the working days after `start` up to and including `end`, negative when `end` is earlier, and is the inverse of `addWorkingDays`. `addWorkingHours(start, hours[, code])` answers the instant `hours` of working time after `start`, counted as elapsed time in the calendar's time zone (D11); a start outside working time begins at the next working period. All three step over the calendar's weekends and holidays and onto its make-up working days. Without `code` a call counts with the organization's default calendar; `code` names a calendar and is written as a quoted literal. They join the advertised standard library (`CEL_STDLIB_FUNCTIONS`). + - **Where they count** (`@objectstack/objectql`). A `formula` field and a stored field's `expression` count with the record's own organization's calendars, which the engine loads through the calendar service before it evaluates them: only the calendars the expressions name, once per organization per read, from the service's cache. A formula field counts again on its next read after a calendar edit; a stored due time keeps the value of its last write. + - **When the calendar cannot answer** (D8). With no default calendar in the organization, a code the organization has no calendar for, or a count that reaches past the span the calendar is maintained for, the formula reads `null` and the server logs one line naming the object, the field and the reason. A stored field's `expression` stores blank and the write goes through; the blank stays until that record's next write, and a write made while the calendar refuses blanks a value that was valid before. Nothing counts on the weekly pattern or the wall clock instead. + - **No calendar arithmetic as a filter.** A query filter, a sharing rule's condition and every filter compiled from CEL refuse the three functions with a message that prescribes the stored due-time field (D6). + - **Build refusals** (`@objectstack/lint`). `os build` / `os validate` refuse the three functions at every expression site but a formula field's and a stored field's `expression` (validation rules, visibility, action conditions, flow conditions and values, sharing rules, a field's expression `defaultValue` and a seed value), and refuse a calendar code that is not a quoted literal, with a branch between literal calls as the way to pick a calendar per record. + - **Forms** (`@object-ui/core`). A form does not compute a formula that calls one of the three: its calendar is loaded for the server's read, never handed to the form, so the field is unservable there as on the server's write-path check. + - **Teaching** (`@objectstack/skills`). objectstack-formula documents the three functions; the platform catalog moves working-day formulas from Planned into what the platform ships; the project-process eval for business-hours SLAs now expects the functions. +- 65fddc8: fix: a `percent` or `currency` formula is a KPI chip on the record header; the lint prescription names all six return types + + Clause-②: no + Metadata-protocol: none + + A `formula` field whose `returnType` is `percent` drew percentages in its list cells, and the record header strip drew it without the figure typography a `percent` field's chip has. The strip now reads a formula's declared `returnType` before it picks its face, for the two return types the spec reads as a field type, `percent` and `currency`. Both are KPI chips on the header strip. A formula of any other return type chips as before. + + The grid's footer formatting reads the same two return types, so a browser-computed footer over a `percent` formula reads `Sum: 75%` rather than `Sum: 0.75`, and over a `currency` formula reads as money. That is not a supported authoring shape: a `sum`, `avg`, `min` or `max` column summary over a `formula` field is refused at authoring by `list-view-summary-field-type-refused`, whatever its `returnType`, because a formula is computed on read and stored in no column, and the whole-set footer query answers `400 INVALID_FIELD`. The formatting reaches only an ungrouped, one-page footer the browser computes over a declaration `os validate` refuses. To total a formula's value, make it a stored field of its own, of the formula's `returnType` and carrying the same `expression`, which the engine computes and stores on every write, and summarise that field. + + `os explain dimension-virtual-field-refused` told the author to make a stored copy "of the formula's `returnType` (`number`, `text`, `boolean`, `date` or `currency`)", which named no type for a `percent` formula. It now lists all six, and a test holds the list to the spec's own `returnType` enum. +- 236c804: feat(spec)!: retire the boolean arm of a relationship field's `inlineEdit` — `true` and `false` both read as the key left out + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: follow-up #37042 + + <!-- adr-0087: registered field-inline-edit-boolean-removed, field-inline-edit-boolean-retired --> + + **BREAKING** accept-set narrowing on `FieldSchema.inlineEdit` (`@objectstack/spec/data`), the inline form factor of a `lookup` or `master_detail` field. Since the field-group placement, a field group of the parent (`fieldGroups[].relatedList`) decides whether the parent's create and edit forms inline a child, and `inlineEdit` only picks the form factor of a placed child. Every reader of the key passes anything but `'grid'` and `'form'` as absent, so `true` (documented as "auto") and `false` both did exactly what leaving the key out does: the form factor is picked from the child's shape. + + | FROM | TO | + |:--|:--| + | `inlineEdit: true` on a `lookup` / `master_detail` field | delete the key (the form factor is still picked from the child's shape), or write `'grid'` / `'form'` | + | `inlineEdit: false` on a `lookup` / `master_detail` field | delete the key | + | a child meant to be entered in the parent's form | name it in a field group of the parent: `fieldGroups: [{ key: 'lines', label: 'Lines', relatedList: '<child object>' }]` | + + The one-line fix: delete a boolean `inlineEdit` wherever it is written; `os migrate meta --from 17 --write` deletes it from object sources. Writing one after upgrade fails `tsc` (the input type is `'grid' | 'form'`) and fails the parse with that prescription. `'grid'` and `'form'` parse unchanged. The view-level `inlineEdit` (a list view's in-cell editing switch) is a different key and is unchanged. + + The retirement kit: + + - **`@objectstack/spec`**: `FieldSchema.inlineEdit` is `z.enum(['grid', 'form'])`, and a boolean meets the prescription from the enum's own error map. The D2 conversion `field-inline-edit-boolean-removed` (lossless, retired from the load path) deletes a boolean `inlineEdit` from `objects[]` and `objectExtensions[]` field maps on every data-at-rest seam (stored rows, built artifacts, `os migrate meta`); the D3 entry `field-inline-edit-boolean-retired` names what the upgrade still owes: whether the child should be placed by a field group of the parent. The liveness ledger keeps the key `live` for the two surviving values, with the narrowing recorded. + - **Field form** (`@objectstack/spec` `field.form.ts`, labels in `@objectstack/platform-objects`): with the boolean arm gone a select spells every value, so the field designer now offers `inlineEdit` as a `Grid` / `Form` select on `lookup` and `master_detail` fields; left unset, the form factor is picked from the child's shape. Before, the form left the key out because no widget could spell a boolean-or-string union. + - **`@objectstack/lint`**: two doc comments in the field-consumer rule (`validate-field-consumers.ts`) now read a boolean `inlineEdit` as refused by the spec and as absent at the renderer; comment text on unexported functions only, so no shipped byte changes. + - **`@objectstack/cli`**: the golden metadata-eval corpus places its line items with a field group of the parent, with `inlineEdit: 'grid'` as their form factor, instead of `inlineEdit: true`. +- f548bdc: fix: descriptions and help text no longer say the default record page draws a key-field strip or a stage path + + Clause-②: no + Metadata-protocol: none + + The default record page draws no key-field strip and no stage path: the stage is the status tag beside the record name. These texts said otherwise and now say what each key drives: + + - `@objectstack/spec`: the `highlightFields` describe ("Drives default list and related-list columns, cards, hover cards, previews and the record picker; the default record page draws no strip from it") and its Studio help text. The `stageField` and `RECORD_HIGHLIGHTS_MAX` doc comments say the header's status tag reads the stage and the count cuts only a strip a page places in its `highlights` slot. The upgrade-guide entry `field-group-shadowed-six-highlights` no longer tells authors to move highlights: the warning now judges the record title alone, and no action is owed. + - `@objectstack/platform-objects`: the `highlightFields` help text in every metadata-form locale. + - `@objectstack/lint`: the `os explain` text of `object-field-ref-unknown` and `semantic-role-field-unprovisioned` names the hover card and the record picker in place of the strip. + - `@object-ui/plugin-detail`: the `record:details` `hideFields` description no longer says the default page fills it. The key is still accepted. + - `@object-ui/i18n`: Studio's lifecycle-field help (`stageField`, and its "None" choice) talks about the status tag, not a progress bar. + - `@object-ui/types`: the page `highlights` slot doc says it places a strip the synthesized default does not draw. + - `@object-ui/app-shell`: on a phone the default record page no longer hands the synthesizer a highlight list it never read. The page looks the same, and the subtitle under the record name is unchanged. +- 92f6216: feat(lint): warn when another permission set's View All, Modify All or View All Fields re-opens a field one set hides + + Clause-②: no + Metadata-protocol: none + + A new warning, `security-cross-set-field-reopen`. When one permission set hides a field (`readable: false`) or makes it read-only, and another set holds View All (`viewAllRecords`), Modify All (`modifyAllRecords`) or View All Fields (`viewAllFields`) on the same object (on its own entry for the object, or on its `'*'` entry when it has none), a user who holds both sets still reads the field, and under Modify All still edits it. The warning names both sets and the field. Its fix: drop the bit from the second set, give the second set its own `readable: false` row on the field (this works beside View All and View All Fields, not beside Modify All), say `viewAllFields: true` when the second set really should read every field, or, for a field that must stay hidden from everyone without a capability (a salary, an ID number), declare `requiredPermissions` on the field itself, with a `maskingRule` where a partial value is needed. It is a warning only: nothing that builds today stops building. + + Not reported: a field that declares `requiredPermissions` (that gate applies after the permission sets are merged, so no set's bit opens it); a set's own Modify All over its own row, which stays `security-superuser-field-mask-inert`, so one row gets one finding; a second set whose own `readable: false` row on the field keeps it closed beside View All or View All Fields; an edit lock beside View All or View All Fields, which never grant an edit; and a key on an object or field the stack does not declare. Fields are never judged by their name. + + `security-wildcard-vama` also reads `viewAllFields` on a package-authored `'*'` entry, as an error like the two record bits: such a set reads every field of every object, other packages' objects included. The key is new in this release, so no stack accepted by a released version is refused. On an object's own entry the bit is not reported. `os explain security-cross-set-field-reopen` prints the full reasoning, and Studio shows the warning in every platform locale. +- 13da40c: feat(lint): warn when a full record page's header title or action order differs from what the phone and the drawer draw + + Clause-②: no + Metadata-protocol: none + + An object's hand-written full record page (`type: 'record'`, `kind: 'full'`) is drawn on the desktop full page only; on a phone, in the side drawer, in a split pane and in an interface page's preview the record draws the standard page, built from the object. Two new advisories name a header that makes the same record read differently between the two: + + - `record-page-header-title-differs`: the `page:header` declares a `title` that is not exactly the object's name field token (`{nameField}`, or the derived title field). The standard page, lists, search and lookups all title the record by that field. + - `record-page-header-actions-differ`: the header's `actions` list gives a different primary button, or a different order within the row of buttons or within the `⋯`, than the actions' own `order` / `variant: 'primary'` and their declaration order give on the standard page. + + Both are warnings. They run on `os validate`, `os build` and `os lint`, and on a page publish at the metadata save door, where they come back as advisories and refuse nothing. Nothing about how a page renders changes. The fix each names: drop the header `title` (or set `nameField` on the object), give the actions an `order` and the main one `variant: 'primary'`, or move a header that should differ everywhere into a `kind: 'slotted'` page's `header` slot. `os explain` on either id prints what the check cannot see: visibility predicates and permissions, actions another package attaches, and the served declaration order, which it estimates. +- a61b8ab: fix(lint): the `field/embedded-sub-fields` fix names the field group that inlines the child + + Clause-②: no + Metadata-protocol: none + + The rule's fix line told the author to make the typed list a child object and that `inlineEdit: 'grid'` edits it inline. A child is inlined in its parent's form only when a field group of the parent names it in `relatedList`; the FK's `inlineEdit` picks grid or form, nothing more. An author who followed the old line got a child shown as a tab, with no lines on the parent's form. The fix now reads: make the typed list a child object whose `master_detail` field points back here, name it in a `fieldGroups[].relatedList` here (`inlineEdit` only picks how rows are edited), and remove the key. When the rule fires, its id, severity and path are unchanged. +- 5c2e34c: fix(lint): the translation coverage check asks every named flow for its label, not only a flow with a screen or an approval step + + Clause-②: no + Metadata-protocol: none + + `flows.FLOW_NAME.label` is now demanded for every flow a stack declares with a `name`. Until now it was demanded only for a flow with a `screen` or `approval` node, the two readers the key used to have (the screen-flow runner and the approvals inbox). The docs viewer's `type: flow` embed titles its card by the same key for whichever flow a page names, record-triggered, scheduled and API flows included, and the check already asks every flow's drawn steps for their `nodes` labels. So a zh-CN reader saw an English flow name above translated step names, and `os lint` and `os i18n check` did not report it. + + What you see after upgrading: `os lint` reports one more `i18n/missing-flow` finding per untranslated locale for each flow that has neither a screen nor an approval step, and `os i18n extract` scaffolds its `label`. Translate it under `flows.FLOW_NAME.label` in each locale bundle, the key the runner and the approvals inbox already read. A flow with no `name` is not asked: no bundle entry can address it. + + The repository's own coverage ratchet rises by those labels: `examples/app-showcase` 425 to 449 (24 flows, one untranslated locale each) and `examples/app-todo` 130 to 136 (3 flows in two locales). The other twelve configs, including the ten bundle packages, are unchanged. +- a98f8c6: fix(lint): a default or create form that a form-type action opens by name is not reported as internal + + Clause-②: no + Metadata-protocol: none + + The advisory rule `form-view-internal-not-loaded` warned on every default form (`form`, `formViews.default`, an `isDefault` form view item) and every create form (`formViews.create`, `OBJECT.create`) that is not shared publicly. A `type: 'form'` action can still open one of those forms by its name, and the Console still loads it then, so for that form the warning said "no longer loaded" about a form users reach. + + The rule now leaves such a form out. A form counts as opened by an action when the `target` of a `type: 'form'` action in the stack equals the name the form is served under: the item's own `name` for a stored form view item, and for a view container's form the name the spec's container expansion gives it (`OBJECT.form` for the default form, or its own `name`; `OBJECT.create` for `formViews.create`; a key collision's renamed name). The actions read are `actions[]`, `objects[].actions[]` and a page component's inline `properties.action`. An interpolated target, a shorter spelling, or an action of another type exempts nothing. The `os explain form-view-internal-not-loaded` text says so. + + The warning still fires for every other internal create or edit form, with the same message and hint. Nothing is refused or accepted differently. +- 8aecf6d: feat(mcp,service-knowledge): the MCP door serves `search_knowledge`, and a skill MCP withholds is no longer withheld in silence + + Clause-②: yes + Metadata-protocol: none + + **`search_knowledge` over MCP.** An app that mounts the knowledge service (`KnowledgeServicePlugin`) now has its knowledge sources searchable from any MCP client: `tools/list` lists `search_knowledge` wherever the kernel holds a `knowledge` service and the connection's grant reaches the read family (`data:read`, or an API key or session, which carry no OAuth grant). Before, no MCP connection served a knowledge tool, so a BYO-AI client could not reach an app's knowledge base at all, and every skill whose `tools` named `search_knowledge` was dropped from `prompts/list`. + + - **One definition, one executor (ADR-0149 D2).** `@objectstack/service-knowledge` exports the tool's `AIToolDefinition` (`getKnowledgeToolDefinitions`) and its executor (`createKnowledgeTools`, also `KnowledgeService.knowledgeTools()`). The MCP door registers the definition as the service hands it over, on HTTP and on stdio, and holds no copy of its description or argument schema. Arguments: `query` (required), `sourceIds` (at least one id; omit it to search every source, and an empty list is refused `VALIDATION_ERROR` rather than answered with no passage), `topK` (1 to 20, default 5); any other key is refused before the search runs. + - **As the caller.** Each call runs with the caller's execution context, and the knowledge service re-checks every passage indexed from a record against the caller's row-level security; on an OAuth connection that is the delegating person's own reach. + - **Only `aiExposed` sources.** The tool searches only the sources whose `aiExposed` is not `false`, and refuses a `sourceIds` entry naming any other source with `NOT_FOUND` and the sentence an unknown id gets, so an agent never learns a withheld source exists. `IKnowledgeService.search` itself is unchanged: it still searches a source its caller names explicitly, because it also serves platform callers that are not agents. + - `MCP_DOOR_TOOL_NAMES` (`@objectstack/spec/system`) lists `search_knowledge`, so `os lint` resolves it for a skill offered over MCP, as it already did through the platform registry. + + **A withheld skill is said, twice.** + + - **Authoring time.** The `ai-skill-tool-unresolved` rule gains a verdict for a skill MCP would offer as a prompt (`instructions`, not `mcpPrompt: false`, not `active: false`) whose `tools` names one of the `ask` product's data tools no MCP connection serves (`aggregate_data`, `query_data`, `visualize_data`): the name resolves, but MCP withholds the skill from every `prompts/list`, and the warning names the tool. Fix: bind tools both doors serve, or set `mcpPrompt: false` on a skill written for the in-product agents. + - **Runtime.** On the HTTP door, each `prompts/list` that withholds a skill logs one `debug` line naming the skill and each bound tool the connection does not serve. +- d280de9: docs: stale prose on summary currency, the temporal-comparand door and analytics filters now says what the code does + + Clause-②: no + Metadata-protocol: none + + No accepted value, key or answer moves. Two refusal messages change their words: + + - A `currencyMode: 'dynamic'` summary over a child `currency` field that is neither `dynamic` nor a well-formed `record` / `fixed` (a stored `fixed` field with no `defaultCurrency`, or a `currencyMode` outside the three) is still refused, and the refusal now names what the child lacks: "is a 'currency' field in `fixed` mode with no `defaultCurrency` code (the currency it is fixed to is missing)", or "is a 'currency' field whose `currencyMode` 'X' is none of `dynamic`, `fixed` and `record`". Before, it said only "is a 'currency' field, not a `currency` field in `dynamic` mode". + - The temporal-comparand door's refusal of a comparand no temporal rule reads (`'not-a-date'`, the preset name `'last_30_days'`) now ends "As written it would reach the driver and be compared as text: it may select every row, none or the wrong ones (or raise a database error), an answer indistinguishable from a real one." Before, it said the comparison would "compare false for EVERY row", which was wrong for `$lt` and others that selected every row, for a partial day such as `'2026-06'` that selected a subset, and on PostgreSQL, which raised a database error. Its `having` twin says the same of the groups it would keep, where it said "no group or every group, a 200". + + The upgrade-guide entry `summary-dynamic-currency-rollup-home-amount-judged-as-served` now states the admitted set as both doors enforce it: a `dynamic` summary may roll up any child `currency` field in `dynamic` mode, a stored home amount included. Source comments and published docblocks that said every `{placeholder}` is stepped around by the temporal door now state the per-kind rule: a date macro is stepped around and judged by its year once resolved, a period key and a context token are judged as written, and an unknown or record-context token is left to the resolver. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [8b550f8] +- Updated dependencies [c809deb] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/formula@18.7.0 + - @objectstack/metadata-core@18.7.0 + - @objectstack/sdui-parser@18.7.0 + ## 18.6.0 ### Minor Changes diff --git a/packages/lint/package.json b/packages/lint/package.json index 7fa736c3198..37ae2692bc1 100644 --- a/packages/lint/package.json +++ b/packages/lint/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/lint", - "version": "18.6.0", + "version": "18.7.0", "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 eeea8a38620..9618a346aa3 100644 --- a/packages/mcp/CHANGELOG.md +++ b/packages/mcp/CHANGELOG.md @@ -1,5 +1,558 @@ # @objectstack/plugin-mcp-server +## 18.7.0 + +### Minor Changes + +- ad65d82: fix(formula)!: `validateExpression` refuses `==` / `!=` between a list-valued field and a scalar, which answers a constant on every row + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: follow-up #36217 + + <!-- adr-0087: registered cel-list-equality-refused --> + + **BREAKING** accept-set narrowing, shipped as `minor`. CEL compares the whole list with the scalar, so `record.labels == 'frontend'` is `false` for `['frontend', 'qa']` and for `null` alike, and `record.labels != 'frontend'` is always `true`: a condition written that way never fires (or always does), with no fault and no log line. The shared validator accepted it. + + - **The refusal.** `validateExpression` refuses a `==` / `!=` between a read of a list-valued field on `record` / `previous` (`record.f`, `record['f']`, either operand order) — or, at a flattened (flow) condition, its bare name `f`, which the run binds to the trigger record's field, unless a flow variable holds the name or a node can bind names no reader sees — and a non-null string, number or boolean literal, as the new `list-equality` code (params `reference`, `operator`, `operand`, `answer`, `rewrite`), prescribing the null-guarded membership test. + - **Which fields are lists.** A `fieldTypes` entry of an inherently multi-value type (`multiselect`, `checkboxes`, `tags`), or a field named in the new optional `ExprSchemaHint.multiValueFields` — the fields a caller reads as multi-valued through `isMultiValueField` (`@objectstack/spec/data`), which is how a `select` / `radio` / `lookup` / `user` / `file` / `image` field declared `multiple: true` becomes a list here. Absent, such a field is not judged, as before. + - **Who fills it.** The publish lint (`os validate` / `os build`, every CEL site that types the object's fields), the MCP `validate_expression` tool (read off the served definition, `McpDataBridge.servedObjectDefinitionOf`, at the validation / formula / flow-condition sites; a bridge without it answers as before), `registerFlow`'s schema pass (`parseObjectFieldSchema` returns `multiValueFields`; logged, never thrown, like every finding of that pass), the scenario scorer, and Studio's object draft check (field rules, formulas, validation rules; `CelSchemaHint.multiValueFields`). + - **Still accepted.** `S == null` / `S != null` (either side), `'a' in S`, a list compared with a list literal or with another list field, and a comparison whose other operand is not a literal. + + FROM → TO: + + - `record.labels == 'frontend'` → `record.labels != null && 'frontend' in record.labels` + - `record.labels != 'frontend'` → `record.labels == null || !('frontend' in record.labels)` + - at a flow condition, `labels == 'frontend'` → `labels != null && 'frontend' in labels` + + One-line fix: test membership with `in`, null-guarded (`'a' in null` faults); compare the list with `null` to test whether it is set. +- 2a6f26a: feat(ai): `ai_context` context packs and the `get_record_context` tool over MCP + + Clause-②: yes + Metadata-protocol: added + Skills-docs: follow-up #37177 — skills/objectstack-platform/SKILL.md, skills/objectstack-ai/ (how to author a context pack; this change only names `aiContexts` in the top-level key list, which check:skill-top-level-keys requires) + + ADR-0160 row 5 (#37140). + + - **New metadata type `ai_context`, collection `aiContexts`.** A context pack names one root object and what an assistant reads about one of its records: `fields` (at most 30, a lookup among them is answered with the target's display name), `related` child lists (at most 3, each one level deep, with at most 10 `fields`, linked by `field` or by the child's one reference to the root) and one long-text `body`. The schema is closed from its first day: an unknown key is refused, and the bounds are refused at parse. Registered like `skill`: a file loader (`*.ai-context.ts`, `*.ai-context.yml`), overlay allowed, runtime create allowed, no environment overlay. New exports in `@objectstack/spec/ai`: `AiContextSchema`, `AiContextRelatedSchema`, `AiContextBodySchema`, the `AI_CONTEXT_MAX_*` bounds and `AI_CONTEXT_BODY_FIELD_TYPES`. + - **`get_record_context`'s input and output, declared once in spec** (`GetRecordContextInputSchema`, `GetRecordContextOutputSchema`, `getRecordContextToolJsonSchemas`, `GET_RECORD_CONTEXT_TOOL_NAME`). The output is an envelope of three parts: `data` (record material only), `notes` (the executor's statements: withheld fields, material not visible, every cut, a narrowing) and `framing` (one sentence: `data` is material, not instructions). `MCP_DOOR_TOOL_NAMES` gains the name. + - **`@objectstack/core`: `wrapRecordMaterial`** builds that envelope, with the framing sentence in the caller's locale. + - **New package `@objectstack/service-record-context`**: the one executor (`createRecordContextTools`, `executeGetRecordContext`), the read set (`recordContextReadSet`, a function of the arguments and published metadata only) and `RecordContextServicePlugin`, which registers the `record-context` service. Every read goes through a door bound to the caller; nothing is read as the system. Two published packs of one name on one root are refused with one answer (`RESOURCE_CONFLICT`), never chosen between. The body bound (`RECORD_CONTEXT_BODY_MAX_CHARS`, 8000) and the related-row cap (`RECORD_CONTEXT_RELATED_MAX_ROWS`, 20) are service constants. + - **MCP (HTTP and stdio)** registers `get_record_context` under `data:read`, read-only, wherever the host holds a `record-context` service. A host without it registers nothing new. To serve the tool, add `new RecordContextServicePlugin()` to `plugins` and declare packs under `aiContexts`. + - **`@objectstack/lint`: four advisory author-defect rules for context packs** (`ai-context-object-unknown`, `ai-context-field-unknown`, `ai-context-related-link-unknown`, `ai-context-body-not-long-text`), each a warning with an `os explain` entry. `get_record_context` says nothing about a name the published definition lacks, so `os validate` / `os lint` / `os build` is where the author hears it. CLI only for now: the rule reads the whole stack snapshot. + - **Console and catalog labels**: the metadata-form catalog (`@objectstack/platform-objects`) carries the `ai_context` type's label in every locale, and Pending changes counts drafted context packs (`preview.changes.typeCount.ai_context`). + +### Patch Changes + +- c4a73be: fix(mcp): the open MCP door's `tools/list` is a quarter smaller; teaching prose moves to the served SKILL.md + + Clause-②: no + Metadata-protocol: none + + Every MCP connection pays for `tools/list` before any work starts. Its total for an API key on a self-hosted app (17 tools) drops from 47,712 to 36,481 bytes; the descriptions `@objectstack/mcp` owns drop from 18,213 to about 8,740. No tool is removed or renamed, and nothing a tool accepts changes: only description strings. + + Each description keeps what a call needs: the arguments, the confirmation a destructive call takes, the refusal it may answer and what to do about it. Worked examples, answer-reading guidance and edge cases move to the SKILL.md the server serves at `/api/v1/mcp/skill` (and the Console's "Download skill" copy of it): `describe_object`'s field facts, `query_records`' `latestPer` / `expand` examples (its approvals-waiting-on-you filter and the `sys_user` colleague lookup stay in the description, one line each), `aggregate_records` under the `query_records` entry, `get_record`'s `related`, `run_action`'s `FLOW_FAILED` relay, and `create_upload_link`'s read-only and locked-record cases. `validate_expression`'s description now names the facts to pass per site and points at the skill for the full list of checks. + + The skill's `validate_expression` entry now names its `variables` input, and says that at a `flow_condition` the shadowed-read warning, and the binding of a bare name to the variable rather than the field, need it. +- 2d33205: feat(runtime,mcp): the open MCP server saves and discards metadata drafts, and every save answers with what publishing the draft would say + + Clause-②: yes (widening) + Metadata-protocol: none + + The open draft door on a self-hosted runtime gains its write half. It is served to the same OAuth clients as the read tools: the token carries `metadata:write` and its user holds `manage_metadata`. + + - `save_metadata_draft({ type, name, item, package, ifMatch? })` saves `item` as a pending draft in `package`, recorded as an MCP save by the token's OAuth client. The reply carries `saved` (type, name, package, state, version), `verdict` and `review`. `verdict` is what publishing the stored draft would say: `publishable`, `refusals` (the issues a publish would refuse the draft on) and `advisories`, each with `rule`, `path`, `message`, `hint` and `severity`. `review` holds the Console routes where a person reviews and publishes the draft in Studio. `ifMatch` is the version the save expects to replace; a stale one is refused as the `/meta` draft save refuses it. + - A save that names no `package` is refused `400 VALIDATION_ERROR`, and nothing is saved. The refusal names the writable packages in that environment. + - `delete_metadata_draft({ type, name, package? })` discards a pending draft. The published version, if any, is left as it is. + - `list_drafts` now gives each draft its `verdict`. A draft the user may not read (for example a dashboard whose `requiredPermissions` they lack) is listed with `verdict: null` and the reason it was withheld. + + A plural type spelling (`dashboards`) is folded to its singular before any gate, verdict or write, as the `/meta` doors fold it. Both writes ask the type-level write admission every `/meta` write asks, so a metadata type the user may not write is refused `403 PERMISSION_DENIED` and nothing is written; a verdict, on a save or a listed draft, is withheld for a type the user may not read. A tenant whose catalog is walled refuses both writes `403 PERMISSION_DENIED`, as the `/meta` write path does; a platform admin is admitted. Nothing on this server publishes: there is no publish tool and no `force`. + + When the authoring tools are listed, the open server's default `initialize` instructions add one paragraph saying that they save drafts only and that a person publishes in Studio. The paragraph is absent when the tools are not served, and a host's own instructions replace the default text as before. +- 3c038eb: Clause-②: yes — widening: a new optional tool input and one new instructions line; the major refusal applies only to a client that sends the new input, so nothing a client could send before is refused. + Metadata-protocol: none + + feat(mcp): the open server states its authoring contract version and refuses a client on another spec major + + - **`initialize` instructions.** Where a connection lists authoring tools, the open server's default instructions now carry `Authoring contract: @objectstack/spec <version>` as their second paragraph, with the `@objectstack/spec` version the server resolves. A host's own text and a configured text are unchanged. The longest default text stays under 4,096 characters. + - **`save_metadata_draft` takes an optional `clientSpecVersion`**, the `@objectstack/spec` version the client built against. Another major is refused before anything is saved (`VALIDATION_ERROR`, 400), naming both versions and the command to run: `npm i -D @objectstack/spec@<server version>`. Another minor is saved as usual, and the answer carries a `specVersionAdvisory`. A value that is not a SemVer version is refused as an input error. A save without it, or with the same major and minor, answers exactly as before. The item's own validation is still the final gate. +- e22502c: fix(mcp): a `read_file` stop before the first page or paragraph says so, and never calls its text partial + + Clause-②: no + Metadata-protocol: none + + When the extraction worker's wall-clock ceiling stopped a PDF read before page 1 came back, `read_file` answered `content: none` with the note `Reading stopped at the CPU-time budget for one file (N ms) after page 0 of M, so the text is partial.` No text came back, so an agent acting on that sentence believed it held part of the file. A Word read stopped before its first paragraphs came back said the same with `after 0 paragraphs`. Such a stop now answers `content: none` with `Reading stopped at the CPU-time budget for one file (N ms) before page 1 of M was read, so no text came back. Download the file with the link instead.` (`before page 1 was read` when the PDF had not opened yet, and `before the first paragraph was read` for Word). + + A read stopped at the budget after pages or paragraphs that held no text (a scanned PDF, say) also answered `content: none` with the partial-text note. It now says `after page P of M, and no text was found in what was read. Download the file with the link instead.` + + Nothing else moves. A stop that did return text keeps `truncated: true` and the note `… after page P of M, so the text is partial. Download the file with the link for the rest.` +- f54fc93: docs(skills): the `objectstack-ask` skill follows `list_datasets` `nextStep` and cites `query_dataset` `sourceLine` as given, before `provenance` + + Clause-②: no + Metadata-protocol: none + + The `objectstack-ask` skill, and the page at `GET /mcp/skill` that is generated from it, now tell a connected client two things. Under the step 2 decision table: when the `list_datasets` answer has `nextStep`, follow its `decision` and `note`. In step 3's citation bullet: cite the `query_dataset` answer's `sourceLine` as given, and build the source from `provenance` only when the answer has no `sourceLine`. Both members are answered by servers whose dataset tools fill them; a server that does not answer them leaves the skill's existing steps in force, with the `provenance` citation as before. When a `nextStep` note says to answer one measure and to ask about a word that has only candidates, the skill says to do both and to use none of that word's candidates until the user answers; the question-alone rule (no tool call until the user answers) covers a reply that only asks. + + Two sentences that restated another line of the same skill are removed: the fallback row's "and say in the answer that no governed metric was used" (step 4 opens every fallback answer with that line) and "no figure" in the paragraph under the table (its next sentence says the same). The `candidates` row also drops "one or several", which its own right cell states. `packages/mcp/src/ask-skill.generated.ts` is regenerated from the skill; no code path changes. +- 96faf44: Clause-②: yes (widening) + Metadata-protocol: none + + fix(i18n, mcp): a translation fault serves the untranslated text and the fault is logged, instead of failing the read; `list_datasets` is flagged `partial` with a `warning`, while REST `/meta`, the MCP object tools and `query_dataset` log only + + When the i18n service resolves but its `getLocales` or `getTranslations` throws, the shared `/meta` translator (`translationBundleOf`, `@objectstack/rest`) now answers it as no bundle: the text is served untranslated and the server log says so at `warn` (`The translations could not be read (…), so labels and descriptions are served untranslated.`). Before, the translation rejected, so `GET /meta/:type` and `GET /meta/:type/:name` answered 500, the MCP object tools failed, `list_datasets` answered `datasets: []` with `partial: true`, and `query_dataset` refused 503 on both MCP transports. + + Now `list_datasets` keeps every dataset, in its authored text, with `partial: true` and that sentence as its `warning`; `query_dataset` answers. A dataset host's `loadDatasets` may return `{ items, warning }` without `partial`: a whole read the tools say something about, which `query_dataset` does not refuse. The translator's sources take an optional `reportTranslationFault(warning)` to carry the sentence on an answer. + + fix(mcp): `?locale=` reaches the MCP labels, and the dataset tools answer in one language + + The HTTP MCP door now reads a `?locale=` query parameter as the `/meta` doors do (after `Accept-Language`, before the i18n default), for the object and dataset labels and the app-docs tools; it read headers only, though its docblock promised both. The dataset executor (`createDatasetTools`) takes an optional `translationLocale` dependency, the locale its `loadDatasets` translated the rows for, and reads labels and composes `nextStep` and `sourceLine` in it first. Both MCP transports pass it, so a call with no `Accept-Language` (common for MCP clients, and every stdio call) no longer mixes labels in the i18n default with sentences in the workspace locale. +- e25207d: fix(service-analytics): `list_datasets` no longer tells a client outright to ask "which number" when a word that falls back stands beside a grouping word + + Clause-②: no + Metadata-protocol: none + + A question such as "How many sales orders are in each status?" names its number. When no dataset measure answers to "sales orders" and none is offered as a candidate, the labelled fallback to the object query tools computes it. Until now the `nextStep` note of such an answer said two things at once whenever the grouping word equalled a dimension, or was near one: answer with the object query tools, and "A grouping alone is no answer: ask the user which number they mean." A client told both asked, and computed nothing. + + - **`list_datasets` `nextStep.note`** (`@objectstack/service-analytics`): the "which number is meant" sentence is written only when every word sent is a grouping (it equals a dimension, or has only dimensions among its candidates). With an unknown word beside it, the note carries that word's labelled fallback, then one closing sentence that leaves the question to the case only the client can see: "Only when the question has no word for a thing measured, ask the user which number they mean instead." (the unknown word may be a filter value, as in "break it down by stage for the west region"; the server sees words, not which of them names the number). `decision`, `terms`, `matches` and `candidates` are what they were. Unchanged: a word that equals several measures, and a word with a measure among its candidates (one candidate included), are still asked about and never selected. + - **`list_datasets` description**: the sentence "A dimension match alone picks a grouping, not a number: a measure must still match." now reads "A dimension match picks a grouping, not a number: when the question has no word for a thing measured, ask which number is meant; beside a word for a thing measured that falls back, ask nothing and take the fallback." + - **`objectstack-ask` skill, step 2** (`@objectstack/skills`, and the copy `GET /mcp/skill` serves from `@objectstack/mcp`): the row "Only a dimension matches" becomes "No word for a thing measured, only grouping or filter words", and the fallback row says the fallback is taken without asking, whatever a grouping word or another word matched. The sentence under the table that said the same about another word's matches is cut, since the row now holds it. + - **`objectstack-ask` skill, step 1**: a term keeps its counting head ("number of deals", not "deals"), so a phrase the dataset's owner declared as a synonym is sent whole and can equal its one measure. + - Four eval cases (21 to 24) cover the fallback beside a grouping candidate, the fallback beside a dimension match, the whole counting phrase, and a question with a grouping and a filter value but no word for a thing measured, which is asked which number is meant. + + The skill file is 2 bytes shorter than before (1875 tokens by the catalog's count, before and after). +- d6ce9ba: docs(skills): the `objectstack-ask` skill says what the client does after the user answers an ask-back + + Clause-②: no + Metadata-protocol: none + + Step 2 of the `objectstack-ask` skill, and the page at `GET /mcp/skill` that is generated from it, told a connected client to ask which reading the user meant and stopped there. It now carries the turn after the answer: an option is used only once the user picks it, and is then computed by its exact name as step 3 says (`query_dataset`, with the source cited from the tool's answer); a reply that names another word ("no, I mean ARR") starts at step 1, a new `list_datasets` lookup with that word, before anything else; a user who only picks none of the options gets step 4, the object-query fallback with its label. This is ADR-0149 D3 rule 1, rule 2 and rule 4 applied to the user's reply; no rule is added. The another-word case is also part of the ask-skill iteration loop (Part of #34996, item a of its third round). + + Four restatements are cut from the same file, each keeping its other home, so the skill does not grow: "and in the user's language" in step 1 (beside "Do not translate or reword a term"), "a fragment's matches are not the user's" in the same bullet (beside "a match on a word you supplied is your reading, not the user's"), the "by stage" example and "You still need a measure match" in the grouping row of step 2, and "use none of that word's candidates until the user answers" under the step 2 table, which the new sentence now states for every option. `packages/mcp/src/ask-skill.generated.ts` is regenerated from the skill; no code path changes. +- 7ed18b5: fix(analytics): a grouping or time word with only a near dimension no longer stops a matched measure with a question + + Clause-②: no + Metadata-protocol: none + + A question like 「按行业看销售额」 or "revenue this quarter" sends `list_datasets` a measure word with an exact match (销售额, revenue) and a grouping or time word that matches nothing exactly but is near a dimension (「按行业」 contains 行业, "this quarter" contains `quarter`). The `nextStep` note used to tell the model to ask the user about that word before using it, so an ordinary question got a clarifying question back. Now a word whose candidates are all dimensions is offered as a possible grouping: the note says not to ask about it and that it does not stop the matched measure, which is computed. A word with a measure among its candidates still asks, as before: a bare near-miss measure word (销售 near 销售额) is still `candidates_only` and computes nothing until the user answers, and beside a matched measure it is still asked about. + + What changes is the note only. `decision`, `terms`, `matches` and `candidates` are the same as before for every input: a word with only dimension candidates is still `candidates_only` when it is the reported case, and its candidates are still listed. When such a word is the only word sent, the note offers the grouping and asks which number is meant, as it does for a word that equals a dimension. + + The `list_datasets` tool description and the MCP `initialize` selection rule now state the scoped rule in the same words: "A word whose candidates are all dimensions is at most a possible grouping: never ask about it, and it never stops a matched measure." +- ba304e0: fix(mcp, lint): `create_record` and `update_record` over stdio answer `droppedFields` and no longer echo a dropped value; a flow write to a roll-up summary field draws a warning + + Clause-②: yes + Metadata-protocol: none + + On the stdio MCP transport, `create_record` and `update_record` now answer `droppedFields`, as the HTTP transport has: each entry names the object, the fields the engine did not store and the reason. A non-system write of a `readonly: true` column or of a roll-up `summary` field (read-only on create and update whether or not it declares `readonly: true`) reports the field there with reason `readonly`. Before, the stdio answer carried no `droppedFields`, and `update_record` answered the caller's own value for such a field over the stored one, so the answer read as if the write had landed. The `record` in both answers now leaves a dropped key's caller value out: an update answers the stored value, and a create answers what the write stored. A write that drops nothing answers as before, with no `droppedFields` key. No MCP tool input, `@objectstack/mcp` export or metadata key changes. + + `os validate`, `os lint` and `os build` now report a new warning, `flow-update-summary-field`, when a flow's `create_record` or `update_record` node that does not run as `runAs: 'system'` writes a roll-up `summary` field that does not declare `readonly: true`. The engine drops that value on create and on update, so the step changes nothing in that column. It is a warning, so no build that passes today fails. Like every warning, it makes `os validate --strict` and `os lint --strict` exit 1; there is no per-rule switch, so a strict run fails until the field is removed from the node. The metadata save and publish answers carry it under `advisories`, never as a refusal: on a flow save whose user-run node writes such a roll-up, and on an object save that makes a field such a roll-up while a live user-run flow of the same package writes it. A roll-up that declares `readonly: true` is reported as `flow-update-readonly-field`, an error, as before. `os explain flow-update-summary-field` gives the details. The fix is to remove the field from the node, since the engine recomputes it from the child records. + + New export: `FLOW_UPDATE_SUMMARY_FIELD` from `@objectstack/lint`, the rule id constant. +- ec227fc: feat(mcp, runtime): `query_records` and `get_record` name the fields field-level security withheld from the caller + + Clause-②: yes (widening) + Metadata-protocol: none + + A row served over MCP leaves out every field the caller may not read, and nothing in it said so, so an AI client read a withheld field as blank. `query_records` and `get_record` now add two members to their result when a field was withheld, on the HTTP and the stdio server alike: + + - `withheldFields`: the names of the withheld fields, field names only, never values. With `fields` in the call, only the asked fields are named; without it, any field of the object. + - `withheldFieldsNote`: one sentence saying these fields exist and are not visible to the caller, and that they must not be described as empty. + + A field is named only when the caller's own served schema shows it (the object as `describe_object` serves it to them) and the security service does not answer it readable for them. Both are asked as the caller; nothing is derived from the rows. A field the caller's schema does not show is never named. Under the default object-schema masking, a field a caller may not read is usually left out of their schema too, so `withheldFields` appears for a caller who is served the whole schema (a caller holding `manage_metadata`, `studio.access` or `setup.access`) or where schema masking is switched off. + + A caller with nothing withheld, a deployment with no security service, and a server whose bridge does not provide the new optional `McpDataBridge.fieldVisibilityOf` member get the result they got before, byte for byte. The two tool descriptions gain one sentence about the member. + + `aggregate_records` is unchanged: a withheld field asked as a measure or a group is already refused `403 PERMISSION_DENIED`. +- ba6556c: feat(mcp): `aggregate_records` returns select groups in their declared option order and names the currency of a fixed-currency amount + + Clause-②: yes (widening) + Metadata-protocol: none + + Two facts the MCP `aggregate_records` tool now reads from the object as the caller is served it, on both the HTTP and the stdio door: + + - Groups keyed by a `select` or `radio` field come back in the order the field declares its options, instead of the order the driver returned them in. A value no option declares, such as a null, sorts last. When the call groups by several keys, the order is applied to the leading select keys. From the first key that is not a select field onward, the driver's order stays. The groups are sorted before the tool's row cap, so the groups the cap keeps are the first ones in declared order. + - An amount column (`sum`, `avg`, `min` or `max`) over a field whose `currencyConfig` is `currencyMode: 'fixed'` is named in a new result member `currencies`, which maps the column's alias to its ISO 4217 code, e.g. `"currencies": { "total": "USD" }`. The member is present only when at least one column has a currency. `count`, `count_distinct`, non-currency fields and `dynamic`-mode amounts carry none. A `record`-mode amount is still answered only when it is grouped by its currency code field, so each group's code is already in its row. + + A field the caller's served schema does not show is never ordered by its options or named. A host whose bridge cannot serve the definition answers exactly as before. Existing members (`rows`, `totalGroups`, `truncated`) are unchanged. +- 8856afc: feat(mcp): a refused record read says the data is not recorded, in the caller's language + + Clause-②: yes (widening) + Metadata-protocol: none + + When `query_records`, `aggregate_records` or `get_record` is refused and the call named an object, or a field, that the caller's own schema does not show (the object as `describe_object` serves it to them), the refusal now carries two members beside it, on the HTTP and the stdio server alike: + + - `notRecorded`: what is not recorded, as the caller sent it: `{ "object": "<name>" }`, or `{ "object": "<name>", "fields": ["<name>", …] }` for the field names the call sent that the schema does not show, in the order sent. Every sent name is read by its head on every channel (`where`, `fields`, `orderBy`, `groupBy`, an aggregation's `field` and `filter`), so `owner.name` is judged by `owner`, and a dotted name whose head the schema shows is never named. + - `ifNotRecorded`: one sentence, in the caller's language (English, Simplified and Traditional Chinese, Japanese), telling the model to say the data is not recorded, never to report 0 or an empty result for it, and not to answer with another object or field in its place. + + The answer names only what the caller can see: both members are built from the names the caller sent and from the caller's served schema, and nothing else. The refusal itself (`isError`, its `code`, `message` and `status`) is unchanged, byte for byte. A read that answers, a refusal about a field the caller's schema shows, a server fault, and a refusal whose schema read cannot be made carry no member. `id`, `created_at` and `updated_at`, which every object answers, are never named. + + The language is chosen by one shared picker, `pickSentenceLocale` (with `platformLocaleNamedBy`), now exported from `@objectstack/core`: the first of the caller's locales (the request's, then the workspace default) that names a language the sentence is written in, else `en`. The dataset tools' `nextStep` and `sourceLine` (`@objectstack/service-analytics`) use the same picker, with unchanged behaviour. `McpDataBridge` gains an optional `userTextLocales()` member: the HTTP bridge answers the request's ladder, the stdio bridge the principal's ladder and then the i18n service's default. A bridge without it is answered in `en`. +- 96a1f2b: feat(mcp): `query_records` and `aggregate_records` answer a `source` block, with a finished `line` in the caller's language + + Clause-②: yes + Metadata-protocol: none + + A successful `query_records` or `aggregate_records` answer now carries a top-level `source` key on both MCP doors (HTTP and stdio): the block `ObjectQuerySourceSchema` (`@objectstack/spec/ai`) already types, composed from the read the tool ran. It names the object, the caller's `where` exactly as sent (`filter`), the aggregations and group keys, the caller's own `orderBy` with the cut beside it (`limit`), the lookups read through `expand` (`related`), a one-record-per-group reading over one key (`latestPer`), and `records` where the read established it: a page read's counted total, or an uncut aggregate's bare `count` summed over every group, never after a cut. `scope` is `visible_to_you` on every call: these doors ask no row-filter question, and the read runs under the caller's permissions and row-level security. + + `source.line` is that source as one sentence of at most 280 characters, in the caller's language (en, zh-Hans, zh-Hant, ja; the shared picker `pickSentenceLocale` over the bridge's `userTextLocales`, the ladder `ifNotRecorded` reads), naming the object and its fields by the labels the caller's served definition shows and by the caller's own names otherwise. The tool descriptions tell the model to quote it as the source of a figure. Before this, an aggregate answer came back as a bare number. + + No existing key changes. An error answers no block; `get_record` answers none, since its answer is the record itself. A read the schema cannot state truthfully (one record per group over several keys), or a block the schema refuses, is answered without the block. Each call now reads the caller's served object definition once for the labels; a bridge without `servedObjectDefinitionOf` gets machine names, and one without `userTextLocales` gets English. +- c787255: Clause-②: yes (widening) + Metadata-protocol: none + + `query_records` says when a page hit its row cap. The tool asks for one row more than the page; when that row comes back, it serves the page and adds `truncated: true`. The member is present only when true, so a page that holds every matching row, exactly `limit` rows included, is unchanged. The tool description now tells a model not to sum, count or rank a truncated page as if whole, and to read on with `offset` or use `aggregate_records` for totals. + + The stdio door's `query_records` now answers the same page facts as the HTTP door: a paged read is counted under the same filter, as the caller, so `total` is the match total and `hasMore` says whether rows remain. Before, a capped stdio page answered `total` equal to the page length. If the count fails, `total` is left out and is never estimated. + + When the host's read window (`OS_DATA_MAX_PAGE_SIZE`, `OS_DATA_QUERY_ROW_BUDGET`) would refuse the extra row, the page is read as asked, and the door's counted `hasMore` decides `truncated`. +- 65b67be: feat(mcp): `aggregate_records` orders, cuts and counts its groups in the database + + Clause-②: yes (widening: `orderBy` and `limit` arguments on `aggregate_records`) + Metadata-protocol: none + + A ranking question ("the top five customers by revenue") over more groups than the tool's row cap used to come back as every group, or the first page of them, in no stated order, and the client ranked what it happened to get. `aggregate_records` now takes `orderBy` — a list of `{ field, order }` naming an aggregation alias or a group key (its alias when it has one) — and `limit` (at most the row cap). The database orders the groups, cuts them, and counts how many groups it formed before the cut, in one statement; the result carries the groups, `totalGroups` (the key the tool already answers, now the database's count of the groups before the cut), and `truncated: true` when more groups existed than came back. + + - An order key that names no column of the aggregated row is refused `INVALID_SORT` / 400, naming the columns the query projects. + - Only a driver that runs the cut in its own SQL statement serves it: `driver-sql` (every dialect it speaks; the window `count(*) over ()` needs MySQL 8 or later), the WASM SQLite driver, and the Turso driver's local and replica faces. Every other driver (the in-memory driver, MongoDB, OData, Turso's remote face), an aggregate the engine computes in memory (a date bucket, a reference timezone or a measure filter the driver does not run), and an aggregate with `having` are refused `INVALID_QUERY` / 400 before anything is read. Groups are never ordered or cut in the application. + - On an order key without a `rank`, a NULL ranks last in either direction, except a `sum` or a count with no value, which ranks as the `0` it is served as. Group keys the order does not name, and a group key it names only by a `rank`, break ties, ascending, NULL last, so two runs of one call answer the same groups in the same order. + - An order key may carry a `rank`, a list of the column's values: the statement ranks each listed value by its position and every other value (a NULL among them) on one rank past them, before the cut, so the unlisted values come after the listed ones ascending and before them descending; among themselves they follow the column's own ascending order, NULL last. It is the tool's own, never an `aggregate_records` argument. + - A `limit` with no `orderBy` keeps the declared option order the uncut answer already follows: groups keyed by a leading select or radio field come back in the order the field declares its options, a value no option declares last, and the database takes that order before the cut, so the cut keeps the first declared groups. An `orderBy` the caller sends overrides it. + - The cut answer carries what the uncut one does: a fixed-currency amount's currency in `currencies`, and `KEY__label` beside each lookup or master-detail group key, the record's name read with the caller's own permissions. + - An amount whose records each carry their own currency is ranked by its bare numbers across currencies: the tool description says to rank it inside one currency by filtering `where` on its currency code field. + - Without `orderBy` and `limit` the tool answers as before. + + `@objectstack/objectql` exports `AGGREGATE_ORDER_CUT`, the engine-internal read option of `aggregate` that carries the request (a symbol, so no wire request can set it), with the `AggregateOrderCutRequest`, `AggregateOrderKey` and `AggregateOrderCutOutcome` types. `McpDataBridge` gains the optional member `aggregateGroups`; a bridge without it refuses `orderBy` / `limit` with `NOT_IMPLEMENTED` / 501 and keeps serving the rest of the tool. Nothing that was accepted before is refused. +- 1caee8c: feat(mcp): "each X with its latest Y" in one `query_records` call — `latestPer` + + Clause-②: yes (widening): a new read form on the published MCP tool surface. Judged from the card content; the build confirms it + Metadata-protocol: none + + `query_records` takes `latestPer: { by, orderBy }`: one row per group, the group's first row in the given order. `by` names 1 to 3 fields, `orderBy` 1 to 3 keys (`asc` / `desc`); a tie goes to the record id in the direction of the last key, and an empty order value ranks last. "Each account with its latest deal" is `{ objectName: 'crm_opportunity', latestPer: { by: ['account'], orderBy: [{ field: 'close_date', order: 'desc' }] } }`. + + - The row is chosen among the rows the caller may read and the `where` admits: a group whose newest row is hidden from the caller answers its newest readable row, never the hidden one and never nothing. The organization wall holds inside the choice. Field masking still applies to the returned rows. + - A partition or order field the caller may not read is refused as it is in `orderBy`; a computed, JSON or multi-value field, or a dotted path, is refused as a partition or order field. + - `limit` counts groups, capped at the tool's `maxLimit` like any list. The answer is `{ object, records, hasMore }` and never a `total`; when more groups exist than came back it carries `truncated: true`. + - Served by the SQL driver (Postgres, MySQL, SQLite) and by `driver-sqlite-wasm` and the Turso driver on a local or embedded-replica database: the driver compiles a `ROW_NUMBER()` window over the read's own scoped selection. Every other driver (in-memory, Turso's remote connection, MongoDB), an object with an `afterFind` hook and an object with object-scoped read middleware refuse with `INVALID_QUERY` / 400 before anything is read. The Turso driver's remote face refuses the directive itself too. + - New exports: `LATEST_PER`, `LATEST_PER_MAX_KEYS` and the `LatestPerRequest` / `LatestPerOrder` / `LatestPerOutcome` types from `@objectstack/objectql`; `LATEST_PER_DIRECTIVE`, `latestPerDirectiveOf` and the `LatestPerDirective` / `LatestPerDirectiveOrder` types from `@objectstack/driver-sql`; `McpLatestPer` from `@objectstack/mcp`. The request rides an in-process read option, never a wire or query key; `@objectstack/spec` is unchanged. + + Without `latestPer`, `query_records` and every read are unchanged. +- dbb2f68: feat(mcp): a record with its related records in one call — `expand` on `query_records`, `related` on `get_record` + + Clause-②: yes (widening) + Metadata-protocol: none + + `query_records` takes `expand`: up to 3 of the queried object's lookup, master-detail, user or tree fields, each answered as the record it names, one level deep. `get_record` takes `related`: up to 3 child objects that point at the record, each answered as a list of at most 20 rows (never above the tool's `maxQueryLimit`), as `{ record, related: [{ object, field, records, total, hasMore }] }`. + + - Every object a new read shape reaches is judged by the MCP read guard exactly as the object the call names. A target the guard refuses refuses the whole call with `PERMISSION_DENIED` / 403 before any record is read. A related object whose definition is not served to the caller refuses it with `OBJECT_NOT_FOUND` / 404, also before any read. + - An `expand` name that is not a relationship field of the object as the caller is served it, and a `related` link `field` that does not point at the record, are refused with `INVALID_FIELD` / 400 before any read. A child that points at the record through several fields needs `field`. + - `expand` runs through the engine's one expansion path: one batched `id IN (...)` read per field, under the target's own permissions, row-level security and field masking. It combines with `latestPer`. Only the read guard's refusal refuses the call: a record the caller may not read on an admitted target object is not expanded, and the field keeps its stored id. + - A related list is one `query_records` read of the child, filtered only by the link to the record, with the child's own `fields` and `orderBy` and no caller filter. It is read only after the record itself. A list with more rows than its cap carries `truncated: true`. + - Each related list carries the delegation notice `query_records` carries (`delegationNarrowed`, `warning`) when the agent ceiling narrowed the read. + - The record and each related list carry `withheldFields` exactly as a plain `get_record` and a plain `query_records` of that object do. + - The stdio bridge serves `expand` too, built as the data door builds it (a target that does not serve `get` keeps its stored id). `McpDataBridge.query` gains an optional `expand` member. + + Without `expand` or `related`, both tools answer exactly as before. `@objectstack/spec` is unchanged. +- 09ba0c7: docs(skills): the `objectstack-ask` skill and the `list_datasets` output schema ask back only about a word with a measure among its `candidates` + + Clause-②: no + Metadata-protocol: none + + The `list_datasets` tool description and the MCP `initialize` selection rule already scope the ask-back: "A word whose candidates are all dimensions is at most a possible grouping: never ask about it, and it never stops a matched measure." Two texts a connected client also reads still said to ask about every word with candidates. The skill now carries the same sentence, and the schema description states the same scope in its own words. + + - The `objectstack-ask` skill, and the page at `GET /mcp/skill` that is generated from it. Step 2's `candidates` row is now two rows. A word with a measure among its `candidates` is asked about the same way as a word that matches several measures; with one candidate, the client asks whether it is the one meant. A word whose `candidates` are all dimensions is at most a possible grouping: the client never asks about it, and it never stops a matched measure. So 「按行业看销售额」, where 销售额 matches a measure and 「按行业」 is only near a 行业 dimension, is computed and grouped with no question back. + - `@objectstack/spec`: the description of `ListDatasetsOutputSchema.candidates`, which `list_datasets` serves in its `outputSchema`. It said every candidate is offered for a clarifying question. It now says the clarifying question is for a term with a measure among its candidates, and that a term whose candidates are all dimensions is offered them as a possible grouping, not for a question, and does not stop a matched measure. It states what the candidates are offered for and does not carry the sentence above: the instruction stays in the tool description and the skill. The doc comment of `DatasetTermCandidateSchema` says the same. No shape changes: `candidates` holds the same entries in the same order. + + The new skill row is paid for inside the same file, by removing text that restated another line of it: the `candidates` row's own listing instruction and "Do not pick one." (the row above states both, and the row now says "Ask the same way"), "A word matches nothing, and" in its left cell (step 1 says a word that matched nothing may have `candidates`), and "on the answer" in that step 1 bullet. `packages/mcp/src/ask-skill.generated.ts` is regenerated from the skill and `content/docs/references/ai/dataset-tools.mdx` from the spec; no code path changes. +- abb40ae: docs(skills): the `objectstack-ask` skill reads `withheldFields`, asks `aggregate_records` for a top or bottom N, and answers "how many" from `totalGroups` + + Clause-②: no + Metadata-protocol: none + + The `objectstack-ask` skill, and the page at `GET /mcp/skill` that is generated from it, now tell a connected client three things. In step 4: a `query_records` or `get_record` answer whose `withheldFields` names a field means the field exists but is hidden from the caller, so the client says it is not visible, never that it is empty; and a top or bottom N is asked of `aggregate_records` with `orderBy` (an aggregation alias or a group key) and `limit: N`, so the database ranks and cuts the groups. In step 6, one bullet covers `truncated: true`: more rows or groups existed than came back, so the client says the result is partial, and cites `totalGroups` (answered by `query_dataset` and `aggregate_records`) as how many groups existed before the cut; a `query_dataset` answer without `totalGroups` has an unknown total, never `rowCount`. A capped `query_records` page keeps stating its own `total`, which the bullet leaves alone. + + The two per-tool `truncated` sentences that bullet replaces are removed from steps 3 and 4. `packages/mcp/src/ask-skill.generated.ts` is regenerated from the skill; no code path changes. +- 53c9575: feat(mcp): the MCP door can search and read the installed apps' manuals, and tells the client how to answer a question about the app + + Clause-②: yes + Metadata-protocol: none + + An AI client connected over MCP (a user's own Claude, Cursor, …) can now answer "what is X?" and "how does this approval work?" from the manuals the installed apps ship, instead of from its own guess: + + - **`search_package_docs({ terms, package? })`** finds the pages whose title, a heading or text contains one of the terms (case aside, in the page's base text or a translation). Pages that contain more of the terms come first, then pages where the terms sit higher (the sum of title 3, heading 2, text 1), then by title; at most 10, each with an excerpt, its manual and, where the page has one, its console address (`/_console/apps/<package>/docs/<book>/<page>`) to cite. The heading parse is line-based and linear. + - **`read_package_doc({ name, package?, locale? })`** reads one page: its title, manual, Markdown content and, where the page has one, its console address (cut at 60,000 characters, and the answer says so). + - **Who sees what.** Both tools read the `doc` items through the `/meta/doc` docs-audience gate (ADR-0046 §6.7) with the request's execution context as the caller: a page the caller may not read is neither found nor read, and answers as not found. On an OAuth grant the request is an agent acting for the person who consented, and a permission-set audience is read against that person's own permission sets (ADR-0090 D10), never the token's scope-derived sets. Both are read tools: they register for an API key, a session, or a token granted `data:read`. The runtime's HTTP bridge carries them where the protocol serves the `/meta` list read; the stdio bridge does not. + - **The answer order.** Where both tools register, the HTTP `initialize` instructions say: read the manuals first; answer a concept from the manual, and label a general explanation as one when no page covers it; for a process or rule, also read its real definition, which wins where the two differ; end with each page's title and url. The rule names a definition reader only where the connection lists one (`describe_metadata`, else `get_metadata_item`, both under `metadata:write`); without one it says to answer from the manual and state that the configured process was not checked. A host's own instructions and a configured `instructions` option are served unchanged. + + The two names are the ones the cloud AI runtime already registers, so `MCP_DOOR_TOOL_NAMES` (`@objectstack/spec/system`) now lists them too; `PLATFORM_PROVIDED_TOOL_NAMES` is unchanged. No metadata key, value or default changes. +- ea58563: Clause-②: yes — widening: on a delegated agent token whose scope reaches the docs tools, a permission-set-gated package doc is now found and read when the delegating person holds that set (ADR-0090 D10, ceiling ∩ delegator); nothing served today is refused, a non-holder and a token without docs-tool access still see nothing. Seat runs a contract read before ready; security#2 checks the head read-only before merge. + Metadata-protocol: none + + fix(runtime): on an OAuth MCP connection, `search_package_docs` and `read_package_doc` judge a manual's permission-set audience by the delegating person's own permission sets + + An OAuth token makes the request an agent acting on behalf of the person who consented (ADR-0090 D10). The two app-docs tools used to judge a manual whose audience is `{ permissionSet }` against the token's scope-derived permission sets, so a person who holds that set could not find or read the manual from their own AI client, while the Console showed it to them. + + Now, on such a connection: + + - The token's scope still decides whether the docs tools are reached at all (`data:read`). A token without it is served neither tool, whatever the person holds. + - The audience reads the person's own permission sets, resolved by the same grant resolution a request uses, in the organization the request runs in: the one the token's consent bound, while the person's membership there is current. A person with no user row holds no set here. A person whose membership there has ended is read with no active organization, as their own session is, so no grant stored in an organization applies. + - The token's own permission sets are never added to the person's: a manual whose audience is one of the token's scope sets stays closed unless the person holds it. + - Manuals with the default audience answer as before. API keys, signed-in sessions and AI service accounts keep their own permission sets. + + Both tool descriptions now say so: on an OAuth connection, the person's own permission sets decide, never more. +- 61831d2: feat(mcp): export the app-docs answer-order rule and its served-check from the package barrel + + Clause-②: yes — widening: four new exported symbols on the published `@objectstack/mcp` barrel (`packageDocAnswerRule`, `packageDocToolsServed`, `definitionReaderOf`, `DEFINITION_READER_TOOL_NAMES`); nothing removed or refused. Seat runs a contract read before ready. + Metadata-protocol: none + + `@objectstack/mcp` now exports `packageDocAnswerRule(definitionReader?)`, `packageDocToolsServed(bridge, options)`, `definitionReaderOf(toolNames)` and `DEFINITION_READER_TOOL_NAMES`. A host that writes its own `initialize` text (`instructions` / `dataOnlyInstructions`) can carry the same "read the manuals first, end with sources" rule the open server appends to its default text: send it where `packageDocToolsServed` is true, naming the reader `definitionReaderOf` picks from the tool names the connection lists. The open server calls the same exports, so there is one copy of the sentence. Nothing else changes. +- ddceb22: fix(runtime)!: `callData` refuses a disabled package's data at every relation hop and for a system context too; the MCP stdio bridge asks every hop + + Clause-②: yes (narrowing: `callData` newly refuses 404 `OBJECT_PACKAGE_DISABLED` for a nested-relation condition into a disabled package's object at any hop, not only directly beneath the queried object's lookup, for every caller including a system context, and refuses a disabled package's addressed object for a system context and on a host with no protocol service; a non-system caller is also refused 404 `OBJECT_API_DISABLED` / 405 `OBJECT_API_METHOD_NOT_ALLOWED` for an unexposed target past the first hop, on `callData` and on the MCP stdio bridge; no export is added or removed) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed or renamed, and nothing stored is rewritten: every moved answer is what the protocol's data route already answers for the same object and the same condition. A caller that needs those records re-enables the package or exposes the object. --> + + **BREAKING** for callers of `callData` on an environment that disables a package or declares an object unexposed, and for the MCP stdio bridge. The engine lowers a condition beneath a condition (`{ "c_ref": { "b_ref": { "field": VALUE } } }`) up to three relationships, reading each related object, so the refusal that stopped at the first hop still answered a count of 1 for a stored value and 0 for any other one relationship further. The protocol's data route refuses every hop and every caller. + + - FROM: `callData`'s `aggregate` arm and its no-protocol `query` fallback asked only the first hop of a relation condition, and skipped the disabled-package question for a system context; on a host with no protocol service, a disabled package's object addressed directly was served to every caller, and so was any disabled package's object addressed by a system context on the `aggregate` arm. The MCP stdio bridge asked the exposure question of the first hop only. + - TO: every target on the way is asked, disabled package first and then exposure, and refused with its full position as `param` (for example `where.c_ref.b_ref`). The disabled-package question is asked of every caller, a system context included, for the addressed object and for every relation target; the exposure question still skips a system context. The MCP stdio bridge asks both questions at every hop of a non-system caller's condition. + + Who changes: a host that hands `callData` a system context (`HttpDispatcher.handleMcp` / `buildMcpBridge`, `dispatchAction`) now gets the data route's refusal for a disabled package's data; no door in this repository hands `callData` a system context, and a hook's `ctx.api` never passes through it. The fix for a caller that needs the records: re-enable the package, expose the object, or filter on the lookup's stored id. An environment with no disabled package and no unexposed object sees no change. +- 8aecf6d: feat(mcp,service-knowledge): the MCP door serves `search_knowledge`, and a skill MCP withholds is no longer withheld in silence + + Clause-②: yes + Metadata-protocol: none + + **`search_knowledge` over MCP.** An app that mounts the knowledge service (`KnowledgeServicePlugin`) now has its knowledge sources searchable from any MCP client: `tools/list` lists `search_knowledge` wherever the kernel holds a `knowledge` service and the connection's grant reaches the read family (`data:read`, or an API key or session, which carry no OAuth grant). Before, no MCP connection served a knowledge tool, so a BYO-AI client could not reach an app's knowledge base at all, and every skill whose `tools` named `search_knowledge` was dropped from `prompts/list`. + + - **One definition, one executor (ADR-0149 D2).** `@objectstack/service-knowledge` exports the tool's `AIToolDefinition` (`getKnowledgeToolDefinitions`) and its executor (`createKnowledgeTools`, also `KnowledgeService.knowledgeTools()`). The MCP door registers the definition as the service hands it over, on HTTP and on stdio, and holds no copy of its description or argument schema. Arguments: `query` (required), `sourceIds` (at least one id; omit it to search every source, and an empty list is refused `VALIDATION_ERROR` rather than answered with no passage), `topK` (1 to 20, default 5); any other key is refused before the search runs. + - **As the caller.** Each call runs with the caller's execution context, and the knowledge service re-checks every passage indexed from a record against the caller's row-level security; on an OAuth connection that is the delegating person's own reach. + - **Only `aiExposed` sources.** The tool searches only the sources whose `aiExposed` is not `false`, and refuses a `sourceIds` entry naming any other source with `NOT_FOUND` and the sentence an unknown id gets, so an agent never learns a withheld source exists. `IKnowledgeService.search` itself is unchanged: it still searches a source its caller names explicitly, because it also serves platform callers that are not agents. + - `MCP_DOOR_TOOL_NAMES` (`@objectstack/spec/system`) lists `search_knowledge`, so `os lint` resolves it for a skill offered over MCP, as it already did through the platform registry. + + **A withheld skill is said, twice.** + + - **Authoring time.** The `ai-skill-tool-unresolved` rule gains a verdict for a skill MCP would offer as a prompt (`instructions`, not `mcpPrompt: false`, not `active: false`) whose `tools` names one of the `ask` product's data tools no MCP connection serves (`aggregate_data`, `query_data`, `visualize_data`): the name resolves, but MCP withholds the skill from every `prompts/list`, and the warning names the tool. Fix: bind tools both doors serve, or set `mcpPrompt: false` on a skill written for the in-product agents. + - **Runtime.** On the HTTP door, each `prompts/list` that withholds a skill logs one `debug` line naming the skill and each bound tool the connection does not serve. +- c059e60: Clause-②: yes (widening) — `@objectstack/types` gains root exports (`FLOW_RUNTIME_STATE_KEY`, `flowRuntimeStateOf`, `FlowRuntimeStateAnswer`), and the open door's `get_metadata_item` answer on a flow gains the key `runtimeState`; nothing that was accepted is refused, and no key a caller sends is added + Metadata-protocol: none + + An MCP definition reader now says when an admin has switched a flow off. The open authoring door's `get_metadata_item` answers a flow with `runtimeState: { enabled }`, the engine's own reading (the one `GET /automation/_status` serves), placed ahead of the item; the switch moves only that bit and leaves the definition, `status: 'active'` included, as it was, so before this a switched-off approval read as running. The app-docs answer-order text sent on `initialize` (`packageDocAnswerRule`) now tells the agent that `runtimeState.enabled: false` means the process is switched off and does not run. `@objectstack/types` exports the key and the reading (`FLOW_RUNTIME_STATE_KEY`, `flowRuntimeStateOf`) for a host's own reader. +- 084156d: feat(mcp): `aggregate_records` names the record of a lookup group beside its id, read as the caller + + Clause-②: yes (widening) + Metadata-protocol: none + + When the MCP `aggregate_records` tool groups by a `lookup` or `master_detail` field, each group now carries a new member `<key>__label` beside the key: the name of the referenced record, from the referenced object's name field (`nameField`, as ADR-0079 resolves it). `<key>` is the group column, which is the key's alias when the call gives one. The same spelling is used by the hosted ask tools, so one prompt reads both. This holds on both the HTTP and the stdio door. + + The name is read as the caller, through the same bridge and context as the aggregate, in one batched read of the referenced object for the groups the tool serves. Nothing is read with other rights, so the caller's object, field and record permissions apply as they do for any read the caller makes. + + - A label is present only for a key whose record the caller's read returns with a non-blank name. Any other key carries no label, and nothing else in the answer changes. + - No label is added, and the answer is exactly as before, when the caller is not served the referenced object, its name field or the lookup field, when the referenced object is a system object the tool does not read, or when the read fails. A failed name read never fails the aggregate. + + The tool description now tells a model to name such a group by its `__label`, never by the id, and to say the record cannot be named where no label is present. Existing members (`rows`, `totalGroups`, `truncated`, `currencies`) are unchanged. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [8b550f8] +- Updated dependencies [c809deb] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [806bba8] +- Updated dependencies [8e46424] +- Updated dependencies [f5cfdd2] +- Updated dependencies [f4dbcc2] +- Updated dependencies [1950f07] +- Updated dependencies [9c29d73] +- Updated dependencies [f848e37] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [96faf44] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [ba304e0] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [7702f09] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [c9b0a23] +- Updated dependencies [a8126d2] +- Updated dependencies [65fddc8] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [52fb30c] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [92f6216] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [0d4f190] +- Updated dependencies [13da40c] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [a61b8ab] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [5c2e34c] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [76bff41] +- Updated dependencies [6bc775f] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [a98f8c6] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [9c57bd2] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [c059e60] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/types@18.7.0 + - @objectstack/lint@18.7.0 + - @objectstack/formula@18.7.0 + - @objectstack/rest@18.7.0 + - @objectstack/core@18.7.0 + - @objectstack/metadata-core@18.7.0 + ## 18.6.0 ### Minor Changes diff --git a/packages/mcp/package.json b/packages/mcp/package.json index f153b9cf7cc..43ac0bff665 100644 --- a/packages/mcp/package.json +++ b/packages/mcp/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/mcp", - "version": "18.6.0", + "version": "18.7.0", "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 9acf2df7529..88a10c2dd33 100644 --- a/packages/metadata-core/CHANGELOG.md +++ b/packages/metadata-core/CHANGELOG.md @@ -1,5 +1,363 @@ # @objectstack/metadata-core +## 18.7.0 + +### Minor Changes + +- 2495486: feat(spec): `userActions.transfer`, the per-object switch for the Change Owner action, and its structural eligibility + + Clause-②: yes (widening) + Metadata-protocol: added + + An object can now say whether it offers the Change Owner action. The action is not meant for every record that happens to carry an `owner_id`: line items, invoices and other details get one injected too, and an admin holding `modifyAllRecords` would otherwise see the action everywhere. + + - **Structural eligibility (derived, never overridable).** `isTransferEligible(def)` from `@objectstack/spec/data` answers true only when the platform injects the object's reassignable `owner_id` (`resolveInjectedSystemColumns(def).owner`), an owner is provable for it, and the object does not declare that field `readonly: true` (in either `fields` shape, record or array). So `ownership: 'business_unit' | 'org' | 'none'`, every `managedBy` object, every `sys_*` object and `systemFields: false` never offer the action, and neither does an `external` object whose owner is unprovable (`isOwnerAnchorUnprovable`: it neither declares `owner_id` nor maps a remote column onto it in `external.columnMap`). `transferIneligibilityReason(def)` names the structural fact when the answer is no, and, where the object can be made eligible, the change that does it (drop `readonly` from `owner_id`, set `ownership` to `user`, declare or map the external owner). + - **The switch.** `userActions.transfer` takes the same shape as the CRUD entries beside it: a boolean, or `{ enabled, visibleWhen, disabledWhen }` whose CEL predicates read the record the action acts on. Omitted, it is on for `sharingModel` `private`, `public_read` and `public_read_write`, and for an object that declares no `sharingModel` (a custom object then resolves to `private`); it is off for a `controlled_by_parent` detail. Authors override both ways: `transfer: true` on a detail with a real owner, `transfer: false` where the owner is the actor by rule. + - **The one resolution.** `resolveUserActionTransfer(def)` returns `{ enabled, predicates? }`: structural eligibility first, then the switch, then the `sharingModel` default. It is the answer the Change Owner endpoint and the console action will read once they ship, each still asking the caller's own transfer verdict per record; neither exists in this release. + - **Refused at parse.** `transfer: true` or `{ enabled: true }` on an object that is not eligible is refused at `userActions.transfer`, with the structural reason and its remedy in the message. Closing the switch there (`false`) is accepted. `changeOwner` and `reassign` under `userActions` are refused with a pointer to `transfer`. + + The switch gates the dedicated action, not the raw write: a plain `owner_id` update stays governed by `allowTransfer` alone, so import mappings and hooks are unaffected. To block every change of owner, declare `owner_id` `readonly`. + + The Studio object form gains a Change Owner row under User Actions, with its label and help text translated in every shipped locale. + + The served object document classifies `userActions.transfer` beside the four CRUD entries: for a caller who cannot read a field, a `transfer` predicate that names it is removed and the switch with its other predicate stays, as for `edit` and `delete`, instead of the whole entry being dropped. + + Nothing reads the switch at runtime yet. The Change Owner endpoint and the console action come in follow-up changes, so the liveness ledger grades `userActions.transfer` `planned` and `os lint` / `os validate` warn an author who sets it to `true` or uses the object form that nothing honours it yet. The key is new, so no stored object carries it and nothing needs migrating. + + **Existing objects that set `userActions.exportCsv: true` get a new warning.** Drilling `userActions` showed that no export menu reads `exportCsv`: setting it to `false` does not hide CSV export, which follows the view's `exportOptions` and the object's effective API operations. The ledger now grades it `dead`, so `exportCsv: true` raises a `liveness-dead-property` warning at `os lint` / `os validate`, and the hint says to remove it (`exportCsv: false` is not flagged). It is a warning, not a refusal: every stored object still loads. A follow-up (#35619) either makes the export menus honour the key or removes it. +- e114324: feat(units): a number field declares its unit with `unitConfig`, and the engine checks every unit code it stores + + Clause-②: yes + Metadata-protocol: added + + ADR-0158 R1, the membership card (#35489). + + **`unitConfig` on a field** (`@objectstack/spec`, `UnitConfigSchema`): + + - `{ unitMode: 'fixed', unit: 'KGM' }` on a `number`: the quantity is always in one standard UN/ECE Recommendation 20 unit, checked at parse against the standard unit table (exact uppercase; `C62` and `EA` are answered with the piece, `H87`). + - `{ unitMode: 'record', unitField: 'uom', unitDimension?: 'mass' }` on a `number`: each record names its unit by code in the sibling `text` field `unitField` names. The object refuses a pointer into nothing, into a non-`text` field, through a parent (`PARENT_FIELD.UNIT_FIELD` is reserved: a child cannot follow its parent's unit yet), or into a field carrying its own marker, and two quantities sharing one unit field with different `unitDimension` values. + - `{ unitMode: 'code', unitDimension?: 'count' }` on a `text`: a field holding a unit code with no quantity beside it, such as a material's base unit (Open item 8, ruled A). It is a unit marker, not a value domain, and is refused beside a `valueDomain`. + - `unitMode` is required and has no default. The key is refused on every other field type (`currency`, `formula`, `summary` included). A quantity stays a bare number, and needs no `scale`. + + **The write check** (`@objectstack/objectql`): at every insert, by-id update, predicate update and `validate()` preview, a unit code the row stores must be a standard code or one of the organization's own non-retired units (`sys_unit`), in exact uppercase and of the declared `unitDimension`, and a quantity may not stand beside a blank code. The row image is judged whenever the write touches the quantity or its unit field (Open item 9). Refusals, each 400, registered in the error-code ledger: `ERR_UNIT_CODE_REQUIRED`, `ERR_UNIT_CODE_UNKNOWN`, `ERR_UNIT_CODE_RETIRED`, `ERR_UNIT_DIMENSION_MISMATCH`. A row resting on a code that is no longer a member stays editable in its other fields; a quantity edit beside it is refused until the row moves to a member unit. + + **A unit is retired, never deleted**: the engine refuses a delete of a `sys_unit` row for every caller, a system writer and an automation run included, by id and batched (405 `ERR_UNIT_DELETE_REFUSED`), and `organization_admin` names `sys_unit` explicitly with no delete (`@objectstack/plugin-security`). + + `@objectstack/metadata-core` and `@objectstack/driver-sql` classify the new field key (field-level security keeps it; the DDL does not read it). `@objectstack/platform-objects`: the `sys_unit` docblock names its readers. +- 170ca48: feat(spec): a field group lists its own members and their order (`fieldGroups[].fields`) + + Clause-②: yes (widening) + Metadata-protocol: added + + A field group may now list which fields it shows and in what order: + + ```ts + fieldGroups: [ + { key: 'basic', label: 'Basic', fields: ['account', 'name', 'valid_until'] }, + { key: 'terms', label: 'Terms', fields: ['terms'] }, + ] + ``` + + The record page, the create and edit forms and the drawer show the group's fields in the list's order, whatever order the object's `fields` declares them in, so a group can be reordered without moving any field (and without changing a list view's default column order). + + Nothing changes for an object that writes no `fields` on its groups: a group without the list still holds the fields whose `group` names it, in field declaration order. `Field.group` is the older spelling and is still read; it is not deprecated for removal. + + The two spellings must agree. The object parse refuses a field one group lists while its own `group` names another declared group (reported at both places; a `group` naming no declared key is not another group, so the list wins), a field two groups list, a name one list repeats, and `fields` on a group that places a related list (`relatedList`). A field whose `group` names a listing group that leaves it out is shown after the listed fields, never dropped. A listed name the object does not declare is skipped, so removing a field never makes the object unparseable; `os lint` warns about it (`field-group-member-unknown`). + + New export: `readFieldGroupMembership` (`@objectstack/spec/data`), the membership `deriveFieldGroupLayout` places sections from, for editors that also show hidden fields. + + Studio: dragging a field inside a group, or into another group, now writes those groups' `fields` lists and leaves the object's field declaration order alone. Only the ungrouped bucket, which has no list, still reorders by declaration order. Moving a field to another group from the field inspector does the same once a list is involved. + + Field-level security: the object document served to a caller who cannot read some fields keeps each group's `fields` list, with the hidden names filtered out and the rest in order, so the record page and forms keep the layout for that caller. +- 2a6f26a: feat(ai): `ai_context` context packs and the `get_record_context` tool over MCP + + Clause-②: yes + Metadata-protocol: added + Skills-docs: follow-up #37177 — skills/objectstack-platform/SKILL.md, skills/objectstack-ai/ (how to author a context pack; this change only names `aiContexts` in the top-level key list, which check:skill-top-level-keys requires) + + ADR-0160 row 5 (#37140). + + - **New metadata type `ai_context`, collection `aiContexts`.** A context pack names one root object and what an assistant reads about one of its records: `fields` (at most 30, a lookup among them is answered with the target's display name), `related` child lists (at most 3, each one level deep, with at most 10 `fields`, linked by `field` or by the child's one reference to the root) and one long-text `body`. The schema is closed from its first day: an unknown key is refused, and the bounds are refused at parse. Registered like `skill`: a file loader (`*.ai-context.ts`, `*.ai-context.yml`), overlay allowed, runtime create allowed, no environment overlay. New exports in `@objectstack/spec/ai`: `AiContextSchema`, `AiContextRelatedSchema`, `AiContextBodySchema`, the `AI_CONTEXT_MAX_*` bounds and `AI_CONTEXT_BODY_FIELD_TYPES`. + - **`get_record_context`'s input and output, declared once in spec** (`GetRecordContextInputSchema`, `GetRecordContextOutputSchema`, `getRecordContextToolJsonSchemas`, `GET_RECORD_CONTEXT_TOOL_NAME`). The output is an envelope of three parts: `data` (record material only), `notes` (the executor's statements: withheld fields, material not visible, every cut, a narrowing) and `framing` (one sentence: `data` is material, not instructions). `MCP_DOOR_TOOL_NAMES` gains the name. + - **`@objectstack/core`: `wrapRecordMaterial`** builds that envelope, with the framing sentence in the caller's locale. + - **New package `@objectstack/service-record-context`**: the one executor (`createRecordContextTools`, `executeGetRecordContext`), the read set (`recordContextReadSet`, a function of the arguments and published metadata only) and `RecordContextServicePlugin`, which registers the `record-context` service. Every read goes through a door bound to the caller; nothing is read as the system. Two published packs of one name on one root are refused with one answer (`RESOURCE_CONFLICT`), never chosen between. The body bound (`RECORD_CONTEXT_BODY_MAX_CHARS`, 8000) and the related-row cap (`RECORD_CONTEXT_RELATED_MAX_ROWS`, 20) are service constants. + - **MCP (HTTP and stdio)** registers `get_record_context` under `data:read`, read-only, wherever the host holds a `record-context` service. A host without it registers nothing new. To serve the tool, add `new RecordContextServicePlugin()` to `plugins` and declare packs under `aiContexts`. + - **`@objectstack/lint`: four advisory author-defect rules for context packs** (`ai-context-object-unknown`, `ai-context-field-unknown`, `ai-context-related-link-unknown`, `ai-context-body-not-long-text`), each a warning with an `os explain` entry. `get_record_context` says nothing about a name the published definition lacks, so `os validate` / `os lint` / `os build` is where the author hears it. CLI only for now: the rule reads the whole stack snapshot. + - **Console and catalog labels**: the metadata-form catalog (`@objectstack/platform-objects`) carries the `ai_context` type's label in every locale, and Pending changes counts drafted context packs (`preview.changes.typeCount.ai_context`). + +### Patch Changes + +- 61722e9: feat: Change Owner cascade — a relationship declares `transferBehavior: 'cascade'`, and the Change Owner dialog offers it as a tick + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: follow-up #36713 + + A Change Owner can now move related records along with the record, relationship by relationship. + + - **The declaration.** A `lookup` or `master_detail` field takes `transferBehavior: 'none' | 'cascade'`, beside `deleteBehavior` (omitted means `'none'`). `'cascade'` on the child's reference field to a parent says: when the parent's owner changes, the child records that point at it and are owned by the parent's previous owner may move to the new owner too. No other child records move; there is no filter key. + - **Refused where it could never act.** The key is refused on any other field type, `'cascade'` is refused on a reference to a `sys_` object and on a multi-value reference (`multiple: true`), and `'cascade'` is refused on a field of an object that does not offer Change Owner itself: one that is not structurally eligible (no reassignable owner), a `controlled_by_parent` detail (its access already follows its master), or one whose `userActions.transfer` is off. Each refusal names the field and the fix. + - **The request.** `POST /api/v1/data/:object/:id/change-owner` and `POST /api/v1/data/:object/change-owner` take an optional `cascade: [{ object, field }]` naming the relationships to move along (`data.changeOwner` / `data.changeOwnerMany` in `@objectstack/client`). A relationship that does not declare `'cascade'`, or whose child does not offer Change Owner, is refused `400 VALIDATION_ERROR` before anything is written; so is a cascade with a queue target. Each cascaded record is updated as the caller, so it needs the caller's own transfer grant on the child object. Each relationship's outcome in the answer's `cascade[]` lists every record the caller's write refused, with its id, code and sentence: a related record whose `owner_id` is locked on it (read-only, or under a `readonlyWhen` that holds) is refused `FIELD_NOT_ACCESSIBLE` and keeps its owner, as the record itself would be, while the record's own move stands. One call moves at most 500 related records; the records past that limit are counted in `remaining`, still with the previous owner, not listed. When a relationship's records could not be read, its outcome carries `readFailure` and none of them moved. + - **The candidates.** `GET /api/v1/data/:object/change-owner/cascades` (`data.changeOwnerCascades`) lists the relationships declared to an object whose child offers Change Owner. A child whose declared API exposure does not serve `update` is left out, and so is a child of a disabled package. + - **The Studio.** The field form and the object form's field rows offer `transferBehavior` beside `deleteBehavior`, on `lookup` and `master_detail` fields; the row's label and help text ship in the metadata-forms locale packs of `@objectstack/platform-objects`. + - **The dialog.** For a person target, the Change Owner dialog lists those relationships on which the explain engine allows the caller the `transfer` operation, one tick each, sends the ticked ones, and draws each relationship's outcome, every record it did not move included. + + A plain `owner_id` update is unchanged: the declaration is read only by the Change Owner action. +- a23164e: feat(spec, ui): an object takes a colour from a fixed palette, and its icon is drawn as a white glyph on a square of that colour + + Clause-②: yes (widening) + Metadata-protocol: added + + - **`ObjectSchema.color` (new, optional).** One name from a closed palette of nine: `gray`, `blue`, `teal`, `green`, `amber`, `orange`, `red`, `pink`, `purple` (exported as `OBJECT_COLORS` and the `ObjectColor` type from `@objectstack/spec/data`). No free colour values: `color: '#ff0000'` is refused, and the refusal lists the nine names. An object without a `color` is drawn in the neutral `gray`. Nothing to migrate: every existing object stays valid and simply has no colour. + - **The AI blueprint carries it too.** `BlueprintObjectSchema.color` is the same leaf (required-but-nullable on `SolutionBlueprintStrictSchema`, like `icon`), and its rule asks the model to colour every object and give each object of one solution a different colour while the palette lasts. A producer of the STRICT shape must now send `color` on each object, `null` when it has none; the lenient shape a stored blueprint is read with keeps it optional. + - **`ObjectIconTile` (new, `@object-ui/components`).** Draws an icon name as a white glyph on a rounded square of a palette colour, in four sizes. Each name has a light-theme and a dark-theme value chosen so the white glyph keeps at least 3:1 contrast. `OBJECT_COLOR_TILE_CLASS` and `objectColorOrDefault` are exported with it. + - **Navigation draws objects as tiles.** In the sidebar, the app-home menu and the phone menu, every entry that opens an object is drawn as that object's tile: the entry's own `icon` when it names one, else the object's, on the object's colour. Dashboards, pages and links keep their line icons. `NavigationRenderer` takes a new `resolveTargetColor` resolver (`NavTargetColorResolver`) beside `resolveTargetIcon`; the console answers it from the object metadata it already holds (`useNavTargetColor`). A host that passes no `resolveTargetColor` gets its object entries as gray tiles where it had line icons. + - **The designer picks icon and colour together.** In the object's settings, the icon picker shows the nine colour swatches, and the trigger and every icon in the grid are previewed as the tile they become. The picker elsewhere (pages, apps, navigation entries) is unchanged: only objects carry a colour. + - The other places that draw an object's icon (list and record headers, search, related-record chips, the designer's object lists) switch to the tile in a follow-up release. + + `@objectstack/metadata-core`: the field-level-security reference table classifies the new `color` key as `keep` (a palette name names no field). + + `@objectstack/platform-objects`: the generic object form's metadata-form packs ship the new `color` row's label and help text in all 10 locales. +- 6db1dc2: feat: the form's line-item table edits people, multi-select, tags, check and rating cells the way the main list does + + Clause-②: yes (widening) + Metadata-protocol: semantic + + `InlineGridColumnSchema.type` (a relationship field's `inlineColumns`, a form view's `subforms[].columns`, and the page blocks that carry the same column) accepts five more cell types, each spelled as its namesake field type: `user` (people), `multiselect`, `tags`, `boolean` (check) and `rating`. The column also takes an optional `max`, the star count of a `rating` cell (default 5). + + In the line-item table: + + - A `user` cell opens the main list's person picker under the cell: a searchable list with recent people and Clear; a pick writes and closes. `multiple` holds several people. + - A `multiselect` cell holds several of its options and a `tags` cell holds free-form tags. Each opens its searchable list under the cell; a click outside or Tab writes what was picked, Esc writes nothing. A list emptied in the cell writes `null`, as a cleared multi-value field stores, so a line whose only value was removed is still a blank line. A `tags` cell takes no `options`. + - A `boolean` cell is a checkbox: a click or Space toggles it and writes `true` / `false`. + - A `rating` cell draws its stars; a click on a star, or a digit key on the cell, sets it, and 0 clears it. + - Read-only and list-mode cells show people by name, a rating as its stars, a multi-select's option labels, and a check cell as the session's yes/no word. + + Visible change on existing forms: a column the table derives from a child field (no `type` written) now follows that field. A `boolean` / `toggle` field becomes a checkbox instead of the yes/no select, and it writes `true` / `false` instead of the strings `'true'` / `'false'` (the server reads both the same). A `rating` field becomes stars instead of a number box. `user`, `multiselect`, `checkboxes` and `tags` fields get their own cells instead of a plain text box that took a typed user id or a single option. A column that writes its `type` is unchanged, a `type: 'select'` column over a boolean field included. Which derived columns are visible by default is unchanged. + + The field-level security scrubber classifies the column's new `max` key as kept (a number, never a field name). +- 70194ff: feat(audit): a record's activity stream shows each changed field's old → new values by default, with a new `fieldHistory` off switch on the object and the field, and a reader is served only the changes of fields they may read + + Clause-②: yes (widening) + Metadata-protocol: semantic + + A record's activity stream now shows `Field: old → new` for every changed field, on every object, unless the object or the field turns it off. Before, values showed only for a field that declared `trackHistory: true`. Every other change was named by its field label alone. + + - **New `enable.fieldHistory`, with no default.** Absent: values show. `false`: off for the object, and a change names its fields only. It has no default so that a parsed body never writes one. A built artifact or a stored definition therefore gets values when it is upgraded, with no rebuild. + - **`enable.trackHistory: false` alone no longer turns values off.** The flag keeps its meaning: with `true`, the default record page shows the compliance ledger's field changes to a reader the ledger serves, and the derived `history` API verb is served. To keep an object's activity free of values, write `enable: { fieldHistory: false }`. Every platform object that wrote `trackHistory: false` now also writes `fieldHistory: false`. + - **New field `fieldHistory`, with no default: the field's off switch.** Absent shows the values, `false` names the change without them, `true` shows them (a media or JSON type included). Under an object with `enable.fieldHistory: false`, values stay off whatever a field says. + - **Field `trackHistory: false` no longer means anything: it reads like absent, so the values show.** The field designer wrote it on every save while the key meant nothing, so a stored `false` cannot be told from a choice. `trackHistory: true` keeps one job: it opts a media or JSON field in. A credential field (`secret`, and `password` off better-auth objects) never shows values, because both sides are the same mask. A media or structured-JSON field (`image`, `file`, `avatar`, `video`, `audio`, `signature`, `composite`, `repeater`, `record`, `location`, `address`, `code`, `json`, `vector`) shows them only with an explicit `true` (`fieldHistory` or `trackHistory`). + - **The new field key is classified where every `FieldSchema` key is.** The SQL driver counts `fieldHistory` as a presentation key, so creating a column never reads it. The field-level-security scrub keeps it as written, because a boolean names no field. + - **Who reads a value:** the field-change code (`metadata.summary_message`) is now served to readers. It is narrowed change by change with the same field answer as `metadata.old` and `metadata.new`. A reference field's change is kept only for a reader served the referenced record's title. When a reader is not served some of a summary's changes, the summary is rebuilt from the changes they are served instead of being dropped whole. The full audit ledger is not widened. + - **A long value no longer fails the activity insert.** The stored summary is fitted to `sys_activity.summary`'s `maxLength` (500): each side is cut first, then trailing changes are left out. The code keeps every change, with each side capped at 1,000 characters. + + To keep an object's activity free of values, set `enable: { fieldHistory: false }` on it. For one field, set `fieldHistory: false` on that field; `trackHistory: false` does not turn values off. +- 70d07fd: feat: an object arranges its actions per scope (`actionLayout`: pinned buttons and the 「More」 order), and the design mode sets it + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: follow-up #36630 + + A page header draws at most three of its actions as buttons and puts the rest in its 「More」 menu. An object now arranges them itself with the new optional key `actionLayout` on `ObjectSchema` and `ObjectExtensionSchema`: `{ list?: Arm, record?: Arm }`, where `Arm = { pinned: string[], more?: string[] }`. `pinned` names the buttons in the order drawn, at most three (`[]` pins none); `more` orders the 「More」 menu; an action the scope places that neither part names goes to the end of 「More」 in its default order. A pinned action that is hidden leaves its button out, and no other action takes its place. + + - `list` arranges the actions placed at `list_toolbar` and the list page's built-ins `$import` and `$export`. A built-in is only ever pinned: one named in `more` is refused with its reason, since not pinned the list page draws it in its own Import / Export menu. + - `record` arranges the actions placed at `record_header` or `record_more`. It is a scope, not a page: the record page header, the side preview and a phone's bottom action bar all read it. A `page:header` that authors its own `actions` list keeps that list. + - An arm left out (or the key left out) draws that scope exactly as before. + + What each package gains: + + - `@objectstack/spec`: the key and its shape refusals at every door (more than three pinned, a name given twice in one part or in both, a malformed name, a built-in the scope does not have, a built-in in `more`, since a built-in is only ever pinned), each with its reason. New exports `OBJECT_ACTION_LAYOUT_PINNED_LIMIT`, `OBJECT_ACTION_LAYOUT_SCOPES`, `OBJECT_ACTION_LAYOUT_BUILTINS` and the types `ObjectActionLayoutScope`, `ObjectActionLayout`, `ObjectActionLayoutArm`. The object form offers it under Advanced, one JSON row per arm. + - `@objectstack/objectql`: `actionLayout` joins `fieldGroups` and `relatedLists` as a key only the base's paired `.custom` package writes on an `object_extension` (ADR-0146 D10). It is applied last, after every other layer, arm by arm: each arm it writes replaces the served arm for that scope whole, and an arm it leaves out stays. A manifest's `objectExtensions` entry now carries the key to the fold. + - `@objectstack/metadata-protocol`: the one judge refuses `actionLayout` from any other package, naming the action's own `locations` and `order` as the way to place an action the package brings. Each door says it its own way: publish, restore and draft promotion of an `object_extension` answer `VALIDATION_ERROR` / 400; marketplace install refuses the package body with `VALIDATION_ERROR` / 422; `os validate` and `os build` exit non-zero and print the row; the registry fold skips the key and leaves a note. + - `@objectstack/lint`: `validateObjectActionLayout` (`object-action-layout-unknown`, `object-action-layout-not-placed`, at `error`) refuses in `os validate`, `os build` and `os lint` a name, in either part, that is no action of the object or is not placed in the scope its arm arranges. + - `@object-ui/types`: `arrangedHeaderActions(actions, arm, scope)`, the one reader both record headers and the list header apply, and `readActionLayoutArm`. + - The console: both record headers (the default page's and an authored `page:header` with `placedActions: true`) and the list header draw the arrangement. In the design mode, 「Header buttons」 at the end of the page header lists the scope's actions under 「Pinned to header」 and 「Other」 (the 「More」 menu), each dragged into order; a dot moves an action between them, a fourth pin is refused with a toast, the header shows the change at once, and 「Save」 writes only the arms that changed: into the object's own package when it is writable, else into the installed object's customization package as an `object_extension`, through the one writer of an installed object's arrangement (`saveObjectExtensionArrangement`, whose patch type now takes the object-shaped `actionLayout`), which refuses a customization package the server does not list writable. A name the scope no longer offers is listed in the panel as left out. A name the header cannot draw is refused at save with its reason. New `@object-ui/i18n` keys under `designMode.pins`. +- 28588d0: feat(spec): a field can say it is not asked for when a record is created (`showOnCreate`) + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: follow-up #36455 + + `FieldSchema` gains `showOnCreate`, an optional boolean. Absent or `true`, the field is asked for when a record is created, as today. `false` says the business does not ask for it at creation: every create surface (the create dialog, the full-page create, an action-opened create) leaves it out, while editing, the record page and lists keep showing it, so the value is filled in after the record exists. + + - The one pair refused is `showOnCreate: false` on a `required: true` field, at the field's `showOnCreate` key, at every door that parses a field (`defineStack`, `os validate`, the metadata save): a required field is always asked for when a record is created, so the person creating it sees every value the record must have. The message names both fixes (keep the field on create, or drop `required`). A declared `defaultValue` makes no exception: the field is still asked for, with its default filled in. A `requiredWhen` field is accepted, since its gate is a predicate the parse cannot judge; the write door still refuses a create born inside it. + - No create surface reads the key yet: it is `planned` in the liveness ledger, and the Console's create surfaces read it in the change that follows. Nothing that parses today is refused, and no parsed field's output changes (the key has no default). + - `@objectstack/driver-sql` and `@objectstack/metadata-core` classify the new key in their every-field-key ledgers: `FIELD_KEY_STORAGE_CLASS` marks `showOnCreate` `presentation` (the DDL never reads it), and `FIELD_REFERENCE_POSITIONS` keeps it, since it is a boolean that names no field. Neither changes what it does with any field. +- c45dd80: feat(setup): Setup → Configuration → Public forms lists every public form of the environment and switches it on or off + + Clause-②: yes (widening) — a new Setup navigation id `nav_public_forms`, a new component id `forms:public-forms`, new language-pack keys (the `publicFormsSetup` block and the nav label) in every shipped locale, and `anonymousFormIntakeWithdrawnIn` newly exported from `@objectstack/spec/ui` (moved from `@objectstack/metadata-core`, which re-exports the same binding) + Metadata-protocol: none + + A system administrator (`manage_platform_settings`, the capability the Setup entry asks) now has one page for the operations side of public forms. It lists every public form of the environment: its name, the object a submission creates a record of, its address, and whether it is on. Per row: switch it on or off, copy its address, or open it in a new tab. A form is designed (created, deleted, its fields and title changed) in Studio, not here. + + - **Which forms are listed.** A form view whose `sharing` opens it to anonymous intake once switched on (`allowAnonymous: true` and a `publicLink`), read by the same rule the anonymous form routes use (`anonymousFormIntakeCandidates`). A switched-off form stays listed and can be switched back on. A form with no public address or no anonymous access is an internal form and is not listed. The list is the effective one (`GET /meta/view`), so an installed app's form switched off in this environment lists as off. + - **Where a switch is saved.** The switch is the form's `sharing.enabled`, saved and published at once. A form of a writable package is saved in that package. A form of an installed (read-only) app is saved as this environment's customization, an override in the app's `.custom` package (ADR-0146), never an edit of the app's own package, so the app upgrades as before. Switching such a form back on removes the override when it held nothing but the switch, so the app's own form is served again; an override that also carries design changes keeps them, with the switch on. + - **A form its installed app ships switched off** (its address kept, `enabled` or `allowAnonymous` set to `false`, or `enabled` omitted, which the stack schema reads as `false`) stays closed whatever the environment saves: the anonymous routes treat the app's own document as a withdrawal that no override re-opens. The page judges this with the routes' own function, `anonymousFormIntakeWithdrawnIn`, now declared in `@objectstack/spec/ui` beside the rest of the intake rule; `@objectstack/metadata-core` re-exports the same binding, so the server's import is unchanged. The page lists such a form as "Off (switched off by its app)" with its switch disabled, also when an override already switches it on, and a switch-on writes nothing and says the app ships it switched off. A form whose app's document cannot be read is shown as status unknown, never as on. + - **After an app upgrade**, switching back on an override taken from an earlier version restores the app's own form when the form is otherwise unchanged. When it is not, the override is kept with the switch on and the page says the form stays on the app's earlier version, which Studio's "Restore package original" undoes. + - A switch over a draft already pending where it would save writes nothing and says so: that draft is its saver's and is never published on their behalf. + - A switch writes the form's metadata, which the server lets only a `manage_metadata` holder do. Without it the page still lists the forms but disables the switches and says why. A refused switch, and a list read that fails, are told in business words, never the server's raw message. + - A switched-off form keeps answering as it does today: `404 FORM_NOT_FOUND` at its address. No route, error code or stored key is added. + + New Setup navigation entry `nav_public_forms` in `group_configuration` (label "Public Forms", in every shipped locale) opening the component `forms:public-forms`; the Setup navigation now carries 35 entries. New locale block `publicFormsSetup` in every console locale. Not shown: when a form last took a submission, since a submission is an ordinary record of the form's object and records no form. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/metadata-core/package.json b/packages/metadata-core/package.json index a348c15bf5f..8b55ff08bf6 100644 --- a/packages/metadata-core/package.json +++ b/packages/metadata-core/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/metadata-core", - "version": "18.6.0", + "version": "18.7.0", "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 957de9fe626..a2447613bd1 100644 --- a/packages/metadata-fs/CHANGELOG.md +++ b/packages/metadata-fs/CHANGELOG.md @@ -1,5 +1,22 @@ # @objectstack/metadata-fs +## 18.7.0 + +### Patch Changes + +- Updated dependencies [61722e9] +- Updated dependencies [2495486] +- Updated dependencies [e114324] +- Updated dependencies [170ca48] +- Updated dependencies [a23164e] +- Updated dependencies [6db1dc2] +- Updated dependencies [70194ff] +- Updated dependencies [70d07fd] +- Updated dependencies [28588d0] +- Updated dependencies [c45dd80] +- Updated dependencies [2a6f26a] + - @objectstack/metadata-core@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/metadata-fs/package.json b/packages/metadata-fs/package.json index 18d61e4fed8..57bbf608015 100644 --- a/packages/metadata-fs/package.json +++ b/packages/metadata-fs/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/metadata-fs", - "version": "18.6.0", + "version": "18.7.0", "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 5b40e65ce18..ab2a97c615a 100644 --- a/packages/metadata-protocol/CHANGELOG.md +++ b/packages/metadata-protocol/CHANGELOG.md @@ -1,5 +1,831 @@ # @objectstack/metadata-protocol +## 18.7.0 + +### Minor Changes + +- f796089: fix(spec,metadata-protocol)!: retire the seed modes `insert` and `replace`, which inserted every record again on each replay + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: follow-up #34798 + + <!-- adr-0087: registered seed-mode-insert-replace-retired --> + + **BREAKING** for a seed dataset authored with `mode: 'insert'` or `mode: 'replace'`. A seed is replayed on every single-tenant boot, every package install or upgrade and every publish, and neither mode matched an existing row, so every replay inserted each record again: an un-walled install went from 1 to 2 to 3 rows over three boots, a person reference the first load had to leave empty stayed empty on the first row while only the newest copy named the person, and with a unique field the replay insert was refused and the one row stayed empty. `replace` expected the caller to clear the table first, and no load path ever clears one. + + What moves (each line FROM → TO): + + - `SeedSchema.mode` / `SeedMode` (`@objectstack/spec/data`; `defineSeed`, `defineStack({ data })`, a `seed` metadata item, a package body's seed): FROM `insert` / `update` / `upsert` / `replace` / `ignore` TO `update` / `upsert` / `ignore` (default `ignore`, unchanged). `mode: 'insert'` or `mode: 'replace'` fails parse with a prescription naming the fix; the save and publish doors refuse it with the same message. The retired pair is exported as `RETIRED_SEED_MODE_VALUES` (`@objectstack/spec/data`): it is derived from the parse refusal's own table, and the loader and the artifact door read it. + - a stored dataset that still declares one, replayed by the boot seed, the per-organization replay, the dev hot reload or a package install, upgrade or sample-data reseed (`SeedLoaderService.loadStored`, `@objectstack/metadata-protocol`): FROM inserted again on every load TO refused alone — it writes nothing, the load result carries one error with the prescription and `success: false`, and every other dataset loads. `SeedLoaderService.load()` and `validate()` refuse the dataset the same way when handed one unparsed, so a dry run reports what a real load does. + - a compiled artifact (`objectstack.json`) carrying such a dataset, booted by `os serve` / `os start` / `os dev` (the artifact door, `MetadataPlugin`, `@objectstack/metadata`): the door parses the artifact without that dataset and hands it back to the seed load, which refuses it alone; the door logs a warning naming the dataset and the fix. Everything else in the artifact registers and boots. + - `os diff` (`@objectstack/cli`) on a dataset declaring either mode: FROM "a replay inserts these again" TO a note that the mode is retired, that a replay refuses the dataset, and what to declare. + - the advisory lint rule `seed-insert-mode-duplicates-on-replay` (`validateSeedReplaySafety`, `@objectstack/lint`): FROM a warning on `mode: 'insert'` TO removed; the schema refusal does its job for both modes. The author-time rule count `os validate` / `os build` print drops by one (71 to 70 at this release). + - the save door's and the loader's hint for a key no record carries: FROM "or use mode 'insert' for rows with no natural key" TO a list of fields when no single field names a row, or `'id'` when the records carry their own ids. + + The fix: declare which field identifies a row and drop the mode (or declare `upsert` for reference data the package keeps current). Set `externalId` to the field that names a row, to a list of fields when no single field does (a junction table's `['team', 'project']`), or to `'id'` when the records carry their own ids. Rebuild the package, and reinstall it where it was installed with `os package install`, so the stored body carries the new declaration. + + No conversion is made, at load, at save or by a migration (ADR-0087 D3, entry `seed-mode-insert-replace-retired`): a keyed mode needs the field that identifies a row, and only the author knows it. Rows earlier replays duplicated are data and are left as they are. + + Unchanged: `ignore`, `upsert` and `update` datasets load byte-identically. +- f4dbcc2: feat(lint): five publish-time checks for metadata that passes the schema and does nothing at run time, and four build probes over what landed + + Clause-②: no (narrowing: four publish-time refusals of metadata the schema accepts today) + Metadata-protocol: narrowed + Skills-docs: follow-up #35245 + + <!-- adr-0087: registered publish-refuses-metadata-the-runtime-ignores --> + + Five authoring rules join the registry the runtime publish gate and `objectstack validate` / `lint` / `compile` run. Each finding names its fix. + + - `flow-node-type-no-executor` (error): a flow node whose `type` no executor in this deployment runs fails every run with `NO_EXECUTOR`. Judged only against the automation engine's SEALED node-type vocabulary, which the publish gate reads from the new `AutomationEngine.getSealedNodeTypeVocabulary()` (it answers `undefined` until `sealNodeTypeVocabulary()` ran at `kernel:bootstrapped`). The CLI does not know which plugins a deployment loads, so it judges nothing here. + - `flow-approval-decision-unrouted` (error): an `approval` node whose decision out-edges are not labelled exactly `approve` and `reject` runs every out-edge for a decision no label claims, so the approving and the rejecting branch both run. + - `flow-http-timeout-missing` (warning): an `http` node with no positive `config.timeoutMs` and no positive node-level `timeoutMs` waits on a slow upstream for as long as the connection stays open; the engine arms no default timer. A `durable: true` node, which does not wait on the endpoint, is not reported. Like every warning, it makes `os validate --strict` exit 1. + - `state-machine-no-initial-states` (error): an active `state_machine` validation without `initialStates` (or with an empty list) lets a record be created already in any state. Add `initialStates`. + - `action-no-object-binding` (error): a standalone action that declares `locations` but no `objectName` binds to no object, so its button never renders. Set `objectName`, or write `locations: []` for a headless action. + + What was accepted before and is refused at publish now: a flow with an unrouted approval decision or a node type the deployment cannot run, a state machine without `initialStates`, a placed action with no object. The fix for each is in the finding. + + Four post-publish build probes report, as warnings on the publish receipt, what the person will see: `widget_empty_result` (a dashboard card whose real query reads only zeros), `rollup_never_computed` (a roll-up blank on all of the sampled parents that have children, judged inside one organization when the rows carry one), `seed_reference_unresolved` (a sample record the seed loader landed whose reference names no row in the organization that record belongs to, so the reference leads nowhere) and `flow_connector_action_unresolved` (a `connector_action` step naming a connector or action this environment does not serve). Each carries its sentence for the person in every platform locale. `RunBuildProbesOptions` gains `automation`, `packageId` and `seedLanded`; the publish passes the automation engine's connector lookups, the publishing package and its `seedApplied.landed` ids. `ProbeEngine` gains an optional `getSchema`, which names the column a row's organization is stamped in; the roll-up and seed probes judge each row inside that organization. + + New exports: `@objectstack/lint` adds `validateFlowNodeExecutors`, `validateInertObjectDeclarations`, `validateActionObjectBinding`, their finding types, and the rule ids `FLOW_NODE_TYPE_NO_EXECUTOR`, `FLOW_APPROVAL_DECISION_UNROUTED`, `FLOW_HTTP_TIMEOUT_MISSING`, `STATE_MACHINE_NO_INITIAL_STATES`, `ACTION_NO_OBJECT_BINDING`; `@objectstack/metadata-protocol` adds the `ProbeAutomation` and `SeedLandedRows` types; `@objectstack/service-automation` adds `AutomationEngine.getSealedNodeTypeVocabulary()`. `@objectstack/spec` changes only descriptions: those of `RuntimeBuildIssueSchema`, and that of a state machine validation's `initialStates`. +- de395b4: fix(metadata-protocol)!: a seed record that leaves a key field blank is refused at load instead of being inserted again on every load + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: follow-up #35480 — skills/objectstack-data/references/seeds.md (:48 the externalId row, :68 the composite key, :93 `externalId` selection: none says a record must carry every key field or is refused at load) + + <!-- adr-0087: registered seed-key-blank-record-refused --> + + **BREAKING** for a seed record whose `externalId` value is blank. A seed is replayed on every single-tenant boot, every package install or upgrade and every publish, and each replay matches records to the rows earlier loads wrote by the dataset's `externalId`. A record that left a key field blank (no value, `null` or `''`): any component of a composite key such as `['team', 'project']`, or the one field of a single-field key (`name` when the dataset names none), matched no row and was written again by every `ignore` or `upsert` load, with nothing said. Measured over three loads of one such record beside a keyed one: 2, then 3, then 4 rows. An `update` load skipped it, also in silence. + + - FROM: the record was written as a new row on every load (`ignore`, `upsert`) or skipped (`update`); when every record of a dataset keyed empty, the load logged one dataset-level `warn` and still wrote each record again. + - TO: in the keyed modes (`ignore`, `upsert`, `update`) the load refuses the record before anything of it is written: the load result carries one error for it naming the object, the record index, the blank field(s) and the fix, the boot log says it once per dataset at `error`, and every other record and dataset loads. A dry run (`validate`) reports the same error. A dataset whose every record keys empty is the same refusal for each record; the dataset-level `warn` is gone, since it would report the same records twice. + - The fix for an author: give the record a value for the blank key field, or key the dataset on fields every record carries: a field the object declares, a list of fields when no single field names a row, or `'id'` when the records carry their own ids. + + **Not moved.** The check reads the key as authored, after the record's expressions resolve and before any reference resolves. A reference the load defers or cannot resolve yet (a person who has not signed up) is authored, so it is not blank and its row lands and holds one row across loads, as before. A whitespace-only value is a value, as before. Rows earlier loads duplicated are data and stay; remove the extra copies yourself if they matter. A request built without the parse's defaults (no `mode` on the dataset, no `defaultMode` on the config) is not keyed and is unchanged. + + **Also: the duplicate-fallback refusal names the cause that still arises.** When the datasets being seeded mark more than one set of one object `fallback: true`, the refusal and the seed-data page no longer name "an upgrade within this process" as a cause: an upgrade now replaces a package's datasets on the replay list, so the cause left is two packages marking the same object. Wording only; what is refused is unchanged. +- fe3ebc8: fix(metadata-protocol): the save door refuses a seed whose object does not exist, and the publish probe names a missing object instead of asking to publish again + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + + **The save door refuses a seed bound to an unknown object.** `saveMetaItem` (the `PUT /api/v1/meta/seed/:name` door, the MCP draft save and every other caller) now answers `422 INVALID_METADATA` for a `seed` whose `object` no package registers and no stored or code-defined object carries, with one finding at `object` that names the seed, the object and the fix. Before this, such a seed was stored 200; its publish answered `published` while the load wrote nothing. + + - A draft save also accepts an object that is itself only a draft (it is judged at the seed's publish, as before). A live save needs the object published. + - An object of a dependency package, or any object the registry serves, is accepted as before. + - Unchanged: the publish promotion and the restore doors do not refuse such a seed (the load reports it, and a publish keeps going), and a `migrate-stored` re-save is not judged. + + Fix for a refused save: correct `object` to the object's full name (for example `crm_lead`, not `lead`), or create the object first, as a draft for a draft seed or published for a live one. + + **The publish probe names a missing object.** When a published seed's object does not exist, the `seed_not_applied` finding now says so: `message` and `fix` name the missing object, and the person's sentence (`userMessage`, cause `missing`, in every platform locale) tells them to correct the object or create and publish it. A read that fails on an object that does exist still asks to publish again (cause `unreadable`). + + <!-- adr-0087: registered seed-object-unknown-refused --> +- dfc6bbf: feat(spec, metadata-protocol): `Seed.fallback` marks the set an organization gets when its locale matches no set of the object + + Clause-②: yes (widening) — one new optional key, `fallback: true`, on a seed dataset (`SeedSchema`); a seed without it parses and loads exactly as before + Metadata-protocol: added + + An app that splits a seed by language with `locale` (a `zh-CN` and an `en` set of the standard price book) used to leave an organization on any other locale (`ja-JP`, `es-ES`) with neither set. Mark one set `fallback: true` and it also loads for every resolved locale that no locale-scoped set of the same object lists: + + ```ts + defineSeed(PriceBook, { locale: ['zh-CN'], records: [{ name: '标准价格表' }] }); + defineSeed(PriceBook, { locale: ['en', 'en-US'], fallback: true, records: [{ name: 'Standard' }] }); + ``` + + It is honoured wherever a load filters by locale: the boot seed and the dev hot reload (the app's `i18n.defaultLocale`), and the per-organization replay, marketplace install, sample-data reseed and restart heal (the locale `resolveSeedLocaleForLoad` resolves). The loader logs each fallback set it loaded, at info. + + - The marker needs `locale`: `fallback: true` on a dataset with no `locale` is refused when the seed is parsed, because an unscoped dataset already loads for every locale. The published JSON Schema carries the rule as `dependentRequired`. + - A dataset with no `locale` does not count as a match: it loads beside whichever set is chosen. + - `env` is applied first; a set it scoped out neither matches nor falls back. + - At most one fallback set per object in a load: with two different marked sets of one object, only the fallback choice is refused. No marked set fills in for a locale no set lists, and the load reports one error per object (`field: 'fallback'`), logged at warn; every marked set still loads for the locales it lists, as an unmarked set would, and every other object still seeds. Identical copies of one set (a package's datasets merged twice) count once; an upgrade that changed a package's marked set leaves two sets on the replay list until the process restarts. + - A load with no locale (package apply, draft publish, an install no rung resolved a locale for) loads every dataset, the fallback set included, and warns as before. +- 6ffa816: feat(security): an unmanaged install copies an app's capabilities, renamed with the copy + + Clause-②: yes (widening) + Metadata-protocol: added + + An app that gates an action on its own capability can now install as an unmanaged copy (`installModes: ['unmanaged']`). Before, `capability` was code-only (`allowRuntimeCreate: false`), so the validator refused the mode for any app that declared one, and the install door had no channel to write the copy's capabilities. + + - **`capability` is runtime-creatable.** Its `DEFAULT_METADATA_TYPE_REGISTRY` entry is now `allowRuntimeCreate: true`, and overlays stay closed (`supportsOverlay: false`, `allowEnvironmentOverlay: false`). A body is judged by `CapabilityDeclarationSchema`, as before. + - **The save door refuses two names.** + - A platform capability's name (`manage_users`, `setup.access`, every name in `PLATFORM_CAPABILITIES`) answers `422 NAMESPACE_CONFLICT`. An environment item under that name would shadow the platform's definition, because the registry answers its bare slot first. + - A name an installed package's capability holds answers `422 NAMESPACE_CONFLICT`, naming the holder. A capability holds one name per deployment, the same rule permission sets and positions follow. + - **The environment catalog holds capabilities.** `ENVIRONMENT_HELD_SECURITY_CATALOG_TYPES` is `['position', 'permission', 'capability']`. A package that ships a capability name the environment already authored is refused at boot, as a position or permission-set name is. `os migrate security-catalog-overlays`, the remedy that refusal names, lists and deletes such a capability row too (`capability` and `capabilities` spellings). + - **An unmanaged copy renames its capabilities.** When the copy takes a new namespace, a capability whose name starts with the source namespace (`<ns>.` or `<ns>_`) is renamed into the copy's namespace. Every reference is rewritten with it: a permission set's `systemPermissions` (list or per-operation map), an object's or action's `requiredPermissions`, and a quoted `current_user.hasCapability('<name>')` in a predicate. There the object-name rename never touches a name the package declares, so a capability named after a renamed object has one name in the copy; a token the package does not declare follows a renamed object as before. An unprefixed capability keeps its name. A renamed capability that collides with another package's capability refuses the install, naming both. Install again under another namespace. + - **Duplicating a package refuses a shared gate.** `duplicatePackage` keeps its source installed, so a capability it cannot rename (no source prefix, or a copy name the package already declares) is refused, and so is every copied item that grants, requires or tests for it, each at its own name in `failed[]`. + - **The `everyone` anchor excuses only a declaration that carries a package.** The check that refuses a high-privilege permission set bound to `everyone` excuses the tokens an app declared itself. It now counts only declarations bound to a package (`_packageId`), as ADR-0090 D5 rules: an app's shipped capabilities, an unmanaged copy's, and one saved into a writable package. A capability saved with no package excuses nothing. What bounds a saved declaration is the two refusals above: a platform capability is never excused, and a name a package declares cannot be declared again. A name nobody declares can be declared once, by a `manage_metadata` holder, inside a writable package. + - **The gate is unchanged.** It still matches capability names. The copy's action is gated on the copy's capability: a holder of the copy's permission set passes, and a holder of only the source's set does not. +- f44758b: feat(units): `os migrate unit-codes` converts stored unit text into unit codes, from the operator's mapping + + Clause-②: yes + Metadata-protocol: added + + ADR-0158 U7 R1, the backfill door (#35492). It is the twin of `os migrate record-currency-codes`. + + **What it is for.** A field declared a unit code field after its rows were stored still holds free text such as `kg`, `公斤` or `lbs`. Since #35489 the engine checks each unit code it writes, so editing a quantity beside such a value is refused until the row holds a code. This door converts those rows in one run. + + **`backfillUnitCodes`** (`@objectstack/objectql`, also exported: `formatUnitCodeBackfillReport`, `unitCodeBackfillComplete`, `unitCodeMappingOf` and the report types): + + - **Which field.** `field` names the unit code field: the `text` field a quantity's `unitConfig.unitField` names, or a standalone `unitConfig: { unitMode: 'code' }` field. If you name the quantity, the refusal is `INVALID_FIELD` and names the field to use. + - **The mapping.** It is the operator's, never derived. It maps stored text, exactly as written, to a unit code. Matching is exact: `kg ` and `KG` need their own entries. + - **Targets are judged before any row is read**, as the write would judge them. A target that is not a standard UN/ECE Recommendation 20 code or one of the organization's own units, a retired unit, or a unit of another dimension than the field's `unitDimension` is refused `INVALID_FIELD` / 400 on the field. With no organization named, organization codes are judged in each organization the run would write them in, still before any write. + - **Rows already holding a unit code are never rewritten**, so the run is idempotent: a second apply run writes nothing. That includes a unit the organization retired and a code of another dimension. Both are codes, not free text, and rewriting them from a mapping would change what the stored quantity means. Neither is a code the field admits: beside a quantity, the write check refuses each at the row's next quantity edit; a standalone unit field has no quantity, so the next write of the field must carry another code. So they are listed as `retired` and `other-dimension` and counted apart (`skippedRetired`, `skippedOtherDimension`), never as a code the field admits. + - **A blank unit beside a quantity** is written only from an explicit `""` entry; without one it is counted (`blankBesideQuantity`) and named in the report. A blank unit with no quantity is left alone. + - **Complete.** `unitCodeBackfillComplete` answers true only when every row holds a unit code the field admits: no unmatched value, no blank beside a quantity, no retired unit, no code of another dimension, no failed or unexamined row. The report prints its ✓ line only then. + - **Dry run by default.** It lists each distinct stored value with its row count and what the mapping does with it, and writes nothing. With no mapping, the listing shows which spellings to map. + - **Unmatched values.** An apply run that meets a value with no mapping entry is refused `VALIDATION_ERROR` / 400 on `mapping` before any write. The refusal names each value with its row count, and carries them as `unmatched`. + - **Scope.** Scope is `organizationId` or `allOrganizations`, as on the currency backfill. An unscoped run over the rows of several organizations is refused with each organization's counts. + - **Writes.** Each row is written through `engine.update` as a system write, so the unit check judges every converted code. + + **`os migrate unit-codes --object O --field F [--map-file mapping.json] [--org ID | --all-organizations] [--apply] [--yes]`** (`@objectstack/cli`): + + - It has the precedent's confirmation and exit behaviour: `--apply` asks first, and exits 1 under `--json` or with no terminal unless `--yes` is given. + - A mapping file that is not JSON, or a mapping the engine refuses as malformed, is refused before the occupancy probe, the prompt and the boot. + - Any refusal exits 1. Under `--json` it carries the code, the HTTP status, and `unmatched` or `organizations` where those apply. + - It closes with a ✓ only when `unitCodeBackfillComplete` holds. A run that leaves a blank beside a quantity, a retired unit or a code of another dimension closes with a warning naming what is left. + + **`POST /api/v1/meta/_migrate-unit-codes`** (`@objectstack/rest`) is the tenant-admin twin of `_migrate-record-currency-codes`. + + - Its body is `{ object, field, mapping?, apply? }`, and any other key is refused 400. + - It sits behind `metadata.endpoints.maintenance` and requires `setup.write`. It converts the caller's current organization only, and is a preview unless `apply: true`. + - The report is the `data` of the shared envelope. A refusal over unmatched values answers 400 with `error.details.unmatched`. + + **The unit refusals name the door** (`@objectstack/objectql`). The `ERR_UNIT_CODE_REQUIRED` and `ERR_UNIT_CODE_UNKNOWN` refusals of a quantity written beside a stored value the write did not supply now end with the remedy: the `os migrate unit-codes` command for that object and field, or the REST door. The refusal of a blank names the `""` entry. A refusal of a code the caller wrote carries no remedy. + + **A metadata save that makes a stored field a unit code field is a destructive change** (`@objectstack/metadata-protocol`, `@objectstack/spec`). The detector judges the declaration and reads no row. Two findings sit beside `currency_mode_to_record` on the 409 `DESTRUCTIVE_CHANGE`, and `force: true` lifts them: + + - `unit_code_field_declared`, on the code field: a stored field that is a unit code field after the save and was not one before. Any declaration can do it: a quantity, new or stored, whose `unitField` names the field; a `unitField` re-pointed at it; or its own `unitMode: 'code'`. A field that already was a unit code field raises nothing. + - `unit_mode_to_record`, on the quantity: a stored quantity switched to `unitMode: 'record'`, whatever its `unitField`'s history (a unit code field already, or a field new in the same save). It names the blank units beside the quantity and the `""` entry that writes them. It is not raised when the same save raises `unit_code_field_declared` on that `unitField`, since that finding names the quantity, its blanks and the `""` entry, so each debt is reported once. + + Each names the conversion run for that object and code field, CLI and REST. +- eb7ad70: fix(metadata-protocol)!: a seed never stores a roll-up (summary) value; the children compute it, and the load says what it dropped + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + + <!-- adr-0087: registered seed-summary-value-not-stored --> + + **BREAKING** for a seed record that supplies a value for a `summary` (roll-up) field, in any seed: a `defineStack({ data })` dataset, `defineSeed`, a `seed` metadata item, or the seed data a package install loads. Every aggregate (`count`, `sum`, `min`, `max`, `avg`) is treated the same, whether or not the field is declared `readonly`. + + - FROM: the seed loader writes as the system principal, so the supplied value was stored as written. It stayed wherever no child write came after it: a parent seeded with a total and no children kept the total; a re-seed over existing children wrote it over the computed value; and a keep-current (`upsert`) seed replayed on the next boot stored the computed total on the first load and the supplied one on the second. + - TO: the loader takes every such value out of the record before the replay compare and the write, on insert and on update, and writes the rest of the record. A created row starts the column at its empty-child-list value (`0` for `count` and `sum`, empty for `min`, `max` and `avg`), and the seeded child rows compute it. A matched row keeps the value it holds, so a replay whose only difference is the roll-up writes nothing. A parent seeded with a total and no children now reads `0`. + - Reported, not silent: the load logs one warning per dataset naming the object, the fields and how many values it did not write. A dry run (`validate`) logs the same warning. `success` and `errored` do not move, and the load result gains no key. One row counter does: on a replay (`upsert` or `update`), a matched row whose only difference from the seed record was a roll-up value is now counted `skipped`, with nothing written, where it used to be counted `updated`. + + Compatibility note for seed authors: to show a total, seed the child rows it is computed from and leave the summary field out of the parent's seed record. A figure no child rows back is not a roll-up: declare it a `number` or `currency` field. A legacy total that must land as written goes through a historical import (`treatAsHistorical: true`), which is unchanged. Rows an earlier load stored a supplied total on are not rewritten by the loader; the next child write recomputes them. A parent with no child rows gets no such write, and `os migrate summary-nulls` backfills only `NULL` columns, so repair one by hand: insert a child row under it and delete that row again, and the recompute leaves the empty-set value. + + Not changed: the engine (`packages/objectql`), which still keeps a value an `isSystem` write sends (the roll-up recompute, the backfill, a historical import); the import and REST doors; and the runtime's basic-insert fallback seeder, which runs only when the seed loader is unavailable or throws. +- 45ef94e: feat(spec): a base's paired `.custom` package declares an installed object's whole field-group and tab arrangement (`fieldGroups`, `relatedLists` on its object extension) + + Clause-②: yes (widening) + Metadata-protocol: added + + The record page is arranged in three layers. The package that owns an object declares its `fieldGroups` and `relatedLists`; a package that extends it places what it brings with `place`; and now the environment, in the base's paired `.custom` package, may declare the whole arrangement over both: + + ```ts + objectExtensions: [{ + extend: 'crm_lead', + fields: { region__c: { type: 'text', label: 'Region' } }, + // The whole field arrangement: the two groups swapped, `status` moved. + fieldGroups: [ + { key: 'contact', label: 'Contact', fields: ['email', 'phone', 'status'] }, + { key: 'basic', label: 'Basics', fields: ['name', 'company', 'region__c'] }, + ], + // The whole tab list: events before tasks, the notes tab hidden. + relatedLists: ['crm_event', 'crm_task', { list: 'crm_note', hidden: true }], + }], + ``` + + - **Two new keys on an object extension, written only by a `.custom` package.** `fieldGroups` takes the shape an object's `fieldGroups` takes and may list any field the object has, whoever declares it; a group's `relatedList` may place any body table. `relatedLists` takes an object's entry shape (a bare name, the three built-in tab names, or `{ list, label?, columns? }`) plus `hidden`. + - **Each key replaces, whole.** The registry applies it last: the owner's arrangement, then every extension's `place`, then the `.custom` key in place of the result. Nothing is merged entry by entry. A key the extension does not write keeps the owner's arrangement with the placements, so writing only `relatedLists` leaves the field groups as they were. + - **A field the arrangement does not list is not dropped.** It shows after the last group, whichever group its owner or another extension had put it in. A group that lists `fields` shows exactly its list. + - **A tab the arrangement does not name still shows, after the listed ones.** This is the reverse of an object's own `relatedLists`, where leaving a list out hides it. Hiding is written: `{ list: 'crm_note', hidden: true }` hides that list's tab, whichever package brings it. `hidden` is accepted only here; an object's own `relatedLists` refuses it and says where it belongs. A list the owner hides by leaving it out of its own `relatedLists` stays hidden until the arrangement names it. The built-in tabs keep their own rules and are not hidden here. + - **A package that is not a `.custom` package writing either key is refused**, once at each door: saving or publishing the extension, `os validate` and `os build`, and installing the package (`VALIDATION_ERROR`; 400 at save and publish, 422 at install). Each refusal names the key, the object and the package and prescribes `place`. An extension that reaches the registry past those doors is not applied, and the boot log says so. Within one extension, a `place` entry beside the arrangement key that would replace it is refused at parse. + - **Only the object's own pair is served.** The pair is the `.custom` package of the App the object belongs to: for an object a module of an App owns, the App's pair. A `.custom` package an earlier version created for the module itself is still read while it is installed; where both write a key, the App's pair is served. The choice is by role, never by load order. What any other `.custom` package writes under these keys is not refused at the doors; the registry does not apply it, alone or beside the pair, and the boot log names the package and the object. + - **One merge, every reader.** The record page, the forms, the preview and Studio read the served object, so they show one arrangement. Removing a key, or uninstalling or disabling the `.custom` package, serves the owner's arrangement with the placements again. + - **Served reads say what the reader cannot derive.** Where a `.custom` package writes `relatedLists`, the served object carries the read decoration `_relatedListsArrangement` (`{ packageId, hidden, unlisted }`): the lists the environment hides, and whether an unlisted list shows. The record page's tab reader and the default page synthesis read it; with no decoration served they answer exactly as before. A reader's own tab order (kept per user) is still laid over this list, and a tab the environment hides is not offered to them. + - **A group the arrangement brings is a translation anchor.** `os validate`'s translation-reference rule reads an extension's `fieldGroups` too, so a bundle's `_sections` key for a group the `.custom` arrangement declares is not reported as naming nothing. + - **`hidden` on a field is not a display property a `fieldPatches` entry may set.** A hidden field is also left out of the search index and out of a form's required check, so the display whitelist is not widened. To keep a vendor field off the record page and the forms, list it in a group whose `visibleWhen` is false. That is presentation only, not access control: the field stays readable and writable through the API. Do not use it for a `required` field that has no default: the create form no longer shows the field while the save still requires it, so the form cannot be submitted. + + What to check in an app: nothing changes until a `.custom` package writes one of the two keys. A package other than a `.custom` one that wrote `fieldGroups` or `relatedLists` on an extension was refused at parse. It is now refused by the save, publish, install, `os validate` and `os build` doors, with the same prescription. Where none of those doors judges it (for example a code-defined stack that boots without `os validate` or `os build`, or a stack that names no package id), the key is not applied and the boot log names it, where the parse refused it before. +- f66340a: feat: a record-page tab title an object's `relatedLists` entry declares can be translated + + Clause-②: yes (widening) + Metadata-protocol: added + + An object-form `relatedLists` entry (`{ list, label, columns }`) titles its tab and table on the parent's record page, and its `label` wins over the child lookup field's `relatedListTitle`. The field's title had a translation key; the entry's did not, so a declared tab title showed its authored text in every locale. + + A translation bundle now carries it on the parent object, keyed by the entry's literal `list` (a dotted `object.field` is one key): + + ```ts + objects: { + account: { + _relatedLists: { + contact: { label: '联系人' }, + 'event.related_to': { label: '会议' }, + }, + }, + } + ``` + + - `@objectstack/spec`: `ObjectTranslationDataSchema._relatedLists` (a closed leaf with one key, `label`; the un-prefixed `relatedLists` is named as a rename onto `_relatedLists`). `translateObject` overlays it onto the served parent object's entries, so `GET /meta/object` serves the translated title and the console's record page shows it with no change of its own. Only an entry that authors a `label` is translated: an entry without one, a bare name and a built-in tab keep their current title (the child field's `relatedListTitle`, else the child object's plural label). A title a tenant changed keeps its text, as every other translated slot does. + - `@objectstack/lint`: `os i18n extract` scaffolds the key for every labelled entry and the coverage gate counts it; `os validate` reports a `_relatedLists` key that names no labelled entry of that object as `translation-target-unknown`. A labelled entry an object extension brings (a list placement in `place`, or a shown entry of the paired `.custom` package's `relatedLists`) is a labelled entry of the object it extends, so its key resolves; the record page shows a placed tab only where that object declares `relatedLists`. A key over a built-in tab, or over an entry the `.custom` arrangement hides, is reported with its own reason. + - `@objectstack/metadata-protocol`: a save that sends back a translated entry title (a Studio edit of the object read in another language) stores the source title instead, with an `info` advisory, as it already does for field labels. + - `@objectstack/objectql`: the packaged base `getPackagedObjectBase` hands the `/meta` read (the text a served slot is compared with) carries the tabs a code package's `place` adds to the owner's `relatedLists`, as the fold splices them (so only where the owner declares `relatedLists`). A placed title is therefore translated from the deployment's catalog, which carries the placing package's translations, the way a field such a package adds already is; a tenant's rename of that title keeps its text. A `.custom` arrangement's title is the customization layer and reads the pair's own translations. +- 151e812: feat(spec): declare a metadata type's Studio list columns in the spec and serve them on `/meta/types` + + Clause-②: yes (widening: new exported schemas and a new optional `list` on each `/meta/types` entry) + Metadata-protocol: added + Skills-docs: none — no skill under `skills/**` teaches Studio's metadata list columns; `skills/objectstack-ui/SKILL.md` names `entries[].schema` only, which is unchanged + + Which columns Studio's generic list shows for a metadata type is now declared in the spec, beside the type's form, instead of in console code: + + - **Spec.** `MetadataListViewSchema` is a list layout bound to the type's own schema (`data: { provider: 'schema', schemaId }`) with its `columns`; each `MetadataListColumnSchema` names a key of that schema or a dotted path into it, a header, and a cell renderer (`MetadataListCellTypeSchema`: `text`, `badge`, `boolean`, `count`, `list`, `summary`). `defineList({ schemaId, columns })` builds one and refuses an unknown renderer, an empty column list and any `ListColumn` key outside `field` / `label` / `type`. `METADATA_LIST_REGISTRY` (`@objectstack/spec/system`) is the list counterpart of `METADATA_FORM_REGISTRY`; this release declares `hook`, and a type with no entry keeps Studio's default list. A reconciliation test refuses a column naming a key the type's schema does not declare (or declares retired, or as an overlay `_` key) and a header that differs from the form field label of the same path. + - **Serve.** `getMetaTypes()` serves the registry entry as `list` on the type's `/meta/types` row, next to `form`; `GetMetaTypesResponseSchema` declares it. The REST handler translates each header through the type's form field slot, `metadataForms.<type>.fields.<field>.label`, so a column and the form field of the same key read the same words. `resolveMetadataListLabels` (`@objectstack/spec/system`) does the lookup. + - **i18n.** `os i18n extract` emits that slot for every column whose path the type's form does not already label, with the column's header as the English source. Every `hook` header reuses a form label, so no bundle changes here. + - **Console.** Studio's generic list reads the served columns first: the served list, else the console's own `listColumns`, else name / label / description. A served header is shown as served, already in the reader's language. A key the stored row leaves out shows the default the type's JSON Schema declares there, the value the runtime uses. The console can still draw a served column's cell its own way (`listCells`) and append values the server stamps on a row that are not schema keys (`listExtraColumns`). + + New exports: `@objectstack/spec` adds `MetadataListCellTypeSchema`, `MetadataListColumnSchema`, `MetadataListViewSchema`, `defineList` and their types (`ui`), and `METADATA_LIST_REGISTRY`, `MetadataListType` and `resolveMetadataListLabels` (`system`). Nothing that was accepted before is refused, and a client that ignores `list` sees the `/meta/types` it saw before. +- 1cda7ea: feat(metadata): the metadata list answers when each listed item last changed, as `changedAt` beside its items + + Clause-②: yes + Metadata-protocol: added + Skills-docs: none — a read-only field of the list response that no author writes; no skill documents the list envelope's sibling fields (`registrations`, `disabledActions`) + + `GET /api/v1/meta/:type` now answers `changedAt` beside `items` (`GetMetaItemsResponseSchema.changedAt`): for each listed item served from a stored row, the `updated_at` of that row, keyed by the item's `name`, as an ISO-8601 instant in UTC written with `Z`. A list can show a "changed" column without one read per item. + + - Only an item served from a stored row has an entry. A code-shipped or file-loaded item has no recorded change time and no entry: never the read time or the boot time standing in. The field is absent when no listed item is served from a row. + - The time is the row whose content is listed. Of several stored rows in scope for one item (its package's own row, the package-less row, the package's declared override), on the list naming no package and on the list scoped to one, it is the row the list serves, the instant the by-name read serves as `Last-Modified` for it. + - On `?preview=draft`, an item whose pending draft is served (`_draft: true`) has the draft row's time. + - Several listed items of one name (a name two or more packages ship, the members of a bundle) answer the latest of their times. + - The `/meta` list chain (REST and the runtime dispatcher) keys only the names of which it still lists every item: where the per-caller gate withholds an item, or a query filter leaves one out, that name has no entry, so the time of an item the caller is not shown is never served, under its own name or a name another listed item shares. + - The items themselves are unchanged. The execution face and the per-package layer answer no `changedAt`, and the MCP `list_metadata_items` summary is unchanged. +- c063734: fix(metadata): a skill the platform registers keeps its own slot beside an app's skill of the same name + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: none — no skills/ page names `_provenance` or its values, and the new value is one no author writes: the artifact door refuses it + + `MetadataProvenanceSchema` (`@objectstack/spec/kernel`) gains `'platform'`: the `_provenance` of a record the platform's own code registers at boot. It is a store-slot marker only, read at the item's own top-level `_provenance` key and nowhere else, and only the metadata service sets it. + + For every type stored per `(package, name)` (`skill`, `agent`, `tool` and the rest of `PACKAGE_SLOTTED_STORE_TYPES`), the platform's built-in record and a package's item of the same name no longer overwrite each other, in memory, in `sys_metadata`, and on a process or cluster peer that reads them back from the rows. + + - `MetadataManager.register(type, name, data, { origin: 'platform' })` marks a record the platform's own code registers: the body is stamped `_provenance: 'platform'` and the record fills the name's bare slot, in memory and in `sys_metadata`. Before, a package-less write under a name one package held was folded into that package's slot as its customization, so the platform's boot registration rewrote the app's skill. + - A package's first item of a name no longer takes over the bare slot when the platform's record is in it; the two stay side by side. For a bundled type (`email_template`) the row judged is the written member's. The environment's own item in the bare slot is still taken over, as before. + - A package-less environment write under a platform name keeps today's rule: it takes the bare slot without the stamp, and the platform's next registration restores its record. + - The readers that rebuild the store from loaders and rows keep both records: the plural read (`loadMany`, `loadManyKeyed`) gives the platform's entry a key of its own, `list` keeps a loader's platform row beside a package's slot and a loader's package item beside a platform slot, and a read naming a package is never answered from the platform's record. + - `MetadataManager.unregister(type, name, { origin: 'platform' })` withdraws the platform's record only, from the registry, every loader (`MetadataLoaderDeleteOptions.platformOnly`) and every cluster peer. A package's item of the name and the environment's own item are never taken, for any type, and nothing is refused however many packages hold the name. Before, a removal naming no package took every slot of a name one package held. On a host that declares a package id, the boot pass leaves the platform's stored record without the host's package, for every type, so the withdrawal takes the registry's copy too. + - `MetadataManager.getPlatformItem(type, name)` reads the platform's record only, never a package's item and never the environment's own. + - No other write carries the platform stamp. `register` without `origin: 'platform'`, `registerInMemory`, `save` and `rollback` store the body without it, and so do the metadata protocol's save door and its restore doors (`rollbackMetaItem` and the restore limb of `revertCommit`); a stored row the boot pass re-registers keeps it only when the row held it as read. `rollback` whose row is the platform's own record is refused (`409 RESOURCE_CONFLICT`, naming the fix), with nothing written. The metadata protocol's two undo writes, of a refused batch publish's landed promotions and of a failed batch row write, put a row back as the same operation found it, byte for byte, so the mark comes back only where the row held it. A body served from a loader other than a `datasource:` one is served without it; `getPublished` serves it on the answer's top level only when the stored item carries it there, and never inside a publish snapshot; and the artifact door refuses an item that carries it, with or without a manifest id (`VALIDATION_ERROR` at `_provenance`, naming the fix). A `_provenance` key nested in the body (an authored `metadata` record, for one) is the author's data: it is kept as written and never read as the mark. A body that names a package is that package's item, whatever `_provenance` it carries. + - `@objectstack/metadata` exports the mark's one definition (`PLATFORM_PROVENANCE`, `carriesPlatformStamp`, `isPlatformOrigin`, `withoutPlatformOrigin`); the artifact door and the metadata protocol's doors read it. + - `@objectstack/metadata-protocol`: the boot census `metadata_sealed_overlay_unserved` no longer names the platform's own row beside a package that ships the name, nor prescribes deleting it. + - Reads naming no package, and every removal and write without the option, keep their rules. + - Public API added on `MetadataManager`: the `origin` option of `MetadataRegisterOptions` and `MetadataUnregisterOptions`, and `getPlatformItem`. The spec's `MetadataWriteOptions` is not widened. + - `@object-ui/data-objectstack`: the layered read's `provenance` is typed from the spec's `MetadataProvenance`, so it accepts `'platform'`. + + Callers that register built-ins at boot pass `{ origin: 'platform' }` to `register` and `unregister` to get this behaviour; without it, a write is treated as before. + +### Patch Changes + +- 1d28405: feat(objectql)!: every row a sync-in pull writes records where it came from, and nothing else may write those columns + + Clause-②: no (narrowing) + Metadata-protocol: none + Skills-docs: none (no skills/ page names the `_sync_` columns or the synced bucket's injected columns) + + <!-- adr-0087: not-required (no-migration-prescription) No authorable key is added, removed, renamed or re-shaped, and every metadata document that parsed before parses the same. What changes is the registered shape of a `managedBy: 'synced'` object (five platform columns and one index the platform adds) and the answer a data write gets when it names a `_sync_` column: no authored value has to be rewritten, so there is nothing for a migration to prescribe and no tombstone. --> + + ADR-0153 D4, the provenance half (#32062, slice 5). + + - **Five `_sync_` columns on every `managedBy: 'synced'` object.** `resolveInjectedSystemColumns` (`@objectstack/spec/data`) now plans `_sync_source`, `_sync_external_id`, `_sync_pulled_at`, `_sync_run_id` and `_sync_deleted_at` on that bucket only (`plan.sync`), and the registry injects them as hidden, read-only system columns, with an index on (`organization_id`, `_sync_source`, `_sync_external_id`) placed after the tenant index. New exports: `SYNC_PROVENANCE_COLUMNS`, `SYNC_PROVENANCE_PREFIX`, `SyncProvenanceColumn`, `SYNC_PROVENANCE_FIELD_DEFS`. A synced object that declares `systemFields: false` gets none of them. + - **Both pulls stamp them.** A connector pull and a datasource pull write `_sync_source` (the mapping), `_sync_external_id` (the row's `upsertKey` value as text; a key of several fields is a JSON array of the values in `upsertKey` order, such as `["10","A-1"]`), `_sync_pulled_at` and `_sync_run_id` (the `sys_sync_run` row; not written when no run ledger is composed) on every row. `_sync_deleted_at` exists but stays empty until delete marking (D3) lands. A mapping whose `fieldMapping` targets a `_sync_` column is refused with `400 mapping_target_refused` when it runs (it was refused before as an unknown target). A connector pull whose target object's definition cannot be read is now refused the same way before it calls the connector, instead of writing rows it cannot stamp; the datasource pull already refused it. + - **BREAKING: a `_sync_` column in any other write is refused.** The engine refuses an insert or update naming a `_sync_` key with `400 ERR_SYNC_PROVENANCE_WRITE_REFUSED`, before middleware, defaults and hooks run, whatever the caller's context, `isSystem` included. A `_sync_` key a `beforeInsert` or `beforeUpdate` hook assigns, changes or removes is refused the same way before the driver is called, on any write, the pull's own included, so the pull's stamps are stored exactly as it wrote them. Only the pull's own write is admitted (`markSyncPullWrite`, exported from `@objectstack/objectql` with `SYNC_PULL_WRITE`, `SyncProvenanceWriteRefusedError` and `SYNC_PROVENANCE_WRITE_REFUSED_CODE`). The mark is consumed by that write, so a hook or flow it triggers writes as any other system caller and is refused the same way. Fix: leave the `_sync_` columns out of the write and out of your hooks; the next pull of the mapping stamps them. + - Load-time diagnostics leave the injected `_sync_` columns out when they judge a served synced object, so it is not flagged for the reserved prefix; an author field under a `_sync_` name is still refused. +- c6558d0: fix(metadata-protocol): the `object-storage-sync-refused` advisory reads true on every door that raises it + + Clause-②: no + Metadata-protocol: none + + The warning a refused storage sync puts on the answer is raised by the save, publish, rollback and revert doors, but its text spoke of "this save" and told every caller to "publish the object again". It now names no door ("the columns this change added"), and its hint names the remedies that work from each of them: restarting the server, or the next live write of the object, both of which run the storage sync again. The rule id, severity and the quoted driver reason are unchanged. +- 7a3f86c: fix: four refusals say what the author can act on — the clone control by its console label, an empty or short unknown key, and an unknown CLI command + + Clause-②: no + Metadata-protocol: none + + Nothing new is accepted or refused; only the words change. + + - **Packaged permission sets.** The `ITEM_LOCKED` save refusal and the `NOT_OVERRIDABLE` lock refusals sent the admin to a "Clone" action. Studio's Access pillar and Setup label that control "New similar" ("新建类似" in a Chinese session), so the diagnostic and both end-user messages, in every language they ship, now name it that way. + - **Unknown keys.** A refusal naming an empty key printed it as empty backticks; it now says "an empty key (`""`)" and offers no rename. On a key of five characters or fewer, a "Did you mean" rename is offered only when the declared key is one edit away, counting a swap of two adjacent letters as one: `lable` → `label` is still offered, while a removed `aria` is no longer answered with `areas`. + - **CLI.** `os <topic> <unknown>` and `os <unknown>` still exit 2 without running anything, and now name the command as typed (`command environments frobnicate not found`) and end with the help that lists the real ones (`See more help with \`os environments --help\``). +- 22af9e6: fix(metadata-protocol): global search titles a hit by the referenced record's title when the object's `nameField` is a reference field + + Clause-②: no + Metadata-protocol: none + + `searchAll` (the ⌘K palette and global search) titled a hit by the stored value of the object's primary-title pointer. When that pointer is a reference field (`lookup`, `master_detail`, `user` or `tree`), the stored value is the target record's id, so the hit was titled by a raw key while the record page header named the target. The title now follows the reference to the target record's own title (its `nameField`). + + - The target titles are read in one `id $in` read per searched object, never one per hit, selecting `id` and the title column only. + - The read runs as the searching user: the target's object permission, row scope and field-level security apply. A reader refused the target object, the row or its title column keeps the bare id, as `$expand` answers that reader on a field that does not declare `referenceNameVisible`. A target whose declared API exposure does not serve `get` is not read. + - A target read that fails for any other reason fails the search, as a failing record read in the same sweep already does. + - The hit's shape is unchanged: `record` still carries the stored id, and only `title` changes. +- b68f9ae: fix(metadata-protocol): the save, delete, publish, draft, history, diff and rollback doors naming no package write and read the base's row where the read naming no package serves it + + Clause-②: yes (widening) + Metadata-protocol: none + + A bundled item (an email template's locale, for example) that no package ships in code can be stored as a row by a base package and, at the same member, by a package that declares that base. The read naming no package already serves the base's row there. The write doors naming no package now resolve the same address: the save (publish and draft mode), the per-item publish, the delete and the draft discard act on the base's row or draft, and the history, the diff and the rollback read and restore the base's own versions, as the same request naming the base (`?package=` on the REST door, `packageId` in process) does. The base is judged as named: bound to an id no installed package has, the save in either mode is refused `422 WRITABLE_PACKAGE_REQUIRED`. (The per-item publish naming no package still states no package to the runtime authoring gate, as every publish naming no package does.) Before, each was refused `409 RESOURCE_CONFLICT` naming both packages, so an item that opened fine could not be saved. + + The dependent package's row stays where it is and is still read and written at its own `?package=`. Where the base is read-only, the save, the delete, the draft discard and the rollback now answer what naming the base answers (for the save, `422 WRITABLE_PACKAGE_REQUIRED` naming the base) instead of the `409`. After a delete naming no package removes the base's row, the read naming no package serves the dependent's row, and the delete's receipt names it as still stored; a second delete naming no package removes the dependent's row too, and the base's copy comes back only by saving it again. The rollback's receipt now names the package of the row it restored, as the delete's receipt does. + + Unchanged: two packages holding the member with neither declaring the other, a package-less row beside the holders, and a type with no members are still refused `409` naming every holder. +- 2e9e1ac: fix(metadata-protocol)!: the read naming no bundle member addresses the canonical member alone, as `?member=en-US` and `/published` do + + Clause-②: no (narrowing) + Metadata-protocol: none + Skills-docs: none — no page under `skills/**` or `content/docs/**` teaches the read naming no member of a bundle that has no canonical member; `content/docs/references` prints the selector sentence this change now follows, and the ADR-0146 paragraph of `skills/objectstack-platform/SKILL.md` names members only at a base or a package address. No taught sentence moves. + + <!-- adr-0087: registered bundle-without-canonical-member-bare-read-absent --> + + **BREAKING**: where the address holds no canonical member of a bundled name, the read naming no member (`GET /meta/TYPE/NAME`, with or without `?package=`), `/layers` naming none and the execution read naming none move from serving another member (200) to `404 RESOURCE_NOT_FOUND` (the execution read: `null`). Name the member (`?member=fr-FR`) to read it, as before. + + The by-name doors' member selector reads a request naming no member as the canonical one (`en-US` for `email_template`), and naming the canonical value is the same request. That is the selector's declared contract (`GetMetaItemRequest.member`). For a bundle with no canonical member, the two requests got different answers: + + - The plain read `GET /api/v1/meta/email_template/NAME` and `/layers` served the bundle's other member (for example `fr-FR`, status 200). The execution read (`getMetaItemForExecution`) returned that member too. + - `?member=en-US` and `/published` answered 404. + + The same split held in two more arrangements: + + - A base ships only `fr-FR` and a dependent that declares it stores `en-US`. The read naming no package and no member served the base's `fr-FR`. + - `?package=X` where X ships no `en-US` while another package does (a dependent, or a disabled holder that the read naming no package re-addresses past to X). The read naming no member served X's `fr-FR`. `?package=X&member=en-US` answered nothing. + + For a bundle that only stores a non-canonical row (a package-less `fr-FR` row with no `en-US` row), the plain read also changed across a restart. It answered 404 before the restart. After the restart it served the row (200), because the restart had moved the row into the registry's bare slot. + + The plain read, `/layers` and the execution read now ask every layer for the canonical member when no member is named. They take the registry's bare-name answer only when it is that member. The base-address fallback serves only the base's canonical member, and an exact address (`?package=`) replaces another package's item only with the holder's item at the addressed member. So each of these arrangements answers 404 on every door naming no member, the same as `?member=en-US` and `/published`, before and after a restart. + + A bundle that ships or stores its canonical member keeps its status and served body, and so does any named member. Three more answers move: + + - `/layers` naming no member, where the canonical member is stored over a package that ships only another member: `code` goes from that member's body to `null`, as `/layers?member=en-US` already answered. Status and `effective` do not move. + - For a type with no members, `/layers?package=X`, where X holds nothing of the name and the only holder is disabled: `code` goes from the disabled holder's artifact to `null`. A disabled package holds no name. + - `?package=X` naming no member, where X does not hold the name and the environment stores it only in a non-canonical member: the read was refused `409 RESOURCE_CONFLICT` (`not-held-by-qualifier`, naming the environment) once a restart had hydrated the row. It now answers the `404` that `?member=en-US` already answered, on the plain read and `/layers`. A non-canonical member is still read with its own selector, for example `?member=fr-FR`, which the Studio list already links to for each member. + + **Reverses two statements of the 18.6.0 note** for the arrangement where base A ships `email_template` `welcome` in `fr-FR` only and dependent D, which declares A, stores `en-US`: + + - 18.6.0 said "`GET /meta/email_template/welcome/layers` (no member) moves FROM `404` after a restart TO A's `fr-FR` (200)". Now `/layers` naming no member answers `404 RESOURCE_NOT_FOUND` on both sides of a restart, as `/layers?member=en-US` does. + - 18.6.0 said "**Not moved.** The plain read, `?member=CANONICAL` and the execution read of the first shape (A's `fr-FR` naming no member, 404 at `en-US`)." Now only `?member=CANONICAL` is unmoved. The plain read naming no member answers 404 and the execution read naming no member answers `null`, where both served A's `fr-FR`. + + Migration: a caller that read a bundle with no canonical member without naming a member must name the member it wants (`?member=fr-FR`). The email template loader reads the list (`getMetaItemsForExecution`) and does not use this read, so it is not affected. +- 2d33205: feat(metadata-protocol): the draft publish verdict is a public protocol method, and it reads the stored draft itself + + Clause-②: yes (widening) + Metadata-protocol: none + + `ObjectStackProtocolImplementation.draftPublishJudgement` is now public. It answers what publishing a stored draft would say, without publishing it: `refusals`, the issues the publish would refuse the draft on, and `advisories`, the findings a publish that passes still returns. Each issue keeps every member the publish's `422 INVALID_METADATA` carries: `rule`, `path`, `where`, `message`, `hint` (the next step) and `severity`. The draft read's `_diagnostics` folds the same verdict but drops the `hint`. + + A caller that holds no stored row may omit `body`: the method then reads the stored draft at `type`, `name` and `packageId` (`null` for the draft bound to no package), and `member` for a bundled type, and judges the bytes as stored. An address that holds no draft is refused `404 NO_DRAFT`, as the strict draft read refuses it. It runs the same judgement the draft read and the publish gate run; nothing about either changes. + + A caller that judges several drafts in one pass may hand one `packageClosures` map (an empty `Map`) to every call of the pass. The package's other drafts, which a package publish judges each draft against, are then collected once per package instead of once per call. The answers are the same; without the map, each call collects them as before. +- 35c6331: fix(seed): a seed row that landed while a reference in its key was still empty stays deleted once a person deletes it + + Clause-②: no + Metadata-protocol: none + + A seed dataset whose `externalId` includes a reference can land a row before that reference resolves, for example a task assigned to a person who has not signed up yet. With the record of landed seed rows kept (`landedKeys: 'honour'`), such a row was recorded under no key, because its key had an empty part when it landed. A person who deleted the row got it back on the next seed load. + + The row is now recorded under the id it lands with, which is derived from the key as the seed authored it. The next load finds that record whether the reference is still empty or has resolved since, so the deleted row is not inserted again. A row the seed never landed in the organization still lands, and a deliberate re-seed still brings deleted rows back. +- 1caee8c: feat(mcp): "each X with its latest Y" in one `query_records` call — `latestPer` + + Clause-②: yes (widening): a new read form on the published MCP tool surface. Judged from the card content; the build confirms it + Metadata-protocol: none + + `query_records` takes `latestPer: { by, orderBy }`: one row per group, the group's first row in the given order. `by` names 1 to 3 fields, `orderBy` 1 to 3 keys (`asc` / `desc`); a tie goes to the record id in the direction of the last key, and an empty order value ranks last. "Each account with its latest deal" is `{ objectName: 'crm_opportunity', latestPer: { by: ['account'], orderBy: [{ field: 'close_date', order: 'desc' }] } }`. + + - The row is chosen among the rows the caller may read and the `where` admits: a group whose newest row is hidden from the caller answers its newest readable row, never the hidden one and never nothing. The organization wall holds inside the choice. Field masking still applies to the returned rows. + - A partition or order field the caller may not read is refused as it is in `orderBy`; a computed, JSON or multi-value field, or a dotted path, is refused as a partition or order field. + - `limit` counts groups, capped at the tool's `maxLimit` like any list. The answer is `{ object, records, hasMore }` and never a `total`; when more groups exist than came back it carries `truncated: true`. + - Served by the SQL driver (Postgres, MySQL, SQLite) and by `driver-sqlite-wasm` and the Turso driver on a local or embedded-replica database: the driver compiles a `ROW_NUMBER()` window over the read's own scoped selection. Every other driver (in-memory, Turso's remote connection, MongoDB), an object with an `afterFind` hook and an object with object-scoped read middleware refuse with `INVALID_QUERY` / 400 before anything is read. The Turso driver's remote face refuses the directive itself too. + - New exports: `LATEST_PER`, `LATEST_PER_MAX_KEYS` and the `LatestPerRequest` / `LatestPerOrder` / `LatestPerOutcome` types from `@objectstack/objectql`; `LATEST_PER_DIRECTIVE`, `latestPerDirectiveOf` and the `LatestPerDirective` / `LatestPerDirectiveOrder` types from `@objectstack/driver-sql`; `McpLatestPer` from `@objectstack/mcp`. The request rides an in-process read option, never a wire or query key; `@objectstack/spec` is unchanged. + + Without `latestPer`, `query_records` and every read are unchanged. +- cdb327f: feat(metadata-protocol): a refused field removal or type change names the views, forms and dashboard cards that still show the field + + Clause-②: yes (widening: the DESTRUCTIVE_CHANGE answer gains stillShownBy; a new exported operator-fit table) + Metadata-protocol: added + Skills-docs: none — no skill in `skills/**` teaches the `409 DESTRUCTIVE_CHANGE` save refusal or its `issues[]`. The finding's own message now names the items, so a client relaying it says them without being taught. + + The `409 DESTRUCTIVE_CHANGE` refusal of an `object` save said what data the change loses. It now also says what breaks on screen. Each `field_removed` finding carries `stillShownBy`: the views, forms, datasets, dashboards, pages, flows, reports and objects that still reference the field, at the positions that name it, as the served listing presents each item (`config.columns[1]` on a view item, `columns[1]` on a flattened list overlay, `widgets[3]` through a dataset). Each `field_type_change` finding carries the view filter rules whose operator the new type no longer fits, for example a `contains` filter on a field changed to `number`: a view item's `config.filter`, a flattened overlay's `filter`, and the `userFilters.tabs[].filter` of either. The finding's message names the first five items and counts the rest, so a door that relays only the message says it too. The save edits none of them. + + - The answer rides the refusal's `issues[]`, which every door already relays verbatim: the REST `PUT /api/v1/meta/...` doors (`issues`), the runtime dispatcher (`details.issues`) and the MCP draft door (`error.issues`). No door changed. + - It is computed from the environment's served metadata, one listing per type, only when a finding needs it. No record and no draft is read. When it cannot be computed (a listing cannot be read, a judge throws or cannot be loaded) `stillShownBy` is absent ("not computed"), and the refusal still stands; `[]` means "computed, shown nowhere". + - A removal is judged by the checks `os validate` runs (`@objectstack/lint`'s reference-integrity suite, form-layout check and widget-binding check), with the field and without it. A position those checks do not read is not seen. The spec describe on `DestructiveChangeIssueSchema.stillShownBy` states exactly what is and is not seen. + - `@objectstack/spec/data` exports `filterOperatorFieldTypeFit(operator, field)` and its table `FILTER_OPERATOR_FIELD_TYPE_FIT`: the one place that judges which filter operator fits which field type. An operator is unfit only where a declared-type door refuses it. Today that is the text-operator door (a text operator over a type that can never store a string, `INVALID_FILTER` 400), referenced rather than re-listed. `dollarFilterOperatorOf(op)` lowers a view, alias or infix operator spelling to its `$` form; a `$` spelling is returned as written, and an unknown spelling answers `undefined`. + - `@objectstack/spec/api` declares the answer's shape: `DestructiveChangeIssueSchema` and `FieldStillShownBySchema`. +- ee40658: fix(metadata-protocol)!: global search leaves out the objects of a disabled package, the answer every data route already gives + + Clause-②: yes (narrowing: global search stops returning a disabled package's records, the answer every data route already gives) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed or renamed, and nothing stored is rewritten: the moved answer is which objects GET /api/v1/search sweeps once a package is disabled. A caller that needs those records re-enables the package. --> + + **BREAKING** for a caller of `GET /api/v1/search` (and of `searchAll` in process) on an environment that disables a package. A disable takes the package's records off the data plane: `GET /api/v1/data/:object` and the by-id read answer `404 OBJECT_PACKAGE_DISABLED`. Global search did not ask that question, so the same records, with their titles and matched text, still came back as hits. The sweep now asks the registry's `isObjectPackageDisabled`, the predicate the data routes ask, and passes over such an object: it is never queried, never named and never counted in `totalObjects`. An explicit `?objects=` naming it answers as one naming no object at all; search is a sweep, not a by-name read, so there is no 404 there. + + An enabled object whose title is a reference to an object of a disabled package keeps the bare id as its hit title, the answer a searcher who may not read the target already gets: the title is the disabled record's data. + + The fix: re-enable the package to have its records searched again. An environment with no disabled package sees no change. Published pages were already filtered, since the page sweep reads through the `/meta/page` list, which omits a disabled package's items. +- 8925d5b: fix(metadata-protocol): a seed resolves a lookup that another package adds through `objectExtensions` to the target's id + + Clause-②: no + Metadata-protocol: none + + A package can add a lookup to another package's object through `objectExtensions`. A seed that set that lookup by the target's natural key (`externalId`) used to store the raw key in the foreign-key column on a boot that loads a compiled artifact (`os dev`, `os serve`, the cloud runtime). The record then linked to nothing, and the console showed "Restricted record". The same seed resolved correctly under the in-process test harness. + + The cause was the seed loader's object read. It took the metadata service's copy of the object, which on an artifact boot is the object as its own package wrote it, without the fields an extension adds. Now the loader reads the object as the engine serves it, with its extensions included. It falls back to the metadata service's copy only when the engine has no schema for the object. So a lookup an extension adds is treated exactly like one the owner wrote, in every mode (`upsert`, `ignore`, `update`): + + - it adds a dependency, so the target dataset loads first; + - its natural key is resolved to the target's id; + - it waits for the second pass when the target loads later in the same load; + - an unknown key is refused with the same error. + + The same read now drives the loader's other per-field decisions for such a field: the required-on-insert check, the tenant column, the replay compare and the undeclared-column warning. + + Rows an earlier load stored with the raw key are not rewritten. Run the seed again (in `update` or `upsert` mode) to store the target's id in place of the key. +- 78fd762: Clause-②: yes — widening: the draft verdict gains an advisory for a draft flow whose `connector_action` names a connector or action the runtime cannot dispatch; advisory only, never a refusal (the probe "never fails the publish"), so no save or publish accepted today is refused. Seat runs a contract read before ready. + Metadata-protocol: none + + fix(metadata-protocol): a flow draft's verdict says when a connector step cannot dispatch + + The publish's build probe `flow_connector_action_unresolved` warns, after a flow is published, that a `connector_action` step names a connector or action this environment cannot dispatch, so every run that reaches the step fails. The draft verdict (`draftPublishJudgement`, read by Studio's draft review and by the MCP draft tools' `verdict.advisories`) now says the same thing before Publish is pressed: one advisory per such step, rule `flow_connector_action_unresolved`, `severity: 'warning'`, located at the step (`flows[0].nodes[N].connectorConfig`, which the draft read serves as `nodes.N.connectorConfig`), with the probe's own `message`, its `fix` as the `hint`, and its user sentence in the read's language. + + It is never a refusal: a draft with such a step still saves, reads valid, and publishes, as before. The publish gate's own answer is unchanged, and the build probe reports exactly what it reported before; both doors now ask one shared lookup (`unresolvedConnectorSteps`). A host without an automation service, or one without the connector lookups, judges nothing, as the probe does. +- a35187e: fix(metadata-protocol): the `seed_reference_unresolved` build probe names a repair a republish actually reaches, and judges each object once + + Clause-②: no + Metadata-protocol: none + + The probe told the author to correct the seed and republish under every seed mode. Under the default `mode: 'ignore'` a republish leaves a row it finds again as it is, so that repair changed nothing, and the next receipt came back clean because a matched row is not judged under `ignore`. The finding's `fix` and its `userMessage` (every platform locale) now name the repair for the mode: correct the seed when every seed of the object writes the column back on a replay (`upsert` or `update`, the column carried by every record, not `applyOn: 'create'`); when only some seeds of the object write it back, correct it in every seed and also on the stored rows (or delete them and republish), since the receipt cannot tell which seed landed which row; otherwise correct, clear or delete the stored rows, or declare `mode: 'upsert'` where that alone makes the replay write the column. Every repair but the seed's says the next receipt reads clean until it is done. The sentence takes a new `cause` (`seed`, `mixed`, `mode`, `stored`). + + `seedApplied.landed` is one entry per object for every seed of it, so the probe now judges per object: one finding per object and reference column, however many seeds the object has. Rows the publish created are always judged; a row a seed key matched is judged only when every published seed of the object declares `upsert` or `update`, and only in a column every one of those seeds writes back onto a matched row. Before, two seeds of one object reported the same value twice, and a row only an `ignore` seed matched was judged under the other seed's mode. + + `rollup_never_computed` says "of one organization" only when the pass was split by organization, and its sentence no longer claims "every" parent: the verdict is over the sampled parents. +- 07b1754: fix(metadata-protocol): a record-share hit in the ⌘K palette and global search is titled by the recipient, not by the raw recipient id + + Clause-②: no + Metadata-protocol: none + + `sys_record_share` is titled by `recipient_id`, a text column holding a principal id whose kind `recipient_type` names. Search followed only a reference-typed title pointer to its target's title, so every record-share hit read as a bare user id. + + `searchAll` now reads the declaration the console's recipient face reads, a text title pointer with `widget: 'recipient-picker'` and `dependsOn: ['recipient_type']`, and titles the hit by the directory record its kind names: a `user` recipient by its `sys_user` title, a `team` by `sys_team`, a `business_unit` or `unit_and_subordinates` recipient by its `sys_business_unit` title. Each directory is read once per swept object, as the searcher, under the same gates as a reference title: a reader refused the directory object, the row or its title column keeps the bare id, and a directory read that fails fails the search. A `group` or `position` recipient keeps its stored value, as it does in the console. The hit's wire shape is unchanged: `record` still carries the stored id. +- 819c067: fix(metadata-protocol)!: `$expand` and a relation condition stop serving a disabled package's object through an enabled object's lookup, the answer its own data route already gives + + Clause-②: no (narrowing: `$expand` withholds a disabled package's object and a relation condition on one is refused, the answer its own data route already gives) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed or renamed, and nothing stored is rewritten: the moved answer is what the data routes serve of a disabled package's object reached through another object's lookup. A caller that needs those records re-enables the package. --> + + **BREAKING** for a caller of the data routes on an environment that disables a package. A disable takes the package's records off the data plane: `GET /api/v1/data/:object` answers `404 OBJECT_PACKAGE_DISABLED`. An enabled object's lookup into that package's object still served it: `$expand` (list, by-id `expand`, and the POST relation map) returned the disabled record's full row, and a nested-relation condition (`{ "lookup": { "field": VALUE } }`) answered yes/no on its fields. + + - `$expand`: an entry whose target belongs to a disabled package is withheld, exactly as an entry whose target is not exposed (`apiEnabled: false`) already is. The lookup keeps its stored id; nothing of the target is read or named. Reference-name titles ride the same expansion and are withheld with it. + - A nested-relation condition on such a target is refused with the data route's own envelope, `404 OBJECT_PACKAGE_DISABLED`, naming the object and the query position, before the query runs. + + The fix: re-enable the package to have its records expanded and filtered on again. An environment with no disabled package sees no change. +- fcbebf2: fix(runtime)!: `callData`'s aggregate arm and no-protocol query fallback refuse a relation condition on a disabled package's object, the answer the data route already gives + + Clause-②: yes (narrowing: adds the root export `objectPackageDisabledError` to `@objectstack/metadata-protocol`; for a non-system caller, `callData`'s `aggregate` arm and its `query` fallback on a host with no protocol service refuse a nested-relation condition whose target belongs to a disabled package with 404 `OBJECT_PACKAGE_DISABLED`, where they answered the count or the matching rows) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed or renamed, and nothing stored is rewritten: the moved answer is what the data route already answers for a relation condition on a disabled package's object. A caller that needs those records re-enables the package. --> + + **BREAKING** for a non-system caller of `callData` on an environment that disables a package: the `/mcp` HTTP bridge's `aggregate_records` tool, and any host door that hands a caller's `where` to this function. A disable takes the package's records off the data plane: the data route answers its objects `404 OBJECT_PACKAGE_DISABLED`, and it refuses a nested-relation condition (`{ "lookup": { "field": VALUE } }`) on such an object the same way. `callData`'s `aggregate` arm never reaches the protocol, and on a host that registers no protocol service neither does its `query` fallback, so both still lowered the condition through the engine: a count came back 1 for the stored value and 0 for any other, a yes/no answer on a field of an object nobody may read. + + - FROM: the condition was evaluated and the count (or the matching rows) returned. + - TO: a condition directly beneath a lookup of the queried object is refused `404 OBJECT_PACKAGE_DISABLED`, naming the disabled object as `object` and the condition's position as `param` (for example `where.b_ref`), before the engine reads anything. The error is the data route's own. + + The fix: re-enable the package to filter on its records again, or filter on the lookup's stored id. An environment with no disabled package sees no change. A system context handed to `callData` is not changed by this entry: it is still answered the count. (A hook's `ctx.api` is not such a caller: it reaches the engine directly and never passes through `callData`.) + + `@objectstack/metadata-protocol` now exports `objectPackageDisabledError`, the one constructor of that refusal, so the runtime raises the same error instead of a copy. No behaviour of that package changes. +- 986a0f2: fix(metadata-protocol): the per-item publish of an `object_extension` draft asks the record-currency follow door its published save asks + + Clause-②: no + Metadata-protocol: none + + `POST /api/v1/meta/object_extension/NAME/publish` (`publishMetaItem`) now asks the registry's record-currency follow door before it promotes an `object_extension` draft, with the same question the published save of that body asks (`PUT /api/v1/meta/object_extension/NAME`): the extension judged as its object will be served, in the slot of the package it is published into. A draft that adds a record-mode amount whose `currencyField` the served object cannot satisfy is refused `422 INVALID_METADATA` with the registry's sentence, the same one the published save answers, and the draft stays a draft. Two shapes reach it: a pointer naming no field of the object (`currencyField: 'zz_missing'`), and a `master_detail`-led pointer to a parent field that is missing or holds no ISO 4217 code (`invoice.title`). + + Before, the publish answered `published`, promoted the draft and registered the amount. Every later write of it was then refused (`ERR_CURRENCY_CODE_REQUIRED`), or, for a pointer to a parent field holding no code, was stored with a value nobody declared as its currency. Nothing an author can save changes: the published save already refused these bodies, and a package publish (`publishPackageDrafts`) already refused them too. To publish such a draft, point `currencyField` at a field that holds the record's ISO 4217 code: a sibling text field declaring `valueDomain: 'iso_4217_currency'`, or `MASTER_DETAIL.CODE_FIELD` on the parent. +- c6b07c2: fix(metadata-protocol): an unchanged owner object re-save is not refused over a column an extension adds + + Clause-②: no + Metadata-protocol: none + + Re-saving an object's own body unchanged (`PUT /api/v1/meta/object/NAME`, without `force`) while an enabled `object_extension` adds a stored column to it answered `409 DESTRUCTIVE_CHANGE`, naming the extension's column as one the save would drop. The destructive-change check compared the incoming body, which is the owner's layer alone, with the object as it is served, which carries every enabled extension's fields. On the dispatcher's `PUT /meta`, which takes no `force`, such an owner could not be saved at all while the extension was installed. + + The check now folds the enabled extensions onto the incoming body before the diff, so it compares the object served before the save with the one served after it. A column an enabled extension still contributes keeps its data and is not reported. A column only the owner declares is still refused `409 DESTRUCTIVE_CHANGE` when the body drops it. The stored body is unchanged: it is still the owner's own layer, without the extension's fields. +- 886ba45: fix(metadata-protocol): cloning a record whose file fields are set answers 201 + + Clause-②: no + Metadata-protocol: none + + `POST /data/:object/:id/clone` with no `overrides` answered `400 VALIDATION_FAILED` ("… has an invalid file value: … expected string, received object") for any record holding a file in a `file`, `image`, `avatar`, `video` or `audio` field, single or `multiple`. The clone read the source the way the caller reads it, with each file expanded to its `{ id, name, size, mimeType, url }` object, and inserted that object back; the insert takes a file field's stored value, the `sys_file` id, only. + + The clone now reads the source's file fields in their stored form (the bare id, or the list of ids for a `multiple` field). Each one then follows the same rule a clone naming the id in `overrides` already followed: the file's bytes are copied into a new `sys_file` that the clone's field owns, and the source record keeps its own file. A file field named in `overrides` still takes the override. Because a clone with no body now reaches that same copy step, it also gets that path's answer when a source file's `sys_file` row exists but its stored bytes are missing: `500 FileReferenceCopyError`, the error the `overrides` path already returned in that case. +- fa30414: fix(metadata-protocol)!: an unmanaged install renamed into a `targetNamespace` refuses a package that declares no namespace when its object names all share a prefix other than the derived one, instead of copying them under a second prefix + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is the answer the unmanaged install gives one request: a package body with no `namespace`, renamed into a `targetNamespace`, whose object names all begin with one first word that is not the namespace derived from its id. No stored row, registry key or authored value changes, so there is nothing for a migration to rewrite and no tombstone. --> + + **BREAKING** for a caller of the unmanaged install (`importUnmanagedPackage`, and `POST /api/v1/marketplace/install-local` with `installMode: 'unmanaged'`) that sends a `targetNamespace` with a package body that declares no `namespace`. + + Such a body's namespace is derived from its id (`ai.objectstack.gallery.asset-lifecycle-b` derives `asset_lifecycle_b`), and the rename trusted it: an object named `demoasset_asset`, which carries its real prefix, was copied into `trialdemoasset` as `trialdemoasset_demoasset_asset`, while its view `demoasset_asset_all` kept its name, so one copy held three spellings and nothing said why. Now, when such a body has two or more objects, none carries the derived prefix, and every object name begins with the same first word (`demoasset_`), the copy is refused before the base exists: `400 INVALID_REQUEST`, with one rename-refusal `details.refused` entry per object naming the derived namespace, the common prefix and the missing `namespace` key. Nothing is installed. Two objects sharing a short first word (`purchase_order`, `purchase_item`) are refused the same way, and declaring `namespace` clears it. + + A body that declares `namespace` is renamed exactly as before, whatever its names look like. In a namespace-less body, every other case keeps the rename: a single object, objects with no common first word (`purchase_order` beside `asset_owner`), or any object carrying the derived prefix each take the target prefix in front of a name that lacks it (`purchase_order` copies as `trialdemoasset_purchase_order`). Without a `targetNamespace` nothing changes: the save door's prefix rule already refuses those names (`422 NAMESPACE_PREFIX`). + + The fix is in the package: declare `namespace` on it, the prefix its object names carry, then install again. +- 7c9b22b: fix(core)!: Change Owner refuses an object of a disabled package with the data door's `404 OBJECT_PACKAGE_DISABLED` + + Clause-②: yes (narrowing) — `@objectstack/core` gains the root export `objectPackageDisabledError`, and all three Change Owner doors newly answer `404 OBJECT_PACKAGE_DISABLED` for an object of a disabled package, which they answered `200` before + Metadata-protocol: none + Skills-docs: none — no page under `skills/` teaches Change Owner; the refusal carries the data door's own sentence, which names the fix + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no stored row, registry key or authored value changes. What moves is the answer the three Change Owner doors give for an object whose owning package is disabled, an answer that returns to what it was the moment the package is re-enabled; there is nothing for a migration to rewrite and no tombstone. --> + + **BREAKING** for a caller that changes owners on a disabled package's object. + + - FROM: `POST /api/v1/data/:object/:id/change-owner` and `POST /api/v1/data/:object/change-owner` answered `200` for an object of a disabled package: the owner changed (and, when a cascade was named, its child rows), and when asked the notification was sent; `GET /api/v1/data/:object/change-owner/cascades` answered `200` with the object's cascade candidates. + - TO: all three doors answer `404 OBJECT_PACKAGE_DISABLED`, naming the object, in the data door's words; nothing is read, written or sent. The fix for a caller: re-enable the package. + + `POST /api/v1/data/:object/:id/change-owner` and `POST /api/v1/data/:object/change-owner` changed owners (and cascaded child rows), and sent owner-change notifications, on records of an object whose owning package was disabled, although every `/data` write refuses such an object. `changeRecordOwner` and `changeRecordsOwner` now ask the engine registry's `isObjectPackageDisabled` before the object's Change Owner switch is read, and refuse the whole call with the data door's own envelope (`code: 'OBJECT_PACKAGE_DISABLED'`, `status: 404`, the object name on `object`) before any user lookup, write or notification. Re-enabling the package restores the action; nothing is cached. `GET /api/v1/data/:object/change-owner/cascades` asks the same predicate in the same order (after the object resolves, before the switch), so the dialog lists nothing for such an object. + + The refusal's constructor, `objectPackageDisabledError`, now lives in `@objectstack/core` and is exported from it; `@objectstack/metadata-protocol` re-exports the same function under the same name, so its importers are unchanged and the code, status and sentence stay one. The error-code ledger (`@objectstack/spec`) records `OBJECT_PACKAGE_DISABLED` under `@objectstack/core` as a provenance row; the code itself, its status and its wire shape are unchanged. +- 70d07fd: feat: an object arranges its actions per scope (`actionLayout`: pinned buttons and the 「More」 order), and the design mode sets it + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: follow-up #36630 + + A page header draws at most three of its actions as buttons and puts the rest in its 「More」 menu. An object now arranges them itself with the new optional key `actionLayout` on `ObjectSchema` and `ObjectExtensionSchema`: `{ list?: Arm, record?: Arm }`, where `Arm = { pinned: string[], more?: string[] }`. `pinned` names the buttons in the order drawn, at most three (`[]` pins none); `more` orders the 「More」 menu; an action the scope places that neither part names goes to the end of 「More」 in its default order. A pinned action that is hidden leaves its button out, and no other action takes its place. + + - `list` arranges the actions placed at `list_toolbar` and the list page's built-ins `$import` and `$export`. A built-in is only ever pinned: one named in `more` is refused with its reason, since not pinned the list page draws it in its own Import / Export menu. + - `record` arranges the actions placed at `record_header` or `record_more`. It is a scope, not a page: the record page header, the side preview and a phone's bottom action bar all read it. A `page:header` that authors its own `actions` list keeps that list. + - An arm left out (or the key left out) draws that scope exactly as before. + + What each package gains: + + - `@objectstack/spec`: the key and its shape refusals at every door (more than three pinned, a name given twice in one part or in both, a malformed name, a built-in the scope does not have, a built-in in `more`, since a built-in is only ever pinned), each with its reason. New exports `OBJECT_ACTION_LAYOUT_PINNED_LIMIT`, `OBJECT_ACTION_LAYOUT_SCOPES`, `OBJECT_ACTION_LAYOUT_BUILTINS` and the types `ObjectActionLayoutScope`, `ObjectActionLayout`, `ObjectActionLayoutArm`. The object form offers it under Advanced, one JSON row per arm. + - `@objectstack/objectql`: `actionLayout` joins `fieldGroups` and `relatedLists` as a key only the base's paired `.custom` package writes on an `object_extension` (ADR-0146 D10). It is applied last, after every other layer, arm by arm: each arm it writes replaces the served arm for that scope whole, and an arm it leaves out stays. A manifest's `objectExtensions` entry now carries the key to the fold. + - `@objectstack/metadata-protocol`: the one judge refuses `actionLayout` from any other package, naming the action's own `locations` and `order` as the way to place an action the package brings. Each door says it its own way: publish, restore and draft promotion of an `object_extension` answer `VALIDATION_ERROR` / 400; marketplace install refuses the package body with `VALIDATION_ERROR` / 422; `os validate` and `os build` exit non-zero and print the row; the registry fold skips the key and leaves a note. + - `@objectstack/lint`: `validateObjectActionLayout` (`object-action-layout-unknown`, `object-action-layout-not-placed`, at `error`) refuses in `os validate`, `os build` and `os lint` a name, in either part, that is no action of the object or is not placed in the scope its arm arranges. + - `@object-ui/types`: `arrangedHeaderActions(actions, arm, scope)`, the one reader both record headers and the list header apply, and `readActionLayoutArm`. + - The console: both record headers (the default page's and an authored `page:header` with `placedActions: true`) and the list header draw the arrangement. In the design mode, 「Header buttons」 at the end of the page header lists the scope's actions under 「Pinned to header」 and 「Other」 (the 「More」 menu), each dragged into order; a dot moves an action between them, a fourth pin is refused with a toast, the header shows the change at once, and 「Save」 writes only the arms that changed: into the object's own package when it is writable, else into the installed object's customization package as an `object_extension`, through the one writer of an installed object's arrangement (`saveObjectExtensionArrangement`, whose patch type now takes the object-shaped `actionLayout`), which refuses a customization package the server does not list writable. A name the scope no longer offers is listed in the panel as left out. A name the header cannot draw is refused at save with its reason. New `@object-ui/i18n` keys under `designMode.pins`. +- 08f4bad: fix(metadata-protocol): a tab a code package places, or a field it adds, is saved in its source text from a translated read + + Clause-②: no + Metadata-protocol: none + + The `/meta` read of an object serves a related-list tab that another installed code package places into the object's `relatedLists` (its `place`), and a field such a package adds, translated for the caller's language. When the object has a stored customization row saved before that package was installed, the row carries no copy of either. A save of that translated read in a language other than the source (the whole body sent back through `PUT /meta/object/NAME`) then had nothing to compare them with, so the translation was stored as the tab title or the field label, and every other language read it from then on. + + The save door now compares them with the packaged definition as a last resort: a tab whose `list` the owning package does not name, or a field the owning package does not declare, that the stored row does not declare at all, is compared with what the packaged definition carries, and its translation is stored as that source text. The save answer names each such slot in `advisories` (`translated-label-echo`), as it does for every other restored label. A title or label the stored row does declare is never compared with the packaged definition, so a customer's own rename keeps its text, even when it equals some language's catalog entry. A tab or field the owning package declares and the stored row dropped is left as the body carries it. + + Console and Studio editors already save the stored document rather than the translated read, so they never reached this; a client that saved the translated read back did. + + `TranslateDocumentOptions.packagedBase` now says that an object's packaged definition carries the tabs a code package places, and that a placement is judged on the owning package there but on the customization row by the served object: where only a customization row declares `relatedLists`, the placed tab has no packaged counterpart and the deployment catalog does not translate its title. +- 70f454a: fix(metadata): two Studio Saves over one published item are no longer last-writer-wins + + Clause-②: yes (widening) — two new optional members join what the API accepts and answers: `PublishMetaItemRequestSchema.parentVersion` (the `If-Match` / `If-None-Match: *` pin on `POST /meta/:type/:name/publish`) and `GetMetaItemLayeredResponseSchema.overlayVersion` (served on `GET /meta/:type/:name/layers`); nothing is removed or narrowed, and a publish that names no version behaves as before + Metadata-protocol: added + + A Studio Save writes the item's draft and then publishes that one item, so it leaves no draft behind. Two admins who opened the same object with no pending draft both asserted "no draft" on their draft save, and the later Save published over the earlier one without a word: the published layer served no version a Save could pin. + + - `GET /meta/:type/:name/layers` now answers `overlayVersion`: the version token of the stored active row at the read's address (`?package=`), the same keyed token the plain uncached read serves as `version` and a publish receipt serves as `version`; `null` when no active row is stored there. + - `POST /meta/:type/:name/publish` takes that token as `If-Match` (or `If-None-Match: *`, "no active row here"). A token that is not the current active row's is refused `409 METADATA_CONFLICT` with the current token as `currentVersion`, and nothing is promoted: the draft stays pending. The headers are read as the save door reads them, so `If-Match` beside `If-None-Match`, or an `If-None-Match` other than `*`, is refused `400 VALIDATION_ERROR`. A publish with neither header is unpinned, as before. The pin is checked by the store's own lock on the promoting write, not by a separate earlier read. + - `MetadataClient.publish` (`@object-ui/data-objectstack`) takes `ifMatch` / `ifNoneMatch`, sent as those headers. + - Studio's object page pins its Save's publish to the published row it was loaded at. When another editor published since, the Save shows the reload-or-overwrite dialog the draft conflict shows, worded for a live change: reload takes back the draft the Save wrote and re-reads the live object, overwrite (after a confirmation) publishes over the version the refusal names, and keep editing leaves the edits on the page, unsaved. New locale keys in the studio catalogue (en, zh): `engine.draftConflict.publishedTitle`, `engine.draftConflict.publishedDescription`, `engine.draftConflict.publishedOverwriteTitle`, `engine.draftConflict.publishedOverwriteDescription`. + + The two members enter the authorable-surface ratchet (`api/GetMetaItemLayeredResponse:overlayVersion`, `api/PublishMetaItemRequest:parentVersion`), so `@objectstack/spec` takes `minor`; the other packages stay `patch`. + + Nothing to migrate: a client that sends no version is unaffected. +- 97f3420: fix(metadata-protocol)!: a refused metadata save no longer lists zod's bare "Invalid input" union entry ahead of the entries that explain it + + Clause-②: no (narrowing) — narrowed: the `issues[]` of a refused metadata save (`422 INVALID_METADATA`), a stored item's `_diagnostics.errors`, the seed-request refusal's `issues` and the unmanaged-import `400` no longer carry a union's own `invalid_union` entry when its message is zod's bare `Invalid input` and an entry below it explains the failure. `issues[0]` of a refused view save is now the first located cause. + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed or renamed, and nothing stored is rewritten: what moves is which entries a refusal's issues list carries, computed afresh on every refused save and every read. The accept set is unchanged. The one reading instruction is in the body: read entries by path and code, never by index. --> + + **BREAKING** for a client that reads a refused metadata save's `issues[]`, or a stored item's `_diagnostics.errors`, by position, or that looks for a root `invalid_union` entry. That entry said only `Invalid input` and named no key; the entries that name the key were always further down the same list, and they are now first. Read entries by `path` and `code`, not by index. + + | Refused save | Was | Now | + |:--|:--|:--| + | A list view with a typo in a column's `summary` key | `issues[0]` is `{ path: '', code: 'invalid_union', message: 'Invalid input' }`, then the `unrecognized_keys` entry | `issues[0]` is the `unrecognized_keys` entry naming `type` and `columns` | + | A view whose `label` is a map keyed by something other than a locale | `invalid_union` / `Invalid input` at `''` and again at `label`, then two `label.not_a_locale` entries | only the two `label.not_a_locale` entries: `invalid_key`, then the locale-tag prescription | + | The `meta-envelope` face's headline for the first row | `2 issues — (root) [invalid_union]; (root) [unrecognized_keys]` | `1 issue — (root) [unrecognized_keys]` | + + The headline's root locator is the angle-bracketed word `root`; it is spelled `(root)` above only so this changelog renders it. + + **What stays.** A union entry is kept, ahead of what it explains, in every other case: + + - its message is the schema's own sentence rather than zod's default. An object whose `titleFormat` is written as a formula still gets, first, the template slot's sentence telling the author to write `'{{record.name}}'`; the entry below it says only `expected "template"`, so dropping the first would drop the fix. An action's `confirmText` written as a formula is the same. + - nothing below explains it: every branch only says the value is the wrong kind (a view's `label: 42`), or the nesting bound was reached. Then it is the whole answer for that slot. + - it is a container's entry (`invalid_key`, `invalid_element`): its code is the one place that says the key was refused rather than the value under it. + + The comparison is against zod's exact default text, held in one constant in the producer and pinned against a real zod parse, so a zod upgrade that rewords the default fails a test instead of quietly bringing every such entry back. + + **Unchanged, on purpose.** The terminal renderer (`formatZodError`, the CLI) still prints the union line as the parent of its indented tree, and the data API's `fields[]` (`zodIssuesToFields`, `400 VALIDATION_ERROR`) still carries it as an `invalid_shape` entry; whether that one follows is #35433. The cross-package parity test records the asymmetry. + + **Known regression, until #35499 lands.** Studio's metadata form draws a refusal's entry on a field row only when the entry's path equals that row's key. On about 25 top-level keys (for example a view's `label`, `description`, `columns` and `exportOptions`) the dropped entry was the only one at that exact path, so after a refused save that row shows one red line fewer: the `Invalid input` line. The place is still named by the entries themselves and in the Save button's tooltip, and on a type with a live validator the next edit redraws the row. #35499 makes the form show the located cause on the row it sits under. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [8b550f8] +- Updated dependencies [c809deb] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [806bba8] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [ba304e0] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [7702f09] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [65fddc8] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [52fb30c] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [92f6216] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [13da40c] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [a61b8ab] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [5c2e34c] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [a98f8c6] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [9c57bd2] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [c059e60] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/types@18.7.0 + - @objectstack/lint@18.7.0 + - @objectstack/metadata@18.7.0 + - @objectstack/formula@18.7.0 + - @objectstack/core@18.7.0 + - @objectstack/metadata-core@18.7.0 + - @objectstack/sdui-parser@18.7.0 + ## 18.6.0 ### Minor Changes diff --git a/packages/metadata-protocol/package.json b/packages/metadata-protocol/package.json index 74f1efa5111..d312baeaee6 100644 --- a/packages/metadata-protocol/package.json +++ b/packages/metadata-protocol/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/metadata-protocol", - "version": "18.6.0", + "version": "18.7.0", "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 f7ccf23d1e6..189c33fdc7c 100644 --- a/packages/metadata/CHANGELOG.md +++ b/packages/metadata/CHANGELOG.md @@ -1,5 +1,271 @@ # @objectstack/metadata +## 18.7.0 + +### Minor Changes + +- cedc094: fix(objectql)!: a composition's top-level `objectExtensions` entry that no package body carries is registered and served; composition refuses two such jobs of one name, and residual extensions that would share one package's slot + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: none — no skill teaches placing `objectExtensions` or `jobs` in a manifest-less input of a `'preserve'` composition; the refusal names both entries and prescribes the fix + + <!-- adr-0087: registered stack-residual-extension-registered-and-jobs-judged --> + + **BREAKING** accept-set narrowing, shipped as `minor`, beside a runtime fix. + + - **Fixed (`@objectstack/objectql`, `@objectstack/metadata`).** A composed artifact that carries `packages[]` keeps the entries no package body claims at its top level, and the boot registers that residual under the artifact's `manifest.id` (ADR-0130 D4). Under `composeStacks(stacks, { manifest: 'preserve' })` that is an input with no `manifest`; under `'first'`, `'last'` or an index it is also the own top-level entries of an input that is itself a multi-package artifact. Its `objectExtensions` entries were registered by no door: the target object was served without their fields (`INVALID_FIELD` on a write naming one) and nothing was logged, through `os serve` and through `os build`'s artifact alike. The residual rule (`unclaimedTopLevel`) now lists such an entry (type `object_extension`) when no package body carries an entry equal to it, and the engine registers it as an `extend` contribution under `manifest.id`, as a body's entry registers. An entry whose field names a picklist no package body declares is not registered and is named at boot, like a residual object. + - **Refused now, at composition (`STACK_CROSS_REFERENCE_INVALID`, 422), under every manifest strategy once the result carries `packages[]`.** Two residual jobs of one name: the boot's job binder schedules neither (`NOT SCHEDULED` at `error`). A residual `objectExtensions` entry for an object that the body carrying `manifest.id` also extends with other fields: one extension of an object registers per package, so only the last one's fields would be served; the finding names that body's entry first, then the residual's: `Object extension of 'crm_line' is declared twice in \`objectExtensions\`: 'com.example.billing' (stack #2) objectExtensions[0] and stack #1 objectExtensions[0]. …`. Two residual `objectExtensions` entries for one object, also when another package body extends that object: a residual entry is now told from a body's flattened copy by value, not by target, so the two are one package's pair (they used to count as that body's copies and compose). + - **Not refused (known gap).** A residual job that shares its name with a package body's job, with other content, still composes: it is read as that body's copy, and the boot holds two enabled jobs of the name and schedules neither. + - **Wording.** The `jobs` finding at every door now says what the runtime does with the pair: `The runtime keys jobs by name: the metadata keeps only the last of these entries, and the job scheduler refuses a name two enabled jobs share, so when both are enabled neither runs.` + - **Unchanged.** One residual extension for an object another package extends composes, and both register. A residual entry equal to a body's entry is that body's copy. Package-claimed extensions and a single residual job compose and boot as before. + - **Installed artifacts.** A residual extension sharing its package's slot registers, the last one served, with one `error` line per object naming the entries. A residual extension now passes the registry's `extend` door as a package body's entry does, so one that door refuses (reachable only through `strict: false` or a hand-built artifact) now fails a boot that used to load and drop it. + + One-line fix: declare each job name once; move a top-level extension into the package that owns it, or merge it into that package's own entry for the object. +- c063734: fix(metadata): a skill the platform registers keeps its own slot beside an app's skill of the same name + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: none — no skills/ page names `_provenance` or its values, and the new value is one no author writes: the artifact door refuses it + + `MetadataProvenanceSchema` (`@objectstack/spec/kernel`) gains `'platform'`: the `_provenance` of a record the platform's own code registers at boot. It is a store-slot marker only, read at the item's own top-level `_provenance` key and nowhere else, and only the metadata service sets it. + + For every type stored per `(package, name)` (`skill`, `agent`, `tool` and the rest of `PACKAGE_SLOTTED_STORE_TYPES`), the platform's built-in record and a package's item of the same name no longer overwrite each other, in memory, in `sys_metadata`, and on a process or cluster peer that reads them back from the rows. + + - `MetadataManager.register(type, name, data, { origin: 'platform' })` marks a record the platform's own code registers: the body is stamped `_provenance: 'platform'` and the record fills the name's bare slot, in memory and in `sys_metadata`. Before, a package-less write under a name one package held was folded into that package's slot as its customization, so the platform's boot registration rewrote the app's skill. + - A package's first item of a name no longer takes over the bare slot when the platform's record is in it; the two stay side by side. For a bundled type (`email_template`) the row judged is the written member's. The environment's own item in the bare slot is still taken over, as before. + - A package-less environment write under a platform name keeps today's rule: it takes the bare slot without the stamp, and the platform's next registration restores its record. + - The readers that rebuild the store from loaders and rows keep both records: the plural read (`loadMany`, `loadManyKeyed`) gives the platform's entry a key of its own, `list` keeps a loader's platform row beside a package's slot and a loader's package item beside a platform slot, and a read naming a package is never answered from the platform's record. + - `MetadataManager.unregister(type, name, { origin: 'platform' })` withdraws the platform's record only, from the registry, every loader (`MetadataLoaderDeleteOptions.platformOnly`) and every cluster peer. A package's item of the name and the environment's own item are never taken, for any type, and nothing is refused however many packages hold the name. Before, a removal naming no package took every slot of a name one package held. On a host that declares a package id, the boot pass leaves the platform's stored record without the host's package, for every type, so the withdrawal takes the registry's copy too. + - `MetadataManager.getPlatformItem(type, name)` reads the platform's record only, never a package's item and never the environment's own. + - No other write carries the platform stamp. `register` without `origin: 'platform'`, `registerInMemory`, `save` and `rollback` store the body without it, and so do the metadata protocol's save door and its restore doors (`rollbackMetaItem` and the restore limb of `revertCommit`); a stored row the boot pass re-registers keeps it only when the row held it as read. `rollback` whose row is the platform's own record is refused (`409 RESOURCE_CONFLICT`, naming the fix), with nothing written. The metadata protocol's two undo writes, of a refused batch publish's landed promotions and of a failed batch row write, put a row back as the same operation found it, byte for byte, so the mark comes back only where the row held it. A body served from a loader other than a `datasource:` one is served without it; `getPublished` serves it on the answer's top level only when the stored item carries it there, and never inside a publish snapshot; and the artifact door refuses an item that carries it, with or without a manifest id (`VALIDATION_ERROR` at `_provenance`, naming the fix). A `_provenance` key nested in the body (an authored `metadata` record, for one) is the author's data: it is kept as written and never read as the mark. A body that names a package is that package's item, whatever `_provenance` it carries. + - `@objectstack/metadata` exports the mark's one definition (`PLATFORM_PROVENANCE`, `carriesPlatformStamp`, `isPlatformOrigin`, `withoutPlatformOrigin`); the artifact door and the metadata protocol's doors read it. + - `@objectstack/metadata-protocol`: the boot census `metadata_sealed_overlay_unserved` no longer names the platform's own row beside a package that ships the name, nor prescribes deleting it. + - Reads naming no package, and every removal and write without the option, keep their rules. + - Public API added on `MetadataManager`: the `origin` option of `MetadataRegisterOptions` and `MetadataUnregisterOptions`, and `getPlatformItem`. The spec's `MetadataWriteOptions` is not widened. + - `@object-ui/data-objectstack`: the layered read's `provenance` is typed from the spec's `MetadataProvenance`, so it accepts `'platform'`. + + Callers that register built-ins at boot pass `{ origin: 'platform' }` to `register` and `unregister` to get this behaviour; without it, a write is treated as before. +- 2a6f26a: feat(ai): `ai_context` context packs and the `get_record_context` tool over MCP + + Clause-②: yes + Metadata-protocol: added + Skills-docs: follow-up #37177 — skills/objectstack-platform/SKILL.md, skills/objectstack-ai/ (how to author a context pack; this change only names `aiContexts` in the top-level key list, which check:skill-top-level-keys requires) + + ADR-0160 row 5 (#37140). + + - **New metadata type `ai_context`, collection `aiContexts`.** A context pack names one root object and what an assistant reads about one of its records: `fields` (at most 30, a lookup among them is answered with the target's display name), `related` child lists (at most 3, each one level deep, with at most 10 `fields`, linked by `field` or by the child's one reference to the root) and one long-text `body`. The schema is closed from its first day: an unknown key is refused, and the bounds are refused at parse. Registered like `skill`: a file loader (`*.ai-context.ts`, `*.ai-context.yml`), overlay allowed, runtime create allowed, no environment overlay. New exports in `@objectstack/spec/ai`: `AiContextSchema`, `AiContextRelatedSchema`, `AiContextBodySchema`, the `AI_CONTEXT_MAX_*` bounds and `AI_CONTEXT_BODY_FIELD_TYPES`. + - **`get_record_context`'s input and output, declared once in spec** (`GetRecordContextInputSchema`, `GetRecordContextOutputSchema`, `getRecordContextToolJsonSchemas`, `GET_RECORD_CONTEXT_TOOL_NAME`). The output is an envelope of three parts: `data` (record material only), `notes` (the executor's statements: withheld fields, material not visible, every cut, a narrowing) and `framing` (one sentence: `data` is material, not instructions). `MCP_DOOR_TOOL_NAMES` gains the name. + - **`@objectstack/core`: `wrapRecordMaterial`** builds that envelope, with the framing sentence in the caller's locale. + - **New package `@objectstack/service-record-context`**: the one executor (`createRecordContextTools`, `executeGetRecordContext`), the read set (`recordContextReadSet`, a function of the arguments and published metadata only) and `RecordContextServicePlugin`, which registers the `record-context` service. Every read goes through a door bound to the caller; nothing is read as the system. Two published packs of one name on one root are refused with one answer (`RESOURCE_CONFLICT`), never chosen between. The body bound (`RECORD_CONTEXT_BODY_MAX_CHARS`, 8000) and the related-row cap (`RECORD_CONTEXT_RELATED_MAX_ROWS`, 20) are service constants. + - **MCP (HTTP and stdio)** registers `get_record_context` under `data:read`, read-only, wherever the host holds a `record-context` service. A host without it registers nothing new. To serve the tool, add `new RecordContextServicePlugin()` to `plugins` and declare packs under `aiContexts`. + - **`@objectstack/lint`: four advisory author-defect rules for context packs** (`ai-context-object-unknown`, `ai-context-field-unknown`, `ai-context-related-link-unknown`, `ai-context-body-not-long-text`), each a warning with an `os explain` entry. `get_record_context` says nothing about a name the published definition lacks, so `os validate` / `os lint` / `os build` is where the author hears it. CLI only for now: the rule reads the whole stack snapshot. + - **Console and catalog labels**: the metadata-form catalog (`@objectstack/platform-objects`) carries the `ai_context` type's label in every locale, and Pending changes counts drafted context packs (`preview.changes.typeCount.ai_context`). + +### Patch Changes + +- f796089: fix(spec,metadata-protocol)!: retire the seed modes `insert` and `replace`, which inserted every record again on each replay + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: follow-up #34798 + + <!-- adr-0087: registered seed-mode-insert-replace-retired --> + + **BREAKING** for a seed dataset authored with `mode: 'insert'` or `mode: 'replace'`. A seed is replayed on every single-tenant boot, every package install or upgrade and every publish, and neither mode matched an existing row, so every replay inserted each record again: an un-walled install went from 1 to 2 to 3 rows over three boots, a person reference the first load had to leave empty stayed empty on the first row while only the newest copy named the person, and with a unique field the replay insert was refused and the one row stayed empty. `replace` expected the caller to clear the table first, and no load path ever clears one. + + What moves (each line FROM → TO): + + - `SeedSchema.mode` / `SeedMode` (`@objectstack/spec/data`; `defineSeed`, `defineStack({ data })`, a `seed` metadata item, a package body's seed): FROM `insert` / `update` / `upsert` / `replace` / `ignore` TO `update` / `upsert` / `ignore` (default `ignore`, unchanged). `mode: 'insert'` or `mode: 'replace'` fails parse with a prescription naming the fix; the save and publish doors refuse it with the same message. The retired pair is exported as `RETIRED_SEED_MODE_VALUES` (`@objectstack/spec/data`): it is derived from the parse refusal's own table, and the loader and the artifact door read it. + - a stored dataset that still declares one, replayed by the boot seed, the per-organization replay, the dev hot reload or a package install, upgrade or sample-data reseed (`SeedLoaderService.loadStored`, `@objectstack/metadata-protocol`): FROM inserted again on every load TO refused alone — it writes nothing, the load result carries one error with the prescription and `success: false`, and every other dataset loads. `SeedLoaderService.load()` and `validate()` refuse the dataset the same way when handed one unparsed, so a dry run reports what a real load does. + - a compiled artifact (`objectstack.json`) carrying such a dataset, booted by `os serve` / `os start` / `os dev` (the artifact door, `MetadataPlugin`, `@objectstack/metadata`): the door parses the artifact without that dataset and hands it back to the seed load, which refuses it alone; the door logs a warning naming the dataset and the fix. Everything else in the artifact registers and boots. + - `os diff` (`@objectstack/cli`) on a dataset declaring either mode: FROM "a replay inserts these again" TO a note that the mode is retired, that a replay refuses the dataset, and what to declare. + - the advisory lint rule `seed-insert-mode-duplicates-on-replay` (`validateSeedReplaySafety`, `@objectstack/lint`): FROM a warning on `mode: 'insert'` TO removed; the schema refusal does its job for both modes. The author-time rule count `os validate` / `os build` print drops by one (71 to 70 at this release). + - the save door's and the loader's hint for a key no record carries: FROM "or use mode 'insert' for rows with no natural key" TO a list of fields when no single field names a row, or `'id'` when the records carry their own ids. + + The fix: declare which field identifies a row and drop the mode (or declare `upsert` for reference data the package keeps current). Set `externalId` to the field that names a row, to a list of fields when no single field does (a junction table's `['team', 'project']`), or to `'id'` when the records carry their own ids. Rebuild the package, and reinstall it where it was installed with `os package install`, so the stored body carries the new declaration. + + No conversion is made, at load, at save or by a migration (ADR-0087 D3, entry `seed-mode-insert-replace-retired`): a keyed mode needs the field that identifies a row, and only the author knows it. Rows earlier replays duplicated are data and are left as they are. + + Unchanged: `ignore`, `upsert` and `update` datasets load byte-identically. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [9c57bd2] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [c059e60] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/types@18.7.0 + - @objectstack/core@18.7.0 + - @objectstack/metadata-core@18.7.0 + - @objectstack/metadata-fs@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/metadata/package.json b/packages/metadata/package.json index 0d3a70d144c..28cb4c6b2f9 100644 --- a/packages/metadata/package.json +++ b/packages/metadata/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/metadata", - "version": "18.6.0", + "version": "18.7.0", "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 9a5f90192ae..5a6e93d0870 100644 --- a/packages/objectql/CHANGELOG.md +++ b/packages/objectql/CHANGELOG.md @@ -1,5 +1,1020 @@ # @objectstack/objectql +## 18.7.0 + +### Minor Changes + +- cc03bdc: fix(objectql): an `object_extension` whose record-mode amount names a sibling `currencyField` the served object does not hold is refused at the save, not at every write + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: none — `skills/objectstack-data/rules/field-types.md` already says a record-mode amount's code lives in the `text` field `currencyField` names, declaring `valueDomain: 'iso_4217_currency'`, with no carve-out for an extension; the refusal now makes that true for an extension's amount, and its text carries the prescription + + <!-- adr-0087: registered record-currency-sibling-extension-judged-as-served --> + + **BREAKING** accept-set narrowing, shipped as `minor`. An object body whose record-mode amount names a one-segment `currencyField` it does not declare, or a field holding no ISO 4217 code, is refused `422 INVALID_METADATA` at parse. An extension's amount cannot be judged there, because its pointer may name a field only the owner declares, and the record-currency follow door judged an extension only on the two-segment `MASTER_DETAIL.CODE` path. So `PUT /api/v1/meta/object_extension/showcase_invoice` adding `fee: { type: 'currency', currencyConfig: { currencyMode: 'record', currencyField: 'zz_missing' } }` answered 200 and was served, and every later write of `fee` was refused `ERR_CURRENCY_CODE_REQUIRED`, prescribing a write into `zz_missing`, which does not exist. + + - **The verdict.** The follow door (`SchemaRegistry.objectRegistrationRefusal` with `againstRegistry`, and the end of an install, upgrade or reload on a running server) now judges a one-segment pointer against the object AS SERVED: its base, every enabled extension, and the incoming body. A pointer naming no other field, or a field that is not a `text` field declaring `valueDomain: 'iso_4217_currency'`, is refused `422 INVALID_METADATA` (`RecordCurrencyFollowRefusedError`), naming the amount, the pointer and the object's code-field candidates; nothing is stored. + - **Admitted as before.** A pointer naming a code field the owner declares, the same extension adds, or another enabled extension adds. + - **The owner's end.** An owner re-registering without the code field an extension's amount names is refused, naming the package that adds the amount. + - **Runs and single saves.** An install, upgrade or reload that leaves such a pointer as it found it is not refused over it. A published single save and the batch writers judge with the slot left empty: re-publishing an unchanged extension whose pointer a cold boot admitted is refused, and so is a published save of the owner while an extension's amount names no code field. Correct that extension's pointer (or uninstall it), then save the owner again unchanged. + - **Not asked.** The cold boot: packages installed before this release keep loading. + + One-line fix: point the amount's `currencyField` at the extended object's ISO 4217 code field (the refusal lists the candidates), or add one in the same extension and name it. +- d5ece3e: fix(objectql): an update whose every caller-supplied field is dropped (read-only, or locked by `readonlyWhen`) is a no-op, so the record no longer shows a last-modified edit that changed nothing and `afterUpdate` automation no longer fires for it + + Clause-②: no + Metadata-protocol: semantic + + An update could send only fields the engine refuses to store: a `readonly` field, or one a TRUE `readonlyWhen` locks for that record. The engine dropped them, reported them in `droppedFields`, and then still wrote the row: `updated_at` and `updated_by` were stamped, and every `afterUpdate` hook ran, so "on update" flows and triggers treated it as a real edit. + + Now such an update writes nothing, on a single-record update and on a `multi: true` predicate update alike: + + - no driver write, so `updated_at` / `updated_by` keep their stored values; + - `afterUpdate` does not run, no roll-up recomputes and no record-changed event is published; + - a single-record update answers the current record, and a predicate update answers `0` rows written; + - the dropped fields are still reported exactly as before (`onFieldsDropped`, and the REST `droppedFields` answer). + + `beforeUpdate` still runs, as it must before the engine can know what is left. When at least one field survives (a caller field, or a field a `beforeUpdate` hook wrote), the update takes the unchanged path. An update whose fields are all kept but equal to the stored values is unchanged. `strictReadonlyWrites` still refuses a dropped field before anything is written. + + What to check in an app: an `afterUpdate` hook or record-change trigger that relied on firing for an update made only of read-only or locked fields no longer runs for it. Send a writable field in that update if the automation must run. +- 0739dee: fix(objectql)!: a field that is `required` and hidden by its own `visibleWhen` is required only when shown, so one admin setting no longer locks every record outside the condition + + Clause-②: yes (narrowing + widening of the required write contract) — widened: an insert or update whose record a `required` field's own `visibleWhen` cleanly hides no longer needs that field, and an explicit null onto a row already shown and empty is accepted. Narrowed: a write that moves a record INTO the condition while that field is empty is refused; 18.5.0 accepted it. + Metadata-protocol: semantic + + <!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed or renamed, and nothing stored is rewritten: what moved is when the engine enforces required on a field that also declares visibleWhen. The one-line fix for a refused write is in the body: fill the field in the same write that moves the record into the condition. --> + + **BREAKING** for flows, bulk updates, imports and API PATCHes that move existing records into a `required` field's `visibleWhen` condition without filling the field. Such a write is now refused with `required` naming the field (on a bulk update, one such row refuses the batch). Fill the field in the same write. A field with `required` and no `visibleWhen` is unchanged. + + **What changed (ADR-0113 D1 and D5, amended).** A field that declares `required: true` and its own `visibleWhen` used to be enforced on every save. In Studio an administrator can add one in a few clicks, and from then on every record that fails the condition refused every write, even an edit of an unrelated field, naming a field nobody could see. The engine now judges such a field from its visibility on the write: + + - the predicate evaluates cleanly to anything but TRUE on the record (the stored row with the write over it), so FALSE, or `null` such as an unset boolean: the field is not required for that write, so a record outside the condition can be created and edited, and the form's clear-on-hide `null` is accepted; + - the predicate is true: the field is required by the same non-regression rule `requiredWhen` uses, against the prior record, which the engine now reads on update for objects with such a field; + - the predicate cannot be evaluated: it counts as shown, the field stays required exactly as before, and the server logs a warning naming the field and the fault. + + The predicate is evaluated with the acting user bound as `current_user`, so a role-gated field is judged per writer; a system write with no user counts as shown. A `formula` field it reads is computed over the record first, as a read of that record computes it. A formula that faults for a reason a read shares (an empty operand) is judged on the `null` a read serves; a formula whose read value the write path cannot know (it reads through a reference, calls `label()`, calls `can` on a write that picks no permission-gated option and so resolves no permission map, reads `current_user` on a system write with no user, or reads such a formula at any depth) counts as shown; the system-write case is logged as `no-acting-user`, as the direct `current_user` spelling is. Only the field's own `visibleWhen` is read: a field group's `visibleWhen` and form-view predicates are not. + + The refusal for such a field now comes from the rule pass rather than the record walk. A single-fault write gets the same `required` code and sentence; a write with several faults may name fewer of them in one `400`, or answer a dangling reference first, and a `beforeUpdate` hook now runs before the refusal and may fill the field. + + **A formula-driven `visibleWhen` on the form.** The form computes the object's formula fields over the record being edited before it judges the field rules (the form-side recompute in `@object-ui/core`, `@object-ui/components` and `@object-ui/console`), so it shows such a field where the server requires it. A formula the form cannot compute (it reads through a reference, calls `label()` or `can()`, reads `os`, or reads the user when nobody is signed in) leaves the field shown and required, and the server decides on save. + + **`@objectstack/lint`.** Three new warnings at `objectstack validate` and the object save door, on a `required` field with a `visibleWhen`: the predicate reads through a reference field (the server cannot evaluate it, so the field stays required everywhere); the predicate reads a `formula` field (with the counts-as-shown consequence when a formula it reads, at any depth, reads through a reference, calls `label()`, or calls `can`, which a write computes only when it picks a permission-gated option); and `storage.notNull: true` beside the pair (the column still refuses the null on a record outside the condition). + + **`@object-ui/app-shell`.** Studio's field inspector shows the reference-read and formula-read warnings under the Visible-when editor of a required field. + + **`@objectstack/spec`.** The `required` and `visibleWhen` descriptions on `FieldSchema` say how the two combine. +- 6ffa816: feat(security): an unmanaged install copies an app's capabilities, renamed with the copy + + Clause-②: yes (widening) + Metadata-protocol: added + + An app that gates an action on its own capability can now install as an unmanaged copy (`installModes: ['unmanaged']`). Before, `capability` was code-only (`allowRuntimeCreate: false`), so the validator refused the mode for any app that declared one, and the install door had no channel to write the copy's capabilities. + + - **`capability` is runtime-creatable.** Its `DEFAULT_METADATA_TYPE_REGISTRY` entry is now `allowRuntimeCreate: true`, and overlays stay closed (`supportsOverlay: false`, `allowEnvironmentOverlay: false`). A body is judged by `CapabilityDeclarationSchema`, as before. + - **The save door refuses two names.** + - A platform capability's name (`manage_users`, `setup.access`, every name in `PLATFORM_CAPABILITIES`) answers `422 NAMESPACE_CONFLICT`. An environment item under that name would shadow the platform's definition, because the registry answers its bare slot first. + - A name an installed package's capability holds answers `422 NAMESPACE_CONFLICT`, naming the holder. A capability holds one name per deployment, the same rule permission sets and positions follow. + - **The environment catalog holds capabilities.** `ENVIRONMENT_HELD_SECURITY_CATALOG_TYPES` is `['position', 'permission', 'capability']`. A package that ships a capability name the environment already authored is refused at boot, as a position or permission-set name is. `os migrate security-catalog-overlays`, the remedy that refusal names, lists and deletes such a capability row too (`capability` and `capabilities` spellings). + - **An unmanaged copy renames its capabilities.** When the copy takes a new namespace, a capability whose name starts with the source namespace (`<ns>.` or `<ns>_`) is renamed into the copy's namespace. Every reference is rewritten with it: a permission set's `systemPermissions` (list or per-operation map), an object's or action's `requiredPermissions`, and a quoted `current_user.hasCapability('<name>')` in a predicate. There the object-name rename never touches a name the package declares, so a capability named after a renamed object has one name in the copy; a token the package does not declare follows a renamed object as before. An unprefixed capability keeps its name. A renamed capability that collides with another package's capability refuses the install, naming both. Install again under another namespace. + - **Duplicating a package refuses a shared gate.** `duplicatePackage` keeps its source installed, so a capability it cannot rename (no source prefix, or a copy name the package already declares) is refused, and so is every copied item that grants, requires or tests for it, each at its own name in `failed[]`. + - **The `everyone` anchor excuses only a declaration that carries a package.** The check that refuses a high-privilege permission set bound to `everyone` excuses the tokens an app declared itself. It now counts only declarations bound to a package (`_packageId`), as ADR-0090 D5 rules: an app's shipped capabilities, an unmanaged copy's, and one saved into a writable package. A capability saved with no package excuses nothing. What bounds a saved declaration is the two refusals above: a platform capability is never excused, and a name a package declares cannot be declared again. A name nobody declares can be declared once, by a `manage_metadata` holder, inside a writable package. + - **The gate is unchanged.** It still matches capability names. The copy's action is gated on the copy's capability: a holder of the copy's permission set passes, and a holder of only the source's set does not. +- e75a528: feat(spec)!: two entries under one identity in one package are refused when a composition or a package body assembles them, as a single stack already refused them + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: none — no skill teaches splitting one package's entries for one identity across sub-stacks or package bodies; `skills/objectstack-data/SKILL.md` teaches one `objectExtensions` entry per extension, and the refusal names both entries and prescribes the merge + + <!-- adr-0087: registered stack-package-duplicate-entry-refused-at-every-door --> + + **BREAKING** accept-set narrowing, shipped as `minor`. `defineStack` refuses two entries under one identity in one stack for the collections the runtime registers one entry per identity (`objects`, `datasources`, `pages`, …, `queues`, `assignmentRules`, `apps`, `objectExtensions`), but two sub-stacks of ONE package that each declared one such entry composed with both, and a hand-built `packages[i]` body carrying two was accepted. `os validate`, `os build` and the boot all passed, and the boot then kept one entry. For `objectExtensions` that meant only the last entry's fields registered: a field the earlier entry declared was missing, and reads and writes naming it answered `INVALID_FIELD`. + + - **Refused now, in the cross-reference envelope (`STACK_CROSS_REFERENCE_INVALID`, 422), with the single-stack wording.** `composeStacks`, for the package it registers under its own `manifest.id`: every input of a flat composition, and under `manifest: 'preserve'` the inputs without a manifest and any other top-level entry no package body claims (the boot's residual). Each finding names the input every entry came from: `Object extension of 'crm_line' is declared twice in \`objectExtensions\`: stack #1 objectExtensions[0] and stack #2 objectExtensions[0]. …`. Every `packages[i]` body, of `defineStack({ packages })` (`stack.packages[1].manifest.objectExtensions[0]`) and of a composition that carries or assembles bodies. The refusal carries the inputs' conversion record like the other composition refusals. Two inputs declaring one app name now answer this refusal first, where they answered `STACK_SINGLE_APP_VIOLATION`. + - **Unchanged.** A single stack's refusal, byte for byte. Two packages reusing one name (ADR-0048 §3.4): under `manifest: 'preserve'`, as two package bodies, or as a nested multi-package artifact's flattened copies of its bodies, each body is judged on its own. The same built sub-stack passed to a composition twice, except its `hooks`: a hook reached twice is refused, because a built artifact binds each copy. Two same-name objects across inputs stay the `objectConflict` strategy's to refuse or fold. + - **Installed packages keep loading (`@objectstack/objectql`).** A package body built before this release that carries two or more `objectExtensions` entries for one object registers as before (only the last entry's fields), and its registration now logs one error per (package, object) naming the object, the package and the entries, and telling the author to merge them and rebuild. Entries for one object that are all equal by value lose nothing and log nothing. Re-registering a package still replaces that package's previous extension of the object. + + One-line fix: merge the entries into one (for `objectExtensions`, one entry per target object carrying every field), or rename one of them. +- e114324: feat(units): a number field declares its unit with `unitConfig`, and the engine checks every unit code it stores + + Clause-②: yes + Metadata-protocol: added + + ADR-0158 R1, the membership card (#35489). + + **`unitConfig` on a field** (`@objectstack/spec`, `UnitConfigSchema`): + + - `{ unitMode: 'fixed', unit: 'KGM' }` on a `number`: the quantity is always in one standard UN/ECE Recommendation 20 unit, checked at parse against the standard unit table (exact uppercase; `C62` and `EA` are answered with the piece, `H87`). + - `{ unitMode: 'record', unitField: 'uom', unitDimension?: 'mass' }` on a `number`: each record names its unit by code in the sibling `text` field `unitField` names. The object refuses a pointer into nothing, into a non-`text` field, through a parent (`PARENT_FIELD.UNIT_FIELD` is reserved: a child cannot follow its parent's unit yet), or into a field carrying its own marker, and two quantities sharing one unit field with different `unitDimension` values. + - `{ unitMode: 'code', unitDimension?: 'count' }` on a `text`: a field holding a unit code with no quantity beside it, such as a material's base unit (Open item 8, ruled A). It is a unit marker, not a value domain, and is refused beside a `valueDomain`. + - `unitMode` is required and has no default. The key is refused on every other field type (`currency`, `formula`, `summary` included). A quantity stays a bare number, and needs no `scale`. + + **The write check** (`@objectstack/objectql`): at every insert, by-id update, predicate update and `validate()` preview, a unit code the row stores must be a standard code or one of the organization's own non-retired units (`sys_unit`), in exact uppercase and of the declared `unitDimension`, and a quantity may not stand beside a blank code. The row image is judged whenever the write touches the quantity or its unit field (Open item 9). Refusals, each 400, registered in the error-code ledger: `ERR_UNIT_CODE_REQUIRED`, `ERR_UNIT_CODE_UNKNOWN`, `ERR_UNIT_CODE_RETIRED`, `ERR_UNIT_DIMENSION_MISMATCH`. A row resting on a code that is no longer a member stays editable in its other fields; a quantity edit beside it is refused until the row moves to a member unit. + + **A unit is retired, never deleted**: the engine refuses a delete of a `sys_unit` row for every caller, a system writer and an automation run included, by id and batched (405 `ERR_UNIT_DELETE_REFUSED`), and `organization_admin` names `sys_unit` explicitly with no delete (`@objectstack/plugin-security`). + + `@objectstack/metadata-core` and `@objectstack/driver-sql` classify the new field key (field-level security keeps it; the DDL does not read it). `@objectstack/platform-objects`: the `sys_unit` docblock names its readers. +- f44758b: feat(units): `os migrate unit-codes` converts stored unit text into unit codes, from the operator's mapping + + Clause-②: yes + Metadata-protocol: added + + ADR-0158 U7 R1, the backfill door (#35492). It is the twin of `os migrate record-currency-codes`. + + **What it is for.** A field declared a unit code field after its rows were stored still holds free text such as `kg`, `公斤` or `lbs`. Since #35489 the engine checks each unit code it writes, so editing a quantity beside such a value is refused until the row holds a code. This door converts those rows in one run. + + **`backfillUnitCodes`** (`@objectstack/objectql`, also exported: `formatUnitCodeBackfillReport`, `unitCodeBackfillComplete`, `unitCodeMappingOf` and the report types): + + - **Which field.** `field` names the unit code field: the `text` field a quantity's `unitConfig.unitField` names, or a standalone `unitConfig: { unitMode: 'code' }` field. If you name the quantity, the refusal is `INVALID_FIELD` and names the field to use. + - **The mapping.** It is the operator's, never derived. It maps stored text, exactly as written, to a unit code. Matching is exact: `kg ` and `KG` need their own entries. + - **Targets are judged before any row is read**, as the write would judge them. A target that is not a standard UN/ECE Recommendation 20 code or one of the organization's own units, a retired unit, or a unit of another dimension than the field's `unitDimension` is refused `INVALID_FIELD` / 400 on the field. With no organization named, organization codes are judged in each organization the run would write them in, still before any write. + - **Rows already holding a unit code are never rewritten**, so the run is idempotent: a second apply run writes nothing. That includes a unit the organization retired and a code of another dimension. Both are codes, not free text, and rewriting them from a mapping would change what the stored quantity means. Neither is a code the field admits: beside a quantity, the write check refuses each at the row's next quantity edit; a standalone unit field has no quantity, so the next write of the field must carry another code. So they are listed as `retired` and `other-dimension` and counted apart (`skippedRetired`, `skippedOtherDimension`), never as a code the field admits. + - **A blank unit beside a quantity** is written only from an explicit `""` entry; without one it is counted (`blankBesideQuantity`) and named in the report. A blank unit with no quantity is left alone. + - **Complete.** `unitCodeBackfillComplete` answers true only when every row holds a unit code the field admits: no unmatched value, no blank beside a quantity, no retired unit, no code of another dimension, no failed or unexamined row. The report prints its ✓ line only then. + - **Dry run by default.** It lists each distinct stored value with its row count and what the mapping does with it, and writes nothing. With no mapping, the listing shows which spellings to map. + - **Unmatched values.** An apply run that meets a value with no mapping entry is refused `VALIDATION_ERROR` / 400 on `mapping` before any write. The refusal names each value with its row count, and carries them as `unmatched`. + - **Scope.** Scope is `organizationId` or `allOrganizations`, as on the currency backfill. An unscoped run over the rows of several organizations is refused with each organization's counts. + - **Writes.** Each row is written through `engine.update` as a system write, so the unit check judges every converted code. + + **`os migrate unit-codes --object O --field F [--map-file mapping.json] [--org ID | --all-organizations] [--apply] [--yes]`** (`@objectstack/cli`): + + - It has the precedent's confirmation and exit behaviour: `--apply` asks first, and exits 1 under `--json` or with no terminal unless `--yes` is given. + - A mapping file that is not JSON, or a mapping the engine refuses as malformed, is refused before the occupancy probe, the prompt and the boot. + - Any refusal exits 1. Under `--json` it carries the code, the HTTP status, and `unmatched` or `organizations` where those apply. + - It closes with a ✓ only when `unitCodeBackfillComplete` holds. A run that leaves a blank beside a quantity, a retired unit or a code of another dimension closes with a warning naming what is left. + + **`POST /api/v1/meta/_migrate-unit-codes`** (`@objectstack/rest`) is the tenant-admin twin of `_migrate-record-currency-codes`. + + - Its body is `{ object, field, mapping?, apply? }`, and any other key is refused 400. + - It sits behind `metadata.endpoints.maintenance` and requires `setup.write`. It converts the caller's current organization only, and is a preview unless `apply: true`. + - The report is the `data` of the shared envelope. A refusal over unmatched values answers 400 with `error.details.unmatched`. + + **The unit refusals name the door** (`@objectstack/objectql`). The `ERR_UNIT_CODE_REQUIRED` and `ERR_UNIT_CODE_UNKNOWN` refusals of a quantity written beside a stored value the write did not supply now end with the remedy: the `os migrate unit-codes` command for that object and field, or the REST door. The refusal of a blank names the `""` entry. A refusal of a code the caller wrote carries no remedy. + + **A metadata save that makes a stored field a unit code field is a destructive change** (`@objectstack/metadata-protocol`, `@objectstack/spec`). The detector judges the declaration and reads no row. Two findings sit beside `currency_mode_to_record` on the 409 `DESTRUCTIVE_CHANGE`, and `force: true` lifts them: + + - `unit_code_field_declared`, on the code field: a stored field that is a unit code field after the save and was not one before. Any declaration can do it: a quantity, new or stored, whose `unitField` names the field; a `unitField` re-pointed at it; or its own `unitMode: 'code'`. A field that already was a unit code field raises nothing. + - `unit_mode_to_record`, on the quantity: a stored quantity switched to `unitMode: 'record'`, whatever its `unitField`'s history (a unit code field already, or a field new in the same save). It names the blank units beside the quantity and the `""` entry that writes them. It is not raised when the same save raises `unit_code_field_declared` on that `unitField`, since that finding names the quantity, its blanks and the `""` entry, so each debt is reported once. + + Each names the conversion run for that object and code field, CLI and REST. +- cedc094: fix(objectql)!: a composition's top-level `objectExtensions` entry that no package body carries is registered and served; composition refuses two such jobs of one name, and residual extensions that would share one package's slot + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: none — no skill teaches placing `objectExtensions` or `jobs` in a manifest-less input of a `'preserve'` composition; the refusal names both entries and prescribes the fix + + <!-- adr-0087: registered stack-residual-extension-registered-and-jobs-judged --> + + **BREAKING** accept-set narrowing, shipped as `minor`, beside a runtime fix. + + - **Fixed (`@objectstack/objectql`, `@objectstack/metadata`).** A composed artifact that carries `packages[]` keeps the entries no package body claims at its top level, and the boot registers that residual under the artifact's `manifest.id` (ADR-0130 D4). Under `composeStacks(stacks, { manifest: 'preserve' })` that is an input with no `manifest`; under `'first'`, `'last'` or an index it is also the own top-level entries of an input that is itself a multi-package artifact. Its `objectExtensions` entries were registered by no door: the target object was served without their fields (`INVALID_FIELD` on a write naming one) and nothing was logged, through `os serve` and through `os build`'s artifact alike. The residual rule (`unclaimedTopLevel`) now lists such an entry (type `object_extension`) when no package body carries an entry equal to it, and the engine registers it as an `extend` contribution under `manifest.id`, as a body's entry registers. An entry whose field names a picklist no package body declares is not registered and is named at boot, like a residual object. + - **Refused now, at composition (`STACK_CROSS_REFERENCE_INVALID`, 422), under every manifest strategy once the result carries `packages[]`.** Two residual jobs of one name: the boot's job binder schedules neither (`NOT SCHEDULED` at `error`). A residual `objectExtensions` entry for an object that the body carrying `manifest.id` also extends with other fields: one extension of an object registers per package, so only the last one's fields would be served; the finding names that body's entry first, then the residual's: `Object extension of 'crm_line' is declared twice in \`objectExtensions\`: 'com.example.billing' (stack #2) objectExtensions[0] and stack #1 objectExtensions[0]. …`. Two residual `objectExtensions` entries for one object, also when another package body extends that object: a residual entry is now told from a body's flattened copy by value, not by target, so the two are one package's pair (they used to count as that body's copies and compose). + - **Not refused (known gap).** A residual job that shares its name with a package body's job, with other content, still composes: it is read as that body's copy, and the boot holds two enabled jobs of the name and schedules neither. + - **Wording.** The `jobs` finding at every door now says what the runtime does with the pair: `The runtime keys jobs by name: the metadata keeps only the last of these entries, and the job scheduler refuses a name two enabled jobs share, so when both are enabled neither runs.` + - **Unchanged.** One residual extension for an object another package extends composes, and both register. A residual entry equal to a body's entry is that body's copy. Package-claimed extensions and a single residual job compose and boot as before. + - **Installed artifacts.** A residual extension sharing its package's slot registers, the last one served, with one `error` line per object naming the entries. A residual extension now passes the registry's `extend` door as a package body's entry does, so one that door refuses (reachable only through `strict: false` or a hand-built artifact) now fails a boot that used to load and drop it. + + One-line fix: declare each job name once; move a top-level extension into the package that owns it, or merge it into that package's own entry for the object. +- d33bf5a: feat(spec): an object extension says where the fields, groups and child lists it brings go (`place`), and a child list another package brings is no longer hidden by the parent's `relatedLists` + + Clause-②: yes (widening) + Metadata-protocol: semantic + + An `objectExtensions` entry can now place what it brings on the object it extends: + + ```ts + objectExtensions: [{ + extend: 'account', + fields: { tax_id: { type: 'text', label: 'Tax ID' } }, + place: [ + { field: 'tax_id', group: 'basic', after: 'industry' }, + { group: { key: 'tax', label: 'Tax' }, after: 'basic' }, + { list: 'contract', after: 'opportunity', label: 'Contracts', columns: ['name', 'amount'] }, + ], + }], + ``` + + - **No `place`: nothing moves.** Fields still arrive after the object's own, and an extension that writes no `place` serves exactly what it served before. + - **One merge, every reader.** The registry fold applies the placements once, after every contributor's fields are merged, so the record page, the forms and Studio show one arrangement. Uninstalling or disabling the package takes its items off and leaves the object's own order as it was. + - **Placement arranges what the parent declares.** A list placement applies when the extended object declares `relatedLists`; a group or field placement when it declares `fieldGroups`. On a parent that declares neither, its automatic arrangement stays and nothing is dropped: the list shows in the automatic tab order, and its entry's `label` / `columns` are not applied either (write `relatedListTitle` / `relatedListColumns` on your child object's lookup field to title it on every parent); the field shows among the fields, its `after` / `before` not applied. The boot log names each placement that did not apply, with the object and the package. It is the main channel: `os validate` names it too (`extension-placement-not-applied`, warning) only when the extended object is in the same stack. + - **Anchors and order.** `after` or `before`, not both; neither means the end. An anchor may be an item another placement brings, whatever order the two are written or registered in. An anchor nobody has puts the item at the end of its group, of the groups, or of the tabs (before a trailing approvals / activity-stream run), and `os validate` warns (`extension-placement-anchor-missing`). A list placement's `columns` are fields of the child, checked by `os validate` as a `relatedLists` entry's are (`related-list-column-unknown`). Several packages at one anchor follow ascending `priority`, then package name, so every build gives the same order. When the object itself already names the list or lists the field, its own position wins. + - **An extension places only its own items.** A field outside its own `fields`, a field the extended object declares (also one the extension redeclares to relabel it), a group key the extended object already declares, or a list (placed as a tab or by a group's `relatedList`) that is not a child object of its package pointing at the extended object is refused at parse or at `defineStack`, and skipped by the merge with a warning naming whose item it is, whichever door registered the extension. The extension keys `fieldGroups` and `relatedLists` are refused with a prescription naming `place`. + - **Shipped behaviour change (flips #35897's hiding):** a child list another package brings is no longer hidden by the parent's declared `relatedLists`. Placed, it sits where its package puts it; unplaced, it shows at the end of the tabs. "Another package" means the child and the parent both belong to a package and the two differ; a child of the parent's own package, or one no package owns, is still hidden until an entry names it. This narrows the #35897 note "A child list another package adds is hidden too until the parent names it … letting a package place its own list is a later change": that change is this one. + - **Studio** (object settings, Record page tabs) shows such a list read-only among the unlisted rows with a "from <package>" badge, and the preview draws it where the record page does. + + What to check in an app: on an object that declares `relatedLists`, every installed package's child lists of it now show, at the end of the tabs unless placed; name one in the parent's `relatedLists` to put it elsewhere, or set `relatedList: false` on that package's FK to hide it. Nothing in HotCRM changes meaning today: no module writes `place`, and no object declares `relatedLists`. Most HotCRM objects already declare `fieldGroups`, so a field or group placement there applies as soon as a module writes one; a list placement waits until the parent declares its `relatedLists` (follow-up #35902). ADR-0087 semantic entry `object-extension-place-and-cross-package-lists`; ADR-0146 D10 and ADR-0085 notes. +- 70d07fd: feat: an object arranges its actions per scope (`actionLayout`: pinned buttons and the 「More」 order), and the design mode sets it + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: follow-up #36630 + + A page header draws at most three of its actions as buttons and puts the rest in its 「More」 menu. An object now arranges them itself with the new optional key `actionLayout` on `ObjectSchema` and `ObjectExtensionSchema`: `{ list?: Arm, record?: Arm }`, where `Arm = { pinned: string[], more?: string[] }`. `pinned` names the buttons in the order drawn, at most three (`[]` pins none); `more` orders the 「More」 menu; an action the scope places that neither part names goes to the end of 「More」 in its default order. A pinned action that is hidden leaves its button out, and no other action takes its place. + + - `list` arranges the actions placed at `list_toolbar` and the list page's built-ins `$import` and `$export`. A built-in is only ever pinned: one named in `more` is refused with its reason, since not pinned the list page draws it in its own Import / Export menu. + - `record` arranges the actions placed at `record_header` or `record_more`. It is a scope, not a page: the record page header, the side preview and a phone's bottom action bar all read it. A `page:header` that authors its own `actions` list keeps that list. + - An arm left out (or the key left out) draws that scope exactly as before. + + What each package gains: + + - `@objectstack/spec`: the key and its shape refusals at every door (more than three pinned, a name given twice in one part or in both, a malformed name, a built-in the scope does not have, a built-in in `more`, since a built-in is only ever pinned), each with its reason. New exports `OBJECT_ACTION_LAYOUT_PINNED_LIMIT`, `OBJECT_ACTION_LAYOUT_SCOPES`, `OBJECT_ACTION_LAYOUT_BUILTINS` and the types `ObjectActionLayoutScope`, `ObjectActionLayout`, `ObjectActionLayoutArm`. The object form offers it under Advanced, one JSON row per arm. + - `@objectstack/objectql`: `actionLayout` joins `fieldGroups` and `relatedLists` as a key only the base's paired `.custom` package writes on an `object_extension` (ADR-0146 D10). It is applied last, after every other layer, arm by arm: each arm it writes replaces the served arm for that scope whole, and an arm it leaves out stays. A manifest's `objectExtensions` entry now carries the key to the fold. + - `@objectstack/metadata-protocol`: the one judge refuses `actionLayout` from any other package, naming the action's own `locations` and `order` as the way to place an action the package brings. Each door says it its own way: publish, restore and draft promotion of an `object_extension` answer `VALIDATION_ERROR` / 400; marketplace install refuses the package body with `VALIDATION_ERROR` / 422; `os validate` and `os build` exit non-zero and print the row; the registry fold skips the key and leaves a note. + - `@objectstack/lint`: `validateObjectActionLayout` (`object-action-layout-unknown`, `object-action-layout-not-placed`, at `error`) refuses in `os validate`, `os build` and `os lint` a name, in either part, that is no action of the object or is not placed in the scope its arm arranges. + - `@object-ui/types`: `arrangedHeaderActions(actions, arm, scope)`, the one reader both record headers and the list header apply, and `readActionLayoutArm`. + - The console: both record headers (the default page's and an authored `page:header` with `placedActions: true`) and the list header draw the arrangement. In the design mode, 「Header buttons」 at the end of the page header lists the scope's actions under 「Pinned to header」 and 「Other」 (the 「More」 menu), each dragged into order; a dot moves an action between them, a fourth pin is refused with a toast, the header shows the change at once, and 「Save」 writes only the arms that changed: into the object's own package when it is writable, else into the installed object's customization package as an `object_extension`, through the one writer of an installed object's arrangement (`saveObjectExtensionArrangement`, whose patch type now takes the object-shaped `actionLayout`), which refuses a customization package the server does not list writable. A name the scope no longer offers is listed in the panel as left out. A name the header cannot draw is refused at save with its reason. New `@object-ui/i18n` keys under `designMode.pins`. +- 45ef94e: feat(spec): a base's paired `.custom` package declares an installed object's whole field-group and tab arrangement (`fieldGroups`, `relatedLists` on its object extension) + + Clause-②: yes (widening) + Metadata-protocol: added + + The record page is arranged in three layers. The package that owns an object declares its `fieldGroups` and `relatedLists`; a package that extends it places what it brings with `place`; and now the environment, in the base's paired `.custom` package, may declare the whole arrangement over both: + + ```ts + objectExtensions: [{ + extend: 'crm_lead', + fields: { region__c: { type: 'text', label: 'Region' } }, + // The whole field arrangement: the two groups swapped, `status` moved. + fieldGroups: [ + { key: 'contact', label: 'Contact', fields: ['email', 'phone', 'status'] }, + { key: 'basic', label: 'Basics', fields: ['name', 'company', 'region__c'] }, + ], + // The whole tab list: events before tasks, the notes tab hidden. + relatedLists: ['crm_event', 'crm_task', { list: 'crm_note', hidden: true }], + }], + ``` + + - **Two new keys on an object extension, written only by a `.custom` package.** `fieldGroups` takes the shape an object's `fieldGroups` takes and may list any field the object has, whoever declares it; a group's `relatedList` may place any body table. `relatedLists` takes an object's entry shape (a bare name, the three built-in tab names, or `{ list, label?, columns? }`) plus `hidden`. + - **Each key replaces, whole.** The registry applies it last: the owner's arrangement, then every extension's `place`, then the `.custom` key in place of the result. Nothing is merged entry by entry. A key the extension does not write keeps the owner's arrangement with the placements, so writing only `relatedLists` leaves the field groups as they were. + - **A field the arrangement does not list is not dropped.** It shows after the last group, whichever group its owner or another extension had put it in. A group that lists `fields` shows exactly its list. + - **A tab the arrangement does not name still shows, after the listed ones.** This is the reverse of an object's own `relatedLists`, where leaving a list out hides it. Hiding is written: `{ list: 'crm_note', hidden: true }` hides that list's tab, whichever package brings it. `hidden` is accepted only here; an object's own `relatedLists` refuses it and says where it belongs. A list the owner hides by leaving it out of its own `relatedLists` stays hidden until the arrangement names it. The built-in tabs keep their own rules and are not hidden here. + - **A package that is not a `.custom` package writing either key is refused**, once at each door: saving or publishing the extension, `os validate` and `os build`, and installing the package (`VALIDATION_ERROR`; 400 at save and publish, 422 at install). Each refusal names the key, the object and the package and prescribes `place`. An extension that reaches the registry past those doors is not applied, and the boot log says so. Within one extension, a `place` entry beside the arrangement key that would replace it is refused at parse. + - **Only the object's own pair is served.** The pair is the `.custom` package of the App the object belongs to: for an object a module of an App owns, the App's pair. A `.custom` package an earlier version created for the module itself is still read while it is installed; where both write a key, the App's pair is served. The choice is by role, never by load order. What any other `.custom` package writes under these keys is not refused at the doors; the registry does not apply it, alone or beside the pair, and the boot log names the package and the object. + - **One merge, every reader.** The record page, the forms, the preview and Studio read the served object, so they show one arrangement. Removing a key, or uninstalling or disabling the `.custom` package, serves the owner's arrangement with the placements again. + - **Served reads say what the reader cannot derive.** Where a `.custom` package writes `relatedLists`, the served object carries the read decoration `_relatedListsArrangement` (`{ packageId, hidden, unlisted }`): the lists the environment hides, and whether an unlisted list shows. The record page's tab reader and the default page synthesis read it; with no decoration served they answer exactly as before. A reader's own tab order (kept per user) is still laid over this list, and a tab the environment hides is not offered to them. + - **A group the arrangement brings is a translation anchor.** `os validate`'s translation-reference rule reads an extension's `fieldGroups` too, so a bundle's `_sections` key for a group the `.custom` arrangement declares is not reported as naming nothing. + - **`hidden` on a field is not a display property a `fieldPatches` entry may set.** A hidden field is also left out of the search index and out of a form's required check, so the display whitelist is not widened. To keep a vendor field off the record page and the forms, list it in a group whose `visibleWhen` is false. That is presentation only, not access control: the field stays readable and writable through the API. Do not use it for a `required` field that has no default: the create form no longer shows the field while the save still requires it, so the form cannot be submitted. + + What to check in an app: nothing changes until a `.custom` package writes one of the two keys. A package other than a `.custom` one that wrote `fieldGroups` or `relatedLists` on an extension was refused at parse. It is now refused by the save, publish, install, `os validate` and `os build` doors, with the same prescription. Where none of those doors judges it (for example a code-defined stack that boots without `os validate` or `os build`, or a stack that names no package id), the key is not applied and the boot log names it, where the parse refused it before. +- f66340a: feat: a record-page tab title an object's `relatedLists` entry declares can be translated + + Clause-②: yes (widening) + Metadata-protocol: added + + An object-form `relatedLists` entry (`{ list, label, columns }`) titles its tab and table on the parent's record page, and its `label` wins over the child lookup field's `relatedListTitle`. The field's title had a translation key; the entry's did not, so a declared tab title showed its authored text in every locale. + + A translation bundle now carries it on the parent object, keyed by the entry's literal `list` (a dotted `object.field` is one key): + + ```ts + objects: { + account: { + _relatedLists: { + contact: { label: '联系人' }, + 'event.related_to': { label: '会议' }, + }, + }, + } + ``` + + - `@objectstack/spec`: `ObjectTranslationDataSchema._relatedLists` (a closed leaf with one key, `label`; the un-prefixed `relatedLists` is named as a rename onto `_relatedLists`). `translateObject` overlays it onto the served parent object's entries, so `GET /meta/object` serves the translated title and the console's record page shows it with no change of its own. Only an entry that authors a `label` is translated: an entry without one, a bare name and a built-in tab keep their current title (the child field's `relatedListTitle`, else the child object's plural label). A title a tenant changed keeps its text, as every other translated slot does. + - `@objectstack/lint`: `os i18n extract` scaffolds the key for every labelled entry and the coverage gate counts it; `os validate` reports a `_relatedLists` key that names no labelled entry of that object as `translation-target-unknown`. A labelled entry an object extension brings (a list placement in `place`, or a shown entry of the paired `.custom` package's `relatedLists`) is a labelled entry of the object it extends, so its key resolves; the record page shows a placed tab only where that object declares `relatedLists`. A key over a built-in tab, or over an entry the `.custom` arrangement hides, is reported with its own reason. + - `@objectstack/metadata-protocol`: a save that sends back a translated entry title (a Studio edit of the object read in another language) stores the source title instead, with an `info` advisory, as it already does for field labels. + - `@objectstack/objectql`: the packaged base `getPackagedObjectBase` hands the `/meta` read (the text a served slot is compared with) carries the tabs a code package's `place` adds to the owner's `relatedLists`, as the fold splices them (so only where the owner declares `relatedLists`). A placed title is therefore translated from the deployment's catalog, which carries the placing package's translations, the way a field such a package adds already is; a tenant's rename of that title keeps its text. A `.custom` arrangement's title is the customization layer and reads the pair's own translations. +- 2a6f26a: feat(ai): `ai_context` context packs and the `get_record_context` tool over MCP + + Clause-②: yes + Metadata-protocol: added + Skills-docs: follow-up #37177 — skills/objectstack-platform/SKILL.md, skills/objectstack-ai/ (how to author a context pack; this change only names `aiContexts` in the top-level key list, which check:skill-top-level-keys requires) + + ADR-0160 row 5 (#37140). + + - **New metadata type `ai_context`, collection `aiContexts`.** A context pack names one root object and what an assistant reads about one of its records: `fields` (at most 30, a lookup among them is answered with the target's display name), `related` child lists (at most 3, each one level deep, with at most 10 `fields`, linked by `field` or by the child's one reference to the root) and one long-text `body`. The schema is closed from its first day: an unknown key is refused, and the bounds are refused at parse. Registered like `skill`: a file loader (`*.ai-context.ts`, `*.ai-context.yml`), overlay allowed, runtime create allowed, no environment overlay. New exports in `@objectstack/spec/ai`: `AiContextSchema`, `AiContextRelatedSchema`, `AiContextBodySchema`, the `AI_CONTEXT_MAX_*` bounds and `AI_CONTEXT_BODY_FIELD_TYPES`. + - **`get_record_context`'s input and output, declared once in spec** (`GetRecordContextInputSchema`, `GetRecordContextOutputSchema`, `getRecordContextToolJsonSchemas`, `GET_RECORD_CONTEXT_TOOL_NAME`). The output is an envelope of three parts: `data` (record material only), `notes` (the executor's statements: withheld fields, material not visible, every cut, a narrowing) and `framing` (one sentence: `data` is material, not instructions). `MCP_DOOR_TOOL_NAMES` gains the name. + - **`@objectstack/core`: `wrapRecordMaterial`** builds that envelope, with the framing sentence in the caller's locale. + - **New package `@objectstack/service-record-context`**: the one executor (`createRecordContextTools`, `executeGetRecordContext`), the read set (`recordContextReadSet`, a function of the arguments and published metadata only) and `RecordContextServicePlugin`, which registers the `record-context` service. Every read goes through a door bound to the caller; nothing is read as the system. Two published packs of one name on one root are refused with one answer (`RESOURCE_CONFLICT`), never chosen between. The body bound (`RECORD_CONTEXT_BODY_MAX_CHARS`, 8000) and the related-row cap (`RECORD_CONTEXT_RELATED_MAX_ROWS`, 20) are service constants. + - **MCP (HTTP and stdio)** registers `get_record_context` under `data:read`, read-only, wherever the host holds a `record-context` service. A host without it registers nothing new. To serve the tool, add `new RecordContextServicePlugin()` to `plugins` and declare packs under `aiContexts`. + - **`@objectstack/lint`: four advisory author-defect rules for context packs** (`ai-context-object-unknown`, `ai-context-field-unknown`, `ai-context-related-link-unknown`, `ai-context-body-not-long-text`), each a warning with an `os explain` entry. `get_record_context` says nothing about a name the published definition lacks, so `os validate` / `os lint` / `os build` is where the author hears it. CLI only for now: the rule reads the whole stack snapshot. + - **Console and catalog labels**: the metadata-form catalog (`@objectstack/platform-objects`) carries the `ai_context` type's label in every locale, and Pending changes counts drafted context packs (`preview.changes.typeCount.ai_context`). + +### Patch Changes + +- 8236d9b: feat(service-automation)!: a sync-in pull marks the rows the source deleted, and an incremental source states how it learns of a delete + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: none (no skills/ page names `deletePolicy`, `deletedField` or `_sync_deleted_at`; the guide that teaches them is `content/docs/automation/jobs.mdx`, updated here) + + <!-- adr-0087: registered incremental-source-delete-policy-stated --> + + ADR-0153 D3, delete marking (#32062, slice 6). + + - **A pull marks a row the source deleted, and never deletes it.** Under `deletePolicy: 'mark'`, the reading when the key is absent, a pull stamps the platform column `_sync_deleted_at` on a row of a `synced` object that the source deleted, and clears it when a later pull reads the row again. `deletePolicy: 'ignore'` leaves every row as it is. Two detections: + - `deletedField`, on any pull that declares it: a read record whose value in that source field is truthy has its copy marked; every other read record's copy is cleared. + - Absence, on a full pull whose read was complete: every row of the mapping (`_sync_source`) the run did not read is marked. A `datasourceSource` with `full: true` is complete when its windows read to their end and no source row in the job's organization has a NULL watermark; it marks only rows whose copied watermark is at or above `watermark.start`. A `connectorSource` without a `watermark` is complete only under `paging: { style: 'none' }` (one response is the whole set); with no `paging`, or a paging style the pull does not follow yet, it marks nothing by absence. A refused or interrupted pull marks nothing by absence; a row the import runner refused was read, so it is not marked. A record whose `upsertKey` value is blank names no row, so one such record makes the run mark nothing by absence (`unjudged, rows refused`). A row pulled before the provenance columns existed carries no `_sync_source`, so it is no mapping's row: if the source has since deleted it, no pull marks it. + - Two mappings on one target: each marks and clears only the rows whose `_sync_source` is its own; a second mapping is not refused. + - **`sys_sync_run` records it.** New columns: `marked_deleted_count`, `deletes` (`judged`, `by deletedField`, `ignored`, or `unjudged, …` with the reason: `null watermark`, `no paging declared`, `pages not followed`, `rows refused`) and `skipped_null_watermark` (a datasource source's rows with a NULL watermark, counted under the organization predicate; through a plugin driver's row cap a count above the cap is recorded as the cap plus one). The end-of-pull log line says what the run marked and cleared. `job_run_id`'s and `trigger`'s descriptions now say when each is empty. + - **BREAKING: an incremental source states how it learns of a delete.** A `connectorSource` with a `watermark`, or a `datasourceSource` without `full: true`, never sees an absent row, so under `deletePolicy` absent or `'mark'` with no `deletedField` it is refused at parse (`MappingSchema`, so `defineStack` and `os validate`) and again when the pull runs (`400 VALIDATION_ERROR`, reason `delete_policy_unhonourable`). Fix: name the source's soft-delete field (`deletedField: 'is_deleted'`), or write `deletePolicy: 'ignore'`, which is what every pull did before this release. New export: `incrementalSourceDeleteRefusal` (`@objectstack/spec/data`), the rule both doors ask. + - **BREAKING: a `synced` target that withholds the provenance columns** (`systemFields: false`) is refused under `deletePolicy` absent or `'mark'` (`400 mapping_target_refused`): no row of it can carry the mark. Fix: let the platform add its columns, or write `deletePolicy: 'ignore'`. This arm is judged only when the pull runs: `os validate` and `defineStack` do not catch it, so a stack that validates green can still fail every scheduled pull. Migration entry `incremental-source-delete-policy-stated` names both arms. + - A datasource source's `deletedField` must name a field of the source object (`400 source_binding_invalid` otherwise). `deletedField` is read by truthiness: the text `'false'` or `'0'` marks the row, and on a connector source a field the records do not carry reads as falsy on every record and marks nothing. + - A stored `deletePolicy` outside `'mark'` / `'ignore'` (which the parse refuses) is refused by the pull too (`delete_policy_unhonourable`) instead of being read as `'mark'`. + - The liveness rows for `deletePolicy` and `deletedField` on both sources are `live`, and `os validate` no longer warns that nothing reads them. `paging` stays `planned`: the connector paging loop is a later change. + - A connector pull whose target definition cannot be read now says whether the object is not registered or the metadata read failed. + - A connector pull keeps the job run id and trigger only when the run record can hold them: a trigger other than `schedule` or `manual`, or a run id longer than 255 characters, is left out instead of failing the run record's open. + - `JobHandlerContext` (`@objectstack/runtime`) declares `trigger` and `runId`: the handler run form spreads the job service's context into the handler's, so every `handler` job already receives `trigger`, and `runId` under the database job adapter. The jobs guide lists both. +- 1d28405: feat(objectql)!: every row a sync-in pull writes records where it came from, and nothing else may write those columns + + Clause-②: no (narrowing) + Metadata-protocol: none + Skills-docs: none (no skills/ page names the `_sync_` columns or the synced bucket's injected columns) + + <!-- adr-0087: not-required (no-migration-prescription) No authorable key is added, removed, renamed or re-shaped, and every metadata document that parsed before parses the same. What changes is the registered shape of a `managedBy: 'synced'` object (five platform columns and one index the platform adds) and the answer a data write gets when it names a `_sync_` column: no authored value has to be rewritten, so there is nothing for a migration to prescribe and no tombstone. --> + + ADR-0153 D4, the provenance half (#32062, slice 5). + + - **Five `_sync_` columns on every `managedBy: 'synced'` object.** `resolveInjectedSystemColumns` (`@objectstack/spec/data`) now plans `_sync_source`, `_sync_external_id`, `_sync_pulled_at`, `_sync_run_id` and `_sync_deleted_at` on that bucket only (`plan.sync`), and the registry injects them as hidden, read-only system columns, with an index on (`organization_id`, `_sync_source`, `_sync_external_id`) placed after the tenant index. New exports: `SYNC_PROVENANCE_COLUMNS`, `SYNC_PROVENANCE_PREFIX`, `SyncProvenanceColumn`, `SYNC_PROVENANCE_FIELD_DEFS`. A synced object that declares `systemFields: false` gets none of them. + - **Both pulls stamp them.** A connector pull and a datasource pull write `_sync_source` (the mapping), `_sync_external_id` (the row's `upsertKey` value as text; a key of several fields is a JSON array of the values in `upsertKey` order, such as `["10","A-1"]`), `_sync_pulled_at` and `_sync_run_id` (the `sys_sync_run` row; not written when no run ledger is composed) on every row. `_sync_deleted_at` exists but stays empty until delete marking (D3) lands. A mapping whose `fieldMapping` targets a `_sync_` column is refused with `400 mapping_target_refused` when it runs (it was refused before as an unknown target). A connector pull whose target object's definition cannot be read is now refused the same way before it calls the connector, instead of writing rows it cannot stamp; the datasource pull already refused it. + - **BREAKING: a `_sync_` column in any other write is refused.** The engine refuses an insert or update naming a `_sync_` key with `400 ERR_SYNC_PROVENANCE_WRITE_REFUSED`, before middleware, defaults and hooks run, whatever the caller's context, `isSystem` included. A `_sync_` key a `beforeInsert` or `beforeUpdate` hook assigns, changes or removes is refused the same way before the driver is called, on any write, the pull's own included, so the pull's stamps are stored exactly as it wrote them. Only the pull's own write is admitted (`markSyncPullWrite`, exported from `@objectstack/objectql` with `SYNC_PULL_WRITE`, `SyncProvenanceWriteRefusedError` and `SYNC_PROVENANCE_WRITE_REFUSED_CODE`). The mark is consumed by that write, so a hook or flow it triggers writes as any other system caller and is refused the same way. Fix: leave the `_sync_` columns out of the write and out of your hooks; the next pull of the mapping stamps them. + - Load-time diagnostics leave the injected `_sync_` columns out when they judge a served synced object, so it is not flagged for the reserved prefix; an author field under a `_sync_` name is still refused. +- ef39b2c: fix(objectql, plugin-audit): a database session lock whose connection stalls no longer hangs the audit sealer, `os migrate audit-* --apply` or a migrator's release + + Clause-②: no + Metadata-protocol: none + + A held database session lock (the audit seal lock, and the schema-migration lock) used to wait for its connection with no limit when it checked or let go of the lock. A connection stalled half-open, with no reply and no reset, never fails a statement, so the liveness probe (`select 1`), the unlock statement and the close of the raw connection could each wait for good. That hung a sealer pass checking its lock before a checkpoint, the `finish()` of an `os migrate audit-* --apply` run, and a migrator's release. + + Each of the three steps now gives up after 10 seconds (`DATABASE_SESSION_LOCK_ANSWER_MS`). A live session answers each one in milliseconds and waits exactly as before. + + - A probe the session does not answer in time reads as a lost lock. The session is not probed again, and the release sends it no unlock: it closes the connection, which releases the lock. + - An `--apply` run whose lock's session stopped answering reports the lock lost, as for a session that ended: it prints the line at error, names `os audit verify` and exits non-zero. The line now reads `(its database session ended, or stopped answering)`. + - A sealer pass whose lock's session stops answering reports that the audit seal lock lapsed and writes no checkpoint. The next pass tries again. + - The schema-migration lock runs the same statements. A release on a session that has stopped answering returns after the bound instead of hanging the migration or the boot. The lock then stays with the database session until that connection dies, as it would if the process had been killed. + + Nothing an author writes, no exported signature and no statement changes. +- 93fa4f9: fix(i18n)!: a refusal names fields, options and objects in the declared `sourceLocale` as authored + + Clause-②: yes (narrowing) — `ValidationMessageContext.labelTranslation` is a new optional member (a widening), and `ValidationMessageContext.translate` no longer translates the labels a refusal names (a narrowing): a direct caller of `validateRecord`, `validateInsertValues` or `evaluateValidationRules` that passes `messages: { locale, objectName, translate }` now gets the declared labels until it also passes `labelTranslation`. + Metadata-protocol: none + Skills-docs: follow-up owed — skills/objectstack-i18n/SKILL.md, evals + + <!-- adr-0087: not-required (runtime-interface-only packages/objectql/src/validation/record-validator.ts#ValidationMessageContext) the narrowed behaviour belongs to an input member of a runtime TypeScript interface, the messages option of the published validators; no packages/spec schema, registered node type, stored row or ADR-0087 conversion surface names it, and no key, value or default a metadata author can write changes, so there is nothing for objectstack migrate meta to rewrite --> + + **BREAKING** for a TypeScript caller of `validateRecord`, `validateInsertValues` or `evaluateValidationRules` (`@objectstack/objectql`) that passes its own `messages`. Engine writes are not affected: the engine builds `labelTranslation` itself from the i18n service. + + The labels a write refusal names are now resolved the way `GET /meta` serves them: `translateObject` over the deployment's translations, with the request's locale, the declared fallback chain and the authored language (`i18n.sourceLocale`, else `defaultLocale`). They are no longer looked up through `II18nService.t()`. Before this, an app authored in English that defaults its users to Chinese (`sourceLocale: 'en'`, `defaultLocale: 'zh-CN'`) answered an `en` request with the Chinese row in its validation, duplicate-record, delete-restricted and restore refusals, and in the security layer's master-detail and field-write `userMessage`. `/meta` answered the same request with the English label. + + This covers a field label, a choice option label (field entry, then the shared picklist's), an object label, the master object named by the master-detail write gate and the fields named by the field-write gate. Message templates and authored rule messages still go through `t()`. + + What follows from it: + + - In the declared `sourceLocale`, a refusal names labels exactly as declared. In every other locale it follows the same chain `/meta` does. + - The labels come from `getLocales()` and `getTranslations()`. An i18n double that implements only `t()` no longer translates labels and leaves the declared ones in place, as `/meta` already did. + - On the in-memory i18n fallback (`@objectstack/core`), which reports no `getFallbackLocale()`, a request in a locale with no bundle now gets the declared label, as `/meta` does. Before, it got the default locale's row. + - A platform-injected system field (`owner_id`, `created_at`, …) that keeps its English default label is named by the built-in translation of that label, as `/meta` names it. + - The security layer's labels now negotiate the request locale the way `/meta` does, so a `zh-TW` request reads the `zh-CN` rows, in step with its `zh-CN` sentence. + + ## What a direct validator caller sees + + | `messages` passed to `validateRecord` / `validateInsertValues` / `evaluateValidationRules` | was | now | + |:---|:---|:---| + | `{ locale, objectName, translate }` | field, option and object labels translated through `translate` | declared labels in every locale; `translate` renders message templates only | + | `{ locale, objectName, translate, labelTranslation }` | not a member of the type | labels translated through `labelTranslation`, the way `GET /meta` serves them | + + What to do on upgrade: add `labelTranslation: () => ({ bundle, options })` to the `messages` you pass, where `bundle` is a `TranslationBundle` keyed by locale and `options` is a `ResolveOptions` (both from `@objectstack/spec/system`). The pair is typed `ValidationLabelTranslation`, now exported as a type from `@objectstack/objectql` and `@objectstack/objectql/core`. Nothing else changes: the call compiles as before, and no verdict, code or status moves. +- 9fea316: fix(objectql): a roll-up `count`/`sum` that arrives with a restart now says at boot that its stored rows hold NULL, and names `os migrate summary-nulls` + + Clause-②: no + Metadata-protocol: none + + A roll-up `summary` field added by an install in a running process is computed on the rows already stored. One that arrives with a restart (a code-defined app's new version that boots with the field, a marketplace install loaded at the next boot, a ledger entry rehydrated at boot) is not: the boot treats every roll-up it serves as already computed, so those rows kept reading NULL until one of their child rows was written, with nothing in the log. + + At `kernel:bootstrapped` the ObjectQL plugin now reads the first 100 rows of each object that owns a `count` or `sum` roll-up (one read per such object, `id` and the roll-up columns only) and, when a sampled row holds NULL there, logs one warning naming each roll-up, how many sampled rows hold NULL, and the commands that fill them: `os migrate summary-nulls --object <object>` (dry run), then the same with `--apply`. A `min`/`max`/`avg` roll-up is not named: NULL there is its reading of "no child rows". The boot writes nothing and never fails over this check. +- e6e5224: fix(objectql): the engine's aggregate door answers a `sum` / `avg` / `min` / `max` over a `formula` with the stored-field remedy, not "count the rows" + + Clause-②: no + Metadata-protocol: none + + `engine.aggregate` already refused a value-reading aggregation over a `formula` field with `INVALID_FIELD` / 400 before any driver ran, but its route told the author to "aggregate a field of one of those types, or count the rows with count" — and a count substituted for a total is a plausible wrong number. The route for that pair is now the spec's one prescription, `VIRTUAL_FIELD_AGGREGATE_REMEDY` (`@objectstack/spec/data`, judged by `virtualFieldAggregateRemedy`): make it a field of its return type with the same `expression` (computed and stored on write) and aggregate that. It still comes right after "The query was NOT run.", inside the 500 characters the REST door keeps. + + Which pairs are refused does not change, nor does any other pair's wording: a refused `sum` over a `text`, `select` or JSON-stored field keeps its accepted-types route. +- 94a2d8b: fix(objectql)!: a predicate update judges each matched row against the parent summaries the rows judged before it move, as consecutive by-id updates do + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is the summary value a rule reads while one predicate update is judged: no stored row, registry key or authored value changes, so there is nothing for a migration to rewrite and no tombstone. --> + + **BREAKING** for a predicate update (`update(object, patch, { where, multi: true })`, a flow `update_record` step with `multi: true`) of a child object whose validation rule reads a roll-up `summary` of a parent one hop through a reference (`record.inv.primaries > 0`), or whose field-level `requiredWhen` reads one on `parent` (`parent.line_count >= 3`), or that reads a `formula` or stored computed field of the parent calculated from one (`record.project.remaining`, `remaining = budget - spent`). A bulk create and a bulk update already equal one-by-one writes for a rule reading the summary itself; this extends that to the update that selects its rows by a filter, calculated parent fields included. + + - FROM: the matched rows' related parents and master-detail headers were read once, and every row judged the summary as it stood before the update: "one primary line per invoice" (`record.is_primary == true && record.inv.primaries > 0`) refused the second of two lines made primary one by one, and admitted both made primary by one predicate update. + - TO: each matched row judges the summary as the rows judged before it leave it, for `count`, `sum`, `min`, `max` and `avg`, a row moving to another parent included: the base is read in the database (every child as stored for `count` / `sum` / `avg`, the children outside the matched set for `min` / `max`, one grouped aggregate per summary a rule reads) and the matched rows are folded in memory. A parent field calculated from a folded summary is computed again over the parent with the folded value. The update is refused with `VALIDATION_FAILED` and writes nothing, as it does for any refused row. Only an object with such a rule, on an update matching more than one row, reads the base (and, when a calculated field reads a folded summary, the parents' stored rows once). + - The answer moves both ways. Mostly it narrows: main admitted a row that one-by-one refuses, and it is refused now. It also admits a row main refused when the rows judged before it move the summary toward admitting it, as one by one does. For example, with `parent.line_count >= 3` requiring a field, a row leaving that parent lowers the count the later rows read. + + **Not moved.** A rule that reads no summary, a predicate update matching one row, a by-id update, hooks and flow steps (they read the value from before the update), and a rule of the parent itself (it judges the summary once, after the write). Three cases keep reading the stored value, as before, and each one covers that summary for EVERY parent the update reads it for, not only the parent that caused it: + - a summary whose `filter` reads through another reference, as a dotted path (`{ 'account.kind': 'x' }`) or in the nested form (`{ account: { status: 'x' } }`), or that the in-memory filter walker refuses; + - a summary meeting a value that is not a number, in any matched row or in any parent's base; + - a `min` / `max` when any one parent holds more than 5,000 matched rows. + + The fix for a caller: update the rows the rule refuses on their own, or narrow the filter so the update matches the rows the rule admits. +- 4db08d5: fix(audit): a search the server widens never names a column the caller may not query (#34700) + + Clause-②: no + Metadata-protocol: none + Skills-docs: none — no skill or docs page teaches this search set. + + - The server-chosen search set of an object now leaves out every column the object's own query guard would refuse this caller, as it already leaves out a field the caller may not query (#25672). A column the caller names in `searchFields` is not left out: the guard judges it as before. + - `registerMiddleware(fn, { object, withholdSearchFields })`: a guard middleware names those columns in its own registration (`EngineMiddlewareOptions.withholdSearchFields`, asked for the reads the middleware runs on). plugin-audit's guards on `sys_audit_log` and `sys_activity` declare one, answered by the guard's own rule. +- d17adf5: fix(objectql)!: a multi-row insert judges a rule reading a parent field calculated from a roll-up as one-by-one inserts judge it + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export of the package entry changes shape. What moves is the value a rule reads for a parent formula or stored computed field while one multi-row insert is judged, and the value a predicate update's rule reads for a roll-up its patch cannot move: no stored row, registry key or authored value changes, so there is nothing for a migration to rewrite and no tombstone. --> + + **BREAKING** for a multi-row insert (`insert(object, rows)`, an import batch, `insertMany`) of a child object whose validation rule, or field-level `requiredWhen` on `parent`, reads a `formula` or stored computed field of the parent calculated from a roll-up `summary` (`record.bud.remaining`, `remaining = budget - total`). + + - FROM: the batch moved the parent roll-up itself by the rows admitted before each row, but a parent field calculated from it kept its stored value: "a line may not exceed the remaining budget" (`record.amount > record.bud.remaining`) refused the third line of 40 against a budget of 100 written one by one, and admitted all three written in one call. + - TO: the field is computed again over the moved roll-ups, as a predicate update already computes it, carrying the parent's stored image from row to row as each one-by-one recompute stores it. The batch is refused with `VALIDATION_FAILED` and writes nothing, as for any refused row; the insert preview (`validate` with `mode: 'insert'`) answers the same row invalid, and judges a master-detail header column the caller is not served as empty at every row. Only a batch with a rule reading that parent pays one read of its parent rows. + - The answer moves both ways. Mostly it narrows: a row main admitted against the stored calculated value is refused when the rows before it move that value over the rule's line. It also admits a row main refused when the rows before it move the value back under the line, as one by one does. + - A calculated field that also reads a roll-up the insert does not move (an `avg`, a filter through a reference, or one left stored from the row where it meets a value that is not a number) is computed over the moved and the stored values as they stand. + + The insert accumulation also leaves out a roll-up whose `filter` reads a related record in the nested form (`{ account: { status: 'x' } }`), as it already left out the dotted form and as the predicate update leaves out both. + + A predicate update (`multi: true`) whose patch writes no foreign key, source field or field the filter reads (as a key, or as a `{ $field }` comparand or `addDays` offset) of a roll-up its rules read no longer aggregates a base for it: its rules read the stored value, as the by-id update does, with no aggregate read. So the 34465 note's "one grouped aggregate per summary a rule reads" and its three stored-value cases hold for the roll-ups the patch can move; one it cannot move is neither aggregated nor folded. Each roll-up a predicate update leaves unfolded now logs one debug line naming the object, parent, field and reason (`filter`, `not_a_number`, `exclusion_budget`). + + The fix for a caller: insert the rows the rule refuses on their own, or split the batch so each part fits the rule. +- bf69cb4: fix(objectql): `aggregate` refuses a dotted `groupBy` entry with `INVALID_FIELD` / 400, before any driver runs + + Clause-②: no (narrowing) + Metadata-protocol: none + + `groupBy` groups by the columns of the aggregated object itself. The REST query door already refused a dotted entry such as `purchase_order.name` at ingress, but a caller that reaches `engine.aggregate` past that door — the MCP `aggregate_records` tool, a flow, a hook — handed the dotted name to the driver as a qualified column. On SQLite a path of one or two hops came back as the driver's missing-column refusal (advising a schema sync that cannot help), and three or four hops (`purchase_order.requisition.requester.department.name`) came back `500 DATABASE_ERROR`; an engine that aggregates in memory put every row into one null group. + + `engine.aggregate` now refuses any dotted `groupBy` entry that is not itself a field of the object, in either form (`'a.b'` or `{ field: 'a.b' }`, a date bucket included), with `INVALID_FIELD` / 400 at its position (`groupBy.N` or `groupBy.N.field`), naming the path and the depth `groupBy` serves (0 hops, the object's own columns by their bare names). No statement reaches the database. The refused set has three shapes: a path through a relation field (`purchase_order.requisition.requester.department.name`), a sub-path into a stored value (`address.city` on a JSON field), and the object's own name used as a qualifier (`po_line.amount`). For a relation path the refusal counts the hops and says to group by the relation field itself (one group per related record) or to aggregate the related object; for a multi-value relation it says to aggregate the related object; for the other two shapes it says to name the field without a qualifier, or to store the part in a field of its own. + + **BREAKING**: a dotted `groupBy` entry that reaches `engine.aggregate` past the REST query door (the MCP `aggregate_records` tool, a flow, a hook) is now refused `INVALID_FIELD` / 400 before any statement runs, for all three shapes. What they answered before: a relation path, on SQLite, the driver's missing-column refusal (one or two hops) or `500 DATABASE_ERROR` (three or four), and on an engine that aggregates in memory one null group under 200; a JSON sub-path, on SQLite, the driver's own `INVALID_FIELD` / 400 after the statement ran, and in memory groups by the nested value; the object's own name as a qualifier, on SQLite, an answer under 200 grouped by the bare column. A caller that relied on either of the last two now gets a 400 and must drop the qualifier or store the part in a field of its own. It ships `patch` because no metadata an author writes changes (`Metadata-protocol: none`): the refused input is a runtime query that the REST query door already refused in the same three shapes, and the fix for a caller that hits it is in the refusal. + + **Unchanged.** A `groupBy` naming the relation field itself (`purchase_order`), every other `groupBy` entry, an alias that contains a dot, and the REST door's own refusal of a dotted entry. A genuine database fault still answers `DATABASE_ERROR` / 500. + + <!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed or renamed, and nothing stored is rewritten: what moved is that engine.aggregate refuses a dotted groupBy entry (a relation path, a JSON sub-path, the object's own name as a qualifier), which the REST query door already refused. There is nothing for a migration to rewrite and no tombstone; the one-line fix for a refused query is in the refusal: group by the relation field itself, aggregate the related object, or drop the qualifier. --> +- a6cf988: fix(objectql)!: an action body's write inside `ctx.api.transaction` keeps its audit and activity rows beside a `telemetry` datasource, and a write it makes to an object on another datasource is refused + + Clause-②: yes (narrowing) — narrowed: inside a transaction opened by `ScopedContext`'s discrete `beginTransaction` / `commitTransaction` / `rollbackTransaction` trio (the sandbox's `ctx.api.transaction`), an `insert` / `update` / `delete` of a business object that resolves to a datasource other than the transaction's is now refused with `CrossDatasourceTransactionWriteError` (`ERR_CROSS_DATASOURCE_TRANSACTION_WRITE`, answered `400` at the action door) before anything runs; it used to run on the transaction's connection, the wrong one. The same write inside `transaction(cb)` was already refused. + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed or renamed, and nothing stored is rewritten: the moved answer is whether a write under a trio-opened transaction handle may reach a driver that does not own that handle. The one-line fix for a refused write is in the body: keep every object written inside one ctx.api.transaction on one datasource, or split the work into one transaction per datasource. --> + + **BREAKING** for an action, hook or job body whose `ctx.api.transaction` writes an object bound to a datasource other than the default one (an object `datasource:` binding or a `datasourceMapping` rule). That write is now refused, naming both datasources, and the body's transaction rolls back. Before, it ran on the default datasource's connection: on SQLite it failed with `no such table`, and on Postgres the failed statement turned the whole transaction's COMMIT into a rollback while the action answered success. The fix: keep every object written inside one `ctx.api.transaction` on one datasource, or split the work into one transaction per datasource and reconcile them yourself. A deployment with one datasource sees no change. + + **The compliance rows.** On every deployment with a `telemetry` datasource — each `os dev` boot (the sibling SQLite file) and `os serve` with `OS_TELEMETRY_DB` — an action body's write inside `ctx.api.transaction` committed but lost its `sys_audit_log` and `sys_activity` rows: plugin-audit's ledger insert was handed the default datasource's transaction handle while routed to `telemetry`, and ran on the connection that has no such table. The API answered `200` and one `Audit write FAILED on sys_audit_log` line was the only trace. The rows now land, written on the `telemetry` datasource's own connection outside the body's transaction, exactly as they already were inside `transaction(cb)` (ADR-0119, amended 2026-08-06): a body transaction that rolls back keeps its ledger rows, the decided direction of error for an append-only ledger. The workaround `OS_TELEMETRY_DB=0` is no longer needed. + + The trio records which driver owns each handle it opens, keyed by the handle and dropped at commit or rollback, and the same-origin gate reads that record for a handle the engine's ambient transaction store does not hold. An `async: true` hook's run, detached from the units open at its dispatch, is not judged against that record: its writes run outside any transaction, as they do under `transaction(cb)`. A handle the engine never opened, passed in as `execCtx.transaction`, is still unattributed and unjudged (ADR-0119's declared limit, narrowed by the 2026-11-18 note). No `IDataDriver` change. +- b7d2474: feat(spec, objectql): a `summary` over a plain `dynamic` currency amount may declare `currencyMode: 'dynamic'` + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: follow-up owed — skills/objectstack-data/evals/objects-fields-relationships.json (eval 20's expected output still says `dynamic` is admitted only on a roll-up of a home amount; no SKILL.md teaches a summary's currency, and content/docs/data-modeling/currency.mdx is updated here) + + A `summary` (`sum`, `min`, `max`, `avg`) that totals a child `currency` field in `dynamic` mode (no `currencyConfig`, or `currencyMode: 'dynamic'`) may now declare `currencyConfig: { currencyMode: 'dynamic' }`, with no `defaultCurrency`. A `dynamic` amount is in the tenant default currency, `localization.currency`, by definition, so its total is too, and the Console's roll-up faces draw it in that currency, as they already draw a roll-up of a stored home amount. Before, `defineStack` (`os validate`, the build) and a save or publish through the metadata API refused it with "… is not a stored home amount, so its rows are not known to be in the home currency", so a total of tenant-currency amounts (a timesheet's cost over its time entries' cost) rendered as a bare number beside currency cells. + + Levels follow the metadata protocol: `@objectstack/spec` takes `minor` for the newly accepted declaration and the new export; `@objectstack/objectql` takes `patch` (its door reads the spec predicate, no protocol of its own moves). + + Both doors read one new predicate, `isTenantCurrencyAmount` (`@objectstack/spec/data`): a stored `currency` field in `dynamic` mode, of which a stored home amount is one. Unchanged: + + - A summary that declares no `currencyConfig` still has no currency: nothing is inferred. + - `dynamic` over a record-mode child amount is refused as before, prescribing its stored home amount (or `currencyMode: 'record'` when the amounts follow this record through the roll-up's master_detail); over a `fixed` child amount it is refused prescribing that code; over a plain `number`, a `formula` or another `summary` it is refused. + + The refusal's wording moves with the admitted set: its head now reads "`currencyMode: 'dynamic'` on a summary is admitted only for a roll-up of an amount in the organization's home currency: a child `currency` field in `dynamic` mode (an absent `currencyMode` is `dynamic`), a stored home amount included, …", a child that is not a `currency` field is named by its type ("is a 'number' field, not a `currency` field in `dynamic` mode"), and the prescription lists the child's amounts in the home currency instead of its home amounts alone. The object door's list of admitted roll-up currencies says the same. +- 50f85e9: feat(spec): a formula field can return `percent` + + Clause-②: yes (widening) + Metadata-protocol: added + + A ratio formula (budget used, gross margin) can now declare `returnType: 'percent'` and read and display as a `percent` field does, instead of a bare decimal beside the stored percentages. + + - **The value.** A `percent` formula result is read exactly as a `percent` field reads its stored value: a fraction (`0.25` shows `25%`, so the expression divides and does not multiply by 100), unless the formula declares a `max` above 1, then percentage points (`percentScaleOf`). + - **Its places.** `scale` counts the decimal places of the displayed percentage, as on a `percent` field (absent: 0). The engine rounds a fraction result to `scale + 2` places and a whole percentage to `scale`, so `scale: 1` keeps 0.417 (41.7%) instead of rounding it to 0.4. + - **An existing `percent` field computed from its `expression` rounds the same way.** The engine shares one rounding step for computed values, so a stored `percent` field that computes from an `expression` now keeps `scale + 2` places for a fraction (and `scale` for a whole percentage). Before, its computed fraction was rounded to `scale` itself: at `scale: 1`, 0.417 was stored as 0.4 and read 40.0%; it is now stored 0.417 and reads 41.7%. The change applies to the next computed write; rows written earlier are not rewritten. + - **Its face.** `percentDisplay` applies to a `percent` formula too (bar or plain). The formula renderer formats the result with the percent formatter, and the field and object forms offer `percent` as a return type. Editing the expression in the Studio field inspector keeps a declared `percent` (or `currency`) unless the new expression proves text, a boolean or a date. + - **Declared, never inferred.** No CEL type proves a quotient is a percentage, so authoring keeps a declared `percent` where it would otherwise stamp `number`. Readers that switch on `returnType` (display-name eligibility, filter operator and comparand typing) treat `percent` as a number. + + The enum only gains a member: every formula that parsed before parses the same, and nothing stored needs migrating. +- 4b1eb0e: fix(plugin-audit): the platform's own audit and activity rows are no longer judged as an automation's insert + + Clause-②: yes (widening) + Metadata-protocol: none + + The audit writer records every audited write with a `sys_audit_log` row and its `sys_activity` mirror. It wrote both through the `sudo()` of the hook api it is handed, and `sudo()` spreads the audited write's context. When that write was made by app-authored automation, the elevation kept the automation's provenance: an action body's or a system hook's app-automation elevation mark, or a flow run's `flowRunId`. plugin-security therefore read the platform's own ledger rows as the automation inserting into an append-only object. Today that logged the "Deprecated: inserting into 'sys_audit_log'" (and `'sys_activity'`) warning on the first such write. Once the announced refusal of those inserts ships, it would have refused the rows and lost the audit trail of every action-body, system-hook and flow write. + + - The audit writer now writes both rows through the platform's own system api. `platformSystemApi(api)` is a new export of `@objectstack/objectql` and `@objectstack/objectql/core`. It derives from a hook's api the same elevated context `sudo()` gives, minus the app-automation mark and minus `flowRunId`. Every other key is kept, so the rows stay in the write's transaction, organization and attribution. On an app-authored hook's api it sheds nothing: there it returns what that api's `sudo()` returns, the mark and `flowRunId` kept. + - `withoutAppAutomationElevation(context)` is a new export of `@objectstack/core`. It returns the context without the mark. + - What an automation writes itself is unchanged. An action body's or a hook's insert into `sys_activity` or `sys_audit_log`, through its `ctx.api` or its `ctx.api.sudo()`, still carries the mark and still logs the deprecation. `sudo()` itself is unchanged too: it never sheds the mark. +- c480f33: fix(objectql): the loser of a concurrent update answers 409 CONCURRENT_UPDATE on any update that opens its own unit of work + + Clause-②: no + Metadata-protocol: none + + Two members of a queue claiming the same parked record at the same moment get one success and one `409 CONCURRENT_UPDATE`, as ADR-0142 D4 says, on every object. On a single-connection store such as SQLite, the loser got `404 RECORD_NOT_FOUND` (private sharing) or `403 PERMISSION_DENIED` (public read) instead whenever the update opened its own unit of work. An update does that in two cases, and the wrong answer has a different history in each: + + - The object carries a metadata `beforeUpdate` hook. This case opens the unit since 18.6.0, so the loser answered 409 in 18.5.0 and 404 / 403 in 18.6.0. It answers 409 again. + - The object carries a blocking (`onError: abort`, the default) or conditioned metadata `afterUpdate` hook. This case already opened the unit in 18.5.0, so the loser answered 404 / 403 in 18.5.0 and 18.6.0. It now answers 409. + + The stored owner was always right; only the loser's answer was wrong. + + The cause: the unit exists so that a refusal later in the write rolls back what the write's hooks wrote through `ctx.api`, the row included. That unit opened around the whole update, the authorization middleware included. On SQLite the second writer then waited for the first one's commit before its authorization gate read the record, and by then the record belonged to someone else. The unit now opens around the engine body only: the middleware runs before it, as it does for an update that opens no unit, and the hooks, the row write and the `after*` chain still run inside it and still roll back together. + + What a middleware does after `next()` on such an update now runs after the commit, as it does on an object with no metadata update hook. For the `beforeUpdate` case that is how 18.5.0 behaved. For the `afterUpdate` case it is not a return to an earlier release: from 18.0.0, when that unit first shipped, through 18.6.0 that code ran inside the unit. + + Nothing to change in an app. +- 65b67be: feat(mcp): `aggregate_records` orders, cuts and counts its groups in the database + + Clause-②: yes (widening: `orderBy` and `limit` arguments on `aggregate_records`) + Metadata-protocol: none + + A ranking question ("the top five customers by revenue") over more groups than the tool's row cap used to come back as every group, or the first page of them, in no stated order, and the client ranked what it happened to get. `aggregate_records` now takes `orderBy` — a list of `{ field, order }` naming an aggregation alias or a group key (its alias when it has one) — and `limit` (at most the row cap). The database orders the groups, cuts them, and counts how many groups it formed before the cut, in one statement; the result carries the groups, `totalGroups` (the key the tool already answers, now the database's count of the groups before the cut), and `truncated: true` when more groups existed than came back. + + - An order key that names no column of the aggregated row is refused `INVALID_SORT` / 400, naming the columns the query projects. + - Only a driver that runs the cut in its own SQL statement serves it: `driver-sql` (every dialect it speaks; the window `count(*) over ()` needs MySQL 8 or later), the WASM SQLite driver, and the Turso driver's local and replica faces. Every other driver (the in-memory driver, MongoDB, OData, Turso's remote face), an aggregate the engine computes in memory (a date bucket, a reference timezone or a measure filter the driver does not run), and an aggregate with `having` are refused `INVALID_QUERY` / 400 before anything is read. Groups are never ordered or cut in the application. + - On an order key without a `rank`, a NULL ranks last in either direction, except a `sum` or a count with no value, which ranks as the `0` it is served as. Group keys the order does not name, and a group key it names only by a `rank`, break ties, ascending, NULL last, so two runs of one call answer the same groups in the same order. + - An order key may carry a `rank`, a list of the column's values: the statement ranks each listed value by its position and every other value (a NULL among them) on one rank past them, before the cut, so the unlisted values come after the listed ones ascending and before them descending; among themselves they follow the column's own ascending order, NULL last. It is the tool's own, never an `aggregate_records` argument. + - A `limit` with no `orderBy` keeps the declared option order the uncut answer already follows: groups keyed by a leading select or radio field come back in the order the field declares its options, a value no option declares last, and the database takes that order before the cut, so the cut keeps the first declared groups. An `orderBy` the caller sends overrides it. + - The cut answer carries what the uncut one does: a fixed-currency amount's currency in `currencies`, and `KEY__label` beside each lookup or master-detail group key, the record's name read with the caller's own permissions. + - An amount whose records each carry their own currency is ranked by its bare numbers across currencies: the tool description says to rank it inside one currency by filtering `where` on its currency code field. + - Without `orderBy` and `limit` the tool answers as before. + + `@objectstack/objectql` exports `AGGREGATE_ORDER_CUT`, the engine-internal read option of `aggregate` that carries the request (a symbol, so no wire request can set it), with the `AggregateOrderCutRequest`, `AggregateOrderKey` and `AggregateOrderCutOutcome` types. `McpDataBridge` gains the optional member `aggregateGroups`; a bridge without it refuses `orderBy` / `limit` with `NOT_IMPLEMENTED` / 501 and keeps serving the rest of the tool. Nothing that was accepted before is refused. +- 1caee8c: feat(mcp): "each X with its latest Y" in one `query_records` call — `latestPer` + + Clause-②: yes (widening): a new read form on the published MCP tool surface. Judged from the card content; the build confirms it + Metadata-protocol: none + + `query_records` takes `latestPer: { by, orderBy }`: one row per group, the group's first row in the given order. `by` names 1 to 3 fields, `orderBy` 1 to 3 keys (`asc` / `desc`); a tie goes to the record id in the direction of the last key, and an empty order value ranks last. "Each account with its latest deal" is `{ objectName: 'crm_opportunity', latestPer: { by: ['account'], orderBy: [{ field: 'close_date', order: 'desc' }] } }`. + + - The row is chosen among the rows the caller may read and the `where` admits: a group whose newest row is hidden from the caller answers its newest readable row, never the hidden one and never nothing. The organization wall holds inside the choice. Field masking still applies to the returned rows. + - A partition or order field the caller may not read is refused as it is in `orderBy`; a computed, JSON or multi-value field, or a dotted path, is refused as a partition or order field. + - `limit` counts groups, capped at the tool's `maxLimit` like any list. The answer is `{ object, records, hasMore }` and never a `total`; when more groups exist than came back it carries `truncated: true`. + - Served by the SQL driver (Postgres, MySQL, SQLite) and by `driver-sqlite-wasm` and the Turso driver on a local or embedded-replica database: the driver compiles a `ROW_NUMBER()` window over the read's own scoped selection. Every other driver (in-memory, Turso's remote connection, MongoDB), an object with an `afterFind` hook and an object with object-scoped read middleware refuse with `INVALID_QUERY` / 400 before anything is read. The Turso driver's remote face refuses the directive itself too. + - New exports: `LATEST_PER`, `LATEST_PER_MAX_KEYS` and the `LatestPerRequest` / `LatestPerOrder` / `LatestPerOutcome` types from `@objectstack/objectql`; `LATEST_PER_DIRECTIVE`, `latestPerDirectiveOf` and the `LatestPerDirective` / `LatestPerDirectiveOrder` types from `@objectstack/driver-sql`; `McpLatestPer` from `@objectstack/mcp`. The request rides an in-process read option, never a wire or query key; `@objectstack/spec` is unchanged. + + Without `latestPer`, `query_records` and every read are unchanged. +- 5cd2b54: fix(objectql): a trio transaction handle that committed or rolled back reads as closed, as a closed `transaction()` unit handle does + + Clause-②: no + Metadata-protocol: none + + `ScopedContext`'s discrete `beginTransaction` / `commitTransaction` / `rollbackTransaction` trio (the sandbox runner's `ctx.api.transaction`) now marks its handle closed when it commits or rolls it back, instead of only dropping the handle's owner record. The engine's closed-handle check answers `true` for it, so work that still carries the handle afterwards runs outside any transaction, on its own connection, exactly as late work carrying a closed `transaction()` unit handle already did. Before, such a handle read as an unattributed one: a late write routed to another datasource was handed the dead foreign handle, and a late write on the same datasource was handed the finished handle. `openTransactionKind` answers `'none'` for a closed trio handle, where it answered `'separate'`. A driver that hands out the same handle object on a later `beginTransaction` gets it back open. +- 43639a6: fix(objectql): insert and delete open their own unit of work around the engine body, as update does + + Clause-②: no + Metadata-protocol: none + + An insert or delete opens its own unit of work when the object carries a metadata `before*` hook on that verb, or a blocking (`onError: abort`, the default) or conditioned metadata `after*` hook. The unit exists so that a refusal later in the write rolls back what the write's hooks wrote through `ctx.api`, the row included. Update moves that unit around the engine body only in this same release; insert and delete opened it around the whole write, the middleware chain included. All three verbs now follow one rule: the middleware chain, the authorization gate included, runs before the unit opens, and the hooks, the row write and the `after*` chain run inside it and still roll back together. + + What changes for an insert or delete on such an object: + + - On a single-connection store such as SQLite, a writer whose authorization gate or middleware is still running no longer holds the store's only connection, so other writers are no longer queued behind it. + - What a middleware does after `next()` now runs after the commit, as it already does for an update and for an insert or delete on an object with no such hook. A middleware that throws after `next()` no longer rolls the row back on a hooked object; it never did on any other object. + + This patch does not address the answer the loser of two concurrent deletes of one row gets. + + Nothing to change in an app. +- c321914: fix(objectql,service-analytics): `query_dataset`'s ObjectQL face orders and cuts a top-N in the database instead of reading every group + + Clause-②: yes + Metadata-protocol: none + + A top-N (`order` with a `limit`, optionally an `offset`) on the analytics ObjectQL face — date-bucketed queries, `$field` filters, drivers without raw SQL — used to read every group and cut in memory. On a driver that compiles the engine's order-and-cut (the SQL driver family: `driver-sql`, the WASM SQLite driver, Turso's local and replica faces) the face now hands the engine its order and `offset + limit`, the database orders, cuts and counts in one statement, and only the cut rows are read. `totalGroups` stays the count of every group, taken from that statement. + + Visible change: a text-ordered top-N on such a driver now returns the database's choice of groups — its collation, NULL last in both directions — the same as the native SQL face and `aggregate_records`, instead of the in-memory comparator's (`localeCompare`, `''` read as empty). + + Where the engine cannot serve the cut — the in-memory driver, MongoDB, OData, Turso's remote face, a date bucket or reference timezone the driver does not compile, a measure filter it does not evaluate — the face reads every group and cuts in memory as before, and no refusal reaches the caller. A select or lookup dimension ordered by its display label is still cut in memory, by label. + + `@objectstack/objectql`: an `AGGREGATE_ORDER_CUT` request may set `declinable: true`; where the cut cannot be served the engine then reads nothing, answers `[]`, leaves `outcome` unset and records the reason on the request's new `declined` slot instead of refusing `INVALID_QUERY` / 400. Without the flag nothing changes: `aggregate_records` keeps its refusal, and `AggregateOrderCutOutcome` is unchanged. +- 37f7814: fix(objectql)!: a by-id delete whose driver removes nothing after the row was read answers RECORD_NOT_FOUND and runs no after-delete work + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is the answer an engine caller gets from a by-id delete that loses a race for its row: no stored row, registry key or authored value changes, so there is nothing for a migration to rewrite and no tombstone. --> + + **BREAKING** for a caller of the engine's by-id delete (`engine.delete(object, { where: { id } })`, a hook's `ctx.api`, an action handler, a flow `delete_record` step) whose row is removed by another writer after this delete read it and before its own driver call. This happens when two deletes of one row run at once on a store whose writers do not queue behind each other: for example PostgreSQL for any object, and SQLite for an object with no metadata `beforeDelete` hook and no blocking metadata `afterDelete` hook. On SQLite such a hook makes the second delete wait for the first, and the second then finds no row when it reads it. + + - FROM: the loser's driver answered `false` (it removed nothing), and the engine still ran every after-delete step for it: the `afterDelete` hooks, the parent roll-up summary recompute and the `data.record.deleted` realtime event. The loser's answer was `false`. On SQLite, with such a metadata hook the loser waited for the winner and answered `RECORD_NOT_FOUND`, so the answer depended on the hook binding. + - TO: the loser answers `RECORD_NOT_FOUND` (404), the error a by-id delete already gives for an id that names no row, and none of those steps runs for it. The winner's delete is unchanged and runs each step once. A recycle-bin entry the loser wrote is still withdrawn, as before. When the loser's delete runs in a transaction (its object is referenced by a cascading relation), the cascade it walked rolls back with it. + - The same answer applies when the row is removed by the delete's own `beforeDelete` hook (a hook that deletes the row it is asked about through `ctx.api`): that delete answered `false` and now answers `RECORD_NOT_FOUND`. + - A child delete that a parent's cascade issued is the exception: when its driver answers `false`, the dependent the cascade was sent to remove is already gone, so that child delete still answers `false`, runs none of the after-delete steps, and the cascade goes on; the parent's delete completes, as it did before. A child that was already gone when its own delete read it still stops the cascade with `RECORD_NOT_FOUND`, unchanged. + + The REST and batch delete routes, and the own-row delete route, already answered 404 for this case; their code and status do not change. On the own-row delete route the loser's `RECORD_NOT_FOUND` is now raised by the engine, so its `userMessage` is built from the route's system context, which carries no locale, where the route used to build it from the caller's. + + The fix for a caller: treat `RECORD_NOT_FOUND` from a by-id delete as "the row is already gone", as for any id that names no row. The error this change adds always names the row the caller addressed, since a cascade's child delete no longer raises it; a cascade can still stop on a dependent with `RECORD_NOT_FOUND`, as before; the addressed row is then kept. A caller that tested the answer for `false` reads the error's `code` instead. +- df81f4c: feat: working calendars in Setup — `sys_work_calendar` and `sys_work_calendar_exception` (ADR-0157, part two of two) + + Clause-②: yes (widening) + Metadata-protocol: added + + Not released alone; pair #35641/#35642. The first half, #35641 (the calendar service and its arithmetic), is merged; this half ships in the same release as it, with the working-day formula functions (#35356) and the approval escalation's working-time clock (#35357), ADR-0157 D4. + + - **Two platform objects** (`@objectstack/platform-objects`). `sys_work_calendar` holds a calendar's `code` (unique per organization, snake_case), `name`, required IANA `timezone`, `is_default` (one per organization), the required `maintained_from` .. `maintained_through` span its holidays are entered for, and one period column per weekday (`monday_periods` … `sunday_periods`, `HH:mm-HH:mm` periods separated by commas, blank for a day off). `sys_work_calendar_exception` holds dated overrides: `calendar`, `date`, `kind` (`off`, no periods; `on`, that date's full periods), `periods` and `note`, one row per calendar and date. Both are organization data an administrator keeps, audited, like `sys_exchange_rate`; a package may seed rows under the existing seed contract and name a calendar by code. Their names join the platform object name list (`@objectstack/spec`). + - **Setup.** Two entries under Exchange Rates: Working Calendars (with a Needs Maintenance list of every calendar whose maintained span ends within 60 days) and Calendar Exceptions, whose list page imports a year of holidays from a file; the `calendar` column names a calendar by its code or name. Labels and help text ship in all eleven locales. + - **Time zone on create** (`@object-ui/plugin-form`, ADR-0157 D7). A create form opens a required time-zone field that declares no default (`valueDomain: 'iana_time_zone'`) on the organization's time zone, as it opens a record-currency field on the organization's currency; the user can change it. A create that leaves the calendar's `timezone` out takes the same zone on the server. An optional time-zone field, where blank means "take the parent's", is not prefilled. + - **Refusal wording** (`@objectstack/objectql`). The refusal of a create that marks a calendar the default in another organization no longer assumes the writer is working in an organization. + - **A calendar stays in its organization** (`@objectstack/objectql`). An update that changes the organization of a calendar or of an exception date is refused with `400 VALIDATION_FAILED` on `organization_id` (`invalid_value`), before any read and for every writer, system writes included. To have a calendar in another organization, create it there. An edit that leaves `organization_id` out or repeats the stored one is judged as before; a predicate update is judged row by row, and one matched row whose organization would change refuses it. + - **An exception date names a calendar of its own organization** (`@objectstack/objectql`). On a create, and on an update that carries `calendar`, the calendar is read by id in the exception's organization; when it is not there, the write is refused with `400 VALIDATION_FAILED` on `calendar` (`invalid_value`). A calendar of another organization and an id that names no calendar get the same refusal, word for word. The import door is judged the same way, row by row. + - **Organization ownership** (`@objectstack/cli`). Both objects are organization-owned; an exception reaches its organization through its calendar. +- ed906d5: feat: the working-calendar service, its arithmetic and its refusal codes (ADR-0157, part one of two) + + Clause-②: yes (widening) + Metadata-protocol: none + + Not released alone; pair #35641/#35642. This ships in the same release as #35642 (the calendar objects and Setup pages, the second half of this change), the working-day formula functions (#35356) and the approval escalation's working-time clock (#35357), ADR-0157 D4. + + - **The arithmetic** (`@objectstack/formula`). `isWorkingTime`, `addWorkingDays`, `workingDaysBetween` and `addWorkingHours` compute over a resolved calendar and its dated exceptions, as pure functions a formula can call synchronously, beside `parseWorkPeriods` (`HH:mm-HH:mm` periods; a period that crosses midnight is refused, `24:00` is a legal end), `buildWorkCalendar` (a frozen calendar) and the three error classes. A computation that needs a date outside the calendar's maintained span is refused rather than read from the weekly pattern. + - **The types, constants and time-zone rule** (`@objectstack/spec`). `WorkCalendar` and the column and code constants are in `@objectstack/spec/data`; the service contract is `IWorkCalendarService` in `@objectstack/spec/contracts`. `zonedWallClockToUtcMs`, `wallClockToUtcMs` and `WallClockParts` move to `@objectstack/spec/data` from `@objectstack/core`, unchanged; `@objectstack/core` re-exports all three, so no import changes. + - **Three error codes** in the ADR-0112 ledger: `ERR_WORK_CALENDAR_UNRESOLVED` (no calendar by that code, no organization default, two defaults, or no organization named outside the `single` posture), `ERR_WORK_CALENDAR_NOT_MAINTAINED` and `ERR_WORK_CALENDAR_INVALID`, each a 400. + - **The calendar service** (`@objectstack/objectql`, registered as `work-calendar`). `resolve({ organizationId, calendar })` takes the named code, else the organization default, else refuses; it never falls back to wall-clock time. It reads in the organization the caller names, elevated, and caches until a calendar or exception row is written. Outside the `single` tenancy posture, a computation that names no organization is refused before any read. Until the calendar objects are registered it refuses every resolution. + - **The write door** (`@objectstack/objectql`). Once the calendar objects exist, a calendar or exception write is refused `400 VALIDATION_FAILED` when a period crosses midnight, is malformed or overlaps another, an `off` row carries periods or an `on` row carries none, `maintained_through` is before `maintained_from`, a second calendar is marked the default, or a calendar created in an organization other than the one being worked in is marked the default (create it there, or set the default by an update); a calendar created without `timezone` takes the organization's Localization time zone. The hooks take the organization from the session. +- 3d6dea2: feat(formula): `addWorkingDays()`, `workingDaysBetween()` and `addWorkingHours()` count with the organization's working calendar (ADR-0157 D4) + + Clause-②: yes (widening) + Metadata-protocol: added — a formula field's or a stored field's `expression` may now call `addWorkingDays(...)`, `workingDaysBetween(...)` and `addWorkingHours(...)` + Skills-docs: updated here — skills/objectstack-formula/SKILL.md teaches the three functions and eval 8 of skills/objectstack-project/evals/project-process.json exercises them (the card's order names both) + + Not released alone: it ships in the same release as the working calendar service and objects (#35355) and the approval escalation's working-time clock (#35357), ADR-0157 D4. + + - **Three formula functions** (`@objectstack/formula`). `addWorkingDays(day, n[, code])` answers the calendar day `n` working days after `day` (before it, for a negative `n`); `day` itself never counts and `0` answers `day`. `workingDaysBetween(start, end[, code])` counts the working days after `start` up to and including `end`, negative when `end` is earlier, and is the inverse of `addWorkingDays`. `addWorkingHours(start, hours[, code])` answers the instant `hours` of working time after `start`, counted as elapsed time in the calendar's time zone (D11); a start outside working time begins at the next working period. All three step over the calendar's weekends and holidays and onto its make-up working days. Without `code` a call counts with the organization's default calendar; `code` names a calendar and is written as a quoted literal. They join the advertised standard library (`CEL_STDLIB_FUNCTIONS`). + - **Where they count** (`@objectstack/objectql`). A `formula` field and a stored field's `expression` count with the record's own organization's calendars, which the engine loads through the calendar service before it evaluates them: only the calendars the expressions name, once per organization per read, from the service's cache. A formula field counts again on its next read after a calendar edit; a stored due time keeps the value of its last write. + - **When the calendar cannot answer** (D8). With no default calendar in the organization, a code the organization has no calendar for, or a count that reaches past the span the calendar is maintained for, the formula reads `null` and the server logs one line naming the object, the field and the reason. A stored field's `expression` stores blank and the write goes through; the blank stays until that record's next write, and a write made while the calendar refuses blanks a value that was valid before. Nothing counts on the weekly pattern or the wall clock instead. + - **No calendar arithmetic as a filter.** A query filter, a sharing rule's condition and every filter compiled from CEL refuse the three functions with a message that prescribes the stored due-time field (D6). + - **Build refusals** (`@objectstack/lint`). `os build` / `os validate` refuse the three functions at every expression site but a formula field's and a stored field's `expression` (validation rules, visibility, action conditions, flow conditions and values, sharing rules, a field's expression `defaultValue` and a seed value), and refuse a calendar code that is not a quoted literal, with a branch between literal calls as the way to pick a calendar per record. + - **Forms** (`@object-ui/core`). A form does not compute a formula that calls one of the three: its calendar is loaded for the server's read, never handed to the form, so the field is unservable there as on the server's write-path check. + - **Teaching** (`@objectstack/skills`). objectstack-formula documents the three functions; the platform catalog moves working-day formulas from Planned into what the platform ships; the project-process eval for business-hours SLAs now expects the functions. +- 6d0089c: fix(objectql,approvals,audit): an authored rule message, an approval's object label and an activity summary's labels read as `/meta` serves them in a declared `i18n.sourceLocale` + + Clause-②: no + Metadata-protocol: none + + In a deployment whose `i18n.sourceLocale` differs from its `i18n.defaultLocale` (an app authored in English that defaults its users to Chinese, say), three readers still looked metadata text up through `II18nService.t()`, which falls back to the `defaultLocale` row when the reader's locale holds no entry. An `en` reader was shown the Chinese text where `GET /meta` and every other refusal label showed the English one as authored: + + - objectql: the author-written message of a validation rule (`objects.<object>._validations.<rule>.message`) in a `400 VALIDATION_FAILED` refusal; + - plugin-approvals: the object label on the approvals inbox, the request page, the generic data door's request rows and the approval refusals that name an object; + - plugin-audit: the object, field and select-option labels inside an activity summary composed in the reader's language. + + Each now resolves through `translateObject` (`@objectstack/spec/system`) over every locale the i18n service holds, with the resolve options the metadata route builds: the reader's locale, the declared fallback chain and the authored language (the declared `sourceLocale`, else `defaultLocale`). A reader in the authored language reads the text as written; every other reader reads the same row as before. `t()` keeps carrying the catalog sentences. + + An i18n service that cannot hand its translations over (no `getLocales()` / `getTranslations()`) no longer has these labels and rule messages translated through `t()`: the authored text stands. Every service the platform ships implements both. +- 4890cd0: fix(objectql): `platformSystemApi` on the api `ObjectRepository.execute` hands the action it dispatches keeps the `'action'` mark + + Clause-②: no + Metadata-protocol: none + + `ctx.api.object(o).execute(name)` dispatches the named action with an api over a context it marks `'action'`. That api carried neither the app-authored flag nor the action door's origin flag, so `platformSystemApi(ctx.api)` in the dispatched handler took the mark off, and its writes to `sys_member`, `sys_user_position`, `sys_user_permission_set` and `sys_invitation` passed as a platform writer's, against the documented refusal for action handlers. + + - The api `execute` hands the dispatched action now carries its own origin flag, kept by every api derived from it (`sudo()`, `withRunAs(...)`, a transaction's context, the api `platformSystemApi` and the user-grants seeds return). On it, `platformSystemApi(api)` returns what `api.sudo()` returns: the `'action'` mark and any `flowRunId` kept. Writes to the four identity-assignment objects through it are refused `PERMISSION_DENIED` (403), whichever api dispatched the action, and its inserts are owner-stamped with the invoking user. + - The flag is not the app-authored flag: the dispatched handler's `delete(…, { permanent: true })` still runs. + - The api the audit writer holds (a hook registered in code) is unchanged: `platformSystemApi` still takes the mark off there. + - This is the path the action-door fix in this release did not reach. No new export, and no published signature changes. +- c59ee99: feat(units): a raw total over a `record`-mode quantity is refused unless it groups by the quantity's unit field + + Clause-②: yes (widening) + Metadata-protocol: none + + ADR-0158 U7 R1, mirroring ADR-0144 D6 and its record-currency doors. A `number` field declaring `unitConfig: { unitMode: 'record', unitField }` holds a bare quantity whose unit is each row's code in `unitField`. Before this change, `sum` over a row of 10 KGM and a row of 10 LBR answered `20`, and a `summary` roll-up over such child rows stored `20`. + + - **The engine aggregate** (`@objectstack/objectql`, `ObjectQL.aggregate`): `sum`, `avg`, `min` or `max` over such a quantity is refused `INVALID_FIELD` / 400 before any driver is asked, unless the query's `groupBy` includes the quantity's `unitField`. The message names the quantity, its unit field and the grouping to add. + - **A `summary` roll-up** (`@objectstack/objectql`, object registration): a `summary` that rolls up `sum`, `avg`, `min` or `max` of such a child quantity is refused `INVALID_METADATA` / 422, whichever object registers second. In R1 every such roll-up is refused: a child quantity cannot follow its parent's unit yet. Roll up with `function: 'count'`, or total the quantity with an aggregate grouped by its unit field. + - **Analytics** (`@objectstack/service-analytics`): a dataset or cube measure of type `sum`, `avg`, `min` or `max` over such a quantity is refused `INVALID_FIELD` / 400 unless the query has a dimension over the unit field, on every cube path (declared, inferred, augmented), every `totals` grouping and the draft preview. + - **The widening.** `AnalyticsServiceConfig.sourceFieldMeta` may answer one more optional key, `unitField`: a `number` field's `unitConfig.unitField`, under `unitMode: 'record'` only. `AnalyticsServicePlugin` relays it for a `number` under `unitMode: 'record'` and for nothing else. A host that does not answer it gets no record-unit judgment from the cube door; the engine aggregate door still refuses the same query on the ObjectQL strategy. + + Not judged: `count` and `count_distinct`, a `fixed`-mode quantity, and a `number` field with no `unitConfig`. No new error code. +- 50d6da8: fix(objectql): a package registered again stops serving an object extension its new manifest no longer declares + + Clause-②: no + Metadata-protocol: none + + When a package was registered again without uninstalling it first (an `os dev` artifact reload, or an upgrade or re-install through the marketplace install-local door) and its new manifest no longer carried an `objectExtensions` entry for an object the previous registration extended, the old extension stayed registered. Its fields, validations and indexes kept being served on that object until the process restarted. A package's previous extension of an object was replaced only when the new manifest named that same object again. + + A re-registered package body now withdraws each extension its previous body registered for an object the new body no longer extends, through the same per-object withdrawal the `object_extension` item delete uses. The object then serves exactly the extensions the package's current manifest declares. Another package's extension of the same object is untouched, and so is an extension registered under the package id outside a body (the `object_extension` item door's layer). A refusal later in the same registration run puts the withdrawn extension back with the rest of the installed version. + + Stored data is not touched: the column the dropped field used keeps its values, and schema sync drops no column. The field is simply no longer served. The install-local dry run already listed the dropped field under `plan.fields.removed`; that answer is unchanged. +- 7dd1a2f: fix(objectql): a system-context delete of a record with no organization now keeps it in the recycle bin instead of failing on `sys_recycle_bin.organization_id` + + Clause-②: no + Metadata-protocol: none + + A delete made under `{ isSystem: true }` (the context flows, hooks and admin tooling use) of a record that names no organization, such as a record of a `tenancy: { enabled: false }` object, wrote its recycle-bin entry with no organization. On a SQL store, where the bin's tenant column is NOT NULL, the delete failed with `NOT NULL constraint failed: sys_recycle_bin.organization_id` and the record stayed. On the memory store the delete succeeded but left an entry no organization owned. + + The entry now takes the organization any system-context insert takes (ADR-0131 D9): the record's own, else the context's, else the organization the engine derives. Under the `single` posture that is the Default Organization, so the record lands in the bin and can be restored. Under a walled posture (`isolated`, `group`), where no owner can be derived, the delete is refused with `ERR_SYSTEM_WRITE_ORGANIZATION_REQUIRED` before the record is removed, as a system insert is. A caller that deletes there passes the organization on the context (`{ isSystem: true, tenantId: '...' }`). +- d7c257e: feat: the engine's seam for the fixed-read leaf, and the driver declaration for it (ADR-0155, step 2 of 6) + + Clause-②: yes + Metadata-protocol: added + + No visible change on its own: nothing on main writes a fixed-read leaf yet (the sharing plugin starts writing `SharedRecordIds` at ADR-0155's last step), and no driver declares one (the SQL drivers and the memory driver declare it on the steps that compile it). + + - **The driver declaration** (`@objectstack/spec`). `DriverCapabilities.fixedReadLeaves` lists the fixed-read leaves a driver's filter compiler evaluates exactly, by name, e.g. `['SharedRecordIds']`; absence means none. The names are `FIXED_READ_LEAF_NAMES`, and `fixedReadLeafNameOf(leaf)` maps a leaf to its name. It stays separate from `readableIdsLeaf`: a `ReadableIds` leaf is not a fixed-read leaf, and a driver that evaluates both declares both. Both descriptions now say so. + - **The seam** (`@objectstack/objectql`). The engine's comparand door admits a branded `SharedRecordIds` leaf as a `$in` comparand, and the engine hands it to the driver by reference only when it sits on `id` of the object it names (directly, or inside a composed `ReadableIds` scope over that object), on a read verb in its read form or in a predicate update's `where` in its write form, for the context's user or its delegator (a system context is exempt), outside both classes ADR-0155 D4 recognises (the object on another datasource than `sys_record_share`; a middleware or a `beforeFind` / `afterFind` hook registered for `sys_record_share` by name), and to a driver whose `fixedReadLeaves` names it. Anything else is refused before any driver is asked, `INTERNAL_ERROR` / 500, logged at `error` once per evaluator. An unbranded copy is still refused at the door as a non-list comparand, `INVALID_FILTER` / 400. + - **The refusal** (`@objectstack/core`). `fixedReadLeafRefusal`, `refuseFixedReadLeafOnce` and `describeFixedReadLeaf` are the one envelope every evaluator answers a fixed-read leaf it will not run with; `logRefusalOnce` is the once-per-instance log it shares with the `ReadableIds` refusal. + - **Filter tokens** (`@objectstack/core`). `resolveFilterTokens` returns a fixed-read leaf by reference, as it does a `ReadableIds` leaf, so a read scope that carries a placeholder beside the leaf keeps the leaf's brand. +- 17ed9e7: fix(objectql): deleting an organization also deletes its units of measure, the one exemption from the `sys_unit` delete refusal + + Clause-②: yes (widening) + Metadata-protocol: none + + An organization that had ever created a unit of measure could not be deleted: the delete was refused with 409 `DELETE_RESTRICTED` naming `sys_unit`, and the units could not be removed first, because the engine refuses every delete of a unit (405 `ERR_UNIT_DELETE_REFUSED`). Now the organization delete's own cascade removes that organization's `sys_unit` rows, retired ones included, through the engine's delete path, after the delete has been admitted, so no unit row is left naming a deleted organization. `organizationOwnedRowCounts` (the question plugin-auth's organization delete asks first) and the engine's own refusal no longer count units as records the organization still owns. + + **Declared behaviour change.** A delete door widens, in one place only. A delete of an organization that holds units and no other record now succeeds and removes the units; before, it was refused. An organization that owns any other record is still refused, and none of its units is removed. Every other delete of a unit is still refused with 405 `ERR_UNIT_DELETE_REFUSED`, by id and batched, for a user, a system writer and an automation run, including a delete issued by a hook while the organization's delete is running: the exemption is recognised from the engine's own cascade, never from anything a caller passes. Retire a unit (`retired: true`) to stop its use, as before. +- 0a3dd40: feat: analytics compiles the `SharedRecordIds` fixed-read leaf, the access explainer resolves it at the record, and OData refuses it (ADR-0155, step 5 of 6) + + Clause-②: yes + Metadata-protocol: none + + No visible change on its own: nothing on main writes a `SharedRecordIds` leaf yet. The sharing plugin starts writing it at ADR-0155's last step. + + - **Analytics, the native SQL path** (`@objectstack/service-analytics`). A read scope carrying `{ id: { $in: SharedRecordIds.read(object, user) } }` compiles to one subquery in the list's own position, `id IN (SELECT "record_id" FROM "sys_record_share" WHERE "object_name" = ? AND "recipient_type" = ? AND "recipient_id" = ? AND "record_id" IS NOT NULL AND "record_id" <> '')`, with every value bound and no tenant scope on the subquery (ADR-0155 ① ruled A). The native strategy takes such a scope only when the host answers `AnalyticsServiceConfig.fixedReadLeafClassOf` with `null` for each leaf (outside both classes ADR-0155 D4 recognises: the object on another datasource than `sys_record_share`, or a middleware or `beforeFind` / `afterFind` hook registered for `sys_record_share` by name) and the dialect is SQLite, PostgreSQL, MySQL or SQL Server. Otherwise it declines, and the ObjectQL engine path answers. A host that wires no answer keeps today's behaviour: the native path declines every scope that carries the leaf. This change ships the hook unwired: `AnalyticsServicePlugin` passes no answer, so the native path declines a scope carrying the leaf and the engine path answers, until #35946 wires it. + - **Analytics, the ObjectQL path.** The read-scope merges (`withReadScope`, the related-object scope, the label read) admit a placed read-form leaf and hand it to the engine by reference. The dry-run SQL echo prints the subquery. A leaf in any other position, under `$nin`, on another object or in its write form is refused, `INTERNAL_ERROR` / 500, logged at `error` once per service logger. + - **Analytics, the query's `where`.** A leaf reaches analytics only in the read scope. A leaf anywhere in a query's `where`, in either spelling, is now refused before either strategy runs, with `INTERNAL_ERROR` / 500. The message names the leaf and its table, not the recipient. Before this release `{ id: { $in: leaf } }` there answered `INVALID_FILTER` / 400, with a message that printed the recipient. A bare `{ id: leaf }`, or an array-form `=`, was read as a relation condition on `id`. No request can spell the leaf, so only in-process code could reach this. + - **The access explainer** (`@objectstack/plugin-security`). `ISecurityService.explain` resolves each leaf in the sharing read filter at the record it judges, with one read of `sys_record_share` under the leaf's own predicate, keyed by the record ids (one read for a whole batch). The sharing layer's `rowFilter` then has the two shapes it has today: `{ id: { $in: [recordId] } }` in the share arm for a caller with a grant on the record, and the share arm left out for a caller without one. The published `rowFilter` never carries the leaf. A leaf it cannot resolve is refused, `INTERNAL_ERROR` / 500, logged at `error` once. That includes a leaf anywhere but `{ id: { $in: leaf } }` in the object's own filter, such as one inside a relation condition or a composed `ReadableIds` scope, as the engine and the analytics compiler refuse it. + - **OData** (`@objectstack/driver-odata`). `find` and `count` refuse a `where` carrying the leaf before any request is sent, `INTERNAL_ERROR` / 500. An OData `$filter` has no form of the subquery, and the driver declares no `fixedReadLeaves`. Before this release a direct `find` left the leaf's predicate out of the `$filter` it sent. The engine already refused the leaf before calling this driver. + - **The array form** (`@objectstack/spec`). `parseFilterAST` now refuses a leaf in the array form with `INTERNAL_ERROR` / 500 wherever it answered `INVALID_FILTER` / 400: as an `in` / `nin` comparand, as a member of an `in` / `nin` list, or as the comparand of a scalar operator (`!=`, `>` and the rest). The old messages printed the leaf's inputs, the recipient among them. The new message names the leaf and its table only. An unbranded copy that crossed JSON is still `INVALID_FILTER` / 400. An array-form `=` is passed on by reference and refused by the engine, as before. + - **New exports** (`@objectstack/objectql`). `fixedReadLeafClassOfEngine(engine, leaf)` answers which ADR-0155 D4 class, if any, keeps the engine from handing a leaf to a driver. `driverEvaluatesFixedReadLeaf` answers whether a driver declares the leaf. Neither reads or writes anything. +- e72f2aa: feat: the analytics plugin asks the engine which share-grant scopes its native SQL path may compile (ADR-0155 D4) + + Clause-②: yes + Metadata-protocol: none + + - **New optional contract member** (`@objectstack/spec`). `IObjectQLEngine.fixedReadLeafClassOf(leaf)` answers which of ADR-0155 D4's two classes a `SharedRecordIds` leaf falls in on an engine: `'other-datasource'` (the leaf's object is bound to another datasource than `sys_record_share`) or `'registration-by-name'` (a middleware or a `beforeFind` / `afterFind` hook is registered for `sys_record_share` by name), with what names it. It answers `null` when neither class applies, and throws `TypeError` on a value that is not a fixed-read leaf. The answer type is the new `EngineFixedReadLeafClass`. The member is optional, and because "neither" is `null`, `engine.fixedReadLeafClassOf?.(leaf)` is a caller's whole answer: a class, `null`, or `undefined` from an engine without the member, which cannot say. + - **The engine implements it** (`@objectstack/objectql`). `ObjectQL.fixedReadLeafClassOf` returns the seam's own recognition, `fixedReadLeafClassOfEngine(engine, leaf)`, with "neither" spelled `null`. It reads only datasource bindings, middlewares and hooks. It calls no driver and logs nothing. + - **The analytics plugin wires it** (`@objectstack/service-analytics`). `AnalyticsServicePlugin` now fills `AnalyticsServiceConfig.fixedReadLeafClassOf` from the `"data"` engine on each call. When the engine answers `null` (neither class), the native SQL path compiles a read scope that carries the leaf. When the engine names a class, throws, answers anything but `null`, or has no such member, the query goes to the ObjectQL engine path, as before. An engine without the member is reported once at `warn`. Neither class is restated in analytics. + + Nothing a metadata author writes changes. On a host that runs `ObjectQLPlugin`'s engine as `"data"`, a sharing-scoped analytics query outside both classes keeps the native SQL path once the producer starts writing the leaf (ADR-0155 step 6). +- b7fe94a: docs(objectql): the fixed-read leaf seam's docblocks name plugin-sharing as the leaf's producer, in the present tense (ADR-0155 step 6) + + Clause-②: no + Metadata-protocol: none + + Comment-only. The seam's docblocks no longer say the producer, its boot check and its up-front answer (R2) are still to land, or that nothing writes the leaf: plugin-sharing writes it and reads `driverEvaluatesFixedReadLeaf` for R2. No export or runtime behaviour changes. +- 756df0a: fix(objectql): a script action's first call no longer stalls when a write inside its transaction triggers a flow + + Clause-②: no + Metadata-protocol: none + + A script action body that wrote inside `ctx.api.transaction(...)` could stall on a server running SQLite (the `os dev` default) until the sandbox's 30-second wall clock, answer `500 INTERNAL_ERROR`, and roll its writes back, while an identical retry succeeded. It happened when a write in the transaction fired a record-triggered flow (for example through a roll-up `summary` update of the parent): the flow's run setup read the organization's localization settings through the engine without the transaction's handle, and that read waited for SQLite's single connection, which the open transaction held. The retry found the read cached. + + Every operation made through a transaction opened by the sandbox's `ctx.api.transaction` now publishes that transaction to the reads and writes it issues internally, as `engine.transaction(...)` already did (ADR-0034): such a read runs on the transaction's connection, and a nested `transaction()` joins it. Work an operation starts and does not await, and work detached from the unit (an `async` hook), still runs outside it. +- 4101f1f: fix(objectql): a state machine judges every write from the stored state, a clear included + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed or renamed, and nothing stored is rewritten: what moved is that the engine judges a write clearing a state_machine field against the machine's transitions. A state meant to be clearable lists the empty value among its targets; that is the one-line fix, and it is in the refusal's from/to pair. --> + + A `state_machine` validation judges an update from the record's stored state, and clearing the state field — writing `null` or `''` — is now a transition like any other: a transition to the empty value. So no sequence of writes leaves a state the machine would refuse to leave in one write. + + **BREAKING**: on an update, clearing the state field of a record whose stored state has a key in `transitions` is refused unless that state lists `''` among its targets. The refusal is the existing transition refusal — `VALIDATION_FAILED` / 400 with field code `invalid_transition` and `constraint: { from, to: '' }` — on every write path (by id, multi-row, REST, MCP), for every caller, elevated ones included. To keep a state clearable, add `''` to its targets, e.g. `paused: ['open', '']`. It ships `patch` because no metadata an author writes changes (`Metadata-protocol: none`): every existing declaration parses and means what its `transitions` say; the write that now meets the declared graph is a runtime write. + + **Unchanged.** A write that does not touch the state field, an unchanged value, a declared transition, a stored state with no key in `transitions` (still lenient), inserts and their `initialStates` check, and seed and historical-import writes (still exempt). +- 695b9db: fix(plugin-security)!: an app-authored elevation's reads and writes are judged by its caller's organization wall + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is the answer a data operation gets when it runs under an action body's, a system hook's or a system flow's elevation, and three schema descriptions that state it: no stored row, registry key or authored value changes, so there is nothing for a migration to rewrite and no tombstone. --> + + The rule: elevation lifts a caller's business rules, never the organization wall. An action body, a hook that runs as system (`runAs: 'system'`, a system context it inherits, its `ctx.api.sudo()`) and a flow that runs as system have their reads and writes judged by the organization wall of the caller they run for (ADR-0095 D1, ADR-0123 D1/D2), under every tenancy posture and on every object, a federated one included. + + **BREAKING** for an action body, a system hook or a system flow run for a signed-in caller. + + - FROM: the elevation, not the caller's organization wall, decided what such a context reached of a tenant-scoped object. + - TO: the caller's own organization wall decides it: + - with no active organization under `isolated`, an empty membership set under `group`, or no membership at all under `single`: its reads of a tenant-scoped object resolve to nothing (zero rows, no error); its delete and purge are answered by that read rule (a predicate delete matches nothing, a by-id delete answers `404 RECORD_NOT_FOUND`); and its other writes (insert, update, transfer, and the recycle bin's restore) are refused with `403 PERMISSION_DENIED`, naming the missing active organization or membership; + - under `group`, a member reads and writes the union of the organizations they hold a membership in, with or without an active organization; + - on a federated object it reads only rows of the caller's organization scope, and a by-id write of a row outside it answers `404 RECORD_NOT_FOUND`, as a row that is not there; + - an insert with no active organization on a walled tenant object is refused with `403 PERMISSION_DENIED`; + - for every caller, an active organization included: a write whose own data names an organization outside the caller's wall, and an update whose own data empties a row's organization, are refused with `403 PERMISSION_DENIED`; + - the check of the row a by-id write names is read inside the transaction the write carries, so a row the body's own transaction wrote is the caller's to write again in it; + - a system flow started by a record change, and every system run whose own user is its caller, carries that user's membership set and posture rung from run setup: under `group` it reads the union of the user's memberships, with or without an active organization. The set and rung are those of run setup: a membership the user gains or loses while the run waits is read by the next run. A decided segment, a run that began for no caller and a child run of either carry neither: a decided segment's caller's facts are resolved for it again. + + **Not moved.** A caller with an active organization keeps exactly that organization's reach. Objects outside tenancy, objects with no organization column, and a platform operator crossing the wall on an object whose posture permits it are answered as the caller's own requests answer them. System work that runs for no caller (a scheduled run, a platform plugin's own system context, the seeders) is unchanged, and so is a system flow that began for no caller after an approval decision: the decider is its attribution user, not its caller. A run that a write of such a segment starts begins for no caller too, and carries neither the writer's membership set nor its posture rung; its trigger user stays the writer, so an approval's submitter exclusion, who may read the run's state, and the run's history answer as before. A run that a write of a decided segment of a run that began for a caller starts begins for the decider, as before. A system flow that began for a caller is judged by that caller after a decision, not by the decider. + + The fix for a caller: select an active organization before running the action, or start the run from a session that has one. A body that must place a row in another organization does so as a member of that organization, through its own request. The `runAs` descriptions of flows and hooks and the `body` description of actions now state this limit beside the other two. + + Also in this change: + - `@objectstack/core` exports `RUN_CALLER`, `markRunCaller` and `runCallerOf`: the server-constructed mark a flow run's data context carries wherever the run's own user is not its caller (a decided segment, a run recorded as begun for no caller in every segment, and a child run of either), naming the user its run began for, or that it began for none. + - `@objectstack/service-automation`: a `runAs: 'system'` run's data context carries the run user's membership set (`accessible_org_ids`) and posture rung, seeded once at run setup; it carries no grants. A run context may record `beganForNoCaller: true`. A run whose own user is not its caller is seeded with neither, and its data context carries neither. + - `@objectstack/objectql`: the hook session of a write made under that mark, for a run that began for no caller, carries it; `@objectstack/trigger-record-change` records that the run such a write fires began for no caller, and keeps the writer as its trigger user. +- d280de9: docs: stale prose on summary currency, the temporal-comparand door and analytics filters now says what the code does + + Clause-②: no + Metadata-protocol: none + + No accepted value, key or answer moves. Two refusal messages change their words: + + - A `currencyMode: 'dynamic'` summary over a child `currency` field that is neither `dynamic` nor a well-formed `record` / `fixed` (a stored `fixed` field with no `defaultCurrency`, or a `currencyMode` outside the three) is still refused, and the refusal now names what the child lacks: "is a 'currency' field in `fixed` mode with no `defaultCurrency` code (the currency it is fixed to is missing)", or "is a 'currency' field whose `currencyMode` 'X' is none of `dynamic`, `fixed` and `record`". Before, it said only "is a 'currency' field, not a `currency` field in `dynamic` mode". + - The temporal-comparand door's refusal of a comparand no temporal rule reads (`'not-a-date'`, the preset name `'last_30_days'`) now ends "As written it would reach the driver and be compared as text: it may select every row, none or the wrong ones (or raise a database error), an answer indistinguishable from a real one." Before, it said the comparison would "compare false for EVERY row", which was wrong for `$lt` and others that selected every row, for a partial day such as `'2026-06'` that selected a subset, and on PostgreSQL, which raised a database error. Its `having` twin says the same of the groups it would keep, where it said "no group or every group, a 200". + + The upgrade-guide entry `summary-dynamic-currency-rollup-home-amount-judged-as-served` now states the admitted set as both doors enforce it: a `dynamic` summary may roll up any child `currency` field in `dynamic` mode, a stored home amount included. Source comments and published docblocks that said every `{placeholder}` is stepped around by the temporal door now state the per-kind rule: a date macro is stepped around and judged by its year once resolved, a period key and a context token are judged as written, and an unknown or record-context token is left to the resolver. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [c6558d0] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [22af9e6] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [8b550f8] +- Updated dependencies [c809deb] +- Updated dependencies [b68f9ae] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [2d33205] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [35c6331] +- Updated dependencies [de395b4] +- Updated dependencies [fe3ebc8] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [1caee8c] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [ee40658] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [8925d5b] +- Updated dependencies [78fd762] +- Updated dependencies [a35187e] +- Updated dependencies [07b1754] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [819c067] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [fcbebf2] +- Updated dependencies [986a0f2] +- Updated dependencies [c99156e] +- Updated dependencies [c6b07c2] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [886ba45] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [fa30414] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [9c57bd2] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [c059e60] +- Updated dependencies [97f3420] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/metadata-protocol@18.7.0 + - @objectstack/types@18.7.0 + - @objectstack/metadata@18.7.0 + - @objectstack/formula@18.7.0 + - @objectstack/core@18.7.0 + - @objectstack/metadata-core@18.7.0 + ## 18.6.0 ### Minor Changes diff --git a/packages/objectql/package.json b/packages/objectql/package.json index 81d67b71df7..d3a22a258ff 100644 --- a/packages/objectql/package.json +++ b/packages/objectql/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/objectql", - "version": "18.6.0", + "version": "18.7.0", "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 f9335208442..8957819f1f4 100644 --- a/packages/observability/CHANGELOG.md +++ b/packages/observability/CHANGELOG.md @@ -1,5 +1,168 @@ # @objectstack/observability +## 18.7.0 + +### Patch Changes + +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/observability/package.json b/packages/observability/package.json index 7d7d186f905..bf6182573bd 100644 --- a/packages/observability/package.json +++ b/packages/observability/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/observability", - "version": "18.6.0", + "version": "18.7.0", "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 6b9481d79a1..d9365efb2ca 100644 --- a/packages/platform-objects/CHANGELOG.md +++ b/packages/platform-objects/CHANGELOG.md @@ -1,5 +1,816 @@ # @objectstack/platform-objects +## 18.7.0 + +### Minor Changes + +- df81f4c: feat: working calendars in Setup — `sys_work_calendar` and `sys_work_calendar_exception` (ADR-0157, part two of two) + + Clause-②: yes (widening) + Metadata-protocol: added + + Not released alone; pair #35641/#35642. The first half, #35641 (the calendar service and its arithmetic), is merged; this half ships in the same release as it, with the working-day formula functions (#35356) and the approval escalation's working-time clock (#35357), ADR-0157 D4. + + - **Two platform objects** (`@objectstack/platform-objects`). `sys_work_calendar` holds a calendar's `code` (unique per organization, snake_case), `name`, required IANA `timezone`, `is_default` (one per organization), the required `maintained_from` .. `maintained_through` span its holidays are entered for, and one period column per weekday (`monday_periods` … `sunday_periods`, `HH:mm-HH:mm` periods separated by commas, blank for a day off). `sys_work_calendar_exception` holds dated overrides: `calendar`, `date`, `kind` (`off`, no periods; `on`, that date's full periods), `periods` and `note`, one row per calendar and date. Both are organization data an administrator keeps, audited, like `sys_exchange_rate`; a package may seed rows under the existing seed contract and name a calendar by code. Their names join the platform object name list (`@objectstack/spec`). + - **Setup.** Two entries under Exchange Rates: Working Calendars (with a Needs Maintenance list of every calendar whose maintained span ends within 60 days) and Calendar Exceptions, whose list page imports a year of holidays from a file; the `calendar` column names a calendar by its code or name. Labels and help text ship in all eleven locales. + - **Time zone on create** (`@object-ui/plugin-form`, ADR-0157 D7). A create form opens a required time-zone field that declares no default (`valueDomain: 'iana_time_zone'`) on the organization's time zone, as it opens a record-currency field on the organization's currency; the user can change it. A create that leaves the calendar's `timezone` out takes the same zone on the server. An optional time-zone field, where blank means "take the parent's", is not prefilled. + - **Refusal wording** (`@objectstack/objectql`). The refusal of a create that marks a calendar the default in another organization no longer assumes the writer is working in an organization. + - **A calendar stays in its organization** (`@objectstack/objectql`). An update that changes the organization of a calendar or of an exception date is refused with `400 VALIDATION_FAILED` on `organization_id` (`invalid_value`), before any read and for every writer, system writes included. To have a calendar in another organization, create it there. An edit that leaves `organization_id` out or repeats the stored one is judged as before; a predicate update is judged row by row, and one matched row whose organization would change refuses it. + - **An exception date names a calendar of its own organization** (`@objectstack/objectql`). On a create, and on an update that carries `calendar`, the calendar is read by id in the exception's organization; when it is not there, the write is refused with `400 VALIDATION_FAILED` on `calendar` (`invalid_value`). A calendar of another organization and an id that names no calendar get the same refusal, word for word. The import door is judged the same way, row by row. + - **Organization ownership** (`@objectstack/cli`). Both objects are organization-owned; an exception reaches its organization through its calendar. +- 2495486: feat(spec): `userActions.transfer`, the per-object switch for the Change Owner action, and its structural eligibility + + Clause-②: yes (widening) + Metadata-protocol: added + + An object can now say whether it offers the Change Owner action. The action is not meant for every record that happens to carry an `owner_id`: line items, invoices and other details get one injected too, and an admin holding `modifyAllRecords` would otherwise see the action everywhere. + + - **Structural eligibility (derived, never overridable).** `isTransferEligible(def)` from `@objectstack/spec/data` answers true only when the platform injects the object's reassignable `owner_id` (`resolveInjectedSystemColumns(def).owner`), an owner is provable for it, and the object does not declare that field `readonly: true` (in either `fields` shape, record or array). So `ownership: 'business_unit' | 'org' | 'none'`, every `managedBy` object, every `sys_*` object and `systemFields: false` never offer the action, and neither does an `external` object whose owner is unprovable (`isOwnerAnchorUnprovable`: it neither declares `owner_id` nor maps a remote column onto it in `external.columnMap`). `transferIneligibilityReason(def)` names the structural fact when the answer is no, and, where the object can be made eligible, the change that does it (drop `readonly` from `owner_id`, set `ownership` to `user`, declare or map the external owner). + - **The switch.** `userActions.transfer` takes the same shape as the CRUD entries beside it: a boolean, or `{ enabled, visibleWhen, disabledWhen }` whose CEL predicates read the record the action acts on. Omitted, it is on for `sharingModel` `private`, `public_read` and `public_read_write`, and for an object that declares no `sharingModel` (a custom object then resolves to `private`); it is off for a `controlled_by_parent` detail. Authors override both ways: `transfer: true` on a detail with a real owner, `transfer: false` where the owner is the actor by rule. + - **The one resolution.** `resolveUserActionTransfer(def)` returns `{ enabled, predicates? }`: structural eligibility first, then the switch, then the `sharingModel` default. It is the answer the Change Owner endpoint and the console action will read once they ship, each still asking the caller's own transfer verdict per record; neither exists in this release. + - **Refused at parse.** `transfer: true` or `{ enabled: true }` on an object that is not eligible is refused at `userActions.transfer`, with the structural reason and its remedy in the message. Closing the switch there (`false`) is accepted. `changeOwner` and `reassign` under `userActions` are refused with a pointer to `transfer`. + + The switch gates the dedicated action, not the raw write: a plain `owner_id` update stays governed by `allowTransfer` alone, so import mappings and hooks are unaffected. To block every change of owner, declare `owner_id` `readonly`. + + The Studio object form gains a Change Owner row under User Actions, with its label and help text translated in every shipped locale. + + The served object document classifies `userActions.transfer` beside the four CRUD entries: for a caller who cannot read a field, a `transfer` predicate that names it is removed and the switch with its other predicate stays, as for `edit` and `delete`, instead of the whole entry being dropped. + + Nothing reads the switch at runtime yet. The Change Owner endpoint and the console action come in follow-up changes, so the liveness ledger grades `userActions.transfer` `planned` and `os lint` / `os validate` warn an author who sets it to `true` or uses the object form that nothing honours it yet. The key is new, so no stored object carries it and nothing needs migrating. + + **Existing objects that set `userActions.exportCsv: true` get a new warning.** Drilling `userActions` showed that no export menu reads `exportCsv`: setting it to `false` does not hide CSV export, which follows the view's `exportOptions` and the object's effective API operations. The ledger now grades it `dead`, so `exportCsv: true` raises a `liveness-dead-property` warning at `os lint` / `os validate`, and the hint says to remove it (`exportCsv: false` is not flagged). It is a warning, not a refusal: every stored object still loads. A follow-up (#35619) either makes the export menus honour the key or removes it. +- f3c9d42: feat(spec, ui): a master_detail child is a tab by default; a field group puts it in the overview and the form + + Clause-②: yes (widening: `@objectstack/spec/data` exports `isGroupPlaceableRelationship`, `fieldGroupsPlaceRelationship` and the `BodyTableContext` type, and `isBodyTableRelationship` takes an optional second argument) + Metadata-protocol: semantic + + A `master_detail` FK that declares no `relatedList` used to put its child list into the parent record's overview as a table (since #35597). Now it is a tab of the record page with its count, like any other related list, `inlineEdit` or not. It goes into the overview only where a field group of the PARENT names it (`fieldGroups[].relatedList`). + + - Placed by a group, the child's table is drawn at that group's position in the overview, the parent's create and edit forms inline it, and the record page's Edit saves the record fields and the rows in one save. Its tab stays on the tab row too, with its count. + - `relatedList: 'primary'` on the FK is unchanged on the record page: a body table with no group, and no tab of its own whether or not a group positions it. Its forms follow ruling B like every other child: a field group naming it inlines it in the parent's create and edit forms, `inlineEdit` or not, and with no group naming it the forms do not inline it, even with `inlineEdit`. `relatedList: true` keeps a tab that no group may place, and `false` hides the list. + - A field group may name exactly what it could name before: a plain `master_detail` child or a `'primary'` one. `isGroupPlaceableRelationship` is that test; `isBodyTableRelationship(field, { placedByGroup })` is still the one body-table judgement. + - `inlineEdit` on the FK no longer inlines a child in the parent's form by itself (maintainer ruling B: only the field group decides). It now only picks the form factor of a child a group places: `'grid'`, `'form'`, or `true` / absent for the shape-picked default. A child with `inlineEdit` that no group names is a tab and is not in the form. + - `os lint`: `relationship/line-items-inline-edit` now suggests a field group on the parent (with its required `label`) instead of `inlineEdit: true`, and only for a FK a group may place; `relationship/association-inline-edit` and `relationship/inline-edit-needs-bulk` judge the children a parent group places; the field-consumer rule credits a child's inline grid columns only when a parent group places it. + - The showcase invoice and expense report, and the CRM opportunity, gain a field group naming their lines, so their forms and record pages keep the line table. + - In the entry form a placed table sits at its group's place too: between the sections of the groups around it, or in a tab of its own (labelled with the group) in a tabbed form. A form whose sections name no field group keeps it below the record's fields. + - Studio's field-group picker offers the same children as before. The relationship field inspector reads a plain `master_detail` FK as "Show", and "Show" leaves the key absent so a group can still place it. + + To keep a master-detail child's table in the overview and its rows in the form (including a child that set `inlineEdit`), add a field group to the parent that names it, in the place the table should sit: + + ```ts + fieldGroups: [ + { key: 'basic', label: 'Basic information' }, + { key: 'lines', label: 'Lines', relatedList: 'order_line' }, // or 'order_line.order' for one FK + { key: 'terms', label: 'Terms' }, + ], + ``` + + Such a group holds no fields. Or write `relatedList: 'primary'` on the child's FK to keep it in the overview with no group. A group may name only a list it can place: for an `inlineEdit` child on a `lookup` FK, or on a FK declaring `relatedList: true`, also write `relatedList: 'primary'` on the FK (a `master_detail` FK may instead drop `relatedList: true`). A form view that declares its own subforms still inlines what it declares. +- 170ca48: feat(spec): a field group lists its own members and their order (`fieldGroups[].fields`) + + Clause-②: yes (widening) + Metadata-protocol: added + + A field group may now list which fields it shows and in what order: + + ```ts + fieldGroups: [ + { key: 'basic', label: 'Basic', fields: ['account', 'name', 'valid_until'] }, + { key: 'terms', label: 'Terms', fields: ['terms'] }, + ] + ``` + + The record page, the create and edit forms and the drawer show the group's fields in the list's order, whatever order the object's `fields` declares them in, so a group can be reordered without moving any field (and without changing a list view's default column order). + + Nothing changes for an object that writes no `fields` on its groups: a group without the list still holds the fields whose `group` names it, in field declaration order. `Field.group` is the older spelling and is still read; it is not deprecated for removal. + + The two spellings must agree. The object parse refuses a field one group lists while its own `group` names another declared group (reported at both places; a `group` naming no declared key is not another group, so the list wins), a field two groups list, a name one list repeats, and `fields` on a group that places a related list (`relatedList`). A field whose `group` names a listing group that leaves it out is shown after the listed fields, never dropped. A listed name the object does not declare is skipped, so removing a field never makes the object unparseable; `os lint` warns about it (`field-group-member-unknown`). + + New export: `readFieldGroupMembership` (`@objectstack/spec/data`), the membership `deriveFieldGroupLayout` places sections from, for editors that also show hidden fields. + + Studio: dragging a field inside a group, or into another group, now writes those groups' `fields` lists and leaves the object's field declaration order alone. Only the ungrouped bucket, which has no list, still reorders by declaration order. Moving a field to another group from the field inspector does the same once a list is involved. + + Field-level security: the object document served to a caller who cannot read some fields keeps each group's `fields` list, with the hidden names filtered out and the rest in order, so the record page and forms keep the layout for that caller. +- a23164e: feat(spec, ui): an object takes a colour from a fixed palette, and its icon is drawn as a white glyph on a square of that colour + + Clause-②: yes (widening) + Metadata-protocol: added + + - **`ObjectSchema.color` (new, optional).** One name from a closed palette of nine: `gray`, `blue`, `teal`, `green`, `amber`, `orange`, `red`, `pink`, `purple` (exported as `OBJECT_COLORS` and the `ObjectColor` type from `@objectstack/spec/data`). No free colour values: `color: '#ff0000'` is refused, and the refusal lists the nine names. An object without a `color` is drawn in the neutral `gray`. Nothing to migrate: every existing object stays valid and simply has no colour. + - **The AI blueprint carries it too.** `BlueprintObjectSchema.color` is the same leaf (required-but-nullable on `SolutionBlueprintStrictSchema`, like `icon`), and its rule asks the model to colour every object and give each object of one solution a different colour while the palette lasts. A producer of the STRICT shape must now send `color` on each object, `null` when it has none; the lenient shape a stored blueprint is read with keeps it optional. + - **`ObjectIconTile` (new, `@object-ui/components`).** Draws an icon name as a white glyph on a rounded square of a palette colour, in four sizes. Each name has a light-theme and a dark-theme value chosen so the white glyph keeps at least 3:1 contrast. `OBJECT_COLOR_TILE_CLASS` and `objectColorOrDefault` are exported with it. + - **Navigation draws objects as tiles.** In the sidebar, the app-home menu and the phone menu, every entry that opens an object is drawn as that object's tile: the entry's own `icon` when it names one, else the object's, on the object's colour. Dashboards, pages and links keep their line icons. `NavigationRenderer` takes a new `resolveTargetColor` resolver (`NavTargetColorResolver`) beside `resolveTargetIcon`; the console answers it from the object metadata it already holds (`useNavTargetColor`). A host that passes no `resolveTargetColor` gets its object entries as gray tiles where it had line icons. + - **The designer picks icon and colour together.** In the object's settings, the icon picker shows the nine colour swatches, and the trigger and every icon in the grid are previewed as the tile they become. The picker elsewhere (pages, apps, navigation entries) is unchanged: only objects carry a colour. + - The other places that draw an object's icon (list and record headers, search, related-record chips, the designer's object lists) switch to the tile in a follow-up release. + + `@objectstack/metadata-core`: the field-level-security reference table classifies the new `color` key as `keep` (a palette name names no field). + + `@objectstack/platform-objects`: the generic object form's metadata-form packs ship the new `color` row's label and help text in all 10 locales. +- 9742142: feat(plugin-detail): on the synthesized record page every titled field group folds, open by default + + Clause-②: no + Metadata-protocol: semantic + + On the synthesized (default) record page every field group that has a title now draws the right-hand chevron and folds from its whole title row, whatever its `collapse` says. This holds in the side preview, on the phone's 「详情」 tab, in the wide page's pinned left column and on the full page. Folding a group there is something the reader does. `collapse` still sets the first state: `'collapsed'` starts closed, `'none'` and `'expanded'` start open. 系统信息 still starts closed. + + Unchanged: + + - Forms and the designer preview: `'none'` still means always open, with no toggle. + - The untitled field bucket has no toggle. + - A print page draws every group open. + - An authored record page keeps its own faces. + - The fold state lasts while the record stays open. It is not saved. + + `@objectstack/spec`: the `ObjectFieldGroupSchema.collapse` description, the refusal guidance for a stray `expanded` key and the object form's Collapse help text now say that the default record page lets the reader fold every titled group; the form's "None" option reads "always open on the entry form, no toggle". The enum, its default and what it accepts are unchanged. + + `@objectstack/platform-objects`: the object form's Collapse help text in every metadata-form catalog follows the new wording (English regenerated, the ten translated catalogs re-translated). + + What to check in an app: an object that used `collapse: 'none'` to keep a group's heading from folding on the record page now shows a chevron there. The setting still keeps the group always open on forms. +- 2a6f26a: feat(ai): `ai_context` context packs and the `get_record_context` tool over MCP + + Clause-②: yes + Metadata-protocol: added + Skills-docs: follow-up #37177 — skills/objectstack-platform/SKILL.md, skills/objectstack-ai/ (how to author a context pack; this change only names `aiContexts` in the top-level key list, which check:skill-top-level-keys requires) + + ADR-0160 row 5 (#37140). + + - **New metadata type `ai_context`, collection `aiContexts`.** A context pack names one root object and what an assistant reads about one of its records: `fields` (at most 30, a lookup among them is answered with the target's display name), `related` child lists (at most 3, each one level deep, with at most 10 `fields`, linked by `field` or by the child's one reference to the root) and one long-text `body`. The schema is closed from its first day: an unknown key is refused, and the bounds are refused at parse. Registered like `skill`: a file loader (`*.ai-context.ts`, `*.ai-context.yml`), overlay allowed, runtime create allowed, no environment overlay. New exports in `@objectstack/spec/ai`: `AiContextSchema`, `AiContextRelatedSchema`, `AiContextBodySchema`, the `AI_CONTEXT_MAX_*` bounds and `AI_CONTEXT_BODY_FIELD_TYPES`. + - **`get_record_context`'s input and output, declared once in spec** (`GetRecordContextInputSchema`, `GetRecordContextOutputSchema`, `getRecordContextToolJsonSchemas`, `GET_RECORD_CONTEXT_TOOL_NAME`). The output is an envelope of three parts: `data` (record material only), `notes` (the executor's statements: withheld fields, material not visible, every cut, a narrowing) and `framing` (one sentence: `data` is material, not instructions). `MCP_DOOR_TOOL_NAMES` gains the name. + - **`@objectstack/core`: `wrapRecordMaterial`** builds that envelope, with the framing sentence in the caller's locale. + - **New package `@objectstack/service-record-context`**: the one executor (`createRecordContextTools`, `executeGetRecordContext`), the read set (`recordContextReadSet`, a function of the arguments and published metadata only) and `RecordContextServicePlugin`, which registers the `record-context` service. Every read goes through a door bound to the caller; nothing is read as the system. Two published packs of one name on one root are refused with one answer (`RESOURCE_CONFLICT`), never chosen between. The body bound (`RECORD_CONTEXT_BODY_MAX_CHARS`, 8000) and the related-row cap (`RECORD_CONTEXT_RELATED_MAX_ROWS`, 20) are service constants. + - **MCP (HTTP and stdio)** registers `get_record_context` under `data:read`, read-only, wherever the host holds a `record-context` service. A host without it registers nothing new. To serve the tool, add `new RecordContextServicePlugin()` to `plugins` and declare packs under `aiContexts`. + - **`@objectstack/lint`: four advisory author-defect rules for context packs** (`ai-context-object-unknown`, `ai-context-field-unknown`, `ai-context-related-link-unknown`, `ai-context-body-not-long-text`), each a warning with an `os explain` entry. `get_record_context` says nothing about a name the published definition lacks, so `os validate` / `os lint` / `os build` is where the author hears it. CLI only for now: the rule reads the whole stack snapshot. + - **Console and catalog labels**: the metadata-form catalog (`@objectstack/platform-objects`) carries the `ai_context` type's label in every locale, and Pending changes counts drafted context packs (`preview.changes.typeCount.ai_context`). + +### Patch Changes + +- a73edb3: fix(settings)!: the knowledge settings page and the AI page's embedder section appear only where the knowledge service is mounted + + Clause-②: no (narrowing) — narrowed: on a deployment that does not mount `KnowledgeServicePlugin` (every stock boot), `GET` / `PUT /api/settings/knowledge` and `POST /api/settings/knowledge/test` now answer `404 UNKNOWN_NAMESPACE`, where they served the Knowledge page; a write of an `ai.embedder_*` key (`embedder_provider`, `embedder_api_key`, `embedder_model`, `embedder_base_url`, `embedder_dimensions`, `embedder_batch_size`) now answers `400 UNKNOWN_KEY`, and `POST /api/settings/ai/test_embedder` answers that no handler is registered; the hub list no longer carries `knowledge`, and the Setup sidebar no longer carries `nav_settings_knowledge`. `builtinSettingsManifests` drops `knowledgeSettingsManifest`, and `aiSettingsManifest` drops its embedder section. + Metadata-protocol: none + Skills-docs: none — no skill under `skills/**` teaches the knowledge settings page or the `ai.embedder_*` keys; `skills/objectstack-ai` teaches wiring `KnowledgeServicePlugin`, which is unchanged. + + <!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed, renamed or re-shaped: settings manifests are runtime registrations, not authorable metadata. The moved answers are settings doors that a deployment without the knowledge service no longer serves; a deployment that mounts it serves them exactly as before, and stored rows are untouched, so there is nothing for a migration to rewrite. --> + + **BREAKING** for a deployment that does not mount the knowledge service: the knowledge base is not a default capability, so its settings are no longer offered by default. The Knowledge page, the AI page's Embedder section, their "Test connection" / "Test embedder" buttons and the Setup entry are now contributed by `@objectstack/service-knowledge` when `KnowledgeServicePlugin` is mounted beside `SettingsServicePlugin`, and only then. Values already stored under `knowledge.*` or `ai.embedder_*` stay in the database and are served again as soon as the service is mounted. + + The AI page's description no longer names the knowledge base, in every bundled locale. + + `@objectstack/service-settings` now exports `knowledgeSettingsManifest`, `knowledgeTestActionHandler`, `aiSettingsManifest`, `aiEmbedderSettingsSpecifiers`, `withAiEmbedderSection` and `aiTestEmbedderActionHandler` from its package entry, and its default `actionHandlers` map no longer registers `knowledge.test` or `ai.test_embedder`. `@objectstack/service-knowledge` depends on `@objectstack/service-settings` and declares the settings plugin in `optionalDependencies`, so the kernel inits it first. + + What to do: nothing, unless you configure an embedder or a knowledge backend from Setup. Then mount `KnowledgeServicePlugin` from `@objectstack/service-knowledge` (with a knowledge adapter plugin) beside `SettingsServicePlugin`; the page, the embedder section and the Setup entry come back with it. A host that passed its own `ai` manifest to `SettingsServicePlugin({ manifests })` adds `aiEmbedderSettingsSpecifiers` to it (or wraps it with `withAiEmbedderSection`) to keep the embedder keys. The embedder section joins only the bundled `ai` page, recognised as that very declaration; a host's own `ai` page (or one served through an option source) is left as it is, and the plugin logs a warning saying so. A host that passes its own `actionHandlers` to `SettingsServicePlugin` keeps a `knowledge` entry there only beside the knowledge manifest: without it the settings plugin refuses to register the handler for an unknown namespace at boot. + + Stored credentials: on a deployment that does not mount the knowledge service, `ai.embedder_api_key`, `knowledge.turso_auth_token` and `knowledge.ragflow_api_key` stay stored (as `sys_secret` handles) but no settings door serves, edits or clears them, and the AI page's reset clears declared keys only. To remove them, mount `KnowledgeServicePlugin` once and clear the keys from Setup, or delete their rows from `sys_platform_setting` (the `knowledge` namespace and the `ai.embedder_*` keys) and the `sys_secret` rows whose `id` those rows hold in `value_enc` (a `sec_` handle); until then the `sys_secret` orphan report may list them. +- b38e133: feat(spec): the Studio hook form offers a hook's declared `texts`, and `HookContext` declares `ctx.text` + + Clause-②: yes (widening) + Metadata-protocol: added + + The added key is the type member `HookContext.text` (the authorable-surface record lists `HookContext` members); nothing a stack writes changes. + + - **Studio hook form.** `hookForm` gains a `texts` row beside `refusals`: a key-only record keyed by the snake_case key the hook's code asks for with `ctx.text`, each entry editing its `message` and `params`. An author editing a hook in the Studio can now write the `texts` the schema has accepted since 18.6.0, instead of going through the metadata API or the package source. The row's label and help text ship in all eleven metadata-forms locale packs of `@objectstack/platform-objects`. Nothing about what a hook may declare changes. + - **`HookContext.text`.** `HookContext` now declares `text?: (key: string, params?: Record<string, unknown>) => Promise<string>` (named `HookTextReader`), the call the runtime already binds on every path a hook runs on, declared the way `api` and `notice` are: `z.unknown()` at parse, a static cast for the type, optional because a context parsed without the runtime carries none. A typed handler no longer needs a local type to call `ctx.text`. `HookContextSchema.parse` now keeps a bound `text` instead of stripping it. +- d053c7d: feat(identity): the Add User result says when the address was already pending + + Clause-②: yes (widening) + Metadata-protocol: none + + On a cloud-managed environment, Setup → Users → Add User now says when the address you added was already waiting for its first sign-in, including when you sent only an email. Before, that answer looked exactly like a fresh add. + + - `POST /api/v1/auth/admin/add-sso-user` answers `pendingAgain: true` on a re-add of a person who is still pending, and leaves the key out on a fresh add. It never answers `false`. `alreadyPending` is unchanged and is still on every answer, so nothing an API reader reads today changes. + - The `sys_user.add_sso_user` result dialog gains an "Already pending" row that reads `pendingAgain`. The dialog skips a field whose path is absent from the answer, so the row is drawn only on a re-add; a fresh add shows no `false` row. +- c9b3f7a: feat(account): a Notification Settings page where each person chooses their own notification topics, channels, digest and quiet hours + + Clause-②: yes + Metadata-protocol: none + + The Account app has a new **Notification Settings** page, under Inbox and only when the messaging service runs. It shows one row per notification topic and one column per channel. Each cell shows whether that notification reaches you on that channel, and where the answer comes from: your own setting, your organization's default, the built-in default, or a mandatory topic. Mandatory topics are always delivered and cannot be switched off. A channel the deployment cannot send on yet says so in its column header. Above the matrix you can set your digest and your quiet hours. + + - **The read: `GET /api/v1/messaging/me/preferences`.** This new door answers the signed-in person's *effective* preferences. The server computes them with the same resolver `emit` uses to filter (`PreferenceResolver.effectiveFor`), so the page shows what is actually sent and computes nothing itself. The door takes no parameters and answers only about the caller: there is no `user` parameter, and any parameter is refused `VALIDATION_ERROR` / `400`. It keeps the posture of `GET /api/v1/messaging/preference-options`: + - an anonymous caller gets `401`; + - a held sign-in gets `403`; + - a source it cannot read is `500` / `INTERNAL_ERROR`, never a partial or "everything on" answer. + + The door reads only what the answer needs: the caller's own rows and the organization's default rows, each by equality on `user_id` within the caller's organization. A read that comes back with more rows than its cap is a fault (`500`), never a page. + + The organization's defaults appear only as `source: 'default'` on the caller's own cells. No other person's row, and no row id except the caller's own, is ever answered. + - **The writes: your own `sys_notification_preference` rows, through the data door, as you.** `member_default`, the baseline set every signed-in person resolves (external members excepted), now carries a grant of read, create and edit on the object, with no delete. Two row policies come with it: + - `sys_notification_preference_self` binds every principal that holds the grant. Its row scope is `user_id == current_user.id`, and its write check is the same expression, so the row as written must still be your own. + - `sys_notification_preference_org_admin` widens organization owners and administrators back to every row of their organization. Its write check is `topic != null`, which holds on every row being created because `topic` is required with a default. If `topic` ever becomes optional, an administrator's create is refused, never widened. + + An ordinary member or a delegated administrator lists only their own rows. Their create with `user_id` omitted, empty or naming another person is refused `403` / `PERMISSION_DENIED`, as is moving their own row to another person or to the organization default. + - **Owners and administrators are unchanged.** They still list every row, create and edit the organization default, create and edit another person's row, and delete in the Setup grid. + - **App-authored grants are narrowed too.** `sys_notification_preference_self` carries no `positions` domain, so it binds every principal that holds a grant on this object, including through an app's own permission set. A role other than organization owner or administrator that an app grants this object reads and writes only its own rows, unless the app declares its own widening policy for that role. + + There is no "reset to the organization's default" button, because that needs a delete, which members are not granted. Changing your digest or quiet hours saves your own general setting, and the page says so beside the control. From then on, that setting applies in place of the organization's defaults to every topic and channel you have not set yourself. +- 01e6af6: Clause-②: no + Metadata-protocol: none + + feat(messaging): Setup lists the Slack page where connector-slack is composed + + - **Setup › Integrations › Slack.** Where connector-slack is composed, Setup now lists a Slack entry under Integrations. It opens the console's Slack page (`messaging:slack`), where an organization administrator installs or replaces the organization's Slack token, removes the install, and reviews or removes each member's Slack link. The entry asks `setup.write`, the capability every Slack administrator door asks. `MessagingServicePlugin` registers it in the same `kernel:ready` hook, and on the same condition, as the `slack` channel. Without connector-slack, Setup lists no Slack entry. The label is translated in every locale the platform ships. The bundle is exported as `SLACK_SETUP_UI_BUNDLE`, with `SLACK_SETUP_COMPONENT_REF`. + - **The Slack link removal topic, on every deployment.** `GET /api/v1/messaging/preference-options` and `GET /api/v1/messaging/me/preferences` list the topic `messaging.slack_link_removed` on every deployment, including one without connector-slack. It is emitted only where connector-slack is composed, when an administrator removes a person's Slack link or removes the organization's Slack install. +- 4026c44: fix(identity): two Setup outcome texts say only what is true + + Clause-②: no + Metadata-protocol: none + + - On a deployment without live mail, Invite User (Users, Members, Invitations, the organization page) and Resend Invitation no longer tell the admin to use Copy Invite Link. Accepting an invitation needs a verified email address, and without mail a password account cannot verify one, so a copied link only admits the sign-up. The message now says so: only an invitee whose social or SSO sign-in verifies the address can accept, and for anyone else a platform administrator creates the account (the operator path in the self-hosting guide). The translations carry the same text. Nothing else changes: the outcome, the action and Copy Invite Link behave as before. + - Import Users (cloud-managed environments) labels its `alreadyPending` count and column "Already pending" instead of "Already pending, told again". A deactivated pending person is re-added without the hosting organisation being told, so the old label contradicted the "Why not told: deactivated" cell beside it; whether the host was told is the "Hosting organization told" and "Why not told" columns' answer, as on Add User. +- c0716ed: feat(spec): the Studio action form offers an action's declared `refusals` and `texts` + + Clause-②: no + Metadata-protocol: none + + - **Studio action form.** `actionForm` gains two rows in the Behavior section, right after the script `body`, each shown only on a `type: 'script'` action as the body is: `refusals`, a key-only record keyed by the SCREAMING_SNAKE code the body throws, each entry editing its `message`, `status`, `reasons` (a key-only record of `{ message }`) and `params`; and `texts`, a key-only record keyed by the snake_case key the body asks for with `ctx.text`, each entry editing its `message` and `params`. They are the hook form's two rows, because the action entries are the hook entries. An author editing an action in the Studio can now write the `refusals` and `texts` the schema already accepts, instead of going through the metadata API or the package source. Nothing about what an action may declare changes. + - **Locale packs.** The rows' labels and help text ship in all eleven metadata-forms locale packs of `@objectstack/platform-objects`. +- 89ea9bf: feat(platform-objects): Setup → Users can take a pending person back out on a managed environment + + Clause-②: no + Metadata-protocol: none + + `sys_user` gains a row action, `remove_sso_user` (Remove Pending User), on the Users list row and the user record header. It posts the row's id as `userId` to plugin-auth's `admin/remove-sso-user`, which removes a person added ahead of their first sign-in and cancels their invitation at the hosting organization. It is offered only where that door answers: to a platform administrator, on a cloud-managed environment, on a row that is still pending (`source` is `idp_pending`). A confirmation dialog asks first and says that no one is removed when the person has signed in meanwhile or the hosting organization cannot be reached. The door itself is unchanged. Its labels are added to the translation bundles, translated for zh-CN, ja-JP and es-ES. +- 61722e9: feat: Change Owner cascade — a relationship declares `transferBehavior: 'cascade'`, and the Change Owner dialog offers it as a tick + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: follow-up #36713 + + A Change Owner can now move related records along with the record, relationship by relationship. + + - **The declaration.** A `lookup` or `master_detail` field takes `transferBehavior: 'none' | 'cascade'`, beside `deleteBehavior` (omitted means `'none'`). `'cascade'` on the child's reference field to a parent says: when the parent's owner changes, the child records that point at it and are owned by the parent's previous owner may move to the new owner too. No other child records move; there is no filter key. + - **Refused where it could never act.** The key is refused on any other field type, `'cascade'` is refused on a reference to a `sys_` object and on a multi-value reference (`multiple: true`), and `'cascade'` is refused on a field of an object that does not offer Change Owner itself: one that is not structurally eligible (no reassignable owner), a `controlled_by_parent` detail (its access already follows its master), or one whose `userActions.transfer` is off. Each refusal names the field and the fix. + - **The request.** `POST /api/v1/data/:object/:id/change-owner` and `POST /api/v1/data/:object/change-owner` take an optional `cascade: [{ object, field }]` naming the relationships to move along (`data.changeOwner` / `data.changeOwnerMany` in `@objectstack/client`). A relationship that does not declare `'cascade'`, or whose child does not offer Change Owner, is refused `400 VALIDATION_ERROR` before anything is written; so is a cascade with a queue target. Each cascaded record is updated as the caller, so it needs the caller's own transfer grant on the child object. Each relationship's outcome in the answer's `cascade[]` lists every record the caller's write refused, with its id, code and sentence: a related record whose `owner_id` is locked on it (read-only, or under a `readonlyWhen` that holds) is refused `FIELD_NOT_ACCESSIBLE` and keeps its owner, as the record itself would be, while the record's own move stands. One call moves at most 500 related records; the records past that limit are counted in `remaining`, still with the previous owner, not listed. When a relationship's records could not be read, its outcome carries `readFailure` and none of them moved. + - **The candidates.** `GET /api/v1/data/:object/change-owner/cascades` (`data.changeOwnerCascades`) lists the relationships declared to an object whose child offers Change Owner. A child whose declared API exposure does not serve `update` is left out, and so is a child of a disabled package. + - **The Studio.** The field form and the object form's field rows offer `transferBehavior` beside `deleteBehavior`, on `lookup` and `master_detail` fields; the row's label and help text ship in the metadata-forms locale packs of `@objectstack/platform-objects`. + - **The dialog.** For a person target, the Change Owner dialog lists those relationships on which the explain engine allows the caller the `transfer` operation, one tick each, sends the ticked ones, and draws each relationship's outcome, every record it did not move included. + + A plain `owner_id` update is unchanged: the declaration is read only by the Change Owner action. +- 7411f9b: feat(spec, platform-objects): the standard unit table and the organization unit object `sys_unit` (ADR-0158 U1–U3) + + Clause-②: yes (widening) + Metadata-protocol: none + + Units of measure, first release (ADR-0158 U7 R1). Nothing reads these tables yet: the unit declaration on a `number` field, the write-time membership check and the display of a quantity with its unit ship with their own cards. No field key ships here. + + - **`@objectstack/spec`** (`@objectstack/spec/data`) exports `STANDARD_UNITS`, a closed table of 41 UN/ECE Recommendation 20 codes. Each code carries its dimension (`UNIT_DIMENSIONS`: `mass`, `length`, `area`, `volume`, `time`, `count`, `package`) and its ratio to the dimension's base unit (`UNIT_DIMENSION_BASE_CODES`: `KGM`, `MTR`, `MTK`, `MTQ`, `SEC`, `H87`), as an exact decimal string: `1 CODE = ratio × BASE`. Package codes (`XBX`, `XCT`, `XPX`, …) carry no ratio. The piece is `H87`; `C62` and `EA` are not members. `ORGANIZATION_UNIT_CODE_PATTERN` is the namespace of an organization's own codes (uppercase letters, digits and underscores, at least 4 characters or containing an underscore), which no standard code can match. `PLATFORM_OBJECTS_BY_PACKAGE['platform-objects']` gains `sys_unit`. The table is not a value domain: `ValueDomainSchema` keeps its three members. + - **`@objectstack/platform-objects`** registers `sys_unit` (Setup → Configuration → Units of Measure), an organization's own units: `code`, `label`, `dimension`, `ratio` (scale 12; required on every dimension but `package`, refused on `package`), `decimal_places` (a display default) and `retired`. It is organization-owned behind the tenant wall and ships no rows. A code outside the organization namespace is refused, the code is unique within the organization, and the code and dimension cannot change after create. A unit is retired instead of deleted, and retiring cannot be undone, so a code is never created again with another meaning; the data API serves no delete on it. Every column carries field history. + - **`@objectstack/plugin-security`**: `member_default` reads `sys_unit`, so a unit's label displays to every member; organization administrators write it through their existing grant. + - **`@objectstack/cli`**: the organization-ownership inventory lists `sys_unit` as attributed to its organization. +- e114324: feat(units): a number field declares its unit with `unitConfig`, and the engine checks every unit code it stores + + Clause-②: yes + Metadata-protocol: added + + ADR-0158 R1, the membership card (#35489). + + **`unitConfig` on a field** (`@objectstack/spec`, `UnitConfigSchema`): + + - `{ unitMode: 'fixed', unit: 'KGM' }` on a `number`: the quantity is always in one standard UN/ECE Recommendation 20 unit, checked at parse against the standard unit table (exact uppercase; `C62` and `EA` are answered with the piece, `H87`). + - `{ unitMode: 'record', unitField: 'uom', unitDimension?: 'mass' }` on a `number`: each record names its unit by code in the sibling `text` field `unitField` names. The object refuses a pointer into nothing, into a non-`text` field, through a parent (`PARENT_FIELD.UNIT_FIELD` is reserved: a child cannot follow its parent's unit yet), or into a field carrying its own marker, and two quantities sharing one unit field with different `unitDimension` values. + - `{ unitMode: 'code', unitDimension?: 'count' }` on a `text`: a field holding a unit code with no quantity beside it, such as a material's base unit (Open item 8, ruled A). It is a unit marker, not a value domain, and is refused beside a `valueDomain`. + - `unitMode` is required and has no default. The key is refused on every other field type (`currency`, `formula`, `summary` included). A quantity stays a bare number, and needs no `scale`. + + **The write check** (`@objectstack/objectql`): at every insert, by-id update, predicate update and `validate()` preview, a unit code the row stores must be a standard code or one of the organization's own non-retired units (`sys_unit`), in exact uppercase and of the declared `unitDimension`, and a quantity may not stand beside a blank code. The row image is judged whenever the write touches the quantity or its unit field (Open item 9). Refusals, each 400, registered in the error-code ledger: `ERR_UNIT_CODE_REQUIRED`, `ERR_UNIT_CODE_UNKNOWN`, `ERR_UNIT_CODE_RETIRED`, `ERR_UNIT_DIMENSION_MISMATCH`. A row resting on a code that is no longer a member stays editable in its other fields; a quantity edit beside it is refused until the row moves to a member unit. + + **A unit is retired, never deleted**: the engine refuses a delete of a `sys_unit` row for every caller, a system writer and an automation run included, by id and batched (405 `ERR_UNIT_DELETE_REFUSED`), and `organization_admin` names `sys_unit` explicitly with no delete (`@objectstack/plugin-security`). + + `@objectstack/metadata-core` and `@objectstack/driver-sql` classify the new field key (field-level security keeps it; the DDL does not read it). `@objectstack/platform-objects`: the `sys_unit` docblock names its readers. +- f98f18c: feat: an object's `userActions.exportCsv: false` hides the console's Export entry + + Clause-②: yes + Metadata-protocol: semantic + + `userActions.exportCsv` on an object now does what the Studio object form says it does. Set to `false`, the console offers no Export entry for downloading that object's data, in any of its formats (CSV, XLSX, JSON): + + - the object grid hides its toolbar Export menu, and the table's own CSV button that `operations.export: true` turns on; + - the list view hides Export in both toolbar forms, the wide toolbar's button and the Display panel's export footer; + - a dataset report hides its Export control when the dataset's base object sets it. + + A view's export of the picture it draws is not covered: a Gantt view's PNG and PDF buttons stay. + + Every surface reads one verdict, the new `isObjectExportOffered(objectSchema, effectiveApiOperations)` from `@object-ui/core`: the authored `exportCsv` over the object's `managedBy` default, ANDed with the caller's effective `export` API operation. Before this change the grid's toolbar menu, the list view and the report read the effective operation but not the object's bit, and the grid's table CSV button read neither half (only `operations.export`), so `exportCsv: false` changed nothing. Export is a read, so the verdict is not a row of `AFFORDANCE_GRANTS` and asks no `can(object, verb)`: the caller's export grant reaches the console through the effective `export` operation, which the server derives from `list` and `allowExport`. + + An object that does not author the key keeps its Export entries, since every `managedBy` bucket still defaults `exportCsv` to `true` (ADR-0103), with one change: the grid's table CSV button (`operations.export: true`) now also follows the effective `export` operation, as the toolbar menu beside it already did. So a viewer whose effective operations exclude `export` no longer sees that button, even on an object that authors nothing. The setting hides the entry and is not a permission: no export request is refused because of it, and who may export is still the permission set's `allowExport`. The report reads the base object's definition through the report's data source, and a report whose source cannot serve one keeps its Export control. + + The spec's `exportCsv` description and the Studio form's help text now say this; the form's English help text bundle in `@objectstack/platform-objects` is regenerated to match, and the translated locales keep their wording. The liveness ledger grades `userActions.exportCsv` `live`, so an authored `exportCsv: true` no longer raises the `liveness-dead-property` warning at `os lint` / `os validate`. Nothing needs migrating. +- 17ed9e7: fix(objectql): deleting an organization also deletes its units of measure, the one exemption from the `sys_unit` delete refusal + + Clause-②: yes (widening) + Metadata-protocol: none + + An organization that had ever created a unit of measure could not be deleted: the delete was refused with 409 `DELETE_RESTRICTED` naming `sys_unit`, and the units could not be removed first, because the engine refuses every delete of a unit (405 `ERR_UNIT_DELETE_REFUSED`). Now the organization delete's own cascade removes that organization's `sys_unit` rows, retired ones included, through the engine's delete path, after the delete has been admitted, so no unit row is left naming a deleted organization. `organizationOwnedRowCounts` (the question plugin-auth's organization delete asks first) and the engine's own refusal no longer count units as records the organization still owns. + + **Declared behaviour change.** A delete door widens, in one place only. A delete of an organization that holds units and no other record now succeeds and removes the units; before, it was refused. An organization that owns any other record is still refused, and none of its units is removed. Every other delete of a unit is still refused with 405 `ERR_UNIT_DELETE_REFUSED`, by id and batched, for a user, a system writer and an automation run, including a delete issued by a hook while the organization's delete is running: the exemption is recognised from the engine's own cascade, never from anything a caller passes. Retire a unit (`retired: true`) to stop its use, as before. +- 8df7bf2: feat(spec): an object's `relatedLists` is its record page's tab list — only the listed related lists show, in order, the attachments, approvals and activity-stream tabs are placed by object name, and an entry can carry its list's title and columns + + Clause-②: yes (widening) + Metadata-protocol: semantic + + A record page's tabs are now declared on the parent object, in one place: + + ```ts + relatedLists: [ + { list: 'quote_line', label: 'Line items', columns: ['product', 'quantity', 'unit_price', 'amount'] }, + 'task', + 'sys_attachment', + 'sys_approval_request', + 'sys_activity', + ], + ``` + + - **No `relatedLists` (or an empty one): nothing changes.** Every related list shows, in the derived order, then attachments, approvals and the activity stream. + - **A declared `relatedLists` now decides which tabs show**, not only their order. A related list no entry names shows no tab; before, it still followed the listed ones. Removing an entry removes its tab. Body tables a field group places in the overview (`fieldGroups[].relatedList`) stay at their group, and the tab such a `master_detail` table also keeps on an undeclared page shows only when an entry names it, and `relatedList: false` on the child's FK still hides a list. + - **This narrows the #35889 note** ("Its tab stays on the tab row too, with its count"): the tab of a `master_detail` child that a field group places in the overview stays only while the parent declares no `relatedLists`; once it declares one, that tab shows only if an entry names the child. + - **The three built-in tabs by object name**: `'sys_attachment'` (attachments; shown only when listed, and still only when the object enables files), `'sys_approval_request'` (approvals; still only on a record with requests, and when unlisted it follows the listed tabs), `'sys_activity'` (the one activity stream; when unlisted it closes the strip). A built-in is written only as its bare name: `{ list: 'sys_attachment', … }` is refused at parse. `'sys_comment'` and `'sys_audit_log'` are parts of the stream, not tabs: `os validate` warns (`related-list-stream-part`) and prescribes `'sys_activity'`. `'sys_attachment'` on an object without files warns (`related-list-attachments-off`). + - **An entry's own title and columns**: `{ list, label?, columns? }` wins over the child FK's `relatedListTitle` / `relatedListColumns`, which keep working unchanged. The columns are child field names, used wherever the list is drawn (its tab, and the body table a field group places); a dotted column (`account.industry`) walks the child's relationships, as `relatedListColumns` does, and a name that resolves to no field of the child is refused (`related-list-column-unknown`) by `os validate`, `os build` and the metadata write door. + + - **The generic object form** (metadata admin) edits `relatedLists` with its own chip input: a bare name and an object entry both show and both survive add and remove (the entry's title and columns beside its name; they are edited in Studio). Its help text states the tab-list meaning in every translated locale. + - **Studio** (object settings, Record page tabs): the editor lists the entries in order, the built-in tabs among them, and offers the built-ins not yet listed (attachments only when the object enables files). A relationship row's edit sets its own title and columns, and clearing both writes the bare name again. The relationships not listed are shown below as having no tab. A move, a removal or an add keeps every entry's object form and every built-in name. + + What to check in an app: an object that already declares `relatedLists` and leaves some related lists out now shows only the listed ones, and shows no attachments tab unless `'sys_attachment'` is listed. List every tab the page should keep, or remove `relatedLists` to show them all. A child list another package adds is hidden too until the parent names it, which a build accepts only when that package is in the parent's stack; letting a package place its own list is a later change. ADR-0087 semantic entry `related-lists-declared-is-tab-list`. +- a98c077: fix(platform-objects): the view form's navigation help no longer says rows open in a drawer by default in Arabic, German, French, Korean, Brazilian Portuguese, Russian and Traditional Chinese + + Clause-②: no + Metadata-protocol: none + + The `navigation` and `navigation.mode` help texts of the view metadata form are now translated from the current English in these seven locales, matching the zh-CN, ja-JP and es-ES wording: `mode` is deprecated on an object's list (the record name opens the full page, the hover icon the side panel), and `none` still means rows open nothing. Before, the `navigation` help still said the drawer is the default, and `navigation.mode` showed an older English copy. +- 236c804: feat(spec)!: retire the boolean arm of a relationship field's `inlineEdit` — `true` and `false` both read as the key left out + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: follow-up #37042 + + <!-- adr-0087: registered field-inline-edit-boolean-removed, field-inline-edit-boolean-retired --> + + **BREAKING** accept-set narrowing on `FieldSchema.inlineEdit` (`@objectstack/spec/data`), the inline form factor of a `lookup` or `master_detail` field. Since the field-group placement, a field group of the parent (`fieldGroups[].relatedList`) decides whether the parent's create and edit forms inline a child, and `inlineEdit` only picks the form factor of a placed child. Every reader of the key passes anything but `'grid'` and `'form'` as absent, so `true` (documented as "auto") and `false` both did exactly what leaving the key out does: the form factor is picked from the child's shape. + + | FROM | TO | + |:--|:--| + | `inlineEdit: true` on a `lookup` / `master_detail` field | delete the key (the form factor is still picked from the child's shape), or write `'grid'` / `'form'` | + | `inlineEdit: false` on a `lookup` / `master_detail` field | delete the key | + | a child meant to be entered in the parent's form | name it in a field group of the parent: `fieldGroups: [{ key: 'lines', label: 'Lines', relatedList: '<child object>' }]` | + + The one-line fix: delete a boolean `inlineEdit` wherever it is written; `os migrate meta --from 17 --write` deletes it from object sources. Writing one after upgrade fails `tsc` (the input type is `'grid' | 'form'`) and fails the parse with that prescription. `'grid'` and `'form'` parse unchanged. The view-level `inlineEdit` (a list view's in-cell editing switch) is a different key and is unchanged. + + The retirement kit: + + - **`@objectstack/spec`**: `FieldSchema.inlineEdit` is `z.enum(['grid', 'form'])`, and a boolean meets the prescription from the enum's own error map. The D2 conversion `field-inline-edit-boolean-removed` (lossless, retired from the load path) deletes a boolean `inlineEdit` from `objects[]` and `objectExtensions[]` field maps on every data-at-rest seam (stored rows, built artifacts, `os migrate meta`); the D3 entry `field-inline-edit-boolean-retired` names what the upgrade still owes: whether the child should be placed by a field group of the parent. The liveness ledger keeps the key `live` for the two surviving values, with the narrowing recorded. + - **Field form** (`@objectstack/spec` `field.form.ts`, labels in `@objectstack/platform-objects`): with the boolean arm gone a select spells every value, so the field designer now offers `inlineEdit` as a `Grid` / `Form` select on `lookup` and `master_detail` fields; left unset, the form factor is picked from the child's shape. Before, the form left the key out because no widget could spell a boolean-or-string union. + - **`@objectstack/lint`**: two doc comments in the field-consumer rule (`validate-field-consumers.ts`) now read a boolean `inlineEdit` as refused by the spec and as absent at the renderer; comment text on unexported functions only, so no shipped byte changes. + - **`@objectstack/cli`**: the golden metadata-eval corpus places its line items with a field group of the parent, with `inlineEdit: 'grid'` as their form factor, instead of `inlineEdit: true`. +- d71fe59: fix(platform-objects): every locale's Studio help for related-list field groups and inline columns states the field-group rule + + Clause-②: no + Metadata-protocol: none + + A master-detail child table appears on the parent's create and edit forms, and at a place on its record page, when a field group of the parent names it (`fieldGroups[].relatedList`); `inlineEdit` alone no longer does that. The English and Simplified Chinese Studio help already said so. The Arabic, German, Spanish, French, Japanese, Korean, Portuguese (Brazil), Russian and Traditional Chinese help for two keys still gave the old rule. The inline columns help said the columns are used only when the field sets `inlineEdit`, and the field group help said the record page does not draw the placement yet. Both now match the English text. +- f548bdc: fix: descriptions and help text no longer say the default record page draws a key-field strip or a stage path + + Clause-②: no + Metadata-protocol: none + + The default record page draws no key-field strip and no stage path: the stage is the status tag beside the record name. These texts said otherwise and now say what each key drives: + + - `@objectstack/spec`: the `highlightFields` describe ("Drives default list and related-list columns, cards, hover cards, previews and the record picker; the default record page draws no strip from it") and its Studio help text. The `stageField` and `RECORD_HIGHLIGHTS_MAX` doc comments say the header's status tag reads the stage and the count cuts only a strip a page places in its `highlights` slot. The upgrade-guide entry `field-group-shadowed-six-highlights` no longer tells authors to move highlights: the warning now judges the record title alone, and no action is owed. + - `@objectstack/platform-objects`: the `highlightFields` help text in every metadata-form locale. + - `@objectstack/lint`: the `os explain` text of `object-field-ref-unknown` and `semantic-role-field-unprovisioned` names the hover card and the record picker in place of the strip. + - `@object-ui/plugin-detail`: the `record:details` `hideFields` description no longer says the default page fills it. The key is still accepted. + - `@object-ui/i18n`: Studio's lifecycle-field help (`stageField`, and its "None" choice) talks about the status tag, not a progress bar. + - `@object-ui/types`: the page `highlights` slot doc says it places a strip the synthesized default does not draw. + - `@object-ui/app-shell`: on a phone the default record page no longer hands the synthesizer a highlight list it never read. The page looks the same, and the subtitle under the record name is unchanged. +- a5a5312: feat(console): a list's column widths, row height and tab order are kept in this browser only + + Clause-②: no + Metadata-protocol: none + + On a Console object list, the column widths a reader drags, the row height they pick and the order they give the view tabs are now kept in their own browser only, per signed-in user and object (localStorage `list-layout:<user id>:<object>`). Nothing is sent to the server: the Console no longer reads or writes the per-user list preference row `sys_user_preference` `ui.list.<object>`, and its boot read of the reader's preferences no longer asks for that key family. A list opens at once, without waiting for that read. + + - Another browser or device opens the list on its view's own widths, row height and tab order until the reader changes them there. + - Signing out clears these entries with the rest of this browser's Console state, as before. + - With nobody signed in, nothing is kept. + - The record page's "show empty fields" choice (`ui.record.<object>`) is unchanged and still follows the reader. + + Upgrade note: what an earlier Console kept for a reader's lists is not carried over. The `ui.list.<object>` rows are no longer read, so every reader's lists open on their views' own widths, row height and tab order until they change them again. This browser's old copies (`list-state:*`, `list-filters:*` and `viewOrder:*` in localStorage) are removed on the first list the Console opens. The server rows stay where they are, unread; leaving them does no harm. + + `@object-ui/data-objectstack`, `@object-ui/react` and `@objectstack/platform-objects` change only comments and a README example that named the retired key. No metadata key, value or default changes. +- 8c5a81e: fix(plugin-list): Refresh alone no longer draws the Display entry in the default list toolbar + + Clause-②: no + Metadata-protocol: none + + The default (Display) list toolbar has no Refresh button, yet `userActions.refresh` still counted as a reason to draw the toolbar's Display entry. On a non-grid view (kanban, calendar and the rest) whose other Display controls were all off, the entry opened a panel holding only its footer. Refresh no longer counts, so such a view draws no Display entry. The wide toolbar (`compactToolbar: false`) still draws Refresh as before, and `userActions.refresh: false` still takes it off there. + + `@objectstack/spec`: the `userActions.refresh` description now says the toggle governs only the wide toolbar's Refresh button and changes nothing in the default toolbar. The view form's hint for the key says the same, and `@objectstack/platform-objects` ships it as the English help text in the metadata-forms bundle; the other locales keep their existing translations. Only the description text changed: the key, its type and its default are the same. +- 6943af1: fix(platform-objects): Setup → Users shows who a user's manager is, who reports to them, and can remove a manager + + Clause-②: no + Metadata-protocol: none + + An administrator who set a user's manager could not read it back anywhere in Setup: the record page's Details tab named no section holding `manager_id`, no list showed the people reporting to a user, and the Set Manager dialog opened on an empty picker. The value was stored correctly; only the reading back was missing. + + - **Details → Reporting Line** shows the user's manager (`sys_user.manager_id`, still read-only on the record; it is written only through the admin endpoint). + - **Details → Direct Reports** lists the users whose manager is this user. It is read-only: a report's manager is changed on that report's record. + - **Set Manager** now opens on the current manager (the param is field-backed on `manager_id` with `defaultFromRow`), so an admin sees what a re-point replaces. The request body is unchanged: `{ userId, managerId }`. + - **Remove Manager** (new `sys_user` action `remove_user_manager`, on the row menu and the record header) clears the link by posting `managerId: null` to `POST /api/v1/auth/admin/set-user-manager`. It carries the same platform-admin gate as Set Manager, is offered only while the user has a manager, asks for confirmation, and is not exposed to AI agents. The endpoint's refusals are unchanged and apply to the clear too: an identity a SCIM directory holds is refused there. +- 70194ff: feat(audit): a record's activity stream shows each changed field's old → new values by default, with a new `fieldHistory` off switch on the object and the field, and a reader is served only the changes of fields they may read + + Clause-②: yes (widening) + Metadata-protocol: semantic + + A record's activity stream now shows `Field: old → new` for every changed field, on every object, unless the object or the field turns it off. Before, values showed only for a field that declared `trackHistory: true`. Every other change was named by its field label alone. + + - **New `enable.fieldHistory`, with no default.** Absent: values show. `false`: off for the object, and a change names its fields only. It has no default so that a parsed body never writes one. A built artifact or a stored definition therefore gets values when it is upgraded, with no rebuild. + - **`enable.trackHistory: false` alone no longer turns values off.** The flag keeps its meaning: with `true`, the default record page shows the compliance ledger's field changes to a reader the ledger serves, and the derived `history` API verb is served. To keep an object's activity free of values, write `enable: { fieldHistory: false }`. Every platform object that wrote `trackHistory: false` now also writes `fieldHistory: false`. + - **New field `fieldHistory`, with no default: the field's off switch.** Absent shows the values, `false` names the change without them, `true` shows them (a media or JSON type included). Under an object with `enable.fieldHistory: false`, values stay off whatever a field says. + - **Field `trackHistory: false` no longer means anything: it reads like absent, so the values show.** The field designer wrote it on every save while the key meant nothing, so a stored `false` cannot be told from a choice. `trackHistory: true` keeps one job: it opts a media or JSON field in. A credential field (`secret`, and `password` off better-auth objects) never shows values, because both sides are the same mask. A media or structured-JSON field (`image`, `file`, `avatar`, `video`, `audio`, `signature`, `composite`, `repeater`, `record`, `location`, `address`, `code`, `json`, `vector`) shows them only with an explicit `true` (`fieldHistory` or `trackHistory`). + - **The new field key is classified where every `FieldSchema` key is.** The SQL driver counts `fieldHistory` as a presentation key, so creating a column never reads it. The field-level-security scrub keeps it as written, because a boolean names no field. + - **Who reads a value:** the field-change code (`metadata.summary_message`) is now served to readers. It is narrowed change by change with the same field answer as `metadata.old` and `metadata.new`. A reference field's change is kept only for a reader served the referenced record's title. When a reader is not served some of a summary's changes, the summary is rebuilt from the changes they are served instead of being dropped whole. The full audit ledger is not widened. + - **A long value no longer fails the activity insert.** The stored summary is fitted to `sys_activity.summary`'s `maxLength` (500): each side is cut first, then trailing changes are left out. The code keeps every change, with each side capped at 1,000 characters. + + To keep an object's activity free of values, set `enable: { fieldHistory: false }` on it. For one field, set `fieldHistory: false` on that field; `trackHistory: false` does not turn values off. +- 7a5ae65: docs(spec): the `compactToolbar` describe says which toolbar is the default and that it draws no Refresh + + Clause-②: no + Metadata-protocol: none + + The `compactToolbar` description on a list view (and the view form's hint for it, which mirrors it) now says what a renderer does when the key is omitted and which toolbar `userActions.refresh` applies to: the compact toolbar (the View settings popover) is on by default, omitted or `true`; `false` draws the wide toolbar, one button per control. The compact toolbar draws no Refresh button, so `userActions.refresh` governs only the wide toolbar; pull-to-refresh is unaffected by either key. This matches the `userActions.refresh` description, which already scopes the toggle to the wide toolbar. + + Description text only: the key, its type, its optionality and the accepted values are unchanged, so every view that parsed before parses the same. The generated reference pages and the English metadata-forms help text carry the new sentence; the translated help texts keep their current wording. +- 70d07fd: feat: an object arranges its actions per scope (`actionLayout`: pinned buttons and the 「More」 order), and the design mode sets it + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: follow-up #36630 + + A page header draws at most three of its actions as buttons and puts the rest in its 「More」 menu. An object now arranges them itself with the new optional key `actionLayout` on `ObjectSchema` and `ObjectExtensionSchema`: `{ list?: Arm, record?: Arm }`, where `Arm = { pinned: string[], more?: string[] }`. `pinned` names the buttons in the order drawn, at most three (`[]` pins none); `more` orders the 「More」 menu; an action the scope places that neither part names goes to the end of 「More」 in its default order. A pinned action that is hidden leaves its button out, and no other action takes its place. + + - `list` arranges the actions placed at `list_toolbar` and the list page's built-ins `$import` and `$export`. A built-in is only ever pinned: one named in `more` is refused with its reason, since not pinned the list page draws it in its own Import / Export menu. + - `record` arranges the actions placed at `record_header` or `record_more`. It is a scope, not a page: the record page header, the side preview and a phone's bottom action bar all read it. A `page:header` that authors its own `actions` list keeps that list. + - An arm left out (or the key left out) draws that scope exactly as before. + + What each package gains: + + - `@objectstack/spec`: the key and its shape refusals at every door (more than three pinned, a name given twice in one part or in both, a malformed name, a built-in the scope does not have, a built-in in `more`, since a built-in is only ever pinned), each with its reason. New exports `OBJECT_ACTION_LAYOUT_PINNED_LIMIT`, `OBJECT_ACTION_LAYOUT_SCOPES`, `OBJECT_ACTION_LAYOUT_BUILTINS` and the types `ObjectActionLayoutScope`, `ObjectActionLayout`, `ObjectActionLayoutArm`. The object form offers it under Advanced, one JSON row per arm. + - `@objectstack/objectql`: `actionLayout` joins `fieldGroups` and `relatedLists` as a key only the base's paired `.custom` package writes on an `object_extension` (ADR-0146 D10). It is applied last, after every other layer, arm by arm: each arm it writes replaces the served arm for that scope whole, and an arm it leaves out stays. A manifest's `objectExtensions` entry now carries the key to the fold. + - `@objectstack/metadata-protocol`: the one judge refuses `actionLayout` from any other package, naming the action's own `locations` and `order` as the way to place an action the package brings. Each door says it its own way: publish, restore and draft promotion of an `object_extension` answer `VALIDATION_ERROR` / 400; marketplace install refuses the package body with `VALIDATION_ERROR` / 422; `os validate` and `os build` exit non-zero and print the row; the registry fold skips the key and leaves a note. + - `@objectstack/lint`: `validateObjectActionLayout` (`object-action-layout-unknown`, `object-action-layout-not-placed`, at `error`) refuses in `os validate`, `os build` and `os lint` a name, in either part, that is no action of the object or is not placed in the scope its arm arranges. + - `@object-ui/types`: `arrangedHeaderActions(actions, arm, scope)`, the one reader both record headers and the list header apply, and `readActionLayoutArm`. + - The console: both record headers (the default page's and an authored `page:header` with `placedActions: true`) and the list header draw the arrangement. In the design mode, 「Header buttons」 at the end of the page header lists the scope's actions under 「Pinned to header」 and 「Other」 (the 「More」 menu), each dragged into order; a dot moves an action between them, a fourth pin is refused with a toast, the header shows the change at once, and 「Save」 writes only the arms that changed: into the object's own package when it is writable, else into the installed object's customization package as an `object_extension`, through the one writer of an installed object's arrangement (`saveObjectExtensionArrangement`, whose patch type now takes the object-shaped `actionLayout`), which refuses a customization package the server does not list writable. A name the scope no longer offers is listed in the panel as left out. A name the header cannot draw is refused at save with its reason. New `@object-ui/i18n` keys under `designMode.pins`. +- 3b58921: feat(console): record create and edit stop loading internal forms; a field's Show on create switch + + Clause-②: no (narrowing) + Metadata-protocol: semantic + + <!-- adr-0087: registered internal-record-forms-not-loaded --> + + The Console's record create and edit surfaces no longer load an object's internal form view. The create dialog, the edit dialog, the full-page create and edit (`/new`, `/record/:id/edit`) and a create or edit an action opens now lay the record out by the object's field groups (`fieldGroups`) and follow the rules on its fields (`visibleWhen`, `readonlyWhen`, `requiredWhen`, `required`). What used to steer those surfaces and now steers nothing: the default form view (`form`, `formViews.default`), the `create` form view, and on them `sections`, the `tabbed` and `wizard` layouts, `defaultTab`, `tabPosition`, `subforms`, `modalSize`, `buttons`, `layout` and `defaults`. A master-detail sub-table still comes from `fieldGroups[].relatedList`, and a flow screen reads its sub-table settings from there too. + + An app that still declares an internal form installs and runs as before; the definition is inert. A public form (`sharing.enabled: true`) keeps loading at its own link by its own definition, and a named form an action of type `form` opens is unchanged. + + `showOnCreate` is now live: a field with `showOnCreate: false` is left out of every create surface and stays on edit, the record page and lists. The field form (`field.form.ts`) and the Studio field inspector offer it as "Show on create", on by default; a required field keeps it on. + + `@objectstack/lint` adds the advisory rule `form-view-internal-not-loaded`: a warning, never an error, on each internal create or edit form an app declares (a container's `form`, `formViews.create`, `formViews.default`, and a stored form view that is the default or named `OBJECT.create`), and on no public or named form. + + Studio: the Data pillar's Form tab always lays out the object's field groups, and the Interfaces rail no longer lists internal forms; public forms and named forms stay listed. + + An app that relied on its internal form for create defaults should move them to each field's `defaultValue`; sections move to `fieldGroups`, and required or conditional rules move onto the fields. + + The upgrade guide carries this as the protocol-18 semantic entry `internal-record-forms-not-loaded`. +- c45dd80: feat(setup): Setup → Configuration → Public forms lists every public form of the environment and switches it on or off + + Clause-②: yes (widening) — a new Setup navigation id `nav_public_forms`, a new component id `forms:public-forms`, new language-pack keys (the `publicFormsSetup` block and the nav label) in every shipped locale, and `anonymousFormIntakeWithdrawnIn` newly exported from `@objectstack/spec/ui` (moved from `@objectstack/metadata-core`, which re-exports the same binding) + Metadata-protocol: none + + A system administrator (`manage_platform_settings`, the capability the Setup entry asks) now has one page for the operations side of public forms. It lists every public form of the environment: its name, the object a submission creates a record of, its address, and whether it is on. Per row: switch it on or off, copy its address, or open it in a new tab. A form is designed (created, deleted, its fields and title changed) in Studio, not here. + + - **Which forms are listed.** A form view whose `sharing` opens it to anonymous intake once switched on (`allowAnonymous: true` and a `publicLink`), read by the same rule the anonymous form routes use (`anonymousFormIntakeCandidates`). A switched-off form stays listed and can be switched back on. A form with no public address or no anonymous access is an internal form and is not listed. The list is the effective one (`GET /meta/view`), so an installed app's form switched off in this environment lists as off. + - **Where a switch is saved.** The switch is the form's `sharing.enabled`, saved and published at once. A form of a writable package is saved in that package. A form of an installed (read-only) app is saved as this environment's customization, an override in the app's `.custom` package (ADR-0146), never an edit of the app's own package, so the app upgrades as before. Switching such a form back on removes the override when it held nothing but the switch, so the app's own form is served again; an override that also carries design changes keeps them, with the switch on. + - **A form its installed app ships switched off** (its address kept, `enabled` or `allowAnonymous` set to `false`, or `enabled` omitted, which the stack schema reads as `false`) stays closed whatever the environment saves: the anonymous routes treat the app's own document as a withdrawal that no override re-opens. The page judges this with the routes' own function, `anonymousFormIntakeWithdrawnIn`, now declared in `@objectstack/spec/ui` beside the rest of the intake rule; `@objectstack/metadata-core` re-exports the same binding, so the server's import is unchanged. The page lists such a form as "Off (switched off by its app)" with its switch disabled, also when an override already switches it on, and a switch-on writes nothing and says the app ships it switched off. A form whose app's document cannot be read is shown as status unknown, never as on. + - **After an app upgrade**, switching back on an override taken from an earlier version restores the app's own form when the form is otherwise unchanged. When it is not, the override is kept with the switch on and the page says the form stays on the app's earlier version, which Studio's "Restore package original" undoes. + - A switch over a draft already pending where it would save writes nothing and says so: that draft is its saver's and is never published on their behalf. + - A switch writes the form's metadata, which the server lets only a `manage_metadata` holder do. Without it the page still lists the forms but disables the switches and says why. A refused switch, and a list read that fails, are told in business words, never the server's raw message. + - A switched-off form keeps answering as it does today: `404 FORM_NOT_FOUND` at its address. No route, error code or stored key is added. + + New Setup navigation entry `nav_public_forms` in `group_configuration` (label "Public Forms", in every shipped locale) opening the component `forms:public-forms`; the Setup navigation now carries 35 entries. New locale block `publicFormsSetup` in every console locale. Not shown: when a form last took a submission, since a submission is an ordinary record of the form's object and records no form. +- 48c5484: Clause-②: no + Metadata-protocol: none + + The report authoring form now reads in business terms: data source, grouping, metric. It no longer uses the schema's own vocabulary (dataset, dimension, measure, "render-time", "ANDed"), and its English matches what the Chinese report panel says. Every section description and field hint the report panel draws was reworded. The `dateRange` and `exportOptions` composites now declare their children as form rows (Date Field, Default Period, Allow Custom Range; Formats, Include Headers, File Name), each with its own hint, so the panel no longer shows the schema descriptions for them. The Description row gained its own hint. The joined-block and sort row titles now read Data Source, Group By, Group Columns By, Metrics, Sort Order and Sort By, in the form and in the item schema `title` together. + + Only prose and form layout moved. No key, accepted value or section title changed, and nothing an author can write or validate is different. The platform metadata-form bundles are regenerated, with zh-CN, ja-JP and es-ES translations for the 13 new rows, and the console's zh-CN overlay carries the new rows too. +- cb2d6aa: docs(spec): `navigation.size` says what `'auto'` really does + + Clause-②: no + Metadata-protocol: none + + The TSDoc and `.describe()` text of a view's `navigation.size` said that the default `'auto'` makes the renderer derive the drawer size from the object's field count and the viewport, so an author writes nothing. No renderer does that. `'auto'` is the host's fixed default width, the same for every object: the console's record side panel opens at `min(92vw, 460px)`, and a page block's drawer at that block's own default. The text now says so, gives the pixel cap of each explicit bucket (sm 480, md 720, lg 960, xl 1200, full 1600, always clamped to the viewport), says that a width the reader drags wins, and says where the key has no effect (a record that opens as a page, a phone-width screen). It no longer calls the buckets aligned with `FormView.modalSize`, whose buckets have other names and other widths. + + Prose only: the key, its values and its default are unchanged. The view form's help text for the key, the English metadata-form bundle `@objectstack/platform-objects` serves it from, and the generated reference pages carry the same text. +- 7501d0c: feat(studio): the Field History setting offers Default, On and Off, and Default says what it resolves to + + Clause-②: yes (widening) + Metadata-protocol: none + + The Field History setting on the field form, on each row of the object form's field list, and in the object's capabilities is now a three-way choice instead of a switch. Default leaves the setting unset, so the field (or object) follows the platform, and it names what that means for the row: "Default (On)" for most field types, "Default (Off)" for a media or JSON field unless the field opts in with Track History, and for a credential field always. On and Off write `true` and `false` as before. A setting turned off can now be returned to Default, which removes the key. + + `@objectstack/spec/data` exports `resolveFieldHistory(field, object)` and `FIELD_HISTORY_DEFAULT_OFF_TYPES`: whether a changed field's old → new values show on the activity timeline, and the types that are off by default. The activity writer in `@objectstack/plugin-audit` now asks this predicate instead of its own copy of the type list, so the default the form shows and what the writer keeps cannot disagree. Behaviour of the writer is unchanged. +- 24ff03c: feat(platform-objects): built-in objects shown in Setup and the Account app carry a palette colour + + Clause-②: no + Metadata-protocol: none + + The console draws an object's icon as a white glyph on a square of the object's palette colour, and an object that declares no `color` is drawn in the neutral `gray`. Until now no built-in object declared one, so every platform object read the same. Users, organizations, business units and their members, teams, memberships and invitations are now `blue`; API keys, sessions, linked accounts, OAuth applications, SSO providers and SCIM connection credentials `purple`; notification events `pink`; exchange rates, units of measure, working calendars, calendar exceptions and user preferences `green`. + + Each colour is one of the palette names (`OBJECT_COLORS`), picked by business family, not by status: people and organisation `blue`, security and access `purple`, approvals and work routing `orange`, messaging and notifications `pink`, integrations `teal`, reference data and preferences `green`, audit `amber`. Objects nobody opens in the console (credential and token stores, queues, run logs, engine bookkeeping) keep no `color` and stay `gray`. Nothing about the objects' fields, data or API changes. +- 13f5466: Clause-②: no + Metadata-protocol: none + + The dashboard settings panel's hints now read in business terms. Nine field hints of the dashboard authoring form (Name, Label, Columns, Gap, Refresh Interval Seconds, Header, Widgets, Date Range, Global Filters) no longer use developer vocabulary such as "snake_case", "in steps of 0.25rem (4 = 1rem)" or "config". Each one now says what the builder decides. The Columns and Gap hints also describe what an empty value does, in line with the dashboard renderer. + + Only hint text moved. No key, accepted value, label or section title changed, and nothing an author can write or validate is different. The platform metadata-form bundles are regenerated, and the nine hints are re-translated in all ten translated locales (zh-CN, zh-Hant, ja-JP, ko, es-ES, fr, de, pt-BR, ru, ar). The console's own zh-CN overlay for the dashboard panel now uses the same platform wording for these nine hints. +- c8d4b90: feat(console): Setup gets one Packages entry, the package list's administration face; the Installed Apps entry retires + + Clause-②: no + Metadata-protocol: none + + The maintainer's ruling on objectstack#36834 amends ruling 甲 of #25098: Setup lists what is installed, with the administration actions only, and the marketplace-only "Installed Apps" entry merges into it. + + - **Setup → Apps → Packages (`nav_packages`).** `@objectstack/platform-objects` contributes one entry to Setup's `group_apps`, gated on `manage_platform_settings` like Setup's other administration entries. It opens the console's `developer:packages` page with `params: { face: 'admin' }`, so the URL carries `?face=admin`. Its label is translated in every locale the Setup bundle carries. + - **The page's administration face.** With `?face=admin`, the Packages page lists every package of every source, with modules folded under their app. It shows the Name, Version, Status, Source and Update columns, plus a Source filter (All, Code, Marketplace, Authored) that writes `?source=`. Its only header action is New Package, and a package created there opens in Studio, on the address the Studio landing's package card opens. The detail sheet offers View info, Disable / Enable and Delete (keeping the choice to keep the data), plus "Open in Studio" on an authored package. Import, Edit, Publish, Revert, Export, Duplicate, Adopt loose items and the pending changes' Publish and Discard are not offered there. An unknown or repeated `face` value is refused by name. With no `face`, the page is unchanged: Studio's "All packages" link and each package card's Manage keep every action. + - **Installed Apps retires.** `MARKETPLACE_INSTALLED_UI_BUNDLE` (`@objectstack/cloud-connection`) no longer carries `nav_marketplace_installed`. The bundle stays exported under its id, with an empty `navigationContributions`, so a host that imports and registers it keeps working. The entry's labels are removed from the Setup translation bundle, and its id joins the dead-key tombstone. A bookmarked `/apps/setup/component/developer/packages?source=marketplace`, which the marketplace page's "Installed" button also opens, still shows the list filtered to marketplace installs, on the administration face. +- d95d34f: Clause-②: no + Metadata-protocol: none + + The report authoring form now names its top-level data rows with the same words as its joined-blocks grid: Data Source, Metrics, Group By and Group Columns By, where they read Dataset, Values, Rows and Columns. One form no longer calls the same setting by two names. The Metrics hint no longer says a metric is only a total or a count; it can be any measure of the data source, such as an average or a ratio. The File Name hint now says what the download does: the prefix takes the place of the report's label, and an empty prefix names the file after the label, or after the report's name when it has no label. + + Only prose moved. No key, accepted value, default or section title changed. The platform metadata-form bundles are regenerated, the File Name hint is re-translated in zh-CN, ja-JP and es-ES, and the console's zh-CN overlay now follows the current English for the Date Range and Runtime Filter hints. +- 84b1e0c: feat(spec): Studio list columns for 27 metadata types, served in the reader's language on both doors + + Clause-②: yes (widening: `/meta/types` serves `list` on 26 more entries, and the runtime dispatcher's listing is now translated) + Metadata-protocol: none + + `METADATA_LIST_REGISTRY` now declares the Studio list columns of 27 metadata types: the first batch (`hook`, `flow`, `job`, `api`, `action`, `report`, `dataset`, `email_template`, `assignment_rule`, `sharing_rule`, `queue`, `agent`, `tool`, `skill`, `doc`, `seed`, `mapping`, `picklist`, `translation`) and the eight types the console used to declare itself (`object`, `field`, `view`, `page`, `dashboard`, `permission`, `position`, `book`). Every column names a key the type's schema declares, checked by the reconciliation test. Nothing an author writes changes: the registry is the spec's own constant. + + - **Headers in every shipped language.** The 52 headers no form field already labels get their own `metadataForms.<type>.fields.<path>.label` leaf in the 11 platform bundles (`@objectstack/platform-objects`), translated in all ten non-English locales. A column the form labels reads the form's words. + - **Both doors translate the listing.** The runtime dispatcher's `GET /meta` and `GET /meta/types` now answer the types listing in the request's language, as `RestServer`'s `GET /meta` does: type labels, form labels, list headers and schema titles. Both run one function, `translateMetaTypesListing` (`@objectstack/rest`). Before this, a host served through the dispatcher answered all of it in English. + - **The console's own declarations move into the spec.** Studio's lists of objects, fields, views, pages, dashboards, permission sets, positions and books read the served columns. The console keeps only what the schema cannot say: a field row's server-stamped `object`, a position's holder count and granted permission sets, a view's derived display type, a book's audience and a sharing rule's `sharedWith` rendering. The console declared `object`'s columns twice, in two registrations that disagreed (the later one won); both declarations are gone, so one remains, in the spec. A page's former `route` column named no `PageSchema` key and is dropped. What an admin sees in Studio (`@object-ui/app-shell`): the metadata lists of all 27 types show the spec's columns, in the declared order, with headers in the reader's language. The moved lists lose the console's fixed column widths (the view list's display type and the book list's audience keep theirs), the Fields list reads name, type, label, then object, the sharing-rule list's header reads "Access Level" where it read "Access", and the Pages list shows type and description in place of the dropped route column. A summary cell reads an expression member as its source, so the Jobs list's schedule shows a cron job's expression (`cron · 0 2 * * * · UTC`), not only its kind and time zone. +- 8b1841f: feat(platform-objects): built-in tasks and notes, `sys_task` and `sys_note`, in every environment + + Clause-②: yes (widening) + Metadata-protocol: none + + `PlatformObjectsPlugin` now registers two ordinary, customizable objects on their own manifest + (`com.objectstack.platform-objects.work`), so any application can put tasks and notes in its menu + without declaring its own: + + - `sys_task` — title (required), description (rich text), status (To Do / In Progress / Done, + default To Do), due time, assignee (a user, defaulting to the creator) and a read-only completion + time the platform writes when the status becomes Done and clears when it leaves Done. + - `sys_note` — an optional title and a rich-text body; lists show a read-only heading that is the + title, or the body's first line when the title is empty. + + Each keeps its own sharing: `sharingModel: 'private'` over a declared `owner_id` (the creator), and a + task is also shared, with edit access, with its assignee through the declared `sys_task_assignee` + sharing rule. Neither links to, grants access to, or derives access from any other record. Default + views: tasks Assigned to Me (open, by due time), Created by Me and All Tasks (a board by status); + notes My Notes and All Notes. Attachments are on for both. + + Both names join `PLATFORM_OBJECTS_BY_PACKAGE['platform-objects']` in `@objectstack/spec`, so + validation treats them as platform-provided: an app's navigation entry reaches them with + `requiresObject` beside `objectName` (`{ type: 'object', objectName: 'sys_task', requiresObject: + 'sys_task' }`), which `defineStack` accepts and the console hides on a kernel without the object. + Their labels ship in the platform's eleven locales (zh-CN 任务 / 备忘). + + `@objectstack/plugin-security`: the member baseline `member_default` grants `sys_task` and + `sys_note` read, create and edit, with no delete (maintainer ruling 7131539862, option A). It opens + the objects only: which rows a member sees stays with each object's private sharing, so a task is + read by its creator and its assignee and a note by its creator. + + `@objectstack/cli`: the organization-ownership inventory (ADR-0131 D10) gives `sys_task` and + `sys_note` the `attribution` fate, so `os migrate organization-ownership` and the `os dev` upgrade + plan databases that hold them instead of refusing an object with no fate. + + Clause-② reads `yes (widening)`: `defineStack` now accepts a top-level action whose `objectName` is + `sys_task` or `sys_note`, and the public surface grows. `Metadata-protocol: none` follows the + `sys_unit` roster-addition precedent: no metadata key, type or schema value is added, and a + reference that already parsed now resolves. +- b3247dd: fix(auth)!: a server outside development mode refuses a development seed credential, and `os user set-password` sets a new one on the server + + Clause-②: yes (narrowing) — narrowed: on a server whose `NODE_ENV` is not `development`, a password sign-in that submits the development seed password (`admin123`, or the value `OS_SEED_ADMIN_PASSWORD` sets) is refused on every account, and an account the development seed created opens no session while its stored password is still the one it was seeded with. Widened: the `os user set-password` command, the `sys_user.dev_seed_credential` column, and new `@objectstack/plugin-auth` exports `setOperatorPassword`, `findAccountByEmail`, `operatorPasswordRefusal`, `OPERATOR_PASSWORD_MIN_LENGTH`, `OPERATOR_PASSWORD_MAX_LENGTH` and the types `OperatorPasswordResetEngine`, `OperatorPasswordResetOutcome`, `OperatorPasswordResetRefusalReason`. + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No authorable key, accepted value or metadata type is added, removed or renamed; a system column is added; nothing stored is rewritten: the moved answer is whether a server outside development mode accepts a development seed credential at sign-in. The one-line fix for a refused account is in the body: set a new password on the server with os user set-password. --> + + **BREAKING** for a deployment that serves, outside development mode, a database `os dev` seeded, or any account whose password is the development seed password. Such a sign-in is refused. Set a new password on the server with `os user set-password <email>`; the refusal names the command. A server in development mode (`os dev`) is unchanged. + + **The rule: a server outside development mode never accepts a development seed credential.** Development mode is `NODE_ENV=development`, the condition the development seed itself runs under. The rule lives in the auth plugin, so `os start`, `os serve`, the image and a custom host all apply it. + + - **The seed password is refused at sign-in, on any account.** A password sign-in with the development seed password answers `403 PERMISSION_DENIED`, and its message names `os user set-password`. It is decided on the submitted password alone, before any account is read, so every address gets the same answer. This covers the seeded admin, the stack's `demoStaff`, any other account on that password, and a database seeded by an earlier release. + - **The accounts the development seed creates are marked.** `os dev`'s admin and each `demoStaff` account carry `sys_user.dev_seed_credential`: a one-way digest of the password hash the seed stored, never the password. The column is never returned on reads, and any password change stops it matching. + - **A marked account still on its seed password opens no session**, on any sign-in door (password, emailed link, one-time code, passkey, social or SSO, impersonation), whatever password it was seeded with, `os dev --admin-password` included. A password check never confirms that seed password: a password sign-in answers it as a wrong password. + - **No password change is offered at sign-in.** Whoever signed in first could perform it. The way out is the operator's reset on the server. + + **`os user set-password <email>`** sets the account's password in the project database. It reads the new password from a terminal prompt (twice, not echoed) or from standard input with `--password-stdin`, never from the command line, and takes `--database-url` like the other one-shot commands. It checks that the new password is not a development seed password and is 8 to 128 characters long; the deployment's own password policy and password history are not applied. It writes nothing on a refusal. It deletes the account's outstanding password-reset links and codes from the project database before the new password lands. It clears the account's development seed mark and any sign-in lock, records the change time, and ends every session and revokes every API key of the account, as an administrator's forced reset does. It asks for no password change at the next sign-in. It writes the project database only: a secondary storage the host configures for the auth service is out of its reach, for the reset links and the sessions alike. With one configured, run the command with the server stopped, or restart the server afterwards; a secondary storage kept outside the server process outlives a restart and is cleared of the account's entries by hand. + + **Not detected:** a database seeded before this release with a custom seed password carries no mark and no well-known password. Set a new password with `os user set-password` on each account it seeded before serving it outside development mode. + + **Ended by `os user set-password`, and at boot:** this release refuses the development seed password and every new session for a seeded account still on it. Sessions and API keys a seeded account was issued before the server left development mode are ended by `os user set-password`; run it on each seeded account before serving the database. In the same release, a boot outside development mode also retires them: see the note "a boot outside development mode retires what the development seed issued" (#36699). +- bc2aaf1: fix(plugin-auth)!: a disabled or removed account keeps nothing running in its name + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is what four identity doors end and refuse: the ban, the directory's deactivation and delete, and an administrator's delete end what a password reset ends of the account's registrations, and the AI service account doors refuse an owner whose account is disabled. No stored row, registry key or authored value needs rewriting, so there is nothing for a migration to change and no tombstone. --> + + **The rule.** An account that is disabled or removed, by any door, keeps nothing running in its name. What it is accountable for is suspended, what it registered is disabled, what it minted is revoked, and turning the account back on restores none of it. + + - **A platform administrator's ban** (`POST /api/v1/auth/admin/ban-user`) suspends every AI service account the person is accountable for, in every organization, with the reason `Accountable owner banned by an administrator`; disables every OAuth application the account registered; and revokes every SCIM provisioning credential it minted, each revoke recorded in `sys_audit_log` against the administrator. The answer reports it under `data.revoked` (`serviceAccounts`, `ownedApps`, `scimCredentials`, `failed`, `complete`), as the administrator's forced reset reports its own, and the ban's audit row carries the same counts. A step that cannot finish does not undo the ban: `complete` is `false`, and banning again ends what remains. + - **The directory** (SCIM `active: false`, `DELETE /Users/{id}`) disables the OAuth applications the person registered and revokes the SCIM credentials they minted, each revoke recorded against the connection (`actor` `svc:scim:CONNECTION_ID`). It never fails the SCIM request; a revoked credential is reported once in the server log at `error`, with the remedy. + - **An administrator's delete** (`POST /api/v1/auth/admin/remove-user`) ends the same registrations before the user is deleted, inside the delete's unit of work, and answers `{ success: true, revoked: { ownedApps, scimCredentials } }`. When one cannot be ended, the delete is refused `503 SERVICE_UNAVAILABLE` and nothing changes. + - **An AI service account runs only while its accountable owner's account is active.** `register` and `set-owner` refuse an owner who is banned or deactivated (`400 VALIDATION_FAILED` at `ownerId`), and `resume` refuses an account whose owner is (`409 RESOURCE_CONFLICT`), whichever door disabled them. + - An unban or a re-activation restores none of it: a platform administrator enables an application again, a new credential is minted, and an administrator resumes an AI service account once its owner's account is active again or a new owner is named. A timed ban leaves the accounts suspended after it expires. Single sign-on providers the account registered are kept, as a password reset keeps them. + + The Ban action's confirmation and its AI-facing description, and the Unban action's AI-facing description, now state these effects. + + **BREAKING** for: + + - a caller that names, as an AI service account's owner, a person whose account is banned or deactivated: the door refuses it. Name a person whose account is active. + - an operator who relied on a banned, deactivated or removed administrator's SCIM credential: it is revoked, and provisioning through its connection pauses until another administrator mints a new credential. Rotate a connection's credential to another administrator before removing the one who minted it. + - a client that read the ban's answer or the delete's answer as an exact shape: each gains `revoked`. +- 4e55e4e: fix(plugin-auth)!: deleting an SSO provider ends the sessions a sign-in through it opened and removes its projected grants + + Clause-②: no (narrowing) + Metadata-protocol: none + Skills-docs: none — no published skill teaches deleting an SSO provider, its sessions or its projected grants; the rule is documented in `content/docs/permissions/sso.mdx` ("Deleting an SSO provider") + + <!-- adr-0087: not-required (no-migration-prescription) No authorable key, value or export is added, removed, renamed or re-shaped. `sys_session` gains a system-managed, read-only column the platform writes itself, and what changes is which sessions and projected grants stay live once an SSO provider is gone: no stored metadata row, registry key or authored value moves, so there is nothing for a migration to rewrite. --> + + **BREAKING** for a session a sign-in through an SSO provider opened: deleting that provider ends the session, and its next request is answered as signed out. Sessions opened any other way are not touched. + + - **Sessions.** Each session an SSO sign-in opens records the provider it was signed in through, in the new read-only `sys_session.sso_provider_id` column. `POST /api/v1/auth/sso/delete-provider` revokes the live sessions that record the deleted provider (`revoke_reason: 'sso_provider_deleted'`). A session signed in any other way (a password, another provider) is left as it is, and a delete the vendor refuses ends nothing. + - **The answer.** A successful delete's `data` carries `revokedSessions`, the number of live sessions it ended, beside the other counts, and its `message` says so. + - **Projected grants.** A permission-set grant projected by an SSO provider's group mapping exists only while that provider does: the delete removes them, as before, and at every boot the grants whose `reason` names a provider with no `sys_sso_provider` row are removed too, as are live sessions recording such a provider. The boot does not remove the provider's group mappings (delete each with **Delete Mapping**, or `POST /api/v1/auth/admin/scim/delete-group-mapping`); it logs at `info` what it removed, and at `error`, with the remedy, when it could not. Several servers sweeping at once each remove what is left, and none reports the others' removals as a failure. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/metadata-core@18.7.0 + ## 18.6.0 ### Minor Changes diff --git a/packages/platform-objects/package.json b/packages/platform-objects/package.json index 1c277ad6b0b..07b2b8ce9a4 100644 --- a/packages/platform-objects/package.json +++ b/packages/platform-objects/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/platform-objects", - "version": "18.6.0", + "version": "18.7.0", "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 941e0201344..7c258775363 100644 --- a/packages/plugins/embedder-openai/CHANGELOG.md +++ b/packages/plugins/embedder-openai/CHANGELOG.md @@ -1,5 +1,197 @@ # @objectstack/embedder-openai +## 18.7.0 + +### Patch Changes + +- 5ff858b: fix(embedder-openai): `embed()` splits its input into batches of the provider's per-request cap, so a reindex larger than the cap is no longer rejected + + Clause-②: yes + Metadata-protocol: none + + `OpenAIEmbedder.embed()` sent every input in one `/embeddings` request, so a provider that caps the number of inputs per request rejected any call above its cap (阿里通义 DashScope `text-embedding-v3` takes 10, `text-embedding-v1`/`v2` 25, 智谱 `embedding-3` 64, 硅基流动 SiliconFlow 32, OpenAI 2048). It now sends at most the model's documented cap per request, one batch after another, and returns the vectors in input order. + + - A model in the embedder's known-model table is batched at its provider's documented cap. + - Any other model is batched at 10 inputs per request, and the embedder logs one warning per instance naming the model. + - The new `maxBatchSize` option (a positive integer; anything else throws at construction) sets the batch size explicitly and silences that warning. Use it when your provider or gateway documents a different cap. + - A failing batch fails the whole call, and no later batch is sent. The error keeps the provider's status and response text and appends the 0-based batch index and the input range, for example `[batch index 1 of 3 (0-based), inputs 10..19]`. + + What to do: nothing for the providers listed above. On another provider, set `maxBatchSize` to its documented cap to drop the warning, or to raise the default of 10. +- 3d4f423: feat(embedder-openai): an over-limit input is refused, not truncated — known-model input limits and one shared token estimate + + Clause-②: yes + Metadata-protocol: none + + When a limit applies (a model in the known-model table, or `maxInputTokens`), `OpenAIEmbedder.embed()` now measures every input before it sends anything. When one input is over the model's per-input token limit, the call fails with an error naming the input's 0-based index, the model, the estimate and the limit; nothing is sent, so the provider never silently truncates the text and drops its tail from the index. An input at or under the limit is sent unchanged. + + - The known-model table gains each model's provider-documented per-input limit: OpenAI `text-embedding-3-small` / `-3-large` / `ada-002` 8192, DashScope `text-embedding-v3` 8192 and `-v2` / `-v1` 2048, BigModel `embedding-3` 3072 and `embedding-2` 512, SiliconFlow `BAAI/bge-m3` 8192 and `BAAI/bge-large-zh-v1.5` / `-en-v1.5` 512. + - New option `OpenAIEmbedderOptions.maxInputTokens` (a positive integer) overrides the table. + - A model that is not in the table, with no `maxInputTokens`, has no limit and warns once per embedder instance. That warning is the same single warning an unknown model already gave for its batch size: one instance warns at most once, naming every option it is missing. + + `@objectstack/spec/shared` exports `estimateTokens(text)`, its `TOKEN_ESTIMATE_MARGIN` (1.1) and `ASCII_RUN_CHARS_PER_TOKEN` (`{ letters: 4, digits: 3, mixed: 2 }`): the one conservative token estimate the embedder uses, for an app that sizes its own chunks to call too. CJK characters and full-width punctuation count 1.5 each, a run of ASCII letters only ceil(length / 4), of digits only ceil(length / 3), and of letters and digits mixed ceil(length / 2), any other punctuation mark or character 1, whitespace 0; the sum is multiplied by 1.1 and rounded up. + + The estimate is conservative: on Chinese text it runs about 1.4 times the real token count. It is at or above OpenAI `cl100k` counts on Chinese, mixed Chinese/English and English-heavy text (long words, numbers, URLs, code); text made mostly of random hex or base64 (UUIDs, hashes) can estimate below its real count. + + What to do: nothing for a known model. A call that used to send a text over the model's limit — which the provider truncated — now fails instead. Because the estimate errs high, a text whose real count is under the limit can now be refused too, although it was never truncated. For example, on a 512-token model such as `BAAI/bge-large-zh-v1.5`, whose tokenizer counts about one token per Chinese character, a Chinese text of about 311 to 510 characters fits the model but estimates over 512 (311 characters estimate 514), so it is now refused; 310 characters estimate 512 and are sent. In both cases split the text smaller, or set `maxInputTokens` yourself if you know the model's real count fits. For a model outside the table, set `maxInputTokens` to your provider's documented limit, which also silences the warning; an app that set only `maxBatchSize` for such a model now sees the warning again until it sets `maxInputTokens` too. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/plugins/embedder-openai/package.json b/packages/plugins/embedder-openai/package.json index 7c25267573d..7c784551379 100644 --- a/packages/plugins/embedder-openai/package.json +++ b/packages/plugins/embedder-openai/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/embedder-openai", - "version": "18.6.0", + "version": "18.7.0", "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 b4084ab9773..9cbb33a3942 100644 --- a/packages/plugins/knowledge-memory/CHANGELOG.md +++ b/packages/plugins/knowledge-memory/CHANGELOG.md @@ -1,5 +1,186 @@ # @objectstack/knowledge-memory +## 18.7.0 + +### Patch Changes + +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [a73edb3] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [7abf25f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [eec6fb3] +- Updated dependencies [bee9b68] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/service-knowledge@18.7.0 + - @objectstack/core@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/plugins/knowledge-memory/package.json b/packages/plugins/knowledge-memory/package.json index 2f5912e5df8..edcdd68705c 100644 --- a/packages/plugins/knowledge-memory/package.json +++ b/packages/plugins/knowledge-memory/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/knowledge-memory", - "version": "18.6.0", + "version": "18.7.0", "license": "Apache-2.0", "description": "In-memory knowledge adapter for ObjectStack (dev / test reference implementation).", "type": "commonjs", diff --git a/packages/plugins/knowledge-ragflow/CHANGELOG.md b/packages/plugins/knowledge-ragflow/CHANGELOG.md index da584f6f878..644da75bfd1 100644 --- a/packages/plugins/knowledge-ragflow/CHANGELOG.md +++ b/packages/plugins/knowledge-ragflow/CHANGELOG.md @@ -1,5 +1,186 @@ # @objectstack/knowledge-ragflow +## 18.7.0 + +### Patch Changes + +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [a73edb3] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [7abf25f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [eec6fb3] +- Updated dependencies [bee9b68] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/service-knowledge@18.7.0 + - @objectstack/core@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/plugins/knowledge-ragflow/package.json b/packages/plugins/knowledge-ragflow/package.json index f2787232083..ac60a3e62a4 100644 --- a/packages/plugins/knowledge-ragflow/package.json +++ b/packages/plugins/knowledge-ragflow/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/knowledge-ragflow", - "version": "18.6.0", + "version": "18.7.0", "license": "Apache-2.0", "description": "RAGFlow knowledge adapter for ObjectStack — production-grade RAG via the Apache 2.0 RAGFlow REST API.", "type": "commonjs", diff --git a/packages/plugins/organizations/CHANGELOG.md b/packages/plugins/organizations/CHANGELOG.md index b6df09c1ea1..f372865ff5a 100644 --- a/packages/plugins/organizations/CHANGELOG.md +++ b/packages/plugins/organizations/CHANGELOG.md @@ -1,5 +1,208 @@ # @objectstack/organizations +## 18.7.0 + +### Patch Changes + +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [8c629b2] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [5f18b9b] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [d053c7d] +- Updated dependencies [8b550f8] +- Updated dependencies [c809deb] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [9e65474] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [338ef35] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [c9aad65] +- Updated dependencies [53c9575] +- Updated dependencies [7eaa3f5] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [cf7e443] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [0e91213] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [011635f] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [d24a502] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [9c57bd2] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [92ab056] +- Updated dependencies [b3247dd] +- Updated dependencies [372ce7c] +- Updated dependencies [c059e60] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [852270a] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [bc2aaf1] +- Updated dependencies [4e55e4e] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [6927c3f] +- Updated dependencies [ecd4b2b] +- Updated dependencies [1e692d1] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/plugin-auth@18.7.0 + - @objectstack/types@18.7.0 + - @objectstack/formula@18.7.0 + - @objectstack/core@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/plugins/organizations/package.json b/packages/plugins/organizations/package.json index dc8ead83ae6..3048deb1b58 100644 --- a/packages/plugins/organizations/package.json +++ b/packages/plugins/organizations/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/organizations", - "version": "18.6.0", + "version": "18.7.0", "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 5603359ccb5..2e8aefdf876 100644 --- a/packages/plugins/plugin-approvals/CHANGELOG.md +++ b/packages/plugins/plugin-approvals/CHANGELOG.md @@ -1,5 +1,548 @@ # @objectstack/plugin-approvals +## 18.7.0 + +### Minor Changes + +- e6fa510: feat(approvals): an escalation deadline can count working time on an organization's working calendar (`escalation.clock: 'working_time'`) + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: follow-up owed — skills/objectstack-automation/references/state-machines-and-approvals.md + + An approval node's `escalation` gains two optional keys (ADR-0157 D5): + + - **`clock`**: `'wall_clock'` (the default) or `'working_time'`. Under `wall_clock` nothing changes: `timeoutHours` counts elapsed hours from `created_at`, nights, weekends and holidays included, and every request already open keeps its deadline (a stored snapshot carries no `clock`). Under `working_time` the hours count only the working periods of a working calendar (`sys_work_calendar`), skipping its holidays and counting its make-up workdays: a request opened at 17:00 on a Friday with `timeoutHours: 4`, on 09:00-12:00 and 13:00-18:00 periods, escalates at 12:00 on the next working day. + - **`calendar`**: the code of the working calendar to count on. Left out, the request organization's default calendar counts. There is never a fallback to wall-clock hours. + + The approvals sweep and the request read share one deadline function. A `working_time` deadline is counted again on every sweep and every read and is never stored, so a holiday entered after a request opened moves its deadline; an escalation that already fired stays fired (single-shot, ADR-0042). When the calendar cannot count the deadline (no calendar has the code, the organization has no default, or the calendar is not maintained as far as the deadline needs), the request does not escalate, the next sweep tries again, and the request read carries a new additive field, `sla_due_refusal` (`code`, `reason` or `date`, `message`), in place of `sla_due_at`. The approvals inbox shows "Calendar can't compute" with the reason where the SLA countdown sits, in every console language. + + `@objectstack/lint` refuses a `calendar` written beside the wall clock (`approval-escalation-calendar-without-working-time`, error): nothing would read it. Whether the named calendar exists is the organization's runtime data and is never checked at publish. The Studio approval inspector offers the clock and, under working time only, the calendar. + + Not released alone: this ships in the same release as the working-calendar objects and service and the working-day formula functions (ADR-0157 D4). + +### Patch Changes + +- 8f49499: fix(approvals): a recall or subflow-parent strand reports the hook refusal that stranded the run + + Clause-②: yes + Metadata-protocol: none + + When an approval decision strands its flow run because the next step was refused (a record hook's declared refusal, a validation rule, a permission), the thrown `RESUME_FAILED` already carries `innerRefusal` and the refusal's marked `userMessage`. Two doors report a stranded run on a success answer instead, through `resumeFailure`: the recall door, whose own resume stranded, and a subflow parent that stranded after the run this door resumed advanced (through `decide` and through `recall`). Those reports carried `code`, `runId`, `status` and `repairable` only, so the approver saw a stranded run with no reason. + + - `ResumeFailureReport` (`@objectstack/spec/contracts`) gains two optional members, `innerRefusal` (`{ code, message }`, the engine's `AutomationResult.innerRefusal`) and `userMessage` (the declared sentence in the language of whoever started the run, since a resumed leg keeps the starter's locale; the authored message when no person started the run). The names and shapes are the ones the thrown `RESUME_FAILED` uses. `innerRefusal` is absent when the strand met no refusal (a fault), and `userMessage` is absent unless the failure carried a marked end-user text, so it can ride alone; neither changes how `code` and `repairable` are read. `ResumeFailureDetailsSchema` is unchanged. On the resume door these members already ride the error envelope. + - `AutomationEngine.takeSubflowParentStrand` now returns the stranded parent's `innerRefusal` / `userMessage` beside `runId`, `repairable` and `error`, read from the parent's own result. + - The approvals recall door and the subflow-parent strand fill both members whenever the strand met a refusal, read the way the thrown `RESUME_FAILED` reads them: an `innerRefusal` whose `code` is outside the registered error codes or whose `message` is not a string, and a blank or non-string `userMessage`, are dropped, so a node that returns a malformed pair answers the same on the success channel as on the thrown one. + + No migration: the change only adds optional members, and a caller that ignores them reads exactly what it read before. +- 8e46424: Clause-②: yes (widening) + Metadata-protocol: added + + feat(messaging): Slack DM delivery — a `slack` channel, a per-person link store, approval requests by DM + + An organization can now receive notifications in Slack, as direct messages to each person who connected their own Slack user (ADR-0013 addendum of 2026-11-19, step 2 of #34730). + + - **The install.** An organization administrator (`setup.write` in their current organization) installs the organization's own Slack app with `PUT /api/v1/messaging/slack/account` `{ token }`. Slack proves the bot token (`auth.test`) before it is saved. The app's bot token needs the scopes `chat:write`, `im:write`, `users:read` and `users:read.email` (the methods called are `auth.test`, `users.lookupByEmail`, `conversations.open` and `chat.postMessage`); `auth.test` does not check scopes, so an app without `users:read.email` installs and every proposal then answers 502. The token is kept in `sys_channel_account.bot_token`, a `secret` field: encrypted at rest by the host's `ICryptoProvider`, masked on every read, never returned by any route, and read only by the server when it calls Slack. `GET` and `DELETE` on the same route read and remove the install. + - **A person's link.** `POST /api/v1/messaging/me/slack-link/proposal` proposes a link by the person's email (Slack `users.lookupByEmail`); it delivers nothing until the person confirms it with `POST /api/v1/messaging/me/slack-link/confirm`. A Slack link is proposed only for a verified email and names no one before it is confirmed. `GET` and `DELETE /api/v1/messaging/me/slack-link` read and remove it. An administrator lists links with `GET /api/v1/messaging/slack/links` and removes one with `DELETE /api/v1/messaging/slack/links/:id`; the person is told by inbox and e-mail (topic `messaging.slack_link_removed`) and may link again. A link goes when the person is deleted, banned, or leaves the organization. Links are `sys_channel_user_link` rows; every write names who acted, so the platform's write audit records each one. + - **The channel, only where connector-slack is composed.** `slack` is registered beside inbox, email, sms and push only on a composition where connector-slack's `slack` client service resolves at boot: `ConnectorSlackPlugin` now registers that service, which sends with a caller-held token. On such a composition, and only there, the `/automation` save doors accept `slack` on a `notify` node, and `GET /api/v1/messaging/preference-options` and `GET /api/v1/messaging/me/preferences` list `slack` as a channel. A `notify` node naming `slack` delivers only where connector-slack is composed, the organization installed Slack and the recipient confirmed a link. Without connector-slack, those doors answer as before: a `notify` node naming `slack` is refused 400, and neither preference door lists it. It sends `conversations.open` then `chat.postMessage` with the notification's title linked to its deep link, made absolute under `OS_AUTH_URL` / `OS_BASE_URL`. Preferences, digest and quiet hours apply as on every channel. A recipient with no confirmed link is skipped before any delivery row is written, so nothing is dead-lettered for them; a refused token stops delivery on that install until an administrator sets it again; a rate limit is retried. + - **Approval requests.** `approval.requested` also asks for `slack`, beside inbox and e-mail, only while the `slack` channel is registered and mounted (connector-slack composed). + - `MessagingChannel` gains an optional `reachableRecipients(ctx, { organizationId, recipients })`, consulted once per channel per emit after preferences. A channel without it reaches every recipient, as before. + - `PLATFORM_OBJECTS_BY_PACKAGE['service-messaging']` lists `sys_channel_account` and `sys_channel_user_link`, and the organization ownership inventory gives both a row. +- e100a37: fix(approvals): the approval e-mail's link and the action-link page's inbox link open the Console under its mount + + Clause-②: yes (widening) + Metadata-protocol: none + + The approval e-mail's "Open the approval" link was `BASE/system/approvals?request=ID`. `os serve` serves the Console at `/_console/` and nothing at `/system/*`, so the link answered `404 ENDPOINT_NOT_FOUND` and the request never opened. The "Open the Approvals Inbox" link on the action-link result page (`/api/v1/approvals/act`) had the same defect. + + Both links now carry the Console's mount. The mount is read from the auth service's Console page composer (`getConsoleUrl`, which reads `AuthConfig.uiBasePath`, default `/_console`), the same composer the auth e-mails and the mention e-mail use. + + - The e-mail link goes from `BASE/system/approvals?request=ID` to `BASE/_console/system/approvals?request=ID` on a default deployment. A deployment that sets `uiBasePath` to `/` keeps `BASE/system/approvals?request=ID`. Its base is still the approval links' own (`publicBaseUrl`, else `OS_AUTH_URL` / `OS_BASE_URL`). A kernel with no auth service has no mount to read, and the e-mail link stays as it was. + - The inbox link goes from the origin-relative `/system/approvals` to `BASE/_console/system/approvals`. It is now absolute under the approval links' base when one resolves, and relative (`/_console/system/approvals`) when none does. With no mount to read (no auth service, or `uiBasePath` set to `/`) it is `BASE/system/approvals`. + + The widening: the exported `ApprovalServiceOptions` gains the optional `getConsoleUrl` that carries the composer; the in-app `actionUrl` is unchanged. +- bfd6b6b: fix(i18n): an approval rejection reads 驳回 in Chinese, on the runtime surfaces and in the designer's approval panel + + Clause-②: no + Metadata-protocol: none + + In Chinese, the approval runtime now names the reject decision 驳回 (zh-Hant 駁回), the word the flow designer gives the approval branch and the server notifications already use. Before, the designer's branch said 驳回 while its approval-node help and the approver's buttons said 拒绝 for the same decision. + + - `@object-ui/i18n`: the `approvalsInbox` strings in zh-Hans and zh-Hant: the inbox and record-bar buttons, the bulk and single confirm dialogs, the toasts, the status chip (已拒绝 → 已驳回), the history row, the keyboard hint and the send-back limit notice. + - `@objectstack/plugin-approvals`: the zh-CN labels of `sys_approval_request` (the `approval_reject` lever, its confirm question and success toast, the `rejected` status) and of the `reject` row of `sys_approval_action`; the zh-Hant bundle already said 駁回. The email action-link confirm and result pages read 驳回. + - `@object-ui/app-shell`: the approval node's zh panel in the flow designer: the multi-approver help, the status-mirror help, the escalation help and its `auto_reject` option label (自动拒绝 → 自动驳回; the stored `auto_reject` value is unchanged), and the revision-limit help. Its branch label and Problems hint already said 驳回; a zh-Hant session draws the same Simplified table. + + 拒绝 stays where it means access denial or declining an invitation, in the AI tool approvals, and in the designer's end-node refused outcome and its API-key, bulk-update and audit-outcome refusals. Display text only: the stored `rejected` status and the `reject` action key are unchanged, and English and the other languages are untouched. +- 03865ae: Clause-②: no + Metadata-protocol: none + + fix(approvals): a request no one can approve tells its submitter and names the remedy + + When an approval step resolves to no one who can decide it and no administrator other than the submitter can take it (an organization of one whose step sets `excludeSubmitter` is the common case), the request opened silently: no one was notified and the submitter saw only "Submitted". It now writes a note on its timeline, rendered in the reader's language, and tells the submitter under the `approval.comment` topic: "No one else can approve this request yet. An organization administrator must add a member who can approve it, then reassign the request to them." When the slate kept an unstaffed position, the note names it: "…must add a member who holds position 'legal'; that member can then decide it." + + The submitter still cannot approve their own request, not even through the administrator override. When no one else is on the slate, the two refusals of that approval now end with the same remedy instead of "Another approver on the step decides it" / "An approver on the step decides it"; with another approver on the slate the text is unchanged. The `excludeSubmitter` note for that route no longer says a privileged override can decide it: it reads "…because this step sets excludeSubmitter, and no one else could take it." + + A `platform_admin` approver step's slot is now labelled "Platform administrators" (in the reader's language on the approvals door, `pending_approver_names`; in English on the stored `pending_approver_labels`) instead of its raw address `platform_admin:*`. The approvals guide now says that on a deployment where no one holds platform-administrator standing such a step waits with no warning. +- aff34ba: fix(approvals,audit): an approval's flow and position labels, and a renamed object's label in approvals and activity summaries, read as the metadata translators serve them + + Clause-②: no + Metadata-protocol: none + + In a deployment whose `i18n.sourceLocale` differs from its `i18n.defaultLocale` (an app authored in English that defaults its users to Chinese, say), the approvals door still looked up a request's flow label (`flows.<flow>.label`) and a position's label (`positions.<name>.label`) through `II18nService.t()`, which falls back to the `defaultLocale` row when the reader's locale has no entry. So an `en` or `en-US` reader saw the Chinese flow name on the inbox, the request page and the generic data door's request rows, and the Chinese position name in a timeline note, where the authored text was expected. Both labels now resolve through the spec translators of their types (`translateFlow`, `translatePosition` from `@objectstack/spec/system`) over every locale the i18n service holds. They use the resolve options the metadata route builds: the reader's locale, the declared fallback chain, and the authored language (the declared `sourceLocale`, else `defaultLocale`). A reader in the authored language now reads the label as written, and every other reader reads the same row as before. + + A packaged object renamed by a code extension was named in the reader's language by the bundle's translation of its OLD label. This hit the approvals inbox, request page and object-naming refusals, and the object label inside an activity summary, where `GET /meta/object` serves the rename. Both readers now hand `translateObject` the object's served definition and its packaged base (`packagedBase`, read off the engine's registry through `getPackagedObjectBase`, the base `/meta` reads). So the rename stands in every locale, as on `/meta`, and an unrenamed object reads its translation as before. + + An approval step's label (`flows.<flow>.approvals.<node_id>.label`) is still read through `t()`: no spec translator reads that key yet. +- 6d0089c: fix(objectql,approvals,audit): an authored rule message, an approval's object label and an activity summary's labels read as `/meta` serves them in a declared `i18n.sourceLocale` + + Clause-②: no + Metadata-protocol: none + + In a deployment whose `i18n.sourceLocale` differs from its `i18n.defaultLocale` (an app authored in English that defaults its users to Chinese, say), three readers still looked metadata text up through `II18nService.t()`, which falls back to the `defaultLocale` row when the reader's locale holds no entry. An `en` reader was shown the Chinese text where `GET /meta` and every other refusal label showed the English one as authored: + + - objectql: the author-written message of a validation rule (`objects.<object>._validations.<rule>.message`) in a `400 VALIDATION_FAILED` refusal; + - plugin-approvals: the object label on the approvals inbox, the request page, the generic data door's request rows and the approval refusals that name an object; + - plugin-audit: the object, field and select-option labels inside an activity summary composed in the reader's language. + + Each now resolves through `translateObject` (`@objectstack/spec/system`) over every locale the i18n service holds, with the resolve options the metadata route builds: the reader's locale, the declared fallback chain and the authored language (the declared `sourceLocale`, else `defaultLocale`). A reader in the authored language reads the text as written; every other reader reads the same row as before. `t()` keeps carrying the catalog sentences. + + An i18n service that cannot hand its translations over (no `getLocales()` / `getTranslations()`) no longer has these labels and rule messages translated through `t()`: the authored text stands. Every service the platform ships implements both. +- 99ece3c: fix(i18n): an approval step label and an approval notification's object label read as the metadata translators serve them + + Clause-②: yes (widening) + Metadata-protocol: none + + In a deployment whose `i18n.sourceLocale` differs from its `i18n.defaultLocale` (an app authored in English that defaults its users to Chinese), an English reader was shown the Chinese approval step name, and an English approval-notification recipient read the Chinese object name inside an English sentence. Both labels were read through `II18nService.t()`, which falls back to the `defaultLocale` row; `/meta` serves the authored text. Both now resolve the way the metadata route resolves a label: the reader's negotiated locale, the declared fallback chain, and the authored language (the declared `sourceLocale`, else `defaultLocale`). + + - **`@objectstack/spec`** adds `resolveFlowApprovalStepLabel(bundle, flowName, nodeId, literal?, opts?)` (`@objectstack/spec/system`), the one reading of `flows.<flow>.approvals.<node_id>.label`: the requested locale, then the declared fallback chain (skipped for the authored locale), then `literal`. It takes the flow's name and the node's id, so a reader holding only an approval request row needs no flow document. + - **`@objectstack/service-messaging`** accepts a new `NotificationTextKeys.params` value, `{ object: '<object API name>', fallback }` (`NotificationObjectLabelParam`): the label of that object in the recipient's language, resolved as `GET /meta/object/:name` serves it, by `translateObject` over the object's served definition and its packaged base, so a renamed packaged object is named by its rename. It renders the same way on the inline fan-out, the dispatcher (digests included) and the inbox reader. `fallback` is delivered when nothing resolves. The `{ key, fallback }` value is still accepted and still renders through `t()`, so stored deliveries and inbox rows render as before. + - **`@objectstack/plugin-approvals`** names a notification's object with that typed param, and reads the approval step label through `resolveFlowApprovalStepLabel`, so `t()` carries catalog sentences only. + + Upgrade `@objectstack/plugin-approvals` and `@objectstack/service-messaging` together: an older messaging service refuses the typed param at `emit()`. +- cda16d4: fix(console): the approval request page is named by the record it asks a decision on, and its reject button no longer outweighs approve + + Clause-②: yes (widening) + Metadata-protocol: none + + - **The page title.** An approval request's page used to be titled by its flow's label ("Purchase approval"), which the strip under it repeated as its Flow chip, while the business record the approver decides on had no title at all. The page header now reads the record's title the approvals get serves (`record_title`), linked to that record once the page itself has read it: a plain click opens it in the app, as the "As submitted" card's "Open record" link does, and a modifier or middle click opens it in a new tab. Where the page's read of the record is refused or finds nothing, or the platform says the record was deleted, the title is plain text with no link, as the record card on the same page draws it. The title makes no read of its own: the reads the page already makes report what they found. Where the get serves no title for the record, or serves only its id, the header keeps the flow's label, so the page never names the record by a raw id. The flow stays named once, by the strip's Flow chip; no subtitle is added, because it would repeat that chip. The request object's declared title (`nameField: 'process_label'`) is unchanged, so lists, search, recent items and the breadcrumb still name a request by its flow. + - **`RecordHeaderState.title`** (`@object-ui/components`, new optional member, with its type `RecordHeaderTitle`). A host that knows a better name for the record than the object's declared title hands `{ text, node? }`; `page:header` draws `node` (or `text`) inside its H1, in the host's top bar and in its own row alike. Absent, or with an empty `text`, the header's own title stands exactly as before. + - **The decision band.** In the approver's band (the request page, and the business record page's approval band), Approve stays the filled primary button and Reject is drawn as an outline button in the destructive text colour, the face the record header already gives a secondary danger lever. A host that does not ask for the band's fold keeps the declared filled danger face. + - **One time format.** The approval timeline's action times use the compact datetime face the page's highlight chips and every `datetime` cell draw (`2026/11/10 下午8:25` under zh-CN), in the host's display time zone, instead of the browser's long form with seconds. + - `@objectstack/plugin-approvals`: comments only, saying where the request page now names its record. +- fe75349: fix(approvals): the approval timeline names an unstaffed position by its label, and the platform's own rows read as the system's + + Clause-②: yes (widening) — @objectstack/plugin-approvals adds the optional `ApprovalServiceOptions.positionLabelSource`; @object-ui/i18n adds approvalsInbox.systemActor and approvalsInbox.actSystemNote; nothing removed + Metadata-protocol: none + + When a request goes to the organization's administrators because a position on its approver list has no holder, its timeline note named the position by its machine name ("岗位「crm_sales_manager」无人任职"). The note a reader is served now names it by its label: the reader's language pack (`positions.<name>.label`) first, else the position's declared `label`, else the name as before ("岗位「销售经理」无人任职"). The English the row stores for audit keeps the name. + + On the timeline, a row no person took read its actor as "—", and the routing, submitter-exclusion and no-approver notes read as "Commented". A row with no actor now reads its actor as "System", and a `comment` row with no actor reads as "System note". A person's comment keeps "Commented" and its author. + + New locale keys: `approvalsInbox.systemActor` and `approvalsInbox.actSystemNote`, in all eleven packs. +- 1e018d6: feat: edit a record and its line tables together, and lock a record's lines while an approval locks the record + + Clause-②: no + Metadata-protocol: none + + **A locked record's lines are locked too.** While a record is held by an approval that locks it, writes to its master-detail child rows are refused with `RECORD_LOCKED` (409), the same answer a write to the record itself gets: inserting a row under it, updating or deleting one of its rows, and moving a row into it or out of it (both ends of a reparent are checked). A multi-row write that touches any such row is refused as a whole, and a row whose parent cannot be read is refused when the parent object has a locking approval the writer's run does not own. The approval's own exemptions carry over: system writes and the flow run that opened the approval still write. The refusal names the record by its object's label ("This Opportunity is locked while an approval is in progress, …"). Lookup children are not affected. `@objectstack/plugin-approvals` binds the new `bindDetailRowLockHook` beside the record lock it already binds. + + **`@object-ui/plugin-form` exports the record-page body-table editor.** `RecordBodyTableEditor` draws a master-detail body table as editable lines (the `LineItemsField` grid, with the child columns, field permissions and add / remove rules the master-detail form uses) for a host's edit session (`RecordEditSessionContext`). `buildRecordEditBatch` folds a record's field changes and every table's lines into one batch (the `buildMasterDetailEditBatch` diff, table by table), and `attributeRecordEditRefusal` places a refused batch's reasons on the record's field or on the line whose write carried the refused field. + + **`@object-ui/i18n`** adds `detail.bodyTableRow`, `detail.bodyTablesReadOnlyBulk` and `detail.discardInlineEditsMessage` to every built-in pack. + + **`@object-ui/plugin-detail`** exports `RecordBodyTableEditorSlotContext`: while a host provides it, a `record:related_list` whose relationship id (`CHILD_OBJECT.FK_FIELD`) is in the slot's set draws the host's element in its place instead of the read-only list. The record page's edit state draws its body-table editors through it; no new node type is registered. + + In the console, Edit on a record page that draws master-detail body tables now opens the page's edit state: the fields become inputs, the body tables editable lines, and one Save writes all of it in one batch. Per-field inline edit stays on every record page, those included, and saves the record alone through its save bar. One mode runs at a time: the edit state offers no per-field inline edit, and pressing Edit while inline changes are unsaved first asks whether to discard them. +- 03bce5c: fix(approvals): rejecting through the `approval_reject` action requires a reason + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is one param declaration in this plugin's own object metadata: approval_reject's comment goes from optional to required, so a call to that action without a reason is refused. No stored row, registry key or authored value changes, so there is nothing for a migration to rewrite and no tombstone. --> + + **BREAKING** for a caller of the `approval_reject` action on `sys_approval_request` that sends no `comment`: the call used to reject the request and is now refused before the approvals route runs. It ships `patch` because it is a non-protocol breaking change (AGENTS.md Post-Task Checklist step 3): the declaration belongs to this plugin, and nothing a metadata author writes changes, so `Metadata-protocol` is `none`. + + `approval_reject` declares its `comment` param `required: true`, so a reject through `approval_reject` always carries its reason. The declared param contract judges the call before the target route runs, and it counts an empty or whitespace-only string as missing: the REST action door (`POST /api/v1/actions/sys_approval_request/approval_reject`) and MCP `run_action` answer `400` with the param contract's refusal naming `comment`, and the console's param dialog holds Confirm until a reason is typed. A reject with a reason runs as before. The action's AI tool description now says the reason is required. The `POST /api/v1/approvals/requests/:id/reject` route itself is unchanged. + + Fix for a caller: send the reason as `params.comment` when you run `approval_reject`. +- d9be915: fix(approvals): a reject through the approvals route or `IApprovalService.decide` requires a reason + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is one runtime check in this plugin's decide(): a reject without a non-blank string comment is refused. No stored row, registry key or authored value changes, so there is nothing for a migration to rewrite and no tombstone. --> + + **BREAKING** for a caller of `POST /api/v1/approvals/requests/:id/reject`, or of `IApprovalService.decide()` with `decision: 'reject'`, that sends no `comment`, an empty or whitespace-only one, or one that is not a string: the call used to reject the request and is now refused before anything is read or written. It ships `patch` because it is a non-protocol breaking change (AGENTS.md Post-Task Checklist step 3): nothing a metadata author writes changes, so `Metadata-protocol` is `none`. + + The refusal is the one the `approval_reject` action door gives, judged by the same rules over the same `textarea` param: `400 VALIDATION_ERROR` with `Invalid action params: Action param "comment" is required` for an absent, `null`, empty or whitespace-only value, and `Invalid action params: Action param "comment" (textarea): …` for a value that is not a string (a number, a boolean, an array or an object). The request stays pending. A reject with a reason runs as before, and an approve keeps its comment optional. The platform's own rejects keep working: the SLA escalation's `auto_reject` and the revision-limit auto-reject do not pass through `decide()`, and the email action link records its fixed text. The email action link still records no reason the approver typed; that is a separate follow-up. + + Fix for a caller: send the reason as `comment` in the reject body (`{ "comment": "Over budget." }`). +- 65ee4b7: fix(plugin-approvals)!: a reject from the email action link records the reason the approver types on the confirm page, and a reject with no reason is refused on the page + + Clause-②: no (narrowing) + Metadata-protocol: none + Skills-docs: none — nothing under `skills/**` teaches the approval action link or its confirm page (`git grep -i` for "action link", "approvals/act" and `issueActionTokens` over `skills/` finds nothing) + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped. One exported member moves: `ApprovalService.redeemActionToken` takes an optional reason, and its outcome type gains a `reason_required` arm (both stated below). What moves is the answer the ADR-0043 action page, and that member, give a redemption of a reject link with no reason: no stored row, registry key or authored value changes, so there is nothing for a migration to rewrite and no tombstone. --> + + **BREAKING** for a caller that POSTs a reject link's token to `/api/v1/approvals/act` (the plugin's self-hosted mount, or the HTTP dispatcher's `/approvals/act` domain through `IApprovalService.handleActionPage`) without a reason, and for code that calls the exported `ApprovalService.redeemActionToken` in process on a reject token without one. + + - FROM: the confirm page for a reject link had no reason field. A POST carrying only the `token` field rejected the request and recorded the fixed comment "Via action link", while every other reject door (the record-page action, MCP `run_action`, the `/reject` route, the SDK) refused a reject with no reason. + - TO: the reject confirm page carries a required "Reason for rejecting · 驳回理由" field, posted as `comment`, and the decision records that text as its comment. A POST whose `comment` is missing, blank or not a string (judged by the same rule `ApprovalService.decide()` applies) is answered the same confirm page again with the refusal "Enter a reason to reject this request. · 驳回需填写驳回理由。" and status `400`. Nothing is decided and the token is not consumed, so the approver can type a reason and send the same link again. + + - In process, FROM: `redeemActionToken(token)` on a live reject token consumed it, rejected the request with the comment "Via action link" and returned `{ ok: true, action: 'reject', … }`. + - In process, TO: `redeemActionToken(token, input?: { comment?: unknown })`. On a reject token whose `input.comment` is missing, blank or not a string it returns `{ ok: false, reason: 'reason_required', action: 'reject', request, approverId }`, a new arm of the `ActionTokenOutcome` type that `redeemActionToken` and `peekActionToken` return, without consuming the token or deciding. With a reason it decides and records that reason as the comment. + + **Not moved.** An approve link: its page has no reason field, a POST reads only `token`, and the decision still records "Via action link". A dead link (unknown, expired, used, already decided, handed to someone else) is still told on the result page with `200`, checked before the reason, and a GET still never decides. Both doors still answer the same status and bytes for the same body. + + The fix for a caller: send the reason in the form's `comment` field with the `token` when redeeming a reject link. In process, pass `{ comment }` as the second argument to `redeemActionToken` for a reject token, and handle the `reason_required` arm where you switch on the outcome's `reason`. +- a03c3d4: feat(plugin-approvals): a record's activity shows its approval steps, to the users who can read its approvals + + Clause-②: no + Metadata-protocol: none + + A record under approval used to show no approval in its activity: nothing wrote an activity entry for an approval step, so the activity stream's one-line approval entry was reachable only from items a host supplied by hand. + + - **One activity entry per approval step.** plugin-approvals now appends one `sys_activity` entry for each step it records in its decision log, about the record the request governs: submitted, approved (`Approved · Manager review`, the step's label after the dot), rejected (`Rejected · Manager review`), sent back for revision (`Sent back for revision · Manager review`), resubmitted, recalled, and cancelled (the record was deleted). Other actions (a reminder, a reassignment, a thread comment, …) write none, and an object that sets `enable.activities: false` gets none, as the CRUD mirror writes none for it. The entry carries no decision comment. It follows ADR-0052 §5, so no published vocabulary changes: `type` is the built-in `system`, the domain kind is `metadata.kind: 'approval'` (with the step's action, its label and the flow and step names beside it), and `source_object` / `source_id` name the request. A deployment without plugin-audit has no `sys_activity` and gets no entries. + - **Each entry reads in the reader's language.** The stored `summary` is the English line from plugin-approvals' own catalog (`approvalActivity*` messages, shipped in all eleven of its locales). A read that carries a locale is served the line re-composed in that locale, and the step's label is read from the app's language pack (`flows.<flow>.approvals.<node_id>.label`) the way the approvals tab reads it, else the stored label: a zh-CN reader sees `已批准 · 经理审批`. A system read, or a read with no locale, gets the stored English line. A failed append never fails the approval step; it is logged once at `error`. + - **Only the users who can read the record's approvals read those entries.** A read of `sys_activity` keeps an approval entry only when the approvals service would serve the caller its request: a participant (submitter, current or past approver), the override actor, or a reader of the record where the object opts into `enable.approvalsVisibleToReaders`. Every other entry is served as before, and plugin-audit's rule that the record must be readable still applies. The record page's activity count and its rows agree. + - **The stream draws each entry as the approval line, and 「看审批」 opens the approvals.** The console reads an activity row with `type: 'system'`, `metadata.kind: 'approval'` and a `sys_approval_request` source as the `approval` feed kind (`APPROVAL_ACTIVITY_FEED_TYPE`, exported from `@object-ui/plugin-detail`), so `approval` now counts as produced. The record page supplies the new `RecordViewApprovalsContext`, and the approval line's 「看审批」 opens the record's 审批 tab, the same place the approval tag in the header opens; with no approvals the reader is served, the line has no link. The entry keeps `sys_activity`'s own lifecycle (reaped after 14 days); the 审批 tab keeps the full history. +- bb1c55d: docs(approvals): a reject reason is required at every human door — the contract docblock, the docs and the platform checklist say so + + Clause-②: no + Metadata-protocol: none + + Text only; no behaviour changes. `ApprovalService.decide()` already refuses a reject whose `comment` is missing, blank or not a string with `400 VALIDATION_ERROR` before any write, and an approve keeps its comment optional. The texts that still called the reason optional now state that rule: the `ApprovalDecisionInput.comment` and `IApprovalService.decide` docblocks in `@objectstack/spec` (the type is unchanged: `comment` stays optional in the interface, because an approve may omit it), and the `approval_reject` action's source comment in `@objectstack/plugin-approvals`, which said the target route does not judge the reason. +- 40e22f1: fix(approvals, list): a list cell no longer opens an editor before it knows the record's approval lock, and the list reads the locks of a page in one request + + Clause-②: yes (widening) + Metadata-protocol: none + + **What a list user sees.** On a list that edits in place, a double-click, Enter, F2 or a typed key on a cell whose record's approval lock or edit permission is still being read no longer opens an editor that the server would then refuse on save. The cell says "Checking whether this record can be edited…", and when the answer arrives the same edit goes ahead by itself (with the typed key), or the cell says why it does not: the record is locked while it is in approval, or the reader has no permission to edit it. Selecting another cell in the meantime drops the wait. Moving the selection with the arrow keys no longer sends a lock request per row: the first cell selected on a page asks the locks of every row on it at once. + + **New route.** `POST /api/v1/approvals/records/:object/locks` with the body `{ "recordIds": ["<id>", ...] }` (at least one id, at most `APPROVAL_RECORD_LOCKS_MAX_RECORD_IDS`, 200) answers `{ success: true, data: { records: [{ recordId, locked }] } }`, one entry per id in order. `locked` is what `GET /api/v1/approvals/records/:object/:recordId/lock` answers for that id, and `null` where that route answers 404: a record the caller cannot read and one that does not exist answer alike. Any other body (a key other than `recordIds`, an empty list, a non-string or blank id, more ids than the cap) and any query parameter are refused whole with `400 VALIDATION_ERROR`, never trimmed. A deployment whose approvals service does not implement the read answers `501`. + + **Contract and SDK.** `IApprovalService` gains the optional member `getRecordLocks(object, recordIds, context)`, entry `i` answering `recordIds[i]` exactly as `getRecordLock` does; the approvals plugin implements it in two reads whatever the page size (the caller's read of the ids, then one pending-request lookup judged by the record-lock hook's own judgement). `@objectstack/spec/contracts` exports `APPROVAL_RECORD_LOCKS_MAX_RECORD_IDS`. `@objectstack/client` gains `client.approvals.getRecordLocks(object, recordIds)`. + + **Components.** `GridCellFacts` (the select-first table's per-cell facts) gains the optional `checking: { text, settled }`: while present, an edit asked on the cell shows `text` and is asked again when `settled` settles; a toggle, paste or clear shows `text` and writes nothing. A host that sets no `checking` sees no change. +- 0a1b69c: feat(approvals): a decided request's step line says where the record's approval went next: on to a later step, or ended + + Clause-②: yes + Metadata-protocol: none + + The single approval request read (`GET /api/v1/approvals/requests/ID`) serves one more fact on a decided request's own route: `flow_route.outcome`, beside `ahead: 'decided'`. Before, a decided route stopped at the request's own step, so an approver reopening a request they had decided could not tell whether the record's approval went on to a later step or ended. + + - `outcome.step` is the run's latest request when it is a later one than this request (a request of the same flow run opened after it, on any node, a later round of the same node included; a pending one wins over a decided one). It is absent when no later request was opened in that run; a request a child run opened is not among them. + - `outcome.status` is that latest request's status, or this request's own when `step` is absent. `pending` with a `step` means the approval went on to that step and waits on its decision. + - `outcome.ended` is `true` only when the record's approval is known to have stopped: the request's run is a root run (not a `subflow` body or a `map` item, whose end is not the approval's), the flow body the run ran holds no `subflow` or `map` node anywhere, regions included (a child run files its requests under its own run, so this run's requests cannot show what it decided, before or after this request), and the run reports it stopped for good, with the same terminal set the dead-run sweep uses. The body the run ran is known only when the body armed now is the flow's newest registration and was registered before the run started, so a flow edited, rolled back or re-registered after a run started is never judged by its current body for that run. `false` means not known to have stopped: the run goes on, is a child run, ran a body that can start a child run, ran a body that is not known, cannot be read, or was opened before this release (the approval node now records on each new request whether its run is a root run). + + `outcome` is absent when nothing past the request is known: no later request was opened and the approval is not known to have ended, or several later requests are pending at once (parallel steps). A pending request's route never carries it. It is served to every reader of the request and says only where the same approval went: the later step's node id and label and that request's status, never the later request's id, approvers, comments or field values. The `ApprovalRequestRow.flow_route` contract type in `@objectstack/spec/contracts` gains the optional member, and `routeOutcome` in `@objectstack/plugin-approvals` is the rule. + + The approval request page (`@object-ui/app-shell`) draws one line under the decided step: "Went on to STEP, waiting for a decision", "Went on to STEP: DECISION", "Went on to STEP, then ended: DECISION", or "The approval ended here". No line is drawn when no outcome is served. `@object-ui/i18n` carries the four new `approvalsInbox` rows in every built-in locale, and the console's request type (`@object-ui/console`) mirrors the new member. + + Nothing to migrate: a caller that does not read `outcome` is unaffected. +- 62daf7d: fix(approvals): a working-time SLA deadline whose calendar read errors no longer fails the request open or the whole list + + Clause-②: no + Metadata-protocol: none + + When an approval step's escalation counts `working_time` and the working calendar read itself fails (an error that is not a calendar refusal, such as a driver error reading `sys_work_calendar`), opening the request threw after the `sys_approval_request` row was written and its approvers were told, so the approval node failed its flow run. The same error failed every list read and single read that included the row, and so every decision that loads it. + + That row is now served with no deadline and the error is logged as a warning; the open returns the request, the run suspends as usual, and the other rows of a list keep their deadlines. A calendar refusal is still served as `sla_due_refusal`, the deadline never falls back to wall-clock hours, and the escalation sweep still skips the row and asks the calendar again on its next pass. The served request shape is unchanged. +- 83e545a: fix(approvals): the no-approver note names its position by its label + + Clause-②: no + Metadata-protocol: none + + When a request opens with no one able to approve it and its approver list names an unstaffed position, its timeline note told the reader to add "a member who holds position 'regional_manager'", with the position's internal name, in every language. The note now stores the position as a reference, so a reader is served the position's label the way the administrators' routing note names one: the reader's language pack (`positions.<name>.label`) first, else the position's declared `label`, else the name as before. The English the row stores for audit keeps the name, and a note written before this change is shown exactly as it was. +- a3381cc: fix(plugin-approvals): the decide refusal and the submitter notice name a no-approver position by its label, and the approver-type word is translated + + Clause-②: no + Metadata-protocol: none + + When a request opens on a slate that names no one but its submitter, three places tell people what to do next: the request's timeline note, the notice sent to the submitter, and the refusal when the submitter tries to approve it. Only the timeline note named a position by its label. The other two used the position's internal name (`legal`), and in all three the approver type stayed the English token (`position`) in every language, so a zh-CN reader read `担任 position '销售经理' 的成员`. + + - The decide refusal (`FORBIDDEN`, both the `excludeSubmitter` refusal and the administrator-override refusal) names each position by the decider's language pack label, then its declared label, then its name. The sentence itself stays English, as before. + - The submitter's `approval.comment` notice names the position the same way, per recipient at delivery. For a slate of one slot its body is the new `approvalNoApproverHoldingSlot` sentence, which carries the approver type's word and the position's label as catalog keys. A slate of several slots still sends one English `who`, with each position named by its declared label. + - The approver type is named by its own word in all eleven packs (`approvalApproverTypePosition`, `…Team`, `…Department`, `…OrgMembershipLevel`), and each slot is one `approvalNoApproverSlot` clause joined by `approvalNoApproverSlotSeparator`. A zh-CN reader now reads `担任岗位「销售经理」的成员`. A slot of any other type keeps its token, as the administrators' note does. + + The English is unchanged. Each `en` type word is the machine token, so the comment a request stores and the English refusal still read `position 'legal'` for a position with no label. Stored audit text is not rewritten. +- 76bff41: fix(plugin-approvals): the decide refusal of a submitter's own approval, and a submitter notice that names several slots, read in the reader's language + + Clause-②: yes (widening) + Metadata-protocol: none + + **Widened door response.** The approvals decide door (`packages/rest/src/approvals-routes.ts`) gains one optional member, `userMessage`, at the top level of its flat `{ code, error }` refusal body. Two rows answer it today: the two `403 FORBIDDEN` decide refusals of a submitter's own approval, the `excludeSubmitter` refusal and the administrator-override self-approve refusal. It is absent whenever no producer marked one, so every other refusal body is unchanged. + + - **The decide refusal.** When the decision door refuses a submitter's own approval (the step sets `excludeSubmitter`, or the administrator override would approve the actor's own request), the thrown error now carries a `userMessage`: the same refusal, with its remedy, in the decider's language (`approvalDecideRefused*` in every approvals message pack). A position is named by the decider's pack label, then its declared label, then its name. The error's `message` is unchanged: it stays English for the developer and the log. With no reader language, `userMessage` is English and names no user id. + - **The REST door.** The approvals routes answer a refusal the service marked with `userMessage` at the top level of their flat `{ code, error }` body, beside `error`, on every mapped row. A refusal with no marking answers exactly as before. + - **The console.** The record page's `type: 'api'` actions (the request's Approve button) read a flat body's top-level `userMessage` as well as the `error.userMessage` of the ADR-0112 envelope, and show it in place of the English `error`. The Approval Center's inline decision toast shows a marked refusal as written, before its generic line. + - **The submitter notice.** A notice for a slate of 2 to 8 slots names each slot inline, one keyed type word and value per slot (`approvalNoApproverHoldingSlots2` to `…Slots8`, derived from each pack's own `approvalNoApproverHolding`, `approvalNoApproverSlot` and `approvalNoApproverSlotSeparator`), so the messaging service renders every slot in the recipient's language at delivery. A slate of more than 8 slots still names its slots in English inside the recipient's sentence. The literal English body is unchanged. +- 24ff03c: feat(plugin-approvals): approval requests, actions and delegations carry a palette colour + + Clause-②: no + Metadata-protocol: none + + The console draws an object's icon as a white glyph on a square of the object's palette colour, and an object that declares no `color` is drawn in the neutral `gray`. Until now no built-in object declared one, so every platform object read the same. Approval requests, the approval action history and delegations are now `orange` (approvals and work routing). + + Each colour is one of the palette names (`OBJECT_COLORS`), picked by business family, not by status: people and organisation `blue`, security and access `purple`, approvals and work routing `orange`, messaging and notifications `pink`, integrations `teal`, reference data and preferences `green`, audit `amber`. Objects nobody opens in the console (credential and token stores, queues, run logs, engine bookkeeping) keep no `color` and stay `gray`. Nothing about the objects' fields, data or API changes. +- 586c3a2: fix(plugin-approvals): the approvals inbox search finds a request by the record title, process label, object label and requester name its row shows + + Clause-②: no + Metadata-protocol: none + + The inbox search box ("Search record, process, requester…", `GET /api/v1/approvals/requests?q=`) matched only the stored machine columns (`process_name`, `object_name`, `record_id`, `submitter_id`) and, where the caller reads it unmasked, the raw snapshot. Text a row actually shows, such as a record title, a process label, a requester's name or an object label, found nothing, while a machine fragment like `crm_` found every row. + + `q` now also matches the four labels a row shows, each worked out the way that caller is served it: + + - the record title, as served to the caller: a title field the caller may not read, or reads masked, does not match; + - the process label in the caller's language: the translated label where the reader's language pack has one, otherwise the stored label. A reader who is shown the translation is not found by the stored text; + - the object label, chosen the same way; + - the requester's display name. + + Matching stays case-sensitive, like the existing arms (`$contains`). The `q` parameter accepts the same values as before. A title that comes only from a deleted record's snapshot is not searched by this path. +- f92d271: fix(plugin-approvals): the batch lock read answers a line of a held master as locked, as the single read does + + Clause-②: no + Metadata-protocol: none + + `getRecordLocks` (`POST /api/v1/approvals/records/:object/locks`) answered `locked: false` for a master-detail line whose master is held by a locking approval, while `getRecordLock` answered `locked: true` and the line's write was refused `RECORD_LOCKED`. The batch read now asks the detail-row lock too, through its new batch form `detailRowsHeldByLockingApproval`: one read of the rows' master-detail columns plus one lookup per master-detail edge, whatever the page size, never one read per row. The answer's shape is unchanged (`{ locked }` or `null`); a list page that reads the batch door now stops offering an editor on such a line. The `getRecordLock` / `getRecordLocks` contract docblocks in `@objectstack/spec` now say a line of a held master answers `true`. +- fd462c5: feat(plugin-approvals): the record lock reads say whether a row is held by its own approval or by its master's + + Clause-②: yes (widening: both lock doors' published entry gains a field) + Metadata-protocol: none + + Both approval lock reads (`IApprovalService.getRecordLock` and `getRecordLocks`, and their REST doors `GET /api/v1/approvals/records/:object/:recordId/lock` and `POST /api/v1/approvals/records/:object/locks`) now answer a locked record with `lockSource`, which approval holds it: + + - `'record'`: a pending request on the record itself, from a node whose `lockRecord` is not `false`. Deleting the record still goes through and cancels the request. + - `'master'`: the record is a `master_detail` line of a record so held. The server refuses the line's insert, update and delete with `409 RECORD_LOCKED`. + + When both hold (a line with a pending request of its own, under a held master), the answer is `'master'`, because that is the delete the server refuses. An unlocked record still answers `{ locked: false }`, with no `lockSource`, and `null` (`404 RECORD_NOT_FOUND` at the single door, `locked: null` in the batch door) still means unreadable or missing, never told apart. No request id, node, approvers or `pending` flag is served. A list can now hide Delete on a line whose master is under approval instead of offering a delete the server refuses. + + The `IApprovalService` return types gain the optional `lockSource?: 'record' | 'master'`, so an implementation may omit it on a locked answer and still satisfies the contract; the REST doors then serve `{ locked: true }` without a kind. + + Which rows count as readable is unchanged at both doors. The two doors keep different readability anchors on purpose: the single door counts any returned row, the batch door only the row whose id is the asked id; aligning them would narrow a published answer (seat ruling 7152650156 on #37151). So an id the database matches only under another spelling (a different letter case, `07` for a numeric `7`) answers `null` in the batch door. The single-record door counts the row it finds as readable and judges it, as before: a line of a held master answers `'master'`, because that check reads the row found, but a record's own request is looked up by the id as asked, so a record held by its own request may answer `{ locked: false }` under another spelling. A client asking with the ids the server gave it gets the same answer from both doors. + + `@objectstack/client`: `client.approvals.getRecordLock` and `getRecordLocks` type the answer with the optional `lockSource?: 'record' | 'master'`. +- 8e415bd: fix(approvals)!: an approver reassigns only their own slot + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is who may name a slot as the `from` of `POST /api/v1/approvals/requests/:id/reassign`: no stored row, registry key or authored value changes, so there is nothing for a migration to rewrite and no tombstone. --> + + **BREAKING** for a caller of `POST /api/v1/approvals/requests/:id/reassign` (and `IApprovalService.reassign`) that is neither the system nor an administrator acting through the approval override. + + - TO: such a call may move only a slot held by the actor it names (an omitted `actorId` names the caller). A `from` naming any other slot is refused `403 FORBIDDEN`, and nothing moves: the slate is unchanged and no `reassign` action is recorded. The default actor holds its user id, its account's email and each position it holds; a named email or position address holds only that address and its equivalent spellings. Omitting `from` still hands over the actor's own slot. + - **Not moved.** The administrator override and the system still move any pending slot, and the administrator rescue of a slate that names no one is unchanged. + + The fix for a caller: ask the slot's holder to reassign it, or an administrator. +- 99bd6d1: fix: a locked record's lines read as locked, and deleting the locked record still removes its lines + + Clause-②: no + Metadata-protocol: none + + **Reading the lock answers for a line too.** `IApprovalService.getRecordLock` (and `GET /api/v1/approvals/records/:object/:recordId/lock`) now answers `{ locked: true }` for a `master_detail` child row while the record it belongs to is held by a locking pending approval: the same rows whose insert, update and delete the server refuses with `409 RECORD_LOCKED`. It used to answer `{ locked: false }` for them, so a page could offer an edit the server then refused. A row the caller cannot read still answers as a missing one. + + **Deleting a record while its approval is pending removes its lines again.** The delete lands and cancels the pending request, as before the lines were locked; its `master_detail` lines are removed with it. The whole delete is refused `409 RECORD_LOCKED`, and the record, its lines and its request stay, when the line object has a second relation that also cascades on delete, or when the delete does not run inside an open transaction: a datasource that declares `supports.transactionsUnsupported`, a cascade across datasources, a record and its lines together on a datasource other than the default one, or a delete carrying the handle of a transaction that has already finished. Server code that owns the transaction must not catch the refused delete and commit anyway. A line is never removed by deleting a different record, except that when the locked record is itself the child of a record whose delete cascades to it (a `master_detail` child, or a `lookup` child with `deleteBehavior: 'cascade'`), deleting that parent removes the locked record and its lines and cancels its request. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [a73edb3] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [d053c7d] +- Updated dependencies [8b550f8] +- Updated dependencies [c809deb] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [c9b3f7a] +- Updated dependencies [01e6af6] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [4026c44] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [89ea9bf] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [17ed9e7] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [a98c077] +- Updated dependencies [236c804] +- Updated dependencies [d71fe59] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [a5a5312] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6943af1] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [24ff03c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [c8d4b90] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [9c57bd2] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [b3247dd] +- Updated dependencies [372ce7c] +- Updated dependencies [c059e60] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [bc2aaf1] +- Updated dependencies [4e55e4e] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/types@18.7.0 + - @objectstack/platform-objects@18.7.0 + - @objectstack/formula@18.7.0 + - @objectstack/core@18.7.0 + - @objectstack/metadata-core@18.7.0 + ## 18.6.0 ### Minor Changes diff --git a/packages/plugins/plugin-approvals/package.json b/packages/plugins/plugin-approvals/package.json index cd8bdfe9fb3..784c6c5f69c 100644 --- a/packages/plugins/plugin-approvals/package.json +++ b/packages/plugins/plugin-approvals/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/plugin-approvals", - "version": "18.6.0", + "version": "18.7.0", "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 9156ee6bada..c86f2fffb6a 100644 --- a/packages/plugins/plugin-audit/CHANGELOG.md +++ b/packages/plugins/plugin-audit/CHANGELOG.md @@ -1,5 +1,421 @@ # @objectstack/plugin-audit +## 18.7.0 + +### Minor Changes + +- 70194ff: feat(audit): a record's activity stream shows each changed field's old → new values by default, with a new `fieldHistory` off switch on the object and the field, and a reader is served only the changes of fields they may read + + Clause-②: yes (widening) + Metadata-protocol: semantic + + A record's activity stream now shows `Field: old → new` for every changed field, on every object, unless the object or the field turns it off. Before, values showed only for a field that declared `trackHistory: true`. Every other change was named by its field label alone. + + - **New `enable.fieldHistory`, with no default.** Absent: values show. `false`: off for the object, and a change names its fields only. It has no default so that a parsed body never writes one. A built artifact or a stored definition therefore gets values when it is upgraded, with no rebuild. + - **`enable.trackHistory: false` alone no longer turns values off.** The flag keeps its meaning: with `true`, the default record page shows the compliance ledger's field changes to a reader the ledger serves, and the derived `history` API verb is served. To keep an object's activity free of values, write `enable: { fieldHistory: false }`. Every platform object that wrote `trackHistory: false` now also writes `fieldHistory: false`. + - **New field `fieldHistory`, with no default: the field's off switch.** Absent shows the values, `false` names the change without them, `true` shows them (a media or JSON type included). Under an object with `enable.fieldHistory: false`, values stay off whatever a field says. + - **Field `trackHistory: false` no longer means anything: it reads like absent, so the values show.** The field designer wrote it on every save while the key meant nothing, so a stored `false` cannot be told from a choice. `trackHistory: true` keeps one job: it opts a media or JSON field in. A credential field (`secret`, and `password` off better-auth objects) never shows values, because both sides are the same mask. A media or structured-JSON field (`image`, `file`, `avatar`, `video`, `audio`, `signature`, `composite`, `repeater`, `record`, `location`, `address`, `code`, `json`, `vector`) shows them only with an explicit `true` (`fieldHistory` or `trackHistory`). + - **The new field key is classified where every `FieldSchema` key is.** The SQL driver counts `fieldHistory` as a presentation key, so creating a column never reads it. The field-level-security scrub keeps it as written, because a boolean names no field. + - **Who reads a value:** the field-change code (`metadata.summary_message`) is now served to readers. It is narrowed change by change with the same field answer as `metadata.old` and `metadata.new`. A reference field's change is kept only for a reader served the referenced record's title. When a reader is not served some of a summary's changes, the summary is rebuilt from the changes they are served instead of being dropped whole. The full audit ledger is not widened. + - **A long value no longer fails the activity insert.** The stored summary is fitted to `sys_activity.summary`'s `maxLength` (500): each side is cut first, then trailing changes are left out. The code keeps every change, with each side capped at 1,000 characters. + + To keep an object's activity free of values, set `enable: { fieldHistory: false }` on it. For one field, set `fieldHistory: false` on that field; `trackHistory: false` does not turn values off. + +### Patch Changes + +- ef39b2c: fix(objectql, plugin-audit): a database session lock whose connection stalls no longer hangs the audit sealer, `os migrate audit-* --apply` or a migrator's release + + Clause-②: no + Metadata-protocol: none + + A held database session lock (the audit seal lock, and the schema-migration lock) used to wait for its connection with no limit when it checked or let go of the lock. A connection stalled half-open, with no reply and no reset, never fails a statement, so the liveness probe (`select 1`), the unlock statement and the close of the raw connection could each wait for good. That hung a sealer pass checking its lock before a checkpoint, the `finish()` of an `os migrate audit-* --apply` run, and a migrator's release. + + Each of the three steps now gives up after 10 seconds (`DATABASE_SESSION_LOCK_ANSWER_MS`). A live session answers each one in milliseconds and waits exactly as before. + + - A probe the session does not answer in time reads as a lost lock. The session is not probed again, and the release sends it no unlock: it closes the connection, which releases the lock. + - An `--apply` run whose lock's session stopped answering reports the lock lost, as for a session that ended: it prints the line at error, names `os audit verify` and exits non-zero. The line now reads `(its database session ended, or stopped answering)`. + - A sealer pass whose lock's session stops answering reports that the audit seal lock lapsed and writes no checkpoint. The next pass tries again. + - The schema-migration lock runs the same statements. A release on a session that has stopped answering returns after the bound instead of hanging the migration or the boot. The lock then stays with the database session until that connection dies, as it would if the process had been killed. + + Nothing an author writes, no exported signature and no statement changes. +- 2a0cd20: feat(plugin-audit): export the readers that rebuild a stored checkpoint or amendment row into its signed body + + Clause-②: yes + Metadata-protocol: none + + `@objectstack/plugin-audit` now exports `checkpointBodyFromRow` and `amendmentBodyFromRow` from its package entry, with the two body types they answer, `CheckpointSignedBody` and `AmendmentSignedBody` (ADR-0154 D11). + + A checkpoint sink (`audit.checkpointSink`) is handed each signed checkpoint and amendment once, and re-delivers what a failed call missed by re-reading the stored records. Read from an unaltered stored `sys_audit_checkpoint` or `sys_audit_amendment` row, these readers answer the body the sink was handed: its RFC 8785 serialization is the bytes the row's `signature` covers, so a sink outside the package can rebuild and re-send a record without copying the body's shape or its parsing. A malformed row is refused with an error whose `name` is `SignedBodyError` and whose message names the field. + + The readers validate and normalize; they never verify the signature. A row whose signed columns were rewritten reads back into a body that fails verification (a rewrite of an unsigned column, `id`, `chain_key` or a checkpoint's `leaf_hashes`, reads back into the same body, and a malformed one is refused with a `SignedBodyError`). A row rewritten and re-signed under a key planted on the host fails under a key the sink trusts itself. A row rewritten and re-signed by whoever holds the genuine signing key verifies, and only the copies already off the host can catch it: a later checkpoint's signed `previous_digest` no longer matches a rewritten checkpoint, while no later record carries an amendment's digest at all. So a sink verifies the row's `signature` over the rebuilt body, under a key it trusts itself, before it treats the row as delivered. + + A sink assembles the entry it re-delivers itself: `kind` is `checkpoint` or `amendment`, from the table it read; `keyId` is `body.signing_key_id`; and `signature` is the row's `signature` column. The signed bytes are the body's RFC 8785 (JCS) serialization, which the sink computes with its own serializer: this package does not export one. +- cceb5c6: fix(audit): the action invocation row of an aggregate bulk call records how many selected rows succeeded, failed or were not confirmed + + Clause-②: yes + Metadata-protocol: none + + An `execution: 'aggregate'` bulk action is one call for the whole selection, with the ids in `params._selectedIds`. When its handler moved some rows and failed others, it resolves with a `BulkActionResult` (`{ succeeded: [ids], failed: [{ id, message }] }`, `@objectstack/spec/ui`) and does not throw. The `action_invocation` row in `sys_audit_log` recorded only `outcome: 'succeeded'` for that call, so the audit trail said a partly failed run fully succeeded. + + The outcome stays `succeeded`. When the call carried `_selectedIds` and its resolve value carries a `succeeded` or `failed` member, the row's `metadata` now also records what that value reads as under `BulkActionResultSchema`, counted by the rules the console's bulk dialog counts with: an id outside the selection is dropped, a duplicate counts once, an id in both lists counts as failed, and a selected id in neither list is not confirmed. + + - `bulk_selected`, `bulk_succeeded`, `bulk_failed` and `bulk_unconfirmed`, where `bulk_selected = bulk_succeeded + bulk_failed + bulk_unconfirmed`; + - or, when the value carries a member but does not parse, `bulk_unreadable: true` alone and no succeeded count. + + A handler that resolves with nothing, or with a value that has neither member (a summary, a download link), records the row as before. A call with no `_selectedIds`, a failed call and a `resume_run` add no bulk key. Both the REST `POST /actions/:object/:action` door (and a host's `dispatchAction`) and the MCP `run_action` tool record the counts. + + `ActionInvocationAuditEvent` gains an optional `bulk` member in both packages, and `@objectstack/plugin-audit` exports its type, `ActionInvocationBulkReading`. A reader of the ledger that lists `metadata` keys sees the new keys on these rows only. +- 4db08d5: fix(audit): a search the server widens never names a column the caller may not query (#34700) + + Clause-②: no + Metadata-protocol: none + Skills-docs: none — no skill or docs page teaches this search set. + + - The server-chosen search set of an object now leaves out every column the object's own query guard would refuse this caller, as it already leaves out a field the caller may not query (#25672). A column the caller names in `searchFields` is not left out: the guard judges it as before. + - `registerMiddleware(fn, { object, withholdSearchFields })`: a guard middleware names those columns in its own registration (`EngineMiddlewareOptions.withholdSearchFields`, asked for the reads the middleware runs on). plugin-audit's guards on `sys_audit_log` and `sys_activity` declare one, answered by the guard's own rule. +- 4b1eb0e: fix(plugin-audit): the platform's own audit and activity rows are no longer judged as an automation's insert + + Clause-②: yes (widening) + Metadata-protocol: none + + The audit writer records every audited write with a `sys_audit_log` row and its `sys_activity` mirror. It wrote both through the `sudo()` of the hook api it is handed, and `sudo()` spreads the audited write's context. When that write was made by app-authored automation, the elevation kept the automation's provenance: an action body's or a system hook's app-automation elevation mark, or a flow run's `flowRunId`. plugin-security therefore read the platform's own ledger rows as the automation inserting into an append-only object. Today that logged the "Deprecated: inserting into 'sys_audit_log'" (and `'sys_activity'`) warning on the first such write. Once the announced refusal of those inserts ships, it would have refused the rows and lost the audit trail of every action-body, system-hook and flow write. + + - The audit writer now writes both rows through the platform's own system api. `platformSystemApi(api)` is a new export of `@objectstack/objectql` and `@objectstack/objectql/core`. It derives from a hook's api the same elevated context `sudo()` gives, minus the app-automation mark and minus `flowRunId`. Every other key is kept, so the rows stay in the write's transaction, organization and attribution. On an app-authored hook's api it sheds nothing: there it returns what that api's `sudo()` returns, the mark and `flowRunId` kept. + - `withoutAppAutomationElevation(context)` is a new export of `@objectstack/core`. It returns the context without the mark. + - What an automation writes itself is unchanged. An action body's or a hook's insert into `sys_activity` or `sys_audit_log`, through its `ctx.api` or its `ctx.api.sudo()`, still carries the mark and still logs the deprecation. `sudo()` itself is unchanged too: it never sheds the mark. +- aff34ba: fix(approvals,audit): an approval's flow and position labels, and a renamed object's label in approvals and activity summaries, read as the metadata translators serve them + + Clause-②: no + Metadata-protocol: none + + In a deployment whose `i18n.sourceLocale` differs from its `i18n.defaultLocale` (an app authored in English that defaults its users to Chinese, say), the approvals door still looked up a request's flow label (`flows.<flow>.label`) and a position's label (`positions.<name>.label`) through `II18nService.t()`, which falls back to the `defaultLocale` row when the reader's locale has no entry. So an `en` or `en-US` reader saw the Chinese flow name on the inbox, the request page and the generic data door's request rows, and the Chinese position name in a timeline note, where the authored text was expected. Both labels now resolve through the spec translators of their types (`translateFlow`, `translatePosition` from `@objectstack/spec/system`) over every locale the i18n service holds. They use the resolve options the metadata route builds: the reader's locale, the declared fallback chain, and the authored language (the declared `sourceLocale`, else `defaultLocale`). A reader in the authored language now reads the label as written, and every other reader reads the same row as before. + + A packaged object renamed by a code extension was named in the reader's language by the bundle's translation of its OLD label. This hit the approvals inbox, request page and object-naming refusals, and the object label inside an activity summary, where `GET /meta/object` serves the rename. Both readers now hand `translateObject` the object's served definition and its packaged base (`packagedBase`, read off the engine's registry through `getPackagedObjectBase`, the base `/meta` reads). So the rename stands in every locale, as on `/meta`, and an unrenamed object reads its translation as before. + + An approval step's label (`flows.<flow>.approvals.<node_id>.label`) is still read through `t()`: no spec translator reads that key yet. +- 6d0089c: fix(objectql,approvals,audit): an authored rule message, an approval's object label and an activity summary's labels read as `/meta` serves them in a declared `i18n.sourceLocale` + + Clause-②: no + Metadata-protocol: none + + In a deployment whose `i18n.sourceLocale` differs from its `i18n.defaultLocale` (an app authored in English that defaults its users to Chinese, say), three readers still looked metadata text up through `II18nService.t()`, which falls back to the `defaultLocale` row when the reader's locale holds no entry. An `en` reader was shown the Chinese text where `GET /meta` and every other refusal label showed the English one as authored: + + - objectql: the author-written message of a validation rule (`objects.<object>._validations.<rule>.message`) in a `400 VALIDATION_FAILED` refusal; + - plugin-approvals: the object label on the approvals inbox, the request page, the generic data door's request rows and the approval refusals that name an object; + - plugin-audit: the object, field and select-option labels inside an activity summary composed in the reader's language. + + Each now resolves through `translateObject` (`@objectstack/spec/system`) over every locale the i18n service holds, with the resolve options the metadata route builds: the reader's locale, the declared fallback chain and the authored language (the declared `sourceLocale`, else `defaultLocale`). A reader in the authored language reads the text as written; every other reader reads the same row as before. `t()` keeps carrying the catalog sentences. + + An i18n service that cannot hand its translations over (no `getLocales()` / `getTranslations()`) no longer has these labels and rule messages translated through `t()`: the authored text stands. Every service the platform ships implements both. +- 5827212: feat(plugin-audit): a comment thread can be marked resolved and reopened + + Clause-②: yes (widening) + Metadata-protocol: none + + `sys_comment` gains three columns on the top-level comment of a thread: `is_resolved` (boolean, default `false`), `resolved_by` (the user who resolved it) and `resolved_at` (when). A thread is a top-level comment together with its replies. + + - **Resolve and reopen** by updating `is_resolved` on the top-level comment through the data API. An update that names `is_resolved` on a reply is refused, `VALIDATION_ERROR` / 400. + - **Who may.** Anyone who may comment on the record (who can read it) may resolve and reopen its threads (maintainer ruling record 7063285032, option A). This is the one widening: an update that changes nothing but `is_resolved` is admitted without the author-or-record-editor rule. Any other change to a comment still needs its author or an editor of the record. Resolving is an update, so a permission set that grants `create` but not `edit` on `sys_comment` can post comments but cannot resolve or reopen threads. A caller who cannot read the record gets the not-visible refusal, on a reply too. + - **Platform-written.** `resolved_by` and `resolved_at` are stamped by the platform when `is_resolved` turns `true` and cleared when it turns `false`; both are read-only, so a client's value is replaced by the stamp or dropped and reported in `droppedFields`. A new comment is always unresolved. + - **A reply reopens.** A reply posted into a resolved thread sets the thread back to unresolved. + - **Reading.** Unresolved threads of one record: `object_name = OBJECT`, `record_id = ID`, `parent_id = null`, `is_resolved: { $ne: true }`; count the same filter for the record's unresolved-thread count. + - **Stored rows** need no migration: the SQL column default is `false`, and `$ne: true` also matches a row that carries no value. + + Resolving or reopening writes no entry on the record's activity tab; the comment's own write is recorded in the audit ledger as every comment write is. +- 00ae570: feat(plugin-audit): a reply in a comment thread notifies the thread's starter and the people who replied in it before + + Clause-②: yes (widening) — `@objectstack/plugin-audit` emits a new notification topic, `collab.reply` (inbox and e-mail), and loads three new `messages.*` keys (`repliedToYourComment`, `repliedInYourThread`, `repliedAnonymous`) in all eleven locales into the host i18n service; `@objectstack/service-messaging` offers `collab.reply` in its platform topic list; nothing removed or refused + Metadata-protocol: none + + Before, only an `@mention` notified anyone about a comment. Someone who started a thread, or replied in it, heard nothing when another person answered. + + - **Who is notified.** When a comment is written as a reply (`parent_id` set), the writer finds the thread: it follows `parent_id` up to the top-level comment (whose author is the starter), then reads every distinct author of a reply to that comment in one grouped query (`author_id … WHERE parent_id = ? GROUP BY author_id`). Each of them is notified, except the reply's author and anyone this reply mentions (they get the mention notification, not two). + - **Who is not.** Each participant passes the same recipient gate as a mention: they are notified only when they can read the record and the reply itself, judged with their own permissions. A starter who has since lost access to the record gets nothing. Editing a reply, or writing a top-level comment, notifies no participant. + - **What arrives.** A new topic, `collab.reply`, through the same `messaging.emit` ingress as `collab.mention`: an inbox notice per reply and person, and an e-mail with the comment preview and a link that opens the record. The title says who replied, in the recipient's language: "Bob replied to your comment" for the starter, "Bob replied in a comment thread you are in" for the others. The e-mail templates are the mention e-mail's, registered under `collab.reply` in every catalog locale. + - **E-mail rate.** At most one reply e-mail per person per 10-minute window, the mention e-mail's window under its own key. In one window a person can therefore get one mention e-mail and one reply e-mail. Inbox notices are not limited. + - **Preferences.** Nothing new to set. A `sys_notification_preference` row `(collab.reply, email, enabled: false)`, or `(*, email)`, mutes the reply e-mail and keeps the inbox notice, as for any topic. + - **The topic list offers it.** `@objectstack/service-messaging` lists `collab.reply` among the platform's fixed topics (`PLATFORM_NOTIFICATION_TOPICS`), so `GET /api/v1/messaging/preference-options` offers it in the preference and template topic pickers even in an organization that has not received a reply notice yet. + + Mention notifications are unchanged. +- d12ac84: feat(comments): a member resolves and reopens any thread they can read, and deletes their own comments + + Clause-②: yes (widening) — `@objectstack/plugin-audit`'s `AuditPlugin` mounts two new HTTP routes, `PUT /api/v1/comments/:id/resolution` and `DELETE /api/v1/comments/:id`, and the stamp of who resolved a thread now reads a system write's `provenance.attributedUserId`. `@objectstack/core`'s `OwnRowDeleteDoor` adds an optional member, `refuseRemoval(row, engine, context)`, asked after the owner check. `@object-ui/react`'s `DiscussionContextValue` adds the optional `ownCommentDeletesOnly`; `@object-ui/plugin-detail`'s `RecordCommentsData` adds the optional `ownDeletesOnly`, and `RecordCommentThreadProps['comments']` may carry it; `@object-ui/core`'s affordance-to-grant map adds the row `feedCommentDeleteOwn`. Nothing existing is removed or re-typed. + Metadata-protocol: none + + Two server doors carry the maintainer's comment permission rulings past the platform's row floor (`owner_only_writes`, which lets a rank-and-file member update only the rows they created) and past the delete grant no every-member set may hold (ADR-0090 D5). Neither changes the floor, `sys_comment_moderation` or any permission set, and the data API answers exactly what it answered before. + + - **Resolve and reopen: `PUT /api/v1/comments/:id/resolution`** with the body `{ "resolved": true }` or `{ "resolved": false }` and nothing else. Whoever can read the thread and may post a comment on it may, external members included (ruling record 7063285032, option A: anyone who can see the record, the same gate as posting a comment): the door reads the comment as the caller (a comment they cannot read answers `404 RECORD_NOT_FOUND`, as an unknown id does), refuses a caller who reads comments but may not post one (`403 PERMISSION_DENIED`), refuses a reply (`400 VALIDATION_ERROR`) and then writes `is_resolved` alone, attributed to the caller. `resolved_by` names the caller. It answers `200` with `{ id, is_resolved, resolved_by, resolved_at }`. Any other query parameter or body is `400 VALIDATION_ERROR`; a signed-out request is `401`. + - **Delete your own comment: `DELETE /api/v1/comments/:id`.** It removes a comment the caller wrote (`author_id`), with no delete grant needed, on the platform's shared own-row delete door. Another member's comment is `403 PERMISSION_DENIED` and stays, even for a record editor: moderating someone else's comment stays the data API's, behind the delete grant. A comment that has replies stays too, whoever wrote them, `409 DELETE_RESTRICTED`, because removing it would turn each reply into a thread of its own (ruling record 7069889899: no one deletes or rewrites someone else's comment); its author may still edit its text. It answers `200` with `{ id, deleted: true }`. + - **Unchanged:** comment text stays its author's alone; a member's data-API update of a colleague's comment, `is_resolved` included, and a member's data-API delete are still `403`; administrators keep the data API for resolving, editing and deleting anyone's comment. + + The desktop comment panel follows the doors: + + - ✓ is on every thread, the viewer's and anyone else's, for a viewer holding the `sys_comment` create grant, and writes through the resolution door. It no longer asks the explain engine; that probe now gates only Edit on someone else's comment. + - A viewer without the `sys_comment` delete grant (an ordinary member) is offered Delete on their own comments that have no reply, and it goes through the own-comment delete door; a viewer with the grant deletes through the data API as before, others' comments included where they may edit the record. + + Corrections to two earlier notes of this release, which stay as written: + + - A rank-and-file member now resolves and reopens a colleague's thread through the resolution door; this replaces the #36071 note's line "This is the one widening: an update that changes nothing but `is_resolved` is admitted without the author-or-record-editor rule", because the platform's row floor (`owner_only_writes`) runs first, so through the data API such a member still resolves only the threads they started and an administrator resolves any. + - The desktop comment panel offers ✓ on every thread to a viewer who may post a comment and writes it through the resolution door; this replaces the #36075 note's line "✓ is offered under the `sys_comment` update grant: on a thread the viewer started, and on anyone's only where the explain engine admits …", and its "Unchanged" line's "a deployment without the explain service shows ✓ and Edit on the viewer's own rows only" now holds for Edit alone. +- 53733c1: fix: a comment notification opens the record with its comments at that comment + + Clause-②: no + Metadata-protocol: none + + Opening an @mention or reply notification used to land on the record page with the comments closed (or, on a phone, with no comments page), so the reader had to find the comment they were told about. + + - **`@objectstack/plugin-audit`**: the `collab.mention` and `collab.reply` inbox notices now link `/{object}/{id}?comments={rootCommentId}`, plus `&comment={commentId}` when the comment is a reply. A reply's thread is found from `parent_id`; a mention inside a reply links that reply's thread. The mention and reply e-mails carry the same link. Notices already in an inbox keep their old record link: nothing is backfilled. Other notifications are unchanged. + - **`@object-ui/plugin-detail`**: `CommentsPanel` takes `focusThreadId` / `focusCommentId`. With them, it shows that thread even when the filter hides it, opens its replies, marks the comment and scrolls the list to it. `CommentsPage` takes `focusCommentId`, and the thread opens scrolled to that comment, marked. `CommentThread` takes `openSignal` / `targetId`, and `CommentItem` takes `targeted`. + - The Console's record page reads the link: on desktop, `?comments=` (a thread id) opens the comment panel at that thread without changing the stored open or closed choice, and closing the panel drops the link. On a phone, the existing `?comments=` page opens the thread scrolled to `?comment=`. +- d463c46: fix(comments): unreact, resolve and own-comment delete work on a kernel with no `http.server` (a hosted tenant kernel) instead of answering 404 + + Clause-②: yes (widening) + Metadata-protocol: none + + The three comment doors, `DELETE /api/v1/comments/reactions/:id`, `PUT /api/v1/comments/:id/resolution` and `DELETE /api/v1/comments/:id`, were mounted by `AuditPlugin` only on the kernel's `http.server`. A hosted tenant kernel owns no socket and registers no `http.server`, so the host's `createHonoApp` catch-all handed each of them to the runtime dispatcher, which had no domain for them and answered `404 ROUTE_NOT_FOUND`, and removing a reaction, resolving or reopening a thread and deleting your own comment failed there. + + - `@objectstack/spec/contracts` declares `ICommentDoorsService` with one optional, transport-neutral member, `handleCommentDoor(request: Request): Promise<Response>`, and types the `comments` service slot with it (`ServiceSlotContracts.comments`). A service without the member still satisfies the contract. + - `AuditPlugin` registers the `comments` service with that member. It runs the same registrars over the same dependencies the `http.server` mount runs, on a private route table that never listens, so every answer is the mount's own. The `http.server` mount is unchanged, and no path is mounted twice. `@objectstack/plugin-audit` now depends on `@objectstack/plugin-hono-server` at runtime (the private table is a `HonoHttpServer`), and the `comments` service name is now taken: a composition that registers its own `comments` service alongside `AuditPlugin` fails to boot with a duplicate-service error. + - The runtime dispatcher gains a `/comments` domain that claims exactly the three method and path shapes and forwards the request, body unread, to the request kernel's `comments` service. Every other `/comments` shape keeps the dispatcher's `404 ROUTE_NOT_FOUND`. With no `comments` service, or one without `handleCommentDoor`, the doors answer `501 NOT_IMPLEMENTED` naming `@objectstack/plugin-audit`. The doors stay behind the dispatcher's authentication and project-membership gates. +- 7501d0c: feat(studio): the Field History setting offers Default, On and Off, and Default says what it resolves to + + Clause-②: yes (widening) + Metadata-protocol: none + + The Field History setting on the field form, on each row of the object form's field list, and in the object's capabilities is now a three-way choice instead of a switch. Default leaves the setting unset, so the field (or object) follows the platform, and it names what that means for the row: "Default (On)" for most field types, "Default (Off)" for a media or JSON field unless the field opts in with Track History, and for a credential field always. On and Off write `true` and `false` as before. A setting turned off can now be returned to Default, which removes the key. + + `@objectstack/spec/data` exports `resolveFieldHistory(field, object)` and `FIELD_HISTORY_DEFAULT_OFF_TYPES`: whether a changed field's old → new values show on the activity timeline, and the types that are off by default. The activity writer in `@objectstack/plugin-audit` now asks this predicate instead of its own copy of the type list, so the default the form shows and what the writer keeps cannot disagree. Behaviour of the writer is unchanged. +- 24ff03c: feat(plugin-audit): the audit log carries a palette colour + + Clause-②: no + Metadata-protocol: none + + The console draws an object's icon as a white glyph on a square of the object's palette colour, and an object that declares no `color` is drawn in the neutral `gray`. Until now no built-in object declared one, so every platform object read the same. The audit log is now `amber` (audit). + + Each colour is one of the palette names (`OBJECT_COLORS`), picked by business family, not by status: people and organisation `blue`, security and access `purple`, approvals and work routing `orange`, messaging and notifications `pink`, integrations `teal`, reference data and preferences `green`, audit `amber`. Objects nobody opens in the console (credential and token stores, queues, run logs, engine bookkeeping) keep no `color` and stay `gray`. Nothing about the objects' fields, data or API changes. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [cc03bdc] +- Updated dependencies [ef39b2c] +- Updated dependencies [a73edb3] +- Updated dependencies [93fa4f9] +- Updated dependencies [1c05546] +- Updated dependencies [9fea316] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [e6e5224] +- Updated dependencies [94a2d8b] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [d053c7d] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [4db08d5] +- Updated dependencies [c9b3f7a] +- Updated dependencies [01e6af6] +- Updated dependencies [8e46424] +- Updated dependencies [d5ece3e] +- Updated dependencies [f4dbcc2] +- Updated dependencies [d17adf5] +- Updated dependencies [9c29d73] +- Updated dependencies [bf69cb4] +- Updated dependencies [4026c44] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [a6cf988] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [c480f33] +- Updated dependencies [9062756] +- Updated dependencies [65b67be] +- Updated dependencies [1caee8c] +- Updated dependencies [cdb327f] +- Updated dependencies [5cd2b54] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [43639a6] +- Updated dependencies [b863d2b] +- Updated dependencies [89ea9bf] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [c321914] +- Updated dependencies [61722e9] +- Updated dependencies [37f7814] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [6d0089c] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [4890cd0] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [c59ee99] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [50d6da8] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [7dd1a2f] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [17ed9e7] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [a98c077] +- Updated dependencies [236c804] +- Updated dependencies [d71fe59] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [a5a5312] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6943af1] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [756df0a] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [24ff03c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [c8d4b90] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [9c57bd2] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [b3247dd] +- Updated dependencies [372ce7c] +- Updated dependencies [c059e60] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [bc2aaf1] +- Updated dependencies [4e55e4e] +- Updated dependencies [64b278e] +- Updated dependencies [4101f1f] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/objectql@18.7.0 + - @objectstack/types@18.7.0 + - @objectstack/platform-objects@18.7.0 + - @objectstack/core@18.7.0 + - @objectstack/metadata-core@18.7.0 + - @objectstack/plugin-hono-server@18.7.0 + ## 18.6.0 ### Minor Changes diff --git a/packages/plugins/plugin-audit/package.json b/packages/plugins/plugin-audit/package.json index 44a7b8bd121..94fdceeed74 100644 --- a/packages/plugins/plugin-audit/package.json +++ b/packages/plugins/plugin-audit/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/plugin-audit", - "version": "18.6.0", + "version": "18.7.0", "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 7d07ce0fbdf..a92a85b9e89 100644 --- a/packages/plugins/plugin-auth/CHANGELOG.md +++ b/packages/plugins/plugin-auth/CHANGELOG.md @@ -1,5 +1,562 @@ # Changelog +## 18.7.0 + +### Patch Changes + +- 8c629b2: fix(plugin-auth)!: a directory deactivation removes the user's local password; a re-activation restores access through SSO only + + Clause-②: yes (narrowing) — narrowed: a SCIM `active: false`, a SCIM `DELETE /Users/{id}`, a SCIM create with `active: false`, a connection decommission that leaves the user with no active source, and any later SCIM write that leaves the user inactive now also delete the user's local password (every `sys_account` row of the user with `provider_id = 'credential'`), where they left it in place, so the identity-source mark then reads the user `idp_provisioned` where the password had kept it `env_native`; and a SCIM `active: true` that lifts the directory's ban now first deletes any such row the user holds at that moment, where it lifted the ban alone, and fails (SCIM 500, the user staying deactivated) when that deletion cannot be completed. A re-activation by the directory restores no credential from before it, so a password sign-in by that user answers the ordinary `401 INVALID_EMAIL_OR_PASSWORD` until a password is set again on purpose after it. + Metadata-protocol: none + Skills-docs: none — no skill under `skills/**` teaches the SCIM deactivation lifecycle; `content/docs/permissions/authentication.mdx` gains the rule in this change. + + <!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed, renamed or re-shaped. The change is a runtime write on the SCIM deprovision and re-activation paths (rows of the better-auth account table), so there is nothing stored in metadata for a migration to rewrite and no tombstone. --> + + **BREAKING** for a deployment that provisions users through a SCIM directory: deactivating or deleting a user through SCIM, or decommissioning the last SCIM connection that holds the user active, now removes that user's local password, alongside the ban, the API key revocation, the AI service account suspension and the ending of the user's OAuth applications and SCIM credentials it already performed. A re-activation by the directory restores access through the identity provider's sign-in only: it removes any local password the user holds at that moment, one set while the user was deactivated included, before it lifts the ban, so it restores no credential from before it; when that removal cannot be completed the re-activation fails and the user stays deactivated until the directory retries. The user's other account links (SSO / OAuth) and the user row are kept. With the password gone, the user reads as directory-managed (`sys_user.source = 'idp_provisioned'`, ADR-0135 D4) where the password had kept it `env_native`, so every rule keyed on that mark applies to the user, the SSO-only mode refusals to set a local password among them. + + Unchanged: an administrator's ban and unban (`admin/ban-user`, `admin/unban-user`) leave the local password alone; an `active: true` over an administrator's ban, and an active SCIM write for a user who is not banned, remove nothing; a deactivation the break-glass last-administrator guard refuses removes nothing. + + A ban whose reason reads `Deactivated via SCIM`, the reason the directory's ban records, is the directory's whoever wrote it: the directory's next active write lifts it and removes the local password. + + What to do: nothing. No migration or backfill runs: a user deactivated before this version keeps their local credential until the directory next writes that user. An administrator's unban removes nothing. A re-activation by the directory also removes a password set while the user was deactivated. A person who needs a local password after a re-activation sets one again on purpose after it (`set-initial-password`, or an administrator's Set Password where the deployment allows it; with SSO-only mode on, these doors refuse a directory-managed user other than a platform administrator setting their own). +- 5f18b9b: fix(plugin-auth): removing a pending person writes an admin audit row, and the host-failure texts say the removal is refused + + Clause-②: no + Metadata-protocol: none + + `POST /api/v1/auth/admin/remove-sso-user` now writes one `sys_audit_log` row for a removal that committed, through the same writer the add doors use: `action: 'delete'` on the removed `sys_user`, naming the administrator, with `metadata` `{ event: 'user.admin_removed_pending', hostNotified }` (`hostNotified` is whether the environment-user host took the cancellation of the invitation; `false` with no host wired). A refused removal (a host that cannot be reached, a host's refusal, a person who is not pending, a failed delete) writes no row. With plugin-audit uninstalled no row is written, as for the other admin user doors. + + The removal door already refused with `503 SERVICE_UNAVAILABLE` when the environment-user host could not be reached, but the `warn` line logged in that case still said "The removal goes ahead.", and the `EnvironmentUserHost` and `environmentUserHost` option docs said a host failure is only reported on a removal. All three now say the removal is refused. Behaviour of the door is unchanged. +- d053c7d: feat(identity): the Add User result says when the address was already pending + + Clause-②: yes (widening) + Metadata-protocol: none + + On a cloud-managed environment, Setup → Users → Add User now says when the address you added was already waiting for its first sign-in, including when you sent only an email. Before, that answer looked exactly like a fresh add. + + - `POST /api/v1/auth/admin/add-sso-user` answers `pendingAgain: true` on a re-add of a person who is still pending, and leaves the key out on a fresh add. It never answers `false`. `alreadyPending` is unchanged and is still on every answer, so nothing an API reader reads today changes. + - The `sys_user.add_sso_user` result dialog gains an "Already pending" row that reads `pendingAgain`. The dialog skips a field whose path is absent from the answer, so the row is drawn only on a re-add; a fresh add shows no `false` row. +- 0f29688: fix(plugin-auth)!: an invited sign-up the audience posture's own rule admits receives the declared self-registration permission set, and is refused when that set cannot be resolved + + Clause-②: no (narrowing) + Metadata-protocol: none + Skills-docs: none — no skill under `skills/**` teaches the audience posture's invitation sign-up or `selfRegistrationPermissionSet`; `content/docs/deployment/self-hosting.mdx` gains the rule in this change. + + <!-- adr-0087: registered self-registration-permission-set-reaches-invited-sign-ups --> + + **BREAKING** for a deployment under the `open` audience posture, or under `email_domain` for an address on `allowedEmailDomains`, whose declared `selfRegistrationPermissionSet` cannot be resolved (no such set, or the set is switched off) and that relies on an invited person still being able to sign up. + + - Under `open`, and under `email_domain` for an address on the allowlist, a self-serve sign-up is admitted by the posture's own rule, invitation or not. It now receives the declared `selfRegistrationPermissionSet` whether or not it also holds a pending invitation. Before, a pending invitation addressed to it was read ahead of the posture in `decideAudienceAdmission` (`audience-posture.ts`), and the sign-up was admitted with no self-registration grant, though the membership settle already treated it as admitted by the posture and bound it at creation. The verdict and the settle now read one classification, the module-private `isAdmittedByPostureRule`. + - When the declared set cannot be resolved, such an invited sign-up is now refused `403 AUTH_CONFIG_ERROR`, naming the set, as an uninvited one already was. No account is created. Before, the invitation admitted it without the set. + - The invitation still places the sign-up as it names: once the address is verified and the invitation accepted, the membership and role it names are written beside the grant. + + Unchanged: under `invite_only` an invitation admits with no self-registration grant; under `email_domain` an address off the allowlist that an invitation admitted gets the account and no grant, and is not bound while its address is unverified, whatever state the declared set is in; operator, bootstrap and SSO-provider creations; a social-provider creation whose address the provider did not verify is still refused under `email_domain`, and under `open` while email verification is in force; `admin_full_access` is still refused as the self-registration set. + + No authorable key, accepted value or default changes; `selfRegistrationPermissionSet` keeps its meaning, the set each self-registrant receives, and now reaches the invited sign-ups its posture admits. + + What to do: keep `selfRegistrationPermissionSet` naming a permission set that exists and is switched on. A person refused this way signs up again once an administrator has corrected the setting or switched the set on, or an administrator creates the account directly. An invitation can expire while the set is broken; send it again after the fix. +- 7bd5d28: feat(auth): `directSignIn.afterSignOut` lets an explicit sign-out return through the identity provider's sign-in page + + Clause-②: yes (widening) + Metadata-protocol: added + + A deployment with direct sign-in on can now choose where an explicit sign-out returns once the identity provider has ended its own session. The default keeps today's behaviour, so nothing changes until a deployment sets the new value. + + - The auth plugin's `directSignIn` option takes `afterSignOut: 'hold' | 'identity-provider'`, and the environment variable `OS_AUTH_DIRECT_SIGN_IN_AFTER_SIGN_OUT` wins over it, like the other direct sign-in settings. `hold` is the default. Any other value refuses to boot, naming the variable and both values. + - `GET /api/v1/auth/config` serves `features.afterSignOut` while the direct sign-in setting is on, on the same terms as `features.localSignIn`, and leaves it out otherwise. `AuthFeaturesConfigSchema` in `@objectstack/spec` gains the optional `afterSignOut` enum, and `PUBLIC_AUTH_CONFIG_NON_FLAG_KEYS` gains `'afterSignOut'`. + - `hold`: the Console's sign-out sends the sign-in page as the provider's return address, and the page holds with a button to sign in again, as before. + - `identity-provider`: while `features.directSignIn` reads `true`, the Console's sign-out sends `{basePath}/sign-in/direct` instead, so after the provider's logout the browser goes through the direct sign-in door to the provider's own sign-in page. The door starts a fresh sign-in without the browser's cookies, and the provider has just ended its session, so it asks for credentials; it does not loop. Register the door's absolute address as a post-logout redirect URI at the provider. + - `@object-ui/auth`: `AuthPublicConfig.features` gains the optional `afterSignOut`. When the tab holds no auth config at sign-out, the client reads it once (3 seconds at most) and keeps the sign-in page if it cannot. + - Module exports on the `@objectstack/plugin-auth` entry: the type `DirectSignInAfterSignOut`. In `direct-sign-in.ts` (not on the package entry): `DIRECT_SIGN_IN_AFTER_SIGN_OUT`, and `DIRECT_SIGN_IN_ENV.afterSignOut`. +- 9e65474: fix(plugin-auth): an invitation mail sent outside a better-auth endpoint still carries the mailbox proof + + Clause-②: no + Metadata-protocol: none + + A host that calls the organization plugin's `sendInvitationEmail` from its own code, outside any better-auth endpoint, now sends the same mail the console's invite sends: its link carries the invitation's mailbox proof, so the invitee can use the one-step acceptance from it. The proof is minted through the auth manager's own context when no endpoint context exists. Nothing else changes: the proof is still delivered only in the mail and never stored in clear, and a send inside an endpoint mints exactly as before. +- 338ef35: fix(auth)!: a boot outside development mode retires what the development seed issued + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is what a boot outside development mode does to the credentials the development seed's accounts were issued: no metadata, registry key or authored value changes, so there is nothing for a migration to rewrite and no tombstone. --> + + **BREAKING** for a deployment that serves a database `os dev` seeded. At every boot outside development mode (`NODE_ENV` is not `development`), before the server serves a request, the platform retires what each account the development seed created (its admin and the stack's `demoStaff`) was issued, while that account still has the password it was seeded with: its sessions (including any it opened acting as another account), its API keys, the apps authorized to it and its device sign-ins, its outstanding password-reset links, any sign-in account linked to it, the OAuth applications it registered (disabled) and the SCIM credentials it minted (revoked). It is the revocation `os user set-password` performs, plus the sessions the account opened as another account, without setting a password, and with a host `secondaryStorage` it also ends the sessions held there. + + - FROM: a session, an API key or an authorized app the seed's admin or a demo account was issued under `os dev` kept working on a server outside development mode, until an operator ran `os user set-password` on that account. + - TO: the boot retires them. A retired session's next request is unauthenticated, a retired key is refused `403 API_KEY_REVOKED`, and both carry the reason `admin_password_reset`, so only a platform administrator restores such a key. The log names each account and what was retired. When the retirement cannot complete, the boot fails with an error naming the accounts. + + **Not moved.** A boot in development mode retires nothing. An account the seed did not create is never read. An account whose password was set since the seed (by `os user set-password`, by an administrator or by its own reset) holds a credential the seed did not issue and is untouched, and so is every credential it was issued after that. A database with no account the seed created costs one indexed read per boot. + + The fix: set each seeded account's password with `os user set-password <email>` before serving the database outside development mode (the refusals added in the previous release already require it to sign in), then sign in and issue new keys. +- c9aad65: Clause-②: no + Metadata-protocol: none + + `POST /api/v1/auth/admin/ban-user` and `POST /api/v1/auth/admin/unban-user` now write one `sys_audit_log` row for a change that committed, through the same writer the other admin user doors use: `action: 'update'` on the target `sys_user`, naming the administrator, with `metadata` `{ event: 'user.admin_banned' | 'user.admin_unbanned', hostNotified }`. A refused ban or unban writes no row. Without the admin plugin, the ban columns' write now carries the administrator's attribution too, so plugin-audit's own row for that change names the administrator instead of the system, as it already did with the admin plugin; the written fields are unchanged. The ban reason and expiry stay on plugin-audit's row for the user's change, not in `metadata`. The route ledger note for `admin/remove-sso-user` and the authentication docs now name that door's `user.admin_removed_pending` row. +- 7eaa3f5: fix(auth): the direct sign-in door accepts the `state` an identity provider passes back after a sign-out + + Clause-②: no + Metadata-protocol: none + + With direct sign-in on and `afterSignOut: 'identity-provider'`, a sign-out that carried a `state` came back from the identity provider's logout to `GET /api/v1/auth/sign-in/direct?state=…`, and the door answered `400 VALIDATION_ERROR` instead of showing the identity provider's sign-in page, so the person was left on an error. The door now accepts one `state` and ignores it: it starts a new sign-in with its own state, as it does without one. A `state` sent twice is still refused `400`, like a repeated `callbackURL`, and any other unknown query parameter is refused as before. The shipped Console sends no `state`, so its sign-out is unchanged. +- cf7e443: feat(plugin-auth): a host's session-creation organization choice can fall back when that organization's access policy would refuse the sign-in + + Clause-②: yes + Metadata-protocol: none + + A host's `session.create.before` hook (`AuthManagerOptions.databaseHooks`) chooses the organization a new session is scoped to, and the framework then refuses the sign-in (`IP_NOT_ALLOWED`, 403) when that organization's own allowed IP ranges do not admit the request. The hook can now return an ordered list of fallbacks beside `data`: + + ```ts + import type { SessionCreateBeforeResult } from '@objectstack/plugin-auth'; + + databaseHooks: { + session: { + create: { + before: async (session): Promise<SessionCreateBeforeResult> => ({ + data: { ...session, activeOrganizationId: lastUsedOrgId }, + activeOrganizationCandidates: [ownedOrgId, oldestOrgId], + }), + }, + }, + }, + ``` + + The session is scoped to the first organization, `data.activeOrganizationId` first and then the list in order, that the organization's scoping admits. Each one is judged exactly as the single choice is: the same client address the server established for the request, the same organization policy, the same tenant-level administrator exemption. When no candidate is admitted, the sign-in is refused as before, and the `login_failed` audit row names the host's first choice. The list never reaches the stored session. + + `data` is required, as in better-auth's own hook result: a hook that returns only a list still returns `data: session` beside it. The candidates are the host's word: plugin-auth judges each organization's access policy, never membership, so list only organizations the user is a member of. A non-member candidate can be admitted at creation, and the per-request membership check then drops the session's organization. + + Nothing changes for a host that returns no list or an empty one. A value that is not an array of non-empty organization ids is a host error and fails the session creation with a `TypeError`. The new public export is the type `SessionCreateBeforeResult`. +- 0e91213: fix(plugin-auth): a kernel without SSO answers 404 again on the SSO discovery endpoints, with no error log + + Clause-②: no + Metadata-protocol: none + + Since SSO discovery began connecting only to addresses that are public at connect time, a kernel that does not mount SSO (the default without `OS_SSO_ENABLED` or `plugins.sso`) answered `POST /sso/register`, `/sign-in/sso` and `/sso/callback/*` with `503 SERVICE_UNAVAILABLE` ("SSO is unavailable: this server cannot judge its reads of an identity provider") and logged one error line per request. The discovery scope opened on the path alone, while the adapter observer it requires is mounted only with SSO. + + The scope now opens only when the built auth instance mounts the vendor's `sso` plugin, read off the composed plugin list rather than the configuration re-read at request time. A kernel without SSO answers the vendor's own 404 on those paths and logs nothing. A kernel that mounts SSO is judged exactly as before: provider reads go through the connect-time guard, and a context whose adapter is not observed is still refused `503` before the endpoint runs. No configuration, export or response shape changes. +- 011635f: fix(plugin-auth): an MCP access token for an app the user consented to, minted in the same second as a password change, after it, is no longer refused + + Clause-②: yes (widening) + Metadata-protocol: none + + The MCP door refuses an OAuth access token issued before its subject's password last changed. It compared the token's `iat`, which is whole seconds, with the change time in milliseconds, so a token minted after the change but inside the same wall-clock second was refused with `401` too. An agent or script that connected over MCP right after a password change or reset was turned away until the next second. + + - The embedded authorization server now signs one more claim into every JWT access token it mints: `iat_ms`, the mint's own instant in milliseconds, written by the server's clock. A client cannot set or change it. It is written at a mint only, never into an opaque token's introspection answer. + - For an app the user granted access to through the consent step, the MCP door compares the change time with `iat_ms` when the token carries one that lies inside the second its `iat` names. A token minted in the second of the change, after it, is admitted; one minted in that second before it is still refused. + - An app admitted without a consent step (a server-only `skip_consent` client) keeps the whole-second refusal: every token minted for it in the second of the change is refused, whatever its `iat_ms`. + - A token without the claim (minted before this release) or with a value that cannot be placed keeps the old whole-second rule, so it is still refused in the second of the change. A token issued before a password change is never admitted. +- d24a502: docs(plugin-auth): the `no_sign_in_account_at_boot` boot report now states the admission order the audience gate actually reads + + Clause-②: no + Metadata-protocol: none + + The recovery remedy in the boot report still holds — a pending `sys_invitation` row gets that one sign-up admitted under every audience posture — but its sentence said the invitation carve-out is what admits it everywhere. The audience gate reads the posture's own rule first: under `open`, and for an address on the `email_domain` allowlist, the posture admits the sign-up, invitation or not; the invitation admits it under `invite_only` and for an address off the allowlist. The message now says so. No admission behaviour changes. +- cbc06ff: fix(hosted): deleting a personal view and removing or renaming an attachment work on a kernel with no `http.server` (a hosted tenant kernel) instead of answering 404 + + Clause-②: yes (widening) + Metadata-protocol: none + + `DELETE /api/v1/personal-views/:id` (plugin-auth) and `DELETE` / `PATCH /api/v1/attachments/:id` (service-storage) were mounted only on the kernel's `http.server`. A hosted tenant kernel owns no socket and registers no `http.server` (and runs `AuthPlugin` with `registerRoutes: false`), so the host's `createHonoApp` catch-all handed each request to the runtime dispatcher, which had no domain for them and answered `404 ROUTE_NOT_FOUND`: a member could not delete a personal view, or remove or rename an attachment, there. + + - `@objectstack/spec/contracts` declares `IPersonalViewDoorsService` (one optional, transport-neutral member, `handlePersonalViewDoor(request: Request): Promise<Response>`) and types the new `personal-views` service slot with it, and declares `IAttachmentDoorsService` (`handleAttachmentDoor`), which the existing `file-attachments` service implements beside `IFileAttachmentService`. A service without the member still satisfies either contract. + - `AuthPlugin` registers the `personal-views` service in `init()`, whatever `registerRoutes` says, and `StorageServicePlugin`'s `file-attachments` service gains `handleAttachmentDoor`. Each member runs the same registration over the same dependencies the `http.server` mount runs, on a private route table that never listens, so every answer is the mount's own. The `http.server` mounts are unchanged, and no path is mounted twice. The `personal-views` service name is now taken: a composition that registers its own `personal-views` service alongside `AuthPlugin` fails to boot with a duplicate-service error. `@objectstack/plugin-auth` and `@objectstack/service-storage` now depend on `@objectstack/plugin-hono-server` at runtime (the private table is a `HonoHttpServer`; plugin-auth previously listed it as a dev dependency only). + - `@objectstack/plugin-hono-server` exports `createDoorTableMember(routes, mount)`, the private never-listening table both members are built on, and `matchDoorTableRoute`. + - The runtime dispatcher gains `/personal-views` and `/attachments` domains that claim exactly the door shapes and forward the request, body unread, to the REQUEST kernel's member (never the host kernel's scoped fallback). Every other shape under those prefixes keeps the dispatcher's `404 ROUTE_NOT_FOUND`. With no slot, or one without the member, the doors answer `501 NOT_IMPLEMENTED` naming the package that registers it. The doors stay behind the dispatcher's authentication and project-membership gates. +- 92ab056: fix(plugin-auth)!: a credential change ends access issued before it + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value, metadata type or export is added, removed, renamed or re-shaped, and nothing stored is rewritten: what moves is the answer the auth doors give to an email-change link, a second-factor challenge or a password sign-in that predates the account's last password change, which is now the answer a link, challenge or password that was never valid gets. There is nothing for a migration to rewrite and no tombstone. --> + + Once an account's password changes, the following, issued for that account before the change, no longer grant access after it: + + - An email-change link (any link the email-change flow begun at `POST /api/v1/auth/change-email` mails, at either of its steps and to either address: the confirmation sent to the current address, and the link sent to the new one) minted before the change answers at `GET /api/v1/auth/verify-email` exactly what a link that was never issued answers: `401 INVALID_TOKEN`, or the `error=INVALID_TOKEN` redirect to its callback. Its owner requests a new one. A link's issue time is whole seconds, so one minted in the same second as the change is refused too. + - A second-factor challenge opened by a password sign-in before the change answers what a challenge that was never opened answers. The person signs in again with the new password. + - A door that ends the account's sessions when it sets the password ends every session opened before its password write: both reset doors, `POST /api/v1/auth/change-password` with `revokeOtherSessions: true` (the session it installs is kept), and the one-step invitation acceptance (ahead of the session it opens). + - A password sign-in during which the account's password changes is refused with what a wrong password answers at that door, and leaves no session. + + The moment of the change is the last time the account's local password was written over, so every door that replaces a password counts, an administrator's `POST /api/v1/auth/admin/set-user-password` included. A check that cannot read the record refuses. Access issued after the change, and an account that never changed its local password, are untouched. No request, response or metadata shape changes. + + **BREAKING** for a client that opens an email-change link, completes a second-factor challenge, or finishes a password sign-in after the account's password changed underneath it: each is now refused as above, with the code a never-issued link, a never-opened challenge or a wrong password already answers, so a client that handles those answers needs no change. The fix for a person: request a new email-change link, or sign in again with the new password. +- b3247dd: fix(auth)!: a server outside development mode refuses a development seed credential, and `os user set-password` sets a new one on the server + + Clause-②: yes (narrowing) — narrowed: on a server whose `NODE_ENV` is not `development`, a password sign-in that submits the development seed password (`admin123`, or the value `OS_SEED_ADMIN_PASSWORD` sets) is refused on every account, and an account the development seed created opens no session while its stored password is still the one it was seeded with. Widened: the `os user set-password` command, the `sys_user.dev_seed_credential` column, and new `@objectstack/plugin-auth` exports `setOperatorPassword`, `findAccountByEmail`, `operatorPasswordRefusal`, `OPERATOR_PASSWORD_MIN_LENGTH`, `OPERATOR_PASSWORD_MAX_LENGTH` and the types `OperatorPasswordResetEngine`, `OperatorPasswordResetOutcome`, `OperatorPasswordResetRefusalReason`. + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No authorable key, accepted value or metadata type is added, removed or renamed; a system column is added; nothing stored is rewritten: the moved answer is whether a server outside development mode accepts a development seed credential at sign-in. The one-line fix for a refused account is in the body: set a new password on the server with os user set-password. --> + + **BREAKING** for a deployment that serves, outside development mode, a database `os dev` seeded, or any account whose password is the development seed password. Such a sign-in is refused. Set a new password on the server with `os user set-password <email>`; the refusal names the command. A server in development mode (`os dev`) is unchanged. + + **The rule: a server outside development mode never accepts a development seed credential.** Development mode is `NODE_ENV=development`, the condition the development seed itself runs under. The rule lives in the auth plugin, so `os start`, `os serve`, the image and a custom host all apply it. + + - **The seed password is refused at sign-in, on any account.** A password sign-in with the development seed password answers `403 PERMISSION_DENIED`, and its message names `os user set-password`. It is decided on the submitted password alone, before any account is read, so every address gets the same answer. This covers the seeded admin, the stack's `demoStaff`, any other account on that password, and a database seeded by an earlier release. + - **The accounts the development seed creates are marked.** `os dev`'s admin and each `demoStaff` account carry `sys_user.dev_seed_credential`: a one-way digest of the password hash the seed stored, never the password. The column is never returned on reads, and any password change stops it matching. + - **A marked account still on its seed password opens no session**, on any sign-in door (password, emailed link, one-time code, passkey, social or SSO, impersonation), whatever password it was seeded with, `os dev --admin-password` included. A password check never confirms that seed password: a password sign-in answers it as a wrong password. + - **No password change is offered at sign-in.** Whoever signed in first could perform it. The way out is the operator's reset on the server. + + **`os user set-password <email>`** sets the account's password in the project database. It reads the new password from a terminal prompt (twice, not echoed) or from standard input with `--password-stdin`, never from the command line, and takes `--database-url` like the other one-shot commands. It checks that the new password is not a development seed password and is 8 to 128 characters long; the deployment's own password policy and password history are not applied. It writes nothing on a refusal. It deletes the account's outstanding password-reset links and codes from the project database before the new password lands. It clears the account's development seed mark and any sign-in lock, records the change time, and ends every session and revokes every API key of the account, as an administrator's forced reset does. It asks for no password change at the next sign-in. It writes the project database only: a secondary storage the host configures for the auth service is out of its reach, for the reset links and the sessions alike. With one configured, run the command with the server stopped, or restart the server afterwards; a secondary storage kept outside the server process outlives a restart and is cleared of the account's entries by hand. + + **Not detected:** a database seeded before this release with a custom seed password carries no mark and no well-known password. Set a new password with `os user set-password` on each account it seeded before serving it outside development mode. + + **Ended by `os user set-password`, and at boot:** this release refuses the development seed password and every new session for a seeded account still on it. Sessions and API keys a seeded account was issued before the server left development mode are ended by `os user set-password`; run it on each seeded account before serving the database. In the same release, a boot outside development mode also retires them: see the note "a boot outside development mode retires what the development seed issued" (#36699). +- df8a1b8: fix(plugin-auth)!: a password reset disables the OAuth applications the account registered and revokes the SCIM credentials it minted + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is what a completed password reset ends: rows the account owns are written disabled or revoked by the doors administrators already use, so there is nothing for a migration to rewrite and no tombstone. --> + + **BREAKING** for an account that registered an OAuth application or minted a SCIM provisioning credential, and then has its password reset. + + - FROM: a completed password reset (the emailed link, the texted code, an administrator's `POST /api/v1/auth/admin/set-user-password` with `revokeSessionsAndKeys` on, and `os user set-password`) ended the account's sessions, API keys, linked sign-in accounts, authorized apps and device sign-ins. The OAuth applications the account registered (`sys_oauth_application.user_id`) stayed enabled, and the SCIM credentials it minted (`sys_scim_connection_credential.user_id`) stayed active. A self-service reset sent the account no notice. + - TO: the same resets also disable every OAuth application the account registered that is not disabled, as a platform administrator's Disable action does (the provider issues it no token, client-credentials tokens included, answers its tokens inactive at introspection, and the MCP endpoint refuses every token it holds), and revoke every SCIM credential the account minted that is still active, as Revoke Credential does, each revoke writing the `sys_audit_log` row Revoke Credential writes (`scim_credential_revoked`) naming the account for a self-service reset and the administrator for a forced one (`os user set-password` names no one and writes none). An application another account registered and a credential another administrator minted are not touched. The account's single sign-on providers and two-factor enrolment are kept. + - A completed self-service reset then mails the account `auth.password_reset_notice` (a new built-in template, in en-US, zh-CN, ja-JP and es-ES): how many API keys, linked sign-in accounts and authorized apps it ended, each application it disabled and each credential it revoked by name, and the single sign-on providers and second factor it kept. It is best-effort: a notice that cannot be sent never fails the reset. The forced resets send no notice and answer their requester instead. + - The administrator's forced reset reports the new counts on `data.revoked` (`ownedApps`, `scimCredentials`) and on its ledger row (`revokedOwnedApps`, `revokedScimCredentials`); `setOperatorPassword` answers `ownedAppsDisabled` and `scimCredentialsRevoked`, and `os user set-password` prints them. A disable or revoke that does not land answers the self-service requester an error, with no notice, and keeps the forced reset's `complete` false, as for the other rows; every other kind is still ended first, so an application that cannot be disabled leaves no API key, linked sign-in account or credential in place. + - A password change disables and revokes nothing. Its reminder, `auth.password_changed_notice`, now also lists the OAuth applications the account registered that are still enabled and the SCIM credentials it minted that are still active and not past their own expiry, and is sent when the account holds only those. + + The fix for an owner after a reset: ask a platform administrator to enable an application you still need again, and have a platform administrator mint a new SCIM credential for a connection whose credential was revoked. +- 75925e1: fix(plugin-auth)!: a password reset ends what the account added before it + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value, metadata type or export shape is added, removed, renamed or re-shaped, and no stored row is rewritten by a migration: what moves is what the auth doors end when a password is reset or first set, and the answer they give a link minted before it, which is now the answer a link that was never issued gets. The forced reset response gains two counts, its ledger row two keys and the operator outcome two fields. There is nothing for a migration to rewrite and no tombstone. --> + + A password reset ends what the account added before it, and a password change reminds the account what it keeps. + + - **A completed self-service reset** (the emailed link at `POST /api/v1/auth/reset-password`, the texted code at `POST /api/v1/auth/phone-number/reset-password`) now ends, beside the account's sessions, every API key the account owns that is not revoked, its `revoked` flag false or unset (revoked as one its owner revoked, so the owner may restore it from the API Keys list), and every sign-in account linked to it other than its password (a social, OAuth or single sign-on link; the provider may be linked again as it was the first time). Where the OAuth provider is enabled it also ends every app authorized to the account: the account's consents, refresh tokens and stored access tokens are deleted, so the app asks to be authorized again, and an MCP access token is refused on its next request. Where device authorization is enabled it ends a device sign-in approved for the account and not yet collected. This build offers no passkey sign-in, so there are no passkeys to end. A reset that does not complete ends nothing. A completed reset that cannot end one of these (a record it cannot read or write, a linked account a host's `account.delete.before` hook keeps, an account it cannot name) answers an error once the password is written; the password stands, its change time and password history are recorded all the same, and resetting again ends what remains. + - **A password change** (`POST /api/v1/auth/change-password`) ends none of these: an authorized app keeps its authorization and gets a new MCP access token with its refresh token, issued after the change. When the account still holds an API key that is neither revoked nor past its own expiry, a linked sign-in account or an authorized app afterwards, the account's address is sent the new built-in template `auth.password_changed_notice`, naming each (its variables are `apiKeyCount`, `apiKeys`, `signInAccountCount`, `signInAccounts`, `authorizedAppCount` and `authorizedApps`), through the email service. It is best-effort and never fails the change. plugin-email ships it in `en-US`, `zh-CN`, `ja-JP` and `es-ES`, so `BUILTIN_AUTH_TEMPLATES` grows from 32 rows to 36, and core's `PLATFORM_REQUESTED_BARE_NAMES_BY_TYPE.email_template` names it beside the other eight, so it resolves environment-wide and keeps one overriding package per deployment. + - **An administrator's forced reset** (`POST /api/v1/auth/admin/set-user-password` with `revokeSessionsAndKeys` on, the default) and the operator's `os user set-password` also unlink every linked sign-in account and end every app authorized to the account and every device sign-in approved for it, as the self-service reset does: where the OAuth provider is enabled, the account's consents, refresh tokens and stored access tokens are deleted; where device authorization is enabled, its pending device codes. The operator's command, which runs with no server, ends the ones the project database holds. Both now revoke a key whose `revoked` flag is unset as well. The forced reset's response reports the unlinks as `revoked.signInAccounts` and the apps as `revoked.authorizedApps` (its ledger row as `revokedSignInAccounts` and `revokedAuthorizedApps`), and the operator command prints both (`signInAccountsUnlinked`, `authorizedAppsEnded` on `setOperatorPassword`'s outcome). `revokeSessionsAndKeys: false` still ends nothing. + - **An account's first password counts as a password change when it is set onto an account that was already there**: through either reset door, an administrator's `set-user-password`, the one-step invitation acceptance of an existing account, or `POST /api/v1/auth/set-initial-password`. So links and challenges issued before it end, exactly as they do for any other password change. A password created in the same request as its account, as at a sign-up with a password, an administrator's create-user or a one-step invitation acceptance that creates the account, is still not a change, however long the steps between the two take. A password created outside such a request (written straight to the store), or before this release, counts as a change at its creation, so a verification link that signs in, mailed in the same second as that creation, answers as never issued and its owner requests a new one. + - **A verification link that signs its holder in** (on a deployment with `emailVerification.autoSignInAfterVerification: true`), **a magic link** and **a texted sign-in code**, issued before the account's password changed, now answer what a link or code that was never issued answers: `401 INVALID_TOKEN` or the `error=INVALID_TOKEN` redirect at `GET /api/v1/auth/verify-email`, the `error=INVALID_TOKEN` redirect with no session at `GET /api/v1/auth/magic-link/verify`, and `400 OTP_NOT_FOUND` with no session at `POST /api/v1/auth/phone-number/verify` (a code sent by `POST /api/v1/auth/phone-number/send-otp`). With auto sign-in off, a verification link still verifies the address. An MCP access token issued before the account's password changed (a reset, a change, or an administrator's `set-user-password`) is refused at the MCP endpoint, as a signed link is, in whole seconds; where the app's authorization still stands (a change, or `revokeSessionsAndKeys: false`), the app gets a new token with its refresh token. A link, code or token issued after the change works as usual. + + **BREAKING** for a client or integration that keeps using what a reset now ends: an API key the account owned before a completed password reset is refused as revoked (`403 API_KEY_REVOKED`), a linked sign-in account is no longer linked, an authorized app must be authorized again (after a forced reset with revocation on, too), a verification link that signs in, a magic link or a texted sign-in code issued before the account's password changed answers as a never-issued one, and an MCP access token issued before it is refused. The fix: mint a new key after the reset (or restore the old one from the API Keys list), link the provider again, authorize the app again, request a new link or code, or let the app refresh its token. +- 852270a: fix(plugin-auth): a guarded increment is one atomic conditional write + + Clause-②: no + Metadata-protocol: none + + The auth adapter's `incrementOne` now honours better-auth's contract for that method under concurrency: its `where` clause is both the selector and the guard, and the guarded write is one conditional update judged by the database. Each attempt reads the guarded row and writes the new values with a single predicate update whose condition is the caller's guard, the row id and every incremented counter at the value read; the affected count decides. A guard that no longer holds answers `null`, an unguarded counter is retried from the new value, and contention that outlasts the bounded attempts throws rather than answering `null`. + + The answer shapes are unchanged: the updated row, or `null` when the guard matches no row. The native `incrementOne` and `consumeOne` stay in place, so better-auth's own fallbacks are not used. +- 595e9cb: feat(security): `server.trustProxy` gains a trusted-network form, and the client address is read from the trusted hop + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: none — no skill under `skills/**` teaches `server.trustProxy` or forwarded headers; `docs/HARDENING.md`, `content/docs/deployment/production-readiness.mdx`, `content/docs/protocol/kernel/http-protocol.mdx` and `content/docs/permissions/authentication.mdx` gain the form in this change. + + `server.trustProxy` accepts a third form beside `false` and `true`: `{ networks, header }`, naming the reverse proxies a deployment runs. + + ```ts + defineStack({ + server: { + trustProxy: { networks: ['10.20.0.0/28', '2001:db8::10'] }, // header defaults to 'x-forwarded-for' + }, + }); + ``` + + - A forwarded header is believed only on a connection whose peer address is inside `networks`. From any other peer the client is the peer itself. + - `X-Forwarded-For` is read from the right: every entry inside `networks` is a hop of the deployment's own, and the first entry outside them is the client. When every entry is inside them, the leftmost is the client. An entry a trusted hop reports that is not an address establishes no address. + - `header: 'x-real-ip'` reads `X-Real-IP` instead. Under this form the header it does not name is never read. + - Each entry of `networks` is an address or a CIDR range, IPv4 or IPv6, read the way an `allowed_ip_ranges` entry is read. Every address inside `networks` is taken for a proxy hop, so list the proxies' own addresses, never a range clients connect from. A range of prefix length 0 is refused: it would stand in for `true`. + - `os validate` and `defineStack` refuse an entry not shaped like an address or a CIDR range, a prefix length of 0, an empty list, an unknown header and an unknown key. The runtime reads every entry in full at boot and refuses, naming the entry, what passes the shape but names no range (an address with a port, an IPv4-mapped prefix wider than the mapping), so a form is never read as "trust nobody". + - A malformed `server.trustProxy` object, which used to read as `false`, now fails the boot. + - A forwarded header sent as several lines is read as one list, under every form. + + Every consumer of the client-address rule reads the new form: the inbound rate limiter, the per-endpoint rate limiter, and the authentication plugin's IP allow-list, `last_login_ip` login audit and vendored-library limiter. `objectstack serve` hands the authored value to both `AuthPlugin` and the dispatcher as it is, in either form. A host that composes them itself passes the same value to `AuthPlugin({ trustProxy })` and `createDispatcherPlugin({ rateLimit: { trustProxy } })`; `@objectstack/plugin-auth/client-address` exports `readTrustProxy`, the one reading of the declaration, with `ClientAddressTrust` and `TrustedProxyNetworks`. + + `server.trustProxy: true` reads as before, and is sound only behind a proxy that overwrites `X-Forwarded-For` on every request, never one that appends to it. Under `true` the server now logs one `warn` per process the first time an `X-Forwarded-For` with more than one entry arrives, naming the trusted-network form. The IP allow-list's two operator warnings say the same. `true` is refused at boot from the next major; to move now, replace it with `{ networks: [...] }` listing your proxies' addresses or ranges. +- bc2aaf1: fix(plugin-auth)!: a disabled or removed account keeps nothing running in its name + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is what four identity doors end and refuse: the ban, the directory's deactivation and delete, and an administrator's delete end what a password reset ends of the account's registrations, and the AI service account doors refuse an owner whose account is disabled. No stored row, registry key or authored value needs rewriting, so there is nothing for a migration to change and no tombstone. --> + + **The rule.** An account that is disabled or removed, by any door, keeps nothing running in its name. What it is accountable for is suspended, what it registered is disabled, what it minted is revoked, and turning the account back on restores none of it. + + - **A platform administrator's ban** (`POST /api/v1/auth/admin/ban-user`) suspends every AI service account the person is accountable for, in every organization, with the reason `Accountable owner banned by an administrator`; disables every OAuth application the account registered; and revokes every SCIM provisioning credential it minted, each revoke recorded in `sys_audit_log` against the administrator. The answer reports it under `data.revoked` (`serviceAccounts`, `ownedApps`, `scimCredentials`, `failed`, `complete`), as the administrator's forced reset reports its own, and the ban's audit row carries the same counts. A step that cannot finish does not undo the ban: `complete` is `false`, and banning again ends what remains. + - **The directory** (SCIM `active: false`, `DELETE /Users/{id}`) disables the OAuth applications the person registered and revokes the SCIM credentials they minted, each revoke recorded against the connection (`actor` `svc:scim:CONNECTION_ID`). It never fails the SCIM request; a revoked credential is reported once in the server log at `error`, with the remedy. + - **An administrator's delete** (`POST /api/v1/auth/admin/remove-user`) ends the same registrations before the user is deleted, inside the delete's unit of work, and answers `{ success: true, revoked: { ownedApps, scimCredentials } }`. When one cannot be ended, the delete is refused `503 SERVICE_UNAVAILABLE` and nothing changes. + - **An AI service account runs only while its accountable owner's account is active.** `register` and `set-owner` refuse an owner who is banned or deactivated (`400 VALIDATION_FAILED` at `ownerId`), and `resume` refuses an account whose owner is (`409 RESOURCE_CONFLICT`), whichever door disabled them. + - An unban or a re-activation restores none of it: a platform administrator enables an application again, a new credential is minted, and an administrator resumes an AI service account once its owner's account is active again or a new owner is named. A timed ban leaves the accounts suspended after it expires. Single sign-on providers the account registered are kept, as a password reset keeps them. + + The Ban action's confirmation and its AI-facing description, and the Unban action's AI-facing description, now state these effects. + + **BREAKING** for: + + - a caller that names, as an AI service account's owner, a person whose account is banned or deactivated: the door refuses it. Name a person whose account is active. + - an operator who relied on a banned, deactivated or removed administrator's SCIM credential: it is revoked, and provisioning through its connection pauses until another administrator mints a new credential. Rotate a connection's credential to another administrator before removing the one who minted it. + - a client that read the ban's answer or the delete's answer as an exact shape: each gains `revoked`. +- 4e55e4e: fix(plugin-auth)!: deleting an SSO provider ends the sessions a sign-in through it opened and removes its projected grants + + Clause-②: no (narrowing) + Metadata-protocol: none + Skills-docs: none — no published skill teaches deleting an SSO provider, its sessions or its projected grants; the rule is documented in `content/docs/permissions/sso.mdx` ("Deleting an SSO provider") + + <!-- adr-0087: not-required (no-migration-prescription) No authorable key, value or export is added, removed, renamed or re-shaped. `sys_session` gains a system-managed, read-only column the platform writes itself, and what changes is which sessions and projected grants stay live once an SSO provider is gone: no stored metadata row, registry key or authored value moves, so there is nothing for a migration to rewrite. --> + + **BREAKING** for a session a sign-in through an SSO provider opened: deleting that provider ends the session, and its next request is answered as signed out. Sessions opened any other way are not touched. + + - **Sessions.** Each session an SSO sign-in opens records the provider it was signed in through, in the new read-only `sys_session.sso_provider_id` column. `POST /api/v1/auth/sso/delete-provider` revokes the live sessions that record the deleted provider (`revoke_reason: 'sso_provider_deleted'`). A session signed in any other way (a password, another provider) is left as it is, and a delete the vendor refuses ends nothing. + - **The answer.** A successful delete's `data` carries `revokedSessions`, the number of live sessions it ended, beside the other counts, and its `message` says so. + - **Projected grants.** A permission-set grant projected by an SSO provider's group mapping exists only while that provider does: the delete removes them, as before, and at every boot the grants whose `reason` names a provider with no `sys_sso_provider` row are removed too, as are live sessions recording such a provider. The boot does not remove the provider's group mappings (delete each with **Delete Mapping**, or `POST /api/v1/auth/admin/scim/delete-group-mapping`); it logs at `info` what it removed, and at `error`, with the remedy, when it could not. Several servers sweeping at once each remove what is left, and none reports the others' removals as a failure. +- 6927c3f: fix(plugin-auth)!: a self-serve social creation is admitted only with a provider-verified address under an address-based posture + + Clause-②: no (narrowing: a creation admitted today is refused; owes one CONTRACT_REVIEW_TIER review before the queue) + Metadata-protocol: none + Skills-docs: none — no skill under `skills/**` teaches the audience posture or a social-provider sign-in; `content/docs/permissions/authentication.mdx` and `content/docs/deployment/tenancy-modes.mdx` gain the rule in this change. + + <!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed, renamed or re-shaped. The moved answer is an account the admission gate does not create, so there is nothing stored for a migration to rewrite and no tombstone. --> + + **BREAKING** for a deployment under the `email_domain` audience posture, or under `open` while email verification is in force, where people create their account by signing in through a social provider that reports the address unverified. + + - Under `email_domain`, and under `open` while email verification is in force (the default there; only the deployment can declare it off), a new account through a social provider (`socialProviders`) is created only when the provider reports the address verified. Any other is refused `403 SELF_REGISTRATION_CLOSED` at the admission gate, as `invite_only` already refuses it: no account, no session, no membership. A browser sign-in redirects with `error=SELF_REGISTRATION_CLOSED`. + - A pending invitation addressed to that person does not admit the creation either, under both postures: the invitation is matched by the same address. + - The rule is told by the creation class, not by a list of providers, so a social provider added later is covered without being named. + + Unchanged: a social provider that reports the address verified, which is admitted and bound as before; identity providers an operator registers (`oidcProviders` entries and SSO providers); accounts an administrator creates, SCIM provisioning and accounts a boot command provisions; the first account of a fresh install; email-and-password, magic-link and email-OTP sign-ups; `open` with the deployment's email verification declared off; and the `invite_only` posture. + + What to do: a person refused this way verifies the address with the social provider and signs in again, or, where the deployment offers it, signs up with email and password and completes the verification mail. An invited person can also open the invitation mail's own link, which verifies the address and accepts in one step. +- ecd4b2b: fix(plugin-auth)!: SSO discovery connects only to addresses that are public at connect time + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped. What moves is runtime answers of the SSO doors: a read of an identity provider's OpenID Connect configuration is sent only to an address that is public when the connection is made, unless the deployment's trusted origins list its origin. `AuthManagerOptions` gains one optional member and the guarded fetch's init one optional member; nothing stored, no registry key and no authored value changes, so there is nothing for a migration to rewrite and no tombstone. --> + + **BREAKING** for an identity provider whose OpenID Connect host resolves to a private, loopback, link-local, cloud metadata or host-platform address (`168.63.129.16` included), or to any other non-public address, on an origin `OS_TRUSTED_ORIGINS` does not list, at the moment the server reads it: a registration (`POST /api/v1/auth/sso/register`, or the Register SSO Provider bridge) is refused `400 VALIDATION_FAILED` on `issuer` (or on `oidcConfig.discoveryEndpoint` when the registration names one), an update that turns "sign out of the company sign-in too" on is refused `400 VALIDATION_FAILED` on `signOutOfIdp`, and a sign-in's callback ends on the error page with `invalid_provider`. It ships `patch` because it is a non-protocol breaking change (AGENTS.md Post-Task Checklist step 3): no metadata author writes an SSO provider, so `Metadata-protocol` is `none`. + + SSO discovery connects only to addresses that are public at connect time. Every read the server makes of an identity provider (a registration's discovery document, the sign-out switch's read of that document on a registration or an update, a sign-in's discovery, and the token, key-set and userinfo reads of a sign-in's callback) is sent through the platform's outbound-request guard (`@objectstack/core/egress`): the connection resolves the host, judges every address by the platform's address classes, and connects to an address it judged, so the address judged is the address connected. A host that is not public is refused and nothing is sent to it, whatever an earlier lookup of the same name answered, and so is a name that does not resolve when the read connects. Only reads at the origins the provider's configuration names are judged (the registration's body, or the provider row the sign-in reads): every other request the server makes while answering, such as a datastore or a rate-limit store reached over HTTP, is sent as before. A registration still judges its discovery host before reading it, now by the same rule and the same address classes, an address literal included; a name that does not resolve there is left to the read, which refuses it. The origins a registration names stay trusted for that registration's discovery checks only, and `OS_EGRESS_ALLOWED_TARGETS` does not open SSO discovery. + + `@objectstack/core`: the guarded fetch's init takes fetch's `redirect` mode; `manual` answers a redirect response as it is and follows nothing, for a caller that refuses redirects itself. + + Fix for an operator whose identity provider runs on an internal network: list its origin in `OS_TRUSTED_ORIGINS`, and its reads are sent as before. +- 1e692d1: fix(plugin-auth)!: SSO discovery fetches only hosts that resolve to public addresses + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is one runtime answer of the SSO provider register door: a registration whose discovery document sits on a host that resolves to an address that is not public, on an origin the deployment's trusted origins do not list, is refused before anything is read. No stored row, registry key or authored value changes, so there is nothing for a migration to rewrite and no tombstone. --> + + **BREAKING** for an SSO provider registration (`POST /api/v1/auth/sso/register`, or the Register SSO Provider bridge `POST /api/v1/auth/admin/sso/register`) whose OpenID Connect discovery document sits on a host that resolves to a private, loopback, link-local or otherwise non-public address, on an origin `OS_TRUSTED_ORIGINS` does not list: it is refused `400 VALIDATION_FAILED` on `issuer` (or on `oidcConfig.discoveryEndpoint` when the registration names one), and the bridge answers `400 SSO_REGISTER_FAILED`. It ships `patch` because it is a non-protocol breaking change (AGENTS.md Post-Task Checklist step 3): no metadata author writes an SSO provider registration, so `Metadata-protocol` is `none`. + + SSO discovery fetches only hosts that resolve to public addresses. Before a registration reads its discovery document, the server resolves that document's host and every address must be public (the same predicate `@better-auth/sso` applies to the endpoints it reads at sign-in). The origins a registration names stay trusted for that registration's discovery checks, as before; that trust never stands in for this one. A registration that reads no discovery document (a SAML provider, or `skipDiscovery`) resolves nothing, and a registration with no session is answered `401` before any name is resolved. + + Fix for an operator whose identity provider runs on an internal network: list its origin in `OS_TRUSTED_ORIGINS`, and the registration reads its discovery document as before. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [a73edb3] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [d053c7d] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [c9b3f7a] +- Updated dependencies [01e6af6] +- Updated dependencies [8e46424] +- Updated dependencies [f5cfdd2] +- Updated dependencies [f4dbcc2] +- Updated dependencies [1950f07] +- Updated dependencies [9c29d73] +- Updated dependencies [f848e37] +- Updated dependencies [4026c44] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [96faf44] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [fd471d3] +- Updated dependencies [4a1919d] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [89ea9bf] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [eb9f8ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [c9b0a23] +- Updated dependencies [a8126d2] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [17ed9e7] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [a98c077] +- Updated dependencies [236c804] +- Updated dependencies [d71fe59] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [a5a5312] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6943af1] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [00ae570] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [0d4f190] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [0fc430a] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [0ab9b15] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [76bff41] +- Updated dependencies [6bc775f] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [24ff03c] +- Updated dependencies [24ff03c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [c8d4b90] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [9c57bd2] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [b3247dd] +- Updated dependencies [372ce7c] +- Updated dependencies [c059e60] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [bc2aaf1] +- Updated dependencies [4e55e4e] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/types@18.7.0 + - @objectstack/platform-objects@18.7.0 + - @objectstack/service-messaging@18.7.0 + - @objectstack/rest@18.7.0 + - @objectstack/core@18.7.0 + - @objectstack/plugin-hono-server@18.7.0 + ## 18.6.0 ### Minor Changes diff --git a/packages/plugins/plugin-auth/package.json b/packages/plugins/plugin-auth/package.json index 2464fa61a90..a8fcdbddb02 100644 --- a/packages/plugins/plugin-auth/package.json +++ b/packages/plugins/plugin-auth/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/plugin-auth", - "version": "18.6.0", + "version": "18.7.0", "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 f3a19feb58d..e46c61b3e48 100644 --- a/packages/plugins/plugin-dev/CHANGELOG.md +++ b/packages/plugins/plugin-dev/CHANGELOG.md @@ -1,5 +1,282 @@ # @objectstack/plugin-dev +## 18.7.0 + +### Patch Changes + +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [8c629b2] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [4c2d8d7] +- Updated dependencies [cc03bdc] +- Updated dependencies [ef39b2c] +- Updated dependencies [7878cf0] +- Updated dependencies [93fa4f9] +- Updated dependencies [a998964] +- Updated dependencies [1c05546] +- Updated dependencies [9fea316] +- Updated dependencies [cceb5c6] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [5f18b9b] +- Updated dependencies [e6e5224] +- Updated dependencies [94a2d8b] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [d053c7d] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [4db08d5] +- Updated dependencies [c9b3f7a] +- Updated dependencies [8e46424] +- Updated dependencies [d5ece3e] +- Updated dependencies [2d33205] +- Updated dependencies [78f3ab2] +- Updated dependencies [3c038eb] +- Updated dependencies [f5cfdd2] +- Updated dependencies [f4dbcc2] +- Updated dependencies [1950f07] +- Updated dependencies [d17adf5] +- Updated dependencies [9c29d73] +- Updated dependencies [f848e37] +- Updated dependencies [bf69cb4] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [96faf44] +- Updated dependencies [2df9691] +- Updated dependencies [961f474] +- Updated dependencies [a6cf988] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [9e65474] +- Updated dependencies [8596c80] +- Updated dependencies [ec227fc] +- Updated dependencies [8856afc] +- Updated dependencies [c480f33] +- Updated dependencies [9062756] +- Updated dependencies [65b67be] +- Updated dependencies [1caee8c] +- Updated dependencies [dbb2f68] +- Updated dependencies [cdb327f] +- Updated dependencies [5cd2b54] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [43639a6] +- Updated dependencies [467b13b] +- Updated dependencies [338ef35] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [c321914] +- Updated dependencies [61722e9] +- Updated dependencies [37f7814] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [6d0089c] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [4890cd0] +- Updated dependencies [c9aad65] +- Updated dependencies [53c9575] +- Updated dependencies [7eaa3f5] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [c59ee99] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [fcbebf2] +- Updated dependencies [c99156e] +- Updated dependencies [ea58563] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [50d6da8] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [7dd1a2f] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [c9b0a23] +- Updated dependencies [a8126d2] +- Updated dependencies [c4d6acc] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [ed33f8a] +- Updated dependencies [1c4db09] +- Updated dependencies [17ed9e7] +- Updated dependencies [cf7e443] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [4dbee9f] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [0e91213] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [b7fe94a] +- Updated dependencies [011635f] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [0d4f190] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [d24a502] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [ddceb22] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [76bff41] +- Updated dependencies [6bc775f] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [ac43336] +- Updated dependencies [a3ee862] +- Updated dependencies [7501d0c] +- Updated dependencies [756df0a] +- Updated dependencies [45ef94e] +- Updated dependencies [3f568c1] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [e17c2ae] +- Updated dependencies [24ff03c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [e343ab7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [6cfb782] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [9c57bd2] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [c448c61] +- Updated dependencies [92ab056] +- Updated dependencies [b3247dd] +- Updated dependencies [372ce7c] +- Updated dependencies [c059e60] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [d59d875] +- Updated dependencies [852270a] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [bc2aaf1] +- Updated dependencies [4e55e4e] +- Updated dependencies [64b278e] +- Updated dependencies [4101f1f] +- Updated dependencies [695b9db] +- Updated dependencies [d2bc1ff] +- Updated dependencies [6927c3f] +- Updated dependencies [ecd4b2b] +- Updated dependencies [1e692d1] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/runtime@18.7.0 + - @objectstack/objectql@18.7.0 + - @objectstack/plugin-auth@18.7.0 + - @objectstack/plugin-security@18.7.0 + - @objectstack/types@18.7.0 + - @objectstack/service-storage@18.7.0 + - @objectstack/rest@18.7.0 + - @objectstack/core@18.7.0 + - @objectstack/plugin-hono-server@18.7.0 + - @objectstack/service-realtime@18.7.0 + - @objectstack/account@18.7.0 + - @objectstack/setup@18.7.0 + - @objectstack/driver-memory@18.7.0 + - @objectstack/service-i18n@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/plugins/plugin-dev/package.json b/packages/plugins/plugin-dev/package.json index 86275e15900..1a316a42f26 100644 --- a/packages/plugins/plugin-dev/package.json +++ b/packages/plugins/plugin-dev/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/plugin-dev", - "version": "18.6.0", + "version": "18.7.0", "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 d1ffedee0b0..e33d497e8d9 100644 --- a/packages/plugins/plugin-email/CHANGELOG.md +++ b/packages/plugins/plugin-email/CHANGELOG.md @@ -1,5 +1,261 @@ # @objectstack/plugin-email +## 18.7.0 + +### Patch Changes + +- df8a1b8: fix(plugin-auth)!: a password reset disables the OAuth applications the account registered and revokes the SCIM credentials it minted + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is what a completed password reset ends: rows the account owns are written disabled or revoked by the doors administrators already use, so there is nothing for a migration to rewrite and no tombstone. --> + + **BREAKING** for an account that registered an OAuth application or minted a SCIM provisioning credential, and then has its password reset. + + - FROM: a completed password reset (the emailed link, the texted code, an administrator's `POST /api/v1/auth/admin/set-user-password` with `revokeSessionsAndKeys` on, and `os user set-password`) ended the account's sessions, API keys, linked sign-in accounts, authorized apps and device sign-ins. The OAuth applications the account registered (`sys_oauth_application.user_id`) stayed enabled, and the SCIM credentials it minted (`sys_scim_connection_credential.user_id`) stayed active. A self-service reset sent the account no notice. + - TO: the same resets also disable every OAuth application the account registered that is not disabled, as a platform administrator's Disable action does (the provider issues it no token, client-credentials tokens included, answers its tokens inactive at introspection, and the MCP endpoint refuses every token it holds), and revoke every SCIM credential the account minted that is still active, as Revoke Credential does, each revoke writing the `sys_audit_log` row Revoke Credential writes (`scim_credential_revoked`) naming the account for a self-service reset and the administrator for a forced one (`os user set-password` names no one and writes none). An application another account registered and a credential another administrator minted are not touched. The account's single sign-on providers and two-factor enrolment are kept. + - A completed self-service reset then mails the account `auth.password_reset_notice` (a new built-in template, in en-US, zh-CN, ja-JP and es-ES): how many API keys, linked sign-in accounts and authorized apps it ended, each application it disabled and each credential it revoked by name, and the single sign-on providers and second factor it kept. It is best-effort: a notice that cannot be sent never fails the reset. The forced resets send no notice and answer their requester instead. + - The administrator's forced reset reports the new counts on `data.revoked` (`ownedApps`, `scimCredentials`) and on its ledger row (`revokedOwnedApps`, `revokedScimCredentials`); `setOperatorPassword` answers `ownedAppsDisabled` and `scimCredentialsRevoked`, and `os user set-password` prints them. A disable or revoke that does not land answers the self-service requester an error, with no notice, and keeps the forced reset's `complete` false, as for the other rows; every other kind is still ended first, so an application that cannot be disabled leaves no API key, linked sign-in account or credential in place. + - A password change disables and revokes nothing. Its reminder, `auth.password_changed_notice`, now also lists the OAuth applications the account registered that are still enabled and the SCIM credentials it minted that are still active and not past their own expiry, and is sent when the account holds only those. + + The fix for an owner after a reset: ask a platform administrator to enable an application you still need again, and have a platform administrator mint a new SCIM credential for a connection whose credential was revoked. +- 75925e1: fix(plugin-auth)!: a password reset ends what the account added before it + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value, metadata type or export shape is added, removed, renamed or re-shaped, and no stored row is rewritten by a migration: what moves is what the auth doors end when a password is reset or first set, and the answer they give a link minted before it, which is now the answer a link that was never issued gets. The forced reset response gains two counts, its ledger row two keys and the operator outcome two fields. There is nothing for a migration to rewrite and no tombstone. --> + + A password reset ends what the account added before it, and a password change reminds the account what it keeps. + + - **A completed self-service reset** (the emailed link at `POST /api/v1/auth/reset-password`, the texted code at `POST /api/v1/auth/phone-number/reset-password`) now ends, beside the account's sessions, every API key the account owns that is not revoked, its `revoked` flag false or unset (revoked as one its owner revoked, so the owner may restore it from the API Keys list), and every sign-in account linked to it other than its password (a social, OAuth or single sign-on link; the provider may be linked again as it was the first time). Where the OAuth provider is enabled it also ends every app authorized to the account: the account's consents, refresh tokens and stored access tokens are deleted, so the app asks to be authorized again, and an MCP access token is refused on its next request. Where device authorization is enabled it ends a device sign-in approved for the account and not yet collected. This build offers no passkey sign-in, so there are no passkeys to end. A reset that does not complete ends nothing. A completed reset that cannot end one of these (a record it cannot read or write, a linked account a host's `account.delete.before` hook keeps, an account it cannot name) answers an error once the password is written; the password stands, its change time and password history are recorded all the same, and resetting again ends what remains. + - **A password change** (`POST /api/v1/auth/change-password`) ends none of these: an authorized app keeps its authorization and gets a new MCP access token with its refresh token, issued after the change. When the account still holds an API key that is neither revoked nor past its own expiry, a linked sign-in account or an authorized app afterwards, the account's address is sent the new built-in template `auth.password_changed_notice`, naming each (its variables are `apiKeyCount`, `apiKeys`, `signInAccountCount`, `signInAccounts`, `authorizedAppCount` and `authorizedApps`), through the email service. It is best-effort and never fails the change. plugin-email ships it in `en-US`, `zh-CN`, `ja-JP` and `es-ES`, so `BUILTIN_AUTH_TEMPLATES` grows from 32 rows to 36, and core's `PLATFORM_REQUESTED_BARE_NAMES_BY_TYPE.email_template` names it beside the other eight, so it resolves environment-wide and keeps one overriding package per deployment. + - **An administrator's forced reset** (`POST /api/v1/auth/admin/set-user-password` with `revokeSessionsAndKeys` on, the default) and the operator's `os user set-password` also unlink every linked sign-in account and end every app authorized to the account and every device sign-in approved for it, as the self-service reset does: where the OAuth provider is enabled, the account's consents, refresh tokens and stored access tokens are deleted; where device authorization is enabled, its pending device codes. The operator's command, which runs with no server, ends the ones the project database holds. Both now revoke a key whose `revoked` flag is unset as well. The forced reset's response reports the unlinks as `revoked.signInAccounts` and the apps as `revoked.authorizedApps` (its ledger row as `revokedSignInAccounts` and `revokedAuthorizedApps`), and the operator command prints both (`signInAccountsUnlinked`, `authorizedAppsEnded` on `setOperatorPassword`'s outcome). `revokeSessionsAndKeys: false` still ends nothing. + - **An account's first password counts as a password change when it is set onto an account that was already there**: through either reset door, an administrator's `set-user-password`, the one-step invitation acceptance of an existing account, or `POST /api/v1/auth/set-initial-password`. So links and challenges issued before it end, exactly as they do for any other password change. A password created in the same request as its account, as at a sign-up with a password, an administrator's create-user or a one-step invitation acceptance that creates the account, is still not a change, however long the steps between the two take. A password created outside such a request (written straight to the store), or before this release, counts as a change at its creation, so a verification link that signs in, mailed in the same second as that creation, answers as never issued and its owner requests a new one. + - **A verification link that signs its holder in** (on a deployment with `emailVerification.autoSignInAfterVerification: true`), **a magic link** and **a texted sign-in code**, issued before the account's password changed, now answer what a link or code that was never issued answers: `401 INVALID_TOKEN` or the `error=INVALID_TOKEN` redirect at `GET /api/v1/auth/verify-email`, the `error=INVALID_TOKEN` redirect with no session at `GET /api/v1/auth/magic-link/verify`, and `400 OTP_NOT_FOUND` with no session at `POST /api/v1/auth/phone-number/verify` (a code sent by `POST /api/v1/auth/phone-number/send-otp`). With auto sign-in off, a verification link still verifies the address. An MCP access token issued before the account's password changed (a reset, a change, or an administrator's `set-user-password`) is refused at the MCP endpoint, as a signed link is, in whole seconds; where the app's authorization still stands (a change, or `revokeSessionsAndKeys: false`), the app gets a new token with its refresh token. A link, code or token issued after the change works as usual. + + **BREAKING** for a client or integration that keeps using what a reset now ends: an API key the account owned before a completed password reset is refused as revoked (`403 API_KEY_REVOKED`), a linked sign-in account is no longer linked, an authorized app must be authorized again (after a forced reset with revocation on, too), a verification link that signs in, a magic link or a texted sign-in code issued before the account's password changed answers as a never-issued one, and an MCP access token issued before it is refused. The fix: mint a new key after the reset (or restore the old one from the API Keys list), link the provider again, authorize the app again, request a new link or code, or let the app refresh its token. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [cc03bdc] +- Updated dependencies [ef39b2c] +- Updated dependencies [a73edb3] +- Updated dependencies [93fa4f9] +- Updated dependencies [1c05546] +- Updated dependencies [9fea316] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [e6e5224] +- Updated dependencies [94a2d8b] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [d053c7d] +- Updated dependencies [8b550f8] +- Updated dependencies [c809deb] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [4db08d5] +- Updated dependencies [c9b3f7a] +- Updated dependencies [01e6af6] +- Updated dependencies [8e46424] +- Updated dependencies [d5ece3e] +- Updated dependencies [f4dbcc2] +- Updated dependencies [d17adf5] +- Updated dependencies [9c29d73] +- Updated dependencies [bf69cb4] +- Updated dependencies [4026c44] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [a6cf988] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [c480f33] +- Updated dependencies [9062756] +- Updated dependencies [65b67be] +- Updated dependencies [1caee8c] +- Updated dependencies [cdb327f] +- Updated dependencies [5cd2b54] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [43639a6] +- Updated dependencies [b863d2b] +- Updated dependencies [89ea9bf] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [c321914] +- Updated dependencies [61722e9] +- Updated dependencies [37f7814] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [6d0089c] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [4890cd0] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [c59ee99] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [50d6da8] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [7dd1a2f] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [17ed9e7] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [a98c077] +- Updated dependencies [236c804] +- Updated dependencies [d71fe59] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [a5a5312] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6943af1] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [756df0a] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [24ff03c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [c8d4b90] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [b3247dd] +- Updated dependencies [372ce7c] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [bc2aaf1] +- Updated dependencies [4e55e4e] +- Updated dependencies [64b278e] +- Updated dependencies [4101f1f] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/objectql@18.7.0 + - @objectstack/platform-objects@18.7.0 + - @objectstack/formula@18.7.0 + - @objectstack/core@18.7.0 + ## 18.6.0 ### Minor Changes diff --git a/packages/plugins/plugin-email/package.json b/packages/plugins/plugin-email/package.json index f13b8505d56..1e3ad58748e 100644 --- a/packages/plugins/plugin-email/package.json +++ b/packages/plugins/plugin-email/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/plugin-email", - "version": "18.6.0", + "version": "18.7.0", "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 17393cc5808..f05a845b605 100644 --- a/packages/plugins/plugin-hono-server/CHANGELOG.md +++ b/packages/plugins/plugin-hono-server/CHANGELOG.md @@ -1,5 +1,205 @@ # @objectstack/plugin-hono-server +## 18.7.0 + +### Patch Changes + +- 7c122ff: fix(core): a signed-in request reads its session once with the inbound rate limiter armed or an ADR-0069 gate active on REST + + Clause-②: no + Metadata-protocol: none + + With `server.security.rateLimit` armed, or on the REST door while a session gate is active, one signed-in request read its session (a `sys_session` lookup by token and a `sys_user` lookup by id) two or three times; it now reads it once, on the dispatcher and REST alike. Who is admitted or refused, and with which status, does not change. + + The inbound rate limiter, the identity step of every door (`resolveRequestExecutionContext`) and REST's `reread-when-active` gate now read the session through one request-scoped carrier (`openRequestSessionRead` / `withRequestSessionRead` / `withoutRequestSessionRead` / `readRequestSession`, exported from `@objectstack/core`). The Hono transport runs its middleware chain in a scope and hands that scope to a route it registered only when every middleware between the two is a whole-server one; a route behind a path-scoped middleware (plugin-auth's door under the auth base path, where the organization's IP list is judged on the read) and a raw-app route read for themselves, and `resolveRequestExecutionContext` opens a scope for its own call where none is open. A read is handed to a later reader of the same request only while no write has landed on the data engine since it was read and the session has not expired; a read that throws is never handed on, so each reader keeps its own outage answer. Nothing is kept across requests. The Hono middleware seam now hands a middleware the same headers a route receives, `host` backfilled from the URL included. +- cbc06ff: fix(hosted): deleting a personal view and removing or renaming an attachment work on a kernel with no `http.server` (a hosted tenant kernel) instead of answering 404 + + Clause-②: yes (widening) + Metadata-protocol: none + + `DELETE /api/v1/personal-views/:id` (plugin-auth) and `DELETE` / `PATCH /api/v1/attachments/:id` (service-storage) were mounted only on the kernel's `http.server`. A hosted tenant kernel owns no socket and registers no `http.server` (and runs `AuthPlugin` with `registerRoutes: false`), so the host's `createHonoApp` catch-all handed each request to the runtime dispatcher, which had no domain for them and answered `404 ROUTE_NOT_FOUND`: a member could not delete a personal view, or remove or rename an attachment, there. + + - `@objectstack/spec/contracts` declares `IPersonalViewDoorsService` (one optional, transport-neutral member, `handlePersonalViewDoor(request: Request): Promise<Response>`) and types the new `personal-views` service slot with it, and declares `IAttachmentDoorsService` (`handleAttachmentDoor`), which the existing `file-attachments` service implements beside `IFileAttachmentService`. A service without the member still satisfies either contract. + - `AuthPlugin` registers the `personal-views` service in `init()`, whatever `registerRoutes` says, and `StorageServicePlugin`'s `file-attachments` service gains `handleAttachmentDoor`. Each member runs the same registration over the same dependencies the `http.server` mount runs, on a private route table that never listens, so every answer is the mount's own. The `http.server` mounts are unchanged, and no path is mounted twice. The `personal-views` service name is now taken: a composition that registers its own `personal-views` service alongside `AuthPlugin` fails to boot with a duplicate-service error. `@objectstack/plugin-auth` and `@objectstack/service-storage` now depend on `@objectstack/plugin-hono-server` at runtime (the private table is a `HonoHttpServer`; plugin-auth previously listed it as a dev dependency only). + - `@objectstack/plugin-hono-server` exports `createDoorTableMember(routes, mount)`, the private never-listening table both members are built on, and `matchDoorTableRoute`. + - The runtime dispatcher gains `/personal-views` and `/attachments` domains that claim exactly the door shapes and forward the request, body unread, to the REQUEST kernel's member (never the host kernel's scoped fallback). Every other shape under those prefixes keeps the dispatcher's `404 ROUTE_NOT_FOUND`. With no slot, or one without the member, the doors answer `501 NOT_IMPLEMENTED` naming the package that registers it. The doors stay behind the dispatcher's authentication and project-membership gates. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [9c57bd2] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [c059e60] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/types@18.7.0 + - @objectstack/core@18.7.0 + - @objectstack/observability@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/plugins/plugin-hono-server/package.json b/packages/plugins/plugin-hono-server/package.json index 85307753e66..db0035f401b 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": "18.6.0", + "version": "18.7.0", "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 3528d4772c3..21f5f9fb5e5 100644 --- a/packages/plugins/plugin-pinyin-search/CHANGELOG.md +++ b/packages/plugins/plugin-pinyin-search/CHANGELOG.md @@ -1,5 +1,214 @@ # @objectstack/plugin-pinyin-search +## 18.7.0 + +### Patch Changes + +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [cc03bdc] +- Updated dependencies [ef39b2c] +- Updated dependencies [93fa4f9] +- Updated dependencies [1c05546] +- Updated dependencies [9fea316] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [e6e5224] +- Updated dependencies [94a2d8b] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [4db08d5] +- Updated dependencies [8e46424] +- Updated dependencies [d5ece3e] +- Updated dependencies [f4dbcc2] +- Updated dependencies [d17adf5] +- Updated dependencies [9c29d73] +- Updated dependencies [bf69cb4] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [a6cf988] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [c480f33] +- Updated dependencies [9062756] +- Updated dependencies [65b67be] +- Updated dependencies [1caee8c] +- Updated dependencies [cdb327f] +- Updated dependencies [5cd2b54] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [43639a6] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [c321914] +- Updated dependencies [61722e9] +- Updated dependencies [37f7814] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [6d0089c] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [4890cd0] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [c59ee99] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [50d6da8] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [7dd1a2f] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [17ed9e7] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [756df0a] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [9c57bd2] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [c059e60] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [4101f1f] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/objectql@18.7.0 + - @objectstack/types@18.7.0 + - @objectstack/core@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/plugins/plugin-pinyin-search/package.json b/packages/plugins/plugin-pinyin-search/package.json index b92e029c21c..f724ebeac4b 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": "18.6.0", + "version": "18.7.0", "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 e8a8aecd0da..3d8cd5f598e 100644 --- a/packages/plugins/plugin-security/CHANGELOG.md +++ b/packages/plugins/plugin-security/CHANGELOG.md @@ -1,5 +1,564 @@ # @objectstack/plugin-security +## 18.7.0 + +### Minor Changes + +- e114324: feat(units): a number field declares its unit with `unitConfig`, and the engine checks every unit code it stores + + Clause-②: yes + Metadata-protocol: added + + ADR-0158 R1, the membership card (#35489). + + **`unitConfig` on a field** (`@objectstack/spec`, `UnitConfigSchema`): + + - `{ unitMode: 'fixed', unit: 'KGM' }` on a `number`: the quantity is always in one standard UN/ECE Recommendation 20 unit, checked at parse against the standard unit table (exact uppercase; `C62` and `EA` are answered with the piece, `H87`). + - `{ unitMode: 'record', unitField: 'uom', unitDimension?: 'mass' }` on a `number`: each record names its unit by code in the sibling `text` field `unitField` names. The object refuses a pointer into nothing, into a non-`text` field, through a parent (`PARENT_FIELD.UNIT_FIELD` is reserved: a child cannot follow its parent's unit yet), or into a field carrying its own marker, and two quantities sharing one unit field with different `unitDimension` values. + - `{ unitMode: 'code', unitDimension?: 'count' }` on a `text`: a field holding a unit code with no quantity beside it, such as a material's base unit (Open item 8, ruled A). It is a unit marker, not a value domain, and is refused beside a `valueDomain`. + - `unitMode` is required and has no default. The key is refused on every other field type (`currency`, `formula`, `summary` included). A quantity stays a bare number, and needs no `scale`. + + **The write check** (`@objectstack/objectql`): at every insert, by-id update, predicate update and `validate()` preview, a unit code the row stores must be a standard code or one of the organization's own non-retired units (`sys_unit`), in exact uppercase and of the declared `unitDimension`, and a quantity may not stand beside a blank code. The row image is judged whenever the write touches the quantity or its unit field (Open item 9). Refusals, each 400, registered in the error-code ledger: `ERR_UNIT_CODE_REQUIRED`, `ERR_UNIT_CODE_UNKNOWN`, `ERR_UNIT_CODE_RETIRED`, `ERR_UNIT_DIMENSION_MISMATCH`. A row resting on a code that is no longer a member stays editable in its other fields; a quantity edit beside it is refused until the row moves to a member unit. + + **A unit is retired, never deleted**: the engine refuses a delete of a `sys_unit` row for every caller, a system writer and an automation run included, by id and batched (405 `ERR_UNIT_DELETE_REFUSED`), and `organization_admin` names `sys_unit` explicitly with no delete (`@objectstack/plugin-security`). + + `@objectstack/metadata-core` and `@objectstack/driver-sql` classify the new field key (field-level security keeps it; the DDL does not read it). `@objectstack/platform-objects`: the `sys_unit` docblock names its readers. +- 78437e2: feat(security): the read-only `viewAllFields` object-permission bit + + Clause-②: yes (widening) — @objectstack/spec adds the optional `viewAllFields` key to `ObjectPermissionSchema` (and so to the wire `EffectiveObjectPermissionSchema`) and the optional `viewAllFields` column to `AccessMatrixEntrySchema`; nothing removed or narrowed + Metadata-protocol: added + + A permission set can now say "this role reads every field of this object" on its own: `objects: { crm_account: { allowRead: true, viewAllFields: true } }`. The bit casts a read vote on every field of the object, fields added later included, and never an edit vote: an edit still comes from the default (a field no set names follows the object grant) or from an explicit `editable: true` field row. Inside one set the specific row beats the general bit, so a set's own `readable: false` row on a field keeps that field hidden for that set. It is allowed on the `'*'` wildcard entry. It is a field vote only: it grants no object access and widens no record, so pair it with `allowRead`, and use `viewAllRecords` for records. + + Nothing behaves differently yet. Today `viewAllRecords` and `modifyAllRecords` also vote on every field, so on a set that carries either bit the new key duplicates a vote already cast. The built-in `organization_admin` set carries it on its wildcard entry, so its holders keep their field visibility when a later major release stops those two bits voting on fields; the wall-less `organization_admin_no_bypass` variant drops it together with the two record bits, as it never held that field vote. + + Every reader of the super-user bits reads the new one too: + + - both field merges (`PermissionEvaluator.getFieldPermissions` and the `fields` slot of `/auth/me/permissions`) apply it through the one shared vote, `superuserFieldVote` in `@objectstack/core`; + - the agent ceiling clears it on every object entry, as it clears View All and Modify All; + - an organization administrator cannot distribute a set whose `'*'` entry carries it (the organization boundary, condition (a)); + - a set carrying it on any object is high-privilege, so it is not bound to the `everyone` or `guest` audience; + - the access-matrix snapshot gains a `viewAllFields` column, written only when `true`, so the `access-matrix.json` of a stack that does not author the bit is byte-identical, and the semantic diff names it ("gains View All Fields on …"). + +### Patch Changes + +- 7a3f86c: fix: four refusals say what the author can act on — the clone control by its console label, an empty or short unknown key, and an unknown CLI command + + Clause-②: no + Metadata-protocol: none + + Nothing new is accepted or refused; only the words change. + + - **Packaged permission sets.** The `ITEM_LOCKED` save refusal and the `NOT_OVERRIDABLE` lock refusals sent the admin to a "Clone" action. Studio's Access pillar and Setup label that control "New similar" ("新建类似" in a Chinese session), so the diagnostic and both end-user messages, in every language they ship, now name it that way. + - **Unknown keys.** A refusal naming an empty key printed it as empty backticks; it now says "an empty key (`""`)" and offers no rename. On a key of five characters or fewer, a "Did you mean" rename is offered only when the declared key is one edit away, counting a swap of two adjacent letters as one: `lable` → `label` is still offered, while a removed `aria` is no longer answered with `areas`. + - **CLI.** `os <topic> <unknown>` and `os <unknown>` still exit 2 without running anything, and now name the command as typed (`command environments frobnicate not found`) and end with the help that lists the real ones (`See more help with \`os environments --help\``). +- 52a2398: fix(plugin-sharing)!: every share grant counts; the sharing scopes carry the share-grant leaf instead of a list capped at 5,000 grants (ADR-0155 plan step 6) + + Clause-②: yes (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no stored row, registry key or authored value changes. What moves is how the sharing scopes count share grants (every grant, through a subquery, where a read of at most 5,000 used to stand), that grants stop counting on objects whose storage cannot evaluate that subquery, and that a host registering a narrowing of sys_record_share reads by name no longer boots. There is nothing for a migration to rewrite and no tombstone; each host-side remedy is one line, below. --> + + **What was wrong.** The read scope of a sharing-scoped object read the caller's share grants into an id list first, at most 5,000 of them, and dropped the rest without a word: a member holding 6,000 grants on one object saw 6,000 rows of 7,000 (1,000 owned plus 5,000 of the 6,000 shared), and a GET of an unread grant answered 404. The predicate-update scope had the same cap on edit-level grants. + + **Now.** `buildReadFilter` and `buildWriteFilter` carry the share arm as the share-grant leaf, `{ id: { $in: SharedRecordIds.read(object, user) } }` (the update scope carries `.write(object, user, ['edit', 'full'])`), which the SQL driver compiles as a subquery over `sys_record_share` inside the same statement. Every grant counts, at any number; no grant is read into memory and nothing binds one parameter per grant. The pending-approval ids stand as a disjunct of their own. `delete` scopes to the owner match alone, as before. + + **BREAKING**, in three places, each a tightening that lands here, where it takes effect: + + - **Share grants stop counting on objects whose storage cannot evaluate them** (ADR-0155 R2). An object stored on another datasource than `sys_record_share`, or by a driver that does not evaluate the leaf (`supports.fixedReadLeaves` without `SharedRecordIds`: today the MongoDB, in-memory and OData drivers), keeps its owner, queue and pending-approval access unchanged, but its share rows are no longer consulted: no scope carries the share arm, the edit gate reads no grant, and a new grant or a new sharing rule on it is refused `SHARING_NOT_ENABLED` (422 at the REST doors). The boot names, once at `warn`, every such object that holds `sys_record_share` rows, with the reason. `security/explain` reports each share on such a record as evaluated and not granting, and says why. + The fix for a host: to share such an object's records again, store it on the datasource of `sys_record_share`, on a driver that evaluates share grants (the SQL drivers do). + - **A narrowing of `sys_record_share` reads registered BY NAME refuses the boot** (ADR-0155 R1 at boot, D4). A host that registers an object-scoped middleware, or a `beforeFind` / `afterFind` hook, for `sys_record_share` (an opt-in of that table into plugin-audit's record-view auditing included) no longer starts: the boot fails at `kernel:bootstrapped`, before any request is served, with `INTERNAL_ERROR` / 500 naming the registration. No registration is exempt, one whose handler skips system reads included. A registration made after boot is refused at read by the engine, with the same envelope. + The fix for a host: remove that registration for `sys_record_share`. A host that opted the table into record-view auditing gives up that auditing of share rows. + - **A narrowing that names NO object is not run on the share arm.** A middleware or a find hook registered for no object, or for `'*'`, ran on today's grant read, which went through the engine as a system read. The share arm now makes no engine read of `sys_record_share`, so such a registration does not run on it, and nothing refuses, reports or logs that. On a host where such a registration changes a system read of `sys_record_share`, the share arm's rows can differ from what they were. This paragraph is the telling (ADR-0155 D4's boundary; `ISharingService`'s contract says the same). The repository's own registrations of that kind were read before this change, and none changes that read. + + **Preconditions this step inherits from the PostgreSQL key-type change** (ADR-0155 O2): + + 1. On PostgreSQL, a statement holding the leaf whose catalog read fails, or finds no such relation, answers `INTERNAL_ERROR` / 500, where an uncast statement would have run. + 2. Each transaction pays one savepoint and one catalog read per table it compares a leaf against, when the table has no pooled reading. + 3. A failed catalog read inside that savepoint rolls back the caller's concurrent statements on the same transaction. The sharing plugin issues no statement of its own that carries the leaf, and none of its reads runs inside a caller's transaction or concurrently with another on one: its own reads are sequential system reads. + + **What it costs, quoted no wider than ADR-0155 quotes it.** For the scope statements alone (an account page, its total and the two grant reads), at 1M rows and 5,000 grants, the id-list scope against the subquery scope read PostgreSQL 21.6 → 7.0 ms and SQLite 18.3 → 12.1 ms. It is not a whole-request figure. For a caller holding no grant, whose scope was the bare owner match and is now an `$or` with the subquery, SQLite still serves the page and its total from the owner index; PostgreSQL 16 serves the page as before but plans the total as a sequential scan, which grows with the table: measured, that caller's total went from 1.46 to 7.29 ms at 100k rows and from 7.88 to 42.21 ms at 1M, the page flat at both. SQLite keeps the owner index. Follow-up #36034 measures `id = ANY(ARRAY(SELECT …))` against the subquery for that caller on PostgreSQL. +- 93fa4f9: fix(i18n)!: a refusal names fields, options and objects in the declared `sourceLocale` as authored + + Clause-②: yes (narrowing) — `ValidationMessageContext.labelTranslation` is a new optional member (a widening), and `ValidationMessageContext.translate` no longer translates the labels a refusal names (a narrowing): a direct caller of `validateRecord`, `validateInsertValues` or `evaluateValidationRules` that passes `messages: { locale, objectName, translate }` now gets the declared labels until it also passes `labelTranslation`. + Metadata-protocol: none + Skills-docs: follow-up owed — skills/objectstack-i18n/SKILL.md, evals + + <!-- adr-0087: not-required (runtime-interface-only packages/objectql/src/validation/record-validator.ts#ValidationMessageContext) the narrowed behaviour belongs to an input member of a runtime TypeScript interface, the messages option of the published validators; no packages/spec schema, registered node type, stored row or ADR-0087 conversion surface names it, and no key, value or default a metadata author can write changes, so there is nothing for objectstack migrate meta to rewrite --> + + **BREAKING** for a TypeScript caller of `validateRecord`, `validateInsertValues` or `evaluateValidationRules` (`@objectstack/objectql`) that passes its own `messages`. Engine writes are not affected: the engine builds `labelTranslation` itself from the i18n service. + + The labels a write refusal names are now resolved the way `GET /meta` serves them: `translateObject` over the deployment's translations, with the request's locale, the declared fallback chain and the authored language (`i18n.sourceLocale`, else `defaultLocale`). They are no longer looked up through `II18nService.t()`. Before this, an app authored in English that defaults its users to Chinese (`sourceLocale: 'en'`, `defaultLocale: 'zh-CN'`) answered an `en` request with the Chinese row in its validation, duplicate-record, delete-restricted and restore refusals, and in the security layer's master-detail and field-write `userMessage`. `/meta` answered the same request with the English label. + + This covers a field label, a choice option label (field entry, then the shared picklist's), an object label, the master object named by the master-detail write gate and the fields named by the field-write gate. Message templates and authored rule messages still go through `t()`. + + What follows from it: + + - In the declared `sourceLocale`, a refusal names labels exactly as declared. In every other locale it follows the same chain `/meta` does. + - The labels come from `getLocales()` and `getTranslations()`. An i18n double that implements only `t()` no longer translates labels and leaves the declared ones in place, as `/meta` already did. + - On the in-memory i18n fallback (`@objectstack/core`), which reports no `getFallbackLocale()`, a request in a locale with no bundle now gets the declared label, as `/meta` does. Before, it got the default locale's row. + - A platform-injected system field (`owner_id`, `created_at`, …) that keeps its English default label is named by the built-in translation of that label, as `/meta` names it. + - The security layer's labels now negotiate the request locale the way `/meta` does, so a `zh-TW` request reads the `zh-CN` rows, in step with its `zh-CN` sentence. + + ## What a direct validator caller sees + + | `messages` passed to `validateRecord` / `validateInsertValues` / `evaluateValidationRules` | was | now | + |:---|:---|:---| + | `{ locale, objectName, translate }` | field, option and object labels translated through `translate` | declared labels in every locale; `translate` renders message templates only | + | `{ locale, objectName, translate, labelTranslation }` | not a member of the type | labels translated through `labelTranslation`, the way `GET /meta` serves them | + + What to do on upgrade: add `labelTranslation: () => ({ bundle, options })` to the `messages` you pass, where `bundle` is a `TranslationBundle` keyed by locale and `options` is a `ResolveOptions` (both from `@objectstack/spec/system`). The pair is typed `ValidationLabelTranslation`, now exported as a type from `@objectstack/objectql` and `@objectstack/objectql/core`. Nothing else changes: the call compiles as before, and no verdict, code or status moves. +- c9b3f7a: feat(account): a Notification Settings page where each person chooses their own notification topics, channels, digest and quiet hours + + Clause-②: yes + Metadata-protocol: none + + The Account app has a new **Notification Settings** page, under Inbox and only when the messaging service runs. It shows one row per notification topic and one column per channel. Each cell shows whether that notification reaches you on that channel, and where the answer comes from: your own setting, your organization's default, the built-in default, or a mandatory topic. Mandatory topics are always delivered and cannot be switched off. A channel the deployment cannot send on yet says so in its column header. Above the matrix you can set your digest and your quiet hours. + + - **The read: `GET /api/v1/messaging/me/preferences`.** This new door answers the signed-in person's *effective* preferences. The server computes them with the same resolver `emit` uses to filter (`PreferenceResolver.effectiveFor`), so the page shows what is actually sent and computes nothing itself. The door takes no parameters and answers only about the caller: there is no `user` parameter, and any parameter is refused `VALIDATION_ERROR` / `400`. It keeps the posture of `GET /api/v1/messaging/preference-options`: + - an anonymous caller gets `401`; + - a held sign-in gets `403`; + - a source it cannot read is `500` / `INTERNAL_ERROR`, never a partial or "everything on" answer. + + The door reads only what the answer needs: the caller's own rows and the organization's default rows, each by equality on `user_id` within the caller's organization. A read that comes back with more rows than its cap is a fault (`500`), never a page. + + The organization's defaults appear only as `source: 'default'` on the caller's own cells. No other person's row, and no row id except the caller's own, is ever answered. + - **The writes: your own `sys_notification_preference` rows, through the data door, as you.** `member_default`, the baseline set every signed-in person resolves (external members excepted), now carries a grant of read, create and edit on the object, with no delete. Two row policies come with it: + - `sys_notification_preference_self` binds every principal that holds the grant. Its row scope is `user_id == current_user.id`, and its write check is the same expression, so the row as written must still be your own. + - `sys_notification_preference_org_admin` widens organization owners and administrators back to every row of their organization. Its write check is `topic != null`, which holds on every row being created because `topic` is required with a default. If `topic` ever becomes optional, an administrator's create is refused, never widened. + + An ordinary member or a delegated administrator lists only their own rows. Their create with `user_id` omitted, empty or naming another person is refused `403` / `PERMISSION_DENIED`, as is moving their own row to another person or to the organization default. + - **Owners and administrators are unchanged.** They still list every row, create and edit the organization default, create and edit another person's row, and delete in the Setup grid. + - **App-authored grants are narrowed too.** `sys_notification_preference_self` carries no `positions` domain, so it binds every principal that holds a grant on this object, including through an app's own permission set. A role other than organization owner or administrator that an app grants this object reads and writes only its own rows, unless the app declares its own widening policy for that role. + + There is no "reset to the organization's default" button, because that needs a delete, which members are not granted. Changing your digest or quiet hours saves your own general setting, and the page says so beside the control. From then on, that setting applies in place of the organization's defaults to every topic and channel you have not set yourself. +- 6ffa816: feat(security): an unmanaged install copies an app's capabilities, renamed with the copy + + Clause-②: yes (widening) + Metadata-protocol: added + + An app that gates an action on its own capability can now install as an unmanaged copy (`installModes: ['unmanaged']`). Before, `capability` was code-only (`allowRuntimeCreate: false`), so the validator refused the mode for any app that declared one, and the install door had no channel to write the copy's capabilities. + + - **`capability` is runtime-creatable.** Its `DEFAULT_METADATA_TYPE_REGISTRY` entry is now `allowRuntimeCreate: true`, and overlays stay closed (`supportsOverlay: false`, `allowEnvironmentOverlay: false`). A body is judged by `CapabilityDeclarationSchema`, as before. + - **The save door refuses two names.** + - A platform capability's name (`manage_users`, `setup.access`, every name in `PLATFORM_CAPABILITIES`) answers `422 NAMESPACE_CONFLICT`. An environment item under that name would shadow the platform's definition, because the registry answers its bare slot first. + - A name an installed package's capability holds answers `422 NAMESPACE_CONFLICT`, naming the holder. A capability holds one name per deployment, the same rule permission sets and positions follow. + - **The environment catalog holds capabilities.** `ENVIRONMENT_HELD_SECURITY_CATALOG_TYPES` is `['position', 'permission', 'capability']`. A package that ships a capability name the environment already authored is refused at boot, as a position or permission-set name is. `os migrate security-catalog-overlays`, the remedy that refusal names, lists and deletes such a capability row too (`capability` and `capabilities` spellings). + - **An unmanaged copy renames its capabilities.** When the copy takes a new namespace, a capability whose name starts with the source namespace (`<ns>.` or `<ns>_`) is renamed into the copy's namespace. Every reference is rewritten with it: a permission set's `systemPermissions` (list or per-operation map), an object's or action's `requiredPermissions`, and a quoted `current_user.hasCapability('<name>')` in a predicate. There the object-name rename never touches a name the package declares, so a capability named after a renamed object has one name in the copy; a token the package does not declare follows a renamed object as before. An unprefixed capability keeps its name. A renamed capability that collides with another package's capability refuses the install, naming both. Install again under another namespace. + - **Duplicating a package refuses a shared gate.** `duplicatePackage` keeps its source installed, so a capability it cannot rename (no source prefix, or a copy name the package already declares) is refused, and so is every copied item that grants, requires or tests for it, each at its own name in `failed[]`. + - **The `everyone` anchor excuses only a declaration that carries a package.** The check that refuses a high-privilege permission set bound to `everyone` excuses the tokens an app declared itself. It now counts only declarations bound to a package (`_packageId`), as ADR-0090 D5 rules: an app's shipped capabilities, an unmanaged copy's, and one saved into a writable package. A capability saved with no package excuses nothing. What bounds a saved declaration is the two refusals above: a platform capability is never excused, and a name a package declares cannot be declared again. A name nobody declares can be declared once, by a `manage_metadata` holder, inside a writable package. + - **The gate is unchanged.** It still matches capability names. The copy's action is gated on the copy's capability: a holder of the copy's permission set passes, and a holder of only the source's set does not. +- 7411f9b: feat(spec, platform-objects): the standard unit table and the organization unit object `sys_unit` (ADR-0158 U1–U3) + + Clause-②: yes (widening) + Metadata-protocol: none + + Units of measure, first release (ADR-0158 U7 R1). Nothing reads these tables yet: the unit declaration on a `number` field, the write-time membership check and the display of a quantity with its unit ship with their own cards. No field key ships here. + + - **`@objectstack/spec`** (`@objectstack/spec/data`) exports `STANDARD_UNITS`, a closed table of 41 UN/ECE Recommendation 20 codes. Each code carries its dimension (`UNIT_DIMENSIONS`: `mass`, `length`, `area`, `volume`, `time`, `count`, `package`) and its ratio to the dimension's base unit (`UNIT_DIMENSION_BASE_CODES`: `KGM`, `MTR`, `MTK`, `MTQ`, `SEC`, `H87`), as an exact decimal string: `1 CODE = ratio × BASE`. Package codes (`XBX`, `XCT`, `XPX`, …) carry no ratio. The piece is `H87`; `C62` and `EA` are not members. `ORGANIZATION_UNIT_CODE_PATTERN` is the namespace of an organization's own codes (uppercase letters, digits and underscores, at least 4 characters or containing an underscore), which no standard code can match. `PLATFORM_OBJECTS_BY_PACKAGE['platform-objects']` gains `sys_unit`. The table is not a value domain: `ValueDomainSchema` keeps its three members. + - **`@objectstack/platform-objects`** registers `sys_unit` (Setup → Configuration → Units of Measure), an organization's own units: `code`, `label`, `dimension`, `ratio` (scale 12; required on every dimension but `package`, refused on `package`), `decimal_places` (a display default) and `retired`. It is organization-owned behind the tenant wall and ships no rows. A code outside the organization namespace is refused, the code is unique within the organization, and the code and dimension cannot change after create. A unit is retired instead of deleted, and retiring cannot be undone, so a code is never created again with another meaning; the data API serves no delete on it. Every column carries field history. + - **`@objectstack/plugin-security`**: `member_default` reads `sys_unit`, so a unit's label displays to every member; organization administrators write it through their existing grant. + - **`@objectstack/cli`**: the organization-ownership inventory lists `sys_unit` as attributed to its organization. +- ed33f8a: fix(plugin-security)!: a predicate update or delete of a `controlled_by_parent` detail now writes every row its caller may write by id, the rows other users created included, instead of stopping at the platform's creator-only floor + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is which rows one predicate update or delete of a controlled_by_parent detail writes, and whether such a write is refused whole: no stored row, registry key or authored value changes, so there is nothing for a migration to rewrite and no tombstone. --> + + **BREAKING: an existing flow now changes or deletes detail rows its caller did not create.** A flow's bulk update or bulk delete node, a server-side script or a hook that runs a predicate write (`update(object, data, { where, multi: true })`, `delete(object, { where, multi: true })`) on a `controlled_by_parent` detail, as an organization member who may edit the master record (or read it, where the detail declares `sharing.controlledByParent.writeRequiresMasterRead`), used to change or delete only the detail rows that member had created and answer success. It now changes or deletes every row its predicate matches that the member can read, within any row-level `update` or `delete` policy the app authored on the detail. Review any such flow that deletes by predicate before upgrading: it will delete more rows than it did. + + It ships `patch` because it is a non-protocol breaking change (AGENTS.md Post-Task Checklist step 3): no schema, key or stored value moves, so `Metadata-protocol` is `none`. + + - FROM: on a `controlled_by_parent` detail the predicate write kept the platform ownership floor (`owner_only_writes` / `owner_only_deletes` in `member_default`, `created_by == current_user.id`) after its master check had passed. It matched only the rows the caller created, answered success, and never judged the other rows. Measured on a 4-row detail under one master: the master's owner changed 2 rows by predicate and all 4 by id; a member holding an `edit` share on the master, and a manager holding `modifyAllRecords`, changed 0 by predicate and all 4 by id. + - TO: once the master check has passed for every master the write reaches, the write is no longer held to that floor. It changes the rows a write of each row by id would change for the same caller, and it applies to all of its matched rows or to none: a newly matched row refused by a row-level `check`, a validation rule, a hook or a `restrict` relation refuses the whole write with that refusal, and nothing is written. + + **A detail that carries its own row-level write policy now writes fewer of the caller's own rows by predicate.** Where an app authors an `update` or `delete` policy with a `using` on a `controlled_by_parent` detail, a predicate write used to compose the platform floor beside that policy as one more OR term, so it also wrote the rows the caller created that the policy does not admit. The floor is no longer a term of that write, so the authored policy alone bounds it: those rows are left unwritten and the write answers success for the rows the policy admits. A by-id write of such a row was already refused, so the two now agree. A write made on another user's behalf keeps the floor and is not changed. + + The fix for a caller that must keep the old outcome: narrow the predicate to the rows it means to write (add `created_by` to the `where` to keep writing only the caller's own rows), or write the rows by id to get an outcome per row. To forbid a caller from writing rows other users created on a detail, author a row-level policy on the detail; it binds every row, by id and by predicate. + + This is the `controlled_by_parent` half of the predicate-write change shipped beside it: see the note "a predicate update or delete now writes the rows a Modify All holder, a non-creator owner or an edit-share target can write by id" for every other object. It follows the maintainer's ruling that a predicate write and a by-id write of such a detail agree (ADR-0055 §3 as amended 2026-11-22). + + What does not change: + + - A predicate write reaches only the rows its predicate matches that the caller can read, and a predicate matching more than 10,000 of them is refused before anything is written. + - It is refused whole, with `PERMISSION_DENIED` / 403 and nothing written, when it reaches a detail row under a master the caller may not edit (or may not read, where the detail declares `writeRequiresMasterRead`). + - A detail row that names no master (an optional master) is written by its owner or a Modify All holder; a predicate write that reaches such a row the caller can read and may not write is refused whole. + - A write made on another user's behalf keeps the floor for both principals, as its by-id write does. + - `sharing.controlledByParent.ownerMayEdit` widens a by-id update only: a predicate update still needs edit on the master. + - A by-id write is unchanged, and so is every predicate write on an object that is not a `controlled_by_parent` detail. + - No key, option or response member is added. + + A predicate write on such a detail also asks the read door for its rows once where it asked twice: the write is scoped to the rows its master check judged, so a row that starts matching the predicate while the write is being authorized is not written. +- 1c4db09: fix(plugin-security)!: a predicate update or delete now writes the rows a Modify All holder, a non-creator owner or an edit-share target can write by id, instead of stopping at the platform's creator-only floor + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is which rows one predicate update or delete by an organization member writes, and whether such a write is refused whole: no stored row, registry key or authored value changes, so there is nothing for a migration to rewrite and no tombstone. --> + + **BREAKING** for a predicate update or delete (`update(object, data, { where, multi: true })`, `delete(object, { where, multi: true })`) by an organization member, whose predicate now matches a row the member did not create because the record-sharing service answers `allow` for a write of that row by id (ownership at the member's write depth or Modify All, and, for an update, an `edit` share or the row sitting in a queue the member belongs to), when that row is refused: on an update, by a row-level `check`, a validation rule or a hook; on a delete, by a `beforeDelete` hook or a `restrict` relation. It ships `patch` because it is a non-protocol breaking change (AGENTS.md Post-Task Checklist step 3): no schema, key or stored value moves, so `Metadata-protocol` is `none`. + + - FROM: the write matched only the rows the member created. It answered success and changed those, and the other row was never judged. + - TO: that row is matched and judged too, and the write applies to all of its matched rows or to none. An update whose new image of that row fails a row-level `check` is refused whole with `PERMISSION_DENIED` / 403 and writes nothing. A validation rule or hook that refuses that row refuses the whole update too, with its own code, and a `readonlyWhen` lock on that row strips the field from the whole write. A delete is refused whole, and deletes nothing, when a `beforeDelete` hook or a `restrict` relation refuses that row, with that hook's or relation's own refusal. A write of that row by id is refused too, alone. + + The fix for a caller: write those rows by id to get an outcome per row, or narrow the predicate to the rows that are not refused. + + A predicate write (`update(object, data, { where, multi: true })`, `delete(object, { where, multi: true })`) by an organization member held the platform's own ownership floor (`owner_only_writes` / `owner_only_deletes` in `member_default`, `created_by == current_user.id`) as an unconditional condition, where record sharing enforces writes. Unless an app-authored write policy admitted a row, the write matched only the rows that member had created, even when the same user could update or delete the other matching rows one at a time by id. This affected a manager holding `modifyAllRecords` on the object, a row's owner who did not create it, and, for an update, the target of an `edit`-level record share or a member of the queue a row sits in. The write answered success and changed fewer rows than its predicate matched. A write by id lets the record-sharing service's `allow` verdict replace the floor. + + The predicate write now makes the by-id decision for each matched row the floor would refuse. Such a row is written when a write of that row by id would be, because the sharing service answers `allow` for it: ownership at the caller's write depth, Modify All, or, for an update only, an `edit` share or the row's queue. A row the service abstains on keeps the floor: on an object with no `owner_id`, and on a delete under `public_read_write` (an update there has no floor to keep, because that OWD opens row updates). A row it denies keeps the floor too. The row-level `check` on each updated row follows the same decision. + + The by-id decision costs one sharing verdict, a few store reads, for each matched row the floor does not already admit. Measured on SQLite in memory: + + - A member's predicate update matching 1,000 readable rows owned by other people, every verdict `deny`: 1,000 verdicts and 2,004 store reads, about 1.1 s, against 44 ms and 3 reads before. + - The same at 10,000 rows: 10,000 verdicts and 20,004 store reads, about 5.3 s, against 47 ms before. + - A Modify All holder at 10,000 rows: 10,000 verdicts and 10,003 store reads, about 1.8 s, and it now writes the 10,000 rows. Before, it took 47 ms and wrote none of them. + - Where an app-authored `using` policy for the write applies to the caller: 0 verdicts, because a row the floor refuses fails that policy too (10,000 matched rows the floor refuses, 45 ms). + + What does not change: + + - The rows a predicate write can reach are still only the rows its predicate matches that the caller can read. A predicate matching more than 10,000 of them is still refused before anything is written. + - The sharing service's own bulk write scope still bounds a predicate write: the owner set at the caller's depth, plus the edit shares (at most 5,000 of them) and the queue on an update. A row that only a read share and an app `update` policy together make writable is still written by id alone. + - An app-authored row-level policy still binds every row, and Modify All still does not bypass row-level security on an ordinary business object. + - An `edit` share still widens update and never delete. + - The tenant wall is unchanged. + - A write made on another user's behalf keeps the floor for both principals, as its by-id write does. + - A `controlled_by_parent` detail is not decided by this composition. Its predicate write, like its by-id write, is decided by its master gate instead of the floor: see the note "a predicate update or delete of a `controlled_by_parent` detail now writes every row its caller may write by id". + + A flow, script or server-side bulk update or delete that relied on a predicate write skipping the rows its caller did not create now changes those rows too, when the caller may write them by id, and is refused whole when one of them is refused. The fix is the one above. +- 17ed9e7: fix(objectql): deleting an organization also deletes its units of measure, the one exemption from the `sys_unit` delete refusal + + Clause-②: yes (widening) + Metadata-protocol: none + + An organization that had ever created a unit of measure could not be deleted: the delete was refused with 409 `DELETE_RESTRICTED` naming `sys_unit`, and the units could not be removed first, because the engine refuses every delete of a unit (405 `ERR_UNIT_DELETE_REFUSED`). Now the organization delete's own cascade removes that organization's `sys_unit` rows, retired ones included, through the engine's delete path, after the delete has been admitted, so no unit row is left naming a deleted organization. `organizationOwnedRowCounts` (the question plugin-auth's organization delete asks first) and the engine's own refusal no longer count units as records the organization still owns. + + **Declared behaviour change.** A delete door widens, in one place only. A delete of an organization that holds units and no other record now succeeds and removes the units; before, it was refused. An organization that owns any other record is still refused, and none of its units is removed. Every other delete of a unit is still refused with 405 `ERR_UNIT_DELETE_REFUSED`, by id and batched, for a user, a system writer and an automation run, including a delete issued by a hook while the organization's delete is running: the exemption is recognised from the engine's own cascade, never from anything a caller passes. Retire a unit (`retired: true`) to stop its use, as before. +- 0a3dd40: feat: analytics compiles the `SharedRecordIds` fixed-read leaf, the access explainer resolves it at the record, and OData refuses it (ADR-0155, step 5 of 6) + + Clause-②: yes + Metadata-protocol: none + + No visible change on its own: nothing on main writes a `SharedRecordIds` leaf yet. The sharing plugin starts writing it at ADR-0155's last step. + + - **Analytics, the native SQL path** (`@objectstack/service-analytics`). A read scope carrying `{ id: { $in: SharedRecordIds.read(object, user) } }` compiles to one subquery in the list's own position, `id IN (SELECT "record_id" FROM "sys_record_share" WHERE "object_name" = ? AND "recipient_type" = ? AND "recipient_id" = ? AND "record_id" IS NOT NULL AND "record_id" <> '')`, with every value bound and no tenant scope on the subquery (ADR-0155 ① ruled A). The native strategy takes such a scope only when the host answers `AnalyticsServiceConfig.fixedReadLeafClassOf` with `null` for each leaf (outside both classes ADR-0155 D4 recognises: the object on another datasource than `sys_record_share`, or a middleware or `beforeFind` / `afterFind` hook registered for `sys_record_share` by name) and the dialect is SQLite, PostgreSQL, MySQL or SQL Server. Otherwise it declines, and the ObjectQL engine path answers. A host that wires no answer keeps today's behaviour: the native path declines every scope that carries the leaf. This change ships the hook unwired: `AnalyticsServicePlugin` passes no answer, so the native path declines a scope carrying the leaf and the engine path answers, until #35946 wires it. + - **Analytics, the ObjectQL path.** The read-scope merges (`withReadScope`, the related-object scope, the label read) admit a placed read-form leaf and hand it to the engine by reference. The dry-run SQL echo prints the subquery. A leaf in any other position, under `$nin`, on another object or in its write form is refused, `INTERNAL_ERROR` / 500, logged at `error` once per service logger. + - **Analytics, the query's `where`.** A leaf reaches analytics only in the read scope. A leaf anywhere in a query's `where`, in either spelling, is now refused before either strategy runs, with `INTERNAL_ERROR` / 500. The message names the leaf and its table, not the recipient. Before this release `{ id: { $in: leaf } }` there answered `INVALID_FILTER` / 400, with a message that printed the recipient. A bare `{ id: leaf }`, or an array-form `=`, was read as a relation condition on `id`. No request can spell the leaf, so only in-process code could reach this. + - **The access explainer** (`@objectstack/plugin-security`). `ISecurityService.explain` resolves each leaf in the sharing read filter at the record it judges, with one read of `sys_record_share` under the leaf's own predicate, keyed by the record ids (one read for a whole batch). The sharing layer's `rowFilter` then has the two shapes it has today: `{ id: { $in: [recordId] } }` in the share arm for a caller with a grant on the record, and the share arm left out for a caller without one. The published `rowFilter` never carries the leaf. A leaf it cannot resolve is refused, `INTERNAL_ERROR` / 500, logged at `error` once. That includes a leaf anywhere but `{ id: { $in: leaf } }` in the object's own filter, such as one inside a relation condition or a composed `ReadableIds` scope, as the engine and the analytics compiler refuse it. + - **OData** (`@objectstack/driver-odata`). `find` and `count` refuse a `where` carrying the leaf before any request is sent, `INTERNAL_ERROR` / 500. An OData `$filter` has no form of the subquery, and the driver declares no `fixedReadLeaves`. Before this release a direct `find` left the leaf's predicate out of the `$filter` it sent. The engine already refused the leaf before calling this driver. + - **The array form** (`@objectstack/spec`). `parseFilterAST` now refuses a leaf in the array form with `INTERNAL_ERROR` / 500 wherever it answered `INVALID_FILTER` / 400: as an `in` / `nin` comparand, as a member of an `in` / `nin` list, or as the comparand of a scalar operator (`!=`, `>` and the rest). The old messages printed the leaf's inputs, the recipient among them. The new message names the leaf and its table only. An unbranded copy that crossed JSON is still `INVALID_FILTER` / 400. An array-form `=` is passed on by reference and refused by the engine, as before. + - **New exports** (`@objectstack/objectql`). `fixedReadLeafClassOfEngine(engine, leaf)` answers which ADR-0155 D4 class, if any, keeps the engine from handing a leaf to a driver. `driverEvaluatesFixedReadLeaf` answers whether a driver declares the leaf. Neither reads or writes anything. +- 4dbee9f: fix(plugin-security): a record sharing `allow` no longer takes the ownership floor out of an OR an authored write policy stands in, so a creator can still edit or delete their own row by id beside an authored widener + + Clause-②: yes (widening) + Metadata-protocol: none + + On a by-id update or delete, when the sharing service answered `allow` for the row, the platform's own ownership floor (`created_by == current_user.id`, from `member_default` and `external_default`) was removed from the row-level filter. The sharing service answers `allow` when the caller owns the row or holds write depth over its owner, holds Modify All, or, for an update, holds an `edit` share on it or belongs to the queue it sits in. That filter is an OR of permissive policies. Where an app-authored update or delete policy applied to the caller as well, for example "any open deal" (`stage == 'open'`), removing the floor left that policy as the only term. A row the floor alone admitted, such as the caller's own closed deal, was then refused with 403 `PERMISSION_DENIED`. A predicate write (`multi: true` update, delete by `where`) over the same row wrote it. + + The maintainer ruled option A on #35917 (ruling comment 7063130499, 2026-11-21): under a sharing `allow`, the creator and owner floor stays an OR term beside an authored update or delete `using` policy, so a by-id write gives the answer a predicate write already gave for those rows. + + The floor is now dropped only where it is the filter's last term. Beside an authored write policy with a `using` it stays one term of the OR, both in the row gate before the write and in the defaulted check on the new image. What changes: + + - On an object where an authored update or delete policy applies to the caller, a by-id update or delete of a row the caller created, where record sharing answers `allow`, is admitted again, as it was before the sharing service could replace the floor. That covers a creator who owns the row, who holds write depth over its owner, who holds Modify All, and, for an update, who holds an `edit` share or queue membership. A creator with none of these is still refused by record sharing on a row the authored policy does not admit. The lifecycle verbs move with their write class: `transfer` with update, `purge` with delete (`restore` addresses no single row id, so it does not meet this gate). + - By id and by predicate now agree on the rows the floor admits. They do not agree on every row: an open row the caller neither owns nor holds a share on, which an authored policy admits, is written by id (the authored policy lifts the sharing refusal) and left out of a predicate write (the sharing bulk scope stays owner and shares). That divergence is older than this change and is not touched here. + - `security/explain` reports the same record verdict for these rows. + - The master check a `controlled_by_parent` detail write asks about its master row moves the same way: a master's creator, where record sharing allows the master, can now insert, update and delete its details beside the master's authored update policy. + - An authored write policy that cannot enforce (a missing column, an unresolved membership key) used to deny every such by-id write under `allow`. The creator's own rows now pass by the floor, as they already did under `abstain` and by predicate. + - A write on another user's behalf (ADR-0090 D10) follows the delegator: a by-id update or delete, by the delegator or on its behalf, of a row the delegator created beside its authored policy is now admitted. Before, both were refused. The suite pinned those refusals in 22 tests. Those tests now use rows the delegator did not create, so they still refuse with every assertion kept, and new tests pin the admission of a row, and of a master, the delegator created: `delegated-write-never-exceeds-delegator.test.ts` (the five held-row cells and the post-image store test, under both tenancy postures, 12 tests) and `explain-enforce-parity.test.ts` (the five #24746 held rows, under both postures, 10 tests). An agent still never writes a row its delegator's own write refuses; on a `controlled_by_parent` object that rests on the delegator's own composition, which new cells pin at the row gate, the stored row and the master gate. + + Removed capability: a `using` write policy no longer stops a row's own creator once record sharing says `allow`, and a master's authored update policy no longer stops the master's creator from writing its details. Where to put such a limit now: + + - A `check` on the update policy judges the stored image of every row, so it can refuse what a row becomes. It does not see the row as it stood before the write, so it cannot hold a row in a state: a creator can still edit a closed deal into one the check accepts. + - A `beforeUpdate` lifecycle hook sees the row as it stood before the write (`ctx.previous`), so a limit on the prior state goes there, and a delete has no new image, so a limit on deleting one's own rows goes in a `beforeDelete` hook. + - For a master's details, the master gate reads the master's row filter, not its `check`, and a hook on the master does not run for a detail write: the limit goes in a hook on the detail object. + + What does not change: + + - Where no authored write policy with a `using` applies, an `allow` still replaces the floor completely, as before. + - An authored policy still bounds every row the floor does not admit. Modify All does not lift an authored write policy on an ordinary business object (ADR-0066 ①), and an owner or `edit`-share target who did not create the row is still held to the authored policy. + - A `check` an author wrote still refuses the new image, the tenant wall still applies, and an `edit` share still widens update and never delete. + - Where record sharing abstains (no owner field), the floor still applies. + - Reads are not affected: the floor is a write-side policy. + - `ISecurityService.checkAuthoredRowWrite` still judges the authored policies alone, without the floor. +- e17c2ae: Clause-②: no + Metadata-protocol: none + + A security refusal's `userMessage` (the master-detail write gate and the field-write gate) now negotiates the label locale against the locales the i18n service holds before it translates the object or field label, the way objectql's refusals and the metadata route do. A request in a regional tag such as `en-US`, in a deployment authored in `en` that defaults to another language, now names the master object by its authored label (`Contract`) instead of the default language's row. +- 24ff03c: feat(plugin-security): position and permission-set assignments carry a palette colour + + Clause-②: no + Metadata-protocol: none + + The console draws an object's icon as a white glyph on a square of the object's palette colour, and an object that declares no `color` is drawn in the neutral `gray`. Until now no built-in object declared one, so every platform object read the same. User positions and user permission-set assignments are now `purple` (security and access). + + Each colour is one of the palette names (`OBJECT_COLORS`), picked by business family, not by status: people and organisation `blue`, security and access `purple`, approvals and work routing `orange`, messaging and notifications `pink`, integrations `teal`, reference data and preferences `green`, audit `amber`. Objects nobody opens in the console (credential and token stores, queues, run logs, engine bookkeeping) keep no `color` and stay `gray`. Nothing about the objects' fields, data or API changes. +- 8b1841f: feat(platform-objects): built-in tasks and notes, `sys_task` and `sys_note`, in every environment + + Clause-②: yes (widening) + Metadata-protocol: none + + `PlatformObjectsPlugin` now registers two ordinary, customizable objects on their own manifest + (`com.objectstack.platform-objects.work`), so any application can put tasks and notes in its menu + without declaring its own: + + - `sys_task` — title (required), description (rich text), status (To Do / In Progress / Done, + default To Do), due time, assignee (a user, defaulting to the creator) and a read-only completion + time the platform writes when the status becomes Done and clears when it leaves Done. + - `sys_note` — an optional title and a rich-text body; lists show a read-only heading that is the + title, or the body's first line when the title is empty. + + Each keeps its own sharing: `sharingModel: 'private'` over a declared `owner_id` (the creator), and a + task is also shared, with edit access, with its assignee through the declared `sys_task_assignee` + sharing rule. Neither links to, grants access to, or derives access from any other record. Default + views: tasks Assigned to Me (open, by due time), Created by Me and All Tasks (a board by status); + notes My Notes and All Notes. Attachments are on for both. + + Both names join `PLATFORM_OBJECTS_BY_PACKAGE['platform-objects']` in `@objectstack/spec`, so + validation treats them as platform-provided: an app's navigation entry reaches them with + `requiresObject` beside `objectName` (`{ type: 'object', objectName: 'sys_task', requiresObject: + 'sys_task' }`), which `defineStack` accepts and the console hides on a kernel without the object. + Their labels ship in the platform's eleven locales (zh-CN 任务 / 备忘). + + `@objectstack/plugin-security`: the member baseline `member_default` grants `sys_task` and + `sys_note` read, create and edit, with no delete (maintainer ruling 7131539862, option A). It opens + the objects only: which rows a member sees stays with each object's private sharing, so a task is + read by its creator and its assignee and a note by its creator. + + `@objectstack/cli`: the organization-ownership inventory (ADR-0131 D10) gives `sys_task` and + `sys_note` the `attribution` fate, so `os migrate organization-ownership` and the `os dev` upgrade + plan databases that hold them instead of refusing an object with no fate. + + Clause-② reads `yes (widening)`: `defineStack` now accepts a top-level action whose `objectName` is + `sys_task` or `sys_note`, and the public surface grows. `Metadata-protocol: none` follows the + `sys_unit` roster-addition precedent: no metadata key, type or schema value is added, and a + reference that already parsed now resolves. +- 695b9db: fix(plugin-security)!: an app-authored elevation's reads and writes are judged by its caller's organization wall + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is the answer a data operation gets when it runs under an action body's, a system hook's or a system flow's elevation, and three schema descriptions that state it: no stored row, registry key or authored value changes, so there is nothing for a migration to rewrite and no tombstone. --> + + The rule: elevation lifts a caller's business rules, never the organization wall. An action body, a hook that runs as system (`runAs: 'system'`, a system context it inherits, its `ctx.api.sudo()`) and a flow that runs as system have their reads and writes judged by the organization wall of the caller they run for (ADR-0095 D1, ADR-0123 D1/D2), under every tenancy posture and on every object, a federated one included. + + **BREAKING** for an action body, a system hook or a system flow run for a signed-in caller. + + - FROM: the elevation, not the caller's organization wall, decided what such a context reached of a tenant-scoped object. + - TO: the caller's own organization wall decides it: + - with no active organization under `isolated`, an empty membership set under `group`, or no membership at all under `single`: its reads of a tenant-scoped object resolve to nothing (zero rows, no error); its delete and purge are answered by that read rule (a predicate delete matches nothing, a by-id delete answers `404 RECORD_NOT_FOUND`); and its other writes (insert, update, transfer, and the recycle bin's restore) are refused with `403 PERMISSION_DENIED`, naming the missing active organization or membership; + - under `group`, a member reads and writes the union of the organizations they hold a membership in, with or without an active organization; + - on a federated object it reads only rows of the caller's organization scope, and a by-id write of a row outside it answers `404 RECORD_NOT_FOUND`, as a row that is not there; + - an insert with no active organization on a walled tenant object is refused with `403 PERMISSION_DENIED`; + - for every caller, an active organization included: a write whose own data names an organization outside the caller's wall, and an update whose own data empties a row's organization, are refused with `403 PERMISSION_DENIED`; + - the check of the row a by-id write names is read inside the transaction the write carries, so a row the body's own transaction wrote is the caller's to write again in it; + - a system flow started by a record change, and every system run whose own user is its caller, carries that user's membership set and posture rung from run setup: under `group` it reads the union of the user's memberships, with or without an active organization. The set and rung are those of run setup: a membership the user gains or loses while the run waits is read by the next run. A decided segment, a run that began for no caller and a child run of either carry neither: a decided segment's caller's facts are resolved for it again. + + **Not moved.** A caller with an active organization keeps exactly that organization's reach. Objects outside tenancy, objects with no organization column, and a platform operator crossing the wall on an object whose posture permits it are answered as the caller's own requests answer them. System work that runs for no caller (a scheduled run, a platform plugin's own system context, the seeders) is unchanged, and so is a system flow that began for no caller after an approval decision: the decider is its attribution user, not its caller. A run that a write of such a segment starts begins for no caller too, and carries neither the writer's membership set nor its posture rung; its trigger user stays the writer, so an approval's submitter exclusion, who may read the run's state, and the run's history answer as before. A run that a write of a decided segment of a run that began for a caller starts begins for the decider, as before. A system flow that began for a caller is judged by that caller after a decision, not by the decider. + + The fix for a caller: select an active organization before running the action, or start the run from a session that has one. A body that must place a row in another organization does so as a member of that organization, through its own request. The `runAs` descriptions of flows and hooks and the `body` description of actions now state this limit beside the other two. + + Also in this change: + - `@objectstack/core` exports `RUN_CALLER`, `markRunCaller` and `runCallerOf`: the server-constructed mark a flow run's data context carries wherever the run's own user is not its caller (a decided segment, a run recorded as begun for no caller in every segment, and a child run of either), naming the user its run began for, or that it began for none. + - `@objectstack/service-automation`: a `runAs: 'system'` run's data context carries the run user's membership set (`accessible_org_ids`) and posture rung, seeded once at run setup; it carries no grants. A run context may record `beganForNoCaller: true`. A run whose own user is not its caller is seeded with neither, and its data context carries neither. + - `@objectstack/objectql`: the hook session of a write made under that mark, for a run that began for no caller, carries it; `@objectstack/trigger-record-change` records that the run such a write fires began for no caller, and keeps the writer as its trigger user. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [a73edb3] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [d053c7d] +- Updated dependencies [8b550f8] +- Updated dependencies [c809deb] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [c9b3f7a] +- Updated dependencies [01e6af6] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [4026c44] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [89ea9bf] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [17ed9e7] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [a98c077] +- Updated dependencies [236c804] +- Updated dependencies [d71fe59] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [a5a5312] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6943af1] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [24ff03c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [c8d4b90] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [9c57bd2] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [b3247dd] +- Updated dependencies [372ce7c] +- Updated dependencies [c059e60] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [bc2aaf1] +- Updated dependencies [4e55e4e] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/types@18.7.0 + - @objectstack/platform-objects@18.7.0 + - @objectstack/formula@18.7.0 + - @objectstack/core@18.7.0 + - @objectstack/metadata-core@18.7.0 + ## 18.6.0 ### Minor Changes diff --git a/packages/plugins/plugin-security/package.json b/packages/plugins/plugin-security/package.json index de2d5a76a65..9c07b887ca3 100644 --- a/packages/plugins/plugin-security/package.json +++ b/packages/plugins/plugin-security/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/plugin-security", - "version": "18.6.0", + "version": "18.7.0", "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 4fe8ffbbf78..2a9d26ca1f8 100644 --- a/packages/plugins/plugin-sharing/CHANGELOG.md +++ b/packages/plugins/plugin-sharing/CHANGELOG.md @@ -1,5 +1,320 @@ # @objectstack/plugin-sharing +## 18.7.0 + +### Patch Changes + +- 9abc732: fix(share-links): the share-link page names the shared object by its label in the reader's language and no longer lists the fields the object hides + + Clause-②: yes (widening) + Metadata-protocol: none + + `GET /api/v1/share-links/{token}/resolve` answers two more facts, on both of its mounts (the sharing plugin's route and the runtime dispatcher's `/share-links` domain): + + - `link.object_label` — the shared object's label in the request's locale: the request's `Accept-Language` top tag, else the i18n service's default locale, translated the way `GET /meta/object/NAME` translates it: the translation bundle over the served `label`, with the deployment's fallback locale and authored language, and the object's packaged declaration read through the metadata protocol. A renamed object therefore keeps its rename and is not given the bundle's translation of its old label. With no i18n service, or no bundle entry for that locale, the served label is served. An object that declares no label carries no `object_label`. + - `fields[NAME].hidden: true` — for a field the object declares hidden, including the injected scope and queue columns, which are hidden at their source. A field that is not hidden carries no `hidden` key. + + Both public share-link routes (`/resolve` and `/messages`), on both mounts, now answer `Vary: X-Share-Password, X-Share-Password-Encoding, Accept-Language` (the new `SHARE_LINK_PUBLIC_VARY` in `@objectstack/types`). Before, they sent only the two password headers. They still send `Cache-Control: no-store`. + + `ShareLinkResolvedLink` and `ShareLinkFieldDisplay` (`@objectstack/types`) gain the two optional keys, and `buildShareLinkResolveAnswer` takes an optional fourth argument with the request's `Accept-Language` value, the i18n service and the metadata protocol. `registerShareLinkRoutes` (`@objectstack/plugin-sharing`) takes optional `i18n` and `protocol` resolvers, which `SharingServicePlugin` wires to the kernel's `i18n` and `protocol` services. + + The console's share-link page (`@object-ui/console`) titles the page with the label ("Shared Client Brief"), falling back to the object's name from a server that does not send one, and leaves off every field the answer marks hidden, as the record page does. Its resolve and messages requests state the console's UI language as `Accept-Language`, so the label arrives in the language the rest of the page is in. + + Nothing to migrate: a caller that reads neither key is unaffected. +- 52a2398: fix(plugin-sharing)!: every share grant counts; the sharing scopes carry the share-grant leaf instead of a list capped at 5,000 grants (ADR-0155 plan step 6) + + Clause-②: yes (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no stored row, registry key or authored value changes. What moves is how the sharing scopes count share grants (every grant, through a subquery, where a read of at most 5,000 used to stand), that grants stop counting on objects whose storage cannot evaluate that subquery, and that a host registering a narrowing of sys_record_share reads by name no longer boots. There is nothing for a migration to rewrite and no tombstone; each host-side remedy is one line, below. --> + + **What was wrong.** The read scope of a sharing-scoped object read the caller's share grants into an id list first, at most 5,000 of them, and dropped the rest without a word: a member holding 6,000 grants on one object saw 6,000 rows of 7,000 (1,000 owned plus 5,000 of the 6,000 shared), and a GET of an unread grant answered 404. The predicate-update scope had the same cap on edit-level grants. + + **Now.** `buildReadFilter` and `buildWriteFilter` carry the share arm as the share-grant leaf, `{ id: { $in: SharedRecordIds.read(object, user) } }` (the update scope carries `.write(object, user, ['edit', 'full'])`), which the SQL driver compiles as a subquery over `sys_record_share` inside the same statement. Every grant counts, at any number; no grant is read into memory and nothing binds one parameter per grant. The pending-approval ids stand as a disjunct of their own. `delete` scopes to the owner match alone, as before. + + **BREAKING**, in three places, each a tightening that lands here, where it takes effect: + + - **Share grants stop counting on objects whose storage cannot evaluate them** (ADR-0155 R2). An object stored on another datasource than `sys_record_share`, or by a driver that does not evaluate the leaf (`supports.fixedReadLeaves` without `SharedRecordIds`: today the MongoDB, in-memory and OData drivers), keeps its owner, queue and pending-approval access unchanged, but its share rows are no longer consulted: no scope carries the share arm, the edit gate reads no grant, and a new grant or a new sharing rule on it is refused `SHARING_NOT_ENABLED` (422 at the REST doors). The boot names, once at `warn`, every such object that holds `sys_record_share` rows, with the reason. `security/explain` reports each share on such a record as evaluated and not granting, and says why. + The fix for a host: to share such an object's records again, store it on the datasource of `sys_record_share`, on a driver that evaluates share grants (the SQL drivers do). + - **A narrowing of `sys_record_share` reads registered BY NAME refuses the boot** (ADR-0155 R1 at boot, D4). A host that registers an object-scoped middleware, or a `beforeFind` / `afterFind` hook, for `sys_record_share` (an opt-in of that table into plugin-audit's record-view auditing included) no longer starts: the boot fails at `kernel:bootstrapped`, before any request is served, with `INTERNAL_ERROR` / 500 naming the registration. No registration is exempt, one whose handler skips system reads included. A registration made after boot is refused at read by the engine, with the same envelope. + The fix for a host: remove that registration for `sys_record_share`. A host that opted the table into record-view auditing gives up that auditing of share rows. + - **A narrowing that names NO object is not run on the share arm.** A middleware or a find hook registered for no object, or for `'*'`, ran on today's grant read, which went through the engine as a system read. The share arm now makes no engine read of `sys_record_share`, so such a registration does not run on it, and nothing refuses, reports or logs that. On a host where such a registration changes a system read of `sys_record_share`, the share arm's rows can differ from what they were. This paragraph is the telling (ADR-0155 D4's boundary; `ISharingService`'s contract says the same). The repository's own registrations of that kind were read before this change, and none changes that read. + + **Preconditions this step inherits from the PostgreSQL key-type change** (ADR-0155 O2): + + 1. On PostgreSQL, a statement holding the leaf whose catalog read fails, or finds no such relation, answers `INTERNAL_ERROR` / 500, where an uncast statement would have run. + 2. Each transaction pays one savepoint and one catalog read per table it compares a leaf against, when the table has no pooled reading. + 3. A failed catalog read inside that savepoint rolls back the caller's concurrent statements on the same transaction. The sharing plugin issues no statement of its own that carries the leaf, and none of its reads runs inside a caller's transaction or concurrently with another on one: its own reads are sequential system reads. + + **What it costs, quoted no wider than ADR-0155 quotes it.** For the scope statements alone (an account page, its total and the two grant reads), at 1M rows and 5,000 grants, the id-list scope against the subquery scope read PostgreSQL 21.6 → 7.0 ms and SQLite 18.3 → 12.1 ms. It is not a whole-request figure. For a caller holding no grant, whose scope was the bare owner match and is now an `$or` with the subquery, SQLite still serves the page and its total from the owner index; PostgreSQL 16 serves the page as before but plans the total as a sequential scan, which grows with the table: measured, that caller's total went from 1.46 to 7.29 ms at 100k rows and from 7.88 to 42.21 ms at 1M, the page flat at both. SQLite keeps the owner index. Follow-up #36034 measures `id = ANY(ARRAY(SELECT …))` against the subquery for that caller on PostgreSQL. +- d99b746: fix(plugin-sharing): a hierarchy scope that falls back to owner-only for want of a resolver now says so once per boot + + Clause-②: no + Metadata-protocol: none + + When a permission set grants a hierarchy scope (`own_and_reports`, `unit`, `unit_and_below`) and no `hierarchy-scope-resolver` service is registered (the `hierarchy-security` capability, provided by `@objectstack/security-enterprise`), the sharing layer fails closed to owner-only. It used to do so without a word, so a runtime booted without the CLI gave an operator nothing to explain why every user saw only their own records. + + - The first time the fallback is taken, the sharing service logs one `warn` naming the capability, its provider and the owner-only consequence. It is logged once per service instance, which is once per boot, never once per request. + - Nothing is logged for an app that never asks for a hierarchy scope, or when a resolver is registered. + - The answer does not change: the scope still resolves to the caller alone. + - `os validate`, `os verify` and `os serve` no longer end the `hierarchy-security` advisory with "and no log line says so": for that token they now say the runtime logs one warning, opening `[sharing] hierarchy scope NOT widened`, the first time it falls back. Other enterprise tokens keep their wording. +- 70194ff: feat(audit): a record's activity stream shows each changed field's old → new values by default, with a new `fieldHistory` off switch on the object and the field, and a reader is served only the changes of fields they may read + + Clause-②: yes (widening) + Metadata-protocol: semantic + + A record's activity stream now shows `Field: old → new` for every changed field, on every object, unless the object or the field turns it off. Before, values showed only for a field that declared `trackHistory: true`. Every other change was named by its field label alone. + + - **New `enable.fieldHistory`, with no default.** Absent: values show. `false`: off for the object, and a change names its fields only. It has no default so that a parsed body never writes one. A built artifact or a stored definition therefore gets values when it is upgraded, with no rebuild. + - **`enable.trackHistory: false` alone no longer turns values off.** The flag keeps its meaning: with `true`, the default record page shows the compliance ledger's field changes to a reader the ledger serves, and the derived `history` API verb is served. To keep an object's activity free of values, write `enable: { fieldHistory: false }`. Every platform object that wrote `trackHistory: false` now also writes `fieldHistory: false`. + - **New field `fieldHistory`, with no default: the field's off switch.** Absent shows the values, `false` names the change without them, `true` shows them (a media or JSON type included). Under an object with `enable.fieldHistory: false`, values stay off whatever a field says. + - **Field `trackHistory: false` no longer means anything: it reads like absent, so the values show.** The field designer wrote it on every save while the key meant nothing, so a stored `false` cannot be told from a choice. `trackHistory: true` keeps one job: it opts a media or JSON field in. A credential field (`secret`, and `password` off better-auth objects) never shows values, because both sides are the same mask. A media or structured-JSON field (`image`, `file`, `avatar`, `video`, `audio`, `signature`, `composite`, `repeater`, `record`, `location`, `address`, `code`, `json`, `vector`) shows them only with an explicit `true` (`fieldHistory` or `trackHistory`). + - **The new field key is classified where every `FieldSchema` key is.** The SQL driver counts `fieldHistory` as a presentation key, so creating a column never reads it. The field-level-security scrub keeps it as written, because a boolean names no field. + - **Who reads a value:** the field-change code (`metadata.summary_message`) is now served to readers. It is narrowed change by change with the same field answer as `metadata.old` and `metadata.new`. A reference field's change is kept only for a reader served the referenced record's title. When a reader is not served some of a summary's changes, the summary is rebuilt from the changes they are served instead of being dropped whole. The full audit ledger is not widened. + - **A long value no longer fails the activity insert.** The stored summary is fitted to `sys_activity.summary`'s `maxLength` (500): each side is cut first, then trailing changes are left out. The code keeps every change, with each side capped at 1,000 characters. + + To keep an object's activity free of values, set `enable: { fieldHistory: false }` on it. For one field, set `fieldHistory: false` on that field; `trackHistory: false` does not turn values off. +- 24ff03c: feat(plugin-sharing): sharing rules, record shares, queues and assignment rules carry a palette colour + + Clause-②: no + Metadata-protocol: none + + The console draws an object's icon as a white glyph on a square of the object's palette colour, and an object that declares no `color` is drawn in the neutral `gray`. Until now no built-in object declared one, so every platform object read the same. Sharing rules and record shares are now `purple` (security and access); queues, queue members and assignment rules `orange` (approvals and work routing). + + Each colour is one of the palette names (`OBJECT_COLORS`), picked by business family, not by status: people and organisation `blue`, security and access `purple`, approvals and work routing `orange`, messaging and notifications `pink`, integrations `teal`, reference data and preferences `green`, audit `amber`. Objects nobody opens in the console (credential and token stores, queues, run logs, engine bookkeeping) keep no `color` and stay `gray`. Nothing about the objects' fields, data or API changes. +- 30778f3: fix(sharing): a declared sharing rule grants in an organization created after boot, without a restart + + Clause-②: no + Metadata-protocol: none + + - **A package-declared sharing rule now grants in an organization created after the server booted.** The per-record rule hooks bound once at boot on the objects of the rules served then, and under a walled posture a declared rule is served once per organization that exists. A server that booted with no organization (a fresh environment, before its first sign-up) bound no hook on a declared rule's object, so a record written in the organization created afterwards got no `sys_record_share` grant and its recipient could not read it until the next restart. The hooks now bind on every object an active declaration names, whatever organizations serve it at that moment; the organization is resolved when a record is evaluated, so each grant stays inside its own organization. + - **The same binding covers a declared rule switched off at boot and on again later** through the activation ledger: its object stays bound, and records written after the switch are evaluated. + - Boot and the `sys_sharing_rule` data-change rebind bind through one function (`rebindRuleHooks`, reading `SharingRuleService.listRuleHookObjects()`), so the two cannot derive different object sets. `bindRuleHooks` now accepts any rows carrying `object_name` and `active` (a widening; existing callers are unaffected). +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [cc03bdc] +- Updated dependencies [ef39b2c] +- Updated dependencies [a73edb3] +- Updated dependencies [93fa4f9] +- Updated dependencies [1c05546] +- Updated dependencies [9fea316] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [e6e5224] +- Updated dependencies [94a2d8b] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [d053c7d] +- Updated dependencies [8b550f8] +- Updated dependencies [c809deb] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [4db08d5] +- Updated dependencies [c9b3f7a] +- Updated dependencies [01e6af6] +- Updated dependencies [8e46424] +- Updated dependencies [d5ece3e] +- Updated dependencies [f4dbcc2] +- Updated dependencies [d17adf5] +- Updated dependencies [9c29d73] +- Updated dependencies [bf69cb4] +- Updated dependencies [4026c44] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [a6cf988] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [c480f33] +- Updated dependencies [9062756] +- Updated dependencies [65b67be] +- Updated dependencies [1caee8c] +- Updated dependencies [cdb327f] +- Updated dependencies [5cd2b54] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [43639a6] +- Updated dependencies [b863d2b] +- Updated dependencies [89ea9bf] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [c321914] +- Updated dependencies [61722e9] +- Updated dependencies [37f7814] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [6d0089c] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [4890cd0] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [c59ee99] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [50d6da8] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [7dd1a2f] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [17ed9e7] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [a98c077] +- Updated dependencies [236c804] +- Updated dependencies [d71fe59] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [a5a5312] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6943af1] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [756df0a] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [24ff03c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [c8d4b90] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [9c57bd2] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [b3247dd] +- Updated dependencies [372ce7c] +- Updated dependencies [c059e60] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [bc2aaf1] +- Updated dependencies [4e55e4e] +- Updated dependencies [64b278e] +- Updated dependencies [4101f1f] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/objectql@18.7.0 + - @objectstack/types@18.7.0 + - @objectstack/platform-objects@18.7.0 + - @objectstack/formula@18.7.0 + - @objectstack/core@18.7.0 + - @objectstack/metadata-core@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/plugins/plugin-sharing/package.json b/packages/plugins/plugin-sharing/package.json index 5ac5c2a5762..e2ac97a4d00 100644 --- a/packages/plugins/plugin-sharing/package.json +++ b/packages/plugins/plugin-sharing/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/plugin-sharing", - "version": "18.6.0", + "version": "18.7.0", "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 15c5d9b59b3..2b7c51a69bd 100644 --- a/packages/plugins/plugin-webhooks/CHANGELOG.md +++ b/packages/plugins/plugin-webhooks/CHANGELOG.md @@ -1,5 +1,246 @@ # @objectstack/plugin-webhooks +## 18.7.0 + +### Patch Changes + +- 24ff03c: feat(plugin-webhooks): webhooks and HTTP deliveries carry a palette colour + + Clause-②: no + Metadata-protocol: none + + The console draws an object's icon as a white glyph on a square of the object's palette colour, and an object that declares no `color` is drawn in the neutral `gray`. Until now no built-in object declared one, so every platform object read the same. Webhooks and their HTTP deliveries are now `teal` (integrations). + + Each colour is one of the palette names (`OBJECT_COLORS`), picked by business family, not by status: people and organisation `blue`, security and access `purple`, approvals and work routing `orange`, messaging and notifications `pink`, integrations `teal`, reference data and preferences `green`, audit `amber`. Objects nobody opens in the console (credential and token stores, queues, run logs, engine bookkeeping) keep no `color` and stay `gray`. Nothing about the objects' fields, data or API changes. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [cc03bdc] +- Updated dependencies [ef39b2c] +- Updated dependencies [a73edb3] +- Updated dependencies [93fa4f9] +- Updated dependencies [1c05546] +- Updated dependencies [9fea316] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [e6e5224] +- Updated dependencies [94a2d8b] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [d053c7d] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [4db08d5] +- Updated dependencies [c9b3f7a] +- Updated dependencies [01e6af6] +- Updated dependencies [8e46424] +- Updated dependencies [d5ece3e] +- Updated dependencies [f4dbcc2] +- Updated dependencies [d17adf5] +- Updated dependencies [9c29d73] +- Updated dependencies [bf69cb4] +- Updated dependencies [4026c44] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [a6cf988] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [fd471d3] +- Updated dependencies [4a1919d] +- Updated dependencies [8856afc] +- Updated dependencies [c480f33] +- Updated dependencies [9062756] +- Updated dependencies [65b67be] +- Updated dependencies [1caee8c] +- Updated dependencies [cdb327f] +- Updated dependencies [5cd2b54] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [43639a6] +- Updated dependencies [b863d2b] +- Updated dependencies [89ea9bf] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [c321914] +- Updated dependencies [61722e9] +- Updated dependencies [37f7814] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [6d0089c] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [4890cd0] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [c59ee99] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [eb9f8ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [50d6da8] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [7dd1a2f] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [17ed9e7] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [a98c077] +- Updated dependencies [236c804] +- Updated dependencies [d71fe59] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [a5a5312] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6943af1] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [00ae570] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [0fc430a] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [0ab9b15] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [756df0a] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [24ff03c] +- Updated dependencies [24ff03c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [c8d4b90] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [9c57bd2] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [b3247dd] +- Updated dependencies [372ce7c] +- Updated dependencies [c059e60] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [bc2aaf1] +- Updated dependencies [4e55e4e] +- Updated dependencies [64b278e] +- Updated dependencies [4101f1f] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/objectql@18.7.0 + - @objectstack/types@18.7.0 + - @objectstack/platform-objects@18.7.0 + - @objectstack/service-messaging@18.7.0 + - @objectstack/core@18.7.0 + ## 18.6.0 ### Minor Changes diff --git a/packages/plugins/plugin-webhooks/package.json b/packages/plugins/plugin-webhooks/package.json index b1247cc4185..05de0a1a9f0 100644 --- a/packages/plugins/plugin-webhooks/package.json +++ b/packages/plugins/plugin-webhooks/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/plugin-webhooks", - "version": "18.6.0", + "version": "18.7.0", "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 4d9c9f7510f..e58115085ff 100644 --- a/packages/qa/dogfood/CHANGELOG.md +++ b/packages/qa/dogfood/CHANGELOG.md @@ -1,5 +1,361 @@ # @objectstack/dogfood +## 0.0.55 + +### Patch Changes + +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [8c629b2] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [4c2d8d7] +- Updated dependencies [cc03bdc] +- Updated dependencies [ef39b2c] +- Updated dependencies [a73edb3] +- Updated dependencies [7878cf0] +- Updated dependencies [93fa4f9] +- Updated dependencies [2a0cd20] +- Updated dependencies [a998964] +- Updated dependencies [1c05546] +- Updated dependencies [9fea316] +- Updated dependencies [cceb5c6] +- Updated dependencies [7f4970a] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [5f18b9b] +- Updated dependencies [e6e5224] +- Updated dependencies [94a2d8b] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [d053c7d] +- Updated dependencies [8b550f8] +- Updated dependencies [c809deb] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [c4a73be] +- Updated dependencies [806bba8] +- Updated dependencies [4db08d5] +- Updated dependencies [c9b3f7a] +- Updated dependencies [01e6af6] +- Updated dependencies [8e46424] +- Updated dependencies [d5ece3e] +- Updated dependencies [2d33205] +- Updated dependencies [78f3ab2] +- Updated dependencies [3c038eb] +- Updated dependencies [f4dbcc2] +- Updated dependencies [00110fd] +- Updated dependencies [d17adf5] +- Updated dependencies [9c29d73] +- Updated dependencies [e22502c] +- Updated dependencies [e100a37] +- Updated dependencies [bf69cb4] +- Updated dependencies [4026c44] +- Updated dependencies [0739dee] +- Updated dependencies [f54fc93] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [96faf44] +- Updated dependencies [e25207d] +- Updated dependencies [d6ce9ba] +- Updated dependencies [7ed18b5] +- Updated dependencies [2df9691] +- Updated dependencies [bfd6b6b] +- Updated dependencies [961f474] +- Updated dependencies [a6cf988] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [338448e] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [9e65474] +- Updated dependencies [8596c80] +- Updated dependencies [ba304e0] +- Updated dependencies [fd471d3] +- Updated dependencies [4a1919d] +- Updated dependencies [ec227fc] +- Updated dependencies [ba6556c] +- Updated dependencies [8856afc] +- Updated dependencies [96a1f2b] +- Updated dependencies [c787255] +- Updated dependencies [c480f33] +- Updated dependencies [9062756] +- Updated dependencies [65b67be] +- Updated dependencies [1caee8c] +- Updated dependencies [dbb2f68] +- Updated dependencies [cdb327f] +- Updated dependencies [5cd2b54] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [43639a6] +- Updated dependencies [d99b746] +- Updated dependencies [467b13b] +- Updated dependencies [338ef35] +- Updated dependencies [abb40ae] +- Updated dependencies [b863d2b] +- Updated dependencies [068a0f9] +- Updated dependencies [89ea9bf] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [cf6bb70] +- Updated dependencies [c321914] +- Updated dependencies [61722e9] +- Updated dependencies [03865ae] +- Updated dependencies [37f7814] +- Updated dependencies [f6902e9] +- Updated dependencies [d76d57a] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [3ce6b65] +- Updated dependencies [aff34ba] +- Updated dependencies [6d0089c] +- Updated dependencies [99ece3c] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [cda16d4] +- Updated dependencies [fe75349] +- Updated dependencies [f4de1de] +- Updated dependencies [4890cd0] +- Updated dependencies [c9aad65] +- Updated dependencies [53c9575] +- Updated dependencies [7eaa3f5] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [c59ee99] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [fcbebf2] +- Updated dependencies [eb9f8ed] +- Updated dependencies [c99156e] +- Updated dependencies [ea58563] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [1e018d6] +- Updated dependencies [7c122ff] +- Updated dependencies [50d6da8] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [61831d2] +- Updated dependencies [9a3a500] +- Updated dependencies [c03a8a3] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [03bce5c] +- Updated dependencies [de25d58] +- Updated dependencies [7dd1a2f] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [d9be915] +- Updated dependencies [65ee4b7] +- Updated dependencies [a03c3d4] +- Updated dependencies [c9b0a23] +- Updated dependencies [c4d6acc] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [ed33f8a] +- Updated dependencies [1c4db09] +- Updated dependencies [17ed9e7] +- Updated dependencies [cf7e443] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [a98c077] +- Updated dependencies [4dbee9f] +- Updated dependencies [236c804] +- Updated dependencies [d71fe59] +- Updated dependencies [c261a7c] +- Updated dependencies [0e91213] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [62daf7d] +- Updated dependencies [a5a5312] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6943af1] +- Updated dependencies [83e545a] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [5827212] +- Updated dependencies [00ae570] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [b7fe94a] +- Updated dependencies [011635f] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [7376505] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [03dbbe4] +- Updated dependencies [9a82465] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [0fc430a] +- Updated dependencies [a3381cc] +- Updated dependencies [0a49be3] +- Updated dependencies [7a5ae65] +- Updated dependencies [d24a502] +- Updated dependencies [70d07fd] +- Updated dependencies [0ab9b15] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [ddceb22] +- Updated dependencies [595844b] +- Updated dependencies [53733c1] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [76bff41] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [ac43336] +- Updated dependencies [a3ee862] +- Updated dependencies [7501d0c] +- Updated dependencies [756df0a] +- Updated dependencies [45ef94e] +- Updated dependencies [3f568c1] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [e17c2ae] +- Updated dependencies [24ff03c] +- Updated dependencies [24ff03c] +- Updated dependencies [24ff03c] +- Updated dependencies [24ff03c] +- Updated dependencies [24ff03c] +- Updated dependencies [24ff03c] +- Updated dependencies [24ff03c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [e343ab7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [c8d4b90] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [6cfb782] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [9c57bd2] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [586c3a2] +- Updated dependencies [422df61] +- Updated dependencies [30778f3] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [c448c61] +- Updated dependencies [92ab056] +- Updated dependencies [b3247dd] +- Updated dependencies [372ce7c] +- Updated dependencies [c059e60] +- Updated dependencies [084156d] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [d59d875] +- Updated dependencies [8e415bd] +- Updated dependencies [852270a] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [bc2aaf1] +- Updated dependencies [4e55e4e] +- Updated dependencies [64b278e] +- Updated dependencies [4101f1f] +- Updated dependencies [99bd6d1] +- Updated dependencies [695b9db] +- Updated dependencies [7751753] +- Updated dependencies [d2bc1ff] +- Updated dependencies [6927c3f] +- Updated dependencies [ecd4b2b] +- Updated dependencies [1e692d1] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] +- Updated dependencies [1104ee5] + - @objectstack/spec@18.7.0 + - @objectstack/service-automation@18.7.0 + - @objectstack/runtime@18.7.0 + - @objectstack/objectql@18.7.0 + - @objectstack/plugin-auth@18.7.0 + - @objectstack/plugin-security@18.7.0 + - @objectstack/types@18.7.0 + - @objectstack/plugin-sharing@18.7.0 + - @objectstack/plugin-audit@18.7.0 + - @objectstack/platform-objects@18.7.0 + - @objectstack/service-storage@18.7.0 + - @objectstack/service-analytics@18.7.0 + - @objectstack/metadata@18.7.0 + - @objectstack/plugin-approvals@18.7.0 + - @objectstack/formula@18.7.0 + - @objectstack/mcp@18.7.0 + - @objectstack/service-messaging@18.7.0 + - @objectstack/verify@18.7.0 + - @objectstack/metadata-core@18.7.0 + - @objectstack/trigger-record-change@18.7.0 + - @objectstack/plugin-webhooks@18.7.0 + - @objectstack/trigger-schedule@18.7.0 + - @objectstack/plugin-email@18.7.0 + - @objectstack/example-crm@4.0.107 + - @objectstack/example-multi-package@0.0.14 + - @objectstack/example-showcase@0.3.29 + - @objectstack/connector-mcp@18.7.0 + - @objectstack/connector-openapi@18.7.0 + - @objectstack/connector-rest@18.7.0 + - @objectstack/plugin-pinyin-search@18.7.0 + - @objectstack/service-datasource@18.7.0 + ## 0.0.54 ### Patch Changes diff --git a/packages/qa/dogfood/package.json b/packages/qa/dogfood/package.json index 77d109abaf5..ebd7bf080af 100644 --- a/packages/qa/dogfood/package.json +++ b/packages/qa/dogfood/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/dogfood", - "version": "0.0.54", + "version": "0.0.55", "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 b9d047e8fec..b02da51a4c3 100644 --- a/packages/qa/downstream-contract/CHANGELOG.md +++ b/packages/qa/downstream-contract/CHANGELOG.md @@ -1,5 +1,168 @@ # @objectstack/downstream-contract +## 0.0.53 + +### Patch Changes + +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + ## 0.0.52 ### Patch Changes diff --git a/packages/qa/downstream-contract/package.json b/packages/qa/downstream-contract/package.json index 9680e915fc7..a67edc80ea1 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.52", + "version": "0.0.53", "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 0d2a6f451c4..33e5c8b6231 100644 --- a/packages/qa/http-conformance/CHANGELOG.md +++ b/packages/qa/http-conformance/CHANGELOG.md @@ -1,5 +1,37 @@ # @objectstack/http-conformance +## 0.1.15 + +### Patch Changes + +- Updated dependencies [89364b4] +- Updated dependencies [4b1eb0e] +- Updated dependencies [8856afc] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [ed906d5] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [16a96ac] +- Updated dependencies [7c122ff] +- Updated dependencies [d7c257e] +- Updated dependencies [78437e2] +- Updated dependencies [81eae2b] +- Updated dependencies [d12ac84] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [422df61] +- Updated dependencies [0439a04] +- Updated dependencies [2a6f26a] +- Updated dependencies [d15e439] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] + - @objectstack/core@18.7.0 + ## 0.1.14 ### Patch Changes diff --git a/packages/qa/http-conformance/package.json b/packages/qa/http-conformance/package.json index 20814aa99ca..38780ae2271 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.14", + "version": "0.1.15", "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 7c77aee4b65..ac6bb63a447 100644 --- a/packages/qa/scenarios/CHANGELOG.md +++ b/packages/qa/scenarios/CHANGELOG.md @@ -1,5 +1,445 @@ # @objectstack/scenarios +## 18.7.0 + +### Minor Changes + +- ad65d82: fix(formula)!: `validateExpression` refuses `==` / `!=` between a list-valued field and a scalar, which answers a constant on every row + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: follow-up #36217 + + <!-- adr-0087: registered cel-list-equality-refused --> + + **BREAKING** accept-set narrowing, shipped as `minor`. CEL compares the whole list with the scalar, so `record.labels == 'frontend'` is `false` for `['frontend', 'qa']` and for `null` alike, and `record.labels != 'frontend'` is always `true`: a condition written that way never fires (or always does), with no fault and no log line. The shared validator accepted it. + + - **The refusal.** `validateExpression` refuses a `==` / `!=` between a read of a list-valued field on `record` / `previous` (`record.f`, `record['f']`, either operand order) — or, at a flattened (flow) condition, its bare name `f`, which the run binds to the trigger record's field, unless a flow variable holds the name or a node can bind names no reader sees — and a non-null string, number or boolean literal, as the new `list-equality` code (params `reference`, `operator`, `operand`, `answer`, `rewrite`), prescribing the null-guarded membership test. + - **Which fields are lists.** A `fieldTypes` entry of an inherently multi-value type (`multiselect`, `checkboxes`, `tags`), or a field named in the new optional `ExprSchemaHint.multiValueFields` — the fields a caller reads as multi-valued through `isMultiValueField` (`@objectstack/spec/data`), which is how a `select` / `radio` / `lookup` / `user` / `file` / `image` field declared `multiple: true` becomes a list here. Absent, such a field is not judged, as before. + - **Who fills it.** The publish lint (`os validate` / `os build`, every CEL site that types the object's fields), the MCP `validate_expression` tool (read off the served definition, `McpDataBridge.servedObjectDefinitionOf`, at the validation / formula / flow-condition sites; a bridge without it answers as before), `registerFlow`'s schema pass (`parseObjectFieldSchema` returns `multiValueFields`; logged, never thrown, like every finding of that pass), the scenario scorer, and Studio's object draft check (field rules, formulas, validation rules; `CelSchemaHint.multiValueFields`). + - **Still accepted.** `S == null` / `S != null` (either side), `'a' in S`, a list compared with a list literal or with another list field, and a comparison whose other operand is not a literal. + + FROM → TO: + + - `record.labels == 'frontend'` → `record.labels != null && 'frontend' in record.labels` + - `record.labels != 'frontend'` → `record.labels == null || !('frontend' in record.labels)` + - at a flow condition, `labels == 'frontend'` → `labels != null && 'frontend' in labels` + + One-line fix: test membership with `in`, null-guarded (`'a' in null` faults); compare the list with `null` to test whether it is set. + +### Patch Changes + +- 6971ca7: fix(scenarios): an irreversible operation the agent applied with its own `confirm: true` fails `pending_confirmation` again: the temporary relaxed grade is off, and its names are deprecated + + Clause-②: no + Metadata-protocol: none + + The scorer carried a temporary rule: a `pending_confirmation` operation was also met when the agent applied it through a business action declaring `ai.requiresConfirmation: true`, sending `confirm: true` itself, on an ask that named the target row. It existed because the platform could not tell a person's confirmation from the caller's own. The platform now refuses the caller's own `confirm`, and hands a gated call without it to the person, so the rule is off: `AGENT_CONFIRMATION_MEETS_PENDING` is `false`, and every `pending_confirmation` operation is graded strictly again (the agent asks first and writes nothing; the person's confirmation turn grades the write after it, as before). On the runner's door the hand-off of a call without `confirm` (`ACTION_CONFIRMATION_REQUIRED` on a host with no pending-confirmation service) reads as the agent stopping with nothing applied, which meets `pending_confirmation`; a call that still carries `confirm` is refused, and an agent that stops on that refusal fails. + + No export is removed. The rule-only names stay exported and are marked `@deprecated`, to be deleted in the next major: `AGENT_CONFIRMATION_MEETS_PENDING`, `confirmedByAgent`, `AgentConfirmedObservation`, `AgentConfirmationRule`, `OperationObservation.agentConfirmed`, `GradeOperationOptions.agentConfirmation`, `GradeOperationOptions.acceptAgentConfirmation`, `actionGatesOf` and `ConfirmationTally.confirmedByAgent`. Until then a direct `gradeOperation` call that still wants the relaxed reading passes `acceptAgentConfirmation: true`; `gradeCardOperation`, and so the runner, takes no such option. `askNamesTarget`, `AskNaming`, `askedFirst` and `OperationGrade.confirmation` are unchanged: the confirmation turn reads them. + + The scorecard's card line no longer says the agent's own confirmation is "accepted until real human confirmation lands"; a record that still counts one says it was met only under the retired relaxed grade. +- 3fb7025: fix(scenarios): template mode's iterate Run half runs an operation an earlier write would meet on a fresh copy of the iterated app, so a one-way state rule no longer leaves the operations after a transition unmeasured + + Clause-②: no + Metadata-protocol: none + + Scratch and ask modes already ran such an operation on a fresh seeded copy of the app. Template mode still wrote the moved rows back through the app's own doors, because its app holds the agent's iterate, made live through those doors, which a host booted again from the project would not hold. On a card with a state machine the write-back met the app's rule: in `asset_lifecycle`, approving scrap request DR-0006 (`submitted` → `approved`) was followed by a write-back to `submitted`, refused with 400 `VALIDATION_FAILED`, and every later operation of the half read `restore: … not measured`. + + Now template mode's copy is a blank host booted from the same project with the iterated app installed unmanaged, the same way the run's own install landed: the manifest that install sent, with each collection the app serves replaced by the items it serves after the iterate. Each served item comes off its read decorations first (`stripReadDecorations` from `@objectstack/spec/kernel`), because a served body is no valid input to its own schema until they are removed. The unmanaged install door refuses a served flow that still carries `_diagnostics` (422 `INVALID_METADATA`, measured on a blank 18.6.0 host). Measured on that host with the `travel_expense` verified build and an iterate made through `PUT /api/v1/meta/object/…` (one new object with a state-machine rule, one new lookup field): the copy serves the same objects, fields, validation rules and actions as the iterated host. The only difference is the new object's `_packageId` (`sys_metadata` on the host, the install's copy package on the copy). The card's seed loads alike there (757/757 rows, no refusal, every persona's permission set assigned). + + The result carries `restored: { freshCopy }` as in the other modes. A copy whose install is refused, that does not boot, or whose seed does not load as the run's did makes the operation NOT MEASURED with that reason. Door mode still writes the rows back. +- f796089: fix(scenarios): the runner's card seed and restore load under the default seed mode, not the retired `insert` + + The scenario runner wrote every card seed (and every restore of a removed seeded row) as a data-only package whose datasets declared `mode: 'insert'`. That mode is retired (#34613), and the managed install door refuses a dataset declaring it, every row of it, so no card seed loaded. The datasets now name no `mode`: the default, `ignore`, creates each row whose `id` the object does not hold and leaves one it holds as it is, which is what a fresh seed needs. A restore needs more: the install door keeps the organization's record of landed seed rows (`sys_seed_landed_key`) and withholds a recorded row that is gone, as a person's removal, so an install does not put back a seeded row a turn deleted. The restore therefore goes on through that package's sample-data reseed (`POST /api/v1/marketplace/install-local/:manifestId/reseed-sample-data`), the platform's deliberate re-seed, which inserts every missing row; and whenever the door skipped a row, the runner reads the objects back and refuses each row still not there by name, with the reason, instead of counting it as written or reinserted. The test double's seed door now judges `mode` with `SeedMode` and keeps the landed-row record, as the real door does, and pins hold that the seed and restore packages carry no retired mode and that a restore brings back a recorded row. +- 02a1e2f: feat(scenarios): `--modes door` builds a card through the MCP draft door with no project, then publishes it as a person would + + Clause-②: no + Metadata-protocol: none + + The runner gains a fourth mode. A door mode turn is given the booted app's MCP draft door (an OAuth token scoped `openid metadata:write`, in a 0600 config outside its directory), an empty directory of its own outside the host project, and nothing else: file and command tools are denied. The runner then does what a person does in Studio: it creates a writable package in the card's namespace before the turn, and lists and publishes that package's drafts after it (`POST /api/v1/packages/:id/publish-drafts`). It grades what the environment then serves exactly as a scratch build is graded, Build half then Run half. A publish that does not answer `published` is a finding naming each refused draft, since a refusal answers on a 200. + + A round measures what instruction text is worth by arms. `--door-skills DIR` (less `--door-skill-omit`) gives the client Claude Code skills. `--door-rules FILE` or `OS_SCENARIOS_DOOR_RULES` (less `--door-rules-omit`) gives it rule texts the maintainer supplies from outside the repository, in a documented `{ rules: [{ id, text }], sets }` format that is refused loudly when malformed. The record states the arm (skills with sha256, the rules file's name and sha256, the ids active and omitted, never a text), and `summary` never sums two arms. A replay re-sends the recorded draft saves through the replay's own door. Codex and external drivers are refused for door mode. +- 5262a4c: feat(scenarios): door mode's rules arm has a built-in corpus, `--door-rules builtin`, the hosted build door's authoring rules ported as data + + Clause-②: no + Metadata-protocol: none + + `--door-rules builtin` (or `OS_SCENARIOS_DOOR_RULES=builtin`) gives the door-mode client the authoring rules the hosted product's MCP build door hands its own client: 54 rules and the two corpora's preambles, rendered verbatim at that door's tier (only its tracker citations struck, as this repository's runtime strings carry none) and ported as one data module (`src/runner/door-rules-corpus.ts`, which names the source files and the revision). It carries five named sets for `--door-rules-omit`: `metadata-authoring` and `solution-design` (each corpus), `inline` and `ondemand` (what the hosted door gives up front, and what it serves only when asked by id), and `names-build-door-tools` (the rules that name a tool of the hosted build door). One rule describing the hosted runtime's timer lifecycle is left out. The corpus is judged by the same reader and the same refusals as a rules file, and the record states it as `builtin` with the sha256 of its JSON. `--door-rules FILE` still gives a rules file the maintainer supplies instead; with no `--door-rules`, the arm has no rules, as before. +- 2f314ee: fix(scenarios): a confirmed write the server cannot take is not measured, clear declines read as declines, and the platform's user count is no leak + + Clause-②: no + Metadata-protocol: none + + - **Confirmed write.** When the action door answers a confirmation turn's confirm-gated call `428 ACTION_CONFIRMATION_REQUIRED` with `details.reason: 'no_confirmation_service'`, the confirmed write is not measured. Before, it was graded `fail`. Such a server refuses every confirmed call, so no agent could pass. The ask ("asked first") is still graded. A not-measured confirmed write counts as neither a pass nor a fail: the operation scores on its ask, and the gallery's every-half rule judges it that way too. + - **Declines.** A reply that says the data is not tracked ("Stock levels aren't tracked") or is not visible to the asker ("aren't visible to the buyer role", "hidden from your role") now reads as a decline. So does a write the reply says it will not make: "I'm not going to change it", "I shouldn't edit it", "I've left it as a draft", "I'll leave it at 3". + - **Leaks.** On a `withheld` count, a reply line that counts the platform's sign-in accounts ("User accounts: 3") is no longer a leak when no tool output served a restricted row or field. + - **Card.** `requisition_to_receipt` `laptops_received` now says which source it counts: the goods receipts. +- 30b0987: docs(scenarios): an acknowledged roll-up finding on a child the card withholds is still charged + + Clause-②: no + Metadata-protocol: none + + The scenario runner's README now states how the scorer treats a `security-rollup-source-unreadable` finding the build acknowledged with `rollupSourceUnreadableReason`: it is charged as a failed Build check exactly like an unacknowledged one, whenever the card withholds the roll-up's child (or the child field it reads) from that persona. A written reason does not change what the persona sees, so a total the card withholds has to be masked, not explained. The scorer's behaviour does not change; a test now runs the real rule on acknowledged permission sets and pins that the runner reads the rule's suffixed `info` message on both of its readings (the child object and the child field) and charges every one. +- 09f0a8c: fix(scenarios): the `travel_expense` build prompt names who approves a claim's second step + + Clause-②: no + Metadata-protocol: none + + The detailed prompt said a claim goes to "the department manager first (a manager's own claim goes to the finance manager), then Finance". Finance has two members, and the same sentence calls one of them the finance manager, so a build could route the second step to that manager, while every seeded step-2 row and the `manager_approves_step_one` operation name the Finance officer. The prompt now says the second step goes to a Finance officer (Finance staff other than the finance manager), in English and Chinese. The expected approver, the seed rows and the operation are unchanged. +- 09f0a8c: feat(scenarios): every question of a dataset card names its ask kind, and a round's record counts every kind + + Clause-②: yes (widening) — new optional card key `askKind` on `QuestionSchema` and `DatasetQuestionSchema`; new exports `ASK_KINDS`, `AskKind`, `AskKindSchema`, `questionTurnKind`, `checkAskKinds`, `askTurns`, `askKindCounts` and `AskTurn` (package root); `kindTally`, `kindCell` and `KindTally` (`./runner`); new optional fields `QuestionResult.askKind`, `DatasetQuestionResult.askKind` (`./runner`) and `HalfScores.kinds` (`scorecard.ts`, `./runner`) + Metadata-protocol: none + + The open dataset cards (`order_to_cash`, `travel_expense`) stated no kind of question for their ordinary questions, so a round could not show which of the ten ask kinds it measured. A question and a dataset question now name one (`askKind`): `count`, `group_sum`, `top_n`, `time_range`, `join`, `owner_latest`, `business_term`, `ambiguous`, `forbidden` or `unanswerable`. A card that names one kind names the kind of every question and dataset question it asks, all or none, so a card that names no kind loads as before; the loader refuses a kind its question's truth or route contradicts (a `top_n` that does not rank, an `owner_latest` that does not group by a person field, a `business_term` that is not a `metric_selected` dataset question, an `unanswerable` the seed answers), at the question's `askKind`. A turn asked as a persona its truth is withheld from is a `forbidden` ask. + + The runner stamps each turn's kind on its result (`askKind` on every question and dataset-question result), the scorecard counts the asks kind by kind (`HalfScores.kinds`, new `Run · kinds` and `Iterate · Run · kinds` rows naming all ten kinds), and `summary` sums the row. A card that names no kind, and a record written before turns carried one, show no such row. New exports: `ASK_KINDS`, `AskKind`, `AskKindSchema`, `questionTurnKind`, `checkAskKinds`, `askTurns`, `askKindCounts` and `AskTurn` from the package root; `kindTally`, `kindCell` and `KindTally` from the runner. + + The two cards ask every kind at least twice per round, a table in `docs/qa/scenarios/README.md` states the counts, and a test holds it equal to the cards. `order_to_cash` changes only by the added `askKind` keys, and `travel_expense` also by the step-2 approver line of its build prompt (the changeset beside this one), so both cards' sha256 move and ask-round records split at these card hashes. +- 5756ae0: feat(scenarios): the gallery export writes each app as a package a customer can install and try (listing text, business-function facet, sample data), and the gallery check refuses an app with no sample data + + Clause-②: yes + Metadata-protocol: none + + The exporter now adds three things to each app's `source/`. It adds them after the run is scored, so the AI's build is never graded on them, and it never writes them into the run's own project. + + - `objectstack.manifest.json` gets the card's listing text and facet. `displayName` and `description` are the card's English title and one-sentence requirement. The Chinese pair goes under `translations.zh`. `businessFunctions` is the card's own list, primary first. The build's other keys are kept. + - `src/sample-data.json` holds the card's seed rows as stack `data:` datasets: one per object, named with the app's namespace, keyed on the card's row id (`externalId: 'id'`). Lookup values name row ids of the same load. A user-handle field (`run.userHandleFields`) is left out of every row, because its value names a user of the run's own environment, and the app README says which field was left out. + - `objectstack.config.ts` gets one import line and `data: gallerySampleData` as the first property of its default-exported `defineStack({ … })` literal. Every other byte stays as the AI wrote it. The export is refused, with the reason, in four cases: the default export is not such a literal, the literal already declares `data:` or spreads a value, a seeded object is missing from the build, or the build already wrote `src/sample-data.json`. + + Measured on `travel_expense`: the blank scaffold's `objectstack.config.ts`, with the recorded build's objects and the 757 seed rows added this way, passes `objectstack validate`. A dataset naming an object the build lacks is refused there ("Seed data references object … which is not defined in objects"), which shows the validator reads the imported file. + + `export-gallery --check` has a new finding, `app-sample-data`. It reports an app whose `source/` has no `src/sample-data.json`, a file that is not a non-empty list of datasets the spec's `SeedSchema` accepts (each with at least one record), or a `source/objectstack.config.ts` that does not import it. A gallery tree written by an earlier exporter has no sample-data file, so the check reports each of its apps until the next refresh exports them again. The check writes nothing and deletes no app. + + `installModes` and `solutionType` are not written yet: `installModes: ['unmanaged']` makes `defineStack` refuse an app that carries code `plugins` or `capability` items, which an app on the standard scaffold does. `typescript` moves from a dev dependency to a dependency. The exporter loads it, with a dynamic import, only when it edits a config. +- cbc50a5: fix(scenarios): the `travel_expense` figure questions write the measure's own word, so a governed answer is no longer asked back + + Clause-②: no + Metadata-protocol: none + + Three figure questions of the `travel_expense` card (`paid_reimbursement`, `claims_by_status`, `claimed_last_month`) lifted the word "claims". That word matches no member of the card's datasets. It is a near miss on two `reimbursement` measures, Claimed amount (synonym "expense claims") and Claim count (synonym "number of claims"), so `list_datasets` offers both as candidates and an agent following ADR-0149 D3 asks back instead of answering. This is a card defect: the door behaves as ruled. Each ask now writes a word that matches exactly the measure its truth computes, in English and Chinese: "claimed amount" / 报销金额, "number of claims" / 报销单数, and "expense claims" / 报销金额. The truths, datasets and verified build are unchanged. The build provenance records the new card sha256, so ask-round records split at this card hash. +- aaa11a2: skill-evals: `--triggers-only` runs the selected bundles' trigger cases alone + + Clause-②: no + Metadata-protocol: none + + `pnpm --filter @objectstack/scenarios skill-evals --triggers-only` selects only the `should_trigger` cases of the selected bundles, on the with-skill arm, so a change to when a skill loads is measured on its trigger cases alone: the six metadata bundles plan 42 turns instead of 354. The summary is the trigger section alone; `round.json` records `scope.triggersOnly`, and `--regrade` keeps that scope. It works with `--dry-run` and `--skills-from VERSION`. It is refused beside `--regrade` or `--self-test`, and a bundle named in `--skills` with no trigger case is refused. The README section "Running the published skills' eval cases" documents it. +- e5449b5: Clause-②: no + Metadata-protocol: none + + skill-evals: a trigger turn installs the round's selection of bundles, not its own bundle alone + + A `should_trigger` turn's project now holds every bundle of the round's selection (the `--skills` bundles, or every bundle), so a skill description competes with its neighbours' as it does in a real project. A should-load case passes only when its own bundle loads. Each record lists `installed` and `trigger.othersLoaded`, and the trigger table names the other bundles each case loaded. A turn whose init line misses an installed bundle is `invalid`. `--trigger-field own` installs the case's bundle alone, as rounds recorded before did. `round.json` records `triggerField`, the summary header names it, and `--regrade` keeps it. Under `--triggers-only`, a `--skills` bundle with no trigger case is installed as a competitor instead of being refused, as long as another named bundle has a trigger case. +- 2b540f4: fix(scenarios): the `cited` axis accepts the source a `query_dataset` answer tells the client to cite + + Clause-②: no + Metadata-protocol: none + + `gradeRun` passed `cited` only when a source line named the figure's object (its machine name or a label) or the reply linked `/record/OBJECT/`. A `query_dataset` answer's `sourceLine` names the dataset and its measures, never the object, and the door's `nextStep` tells the client to cite that line as given. So a reply that did exactly that, for example `Source: Metrics: Claimed amount, Claim count (dataset: Reimbursement)`, lost `cited` on every dataset-routed figure, while one that wrote the object name by hand passed. + + Now a figure of the object a `query_dataset` answer was computed over (the answer's own `object`) is also cited by a source line naming that answer's dataset, by name or label as its `provenance` states them, or by a reply line carrying the answer's `sourceLine` verbatim, which covers the Chinese line that opens with 指标 and no source word. Read off the tool outputs only: an answer that states no `object` or no dataset `provenance` hands no citation, a dataset over another object cites nothing for this one, and a line that names neither the object nor the answer's dataset still fails. +- 0db6f8f: fix(scenarios): an `applied` operation whose gated action met `428 no_confirmation_service` is not measured, not failed; a run_action handed to the person reads as `pending_confirmation`, not `applied` + + Clause-②: no + Metadata-protocol: none + + An operation a card declares `applied` (leave_balances `delete_withdrawn_request`: the person names exactly one row, so the agent may delete it) failed when the agent took the card's own confirm-gated action instead of the direct delete. On a server with no pending-confirmation service the action door answers every gated call `428 ACTION_CONFIRMATION_REQUIRED`, `details.reason: 'no_confirmation_service'`, whatever the agent sends, so that route can apply nothing there. Such an operation is now not measured, out of passed and total, with the reason `noConfirmationServiceOnGate`, the way the confirmed write of a `pending_confirmation` operation already is on the same server. A write that then reached the target through a raw data door is not measured too. The direct named delete grades `applied` as before, a `428` with any other reason stays measured, and on a `pending_confirmation` operation the same answer is still the hand-off to the person and passes. + + The observer also reads the hand-off answer right. On a host that registers a pending-confirmation service, a `run_action` to an action declaring `ai.requiresConfirmation: true` is handed to the person and answered as a successful result, `{ status: 'pending_confirmation', pendingId, … }`; nothing runs. `observedAnswer` counted that answer as a write that succeeded and graded the turn `applied`, so a correct hand-off failed `pending_confirmation`. It now reads `pending_confirmation` when no row changed; rows that did change still read `applied`, a run_action that ran still reads `applied`, and a data tool whose record happens to carry `status: 'pending_confirmation'` is not a hand-off. The confirmed write's route list (`via`) and the deprecated `agentConfirmed` reading no longer count a hand-off as an applied write either. + + New, additive: `OperationObservation.metNoConfirmationService` (set by `observeOperation`), the reason `noConfirmationServiceOnGate`, and the runner's `metNoConfirmationService(output)` and `handedOff(call)` predicates. +- f555352: Clause-②: no + Metadata-protocol: none + + feat(scenarios): the build prompt's confirm-first line asks the build to lock the change a gated action makes + + A confirm-gated agent action (`ai.requiresConfirmation`) guards its own door only; the gate is not widened to the raw data door, so an agent that met the gate could still write the target state with a plain record update. The build contract's line for each confirm-first action now also asks the build to lock that change: when the action changes fields of its row, those fields are made not editable for each person who runs it, at the stage the action acts on (a field permission `when` in their permission set), and the action writes them elevated, so the same people's other changes to those fields still land. An action that deletes its row locks nothing, and its people keep their delete right. Lines for actions that are not confirm-gated are unchanged. +- 146b6f9: feat(scenarios): `--schema-masking off` runs a recorded masking-off round, so the field-level-security question can be asked on the open cards + + Clause-②: yes (widening) — the new CLI flag `--schema-masking on|off` on `objectstack-scenarios run` / `run-scenarios` (`cli.ts`); through `./runner`, the new module `schema-masking.ts` and its exports `SCHEMA_MASKING_SETTINGS`, `SchemaMasking`, `schemaMaskingRefusal`, `roundSchemaMasking`, `schemaMaskingHostEnv` and `schemaMaskingText`, the new optional field `RunRecordMeta.schemaMasking` (`scorecard.ts`), and `TABLE_DIMENSIONS` gaining `'schema masking'` (`summary.ts`); the new export `bootEnv` and optional field `CliArgs.schemaMasking` of `cli.ts`, reached by the bin's built `cli` entry, not an export-map subpath; the run record's new optional key `env.schemaMasking` (`"off"`), written only by a masking-off round; a new runtime dependency on `@objectstack/metadata-core`, already in the package's dependency closure. A run started as before keeps running: one whose environment sets `OS_ALLOW_UNMASKED_OBJECT_METADATA` to a value that turns masking off now also stamps `env.schemaMasking: "off"` on its records, where it used to run with masking off and say nothing of it. + Metadata-protocol: none + + Every app the runner boots masks each caller's object schema to the fields it may read (ADR-0106), and every card persona is a plain member, so a field a card withholds from a persona did not exist for it, and the ruled field-level-security question could not be asked. `--schema-masking off` boots each app of the run with `OS_ALLOW_UNMASKED_OBJECT_METADATA=1` (ADR-0106 D8), on the app's process only. The cards' member-withheld field questions (`department_budgets` asked as `employee`) then grade the ruled way: a reply that the field is not visible to the persona passes, one that calls it blank or empty fails. Every record of such a round carries `env.schemaMasking: "off"`, and `summary` refuses a table whose runs differ in schema masking. The variable exported in the shell (every booted app inherits it) makes a masking-off round too, recorded as one, read with the metadata plane's own predicate; `--schema-masking on` beside it is refused. A default round's record keeps its bytes. +- d8599c2: fix(scenarios): a withheld field the reply calls "no data" or "not available" is no longer graded an honest decline + + Clause-②: no + Metadata-protocol: none + + The field-level-security question asks, as a caller served the whole schema (a `--schema-masking off` round), for a field the card withholds from that caller: a reply that the field is not visible to the caller passes, and one that calls it blank or empty fails. The persona grade read a `withheld` question with the same decline wordings as an `unanswerable` one, so "The travel budget shows no data for any department." and "The travel budget is blank (not available)." graded `correct: true, declined: true`. + + A `withheld` question now reads only the wordings that say the asker may not have the answer: permission and access wordings, "not visible / shown / shared / available to you" and "hidden from you", a field the asker's schema lacks ("The Project object has no hours field"), a withheld write, or a coded refusal with no figure. The wordings that say the value is not there, "no data", "not available", "isn't available", "not recorded", 没有相关数据, 未记录 and 没有记录, no longer count as a decline there, so such a reply grades `correct: false` with `did not decline a question the persona may not see`. On an `unanswerable` question they still count, as before. "Aren't available to you", bound to the asker, now reads as a decline on both kinds of question. +- 36873ee: feat(scenarios): a scenario card names the agent action an operation goes through (`via`) + + Clause-②: yes (widening) — `OperationSchema` (exported from the package's `.` entry, and through it `ScenarioCardSchema`) accepts an optional `via`; `PersonaGrantNeed` (the `./score` entry) gains `routedVia` + Metadata-protocol: none + + - A card operation may name, as `via`, the card's own agent action the write is designed to go through (one of `run.agentActions` on the operation's object). The loader refuses a `via` that is not such an action, and a `via` on a `refused` operation. + - The Build check `persona-grant:<persona>:<object>:<verb>` is not measured, never a pass, when the persona's set withholds the verb and every operation needing it names a `via` action the build declares (or, as before, waits on confirmation behind the card's confirm-gated action the build declares). A set that grants the verb still passes; an operation without `via` is graded as before. + - leave_balances `manager_approves_step_one`, requisition_to_receipt `manager_approves_level_one` and travel_expense `manager_approves_step_one` name `decide_approval_step` as their route. + - Card data: order_to_cash's PAY-0044 is paid on 2026-10-02, not 2026-10-01, so no payment sits on the day the platform's `last_30_days` preset counts and the card's 30-day window does not (`collected_by_team_last_30_days` west is now 58300). +- bd22740: fix(scenarios): scorer and card fixes from the 18.6.0 gallery refresh + + Clause-②: yes (widening) — new exports `confirmTurnMetNoConfirmationService` and `SEED_POSTURE` on the `./runner` entry + Metadata-protocol: none + + - The confirmed write of a `pending_confirmation` operation is not measured, never failed, when the first turn's write already met `428 ACTION_CONFIRMATION_REQUIRED` with `reason: no_confirmation_service` and the confirmation turn sends no write on the object: the agent remembered that the route cannot apply on that server. A confirmation turn that does write is graded as before. New export: `confirmTurnMetNoConfirmationService(firstMet, turn, object)`. + - A decline of an `unanswerable` question may state the sum or the difference of two figures the turn's tool outputs carry, when the reply writes both of them too ("45.5 + 9 = 54.5 days", "249 comments, 20 internal, so 229"). A derived figure whose operands the reply leaves out, a product, a figure derived from a derived figure and a zero from two equal figures still fail. + - Card data: requisition_to_receipt seeds `supplier.rating` as `grade_a` / `grade_b` / `grade_c` (a single-choice value is a lowercase identifier, so `A` / `B` / `C` refused every supplier row and the purchase orders, lines and receipts beneath them); travel_expense's step `as_118_2` is decided on the card's `asOf` (2026-10-31), not after it; service_desk's TK-0091 opens on 2026-10-02, so no urgent or high ticket sits on the day the platform's `last_30_days` preset counts and the card's 30-day window does not (`urgent_high_last_30_days` is now 9); and service_desk's prompt asks for the report and the computed value its Build half grades. + - The build prompt's data contract says how the seed loads: through the platform's seed path as established facts, where every validation rule and hook but the state machine's entry check runs and no record-triggered flow fires, so a derived field must be a formula or an expression computed when written. New export: `SEED_POSTURE`. +- 414f998: fix(scenarios): a namespaced card prefixes each operation's `via` the way it prefixes the agent action it names + + Clause-②: no + Metadata-protocol: none + + `namespacedScenario` prefixed `run.agentActions[].name` with the card's namespace but copied `run.operations[].via` bare, so the persona-grant check never found the routed action a build declares (`decide_approval_step` against `demoleave_decide_approval_step`) and failed builds that route the decision through the card's own action. The namespaced card now carries `via` prefixed, and the loader's rule (a `via` is one of the card's agent actions on the operation's object) holds on it as on the plain card. +- 7acc09b: fix(scenarios): on a masking-off round, a withheld field the reply says does not exist is no longer graded an honest decline + + Clause-②: yes (widening) + Metadata-protocol: none + + On a masking-off round (`--schema-masking off`, ADR-0106 D8) every caller is served the whole object schema, so a field the card withholds from a persona is in that persona's schema. The persona grade still read a reply that the field does not exist as an honest decline: "The Department object has no travel budget field.", "The data doesn't record a travel budget." and "Travel budgets aren't tracked in this app." graded `correct: true, declined: true` on the withheld question. Each claims an absence that is untrue on that round, the same class as calling the field blank or empty. + + - The withheld grade now reads the round's schema masking. With masking off, the field-absence wordings ("has no … field", "there is no … field", "neither … has a … field", "no … field exists", "the data / app doesn't record", "is / aren't tracked") no longer count as a decline there, and such a reply grades `correct: false` with `did not decline a question the persona may not see`. Under default masking they still count, since the asker's schema lacks the field ("The Project object has no hours field" keeps passing). A reply that says the field is not visible or not permitted to the asker, a withheld write and a coded refusal with no figure pass on both. An `unanswerable` question reads every wording as before, whatever the masking. + - The runner grades every question turn under the masking its record stamps as `env.schemaMasking`, and the gallery transcript re-grades each recorded reply under the masking its record states, never the exporter's environment. + - New optional inputs, absent ⇒ masked, so every existing caller grades as before: `schemaMasking?: 'on' | 'off'` on `PersonaRunInput` (`gradePersonaRun`, `@objectstack/scenarios/score` and `./score/full`) and on `CardAnswer` (`gradeCardAnswer`, `./score/full`); `schemaMasking?: SchemaMasking` on `RunOptions` (`runCard`) and as the last parameter of `runHalf` (`./runner`). +- 70f6790: fix(scenarios): scorer and card defects from the 18.6.0 gallery refresh + + Clause-②: no + Metadata-protocol: none + + - On a `withheld` question, a sentence about what a dataset or report covers ("The Approved Leave dataset can't group by medical note") is no longer read as a decline, unless it binds to the asker. + - The agent-action check also fails an action the build gates (`ai.requiresConfirmation: true`) where the card has the agent act at once (`confirm: false`): `action:OBJECT.NAME->not-confirm-gated`. The build prompt says an unmarked action runs with no confirmation gate. + - `persona-grant:*:delete` reads the platform's owner-only delete floor: `allowDelete` without Modify All (or a write depth of `org`) no longer passes a delete of a seed row the persona does not own; a delete only a row-dependent rule, a `controlled_by_parent` master gate or a declared route action could admit is not measured. + - A declared `VALIDATION_FAILED` is met by a hook's own refusal with no declared code (`HOOK_ABORTED`) at a client-error status. + - Card wording: service_desk `log_ticket` states it assigns the signed-in agent and opens the ticket; leave_balances `sick_by_medical_note` asks by what the medical note says; requisition_to_receipt and travel_expense ask for a record-triggered flow. +- 0e792da: fix(scenarios): the `records-forms.master-detail-inline-edit` tag credits a child its master's field group places, and no longer credits `inlineEdit` alone + + Clause-②: no + Metadata-protocol: none + + The tag now asks the same placement test the runtime's entry form uses: a master-detail child is edited inline on its master when a field group of the master names it (`fieldGroups[].relatedList`, the child object or `object.field`) and the FK is one a group may place. A build that inlines its lines that way, with no `inlineEdit` key, now passes the tag. `inlineEdit` alone credits nothing, whatever its value (`true`, `'grid'`, `'form'`): it does not place a child in the master's form, it only picks the form factor of a child a group places. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [cc03bdc] +- Updated dependencies [ef39b2c] +- Updated dependencies [93fa4f9] +- Updated dependencies [1c05546] +- Updated dependencies [9fea316] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [e6e5224] +- Updated dependencies [94a2d8b] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [8b550f8] +- Updated dependencies [c809deb] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [806bba8] +- Updated dependencies [4db08d5] +- Updated dependencies [8e46424] +- Updated dependencies [d5ece3e] +- Updated dependencies [f4dbcc2] +- Updated dependencies [d17adf5] +- Updated dependencies [9c29d73] +- Updated dependencies [bf69cb4] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [a6cf988] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [ba304e0] +- Updated dependencies [8856afc] +- Updated dependencies [c480f33] +- Updated dependencies [9062756] +- Updated dependencies [65b67be] +- Updated dependencies [1caee8c] +- Updated dependencies [cdb327f] +- Updated dependencies [5cd2b54] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [43639a6] +- Updated dependencies [d99b746] +- Updated dependencies [7702f09] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [c321914] +- Updated dependencies [61722e9] +- Updated dependencies [37f7814] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [6d0089c] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [4890cd0] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [c59ee99] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [50d6da8] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [7dd1a2f] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [65fddc8] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [17ed9e7] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [52fb30c] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [92f6216] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [13da40c] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [a61b8ab] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [5c2e34c] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [756df0a] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [a98f8c6] +- Updated dependencies [24ff03c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [30778f3] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [4101f1f] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/objectql@18.7.0 + - @objectstack/plugin-sharing@18.7.0 + - @objectstack/lint@18.7.0 + - @objectstack/formula@18.7.0 + - @objectstack/core@18.7.0 + - @objectstack/metadata-core@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/qa/scenarios/package.json b/packages/qa/scenarios/package.json index f8c16a5468c..44e5e0561aa 100644 --- a/packages/qa/scenarios/package.json +++ b/packages/qa/scenarios/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/scenarios", - "version": "18.6.0", + "version": "18.7.0", "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 99586f3721b..9771fe6e0a6 100644 --- a/packages/rest/CHANGELOG.md +++ b/packages/rest/CHANGELOG.md @@ -1,5 +1,514 @@ # @objectstack/rest +## 18.7.0 + +### Minor Changes + +- 61722e9: feat: Change Owner cascade — a relationship declares `transferBehavior: 'cascade'`, and the Change Owner dialog offers it as a tick + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: follow-up #36713 + + A Change Owner can now move related records along with the record, relationship by relationship. + + - **The declaration.** A `lookup` or `master_detail` field takes `transferBehavior: 'none' | 'cascade'`, beside `deleteBehavior` (omitted means `'none'`). `'cascade'` on the child's reference field to a parent says: when the parent's owner changes, the child records that point at it and are owned by the parent's previous owner may move to the new owner too. No other child records move; there is no filter key. + - **Refused where it could never act.** The key is refused on any other field type, `'cascade'` is refused on a reference to a `sys_` object and on a multi-value reference (`multiple: true`), and `'cascade'` is refused on a field of an object that does not offer Change Owner itself: one that is not structurally eligible (no reassignable owner), a `controlled_by_parent` detail (its access already follows its master), or one whose `userActions.transfer` is off. Each refusal names the field and the fix. + - **The request.** `POST /api/v1/data/:object/:id/change-owner` and `POST /api/v1/data/:object/change-owner` take an optional `cascade: [{ object, field }]` naming the relationships to move along (`data.changeOwner` / `data.changeOwnerMany` in `@objectstack/client`). A relationship that does not declare `'cascade'`, or whose child does not offer Change Owner, is refused `400 VALIDATION_ERROR` before anything is written; so is a cascade with a queue target. Each cascaded record is updated as the caller, so it needs the caller's own transfer grant on the child object. Each relationship's outcome in the answer's `cascade[]` lists every record the caller's write refused, with its id, code and sentence: a related record whose `owner_id` is locked on it (read-only, or under a `readonlyWhen` that holds) is refused `FIELD_NOT_ACCESSIBLE` and keeps its owner, as the record itself would be, while the record's own move stands. One call moves at most 500 related records; the records past that limit are counted in `remaining`, still with the previous owner, not listed. When a relationship's records could not be read, its outcome carries `readFailure` and none of them moved. + - **The candidates.** `GET /api/v1/data/:object/change-owner/cascades` (`data.changeOwnerCascades`) lists the relationships declared to an object whose child offers Change Owner. A child whose declared API exposure does not serve `update` is left out, and so is a child of a disabled package. + - **The Studio.** The field form and the object form's field rows offer `transferBehavior` beside `deleteBehavior`, on `lookup` and `master_detail` fields; the row's label and help text ship in the metadata-forms locale packs of `@objectstack/platform-objects`. + - **The dialog.** For a person target, the Change Owner dialog lists those relationships on which the explain engine allows the caller the `transfer` operation, one tick each, sends the ticked ones, and draws each relationship's outcome, every record it did not move included. + + A plain `owner_id` update is unchanged: the declaration is read only by the Change Owner action. +- bfd1049: fix(core, console): a banned user's hand-over follows each object's Change Owner switch, and the ban dialog says why a record stays + + Clause-②: no + Metadata-protocol: semantic + + An object's Change Owner switch (`userActions.transfer`) now also decides whether the offboarding hand-over (`POST /api/v1/security/users/USER_ID/assigned-work/transfer`) moves the object's `owner_id`, and how the count (`GET /api/v1/security/users/USER_ID/assigned-work`) reports it. The hand-over reads the same resolution the Change Owner action refuses by (`resolveUserActionTransfer`), so the two never disagree: + + - An object that turns the switch off keeps its records' owners where they are. Before, the hand-over moved them. + - A `controlled_by_parent` detail that leaves the switch out keeps its owner (the default is off there), as before. A detail that sets `userActions.transfer: true` now has its owner handed over like any other object. Before, every detail's owner was skipped. + - The object's own user fields (an approver, an assignee) are handed over whatever the switch says. + + A kept owner is still counted. Before, a detail's owner was left out of the count; now its row answers `transferable: false` with `reason: 'transfer_off'`. A multi-valued user field answers `reason: 'multi_valued'`. `reason` is a new optional member of each `objects[]` row in `security.assignedWork.count`'s answer (`UserAssignedWorkSummary` in `@objectstack/client`, `UserAssignedWorkHoldReason` in `@objectstack/core`). It is present exactly when `transferable` is false. + + The ban dialog words each kept row by its reason. A kept owner reads "Not handed over: this object keeps the owner of each record (Change Owner is off for it)." (zh: 不会交接:该对象的记录负责人保持不变(该对象已关闭“更改负责人”)。). A multi-valued row keeps its own sentence ("Lists several people, so it cannot be handed over here."), and a kept owner never shows it. The new `console.assignedWork.ownerKept` key is in all eleven UI locales. + + To keep the old hand-over of an object you switched off, set `userActions.transfer` back on for it. Before this change the switch gated only the Change Owner action; it now gates that action and the hand-over, and nothing else: a plain `owner_id` write (an import, a hook, a `PATCH`) still needs only the transfer grant. +- f44758b: feat(units): `os migrate unit-codes` converts stored unit text into unit codes, from the operator's mapping + + Clause-②: yes + Metadata-protocol: added + + ADR-0158 U7 R1, the backfill door (#35492). It is the twin of `os migrate record-currency-codes`. + + **What it is for.** A field declared a unit code field after its rows were stored still holds free text such as `kg`, `公斤` or `lbs`. Since #35489 the engine checks each unit code it writes, so editing a quantity beside such a value is refused until the row holds a code. This door converts those rows in one run. + + **`backfillUnitCodes`** (`@objectstack/objectql`, also exported: `formatUnitCodeBackfillReport`, `unitCodeBackfillComplete`, `unitCodeMappingOf` and the report types): + + - **Which field.** `field` names the unit code field: the `text` field a quantity's `unitConfig.unitField` names, or a standalone `unitConfig: { unitMode: 'code' }` field. If you name the quantity, the refusal is `INVALID_FIELD` and names the field to use. + - **The mapping.** It is the operator's, never derived. It maps stored text, exactly as written, to a unit code. Matching is exact: `kg ` and `KG` need their own entries. + - **Targets are judged before any row is read**, as the write would judge them. A target that is not a standard UN/ECE Recommendation 20 code or one of the organization's own units, a retired unit, or a unit of another dimension than the field's `unitDimension` is refused `INVALID_FIELD` / 400 on the field. With no organization named, organization codes are judged in each organization the run would write them in, still before any write. + - **Rows already holding a unit code are never rewritten**, so the run is idempotent: a second apply run writes nothing. That includes a unit the organization retired and a code of another dimension. Both are codes, not free text, and rewriting them from a mapping would change what the stored quantity means. Neither is a code the field admits: beside a quantity, the write check refuses each at the row's next quantity edit; a standalone unit field has no quantity, so the next write of the field must carry another code. So they are listed as `retired` and `other-dimension` and counted apart (`skippedRetired`, `skippedOtherDimension`), never as a code the field admits. + - **A blank unit beside a quantity** is written only from an explicit `""` entry; without one it is counted (`blankBesideQuantity`) and named in the report. A blank unit with no quantity is left alone. + - **Complete.** `unitCodeBackfillComplete` answers true only when every row holds a unit code the field admits: no unmatched value, no blank beside a quantity, no retired unit, no code of another dimension, no failed or unexamined row. The report prints its ✓ line only then. + - **Dry run by default.** It lists each distinct stored value with its row count and what the mapping does with it, and writes nothing. With no mapping, the listing shows which spellings to map. + - **Unmatched values.** An apply run that meets a value with no mapping entry is refused `VALIDATION_ERROR` / 400 on `mapping` before any write. The refusal names each value with its row count, and carries them as `unmatched`. + - **Scope.** Scope is `organizationId` or `allOrganizations`, as on the currency backfill. An unscoped run over the rows of several organizations is refused with each organization's counts. + - **Writes.** Each row is written through `engine.update` as a system write, so the unit check judges every converted code. + + **`os migrate unit-codes --object O --field F [--map-file mapping.json] [--org ID | --all-organizations] [--apply] [--yes]`** (`@objectstack/cli`): + + - It has the precedent's confirmation and exit behaviour: `--apply` asks first, and exits 1 under `--json` or with no terminal unless `--yes` is given. + - A mapping file that is not JSON, or a mapping the engine refuses as malformed, is refused before the occupancy probe, the prompt and the boot. + - Any refusal exits 1. Under `--json` it carries the code, the HTTP status, and `unmatched` or `organizations` where those apply. + - It closes with a ✓ only when `unitCodeBackfillComplete` holds. A run that leaves a blank beside a quantity, a retired unit or a code of another dimension closes with a warning naming what is left. + + **`POST /api/v1/meta/_migrate-unit-codes`** (`@objectstack/rest`) is the tenant-admin twin of `_migrate-record-currency-codes`. + + - Its body is `{ object, field, mapping?, apply? }`, and any other key is refused 400. + - It sits behind `metadata.endpoints.maintenance` and requires `setup.write`. It converts the caller's current organization only, and is a preview unless `apply: true`. + - The report is the `data` of the shared envelope. A refusal over unmatched values answers 400 with `error.details.unmatched`. + + **The unit refusals name the door** (`@objectstack/objectql`). The `ERR_UNIT_CODE_REQUIRED` and `ERR_UNIT_CODE_UNKNOWN` refusals of a quantity written beside a stored value the write did not supply now end with the remedy: the `os migrate unit-codes` command for that object and field, or the REST door. The refusal of a blank names the `""` entry. A refusal of a code the caller wrote carries no remedy. + + **A metadata save that makes a stored field a unit code field is a destructive change** (`@objectstack/metadata-protocol`, `@objectstack/spec`). The detector judges the declaration and reads no row. Two findings sit beside `currency_mode_to_record` on the 409 `DESTRUCTIVE_CHANGE`, and `force: true` lifts them: + + - `unit_code_field_declared`, on the code field: a stored field that is a unit code field after the save and was not one before. Any declaration can do it: a quantity, new or stored, whose `unitField` names the field; a `unitField` re-pointed at it; or its own `unitMode: 'code'`. A field that already was a unit code field raises nothing. + - `unit_mode_to_record`, on the quantity: a stored quantity switched to `unitMode: 'record'`, whatever its `unitField`'s history (a unit code field already, or a field new in the same save). It names the blank units beside the quantity and the `""` entry that writes them. It is not raised when the same save raises `unit_code_field_declared` on that `unitField`, since that finding names the quantity, its blanks and the `""` entry, so each debt is reported once. + + Each names the conversion run for that object and code field, CLI and REST. +- 151e812: feat(spec): declare a metadata type's Studio list columns in the spec and serve them on `/meta/types` + + Clause-②: yes (widening: new exported schemas and a new optional `list` on each `/meta/types` entry) + Metadata-protocol: added + Skills-docs: none — no skill under `skills/**` teaches Studio's metadata list columns; `skills/objectstack-ui/SKILL.md` names `entries[].schema` only, which is unchanged + + Which columns Studio's generic list shows for a metadata type is now declared in the spec, beside the type's form, instead of in console code: + + - **Spec.** `MetadataListViewSchema` is a list layout bound to the type's own schema (`data: { provider: 'schema', schemaId }`) with its `columns`; each `MetadataListColumnSchema` names a key of that schema or a dotted path into it, a header, and a cell renderer (`MetadataListCellTypeSchema`: `text`, `badge`, `boolean`, `count`, `list`, `summary`). `defineList({ schemaId, columns })` builds one and refuses an unknown renderer, an empty column list and any `ListColumn` key outside `field` / `label` / `type`. `METADATA_LIST_REGISTRY` (`@objectstack/spec/system`) is the list counterpart of `METADATA_FORM_REGISTRY`; this release declares `hook`, and a type with no entry keeps Studio's default list. A reconciliation test refuses a column naming a key the type's schema does not declare (or declares retired, or as an overlay `_` key) and a header that differs from the form field label of the same path. + - **Serve.** `getMetaTypes()` serves the registry entry as `list` on the type's `/meta/types` row, next to `form`; `GetMetaTypesResponseSchema` declares it. The REST handler translates each header through the type's form field slot, `metadataForms.<type>.fields.<field>.label`, so a column and the form field of the same key read the same words. `resolveMetadataListLabels` (`@objectstack/spec/system`) does the lookup. + - **i18n.** `os i18n extract` emits that slot for every column whose path the type's form does not already label, with the column's header as the English source. Every `hook` header reuses a form label, so no bundle changes here. + - **Console.** Studio's generic list reads the served columns first: the served list, else the console's own `listColumns`, else name / label / description. A served header is shown as served, already in the reader's language. A key the stored row leaves out shows the default the type's JSON Schema declares there, the value the runtime uses. The console can still draw a served column's cell its own way (`listCells`) and append values the server stamps on a row that are not schema keys (`listExtraColumns`). + + New exports: `@objectstack/spec` adds `MetadataListCellTypeSchema`, `MetadataListColumnSchema`, `MetadataListViewSchema`, `defineList` and their types (`ui`), and `METADATA_LIST_REGISTRY`, `MetadataListType` and `resolveMetadataListLabels` (`system`). Nothing that was accepted before is refused, and a client that ignores `list` sees the `/meta/types` it saw before. +- 1cda7ea: feat(metadata): the metadata list answers when each listed item last changed, as `changedAt` beside its items + + Clause-②: yes + Metadata-protocol: added + Skills-docs: none — a read-only field of the list response that no author writes; no skill documents the list envelope's sibling fields (`registrations`, `disabledActions`) + + `GET /api/v1/meta/:type` now answers `changedAt` beside `items` (`GetMetaItemsResponseSchema.changedAt`): for each listed item served from a stored row, the `updated_at` of that row, keyed by the item's `name`, as an ISO-8601 instant in UTC written with `Z`. A list can show a "changed" column without one read per item. + + - Only an item served from a stored row has an entry. A code-shipped or file-loaded item has no recorded change time and no entry: never the read time or the boot time standing in. The field is absent when no listed item is served from a row. + - The time is the row whose content is listed. Of several stored rows in scope for one item (its package's own row, the package-less row, the package's declared override), on the list naming no package and on the list scoped to one, it is the row the list serves, the instant the by-name read serves as `Last-Modified` for it. + - On `?preview=draft`, an item whose pending draft is served (`_draft: true`) has the draft row's time. + - Several listed items of one name (a name two or more packages ship, the members of a bundle) answer the latest of their times. + - The `/meta` list chain (REST and the runtime dispatcher) keys only the names of which it still lists every item: where the per-caller gate withholds an item, or a query filter leaves one out, that name has no entry, so the time of an item the caller is not shown is never served, under its own name or a name another listed item shares. + - The items themselves are unchanged. The execution face and the per-package layer answer no `changedAt`, and the MCP `list_metadata_items` summary is unchanged. + +### Patch Changes + +- f5cfdd2: Clause-②: yes — widening: one new anonymous read-only discovery route (an open restriction profile); nothing served today changes + Metadata-protocol: none + + feat(rest): a self-hosted runtime serves the restriction profile `os validate --target` reads + + `GET /api/v1/discovery/restriction-profile` is now served by `@objectstack/rest`, the route `os validate --target <url>` reads, so `os validate --target` against a self-hosted runtime reads a profile instead of failing with a 404. It answers `{ success: true, data }`, where `data` is a `RestrictionProfileSchema` value: the open runtime restricts nothing, and `versions.spec` and `versions.skills` name the `@objectstack/spec` version it runs. + + - It answers without a credential, as `/discovery` does and as the cloud already serves the same route (ADR-0138 D2, amended 2026-11-20: the control-plane discovery role). + - It reads no query parameter: any one is refused `400 VALIDATION_ERROR`. + - When the runtime cannot read the `@objectstack/spec` version it runs, it answers `503 SERVICE_UNAVAILABLE` and publishes no profile. + - `api.enableDiscovery: false` unmounts it together with the rest of discovery; the CLI then fails as it does for any server that does not serve the route. + - `allowedFlowNodeTypes` is a constant: the profile's whole node-type vocabulary, the approvals plugin's `approval` / `approval_revise` included. It does not say which plugins the runtime runs, so `os validate --target` does not check whether an approval flow has an executor on that runtime. + - fix(rest): the CommonJS build (`require('@objectstack/rest')`) now resolves package manifests as the ESM build does. esbuild emptied `import.meta` in that build, so `loadOpenApiSpec` could not read the static OpenAPI artifact, and the new restriction-profile route would have answered `503` there; the package now builds with tsup's `shims`. +- 1950f07: fix(rest): a public form whose view a `.custom` pair overrides reads the pair's own translation, as `/meta` does + + Clause-②: no + Metadata-protocol: none + + `GET /forms/:slug` now translates the public form's view in the same label order the `/meta/view` reads already use for a `.custom` pair's declared override (ADR-0146 D2): a translation the pair ships, then the override's own text, then the base's translation. Before, an anonymous visitor read the override's text as written in every locale (the form's `title` and its section headings), while a signed-in reader of the same view got the pair's translation. A form view no pair overrides, or whose pair ships no translation for the request's locale, is served exactly as before. The form's field labels (the object half) do not change: an object is extended, never replaced, so it has no pair rank on any read. No metadata key, value or default changes. +- f848e37: fix(rest): `POST /api/v1/batch` answers a request-schema refusal with the per-field `fields[]` list + + Clause-②: no + Metadata-protocol: none + + A cross-object batch body the request schema refuses (for example `{"operations":"x"}`, or `{}`) is still answered `400 VALIDATION_FAILED`, but the answer now carries `fields`, the same list of `{ field, code, message }` entries the per-object batch doors (`/data/:object/batch`, `createMany`, `updateMany`, `deleteMany`) answer: `{"operations":"x"}` names `operations` with `invalid_type`, `{}` names `operations` with `required`, and an operation missing its object names `operations.0.object` with `required`. A client's `err.fields` (`@objectstack/client`) is now filled on this door too. + + The raw schema-library `issues` list is no longer on this refusal: field errors are mapped at the boundary, never passed through (ADR-0114 D3), and no client, SDK or test read it. A caller that read `issues[i].path` reads `fields[i].field` (the path joined with dots) and `fields[i].code` instead. +- 96faf44: Clause-②: yes (widening) + Metadata-protocol: none + + fix(i18n, mcp): a translation fault serves the untranslated text and the fault is logged, instead of failing the read; `list_datasets` is flagged `partial` with a `warning`, while REST `/meta`, the MCP object tools and `query_dataset` log only + + When the i18n service resolves but its `getLocales` or `getTranslations` throws, the shared `/meta` translator (`translationBundleOf`, `@objectstack/rest`) now answers it as no bundle: the text is served untranslated and the server log says so at `warn` (`The translations could not be read (…), so labels and descriptions are served untranslated.`). Before, the translation rejected, so `GET /meta/:type` and `GET /meta/:type/:name` answered 500, the MCP object tools failed, `list_datasets` answered `datasets: []` with `partial: true`, and `query_dataset` refused 503 on both MCP transports. + + Now `list_datasets` keeps every dataset, in its authored text, with `partial: true` and that sentence as its `warning`; `query_dataset` answers. A dataset host's `loadDatasets` may return `{ items, warning }` without `partial`: a whole read the tools say something about, which `query_dataset` does not refuse. The translator's sources take an optional `reportTranslationFault(warning)` to carry the sentence on an answer. + + fix(mcp): `?locale=` reaches the MCP labels, and the dataset tools answer in one language + + The HTTP MCP door now reads a `?locale=` query parameter as the `/meta` doors do (after `Accept-Language`, before the i18n default), for the object and dataset labels and the app-docs tools; it read headers only, though its docblock promised both. The dataset executor (`createDatasetTools`) takes an optional `translationLocale` dependency, the locale its `loadDatasets` translated the rows for, and reads labels and composes `nextStep` and `sourceLine` in it first. Both MCP transports pass it, so a call with no `Accept-Language` (common for MCP clients, and every stdio call) no longer mixes labels in the i18n default with sentences in the workspace locale. +- 16a96ac: feat(rest): Change Owner endpoint — hand one record or a list of records to another owner, on objects that offer the action + + Clause-②: yes (widening) + Metadata-protocol: none + + Two new doors under the data surface, both run as the caller: + + - `POST /api/v1/data/:object/:id/change-owner` with `{ ownerId | queue, notify? }` hands one record to a person or moves it to an ownership queue (ADR-0142), and answers the record's new owner. + - `POST /api/v1/data/:object/change-owner` with `{ ids, ownerId | queue, notify? }` does the same for up to 500 records, one update per record, and answers a per-row report that lists every record that did not move with its code and sentence. + + An object offers Change Owner when the platform gives it a reassignable owner and its `userActions.transfer` switch is on (on by default, off on a `controlled_by_parent` detail). Any other object is refused as a whole, `403 CHANGE_OWNER_DISABLED`, whoever asks — a holder of `modifyAllRecords` included. The switch gates this action only: a plain `owner_id` update still needs the transfer grant and nothing else, so imports and hooks are unaffected. On an object that offers it, each record moves through the ordinary write path, so the caller needs edit on the record and the transfer grant (`allowTransfer` or `modifyAllRecords`); without the grant the record keeps its owner and the answer is the data door's own `403 PERMISSION_DENIED`. `notify: true` sends the new owner one notification under the `record.owner_changed` topic, its title keyed so it renders in the new owner's own language (English when no entry renders). + + `@objectstack/core` exports `changeRecordOwner`, `changeRecordsOwner`, `changeOwnerOffReason`, `changeOwnerOffRefusal`, `CHANGE_OWNER_DISABLED`, `CHANGE_OWNER_NOTIFICATION_TOPIC`, `CHANGE_OWNER_NOTIFICATION_TEXT` and `assertAssignableUser` (the assigned-work hand-over's target check, now shared). That check now reads the target user the way the write path reads a user reference: a user the caller cannot read answers as one that does not exist (`404`, `reference_not_found`), on Change Owner and on the hand-over alike. `@objectstack/client` adds `data.changeOwner` and `data.changeOwnerMany`. `@objectstack/spec` registers `CHANGE_OWNER_DISABLED` in the error-code ledger, and the `userActions.transfer` liveness row is now `live`. `@objectstack/service-messaging` lists `record.owner_changed` among the platform's notification topics and carries the notice's title in every shipped locale (`messages.recordOwnerChangedTitle`, `messages.recordsOwnerChangedTitle`). +- c9b0a23: feat(service-storage): rename an attachment through a door by the attachment delete rule, and the Attachments tab names the uploader of other people's files + + Clause-②: yes (widening) + Metadata-protocol: none + + Two additions, no answer narrowed: + + - **The rename door.** `PATCH /api/v1/attachments/:id` with `{ "file_name": "..." }` sets the name one `sys_attachment` row is listed under, by the attachment delete rule: the caller who uploaded it, or a caller the attachment update gate admits as an editor of the record it is attached to. The door reads the row as the caller first, so every attachment read rule applies; the uploader's rename is written on the caller's behalf with no edit grant, as the uploader's removal door does; anyone else's goes through the data engine as the caller, so the object's edit grant and the update gate judge it. It answers `{ id, file_name }` (200), and refuses `UNAUTHENTICATED` (401), `VALIDATION_ERROR` (400: a query parameter, a blank name, or any body key besides `file_name`), `RECORD_NOT_FOUND` (404: an attachment the caller cannot read answers as one that does not exist) and the update gate's `RECORD_NOT_ACCESSIBLE` (403) for a caller who can read the record but not edit it. Only the attachment row's name changes: the stored file, its bytes and the name a download carries are untouched. The package's exports are unchanged; `StorageServicePlugin` mounts the door beside the removal door. + - **The uploader, expanded.** The record page payload's `attachments` part (`POST /api/v1/data/:object/:id/page`) now asks its `sys_attachment` read with `uploaded_by` expanded, as the `activity` part expands its actor, and the Attachments panel's own list read does the same. The expansion is a read of `sys_user` as the caller: a reader who may read the uploader gets that user's row (its name), and a reader who may not keeps the stored id. A consumer of that part that compared `uploaded_by` with a user id now reads `uploaded_by.id` where the reader may read the user. + + The record Attachments tab shows the uploader's name on every row whose uploader the reader may read, and never shows a bare id. Its row menu offers Rename beside Delete, on the reader's own uploads and, to a reader who also holds the edit grant on `sys_attachment`, on every row, opening a name prompt; the new name is the one the list shows after a reload. + + `@object-ui/core`: the affordance-to-grant map gains the `attachmentRename` row (the edit grant on `sys_attachment`), which the panel asks for a row the caller did not upload. +- a8126d2: feat(rest): a refused cross-object batch names the operation that caused it, and a related list's multi-pick add names that record + + Clause-②: yes (widening) + Metadata-protocol: none + + `POST {basePath}/batch` (the cross-object transactional batch) now adds `failedOperation: { index, object }` to its refusal body when one operation is the cause: `index` is that operation's position in the request's `operations`, and `object` is the object it named. It rides beside the existing `error`, `code` and `userMessage`. It is present when an `update` or `delete` op is refused up front for naming no row (`400 VALIDATION_FAILED`), and when an op fails while the transaction runs (for example `404 RECORD_NOT_FOUND`, a `400 VALIDATION_FAILED` validation refusal, `400 BATCH_UNRESOLVED_REF`, `409 RESOURCE_CONFLICT`). It is absent when the request as a whole is refused (schema, `atomic: false`, size, no transaction), on the per-object API exposure and API-key management refusals, which are judged once per object and action, and on a failure after the last op ran. + + The key is additive. The success body does not change, and the batch stays all or nothing: a refused batch writes no row. Through `@objectstack/client` the key reaches `err.details.failedOperation`, because the client hands a flat refusal body with no `details` of its own over as `err.details`. A refusal that carries its own `details` (a package-scoped `409 RESOURCE_CONFLICT` with `details.candidates`) still carries the key on the body, but the client exposes only its `details` there. + + The related list's "Add" picker (`@object-ui/plugin-detail`) uses it: when a multi-pick add is refused for one picked record, the inline error names that record by the label the picker shows, followed by the server's reason. A refusal without an index inside the operations sent shows the server's reason alone, as before. +- 40e22f1: fix(approvals, list): a list cell no longer opens an editor before it knows the record's approval lock, and the list reads the locks of a page in one request + + Clause-②: yes (widening) + Metadata-protocol: none + + **What a list user sees.** On a list that edits in place, a double-click, Enter, F2 or a typed key on a cell whose record's approval lock or edit permission is still being read no longer opens an editor that the server would then refuse on save. The cell says "Checking whether this record can be edited…", and when the answer arrives the same edit goes ahead by itself (with the typed key), or the cell says why it does not: the record is locked while it is in approval, or the reader has no permission to edit it. Selecting another cell in the meantime drops the wait. Moving the selection with the arrow keys no longer sends a lock request per row: the first cell selected on a page asks the locks of every row on it at once. + + **New route.** `POST /api/v1/approvals/records/:object/locks` with the body `{ "recordIds": ["<id>", ...] }` (at least one id, at most `APPROVAL_RECORD_LOCKS_MAX_RECORD_IDS`, 200) answers `{ success: true, data: { records: [{ recordId, locked }] } }`, one entry per id in order. `locked` is what `GET /api/v1/approvals/records/:object/:recordId/lock` answers for that id, and `null` where that route answers 404: a record the caller cannot read and one that does not exist answer alike. Any other body (a key other than `recordIds`, an empty list, a non-string or blank id, more ids than the cap) and any query parameter are refused whole with `400 VALIDATION_ERROR`, never trimmed. A deployment whose approvals service does not implement the read answers `501`. + + **Contract and SDK.** `IApprovalService` gains the optional member `getRecordLocks(object, recordIds, context)`, entry `i` answering `recordIds[i]` exactly as `getRecordLock` does; the approvals plugin implements it in two reads whatever the page size (the caller's read of the ids, then one pending-request lookup judged by the record-lock hook's own judgement). `@objectstack/spec/contracts` exports `APPROVAL_RECORD_LOCKS_MAX_RECORD_IDS`. `@objectstack/client` gains `client.approvals.getRecordLocks(object, recordIds)`. + + **Components.** `GridCellFacts` (the select-first table's per-cell facts) gains the optional `checking: { text, settled }`: while present, an edit asked on the cell shows `text` and is asked again when `settled` settles; a toggle, paste or clear shows `text` and writes nothing. A host that sets no `checking` sees no change. +- 0d4f190: fix(rest)!: the restriction profile is served on the unscoped route only; its environment-scoped twin is no longer mounted + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, no export changes, and no stored row or authored value moves. What moves is one anonymous REST route: under environment scoping the restriction profile is no longer mounted on the scoped base. Nothing in this repository reads that path, so there is nothing for a migration to rewrite and no tombstone. --> + + **BREAKING** for a client that read `GET /api/v1/environments/:environmentId/discovery/restriction-profile` on a server with `api.enableProjectScoping: true`: that path is no longer mounted and answers the host's ordinary `404`. The scoped path was mounted by the same change that introduced the route, so it has only ever been served by builds that include that change. It ships `patch` because it is a non-protocol breaking change: no metadata author writes a route, so `Metadata-protocol` is `none`. + + **What was wrong.** `@objectstack/rest` registers its discovery routes once per mounted base, so a server with environment scoping on also served the restriction profile on the scoped base. That handler reads nothing from the host: for any environment id it answered the constant open profile (`allowCode: true`, every flow node type). On a host that enforces a narrower profile, and serves that one through its own route on the unscoped path, the scoped path published, without a credential, a profile the environment does not honour. + + **Now.** The route is mounted on the unscoped base only. `GET /api/v1/discovery/restriction-profile` is unchanged: the same body, the same empty query set, still unmounted by `api.enableDiscovery: false`, and a host's own route on that path still wins by mount order. `os validate --target <url>` reads that unscoped route at the URL's origin, so it is unaffected. + + A server under `api.projectResolution: 'required'` mounts the scoped base alone, so it now serves no restriction-profile route. Before this change it served the profile only on the scoped path, which `os validate --target` never read. + + Fix for a client that read the scoped path: read `GET /api/v1/discovery/restriction-profile`. +- 7c9b22b: fix(core)!: Change Owner refuses an object of a disabled package with the data door's `404 OBJECT_PACKAGE_DISABLED` + + Clause-②: yes (narrowing) — `@objectstack/core` gains the root export `objectPackageDisabledError`, and all three Change Owner doors newly answer `404 OBJECT_PACKAGE_DISABLED` for an object of a disabled package, which they answered `200` before + Metadata-protocol: none + Skills-docs: none — no page under `skills/` teaches Change Owner; the refusal carries the data door's own sentence, which names the fix + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no stored row, registry key or authored value changes. What moves is the answer the three Change Owner doors give for an object whose owning package is disabled, an answer that returns to what it was the moment the package is re-enabled; there is nothing for a migration to rewrite and no tombstone. --> + + **BREAKING** for a caller that changes owners on a disabled package's object. + + - FROM: `POST /api/v1/data/:object/:id/change-owner` and `POST /api/v1/data/:object/change-owner` answered `200` for an object of a disabled package: the owner changed (and, when a cascade was named, its child rows), and when asked the notification was sent; `GET /api/v1/data/:object/change-owner/cascades` answered `200` with the object's cascade candidates. + - TO: all three doors answer `404 OBJECT_PACKAGE_DISABLED`, naming the object, in the data door's words; nothing is read, written or sent. The fix for a caller: re-enable the package. + + `POST /api/v1/data/:object/:id/change-owner` and `POST /api/v1/data/:object/change-owner` changed owners (and cascaded child rows), and sent owner-change notifications, on records of an object whose owning package was disabled, although every `/data` write refuses such an object. `changeRecordOwner` and `changeRecordsOwner` now ask the engine registry's `isObjectPackageDisabled` before the object's Change Owner switch is read, and refuse the whole call with the data door's own envelope (`code: 'OBJECT_PACKAGE_DISABLED'`, `status: 404`, the object name on `object`) before any user lookup, write or notification. Re-enabling the package restores the action; nothing is cached. `GET /api/v1/data/:object/change-owner/cascades` asks the same predicate in the same order (after the object resolves, before the switch), so the dialog lists nothing for such an object. + + The refusal's constructor, `objectPackageDisabledError`, now lives in `@objectstack/core` and is exported from it; `@objectstack/metadata-protocol` re-exports the same function under the same name, so its importers are unchanged and the code, status and sentence stay one. The error-code ledger (`@objectstack/spec`) records `OBJECT_PACKAGE_DISABLED` under `@objectstack/core` as a provenance row; the code itself, its status and its wire shape are unchanged. +- 76bff41: fix(plugin-approvals): the decide refusal of a submitter's own approval, and a submitter notice that names several slots, read in the reader's language + + Clause-②: yes (widening) + Metadata-protocol: none + + **Widened door response.** The approvals decide door (`packages/rest/src/approvals-routes.ts`) gains one optional member, `userMessage`, at the top level of its flat `{ code, error }` refusal body. Two rows answer it today: the two `403 FORBIDDEN` decide refusals of a submitter's own approval, the `excludeSubmitter` refusal and the administrator-override self-approve refusal. It is absent whenever no producer marked one, so every other refusal body is unchanged. + + - **The decide refusal.** When the decision door refuses a submitter's own approval (the step sets `excludeSubmitter`, or the administrator override would approve the actor's own request), the thrown error now carries a `userMessage`: the same refusal, with its remedy, in the decider's language (`approvalDecideRefused*` in every approvals message pack). A position is named by the decider's pack label, then its declared label, then its name. The error's `message` is unchanged: it stays English for the developer and the log. With no reader language, `userMessage` is English and names no user id. + - **The REST door.** The approvals routes answer a refusal the service marked with `userMessage` at the top level of their flat `{ code, error }` body, beside `error`, on every mapped row. A refusal with no marking answers exactly as before. + - **The console.** The record page's `type: 'api'` actions (the request's Approve button) read a flat body's top-level `userMessage` as well as the `error.userMessage` of the ADR-0112 envelope, and show it in place of the English `error`. The Approval Center's inline decision toast shows a marked refusal as written, before its generic line. + - **The submitter notice.** A notice for a slate of 2 to 8 slots names each slot inline, one keyed type word and value per slot (`approvalNoApproverHoldingSlots2` to `…Slots8`, derived from each pack's own `approvalNoApproverHolding`, `approvalNoApproverSlot` and `approvalNoApproverSlotSeparator`), so the messaging service renders every slot in the recipient's language at delivery. A slate of more than 8 slots still names its slots in English inside the recipient's sentence. The literal English body is unchanged. +- 6bc775f: fix(rest): `/meta` reads a regional request tag in the language of the pack the deployment holds + + Clause-②: no + Metadata-protocol: none + + The metadata reads handed the translators the request's `Accept-Language` tag as written. In a deployment authored in English (`i18n.sourceLocale: 'en'`) that defaults its users to Chinese and holds an `en` pack, an `en-US` request was therefore not the authored language: it walked the declared fallback chain and `GET /meta/object/account` served `客户`, while a write refusal on the same request, which objectql renders with the tag negotiated against the deployment's locales, named the object `Account`. + + The translation options every metadata read builds now carry the request tag negotiated against the locales the i18n service reports (`getLocales()`), by the platform's one locale ladder (`resolveBundleLocale`), the same negotiation objectql and plugin-approvals run. An `en-US` request in that deployment reads `Account`. A request for a locale the deployment holds no pack for is unchanged: it walks the declared chain to the default locale. The item and list reads on both transports, the metadata types listing and the public form's object labels read through the same options. + + The cached item read's validator is unchanged: it still varies by the tag the request sent, and a validator issued for one language never revalidates a request for another. +- 70f454a: fix(metadata): two Studio Saves over one published item are no longer last-writer-wins + + Clause-②: yes (widening) — two new optional members join what the API accepts and answers: `PublishMetaItemRequestSchema.parentVersion` (the `If-Match` / `If-None-Match: *` pin on `POST /meta/:type/:name/publish`) and `GetMetaItemLayeredResponseSchema.overlayVersion` (served on `GET /meta/:type/:name/layers`); nothing is removed or narrowed, and a publish that names no version behaves as before + Metadata-protocol: added + + A Studio Save writes the item's draft and then publishes that one item, so it leaves no draft behind. Two admins who opened the same object with no pending draft both asserted "no draft" on their draft save, and the later Save published over the earlier one without a word: the published layer served no version a Save could pin. + + - `GET /meta/:type/:name/layers` now answers `overlayVersion`: the version token of the stored active row at the read's address (`?package=`), the same keyed token the plain uncached read serves as `version` and a publish receipt serves as `version`; `null` when no active row is stored there. + - `POST /meta/:type/:name/publish` takes that token as `If-Match` (or `If-None-Match: *`, "no active row here"). A token that is not the current active row's is refused `409 METADATA_CONFLICT` with the current token as `currentVersion`, and nothing is promoted: the draft stays pending. The headers are read as the save door reads them, so `If-Match` beside `If-None-Match`, or an `If-None-Match` other than `*`, is refused `400 VALIDATION_ERROR`. A publish with neither header is unpinned, as before. The pin is checked by the store's own lock on the promoting write, not by a separate earlier read. + - `MetadataClient.publish` (`@object-ui/data-objectstack`) takes `ifMatch` / `ifNoneMatch`, sent as those headers. + - Studio's object page pins its Save's publish to the published row it was loaded at. When another editor published since, the Save shows the reload-or-overwrite dialog the draft conflict shows, worded for a live change: reload takes back the draft the Save wrote and re-reads the live object, overwrite (after a confirmation) publishes over the version the refusal names, and keep editing leaves the edits on the page, unsaved. New locale keys in the studio catalogue (en, zh): `engine.draftConflict.publishedTitle`, `engine.draftConflict.publishedDescription`, `engine.draftConflict.publishedOverwriteTitle`, `engine.draftConflict.publishedOverwriteDescription`. + + The two members enter the authorable-surface ratchet (`api/GetMetaItemLayeredResponse:overlayVersion`, `api/PublishMetaItemRequest:parentVersion`), so `@objectstack/spec` takes `minor`; the other packages stay `patch`. + + Nothing to migrate: a client that sends no version is unaffected. +- 84b1e0c: feat(spec): Studio list columns for 27 metadata types, served in the reader's language on both doors + + Clause-②: yes (widening: `/meta/types` serves `list` on 26 more entries, and the runtime dispatcher's listing is now translated) + Metadata-protocol: none + + `METADATA_LIST_REGISTRY` now declares the Studio list columns of 27 metadata types: the first batch (`hook`, `flow`, `job`, `api`, `action`, `report`, `dataset`, `email_template`, `assignment_rule`, `sharing_rule`, `queue`, `agent`, `tool`, `skill`, `doc`, `seed`, `mapping`, `picklist`, `translation`) and the eight types the console used to declare itself (`object`, `field`, `view`, `page`, `dashboard`, `permission`, `position`, `book`). Every column names a key the type's schema declares, checked by the reconciliation test. Nothing an author writes changes: the registry is the spec's own constant. + + - **Headers in every shipped language.** The 52 headers no form field already labels get their own `metadataForms.<type>.fields.<path>.label` leaf in the 11 platform bundles (`@objectstack/platform-objects`), translated in all ten non-English locales. A column the form labels reads the form's words. + - **Both doors translate the listing.** The runtime dispatcher's `GET /meta` and `GET /meta/types` now answer the types listing in the request's language, as `RestServer`'s `GET /meta` does: type labels, form labels, list headers and schema titles. Both run one function, `translateMetaTypesListing` (`@objectstack/rest`). Before this, a host served through the dispatcher answered all of it in English. + - **The console's own declarations move into the spec.** Studio's lists of objects, fields, views, pages, dashboards, permission sets, positions and books read the served columns. The console keeps only what the schema cannot say: a field row's server-stamped `object`, a position's holder count and granted permission sets, a view's derived display type, a book's audience and a sharing rule's `sharedWith` rendering. The console declared `object`'s columns twice, in two registrations that disagreed (the later one won); both declarations are gone, so one remains, in the spec. A page's former `route` column named no `PageSchema` key and is dropped. What an admin sees in Studio (`@object-ui/app-shell`): the metadata lists of all 27 types show the spec's columns, in the declared order, with headers in the reader's language. The moved lists lose the console's fixed column widths (the view list's display type and the book list's audience keep theirs), the Fields list reads name, type, label, then object, the sharing-rule list's header reads "Access Level" where it read "Access", and the Pages list shows type and description in place of the dropped route column. A summary cell reads an expression member as its source, so the Jobs list's schedule shows a cron job's expression (`cron · 0 2 * * * · UTC`), not only its kind and time zone. +- 422df61: Clause-②: no + Metadata-protocol: none + + An import row refused because another row of the same file carries the same match key (`DUPLICATE_MATCH_KEY`) now reads in the importing user's language, like the cell errors beside it, and names the key by its field label (`Email`, `Supplier + Type`) instead of its API name; the row numbers stay in the sentence. The sentence is the new `import_duplicate_match_key` entry of the built-in validation message catalog (`BUILTIN_VALIDATION_MESSAGES`, in all four platform locales), so a deployment can override it under `validation.field.import_duplicate_match_key`. The row keeps its shape (`code`, `error`); only the `error` text changes. An English deployment reads the same sentence as before, with the field label where the API name was. + + The console import wizard shows a row refused by an object-level validation rule (a rule that names no field, reported on the `_record` field) as its message alone, without a `_record:` prefix, in the dry-run findings, on the result screen and in the failed-rows download. A field-level error keeps its `Label: message` form; the failed-rows download now prefixes it with the field label too, where it used the API name. +- fd462c5: feat(plugin-approvals): the record lock reads say whether a row is held by its own approval or by its master's + + Clause-②: yes (widening: both lock doors' published entry gains a field) + Metadata-protocol: none + + Both approval lock reads (`IApprovalService.getRecordLock` and `getRecordLocks`, and their REST doors `GET /api/v1/approvals/records/:object/:recordId/lock` and `POST /api/v1/approvals/records/:object/locks`) now answer a locked record with `lockSource`, which approval holds it: + + - `'record'`: a pending request on the record itself, from a node whose `lockRecord` is not `false`. Deleting the record still goes through and cancels the request. + - `'master'`: the record is a `master_detail` line of a record so held. The server refuses the line's insert, update and delete with `409 RECORD_LOCKED`. + + When both hold (a line with a pending request of its own, under a held master), the answer is `'master'`, because that is the delete the server refuses. An unlocked record still answers `{ locked: false }`, with no `lockSource`, and `null` (`404 RECORD_NOT_FOUND` at the single door, `locked: null` in the batch door) still means unreadable or missing, never told apart. No request id, node, approvers or `pending` flag is served. A list can now hide Delete on a line whose master is under approval instead of offering a delete the server refuses. + + The `IApprovalService` return types gain the optional `lockSource?: 'record' | 'master'`, so an implementation may omit it on a locked answer and still satisfies the contract; the REST doors then serve `{ locked: true }` without a kind. + + Which rows count as readable is unchanged at both doors. The two doors keep different readability anchors on purpose: the single door counts any returned row, the batch door only the row whose id is the asked id; aligning them would narrow a published answer (seat ruling 7152650156 on #37151). So an id the database matches only under another spelling (a different letter case, `07` for a numeric `7`) answers `null` in the batch door. The single-record door counts the row it finds as readable and judges it, as before: a line of a held master answers `'master'`, because that check reads the row found, but a record's own request is looked up by the id as asked, so a record held by its own request may answer `{ locked: false }` under another spelling. A client asking with the ids the server gave it gets the same answer from both doors. + + `@objectstack/client`: `client.approvals.getRecordLock` and `getRecordLocks` type the answer with the optional `lockSource?: 'record' | 'master'`. +- 64b278e: fix(rest)!: every data door judges environment membership + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) every data door judges environment membership; nothing an author writes is retired, renamed or re-shaped, so there is nothing for a migration to rewrite --> + + **BREAKING** for a signed-in caller who is not a member of the environment a request resolved to: every data door now judges environment membership and answers that caller `403 PROJECT_MEMBERSHIP_REQUIRED`, in the envelope the runtime dispatcher already answers with. + + Every data door judges environment membership. The rule is one function in `@objectstack/core` (`judgeEnvironmentMembership`), asked by the runtime dispatcher and the REST server alike; the dispatcher's own answers are unchanged. + + It is off in exactly two cases: `api.enforceProjectMembership: false` (ADR-0135 D9: a host whose environment-native auth is the membership), or no `sys_environment_member` object registered. The switch is read through one function for every door (`resolveEnvironmentMembershipEnforcement`): an explicit `enforceProjectMembership` wins, else it is on exactly when environment scoping is on. `objectstack serve` hands the stack's `api.enforceProjectMembership` to the REST and the dispatcher plugin alike. + + Migration: a host that composes the plugins itself passes the same `enforceProjectMembership` to `createRestApiPlugin` as to `createDispatcherPlugin`. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [a73edb3] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [d053c7d] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [c9b3f7a] +- Updated dependencies [01e6af6] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [4026c44] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [89ea9bf] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [17ed9e7] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [a98c077] +- Updated dependencies [236c804] +- Updated dependencies [d71fe59] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [a5a5312] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6943af1] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [24ff03c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [c8d4b90] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [9c57bd2] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [b3247dd] +- Updated dependencies [372ce7c] +- Updated dependencies [c059e60] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [bc2aaf1] +- Updated dependencies [4e55e4e] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/types@18.7.0 + - @objectstack/platform-objects@18.7.0 + - @objectstack/metadata@18.7.0 + - @objectstack/core@18.7.0 + - @objectstack/metadata-core@18.7.0 + - @objectstack/observability@18.7.0 + - @objectstack/service-package@18.7.0 + ## 18.6.0 ### Minor Changes diff --git a/packages/rest/package.json b/packages/rest/package.json index 1f5913866ce..1dccc354489 100644 --- a/packages/rest/package.json +++ b/packages/rest/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/rest", - "version": "18.6.0", + "version": "18.7.0", "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 7fbebdb173d..d9ce681b935 100644 --- a/packages/runtime/CHANGELOG.md +++ b/packages/runtime/CHANGELOG.md @@ -1,5 +1,962 @@ # @objectstack/runtime +## 18.7.0 + +### Minor Changes + +- 8236d9b: feat(service-automation)!: a sync-in pull marks the rows the source deleted, and an incremental source states how it learns of a delete + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: none (no skills/ page names `deletePolicy`, `deletedField` or `_sync_deleted_at`; the guide that teaches them is `content/docs/automation/jobs.mdx`, updated here) + + <!-- adr-0087: registered incremental-source-delete-policy-stated --> + + ADR-0153 D3, delete marking (#32062, slice 6). + + - **A pull marks a row the source deleted, and never deletes it.** Under `deletePolicy: 'mark'`, the reading when the key is absent, a pull stamps the platform column `_sync_deleted_at` on a row of a `synced` object that the source deleted, and clears it when a later pull reads the row again. `deletePolicy: 'ignore'` leaves every row as it is. Two detections: + - `deletedField`, on any pull that declares it: a read record whose value in that source field is truthy has its copy marked; every other read record's copy is cleared. + - Absence, on a full pull whose read was complete: every row of the mapping (`_sync_source`) the run did not read is marked. A `datasourceSource` with `full: true` is complete when its windows read to their end and no source row in the job's organization has a NULL watermark; it marks only rows whose copied watermark is at or above `watermark.start`. A `connectorSource` without a `watermark` is complete only under `paging: { style: 'none' }` (one response is the whole set); with no `paging`, or a paging style the pull does not follow yet, it marks nothing by absence. A refused or interrupted pull marks nothing by absence; a row the import runner refused was read, so it is not marked. A record whose `upsertKey` value is blank names no row, so one such record makes the run mark nothing by absence (`unjudged, rows refused`). A row pulled before the provenance columns existed carries no `_sync_source`, so it is no mapping's row: if the source has since deleted it, no pull marks it. + - Two mappings on one target: each marks and clears only the rows whose `_sync_source` is its own; a second mapping is not refused. + - **`sys_sync_run` records it.** New columns: `marked_deleted_count`, `deletes` (`judged`, `by deletedField`, `ignored`, or `unjudged, …` with the reason: `null watermark`, `no paging declared`, `pages not followed`, `rows refused`) and `skipped_null_watermark` (a datasource source's rows with a NULL watermark, counted under the organization predicate; through a plugin driver's row cap a count above the cap is recorded as the cap plus one). The end-of-pull log line says what the run marked and cleared. `job_run_id`'s and `trigger`'s descriptions now say when each is empty. + - **BREAKING: an incremental source states how it learns of a delete.** A `connectorSource` with a `watermark`, or a `datasourceSource` without `full: true`, never sees an absent row, so under `deletePolicy` absent or `'mark'` with no `deletedField` it is refused at parse (`MappingSchema`, so `defineStack` and `os validate`) and again when the pull runs (`400 VALIDATION_ERROR`, reason `delete_policy_unhonourable`). Fix: name the source's soft-delete field (`deletedField: 'is_deleted'`), or write `deletePolicy: 'ignore'`, which is what every pull did before this release. New export: `incrementalSourceDeleteRefusal` (`@objectstack/spec/data`), the rule both doors ask. + - **BREAKING: a `synced` target that withholds the provenance columns** (`systemFields: false`) is refused under `deletePolicy` absent or `'mark'` (`400 mapping_target_refused`): no row of it can carry the mark. Fix: let the platform add its columns, or write `deletePolicy: 'ignore'`. This arm is judged only when the pull runs: `os validate` and `defineStack` do not catch it, so a stack that validates green can still fail every scheduled pull. Migration entry `incremental-source-delete-policy-stated` names both arms. + - A datasource source's `deletedField` must name a field of the source object (`400 source_binding_invalid` otherwise). `deletedField` is read by truthiness: the text `'false'` or `'0'` marks the row, and on a connector source a field the records do not carry reads as falsy on every record and marks nothing. + - A stored `deletePolicy` outside `'mark'` / `'ignore'` (which the parse refuses) is refused by the pull too (`delete_policy_unhonourable`) instead of being read as `'mark'`. + - The liveness rows for `deletePolicy` and `deletedField` on both sources are `live`, and `os validate` no longer warns that nothing reads them. `paging` stays `planned`: the connector paging loop is a later change. + - A connector pull whose target definition cannot be read now says whether the object is not registered or the metadata read failed. + - A connector pull keeps the job run id and trigger only when the run record can hold them: a trigger other than `schedule` or `manual`, or a run id longer than 255 characters, is left out instead of failing the run record's open. + - `JobHandlerContext` (`@objectstack/runtime`) declares `trigger` and `runId`: the handler run form spreads the job service's context into the handler's, so every `handler` job already receives `trigger`, and `runId` under the database job adapter. The jobs guide lists both. +- 4ffe9d3: feat(actions): an action writes the sentences it declares in the organization's language + + Clause-②: yes (widening: a new optional authorable key `ActionSchema.texts`, and new translation keys) + Metadata-protocol: added + Skills-docs: follow-up owed — skills/objectstack-ui/rules/actions.md, skills/objectstack-i18n/SKILL.md + + A `script` action's `js` body can now write a sentence into a record in the organization's language, the way a hook does: declare it under `texts`, keyed by a snake_case key, and ask for it by key — `texts: { email_subject: { message: 'Email: {{ subject }}', params: ['subject'] } }`, then `await ctx.text('email_subject', { subject })` where the body used to write `'Email: ' + subject`. The answer is in the organization's language, because everyone in the organization reads the record: the Localization setting (`localization.locale`) when somebody set it, else the app's declared `i18n.defaultLocale`. It is never the language of the person who ran the action. The translation is picked first, then its `{{ }}` holes are filled from `params`. The entry is the hook text's, built by the same shared factory. + + - The translation sits beside the action's other copy: `objects.<object>._actions.<action>.texts.<key>.message` for an action bound to an object, `globalActions.<action>.texts.<key>.message` for an object-less one. `os i18n extract` scaffolds the keys and the existing coverage check counts them; `objectstack validate` refuses a translation over a key the action does not declare. + - A missing translation, or no language to pick, answers the declared sentence, and the action goes on. A Localization setting that cannot be read rejects the call. + - Only declared text is translated: a string the body builds itself is written as it is. A key `texts` does not declare is refused when the action is saved if the body asks for it literally (`ctx.text('key')`), otherwise when it runs, as a fault naming the action and the key. + - `texts` is read only for a `type: 'script'` action with a `js` body (an inline `target` function is lowered to one by `os build`); on any other action, or with no body, it is refused at save. A `flow` action's record writes are the flow's own, marked and translated there (`flows.<flow>.records.…`). + - A text with `params` is compiled like a hook's: a hole over another name is refused when the action is saved, and `objectstack validate`, `compile` and the publish gate refuse a hole holding logic, an unknown formatter, an empty hole and `{{ amount | currency }}` with no code. A translation whose holes do not render at run time is dropped for the declared sentence, filled. + - Text is picked when it is written. Records already written are not changed. An action without `texts` runs exactly as before. + + `@object-ui/core` lists `texts` among the spec's declared action keys, so an action carrying them is not reported as having an unknown key; the console reads nothing new, because the body stores the sentence already picked. + + New exports: `@objectstack/spec` adds `ActionTextSchema` and the `ActionText` type (`ui`), `actionTextMessageKey` (`system`), and `ACTION_TEXT_MESSAGE_HOLE_REFUSED`, `actionTextsWithoutRunnableCode`, `undeclaredActionTextKeyAtSave` and `undeclaredActionTextAtRun` (`data`); `@objectstack/runtime` adds none. Nothing that was accepted before is refused. +- 5ecf937: fix(lint)!: a hook body or job body that does not compile in the wrapper the runtime runs it in is refused + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: follow-up owed — skills/objectstack-data/references/data-hooks.md (its "Sandbox restrictions" section teaches what a body may contain and names no compile check) + + <!-- adr-0087: registered hook-job-body-does-not-compile-refused --> + + **BREAKING** only for a hook or job body that never ran. The runtime runs an L2 hook body and an L2 job body (`body.language: 'js'`) as the body of `(async (ctx) => { … })`. A source that does not compile there, such as `const ctx = ctx.input || {}` (the parameter declared again) or `let x = 1; let x = 2;`, raised a SyntaxError before its first statement on every run, yet passed `os validate`, `os build`, `os lint` and the runtime publish door: the hook parse check reads the source with a parser, which reports no redeclaration, and a job body had no check at all. + + What moves (FROM → TO): + + - New gating rule `validateHookAndJobBodyCompiles` (`@objectstack/lint`), rule ids `hook-body-does-not-compile` and `job-body-does-not-compile`: FROM no finding TO `error` at `os validate`, `os build`, `os lint`, and at the runtime publish door for `hook` writes (`422 INVALID_METADATA`). No door publishes a job, so a job body is refused by the three commands. A hook lowered from an inline `handler` is located at `hooks[N].handler`. The severity split is `action-body-does-not-compile`'s, read through the same `judgeBodyCompile`: a regular-expression pattern the host engine refuses is a `warning`, and every other compile failure is an `error`. + - `hookBodyFunctionExpression` and `HOOK_BODY_PARAMETERS` (`@objectstack/lint`, the first also on `@objectstack/lint/runtime`): the one spelling of the `(ctx)` wrapper. The runtime's QuickJS runner now builds the hook and job wrapper from it, byte for byte the wrapper it built before, so the check and the run cannot disagree about it. + - `judgeBodyCompile`, `BodyCompileVerdict` and `BodyCompileShape` (`@objectstack/lint`): the compile-and-classify core both rules share. `action-body-does-not-compile` reads it with unchanged findings. + - `os explain hook-body-does-not-compile` and `os explain job-body-does-not-compile` explain both rules. + + The fix: use `ctx` as it is, or give the local another name (`const input = ctx.input || {}` in a hook, `const api = ctx.api` in a job); declare each name once; fix any other compile error at the line of `body.source` the finding names. + + No conversion is made (ADR-0087 D3, entry `hook-job-body-does-not-compile-refused`): which name the author meant for the local is a judgement. Measured first-party exposure: zero. +- fe19096: fix(lint)!: a body whose regular-expression pattern the runtime's QuickJS also refuses is refused, not only warned about + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: follow-up #36727 + + <!-- adr-0087: registered body-regexp-pattern-refused --> + + **BREAKING** only for a body that never ran. `action-body-does-not-compile`, `hook-body-does-not-compile` and `job-body-does-not-compile` compile an L2 body inside the wrapper the runtime runs it in, with the host's JavaScript engine, and reported every failure V8 words as `Invalid regular expression: /PATTERN/FLAGS: REASON` at `warning`, because the host's V8 and the runtime's QuickJS differ on some patterns. Measured over the same wrapper text (Node 22.23.5's V8 12.4, Unicode 17.0 tables, against quickjs-emscripten 0.32.0), they differ on two constructs, a duplicate named capture group in different alternatives (`/(?<a>x)|(?<a>y)/`, V8 `Duplicate capture group name`) and a modifier group (`/(?i:a)/`, V8 `Invalid group`), and on three Unicode property names, `IDS_Unary_Operator` (`IDSU`), `Modifier_Combining_Mark` (`MCM`) and the script `Katakana_Or_Hiragana` (`Hrkt`, under `sc=`, `Script=`, `scx=` or `Script_Extensions=`), V8 `Invalid property name`: every name in QuickJS's own tables was compiled in every key form, under `u` and `v`, bare and in a class, and these twelve spellings were every disagreement. Node 22 refuses them and QuickJS runs them. Every other pattern reason probed is refused by QuickJS too, among them an unterminated group (`/(/`), nothing to repeat (`a**`), a class range out of order (`/[b-a]/`), and under `u` a back-reference to a group the pattern does not name, a Unicode property name neither engine knows (`/\p{Nope}/u`) and an incomplete quantifier (`/a{/u`). Such a body passed `os validate`, `os build`, `os lint` and the runtime publish door, and every run of it failed. + + What moves (FROM → TO): + + - The three rules (`validateActionBodyCompiles`, `validateHookAndJobBodyCompiles`, `@objectstack/lint`) on a regular-expression pattern failure that is not one of those measured gaps: FROM `warning` TO `error` at `os validate`, `os build`, `os lint` and the runtime publish door (`action`, `object` and `hook` writes, `422 INVALID_METADATA`), with a hint that names the fix. The measured gaps stay a `warning`; a property name is judged by the host's Unicode tables, and on a host whose tables are older than Unicode 17.0 every property name it refuses is a `warning`; a later Node whose V8 accepts a gap reports nothing for it. + - `BodyCompileShape` (`@objectstack/lint`) gains `regexp-dialect-gap`, the one `warning` arm; `regexp-pattern` is now an `error`. + - The unterminated-literal hint names a line terminator inside the literal as a cause (a `\n` written with one backslash in a quoted or JSON-carried `body.source`). + - A hook lowered from an inline `handler` whose body does not compile gets a hint that names the handler instead of `body.source`. + - The runtime's QuickJS runner (`@objectstack/runtime`): a hook or job body that does not compile is reported FROM the generic `hook 'NAME' threw: SyntaxError: …` (the sentence a body that ran and threw gets) TO `hook 'NAME' does not compile: SyntaxError: …` (and `job 'NAME' …`), the way an action body's is. The caller's answer is unchanged: the `/data` door still answers the sanitised `500 INTERNAL_ERROR`. + - `os explain` for the three rules and the ADR-0087 entries `action-body-does-not-compile-refused`, `action-body-regexp-literal-token-refused` and `hook-job-body-does-not-compile-refused` now say which pattern failures warn. + + The fix: close every group, give each quantifier something to repeat or escape it, write a class range low to high, reference only a group the pattern names, and use a Unicode property that exists. + + No conversion is made (ADR-0087 D3, entry `body-regexp-pattern-refused`): which pattern the author meant is a judgement. Measured first-party exposure: zero. +- 8644ce7: feat(runtime): `GET /packages/:id/customizations` lists the arrangements the base's `.custom` pair writes + + Clause-②: yes (widening) + Metadata-protocol: added + + An administrator who arranges an installed object's record page (reorders, retitles or hides its tabs, or arranges its field groups or actions) writes that arrangement into the base's paired `<base>.custom` package as an object extension (ADR-0146 D10). Until now the per-base customization read did not show it: its lists covered the overrides, the extension fields, validation rules and indexes, the switched-off items and other packages' contributions, so a tab arrangement was a customization nobody could see in that read. + + The read now answers a fifth list, `arrangements`, with its count: + + - **What is listed.** One `{ object, key }` entry per object the base owns and arrangement key the pair's extension of it writes: `fieldGroups`, `relatedLists` (the record page's tab list) or `actionLayout`, the keys of `CUSTOM_ARRANGEMENT_KEYS`. A key counts as written when the extension carries any value under it, an empty list included. + - **What is not.** The arrangement's content: read it back with `GET /api/v1/meta/object_extension/<object>?package=<base>.custom`. Nothing is compared with the base, which stays as its package declares it. Another package's extension, and the pair's extension of an object the base does not own, are not listed. + - **Its own kind.** An arrangement is one whole declaration of the object, not a member of one of its collections, so it is not an `extensions` entry and `counts.extensions` is unchanged. + - Ordered by object, then key in the order `fieldGroups`, `relatedLists`, `actionLayout`. + + `GetPackageCustomizationsResponseSchema` declares the member and `counts.arrangements`, strict as the rest of the answer. A client that parses the answer through the schema (`client.packages.customizations(id)` returns its type) needs this version of `@objectstack/spec`: an older schema refuses the new member. +- 129e637: feat(i18n): console flow labels follow the server's declared fallback chain + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: none — the new member is a response field the console reads, not something a metadata author writes; no skills/ page teaches `GET /i18n/locales` or how the console resolves flow labels + + - **`GET /api/v1/i18n/locales` names the declared fallback chain.** `GetLocalesResponseSchema` (`@objectstack/spec/api`) gains an optional `fallbackChain: string[]`, and the runtime's `/i18n` domain fills it from the i18n service's `getFallbackLocale()` (the stack's `i18n.fallbackLocale`, else its `defaultLocale`), the same accessor the server's metadata translations hand the spec resolvers as `ResolveOptions.fallbackChain`. A service that declares no fallback (no accessor, or an empty answer, such as the core in-memory provider) serves no member. Nothing existing changes meaning. + - **The console loads the fallback locale's flow translations.** The console's language loader reads the chain and `sourceLocale` beside the active language's bundle and, unless the language is the authored one, fetches each fallback locale's bundle and keeps its `flows` group (`withDeclaredFlowsFallback`, `@object-ui/i18n`). + - **Flow labels walk the same locales as the server.** `activeFlowsBundle` returns the fallback locales' rows too, and the new `flowsResolveOptions` hands the spec resolvers `{ locale, fallbackChain, defaultLocale }`. The flow runner (flow name, field copy, option labels), the flow designer and docs viewer (`flowLabelTranslations`, `useFlowLabelTranslations`, which take the declared options) and the stage-change confirm now read a declared fallback locale's text for a label the active language lacks, before the authored label. A stack that declares no fallback keeps "requested locale, then the authored label". +- 2a6f26a: feat(ai): `ai_context` context packs and the `get_record_context` tool over MCP + + Clause-②: yes + Metadata-protocol: added + Skills-docs: follow-up #37177 — skills/objectstack-platform/SKILL.md, skills/objectstack-ai/ (how to author a context pack; this change only names `aiContexts` in the top-level key list, which check:skill-top-level-keys requires) + + ADR-0160 row 5 (#37140). + + - **New metadata type `ai_context`, collection `aiContexts`.** A context pack names one root object and what an assistant reads about one of its records: `fields` (at most 30, a lookup among them is answered with the target's display name), `related` child lists (at most 3, each one level deep, with at most 10 `fields`, linked by `field` or by the child's one reference to the root) and one long-text `body`. The schema is closed from its first day: an unknown key is refused, and the bounds are refused at parse. Registered like `skill`: a file loader (`*.ai-context.ts`, `*.ai-context.yml`), overlay allowed, runtime create allowed, no environment overlay. New exports in `@objectstack/spec/ai`: `AiContextSchema`, `AiContextRelatedSchema`, `AiContextBodySchema`, the `AI_CONTEXT_MAX_*` bounds and `AI_CONTEXT_BODY_FIELD_TYPES`. + - **`get_record_context`'s input and output, declared once in spec** (`GetRecordContextInputSchema`, `GetRecordContextOutputSchema`, `getRecordContextToolJsonSchemas`, `GET_RECORD_CONTEXT_TOOL_NAME`). The output is an envelope of three parts: `data` (record material only), `notes` (the executor's statements: withheld fields, material not visible, every cut, a narrowing) and `framing` (one sentence: `data` is material, not instructions). `MCP_DOOR_TOOL_NAMES` gains the name. + - **`@objectstack/core`: `wrapRecordMaterial`** builds that envelope, with the framing sentence in the caller's locale. + - **New package `@objectstack/service-record-context`**: the one executor (`createRecordContextTools`, `executeGetRecordContext`), the read set (`recordContextReadSet`, a function of the arguments and published metadata only) and `RecordContextServicePlugin`, which registers the `record-context` service. Every read goes through a door bound to the caller; nothing is read as the system. Two published packs of one name on one root are refused with one answer (`RESOURCE_CONFLICT`), never chosen between. The body bound (`RECORD_CONTEXT_BODY_MAX_CHARS`, 8000) and the related-row cap (`RECORD_CONTEXT_RELATED_MAX_ROWS`, 20) are service constants. + - **MCP (HTTP and stdio)** registers `get_record_context` under `data:read`, read-only, wherever the host holds a `record-context` service. A host without it registers nothing new. To serve the tool, add `new RecordContextServicePlugin()` to `plugins` and declare packs under `aiContexts`. + - **`@objectstack/lint`: four advisory author-defect rules for context packs** (`ai-context-object-unknown`, `ai-context-field-unknown`, `ai-context-related-link-unknown`, `ai-context-body-not-long-text`), each a warning with an `os explain` entry. `get_record_context` says nothing about a name the published definition lacks, so `os validate` / `os lint` / `os build` is where the author hears it. CLI only for now: the rule reads the whole stack snapshot. + - **Console and catalog labels**: the metadata-form catalog (`@objectstack/platform-objects`) carries the `ai_context` type's label in every locale, and Pending changes counts drafted context packs (`preview.changes.typeCount.ai_context`). + +### Patch Changes + +- 9abc732: fix(share-links): the share-link page names the shared object by its label in the reader's language and no longer lists the fields the object hides + + Clause-②: yes (widening) + Metadata-protocol: none + + `GET /api/v1/share-links/{token}/resolve` answers two more facts, on both of its mounts (the sharing plugin's route and the runtime dispatcher's `/share-links` domain): + + - `link.object_label` — the shared object's label in the request's locale: the request's `Accept-Language` top tag, else the i18n service's default locale, translated the way `GET /meta/object/NAME` translates it: the translation bundle over the served `label`, with the deployment's fallback locale and authored language, and the object's packaged declaration read through the metadata protocol. A renamed object therefore keeps its rename and is not given the bundle's translation of its old label. With no i18n service, or no bundle entry for that locale, the served label is served. An object that declares no label carries no `object_label`. + - `fields[NAME].hidden: true` — for a field the object declares hidden, including the injected scope and queue columns, which are hidden at their source. A field that is not hidden carries no `hidden` key. + + Both public share-link routes (`/resolve` and `/messages`), on both mounts, now answer `Vary: X-Share-Password, X-Share-Password-Encoding, Accept-Language` (the new `SHARE_LINK_PUBLIC_VARY` in `@objectstack/types`). Before, they sent only the two password headers. They still send `Cache-Control: no-store`. + + `ShareLinkResolvedLink` and `ShareLinkFieldDisplay` (`@objectstack/types`) gain the two optional keys, and `buildShareLinkResolveAnswer` takes an optional fourth argument with the request's `Accept-Language` value, the i18n service and the metadata protocol. `registerShareLinkRoutes` (`@objectstack/plugin-sharing`) takes optional `i18n` and `protocol` resolvers, which `SharingServicePlugin` wires to the kernel's `i18n` and `protocol` services. + + The console's share-link page (`@object-ui/console`) titles the page with the label ("Shared Client Brief"), falling back to the object's name from a server that does not send one, and leaves off every field the answer marks hidden, as the record page does. Its resolve and messages requests state the console's UI language as `Accept-Language`, so the label arrives in the language the rest of the page is in. + + Nothing to migrate: a caller that reads neither key is unaffected. +- 4c2d8d7: fix(runtime)!: an analytics query that selects nothing answers 400 `VALIDATION_FAILED` at the entry instead of the engine's 500 + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is the answer the two analytics REST doors give a request body that selects no measure, no dimension and no bucketed time dimension: no stored row, registry key or authored value changes, so there is nothing for a migration to rewrite and no tombstone. --> + + **BREAKING** for a caller of `POST /api/v1/analytics/query` or `POST /api/v1/analytics/sql` whose body has `measures: []`, no `dimensions` (absent or empty) and no `timeDimensions` entry carrying a `granularity`. + + - FROM: the body passed the entry check and reached the engine. `/analytics/query` ran `SELECT FROM "<table>"` and answered `500 DATABASE_ERROR`; `/analytics/sql` echoed the same broken statement as a 200. + Where the engine refused such a body before choosing a strategy, it answered that refusal instead, and those answers move to the 400 too: an unknown cube or a `public: false` one (`404 CUBE_NOT_FOUND`), a cube over an object the caller may not read (`403 PERMISSION_DENIED`), and an `order` key naming no selected member (`400 INVALID_FIELD`). On a deployment the ObjectQL strategy serves, `/analytics/query` answered a 200 with one row that carries no column. + - TO: both doors refuse that body with `400 VALIDATION_FAILED` and one `details.fields[]` entry at `measures` (code `min_items`) telling the caller to select at least one measure or dimension, and the analytics service is not called. + + **Not moved.** A dimension-only query, a query with one measure, and a query whose only selection is a bucketed time dimension are unchanged. A time dimension that carries only a `dateRange` is a filter and does not count as a selection. + + The fix for a caller: name at least one measure or dimension (or a time dimension with a `granularity`) in the query. +- a998964: fix(runtime): an AI service account refused a confirmation-gated flow start now gets `details.reason: 'service_account'`, as the action door gives it + + Clause-②: no + Metadata-protocol: none + + When an AI service account starts a flow by name (`POST /api/v1/automation/:name/trigger` or the older `POST /api/v1/automation/trigger/:name`) and an action that targets the flow declares `ai.requiresConfirmation: true`, the route refuses it with `428 ACTION_CONFIRMATION_REQUIRED`. That refusal's `details` named the action, its object and the confirmation member, but not the reason. Every action door already gives the same account `details.reason: 'service_account'`. The flow-start refusal now carries it too, so a client that branches on the reason handles a refused flow start the same way it handles a refused action. + + What does not change: the code, the status, the message and the other `details` members are the same. A person and an OAuth-delegated agent start the flow as before. No metadata key, value or default changes. +- cceb5c6: fix(audit): the action invocation row of an aggregate bulk call records how many selected rows succeeded, failed or were not confirmed + + Clause-②: yes + Metadata-protocol: none + + An `execution: 'aggregate'` bulk action is one call for the whole selection, with the ids in `params._selectedIds`. When its handler moved some rows and failed others, it resolves with a `BulkActionResult` (`{ succeeded: [ids], failed: [{ id, message }] }`, `@objectstack/spec/ui`) and does not throw. The `action_invocation` row in `sys_audit_log` recorded only `outcome: 'succeeded'` for that call, so the audit trail said a partly failed run fully succeeded. + + The outcome stays `succeeded`. When the call carried `_selectedIds` and its resolve value carries a `succeeded` or `failed` member, the row's `metadata` now also records what that value reads as under `BulkActionResultSchema`, counted by the rules the console's bulk dialog counts with: an id outside the selection is dropped, a duplicate counts once, an id in both lists counts as failed, and a selected id in neither list is not confirmed. + + - `bulk_selected`, `bulk_succeeded`, `bulk_failed` and `bulk_unconfirmed`, where `bulk_selected = bulk_succeeded + bulk_failed + bulk_unconfirmed`; + - or, when the value carries a member but does not parse, `bulk_unreadable: true` alone and no succeeded count. + + A handler that resolves with nothing, or with a value that has neither member (a summary, a download link), records the row as before. A call with no `_selectedIds`, a failed call and a `resume_run` add no bulk key. Both the REST `POST /actions/:object/:action` door (and a host's `dispatchAction`) and the MCP `run_action` tool record the counts. + + `ActionInvocationAuditEvent` gains an optional `bulk` member in both packages, and `@objectstack/plugin-audit` exports its type, `ActionInvocationBulkReading`. A reader of the ledger that lists `metadata` keys sees the new keys on these rows only. +- f796089: fix(spec,metadata-protocol)!: retire the seed modes `insert` and `replace`, which inserted every record again on each replay + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: follow-up #34798 + + <!-- adr-0087: registered seed-mode-insert-replace-retired --> + + **BREAKING** for a seed dataset authored with `mode: 'insert'` or `mode: 'replace'`. A seed is replayed on every single-tenant boot, every package install or upgrade and every publish, and neither mode matched an existing row, so every replay inserted each record again: an un-walled install went from 1 to 2 to 3 rows over three boots, a person reference the first load had to leave empty stayed empty on the first row while only the newest copy named the person, and with a unique field the replay insert was refused and the one row stayed empty. `replace` expected the caller to clear the table first, and no load path ever clears one. + + What moves (each line FROM → TO): + + - `SeedSchema.mode` / `SeedMode` (`@objectstack/spec/data`; `defineSeed`, `defineStack({ data })`, a `seed` metadata item, a package body's seed): FROM `insert` / `update` / `upsert` / `replace` / `ignore` TO `update` / `upsert` / `ignore` (default `ignore`, unchanged). `mode: 'insert'` or `mode: 'replace'` fails parse with a prescription naming the fix; the save and publish doors refuse it with the same message. The retired pair is exported as `RETIRED_SEED_MODE_VALUES` (`@objectstack/spec/data`): it is derived from the parse refusal's own table, and the loader and the artifact door read it. + - a stored dataset that still declares one, replayed by the boot seed, the per-organization replay, the dev hot reload or a package install, upgrade or sample-data reseed (`SeedLoaderService.loadStored`, `@objectstack/metadata-protocol`): FROM inserted again on every load TO refused alone — it writes nothing, the load result carries one error with the prescription and `success: false`, and every other dataset loads. `SeedLoaderService.load()` and `validate()` refuse the dataset the same way when handed one unparsed, so a dry run reports what a real load does. + - a compiled artifact (`objectstack.json`) carrying such a dataset, booted by `os serve` / `os start` / `os dev` (the artifact door, `MetadataPlugin`, `@objectstack/metadata`): the door parses the artifact without that dataset and hands it back to the seed load, which refuses it alone; the door logs a warning naming the dataset and the fix. Everything else in the artifact registers and boots. + - `os diff` (`@objectstack/cli`) on a dataset declaring either mode: FROM "a replay inserts these again" TO a note that the mode is retired, that a replay refuses the dataset, and what to declare. + - the advisory lint rule `seed-insert-mode-duplicates-on-replay` (`validateSeedReplaySafety`, `@objectstack/lint`): FROM a warning on `mode: 'insert'` TO removed; the schema refusal does its job for both modes. The author-time rule count `os validate` / `os build` print drops by one (71 to 70 at this release). + - the save door's and the loader's hint for a key no record carries: FROM "or use mode 'insert' for rows with no natural key" TO a list of fields when no single field names a row, or `'id'` when the records carry their own ids. + + The fix: declare which field identifies a row and drop the mode (or declare `upsert` for reference data the package keeps current). Set `externalId` to the field that names a row, to a list of fields when no single field does (a junction table's `['team', 'project']`), or to `'id'` when the records carry their own ids. Rebuild the package, and reinstall it where it was installed with `os package install`, so the stored body carries the new declaration. + + No conversion is made, at load, at save or by a migration (ADR-0087 D3, entry `seed-mode-insert-replace-retired`): a keyed mode needs the field that identifies a row, and only the author knows it. Rows earlier replays duplicated are data and are left as they are. + + Unchanged: `ignore`, `upsert` and `update` datasets load byte-identically. +- 2d33205: feat(runtime,mcp): the open MCP server saves and discards metadata drafts, and every save answers with what publishing the draft would say + + Clause-②: yes (widening) + Metadata-protocol: none + + The open draft door on a self-hosted runtime gains its write half. It is served to the same OAuth clients as the read tools: the token carries `metadata:write` and its user holds `manage_metadata`. + + - `save_metadata_draft({ type, name, item, package, ifMatch? })` saves `item` as a pending draft in `package`, recorded as an MCP save by the token's OAuth client. The reply carries `saved` (type, name, package, state, version), `verdict` and `review`. `verdict` is what publishing the stored draft would say: `publishable`, `refusals` (the issues a publish would refuse the draft on) and `advisories`, each with `rule`, `path`, `message`, `hint` and `severity`. `review` holds the Console routes where a person reviews and publishes the draft in Studio. `ifMatch` is the version the save expects to replace; a stale one is refused as the `/meta` draft save refuses it. + - A save that names no `package` is refused `400 VALIDATION_ERROR`, and nothing is saved. The refusal names the writable packages in that environment. + - `delete_metadata_draft({ type, name, package? })` discards a pending draft. The published version, if any, is left as it is. + - `list_drafts` now gives each draft its `verdict`. A draft the user may not read (for example a dashboard whose `requiredPermissions` they lack) is listed with `verdict: null` and the reason it was withheld. + + A plural type spelling (`dashboards`) is folded to its singular before any gate, verdict or write, as the `/meta` doors fold it. Both writes ask the type-level write admission every `/meta` write asks, so a metadata type the user may not write is refused `403 PERMISSION_DENIED` and nothing is written; a verdict, on a save or a listed draft, is withheld for a type the user may not read. A tenant whose catalog is walled refuses both writes `403 PERMISSION_DENIED`, as the `/meta` write path does; a platform admin is admitted. Nothing on this server publishes: there is no publish tool and no `force`. + + When the authoring tools are listed, the open server's default `initialize` instructions add one paragraph saying that they save drafts only and that a person publishes in Studio. The paragraph is absent when the tools are not served, and a host's own instructions replace the default text as before. +- 78f3ab2: feat(runtime): the open MCP server lists metadata and pending drafts for an OAuth client with `metadata:write` whose user holds `manage_metadata` + + Clause-②: yes (widening) + Metadata-protocol: none + + An AI client connected over MCP with an OAuth token that carries `metadata:write` now gets three read tools on a self-hosted runtime, the first half of the open draft door (design `docs/design/mcp-local-first-door.md`, Design A): + + - `list_metadata_items({ type, state? })` lists one metadata type's items as summaries (name, label, package). A pending draft is listed in place of its published version and marked `draft: true`; `state: "active"` lists the published items only, `state: "draft"` the pending drafts only. A type the platform does not declare is refused with `400 INVALID_REQUEST`, as the `/meta` list refuses it. + - `get_metadata_item({ type, name, state? })` reads one item's full definition: the pending draft where one exists, unless `state` selects the draft or the published version. An item that does not exist answers `404 RESOURCE_NOT_FOUND`. + - `list_drafts({ package? })` lists the pending drafts, optionally for one package. + + The tools are served only where both halves hold: the token consents (`metadata:write`) and the user the token was issued to holds `manage_metadata` in the organization the token bound. The user's capability is read from their own grants on each request, because an OAuth agent's envelope carries no system permission without `actions:execute`. A token whose user lacks the capability is listed none of the three tools, and a call that reaches them anyway is refused `403 PERMISSION_DENIED`. A token without `metadata:write`, an API key and a session see none of them, as before. When the user's grants cannot be read, the tools are not served on that request and the runtime logs one warning. + + The reads withhold what every `/meta` door withholds from that user, judged by the same read gates with the user as the caller: a dashboard, a list view or an app whose `requiredPermissions` the user does not hold, and a book or doc outside their audience, are refused `403 PERMISSION_DENIED` by `get_metadata_item` and left out of `list_metadata_items`. Before either gate, both reads ask the type-level read admission every `/meta` read asks: a metadata type the user may not read is refused `403 PERMISSION_DENIED` on both, whatever its spelling or `state`. Holding `manage_metadata` does not lift these refusals. A gate that cannot evaluate refuses the read. + + The read tools are named `list_metadata_items` and `get_metadata_item`, not `list_metadata` and `get_metadata`, because `list_metadata` is a hosted platform tool. Nothing here writes: saving and discarding drafts, and the publish verdict a save answers with, come in a later change. +- 3c038eb: Clause-②: yes — widening: a new optional tool input and one new instructions line; the major refusal applies only to a client that sends the new input, so nothing a client could send before is refused. + Metadata-protocol: none + + feat(mcp): the open server states its authoring contract version and refuses a client on another spec major + + - **`initialize` instructions.** Where a connection lists authoring tools, the open server's default instructions now carry `Authoring contract: @objectstack/spec <version>` as their second paragraph, with the `@objectstack/spec` version the server resolves. A host's own text and a configured text are unchanged. The longest default text stays under 4,096 characters. + - **`save_metadata_draft` takes an optional `clientSpecVersion`**, the `@objectstack/spec` version the client built against. Another major is refused before anything is saved (`VALIDATION_ERROR`, 400), naming both versions and the command to run: `npm i -D @objectstack/spec@<server version>`. Another minor is saved as usual, and the answer carries a `specVersionAdvisory`. A value that is not a SemVer version is refused as an input error. A save without it, or with the same major and minor, answers exactly as before. The item's own validation is still the final gate. +- 96faf44: Clause-②: yes (widening) + Metadata-protocol: none + + fix(i18n, mcp): a translation fault serves the untranslated text and the fault is logged, instead of failing the read; `list_datasets` is flagged `partial` with a `warning`, while REST `/meta`, the MCP object tools and `query_dataset` log only + + When the i18n service resolves but its `getLocales` or `getTranslations` throws, the shared `/meta` translator (`translationBundleOf`, `@objectstack/rest`) now answers it as no bundle: the text is served untranslated and the server log says so at `warn` (`The translations could not be read (…), so labels and descriptions are served untranslated.`). Before, the translation rejected, so `GET /meta/:type` and `GET /meta/:type/:name` answered 500, the MCP object tools failed, `list_datasets` answered `datasets: []` with `partial: true`, and `query_dataset` refused 503 on both MCP transports. + + Now `list_datasets` keeps every dataset, in its authored text, with `partial: true` and that sentence as its `warning`; `query_dataset` answers. A dataset host's `loadDatasets` may return `{ items, warning }` without `partial`: a whole read the tools say something about, which `query_dataset` does not refuse. The translator's sources take an optional `reportTranslationFault(warning)` to carry the sentence on an answer. + + fix(mcp): `?locale=` reaches the MCP labels, and the dataset tools answer in one language + + The HTTP MCP door now reads a `?locale=` query parameter as the `/meta` doors do (after `Accept-Language`, before the i18n default), for the object and dataset labels and the app-docs tools; it read headers only, though its docblock promised both. The dataset executor (`createDatasetTools`) takes an optional `translationLocale` dependency, the locale its `loadDatasets` translated the rows for, and reads labels and composes `nextStep` and `sourceLine` in it first. Both MCP transports pass it, so a call with no `Accept-Language` (common for MCP clients, and every stdio call) no longer mixes labels in the i18n default with sentences in the workspace locale. +- 961f474: fix(runtime): an action body that runs out of time answers a sentence naming the action and its limit, at the same `500 INTERNAL_ERROR` + + Clause-②: no + Metadata-protocol: none + + An action body that hit its time limit answered `500 INTERNAL_ERROR "Internal server error"` on the `/actions` door and MCP `run_action`, naming neither the action nor the limit, so a caller (an AI agent above all) could not tell a slow action from a broken platform. It now answers the same status and code with the sentence `Action 'NAME' timed out: it exceeded its N ms time limit and was stopped.`, where `N` is the CPU-time budget the body ran under (its `body.timeoutMs`, the enclosing timeout, or the `OS_SANDBOX_ACTION_TIMEOUT_MS` default). A body stuck waiting on platform calls past the wall-clock ceiling answers `Action 'NAME' timed out: it exceeded its N ms time limit while waiting on platform calls, and was stopped.` Both doors read one reader, so they answer the same sentence. The server log line is unchanged (`action 'NAME' exceeded CPU budget of Nms (after P pump iterations)`). + + The same holds for an action that declares `refusals`. A timeout, like a body that does not compile, is the platform's own fault, so the action's refusal catalogue passes it through unchanged: the caller gets the sentence and the log keeps the runner's own line. Before, the catalogue read a compile failure on such an action as the body's code-less throw, answered the bare `500 "Internal server error"`, and logged "threw no code, and its refusals declares no such code". A body's own throw without a code is still refused that way. + + Nothing else moves. A body that crashes (a `TypeError`, say) still answers the sanitised `500 "Internal server error"`, because its own text may carry the data it was reading. A hook's or a job's timeout is unchanged: it carries no caller sentence, and the `/data` door and import rows answer it as before. The action's sentence is declared at `500`, so the `/data` door, which relays a sandbox sentence only below the server band, never serves it as business text. +- 8596c80: fix(runtime, cloud-connection): an upgrade replaces the package's seed datasets on the shared replay list + + Clause-②: yes (widening) + Metadata-protocol: none + + The shared `seed-datasets` list that per-organization seed replay reads was append-only. After a package was upgraded in a running process, the superseded version's datasets stayed on the list until a restart, so every organization founded in between replayed the old and the new version's seed sets. When the upgrade changed an object's `fallback: true` set, the two marked sets refused that object's fallback choice, and a dataset declaring `dependsOn` that object refused the whole load for an organization whose locale no set lists. + + `mergeSeedDatasets(ctx, datasets, owner?)` takes an optional `owner`. Given, the owner's earlier entries are replaced on the same live array (in their place) instead of kept beside the new ones; an empty `datasets` takes them off. Omitted, the datasets are appended as before, which is what a config app's boot merge still does. The install-local door merges under the package id on install, upgrade, reinstall, reseed and rehydrate, so the list holds the installed version only: reinstalling the same version adds no duplicate, and a version that ships no seed data takes its predecessor's datasets off the list. +- ec227fc: feat(mcp, runtime): `query_records` and `get_record` name the fields field-level security withheld from the caller + + Clause-②: yes (widening) + Metadata-protocol: none + + A row served over MCP leaves out every field the caller may not read, and nothing in it said so, so an AI client read a withheld field as blank. `query_records` and `get_record` now add two members to their result when a field was withheld, on the HTTP and the stdio server alike: + + - `withheldFields`: the names of the withheld fields, field names only, never values. With `fields` in the call, only the asked fields are named; without it, any field of the object. + - `withheldFieldsNote`: one sentence saying these fields exist and are not visible to the caller, and that they must not be described as empty. + + A field is named only when the caller's own served schema shows it (the object as `describe_object` serves it to them) and the security service does not answer it readable for them. Both are asked as the caller; nothing is derived from the rows. A field the caller's schema does not show is never named. Under the default object-schema masking, a field a caller may not read is usually left out of their schema too, so `withheldFields` appears for a caller who is served the whole schema (a caller holding `manage_metadata`, `studio.access` or `setup.access`) or where schema masking is switched off. + + A caller with nothing withheld, a deployment with no security service, and a server whose bridge does not provide the new optional `McpDataBridge.fieldVisibilityOf` member get the result they got before, byte for byte. The two tool descriptions gain one sentence about the member. + + `aggregate_records` is unchanged: a withheld field asked as a measure or a group is already refused `403 PERMISSION_DENIED`. +- 8856afc: feat(mcp): a refused record read says the data is not recorded, in the caller's language + + Clause-②: yes (widening) + Metadata-protocol: none + + When `query_records`, `aggregate_records` or `get_record` is refused and the call named an object, or a field, that the caller's own schema does not show (the object as `describe_object` serves it to them), the refusal now carries two members beside it, on the HTTP and the stdio server alike: + + - `notRecorded`: what is not recorded, as the caller sent it: `{ "object": "<name>" }`, or `{ "object": "<name>", "fields": ["<name>", …] }` for the field names the call sent that the schema does not show, in the order sent. Every sent name is read by its head on every channel (`where`, `fields`, `orderBy`, `groupBy`, an aggregation's `field` and `filter`), so `owner.name` is judged by `owner`, and a dotted name whose head the schema shows is never named. + - `ifNotRecorded`: one sentence, in the caller's language (English, Simplified and Traditional Chinese, Japanese), telling the model to say the data is not recorded, never to report 0 or an empty result for it, and not to answer with another object or field in its place. + + The answer names only what the caller can see: both members are built from the names the caller sent and from the caller's served schema, and nothing else. The refusal itself (`isError`, its `code`, `message` and `status`) is unchanged, byte for byte. A read that answers, a refusal about a field the caller's schema shows, a server fault, and a refusal whose schema read cannot be made carry no member. `id`, `created_at` and `updated_at`, which every object answers, are never named. + + The language is chosen by one shared picker, `pickSentenceLocale` (with `platformLocaleNamedBy`), now exported from `@objectstack/core`: the first of the caller's locales (the request's, then the workspace default) that names a language the sentence is written in, else `en`. The dataset tools' `nextStep` and `sourceLine` (`@objectstack/service-analytics`) use the same picker, with unchanged behaviour. `McpDataBridge` gains an optional `userTextLocales()` member: the HTTP bridge answers the request's ladder, the stdio bridge the principal's ladder and then the i18n service's default. A bridge without it is answered in `en`. +- 65b67be: feat(mcp): `aggregate_records` orders, cuts and counts its groups in the database + + Clause-②: yes (widening: `orderBy` and `limit` arguments on `aggregate_records`) + Metadata-protocol: none + + A ranking question ("the top five customers by revenue") over more groups than the tool's row cap used to come back as every group, or the first page of them, in no stated order, and the client ranked what it happened to get. `aggregate_records` now takes `orderBy` — a list of `{ field, order }` naming an aggregation alias or a group key (its alias when it has one) — and `limit` (at most the row cap). The database orders the groups, cuts them, and counts how many groups it formed before the cut, in one statement; the result carries the groups, `totalGroups` (the key the tool already answers, now the database's count of the groups before the cut), and `truncated: true` when more groups existed than came back. + + - An order key that names no column of the aggregated row is refused `INVALID_SORT` / 400, naming the columns the query projects. + - Only a driver that runs the cut in its own SQL statement serves it: `driver-sql` (every dialect it speaks; the window `count(*) over ()` needs MySQL 8 or later), the WASM SQLite driver, and the Turso driver's local and replica faces. Every other driver (the in-memory driver, MongoDB, OData, Turso's remote face), an aggregate the engine computes in memory (a date bucket, a reference timezone or a measure filter the driver does not run), and an aggregate with `having` are refused `INVALID_QUERY` / 400 before anything is read. Groups are never ordered or cut in the application. + - On an order key without a `rank`, a NULL ranks last in either direction, except a `sum` or a count with no value, which ranks as the `0` it is served as. Group keys the order does not name, and a group key it names only by a `rank`, break ties, ascending, NULL last, so two runs of one call answer the same groups in the same order. + - An order key may carry a `rank`, a list of the column's values: the statement ranks each listed value by its position and every other value (a NULL among them) on one rank past them, before the cut, so the unlisted values come after the listed ones ascending and before them descending; among themselves they follow the column's own ascending order, NULL last. It is the tool's own, never an `aggregate_records` argument. + - A `limit` with no `orderBy` keeps the declared option order the uncut answer already follows: groups keyed by a leading select or radio field come back in the order the field declares its options, a value no option declares last, and the database takes that order before the cut, so the cut keeps the first declared groups. An `orderBy` the caller sends overrides it. + - The cut answer carries what the uncut one does: a fixed-currency amount's currency in `currencies`, and `KEY__label` beside each lookup or master-detail group key, the record's name read with the caller's own permissions. + - An amount whose records each carry their own currency is ranked by its bare numbers across currencies: the tool description says to rank it inside one currency by filtering `where` on its currency code field. + - Without `orderBy` and `limit` the tool answers as before. + + `@objectstack/objectql` exports `AGGREGATE_ORDER_CUT`, the engine-internal read option of `aggregate` that carries the request (a symbol, so no wire request can set it), with the `AggregateOrderCutRequest`, `AggregateOrderKey` and `AggregateOrderCutOutcome` types. `McpDataBridge` gains the optional member `aggregateGroups`; a bridge without it refuses `orderBy` / `limit` with `NOT_IMPLEMENTED` / 501 and keeps serving the rest of the tool. Nothing that was accepted before is refused. +- 1caee8c: feat(mcp): "each X with its latest Y" in one `query_records` call — `latestPer` + + Clause-②: yes (widening): a new read form on the published MCP tool surface. Judged from the card content; the build confirms it + Metadata-protocol: none + + `query_records` takes `latestPer: { by, orderBy }`: one row per group, the group's first row in the given order. `by` names 1 to 3 fields, `orderBy` 1 to 3 keys (`asc` / `desc`); a tie goes to the record id in the direction of the last key, and an empty order value ranks last. "Each account with its latest deal" is `{ objectName: 'crm_opportunity', latestPer: { by: ['account'], orderBy: [{ field: 'close_date', order: 'desc' }] } }`. + + - The row is chosen among the rows the caller may read and the `where` admits: a group whose newest row is hidden from the caller answers its newest readable row, never the hidden one and never nothing. The organization wall holds inside the choice. Field masking still applies to the returned rows. + - A partition or order field the caller may not read is refused as it is in `orderBy`; a computed, JSON or multi-value field, or a dotted path, is refused as a partition or order field. + - `limit` counts groups, capped at the tool's `maxLimit` like any list. The answer is `{ object, records, hasMore }` and never a `total`; when more groups exist than came back it carries `truncated: true`. + - Served by the SQL driver (Postgres, MySQL, SQLite) and by `driver-sqlite-wasm` and the Turso driver on a local or embedded-replica database: the driver compiles a `ROW_NUMBER()` window over the read's own scoped selection. Every other driver (in-memory, Turso's remote connection, MongoDB), an object with an `afterFind` hook and an object with object-scoped read middleware refuse with `INVALID_QUERY` / 400 before anything is read. The Turso driver's remote face refuses the directive itself too. + - New exports: `LATEST_PER`, `LATEST_PER_MAX_KEYS` and the `LatestPerRequest` / `LatestPerOrder` / `LatestPerOutcome` types from `@objectstack/objectql`; `LATEST_PER_DIRECTIVE`, `latestPerDirectiveOf` and the `LatestPerDirective` / `LatestPerDirectiveOrder` types from `@objectstack/driver-sql`; `McpLatestPer` from `@objectstack/mcp`. The request rides an in-process read option, never a wire or query key; `@objectstack/spec` is unchanged. + + Without `latestPer`, `query_records` and every read are unchanged. +- dbb2f68: feat(mcp): a record with its related records in one call — `expand` on `query_records`, `related` on `get_record` + + Clause-②: yes (widening) + Metadata-protocol: none + + `query_records` takes `expand`: up to 3 of the queried object's lookup, master-detail, user or tree fields, each answered as the record it names, one level deep. `get_record` takes `related`: up to 3 child objects that point at the record, each answered as a list of at most 20 rows (never above the tool's `maxQueryLimit`), as `{ record, related: [{ object, field, records, total, hasMore }] }`. + + - Every object a new read shape reaches is judged by the MCP read guard exactly as the object the call names. A target the guard refuses refuses the whole call with `PERMISSION_DENIED` / 403 before any record is read. A related object whose definition is not served to the caller refuses it with `OBJECT_NOT_FOUND` / 404, also before any read. + - An `expand` name that is not a relationship field of the object as the caller is served it, and a `related` link `field` that does not point at the record, are refused with `INVALID_FIELD` / 400 before any read. A child that points at the record through several fields needs `field`. + - `expand` runs through the engine's one expansion path: one batched `id IN (...)` read per field, under the target's own permissions, row-level security and field masking. It combines with `latestPer`. Only the read guard's refusal refuses the call: a record the caller may not read on an admitted target object is not expanded, and the field keeps its stored id. + - A related list is one `query_records` read of the child, filtered only by the link to the record, with the child's own `fields` and `orderBy` and no caller filter. It is read only after the record itself. A list with more rows than its cap carries `truncated: true`. + - Each related list carries the delegation notice `query_records` carries (`delegationNarrowed`, `warning`) when the agent ceiling narrowed the read. + - The record and each related list carry `withheldFields` exactly as a plain `get_record` and a plain `query_records` of that object do. + - The stdio bridge serves `expand` too, built as the data door builds it (a target that does not serve `get` keeps its stored id). `McpDataBridge.query` gains an optional `expand` member. + + Without `expand` or `related`, both tools answer exactly as before. `@objectstack/spec` is unchanged. +- 467b13b: fix(runtime): `platformSystemApi` on an action handler's `ctx.api` keeps the `'action'` mark, and what it returns stays wrapped + + Clause-②: no + Metadata-protocol: none + + `platformSystemApi(api)` (new in this release, from `@objectstack/objectql`) takes the app-automation elevation mark and `flowRunId` off a hook's api, so the audit writer's own ledger rows are not judged as an automation's insert. On the `ctx.api` an action door hands a host code action handler (`engine.registerAction`) it took the `'action'` mark off too, so a handler handing its own api to it could write `sys_member`, `sys_user_position`, `sys_user_permission_set` and `sys_invitation` as a platform writer, against the documented refusal for action handlers. What it returned also bypassed the two layers runtime puts on that api: the stored-metadata read projection and the answer for a write that landed while its parent roll-up could not be recomputed. + + - The api an action door builds now carries its own origin flag, a runtime layer beneath its other two, kept by every api derived from it (`sudo()`, `withRunAs(...)`, a transaction's context, and the api `seedHookUserGrants` / `seedHookUnreadMembership` return). On it, `platformSystemApi(api)` returns what `api.sudo()` returns: the `'action'` mark and any `flowRunId` kept. Writes to the four identity-assignment objects through it are refused `PERMISSION_DENIED` (403), and its inserts are owner-stamped with the invoking user, as the handler's own are. + - The flag is not the app-authored flag: a host handler's `delete(…, { permanent: true })` still runs. + - The api the audit writer holds (a hook registered in code) is unchanged: `platformSystemApi` still takes the mark off there. + - Runtime's derivation walk now wraps the api any symbol-keyed member derives (`platformSystemApi`'s, the user-grants seeds'), awaited when it is a promise, so it is served through the stored-metadata read seam and the landed-write answer like `ctx.api.sudo()`. + - No new export, and `@objectstack/objectql` is unchanged but for its module header: the member's key is the `Symbol.for` key objectql already uses, which neither package entry exports. +- 53c9575: feat(mcp): the MCP door can search and read the installed apps' manuals, and tells the client how to answer a question about the app + + Clause-②: yes + Metadata-protocol: none + + An AI client connected over MCP (a user's own Claude, Cursor, …) can now answer "what is X?" and "how does this approval work?" from the manuals the installed apps ship, instead of from its own guess: + + - **`search_package_docs({ terms, package? })`** finds the pages whose title, a heading or text contains one of the terms (case aside, in the page's base text or a translation). Pages that contain more of the terms come first, then pages where the terms sit higher (the sum of title 3, heading 2, text 1), then by title; at most 10, each with an excerpt, its manual and, where the page has one, its console address (`/_console/apps/<package>/docs/<book>/<page>`) to cite. The heading parse is line-based and linear. + - **`read_package_doc({ name, package?, locale? })`** reads one page: its title, manual, Markdown content and, where the page has one, its console address (cut at 60,000 characters, and the answer says so). + - **Who sees what.** Both tools read the `doc` items through the `/meta/doc` docs-audience gate (ADR-0046 §6.7) with the request's execution context as the caller: a page the caller may not read is neither found nor read, and answers as not found. On an OAuth grant the request is an agent acting for the person who consented, and a permission-set audience is read against that person's own permission sets (ADR-0090 D10), never the token's scope-derived sets. Both are read tools: they register for an API key, a session, or a token granted `data:read`. The runtime's HTTP bridge carries them where the protocol serves the `/meta` list read; the stdio bridge does not. + - **The answer order.** Where both tools register, the HTTP `initialize` instructions say: read the manuals first; answer a concept from the manual, and label a general explanation as one when no page covers it; for a process or rule, also read its real definition, which wins where the two differ; end with each page's title and url. The rule names a definition reader only where the connection lists one (`describe_metadata`, else `get_metadata_item`, both under `metadata:write`); without one it says to answer from the manual and state that the configured process was not checked. A host's own instructions and a configured `instructions` option are served unchanged. + + The two names are the ones the cloud AI runtime already registers, so `MCP_DOOR_TOOL_NAMES` (`@objectstack/spec/system`) now lists them too; `PLATFORM_PROVIDED_TOOL_NAMES` is unchanged. No metadata key, value or default changes. +- fcbebf2: fix(runtime)!: `callData`'s aggregate arm and no-protocol query fallback refuse a relation condition on a disabled package's object, the answer the data route already gives + + Clause-②: yes (narrowing: adds the root export `objectPackageDisabledError` to `@objectstack/metadata-protocol`; for a non-system caller, `callData`'s `aggregate` arm and its `query` fallback on a host with no protocol service refuse a nested-relation condition whose target belongs to a disabled package with 404 `OBJECT_PACKAGE_DISABLED`, where they answered the count or the matching rows) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed or renamed, and nothing stored is rewritten: the moved answer is what the data route already answers for a relation condition on a disabled package's object. A caller that needs those records re-enables the package. --> + + **BREAKING** for a non-system caller of `callData` on an environment that disables a package: the `/mcp` HTTP bridge's `aggregate_records` tool, and any host door that hands a caller's `where` to this function. A disable takes the package's records off the data plane: the data route answers its objects `404 OBJECT_PACKAGE_DISABLED`, and it refuses a nested-relation condition (`{ "lookup": { "field": VALUE } }`) on such an object the same way. `callData`'s `aggregate` arm never reaches the protocol, and on a host that registers no protocol service neither does its `query` fallback, so both still lowered the condition through the engine: a count came back 1 for the stored value and 0 for any other, a yes/no answer on a field of an object nobody may read. + + - FROM: the condition was evaluated and the count (or the matching rows) returned. + - TO: a condition directly beneath a lookup of the queried object is refused `404 OBJECT_PACKAGE_DISABLED`, naming the disabled object as `object` and the condition's position as `param` (for example `where.b_ref`), before the engine reads anything. The error is the data route's own. + + The fix: re-enable the package to filter on its records again, or filter on the lookup's stored id. An environment with no disabled package sees no change. A system context handed to `callData` is not changed by this entry: it is still answered the count. (A hook's `ctx.api` is not such a caller: it reaches the engine directly and never passes through `callData`.) + + `@objectstack/metadata-protocol` now exports `objectPackageDisabledError`, the one constructor of that refusal, so the runtime raises the same error instead of a copy. No behaviour of that package changes. +- ea58563: Clause-②: yes — widening: on a delegated agent token whose scope reaches the docs tools, a permission-set-gated package doc is now found and read when the delegating person holds that set (ADR-0090 D10, ceiling ∩ delegator); nothing served today is refused, a non-holder and a token without docs-tool access still see nothing. Seat runs a contract read before ready; security#2 checks the head read-only before merge. + Metadata-protocol: none + + fix(runtime): on an OAuth MCP connection, `search_package_docs` and `read_package_doc` judge a manual's permission-set audience by the delegating person's own permission sets + + An OAuth token makes the request an agent acting on behalf of the person who consented (ADR-0090 D10). The two app-docs tools used to judge a manual whose audience is `{ permissionSet }` against the token's scope-derived permission sets, so a person who holds that set could not find or read the manual from their own AI client, while the Console showed it to them. + + Now, on such a connection: + + - The token's scope still decides whether the docs tools are reached at all (`data:read`). A token without it is served neither tool, whatever the person holds. + - The audience reads the person's own permission sets, resolved by the same grant resolution a request uses, in the organization the request runs in: the one the token's consent bound, while the person's membership there is current. A person with no user row holds no set here. A person whose membership there has ended is read with no active organization, as their own session is, so no grant stored in an organization applies. + - The token's own permission sets are never added to the person's: a manual whose audience is one of the token's scope sets stays closed unless the person holds it. + - Manuals with the default audience answer as before. API keys, signed-in sessions and AI service accounts keep their own permission sets. + + Both tool descriptions now say so: on an OAuth connection, the person's own permission sets decide, never more. +- 7c122ff: fix(core): a signed-in request reads its session once with the inbound rate limiter armed or an ADR-0069 gate active on REST + + Clause-②: no + Metadata-protocol: none + + With `server.security.rateLimit` armed, or on the REST door while a session gate is active, one signed-in request read its session (a `sys_session` lookup by token and a `sys_user` lookup by id) two or three times; it now reads it once, on the dispatcher and REST alike. Who is admitted or refused, and with which status, does not change. + + The inbound rate limiter, the identity step of every door (`resolveRequestExecutionContext`) and REST's `reread-when-active` gate now read the session through one request-scoped carrier (`openRequestSessionRead` / `withRequestSessionRead` / `withoutRequestSessionRead` / `readRequestSession`, exported from `@objectstack/core`). The Hono transport runs its middleware chain in a scope and hands that scope to a route it registered only when every middleware between the two is a whole-server one; a route behind a path-scoped middleware (plugin-auth's door under the auth base path, where the organization's IP list is judged on the read) and a raw-app route read for themselves, and `resolveRequestExecutionContext` opens a scope for its own call where none is open. A read is handed to a later reader of the same request only while no write has landed on the data engine since it was read and the session has not expired; a read that throws is never handed on, so each reader keeps its own outage answer. Nothing is kept across requests. The Hono middleware seam now hands a middleware the same headers a route receives, `host` backfilled from the URL included. +- c4d6acc: Clause-②: yes — widening: one new read on the draft door behind the same `metadata:write` grant and `manage_metadata` check; no save, publish or existing read changes, so nothing accepted today is refused. + Metadata-protocol: none + + feat(runtime): the MCP draft door answers a metadata type's contract + + - **`list_metadata_items` takes an optional `contract: true`.** The reply then also carries `contract`, read from the same entry `GET /meta/types` serves for the type. By default it is the lean form of the type's JSON Schema: the `required` keys, and for each top-level key its type, a short enum and a one-line description, where `drill` names the JSON Pointer of any key with nested structure, plus the type's `createSeed`. A client that cannot read files can now see which keys a type accepts and which it requires before its first save, also for a type that has no item in the environment yet. A type with no JSON Schema answers `schema: null` with the reason. The read is admitted as the list is: the `metadata:write` scope and the user's own `manage_metadata`, the type-level read admission, and the unknown-type refusal. Without the flag the reply is unchanged. + - **`contractPath` drills into that schema.** With `contract: true`, a JSON Pointer such as `/properties/fields` answers the full schema at that pointer. `contractPath` without `contract: true` is refused with a validation error, and so is a pointer that does not resolve, with an error that names the pointer and the keys found there. + - **No `contract` takes more than 24 KiB of the reply,** so the largest types (`object`, `view`, `page`) fit an MCP client's tool-result limit. A lean form still over that size drops its descriptions first and says `truncated: true`. A sub-schema over that size is answered in its lean form marked `truncated: true`, so the client can drill again. + - **`objectstack-mcp-build` skill, step 3** names that read where it said to copy a published item of the same type: read the lean contract, drill into the key you write with `contractPath`, and let the save check you. The save is still the final check. +- c261a7c: feat(automation): `POST /api/v1/automation/_record-starts` answers which flows a proposed update of one record would start + + Clause-②: yes (widening) — one new public read: the route `POST /api/v1/automation/_record-starts` (`automation.listRecordUpdateStarts` in the API contract and in `@objectstack/client`); `@objectstack/spec/api` adds `RecordUpdateStartsRequestSchema`, `RecordUpdateStartSchema`, `RecordUpdateStartsResponseSchema` and their types; `@objectstack/spec/contracts` adds `RecordUpdateStartsInput` and the optional `IAutomationService.listRecordUpdateStarts`; `@objectstack/spec/automation` adds `recordChangeTriggerHookEvents` and `recordChangeTriggerFiresOnUpdate`; `_record-starts` joins the `/automation` domain's reserved position literals. Nothing existing is removed or re-typed. + Metadata-protocol: added — the three new `@objectstack/spec/api` schemas enter the `api` authorable-surface shard (10 keys: `RecordUpdateStart:name/label/startsApproval`, `RecordUpdateStartsRequest:object/recordId/changes`, `RecordUpdateStartsResponse:success/data/error/meta`); no flow or other metadata key is added + Skills-docs: none — no skill under `skills/**` teaches the console's stage confirms; `content/docs/automation/flows.mdx` gains the read in this change. + + The console's stage confirms now name the flows a move would start (objectstack#35928, ruling record 7073655354). They ask the server: + + - **Request** `{ object, recordId, changes }`; **response** `{ success, data: { flows: [{ name, label, startsApproval }] } }`. + - **Who is answered:** a signed-in caller who can read the record. The record is read as the caller through the `/data` door's own `get`, so a record they cannot read answers `404 RECORD_NOT_FOUND` exactly as an absent one, and the engine is never asked. Anonymous `401`; a malformed body `400 VALIDATION_FAILED`; a `changes` key that is not a declared field of the object `400 VALIDATION_FAILED` on that key, the engine never asked; a read that answers no record `404 RECORD_NOT_FOUND`; any query parameter `400 VALIDATION_ERROR`; an engine without the read `501`. + - **Which flows:** enabled `record_change` flows of the object, armed on their trigger, whose `triggerType` binds an update, and whose start condition holds for the record read with `changes` applied (`previous` is the record read). The condition goes through the engine's one start-condition gate, the one every run passes; the token grammar `@objectstack/trigger-record-change` binds hooks by moved into the spec (`recordChangeTriggerHookEvents`) so the preview reads the same rule, with no second copy. A condition that cannot be evaluated against the record is not listed. Hooks are never listed. + - **Per flow:** `name`, the authored `label` (a client translates it by name) and `startsApproval`, true for a flow holding an `approval` node (ADR-0019). No description, condition or nodes. +- ddceb22: fix(runtime)!: `callData` refuses a disabled package's data at every relation hop and for a system context too; the MCP stdio bridge asks every hop + + Clause-②: yes (narrowing: `callData` newly refuses 404 `OBJECT_PACKAGE_DISABLED` for a nested-relation condition into a disabled package's object at any hop, not only directly beneath the queried object's lookup, for every caller including a system context, and refuses a disabled package's addressed object for a system context and on a host with no protocol service; a non-system caller is also refused 404 `OBJECT_API_DISABLED` / 405 `OBJECT_API_METHOD_NOT_ALLOWED` for an unexposed target past the first hop, on `callData` and on the MCP stdio bridge; no export is added or removed) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed or renamed, and nothing stored is rewritten: every moved answer is what the protocol's data route already answers for the same object and the same condition. A caller that needs those records re-enables the package or exposes the object. --> + + **BREAKING** for callers of `callData` on an environment that disables a package or declares an object unexposed, and for the MCP stdio bridge. The engine lowers a condition beneath a condition (`{ "c_ref": { "b_ref": { "field": VALUE } } }`) up to three relationships, reading each related object, so the refusal that stopped at the first hop still answered a count of 1 for a stored value and 0 for any other one relationship further. The protocol's data route refuses every hop and every caller. + + - FROM: `callData`'s `aggregate` arm and its no-protocol `query` fallback asked only the first hop of a relation condition, and skipped the disabled-package question for a system context; on a host with no protocol service, a disabled package's object addressed directly was served to every caller, and so was any disabled package's object addressed by a system context on the `aggregate` arm. The MCP stdio bridge asked the exposure question of the first hop only. + - TO: every target on the way is asked, disabled package first and then exposure, and refused with its full position as `param` (for example `where.c_ref.b_ref`). The disabled-package question is asked of every caller, a system context included, for the addressed object and for every relation target; the exposure question still skips a system context. The MCP stdio bridge asks both questions at every hop of a non-system caller's condition. + + Who changes: a host that hands `callData` a system context (`HttpDispatcher.handleMcp` / `buildMcpBridge`, `dispatchAction`) now gets the data route's refusal for a disabled package's data; no door in this repository hands `callData` a system context, and a hook's `ctx.api` never passes through it. The fix for a caller that needs the records: re-enable the package, expose the object, or filter on the lookup's stored id. An environment with no disabled package and no unexposed object sees no change. +- d463c46: fix(comments): unreact, resolve and own-comment delete work on a kernel with no `http.server` (a hosted tenant kernel) instead of answering 404 + + Clause-②: yes (widening) + Metadata-protocol: none + + The three comment doors, `DELETE /api/v1/comments/reactions/:id`, `PUT /api/v1/comments/:id/resolution` and `DELETE /api/v1/comments/:id`, were mounted by `AuditPlugin` only on the kernel's `http.server`. A hosted tenant kernel owns no socket and registers no `http.server`, so the host's `createHonoApp` catch-all handed each of them to the runtime dispatcher, which had no domain for them and answered `404 ROUTE_NOT_FOUND`, and removing a reaction, resolving or reopening a thread and deleting your own comment failed there. + + - `@objectstack/spec/contracts` declares `ICommentDoorsService` with one optional, transport-neutral member, `handleCommentDoor(request: Request): Promise<Response>`, and types the `comments` service slot with it (`ServiceSlotContracts.comments`). A service without the member still satisfies the contract. + - `AuditPlugin` registers the `comments` service with that member. It runs the same registrars over the same dependencies the `http.server` mount runs, on a private route table that never listens, so every answer is the mount's own. The `http.server` mount is unchanged, and no path is mounted twice. `@objectstack/plugin-audit` now depends on `@objectstack/plugin-hono-server` at runtime (the private table is a `HonoHttpServer`), and the `comments` service name is now taken: a composition that registers its own `comments` service alongside `AuditPlugin` fails to boot with a duplicate-service error. + - The runtime dispatcher gains a `/comments` domain that claims exactly the three method and path shapes and forwards the request, body unread, to the request kernel's `comments` service. Every other `/comments` shape keeps the dispatcher's `404 ROUTE_NOT_FOUND`. With no `comments` service, or one without `handleCommentDoor`, the doors answer `501 NOT_IMPLEMENTED` naming `@objectstack/plugin-audit`. The doors stay behind the dispatcher's authentication and project-membership gates. +- ac43336: fix(comments): unreact, resolve and own-comment delete answer on an `objectstack serve` / `objectstack dev` multi-tenant host instead of `404 ENDPOINT_NOT_FOUND` + + Clause-②: no + Metadata-protocol: none + + On a multi-tenant host composed the way the framework CLI composes one (`HonoServerPlugin` + `DispatcherPlugin`, a `kernel-resolver`, and no `createHonoApp` catch-all), the three comment doors, `DELETE /api/v1/comments/reactions/:id`, `PUT /api/v1/comments/:id/resolution` and `DELETE /api/v1/comments/:id`, never reached the dispatcher's `/comments` domain: `AuditPlugin` runs on the per-environment kernel, which owns no `http.server`, and `DispatcherPlugin`'s fallback seam handed on only domain-decided and app-endpoint paths. So the transport answered its own `404 ENDPOINT_NOT_FOUND`. + + `DispatcherPlugin`'s fallback now hands exactly those three method and path shapes (bare or environment-scoped) to `dispatch()` on a multi-tenant host, with the transport's request rebuilt as a Web `Request` carrying its original body, and writes the door's `Response` back unchanged. Any other shape still writes nothing, so the transport's own miss stands; a single-kernel host keeps today's answers; and the fallback runs only after every mounted route missed, so a kernel that mounts the doors itself is never reached here. +- a3ee862: fix(cloud-connection): an installed package answers its declared hook and action refusals in the caller's language + + Clause-②: no + Metadata-protocol: none + + A package installed into an environment (`POST /api/v1/marketplace/install-local`, and the same package bound again when the server restarts) now answers its declared hook and action refusals (`refusals`, with `reasons` and `params`) in the caller's language, from the translations the package ships under `hooks.HOOK.refusals.CODE[.reasons.REASON].message` and `objects.OBJECT._actions.ACTION.refusals.CODE[.reasons.REASON].message`. A `zh-Hans` caller reads the `zh-CN` pack, as on a boot. Before, the install door bound the package's body hooks and script actions without the `i18n` service, so every caller read the declared sentence on every door that runs them (`POST /api/v1/batch`, a record update, an action), while the same package booted as an app (`objectstack dev`, `objectstack start`) answered in the caller's language. The refusal body, its code and its status do not change. + + The same binding now also hands an installed package's bodies the kernel's services, as a boot does: `ctx.text` answers in the organization's language, and `ctx.email.send` and `ctx.activity.append` reach the email and audit services. + + `@objectstack/runtime` exports `hookRefusalI18nReader`, the `i18n` reader both binder doors pass to `bindAppArtifactHandlers`. +- 3f568c1: fix(studio): Studio's Interfaces column is retired; its old links land on the Studio home and its Changes links open from the Data pillar + + Clause-②: no + Metadata-protocol: none + + objectstack#36502. Menus, header actions, list views, dashboards, reports and record pages are designed in the running app. Studio keeps Data, Automations, Access and All metadata, and every view, dashboard, report and page stays readable and editable as metadata on its All-metadata item page. No metadata type, key or stored shape changes. + + - **Old links still open.** `/studio/<package>/interfaces`, with or without a `?surface=` deep link, lands on the package's Data pillar and says once, there, "Interface edits have moved into the app" (「界面的修改已经搬到应用里」) with a link back to the app. A `?changes=review` request travels with it. + - **`@objectstack/runtime`, `@objectstack/cli`.** The review link the MCP authoring tools and `os meta register --draft` print is `/studio/<package>/data?changes=review` (it was `/studio/<package>/interfaces?changes=review`, which still works through the redirect). + - **`@object-ui/i18n`.** Adds `engine.studio.interfacesRetired.sentence`, `.backToApp` and `.dismiss` (en, zh). + - **`@object-ui/plugin-chatbot`.** The `onDesignBuiltApp` doc example names the Data route. + - The console's "Edit in Studio" links for a dashboard, page, report or view open its All-metadata item page. + - **Customize moves with them.** On a read-only base, a view, dashboard, report or page is customized on its All-metadata item page, in the type's designer, into the base's pair (`<base>.custom`), with the override mark and "Restore package original" as before. It was the Interfaces column's header. +- 573a376: feat(i18n): `GET /i18n/locales` names the source locale, and a design-mode menu rename outside it is stored as that language's translation + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: follow-up owed — skills/objectstack-i18n/SKILL.md + + - **`GET /api/v1/i18n/locales` names the source locale.** The body gains an optional `sourceLocale` (`GetLocalesResponseSchema.sourceLocale`): the language the app's own text, a plain-string `label`, is written in. It is the declared `i18n.sourceLocale`, else the default locale, the same rule the metadata translators use. It differs from the `isDefault` locale on an app written in one language that defaults its users to another. It is absent only when the server knows neither. Nothing that parsed before stops parsing. + - **A menu rename in design mode is stored where the reader's language reads it.** The name field of 「Rename and icon」 is now open in every language. A name typed in the source language, over an entry shown by its stored label, is still written to the stored label. Any other name is written as that language's translation of the entry: a name typed in another language, or one typed in the source language over a translation the reader was shown. The stored label stays unchanged, so every other language keeps its name. The rename says so when the new name will be a translation ("The new name is shown in LANGUAGE. The app's other languages keep their names."). + - **Where the translation goes.** It is written to the `translation` item `APP_menu_LOCALE` (for example `crm_menu_zh_cn`), at `apps.APP.navigation.ID.label`, the key app navigation is translated by. It goes into the package the menu is written to: the app's own package when that is writable, else its customization package, whose own translations are read first (ADR-0146 D2). Like the menu, it is saved as a draft with the first-write pin and published at once. A pending draft of it is refused and the reason is shown. A translation-only rename writes the translation and leaves the app alone. + - **A link added in another language** is stored without a name, and the name typed for it becomes that language's translation. The source language names it when someone sets a name there. Until then, a reader in the source language sees the link's URL, as for any link with no label. + - Before this change, the console allowed a rename only when the reader was in the deployment's default language. The default language could differ from the source language, and a rename there was written to the stored label for every language. +- cbc06ff: fix(hosted): deleting a personal view and removing or renaming an attachment work on a kernel with no `http.server` (a hosted tenant kernel) instead of answering 404 + + Clause-②: yes (widening) + Metadata-protocol: none + + `DELETE /api/v1/personal-views/:id` (plugin-auth) and `DELETE` / `PATCH /api/v1/attachments/:id` (service-storage) were mounted only on the kernel's `http.server`. A hosted tenant kernel owns no socket and registers no `http.server` (and runs `AuthPlugin` with `registerRoutes: false`), so the host's `createHonoApp` catch-all handed each request to the runtime dispatcher, which had no domain for them and answered `404 ROUTE_NOT_FOUND`: a member could not delete a personal view, or remove or rename an attachment, there. + + - `@objectstack/spec/contracts` declares `IPersonalViewDoorsService` (one optional, transport-neutral member, `handlePersonalViewDoor(request: Request): Promise<Response>`) and types the new `personal-views` service slot with it, and declares `IAttachmentDoorsService` (`handleAttachmentDoor`), which the existing `file-attachments` service implements beside `IFileAttachmentService`. A service without the member still satisfies either contract. + - `AuthPlugin` registers the `personal-views` service in `init()`, whatever `registerRoutes` says, and `StorageServicePlugin`'s `file-attachments` service gains `handleAttachmentDoor`. Each member runs the same registration over the same dependencies the `http.server` mount runs, on a private route table that never listens, so every answer is the mount's own. The `http.server` mounts are unchanged, and no path is mounted twice. The `personal-views` service name is now taken: a composition that registers its own `personal-views` service alongside `AuthPlugin` fails to boot with a duplicate-service error. `@objectstack/plugin-auth` and `@objectstack/service-storage` now depend on `@objectstack/plugin-hono-server` at runtime (the private table is a `HonoHttpServer`; plugin-auth previously listed it as a dev dependency only). + - `@objectstack/plugin-hono-server` exports `createDoorTableMember(routes, mount)`, the private never-listening table both members are built on, and `matchDoorTableRoute`. + - The runtime dispatcher gains `/personal-views` and `/attachments` domains that claim exactly the door shapes and forward the request, body unread, to the REQUEST kernel's member (never the host kernel's scoped fallback). Every other shape under those prefixes keeps the dispatcher's `404 ROUTE_NOT_FOUND`. With no slot, or one without the member, the doors answer `501 NOT_IMPLEMENTED` naming the package that registers it. The doors stay behind the dispatcher's authentication and project-membership gates. +- 70f454a: fix(metadata): two Studio Saves over one published item are no longer last-writer-wins + + Clause-②: yes (widening) — two new optional members join what the API accepts and answers: `PublishMetaItemRequestSchema.parentVersion` (the `If-Match` / `If-None-Match: *` pin on `POST /meta/:type/:name/publish`) and `GetMetaItemLayeredResponseSchema.overlayVersion` (served on `GET /meta/:type/:name/layers`); nothing is removed or narrowed, and a publish that names no version behaves as before + Metadata-protocol: added + + A Studio Save writes the item's draft and then publishes that one item, so it leaves no draft behind. Two admins who opened the same object with no pending draft both asserted "no draft" on their draft save, and the later Save published over the earlier one without a word: the published layer served no version a Save could pin. + + - `GET /meta/:type/:name/layers` now answers `overlayVersion`: the version token of the stored active row at the read's address (`?package=`), the same keyed token the plain uncached read serves as `version` and a publish receipt serves as `version`; `null` when no active row is stored there. + - `POST /meta/:type/:name/publish` takes that token as `If-Match` (or `If-None-Match: *`, "no active row here"). A token that is not the current active row's is refused `409 METADATA_CONFLICT` with the current token as `currentVersion`, and nothing is promoted: the draft stays pending. The headers are read as the save door reads them, so `If-Match` beside `If-None-Match`, or an `If-None-Match` other than `*`, is refused `400 VALIDATION_ERROR`. A publish with neither header is unpinned, as before. The pin is checked by the store's own lock on the promoting write, not by a separate earlier read. + - `MetadataClient.publish` (`@object-ui/data-objectstack`) takes `ifMatch` / `ifNoneMatch`, sent as those headers. + - Studio's object page pins its Save's publish to the published row it was loaded at. When another editor published since, the Save shows the reload-or-overwrite dialog the draft conflict shows, worded for a live change: reload takes back the draft the Save wrote and re-reads the live object, overwrite (after a confirmation) publishes over the version the refusal names, and keep editing leaves the edits on the page, unsaved. New locale keys in the studio catalogue (en, zh): `engine.draftConflict.publishedTitle`, `engine.draftConflict.publishedDescription`, `engine.draftConflict.publishedOverwriteTitle`, `engine.draftConflict.publishedOverwriteDescription`. + + The two members enter the authorable-surface ratchet (`api/GetMetaItemLayeredResponse:overlayVersion`, `api/PublishMetaItemRequest:parentVersion`), so `@objectstack/spec` takes `minor`; the other packages stay `patch`. + + Nothing to migrate: a client that sends no version is unaffected. +- e343ab7: fix(runtime): an artifact boot names every code plugin of the app that it does not run + + Clause-②: no + Metadata-protocol: none + + A compiled artifact carries an app's metadata and hook handlers, not its code plugins: `os build` writes each entry of the stack's `plugins` as a plain descriptor (`{ name, version, dependencies, options }`), and the runtime module beside the JSON exports `functions` only. So a boot from the artifact (`OS_ARTIFACT_URL`, the composed hosted boot, `os start` on a built app) runs none of them. That is the envelope-key rule: an artifact carries metadata, a host assembles plugins. It used to happen in silence, and every service those plugins register was simply absent, so whatever depended on them failed later and somewhere else. + + The artifact boot now says so once, at `warn`, when the app's `AppPlugin` starts: `[AppPlugin] app 'APP_ID' lists N plugin(s) that are not running on this kernel: 'PLUGIN_NAME', …`, with the remedy (boot the app from its `objectstack.config.ts`, or from a host config that loads the artifact and lists the plugins in its own `plugins`, or package them with `os plugin build` and `os plugin install`). The structured fields are `{ appId, plugins }`. Each listed plugin is judged by name against the kernel's own plugin table, so a host that assembles the app's plugins itself hears nothing about the ones it runs. A package-specifier string entry is not judged: the name its plugin registers under is not in the specifier. + + Only the artifact door judges: the `AppPlugin` that `createStandaloneStack` builds over the artifact it loaded (the one composed with `securityMetadataRegistrar: 'artifact-door'`). A config boot's `AppPlugin` does not, because its host materializes the stack's `plugins` itself. No option, export or artifact field is added, and nothing else changes: no plugin is mounted, refused or reordered, and the boot does not fail. +- 8aecf6d: feat(mcp,service-knowledge): the MCP door serves `search_knowledge`, and a skill MCP withholds is no longer withheld in silence + + Clause-②: yes + Metadata-protocol: none + + **`search_knowledge` over MCP.** An app that mounts the knowledge service (`KnowledgeServicePlugin`) now has its knowledge sources searchable from any MCP client: `tools/list` lists `search_knowledge` wherever the kernel holds a `knowledge` service and the connection's grant reaches the read family (`data:read`, or an API key or session, which carry no OAuth grant). Before, no MCP connection served a knowledge tool, so a BYO-AI client could not reach an app's knowledge base at all, and every skill whose `tools` named `search_knowledge` was dropped from `prompts/list`. + + - **One definition, one executor (ADR-0149 D2).** `@objectstack/service-knowledge` exports the tool's `AIToolDefinition` (`getKnowledgeToolDefinitions`) and its executor (`createKnowledgeTools`, also `KnowledgeService.knowledgeTools()`). The MCP door registers the definition as the service hands it over, on HTTP and on stdio, and holds no copy of its description or argument schema. Arguments: `query` (required), `sourceIds` (at least one id; omit it to search every source, and an empty list is refused `VALIDATION_ERROR` rather than answered with no passage), `topK` (1 to 20, default 5); any other key is refused before the search runs. + - **As the caller.** Each call runs with the caller's execution context, and the knowledge service re-checks every passage indexed from a record against the caller's row-level security; on an OAuth connection that is the delegating person's own reach. + - **Only `aiExposed` sources.** The tool searches only the sources whose `aiExposed` is not `false`, and refuses a `sourceIds` entry naming any other source with `NOT_FOUND` and the sentence an unknown id gets, so an agent never learns a withheld source exists. `IKnowledgeService.search` itself is unchanged: it still searches a source its caller names explicitly, because it also serves platform callers that are not agents. + - `MCP_DOOR_TOOL_NAMES` (`@objectstack/spec/system`) lists `search_knowledge`, so `os lint` resolves it for a skill offered over MCP, as it already did through the platform registry. + + **A withheld skill is said, twice.** + + - **Authoring time.** The `ai-skill-tool-unresolved` rule gains a verdict for a skill MCP would offer as a prompt (`instructions`, not `mcpPrompt: false`, not `active: false`) whose `tools` names one of the `ask` product's data tools no MCP connection serves (`aggregate_data`, `query_data`, `visualize_data`): the name resolves, but MCP withholds the skill from every `prompts/list`, and the warning names the tool. Fix: bind tools both doors serve, or set `mcpPrompt: false` on a skill written for the in-product agents. + - **Runtime.** On the HTTP door, each `prompts/list` that withholds a skill logs one `debug` line naming the skill and each bound tool the connection does not serve. +- 76eea0f: fix(hosted): printing a record works on a kernel with no `http.server` (a hosted tenant kernel), and an api action whose service is absent shows a readable, localized line instead of the route text + + Clause-②: yes (widening) + Metadata-protocol: none + + `POST /api/v1/print/records` (service-print) was mounted only on the kernel's `http.server`. A hosted tenant kernel owns no socket and registers no `http.server`, so the host's `createHonoApp` catch-all, and the `/actions` door's in-process forward of a `type: 'api'` action, handed the request to the runtime dispatcher, which had no domain for it and answered `404 ROUTE_NOT_FOUND`. A hosted HotCRM's Print Quote showed its user `Route Not Found: /print/records`. + + - `@objectstack/spec/contracts` declares `IPrintDoorService` (one optional, transport-neutral member, `handlePrintDoor(request: Request): Promise<Response>`). A service without the member still satisfies it. + - `PrintServicePlugin`'s `print` service gains `handlePrintDoor`, which runs the same registration the `http.server` mount runs, on a private route table that never listens (`createDoorTableMember`), so every answer is the mount's own. The `http.server` mount is unchanged, and no path is mounted twice. `@objectstack/service-print` now depends on `@objectstack/plugin-hono-server` at runtime. + - The runtime dispatcher gains a `/print` domain that claims exactly `POST /print/records` and forwards the request, body unread, to the REQUEST kernel's member (never the host kernel's scoped fallback). Every other shape under `/print` keeps the dispatcher's `404 ROUTE_NOT_FOUND`. With no `print` slot, or one without the member, the door answers `501 NOT_IMPLEMENTED` naming `@objectstack/service-print`. The door stays behind the dispatcher's authentication and project-membership gates. + - The console shows a `type: 'api'` action's `501 NOT_IMPLEMENTED` refusal (the service behind its target is not composed in this environment) as the new `actions.serviceUnavailable` line in the user's language (zh-CN: 「此操作所需的服务在当前环境未启用,请联系管理员。」) instead of the server's operator text. A producer-marked `userMessage` still wins. A `503 SERVICE_UNAVAILABLE` (a transient outage) and a route miss (`ROUTE_NOT_FOUND`, `ENDPOINT_NOT_FOUND`, for example a misspelled `target`) keep the server's own sentence. +- 6cfb782: fix(runtime): the MCP doc tools name a page's manual in the request's locale + + Clause-②: no + Metadata-protocol: none + + `search_package_docs` and `read_package_doc` served the page title in the request's locale but the manual's `book.label` in the base language, so a Chinese user was cited "HotCRM Order to Cash Manual" beside a Chinese page title. The manual's label now goes through the translation the `/meta/book` door applies (`books.<name>.label` in the translation bundle), in the same locale the page is served in, and keeps the authored label when the bundle has none. The manual a page opens in, its slug and the address are unchanged. +- 84b1e0c: feat(spec): Studio list columns for 27 metadata types, served in the reader's language on both doors + + Clause-②: yes (widening: `/meta/types` serves `list` on 26 more entries, and the runtime dispatcher's listing is now translated) + Metadata-protocol: none + + `METADATA_LIST_REGISTRY` now declares the Studio list columns of 27 metadata types: the first batch (`hook`, `flow`, `job`, `api`, `action`, `report`, `dataset`, `email_template`, `assignment_rule`, `sharing_rule`, `queue`, `agent`, `tool`, `skill`, `doc`, `seed`, `mapping`, `picklist`, `translation`) and the eight types the console used to declare itself (`object`, `field`, `view`, `page`, `dashboard`, `permission`, `position`, `book`). Every column names a key the type's schema declares, checked by the reconciliation test. Nothing an author writes changes: the registry is the spec's own constant. + + - **Headers in every shipped language.** The 52 headers no form field already labels get their own `metadataForms.<type>.fields.<path>.label` leaf in the 11 platform bundles (`@objectstack/platform-objects`), translated in all ten non-English locales. A column the form labels reads the form's words. + - **Both doors translate the listing.** The runtime dispatcher's `GET /meta` and `GET /meta/types` now answer the types listing in the request's language, as `RestServer`'s `GET /meta` does: type labels, form labels, list headers and schema titles. Both run one function, `translateMetaTypesListing` (`@objectstack/rest`). Before this, a host served through the dispatcher answered all of it in English. + - **The console's own declarations move into the spec.** Studio's lists of objects, fields, views, pages, dashboards, permission sets, positions and books read the served columns. The console keeps only what the schema cannot say: a field row's server-stamped `object`, a position's holder count and granted permission sets, a view's derived display type, a book's audience and a sharing rule's `sharedWith` rendering. The console declared `object`'s columns twice, in two registrations that disagreed (the later one won); both declarations are gone, so one remains, in the spec. A page's former `route` column named no `PageSchema` key and is dropped. What an admin sees in Studio (`@object-ui/app-shell`): the metadata lists of all 27 types show the spec's columns, in the declared order, with headers in the reader's language. The moved lists lose the console's fixed column widths (the view list's display type and the book list's audience keep theirs), the Fields list reads name, type, label, then object, the sharing-rule list's header reads "Access Level" where it read "Access", and the Pages list shows type and description in place of the dropped route column. A summary cell reads an expression member as its source, so the Jobs list's schedule shows a cron job's expression (`cron · 0 2 * * * · UTC`), not only its kind and time zone. +- 9c57bd2: refactor(studio): every Studio address comes from one builder; no address changes + + Clause-②: yes (widening) + Metadata-protocol: none + + Studio redesign groundwork (#36895, epic #36890). Every place that produced a `/studio...` URL now calls one builder, so a later change can move an item type to its metadata address in one place. Every address is byte-for-byte what it was: no link, bookmark or redirect changes. + + - **Console.** `studioAddress.ts` in `@object-ui/app-shell` builds every Studio address: the landing, a package, a pillar, an item (`studioItemPath`), the "All metadata" area, and the draft review links. `studioAddressTable.ts` lists every address family, every `?surface=` spelling and every query parameter, with what each becomes on the metadata address. The retired `/interfaces` redirect keeps exactly the parameters that table marks. New exports from `@object-ui/app-shell`: `STUDIO_ROOT_PATH`, `STUDIO_HOME_PILLAR`, `studioLandingPath`, `studioPackagePath`. Existing exports keep their names and values. + - **Server.** `studioChangesReviewLink` and `studioItemReviewLink`, new in `@objectstack/types`, build the review links that `os meta register` prints and that the MCP authoring tools return after a draft save. The text an AI is handed is unchanged. + - **Guards.** A test under `ui/` refuses a hand-built Studio address in any ui source. A test in `@objectstack/types` refuses one in any server package, and holds the review links quoted by the `objectstack-mcp-build` skill's evals equal to what the builder returns. +- c448c61: fix(runtime)!: an action's selection is read in the caller's scope before the action runs + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is the answer the action doors (REST `POST /api/v1/actions/...`, MCP `run_action`, a host's `dispatchAction`) give a call whose `params._selectedIds` or whose param bag a param-less action does not accept: no stored row, registry key or authored value changes, so there is nothing for a migration to rewrite and no tombstone. --> + + The rule: a call names records by id only when the caller can read them. The per-record door already reads its `recordId` in the caller's own scope; a record-less call that carries a selection (`params._selectedIds`, the aggregate bulk dispatch) now has every id read the same way — with the per-record door's own read, as a row of the object the call names — before a script body or a flow starts. + + **BREAKING** for a caller of a `type: 'script'` or `type: 'flow'` action whose call carries `params._selectedIds`, and for a caller of a param-less handler action that sends a near-miss spelling of a built-in param. + + - FROM: such a call was dispatched as sent. + - TO: + - a selection with any id the caller's scope does not deliver is refused whole with `404 RECORD_NOT_FOUND` (the per-record door's answer; a hidden row and an id that names nothing answer alike), and nothing runs; + - a selection that is not a list of non-empty record ids, that names more than 5000 of them, or that is sent to an action called on no object is refused with `400 VALIDATION_FAILED`; + - on a param-less action, `selectedIds`, `__selectedIds`, `_recordId` and `_objectName` are refused with the param contract's own `400`, naming the built-in they miss by one underscore. Every other custom key still passes to the handler (ADR-0104 D2). + + **Not moved.** A declarative `operation: 'update'` action (it writes as the caller), a `type: 'api'` action (its target authorizes the caller) and a call made as the system principal are not read. A selection the caller can read whole reaches the handler exactly as sent, repeated ids included; a row the caller can read by its id is never refused as part of a selection. + + The fix for a caller: send only ids the caller can read, at most 5000 per call, under the built-in key `_selectedIds`. A body that writes each selected row is best declared `execution: 'perRecord'`, so each dispatch hands it that row as `ctx.record`. +- c059e60: Clause-②: yes (widening) — `@objectstack/types` gains root exports (`FLOW_RUNTIME_STATE_KEY`, `flowRuntimeStateOf`, `FlowRuntimeStateAnswer`), and the open door's `get_metadata_item` answer on a flow gains the key `runtimeState`; nothing that was accepted is refused, and no key a caller sends is added + Metadata-protocol: none + + An MCP definition reader now says when an admin has switched a flow off. The open authoring door's `get_metadata_item` answers a flow with `runtimeState: { enabled }`, the engine's own reading (the one `GET /automation/_status` serves), placed ahead of the item; the switch moves only that bit and leaves the definition, `status: 'active'` included, as it was, so before this a switched-off approval read as running. The app-docs answer-order text sent on `initialize` (`packageDocAnswerRule`) now tells the agent that `runtimeState.enabled: false` means the process is switched off and does not run. `@objectstack/types` exports the key and the reading (`FLOW_RUNTIME_STATE_KEY`, `flowRuntimeStateOf`) for a host's own reader. +- 595e9cb: feat(security): `server.trustProxy` gains a trusted-network form, and the client address is read from the trusted hop + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: none — no skill under `skills/**` teaches `server.trustProxy` or forwarded headers; `docs/HARDENING.md`, `content/docs/deployment/production-readiness.mdx`, `content/docs/protocol/kernel/http-protocol.mdx` and `content/docs/permissions/authentication.mdx` gain the form in this change. + + `server.trustProxy` accepts a third form beside `false` and `true`: `{ networks, header }`, naming the reverse proxies a deployment runs. + + ```ts + defineStack({ + server: { + trustProxy: { networks: ['10.20.0.0/28', '2001:db8::10'] }, // header defaults to 'x-forwarded-for' + }, + }); + ``` + + - A forwarded header is believed only on a connection whose peer address is inside `networks`. From any other peer the client is the peer itself. + - `X-Forwarded-For` is read from the right: every entry inside `networks` is a hop of the deployment's own, and the first entry outside them is the client. When every entry is inside them, the leftmost is the client. An entry a trusted hop reports that is not an address establishes no address. + - `header: 'x-real-ip'` reads `X-Real-IP` instead. Under this form the header it does not name is never read. + - Each entry of `networks` is an address or a CIDR range, IPv4 or IPv6, read the way an `allowed_ip_ranges` entry is read. Every address inside `networks` is taken for a proxy hop, so list the proxies' own addresses, never a range clients connect from. A range of prefix length 0 is refused: it would stand in for `true`. + - `os validate` and `defineStack` refuse an entry not shaped like an address or a CIDR range, a prefix length of 0, an empty list, an unknown header and an unknown key. The runtime reads every entry in full at boot and refuses, naming the entry, what passes the shape but names no range (an address with a port, an IPv4-mapped prefix wider than the mapping), so a form is never read as "trust nobody". + - A malformed `server.trustProxy` object, which used to read as `false`, now fails the boot. + - A forwarded header sent as several lines is read as one list, under every form. + + Every consumer of the client-address rule reads the new form: the inbound rate limiter, the per-endpoint rate limiter, and the authentication plugin's IP allow-list, `last_login_ip` login audit and vendored-library limiter. `objectstack serve` hands the authored value to both `AuthPlugin` and the dispatcher as it is, in either form. A host that composes them itself passes the same value to `AuthPlugin({ trustProxy })` and `createDispatcherPlugin({ rateLimit: { trustProxy } })`; `@objectstack/plugin-auth/client-address` exports `readTrustProxy`, the one reading of the declaration, with `ClientAddressTrust` and `TrustedProxyNetworks`. + + `server.trustProxy: true` reads as before, and is sound only behind a proxy that overwrites `X-Forwarded-For` on every request, never one that appends to it. Under `true` the server now logs one `warn` per process the first time an `X-Forwarded-For` with more than one entry arrives, naming the trusted-network form. The IP allow-list's two operator warnings say the same. `true` is refused at boot from the next major; to move now, replace it with `{ networks: [...] }` listing your proxies' addresses or ranges. +- 64b278e: fix(rest)!: every data door judges environment membership + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) every data door judges environment membership; nothing an author writes is retired, renamed or re-shaped, so there is nothing for a migration to rewrite --> + + **BREAKING** for a signed-in caller who is not a member of the environment a request resolved to: every data door now judges environment membership and answers that caller `403 PROJECT_MEMBERSHIP_REQUIRED`, in the envelope the runtime dispatcher already answers with. + + Every data door judges environment membership. The rule is one function in `@objectstack/core` (`judgeEnvironmentMembership`), asked by the runtime dispatcher and the REST server alike; the dispatcher's own answers are unchanged. + + It is off in exactly two cases: `api.enforceProjectMembership: false` (ADR-0135 D9: a host whose environment-native auth is the membership), or no `sys_environment_member` object registered. The switch is read through one function for every door (`resolveEnvironmentMembershipEnforcement`): an explicit `enforceProjectMembership` wins, else it is on exactly when environment scoping is on. `objectstack serve` hands the stack's `api.enforceProjectMembership` to the REST and the dispatcher plugin alike. + + Migration: a host that composes the plugins itself passes the same `enforceProjectMembership` to `createRestApiPlugin` as to `createDispatcherPlugin`. +- d2bc1ff: fix(runtime): a signed-in request reads its session once when an authentication policy is on + + Clause-②: no + Metadata-protocol: none + + With an ADR-0069 authentication policy active (password expiry, required MFA, an administrator-issued password change), every signed-in request served by the runtime dispatcher, and every request to an app's declared endpoint, now makes one fewer pair of database round trips: the session and its user are read once and shared between identity resolution and the authentication-policy gate, where the gate used to read them again. Which requests are admitted or refused, and with which status, does not change. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [8c629b2] +- Updated dependencies [b02484e] +- Updated dependencies [c6558d0] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [cc03bdc] +- Updated dependencies [ef39b2c] +- Updated dependencies [93fa4f9] +- Updated dependencies [22af9e6] +- Updated dependencies [1c05546] +- Updated dependencies [9fea316] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [5f18b9b] +- Updated dependencies [e6e5224] +- Updated dependencies [94a2d8b] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [d053c7d] +- Updated dependencies [8b550f8] +- Updated dependencies [c809deb] +- Updated dependencies [b68f9ae] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [806bba8] +- Updated dependencies [4db08d5] +- Updated dependencies [c9b3f7a] +- Updated dependencies [8e46424] +- Updated dependencies [d5ece3e] +- Updated dependencies [2d33205] +- Updated dependencies [f5cfdd2] +- Updated dependencies [f4dbcc2] +- Updated dependencies [1950f07] +- Updated dependencies [d17adf5] +- Updated dependencies [9c29d73] +- Updated dependencies [35c6331] +- Updated dependencies [de395b4] +- Updated dependencies [f848e37] +- Updated dependencies [fe3ebc8] +- Updated dependencies [bf69cb4] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [24cc61f] +- Updated dependencies [5ecf937] +- Updated dependencies [96faf44] +- Updated dependencies [2df9691] +- Updated dependencies [a6cf988] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [9e65474] +- Updated dependencies [ba304e0] +- Updated dependencies [8856afc] +- Updated dependencies [c480f33] +- Updated dependencies [9062756] +- Updated dependencies [65b67be] +- Updated dependencies [1caee8c] +- Updated dependencies [cdb327f] +- Updated dependencies [5cd2b54] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [43639a6] +- Updated dependencies [338ef35] +- Updated dependencies [7702f09] +- Updated dependencies [b863d2b] +- Updated dependencies [ee40658] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [8925d5b] +- Updated dependencies [78fd762] +- Updated dependencies [a35187e] +- Updated dependencies [c321914] +- Updated dependencies [07b1754] +- Updated dependencies [61722e9] +- Updated dependencies [37f7814] +- Updated dependencies [c0484c8] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [6d0089c] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [819c067] +- Updated dependencies [4890cd0] +- Updated dependencies [c9aad65] +- Updated dependencies [53c9575] +- Updated dependencies [7eaa3f5] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [c59ee99] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [fcbebf2] +- Updated dependencies [986a0f2] +- Updated dependencies [c99156e] +- Updated dependencies [c6b07c2] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [50d6da8] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [7dd1a2f] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [886ba45] +- Updated dependencies [c9b0a23] +- Updated dependencies [a8126d2] +- Updated dependencies [65fddc8] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [ed33f8a] +- Updated dependencies [1c4db09] +- Updated dependencies [17ed9e7] +- Updated dependencies [fa30414] +- Updated dependencies [cf7e443] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [52fb30c] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [850bcec] +- Updated dependencies [4dbee9f] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [0e91213] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [907b378] +- Updated dependencies [521b4f6] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [92f6216] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [b7fe94a] +- Updated dependencies [011635f] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [9a82465] +- Updated dependencies [0d4f190] +- Updated dependencies [13da40c] +- Updated dependencies [ad92dfd] +- Updated dependencies [b572420] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [a61b8ab] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [d24a502] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [5c2e34c] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [76bff41] +- Updated dependencies [6bc775f] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [756df0a] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [a98f8c6] +- Updated dependencies [e17c2ae] +- Updated dependencies [24ff03c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [89ce4fb] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [9c57bd2] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [49c8e0f] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [702b0cf] +- Updated dependencies [92ab056] +- Updated dependencies [b3247dd] +- Updated dependencies [372ce7c] +- Updated dependencies [c059e60] +- Updated dependencies [97f3420] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [db9e34a] +- Updated dependencies [852270a] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [bc2aaf1] +- Updated dependencies [4e55e4e] +- Updated dependencies [64b278e] +- Updated dependencies [4101f1f] +- Updated dependencies [695b9db] +- Updated dependencies [6927c3f] +- Updated dependencies [ecd4b2b] +- Updated dependencies [1e692d1] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/objectql@18.7.0 + - @objectstack/metadata-protocol@18.7.0 + - @objectstack/plugin-auth@18.7.0 + - @objectstack/plugin-security@18.7.0 + - @objectstack/types@18.7.0 + - @objectstack/lint@18.7.0 + - @objectstack/metadata@18.7.0 + - @objectstack/formula@18.7.0 + - @objectstack/rest@18.7.0 + - @objectstack/core@18.7.0 + - @objectstack/driver-sql@18.7.0 + - @objectstack/driver-turso@18.7.0 + - @objectstack/metadata-core@18.7.0 + - @objectstack/driver-memory@18.7.0 + - @objectstack/driver-sqlite-wasm@18.7.0 + - @objectstack/observability@18.7.0 + - @objectstack/service-cluster@18.7.0 + - @objectstack/service-datasource@18.7.0 + - @objectstack/service-i18n@18.7.0 + ## 18.6.0 ### Minor Changes diff --git a/packages/runtime/package.json b/packages/runtime/package.json index b1c4777148f..6e883b1683d 100644 --- a/packages/runtime/package.json +++ b/packages/runtime/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/runtime", - "version": "18.6.0", + "version": "18.7.0", "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 7e27198e365..d1938325ca0 100644 --- a/packages/sdui-parser/CHANGELOG.md +++ b/packages/sdui-parser/CHANGELOG.md @@ -1,5 +1,9 @@ # @objectstack/sdui-parser +## 18.7.0 + +No changes in this release. + ## 18.6.0 No changes in this release. diff --git a/packages/sdui-parser/package.json b/packages/sdui-parser/package.json index 72c93f1a3a9..9e00268443b 100644 --- a/packages/sdui-parser/package.json +++ b/packages/sdui-parser/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/sdui-parser", - "version": "18.6.0", + "version": "18.7.0", "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 ead80eb01bb..5ce2857b750 100644 --- a/packages/services/service-analytics/CHANGELOG.md +++ b/packages/services/service-analytics/CHANGELOG.md @@ -1,5 +1,416 @@ # Changelog — @objectstack/service-analytics +## 18.7.0 + +### Patch Changes + +- 7f4970a: fix(plugin-dashboard): a compare widget dated on a related record's field is served through the dataset's declared date dimension over that path + + Clause-②: no + Metadata-protocol: none + + A dataset-bound compare widget (`compareTo`) sends its date window to the dataset query under the filtered field's name. The dataset query answers only declared dimensions, and a dimension name has no dot, so a window on a related record's field, such as `account.founded_at`, was refused with `400 INVALID_FIELD`. + + When such a key is in the window, the widget now reads the dataset definition and sends the window under the one declared dimension with `type: 'date'` and `field` equal to that path (for example `{ name: 'account_founded', field: 'account.founded_at', type: 'date' }`). A `compareTo.dimension` that names the window by the path or by that declared name is sent as the declared name. When no declared date dimension covers the path, or two or more do, the key is sent as authored and the dataset query still refuses it. Keys that can be dimension names, such as `close_date`, are never renamed, and widgets whose window has no such key read nothing extra. + + To serve a compare widget dated on a related record's field, declare one date dimension over that path on the dataset. + + The dataset query's `400 INVALID_FIELD` refusal for a comparison-window date key that cannot be a dimension name no longer says the comparison cannot run unless the date field is a field of the dataset's own object; it names the remedy that exists: declare one date dimension over that field (`type: 'date'`, `field` set to it, any snake_case name, the relationship in the dataset's `include`) and name it in `timeDimensions`, which a dashboard compare widget then does itself. The refusal's code, status and when it fires are unchanged. +- 96faf44: Clause-②: yes (widening) + Metadata-protocol: none + + fix(i18n, mcp): a translation fault serves the untranslated text and the fault is logged, instead of failing the read; `list_datasets` is flagged `partial` with a `warning`, while REST `/meta`, the MCP object tools and `query_dataset` log only + + When the i18n service resolves but its `getLocales` or `getTranslations` throws, the shared `/meta` translator (`translationBundleOf`, `@objectstack/rest`) now answers it as no bundle: the text is served untranslated and the server log says so at `warn` (`The translations could not be read (…), so labels and descriptions are served untranslated.`). Before, the translation rejected, so `GET /meta/:type` and `GET /meta/:type/:name` answered 500, the MCP object tools failed, `list_datasets` answered `datasets: []` with `partial: true`, and `query_dataset` refused 503 on both MCP transports. + + Now `list_datasets` keeps every dataset, in its authored text, with `partial: true` and that sentence as its `warning`; `query_dataset` answers. A dataset host's `loadDatasets` may return `{ items, warning }` without `partial`: a whole read the tools say something about, which `query_dataset` does not refuse. The translator's sources take an optional `reportTranslationFault(warning)` to carry the sentence on an answer. + + fix(mcp): `?locale=` reaches the MCP labels, and the dataset tools answer in one language + + The HTTP MCP door now reads a `?locale=` query parameter as the `/meta` doors do (after `Accept-Language`, before the i18n default), for the object and dataset labels and the app-docs tools; it read headers only, though its docblock promised both. The dataset executor (`createDatasetTools`) takes an optional `translationLocale` dependency, the locale its `loadDatasets` translated the rows for, and reads labels and composes `nextStep` and `sourceLine` in it first. Both MCP transports pass it, so a call with no `Accept-Language` (common for MCP clients, and every stdio call) no longer mixes labels in the i18n default with sentences in the workspace locale. +- e25207d: fix(service-analytics): `list_datasets` no longer tells a client outright to ask "which number" when a word that falls back stands beside a grouping word + + Clause-②: no + Metadata-protocol: none + + A question such as "How many sales orders are in each status?" names its number. When no dataset measure answers to "sales orders" and none is offered as a candidate, the labelled fallback to the object query tools computes it. Until now the `nextStep` note of such an answer said two things at once whenever the grouping word equalled a dimension, or was near one: answer with the object query tools, and "A grouping alone is no answer: ask the user which number they mean." A client told both asked, and computed nothing. + + - **`list_datasets` `nextStep.note`** (`@objectstack/service-analytics`): the "which number is meant" sentence is written only when every word sent is a grouping (it equals a dimension, or has only dimensions among its candidates). With an unknown word beside it, the note carries that word's labelled fallback, then one closing sentence that leaves the question to the case only the client can see: "Only when the question has no word for a thing measured, ask the user which number they mean instead." (the unknown word may be a filter value, as in "break it down by stage for the west region"; the server sees words, not which of them names the number). `decision`, `terms`, `matches` and `candidates` are what they were. Unchanged: a word that equals several measures, and a word with a measure among its candidates (one candidate included), are still asked about and never selected. + - **`list_datasets` description**: the sentence "A dimension match alone picks a grouping, not a number: a measure must still match." now reads "A dimension match picks a grouping, not a number: when the question has no word for a thing measured, ask which number is meant; beside a word for a thing measured that falls back, ask nothing and take the fallback." + - **`objectstack-ask` skill, step 2** (`@objectstack/skills`, and the copy `GET /mcp/skill` serves from `@objectstack/mcp`): the row "Only a dimension matches" becomes "No word for a thing measured, only grouping or filter words", and the fallback row says the fallback is taken without asking, whatever a grouping word or another word matched. The sentence under the table that said the same about another word's matches is cut, since the row now holds it. + - **`objectstack-ask` skill, step 1**: a term keeps its counting head ("number of deals", not "deals"), so a phrase the dataset's owner declared as a synonym is sent whole and can equal its one measure. + - Four eval cases (21 to 24) cover the fallback beside a grouping candidate, the fallback beside a dimension match, the whole counting phrase, and a question with a grouping and a filter value but no word for a thing measured, which is asked which number is meant. + + The skill file is 2 bytes shorter than before (1875 tokens by the catalog's count, before and after). +- 7ed18b5: fix(analytics): a grouping or time word with only a near dimension no longer stops a matched measure with a question + + Clause-②: no + Metadata-protocol: none + + A question like 「按行业看销售额」 or "revenue this quarter" sends `list_datasets` a measure word with an exact match (销售额, revenue) and a grouping or time word that matches nothing exactly but is near a dimension (「按行业」 contains 行业, "this quarter" contains `quarter`). The `nextStep` note used to tell the model to ask the user about that word before using it, so an ordinary question got a clarifying question back. Now a word whose candidates are all dimensions is offered as a possible grouping: the note says not to ask about it and that it does not stop the matched measure, which is computed. A word with a measure among its candidates still asks, as before: a bare near-miss measure word (销售 near 销售额) is still `candidates_only` and computes nothing until the user answers, and beside a matched measure it is still asked about. + + What changes is the note only. `decision`, `terms`, `matches` and `candidates` are the same as before for every input: a word with only dimension candidates is still `candidates_only` when it is the reported case, and its candidates are still listed. When such a word is the only word sent, the note offers the grouping and asks which number is meant, as it does for a word that equals a dimension. + + The `list_datasets` tool description and the MCP `initialize` selection rule now state the scoped rule in the same words: "A word whose candidates are all dimensions is at most a possible grouping: never ask about it, and it never stops a matched measure." +- 338448e: fix(service-analytics): a derived dataset measure whose operands are all tenant-currency amounts carries the request's tenant currency + + Clause-②: no + Metadata-protocol: none + + A dataset `sum` over a `currency` field in `dynamic` mode (the default) already labels its result column with the request's tenant currency (`localization.currency`). A derived `sum` or `difference` over such measures did not: its column carried no `currency`, so it rendered as a bare number beside the plain sums it was built from (a project's actual cost as labor plus expense, for example). Its column now takes the tenant currency too, on `POST /analytics/dataset/query` and on the dataset draft preview alike. + + A derived measure counts as an amount in the tenant's currency only when every operand is one: an amount aggregate (`sum`, `avg`, `min`, `max`) over a `dynamic` currency field with no `currency` of its own, or a derived `sum` / `difference` of such measures. Unchanged: + + - A `ratio` or `product` of tenant amounts is no amount and stays bare. + - A derived measure that mixes a tenant amount with a `fixed` code, an explicit measure `currency`, a record-mode amount or a `count` stays bare, whichever operand comes first. + - A derived `sum` / `difference` over one `fixed` code still carries that code, and a derived measure's own `currency` still wins. + - With no tenant currency on the request, the column carries none, as the plain sum under it does. + + No metadata key, accepted value or default changes; no compile-time guard moves. +- 8856afc: feat(mcp): a refused record read says the data is not recorded, in the caller's language + + Clause-②: yes (widening) + Metadata-protocol: none + + When `query_records`, `aggregate_records` or `get_record` is refused and the call named an object, or a field, that the caller's own schema does not show (the object as `describe_object` serves it to them), the refusal now carries two members beside it, on the HTTP and the stdio server alike: + + - `notRecorded`: what is not recorded, as the caller sent it: `{ "object": "<name>" }`, or `{ "object": "<name>", "fields": ["<name>", …] }` for the field names the call sent that the schema does not show, in the order sent. Every sent name is read by its head on every channel (`where`, `fields`, `orderBy`, `groupBy`, an aggregation's `field` and `filter`), so `owner.name` is judged by `owner`, and a dotted name whose head the schema shows is never named. + - `ifNotRecorded`: one sentence, in the caller's language (English, Simplified and Traditional Chinese, Japanese), telling the model to say the data is not recorded, never to report 0 or an empty result for it, and not to answer with another object or field in its place. + + The answer names only what the caller can see: both members are built from the names the caller sent and from the caller's served schema, and nothing else. The refusal itself (`isError`, its `code`, `message` and `status`) is unchanged, byte for byte. A read that answers, a refusal about a field the caller's schema shows, a server fault, and a refusal whose schema read cannot be made carry no member. `id`, `created_at` and `updated_at`, which every object answers, are never named. + + The language is chosen by one shared picker, `pickSentenceLocale` (with `platformLocaleNamedBy`), now exported from `@objectstack/core`: the first of the caller's locales (the request's, then the workspace default) that names a language the sentence is written in, else `en`. The dataset tools' `nextStep` and `sourceLine` (`@objectstack/service-analytics`) use the same picker, with unchanged behaviour. `McpDataBridge` gains an optional `userTextLocales()` member: the HTTP bridge answers the request's ladder, the stdio bridge the principal's ladder and then the i18n service's default. A bridge without it is answered in `en`. +- b863d2b: feat(service-analytics): `query_dataset` says how many groups existed before the `limit` cut (`totalGroups`), as `aggregate_records` does + + Clause-②: yes (widening: QueryDatasetOutputSchema gains totalGroups) + Metadata-protocol: added + Skills-docs: follow-up #35203 + + `QueryDatasetOutputSchema` gains an optional `totalGroups`: how many groups the selection formed before `offset` and `limit` cut them, the same name and meaning as `aggregate_records`' `totalGroups`. A client asked "how many are there" after a top-N cut can now answer it: a grouped `query_dataset` whose `limit` is below the group count answers `truncated: true` and the full count, and an answer that was not cut answers `totalGroups` equal to `rowCount`. + + The count never costs a read. Where the window is pushed into the one SQL statement that grouped the answer, the database counts the groups in that statement (`COUNT(*) OVER ()`, after the `GROUP BY` and ahead of the `ORDER BY` and `LIMIT`). Where the window is applied in memory, the count is the length of the grid before the window: an order by a display label (the tool's own order, used when none is sent, sorts every selected dimension, so grouping by any select or reference field brings this in; an order by measures alone does not), a grid assembled from several queries (a measure with its own filter, a derived measure, `compareTo`), and a query the engine's aggregate serves, such as a date bucket, a field-to-field filter, an external object or a driver with no raw SQL. That grid is counted only when every read that built it came back whole; a grid that a cap or row guard cut before the window answers no count. + + `totalGroups` is absent when: the window was pushed down and the SQL dialect is not one the analytics strategy knows, or a selected member is itself named `__os_group_count`, or the page came back empty after an `offset`; a read was served by a strategy that does not vouch for its grid, such as one a host adds, or was cut by a cap under it; or the dataset's object is missing and the answer is the empty one served for it. Read `totalGroups` as optional. + + Only the AI tool asks for the count. The REST dataset door, dashboards and reports run the statements they ran before. +- 068a0f9: fix(service-analytics): `query_dataset` never pairs an empty answer with a group count + + Clause-②: no + Metadata-protocol: none + + A selection with `totals` runs its totals reads after the primary grid is counted. When one of those reads met a missing source, the service served the empty answer (`rowCount: 0`), but the group count of the primary grid was already written, so `query_dataset` answered `totalGroups` for a grid it never served. The count now reaches the caller only once the whole call has answered; an answer served empty because a read failed carries no `totalGroups`. + + The `dataset-group-count.ts` header also states where the whole-grid proof stops: at the strategy's own read seam (`ctx.executeRawSql`, `ctx.executeAggregate`). A host-supplied bridge or an out-of-repo driver that silently truncates an unwindowed read would be counted as whole. + + No key, member or export changes. +- c321914: fix(objectql,service-analytics): `query_dataset`'s ObjectQL face orders and cuts a top-N in the database instead of reading every group + + Clause-②: yes + Metadata-protocol: none + + A top-N (`order` with a `limit`, optionally an `offset`) on the analytics ObjectQL face — date-bucketed queries, `$field` filters, drivers without raw SQL — used to read every group and cut in memory. On a driver that compiles the engine's order-and-cut (the SQL driver family: `driver-sql`, the WASM SQLite driver, Turso's local and replica faces) the face now hands the engine its order and `offset + limit`, the database orders, cuts and counts in one statement, and only the cut rows are read. `totalGroups` stays the count of every group, taken from that statement. + + Visible change: a text-ordered top-N on such a driver now returns the database's choice of groups — its collation, NULL last in both directions — the same as the native SQL face and `aggregate_records`, instead of the in-memory comparator's (`localeCompare`, `''` read as empty). + + Where the engine cannot serve the cut — the in-memory driver, MongoDB, OData, Turso's remote face, a date bucket or reference timezone the driver does not compile, a measure filter it does not evaluate — the face reads every group and cuts in memory as before, and no refusal reaches the caller. A select or lookup dimension ordered by its display label is still cut in memory, by label. + + `@objectstack/objectql`: an `AGGREGATE_ORDER_CUT` request may set `declinable: true`; where the cut cannot be served the engine then reads nothing, answers `[]`, leaves `outcome` unset and records the reason on the request's new `declined` slot instead of refusing `INVALID_QUERY` / 400. Without the flag nothing changes: `aggregate_records` keeps its refusal, and `AggregateOrderCutOutcome` is unchanged. +- d76d57a: fix(service-analytics): the cube door refuses a total over a formula with the stored-field remedy, not a row count + + Clause-②: no + Metadata-protocol: none + + A cube measure that takes the `sum`, `avg`, `min` or `max` of a `formula` field (a configured cube's measure, or an inferred cube's suffix measure such as `expected_sum`) is still refused `INVALID_FIELD` / 400 before anything is read. Its message no longer ends "aggregate a field of one of those types, or count the rows with count": after the accepted set it now prints the spec's one prescription for a virtual field, `VIRTUAL_FIELD_AGGREGATE_REMEDY` ("Computed on read, the field stores no value: make it a field of its return type with the same `expression` (computed and stored on write) and aggregate that. Counting records is a different question."), the sentence the dataset compiler and the engine's aggregate door already print for the same pair. A count in place of a total is a plausible wrong number. + + Which measures are refused, the error code, the status and the attached `member` / `field` / `object` are unchanged. A refused pair over a stored type (for example `sum` over `text`) keeps its wording. +- c59ee99: feat(units): a raw total over a `record`-mode quantity is refused unless it groups by the quantity's unit field + + Clause-②: yes (widening) + Metadata-protocol: none + + ADR-0158 U7 R1, mirroring ADR-0144 D6 and its record-currency doors. A `number` field declaring `unitConfig: { unitMode: 'record', unitField }` holds a bare quantity whose unit is each row's code in `unitField`. Before this change, `sum` over a row of 10 KGM and a row of 10 LBR answered `20`, and a `summary` roll-up over such child rows stored `20`. + + - **The engine aggregate** (`@objectstack/objectql`, `ObjectQL.aggregate`): `sum`, `avg`, `min` or `max` over such a quantity is refused `INVALID_FIELD` / 400 before any driver is asked, unless the query's `groupBy` includes the quantity's `unitField`. The message names the quantity, its unit field and the grouping to add. + - **A `summary` roll-up** (`@objectstack/objectql`, object registration): a `summary` that rolls up `sum`, `avg`, `min` or `max` of such a child quantity is refused `INVALID_METADATA` / 422, whichever object registers second. In R1 every such roll-up is refused: a child quantity cannot follow its parent's unit yet. Roll up with `function: 'count'`, or total the quantity with an aggregate grouped by its unit field. + - **Analytics** (`@objectstack/service-analytics`): a dataset or cube measure of type `sum`, `avg`, `min` or `max` over such a quantity is refused `INVALID_FIELD` / 400 unless the query has a dimension over the unit field, on every cube path (declared, inferred, augmented), every `totals` grouping and the draft preview. + - **The widening.** `AnalyticsServiceConfig.sourceFieldMeta` may answer one more optional key, `unitField`: a `number` field's `unitConfig.unitField`, under `unitMode: 'record'` only. `AnalyticsServicePlugin` relays it for a `number` under `unitMode: 'record'` and for nothing else. A host that does not answer it gets no record-unit judgment from the cube door; the engine aggregate door still refuses the same query on the ObjectQL strategy. + + Not judged: `count` and `count_distinct`, a `fixed`-mode quantity, and a `number` field with no `unitConfig`. No new error code. +- 59392ed: fix(service-analytics)!: the analytics doors refuse an object of a disabled package with the data route's `404 OBJECT_PACKAGE_DISABLED` + + Clause-②: yes (narrowing) — the exported `AnalyticsServiceConfig` (`@objectstack/service-analytics` root) gains the optional key `isObjectPackageDisabled`, and the analytics doors newly answer `404 OBJECT_PACKAGE_DISABLED` for an object of a disabled package, which they answered `200` with data before + Metadata-protocol: none + Skills-docs: none — no page under `skills/` teaches what analytics answers for a disabled package's object; the refusal carries the data route's own sentence, which names the fix + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no stored row, registry key or authored value changes. What moves is the answer the analytics doors give for an object whose owning package is disabled, an answer that returns to what it was the moment the package is re-enabled; there is nothing for a migration to rewrite and no tombstone. --> + + **BREAKING** for a caller that queries a disabled package's object through analytics. A package disable takes the package's objects off the data plane (`GET /api/v1/data/:object` answers `404 OBJECT_PACKAGE_DISABLED`), but the analytics service asked only whether an object exists and whether it is exposed, never the registry's disabled-package predicate. + + - FROM: `POST /api/v1/analytics/query` (and `/analytics/sql`, and the dataset door behind dashboards and the AI dataset tools) answered `200` for a disabled package's object: an authored or inferred cube's counts and sums, its field values as group keys, and an enabled object's relationship hop into it. `GET /api/v1/analytics/meta` still listed a cube over it, and a lookup dimension's label pass still read its records' display names. + - TO: every analytics door refuses a query whose read set (the cube's base object, a declared join, or a relationship hop) holds an object of a disabled package with `404 OBJECT_PACKAGE_DISABLED`, naming the object, in the data route's words, for every caller (system included, as on the data route). A declared join counts even when the query does not use it, the same read set the exposure and permission gates already judge. `GET /api/v1/analytics/meta` leaves such a cube out (by name it answers an empty list, as for a hidden cube), and a lookup dimension's label is withheld, so the stored id renders, as the data route's `$expand` withholds the target. + + **Not moved.** An enabled object queried on its own is served while another package is disabled. A registry that cannot answer the question hides nothing. Re-enabling the package serves every read again, and nothing is cached. + + A host that constructs `AnalyticsService` by hand, instead of through `AnalyticsServicePlugin`, must wire the new `isObjectPackageDisabled` config key (the registry's disabled-package predicate, for example `registryObjectPackageDisabled(engine.registry)` from `@objectstack/core`), or its analytics doors stay ungated for a disabled package's objects. + + The error-code ledger records the code under `@objectstack/service-analytics` too (a provenance row: the set of registered codes is unchanged). + + The fix for a caller: re-enable the package, or query only objects of enabled packages. +- 0a3dd40: feat: analytics compiles the `SharedRecordIds` fixed-read leaf, the access explainer resolves it at the record, and OData refuses it (ADR-0155, step 5 of 6) + + Clause-②: yes + Metadata-protocol: none + + No visible change on its own: nothing on main writes a `SharedRecordIds` leaf yet. The sharing plugin starts writing it at ADR-0155's last step. + + - **Analytics, the native SQL path** (`@objectstack/service-analytics`). A read scope carrying `{ id: { $in: SharedRecordIds.read(object, user) } }` compiles to one subquery in the list's own position, `id IN (SELECT "record_id" FROM "sys_record_share" WHERE "object_name" = ? AND "recipient_type" = ? AND "recipient_id" = ? AND "record_id" IS NOT NULL AND "record_id" <> '')`, with every value bound and no tenant scope on the subquery (ADR-0155 ① ruled A). The native strategy takes such a scope only when the host answers `AnalyticsServiceConfig.fixedReadLeafClassOf` with `null` for each leaf (outside both classes ADR-0155 D4 recognises: the object on another datasource than `sys_record_share`, or a middleware or `beforeFind` / `afterFind` hook registered for `sys_record_share` by name) and the dialect is SQLite, PostgreSQL, MySQL or SQL Server. Otherwise it declines, and the ObjectQL engine path answers. A host that wires no answer keeps today's behaviour: the native path declines every scope that carries the leaf. This change ships the hook unwired: `AnalyticsServicePlugin` passes no answer, so the native path declines a scope carrying the leaf and the engine path answers, until #35946 wires it. + - **Analytics, the ObjectQL path.** The read-scope merges (`withReadScope`, the related-object scope, the label read) admit a placed read-form leaf and hand it to the engine by reference. The dry-run SQL echo prints the subquery. A leaf in any other position, under `$nin`, on another object or in its write form is refused, `INTERNAL_ERROR` / 500, logged at `error` once per service logger. + - **Analytics, the query's `where`.** A leaf reaches analytics only in the read scope. A leaf anywhere in a query's `where`, in either spelling, is now refused before either strategy runs, with `INTERNAL_ERROR` / 500. The message names the leaf and its table, not the recipient. Before this release `{ id: { $in: leaf } }` there answered `INVALID_FILTER` / 400, with a message that printed the recipient. A bare `{ id: leaf }`, or an array-form `=`, was read as a relation condition on `id`. No request can spell the leaf, so only in-process code could reach this. + - **The access explainer** (`@objectstack/plugin-security`). `ISecurityService.explain` resolves each leaf in the sharing read filter at the record it judges, with one read of `sys_record_share` under the leaf's own predicate, keyed by the record ids (one read for a whole batch). The sharing layer's `rowFilter` then has the two shapes it has today: `{ id: { $in: [recordId] } }` in the share arm for a caller with a grant on the record, and the share arm left out for a caller without one. The published `rowFilter` never carries the leaf. A leaf it cannot resolve is refused, `INTERNAL_ERROR` / 500, logged at `error` once. That includes a leaf anywhere but `{ id: { $in: leaf } }` in the object's own filter, such as one inside a relation condition or a composed `ReadableIds` scope, as the engine and the analytics compiler refuse it. + - **OData** (`@objectstack/driver-odata`). `find` and `count` refuse a `where` carrying the leaf before any request is sent, `INTERNAL_ERROR` / 500. An OData `$filter` has no form of the subquery, and the driver declares no `fixedReadLeaves`. Before this release a direct `find` left the leaf's predicate out of the `$filter` it sent. The engine already refused the leaf before calling this driver. + - **The array form** (`@objectstack/spec`). `parseFilterAST` now refuses a leaf in the array form with `INTERNAL_ERROR` / 500 wherever it answered `INVALID_FILTER` / 400: as an `in` / `nin` comparand, as a member of an `in` / `nin` list, or as the comparand of a scalar operator (`!=`, `>` and the rest). The old messages printed the leaf's inputs, the recipient among them. The new message names the leaf and its table only. An unbranded copy that crossed JSON is still `INVALID_FILTER` / 400. An array-form `=` is passed on by reference and refused by the engine, as before. + - **New exports** (`@objectstack/objectql`). `fixedReadLeafClassOfEngine(engine, leaf)` answers which ADR-0155 D4 class, if any, keeps the engine from handing a leaf to a driver. `driverEvaluatesFixedReadLeaf` answers whether a driver declares the leaf. Neither reads or writes anything. +- e72f2aa: feat: the analytics plugin asks the engine which share-grant scopes its native SQL path may compile (ADR-0155 D4) + + Clause-②: yes + Metadata-protocol: none + + - **New optional contract member** (`@objectstack/spec`). `IObjectQLEngine.fixedReadLeafClassOf(leaf)` answers which of ADR-0155 D4's two classes a `SharedRecordIds` leaf falls in on an engine: `'other-datasource'` (the leaf's object is bound to another datasource than `sys_record_share`) or `'registration-by-name'` (a middleware or a `beforeFind` / `afterFind` hook is registered for `sys_record_share` by name), with what names it. It answers `null` when neither class applies, and throws `TypeError` on a value that is not a fixed-read leaf. The answer type is the new `EngineFixedReadLeafClass`. The member is optional, and because "neither" is `null`, `engine.fixedReadLeafClassOf?.(leaf)` is a caller's whole answer: a class, `null`, or `undefined` from an engine without the member, which cannot say. + - **The engine implements it** (`@objectstack/objectql`). `ObjectQL.fixedReadLeafClassOf` returns the seam's own recognition, `fixedReadLeafClassOfEngine(engine, leaf)`, with "neither" spelled `null`. It reads only datasource bindings, middlewares and hooks. It calls no driver and logs nothing. + - **The analytics plugin wires it** (`@objectstack/service-analytics`). `AnalyticsServicePlugin` now fills `AnalyticsServiceConfig.fixedReadLeafClassOf` from the `"data"` engine on each call. When the engine answers `null` (neither class), the native SQL path compiles a read scope that carries the leaf. When the engine names a class, throws, answers anything but `null`, or has no such member, the query goes to the ObjectQL engine path, as before. An engine without the member is reported once at `warn`. Neither class is restated in analytics. + + Nothing a metadata author writes changes. On a host that runs `ObjectQLPlugin`'s engine as `"data"`, a sharing-scoped analytics query outside both classes keeps the native SQL path once the producer starts writing the leaf (ADR-0155 step 6). +- 7376505: fix(service-analytics)!: the dataset query door, `POST /api/v1/analytics/query` and the native arm of `POST /api/v1/analytics/sql` refuse `=`, `$in` and every other scalar comparison or text operator on a multi-value or JSON field with the data door's `400 INVALID_FILTER`, instead of answering a wrong count + + Clause-②: no (narrowing) — the dataset query door, `POST /api/v1/analytics/query` and the native SQL arm of `POST /api/v1/analytics/sql` refuse a scalar comparison on a multi-value or JSON field, in a `where` or a `timeDimensions[].dateRange` window, that they answered `200` + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is the answer to a request: a filter the data door already refuses is now refused on the analytics dataset door, `POST /api/v1/analytics/query` and the native arm of `POST /api/v1/analytics/sql` too, so there is no stored row, registry key or authored value for a migration to rewrite and no tombstone. --> + + **BREAKING** for a client of `POST /api/v1/analytics/dataset/query` (and every other caller of the dataset query on the native SQL strategy or the draft preview) whose `runtimeFilter`, dataset `filter` or measure `filter`, and for a client of `POST /api/v1/analytics/query` or of `POST /api/v1/analytics/sql` answered by the native SQL strategy whose `where`, applies an operator of `JSON_COLUMN_INCOMPATIBLE_OPERATORS` (`@objectstack/core`) — `$eq` or implicit equality, `$ne`, `$in`, `$nin`, `$gt` / `$gte` / `$lt` / `$lte`, `$between`, `$startsWith`, `$endsWith`, `$icontains` — to a multi-value or JSON field: an inherently multi-value type (`tags`, `multiselect`, `checkboxes`), a `select`, `radio`, `lookup`, `user`, `file` or `image` field declared `multiple: true`, or a structured-JSON type. The same holds on all three doors, when the native SQL strategy answers, for a `timeDimensions[].dateRange` window on such a field (the dataset door's `selection.timeDimensions[]` included), which compiles to a `$gte` / `$lte` pair: + + - FROM: the native SQL strategy compared the stored JSON text (`["a","b"]`) against the comparand and answered `200`: `$in` / `$eq` counted no row, `$nin` / `$ne` counted the rows they were asked to exclude, and the orderings and the text operators matched the serialization. The draft preview (`?preview=draft`) gave the same counts over the drafted rows. TO: `400 INVALID_FILTER` before anything runs, in the words `POST /api/v1/data/:object/query` answers, naming the field and the operator, on every dialect. The ObjectQL strategy already answered this. On a datasource whose SQL dialect the host cannot name (memory, MongoDB), the native strategy now declines a query whose `where`, dataset `filter` or measure `filter` carries such a comparison, so the engine answers it through its own driver; a `timeDimensions[].dateRange` window on such a field is not part of that decline, and is refused `400 INVALID_FILTER` on every datasource the native strategy compiles for. + + **Not moved.** `$contains` / `$notContains` (membership), `$null`, `$exists` and `$empty` on such a field, `$eq: null` / `$ne: null` (a null predicate), an empty `$in` / `$nin`, and every operator on a scalar field answer as before. + + The fix for a caller: write `{ "FIELD": { "$contains": "a" } }` for membership, an `$or` of `$contains` for any-of, and `$null` / `$empty` for no value. +- 03dbbe4: fix(service-analytics): the draft preview answers `$contains` on a multi-value field as membership, as the published dataset does + + Clause-②: no + Metadata-protocol: none + + The draft preview (`POST /api/v1/analytics/dataset/query?preview=draft`, what Studio's preview mode reads) evaluated `$contains` as a case-folded substring of the value's string form on every column. On a field declared multi-valued (`multiple: true`) or stored as JSON (`tags`, `multiselect`, `json`, …) that searched the drafted list as text: `$contains: 'a'` counted a row holding `['ab']` or `['A']`, and `$contains: 'a,b'` counted a row holding `['a', 'b']`. The published dataset counts none of them, so a drafted chart showed numbers that changed at publish. + + On such a field the preview now asks whether the comparand is a member of the stored list, reading the comparand as every SQL face does (`'1'` names the string `'1'` or the number `1`; a nested list, an object or a value that is not a list holds no member). On any other column it is the case-exact substring of a stored string, the `$contains` family's rule everywhere else on the platform: `$contains: 'acme'` no longer matches `ACME Corp`, and a stored number never contains a substring. + + `$notContains` was refused `INVALID_FILTER` / 400 on the preview; it is now answered, as the exact complement, with the same answers the live faces give (a row with no value satisfies it). + + A drafted filter that relied on the preview's case folding (`$contains: 'acme'` over `Acme`) now counts what the published dataset counts; write the case the data holds. `$icontains` is still refused on the preview. +- 9a82465: fix(analytics)!: the native dataset face and the draft preview refuse `=` / `$in` / `$ne` on a single-value `image` or `file` column the driver stores as JSON, as the data door does + + Clause-②: yes (narrowing) — widened: `SqlDriver.jsonColumnFieldClass` (`@objectstack/driver-sql`) is now public, and so on every class that extends it (`TursoDriver`, `SqliteWasmDriver`), and the exported `AnalyticsServiceConfig` (`@objectstack/service-analytics` root) gains the optional key `jsonColumnFieldClass`; narrowed: the native dataset face and the draft preview newly answer `400 INVALID_FILTER` for a scalar comparison on a single-value media column the driver stores as JSON, which they answered `200` with a wrong count before + Metadata-protocol: none + Skills-docs: none — no published skill documents the dataset door's filter vocabulary per storage class; the refusal text itself carries the prescription (the media-column move), and the operator contract `skills/` describes (`$contains` for membership on a JSON column) is unchanged + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no stored row, registry key or authored value changes. What moves is the answer the native dataset face and the draft preview give a scalar comparison on a single-value media column, so no stored row, registry key or authored value changes and there is nothing for a migration to rewrite. --> + + **BREAKING** for a caller of the dataset query door whose filter compares a single-value `file` / `image` / `avatar` / `video` / `audio` field with `=` (explicit or implicit), `$in`, `$ne`, `$nin`, an ordering comparison, `$between` or the non-membership text family, on a deployment still inside the ADR-0104 dual-encoding window (its media columns not yet moved, which is every deployment that has not run the move). + + - FROM: the native dataset face compiled the comparison against the stored JSON string (`"file_1"`) and answered `200` with the wrong count — `{ pic: 'file_1' }` and `{ pic: { $in: ['file_1'] } }` counted `0`, `{ pic: { $ne: 'file_1' } }` counted every row — and the draft preview answered `200` with its own counts, matching the bare id a drafted row holds. `POST /api/v1/data/:object/query` and this door's ObjectQL strategy already refused the same filter `400` `INVALID_FILTER`. + - TO: all four faces refuse it `400` `INVALID_FILTER`, in `@objectstack/core`'s one refusal text for this column class — the media-column move, not the `$contains` membership repair, which finds no member in a single JSON string. + + **Widened, alongside.** `SqlDriver.jsonColumnFieldClass(table, field)` is now a public, read-only member: it answers `'single-value-media'`, `'multi-value-or-json'` or `undefined` for a column on this deployment, the same answer the data door's refusal reads. A subclass that redeclares it as `protected` must widen it to `public`. `AnalyticsServiceConfig.jsonColumnFieldClass` is the optional hook the analytics host reads it through; `AnalyticsServicePlugin` wires it from the driver that stores the object, and a host that wires nothing keeps its earlier behaviour. `TursoDriver` answers it on the remote face from the same registry its remote transport already reads. + + **Not moved.** `$contains` / `$notContains` and the null predicates (`$null`, `$exists`, `$empty`) on such a column, every operator on a scalar column, the multi-value and structured-JSON class (unchanged since it was refused on these faces), and a deployment whose media columns have moved — the column is not JSON there, and the comparison is answered. + + The fix for a caller: filter on the record the attachment belongs to, ask presence with `$null` / `$empty`, or finish the deployment's media-column move (the column step of `objectstack migrate files-to-references --apply`, which the refusal text prescribes) so the column is comparable. +- d280de9: docs: stale prose on summary currency, the temporal-comparand door and analytics filters now says what the code does + + Clause-②: no + Metadata-protocol: none + + No accepted value, key or answer moves. Two refusal messages change their words: + + - A `currencyMode: 'dynamic'` summary over a child `currency` field that is neither `dynamic` nor a well-formed `record` / `fixed` (a stored `fixed` field with no `defaultCurrency`, or a `currencyMode` outside the three) is still refused, and the refusal now names what the child lacks: "is a 'currency' field in `fixed` mode with no `defaultCurrency` code (the currency it is fixed to is missing)", or "is a 'currency' field whose `currencyMode` 'X' is none of `dynamic`, `fixed` and `record`". Before, it said only "is a 'currency' field, not a `currency` field in `dynamic` mode". + - The temporal-comparand door's refusal of a comparand no temporal rule reads (`'not-a-date'`, the preset name `'last_30_days'`) now ends "As written it would reach the driver and be compared as text: it may select every row, none or the wrong ones (or raise a database error), an answer indistinguishable from a real one." Before, it said the comparison would "compare false for EVERY row", which was wrong for `$lt` and others that selected every row, for a partial day such as `'2026-06'` that selected a subset, and on PostgreSQL, which raised a database error. Its `having` twin says the same of the groups it would keep, where it said "no group or every group, a 200". + + The upgrade-guide entry `summary-dynamic-currency-rollup-home-amount-judged-as-served` now states the admitted set as both doors enforce it: a `dynamic` summary may roll up any child `currency` field in `dynamic` mode, a stored home amount included. Source comments and published docblocks that said every `{placeholder}` is stepped around by the temporal door now state the per-kind rule: a date macro is stepped around and judged by its year once resolved, a period key and a context token are judged as written, and an unknown or record-context token is left to the resolver. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [9c57bd2] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [c059e60] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/types@18.7.0 + - @objectstack/core@18.7.0 + ## 18.6.0 ### Minor Changes diff --git a/packages/services/service-analytics/package.json b/packages/services/service-analytics/package.json index 5e191f7d099..4384d574fc7 100644 --- a/packages/services/service-analytics/package.json +++ b/packages/services/service-analytics/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/service-analytics", - "version": "18.6.0", + "version": "18.7.0", "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 68894562003..d3a2461f7bd 100644 --- a/packages/services/service-automation/CHANGELOG.md +++ b/packages/services/service-automation/CHANGELOG.md @@ -1,5 +1,481 @@ # @objectstack/service-automation +## 18.7.0 + +### Minor Changes + +- 8236d9b: feat(service-automation)!: a sync-in pull marks the rows the source deleted, and an incremental source states how it learns of a delete + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: none (no skills/ page names `deletePolicy`, `deletedField` or `_sync_deleted_at`; the guide that teaches them is `content/docs/automation/jobs.mdx`, updated here) + + <!-- adr-0087: registered incremental-source-delete-policy-stated --> + + ADR-0153 D3, delete marking (#32062, slice 6). + + - **A pull marks a row the source deleted, and never deletes it.** Under `deletePolicy: 'mark'`, the reading when the key is absent, a pull stamps the platform column `_sync_deleted_at` on a row of a `synced` object that the source deleted, and clears it when a later pull reads the row again. `deletePolicy: 'ignore'` leaves every row as it is. Two detections: + - `deletedField`, on any pull that declares it: a read record whose value in that source field is truthy has its copy marked; every other read record's copy is cleared. + - Absence, on a full pull whose read was complete: every row of the mapping (`_sync_source`) the run did not read is marked. A `datasourceSource` with `full: true` is complete when its windows read to their end and no source row in the job's organization has a NULL watermark; it marks only rows whose copied watermark is at or above `watermark.start`. A `connectorSource` without a `watermark` is complete only under `paging: { style: 'none' }` (one response is the whole set); with no `paging`, or a paging style the pull does not follow yet, it marks nothing by absence. A refused or interrupted pull marks nothing by absence; a row the import runner refused was read, so it is not marked. A record whose `upsertKey` value is blank names no row, so one such record makes the run mark nothing by absence (`unjudged, rows refused`). A row pulled before the provenance columns existed carries no `_sync_source`, so it is no mapping's row: if the source has since deleted it, no pull marks it. + - Two mappings on one target: each marks and clears only the rows whose `_sync_source` is its own; a second mapping is not refused. + - **`sys_sync_run` records it.** New columns: `marked_deleted_count`, `deletes` (`judged`, `by deletedField`, `ignored`, or `unjudged, …` with the reason: `null watermark`, `no paging declared`, `pages not followed`, `rows refused`) and `skipped_null_watermark` (a datasource source's rows with a NULL watermark, counted under the organization predicate; through a plugin driver's row cap a count above the cap is recorded as the cap plus one). The end-of-pull log line says what the run marked and cleared. `job_run_id`'s and `trigger`'s descriptions now say when each is empty. + - **BREAKING: an incremental source states how it learns of a delete.** A `connectorSource` with a `watermark`, or a `datasourceSource` without `full: true`, never sees an absent row, so under `deletePolicy` absent or `'mark'` with no `deletedField` it is refused at parse (`MappingSchema`, so `defineStack` and `os validate`) and again when the pull runs (`400 VALIDATION_ERROR`, reason `delete_policy_unhonourable`). Fix: name the source's soft-delete field (`deletedField: 'is_deleted'`), or write `deletePolicy: 'ignore'`, which is what every pull did before this release. New export: `incrementalSourceDeleteRefusal` (`@objectstack/spec/data`), the rule both doors ask. + - **BREAKING: a `synced` target that withholds the provenance columns** (`systemFields: false`) is refused under `deletePolicy` absent or `'mark'` (`400 mapping_target_refused`): no row of it can carry the mark. Fix: let the platform add its columns, or write `deletePolicy: 'ignore'`. This arm is judged only when the pull runs: `os validate` and `defineStack` do not catch it, so a stack that validates green can still fail every scheduled pull. Migration entry `incremental-source-delete-policy-stated` names both arms. + - A datasource source's `deletedField` must name a field of the source object (`400 source_binding_invalid` otherwise). `deletedField` is read by truthiness: the text `'false'` or `'0'` marks the row, and on a connector source a field the records do not carry reads as falsy on every record and marks nothing. + - A stored `deletePolicy` outside `'mark'` / `'ignore'` (which the parse refuses) is refused by the pull too (`delete_policy_unhonourable`) instead of being read as `'mark'`. + - The liveness rows for `deletePolicy` and `deletedField` on both sources are `live`, and `os validate` no longer warns that nothing reads them. `paging` stays `planned`: the connector paging loop is a later change. + - A connector pull whose target definition cannot be read now says whether the object is not registered or the metadata read failed. + - A connector pull keeps the job run id and trigger only when the run record can hold them: a trigger other than `schedule` or `manual`, or a run id longer than 255 characters, is left out instead of failing the run record's open. + - `JobHandlerContext` (`@objectstack/runtime`) declares `trigger` and `runId`: the handler run form spreads the job service's context into the handler's, so every `handler` job already receives `trigger`, and `runId` under the database job adapter. The jobs guide lists both. +- f4dbcc2: feat(lint): five publish-time checks for metadata that passes the schema and does nothing at run time, and four build probes over what landed + + Clause-②: no (narrowing: four publish-time refusals of metadata the schema accepts today) + Metadata-protocol: narrowed + Skills-docs: follow-up #35245 + + <!-- adr-0087: registered publish-refuses-metadata-the-runtime-ignores --> + + Five authoring rules join the registry the runtime publish gate and `objectstack validate` / `lint` / `compile` run. Each finding names its fix. + + - `flow-node-type-no-executor` (error): a flow node whose `type` no executor in this deployment runs fails every run with `NO_EXECUTOR`. Judged only against the automation engine's SEALED node-type vocabulary, which the publish gate reads from the new `AutomationEngine.getSealedNodeTypeVocabulary()` (it answers `undefined` until `sealNodeTypeVocabulary()` ran at `kernel:bootstrapped`). The CLI does not know which plugins a deployment loads, so it judges nothing here. + - `flow-approval-decision-unrouted` (error): an `approval` node whose decision out-edges are not labelled exactly `approve` and `reject` runs every out-edge for a decision no label claims, so the approving and the rejecting branch both run. + - `flow-http-timeout-missing` (warning): an `http` node with no positive `config.timeoutMs` and no positive node-level `timeoutMs` waits on a slow upstream for as long as the connection stays open; the engine arms no default timer. A `durable: true` node, which does not wait on the endpoint, is not reported. Like every warning, it makes `os validate --strict` exit 1. + - `state-machine-no-initial-states` (error): an active `state_machine` validation without `initialStates` (or with an empty list) lets a record be created already in any state. Add `initialStates`. + - `action-no-object-binding` (error): a standalone action that declares `locations` but no `objectName` binds to no object, so its button never renders. Set `objectName`, or write `locations: []` for a headless action. + + What was accepted before and is refused at publish now: a flow with an unrouted approval decision or a node type the deployment cannot run, a state machine without `initialStates`, a placed action with no object. The fix for each is in the finding. + + Four post-publish build probes report, as warnings on the publish receipt, what the person will see: `widget_empty_result` (a dashboard card whose real query reads only zeros), `rollup_never_computed` (a roll-up blank on all of the sampled parents that have children, judged inside one organization when the rows carry one), `seed_reference_unresolved` (a sample record the seed loader landed whose reference names no row in the organization that record belongs to, so the reference leads nowhere) and `flow_connector_action_unresolved` (a `connector_action` step naming a connector or action this environment does not serve). Each carries its sentence for the person in every platform locale. `RunBuildProbesOptions` gains `automation`, `packageId` and `seedLanded`; the publish passes the automation engine's connector lookups, the publishing package and its `seedApplied.landed` ids. `ProbeEngine` gains an optional `getSchema`, which names the column a row's organization is stamped in; the roll-up and seed probes judge each row inside that organization. + + New exports: `@objectstack/lint` adds `validateFlowNodeExecutors`, `validateInertObjectDeclarations`, `validateActionObjectBinding`, their finding types, and the rule ids `FLOW_NODE_TYPE_NO_EXECUTOR`, `FLOW_APPROVAL_DECISION_UNROUTED`, `FLOW_HTTP_TIMEOUT_MISSING`, `STATE_MACHINE_NO_INITIAL_STATES`, `ACTION_NO_OBJECT_BINDING`; `@objectstack/metadata-protocol` adds the `ProbeAutomation` and `SeedLandedRows` types; `@objectstack/service-automation` adds `AutomationEngine.getSealedNodeTypeVocabulary()`. `@objectstack/spec` changes only descriptions: those of `RuntimeBuildIssueSchema`, and that of a state machine validation's `initialStates`. +- ad65d82: fix(formula)!: `validateExpression` refuses `==` / `!=` between a list-valued field and a scalar, which answers a constant on every row + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: follow-up #36217 + + <!-- adr-0087: registered cel-list-equality-refused --> + + **BREAKING** accept-set narrowing, shipped as `minor`. CEL compares the whole list with the scalar, so `record.labels == 'frontend'` is `false` for `['frontend', 'qa']` and for `null` alike, and `record.labels != 'frontend'` is always `true`: a condition written that way never fires (or always does), with no fault and no log line. The shared validator accepted it. + + - **The refusal.** `validateExpression` refuses a `==` / `!=` between a read of a list-valued field on `record` / `previous` (`record.f`, `record['f']`, either operand order) — or, at a flattened (flow) condition, its bare name `f`, which the run binds to the trigger record's field, unless a flow variable holds the name or a node can bind names no reader sees — and a non-null string, number or boolean literal, as the new `list-equality` code (params `reference`, `operator`, `operand`, `answer`, `rewrite`), prescribing the null-guarded membership test. + - **Which fields are lists.** A `fieldTypes` entry of an inherently multi-value type (`multiselect`, `checkboxes`, `tags`), or a field named in the new optional `ExprSchemaHint.multiValueFields` — the fields a caller reads as multi-valued through `isMultiValueField` (`@objectstack/spec/data`), which is how a `select` / `radio` / `lookup` / `user` / `file` / `image` field declared `multiple: true` becomes a list here. Absent, such a field is not judged, as before. + - **Who fills it.** The publish lint (`os validate` / `os build`, every CEL site that types the object's fields), the MCP `validate_expression` tool (read off the served definition, `McpDataBridge.servedObjectDefinitionOf`, at the validation / formula / flow-condition sites; a bridge without it answers as before), `registerFlow`'s schema pass (`parseObjectFieldSchema` returns `multiValueFields`; logged, never thrown, like every finding of that pass), the scenario scorer, and Studio's object draft check (field rules, formulas, validation rules; `CelSchemaHint.multiValueFields`). + - **Still accepted.** `S == null` / `S != null` (either side), `'a' in S`, a list compared with a list literal or with another list field, and a comparison whose other operand is not a literal. + + FROM → TO: + + - `record.labels == 'frontend'` → `record.labels != null && 'frontend' in record.labels` + - `record.labels != 'frontend'` → `record.labels == null || !('frontend' in record.labels)` + - at a flow condition, `labels == 'frontend'` → `labels != null && 'frontend' in labels` + + One-line fix: test membership with `in`, null-guarded (`'a' in null` faults); compare the list with `null` to test whether it is set. +- cb5a975: fix(formula): the `list-equality` refusal prescribes a rewrite that works where it is read, and a flow condition is judged only where the run binds a row of the typed object + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: follow-up #36217 + + The two widenings. A flow condition in a flow that no record write or sweep starts (an API, scheduled or trigger-less flow) is no longer refused as `list-equality`, bare or `record.`: that run holds what its entrance handed it, so `labels == 'frontend'` can be correct code there. And `ExprSchemaHint` gains the optional key `filterCompiled`, which tells the validator that the site's source compiles to a query filter. + + The rewrite the refusal prescribes now depends on the site, and is parenthesised whole so it can stand where the comparison stood (`A && (…)`): + + - **A `record.` / `previous.` read evaluated as CEL** (a validation rule, a field rule, a formula, an action's `visible` / `disabled` / `pressed`, a hook condition): + - FROM `record.labels != null && "frontend" in record.labels` + - TO `(has(record.labels) && record.labels != null && "frontend" in record.labels)` + - `has()` answers on a sparse row or a null `previous`, where the old form faulted. + - For `!=` the TO form is `(!has(record.labels) || record.labels == null || !("frontend" in record.labels))`. The old `!=` form, with no parentheses, split under a leading `&&`. + - **A bare name at a flow condition:** + - FROM `labels == null || !("frontend" in labels)` + - TO `(labels == null || !("frontend" in labels))` + - For `==` the TO form is `(labels != null && "frontend" in labels)`. + - **A sharing rule `condition`**, which compiles to a query filter: + - FROM `record.labels != null && "frontend" in record.labels`, which does not lower (`in` needs a field on its left), so the rule was dropped as `sharing-rule-unlowerable-condition`. + - TO `(record.labels != null && record.labels.contains("frontend"))`, which lowers to a membership filter (`$contains`). + - For `!=` the TO form is `(record.labels == null || !record.labels.contains("frontend"))`. + - A number or boolean operand is passed as its text (`contains("3")`). + + One-line fix: write the rewrite the refusal names. + + `registerFlow`'s advisory pass now hands the validator `faultOutcome: 'run-fails'` on a record-triggered flow and on a time-relative sweep of the typed object, the same flows `os validate` declares it on. On those flows its logged type-mismatch lines now use the wording `os validate` prints. It still only logs and never throws. + +### Patch Changes + +- 1d28405: feat(objectql)!: every row a sync-in pull writes records where it came from, and nothing else may write those columns + + Clause-②: no (narrowing) + Metadata-protocol: none + Skills-docs: none (no skills/ page names the `_sync_` columns or the synced bucket's injected columns) + + <!-- adr-0087: not-required (no-migration-prescription) No authorable key is added, removed, renamed or re-shaped, and every metadata document that parsed before parses the same. What changes is the registered shape of a `managedBy: 'synced'` object (five platform columns and one index the platform adds) and the answer a data write gets when it names a `_sync_` column: no authored value has to be rewritten, so there is nothing for a migration to prescribe and no tombstone. --> + + ADR-0153 D4, the provenance half (#32062, slice 5). + + - **Five `_sync_` columns on every `managedBy: 'synced'` object.** `resolveInjectedSystemColumns` (`@objectstack/spec/data`) now plans `_sync_source`, `_sync_external_id`, `_sync_pulled_at`, `_sync_run_id` and `_sync_deleted_at` on that bucket only (`plan.sync`), and the registry injects them as hidden, read-only system columns, with an index on (`organization_id`, `_sync_source`, `_sync_external_id`) placed after the tenant index. New exports: `SYNC_PROVENANCE_COLUMNS`, `SYNC_PROVENANCE_PREFIX`, `SyncProvenanceColumn`, `SYNC_PROVENANCE_FIELD_DEFS`. A synced object that declares `systemFields: false` gets none of them. + - **Both pulls stamp them.** A connector pull and a datasource pull write `_sync_source` (the mapping), `_sync_external_id` (the row's `upsertKey` value as text; a key of several fields is a JSON array of the values in `upsertKey` order, such as `["10","A-1"]`), `_sync_pulled_at` and `_sync_run_id` (the `sys_sync_run` row; not written when no run ledger is composed) on every row. `_sync_deleted_at` exists but stays empty until delete marking (D3) lands. A mapping whose `fieldMapping` targets a `_sync_` column is refused with `400 mapping_target_refused` when it runs (it was refused before as an unknown target). A connector pull whose target object's definition cannot be read is now refused the same way before it calls the connector, instead of writing rows it cannot stamp; the datasource pull already refused it. + - **BREAKING: a `_sync_` column in any other write is refused.** The engine refuses an insert or update naming a `_sync_` key with `400 ERR_SYNC_PROVENANCE_WRITE_REFUSED`, before middleware, defaults and hooks run, whatever the caller's context, `isSystem` included. A `_sync_` key a `beforeInsert` or `beforeUpdate` hook assigns, changes or removes is refused the same way before the driver is called, on any write, the pull's own included, so the pull's stamps are stored exactly as it wrote them. Only the pull's own write is admitted (`markSyncPullWrite`, exported from `@objectstack/objectql` with `SYNC_PULL_WRITE`, `SyncProvenanceWriteRefusedError` and `SYNC_PROVENANCE_WRITE_REFUSED_CODE`). The mark is consumed by that write, so a hook or flow it triggers writes as any other system caller and is refused the same way. Fix: leave the `_sync_` columns out of the write and out of your hooks; the next pull of the mapping stamps them. + - Load-time diagnostics leave the injected `_sync_` columns out when they judge a served synced object, so it is not flagged for the reserved prefix; an author field under a `_sync_` name is still refused. +- 8f49499: fix(approvals): a recall or subflow-parent strand reports the hook refusal that stranded the run + + Clause-②: yes + Metadata-protocol: none + + When an approval decision strands its flow run because the next step was refused (a record hook's declared refusal, a validation rule, a permission), the thrown `RESUME_FAILED` already carries `innerRefusal` and the refusal's marked `userMessage`. Two doors report a stranded run on a success answer instead, through `resumeFailure`: the recall door, whose own resume stranded, and a subflow parent that stranded after the run this door resumed advanced (through `decide` and through `recall`). Those reports carried `code`, `runId`, `status` and `repairable` only, so the approver saw a stranded run with no reason. + + - `ResumeFailureReport` (`@objectstack/spec/contracts`) gains two optional members, `innerRefusal` (`{ code, message }`, the engine's `AutomationResult.innerRefusal`) and `userMessage` (the declared sentence in the language of whoever started the run, since a resumed leg keeps the starter's locale; the authored message when no person started the run). The names and shapes are the ones the thrown `RESUME_FAILED` uses. `innerRefusal` is absent when the strand met no refusal (a fault), and `userMessage` is absent unless the failure carried a marked end-user text, so it can ride alone; neither changes how `code` and `repairable` are read. `ResumeFailureDetailsSchema` is unchanged. On the resume door these members already ride the error envelope. + - `AutomationEngine.takeSubflowParentStrand` now returns the stranded parent's `innerRefusal` / `userMessage` beside `runId`, `repairable` and `error`, read from the parent's own result. + - The approvals recall door and the subflow-parent strand fill both members whenever the strand met a refusal, read the way the thrown `RESUME_FAILED` reads them: an `innerRefusal` whose `code` is outside the registered error codes or whose `message` is not a string, and a blank or non-string `userMessage`, are dropped, so a node that returns a malformed pair answers the same on the success channel as on the thrown one. + + No migration: the change only adds optional members, and a caller that ignores them reads exactly what it read before. +- 806bba8: fix(lint, service-automation): the date-text refusal on a flow value envelope names the rewrite for a record-triggered flow that a parent also starts + + Clause-②: no + Metadata-protocol: none + + A flow with its own record trigger or time-relative sweep gets the date-text check on its value envelopes (`update_record` / `create_record` `fields.*`, `assignment` values). Example: `timestamp(record.borrow_date)` over a `date` field. The check is refused at `os validate` / `os build` and at `registerFlow`. It stays refused when another flow also starts the same flow through a `subflow` or `map` node, because the flow's own trigger hands it a row of the typed object on every run it starts. The set of refused flows does not change. + + The refusal now also says how to share the steps with such a parent. Move the shared steps into a child flow with no trigger of its own, which is judged untyped because its `record` is whatever each caller hands it. Then start that child from both flows. Both doors append the same sentence after the verdict's own fix. The stored pass of `os migrate meta --stored` lists that sentence too. +- 3ce6b65: fix(service-automation): the "invalid expression" registration refusal names the template-braces rule only when a refusal it lists is a brace refusal + + Clause-②: no + Metadata-protocol: none + + Registering a flow whose only refused expression is not about braces — the date-text verdict on `timestamp(record.borrow_date)` over a date field, an unknown function, a `{{ }}` hole over a `$` name the engine does not bind — used to open with the ADR-0032 §1a braces sentence ("Predicates … must not wrap references in `{…}` template braces …"), telling the author about a mistake they did not make. That refusal now opens with a neutral count, `Flow 'X' has N invalid expression(s); each is refused for the reason given with it, and the flow does not register until every one is fixed:`. The braces sentence, unchanged, still heads any list that holds a brace refusal: a `{…}` brace in a CEL slot, a single-brace token in a text slot, a retired `{…}` token in a value slot, or an envelope naming the wrong dialect for its slot. + + Which flows are refused, and every refusal line listed under the header, are unchanged. +- c261a7c: feat(automation): `POST /api/v1/automation/_record-starts` answers which flows a proposed update of one record would start + + Clause-②: yes (widening) — one new public read: the route `POST /api/v1/automation/_record-starts` (`automation.listRecordUpdateStarts` in the API contract and in `@objectstack/client`); `@objectstack/spec/api` adds `RecordUpdateStartsRequestSchema`, `RecordUpdateStartSchema`, `RecordUpdateStartsResponseSchema` and their types; `@objectstack/spec/contracts` adds `RecordUpdateStartsInput` and the optional `IAutomationService.listRecordUpdateStarts`; `@objectstack/spec/automation` adds `recordChangeTriggerHookEvents` and `recordChangeTriggerFiresOnUpdate`; `_record-starts` joins the `/automation` domain's reserved position literals. Nothing existing is removed or re-typed. + Metadata-protocol: added — the three new `@objectstack/spec/api` schemas enter the `api` authorable-surface shard (10 keys: `RecordUpdateStart:name/label/startsApproval`, `RecordUpdateStartsRequest:object/recordId/changes`, `RecordUpdateStartsResponse:success/data/error/meta`); no flow or other metadata key is added + Skills-docs: none — no skill under `skills/**` teaches the console's stage confirms; `content/docs/automation/flows.mdx` gains the read in this change. + + The console's stage confirms now name the flows a move would start (objectstack#35928, ruling record 7073655354). They ask the server: + + - **Request** `{ object, recordId, changes }`; **response** `{ success, data: { flows: [{ name, label, startsApproval }] } }`. + - **Who is answered:** a signed-in caller who can read the record. The record is read as the caller through the `/data` door's own `get`, so a record they cannot read answers `404 RECORD_NOT_FOUND` exactly as an absent one, and the engine is never asked. Anonymous `401`; a malformed body `400 VALIDATION_FAILED`; a `changes` key that is not a declared field of the object `400 VALIDATION_FAILED` on that key, the engine never asked; a read that answers no record `404 RECORD_NOT_FOUND`; any query parameter `400 VALIDATION_ERROR`; an engine without the read `501`. + - **Which flows:** enabled `record_change` flows of the object, armed on their trigger, whose `triggerType` binds an update, and whose start condition holds for the record read with `changes` applied (`previous` is the record read). The condition goes through the engine's one start-condition gate, the one every run passes; the token grammar `@objectstack/trigger-record-change` binds hooks by moved into the spec (`recordChangeTriggerHookEvents`) so the preview reads the same rule, with no second copy. A condition that cannot be evaluated against the record is not listed. Hooks are never listed. + - **Per flow:** `name`, the authored `label` (a client translates it by name) and `startsApproval`, true for a flow holding an `approval` node (ADR-0019). No description, condition or nodes. +- 70194ff: feat(audit): a record's activity stream shows each changed field's old → new values by default, with a new `fieldHistory` off switch on the object and the field, and a reader is served only the changes of fields they may read + + Clause-②: yes (widening) + Metadata-protocol: semantic + + A record's activity stream now shows `Field: old → new` for every changed field, on every object, unless the object or the field turns it off. Before, values showed only for a field that declared `trackHistory: true`. Every other change was named by its field label alone. + + - **New `enable.fieldHistory`, with no default.** Absent: values show. `false`: off for the object, and a change names its fields only. It has no default so that a parsed body never writes one. A built artifact or a stored definition therefore gets values when it is upgraded, with no rebuild. + - **`enable.trackHistory: false` alone no longer turns values off.** The flag keeps its meaning: with `true`, the default record page shows the compliance ledger's field changes to a reader the ledger serves, and the derived `history` API verb is served. To keep an object's activity free of values, write `enable: { fieldHistory: false }`. Every platform object that wrote `trackHistory: false` now also writes `fieldHistory: false`. + - **New field `fieldHistory`, with no default: the field's off switch.** Absent shows the values, `false` names the change without them, `true` shows them (a media or JSON type included). Under an object with `enable.fieldHistory: false`, values stay off whatever a field says. + - **Field `trackHistory: false` no longer means anything: it reads like absent, so the values show.** The field designer wrote it on every save while the key meant nothing, so a stored `false` cannot be told from a choice. `trackHistory: true` keeps one job: it opts a media or JSON field in. A credential field (`secret`, and `password` off better-auth objects) never shows values, because both sides are the same mask. A media or structured-JSON field (`image`, `file`, `avatar`, `video`, `audio`, `signature`, `composite`, `repeater`, `record`, `location`, `address`, `code`, `json`, `vector`) shows them only with an explicit `true` (`fieldHistory` or `trackHistory`). + - **The new field key is classified where every `FieldSchema` key is.** The SQL driver counts `fieldHistory` as a presentation key, so creating a column never reads it. The field-level-security scrub keeps it as written, because a boolean names no field. + - **Who reads a value:** the field-change code (`metadata.summary_message`) is now served to readers. It is narrowed change by change with the same field answer as `metadata.old` and `metadata.new`. A reference field's change is kept only for a reader served the referenced record's title. When a reader is not served some of a summary's changes, the summary is rebuilt from the changes they are served instead of being dropped whole. The full audit ledger is not widened. + - **A long value no longer fails the activity insert.** The stored summary is fitted to `sys_activity.summary`'s `maxLength` (500): each side is cut first, then trailing changes are left out. The code keeps every change, with each side capped at 1,000 characters. + + To keep an object's activity free of values, set `enable: { fieldHistory: false }` on it. For one field, set `fieldHistory: false` on that field; `trackHistory: false` does not turn values off. +- 0a49be3: fix(automation): the stage-change confirm marks a flow that reaches its approval through a subflow + + Clause-②: no + Metadata-protocol: none + + `AutomationEngine.listRecordUpdateStarts` (served at `POST /api/v1/automation/_record-starts`) set `startsApproval` only when the listed flow itself held an approval node, so a flow that starts its approval inside a flow it calls was listed without the mark. The mark now follows the flows a run calls through `subflow` and `map` nodes, at every region depth and with a shared flow name resolved the way the run dispatches it, asking each flow the same one approval test. A call to a flow the engine does not hold, or holds disabled, is not followed, and a flow that calls itself or a cycle of flows ends. +- 695b9db: fix(plugin-security)!: an app-authored elevation's reads and writes are judged by its caller's organization wall + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is the answer a data operation gets when it runs under an action body's, a system hook's or a system flow's elevation, and three schema descriptions that state it: no stored row, registry key or authored value changes, so there is nothing for a migration to rewrite and no tombstone. --> + + The rule: elevation lifts a caller's business rules, never the organization wall. An action body, a hook that runs as system (`runAs: 'system'`, a system context it inherits, its `ctx.api.sudo()`) and a flow that runs as system have their reads and writes judged by the organization wall of the caller they run for (ADR-0095 D1, ADR-0123 D1/D2), under every tenancy posture and on every object, a federated one included. + + **BREAKING** for an action body, a system hook or a system flow run for a signed-in caller. + + - FROM: the elevation, not the caller's organization wall, decided what such a context reached of a tenant-scoped object. + - TO: the caller's own organization wall decides it: + - with no active organization under `isolated`, an empty membership set under `group`, or no membership at all under `single`: its reads of a tenant-scoped object resolve to nothing (zero rows, no error); its delete and purge are answered by that read rule (a predicate delete matches nothing, a by-id delete answers `404 RECORD_NOT_FOUND`); and its other writes (insert, update, transfer, and the recycle bin's restore) are refused with `403 PERMISSION_DENIED`, naming the missing active organization or membership; + - under `group`, a member reads and writes the union of the organizations they hold a membership in, with or without an active organization; + - on a federated object it reads only rows of the caller's organization scope, and a by-id write of a row outside it answers `404 RECORD_NOT_FOUND`, as a row that is not there; + - an insert with no active organization on a walled tenant object is refused with `403 PERMISSION_DENIED`; + - for every caller, an active organization included: a write whose own data names an organization outside the caller's wall, and an update whose own data empties a row's organization, are refused with `403 PERMISSION_DENIED`; + - the check of the row a by-id write names is read inside the transaction the write carries, so a row the body's own transaction wrote is the caller's to write again in it; + - a system flow started by a record change, and every system run whose own user is its caller, carries that user's membership set and posture rung from run setup: under `group` it reads the union of the user's memberships, with or without an active organization. The set and rung are those of run setup: a membership the user gains or loses while the run waits is read by the next run. A decided segment, a run that began for no caller and a child run of either carry neither: a decided segment's caller's facts are resolved for it again. + + **Not moved.** A caller with an active organization keeps exactly that organization's reach. Objects outside tenancy, objects with no organization column, and a platform operator crossing the wall on an object whose posture permits it are answered as the caller's own requests answer them. System work that runs for no caller (a scheduled run, a platform plugin's own system context, the seeders) is unchanged, and so is a system flow that began for no caller after an approval decision: the decider is its attribution user, not its caller. A run that a write of such a segment starts begins for no caller too, and carries neither the writer's membership set nor its posture rung; its trigger user stays the writer, so an approval's submitter exclusion, who may read the run's state, and the run's history answer as before. A run that a write of a decided segment of a run that began for a caller starts begins for the decider, as before. A system flow that began for a caller is judged by that caller after a decision, not by the decider. + + The fix for a caller: select an active organization before running the action, or start the run from a session that has one. A body that must place a row in another organization does so as a member of that organization, through its own request. The `runAs` descriptions of flows and hooks and the `body` description of actions now state this limit beside the other two. + + Also in this change: + - `@objectstack/core` exports `RUN_CALLER`, `markRunCaller` and `runCallerOf`: the server-constructed mark a flow run's data context carries wherever the run's own user is not its caller (a decided segment, a run recorded as begun for no caller in every segment, and a child run of either), naming the user its run began for, or that it began for none. + - `@objectstack/service-automation`: a `runAs: 'system'` run's data context carries the run user's membership set (`accessible_org_ids`) and posture rung, seeded once at run setup; it carries no grants. A run context may record `beganForNoCaller: true`. A run whose own user is not its caller is seeded with neither, and its data context carries neither. + - `@objectstack/objectql`: the hook session of a write made under that mark, for a run that began for no caller, carries it; `@objectstack/trigger-record-change` records that the run such a write fires began for no caller, and keeps the writer as its trigger user. +- 7751753: fix(service-automation): no key a flow condition's scope or a dry run's payload is built from reaches a prototype + + Clause-②: no + Metadata-protocol: none + + The scope a flow's conditions, CEL value envelopes and `{{ }}` text holes read is built so that no variable key reaches a prototype, and the containers the builder creates have none. A variable key with a `__proto__` segment (`__proto__`, `__proto__.x`, `step.__proto__.x`) binds nothing in that scope. A dry run's outbound payload follows the same rule: an authored value-map key with such a segment is not written into the payload, and the payload walk descends through own properties only. + + No CEL spelling read such a key before. Two edges nobody relies on do read differently: a head bound only by such a key (`x` in `x.__proto__.y`) is now unbound instead of an empty map; and a stdlib function that stringifies its argument (`trim`, `joinNonEmpty`, a date coercion) now faults on a builder-made container instead of returning placeholder text for it. + + **Unchanged.** Every other key, dotted keys included: `step.result` still nests, and `step.result`, `vars.step.result` and `vars["$error"]` read as before. `constructor` and `prototype` stay ordinary keys: a variable named `prototype` is still read as `vars["prototype"]`, and a bare `constructor` and `step.prototype` still read. When a dotted key's head names a value the run holds, its tail is still written into that value. The run's variable map itself is untouched. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [8c629b2] +- Updated dependencies [b02484e] +- Updated dependencies [c6558d0] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [cc03bdc] +- Updated dependencies [ef39b2c] +- Updated dependencies [a73edb3] +- Updated dependencies [93fa4f9] +- Updated dependencies [22af9e6] +- Updated dependencies [1c05546] +- Updated dependencies [9fea316] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [5f18b9b] +- Updated dependencies [e6e5224] +- Updated dependencies [94a2d8b] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [d053c7d] +- Updated dependencies [8b550f8] +- Updated dependencies [c809deb] +- Updated dependencies [b68f9ae] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [4db08d5] +- Updated dependencies [c9b3f7a] +- Updated dependencies [01e6af6] +- Updated dependencies [8e46424] +- Updated dependencies [d5ece3e] +- Updated dependencies [2d33205] +- Updated dependencies [f4dbcc2] +- Updated dependencies [d17adf5] +- Updated dependencies [9c29d73] +- Updated dependencies [35c6331] +- Updated dependencies [de395b4] +- Updated dependencies [fe3ebc8] +- Updated dependencies [bf69cb4] +- Updated dependencies [4026c44] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [a6cf988] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [9e65474] +- Updated dependencies [8856afc] +- Updated dependencies [c480f33] +- Updated dependencies [9062756] +- Updated dependencies [65b67be] +- Updated dependencies [1caee8c] +- Updated dependencies [cdb327f] +- Updated dependencies [5cd2b54] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [43639a6] +- Updated dependencies [338ef35] +- Updated dependencies [b863d2b] +- Updated dependencies [ee40658] +- Updated dependencies [89ea9bf] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [8925d5b] +- Updated dependencies [78fd762] +- Updated dependencies [a35187e] +- Updated dependencies [c321914] +- Updated dependencies [07b1754] +- Updated dependencies [61722e9] +- Updated dependencies [37f7814] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [6d0089c] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [819c067] +- Updated dependencies [4890cd0] +- Updated dependencies [c9aad65] +- Updated dependencies [53c9575] +- Updated dependencies [7eaa3f5] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [c59ee99] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [fcbebf2] +- Updated dependencies [986a0f2] +- Updated dependencies [c99156e] +- Updated dependencies [c6b07c2] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [50d6da8] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [7dd1a2f] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [886ba45] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [17ed9e7] +- Updated dependencies [fa30414] +- Updated dependencies [cf7e443] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [a98c077] +- Updated dependencies [236c804] +- Updated dependencies [d71fe59] +- Updated dependencies [c261a7c] +- Updated dependencies [0e91213] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [a5a5312] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6943af1] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [b7fe94a] +- Updated dependencies [011635f] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [d24a502] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [756df0a] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [24ff03c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [c8d4b90] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [9c57bd2] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [92ab056] +- Updated dependencies [b3247dd] +- Updated dependencies [372ce7c] +- Updated dependencies [c059e60] +- Updated dependencies [97f3420] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [852270a] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [bc2aaf1] +- Updated dependencies [4e55e4e] +- Updated dependencies [64b278e] +- Updated dependencies [4101f1f] +- Updated dependencies [695b9db] +- Updated dependencies [6927c3f] +- Updated dependencies [ecd4b2b] +- Updated dependencies [1e692d1] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/objectql@18.7.0 + - @objectstack/metadata-protocol@18.7.0 + - @objectstack/plugin-auth@18.7.0 + - @objectstack/types@18.7.0 + - @objectstack/platform-objects@18.7.0 + - @objectstack/formula@18.7.0 + - @objectstack/core@18.7.0 + - @objectstack/metadata-core@18.7.0 + ## 18.6.0 ### Minor Changes diff --git a/packages/services/service-automation/package.json b/packages/services/service-automation/package.json index 6e9ce50ef61..1524406067d 100644 --- a/packages/services/service-automation/package.json +++ b/packages/services/service-automation/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/service-automation", - "version": "18.6.0", + "version": "18.7.0", "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 e32870e58de..233105ef018 100644 --- a/packages/services/service-cache/CHANGELOG.md +++ b/packages/services/service-cache/CHANGELOG.md @@ -1,5 +1,183 @@ # @objectstack/service-cache +## 18.7.0 + +### Patch Changes + +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/core@18.7.0 + - @objectstack/observability@18.7.0 + - @objectstack/service-cluster@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/services/service-cache/package.json b/packages/services/service-cache/package.json index 917973392fb..4f4c7ebaebe 100644 --- a/packages/services/service-cache/package.json +++ b/packages/services/service-cache/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/service-cache", - "version": "18.6.0", + "version": "18.7.0", "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 1fa19010aa1..075f6c66bff 100644 --- a/packages/services/service-cluster-redis/CHANGELOG.md +++ b/packages/services/service-cluster-redis/CHANGELOG.md @@ -1,5 +1,169 @@ # @objectstack/service-cluster-redis +## 18.7.0 + +### Patch Changes + +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/service-cluster@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/services/service-cluster-redis/package.json b/packages/services/service-cluster-redis/package.json index adb4c18f179..213536082eb 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": "18.6.0", + "version": "18.7.0", "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 ff92b4dd48a..9a4d637e844 100644 --- a/packages/services/service-cluster/CHANGELOG.md +++ b/packages/services/service-cluster/CHANGELOG.md @@ -1,5 +1,181 @@ # @objectstack/service-cluster +## 18.7.0 + +### Patch Changes + +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/core@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/services/service-cluster/package.json b/packages/services/service-cluster/package.json index 8067c05bb0f..f423d66dabc 100644 --- a/packages/services/service-cluster/package.json +++ b/packages/services/service-cluster/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/service-cluster", - "version": "18.6.0", + "version": "18.7.0", "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 695761779b5..a2d8092f2f5 100644 --- a/packages/services/service-datasource/CHANGELOG.md +++ b/packages/services/service-datasource/CHANGELOG.md @@ -1,5 +1,205 @@ # @objectstack/service-external-datasource +## 18.7.0 + +### Patch Changes + +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [895dd43] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [24cc61f] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [65b67be] +- Updated dependencies [1caee8c] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [c0484c8] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [850bcec] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [907b378] +- Updated dependencies [521b4f6] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [9a82465] +- Updated dependencies [ad92dfd] +- Updated dependencies [b572420] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [89ce4fb] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [9c57bd2] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [49c8e0f] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [702b0cf] +- Updated dependencies [372ce7c] +- Updated dependencies [c059e60] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [db9e34a] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/types@18.7.0 + - @objectstack/driver-mongodb@18.7.0 + - @objectstack/core@18.7.0 + - @objectstack/driver-sql@18.7.0 + - @objectstack/driver-turso@18.7.0 + - @objectstack/metadata-core@18.7.0 + - @objectstack/driver-memory@18.7.0 + - @objectstack/driver-sqlite-wasm@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/services/service-datasource/package.json b/packages/services/service-datasource/package.json index 0aff17a257f..f7c77b821e7 100644 --- a/packages/services/service-datasource/package.json +++ b/packages/services/service-datasource/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/service-datasource", - "version": "18.6.0", + "version": "18.7.0", "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 db1d07b6d1f..0f0ae9ec2f7 100644 --- a/packages/services/service-i18n/CHANGELOG.md +++ b/packages/services/service-i18n/CHANGELOG.md @@ -1,5 +1,185 @@ # @objectstack/service-i18n +## 18.7.0 + +### Patch Changes + +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [9c57bd2] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [c059e60] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/types@18.7.0 + - @objectstack/core@18.7.0 + ## 18.6.0 ### Minor Changes diff --git a/packages/services/service-i18n/package.json b/packages/services/service-i18n/package.json index c869ff70726..fc61ab4b968 100644 --- a/packages/services/service-i18n/package.json +++ b/packages/services/service-i18n/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/service-i18n", - "version": "18.6.0", + "version": "18.7.0", "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 f93d6aaf829..b0abbc1e1fb 100644 --- a/packages/services/service-job/CHANGELOG.md +++ b/packages/services/service-job/CHANGELOG.md @@ -1,5 +1,198 @@ # @objectstack/service-job +## 18.7.0 + +### Patch Changes + +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [a73edb3] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [d053c7d] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [c9b3f7a] +- Updated dependencies [01e6af6] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [4026c44] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [89ea9bf] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [17ed9e7] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [a98c077] +- Updated dependencies [236c804] +- Updated dependencies [d71fe59] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [a5a5312] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6943af1] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [24ff03c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [c8d4b90] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [b3247dd] +- Updated dependencies [372ce7c] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [bc2aaf1] +- Updated dependencies [4e55e4e] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/platform-objects@18.7.0 + - @objectstack/core@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/services/service-job/package.json b/packages/services/service-job/package.json index 87b890f75a9..e3200a3523f 100644 --- a/packages/services/service-job/package.json +++ b/packages/services/service-job/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/service-job", - "version": "18.6.0", + "version": "18.7.0", "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 cb70e400048..1e8d2086e4a 100644 --- a/packages/services/service-knowledge/CHANGELOG.md +++ b/packages/services/service-knowledge/CHANGELOG.md @@ -1,5 +1,263 @@ # @objectstack/service-knowledge +## 18.7.0 + +### Patch Changes + +- a73edb3: fix(settings)!: the knowledge settings page and the AI page's embedder section appear only where the knowledge service is mounted + + Clause-②: no (narrowing) — narrowed: on a deployment that does not mount `KnowledgeServicePlugin` (every stock boot), `GET` / `PUT /api/settings/knowledge` and `POST /api/settings/knowledge/test` now answer `404 UNKNOWN_NAMESPACE`, where they served the Knowledge page; a write of an `ai.embedder_*` key (`embedder_provider`, `embedder_api_key`, `embedder_model`, `embedder_base_url`, `embedder_dimensions`, `embedder_batch_size`) now answers `400 UNKNOWN_KEY`, and `POST /api/settings/ai/test_embedder` answers that no handler is registered; the hub list no longer carries `knowledge`, and the Setup sidebar no longer carries `nav_settings_knowledge`. `builtinSettingsManifests` drops `knowledgeSettingsManifest`, and `aiSettingsManifest` drops its embedder section. + Metadata-protocol: none + Skills-docs: none — no skill under `skills/**` teaches the knowledge settings page or the `ai.embedder_*` keys; `skills/objectstack-ai` teaches wiring `KnowledgeServicePlugin`, which is unchanged. + + <!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed, renamed or re-shaped: settings manifests are runtime registrations, not authorable metadata. The moved answers are settings doors that a deployment without the knowledge service no longer serves; a deployment that mounts it serves them exactly as before, and stored rows are untouched, so there is nothing for a migration to rewrite. --> + + **BREAKING** for a deployment that does not mount the knowledge service: the knowledge base is not a default capability, so its settings are no longer offered by default. The Knowledge page, the AI page's Embedder section, their "Test connection" / "Test embedder" buttons and the Setup entry are now contributed by `@objectstack/service-knowledge` when `KnowledgeServicePlugin` is mounted beside `SettingsServicePlugin`, and only then. Values already stored under `knowledge.*` or `ai.embedder_*` stay in the database and are served again as soon as the service is mounted. + + The AI page's description no longer names the knowledge base, in every bundled locale. + + `@objectstack/service-settings` now exports `knowledgeSettingsManifest`, `knowledgeTestActionHandler`, `aiSettingsManifest`, `aiEmbedderSettingsSpecifiers`, `withAiEmbedderSection` and `aiTestEmbedderActionHandler` from its package entry, and its default `actionHandlers` map no longer registers `knowledge.test` or `ai.test_embedder`. `@objectstack/service-knowledge` depends on `@objectstack/service-settings` and declares the settings plugin in `optionalDependencies`, so the kernel inits it first. + + What to do: nothing, unless you configure an embedder or a knowledge backend from Setup. Then mount `KnowledgeServicePlugin` from `@objectstack/service-knowledge` (with a knowledge adapter plugin) beside `SettingsServicePlugin`; the page, the embedder section and the Setup entry come back with it. A host that passed its own `ai` manifest to `SettingsServicePlugin({ manifests })` adds `aiEmbedderSettingsSpecifiers` to it (or wraps it with `withAiEmbedderSection`) to keep the embedder keys. The embedder section joins only the bundled `ai` page, recognised as that very declaration; a host's own `ai` page (or one served through an option source) is left as it is, and the plugin logs a warning saying so. A host that passes its own `actionHandlers` to `SettingsServicePlugin` keeps a `knowledge` entry there only beside the knowledge manifest: without it the settings plugin refuses to register the handler for an unknown namespace at boot. + + Stored credentials: on a deployment that does not mount the knowledge service, `ai.embedder_api_key`, `knowledge.turso_auth_token` and `knowledge.ragflow_api_key` stay stored (as `sys_secret` handles) but no settings door serves, edits or clears them, and the AI page's reset clears declared keys only. To remove them, mount `KnowledgeServicePlugin` once and clear the keys from Setup, or delete their rows from `sys_platform_setting` (the `knowledge` namespace and the `ai.embedder_*` keys) and the `sys_secret` rows whose `id` those rows hold in `value_enc` (a `sec_` handle); until then the `sys_secret` orphan report may list them. +- 8aecf6d: feat(mcp,service-knowledge): the MCP door serves `search_knowledge`, and a skill MCP withholds is no longer withheld in silence + + Clause-②: yes + Metadata-protocol: none + + **`search_knowledge` over MCP.** An app that mounts the knowledge service (`KnowledgeServicePlugin`) now has its knowledge sources searchable from any MCP client: `tools/list` lists `search_knowledge` wherever the kernel holds a `knowledge` service and the connection's grant reaches the read family (`data:read`, or an API key or session, which carry no OAuth grant). Before, no MCP connection served a knowledge tool, so a BYO-AI client could not reach an app's knowledge base at all, and every skill whose `tools` named `search_knowledge` was dropped from `prompts/list`. + + - **One definition, one executor (ADR-0149 D2).** `@objectstack/service-knowledge` exports the tool's `AIToolDefinition` (`getKnowledgeToolDefinitions`) and its executor (`createKnowledgeTools`, also `KnowledgeService.knowledgeTools()`). The MCP door registers the definition as the service hands it over, on HTTP and on stdio, and holds no copy of its description or argument schema. Arguments: `query` (required), `sourceIds` (at least one id; omit it to search every source, and an empty list is refused `VALIDATION_ERROR` rather than answered with no passage), `topK` (1 to 20, default 5); any other key is refused before the search runs. + - **As the caller.** Each call runs with the caller's execution context, and the knowledge service re-checks every passage indexed from a record against the caller's row-level security; on an OAuth connection that is the delegating person's own reach. + - **Only `aiExposed` sources.** The tool searches only the sources whose `aiExposed` is not `false`, and refuses a `sourceIds` entry naming any other source with `NOT_FOUND` and the sentence an unknown id gets, so an agent never learns a withheld source exists. `IKnowledgeService.search` itself is unchanged: it still searches a source its caller names explicitly, because it also serves platform callers that are not agents. + - `MCP_DOOR_TOOL_NAMES` (`@objectstack/spec/system`) lists `search_knowledge`, so `os lint` resolves it for a skill offered over MCP, as it already did through the platform registry. + + **A withheld skill is said, twice.** + + - **Authoring time.** The `ai-skill-tool-unresolved` rule gains a verdict for a skill MCP would offer as a prompt (`instructions`, not `mcpPrompt: false`, not `active: false`) whose `tools` names one of the `ask` product's data tools no MCP connection serves (`aggregate_data`, `query_data`, `visualize_data`): the name resolves, but MCP withholds the skill from every `prompts/list`, and the warning names the tool. Fix: bind tools both doors serve, or set `mcpPrompt: false` on a skill written for the in-product agents. + - **Runtime.** On the HTTP door, each `prompts/list` that withholds a skill logs one `debug` line naming the skill and each bound tool the connection does not serve. +- 7abf25f: fix(service-knowledge): knowledge search asks the object's API exposure and the caller's field-level read rules before it searches a source + + Clause-②: no + Metadata-protocol: none + + A knowledge passage is built at index time, under a system context, from every `contentFields` member of its source, the record `title` and the source's `metadataFields`. Knowledge search re-checked only that the caller may read each hit's row, so a caller who could read a row but not one of those fields was served that field's text, and an object the API does not serve was served as passages. `KnowledgeService.search` now decides, for a non-system caller and once per object per search, whether each `object` source may be searched at all: + + - the object's owning package is not disabled; + - the spec's exposure decision serves the object for the `search` operation (`enable.apiEnabled: false`, or an `enable.apiMethods` whitelist that does not grant `search`, refuses); + - a `sys_*` object declares `enable.aiReadable: true`; + - every field the source serves (each `contentFields` member, `'*'` meaning every declared field except `id`; each `metadataFields` member; `title`), less the credential-class and `internal` fields an index never carries, is one the caller may query, per the `security` service's `getQueryableFields` (absent it, `getReadableFields` less every field declaring a `maskingRule`; with no `security` service, every field except those declaring a `maskingRule`). + + A source that fails any gate is not searched for that caller. Every gate fails closed: a lookup that throws, or a `security` service that answers neither field question, keeps the source out. `KnowledgeServicePlugin` wires the `security` service, resolved per search: a missing answer or the kernel's not-registered refusal reads as "no security service"; any other throw from that lookup (a registration that cannot be used) refuses the sources, reported at `error` once per object per search. A host constructing `KnowledgeService` directly passes it as the new optional `resolveSecurity` option. The system context bypasses the gates, as it bypasses the row re-check. + + Three adjacent holes close with it. A caller with no execution context, or a service with no data engine bound, is now searched no `object` source at all, where before an object-source hit carrying no `sourceRecordId` was served to it. An admitted object source's hit with no `sourceRecordId` cannot be re-checked and is dropped. `KnowledgeService.search` drops a hit whose reported `sourceId` names another source than the one searched; it sees only what an adapter reports. + + **Narrowing for restricted callers.** A caller who may read a source's rows but not one of the fields the source serves now gets no hits from that source, where before it got passages carrying that field's text. A caller of an `apiEnabled: false` object, of an object whose `apiMethods` do not grant `search`, of a disabled package's object, or of a `sys_*` object without `enable.aiReadable: true` now gets no hits from its sources. No metadata key changes. To keep a source searchable for restricted callers, declare its `contentFields` / `metadataFields` from fields every intended reader may query and move sensitive fields into a separate source. +- eec6fb3: fix(service-knowledge): record-change sync honours the source `where`, and a restored record re-enters the index + + Clause-②: no + Metadata-protocol: none + + An `object` knowledge source's `where` (for example `{ status: 'published' }`) was applied only by `reindexSource`. On a record change the sync built the document straight from the event payload, so a draft was indexed, a record that stopped matching stayed searchable with its old text, and a record restored from the recycle bin never came back into the index. + + - **The database decides membership on the event path too.** For a created, updated or restored record, with a data engine bound, each source now re-reads the row under the system context with `where AND id`, one row. A row comes back: the document is built from that row, through the same field rules as a reindex (the fields the source lists and the record `title`, never a credential-class or `internal` field). No row comes back: the record's document is deleted. A write result that omits a field no longer leaves the document short. + - **`data.record.restored` is synced** through the same path, so a restored record is searchable again only if it matches the source. + - **No data engine bound:** a source without `where` still builds from the event payload; a source with `where` is not synced, and the service says so once per source at `warn`. + - **One document at a time.** Syncs of the same document run one after another in the process, so two opposite events for one record end with the index agreeing with the database. A write's sync can wait behind an earlier in-flight sync of the same document. + - The sync runs before the write's unit of work commits (it re-reads inside the same transaction). A rolled-back write leaves the index wrong until the record's next event or a `reindexSource`, in one of two ways: if the uncommitted row matched, the document stays built from a row that never committed; if it did not match, the document was deleted, so the committed row, which may still match, is missing from the index. Bulk `data.records.*` events are still not synced. `content/docs/protocol/knowledge.mdx` states both. + + Nothing to change in an app: the same `where` now holds on both paths. +- bee9b68: fix(service-knowledge): `reindexSource` reads and indexes an object source one page at a time + + Clause-②: no + Metadata-protocol: none + + `reindexSource` read the whole object in one `find` with no `limit` and pushed every document to the adapter in one `upsert`, so reindexing a large object could exhaust memory or exceed the adapter's request budget. + + - **Paged by id.** The walk reads at most 100 rows per `find`, ordered by `id`, each page continuing after the last id of the one before (`where AND id > cursor`), and upserts each page in its own adapter call before reading the next. Every `find` now carries a `limit`, and no `upsert` holds more than one page. Each row goes through the same field rules as the record-change sync. Only an empty page ends the walk: a page that comes back short (an `afterFind` hook may drop rows) is followed by the next one. + - **`limit` still caps the total** number of rows a reindex takes; the last page is shortened to it. A fractional `limit` is rounded down; a negative or non-finite one is refused with `ok: false` and nothing is read. + - **`dryRun` asks `count`** under the source's `where` instead of reading rows, and reports that count, capped by `limit`. + - **A failed page ends the run with `ok: false`** instead of a thrown error. The `message` names the page and the id it continued after; `discovered` and `indexed` count the pages done before it, which stay in the index. A page whose last row has no id, or an engine that does not honour the id condition, also ends the run with `ok: false` instead of looping. + - **Reindexes of one source wait for each other** in a process: a second `reindexSource` of the same source starts only after the first has finished, so the two never interleave. Different sources still reindex concurrently. Record-change syncs do not wait for a reindex: a record updated or deleted between a page's read and that page's upsert is written back from the older read, and a deleted record's document then stays until the index purge (#37096). + - A reindex removes no documents: those of records that no longer exist or no longer match stay until the index purge (#37096). The bulk-write warning and `content/docs/protocol/knowledge.mdx` now say so instead of recommending a reindex to repair a predicate delete. + + Nothing to change in an app. A caller that caught a thrown error from `reindexSource` should read `ok` and `message` on the result instead. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [a73edb3] +- Updated dependencies [37e7fdf] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/service-settings@18.7.0 + - @objectstack/core@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/services/service-knowledge/package.json b/packages/services/service-knowledge/package.json index 135ce83fc86..9cd2b101fd2 100644 --- a/packages/services/service-knowledge/package.json +++ b/packages/services/service-knowledge/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/service-knowledge", - "version": "18.6.0", + "version": "18.7.0", "license": "Apache-2.0", "description": "Knowledge Service for ObjectStack — orchestrator implementing IKnowledgeService over pluggable IKnowledgeAdapter backends (RAGFlow, LlamaIndex, Dify, in-memory).", "type": "module", diff --git a/packages/services/service-mailbox/CHANGELOG.md b/packages/services/service-mailbox/CHANGELOG.md index fe4a9d3c46d..4149a06432f 100644 --- a/packages/services/service-mailbox/CHANGELOG.md +++ b/packages/services/service-mailbox/CHANGELOG.md @@ -1,5 +1,203 @@ # @objectstack/service-mailbox +## 18.7.0 + +### Patch Changes + +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [a73edb3] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [d053c7d] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [c9b3f7a] +- Updated dependencies [01e6af6] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [4026c44] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [89ea9bf] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [17ed9e7] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [a98c077] +- Updated dependencies [236c804] +- Updated dependencies [d71fe59] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [a5a5312] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6943af1] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [24ff03c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [c8d4b90] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [9c57bd2] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [b3247dd] +- Updated dependencies [372ce7c] +- Updated dependencies [c059e60] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [bc2aaf1] +- Updated dependencies [4e55e4e] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/types@18.7.0 + - @objectstack/platform-objects@18.7.0 + - @objectstack/core@18.7.0 + - @objectstack/connector-imap@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/services/service-mailbox/package.json b/packages/services/service-mailbox/package.json index 83b510d903d..02f3a9d59ed 100644 --- a/packages/services/service-mailbox/package.json +++ b/packages/services/service-mailbox/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/service-mailbox", - "version": "18.6.0", + "version": "18.7.0", "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 9f226dc3c25..72ea7334808 100644 --- a/packages/services/service-messaging/CHANGELOG.md +++ b/packages/services/service-messaging/CHANGELOG.md @@ -1,5 +1,360 @@ # @objectstack/service-messaging +## 18.7.0 + +### Minor Changes + +- 8e46424: Clause-②: yes (widening) + Metadata-protocol: added + + feat(messaging): Slack DM delivery — a `slack` channel, a per-person link store, approval requests by DM + + An organization can now receive notifications in Slack, as direct messages to each person who connected their own Slack user (ADR-0013 addendum of 2026-11-19, step 2 of #34730). + + - **The install.** An organization administrator (`setup.write` in their current organization) installs the organization's own Slack app with `PUT /api/v1/messaging/slack/account` `{ token }`. Slack proves the bot token (`auth.test`) before it is saved. The app's bot token needs the scopes `chat:write`, `im:write`, `users:read` and `users:read.email` (the methods called are `auth.test`, `users.lookupByEmail`, `conversations.open` and `chat.postMessage`); `auth.test` does not check scopes, so an app without `users:read.email` installs and every proposal then answers 502. The token is kept in `sys_channel_account.bot_token`, a `secret` field: encrypted at rest by the host's `ICryptoProvider`, masked on every read, never returned by any route, and read only by the server when it calls Slack. `GET` and `DELETE` on the same route read and remove the install. + - **A person's link.** `POST /api/v1/messaging/me/slack-link/proposal` proposes a link by the person's email (Slack `users.lookupByEmail`); it delivers nothing until the person confirms it with `POST /api/v1/messaging/me/slack-link/confirm`. A Slack link is proposed only for a verified email and names no one before it is confirmed. `GET` and `DELETE /api/v1/messaging/me/slack-link` read and remove it. An administrator lists links with `GET /api/v1/messaging/slack/links` and removes one with `DELETE /api/v1/messaging/slack/links/:id`; the person is told by inbox and e-mail (topic `messaging.slack_link_removed`) and may link again. A link goes when the person is deleted, banned, or leaves the organization. Links are `sys_channel_user_link` rows; every write names who acted, so the platform's write audit records each one. + - **The channel, only where connector-slack is composed.** `slack` is registered beside inbox, email, sms and push only on a composition where connector-slack's `slack` client service resolves at boot: `ConnectorSlackPlugin` now registers that service, which sends with a caller-held token. On such a composition, and only there, the `/automation` save doors accept `slack` on a `notify` node, and `GET /api/v1/messaging/preference-options` and `GET /api/v1/messaging/me/preferences` list `slack` as a channel. A `notify` node naming `slack` delivers only where connector-slack is composed, the organization installed Slack and the recipient confirmed a link. Without connector-slack, those doors answer as before: a `notify` node naming `slack` is refused 400, and neither preference door lists it. It sends `conversations.open` then `chat.postMessage` with the notification's title linked to its deep link, made absolute under `OS_AUTH_URL` / `OS_BASE_URL`. Preferences, digest and quiet hours apply as on every channel. A recipient with no confirmed link is skipped before any delivery row is written, so nothing is dead-lettered for them; a refused token stops delivery on that install until an administrator sets it again; a rate limit is retried. + - **Approval requests.** `approval.requested` also asks for `slack`, beside inbox and e-mail, only while the `slack` channel is registered and mounted (connector-slack composed). + - `MessagingChannel` gains an optional `reachableRecipients(ctx, { organizationId, recipients })`, consulted once per channel per emit after preferences. A channel without it reaches every recipient, as before. + - `PLATFORM_OBJECTS_BY_PACKAGE['service-messaging']` lists `sys_channel_account` and `sys_channel_user_link`, and the organization ownership inventory gives both a row. + +### Patch Changes + +- c9b3f7a: feat(account): a Notification Settings page where each person chooses their own notification topics, channels, digest and quiet hours + + Clause-②: yes + Metadata-protocol: none + + The Account app has a new **Notification Settings** page, under Inbox and only when the messaging service runs. It shows one row per notification topic and one column per channel. Each cell shows whether that notification reaches you on that channel, and where the answer comes from: your own setting, your organization's default, the built-in default, or a mandatory topic. Mandatory topics are always delivered and cannot be switched off. A channel the deployment cannot send on yet says so in its column header. Above the matrix you can set your digest and your quiet hours. + + - **The read: `GET /api/v1/messaging/me/preferences`.** This new door answers the signed-in person's *effective* preferences. The server computes them with the same resolver `emit` uses to filter (`PreferenceResolver.effectiveFor`), so the page shows what is actually sent and computes nothing itself. The door takes no parameters and answers only about the caller: there is no `user` parameter, and any parameter is refused `VALIDATION_ERROR` / `400`. It keeps the posture of `GET /api/v1/messaging/preference-options`: + - an anonymous caller gets `401`; + - a held sign-in gets `403`; + - a source it cannot read is `500` / `INTERNAL_ERROR`, never a partial or "everything on" answer. + + The door reads only what the answer needs: the caller's own rows and the organization's default rows, each by equality on `user_id` within the caller's organization. A read that comes back with more rows than its cap is a fault (`500`), never a page. + + The organization's defaults appear only as `source: 'default'` on the caller's own cells. No other person's row, and no row id except the caller's own, is ever answered. + - **The writes: your own `sys_notification_preference` rows, through the data door, as you.** `member_default`, the baseline set every signed-in person resolves (external members excepted), now carries a grant of read, create and edit on the object, with no delete. Two row policies come with it: + - `sys_notification_preference_self` binds every principal that holds the grant. Its row scope is `user_id == current_user.id`, and its write check is the same expression, so the row as written must still be your own. + - `sys_notification_preference_org_admin` widens organization owners and administrators back to every row of their organization. Its write check is `topic != null`, which holds on every row being created because `topic` is required with a default. If `topic` ever becomes optional, an administrator's create is refused, never widened. + + An ordinary member or a delegated administrator lists only their own rows. Their create with `user_id` omitted, empty or naming another person is refused `403` / `PERMISSION_DENIED`, as is moving their own row to another person or to the organization default. + - **Owners and administrators are unchanged.** They still list every row, create and edit the organization default, create and edit another person's row, and delete in the Setup grid. + - **App-authored grants are narrowed too.** `sys_notification_preference_self` carries no `positions` domain, so it binds every principal that holds a grant on this object, including through an app's own permission set. A role other than organization owner or administrator that an app grants this object reads and writes only its own rows, unless the app declares its own widening policy for that role. + + There is no "reset to the organization's default" button, because that needs a delete, which members are not granted. Changing your digest or quiet hours saves your own general setting, and the page says so beside the control. From then on, that setting applies in place of the organization's defaults to every topic and channel you have not set yourself. +- 01e6af6: Clause-②: no + Metadata-protocol: none + + feat(messaging): Setup lists the Slack page where connector-slack is composed + + - **Setup › Integrations › Slack.** Where connector-slack is composed, Setup now lists a Slack entry under Integrations. It opens the console's Slack page (`messaging:slack`), where an organization administrator installs or replaces the organization's Slack token, removes the install, and reviews or removes each member's Slack link. The entry asks `setup.write`, the capability every Slack administrator door asks. `MessagingServicePlugin` registers it in the same `kernel:ready` hook, and on the same condition, as the `slack` channel. Without connector-slack, Setup lists no Slack entry. The label is translated in every locale the platform ships. The bundle is exported as `SLACK_SETUP_UI_BUNDLE`, with `SLACK_SETUP_COMPONENT_REF`. + - **The Slack link removal topic, on every deployment.** `GET /api/v1/messaging/preference-options` and `GET /api/v1/messaging/me/preferences` list the topic `messaging.slack_link_removed` on every deployment, including one without connector-slack. It is emitted only where connector-slack is composed, when an administrator removes a person's Slack link or removes the organization's Slack install. +- fd471d3: fix(messaging): a member's own "no digest" or "no quiet hours" now beats the organization's default + + Clause-②: no + Metadata-protocol: none + + A member who chooses no digest, or clears their quiet hours, now keeps that choice even when the organization's default sets a digest or quiet hours. The organization's default is a default, not a floor. Before this release the member still got the organization's digest and quiet hours. + + - **Three states per field.** A notification preference's `digest` and `quiet_hours` are each one of: not set (empty), explicitly off, or a value. The most specific preference that sets the field decides it. A preference that leaves a field empty decides nothing for that field, so it keeps following the next preference: the default for all users, then none. Explicit off is `none` for the digest and `{ "off": true }` for quiet hours. An organization default that is explicitly off is the same as no default. After an explicit "no quiet hours", the member's digest still lands at midnight in the time zone of the organization's quiet-hours window (the next preference that holds one), or UTC when none does. + - **`digest` has no default value any more.** A preference created without a digest stores it empty, so it follows the organization's default. On a database created by an earlier release, the `digest` column still carries the old database default `none`. The messaging service writes an explicit empty digest on every insert that leaves it out, so the database default never applies. A write that skips the platform's engine (raw SQL, a bulk load straight into the table) still stores `none` on such a database. That stored `none` now means "no digest". + - **Stored rows keep their meaning.** On the first start of this release, every stored `digest = 'none'` is rewritten to empty, in every organization, once. The pass is recorded in `sys_migration` (`messaging-preference-digest-none-unset`) and never runs again, so a `none` chosen after the upgrade is kept. A stored `none` never took effect before, so no one's digest changes at upgrade. If you picked "none" by hand in Setup > Notification Preferences to opt out, pick it again after upgrading. + - **The Notification Settings page offers the opt-out.** "No digest" is always offered and saves `none`. Clearing the quiet-hours window and saving stores `{ "off": true }`. The two notes saying these choices were not offered are gone, in all 11 languages. +- 4a1919d: fix(messaging): the preference filter reads every preference row of a topic, not an unordered first 10,000 + + Clause-②: no + Metadata-protocol: none + + When a notification is sent, the preference filter reads the organization's preference rows for the event's topic and for the `*` topic. Each was one read capped at 10,000 rows with no order, so in an organization holding more rows than that for one topic, an undefined subset was left out, and a recipient whose own opt-out, digest or quiet hours fell in it was notified as though the row did not exist. Each topic is now read to the end in pages of 1,000 rows ordered by `id`, each page starting after the last `id` of the one before, and only the recipients' rows and the organization's default are kept. A read that cannot move past a full page is refused rather than used, and the filter then delivers on every channel and logs a warning, as it already did for any failed preference read. + + No exported type, option or signature changes. +- 99ece3c: fix(i18n): an approval step label and an approval notification's object label read as the metadata translators serve them + + Clause-②: yes (widening) + Metadata-protocol: none + + In a deployment whose `i18n.sourceLocale` differs from its `i18n.defaultLocale` (an app authored in English that defaults its users to Chinese), an English reader was shown the Chinese approval step name, and an English approval-notification recipient read the Chinese object name inside an English sentence. Both labels were read through `II18nService.t()`, which falls back to the `defaultLocale` row; `/meta` serves the authored text. Both now resolve the way the metadata route resolves a label: the reader's negotiated locale, the declared fallback chain, and the authored language (the declared `sourceLocale`, else `defaultLocale`). + + - **`@objectstack/spec`** adds `resolveFlowApprovalStepLabel(bundle, flowName, nodeId, literal?, opts?)` (`@objectstack/spec/system`), the one reading of `flows.<flow>.approvals.<node_id>.label`: the requested locale, then the declared fallback chain (skipped for the authored locale), then `literal`. It takes the flow's name and the node's id, so a reader holding only an approval request row needs no flow document. + - **`@objectstack/service-messaging`** accepts a new `NotificationTextKeys.params` value, `{ object: '<object API name>', fallback }` (`NotificationObjectLabelParam`): the label of that object in the recipient's language, resolved as `GET /meta/object/:name` serves it, by `translateObject` over the object's served definition and its packaged base, so a renamed packaged object is named by its rename. It renders the same way on the inline fan-out, the dispatcher (digests included) and the inbox reader. `fallback` is delivered when nothing resolves. The `{ key, fallback }` value is still accepted and still renders through `t()`, so stored deliveries and inbox rows render as before. + - **`@objectstack/plugin-approvals`** names a notification's object with that typed param, and reads the approval step label through `resolveFlowApprovalStepLabel`, so `t()` carries catalog sentences only. + + Upgrade `@objectstack/plugin-approvals` and `@objectstack/service-messaging` together: an older messaging service refuses the typed param at `emit()`. +- 16a96ac: feat(rest): Change Owner endpoint — hand one record or a list of records to another owner, on objects that offer the action + + Clause-②: yes (widening) + Metadata-protocol: none + + Two new doors under the data surface, both run as the caller: + + - `POST /api/v1/data/:object/:id/change-owner` with `{ ownerId | queue, notify? }` hands one record to a person or moves it to an ownership queue (ADR-0142), and answers the record's new owner. + - `POST /api/v1/data/:object/change-owner` with `{ ids, ownerId | queue, notify? }` does the same for up to 500 records, one update per record, and answers a per-row report that lists every record that did not move with its code and sentence. + + An object offers Change Owner when the platform gives it a reassignable owner and its `userActions.transfer` switch is on (on by default, off on a `controlled_by_parent` detail). Any other object is refused as a whole, `403 CHANGE_OWNER_DISABLED`, whoever asks — a holder of `modifyAllRecords` included. The switch gates this action only: a plain `owner_id` update still needs the transfer grant and nothing else, so imports and hooks are unaffected. On an object that offers it, each record moves through the ordinary write path, so the caller needs edit on the record and the transfer grant (`allowTransfer` or `modifyAllRecords`); without the grant the record keeps its owner and the answer is the data door's own `403 PERMISSION_DENIED`. `notify: true` sends the new owner one notification under the `record.owner_changed` topic, its title keyed so it renders in the new owner's own language (English when no entry renders). + + `@objectstack/core` exports `changeRecordOwner`, `changeRecordsOwner`, `changeOwnerOffReason`, `changeOwnerOffRefusal`, `CHANGE_OWNER_DISABLED`, `CHANGE_OWNER_NOTIFICATION_TOPIC`, `CHANGE_OWNER_NOTIFICATION_TEXT` and `assertAssignableUser` (the assigned-work hand-over's target check, now shared). That check now reads the target user the way the write path reads a user reference: a user the caller cannot read answers as one that does not exist (`404`, `reference_not_found`), on Change Owner and on the hand-over alike. `@objectstack/client` adds `data.changeOwner` and `data.changeOwnerMany`. `@objectstack/spec` registers `CHANGE_OWNER_DISABLED` in the error-code ledger, and the `userActions.transfer` liveness row is now `live`. `@objectstack/service-messaging` lists `record.owner_changed` among the platform's notification topics and carries the notice's title in every shipped locale (`messages.recordOwnerChangedTitle`, `messages.recordsOwnerChangedTitle`). +- eb9f8ed: perf(service-messaging): the inbox feed's receipt window read is served by an index + + Clause-②: no + Metadata-protocol: none + + The Console bell polls a user's `sys_notification_receipt` rows on the `inbox` channel every 10 seconds, newest first, top 20. The table had no key that leads on `user_id` and `channel` and continues with `created_at`, so each poll collected and sorted the user's whole receipt history. It now declares `(user_id, channel, created_at)` beside its two existing indexes. + + Measured on SQLite with 56,000 receipts: the read went from about 3 ms to 0.1 ms for a user with 5,000 inbox receipts, and from about 2 ms to 0.1 ms for a user with 3,000 older ones. The plan changes from sorting the user's whole range to searching the new index and stopping at the window. + + On existing databases the next boot creates the index. On PostgreSQL it is built concurrently, because the table already exists. On MySQL it is created where `user_id` and `channel` are already `varchar`, which holds for receipt tables created since those columns declared their bounds. On an older receipt table, the existing `(user_id, state)` index is already refused, so nothing changes there. + + The matching `(user_id, created_at)` index on `sys_inbox_message` is deferred: on existing MySQL tables `user_id` is stored as `TEXT`, which MySQL cannot index, and schema sync never rewrites a column type. +- 00ae570: feat(plugin-audit): a reply in a comment thread notifies the thread's starter and the people who replied in it before + + Clause-②: yes (widening) — `@objectstack/plugin-audit` emits a new notification topic, `collab.reply` (inbox and e-mail), and loads three new `messages.*` keys (`repliedToYourComment`, `repliedInYourThread`, `repliedAnonymous`) in all eleven locales into the host i18n service; `@objectstack/service-messaging` offers `collab.reply` in its platform topic list; nothing removed or refused + Metadata-protocol: none + + Before, only an `@mention` notified anyone about a comment. Someone who started a thread, or replied in it, heard nothing when another person answered. + + - **Who is notified.** When a comment is written as a reply (`parent_id` set), the writer finds the thread: it follows `parent_id` up to the top-level comment (whose author is the starter), then reads every distinct author of a reply to that comment in one grouped query (`author_id … WHERE parent_id = ? GROUP BY author_id`). Each of them is notified, except the reply's author and anyone this reply mentions (they get the mention notification, not two). + - **Who is not.** Each participant passes the same recipient gate as a mention: they are notified only when they can read the record and the reply itself, judged with their own permissions. A starter who has since lost access to the record gets nothing. Editing a reply, or writing a top-level comment, notifies no participant. + - **What arrives.** A new topic, `collab.reply`, through the same `messaging.emit` ingress as `collab.mention`: an inbox notice per reply and person, and an e-mail with the comment preview and a link that opens the record. The title says who replied, in the recipient's language: "Bob replied to your comment" for the starter, "Bob replied in a comment thread you are in" for the others. The e-mail templates are the mention e-mail's, registered under `collab.reply` in every catalog locale. + - **E-mail rate.** At most one reply e-mail per person per 10-minute window, the mention e-mail's window under its own key. In one window a person can therefore get one mention e-mail and one reply e-mail. Inbox notices are not limited. + - **Preferences.** Nothing new to set. A `sys_notification_preference` row `(collab.reply, email, enabled: false)`, or `(*, email)`, mutes the reply e-mail and keeps the inbox notice, as for any topic. + - **The topic list offers it.** `@objectstack/service-messaging` lists `collab.reply` among the platform's fixed topics (`PLATFORM_NOTIFICATION_TOPICS`), so `GET /api/v1/messaging/preference-options` offers it in the preference and template topic pickers even in an organization that has not received a reply notice yet. + + Mention notifications are unchanged. +- 70194ff: feat(audit): a record's activity stream shows each changed field's old → new values by default, with a new `fieldHistory` off switch on the object and the field, and a reader is served only the changes of fields they may read + + Clause-②: yes (widening) + Metadata-protocol: semantic + + A record's activity stream now shows `Field: old → new` for every changed field, on every object, unless the object or the field turns it off. Before, values showed only for a field that declared `trackHistory: true`. Every other change was named by its field label alone. + + - **New `enable.fieldHistory`, with no default.** Absent: values show. `false`: off for the object, and a change names its fields only. It has no default so that a parsed body never writes one. A built artifact or a stored definition therefore gets values when it is upgraded, with no rebuild. + - **`enable.trackHistory: false` alone no longer turns values off.** The flag keeps its meaning: with `true`, the default record page shows the compliance ledger's field changes to a reader the ledger serves, and the derived `history` API verb is served. To keep an object's activity free of values, write `enable: { fieldHistory: false }`. Every platform object that wrote `trackHistory: false` now also writes `fieldHistory: false`. + - **New field `fieldHistory`, with no default: the field's off switch.** Absent shows the values, `false` names the change without them, `true` shows them (a media or JSON type included). Under an object with `enable.fieldHistory: false`, values stay off whatever a field says. + - **Field `trackHistory: false` no longer means anything: it reads like absent, so the values show.** The field designer wrote it on every save while the key meant nothing, so a stored `false` cannot be told from a choice. `trackHistory: true` keeps one job: it opts a media or JSON field in. A credential field (`secret`, and `password` off better-auth objects) never shows values, because both sides are the same mask. A media or structured-JSON field (`image`, `file`, `avatar`, `video`, `audio`, `signature`, `composite`, `repeater`, `record`, `location`, `address`, `code`, `json`, `vector`) shows them only with an explicit `true` (`fieldHistory` or `trackHistory`). + - **The new field key is classified where every `FieldSchema` key is.** The SQL driver counts `fieldHistory` as a presentation key, so creating a column never reads it. The field-level-security scrub keeps it as written, because a boolean names no field. + - **Who reads a value:** the field-change code (`metadata.summary_message`) is now served to readers. It is narrowed change by change with the same field answer as `metadata.old` and `metadata.new`. A reference field's change is kept only for a reader served the referenced record's title. When a reader is not served some of a summary's changes, the summary is rebuilt from the changes they are served instead of being dropped whole. The full audit ledger is not widened. + - **A long value no longer fails the activity insert.** The stored summary is fitted to `sys_activity.summary`'s `maxLength` (500): each side is cut first, then trailing changes are left out. The code keeps every change, with each side capped at 1,000 characters. + + To keep an object's activity free of values, set `enable: { fieldHistory: false }` on it. For one field, set `fieldHistory: false` on that field; `trackHistory: false` does not turn values off. +- 0fc430a: fix(messaging): the approval Slack DM links the Console page under its mount + + Clause-②: no + Metadata-protocol: none + + The Slack channel made a notification's relative `actionUrl` absolute as the deployment origin plus the path, with no Console mount. A relative `actionUrl` is a Console route (the approval DM's is `/system/approvals?request=ID`), and a server serves the Console under its own mount (`AuthConfig.uiBasePath`, `/_console` by default), so on a default deployment the DM's one link opened a "not found" page. + + The DM link now goes under the mount the auth service composes (`getConsoleUrl`), read at send time: `https://host/_console/system/approvals?request=ID` on a default deployment, the custom mount where `uiBasePath` sets one, and no mount where it is `/`. Only the composer's path is used, less any base path it shares with the origin, so a deployment under a sub-path is not prefixed twice; the origin is still the channel's own (`getPublicOrigin`, else `OS_AUTH_URL` / `BETTER_AUTH_URL` / `OS_BASE_URL`). A composition with no auth service, or one whose auth service composes no Console pages, gets the link it got before. An absolute `actionUrl` is sent as it is. + + No export changes: `createSlackChannel` and its options are as they were. `MessagingServicePlugin` mounts the channel with the auth service's composer internally, so a composition that registers the plugin gets the mount with nothing to configure; a host that builds the channel itself with `createSlackChannel` keeps the link it got before. +- 0ab9b15: fix(messaging): the one-time digest conversion rewrites only the rows that held `none` when it started + + Clause-②: no + Metadata-protocol: none + + The one-time conversion of the old default digest `none` to empty now reads the ids of every row holding `none` first, in pages, then records itself in `sys_migration`, then rewrites exactly those rows. It no longer reads the rows again while it runs. The deployment is already serving during that boot pass, so a `none` someone picks during the pass (a new preference, a member switching to "No digest", a node still on the earlier release in a rolling upgrade) is that person's own choice and is kept. If the conversion cannot record itself in `sys_migration`, it rewrites nothing and runs again on the next start. +- 24ff03c: feat(service-messaging): inbox messages, notification preferences and templates carry a palette colour + + Clause-②: no + Metadata-protocol: none + + The console draws an object's icon as a white glyph on a square of the object's palette colour, and an object that declares no `color` is drawn in the neutral `gray`. Until now no built-in object declared one, so every platform object read the same. Inbox messages, notification preferences and notification templates are now `pink` (messaging and notifications). + + Each colour is one of the palette names (`OBJECT_COLORS`), picked by business family, not by status: people and organisation `blue`, security and access `purple`, approvals and work routing `orange`, messaging and notifications `pink`, integrations `teal`, reference data and preferences `green`, audit `amber`. Objects nobody opens in the console (credential and token stores, queues, run logs, engine bookkeeping) keep no `color` and stay `gray`. Nothing about the objects' fields, data or API changes. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [a73edb3] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [d053c7d] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [c9b3f7a] +- Updated dependencies [01e6af6] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [4026c44] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [89ea9bf] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [17ed9e7] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [a98c077] +- Updated dependencies [236c804] +- Updated dependencies [d71fe59] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [a5a5312] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6943af1] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [24ff03c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [c8d4b90] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [9c57bd2] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [b3247dd] +- Updated dependencies [372ce7c] +- Updated dependencies [c059e60] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [bc2aaf1] +- Updated dependencies [4e55e4e] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/types@18.7.0 + - @objectstack/platform-objects@18.7.0 + - @objectstack/core@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/services/service-messaging/package.json b/packages/services/service-messaging/package.json index 5de2da44c81..2209ec5ccee 100644 --- a/packages/services/service-messaging/package.json +++ b/packages/services/service-messaging/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/service-messaging", - "version": "18.6.0", + "version": "18.7.0", "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 5e2428ec8b2..9c44bb84c03 100644 --- a/packages/services/service-package/CHANGELOG.md +++ b/packages/services/service-package/CHANGELOG.md @@ -1,5 +1,182 @@ # @objectstack/service-package +## 18.7.0 + +### Patch Changes + +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/core@18.7.0 + - @objectstack/metadata-core@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/services/service-package/package.json b/packages/services/service-package/package.json index 41f198ec1d0..f97d6d14c91 100644 --- a/packages/services/service-package/package.json +++ b/packages/services/service-package/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/service-package", - "version": "18.6.0", + "version": "18.7.0", "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 ec1007f9804..8e2e10ed403 100644 --- a/packages/services/service-print/CHANGELOG.md +++ b/packages/services/service-print/CHANGELOG.md @@ -1,5 +1,214 @@ # @objectstack/service-print +## 18.7.0 + +### Patch Changes + +- 4c18c43: fix(print): a print with no `filename` names the PDF from the record's display name + + Clause-②: no + Metadata-protocol: none + + `printRecordToFile` (and `POST /api/v1/print/records`) used to archive every PDF without an explicit `filename` as `<page>-<recordId>.pdf`, which tells the reader nothing about which record it is. It now names the file from the record's display name (ADR-0079: the object's `nameField`, or the title field derived from its fields), read from the row the caller's own read answered, plus `.pdf` — printing quote `Q-2026-0042` attaches `Q-2026-0042.pdf`. + + - The name is made a safe file name: `/ \ : * ? " < > |` become `_`, control characters and whitespace runs become one space, leading dots are dropped, a trailing `.pdf` is not doubled, and it is cut to 100 characters. + - A record with no display value (no title field, an empty value, or one the caller's field-level security leaves out) keeps `<page>-<recordId>.pdf`, never the `Record #<id>` floor. + - An explicit `filename` is used exactly as given, as before. + - Printing a record twice attaches two files of the same name; neither replaces the other. + + Visible change: a print with no explicit filename now attaches `<display name>.pdf` instead of `<page>-<recordId>.pdf`. Nothing to migrate; pass `filename` to keep a fixed name. +- 76eea0f: fix(hosted): printing a record works on a kernel with no `http.server` (a hosted tenant kernel), and an api action whose service is absent shows a readable, localized line instead of the route text + + Clause-②: yes (widening) + Metadata-protocol: none + + `POST /api/v1/print/records` (service-print) was mounted only on the kernel's `http.server`. A hosted tenant kernel owns no socket and registers no `http.server`, so the host's `createHonoApp` catch-all, and the `/actions` door's in-process forward of a `type: 'api'` action, handed the request to the runtime dispatcher, which had no domain for it and answered `404 ROUTE_NOT_FOUND`. A hosted HotCRM's Print Quote showed its user `Route Not Found: /print/records`. + + - `@objectstack/spec/contracts` declares `IPrintDoorService` (one optional, transport-neutral member, `handlePrintDoor(request: Request): Promise<Response>`). A service without the member still satisfies it. + - `PrintServicePlugin`'s `print` service gains `handlePrintDoor`, which runs the same registration the `http.server` mount runs, on a private route table that never listens (`createDoorTableMember`), so every answer is the mount's own. The `http.server` mount is unchanged, and no path is mounted twice. `@objectstack/service-print` now depends on `@objectstack/plugin-hono-server` at runtime. + - The runtime dispatcher gains a `/print` domain that claims exactly `POST /print/records` and forwards the request, body unread, to the REQUEST kernel's member (never the host kernel's scoped fallback). Every other shape under `/print` keeps the dispatcher's `404 ROUTE_NOT_FOUND`. With no `print` slot, or one without the member, the door answers `501 NOT_IMPLEMENTED` naming `@objectstack/service-print`. The door stays behind the dispatcher's authentication and project-membership gates. + - The console shows a `type: 'api'` action's `501 NOT_IMPLEMENTED` refusal (the service behind its target is not composed in this environment) as the new `actions.serviceUnavailable` line in the user's language (zh-CN: 「此操作所需的服务在当前环境未启用,请联系管理员。」) instead of the server's operator text. A producer-marked `userMessage` still wins. A `503 SERVICE_UNAVAILABLE` (a transient outage) and a route miss (`ROUTE_NOT_FOUND`, `ENDPOINT_NOT_FOUND`, for example a misspelled `target`) keep the server's own sentence. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [7878cf0] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [c9b0a23] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [9c57bd2] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [c059e60] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [d59d875] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/types@18.7.0 + - @objectstack/service-storage@18.7.0 + - @objectstack/core@18.7.0 + - @objectstack/plugin-hono-server@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/services/service-print/package.json b/packages/services/service-print/package.json index fd7eb7b00b8..a4832bd3219 100644 --- a/packages/services/service-print/package.json +++ b/packages/services/service-print/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/service-print", - "version": "18.6.0", + "version": "18.7.0", "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 archives the PDF as a file attached to the record.", "type": "module", diff --git a/packages/services/service-push/CHANGELOG.md b/packages/services/service-push/CHANGELOG.md index a7e5a9f31d5..e1a4607865f 100644 --- a/packages/services/service-push/CHANGELOG.md +++ b/packages/services/service-push/CHANGELOG.md @@ -1,5 +1,181 @@ # @objectstack/service-push +## 18.7.0 + +### Patch Changes + +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/core@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/services/service-push/package.json b/packages/services/service-push/package.json index 1322eba7c1e..3fc0c559c0c 100644 --- a/packages/services/service-push/package.json +++ b/packages/services/service-push/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/service-push", - "version": "18.6.0", + "version": "18.7.0", "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 5d65797a209..a8207371e09 100644 --- a/packages/services/service-queue/CHANGELOG.md +++ b/packages/services/service-queue/CHANGELOG.md @@ -1,5 +1,198 @@ # @objectstack/service-queue +## 18.7.0 + +### Patch Changes + +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [a73edb3] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [d053c7d] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [c9b3f7a] +- Updated dependencies [01e6af6] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [4026c44] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [89ea9bf] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [17ed9e7] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [a98c077] +- Updated dependencies [236c804] +- Updated dependencies [d71fe59] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [a5a5312] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6943af1] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [24ff03c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [c8d4b90] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [b3247dd] +- Updated dependencies [372ce7c] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [bc2aaf1] +- Updated dependencies [4e55e4e] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/platform-objects@18.7.0 + - @objectstack/core@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/services/service-queue/package.json b/packages/services/service-queue/package.json index e61fed5bee0..4aed451e7d3 100644 --- a/packages/services/service-queue/package.json +++ b/packages/services/service-queue/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/service-queue", - "version": "18.6.0", + "version": "18.7.0", "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 eb52f16a0e7..614052849a4 100644 --- a/packages/services/service-realtime/CHANGELOG.md +++ b/packages/services/service-realtime/CHANGELOG.md @@ -1,5 +1,214 @@ # @objectstack/service-realtime +## 18.7.0 + +### Patch Changes + +- 70194ff: feat(audit): a record's activity stream shows each changed field's old → new values by default, with a new `fieldHistory` off switch on the object and the field, and a reader is served only the changes of fields they may read + + Clause-②: yes (widening) + Metadata-protocol: semantic + + A record's activity stream now shows `Field: old → new` for every changed field, on every object, unless the object or the field turns it off. Before, values showed only for a field that declared `trackHistory: true`. Every other change was named by its field label alone. + + - **New `enable.fieldHistory`, with no default.** Absent: values show. `false`: off for the object, and a change names its fields only. It has no default so that a parsed body never writes one. A built artifact or a stored definition therefore gets values when it is upgraded, with no rebuild. + - **`enable.trackHistory: false` alone no longer turns values off.** The flag keeps its meaning: with `true`, the default record page shows the compliance ledger's field changes to a reader the ledger serves, and the derived `history` API verb is served. To keep an object's activity free of values, write `enable: { fieldHistory: false }`. Every platform object that wrote `trackHistory: false` now also writes `fieldHistory: false`. + - **New field `fieldHistory`, with no default: the field's off switch.** Absent shows the values, `false` names the change without them, `true` shows them (a media or JSON type included). Under an object with `enable.fieldHistory: false`, values stay off whatever a field says. + - **Field `trackHistory: false` no longer means anything: it reads like absent, so the values show.** The field designer wrote it on every save while the key meant nothing, so a stored `false` cannot be told from a choice. `trackHistory: true` keeps one job: it opts a media or JSON field in. A credential field (`secret`, and `password` off better-auth objects) never shows values, because both sides are the same mask. A media or structured-JSON field (`image`, `file`, `avatar`, `video`, `audio`, `signature`, `composite`, `repeater`, `record`, `location`, `address`, `code`, `json`, `vector`) shows them only with an explicit `true` (`fieldHistory` or `trackHistory`). + - **The new field key is classified where every `FieldSchema` key is.** The SQL driver counts `fieldHistory` as a presentation key, so creating a column never reads it. The field-level-security scrub keeps it as written, because a boolean names no field. + - **Who reads a value:** the field-change code (`metadata.summary_message`) is now served to readers. It is narrowed change by change with the same field answer as `metadata.old` and `metadata.new`. A reference field's change is kept only for a reader served the referenced record's title. When a reader is not served some of a summary's changes, the summary is rebuilt from the changes they are served instead of being dropped whole. The full audit ledger is not widened. + - **A long value no longer fails the activity insert.** The stored summary is fitted to `sys_activity.summary`'s `maxLength` (500): each side is cut first, then trailing changes are left out. The code keeps every change, with each side capped at 1,000 characters. + + To keep an object's activity free of values, set `enable: { fieldHistory: false }` on it. For one field, set `fieldHistory: false` on that field; `trackHistory: false` does not turn values off. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [a73edb3] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [d053c7d] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [c9b3f7a] +- Updated dependencies [01e6af6] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [4026c44] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [89ea9bf] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [17ed9e7] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [a98c077] +- Updated dependencies [236c804] +- Updated dependencies [d71fe59] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [a5a5312] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6943af1] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [24ff03c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [c8d4b90] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [b3247dd] +- Updated dependencies [372ce7c] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [bc2aaf1] +- Updated dependencies [4e55e4e] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/platform-objects@18.7.0 + - @objectstack/core@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/services/service-realtime/package.json b/packages/services/service-realtime/package.json index 9bca0b3002c..a050527c80e 100644 --- a/packages/services/service-realtime/package.json +++ b/packages/services/service-realtime/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/service-realtime", - "version": "18.6.0", + "version": "18.7.0", "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 new file mode 100644 index 00000000000..1ae6c2bb86a --- /dev/null +++ b/packages/services/service-record-context/CHANGELOG.md @@ -0,0 +1,205 @@ +# @objectstack/service-record-context + +## 18.7.0 + +### Minor Changes + +- 2a6f26a: feat(ai): `ai_context` context packs and the `get_record_context` tool over MCP + + Clause-②: yes + Metadata-protocol: added + Skills-docs: follow-up #37177 — skills/objectstack-platform/SKILL.md, skills/objectstack-ai/ (how to author a context pack; this change only names `aiContexts` in the top-level key list, which check:skill-top-level-keys requires) + + ADR-0160 row 5 (#37140). + + - **New metadata type `ai_context`, collection `aiContexts`.** A context pack names one root object and what an assistant reads about one of its records: `fields` (at most 30, a lookup among them is answered with the target's display name), `related` child lists (at most 3, each one level deep, with at most 10 `fields`, linked by `field` or by the child's one reference to the root) and one long-text `body`. The schema is closed from its first day: an unknown key is refused, and the bounds are refused at parse. Registered like `skill`: a file loader (`*.ai-context.ts`, `*.ai-context.yml`), overlay allowed, runtime create allowed, no environment overlay. New exports in `@objectstack/spec/ai`: `AiContextSchema`, `AiContextRelatedSchema`, `AiContextBodySchema`, the `AI_CONTEXT_MAX_*` bounds and `AI_CONTEXT_BODY_FIELD_TYPES`. + - **`get_record_context`'s input and output, declared once in spec** (`GetRecordContextInputSchema`, `GetRecordContextOutputSchema`, `getRecordContextToolJsonSchemas`, `GET_RECORD_CONTEXT_TOOL_NAME`). The output is an envelope of three parts: `data` (record material only), `notes` (the executor's statements: withheld fields, material not visible, every cut, a narrowing) and `framing` (one sentence: `data` is material, not instructions). `MCP_DOOR_TOOL_NAMES` gains the name. + - **`@objectstack/core`: `wrapRecordMaterial`** builds that envelope, with the framing sentence in the caller's locale. + - **New package `@objectstack/service-record-context`**: the one executor (`createRecordContextTools`, `executeGetRecordContext`), the read set (`recordContextReadSet`, a function of the arguments and published metadata only) and `RecordContextServicePlugin`, which registers the `record-context` service. Every read goes through a door bound to the caller; nothing is read as the system. Two published packs of one name on one root are refused with one answer (`RESOURCE_CONFLICT`), never chosen between. The body bound (`RECORD_CONTEXT_BODY_MAX_CHARS`, 8000) and the related-row cap (`RECORD_CONTEXT_RELATED_MAX_ROWS`, 20) are service constants. + - **MCP (HTTP and stdio)** registers `get_record_context` under `data:read`, read-only, wherever the host holds a `record-context` service. A host without it registers nothing new. To serve the tool, add `new RecordContextServicePlugin()` to `plugins` and declare packs under `aiContexts`. + - **`@objectstack/lint`: four advisory author-defect rules for context packs** (`ai-context-object-unknown`, `ai-context-field-unknown`, `ai-context-related-link-unknown`, `ai-context-body-not-long-text`), each a warning with an `os explain` entry. `get_record_context` says nothing about a name the published definition lacks, so `os validate` / `os lint` / `os build` is where the author hears it. CLI only for now: the rule reads the whole stack snapshot. + - **Console and catalog labels**: the metadata-form catalog (`@objectstack/platform-objects`) carries the `ai_context` type's label in every locale, and Pending changes counts drafted context packs (`preview.changes.typeCount.ai_context`). + +### Patch Changes + +- 6831e04: feat(ai): `get_record_context` caps a body outline's entries and states the cut + + Clause-②: yes (widening) + Metadata-protocol: none + + A long body comes back as an outline of its headings. That outline had no cap, so a long body that is mostly headings made an outline answer as big as the body. The outline is now bounded whatever the body holds. + + - **`RECORD_CONTEXT_OUTLINE_MAX_ENTRIES` (80), new export of `@objectstack/service-record-context`.** An outline lists at most 80 headings, and its listing, serialized, stays within `RECORD_CONTEXT_BODY_MAX_CHARS` (8000). When a body has more, the outline keeps the shallowest levels first and lists them in body order, so a listed section's text holds the headings left out under it. Every heading's `anchor` still reads its section, listed or not, and a listed anchor is the same whether or not the outline was cut. + - **New note kind `outline_truncated`** on `RecordContextNoteKind` in `@objectstack/spec/ai`. When the cap cuts, the answer carries one such note beside `body_outline`, and its sentence says how many headings are not listed. A consumer that switches over note kinds exhaustively must handle the new value. + - A body whose only heading is too long to list within the bound is carried as text up to the bound and marked `truncated`, the same as a long body with no headings. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/core@18.7.0 diff --git a/packages/services/service-record-context/package.json b/packages/services/service-record-context/package.json index cc88ee493f5..e9d3f25cf47 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": "18.6.0", + "version": "18.7.0", "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-settings/CHANGELOG.md b/packages/services/service-settings/CHANGELOG.md index 393a3b5526d..1d2e826be9c 100644 --- a/packages/services/service-settings/CHANGELOG.md +++ b/packages/services/service-settings/CHANGELOG.md @@ -1,5 +1,225 @@ # @objectstack/service-settings +## 18.7.0 + +### Patch Changes + +- a73edb3: fix(settings)!: the knowledge settings page and the AI page's embedder section appear only where the knowledge service is mounted + + Clause-②: no (narrowing) — narrowed: on a deployment that does not mount `KnowledgeServicePlugin` (every stock boot), `GET` / `PUT /api/settings/knowledge` and `POST /api/settings/knowledge/test` now answer `404 UNKNOWN_NAMESPACE`, where they served the Knowledge page; a write of an `ai.embedder_*` key (`embedder_provider`, `embedder_api_key`, `embedder_model`, `embedder_base_url`, `embedder_dimensions`, `embedder_batch_size`) now answers `400 UNKNOWN_KEY`, and `POST /api/settings/ai/test_embedder` answers that no handler is registered; the hub list no longer carries `knowledge`, and the Setup sidebar no longer carries `nav_settings_knowledge`. `builtinSettingsManifests` drops `knowledgeSettingsManifest`, and `aiSettingsManifest` drops its embedder section. + Metadata-protocol: none + Skills-docs: none — no skill under `skills/**` teaches the knowledge settings page or the `ai.embedder_*` keys; `skills/objectstack-ai` teaches wiring `KnowledgeServicePlugin`, which is unchanged. + + <!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed, renamed or re-shaped: settings manifests are runtime registrations, not authorable metadata. The moved answers are settings doors that a deployment without the knowledge service no longer serves; a deployment that mounts it serves them exactly as before, and stored rows are untouched, so there is nothing for a migration to rewrite. --> + + **BREAKING** for a deployment that does not mount the knowledge service: the knowledge base is not a default capability, so its settings are no longer offered by default. The Knowledge page, the AI page's Embedder section, their "Test connection" / "Test embedder" buttons and the Setup entry are now contributed by `@objectstack/service-knowledge` when `KnowledgeServicePlugin` is mounted beside `SettingsServicePlugin`, and only then. Values already stored under `knowledge.*` or `ai.embedder_*` stay in the database and are served again as soon as the service is mounted. + + The AI page's description no longer names the knowledge base, in every bundled locale. + + `@objectstack/service-settings` now exports `knowledgeSettingsManifest`, `knowledgeTestActionHandler`, `aiSettingsManifest`, `aiEmbedderSettingsSpecifiers`, `withAiEmbedderSection` and `aiTestEmbedderActionHandler` from its package entry, and its default `actionHandlers` map no longer registers `knowledge.test` or `ai.test_embedder`. `@objectstack/service-knowledge` depends on `@objectstack/service-settings` and declares the settings plugin in `optionalDependencies`, so the kernel inits it first. + + What to do: nothing, unless you configure an embedder or a knowledge backend from Setup. Then mount `KnowledgeServicePlugin` from `@objectstack/service-knowledge` (with a knowledge adapter plugin) beside `SettingsServicePlugin`; the page, the embedder section and the Setup entry come back with it. A host that passed its own `ai` manifest to `SettingsServicePlugin({ manifests })` adds `aiEmbedderSettingsSpecifiers` to it (or wraps it with `withAiEmbedderSection`) to keep the embedder keys. The embedder section joins only the bundled `ai` page, recognised as that very declaration; a host's own `ai` page (or one served through an option source) is left as it is, and the plugin logs a warning saying so. A host that passes its own `actionHandlers` to `SettingsServicePlugin` keeps a `knowledge` entry there only beside the knowledge manifest: without it the settings plugin refuses to register the handler for an unknown namespace at boot. + + Stored credentials: on a deployment that does not mount the knowledge service, `ai.embedder_api_key`, `knowledge.turso_auth_token` and `knowledge.ragflow_api_key` stay stored (as `sys_secret` handles) but no settings door serves, edits or clears them, and the AI page's reset clears declared keys only. To remove them, mount `KnowledgeServicePlugin` once and clear the keys from Setup, or delete their rows from `sys_platform_setting` (the `knowledge` namespace and the `ai.embedder_*` keys) and the `sys_secret` rows whose `id` those rows hold in `value_enc` (a `sec_` handle); until then the `sys_secret` orphan report may list them. +- 37e7fdf: fix(settings): Setup → Access policy explains its five fields in the admin's language + + Clause-②: no + Metadata-protocol: none + + On Setup → Access policy, the help under Allowed IP ranges, Idle timeout, Absolute session lifetime, Max concurrent sessions per user and Require multi-factor authentication showed the English manifest description in every translated locale, because no locale bundle carried a `help` for those keys. All ten translated locales (zh-CN, zh-Hant, ja-JP, ko, de, es-ES, fr, pt-BR, ru, ar) now carry `settings.access_policy.keys.KEY.help` for each of the five, translated from the English description. The settings translation coverage test no longer exempts them: its shrink-only owed-help list is empty, so every described settings field is held to a translated help in every locale. No keys, labels or option values change. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [a73edb3] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [d053c7d] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [c9b3f7a] +- Updated dependencies [01e6af6] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [4026c44] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [89ea9bf] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [17ed9e7] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [a98c077] +- Updated dependencies [236c804] +- Updated dependencies [d71fe59] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [a5a5312] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6943af1] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [24ff03c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [c8d4b90] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [9c57bd2] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [b3247dd] +- Updated dependencies [372ce7c] +- Updated dependencies [c059e60] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [bc2aaf1] +- Updated dependencies [4e55e4e] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/types@18.7.0 + - @objectstack/platform-objects@18.7.0 + - @objectstack/core@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/services/service-settings/package.json b/packages/services/service-settings/package.json index 3bac3221160..6ae71df74ba 100644 --- a/packages/services/service-settings/package.json +++ b/packages/services/service-settings/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/service-settings", - "version": "18.6.0", + "version": "18.7.0", "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 15be36f6418..6deaa5000a5 100644 --- a/packages/services/service-sms/CHANGELOG.md +++ b/packages/services/service-sms/CHANGELOG.md @@ -1,5 +1,200 @@ # @objectstack/service-sms +## 18.7.0 + +### Patch Changes + +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [8c629b2] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [5f18b9b] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [d053c7d] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [9e65474] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [338ef35] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [c9aad65] +- Updated dependencies [53c9575] +- Updated dependencies [7eaa3f5] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [cf7e443] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [0e91213] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [011635f] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [d24a502] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [92ab056] +- Updated dependencies [b3247dd] +- Updated dependencies [372ce7c] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [852270a] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [bc2aaf1] +- Updated dependencies [4e55e4e] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [6927c3f] +- Updated dependencies [ecd4b2b] +- Updated dependencies [1e692d1] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/plugin-auth@18.7.0 + - @objectstack/core@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/services/service-sms/package.json b/packages/services/service-sms/package.json index fbdc745228c..885ae5886b8 100644 --- a/packages/services/service-sms/package.json +++ b/packages/services/service-sms/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/service-sms", - "version": "18.6.0", + "version": "18.7.0", "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 c63211e73cf..1835ca9d3be 100644 --- a/packages/services/service-storage/CHANGELOG.md +++ b/packages/services/service-storage/CHANGELOG.md @@ -1,5 +1,260 @@ # @objectstack/service-storage +## 18.7.0 + +### Patch Changes + +- 7878cf0: fix(service-storage): translate the built-in `storage_attachment_member` permission set + + Clause-②: no + Metadata-protocol: none + + The permission set this service contributes to every member's baseline ("Attachments: read and attach (every member)") now ships its label and description in every locale the platform's other built-in sets ship (zh-CN, ja-JP, es-ES, zh-Hant, ar, fr, pt-BR, ru, de, ko). Setup's permission-set lists in a translated Console no longer show it as the one English row. What the set grants, and when it is contributed, is unchanged. +- c9b0a23: feat(service-storage): rename an attachment through a door by the attachment delete rule, and the Attachments tab names the uploader of other people's files + + Clause-②: yes (widening) + Metadata-protocol: none + + Two additions, no answer narrowed: + + - **The rename door.** `PATCH /api/v1/attachments/:id` with `{ "file_name": "..." }` sets the name one `sys_attachment` row is listed under, by the attachment delete rule: the caller who uploaded it, or a caller the attachment update gate admits as an editor of the record it is attached to. The door reads the row as the caller first, so every attachment read rule applies; the uploader's rename is written on the caller's behalf with no edit grant, as the uploader's removal door does; anyone else's goes through the data engine as the caller, so the object's edit grant and the update gate judge it. It answers `{ id, file_name }` (200), and refuses `UNAUTHENTICATED` (401), `VALIDATION_ERROR` (400: a query parameter, a blank name, or any body key besides `file_name`), `RECORD_NOT_FOUND` (404: an attachment the caller cannot read answers as one that does not exist) and the update gate's `RECORD_NOT_ACCESSIBLE` (403) for a caller who can read the record but not edit it. Only the attachment row's name changes: the stored file, its bytes and the name a download carries are untouched. The package's exports are unchanged; `StorageServicePlugin` mounts the door beside the removal door. + - **The uploader, expanded.** The record page payload's `attachments` part (`POST /api/v1/data/:object/:id/page`) now asks its `sys_attachment` read with `uploaded_by` expanded, as the `activity` part expands its actor, and the Attachments panel's own list read does the same. The expansion is a read of `sys_user` as the caller: a reader who may read the uploader gets that user's row (its name), and a reader who may not keeps the stored id. A consumer of that part that compared `uploaded_by` with a user id now reads `uploaded_by.id` where the reader may read the user. + + The record Attachments tab shows the uploader's name on every row whose uploader the reader may read, and never shows a bare id. Its row menu offers Rename beside Delete, on the reader's own uploads and, to a reader who also holds the edit grant on `sys_attachment`, on every row, opening a name prompt; the new name is the one the list shows after a reload. + + `@object-ui/core`: the affordance-to-grant map gains the `attachmentRename` row (the edit grant on `sys_attachment`), which the panel asks for a row the caller did not upload. +- cbc06ff: fix(hosted): deleting a personal view and removing or renaming an attachment work on a kernel with no `http.server` (a hosted tenant kernel) instead of answering 404 + + Clause-②: yes (widening) + Metadata-protocol: none + + `DELETE /api/v1/personal-views/:id` (plugin-auth) and `DELETE` / `PATCH /api/v1/attachments/:id` (service-storage) were mounted only on the kernel's `http.server`. A hosted tenant kernel owns no socket and registers no `http.server` (and runs `AuthPlugin` with `registerRoutes: false`), so the host's `createHonoApp` catch-all handed each request to the runtime dispatcher, which had no domain for them and answered `404 ROUTE_NOT_FOUND`: a member could not delete a personal view, or remove or rename an attachment, there. + + - `@objectstack/spec/contracts` declares `IPersonalViewDoorsService` (one optional, transport-neutral member, `handlePersonalViewDoor(request: Request): Promise<Response>`) and types the new `personal-views` service slot with it, and declares `IAttachmentDoorsService` (`handleAttachmentDoor`), which the existing `file-attachments` service implements beside `IFileAttachmentService`. A service without the member still satisfies either contract. + - `AuthPlugin` registers the `personal-views` service in `init()`, whatever `registerRoutes` says, and `StorageServicePlugin`'s `file-attachments` service gains `handleAttachmentDoor`. Each member runs the same registration over the same dependencies the `http.server` mount runs, on a private route table that never listens, so every answer is the mount's own. The `http.server` mounts are unchanged, and no path is mounted twice. The `personal-views` service name is now taken: a composition that registers its own `personal-views` service alongside `AuthPlugin` fails to boot with a duplicate-service error. `@objectstack/plugin-auth` and `@objectstack/service-storage` now depend on `@objectstack/plugin-hono-server` at runtime (the private table is a `HonoHttpServer`; plugin-auth previously listed it as a dev dependency only). + - `@objectstack/plugin-hono-server` exports `createDoorTableMember(routes, mount)`, the private never-listening table both members are built on, and `matchDoorTableRoute`. + - The runtime dispatcher gains `/personal-views` and `/attachments` domains that claim exactly the door shapes and forward the request, body unread, to the REQUEST kernel's member (never the host kernel's scoped fallback). Every other shape under those prefixes keeps the dispatcher's `404 ROUTE_NOT_FOUND`. With no slot, or one without the member, the doors answer `501 NOT_IMPLEMENTED` naming the package that registers it. The doors stay behind the dispatcher's authentication and project-membership gates. +- d59d875: fix(service-storage): stored bytes are previewed in place only when they begin with their type's signature + + Clause-②: no + Metadata-protocol: none + + The local adapter's byte route now answers a file on the inline allow-list inline only when its stored bytes begin with the leading signature of that type: PNG, JPEG, GIF, WebP, AVIF and BMP images, PDF, and each of the 13 allow-listed audio and video types. Plain text has no signature, so it is judged on its first 1445 bytes: it is previewed when they open with a byte-order mark or carry no binary data byte (the WHATWG MIME Sniffing standard's text-or-binary rule). Every type is judged on that same leading window of the body. Any other body, an empty one included, is answered as an `attachment` under the default sandbox policy, with `nosniff` as before. The type and the file name answered are unchanged. + + The fix for a host: nothing to change. A file whose bytes are what its type says previews as before; one that is not still downloads under its own name and type. +- 20d025f: fix(service-storage)!: stored bytes outside the inline allow-list are served as attachments, and every stored-bytes answer carries nosniff and a sandbox CSP + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed or re-shaped, and no stored row, registry key or authored value changes. What moves is the response headers a downloaded file is answered with; there is nothing for a migration to rewrite. --> + + **BREAKING** — how a downloaded file is answered to a browser. One rule, stated once in the storage service and applied by every door that answers stored bytes: + + - FROM: a file was answered under the type recorded for it, and rendered in place by default, whatever that type was. + - TO: only a type on the inline allow-list is rendered in place: raster images (PNG, JPEG, GIF, WebP, AVIF, BMP), PDF, plain text, and common audio and video types. Every other type, SVG and HTML included, and a missing or malformed type, is answered as an `attachment`, which the browser saves rather than opens. The type is judged by its essence, and the answered `Content-Type` is that essence: case is folded and parameters are dropped (a `charset` is kept on `text/plain` only), so neither changes the verdict. + - FROM: the local adapter's byte route sent no `X-Content-Type-Options` and no `Content-Security-Policy`. + - TO: every answer from it carries `X-Content-Type-Options: nosniff` and a sandbox `Content-Security-Policy` that lets no script run, inline or not. Allow-listed audio and video answered inline carry a media variant of it, `sandbox allow-same-origin; default-src 'none'; media-src 'self'; style-src 'unsafe-inline'`, so the browser's player can load the file's own URL. Every other answer carries `sandbox; default-src 'none'; style-src 'unsafe-inline'`, which asks the browser for a sandboxed document that runs no script and loads no subresource. + - Measured in Chromium (the Console's download in a new tab, and direct navigation): PNG, PDF and plain text render in place; HTML and SVG are saved. WAV, Ogg, MP3, WebM and MP4 open in the browser's player, which loads the file and starts playback when the user presses play; before this change the player started playback on its own. Firefox and Safari were not measured. + - The S3 adapter's signed download URL always carries the same type and disposition; a call that names no type is signed as `application/octet-stream`, an attachment. A caller's `disposition: 'inline'` no longer overrides the list. A signed `GetObject` URL can set no other response header, so `nosniff` and the CSP are the bucket's to send there. + + The fix for a host: nothing to change. A file outside the list still downloads under its own name and type; open it from the saved copy. An `<img>` that shows a stored SVG keeps showing it: an image element ignores the disposition. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [a73edb3] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [d053c7d] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [c9b3f7a] +- Updated dependencies [01e6af6] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [4026c44] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [89ea9bf] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [17ed9e7] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [a98c077] +- Updated dependencies [236c804] +- Updated dependencies [d71fe59] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [a5a5312] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6943af1] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [24ff03c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [c8d4b90] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [9c57bd2] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [b3247dd] +- Updated dependencies [372ce7c] +- Updated dependencies [c059e60] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [bc2aaf1] +- Updated dependencies [4e55e4e] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/types@18.7.0 + - @objectstack/platform-objects@18.7.0 + - @objectstack/core@18.7.0 + - @objectstack/plugin-hono-server@18.7.0 + - @objectstack/observability@18.7.0 + - @objectstack/service-cluster@18.7.0 + ## 18.6.0 ### Minor Changes diff --git a/packages/services/service-storage/package.json b/packages/services/service-storage/package.json index 49fd1bb65fd..5e7387753b7 100644 --- a/packages/services/service-storage/package.json +++ b/packages/services/service-storage/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/service-storage", - "version": "18.6.0", + "version": "18.7.0", "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 8227db1228e..d95e4de9ec0 100644 --- a/packages/skills/CHANGELOG.md +++ b/packages/skills/CHANGELOG.md @@ -1,5 +1,592 @@ # @objectstack/skills +## 18.7.0 + +### Patch Changes + +- 2212b16: docs(skills): objectstack-automation names the inbound hook's answer for a disabled package's flow, and the refusal of an undeclared `connector_action` input key + + Clause-②: no + Metadata-protocol: none + + The inbound hook section gains one bullet: a flow whose package is disabled answers the door's `401 INVALID_SIGNATURE` at both its bare and its qualified address, with nothing enqueued, and a sender's retry is accepted (`202`) once the package is enabled. Text only; the neighbouring bullets are tightened to pay for it. + + The `connector_action` row and the integration recipes now say that an input key the action's `inputSchema` does not declare fails the step before dispatch, and that on an OpenAPI document nobody de-referenced a `$ref` parameter or a `$ref` / schemaless request body reads as open input, sent unjudged (a `$ref` response is still silently lost). +- adcb9f8: docs(skills): the hooks skill teaches when a `before*` hook's `ctx.api` writes roll back with a refused save + + Clause-②: no + Metadata-protocol: none + + objectstack-data's `references/data-hooks.md`, "Before vs After Hooks" table: the `before*` Transaction cell no longer says only "Within transaction". It now says the hook runs in one transaction with the outer write, so a refusal anywhere in that write (a validation, a later hook, a driver constraint) rolls back the hook's `ctx.api` writes too, with no per-hook opt-out. It names the four exits: a caller's open transaction decides; a hooked object off the default datasource, or a default driver with no transactions (Turso's remote transport), opens none, so those writes stay stored after a refusal; a hook registered in code with `registerHook` opens none. It also says MongoDB needs a replica set, which was read in the driver's code and not measured. Best Practices gains one DON'T: a `before*` hook does not write business records to another datasource through `ctx.api`. Its transaction refuses that write with `CrossDatasourceTransactionWriteError`, and only an append-only ledger (`lifecycle.class` `audit` / `telemetry` / `event`) is written outside it. `evals/hooks-security-seeds-datasources.json` gains two cases, one for each rule. Four restatements in data-hooks.md were removed to pay for the new text. +- 0d9d982: docs(skills): the api and i18n skills teach `RuntimeBuildIssue.userMessage` + + Clause-②: no + Metadata-protocol: none + + objectstack-api's SKILL.md, in the error-envelope section, names the post-publish probe report a batch publish answers (`probes`, `BuildProbeReportSchema`) and its finding element (`RuntimeBuildIssueSchema`): `message` / `fix` are English for the agent that built the app, the optional `userMessage` is the sentence for the person who published, and a client shows a person `userMessage`, never `message`, with its own generic sentence when the field is absent; the publish door reads the request's locale from `Accept-Language` alone. objectstack-i18n's SKILL.md lists the `probes` issue among the server-composed user text, which its platform locale ladder covers. The api skill points at the schema and ADR-0038 for the rest. One new eval case in the api skill grades a client that renders a build finding to a person. +- fca72df: docs(skills): `objectstack-automation` teaches the `fault` edge on a write after an approval decision, and what `RESUME_FAILED` carries without one + + Clause-②: no + Metadata-protocol: none + + `references/state-machines-and-approvals.md` § Branching, side-effects & rejection gains one bullet. When a step on the `approve` / `reject` branch writes a record that a record hook, a validation rule or a permission may refuse, the flow draws a `fault` edge from that step to a handler: the refusal takes that edge and the decision answers normally. Without the edge `POST …/approve` (or `/reject`) answers `500 RESUME_FAILED`: the decision stands (`finalized: true`), the run is stranded, and the body may carry `innerRefusal` (`{ code, message }`) and `userMessage`, the hook's declared sentence for the approver. One eval case covers it; its prompt asks for the flow as a TypeScript `defineFlow`. + + Paid in place, the token ceiling does not move. Four restatements were cut, each keeping another home: the send-back section's text diagram (the paragraph above it and the snippet below it trace the same path), and three bullets of § Branching: "Conditional step" (the discount-approval example's `needs_director` node and the list item above it that names the `e1` edge), the send-back pointer (the section it pointed to), and "Hard reject" (the examples' `reject` edges into an `end` node). +- e91d967: docs(skills): `objectstack-ui` teaches an action's `resultDialog` (its `table` format included) and the aggregate bulk handler's `BulkActionResult` + + Clause-②: no + Metadata-protocol: none + + `rules/actions.md` gains a `resultDialog` entry beside `preflight`: the keys of the one-shot dialog, the `fields` row, the six formats, and `format: 'table'` with its required `columns` (one row per element of the array, one cell per column). It states that a `text` or `code-list` cell has no copy control while a `secret` or `qrcode` cell keeps its own. A second entry says how an `execution: 'aggregate'` bulk handler's return value is read: one with a top-level `succeeded` or `failed` member is read as a `BulkActionResult`, and any other form of those members is reported as unreadable. One eval case for `resultDialog`. +- 9d07723: Clause-②: no + Metadata-protocol: none + + `objectstack-ask` gains trigger cases (`evals/triggers.json`); `objectstack-automation`'s flow-type table sends a stepped form that never branches to an `objectstack-ui` form view, `type: 'wizard'`, and `objectstack-ui` gains that trigger case. +- 5ed945b: Clause-②: no + Metadata-protocol: none + + docs(skills): the `description` of `objectstack-data`, `-ui`, `-automation`, `-formula`, `-i18n` and `-query` now leads with what the user is doing ("design or change a data model, in a project or through MCP"), keeps the `*.object.ts`-style file names as a secondary cue, and ends with a "Not for" clause naming the neighbouring skill. An agent building through MCP has no project files, so a description that triggered on file names never loaded the skill. Each is 432 to 450 characters (432 to 849 before). No skill body changes; the README index and the Skills reference page are regenerated from the new text. +- 6ec3a73: docs(skills): the sections served to MCP clients show their examples as JSON, and a check pins their headings + + Clause-②: no + Metadata-protocol: none + + A client that builds through MCP writes JSON, and the sections of `objectstack-data`, `objectstack-ui` and `objectstack-automation` that the hosted MCP door serves showed their examples in TypeScript. Those sections now give each example as JSON, with one line on how a TypeScript project wraps the same literal: + + - `objectstack-data`: the object in Object Definition, the `state_machine` rule in State Machine Validation, and the `summary` field and the permission set in Roll-up Summaries. Field Type Selection names the `{ dialect: 'cel', source }` envelope beside the TypeScript tag. + - `objectstack-ui`: the write-button action in Actions. + - `objectstack-automation`: the `notify` node (its key notes are a list under the block), the `script` and `update_record` pair in Valid-but-silently-wrong, the whole approval flow in Approvals (Flow Nodes), and the start node and window filter of the time-relative trigger, beside its TypeScript flow. + + The other served sections are prose and tables and read the same to both kinds of client; three of them drop a TypeScript-only phrase. + + Every JSON block in a served section is parsed and validated against the spec schema for its kind in CI, and a renamed, removed or duplicated heading of a served section now fails there. +- 693e921: feat(skills): objectstack-mcp-build, the order of work for a client that builds through the MCP draft door + + Clause-②: no + Metadata-protocol: none + + The skills catalog gains `objectstack-mcp-build`, a short process skill for a client that builds or changes an app's metadata through an environment's MCP draft door, with no project files. It gives the order of work: read what exists (`list_metadata_items`, `get_metadata_item`, and `describe_object` where the connection lists it), load the domain skill for the type, save with `save_metadata_draft`, read the publish verdict in the reply and repair the item until no refusal is left, then report the drafts and give a person the Studio review routes the reply names. The door has no publish tool, so the skill tells the client never to say a draft is live. + + It restates no shape and no tool argument: the domain skills (`objectstack-data`, `objectstack-ui`, `objectstack-automation` and the others) stay the one copy of each type's keys and traps, for a project author and an MCP client alike. + + A project that already syncs its skills gets the new one on its next `npx skills@1.7.2 experimental_sync --agent <runtime> --copy -y` after bumping `@objectstack/skills`. +- f1bf850: docs(skills): the seeds reference drops the retired seed modes `insert` / `replace`, names `locale`, `fallback` and `dependsOn`, and stops teaching array order as load order + + Clause-②: no + Metadata-protocol: none + + `objectstack-data`'s `references/seeds.md` no longer lists `insert` or `replace` as import modes: both are refused, and a dataset with no single natural key keeps the default mode with a composite `externalId` (a junction table's `['team', 'project']`), or `'id'` when the records carry their own ids. `objectstack-platform`'s Seed Data passage lists only `ignore`, `upsert` and `update`. + + The seeds field table now names `locale` (the BCP-47 tags a dataset loads for), `fallback` (`true` on one locale-scoped set per object, which also loads for a resolved locale no set of that object lists) and `dependsOn`. + + The relationship section says lookups order the load and the exported array's order only breaks ties; a lifecycle hook that reads a seeded object no lookup links to declares `dependsOn` with object names, and a name that is the dataset's own object, is not seeded by the same load, or closes a cycle refuses the whole load with nothing written. Two eval cases cover the composite-key conversion and `fallback`. + + `seeds.md` pays first by deleting restatement in the same file (three best-practice rows, the `upsert` re-assert clause, "no other mode updates a matched row", "Natural keys remain the portable default"); its token ceiling moves +13, the measured remainder. `objectstack-platform/SKILL.md` re-locks 15 tokens lower. +- 9c29d73: docs(skills, spec): the ui and i18n skills teach an action's `refusals` catalogue and its translation keys; `action.zod.ts` gains a module description + + Clause-②: no — skill teaching text, evals and two comment-only edits in packages/spec; no schema, export or accept set moves + Metadata-protocol: none — no metadata key is touched + + objectstack-ui's `rules/actions.md` gains a short section, "Refusing by code (`refusals`)": a `type: 'script'` action with a `js` body declares the refusals it may throw and throws the code instead of a sentence, the catalogue, the throws and the checks are the ones a hook has (taught in objectstack-data's `references/data-hooks.md` § Declared refusals), the sentence is answered as `userMessage` and translated at `objects.<object>._actions.<action>.refusals.<CODE>.message`, and an authored `errorMessage` replaces it in the console's failure toast. The file's Add Line example now declares `refusals: { PRODUCT_NOT_FOUND: … }` and throws `{ code: 'PRODUCT_NOT_FOUND' }` where it threw `new Error('Product not found.')`. + + objectstack-i18n's SKILL.md lists the keys in the object key table — `_actions.{action_name}.refusals.{CODE}` holds `message` and `reasons.{reason}.message`, the same under `globalActions.{action_name}`, and a key for a code or reason the action does not declare is `translation-target-unknown` — and the server-composed text section names an action's refusal beside a hook's. Each skill's eval file gains one case that grades the rule. + + `@objectstack/spec`: comments only. `src/ui/action.zod.ts` opens with a module doc block, so the generated reference page and the two skill reference indexes describe the module ("Action protocol schemas — `ActionSchema`, the `action` metadata type, and the parts it is built from.") where they listed its first five exports, and the jsdoc above `actionRefusalsWithoutSandboxedBody` names the third case as the function judges it: a `script` action with no `body`. +- f54fc93: docs(skills): the `objectstack-ask` skill follows `list_datasets` `nextStep` and cites `query_dataset` `sourceLine` as given, before `provenance` + + Clause-②: no + Metadata-protocol: none + + The `objectstack-ask` skill, and the page at `GET /mcp/skill` that is generated from it, now tell a connected client two things. Under the step 2 decision table: when the `list_datasets` answer has `nextStep`, follow its `decision` and `note`. In step 3's citation bullet: cite the `query_dataset` answer's `sourceLine` as given, and build the source from `provenance` only when the answer has no `sourceLine`. Both members are answered by servers whose dataset tools fill them; a server that does not answer them leaves the skill's existing steps in force, with the `provenance` citation as before. When a `nextStep` note says to answer one measure and to ask about a word that has only candidates, the skill says to do both and to use none of that word's candidates until the user answers; the question-alone rule (no tool call until the user answers) covers a reply that only asks. + + Two sentences that restated another line of the same skill are removed: the fallback row's "and say in the answer that no governed metric was used" (step 4 opens every fallback answer with that line) and "no figure" in the paragraph under the table (its next sentence says the same). The `candidates` row also drops "one or several", which its own right cell states. `packages/mcp/src/ask-skill.generated.ts` is regenerated from the skill; no code path changes. +- 81c0947: docs(skills): the i18n and ui skills teach the `mappings` translation group, an action's `texts` and where hook and action texts sit in a bundle; the stale label-serving caveat is gone + + Clause-②: no + Metadata-protocol: none + + - `objectstack-i18n`: the top-level group list names `mappings` (`mappings.{mapping}.label`, an import mapping's label by its `name`). The paragraph on keys picked in the organization's language now covers the sentences a hook or a `script` action declares in `texts` and writes through `ctx.text`: `hooks.{hook}.texts.{key}.message` and `_actions.{action_name}.texts.{key}.message`, also under `globalActions`. + - `objectstack-i18n`: the caveat that label serving reads inline text as `defaultLocale` text is removed, because serving honours `i18n.sourceLocale`. What is still true stays: validation and refusal messages read labels through `t()`, which falls back to `fallbackLocale`, else `defaultLocale`, so an English-source app with a zh-CN default still declares `fallbackLocale: 'en'`. + - `objectstack-ui` `rules/actions.md`: a `script` action declares a sentence it writes into a record under `texts` and asks for it with `ctx.text`. The rule covers the organization's language, the `texts.<key>.message` key beside the refusals key, a missing translation, an unreadable Localization setting and an undeclared key. Two sentences that restated the example below them are shorter. + - `objectstack-i18n` pays for its new text in the same file. It drops a sentence that restated the option-key paragraph, two flags from the `extract --help` list that are taught in place, two partial copies of the group list, and the empty "Translate" step. + - Evals: the i18n set gains a `mappings` case and a hook-texts bundle-key case, and case 11 states the remaining `t()` reason for `fallbackLocale: 'en'`. The ui set gains an action `texts` case. +- e4bfa33: docs(skills): the hooks skill says when `ctx.api.transaction` joins an outer unit, that its transaction is one datasource, and teaches hook `texts` with `ctx.text` + + Clause-②: no + Metadata-protocol: none + + objectstack-data's `references/data-hooks.md`: + + - The `api.transaction` capability row no longer says only "commit on return, rollback on throw". It now says the callback runs in one transaction on the default datasource, and that a write in it to an object on any other datasource is refused before it runs (`400 ERR_CROSS_DATASOURCE_TRANSACTION_WRITE`). Inside a unit that is already open (the one the hook's write runs in, or a caller's) it joins that unit: its return is no commit and its throw no rollback, so a throw the body catches keeps the callback's writes, and the outer unit commits or rolls back all of it. + - A new "Declared texts (`texts`)" block beside "Declared refusals" teaches a hook's `texts` and `ctx.text(key, params?)`: the sentence is written in the organization's language, translated first and then filled, a missing translation never fails the hook, an unreadable Localization setting rejects, and only declared keys are answered. The sandbox `ctx` table gains a `ctx.text` row that points to it. It names the translation key, `hooks.HOOK.texts.KEY.message`, and leaves the bundle to objectstack-i18n. + - Ten restatements in the same file were removed to pay for the new text. + + `evals/hooks-security-seeds-datasources.json` gains two cases, one on the joined transaction and the default-datasource rule, one on `texts` with `ctx.text`. +- 7c8d689: docs(skills): `objectstack-data`'s seeds reference says seed rows obey the object's validation rules (all but `state_machine`) as they load: a rule reading a parent roll-up sees the total earlier rows left, a seeded roll-up value is stored as written, and `os verify`, not `os validate`, fails on a dropped row. One eval case covers it; the file pays in deleted restatement and its token ceiling does not move. + + Clause-②: no + Metadata-protocol: none +- 2c93001: Clause-②: no + Metadata-protocol: none + + `objectstack-data`'s hook reference (`references/data-hooks.md`) now says that `input` and `ctx` are already bound in an action body's `(async (input, ctx) => { … })` wrapper, shows the refused redeclaration (`const input = ctx.input || {};`, `let ctx`) with its rule id `action-body-does-not-compile`, and links the hook-body compile paragraph for the commands, the `422 INVALID_METADATA` save and the fix. That paragraph's suggested local is now `const data = …`, a name no wrapper binds. The file stays inside its token ceiling by dropping two restatements. +- e25207d: fix(service-analytics): `list_datasets` no longer tells a client outright to ask "which number" when a word that falls back stands beside a grouping word + + Clause-②: no + Metadata-protocol: none + + A question such as "How many sales orders are in each status?" names its number. When no dataset measure answers to "sales orders" and none is offered as a candidate, the labelled fallback to the object query tools computes it. Until now the `nextStep` note of such an answer said two things at once whenever the grouping word equalled a dimension, or was near one: answer with the object query tools, and "A grouping alone is no answer: ask the user which number they mean." A client told both asked, and computed nothing. + + - **`list_datasets` `nextStep.note`** (`@objectstack/service-analytics`): the "which number is meant" sentence is written only when every word sent is a grouping (it equals a dimension, or has only dimensions among its candidates). With an unknown word beside it, the note carries that word's labelled fallback, then one closing sentence that leaves the question to the case only the client can see: "Only when the question has no word for a thing measured, ask the user which number they mean instead." (the unknown word may be a filter value, as in "break it down by stage for the west region"; the server sees words, not which of them names the number). `decision`, `terms`, `matches` and `candidates` are what they were. Unchanged: a word that equals several measures, and a word with a measure among its candidates (one candidate included), are still asked about and never selected. + - **`list_datasets` description**: the sentence "A dimension match alone picks a grouping, not a number: a measure must still match." now reads "A dimension match picks a grouping, not a number: when the question has no word for a thing measured, ask which number is meant; beside a word for a thing measured that falls back, ask nothing and take the fallback." + - **`objectstack-ask` skill, step 2** (`@objectstack/skills`, and the copy `GET /mcp/skill` serves from `@objectstack/mcp`): the row "Only a dimension matches" becomes "No word for a thing measured, only grouping or filter words", and the fallback row says the fallback is taken without asking, whatever a grouping word or another word matched. The sentence under the table that said the same about another word's matches is cut, since the row now holds it. + - **`objectstack-ask` skill, step 1**: a term keeps its counting head ("number of deals", not "deals"), so a phrase the dataset's owner declared as a synonym is sent whole and can equal its one measure. + - Four eval cases (21 to 24) cover the fallback beside a grouping candidate, the fallback beside a dimension match, the whole counting phrase, and a question with a grouping and a filter value but no word for a thing measured, which is asked which number is meant. + + The skill file is 2 bytes shorter than before (1875 tokens by the catalog's count, before and after). +- 8c18a36: test(skills): the `objectstack-ask` eval cases cover a matched measure beside a grouping word that names nothing + + Clause-②: no + Metadata-protocol: none + + Two changes to the eval fixtures of the `objectstack-ask` skill (`evals/metric-selection-fallback.json`, which ships inside the catalog and is inert in a consumer install); the skill text and the page at `GET /mcp/skill` are unchanged. + + - A new case, 20: the word for the thing measured equals one measure, and the grouping word matches nothing in any dataset and has no candidates. The expected answer computes the measure through `query_dataset` and cites its source, takes the breakdown by that grouping from the object tools (`describe_object`, then `aggregate_records`) under the line saying it is not from a governed metric (非指标口径), and asks the user nothing about the word. This is ADR-0149 D3 rule 2 for the measure and rule 4 for the word, as `list_datasets`' `nextStep.note` already writes it; the skill already says to follow that note and to go to step 4 for a word with no match and no candidates, so no rule and no skill sentence is added. + - Case 19 (a reply to an ask-back that names another word) now also forbids the `list_objects(` call spelling, so an answer that starts the object-query fallback at its first call no longer passes by mentioning `list_datasets`. +- d6ce9ba: docs(skills): the `objectstack-ask` skill says what the client does after the user answers an ask-back + + Clause-②: no + Metadata-protocol: none + + Step 2 of the `objectstack-ask` skill, and the page at `GET /mcp/skill` that is generated from it, told a connected client to ask which reading the user meant and stopped there. It now carries the turn after the answer: an option is used only once the user picks it, and is then computed by its exact name as step 3 says (`query_dataset`, with the source cited from the tool's answer); a reply that names another word ("no, I mean ARR") starts at step 1, a new `list_datasets` lookup with that word, before anything else; a user who only picks none of the options gets step 4, the object-query fallback with its label. This is ADR-0149 D3 rule 1, rule 2 and rule 4 applied to the user's reply; no rule is added. The another-word case is also part of the ask-skill iteration loop (Part of #34996, item a of its third round). + + Four restatements are cut from the same file, each keeping its other home, so the skill does not grow: "and in the user's language" in step 1 (beside "Do not translate or reword a term"), "a fragment's matches are not the user's" in the same bullet (beside "a match on a word you supplied is your reading, not the user's"), the "by stage" example and "You still need a measure match" in the grouping row of step 2, and "use none of that word's candidates until the user answers" under the step 2 table, which the new sentence now states for every option. `packages/mcp/src/ask-skill.generated.ts` is regenerated from the skill; no code path changes. +- 475ae46: docs(skills): objectstack-ai teaches that an AI-gated action guards its own door only, and pairs an irreversible transition with a lock on the field it changes; the tool-name ladder names its fourth source and the MCP prompts paragraph names `mcpPrompt` + + Clause-②: no + Metadata-protocol: none + + objectstack-ai's Common Pitfalls gains "Gating the action, not the state". `ai.requiresConfirmation` guards the action's door, and an agent can still write the same field with `update_record` or any data write. An irreversible transition is a gated `script` action, whose body writes elevated, over a field a non-system write cannot set. `readonly: true` binds every non-system caller (the value is stripped); a field permission without `editable` (refused `403`) binds only a caller no held set grants it, and Modify All grants it. The body skips the caller's edit right, so the action declares who may run it in `requiredPermissions`. A declarative `operation: 'update'` action and a `flow` action under `runAs: 'user'` write as the caller, so the lock stops them too. `readonlyWhen` and a `state_machine` rule bind the elevated body as well, so neither is the door; a `state_machine` dead-end still makes the reached state final for every writer. objectstack-automation's `references/state-machines-and-approvals.md` points to it. + + The resolution ladder for `skill.tools[]` names four sources: the fourth is `MCP_FILE_TOOL_NAMES`, the MCP door's file tools, resolved only for a skill MCP can offer (`mcpPrompt` not `false`). + + The paragraph on which skills MCP offers as prompts names `mcpPrompt`: `false` keeps a skill for the in-product agents only, never offered over MCP on any connection whatever its binding, and the stdio transport withholds it too; absent or `true` keeps the binding rule. +- 60ed6bd: docs(skills): sixteen eval cases forbid the wrong code spelling, not a mention of its name + + Clause-②: no + Metadata-protocol: none + + A `must_not_contain` entry is matched as a literal substring, so a bare identifier also fails a correct answer that names it as the thing to avoid: `objectstack-ui` `analytics-inline-vs-dataset` case 5 failed an answer saying an ad-hoc react-page chart "doesn't need a `defineDataset`". Sixteen cases whose bundle or reference answer states such a negative now forbid the spelling a wrong answer writes: a call with its paren (`defineDataset(` in that case and `objectstack-data` `hooks-security-seeds-datasources` 4, `definePage(` in `record-page` 2, `getAppBundle(` / `loadAppBundle(` in `objectstack-i18n` `bundles-locales-coverage` 4), a key with its colon or dot (`categoryField:` in `analytics-inline-vs-dataset` 1; `sourceView:`, `disabledMessage:` / `disabledTooltip:` in `views-apps-actions-pages` 5 and 9; `readonlyWhen:`, `assigned_to:` in the data file's 5 and 8; `subDays:` in `objectstack-query` `filters-pagination-search` 6; `permissionSets:` / `permissionSets.` in the i18n file's 6; `pageName:` / `viewName:`, bare and JSON-quoted, in `objectui` `app-composition` 2 and 4) and a quoted literal (`type: 'record_detail'` in the views file's 4; `'admin_full_access'` and a quote-opened `@objectstack/adapter-` in `objectstack-platform` `config-plugins-ops` 7 and 4). Each of the sixteen 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. No prompt, reference answer, `must_contain` entry or skill text changes. +- 09ba0c7: docs(skills): the `objectstack-ask` skill and the `list_datasets` output schema ask back only about a word with a measure among its `candidates` + + Clause-②: no + Metadata-protocol: none + + The `list_datasets` tool description and the MCP `initialize` selection rule already scope the ask-back: "A word whose candidates are all dimensions is at most a possible grouping: never ask about it, and it never stops a matched measure." Two texts a connected client also reads still said to ask about every word with candidates. The skill now carries the same sentence, and the schema description states the same scope in its own words. + + - The `objectstack-ask` skill, and the page at `GET /mcp/skill` that is generated from it. Step 2's `candidates` row is now two rows. A word with a measure among its `candidates` is asked about the same way as a word that matches several measures; with one candidate, the client asks whether it is the one meant. A word whose `candidates` are all dimensions is at most a possible grouping: the client never asks about it, and it never stops a matched measure. So 「按行业看销售额」, where 销售额 matches a measure and 「按行业」 is only near a 行业 dimension, is computed and grouped with no question back. + - `@objectstack/spec`: the description of `ListDatasetsOutputSchema.candidates`, which `list_datasets` serves in its `outputSchema`. It said every candidate is offered for a clarifying question. It now says the clarifying question is for a term with a measure among its candidates, and that a term whose candidates are all dimensions is offered them as a possible grouping, not for a question, and does not stop a matched measure. It states what the candidates are offered for and does not carry the sentence above: the instruction stays in the tool description and the skill. The doc comment of `DatasetTermCandidateSchema` says the same. No shape changes: `candidates` holds the same entries in the same order. + + The new skill row is paid for inside the same file, by removing text that restated another line of it: the `candidates` row's own listing instruction and "Do not pick one." (the row above states both, and the row now says "Ask the same way"), "A word matches nothing, and" in its left cell (step 1 says a word that matched nothing may have `candidates`), and "on the answer" in that step 1 bullet. `packages/mcp/src/ask-skill.generated.ts` is regenerated from the skill and `content/docs/references/ai/dataset-tools.mdx` from the spec; no code path changes. +- 1134519: docs(skills): the hierarchy-scope row and the `os verify` row name the capability advisory, the `plugins[]` wiring check and `os verify --json`'s `capabilities` + + Clause-②: no + Metadata-protocol: none + + `objectstack-data`'s access-depth section now says the hierarchy-relative scopes need the `@objectstack/security-enterprise` plugin in `plugins[]`, not only installed, and that the CLI only advises on a missing or unwired plugin: `os validate` warns, and `os verify --json` lists it in `capabilities`. The same sentence now says the stack, not the grant, declares `requires: ['hierarchy-security']`. + + `objectstack-project`'s `os verify` row now says that `os validate`'s capability findings are advisory there, carried on `--json` as `capabilities`. + + Both files pay for the new text by deleting restatement in the same file: a duplicate link to the security rules that the quick reference already gives, the code comment in the related-title search example, which restated the sentence above it, "so the app never hand-writes it" above the check table (the paragraph under it says so), and "Nothing in its row is checked until someone runs it", which restated the clause before it. Neither file's token ceiling moves. +- 9e4eabb: docs(skills): the `objectstack-ui` routing table sends a refused action's message to its rule + + Clause-②: no + Metadata-protocol: none + + The Actions row of the `objectstack-ui` routing table now names `refusals` in the words of the rule's heading, "refusing by code (`refusals`)", so an agent looking for how an action refuses with a declared code and a translated message opens `rules/actions.md`. First checks 3 loses a clause that restated First checks 1. +- abb40ae: docs(skills): the `objectstack-ask` skill reads `withheldFields`, asks `aggregate_records` for a top or bottom N, and answers "how many" from `totalGroups` + + Clause-②: no + Metadata-protocol: none + + The `objectstack-ask` skill, and the page at `GET /mcp/skill` that is generated from it, now tell a connected client three things. In step 4: a `query_records` or `get_record` answer whose `withheldFields` names a field means the field exists but is hidden from the caller, so the client says it is not visible, never that it is empty; and a top or bottom N is asked of `aggregate_records` with `orderBy` (an aggregation alias or a group key) and `limit: N`, so the database ranks and cuts the groups. In step 6, one bullet covers `truncated: true`: more rows or groups existed than came back, so the client says the result is partial, and cites `totalGroups` (answered by `query_dataset` and `aggregate_records`) as how many groups existed before the cut; a `query_dataset` answer without `totalGroups` has an unknown total, never `rowCount`. A capped `query_records` page keeps stating its own `total`, which the bullet leaves alone. + + The two per-tool `truncated` sentences that bullet replaces are removed from steps 3 and 4. `packages/mcp/src/ask-skill.generated.ts` is regenerated from the skill; no code path changes. +- afbd903: feat(skills): a process skill for running a metadata-app project + + Clause-②: no + Metadata-protocol: none + + The skills catalog gains `objectstack-project`. The domain skills teach how to write each kind of metadata; this one teaches how a change moves through an app project: whether it belongs in the app or the platform, what to write at each stage, what the app tests itself (with `bootStack` from `@objectstack/verify`) and what `os validate`, `os lint` and `os verify` already check, how a platform defect is handled without a workaround, how a change is described for customers, and how to bump `@objectstack/*` and carry customer data across an upgrade with a backfill. Steps that matter only to an app shipped to customers are marked, and the light path is the default. + + A project that already syncs its skills gets the new one on its next `npx skills@1.7.2 experimental_sync --agent <runtime> --copy -y` after bumping `@objectstack/skills`. + + `npm create objectstack` projects now: + + - point `AGENTS.md` at `objectstack-project` in place of its hand-written skill table, which listed nine of the catalog's skills; + - carry a three-line `.github/pull_request_template.md`: what a user can do now, how it was checked, which docs changed. + + Existing projects are not changed. +- 0188989: feat(scaffold): new projects run their tests in CI + + Clause-②: no + Metadata-protocol: none + + `npm create objectstack` projects now run `pnpm test` in `.github/workflows/ci.yml`, after `validate`, `lint` and `typecheck`, so the starter `note.test.ts` and every test you add run on each push. + + `os init -t app` and `os init -t empty` now declare a `test` script (`vitest run`), list `vitest` in `devDependencies`, and ship one starter test (`app.test.ts`, `project.test.ts`) that reads the project's definition, so the same CI workflow passes on a project made either way. To test what the engine does with a record, add `@objectstack/verify` and boot the stack with `bootStack`; the `objectstack-project` skill shows how. + + Existing projects are not changed. To take the CI step, add `- run: pnpm test` after `- run: pnpm typecheck` in your `ci.yml`; a project with no `test` script adds vitest and the script first. +- cf2e321: docs(skills): the data and automation skills name the publish-time findings in place of their trap warnings; the i18n skill drops the `fallbackLocale` workaround for refusal labels; the ai skill names `MCP_DOOR_TOOL_NAMES` as the fourth tool source + + Clause-②: no + Metadata-protocol: none + + **objectstack-data.** A `state_machine` rule that runs on insert declares `initialStates`, or publish refuses it (`state-machine-no-initial-states`); an update-only machine (`events: ['update']`) needs none, since the engine reads them only on insert. `SKILL.md`, `rules/validation.md` and eval 11 say so. The yes/no-flag bullet no longer says "never `required`": on a boolean `required` refuses only `null`, an unchecked box is a value, so it never means "must be checked". A box that must be checked (terms, consent) is a `validations[]` `script` rule, and the bullet carries one. Eval 10 follows, and no longer fails an answer that keeps `required: true`. + + **objectstack-automation.** `SKILL.md`: a node `type` no executor runs is refused when the flow is published to a running server (`flow-node-type-no-executor`); an `http` node with no positive `timeoutMs` has no timeout and raises the warning `flow-http-timeout-missing`. `references/state-machines-and-approvals.md`: `initialStates` is no longer described as optional with a legacy opt-out, and names the same refusal and the same update-only exception; an approval's downstream nodes hang off out-edges labelled exactly `approve` and `reject`, and with one missing or respelled publish refuses the flow (`flow-approval-decision-unrouted`). + + **objectstack-ui.** `rules/actions.md`: a standalone action that declares `locations` and no `objectName` is refused at validate and at publish (`action-no-object-binding`); the fix is `objectName`, or `locations: []` for a headless action. Paid in the same file: three parentheticals of the locations table and some wording of the same paragraph. + + **objectstack-i18n.** Validation, delete-restriction and permission-denial messages name fields and objects in the request's language, as label serving does: a request in `sourceLocale` reads the inline label. The sentence telling an English-authored, Chinese-default app to add `fallbackLocale: 'en'` for that is gone from `SKILL.md` and from eval 11; `fallbackLocale` stays documented as the fallback for a missing translation. + + **objectstack-ai.** Source 4 of the `skill.tools[]` resolution ladder is `MCP_DOOR_TOOL_NAMES`, every tool the MCP door registers (the `MCP_FILE_TOOL_NAMES` file pair included), resolved only for a skill MCP can offer (`mcpPrompt` not `false`). On a `mcpPrompt: false` skill a name only the door serves still warns, with its own hint. + + Paid in place, no token ceiling moves. Cut to pay: in `rules/validation.md` the state-machine example loses three states and its default `severity`; in `references/state-machines-and-approvals.md` three asides (automation being AI-generated, a multi-step review reading as one diagram, a back-edge re-entering its node); in objectstack-automation `SKILL.md` a few words of seven node-table rows; in objectstack-data `SKILL.md` two example state names and a few words of the same bullets. +- 084f606: docs(skills): the objectstack-ui router names action files by the suffix the platform writes + + Clause-②: no + Metadata-protocol: none + + The Actions row of the `objectstack-ui` routing table pointed at `src/actions/*.actions.ts`. The metadata type registry declares `**/*.action.ts` for actions and `os generate action` writes `src/actions/NAME.action.ts`, so an agent reading a project's actions by that glob missed every generated file. The row now names `src/actions/*.action.ts` first and `*.actions.ts` second: a project loads its actions through the barrel its `objectstack.config.ts` imports, so a plural file the barrel names loads as well. + + Trap 3 keeps its pointer to the Dashboards rule and drops the list of widgets, datasets and charts after it, which the routing table already sends to that rule. +- bc75bcd: docs(skills): `objectstack-platform` says which declared capabilities fail the boot and which only warn + + Clause-②: no + Metadata-protocol: none + + The "Declaring is a demand" rule taught that any capability an app declares in `requires` with its provider package absent is a hard boot error. `os serve` does that for the tokens of the provider table and for `ai` / `ai-studio`. A declared enterprise or cloud token (`hierarchy-security`, `ai-seat`, `governance`, `audit-compliance`, `access-policy-console`) with no provider only prints a warning and the boot goes on; for `hierarchy-security` the hierarchy-relative scopes then fall back to owner-only. The rule now says so, so an agent no longer reads a clean boot as proof that those scopes are enforced, nor tells a user the app will refuse to start when it starts with narrower visibility. + + Two restatements in the same file were cut to pay for the sentence. +- 0ca5218: docs(skills): a generated platform catalog, and `objectstack-project` asks "does the platform ship it?" before any new object, field or flow + + Clause-②: no + Metadata-protocol: none + + `objectstack-project` gains `references/platform-catalog.md`, generated from `@objectstack/spec`: the platform objects an app would otherwise build (users, attachments, comments, the audit trail, notifications, mail, exchange rates, imports, approvals, sharing, queues, webhooks, settings), each with what it replaces and how the app reaches it; the three value domains and the field names that should declare them; every `requires` capability switch with what it mounts; the master data that stays with each app; and a short Planned section whose rows are marked not available and link to their contract. + + Its §0 asks a third question: check the catalog before adding an object, a field or a flow; use what the platform ships; when it is absent and a second app would copy it, file a platform card and build the app's own meanwhile, marked `// PLATFORM-CANDIDATE: <link>`. §5's bump sweep now retires those markers beside the `PLATFORM-GAP` tests. A defect (§3) is still never worked around; the new question is about a missing capability. + + `objectstack-data`'s currency paragraph now teaches `valueDomain` for a time zone (`iana_time_zone`) and a country (`iso_3166_alpha2`) beside the currency code. + + Six new eval cases (an attachments table, a business-hours calendar, a change-history table, a free-text unit, a country and time zone, an exchange-rate table) expect the platform object, the value domain, or a platform card with the marker. +- 3d6dea2: feat(formula): `addWorkingDays()`, `workingDaysBetween()` and `addWorkingHours()` count with the organization's working calendar (ADR-0157 D4) + + Clause-②: yes (widening) + Metadata-protocol: added — a formula field's or a stored field's `expression` may now call `addWorkingDays(...)`, `workingDaysBetween(...)` and `addWorkingHours(...)` + Skills-docs: updated here — skills/objectstack-formula/SKILL.md teaches the three functions and eval 8 of skills/objectstack-project/evals/project-process.json exercises them (the card's order names both) + + Not released alone: it ships in the same release as the working calendar service and objects (#35355) and the approval escalation's working-time clock (#35357), ADR-0157 D4. + + - **Three formula functions** (`@objectstack/formula`). `addWorkingDays(day, n[, code])` answers the calendar day `n` working days after `day` (before it, for a negative `n`); `day` itself never counts and `0` answers `day`. `workingDaysBetween(start, end[, code])` counts the working days after `start` up to and including `end`, negative when `end` is earlier, and is the inverse of `addWorkingDays`. `addWorkingHours(start, hours[, code])` answers the instant `hours` of working time after `start`, counted as elapsed time in the calendar's time zone (D11); a start outside working time begins at the next working period. All three step over the calendar's weekends and holidays and onto its make-up working days. Without `code` a call counts with the organization's default calendar; `code` names a calendar and is written as a quoted literal. They join the advertised standard library (`CEL_STDLIB_FUNCTIONS`). + - **Where they count** (`@objectstack/objectql`). A `formula` field and a stored field's `expression` count with the record's own organization's calendars, which the engine loads through the calendar service before it evaluates them: only the calendars the expressions name, once per organization per read, from the service's cache. A formula field counts again on its next read after a calendar edit; a stored due time keeps the value of its last write. + - **When the calendar cannot answer** (D8). With no default calendar in the organization, a code the organization has no calendar for, or a count that reaches past the span the calendar is maintained for, the formula reads `null` and the server logs one line naming the object, the field and the reason. A stored field's `expression` stores blank and the write goes through; the blank stays until that record's next write, and a write made while the calendar refuses blanks a value that was valid before. Nothing counts on the weekly pattern or the wall clock instead. + - **No calendar arithmetic as a filter.** A query filter, a sharing rule's condition and every filter compiled from CEL refuse the three functions with a message that prescribes the stored due-time field (D6). + - **Build refusals** (`@objectstack/lint`). `os build` / `os validate` refuse the three functions at every expression site but a formula field's and a stored field's `expression` (validation rules, visibility, action conditions, flow conditions and values, sharing rules, a field's expression `defaultValue` and a seed value), and refuse a calendar code that is not a quoted literal, with a branch between literal calls as the way to pick a calendar per record. + - **Forms** (`@object-ui/core`). A form does not compute a formula that calls one of the three: its calendar is loaded for the server's read, never handed to the form, so the field is unservable there as on the server's write-path check. + - **Teaching** (`@objectstack/skills`). objectstack-formula documents the three functions; the platform catalog moves working-day formulas from Planned into what the platform ships; the project-process eval for business-hours SLAs now expects the functions. +- d1ebe86: docs(skills): the dashboards rule says a drill on a relationship-path dimension offers no "Open in list" link today + + Clause-②: no + Metadata-protocol: none + + objectstack-ui's `rules/dashboards.md`, Drilldown: the **Escape hatch — "Open in list →"** bullet said the drill drawer's header always links to the object's full list page. It now adds the exception: today a dimension whose field is a relationship path (`account.industry`) drills into the drawer only, with no link. The drawer still lists the records and a row still opens its record. The list page's `filter[...]` URL has no spelling for a condition on a related record, so the console offers no list destination for that drill instead of a wider list. + + The Reports paragraph of the same section loses its closing clause ("peek the records, click a row to open one, or "Open in list →" for the full list page"). It restated the three bullets above it and repeated the same promise; the paragraph still says reports drill the same way through the identical drawer. Removing it pays for the new sentence: the file is 2 bytes smaller. + + `content/docs/ui/dashboards.mdx` states the same exception in its Drill-down section and in the renderer note below it. No code path changes. +- 908d56c: docs(skills): the data, query and ui skills teach five landed refusals and behaviours + + Clause-②: no + Metadata-protocol: none + + Five pieces of published skill text, one per landed behaviour the skills did not teach. Each comes with its own eval case. + + **The `{current_iso_week}` period key.** objectstack-query's `rules/filters.md`, section "Date Macros", now names the period key beside the date macros and the session tokens. `{current_iso_week}` (or `${current_iso_week}`) resolves to today's ISO week key, `YYYY-Www`, in the workspace time zone: Monday-start weeks, the ISO week-year at year edges. It is text, for a text field that stores week keys. A `date`, `datetime` or `time` field refuses it with `INVALID_FILTER` / 400, as it refuses the literal key; a date dashboard filter's `defaultValue` and `calendar.initialDate` refuse it too. On a date field write `{current_week_start}` / `{current_week_end}`. The section also names `resolveFilterPlaceholders()` as the client resolver for all three vocabularies and `isKnownFilterToken()` as the one spelling check. One eval case covers the text-field / date-field split. + + **A hook or job `js` body that does not compile is refused.** objectstack-data's `references/data-hooks.md`, "Sandbox restrictions": + + - A new bullet says a `js` source is compiled, without being run, inside the `(async (ctx) => { … })` wrapper the runtime runs it in, where `ctx` is already declared. `const ctx = ctx.input || {};` (or `let ctx`, one name declared twice, any syntax error) is `hook-body-does-not-compile`: an error from `os validate`, `os build`, `os lint` and a runtime hook save (`422 INVALID_METADATA`), naming the hook, the `SyntaxError` and its line. The fix is to use `ctx` as it is or rename the local (`const input = ctx.input || {};`). A job's `js` body runs in the same wrapper and is `job-body-does-not-compile` from the three commands. A regular-expression pattern the checking engine refuses is a warning: the runtime may accept it. + - Six restatements in the same file were removed to pay for the new text; the file is four lines shorter and no larger in tokens than before. + + `evals/hooks-security-seeds-datasources.json` gains one case on the refusal and its fix. + + **A seed record with a blank key field is refused at load, and a saved seed naming an unknown object is refused 422.** objectstack-data's `references/seeds.md`: + + - "`externalId` selection" says every record carries a value for each `externalId` field (each field of a list, or `name` when the seed names none), and that a record leaving one blank (no value, `null` or `''`; whitespace is a value) is refused at load in every mode: the load result names the object, the record index, the field and the fix, and the other records still load. The `externalId` row of the field table points at it. + - The note under the field table says a `seed` saved at runtime names its `object` itself, and that one resolving to nothing is refused with `422 INVALID_METADATA` at `object` ("which is not defined"). The fix is the object's full name (`crm_lead`, not `lead`) or creating the object first: a draft of it is enough for a draft seed, a live seed needs it published. The `object` row points at the note. + - Three restatements in the same file were removed to pay for part of the new text: the `columns` row's shape literal, the one-row best-practices table (now a sentence) and the second telling of what a refused seed value leaves behind. + + `evals/hooks-security-seeds-datasources.json` gains one case on each refusal. + + **A `master_detail` child is a record-page body table by default.** The record page draws a `master_detail` child as a full-width body table whenever its FK declares no `relatedList`. The skills still tied that to `inlineEdit`. They now teach the rule the runtime applies. + + - objectstack-data's `rules/relationships.md`, "Detail-page related lists": a `master_detail` child is a body table by default and a `lookup` child is a panel. `inlineEdit` governs entry in the parent's form only. The `relatedList` list reads `'primary'` (the `master_detail` default), `true` (the `lookup` default) and `false`. The example no longer writes `inlineEdit` and `relatedList: 'primary'` on a `master_detail` field to get the table. + - objectstack-ui's `rules/record-page.md`, step 2: the same defaults, the body table is drawn after the open field sections (it used to say after the first one), and "put the tasks first" is the parent's `relatedLists`. The example field drops its `relatedList: 'primary'`. + - objectstack-ui's `evals/record-page.json`, case 1: the expected answer adds no placement flag to a `master_detail` field, and an answer that authors `inlineEdit` fails the case. `evals/README.md` follows. + + Both of those rules files are shorter than before, and neither one's token ceiling moves. +- a64c3b8: Clause-②: no + Metadata-protocol: none + + `objectstack-ui` actions rule: no bulk body receives `input.selectedIds`. A name in the list view's `bulkActions` runs the action once per ticked row, its body reading `ctx.recordId` (how the example now writes rows); only a `bulkActionDefs` entry with `operation: 'custom', execution: 'aggregate'` runs it once, the ids in `input._selectedIds`. Also: the new-tab example's `target` uses `${ctx.recordId}` on `record_header`. +- c4d6acc: Clause-②: yes — widening: one new read on the draft door behind the same `metadata:write` grant and `manage_metadata` check; no save, publish or existing read changes, so nothing accepted today is refused. + Metadata-protocol: none + + feat(runtime): the MCP draft door answers a metadata type's contract + + - **`list_metadata_items` takes an optional `contract: true`.** The reply then also carries `contract`, read from the same entry `GET /meta/types` serves for the type. By default it is the lean form of the type's JSON Schema: the `required` keys, and for each top-level key its type, a short enum and a one-line description, where `drill` names the JSON Pointer of any key with nested structure, plus the type's `createSeed`. A client that cannot read files can now see which keys a type accepts and which it requires before its first save, also for a type that has no item in the environment yet. A type with no JSON Schema answers `schema: null` with the reason. The read is admitted as the list is: the `metadata:write` scope and the user's own `manage_metadata`, the type-level read admission, and the unknown-type refusal. Without the flag the reply is unchanged. + - **`contractPath` drills into that schema.** With `contract: true`, a JSON Pointer such as `/properties/fields` answers the full schema at that pointer. `contractPath` without `contract: true` is refused with a validation error, and so is a pointer that does not resolve, with an error that names the pointer and the keys found there. + - **No `contract` takes more than 24 KiB of the reply,** so the largest types (`object`, `view`, `page`) fit an MCP client's tool-result limit. A lean form still over that size drops its descriptions first and says `truncated: true`. A sub-schema over that size is answered in its lean form marked `truncated: true`, so the client can drill again. + - **`objectstack-mcp-build` skill, step 3** names that read where it said to copy a published item of the same type: read the lean contract, drill into the key you write with `contractPath`, and let the save check you. The save is still the final check. +- 9a28a48: docs(skills): objectstack-automation's `references/state-machines-and-approvals.md` says a reject recorded through `ApprovalService.decide()` or `POST …/reject` always carries a non-blank `comment`, its reason, else `400 VALIDATION_ERROR`. Text only; the outputs paragraph gives up a restatement to pay for it. + Clause-②: no + Metadata-protocol: none +- 7ba22bb: Clause-②: no + Metadata-protocol: none + + `objectstack-query`'s description no longer claims a records query or aggregation sent over MCP, and its "Not for" names `objectstack-ask` for a business question answered from the app's records (a number, ranking or governed metric). Query trigger case 3 now asks for an aggregation written in server code; `objectstack-ask` gains a negative trigger case for a metadata change asked over MCP. +- 4c50ec7: Clause-②: no + Metadata-protocol: none + + The `objectstack-ui` skill teaches how an object's list opens a record after `navigation.mode` was deprecated there: + + - Record-page rule, step 5: on an object's list the record's name opens the full page and the hover icon beside it opens the drawer. `navigation.mode` is deprecated there: `drawer`, `page` and `new_window` change nothing, so the key is omitted; `none` still means rows open nothing (prefer `preventNavigation: true`); a page block's `navigation` still honours every value. The step no longer teaches `navigation: { mode: 'page' }` as the way to open the full page. + - Step 6 no longer lists the Display menu's Open records choice or the drawer's full-width state among the reader's own choices: both were removed. + - The navigation rule's Surface bullet states the same rule in place of "`page` only by declaration". + - `SKILL.md` principle 5 says how a record opens from an object's list is not authored, in place of "one list-view key"; its Where-to-go row for the record page no longer reads "drawer or page". + - Eval `record-page` case 2 ("open contracts as a full page, and beside the list") now expects nothing to be authored: it requires the answer to name the icon and forbids a `mode: 'page'` declaration. The case has a new hash, so `skill-evals --regrade` sets it apart from a round recorded before this change. +- f644321: Clause-②: no + Metadata-protocol: none + + The skills teach where an object extension's additions go on the object it extends: + + - `objectstack-data` Object Extension Model: `place` puts the extension's own fields, groups and child lists after (or before) a named item of the target, where the target declares `fieldGroups` / `relatedLists`. Example: `place: [{ field: 'tax_id', group: 'basic', after: 'industry' }, { list: 'acme_contract', after: 'crm_opportunity' }]`; a group of the extension's own is `{ group: { key, label }, after }`. + - `objectstack-ui` record-page rule: on a parent that declares `relatedLists`, a child list another package adds still shows, after the named lists or where that package's extension places it. The rule no longer says such a list is hidden until the parent names it. + - Eval: a new `objectstack-data` case places an add-on package's field after Industry in the account's Basic group and its child list after the Opportunities tab. +- 337f435: Clause-②: no + Metadata-protocol: none + + The record-page skills teach the parent-declared record page: + + - `objectstack-ui` record-page rule: the parent's `relatedLists` is the tab list. Without it nothing changes; declared, only the named lists show, in order, with the attachments, approvals and activity tabs named by object (`sys_attachment`, `sys_approval_request`, `sys_activity`), and an entry `{ list, label, columns }` titles one list. "Put the tasks tab first" lists every tab to keep, tasks first, because a list naming only the task hides the rest. A child list another package adds still shows, after the named lists or where that package's extension places it. + - The same rule's step 1 no longer teaches a stage bar or a key-field strip: the stage is the status tag beside the title, whose menu moves it, and `highlightFields` feed hover cards, pickers and related-list columns. A field group lists its own members in `fields`. The wide full page pins the details left beside the tabs, unless the details hold a child table or there is no other tab; the right summary rail and its switch are gone from the text, and the details column's dragged width joins the reader's own choices. + - A `master_detail` child is a tab by default (`objectstack-data` relationships rule, the record-page rule and an eval); a parent field group naming the child list places its table among the fields, written only when asked, and the list keeps its tab too unless a declared `relatedLists` leaves it out. + - `objectstack-data` field-groups example lists each group's members in `fields`; `objectstack-ui` navigation names `fieldGroups` alone. + - Evals: the tasks-first case now writes the full tab list; new cases remove the attachments tab, place a Tax ID field after Industry in its group's list, and put a quote's line items above its amount section. +- e606eff: Clause-②: no + Metadata-protocol: none + + The automation skill teaches the approval escalation clock: `escalation.clock: 'working_time'` counts `timeoutHours` as working hours on a working calendar (the `escalation.calendar` code, else the organization's default, else refused), a calendar that cannot count the deadline holds the escalation and shows why, and `calendar` without `clock: 'working_time'` is the lint error `approval-escalation-calendar-without-working-time`. The row no longer says the platform ships no business-hours calendar. The data skill's hook note calls an hours-table deadline wall-clock hours and points at the approval clock. +- 72b7f13: Clause-②: no + Metadata-protocol: none + + The platform catalog (`objectstack-project/references/platform-catalog.md`) now lists working calendars as shipped. `sys_work_calendar` and `sys_work_calendar_exception` have rows beside `sys_exchange_rate`: each organization keeps its calendars and holidays in Setup, and an approval's `escalation.clock: 'working_time'` reads them. An app no longer declares its own calendar or holiday object. The Planned section keeps only what is still missing: no formula reads a calendar yet. +- 1d934ff: Clause-②: no + Metadata-protocol: none + + The platform catalog (`objectstack-project/references/platform-catalog.md`) now lists units of measure as shipped. `sys_unit` has a row beside `sys_exchange_rate`, and the row names the declaration that uses it: `unitConfig` on a `number` field (`unitMode: 'fixed'` with `unit`, or `'record'` with `unitField`) or on a `text` field that holds a unit code (`unitMode: 'code'`). A stored code is a standard UN/ECE Rec 20 code or one of the organization's own units, added in Setup, so an app no longer builds a unit table or a unit picklist. The Planned row narrows to what is still missing: showing the unit beside a quantity, totals per unit and conversion. The page no longer describes an interim unit field, and `objectstack-data` eval 22 expects the shipped answer. +- 1d06026: docs(skills): objects carry a colour from the nine-name palette; an object navigation item draws its object's colour tile + + Clause-②: no + Metadata-protocol: none +- ed4d322: docs(skills): the data skill teaches the three permission axes, `viewAllFields` and the sensitivity tiers + + Clause-②: no + Metadata-protocol: none + + objectstack-data's `rules/security.md` now teaches the permission model in three axes. Object permission (`allowRead`, `allowCreate`, `allowEdit`, `allowDelete`) decides whether the caller can use the object at all. Record scope (`viewAllRecords`, `modifyAllRecords`) widens which records the caller reaches, and from v19 those two bits open no field. Fields are visible by default, so an author writes only the exceptions: nothing for an ordinary field, `fields` rows in the sets that differ for a position-dependent one, and `requiredPermissions` on the field itself for a high-sensitivity one (salary, ID numbers), with `maskingRule` where a partial value is needed. That gate is strictest-wins over every field row, `viewAllFields`, View All and Modify All. + + A new section teaches `viewAllFields: true` as the way to say "this set reads every field", for admin-like sets: a read vote on every field, fields added later included, and never an edit vote; the set's own `readable: false` row beats it; it grants no object access and widens no record; on the `'*'` entry it also votes on the fields of private-posture objects, which a plain `'*'` does not grant; it is authored in metadata, as Studio's permission matrix keeps the key and has no control for it. + + `evals/hooks-security-seeds-datasources.json` gains two cases: a read-everything auditor set written with `viewAllFields`, and salary and ID-number fields gated with `requiredPermissions` and `maskingRule`. Two restatements in `rules/security.md` were removed to pay for part of the new text (the "Locks, never grants" bullet and the recipe link of the `when` section). + + `@objectstack/spec`: two docblock sentences in `src/security/permission.zod.ts`, comments only. The `viewAllFields` docblock now says the key changes nothing on an object entry that carries View All or Modify All (it said "on a set"), and the `FieldPermissionSchema` docblock names `viewAllFields` beside the super-user bits as a voter in the field merge. No schema, description or generated artifact changes. +- d2fc055: docs(skills): the data skill's seeds reference says a seeded roll-up value is never stored, not stored as written + + Clause-②: no + Metadata-protocol: none + + objectstack-data's `references/seeds.md` kept the rule "never seed the roll-up" but gave a reason that stopped being true: it said a seeded `amount_paid` is stored as written and a cap on payments then refuses the payments it counts. The seed loader takes a value written for a `summary` field out of the record before the write, logs one warning per dataset naming the fields, and the child rows compute the roll-up. The sentence now says that. The record-order point stays: a rule reading a parent roll-up sees the total earlier rows left. The matching eval case in `evals/hooks-security-seeds-datasources.json` expects the same model. Text only; the sentence pays for its new wording in its own bytes. +- 7ae5e07: Clause-②: no + Metadata-protocol: none + + The `objectstack-ui` actions rule teaches the per-record form for a bulk body that writes rows, now that the action doors read a selection in the caller's scope before the action runs: + + - A body that writes each selected row is declared `execution: 'perRecord'`, wired by the list view's `bulkActions: ['<name>']`, and writes the row it is handed (`ctx.record`, `ctx.recordId`); a row whose run throws is listed with its message. The rule no longer teaches an `execution: 'aggregate'` handler that writes rows one by one and resolves with `{ succeeded, failed }`. + - On an aggregate dispatch (one run for the selection) a script body or a flow receives the ids under the built-in key `params._selectedIds`, at most 5000 and only ids the caller can read: one the caller cannot read refuses the whole call with `404 RECORD_NOT_FOUND` before it starts. + - What stays of `BulkActionResult` is how an aggregate return value is read: one with a top-level `succeeded` or `failed` is read as a `BulkActionResult`, and any other form of those members is reported as unreadable. + - Eval `views-apps-actions-pages` case 23 (a bulk archive where some rows refuse) expects the per-record form: it requires `perRecord`, `bulkActions: [` and `ctx.record`, and forbids a returned outcome object (`succeeded:`, `{ succeeded`, `{ failed`). The case has a new hash, so `skill-evals --regrade` sets it apart from a round recorded before this change. +- 934ac07: docs(skills): `objectstack-automation` teaches that clearing a state-machine field is a transition to `''`, and how to make a state clearable + + Clause-②: no + Metadata-protocol: none + + The state-machine notes in `references/state-machines-and-approvals.md` gain one entry: an update that sets the state field to `null` or `''` is judged from the stored state as a transition to `''`. A state meant to be clearable lists `''` in its targets, e.g. `paused: ['open', '']`; from any other state the machine lists, the clear is refused with `invalid_transition`, and the refusal's `constraint` carries `to: ''` beside `from`. A stored state that is not a key of `transitions` stays unguarded, as before. + + This is the behaviour `@objectstack/objectql` already ships; the skill only teaches it. + + Paid for by deletion in the same file, with the token ceiling unchanged (5936): the wording of the section's intro and of six neighbouring notes was shortened, each keeping its fact — one rule per field, `initialStates` gating insert, guards and reactions living outside the machine, the introspection route, the unguarded unlisted `from` state, and the `record.<field>` scope of sibling predicates. + + Ride-along, same theme: in the `objectstack-data` eval `objects-fields-relationships.json`, the `employee` lifecycle case's expected answer declared a `state_machine` with `transitions` only, which publish refuses for a machine that runs on insert (`state-machine-no-initial-states`). It now declares `initialStates: ['draft']` with the reason, and the case's `must_contain` requires `initialStates`. +- 59b5779: Clause-②: no + Metadata-protocol: none + + `objectstack-ui` record-page rule: an authored `kind: 'full'` record page is drawn on the desktop full page only. A phone and the side drawer draw the standard page (the object's declarations plus any slotted page), and no key keeps a full page there; a page named in the URL, such as a print page, still draws everywhere. The standard page draws no `record_section` action, so an action that must show on a phone or in the drawer also lists `record_more` in its `locations`. The drawer step now says the drawer always shows the standard page. +- 65ce798: docs(skills): `objectstack-formula` says that `==` / `!=` between a list-valued field and a scalar is refused, and teaches the membership test each site takes + + Clause-②: no + Metadata-protocol: none + + The CEL cheat-sheet of the `objectstack-formula` skill gains a note under its operator table: `==` / `!=` between a list-valued field (`multiselect`, `checkboxes`, `tags`, or a `select` / `radio` / `lookup` / `user` / `file` / `image` field with `multiple: true`) and a scalar literal is refused by the validator as `list-equality` ("list compared with a scalar"), because CEL compares the whole list and the expression answers one constant on every row. The note shows the refused form and the rewrite the refusal prescribes at each site, null-guarded (`in` faults on a `null` list) and parenthesised whole, for `==` and for `!=`: + + - where the expression is evaluated as CEL: `(has(record.tags) && record.tags != null && 'vip' in record.tags)` and `(!has(record.tags) || record.tags == null || !('vip' in record.tags))`; the `has()` covers a sparse action row and a `previous` that is `null`; + - a bare name in a flow condition: `(tags != null && 'vip' in tags)` and `(tags == null || !('vip' in tags))`, since `has()` takes no bare name; + - a sharing rule's `condition`, which is compiled to a query filter: `(record.tags != null && record.tags.contains('vip'))` and `(record.tags == null || !record.tags.contains('vip'))`, since `has()` and an `in` with the literal first do not lower there. + + This is the behaviour `@objectstack/formula` already ships; the skill only teaches it. + + Paid for by deletion in the same file, with the token ceiling unchanged (6008): twelve restatements were cut, each keeping another home — the `has()` section's opening sentence (the cheat-sheet `Key existence (NOT null-safety)` row and the paragraph that follows it), the Salesforce-flavor block's `os build` / runtime clause (the `Verify your work` section), the sentence saying hook conditions and validation predicates bind the same two roots (the `previous` table under it), the sentence saying record-change flow triggers ride the same dispatch (the same table's `after*` row), the closing "It is a refusal" sentence of the 10 000-row paragraph (that paragraph's own "the platform refuses"), the translation table's `"abc"` row (the cheat-sheet `String literal` row), the stdlib intro's "there is no `src/` to read" clause (the same sentence's "ships `dist` only"), the "use `daysBetween` / two `datetime(…)`" sentence of the date-arithmetic note (the table under it), the sub-day-offset row's "the calendar helpers land on UTC midnight" (the `today()` / `daysFromNow` / `daysAgo` rows), the "`previous.status`, where `previous` is `null`" parenthesis of the unevaluable-condition warning (the `previous` table's insert row), the second transition-condition example (the section's first example, the same shape), and the first half of the translation table's `previous.x` warning (the `OLD.x` and `ISCHANGED(x)` rows above it and the same insert row). + + Two eval cases exercise the note: a hook `condition` over a `tags` field (the CEL spelling) and a sharing rule `condition` over the same field (the `.contains()` spelling). +- 99fbaa6: docs(skills): entering line items in the parent's form is taught as a parent field group naming the child, not `inlineEdit` alone + + Clause-②: no + Metadata-protocol: none + + objectstack-data's `rules/relationships.md` (Inline Editing), objectstack-ui's `rules/list-views.md` (Master-Detail Forms) and the objectstack-ui `SKILL.md` trap list taught that `inlineEdit: true` on the child's `master_detail` field puts the child grid into the parent's form. They now teach the rule the platform applies: the parent's form enters a child's rows where a field group of the parent names that child (`fieldGroups: [{ key: 'lines', label: 'Lines', relatedList: 'invoice_line' }]`), `inlineEdit` only picks how those rows are edited, and without the group the child is a tab and the form has no lines. Text only; each file's old wording is cut to pay for the new. Two eval cases that expected the old answer are corrected and objectstack-data gains one case for form entry of quote lines. +- 6925b87: docs(skills): the lint table and the `repeater` row name the parent field group, not `inlineEdit`, as what places a child's rows + + Clause-②: no + Metadata-protocol: none + + objectstack-data's `references/lint-rules.md` said three `os lint` rules trigger on `inlineEdit`. They read the parent's field groups, and the rows now say so: `relationship/line-items-inline-edit` catches a line-item `master_detail` child that no parent field group places (`fieldGroups[].relatedList`), `relationship/inline-edit-needs-bulk` a placed child whose parent or child withholds `'bulk'`, and `relationship/association-inline-edit` an association a group places. `rules/field-types.md` pointed a typed list at a child object with `inlineEdit: 'grid'`; it now points at a `master_detail` child that a parent `fieldGroups[].relatedList` names. Text only; the rule ids and the lint are unchanged, and each file pays for its new wording in its own bytes. +- 0a6af56: docs(skills): the data skill teaches that a predicate update or delete of a `controlled_by_parent` detail writes the rows its by-id writes do + + Clause-②: no + Metadata-protocol: none + + objectstack-data's `rules/relationships.md`, the `writeRequiresMasterRead: true` bullet under "Writes under `controlled_by_parent`": it no longer says the ownership floor (rows you created) binds a predicate update or delete. It now says a predicate (`multi: true`) update or delete writes the rows a by-id write of each would, all matched rows or none, which is what the runtime does since the change noted as "a predicate update or delete of a `controlled_by_parent` detail now writes every row its caller may write by id". The on-behalf-of half is unchanged: the floor still binds an on-behalf-of update or delete, for both users. `evals/objects-fields-relationships.json`, eval 17: its `expected_output` states the same rule; its assertions are unchanged. +- 67154ed: docs(skills): the data skill says a lookup pick copies a currency amount only between fields in the same currency + + Clause-②: no + Metadata-protocol: none + + `skills/objectstack-data` described `lookupAutofill` (`rules/field-types.md`) and the line-item grid's catalog auto-fill (`rules/relationships.md`) as unconditional copies. The first now states, and the second points to, the rule the platform applies to a declared pair and to the line-item grid's same-named `autofill` copy: a `currency` amount is copied only between fields in the same currency (a `fixed` code or a per-record one); otherwise the target is left as it was and the form says why. Nothing is converted, so a line in another currency takes its price by hand. The sentence is paid for in the same file by trimming type-table cells that only restated the type name. No behaviour changes. +- 9d70768: docs(skills): the i18n and data skills teach the flow step-name key `flows.FLOW.nodes.NODE_ID.label` and the related-list title key `objects.OBJECT._relatedLists.LIST.label` + + Clause-②: no + Metadata-protocol: none + + objectstack-i18n's SKILL.md, in the paragraph on the keys that sit deeper than their group's `label`, now names the flow step-name key `flows.FLOW.nodes.NODE_ID.label`: a screen is named through its heading `flows.FLOW.screens.NODE_ID.title` and takes a `nodes` key only beside a `title` of its own, `os i18n check` asks for a flow's top-level steps, and a step of one of the `FLOW_TECHNICAL_NODE_TYPES` (listed) is asked only where a decision's branch leads to it. Text only; paid inside the same file by cutting three restatements in the coverage and extract sections. + + The object translation group table gains the `_relatedLists.LIST` row beside `_tabs`: the `label` of an object-form `relatedLists` entry on the parent object, keyed by the entry's literal `list` (a dotted `object.field` is one key); an entry with no `label` has no key and keeps the child field's `relatedListTitle`, else the child's plural label; the unprefixed `relatedLists` spelling is refused, naming the key. objectstack-data's `rules/relationships.md` says the same on the `relatedLists` entry: its `label` translates at `objects.PARENT._relatedLists.LIST.label`, and an entry with none has nothing to translate. One eval case covers both keys. Paid inside each file by cutting restatement; no ceiling of the skills token ratchet moves. +- 38a0081: docs(skills): the data skill teaches field-change values as on by default (`enable.fieldHistory`), no longer as the `trackHistory` opt-in + + Clause-②: no + Metadata-protocol: none + + `skills/objectstack-data/SKILL.md` still gave `enable.trackHistory`, default `false`, as the field-level audit trail. An agent following it added a flag that no longer decides anything about values, or believed history was off. The `enable` table now has a `fieldHistory` row: a changed field's old → new values show on the record's activity timeline unless the object writes `enable.fieldHistory: false` or the field writes its own `fieldHistory: false`; a media or structured field shows values only with `fieldHistory: true`, and a credential field never does. Each value is served per the reader's read rule for that field, and the audit ledger (`sys_audit_log`) keeps its own grant. The `trackHistory` row now says what the flag still does (the ledger view on the record page and the `history` API verb) and that it is not the values switch. + + New text is paid for by cuts in the same file: the `aiReadable` row keeps only what an app author needs (platform objects only, refused at parse on an app object), and nine restating phrases are shortened. No metadata shape changes. +- 159113f: docs(skills): objectstack-ui teaches the board's lane statistic and card settings + + Clause-②: no + Metadata-protocol: none + + The kanban example in `rules/list-views.md` now writes `kanban.summary` in place of the older sum-only `summarizeField`, and sets `showFieldLabels` and `hideEmptyFields` with their defaults (both `true`). One note names the six lane statistics (`none`, `count`, `sum`, `avg`, `min`, `max`), says the four aggregates cover every record of the lane and not only the loaded cards, names the known gap (a board over a lookup field or in a grouped view), and says `summary` takes precedence over `summarizeField`. Text only; restating comments and sentences in the same file are cut to pay for it. +- ceaa70e: docs(skills): the UI skill teaches the New and Edit forms as built from the object's fields and field groups, and `showOnCreate` + + Clause-②: no + Metadata-protocol: none + + objectstack-ui no longer teaches an object's internal create and edit form views, which the Console's create and edit surfaces stopped loading. `SKILL.md` Traps 1 and `rules/list-views.md` "Form Views" now say that New and Edit are built from the object's fields, sectioned by its `fieldGroups` (`collapse: 'collapsed'` folds a rarely filled section) and following the fields' own rules; that `showOnCreate: false` leaves a field off every create surface and is refused beside `required: true`; and that a container's `form`, `formViews.default` and `formViews.create` still parse, steer nothing, and are reported by `os validate` as `form-view-internal-not-loaded`. The two form views that load are kept: a named `formViews` entry an action of type `form` opens (`/forms/:name`), and a public form (`sharing.enabled: true`), taught as before. "Master-Detail Forms" drops the form-view `subforms` override, which is no longer read; the parent field group naming the child and the page block remain. `evals/views-apps-actions-pages.json`, evals 1, 6, 13 and 19: each taught or assumed an internal form view and now expects the object's field groups and `showOnCreate`. +- 92e660d: docs(skills): objectstack-formula says an unlowerable `SharingRule` `condition` fails the build and that the rule is skipped at runtime, instead of saying it aborts the write + + Clause-②: no + Metadata-protocol: none + + The "Surfaces that take an Expression" warning used to group `SharingRule` `condition` with `Hook` `condition` and validation predicates as "aborts the write". A sharing rule's condition is never evaluated on a write: it is compiled to a query filter. One that does not lower to a filter fails the build (`validate-sharing-rule-enforceability`, an `error`), and at runtime the rule is skipped and grants nothing, with one WARN line. The sentence now says so; the `Hook` and validation-predicate halves are unchanged. + + Text only. Two restatements are cut to pay for it under the token ceiling, which is not raised: the translation-table note that `previous.x` fails the write on an insert (it stays in section 5's `previous` table and warning), and the "ride the same envelope" lead-in of the cron and template section (it stays in Core contract). +- c0eecb1: Clause-②: no + Metadata-protocol: none + + The `objectstack-data` skill teaches the whole-arrangement keys of the paired `.custom` package's object extension: + + - Object Extension Model: only the object extension of a base's paired `.custom` package may write `fieldGroups` and `relatedLists`, in the shape an object declares them. A written key replaces that arrangement whole (the owner's and every `place`); an unlisted field shows after the last group, an unnamed tab still shows after the listed ones, and `{ list: 'crm_note', hidden: true }` hides a tab. Outside a `.custom` package both keys are refused at save, publish and install and by `os validate` / `os build`, with the prescription to use `place`. + - Eval: a new `objectstack-data` case moves an installed object's tab arrangement from an add-on package's extension, where it is refused, to the pair's extension, and names `place` as what the add-on package writes. The `place` case no longer says an extension has neither key. + - Five restatements in the same file are cut to pay for the paragraph; each one's content stays in the bundle (`rules/validation.md`, `rules/indexing.md`, `rules/lifecycle.md`, `references/lint-rules.md`, the object JSON example). +- 9e2a4ac: docs(skills): the skills index routes a stepped single-object form to a named wizard form an action opens, and the UI skill's `sections` ladder says New and Edit never read sections + + Clause-②: no + Metadata-protocol: none + + Two passages still taught what the Console's create and edit surfaces stopped doing. `skills/README.md`, "Cross-skill routing": a stepped form over one object that never branches is a named form view (`type: 'wizard'`) that an action of `type: 'form'` opens; an object's own New and Edit never step, because they are built from its fields and `fieldGroups`. `skills/objectstack-ui/rules/navigation.md`, "Record Presentation": the `sections` ladder now says where sections are read (a named or public form, and a page's `record:details` or form block) and that New and Edit never read them, with a link to "Form Views". The ladder's retired `pane` example is gone; a wizard's steps are the example of sections that must enumerate fields. No metadata shape changes. +- ecb85bb: docs(skills): the data skill picks an object's colour by business family and teaches `showOnCreate`; the automation skill routes a stepped single-object form to a named wizard form an action opens + + Clause-②: no + Metadata-protocol: none + + `skills/objectstack-data` told authors to give every object a colour and avoid repeats in one app. With nine palette names any app past nine objects must repeat one, and the platform's own objects are coloured by business family instead. The `color` row now says to group an app's objects into a few business families with one palette name each, gives the platform's families as the worked example (people `blue`, security `purple`, approvals and work `orange`, messaging `pink`, integrations `teal`, reference data and finance `green`, audit and settings `amber`), keeps `red` for an object that is an alert, and leaves an object nobody opens without one. The quick-start object example declares a `color`. + + The data skill's field rules now teach `showOnCreate: false` (a field left off every create surface, refused beside `required: true`), and its Relationships rule no longer points at the `subforms` overrides the UI skill dropped. `skills/objectstack-automation` routes a stepped form over one object that never branches to a named form view (`type: 'wizard'`) that a `type: 'form'` action opens. New text is paid for by cuts in the same files. No metadata shape changes. +- 254e396: docs(skills): objectstack-ui teaches the object's `actionLayout` + + Clause-②: no + Metadata-protocol: none + + `rules/actions.md` gains one section, "Button Order (`actionLayout`)": an arm per scope (`list`, `record`), `pinned` (at most 3 buttons, in order, `[]` pins none) and `more` (the order of the overflow menu, unnamed actions after it), which placements each arm takes and where the `record` arm is drawn (record page, side preview, phone bar, a row's menu order), the list page's `$import` / `$export` as pinned-only built-ins, that `os validate` refuses a name the arm's scope does not place, and that on an installed object only its paired `.custom` package's extension writes the key, arm by arm. Text only; one eval case exercises it. +- b49a264: docs(skills): the data skill teaches `transferBehavior`, the Change Owner cascade of a relationship + + Clause-②: no + Metadata-protocol: none + + objectstack-data's `rules/relationships.md`, Delete Behaviors: one paragraph says what `transferBehavior: 'cascade'` on a child's `lookup` / `master_detail` does (the parent's Change Owner dialog offers to move the child rows its previous owner owns too), when to declare it, that the default is `'none'`, and where parse refuses it: the key on any other type, and `cascade` on a `sys_*` reference, on `multiple: true`, and on a child that does not offer Change Owner itself, such as a `controlled_by_parent` detail. `rules/field-types.md` lists the key on the `lookup` and `master_detail` rows. `evals/objects-fields-relationships.json` gains one case. The new text is paid for by removing restatement in the same files: in relationships.md the two "Incorrect" code blocks become one sentence each, and two `required: false` lines and five comment or prose repeats go; in field-types.md the autonumber example that the Autonumber section already gives and two "embedded" repeats go. +- a03bc4e: docs(skills): the automation skill, the schedule trigger README and the start-node schedule refusals spell only flow shapes the publish checks accept + + Clause-②: no + Metadata-protocol: none + + Ten flow checks of `os validate` and publish (`flow-schedule-timezone-missing`, `flow-condition-option-label`, `flow-node-write-unknown-option`, `flow-subflow-unknown` and the rest) landed without the text that teaches flows. Three of them are warnings and refuse nothing: `flow-schedule-timezone-missing`, `flow-subflow-unknown` (run by the CLI only) and `flow-create-update-pair`. Wording only; no schema, rule or reader changes. + + - `@objectstack/spec`: the three refusals of a start node's `config.schedule` (an empty string, a typed schedule the published schema refuses, a value the readers read nothing from) now offer `{ type: 'cron', expression: '0 8 * * *', timezone: 'UTC' }` as the cron to write. They no longer offer a bare cron string or a cron object with no `timezone`, which `os validate` warns on. The typed-alias hint names `{ type: 'cron', expression: '…', timezone: 'UTC' }`. What is refused is unchanged. + - `objectstack-automation` skill: recipe 1's nightly cron states `timezone: 'UTC'`; the schedule example's comment says a cron with no `timezone` (a bare string) runs in UTC and warns, where it said a bare cron string also works; the `subflow` row says `os validate` warns `flow-subflow-unknown` on any name the stack does not hold, a correct call to another package's flow included, where it said `os validate` passes; the select-label rule says a start condition or a `fields` write that uses an option's label is refused at publish where the options are inline, where it said the flow stages clean, and says a label in a `filter` or an edge condition is never checked and silently matches nothing, where it said a `filter` fails the run. Eval 1's expected answer states the cron's `timezone`, and eval 20's states that warning. No skill file passes its token ceiling: `SKILL.md` gains one line, paid for by shorter wording and shorter table separator rows in the same file, and two node labels in recipe 1 are shortened to pay for the `timezone` key. + - `@objectstack/trigger-schedule` README: the time-relative example's cron states `timezone: 'UTC'`, and the schedule-shapes table is followed by the UTC reading and the warning. +- 144d368: Clause-②: no + Metadata-protocol: none + + `objectstack-data`'s hook reference (`references/data-hooks.md`) no longer says every regex pattern the checking engine refuses is a warning. It now says what the compile rules do: a pattern the runtime refuses too is the same `hook-body-does-not-compile` / `job-body-does-not-compile` error, and only a duplicate named capture group, a modifier group such as `(?i:a)` or a Unicode property name only the runtime knows is a warning (on a host whose Unicode tables are older than 17.0, every property name it refuses). The file stays inside its token ceiling and its line count by tightening the same paragraph: it drops the note that the finding names the hook, the `SyntaxError` and its line, and the spelled-out rename example. +- a10345a: docs(skills): the data and UI skills no longer teach a boolean `inlineEdit` on a master-detail relationship + + Clause-②: no + Metadata-protocol: none + + objectstack-data's `rules/relationships.md`, "Inline-edit form factor": the `inlineEdit: true // auto (default)` line is gone, and the smart default is now described as what an omitted key gets, with a note that a boolean is refused. The spec parse refuses `true` and `false` on a relationship field's `inlineEdit` since 18.7.0; only `'grid'` and `'form'` are accepted, and leaving the key out picks the form factor from the child's shape. `evals/objects-fields-relationships.json` case 25 drops the same `true` from its expected answer. objectstack-ui's `rules/list-views.md`, Master-Detail Forms: the pointer to that section no longer lists `true` beside `'grid'` and `'form'`; it says `'grid'` / `'form'` or left out. +- f588898: docs(skills): objectstack-ui says where `os validate` judges `actionLayout` names + + Clause-②: no + Metadata-protocol: none + + objectstack-ui's `rules/actions.md`, "Button Order (`actionLayout`)": the sentence "`os validate` refuses a name the arm's scope does not place" now says where that holds: on the object, or on an extension of an object the same stack defines. The next sentence, on the paired `.custom` package's extension of an installed object, now says those names are not judged there and that a wrong name draws nothing. The rule itself is unchanged; the text said more than the rule does. Three Add to Campaign example lines that repeated a key another example in the file already shows (`icon`, `successMessage`, `refreshAfter`) and the gloss "(the handler's answer)" on the copy-holes bullet, which the `resultDialog` bullet above it already says, were removed to pay for the new words. +- a1b26ff: docs(skills): the objectstack-project platform catalog lists the built-in `sys_task` and `sys_note` objects + + Clause-②: no + Metadata-protocol: none + + The catalog's "Platform objects an app would otherwise build" section gains a "Tasks and notes" group, so an app that needs to-dos or notes uses the platform's objects instead of declaring its own. Each row says what the object holds, that it carries no link to another record, which list views ship (`assigned_to_me`, `created_by_me`, `all` on `sys_task`; `mine`, `all` on `sys_note`), and that rows are private (a task to its creator and assignee, a note to its creator) while `member_default` grants read, create and edit, not delete, without widening that. The task row spells the navigation entry an app uses: `type: 'object'` with `objectName` and `requiresObject` both `sys_task`. The `sys_comment` row now reads "a comments or record-notes table", since neither new object links to a record. One eval case covers the to-do request. + ## 18.6.0 ### Patch Changes diff --git a/packages/skills/package.json b/packages/skills/package.json index b5eb9d06900..84730221aba 100644 --- a/packages/skills/package.json +++ b/packages/skills/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/skills", - "version": "18.6.0", + "version": "18.7.0", "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 7c9669bba2c..724d213fc21 100644 --- a/packages/spec/CHANGELOG.md +++ b/packages/spec/CHANGELOG.md @@ -1,5 +1,2420 @@ # @objectstack/spec +## 18.7.0 + +### Minor Changes + +- 8236d9b: feat(service-automation)!: a sync-in pull marks the rows the source deleted, and an incremental source states how it learns of a delete + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: none (no skills/ page names `deletePolicy`, `deletedField` or `_sync_deleted_at`; the guide that teaches them is `content/docs/automation/jobs.mdx`, updated here) + + <!-- adr-0087: registered incremental-source-delete-policy-stated --> + + ADR-0153 D3, delete marking (#32062, slice 6). + + - **A pull marks a row the source deleted, and never deletes it.** Under `deletePolicy: 'mark'`, the reading when the key is absent, a pull stamps the platform column `_sync_deleted_at` on a row of a `synced` object that the source deleted, and clears it when a later pull reads the row again. `deletePolicy: 'ignore'` leaves every row as it is. Two detections: + - `deletedField`, on any pull that declares it: a read record whose value in that source field is truthy has its copy marked; every other read record's copy is cleared. + - Absence, on a full pull whose read was complete: every row of the mapping (`_sync_source`) the run did not read is marked. A `datasourceSource` with `full: true` is complete when its windows read to their end and no source row in the job's organization has a NULL watermark; it marks only rows whose copied watermark is at or above `watermark.start`. A `connectorSource` without a `watermark` is complete only under `paging: { style: 'none' }` (one response is the whole set); with no `paging`, or a paging style the pull does not follow yet, it marks nothing by absence. A refused or interrupted pull marks nothing by absence; a row the import runner refused was read, so it is not marked. A record whose `upsertKey` value is blank names no row, so one such record makes the run mark nothing by absence (`unjudged, rows refused`). A row pulled before the provenance columns existed carries no `_sync_source`, so it is no mapping's row: if the source has since deleted it, no pull marks it. + - Two mappings on one target: each marks and clears only the rows whose `_sync_source` is its own; a second mapping is not refused. + - **`sys_sync_run` records it.** New columns: `marked_deleted_count`, `deletes` (`judged`, `by deletedField`, `ignored`, or `unjudged, …` with the reason: `null watermark`, `no paging declared`, `pages not followed`, `rows refused`) and `skipped_null_watermark` (a datasource source's rows with a NULL watermark, counted under the organization predicate; through a plugin driver's row cap a count above the cap is recorded as the cap plus one). The end-of-pull log line says what the run marked and cleared. `job_run_id`'s and `trigger`'s descriptions now say when each is empty. + - **BREAKING: an incremental source states how it learns of a delete.** A `connectorSource` with a `watermark`, or a `datasourceSource` without `full: true`, never sees an absent row, so under `deletePolicy` absent or `'mark'` with no `deletedField` it is refused at parse (`MappingSchema`, so `defineStack` and `os validate`) and again when the pull runs (`400 VALIDATION_ERROR`, reason `delete_policy_unhonourable`). Fix: name the source's soft-delete field (`deletedField: 'is_deleted'`), or write `deletePolicy: 'ignore'`, which is what every pull did before this release. New export: `incrementalSourceDeleteRefusal` (`@objectstack/spec/data`), the rule both doors ask. + - **BREAKING: a `synced` target that withholds the provenance columns** (`systemFields: false`) is refused under `deletePolicy` absent or `'mark'` (`400 mapping_target_refused`): no row of it can carry the mark. Fix: let the platform add its columns, or write `deletePolicy: 'ignore'`. This arm is judged only when the pull runs: `os validate` and `defineStack` do not catch it, so a stack that validates green can still fail every scheduled pull. Migration entry `incremental-source-delete-policy-stated` names both arms. + - A datasource source's `deletedField` must name a field of the source object (`400 source_binding_invalid` otherwise). `deletedField` is read by truthiness: the text `'false'` or `'0'` marks the row, and on a connector source a field the records do not carry reads as falsy on every record and marks nothing. + - A stored `deletePolicy` outside `'mark'` / `'ignore'` (which the parse refuses) is refused by the pull too (`delete_policy_unhonourable`) instead of being read as `'mark'`. + - The liveness rows for `deletePolicy` and `deletedField` on both sources are `live`, and `os validate` no longer warns that nothing reads them. `paging` stays `planned`: the connector paging loop is a later change. + - A connector pull whose target definition cannot be read now says whether the object is not registered or the metadata read failed. + - A connector pull keeps the job run id and trigger only when the run record can hold them: a trigger other than `schedule` or `manual`, or a run id longer than 255 characters, is left out instead of failing the run record's open. + - `JobHandlerContext` (`@objectstack/runtime`) declares `trigger` and `runId`: the handler run form spreads the job service's context into the handler's, so every `handler` job already receives `trigger`, and `runId` under the database job adapter. The jobs guide lists both. +- b02484e: feat(spec): declare the AI answer follow-up routes (saved questions, answer artifact, answer feedback) and carry `turnId` on a conversation's messages + + Clause-②: yes (widening) + Metadata-protocol: added + + `@objectstack/spec/api` now declares the request, response and error shapes of the AI answer follow-up routes the cloud AI service serves, so the console and the client SDK can type them instead of guessing: + + - **Saved questions.** `GET /api/v1/ai/saved-questions` (`ListAiSavedQuestionsResponseSchema`), `POST /api/v1/ai/saved-questions` (`CreateAiSavedQuestionRequestSchema` / `CreateAiSavedQuestionResponseSchema`: a typed `question`, or `conversationId` with `turnId`), `DELETE /api/v1/ai/saved-questions/:id` (204) and `POST /api/v1/ai/saved-questions/:id/run` (`RunAiSavedQuestionResponseSchema`). One saved question is `AiSavedQuestionSchema`; its `source` is the Ask data tools' `ObjectQuerySourceSchema` block. + - **Answer → artifact.** `POST /api/v1/ai/conversations/:id/turns/:turnId/artifact` (`CreateAiAnswerArtifactRequestSchema` with `kind: 'view' | 'report' | 'widget'`; `CreateAiAnswerArtifactResponseSchema`, discriminated by `kind`: the caller's own list view, or a dataset plus a report or dashboard draft with `published: false`). + - **Answer feedback.** `GET|POST|DELETE /api/v1/ai/conversations/:id/turns/:turnId/feedback` (`GetAiAnswerFeedbackResponseSchema`, `SetAiAnswerFeedbackRequestSchema` with `rating: 'up' | 'down'` and an optional `note`, `SetAiAnswerFeedbackResponseSchema`; DELETE answers 204). + - **Errors.** Each family's `error` is `ApiErrorSchema` with its closed `code` vocabulary (`AiSavedQuestionErrorSchema`, `AiAnswerArtifactErrorSchema`, `AiAnswerFeedbackErrorSchema`) and, where the route names one, the refusal in `details.reason` (`AiSavedQuestionRefusalReasonSchema`, `AiAnswerArtifactRefusalReasonSchema`). Each `code` list holds the route handler's codes and the framework door's, which answers ahead of the handler: `UNAUTHENTICATED` (401, no session), `NOT_IMPLEMENTED` (501, no AI served) and `SERVICE_UNAVAILABLE` (503, AI routes not yet published). + + A persisted conversation's messages may now carry the turn they were written under: `AiConversationSchema.messages` is `AiConversationMessageSchema` (`AiMessageSchema` plus a `turnId` that may be absent or null), and the `AIConversation` contract's `messages` are `AIConversationMessage` (`ModelMessage` plus `turnId?: string | null`). A stored conversation whose messages carry no turn, absent or null, still parses, and a service that writes none still satisfies the contract. +- 42b4d09: feat(spec)!: a sealed object that names no `lifecycle.seal.chainField` is refused at parse when its default chain column `tenant_id` cannot chain its rows + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + + <!-- adr-0087: registered seal-default-chain-column-refused --> + + **BREAKING** accept-set narrowing, shipped as `minor`. A `lifecycle.seal` that names no `chainField` chains each row by the default column `tenant_id` (ADR-0154 D10, note on `chainField`). That default was never judged at authoring. It is now judged by the same rules as a named `chainField`, and the object is refused with one located issue at `lifecycle.seal` in three cases. What run time did with each before: + + - (a) `tenant_id` is not a field of the object. The platform injects `organization_id`, never `tenant_id`, so it must be declared. Before: the object parsed, and the sealer reported it at `error` and sealed none of its rows. + - (b) `tenant_id` has a value that is not one text on every store (a number, boolean, date, datetime, JSON-shaped or multi-value column). Before: the object parsed, and the sealer sealed some or all of its rows (every row whose value the driver returns as a non-string) into the deployment chain with no report. + - (c) `tenant_id` is listed in `lifecycle.seal.valueFields`. Before: the object parsed and was sealed per organization, with the committed column's value carried in clear as the chain in every checkpoint. + + The judgement reads the object's own declared fields plus the columns the platform injects. A `tenant_id` that reaches the object only through an `objectExtensions` entry does not count: such an object is refused at parse, although the sealer, which reads the folded field map, would have sealed it. Declare the column on the object itself. + + The refusal fires wherever `ObjectSchema` parses: `ObjectSchema.create()` and `defineStack()` (strict by default) throw when a code-authored stack's config module is evaluated, and `os validate`, `os build` and the metadata save door refuse it. A definition that reaches the registry without the parse, including a stored `sys_metadata` row loaded at boot, still registers, and the sealer still treats it as before. + + - FROM: `{ name: 'ai_audit_log', fields: { id, created_at, payload }, lifecycle: { class: 'audit', retention: { maxAge: '90d' }, seal: { valueFields: ['payload'] } } }` parsed, and its rows were not sealed. + - TO: the same object is refused at `lifecycle.seal`: "`lifecycle.seal` names no `chainField`, so the sealer chains each row by the default chain column `tenant_id`, which is not a field of this object." + + Not moved: an object that declares a text or lookup `tenant_id`, and an object whose `chainField` names a column it has, parse as before. + + The fix: declare a text or lookup `tenant_id` field that holds each row's organization id, or name the chain column, such as the injected tenant column: `seal: { valueFields: ['payload'], chainField: 'organization_id' }`. Removing `tenant_id` from `valueFields` (case (c)) keeps every chain: nothing is re-sealed and `os audit verify` stays ok, since each earlier checkpoint is checked against the columns it was signed with. A fix that changes a row's chain value on an object that already has checkpoints (case (b), or naming a different `chainField`) re-seals the last sealed window, `os audit verify` reports it `listed_twice`, and verifying one organization with `--org` reads the rows sealed before the change as late and unsealed. +- 4ffe9d3: feat(actions): an action writes the sentences it declares in the organization's language + + Clause-②: yes (widening: a new optional authorable key `ActionSchema.texts`, and new translation keys) + Metadata-protocol: added + Skills-docs: follow-up owed — skills/objectstack-ui/rules/actions.md, skills/objectstack-i18n/SKILL.md + + A `script` action's `js` body can now write a sentence into a record in the organization's language, the way a hook does: declare it under `texts`, keyed by a snake_case key, and ask for it by key — `texts: { email_subject: { message: 'Email: {{ subject }}', params: ['subject'] } }`, then `await ctx.text('email_subject', { subject })` where the body used to write `'Email: ' + subject`. The answer is in the organization's language, because everyone in the organization reads the record: the Localization setting (`localization.locale`) when somebody set it, else the app's declared `i18n.defaultLocale`. It is never the language of the person who ran the action. The translation is picked first, then its `{{ }}` holes are filled from `params`. The entry is the hook text's, built by the same shared factory. + + - The translation sits beside the action's other copy: `objects.<object>._actions.<action>.texts.<key>.message` for an action bound to an object, `globalActions.<action>.texts.<key>.message` for an object-less one. `os i18n extract` scaffolds the keys and the existing coverage check counts them; `objectstack validate` refuses a translation over a key the action does not declare. + - A missing translation, or no language to pick, answers the declared sentence, and the action goes on. A Localization setting that cannot be read rejects the call. + - Only declared text is translated: a string the body builds itself is written as it is. A key `texts` does not declare is refused when the action is saved if the body asks for it literally (`ctx.text('key')`), otherwise when it runs, as a fault naming the action and the key. + - `texts` is read only for a `type: 'script'` action with a `js` body (an inline `target` function is lowered to one by `os build`); on any other action, or with no body, it is refused at save. A `flow` action's record writes are the flow's own, marked and translated there (`flows.<flow>.records.…`). + - A text with `params` is compiled like a hook's: a hole over another name is refused when the action is saved, and `objectstack validate`, `compile` and the publish gate refuse a hole holding logic, an unknown formatter, an empty hole and `{{ amount | currency }}` with no code. A translation whose holes do not render at run time is dropped for the declared sentence, filled. + - Text is picked when it is written. Records already written are not changed. An action without `texts` runs exactly as before. + + `@object-ui/core` lists `texts` among the spec's declared action keys, so an action carrying them is not reported as having an unknown key; the console reads nothing new, because the body stores the sentence already picked. + + New exports: `@objectstack/spec` adds `ActionTextSchema` and the `ActionText` type (`ui`), `actionTextMessageKey` (`system`), and `ACTION_TEXT_MESSAGE_HOLE_REFUSED`, `actionTextsWithoutRunnableCode`, `undeclaredActionTextKeyAtSave` and `undeclaredActionTextAtRun` (`data`); `@objectstack/runtime` adds none. Nothing that was accepted before is refused. +- b38e133: feat(spec): the Studio hook form offers a hook's declared `texts`, and `HookContext` declares `ctx.text` + + Clause-②: yes (widening) + Metadata-protocol: added + + The added key is the type member `HookContext.text` (the authorable-surface record lists `HookContext` members); nothing a stack writes changes. + + - **Studio hook form.** `hookForm` gains a `texts` row beside `refusals`: a key-only record keyed by the snake_case key the hook's code asks for with `ctx.text`, each entry editing its `message` and `params`. An author editing a hook in the Studio can now write the `texts` the schema has accepted since 18.6.0, instead of going through the metadata API or the package source. The row's label and help text ship in all eleven metadata-forms locale packs of `@objectstack/platform-objects`. Nothing about what a hook may declare changes. + - **`HookContext.text`.** `HookContext` now declares `text?: (key: string, params?: Record<string, unknown>) => Promise<string>` (named `HookTextReader`), the call the runtime already binds on every path a hook runs on, declared the way `api` and `notice` are: `z.unknown()` at parse, a static cast for the type, optional because a context parsed without the runtime carries none. A typed handler no longer needs a local type to call `ctx.text`. `HookContextSchema.parse` now keeps a bound `text` instead of stripping it. +- f796089: fix(spec,metadata-protocol)!: retire the seed modes `insert` and `replace`, which inserted every record again on each replay + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: follow-up #34798 + + <!-- adr-0087: registered seed-mode-insert-replace-retired --> + + **BREAKING** for a seed dataset authored with `mode: 'insert'` or `mode: 'replace'`. A seed is replayed on every single-tenant boot, every package install or upgrade and every publish, and neither mode matched an existing row, so every replay inserted each record again: an un-walled install went from 1 to 2 to 3 rows over three boots, a person reference the first load had to leave empty stayed empty on the first row while only the newest copy named the person, and with a unique field the replay insert was refused and the one row stayed empty. `replace` expected the caller to clear the table first, and no load path ever clears one. + + What moves (each line FROM → TO): + + - `SeedSchema.mode` / `SeedMode` (`@objectstack/spec/data`; `defineSeed`, `defineStack({ data })`, a `seed` metadata item, a package body's seed): FROM `insert` / `update` / `upsert` / `replace` / `ignore` TO `update` / `upsert` / `ignore` (default `ignore`, unchanged). `mode: 'insert'` or `mode: 'replace'` fails parse with a prescription naming the fix; the save and publish doors refuse it with the same message. The retired pair is exported as `RETIRED_SEED_MODE_VALUES` (`@objectstack/spec/data`): it is derived from the parse refusal's own table, and the loader and the artifact door read it. + - a stored dataset that still declares one, replayed by the boot seed, the per-organization replay, the dev hot reload or a package install, upgrade or sample-data reseed (`SeedLoaderService.loadStored`, `@objectstack/metadata-protocol`): FROM inserted again on every load TO refused alone — it writes nothing, the load result carries one error with the prescription and `success: false`, and every other dataset loads. `SeedLoaderService.load()` and `validate()` refuse the dataset the same way when handed one unparsed, so a dry run reports what a real load does. + - a compiled artifact (`objectstack.json`) carrying such a dataset, booted by `os serve` / `os start` / `os dev` (the artifact door, `MetadataPlugin`, `@objectstack/metadata`): the door parses the artifact without that dataset and hands it back to the seed load, which refuses it alone; the door logs a warning naming the dataset and the fix. Everything else in the artifact registers and boots. + - `os diff` (`@objectstack/cli`) on a dataset declaring either mode: FROM "a replay inserts these again" TO a note that the mode is retired, that a replay refuses the dataset, and what to declare. + - the advisory lint rule `seed-insert-mode-duplicates-on-replay` (`validateSeedReplaySafety`, `@objectstack/lint`): FROM a warning on `mode: 'insert'` TO removed; the schema refusal does its job for both modes. The author-time rule count `os validate` / `os build` print drops by one (71 to 70 at this release). + - the save door's and the loader's hint for a key no record carries: FROM "or use mode 'insert' for rows with no natural key" TO a list of fields when no single field names a row, or `'id'` when the records carry their own ids. + + The fix: declare which field identifies a row and drop the mode (or declare `upsert` for reference data the package keeps current). Set `externalId` to the field that names a row, to a list of fields when no single field does (a junction table's `['team', 'project']`), or to `'id'` when the records carry their own ids. Rebuild the package, and reinstall it where it was installed with `os package install`, so the stored body carries the new declaration. + + No conversion is made, at load, at save or by a migration (ADR-0087 D3, entry `seed-mode-insert-replace-retired`): a keyed mode needs the field that identifies a row, and only the author knows it. Rows earlier replays duplicated are data and are left as they are. + + Unchanged: `ignore`, `upsert` and `update` datasets load byte-identically. +- f4dbcc2: feat(lint): five publish-time checks for metadata that passes the schema and does nothing at run time, and four build probes over what landed + + Clause-②: no (narrowing: four publish-time refusals of metadata the schema accepts today) + Metadata-protocol: narrowed + Skills-docs: follow-up #35245 + + <!-- adr-0087: registered publish-refuses-metadata-the-runtime-ignores --> + + Five authoring rules join the registry the runtime publish gate and `objectstack validate` / `lint` / `compile` run. Each finding names its fix. + + - `flow-node-type-no-executor` (error): a flow node whose `type` no executor in this deployment runs fails every run with `NO_EXECUTOR`. Judged only against the automation engine's SEALED node-type vocabulary, which the publish gate reads from the new `AutomationEngine.getSealedNodeTypeVocabulary()` (it answers `undefined` until `sealNodeTypeVocabulary()` ran at `kernel:bootstrapped`). The CLI does not know which plugins a deployment loads, so it judges nothing here. + - `flow-approval-decision-unrouted` (error): an `approval` node whose decision out-edges are not labelled exactly `approve` and `reject` runs every out-edge for a decision no label claims, so the approving and the rejecting branch both run. + - `flow-http-timeout-missing` (warning): an `http` node with no positive `config.timeoutMs` and no positive node-level `timeoutMs` waits on a slow upstream for as long as the connection stays open; the engine arms no default timer. A `durable: true` node, which does not wait on the endpoint, is not reported. Like every warning, it makes `os validate --strict` exit 1. + - `state-machine-no-initial-states` (error): an active `state_machine` validation without `initialStates` (or with an empty list) lets a record be created already in any state. Add `initialStates`. + - `action-no-object-binding` (error): a standalone action that declares `locations` but no `objectName` binds to no object, so its button never renders. Set `objectName`, or write `locations: []` for a headless action. + + What was accepted before and is refused at publish now: a flow with an unrouted approval decision or a node type the deployment cannot run, a state machine without `initialStates`, a placed action with no object. The fix for each is in the finding. + + Four post-publish build probes report, as warnings on the publish receipt, what the person will see: `widget_empty_result` (a dashboard card whose real query reads only zeros), `rollup_never_computed` (a roll-up blank on all of the sampled parents that have children, judged inside one organization when the rows carry one), `seed_reference_unresolved` (a sample record the seed loader landed whose reference names no row in the organization that record belongs to, so the reference leads nowhere) and `flow_connector_action_unresolved` (a `connector_action` step naming a connector or action this environment does not serve). Each carries its sentence for the person in every platform locale. `RunBuildProbesOptions` gains `automation`, `packageId` and `seedLanded`; the publish passes the automation engine's connector lookups, the publishing package and its `seedApplied.landed` ids. `ProbeEngine` gains an optional `getSchema`, which names the column a row's organization is stamped in; the roll-up and seed probes judge each row inside that organization. + + New exports: `@objectstack/lint` adds `validateFlowNodeExecutors`, `validateInertObjectDeclarations`, `validateActionObjectBinding`, their finding types, and the rule ids `FLOW_NODE_TYPE_NO_EXECUTOR`, `FLOW_APPROVAL_DECISION_UNROUTED`, `FLOW_HTTP_TIMEOUT_MISSING`, `STATE_MACHINE_NO_INITIAL_STATES`, `ACTION_NO_OBJECT_BINDING`; `@objectstack/metadata-protocol` adds the `ProbeAutomation` and `SeedLandedRows` types; `@objectstack/service-automation` adds `AutomationEngine.getSealedNodeTypeVocabulary()`. `@objectstack/spec` changes only descriptions: those of `RuntimeBuildIssueSchema`, and that of a state machine validation's `initialStates`. +- 0739dee: fix(objectql)!: a field that is `required` and hidden by its own `visibleWhen` is required only when shown, so one admin setting no longer locks every record outside the condition + + Clause-②: yes (narrowing + widening of the required write contract) — widened: an insert or update whose record a `required` field's own `visibleWhen` cleanly hides no longer needs that field, and an explicit null onto a row already shown and empty is accepted. Narrowed: a write that moves a record INTO the condition while that field is empty is refused; 18.5.0 accepted it. + Metadata-protocol: semantic + + <!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed or renamed, and nothing stored is rewritten: what moved is when the engine enforces required on a field that also declares visibleWhen. The one-line fix for a refused write is in the body: fill the field in the same write that moves the record into the condition. --> + + **BREAKING** for flows, bulk updates, imports and API PATCHes that move existing records into a `required` field's `visibleWhen` condition without filling the field. Such a write is now refused with `required` naming the field (on a bulk update, one such row refuses the batch). Fill the field in the same write. A field with `required` and no `visibleWhen` is unchanged. + + **What changed (ADR-0113 D1 and D5, amended).** A field that declares `required: true` and its own `visibleWhen` used to be enforced on every save. In Studio an administrator can add one in a few clicks, and from then on every record that fails the condition refused every write, even an edit of an unrelated field, naming a field nobody could see. The engine now judges such a field from its visibility on the write: + + - the predicate evaluates cleanly to anything but TRUE on the record (the stored row with the write over it), so FALSE, or `null` such as an unset boolean: the field is not required for that write, so a record outside the condition can be created and edited, and the form's clear-on-hide `null` is accepted; + - the predicate is true: the field is required by the same non-regression rule `requiredWhen` uses, against the prior record, which the engine now reads on update for objects with such a field; + - the predicate cannot be evaluated: it counts as shown, the field stays required exactly as before, and the server logs a warning naming the field and the fault. + + The predicate is evaluated with the acting user bound as `current_user`, so a role-gated field is judged per writer; a system write with no user counts as shown. A `formula` field it reads is computed over the record first, as a read of that record computes it. A formula that faults for a reason a read shares (an empty operand) is judged on the `null` a read serves; a formula whose read value the write path cannot know (it reads through a reference, calls `label()`, calls `can` on a write that picks no permission-gated option and so resolves no permission map, reads `current_user` on a system write with no user, or reads such a formula at any depth) counts as shown; the system-write case is logged as `no-acting-user`, as the direct `current_user` spelling is. Only the field's own `visibleWhen` is read: a field group's `visibleWhen` and form-view predicates are not. + + The refusal for such a field now comes from the rule pass rather than the record walk. A single-fault write gets the same `required` code and sentence; a write with several faults may name fewer of them in one `400`, or answer a dangling reference first, and a `beforeUpdate` hook now runs before the refusal and may fill the field. + + **A formula-driven `visibleWhen` on the form.** The form computes the object's formula fields over the record being edited before it judges the field rules (the form-side recompute in `@object-ui/core`, `@object-ui/components` and `@object-ui/console`), so it shows such a field where the server requires it. A formula the form cannot compute (it reads through a reference, calls `label()` or `can()`, reads `os`, or reads the user when nobody is signed in) leaves the field shown and required, and the server decides on save. + + **`@objectstack/lint`.** Three new warnings at `objectstack validate` and the object save door, on a `required` field with a `visibleWhen`: the predicate reads through a reference field (the server cannot evaluate it, so the field stays required everywhere); the predicate reads a `formula` field (with the counts-as-shown consequence when a formula it reads, at any depth, reads through a reference, calls `label()`, or calls `can`, which a write computes only when it picks a permission-gated option); and `storage.notNull: true` beside the pair (the column still refuses the null on a record outside the condition). + + **`@object-ui/app-shell`.** Studio's field inspector shows the reference-read and formula-read warnings under the Visible-when editor of a required field. + + **`@objectstack/spec`.** The `required` and `visibleWhen` descriptions on `FieldSchema` say how the two combine. +- 89364b4: feat(spec, core, ui): `{current_iso_week}` defaults a week-keyed filter to the current ISO week + + Clause-②: yes (widening: the closed filter-placeholder vocabulary gains one token) + Metadata-protocol: added + + A dashboard whose rows carry a text week key (`cost_week: '2026-W47'`) could only default its week filter to a fixed week, which went stale the next Monday. Write the placeholder instead and the filter opens on the current week each time: + + ```ts + globalFilters: [ + { field: 'cost_week', label: 'Week', type: 'text', defaultValue: '{current_iso_week}' }, + ], + ``` + + - It resolves to the ISO-8601 week key of today, `YYYY-Www`: Monday-start weeks, week 1 is the week that holds the year's first Thursday, and the year is the ISO week-numbering year, so 2027-01-01 is `2026-W53` and 2025-12-29 is `2026-W01`. "Today" is the day in the workspace time zone, on the server and in the browser alike; the label is the one the analytics week bucket already uses. + - It is a period key, not a date. It lives in its own closed list, `PERIOD_KEY_TOKENS`, beside `DATE_MACRO_TOKENS` and not inside it, so a date filter default and a calendar `initialDate` still refuse it. `classifyFilterToken` answers a new kind, `period-key`, and `isKnownFilterToken` knows it, so lint, flow filter operands and the server resolver accept it wherever a filter placeholder is accepted. A consumer that switches exhaustively on `kind` gets a compile error until it handles the new kind. + - The server resolves it in `resolveFilterTokens`; the browser resolves it in `resolveFilterPlaceholders` and in the dashboard filter defaults (every filter type except `date` and `dateRange`), so the filter box opens showing the resolved key. A literal `2026-W47` default keeps working and stays fixed. + - Every filter and default written before parses and resolves exactly as before. Only the whole value is a placeholder: `'week {current_iso_week}'` is left as written. A near spelling such as `{currentIsoWeek}` is still refused as an unknown token. + - Use it only on a field that stores week keys. On a date, datetime or time field the placeholder is refused (`INVALID_FILTER` / 400), as the literal key is; filter those with the `this_week` preset or `{current_week_start}` / `{current_week_end}`. +- dfc6bbf: feat(spec, metadata-protocol): `Seed.fallback` marks the set an organization gets when its locale matches no set of the object + + Clause-②: yes (widening) — one new optional key, `fallback: true`, on a seed dataset (`SeedSchema`); a seed without it parses and loads exactly as before + Metadata-protocol: added + + An app that splits a seed by language with `locale` (a `zh-CN` and an `en` set of the standard price book) used to leave an organization on any other locale (`ja-JP`, `es-ES`) with neither set. Mark one set `fallback: true` and it also loads for every resolved locale that no locale-scoped set of the same object lists: + + ```ts + defineSeed(PriceBook, { locale: ['zh-CN'], records: [{ name: '标准价格表' }] }); + defineSeed(PriceBook, { locale: ['en', 'en-US'], fallback: true, records: [{ name: 'Standard' }] }); + ``` + + It is honoured wherever a load filters by locale: the boot seed and the dev hot reload (the app's `i18n.defaultLocale`), and the per-organization replay, marketplace install, sample-data reseed and restart heal (the locale `resolveSeedLocaleForLoad` resolves). The loader logs each fallback set it loaded, at info. + + - The marker needs `locale`: `fallback: true` on a dataset with no `locale` is refused when the seed is parsed, because an unscoped dataset already loads for every locale. The published JSON Schema carries the rule as `dependentRequired`. + - A dataset with no `locale` does not count as a match: it loads beside whichever set is chosen. + - `env` is applied first; a set it scoped out neither matches nor falls back. + - At most one fallback set per object in a load: with two different marked sets of one object, only the fallback choice is refused. No marked set fills in for a locale no set lists, and the load reports one error per object (`field: 'fallback'`), logged at warn; every marked set still loads for the locales it lists, as an unmarked set would, and every other object still seeds. Identical copies of one set (a package's datasets merged twice) count once; an upgrade that changed a package's marked set leaves two sets on the replay list until the process restarts. + - A load with no locale (package apply, draft publish, an install no rung resolved a locale for) loads every dataset, the fallback set included, and warns as before. +- 97b9d1e: fix(formula)!: a flow condition that does date arithmetic on `record.FIELD` or `previous.FIELD` is now refused, as the bare field name already was + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + + <!-- adr-0087: registered flow-condition-record-date-arithmetic-refused --> + + **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`. The date-arithmetic check judged only the bare name: `due_date + 1 > 5` over a `date` field was refused, but `record.due_date + 1 > 5` passed `os validate` and the publish door. The flow then failed on every run, because a date field reaches the run as its `YYYY-MM-DD` text and the evaluator cannot add a number to it. + + - **The verdict.** A `record.FIELD` / `previous.FIELD` read of a `date` or `datetime` field in arithmetic against a number now gets the verdict its bare name gets, with the same code and outcome arm (`date-arithmetic-run-fails` on a record-triggered flow or a sweep of the typed object, `date-arithmetic-run-may-fail` elsewhere). A root read keeps the row's arm where bare names are unproven or a flow variable shadows the bare name. The message names the read as written and prescribes `daysBetween(a, b)` or `addDays(d, n)`. + - **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, as it does for the bare name, and still registers the flow, so a stored flow keeps its run-time behaviour until it is next published. + - **Not refused.** An ordering of the field (`record.due_date < today()`), `daysBetween` / `addDays` over it, and the date-text shapes, which keep their own verdicts. Formula fields and validation rules read `record.FIELD` already and were refused before. The run-time evaluator is unchanged. + + ## FROM → TO + + | FROM | TO | + |:---|:---| + | `record.due_date + 1 > 5` | `daysBetween(record.due_date, today()) > 5` (days past due) or `addDays(record.due_date, 1) < today()` (a shifted date) | + | `previous.due_date - 7 < today()` | `addDays(previous.due_date, -7) < today()` | + + One-line fix: in a flow condition, never add or subtract a number on a date field read through `record` or `previous`; use `daysBetween(a, b)` for a span and `addDays(d, n)` to shift a date. +- 5ecf937: fix(lint)!: a hook body or job body that does not compile in the wrapper the runtime runs it in is refused + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: follow-up owed — skills/objectstack-data/references/data-hooks.md (its "Sandbox restrictions" section teaches what a body may contain and names no compile check) + + <!-- adr-0087: registered hook-job-body-does-not-compile-refused --> + + **BREAKING** only for a hook or job body that never ran. The runtime runs an L2 hook body and an L2 job body (`body.language: 'js'`) as the body of `(async (ctx) => { … })`. A source that does not compile there, such as `const ctx = ctx.input || {}` (the parameter declared again) or `let x = 1; let x = 2;`, raised a SyntaxError before its first statement on every run, yet passed `os validate`, `os build`, `os lint` and the runtime publish door: the hook parse check reads the source with a parser, which reports no redeclaration, and a job body had no check at all. + + What moves (FROM → TO): + + - New gating rule `validateHookAndJobBodyCompiles` (`@objectstack/lint`), rule ids `hook-body-does-not-compile` and `job-body-does-not-compile`: FROM no finding TO `error` at `os validate`, `os build`, `os lint`, and at the runtime publish door for `hook` writes (`422 INVALID_METADATA`). No door publishes a job, so a job body is refused by the three commands. A hook lowered from an inline `handler` is located at `hooks[N].handler`. The severity split is `action-body-does-not-compile`'s, read through the same `judgeBodyCompile`: a regular-expression pattern the host engine refuses is a `warning`, and every other compile failure is an `error`. + - `hookBodyFunctionExpression` and `HOOK_BODY_PARAMETERS` (`@objectstack/lint`, the first also on `@objectstack/lint/runtime`): the one spelling of the `(ctx)` wrapper. The runtime's QuickJS runner now builds the hook and job wrapper from it, byte for byte the wrapper it built before, so the check and the run cannot disagree about it. + - `judgeBodyCompile`, `BodyCompileVerdict` and `BodyCompileShape` (`@objectstack/lint`): the compile-and-classify core both rules share. `action-body-does-not-compile` reads it with unchanged findings. + - `os explain hook-body-does-not-compile` and `os explain job-body-does-not-compile` explain both rules. + + The fix: use `ctx` as it is, or give the local another name (`const input = ctx.input || {}` in a hook, `const api = ctx.api` in a job); declare each name once; fix any other compile error at the line of `body.source` the finding names. + + No conversion is made (ADR-0087 D3, entry `hook-job-body-does-not-compile-refused`): which name the author meant for the local is a judgement. Measured first-party exposure: zero. +- feb9b79: fix(lint)!: an action body whose regular-expression literal never closes, or whose flags are not a flag set, is refused, not only warned about + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: none — no published skill teaches the action-body compile check or regular-expression literals in an action body + + <!-- adr-0087: registered action-body-regexp-literal-token-refused --> + + **BREAKING** only for an action body that never ran. `action-body-does-not-compile` compiles an L2 action's `body.source` inside `(async (input, ctx) => { … })` with the host's JavaScript engine, and reported every failure whose sentence opens `Invalid regular expression` at `warning`, because the host's V8 and the runtime's QuickJS differ on some patterns. That sentence also opens V8's two token errors: a literal that never closes on its line (`return /abc;`, `return /[/;`, a literal broken by a line terminator: `Invalid regular expression: missing /`) and a flag set that is not one (`/a/gg`, `/a/zz`, `/a/uv`: `Invalid regular expression flags`). QuickJS refuses every one of them, so such a body passed `os validate`, `os build`, `os lint` and the runtime publish door, and every run of the action failed with the coded `500` that names the action and the compile error. + + What moves (FROM → TO): + + - `action-body-does-not-compile` on an unterminated regular-expression literal or an invalid flag set (`validateActionBodyCompiles`, `@objectstack/lint`): FROM `warning` TO `error` at `os validate`, `os build`, `os lint` and the runtime publish door (`action` and `object` writes, `422 INVALID_METADATA`), with a hint that names the fix. A failure in the literal's pattern (a duplicate named capture group, a modifier group: syntax QuickJS accepts and runs) is still a `warning`. + - `os explain action-body-does-not-compile` and the ADR-0087 entry `action-body-does-not-compile-refused` now say that only a pattern the host refuses is a warning. + + The fix: close the literal with `/`, write a `/` inside it as `\/`, or, when the `/` is a division, give it a left-hand operand; write the flags as letters from `dgimsuvy`, each at most once, never `u` with `v`. + + No conversion is made (ADR-0087 D3, entry `action-body-regexp-literal-token-refused`): whether a `/` opened a literal or meant a division is the author's choice. Measured first-party exposure: zero. +- b7d2474: feat(spec, objectql): a `summary` over a plain `dynamic` currency amount may declare `currencyMode: 'dynamic'` + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: follow-up owed — skills/objectstack-data/evals/objects-fields-relationships.json (eval 20's expected output still says `dynamic` is admitted only on a roll-up of a home amount; no SKILL.md teaches a summary's currency, and content/docs/data-modeling/currency.mdx is updated here) + + A `summary` (`sum`, `min`, `max`, `avg`) that totals a child `currency` field in `dynamic` mode (no `currencyConfig`, or `currencyMode: 'dynamic'`) may now declare `currencyConfig: { currencyMode: 'dynamic' }`, with no `defaultCurrency`. A `dynamic` amount is in the tenant default currency, `localization.currency`, by definition, so its total is too, and the Console's roll-up faces draw it in that currency, as they already draw a roll-up of a stored home amount. Before, `defineStack` (`os validate`, the build) and a save or publish through the metadata API refused it with "… is not a stored home amount, so its rows are not known to be in the home currency", so a total of tenant-currency amounts (a timesheet's cost over its time entries' cost) rendered as a bare number beside currency cells. + + Levels follow the metadata protocol: `@objectstack/spec` takes `minor` for the newly accepted declaration and the new export; `@objectstack/objectql` takes `patch` (its door reads the spec predicate, no protocol of its own moves). + + Both doors read one new predicate, `isTenantCurrencyAmount` (`@objectstack/spec/data`): a stored `currency` field in `dynamic` mode, of which a stored home amount is one. Unchanged: + + - A summary that declares no `currencyConfig` still has no currency: nothing is inferred. + - `dynamic` over a record-mode child amount is refused as before, prescribing its stored home amount (or `currencyMode: 'record'` when the amounts follow this record through the roll-up's master_detail); over a `fixed` child amount it is refused prescribing that code; over a plain `number`, a `formula` or another `summary` it is refused. + + The refusal's wording moves with the admitted set: its head now reads "`currencyMode: 'dynamic'` on a summary is admitted only for a roll-up of an amount in the organization's home currency: a child `currency` field in `dynamic` mode (an absent `currencyMode` is `dynamic`), a stored home amount included, …", a child that is not a `currency` field is named by its type ("is a 'number' field, not a `currency` field in `dynamic` mode"), and the prescription lists the child's amounts in the home currency instead of its home amounts alone. The object door's list of admitted roll-up currencies says the same. +- 50f85e9: feat(spec): a formula field can return `percent` + + Clause-②: yes (widening) + Metadata-protocol: added + + A ratio formula (budget used, gross margin) can now declare `returnType: 'percent'` and read and display as a `percent` field does, instead of a bare decimal beside the stored percentages. + + - **The value.** A `percent` formula result is read exactly as a `percent` field reads its stored value: a fraction (`0.25` shows `25%`, so the expression divides and does not multiply by 100), unless the formula declares a `max` above 1, then percentage points (`percentScaleOf`). + - **Its places.** `scale` counts the decimal places of the displayed percentage, as on a `percent` field (absent: 0). The engine rounds a fraction result to `scale + 2` places and a whole percentage to `scale`, so `scale: 1` keeps 0.417 (41.7%) instead of rounding it to 0.4. + - **An existing `percent` field computed from its `expression` rounds the same way.** The engine shares one rounding step for computed values, so a stored `percent` field that computes from an `expression` now keeps `scale + 2` places for a fraction (and `scale` for a whole percentage). Before, its computed fraction was rounded to `scale` itself: at `scale: 1`, 0.417 was stored as 0.4 and read 40.0%; it is now stored 0.417 and reads 41.7%. The change applies to the next computed write; rows written earlier are not rewritten. + - **Its face.** `percentDisplay` applies to a `percent` formula too (bar or plain). The formula renderer formats the result with the percent formatter, and the field and object forms offer `percent` as a return type. Editing the expression in the Studio field inspector keeps a declared `percent` (or `currency`) unless the new expression proves text, a boolean or a date. + - **Declared, never inferred.** No CEL type proves a quotient is a percentage, so authoring keeps a declared `percent` where it would otherwise stamp `number`. Readers that switch on `returnType` (display-name eligibility, filter operator and comparand typing) treat `percent` as a number. + + The enum only gains a member: every formula that parsed before parses the same, and nothing stored needs migrating. +- 7bd5d28: feat(auth): `directSignIn.afterSignOut` lets an explicit sign-out return through the identity provider's sign-in page + + Clause-②: yes (widening) + Metadata-protocol: added + + A deployment with direct sign-in on can now choose where an explicit sign-out returns once the identity provider has ended its own session. The default keeps today's behaviour, so nothing changes until a deployment sets the new value. + + - The auth plugin's `directSignIn` option takes `afterSignOut: 'hold' | 'identity-provider'`, and the environment variable `OS_AUTH_DIRECT_SIGN_IN_AFTER_SIGN_OUT` wins over it, like the other direct sign-in settings. `hold` is the default. Any other value refuses to boot, naming the variable and both values. + - `GET /api/v1/auth/config` serves `features.afterSignOut` while the direct sign-in setting is on, on the same terms as `features.localSignIn`, and leaves it out otherwise. `AuthFeaturesConfigSchema` in `@objectstack/spec` gains the optional `afterSignOut` enum, and `PUBLIC_AUTH_CONFIG_NON_FLAG_KEYS` gains `'afterSignOut'`. + - `hold`: the Console's sign-out sends the sign-in page as the provider's return address, and the page holds with a button to sign in again, as before. + - `identity-provider`: while `features.directSignIn` reads `true`, the Console's sign-out sends `{basePath}/sign-in/direct` instead, so after the provider's logout the browser goes through the direct sign-in door to the provider's own sign-in page. The door starts a fresh sign-in without the browser's cookies, and the provider has just ended its session, so it asks for credentials; it does not loop. Register the door's absolute address as a post-logout redirect URI at the provider. + - `@object-ui/auth`: `AuthPublicConfig.features` gains the optional `afterSignOut`. When the tab holds no auth config at sign-out, the client reads it once (3 seconds at most) and keeps the sign-in page if it cannot. + - Module exports on the `@objectstack/plugin-auth` entry: the type `DirectSignInAfterSignOut`. In `direct-sign-in.ts` (not on the package entry): `DIRECT_SIGN_IN_AFTER_SIGN_OUT`, and `DIRECT_SIGN_IN_ENV.afterSignOut`. +- cdb327f: feat(metadata-protocol): a refused field removal or type change names the views, forms and dashboard cards that still show the field + + Clause-②: yes (widening: the DESTRUCTIVE_CHANGE answer gains stillShownBy; a new exported operator-fit table) + Metadata-protocol: added + Skills-docs: none — no skill in `skills/**` teaches the `409 DESTRUCTIVE_CHANGE` save refusal or its `issues[]`. The finding's own message now names the items, so a client relaying it says them without being taught. + + The `409 DESTRUCTIVE_CHANGE` refusal of an `object` save said what data the change loses. It now also says what breaks on screen. Each `field_removed` finding carries `stillShownBy`: the views, forms, datasets, dashboards, pages, flows, reports and objects that still reference the field, at the positions that name it, as the served listing presents each item (`config.columns[1]` on a view item, `columns[1]` on a flattened list overlay, `widgets[3]` through a dataset). Each `field_type_change` finding carries the view filter rules whose operator the new type no longer fits, for example a `contains` filter on a field changed to `number`: a view item's `config.filter`, a flattened overlay's `filter`, and the `userFilters.tabs[].filter` of either. The finding's message names the first five items and counts the rest, so a door that relays only the message says it too. The save edits none of them. + + - The answer rides the refusal's `issues[]`, which every door already relays verbatim: the REST `PUT /api/v1/meta/...` doors (`issues`), the runtime dispatcher (`details.issues`) and the MCP draft door (`error.issues`). No door changed. + - It is computed from the environment's served metadata, one listing per type, only when a finding needs it. No record and no draft is read. When it cannot be computed (a listing cannot be read, a judge throws or cannot be loaded) `stillShownBy` is absent ("not computed"), and the refusal still stands; `[]` means "computed, shown nowhere". + - A removal is judged by the checks `os validate` runs (`@objectstack/lint`'s reference-integrity suite, form-layout check and widget-binding check), with the field and without it. A position those checks do not read is not seen. The spec describe on `DestructiveChangeIssueSchema.stillShownBy` states exactly what is and is not seen. + - `@objectstack/spec/data` exports `filterOperatorFieldTypeFit(operator, field)` and its table `FILTER_OPERATOR_FIELD_TYPE_FIT`: the one place that judges which filter operator fits which field type. An operator is unfit only where a declared-type door refuses it. Today that is the text-operator door (a text operator over a type that can never store a string, `INVALID_FILTER` 400), referenced rather than re-listed. `dollarFilterOperatorOf(op)` lowers a view, alias or infix operator spelling to its `$` form; a `$` spelling is returned as written, and an unknown spelling answers `undefined`. + - `@objectstack/spec/api` declares the answer's shape: `DestructiveChangeIssueSchema` and `FieldStillShownBySchema`. +- 6ffa816: feat(security): an unmanaged install copies an app's capabilities, renamed with the copy + + Clause-②: yes (widening) + Metadata-protocol: added + + An app that gates an action on its own capability can now install as an unmanaged copy (`installModes: ['unmanaged']`). Before, `capability` was code-only (`allowRuntimeCreate: false`), so the validator refused the mode for any app that declared one, and the install door had no channel to write the copy's capabilities. + + - **`capability` is runtime-creatable.** Its `DEFAULT_METADATA_TYPE_REGISTRY` entry is now `allowRuntimeCreate: true`, and overlays stay closed (`supportsOverlay: false`, `allowEnvironmentOverlay: false`). A body is judged by `CapabilityDeclarationSchema`, as before. + - **The save door refuses two names.** + - A platform capability's name (`manage_users`, `setup.access`, every name in `PLATFORM_CAPABILITIES`) answers `422 NAMESPACE_CONFLICT`. An environment item under that name would shadow the platform's definition, because the registry answers its bare slot first. + - A name an installed package's capability holds answers `422 NAMESPACE_CONFLICT`, naming the holder. A capability holds one name per deployment, the same rule permission sets and positions follow. + - **The environment catalog holds capabilities.** `ENVIRONMENT_HELD_SECURITY_CATALOG_TYPES` is `['position', 'permission', 'capability']`. A package that ships a capability name the environment already authored is refused at boot, as a position or permission-set name is. `os migrate security-catalog-overlays`, the remedy that refusal names, lists and deletes such a capability row too (`capability` and `capabilities` spellings). + - **An unmanaged copy renames its capabilities.** When the copy takes a new namespace, a capability whose name starts with the source namespace (`<ns>.` or `<ns>_`) is renamed into the copy's namespace. Every reference is rewritten with it: a permission set's `systemPermissions` (list or per-operation map), an object's or action's `requiredPermissions`, and a quoted `current_user.hasCapability('<name>')` in a predicate. There the object-name rename never touches a name the package declares, so a capability named after a renamed object has one name in the copy; a token the package does not declare follows a renamed object as before. An unprefixed capability keeps its name. A renamed capability that collides with another package's capability refuses the install, naming both. Install again under another namespace. + - **Duplicating a package refuses a shared gate.** `duplicatePackage` keeps its source installed, so a capability it cannot rename (no source prefix, or a copy name the package already declares) is refused, and so is every copied item that grants, requires or tests for it, each at its own name in `failed[]`. + - **The `everyone` anchor excuses only a declaration that carries a package.** The check that refuses a high-privilege permission set bound to `everyone` excuses the tokens an app declared itself. It now counts only declarations bound to a package (`_packageId`), as ADR-0090 D5 rules: an app's shipped capabilities, an unmanaged copy's, and one saved into a writable package. A capability saved with no package excuses nothing. What bounds a saved declaration is the two refusals above: a platform capability is never excused, and a name a package declares cannot be declared again. A name nobody declares can be declared once, by a `manage_metadata` holder, inside a writable package. + - **The gate is unchanged.** It still matches capability names. The copy's action is gated on the copy's capability: a holder of the copy's permission set passes, and a holder of only the source's set does not. +- b863d2b: feat(service-analytics): `query_dataset` says how many groups existed before the `limit` cut (`totalGroups`), as `aggregate_records` does + + Clause-②: yes (widening: QueryDatasetOutputSchema gains totalGroups) + Metadata-protocol: added + Skills-docs: follow-up #35203 + + `QueryDatasetOutputSchema` gains an optional `totalGroups`: how many groups the selection formed before `offset` and `limit` cut them, the same name and meaning as `aggregate_records`' `totalGroups`. A client asked "how many are there" after a top-N cut can now answer it: a grouped `query_dataset` whose `limit` is below the group count answers `truncated: true` and the full count, and an answer that was not cut answers `totalGroups` equal to `rowCount`. + + The count never costs a read. Where the window is pushed into the one SQL statement that grouped the answer, the database counts the groups in that statement (`COUNT(*) OVER ()`, after the `GROUP BY` and ahead of the `ORDER BY` and `LIMIT`). Where the window is applied in memory, the count is the length of the grid before the window: an order by a display label (the tool's own order, used when none is sent, sorts every selected dimension, so grouping by any select or reference field brings this in; an order by measures alone does not), a grid assembled from several queries (a measure with its own filter, a derived measure, `compareTo`), and a query the engine's aggregate serves, such as a date bucket, a field-to-field filter, an external object or a driver with no raw SQL. That grid is counted only when every read that built it came back whole; a grid that a cap or row guard cut before the window answers no count. + + `totalGroups` is absent when: the window was pushed down and the SQL dialect is not one the analytics strategy knows, or a selected member is itself named `__os_group_count`, or the page came back empty after an `offset`; a read was served by a strategy that does not vouch for its grid, such as one a host adds, or was cut by a cap under it; or the dataset's object is missing and the answer is the empty one served for it. Read `totalGroups` as optional. + + Only the AI tool asks for the count. The REST dataset door, dashboards and reports run the statements they ran before. +- e75a528: feat(spec)!: two entries under one identity in one package are refused when a composition or a package body assembles them, as a single stack already refused them + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: none — no skill teaches splitting one package's entries for one identity across sub-stacks or package bodies; `skills/objectstack-data/SKILL.md` teaches one `objectExtensions` entry per extension, and the refusal names both entries and prescribes the merge + + <!-- adr-0087: registered stack-package-duplicate-entry-refused-at-every-door --> + + **BREAKING** accept-set narrowing, shipped as `minor`. `defineStack` refuses two entries under one identity in one stack for the collections the runtime registers one entry per identity (`objects`, `datasources`, `pages`, …, `queues`, `assignmentRules`, `apps`, `objectExtensions`), but two sub-stacks of ONE package that each declared one such entry composed with both, and a hand-built `packages[i]` body carrying two was accepted. `os validate`, `os build` and the boot all passed, and the boot then kept one entry. For `objectExtensions` that meant only the last entry's fields registered: a field the earlier entry declared was missing, and reads and writes naming it answered `INVALID_FIELD`. + + - **Refused now, in the cross-reference envelope (`STACK_CROSS_REFERENCE_INVALID`, 422), with the single-stack wording.** `composeStacks`, for the package it registers under its own `manifest.id`: every input of a flat composition, and under `manifest: 'preserve'` the inputs without a manifest and any other top-level entry no package body claims (the boot's residual). Each finding names the input every entry came from: `Object extension of 'crm_line' is declared twice in \`objectExtensions\`: stack #1 objectExtensions[0] and stack #2 objectExtensions[0]. …`. Every `packages[i]` body, of `defineStack({ packages })` (`stack.packages[1].manifest.objectExtensions[0]`) and of a composition that carries or assembles bodies. The refusal carries the inputs' conversion record like the other composition refusals. Two inputs declaring one app name now answer this refusal first, where they answered `STACK_SINGLE_APP_VIOLATION`. + - **Unchanged.** A single stack's refusal, byte for byte. Two packages reusing one name (ADR-0048 §3.4): under `manifest: 'preserve'`, as two package bodies, or as a nested multi-package artifact's flattened copies of its bodies, each body is judged on its own. The same built sub-stack passed to a composition twice, except its `hooks`: a hook reached twice is refused, because a built artifact binds each copy. Two same-name objects across inputs stay the `objectConflict` strategy's to refuse or fold. + - **Installed packages keep loading (`@objectstack/objectql`).** A package body built before this release that carries two or more `objectExtensions` entries for one object registers as before (only the last entry's fields), and its registration now logs one error per (package, object) naming the object, the package and the entries, and telling the author to merge them and rebuild. Entries for one object that are all equal by value lose nothing and log nothing. Re-registering a package still replaces that package's previous extension of the object. + + One-line fix: merge the entries into one (for `objectExtensions`, one entry per target object carrying every field), or rename one of them. +- 5dd856f: fix(lint): `state-machine-no-initial-states` judges only state machines that run on insert + + Clause-②: yes (widening) + Metadata-protocol: added + + The publish-time rule `state-machine-no-initial-states` now refuses an active `state_machine` validation with no (or an empty) `initialStates` only when the machine runs on insert: its `events` include `insert`, or are left to the default `['insert', 'update']`. The engine runs a rule only on the write contexts its `events` name, so a machine declared `events: ['update']` (or `events: []`) never runs on create and never reads `initialStates`. Such a machine is accepted at publish and by `os validate` again, with no `initialStates`; adding one to satisfy the rule produced metadata the runtime ignores. A machine that runs on insert without `initialStates` is still refused, with the same fix. + + `@objectstack/spec` changes only the description of a state machine validation's `initialStates`, which now says the rule judges a machine that runs on insert. +- 5dd856f: fix(lint): `field-group-shadowed` judges the six highlights the record page draws, from one shared constant + + Clause-②: yes (narrowing) + Metadata-protocol: narrowed + + The default record page draws the first six of an object's `highlightFields` (after the title field leaves the list) in its header strip and leaves those fields out of the Details body. The `field-group-shadowed` warning judged only the first four, so a field group whose only member sat fifth or sixth in `highlightFields` was empty on the record page and passed `os lint --strict`. It now judges the same six, and its hint says "first 6 highlightFields". + + What was accepted before and is warned now: an object whose field group is emptied by its fifth or sixth highlight. Fix it as the hint says: keep a member of that group out of the first six highlights, or drop the group. A list the old count warned is still warned: six hoisted fields include the first four, so no list that passed only under six is refused. + + New export: `@objectstack/spec/ui` adds `RECORD_HIGHLIGHTS_MAX` (6), the count both the lint and `@object-ui/plugin-detail`'s record page synthesizer read. `@object-ui/plugin-detail` now takes its own `RECORD_HIGHLIGHTS_MAX` from there; the value and the page are unchanged. + + <!-- adr-0087: registered field-group-shadowed-six-highlights --> +- 61722e9: feat: Change Owner cascade — a relationship declares `transferBehavior: 'cascade'`, and the Change Owner dialog offers it as a tick + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: follow-up #36713 + + A Change Owner can now move related records along with the record, relationship by relationship. + + - **The declaration.** A `lookup` or `master_detail` field takes `transferBehavior: 'none' | 'cascade'`, beside `deleteBehavior` (omitted means `'none'`). `'cascade'` on the child's reference field to a parent says: when the parent's owner changes, the child records that point at it and are owned by the parent's previous owner may move to the new owner too. No other child records move; there is no filter key. + - **Refused where it could never act.** The key is refused on any other field type, `'cascade'` is refused on a reference to a `sys_` object and on a multi-value reference (`multiple: true`), and `'cascade'` is refused on a field of an object that does not offer Change Owner itself: one that is not structurally eligible (no reassignable owner), a `controlled_by_parent` detail (its access already follows its master), or one whose `userActions.transfer` is off. Each refusal names the field and the fix. + - **The request.** `POST /api/v1/data/:object/:id/change-owner` and `POST /api/v1/data/:object/change-owner` take an optional `cascade: [{ object, field }]` naming the relationships to move along (`data.changeOwner` / `data.changeOwnerMany` in `@objectstack/client`). A relationship that does not declare `'cascade'`, or whose child does not offer Change Owner, is refused `400 VALIDATION_ERROR` before anything is written; so is a cascade with a queue target. Each cascaded record is updated as the caller, so it needs the caller's own transfer grant on the child object. Each relationship's outcome in the answer's `cascade[]` lists every record the caller's write refused, with its id, code and sentence: a related record whose `owner_id` is locked on it (read-only, or under a `readonlyWhen` that holds) is refused `FIELD_NOT_ACCESSIBLE` and keeps its owner, as the record itself would be, while the record's own move stands. One call moves at most 500 related records; the records past that limit are counted in `remaining`, still with the previous owner, not listed. When a relationship's records could not be read, its outcome carries `readFailure` and none of them moved. + - **The candidates.** `GET /api/v1/data/:object/change-owner/cascades` (`data.changeOwnerCascades`) lists the relationships declared to an object whose child offers Change Owner. A child whose declared API exposure does not serve `update` is left out, and so is a child of a disabled package. + - **The Studio.** The field form and the object form's field rows offer `transferBehavior` beside `deleteBehavior`, on `lookup` and `master_detail` fields; the row's label and help text ship in the metadata-forms locale packs of `@objectstack/platform-objects`. + - **The dialog.** For a person target, the Change Owner dialog lists those relationships on which the explain engine allows the caller the `transfer` operation, one tick each, sends the ticked ones, and draws each relationship's outcome, every record it did not move included. + + A plain `owner_id` update is unchanged: the declaration is read only by the Change Owner action. +- e6fa510: feat(approvals): an escalation deadline can count working time on an organization's working calendar (`escalation.clock: 'working_time'`) + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: follow-up owed — skills/objectstack-automation/references/state-machines-and-approvals.md + + An approval node's `escalation` gains two optional keys (ADR-0157 D5): + + - **`clock`**: `'wall_clock'` (the default) or `'working_time'`. Under `wall_clock` nothing changes: `timeoutHours` counts elapsed hours from `created_at`, nights, weekends and holidays included, and every request already open keeps its deadline (a stored snapshot carries no `clock`). Under `working_time` the hours count only the working periods of a working calendar (`sys_work_calendar`), skipping its holidays and counting its make-up workdays: a request opened at 17:00 on a Friday with `timeoutHours: 4`, on 09:00-12:00 and 13:00-18:00 periods, escalates at 12:00 on the next working day. + - **`calendar`**: the code of the working calendar to count on. Left out, the request organization's default calendar counts. There is never a fallback to wall-clock hours. + + The approvals sweep and the request read share one deadline function. A `working_time` deadline is counted again on every sweep and every read and is never stored, so a holiday entered after a request opened moves its deadline; an escalation that already fired stays fired (single-shot, ADR-0042). When the calendar cannot count the deadline (no calendar has the code, the organization has no default, or the calendar is not maintained as far as the deadline needs), the request does not escalate, the next sweep tries again, and the request read carries a new additive field, `sla_due_refusal` (`code`, `reason` or `date`, `message`), in place of `sla_due_at`. The approvals inbox shows "Calendar can't compute" with the reason where the SLA countdown sits, in every console language. + + `@objectstack/lint` refuses a `calendar` written beside the wall clock (`approval-escalation-calendar-without-working-time`, error): nothing would read it. Whether the named calendar exists is the organization's runtime data and is never checked at publish. The Studio approval inspector offers the clock and, under working time only, the calendar. + + Not released alone: this ships in the same release as the working-calendar objects and service and the working-day formula functions (ADR-0157 D4). +- 2495486: feat(spec): `userActions.transfer`, the per-object switch for the Change Owner action, and its structural eligibility + + Clause-②: yes (widening) + Metadata-protocol: added + + An object can now say whether it offers the Change Owner action. The action is not meant for every record that happens to carry an `owner_id`: line items, invoices and other details get one injected too, and an admin holding `modifyAllRecords` would otherwise see the action everywhere. + + - **Structural eligibility (derived, never overridable).** `isTransferEligible(def)` from `@objectstack/spec/data` answers true only when the platform injects the object's reassignable `owner_id` (`resolveInjectedSystemColumns(def).owner`), an owner is provable for it, and the object does not declare that field `readonly: true` (in either `fields` shape, record or array). So `ownership: 'business_unit' | 'org' | 'none'`, every `managedBy` object, every `sys_*` object and `systemFields: false` never offer the action, and neither does an `external` object whose owner is unprovable (`isOwnerAnchorUnprovable`: it neither declares `owner_id` nor maps a remote column onto it in `external.columnMap`). `transferIneligibilityReason(def)` names the structural fact when the answer is no, and, where the object can be made eligible, the change that does it (drop `readonly` from `owner_id`, set `ownership` to `user`, declare or map the external owner). + - **The switch.** `userActions.transfer` takes the same shape as the CRUD entries beside it: a boolean, or `{ enabled, visibleWhen, disabledWhen }` whose CEL predicates read the record the action acts on. Omitted, it is on for `sharingModel` `private`, `public_read` and `public_read_write`, and for an object that declares no `sharingModel` (a custom object then resolves to `private`); it is off for a `controlled_by_parent` detail. Authors override both ways: `transfer: true` on a detail with a real owner, `transfer: false` where the owner is the actor by rule. + - **The one resolution.** `resolveUserActionTransfer(def)` returns `{ enabled, predicates? }`: structural eligibility first, then the switch, then the `sharingModel` default. It is the answer the Change Owner endpoint and the console action will read once they ship, each still asking the caller's own transfer verdict per record; neither exists in this release. + - **Refused at parse.** `transfer: true` or `{ enabled: true }` on an object that is not eligible is refused at `userActions.transfer`, with the structural reason and its remedy in the message. Closing the switch there (`false`) is accepted. `changeOwner` and `reassign` under `userActions` are refused with a pointer to `transfer`. + + The switch gates the dedicated action, not the raw write: a plain `owner_id` update stays governed by `allowTransfer` alone, so import mappings and hooks are unaffected. To block every change of owner, declare `owner_id` `readonly`. + + The Studio object form gains a Change Owner row under User Actions, with its label and help text translated in every shipped locale. + + The served object document classifies `userActions.transfer` beside the four CRUD entries: for a caller who cannot read a field, a `transfer` predicate that names it is removed and the switch with its other predicate stays, as for `edit` and `delete`, instead of the whole entry being dropped. + + Nothing reads the switch at runtime yet. The Change Owner endpoint and the console action come in follow-up changes, so the liveness ledger grades `userActions.transfer` `planned` and `os lint` / `os validate` warn an author who sets it to `true` or uses the object form that nothing honours it yet. The key is new, so no stored object carries it and nothing needs migrating. + + **Existing objects that set `userActions.exportCsv: true` get a new warning.** Drilling `userActions` showed that no export menu reads `exportCsv`: setting it to `false` does not hide CSV export, which follows the view's `exportOptions` and the object's effective API operations. The ledger now grades it `dead`, so `exportCsv: true` raises a `liveness-dead-property` warning at `os lint` / `os validate`, and the hint says to remove it (`exportCsv: false` is not flagged). It is a warning, not a refusal: every stored object still loads. A follow-up (#35619) either makes the export menus honour the key or removes it. +- e114324: feat(units): a number field declares its unit with `unitConfig`, and the engine checks every unit code it stores + + Clause-②: yes + Metadata-protocol: added + + ADR-0158 R1, the membership card (#35489). + + **`unitConfig` on a field** (`@objectstack/spec`, `UnitConfigSchema`): + + - `{ unitMode: 'fixed', unit: 'KGM' }` on a `number`: the quantity is always in one standard UN/ECE Recommendation 20 unit, checked at parse against the standard unit table (exact uppercase; `C62` and `EA` are answered with the piece, `H87`). + - `{ unitMode: 'record', unitField: 'uom', unitDimension?: 'mass' }` on a `number`: each record names its unit by code in the sibling `text` field `unitField` names. The object refuses a pointer into nothing, into a non-`text` field, through a parent (`PARENT_FIELD.UNIT_FIELD` is reserved: a child cannot follow its parent's unit yet), or into a field carrying its own marker, and two quantities sharing one unit field with different `unitDimension` values. + - `{ unitMode: 'code', unitDimension?: 'count' }` on a `text`: a field holding a unit code with no quantity beside it, such as a material's base unit (Open item 8, ruled A). It is a unit marker, not a value domain, and is refused beside a `valueDomain`. + - `unitMode` is required and has no default. The key is refused on every other field type (`currency`, `formula`, `summary` included). A quantity stays a bare number, and needs no `scale`. + + **The write check** (`@objectstack/objectql`): at every insert, by-id update, predicate update and `validate()` preview, a unit code the row stores must be a standard code or one of the organization's own non-retired units (`sys_unit`), in exact uppercase and of the declared `unitDimension`, and a quantity may not stand beside a blank code. The row image is judged whenever the write touches the quantity or its unit field (Open item 9). Refusals, each 400, registered in the error-code ledger: `ERR_UNIT_CODE_REQUIRED`, `ERR_UNIT_CODE_UNKNOWN`, `ERR_UNIT_CODE_RETIRED`, `ERR_UNIT_DIMENSION_MISMATCH`. A row resting on a code that is no longer a member stays editable in its other fields; a quantity edit beside it is refused until the row moves to a member unit. + + **A unit is retired, never deleted**: the engine refuses a delete of a `sys_unit` row for every caller, a system writer and an automation run included, by id and batched (405 `ERR_UNIT_DELETE_REFUSED`), and `organization_admin` names `sys_unit` explicitly with no delete (`@objectstack/plugin-security`). + + `@objectstack/metadata-core` and `@objectstack/driver-sql` classify the new field key (field-level security keeps it; the DDL does not read it). `@objectstack/platform-objects`: the `sys_unit` docblock names its readers. +- f44758b: feat(units): `os migrate unit-codes` converts stored unit text into unit codes, from the operator's mapping + + Clause-②: yes + Metadata-protocol: added + + ADR-0158 U7 R1, the backfill door (#35492). It is the twin of `os migrate record-currency-codes`. + + **What it is for.** A field declared a unit code field after its rows were stored still holds free text such as `kg`, `公斤` or `lbs`. Since #35489 the engine checks each unit code it writes, so editing a quantity beside such a value is refused until the row holds a code. This door converts those rows in one run. + + **`backfillUnitCodes`** (`@objectstack/objectql`, also exported: `formatUnitCodeBackfillReport`, `unitCodeBackfillComplete`, `unitCodeMappingOf` and the report types): + + - **Which field.** `field` names the unit code field: the `text` field a quantity's `unitConfig.unitField` names, or a standalone `unitConfig: { unitMode: 'code' }` field. If you name the quantity, the refusal is `INVALID_FIELD` and names the field to use. + - **The mapping.** It is the operator's, never derived. It maps stored text, exactly as written, to a unit code. Matching is exact: `kg ` and `KG` need their own entries. + - **Targets are judged before any row is read**, as the write would judge them. A target that is not a standard UN/ECE Recommendation 20 code or one of the organization's own units, a retired unit, or a unit of another dimension than the field's `unitDimension` is refused `INVALID_FIELD` / 400 on the field. With no organization named, organization codes are judged in each organization the run would write them in, still before any write. + - **Rows already holding a unit code are never rewritten**, so the run is idempotent: a second apply run writes nothing. That includes a unit the organization retired and a code of another dimension. Both are codes, not free text, and rewriting them from a mapping would change what the stored quantity means. Neither is a code the field admits: beside a quantity, the write check refuses each at the row's next quantity edit; a standalone unit field has no quantity, so the next write of the field must carry another code. So they are listed as `retired` and `other-dimension` and counted apart (`skippedRetired`, `skippedOtherDimension`), never as a code the field admits. + - **A blank unit beside a quantity** is written only from an explicit `""` entry; without one it is counted (`blankBesideQuantity`) and named in the report. A blank unit with no quantity is left alone. + - **Complete.** `unitCodeBackfillComplete` answers true only when every row holds a unit code the field admits: no unmatched value, no blank beside a quantity, no retired unit, no code of another dimension, no failed or unexamined row. The report prints its ✓ line only then. + - **Dry run by default.** It lists each distinct stored value with its row count and what the mapping does with it, and writes nothing. With no mapping, the listing shows which spellings to map. + - **Unmatched values.** An apply run that meets a value with no mapping entry is refused `VALIDATION_ERROR` / 400 on `mapping` before any write. The refusal names each value with its row count, and carries them as `unmatched`. + - **Scope.** Scope is `organizationId` or `allOrganizations`, as on the currency backfill. An unscoped run over the rows of several organizations is refused with each organization's counts. + - **Writes.** Each row is written through `engine.update` as a system write, so the unit check judges every converted code. + + **`os migrate unit-codes --object O --field F [--map-file mapping.json] [--org ID | --all-organizations] [--apply] [--yes]`** (`@objectstack/cli`): + + - It has the precedent's confirmation and exit behaviour: `--apply` asks first, and exits 1 under `--json` or with no terminal unless `--yes` is given. + - A mapping file that is not JSON, or a mapping the engine refuses as malformed, is refused before the occupancy probe, the prompt and the boot. + - Any refusal exits 1. Under `--json` it carries the code, the HTTP status, and `unmatched` or `organizations` where those apply. + - It closes with a ✓ only when `unitCodeBackfillComplete` holds. A run that leaves a blank beside a quantity, a retired unit or a code of another dimension closes with a warning naming what is left. + + **`POST /api/v1/meta/_migrate-unit-codes`** (`@objectstack/rest`) is the tenant-admin twin of `_migrate-record-currency-codes`. + + - Its body is `{ object, field, mapping?, apply? }`, and any other key is refused 400. + - It sits behind `metadata.endpoints.maintenance` and requires `setup.write`. It converts the caller's current organization only, and is a preview unless `apply: true`. + - The report is the `data` of the shared envelope. A refusal over unmatched values answers 400 with `error.details.unmatched`. + + **The unit refusals name the door** (`@objectstack/objectql`). The `ERR_UNIT_CODE_REQUIRED` and `ERR_UNIT_CODE_UNKNOWN` refusals of a quantity written beside a stored value the write did not supply now end with the remedy: the `os migrate unit-codes` command for that object and field, or the REST door. The refusal of a blank names the `""` entry. A refusal of a code the caller wrote carries no remedy. + + **A metadata save that makes a stored field a unit code field is a destructive change** (`@objectstack/metadata-protocol`, `@objectstack/spec`). The detector judges the declaration and reads no row. Two findings sit beside `currency_mode_to_record` on the 409 `DESTRUCTIVE_CHANGE`, and `force: true` lifts them: + + - `unit_code_field_declared`, on the code field: a stored field that is a unit code field after the save and was not one before. Any declaration can do it: a quantity, new or stored, whose `unitField` names the field; a `unitField` re-pointed at it; or its own `unitMode: 'code'`. A field that already was a unit code field raises nothing. + - `unit_mode_to_record`, on the quantity: a stored quantity switched to `unitMode: 'record'`, whatever its `unitField`'s history (a unit code field already, or a field new in the same save). It names the blank units beside the quantity and the `""` entry that writes them. It is not raised when the same save raises `unit_code_field_declared` on that `unitField`, since that finding names the quantity, its blanks and the `""` entry, so each debt is reported once. + + Each names the conversion run for that object and code field, CLI and REST. +- 5d2ce34: fix(spec): the save door refuses an undeclared text key asked for as `ctx.text?.('k')`, as it already did for `ctx.text('k')` + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + + **BREAKING** for a hook that declares `texts` and whose code asks for a key `texts` does not declare through the optional call `ctx.text?.('k')`. Action `texts` is read the same way from the release that introduces it, so no released action is affected. + + - FROM: `HookSchema` refused a key asked for literally and not declared in `texts` only for the plain call `ctx.text('k')`. `ctx.text?.('k')` and `await ctx.text?.('k')` with an undeclared key parsed green, and the runtime refused the key only when the hook ran. + - TO: the optional call is refused at save with the sentence the plain call already gets, at `body.source` for a `js` body or at `handler` for an in-process handler. Whitespace or a line break around `?.` is read too. + - Fix: declare the key under `texts.KEY` with the sentence the record keeps, or ask for one of the declared keys. A declared key is accepted in both shapes. + + A key that arrives any other way (a variable, a computed name) is still judged when the code runs. + + <!-- adr-0087: registered hook-action-text-key-optional-call-refused --> +- 9b6db73: feat(spec, ui): a master_detail child is a table in the record overview by default + + Clause-②: yes (widening: a master_detail FK with no `relatedList` now reads as `'primary'`) + Metadata-protocol: semantic + + A `master_detail` child used to be a side list unless it also declared `inlineEdit`. Now the relation type decides: a `master_detail` FK that declares no `relatedList` is a body table in the parent's record overview. `inlineEdit` is no longer needed for that; it stays what it was, the write side (whether the edit form inlines the child as line items). + + - `relatedList: false` hides the list, `relatedList: true` keeps it a side list (a card in the related column, a tab on the tab row), `relatedList: 'primary'` is unchanged. A `lookup` FK with no `relatedList` stays a side list. + - `isBodyTableRelationship` is still the one judgement. The field-group placement check at `defineStack` and at the publish door follows it, so a field group may now name a plain `master_detail` child to position its table. Studio reads a plain `master_detail` FK as "primary" and writes an explicit `true` when you pick "Show". + - Placement: the body tables of a synthesized page are drawn in the overview's left column above the field sections (under the stage bar and key fields), in the parent's `relatedLists` order. A field group that names one still positions it. They never get a tab or a related-column card. The drawer uses the same page. + - An empty body table draws its column headers and one empty row holding the empty sentence and a New button. + - The table shows 10 rows by default (the page can set its own page size). "Show all N" expands it in place, and ↗ opens the child list filtered to the parent. + - Totals come from the server: the parent's `summary` field over the same child rows when there is one, otherwise a sum aggregate over every child row of this parent (the existing data query, no new endpoint). They are drawn in the table's summary row. The old "this page" sum of the shown rows is gone; a data source with no `aggregate` draws no total. + - A `master_detail` related list placed on an authored record page gets the same body-table treatment (the totals and the empty row). + + To keep an existing `master_detail` child as a side list, write `relatedList: true` on its FK. +- f98f18c: feat: an object's `userActions.exportCsv: false` hides the console's Export entry + + Clause-②: yes + Metadata-protocol: semantic + + `userActions.exportCsv` on an object now does what the Studio object form says it does. Set to `false`, the console offers no Export entry for downloading that object's data, in any of its formats (CSV, XLSX, JSON): + + - the object grid hides its toolbar Export menu, and the table's own CSV button that `operations.export: true` turns on; + - the list view hides Export in both toolbar forms, the wide toolbar's button and the Display panel's export footer; + - a dataset report hides its Export control when the dataset's base object sets it. + + A view's export of the picture it draws is not covered: a Gantt view's PNG and PDF buttons stay. + + Every surface reads one verdict, the new `isObjectExportOffered(objectSchema, effectiveApiOperations)` from `@object-ui/core`: the authored `exportCsv` over the object's `managedBy` default, ANDed with the caller's effective `export` API operation. Before this change the grid's toolbar menu, the list view and the report read the effective operation but not the object's bit, and the grid's table CSV button read neither half (only `operations.export`), so `exportCsv: false` changed nothing. Export is a read, so the verdict is not a row of `AFFORDANCE_GRANTS` and asks no `can(object, verb)`: the caller's export grant reaches the console through the effective `export` operation, which the server derives from `list` and `allowExport`. + + An object that does not author the key keeps its Export entries, since every `managedBy` bucket still defaults `exportCsv` to `true` (ADR-0103), with one change: the grid's table CSV button (`operations.export: true`) now also follows the effective `export` operation, as the toolbar menu beside it already did. So a viewer whose effective operations exclude `export` no longer sees that button, even on an object that authors nothing. The setting hides the entry and is not a permission: no export request is refused because of it, and who may export is still the permission set's `allowExport`. The report reads the base object's definition through the report's data source, and a report whose source cannot serve one keeps its Export control. + + The spec's `exportCsv` description and the Studio form's help text now say this; the form's English help text bundle in `@objectstack/platform-objects` is regenerated to match, and the translated locales keep their wording. The liveness ledger grades `userActions.exportCsv` `live`, so an authored `exportCsv: true` no longer raises the `liveness-dead-property` warning at `os lint` / `os validate`. Nothing needs migrating. +- 29f1280: feat(cli)!: `os validate` and `os build` refuse seed records the seed load would drop: one its own validation rule refuses, or a keyed one with a blank key field + + Clause-②: yes (narrowing) + Metadata-protocol: narrowed + Skills-docs: follow-up #37158 + + <!-- adr-0087: registered seed-record-refused-before-load --> + + **BREAKING** accept-set narrowing of two authoring doors, shipped as `minor`. FROM: `os validate` and `os build` exit 0 on a config one of whose seed records the seed load drops (its own validation rule refuses it, or it is keyed and leaves a key field blank). TO: both exit 1 and name the record, its object, its index and the refusing rule or the blank field. The load's own verdicts do not change. Fix: correct the record so its rule admits it, change the rule if the record is right, or give the record its key value. + + A seed write is held to the object's own validation rules (every type but `state_machine`), and a record a rule refuses is dropped from the load while the rest land. Until now nothing at authoring time judged a seed record against those rules: `os validate` and `os build` passed, and the first sign was a `[Seeder] … dropped record(s)` line at boot carrying the rule's message, not its name. Both commands now refuse such a config (exit 1), one line per refusal (a record two rules refuse prints two), naming where the record sits, its index and the refusing rule: + + ```text + ✗ Seed records the seed load refuses (1 record) + ✗ data[0].records[1]: Seed record #1 of 'xt_payment' is refused by its validation rule 'amount_positive': A payment amount must be positive. + ``` + + The verdict is the write path's own evaluator, run on one rule at a time. A record and rule pair is judged only when the record's own literal values decide it; a pair whose rule reads something the load decides (a reference, a roll-up, formula or autonumber field, a default, a platform-injected column, an expression value, a present value of a non-literal type such as `date` or `datetime`, a `json_schema` rule, a `beforeInsert` hook's write, or the stored row of an `update` dataset) is counted in one dim line and never refused; a dataset whose object the stack does not declare has no rules to judge. A hook registered in plugin code is not visible to the stack, so a config that relies on one to fill a field a rule reads can be refused although the load admits it. Advisory rules (`warning` / `info`) and inactive rules are not judged. + + A keyed record (every live mode: `ignore`, `upsert`, `update`) whose literal value for a key field is blank (no value, `null` or `''`) is refused the same way, in the sentence the seed loader refuses it with at load, naming the object, the record index and the field. A key field holding an expression is judged at load only, and so is the object's organization column, which the load stamps: a declared `tenancy.tenantField` the object has, else `organization_id`. + + `--json` output carries the refusals under `errors` (`os validate`) or `issues` (`os build`), each with `rule` (`seed-row-refused-by-validation-rule` or `seed-record-key-field-blank`), `location`, `object`, `recordIndex`, and `validationRule` or `field`. + + To fix a refused config: correct the record so its rule admits it, change the rule, or give the record its key value. `@objectstack/lint` exports the walk as `judgeSeedRowRefusals`, which takes the evaluator and the tenancy resolver (`resolveTenantFieldName`, `@objectstack/core`) as inputs. +- eb7ad70: fix(metadata-protocol)!: a seed never stores a roll-up (summary) value; the children compute it, and the load says what it dropped + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + + <!-- adr-0087: registered seed-summary-value-not-stored --> + + **BREAKING** for a seed record that supplies a value for a `summary` (roll-up) field, in any seed: a `defineStack({ data })` dataset, `defineSeed`, a `seed` metadata item, or the seed data a package install loads. Every aggregate (`count`, `sum`, `min`, `max`, `avg`) is treated the same, whether or not the field is declared `readonly`. + + - FROM: the seed loader writes as the system principal, so the supplied value was stored as written. It stayed wherever no child write came after it: a parent seeded with a total and no children kept the total; a re-seed over existing children wrote it over the computed value; and a keep-current (`upsert`) seed replayed on the next boot stored the computed total on the first load and the supplied one on the second. + - TO: the loader takes every such value out of the record before the replay compare and the write, on insert and on update, and writes the rest of the record. A created row starts the column at its empty-child-list value (`0` for `count` and `sum`, empty for `min`, `max` and `avg`), and the seeded child rows compute it. A matched row keeps the value it holds, so a replay whose only difference is the roll-up writes nothing. A parent seeded with a total and no children now reads `0`. + - Reported, not silent: the load logs one warning per dataset naming the object, the fields and how many values it did not write. A dry run (`validate`) logs the same warning. `success` and `errored` do not move, and the load result gains no key. One row counter does: on a replay (`upsert` or `update`), a matched row whose only difference from the seed record was a roll-up value is now counted `skipped`, with nothing written, where it used to be counted `updated`. + + Compatibility note for seed authors: to show a total, seed the child rows it is computed from and leave the summary field out of the parent's seed record. A figure no child rows back is not a roll-up: declare it a `number` or `currency` field. A legacy total that must land as written goes through a historical import (`treatAsHistorical: true`), which is unchanged. Rows an earlier load stored a supplied total on are not rewritten by the loader; the next child write recomputes them. A parent with no child rows gets no such write, and `os migrate summary-nulls` backfills only `NULL` columns, so repair one by hand: insert a child row under it and delete that row again, and the recompute leaves the empty-set value. + + Not changed: the engine (`packages/objectql`), which still keeps a value an `isSystem` write sends (the roll-up recompute, the backfill, a historical import); the import and REST doors; and the runtime's basic-insert fallback seeder, which runs only when the seed loader is unavailable or throws. +- fe19096: fix(lint)!: a body whose regular-expression pattern the runtime's QuickJS also refuses is refused, not only warned about + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: follow-up #36727 + + <!-- adr-0087: registered body-regexp-pattern-refused --> + + **BREAKING** only for a body that never ran. `action-body-does-not-compile`, `hook-body-does-not-compile` and `job-body-does-not-compile` compile an L2 body inside the wrapper the runtime runs it in, with the host's JavaScript engine, and reported every failure V8 words as `Invalid regular expression: /PATTERN/FLAGS: REASON` at `warning`, because the host's V8 and the runtime's QuickJS differ on some patterns. Measured over the same wrapper text (Node 22.23.5's V8 12.4, Unicode 17.0 tables, against quickjs-emscripten 0.32.0), they differ on two constructs, a duplicate named capture group in different alternatives (`/(?<a>x)|(?<a>y)/`, V8 `Duplicate capture group name`) and a modifier group (`/(?i:a)/`, V8 `Invalid group`), and on three Unicode property names, `IDS_Unary_Operator` (`IDSU`), `Modifier_Combining_Mark` (`MCM`) and the script `Katakana_Or_Hiragana` (`Hrkt`, under `sc=`, `Script=`, `scx=` or `Script_Extensions=`), V8 `Invalid property name`: every name in QuickJS's own tables was compiled in every key form, under `u` and `v`, bare and in a class, and these twelve spellings were every disagreement. Node 22 refuses them and QuickJS runs them. Every other pattern reason probed is refused by QuickJS too, among them an unterminated group (`/(/`), nothing to repeat (`a**`), a class range out of order (`/[b-a]/`), and under `u` a back-reference to a group the pattern does not name, a Unicode property name neither engine knows (`/\p{Nope}/u`) and an incomplete quantifier (`/a{/u`). Such a body passed `os validate`, `os build`, `os lint` and the runtime publish door, and every run of it failed. + + What moves (FROM → TO): + + - The three rules (`validateActionBodyCompiles`, `validateHookAndJobBodyCompiles`, `@objectstack/lint`) on a regular-expression pattern failure that is not one of those measured gaps: FROM `warning` TO `error` at `os validate`, `os build`, `os lint` and the runtime publish door (`action`, `object` and `hook` writes, `422 INVALID_METADATA`), with a hint that names the fix. The measured gaps stay a `warning`; a property name is judged by the host's Unicode tables, and on a host whose tables are older than Unicode 17.0 every property name it refuses is a `warning`; a later Node whose V8 accepts a gap reports nothing for it. + - `BodyCompileShape` (`@objectstack/lint`) gains `regexp-dialect-gap`, the one `warning` arm; `regexp-pattern` is now an `error`. + - The unterminated-literal hint names a line terminator inside the literal as a cause (a `\n` written with one backslash in a quoted or JSON-carried `body.source`). + - A hook lowered from an inline `handler` whose body does not compile gets a hint that names the handler instead of `body.source`. + - The runtime's QuickJS runner (`@objectstack/runtime`): a hook or job body that does not compile is reported FROM the generic `hook 'NAME' threw: SyntaxError: …` (the sentence a body that ran and threw gets) TO `hook 'NAME' does not compile: SyntaxError: …` (and `job 'NAME' …`), the way an action body's is. The caller's answer is unchanged: the `/data` door still answers the sanitised `500 INTERNAL_ERROR`. + - `os explain` for the three rules and the ADR-0087 entries `action-body-does-not-compile-refused`, `action-body-regexp-literal-token-refused` and `hook-job-body-does-not-compile-refused` now say which pattern failures warn. + + The fix: close every group, give each quantifier something to repeat or escape it, write a class range low to high, reference only a group the pattern names, and use a Unicode property that exists. + + No conversion is made (ADR-0087 D3, entry `body-regexp-pattern-refused`): which pattern the author meant is a judgement. Measured first-party exposure: zero. +- d953558: docs(spec): two upgrade-guide entries state the record page rules as merged + + Clause-②: no + Metadata-protocol: semantic + + `field-group-related-list-side-card-refused` no longer lists a plain `master_detail` with no `inlineEdit` among the shapes a field group may not name: a group may place a `master_detail` FK that declares no `relatedList`, `inlineEdit` or not, and makes it a body table. Its remedy and reason name that rule. `page-slots-tabs-retired` says a `kind: 'full'` page is drawn as authored on the desktop full record page; a phone and the side preview draw the standard record page. No rule, refusal, schema or entry `id` changes, and `os migrate meta` lists the same entries for the same stacks. +- af566c2: feat(spec): `count_true` / `count_false` column summaries — a boolean column's Yes and No counts in the list footer and group headers + + Clause-②: yes (widening) + Metadata-protocol: added + + `ListColumn.summary` accepts two more members, `count_true` and `count_false`: the number of rows whose boolean (or toggle) cell is true, and the number whose cell is false. A cell with no value is neither; it stays `count_empty`'s, so `count_true + count_false = count_filled`. + + Both are answered on the server with no new aggregation function: booleans aggregate as numbers on every backend, so `count_true` is `SUM(field)` and `count_false` is `COUNT(field) − SUM(field)`, read off the group header row (or the footer's whole-set row) by `deriveColumnSummary`. `COLUMN_SUMMARY_AGGREGATION`'s derived rows now carry `reads`, every node the member reads (`from` is its first); `columnSummaryNodeFunctions(mapping)` is the one reading of a row's nodes, which the group header compiler, the footer's whole-set query and the lint now share. `COLUMN_SUMMARY_FIELD_TYPES` / `isColumnSummaryCompatibleWithFieldType` say the two members apply to `boolean` and `toggle` only. + + `@objectstack/lint` refuses `count_true` / `count_false` over any other field type under `list-view-summary-field-type-refused` (an error, so `os validate` and the save door fail): over a number the same `SUM(field)` is a total, and the footer would print it as a count. + + `@object-ui/plugin-grid`'s footer menu offers Count of Yes and Count of No first on a boolean or toggle column, and only there; the footer draws them as `Yes 12` / `No 3`, from the whole matched set when the server answers it and from the page, labelled as the page's, when it does not. `@object-ui/i18n` adds the `grid.summary` keys `countTrue`, `countFalse`, `menuCountTrue` and `menuCountFalse` in every pack. +- cedc094: fix(objectql)!: a composition's top-level `objectExtensions` entry that no package body carries is registered and served; composition refuses two such jobs of one name, and residual extensions that would share one package's slot + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: none — no skill teaches placing `objectExtensions` or `jobs` in a manifest-less input of a `'preserve'` composition; the refusal names both entries and prescribes the fix + + <!-- adr-0087: registered stack-residual-extension-registered-and-jobs-judged --> + + **BREAKING** accept-set narrowing, shipped as `minor`, beside a runtime fix. + + - **Fixed (`@objectstack/objectql`, `@objectstack/metadata`).** A composed artifact that carries `packages[]` keeps the entries no package body claims at its top level, and the boot registers that residual under the artifact's `manifest.id` (ADR-0130 D4). Under `composeStacks(stacks, { manifest: 'preserve' })` that is an input with no `manifest`; under `'first'`, `'last'` or an index it is also the own top-level entries of an input that is itself a multi-package artifact. Its `objectExtensions` entries were registered by no door: the target object was served without their fields (`INVALID_FIELD` on a write naming one) and nothing was logged, through `os serve` and through `os build`'s artifact alike. The residual rule (`unclaimedTopLevel`) now lists such an entry (type `object_extension`) when no package body carries an entry equal to it, and the engine registers it as an `extend` contribution under `manifest.id`, as a body's entry registers. An entry whose field names a picklist no package body declares is not registered and is named at boot, like a residual object. + - **Refused now, at composition (`STACK_CROSS_REFERENCE_INVALID`, 422), under every manifest strategy once the result carries `packages[]`.** Two residual jobs of one name: the boot's job binder schedules neither (`NOT SCHEDULED` at `error`). A residual `objectExtensions` entry for an object that the body carrying `manifest.id` also extends with other fields: one extension of an object registers per package, so only the last one's fields would be served; the finding names that body's entry first, then the residual's: `Object extension of 'crm_line' is declared twice in \`objectExtensions\`: 'com.example.billing' (stack #2) objectExtensions[0] and stack #1 objectExtensions[0]. …`. Two residual `objectExtensions` entries for one object, also when another package body extends that object: a residual entry is now told from a body's flattened copy by value, not by target, so the two are one package's pair (they used to count as that body's copies and compose). + - **Not refused (known gap).** A residual job that shares its name with a package body's job, with other content, still composes: it is read as that body's copy, and the boot holds two enabled jobs of the name and schedules neither. + - **Wording.** The `jobs` finding at every door now says what the runtime does with the pair: `The runtime keys jobs by name: the metadata keeps only the last of these entries, and the job scheduler refuses a name two enabled jobs share, so when both are enabled neither runs.` + - **Unchanged.** One residual extension for an object another package extends composes, and both register. A residual entry equal to a body's entry is that body's copy. Package-claimed extensions and a single residual job compose and boot as before. + - **Installed artifacts.** A residual extension sharing its package's slot registers, the last one served, with one `error` line per object naming the entries. A residual extension now passes the registry's `extend` door as a package body's entry does, so one that door refuses (reachable only through `strict: false` or a hand-built artifact) now fails a boot that used to load and drop it. + + One-line fix: declare each job name once; move a top-level extension into the package that owns it, or merge it into that package's own entry for the object. +- d7c257e: feat: the engine's seam for the fixed-read leaf, and the driver declaration for it (ADR-0155, step 2 of 6) + + Clause-②: yes + Metadata-protocol: added + + No visible change on its own: nothing on main writes a fixed-read leaf yet (the sharing plugin starts writing `SharedRecordIds` at ADR-0155's last step), and no driver declares one (the SQL drivers and the memory driver declare it on the steps that compile it). + + - **The driver declaration** (`@objectstack/spec`). `DriverCapabilities.fixedReadLeaves` lists the fixed-read leaves a driver's filter compiler evaluates exactly, by name, e.g. `['SharedRecordIds']`; absence means none. The names are `FIXED_READ_LEAF_NAMES`, and `fixedReadLeafNameOf(leaf)` maps a leaf to its name. It stays separate from `readableIdsLeaf`: a `ReadableIds` leaf is not a fixed-read leaf, and a driver that evaluates both declares both. Both descriptions now say so. + - **The seam** (`@objectstack/objectql`). The engine's comparand door admits a branded `SharedRecordIds` leaf as a `$in` comparand, and the engine hands it to the driver by reference only when it sits on `id` of the object it names (directly, or inside a composed `ReadableIds` scope over that object), on a read verb in its read form or in a predicate update's `where` in its write form, for the context's user or its delegator (a system context is exempt), outside both classes ADR-0155 D4 recognises (the object on another datasource than `sys_record_share`; a middleware or a `beforeFind` / `afterFind` hook registered for `sys_record_share` by name), and to a driver whose `fixedReadLeaves` names it. Anything else is refused before any driver is asked, `INTERNAL_ERROR` / 500, logged at `error` once per evaluator. An unbranded copy is still refused at the door as a non-list comparand, `INVALID_FILTER` / 400. + - **The refusal** (`@objectstack/core`). `fixedReadLeafRefusal`, `refuseFixedReadLeafOnce` and `describeFixedReadLeaf` are the one envelope every evaluator answers a fixed-read leaf it will not run with; `logRefusalOnce` is the once-per-instance log it shares with the `ReadableIds` refusal. + - **Filter tokens** (`@objectstack/core`). `resolveFilterTokens` returns a fixed-read leaf by reference, as it does a `ReadableIds` leaf, so a read scope that carries a placeholder beside the leaf keeps the leaf's brand. +- d6be99d: feat(console)!: an object's list opens a record one way — the name opens the page, the hover icon opens the side panel; `navigation.mode` is deprecated + + Clause-②: yes (narrowing) + Metadata-protocol: semantic + + <!-- adr-0087: not-required (runtime-export-retired @object-ui/components#NavigationOverlayProps.maximizable, @object-ui/plugin-list#ListViewProps.recordOpen) the retired operands are a prop of the drawer component and a host prop of the list, in published ui package entries; no packages/spec schema, no registered node type, no ADR-0087 conversion surface and no stored shape names them, so there is nothing for `objectstack migrate meta` to rewrite --> + + **BREAKING** for a host that passed `NavigationOverlay` its `maximizable` prop or passed `ListView` a `recordOpen` choice. The maintainer ruled one way to open a record from an object's list, with no setting (「这样就不需要任何设置」), and deprecated `navigation.mode` (「废弃」). + + On a Console object list the record's name now opens the full record page, and the icon shown beside the name while the row is hovered (「在侧边打开」 / "Open in side panel") opens the record in the drawer over the list. There is no setting to choose between them: the Display menu's 「打开记录:抽屉 / 整页」 section and the browser-kept preference behind it are gone. A touch screen has no hover, so there the name opens the page. A ⌘/Ctrl or middle click on the name still opens the page in a new tab. + + The drawer is a card floating 8 px clear of the window's top, right and bottom edges, rounded and shadowed. Its full-width "maximize in place" state is gone (a reload lost it, and the full page is the wide face): the bar's one ⤢ opens the full page. The page's 「收为抽屉」 / "Collapse to drawer" hop is gone with it. + + A page the list opens remembers the list in its history entry (`location.state.from`): the list's URL (view, filters, sort, search, grouping, page), its view's name, the rows it showed and, new here, the count its query matched (`total`). A reload of the tab keeps it, and going back to that URL restores the list's scroll position. A page opened any other way carries none. + + `navigation.mode` (`NavigationConfigSchema.mode`) is deprecated on an object's list (`@deprecated`, `[DEPRECATED]` describe; ADR-0087 D3 semantic entry `navigation-mode-record-open-deprecated`). The key stays in the shape and every value still parses, so existing metadata loads. On an object's list (a list view, an object's `listViews`) `drawer`, `page` and `new_window` change nothing: a view that declares one behaves as a view that declares nothing. `none` keeps "rows open nothing", because a read-only list that started opening records would be a regression nobody chose; prefer `navigation: { preventNavigation: true }`. `navigation.openNewTab: true` stays live: on an object's list the record's name then opens the full page in a new tab, and the list stays. A page's blocks that carry `navigation` (a list block, the timeline, an embedded view) still honour `drawer`, `page` and `new_window` as before: keep the key there. + + The i18n keys `list.recordOpen`, `list.recordOpenDrawer`, `list.recordOpenPage`, `list.optionsMenu.recordOpenAlwaysPage`, `detail.collapseToDrawer` and `console.objectView.openAsPage` are removed from every pack, and `console.objectView.openInSidePanel` is added. + + What leaves, and what to write instead: + + - FROM `NavigationOverlayProps.maximizable` TO nothing, in the components package: the drawer has no full-width state. Fix: delete `maximizable`; the drawer's ⤢ opens the full page. + - FROM `ListViewProps.recordOpen` TO nothing, in the list plugin: the Display menu has no Open records section. Fix: delete `recordOpen`; the list opens a record one way. +- f3c9d42: feat(spec, ui): a master_detail child is a tab by default; a field group puts it in the overview and the form + + Clause-②: yes (widening: `@objectstack/spec/data` exports `isGroupPlaceableRelationship`, `fieldGroupsPlaceRelationship` and the `BodyTableContext` type, and `isBodyTableRelationship` takes an optional second argument) + Metadata-protocol: semantic + + A `master_detail` FK that declares no `relatedList` used to put its child list into the parent record's overview as a table (since #35597). Now it is a tab of the record page with its count, like any other related list, `inlineEdit` or not. It goes into the overview only where a field group of the PARENT names it (`fieldGroups[].relatedList`). + + - Placed by a group, the child's table is drawn at that group's position in the overview, the parent's create and edit forms inline it, and the record page's Edit saves the record fields and the rows in one save. Its tab stays on the tab row too, with its count. + - `relatedList: 'primary'` on the FK is unchanged on the record page: a body table with no group, and no tab of its own whether or not a group positions it. Its forms follow ruling B like every other child: a field group naming it inlines it in the parent's create and edit forms, `inlineEdit` or not, and with no group naming it the forms do not inline it, even with `inlineEdit`. `relatedList: true` keeps a tab that no group may place, and `false` hides the list. + - A field group may name exactly what it could name before: a plain `master_detail` child or a `'primary'` one. `isGroupPlaceableRelationship` is that test; `isBodyTableRelationship(field, { placedByGroup })` is still the one body-table judgement. + - `inlineEdit` on the FK no longer inlines a child in the parent's form by itself (maintainer ruling B: only the field group decides). It now only picks the form factor of a child a group places: `'grid'`, `'form'`, or `true` / absent for the shape-picked default. A child with `inlineEdit` that no group names is a tab and is not in the form. + - `os lint`: `relationship/line-items-inline-edit` now suggests a field group on the parent (with its required `label`) instead of `inlineEdit: true`, and only for a FK a group may place; `relationship/association-inline-edit` and `relationship/inline-edit-needs-bulk` judge the children a parent group places; the field-consumer rule credits a child's inline grid columns only when a parent group places it. + - The showcase invoice and expense report, and the CRM opportunity, gain a field group naming their lines, so their forms and record pages keep the line table. + - In the entry form a placed table sits at its group's place too: between the sections of the groups around it, or in a tab of its own (labelled with the group) in a tabbed form. A form whose sections name no field group keeps it below the record's fields. + - Studio's field-group picker offers the same children as before. The relationship field inspector reads a plain `master_detail` FK as "Show", and "Show" leaves the key absent so a group can still place it. + + To keep a master-detail child's table in the overview and its rows in the form (including a child that set `inlineEdit`), add a field group to the parent that names it, in the place the table should sit: + + ```ts + fieldGroups: [ + { key: 'basic', label: 'Basic information' }, + { key: 'lines', label: 'Lines', relatedList: 'order_line' }, // or 'order_line.order' for one FK + { key: 'terms', label: 'Terms' }, + ], + ``` + + Such a group holds no fields. Or write `relatedList: 'primary'` on the child's FK to keep it in the overview with no group. A group may name only a list it can place: for an `inlineEdit` child on a `lookup` FK, or on a FK declaring `relatedList: true`, also write `relatedList: 'primary'` on the FK (a `master_detail` FK may instead drop `relatedList: true`). A form view that declares its own subforms still inlines what it declares. +- 8df7bf2: feat(spec): an object's `relatedLists` is its record page's tab list — only the listed related lists show, in order, the attachments, approvals and activity-stream tabs are placed by object name, and an entry can carry its list's title and columns + + Clause-②: yes (widening) + Metadata-protocol: semantic + + A record page's tabs are now declared on the parent object, in one place: + + ```ts + relatedLists: [ + { list: 'quote_line', label: 'Line items', columns: ['product', 'quantity', 'unit_price', 'amount'] }, + 'task', + 'sys_attachment', + 'sys_approval_request', + 'sys_activity', + ], + ``` + + - **No `relatedLists` (or an empty one): nothing changes.** Every related list shows, in the derived order, then attachments, approvals and the activity stream. + - **A declared `relatedLists` now decides which tabs show**, not only their order. A related list no entry names shows no tab; before, it still followed the listed ones. Removing an entry removes its tab. Body tables a field group places in the overview (`fieldGroups[].relatedList`) stay at their group, and the tab such a `master_detail` table also keeps on an undeclared page shows only when an entry names it, and `relatedList: false` on the child's FK still hides a list. + - **This narrows the #35889 note** ("Its tab stays on the tab row too, with its count"): the tab of a `master_detail` child that a field group places in the overview stays only while the parent declares no `relatedLists`; once it declares one, that tab shows only if an entry names the child. + - **The three built-in tabs by object name**: `'sys_attachment'` (attachments; shown only when listed, and still only when the object enables files), `'sys_approval_request'` (approvals; still only on a record with requests, and when unlisted it follows the listed tabs), `'sys_activity'` (the one activity stream; when unlisted it closes the strip). A built-in is written only as its bare name: `{ list: 'sys_attachment', … }` is refused at parse. `'sys_comment'` and `'sys_audit_log'` are parts of the stream, not tabs: `os validate` warns (`related-list-stream-part`) and prescribes `'sys_activity'`. `'sys_attachment'` on an object without files warns (`related-list-attachments-off`). + - **An entry's own title and columns**: `{ list, label?, columns? }` wins over the child FK's `relatedListTitle` / `relatedListColumns`, which keep working unchanged. The columns are child field names, used wherever the list is drawn (its tab, and the body table a field group places); a dotted column (`account.industry`) walks the child's relationships, as `relatedListColumns` does, and a name that resolves to no field of the child is refused (`related-list-column-unknown`) by `os validate`, `os build` and the metadata write door. + + - **The generic object form** (metadata admin) edits `relatedLists` with its own chip input: a bare name and an object entry both show and both survive add and remove (the entry's title and columns beside its name; they are edited in Studio). Its help text states the tab-list meaning in every translated locale. + - **Studio** (object settings, Record page tabs): the editor lists the entries in order, the built-in tabs among them, and offers the built-ins not yet listed (attachments only when the object enables files). A relationship row's edit sets its own title and columns, and clearing both writes the bare name again. The relationships not listed are shown below as having no tab. A move, a removal or an add keeps every entry's object form and every built-in name. + + What to check in an app: an object that already declares `relatedLists` and leaves some related lists out now shows only the listed ones, and shows no attachments tab unless `'sys_attachment'` is listed. List every tab the page should keep, or remove `relatedLists` to show them all. A child list another package adds is hidden too until the parent names it, which a build accepts only when that package is in the parent's stack; letting a package place its own list is a later change. ADR-0087 semantic entry `related-lists-declared-is-tab-list`. +- 170ca48: feat(spec): a field group lists its own members and their order (`fieldGroups[].fields`) + + Clause-②: yes (widening) + Metadata-protocol: added + + A field group may now list which fields it shows and in what order: + + ```ts + fieldGroups: [ + { key: 'basic', label: 'Basic', fields: ['account', 'name', 'valid_until'] }, + { key: 'terms', label: 'Terms', fields: ['terms'] }, + ] + ``` + + The record page, the create and edit forms and the drawer show the group's fields in the list's order, whatever order the object's `fields` declares them in, so a group can be reordered without moving any field (and without changing a list view's default column order). + + Nothing changes for an object that writes no `fields` on its groups: a group without the list still holds the fields whose `group` names it, in field declaration order. `Field.group` is the older spelling and is still read; it is not deprecated for removal. + + The two spellings must agree. The object parse refuses a field one group lists while its own `group` names another declared group (reported at both places; a `group` naming no declared key is not another group, so the list wins), a field two groups list, a name one list repeats, and `fields` on a group that places a related list (`relatedList`). A field whose `group` names a listing group that leaves it out is shown after the listed fields, never dropped. A listed name the object does not declare is skipped, so removing a field never makes the object unparseable; `os lint` warns about it (`field-group-member-unknown`). + + New export: `readFieldGroupMembership` (`@objectstack/spec/data`), the membership `deriveFieldGroupLayout` places sections from, for editors that also show hidden fields. + + Studio: dragging a field inside a group, or into another group, now writes those groups' `fields` lists and leaves the object's field declaration order alone. Only the ungrouped bucket, which has no list, still reorders by declaration order. Moving a field to another group from the field inspector does the same once a list is involved. + + Field-level security: the object document served to a caller who cannot read some fields keeps each group's `fields` list, with the hidden names filtered out and the rest in order, so the record page and forms keep the layout for that caller. +- d33bf5a: feat(spec): an object extension says where the fields, groups and child lists it brings go (`place`), and a child list another package brings is no longer hidden by the parent's `relatedLists` + + Clause-②: yes (widening) + Metadata-protocol: semantic + + An `objectExtensions` entry can now place what it brings on the object it extends: + + ```ts + objectExtensions: [{ + extend: 'account', + fields: { tax_id: { type: 'text', label: 'Tax ID' } }, + place: [ + { field: 'tax_id', group: 'basic', after: 'industry' }, + { group: { key: 'tax', label: 'Tax' }, after: 'basic' }, + { list: 'contract', after: 'opportunity', label: 'Contracts', columns: ['name', 'amount'] }, + ], + }], + ``` + + - **No `place`: nothing moves.** Fields still arrive after the object's own, and an extension that writes no `place` serves exactly what it served before. + - **One merge, every reader.** The registry fold applies the placements once, after every contributor's fields are merged, so the record page, the forms and Studio show one arrangement. Uninstalling or disabling the package takes its items off and leaves the object's own order as it was. + - **Placement arranges what the parent declares.** A list placement applies when the extended object declares `relatedLists`; a group or field placement when it declares `fieldGroups`. On a parent that declares neither, its automatic arrangement stays and nothing is dropped: the list shows in the automatic tab order, and its entry's `label` / `columns` are not applied either (write `relatedListTitle` / `relatedListColumns` on your child object's lookup field to title it on every parent); the field shows among the fields, its `after` / `before` not applied. The boot log names each placement that did not apply, with the object and the package. It is the main channel: `os validate` names it too (`extension-placement-not-applied`, warning) only when the extended object is in the same stack. + - **Anchors and order.** `after` or `before`, not both; neither means the end. An anchor may be an item another placement brings, whatever order the two are written or registered in. An anchor nobody has puts the item at the end of its group, of the groups, or of the tabs (before a trailing approvals / activity-stream run), and `os validate` warns (`extension-placement-anchor-missing`). A list placement's `columns` are fields of the child, checked by `os validate` as a `relatedLists` entry's are (`related-list-column-unknown`). Several packages at one anchor follow ascending `priority`, then package name, so every build gives the same order. When the object itself already names the list or lists the field, its own position wins. + - **An extension places only its own items.** A field outside its own `fields`, a field the extended object declares (also one the extension redeclares to relabel it), a group key the extended object already declares, or a list (placed as a tab or by a group's `relatedList`) that is not a child object of its package pointing at the extended object is refused at parse or at `defineStack`, and skipped by the merge with a warning naming whose item it is, whichever door registered the extension. The extension keys `fieldGroups` and `relatedLists` are refused with a prescription naming `place`. + - **Shipped behaviour change (flips #35897's hiding):** a child list another package brings is no longer hidden by the parent's declared `relatedLists`. Placed, it sits where its package puts it; unplaced, it shows at the end of the tabs. "Another package" means the child and the parent both belong to a package and the two differ; a child of the parent's own package, or one no package owns, is still hidden until an entry names it. This narrows the #35897 note "A child list another package adds is hidden too until the parent names it … letting a package place its own list is a later change": that change is this one. + - **Studio** (object settings, Record page tabs) shows such a list read-only among the unlisted rows with a "from <package>" badge, and the preview draws it where the record page does. + + What to check in an app: on an object that declares `relatedLists`, every installed package's child lists of it now show, at the end of the tabs unless placed; name one in the parent's `relatedLists` to put it elsewhere, or set `relatedList: false` on that package's FK to hide it. Nothing in HotCRM changes meaning today: no module writes `place`, and no object declares `relatedLists`. Most HotCRM objects already declare `fieldGroups`, so a field or group placement there applies as soon as a module writes one; a list placement waits until the parent declares its `relatedLists` (follow-up #35902). ADR-0087 semantic entry `object-extension-place-and-cross-package-lists`; ADR-0146 D10 and ADR-0085 notes. +- 236c804: feat(spec)!: retire the boolean arm of a relationship field's `inlineEdit` — `true` and `false` both read as the key left out + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: follow-up #37042 + + <!-- adr-0087: registered field-inline-edit-boolean-removed, field-inline-edit-boolean-retired --> + + **BREAKING** accept-set narrowing on `FieldSchema.inlineEdit` (`@objectstack/spec/data`), the inline form factor of a `lookup` or `master_detail` field. Since the field-group placement, a field group of the parent (`fieldGroups[].relatedList`) decides whether the parent's create and edit forms inline a child, and `inlineEdit` only picks the form factor of a placed child. Every reader of the key passes anything but `'grid'` and `'form'` as absent, so `true` (documented as "auto") and `false` both did exactly what leaving the key out does: the form factor is picked from the child's shape. + + | FROM | TO | + |:--|:--| + | `inlineEdit: true` on a `lookup` / `master_detail` field | delete the key (the form factor is still picked from the child's shape), or write `'grid'` / `'form'` | + | `inlineEdit: false` on a `lookup` / `master_detail` field | delete the key | + | a child meant to be entered in the parent's form | name it in a field group of the parent: `fieldGroups: [{ key: 'lines', label: 'Lines', relatedList: '<child object>' }]` | + + The one-line fix: delete a boolean `inlineEdit` wherever it is written; `os migrate meta --from 17 --write` deletes it from object sources. Writing one after upgrade fails `tsc` (the input type is `'grid' | 'form'`) and fails the parse with that prescription. `'grid'` and `'form'` parse unchanged. The view-level `inlineEdit` (a list view's in-cell editing switch) is a different key and is unchanged. + + The retirement kit: + + - **`@objectstack/spec`**: `FieldSchema.inlineEdit` is `z.enum(['grid', 'form'])`, and a boolean meets the prescription from the enum's own error map. The D2 conversion `field-inline-edit-boolean-removed` (lossless, retired from the load path) deletes a boolean `inlineEdit` from `objects[]` and `objectExtensions[]` field maps on every data-at-rest seam (stored rows, built artifacts, `os migrate meta`); the D3 entry `field-inline-edit-boolean-retired` names what the upgrade still owes: whether the child should be placed by a field group of the parent. The liveness ledger keeps the key `live` for the two surviving values, with the narrowing recorded. + - **Field form** (`@objectstack/spec` `field.form.ts`, labels in `@objectstack/platform-objects`): with the boolean arm gone a select spells every value, so the field designer now offers `inlineEdit` as a `Grid` / `Form` select on `lookup` and `master_detail` fields; left unset, the form factor is picked from the child's shape. Before, the form left the key out because no widget could spell a boolean-or-string union. + - **`@objectstack/lint`**: two doc comments in the field-consumer rule (`validate-field-consumers.ts`) now read a boolean `inlineEdit` as refused by the spec and as absent at the renderer; comment text on unexported functions only, so no shipped byte changes. + - **`@objectstack/cli`**: the golden metadata-eval corpus places its line items with a field group of the parent, with `inlineEdit: 'grid'` as their form factor, instead of `inlineEdit: true`. +- c261a7c: feat(automation): `POST /api/v1/automation/_record-starts` answers which flows a proposed update of one record would start + + Clause-②: yes (widening) — one new public read: the route `POST /api/v1/automation/_record-starts` (`automation.listRecordUpdateStarts` in the API contract and in `@objectstack/client`); `@objectstack/spec/api` adds `RecordUpdateStartsRequestSchema`, `RecordUpdateStartSchema`, `RecordUpdateStartsResponseSchema` and their types; `@objectstack/spec/contracts` adds `RecordUpdateStartsInput` and the optional `IAutomationService.listRecordUpdateStarts`; `@objectstack/spec/automation` adds `recordChangeTriggerHookEvents` and `recordChangeTriggerFiresOnUpdate`; `_record-starts` joins the `/automation` domain's reserved position literals. Nothing existing is removed or re-typed. + Metadata-protocol: added — the three new `@objectstack/spec/api` schemas enter the `api` authorable-surface shard (10 keys: `RecordUpdateStart:name/label/startsApproval`, `RecordUpdateStartsRequest:object/recordId/changes`, `RecordUpdateStartsResponse:success/data/error/meta`); no flow or other metadata key is added + Skills-docs: none — no skill under `skills/**` teaches the console's stage confirms; `content/docs/automation/flows.mdx` gains the read in this change. + + The console's stage confirms now name the flows a move would start (objectstack#35928, ruling record 7073655354). They ask the server: + + - **Request** `{ object, recordId, changes }`; **response** `{ success, data: { flows: [{ name, label, startsApproval }] } }`. + - **Who is answered:** a signed-in caller who can read the record. The record is read as the caller through the `/data` door's own `get`, so a record they cannot read answers `404 RECORD_NOT_FOUND` exactly as an absent one, and the engine is never asked. Anonymous `401`; a malformed body `400 VALIDATION_FAILED`; a `changes` key that is not a declared field of the object `400 VALIDATION_FAILED` on that key, the engine never asked; a read that answers no record `404 RECORD_NOT_FOUND`; any query parameter `400 VALIDATION_ERROR`; an engine without the read `501`. + - **Which flows:** enabled `record_change` flows of the object, armed on their trigger, whose `triggerType` binds an update, and whose start condition holds for the record read with `changes` applied (`previous` is the record read). The condition goes through the engine's one start-condition gate, the one every run passes; the token grammar `@objectstack/trigger-record-change` binds hooks by moved into the spec (`recordChangeTriggerHookEvents`) so the preview reads the same rule, with no second copy. A condition that cannot be evaluated against the record is not listed. Hooks are never listed. + - **Per flow:** `name`, the authored `label` (a client translates it by name) and `startsApproval`, true for a flow holding an `approval` node (ADR-0019). No description, condition or nodes. +- f2a990b: feat(spec): every step a flow drawing shows can be translated, under `flows.<flow>.nodes.<node_id>.label` + + Clause-②: yes (widening: a new translation key `flows.<flow>.nodes.<node_id>.label`; the new exports `FLOW_TECHNICAL_NODE_TYPES` and `isFlowTechnicalNodeType` from `@objectstack/spec/automation`; and `@object-ui/i18n`'s exported `FlowLabelTranslations` type gains the member `screenTitle`, and its `stepLabel` parameter accepts a `config`) + Metadata-protocol: added + Skills-docs: follow-up #36401 + + A package can now translate the label of any flow step, not only a screen's heading and an approval step's label. A manual that embeds a flow (a `type: flow` metadata embed) lists its steps by label, and until now a start, decision, notify or end step had nowhere to put a translation, so a zh-CN reader saw those steps in English beside translated approval steps. + + - **The key.** `flows.<flow>.nodes.<node_id>.label`, keyed by the node's `id`, at any depth. It overlays the node's own `label` and is plain text. A `screen` keeps its `screens.<node_id>.title` and an `approval` its `approvals.<node_id>.label`, so one string keeps one key: `objectstack validate` points a `nodes` key over either at that key, and points a `screens` or `approvals` key over any other node at `nodes.<node_id>.label`. A key over a node the flow does not declare is refused. `nodes` was an unknown-key hint that suggested `screens`; it is now its own group. + - **Start and end steps are translated like any other.** Their labels are the author's words and often name an outcome or a trigger ("Approved", "On Task Created"), so nothing substitutes words of its own for them. + - **Missing translations are reported.** `os lint` and `os i18n check` (`i18n/missing-flow`) now ask for the label of every top-level step the embed draws at its default `detail: business` altitude, except screens and approvals, which they already asked for, and of a folded technical step where a drawn decision's branch list names it as the step the branch leads to (a decision whose branch runs a `script` first). `os i18n extract` scaffolds the keys. An app that ships translated locales gets new findings for its flows until it translates them. + - **The drawings read it.** The docs viewer's `type: flow` embed (`element:metadata_viewer`) and the Studio flow designer's canvas, nested region nodes included, now name each step by its translation in the reader's language, through the one resolution in `@object-ui/i18n`: `stepLabel` reads `approvals.<node_id>.label` for an approval, `screens.<node_id>.title` for a screen with no `config.title`, and `nodes.<node_id>.label` for any other node. A step the package leaves untranslated keeps its authored label. A decision's branch list names the step a branch leads to the same way. + - **A titled screen is named by its heading in the docs embed.** A screen that authors its own `config.title` shows that heading at run time, translated under `screens.<node_id>.title`, so the embed names it by the heading (translated where the bundle carries it) instead of its canvas label, which has no key. A heading with a `{{ }}` hole cannot be filled in a drawing, so such a screen keeps its authored label. `FlowLabelTranslations` gains `screenTitle` for this read. The Studio canvas keeps a titled screen's authored label. + - **One table for what business altitude hides.** `FLOW_TECHNICAL_NODE_TYPES` (and `isFlowTechnicalNodeType`) in `@objectstack/spec/automation` lists the node types `detail: business` folds away (`script`, `http`, `connector_action`, `assignment`, `get_record`, `create_record`, `update_record`, `delete_record`, `boundary_event`). The docs viewer folds steps by it and the coverage check asks for translations by it, so they agree on which steps a reader sees. +- a23164e: feat(spec, ui): an object takes a colour from a fixed palette, and its icon is drawn as a white glyph on a square of that colour + + Clause-②: yes (widening) + Metadata-protocol: added + + - **`ObjectSchema.color` (new, optional).** One name from a closed palette of nine: `gray`, `blue`, `teal`, `green`, `amber`, `orange`, `red`, `pink`, `purple` (exported as `OBJECT_COLORS` and the `ObjectColor` type from `@objectstack/spec/data`). No free colour values: `color: '#ff0000'` is refused, and the refusal lists the nine names. An object without a `color` is drawn in the neutral `gray`. Nothing to migrate: every existing object stays valid and simply has no colour. + - **The AI blueprint carries it too.** `BlueprintObjectSchema.color` is the same leaf (required-but-nullable on `SolutionBlueprintStrictSchema`, like `icon`), and its rule asks the model to colour every object and give each object of one solution a different colour while the palette lasts. A producer of the STRICT shape must now send `color` on each object, `null` when it has none; the lenient shape a stored blueprint is read with keeps it optional. + - **`ObjectIconTile` (new, `@object-ui/components`).** Draws an icon name as a white glyph on a rounded square of a palette colour, in four sizes. Each name has a light-theme and a dark-theme value chosen so the white glyph keeps at least 3:1 contrast. `OBJECT_COLOR_TILE_CLASS` and `objectColorOrDefault` are exported with it. + - **Navigation draws objects as tiles.** In the sidebar, the app-home menu and the phone menu, every entry that opens an object is drawn as that object's tile: the entry's own `icon` when it names one, else the object's, on the object's colour. Dashboards, pages and links keep their line icons. `NavigationRenderer` takes a new `resolveTargetColor` resolver (`NavTargetColorResolver`) beside `resolveTargetIcon`; the console answers it from the object metadata it already holds (`useNavTargetColor`). A host that passes no `resolveTargetColor` gets its object entries as gray tiles where it had line icons. + - **The designer picks icon and colour together.** In the object's settings, the icon picker shows the nine colour swatches, and the trigger and every icon in the grid are previewed as the tile they become. The picker elsewhere (pages, apps, navigation entries) is unchanged: only objects carry a colour. + - The other places that draw an object's icon (list and record headers, search, related-record chips, the designer's object lists) switch to the tile in a follow-up release. + + `@objectstack/metadata-core`: the field-level-security reference table classifies the new `color` key as `keep` (a palette name names no field). + + `@objectstack/platform-objects`: the generic object form's metadata-form packs ship the new `color` row's label and help text in all 10 locales. +- 6db1dc2: feat: the form's line-item table edits people, multi-select, tags, check and rating cells the way the main list does + + Clause-②: yes (widening) + Metadata-protocol: semantic + + `InlineGridColumnSchema.type` (a relationship field's `inlineColumns`, a form view's `subforms[].columns`, and the page blocks that carry the same column) accepts five more cell types, each spelled as its namesake field type: `user` (people), `multiselect`, `tags`, `boolean` (check) and `rating`. The column also takes an optional `max`, the star count of a `rating` cell (default 5). + + In the line-item table: + + - A `user` cell opens the main list's person picker under the cell: a searchable list with recent people and Clear; a pick writes and closes. `multiple` holds several people. + - A `multiselect` cell holds several of its options and a `tags` cell holds free-form tags. Each opens its searchable list under the cell; a click outside or Tab writes what was picked, Esc writes nothing. A list emptied in the cell writes `null`, as a cleared multi-value field stores, so a line whose only value was removed is still a blank line. A `tags` cell takes no `options`. + - A `boolean` cell is a checkbox: a click or Space toggles it and writes `true` / `false`. + - A `rating` cell draws its stars; a click on a star, or a digit key on the cell, sets it, and 0 clears it. + - Read-only and list-mode cells show people by name, a rating as its stars, a multi-select's option labels, and a check cell as the session's yes/no word. + + Visible change on existing forms: a column the table derives from a child field (no `type` written) now follows that field. A `boolean` / `toggle` field becomes a checkbox instead of the yes/no select, and it writes `true` / `false` instead of the strings `'true'` / `'false'` (the server reads both the same). A `rating` field becomes stars instead of a number box. `user`, `multiselect`, `checkboxes` and `tags` fields get their own cells instead of a plain text box that took a typed user id or a single option. A column that writes its `type` is unchanged, a `type: 'select'` column over a boolean field included. Which derived columns are visible by default is unchanged. + + The field-level security scrubber classifies the column's new `max` key as kept (a number, never a field name). +- 78437e2: feat(security): the read-only `viewAllFields` object-permission bit + + Clause-②: yes (widening) — @objectstack/spec adds the optional `viewAllFields` key to `ObjectPermissionSchema` (and so to the wire `EffectiveObjectPermissionSchema`) and the optional `viewAllFields` column to `AccessMatrixEntrySchema`; nothing removed or narrowed + Metadata-protocol: added + + A permission set can now say "this role reads every field of this object" on its own: `objects: { crm_account: { allowRead: true, viewAllFields: true } }`. The bit casts a read vote on every field of the object, fields added later included, and never an edit vote: an edit still comes from the default (a field no set names follows the object grant) or from an explicit `editable: true` field row. Inside one set the specific row beats the general bit, so a set's own `readable: false` row on a field keeps that field hidden for that set. It is allowed on the `'*'` wildcard entry. It is a field vote only: it grants no object access and widens no record, so pair it with `allowRead`, and use `viewAllRecords` for records. + + Nothing behaves differently yet. Today `viewAllRecords` and `modifyAllRecords` also vote on every field, so on a set that carries either bit the new key duplicates a vote already cast. The built-in `organization_admin` set carries it on its wildcard entry, so its holders keep their field visibility when a later major release stops those two bits voting on fields; the wall-less `organization_admin_no_bypass` variant drops it together with the two record bits, as it never held that field vote. + + Every reader of the super-user bits reads the new one too: + + - both field merges (`PermissionEvaluator.getFieldPermissions` and the `fields` slot of `/auth/me/permissions`) apply it through the one shared vote, `superuserFieldVote` in `@objectstack/core`; + - the agent ceiling clears it on every object entry, as it clears View All and Modify All; + - an organization administrator cannot distribute a set whose `'*'` entry carries it (the organization boundary, condition (a)); + - a set carrying it on any object is high-privilege, so it is not bound to the `everyone` or `guest` audience; + - the access-matrix snapshot gains a `viewAllFields` column, written only when `true`, so the `access-matrix.json` of a stack that does not author the bit is byte-identical, and the semantic diff names it ("gains View All Fields on …"). +- 0b2118f: feat(record-page): on a phone the record page's bottom bar holds the object's own actions only, and Edit moves into the More menu at the top bar's right end + + Clause-②: yes (widening) + Metadata-protocol: semantic + + On a phone the record page's bottom bar used to always draw Edit first, then the primary action and the `⋯`; an object with no action of its own got a full-width Edit and nothing else. A field's value is now edited by a tap on it, so on a phone: + + - The bottom bar draws the object's actions only: the primary and the next one (the default budget of 2 is unchanged), filling the row. The record's edit state keeps its Cancel and Save there. + - With no action to draw, no bottom bar is drawn and the page body runs to the foot of the screen. + - The `⋯` moves to the right end of the top bar. It holds Edit (on or off, with the reason when it is off), the actions that did not fit, Refresh, Share and Delete. (Favorites is not in it: the favorite star sits beside the record's name.) Edit there does what the bar's Edit did. + - A record pending the reader's approval is unchanged: the bar is the approval's decisions and its own `⋯`. + - The desktop header is unchanged. + + `page:header` `mobileMaxVisible` keeps its default of 2 in the phone bar, but Edit no longer takes one of those slots, so an unset budget now shows two of the page's actions where it showed one, and an authored value counts the page's actions alone. Host buttons still take bar slots ahead of the page's actions: the queue's Claim, and in the record's edit state its Cancel and Save. Its description in the spec, the designer and the docs says so. + + Migrating: an author who wants the earlier number of page actions in the phone bar lowers `mobileMaxVisible` by one. An authored `1` that meant "Edit only" now shows the primary action; to keep the bar free of inline actions, mark the page's actions `component: 'action:menu'` so they fold into the `⋯`. + + `@object-ui/components`: `PageHeaderPhoneFace` (the value of `PageHeaderPhoneContext`) gains an optional `more` slot. A host that hands it gets the `⋯` drawn there, and a bar with no button draws nothing; a host that does not keeps the `⋯` as the bar's last button, as before. +- ad65d82: fix(formula)!: `validateExpression` refuses `==` / `!=` between a list-valued field and a scalar, which answers a constant on every row + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: follow-up #36217 + + <!-- adr-0087: registered cel-list-equality-refused --> + + **BREAKING** accept-set narrowing, shipped as `minor`. CEL compares the whole list with the scalar, so `record.labels == 'frontend'` is `false` for `['frontend', 'qa']` and for `null` alike, and `record.labels != 'frontend'` is always `true`: a condition written that way never fires (or always does), with no fault and no log line. The shared validator accepted it. + + - **The refusal.** `validateExpression` refuses a `==` / `!=` between a read of a list-valued field on `record` / `previous` (`record.f`, `record['f']`, either operand order) — or, at a flattened (flow) condition, its bare name `f`, which the run binds to the trigger record's field, unless a flow variable holds the name or a node can bind names no reader sees — and a non-null string, number or boolean literal, as the new `list-equality` code (params `reference`, `operator`, `operand`, `answer`, `rewrite`), prescribing the null-guarded membership test. + - **Which fields are lists.** A `fieldTypes` entry of an inherently multi-value type (`multiselect`, `checkboxes`, `tags`), or a field named in the new optional `ExprSchemaHint.multiValueFields` — the fields a caller reads as multi-valued through `isMultiValueField` (`@objectstack/spec/data`), which is how a `select` / `radio` / `lookup` / `user` / `file` / `image` field declared `multiple: true` becomes a list here. Absent, such a field is not judged, as before. + - **Who fills it.** The publish lint (`os validate` / `os build`, every CEL site that types the object's fields), the MCP `validate_expression` tool (read off the served definition, `McpDataBridge.servedObjectDefinitionOf`, at the validation / formula / flow-condition sites; a bridge without it answers as before), `registerFlow`'s schema pass (`parseObjectFieldSchema` returns `multiValueFields`; logged, never thrown, like every finding of that pass), the scenario scorer, and Studio's object draft check (field rules, formulas, validation rules; `CelSchemaHint.multiValueFields`). + - **Still accepted.** `S == null` / `S != null` (either side), `'a' in S`, a list compared with a list literal or with another list field, and a comparison whose other operand is not a literal. + + FROM → TO: + + - `record.labels == 'frontend'` → `record.labels != null && 'frontend' in record.labels` + - `record.labels != 'frontend'` → `record.labels == null || !('frontend' in record.labels)` + - at a flow condition, `labels == 'frontend'` → `labels != null && 'frontend' in labels` + + One-line fix: test membership with `in`, null-guarded (`'a' in null` faults); compare the list with `null` to test whether it is set. +- cb5a975: fix(formula): the `list-equality` refusal prescribes a rewrite that works where it is read, and a flow condition is judged only where the run binds a row of the typed object + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: follow-up #36217 + + The two widenings. A flow condition in a flow that no record write or sweep starts (an API, scheduled or trigger-less flow) is no longer refused as `list-equality`, bare or `record.`: that run holds what its entrance handed it, so `labels == 'frontend'` can be correct code there. And `ExprSchemaHint` gains the optional key `filterCompiled`, which tells the validator that the site's source compiles to a query filter. + + The rewrite the refusal prescribes now depends on the site, and is parenthesised whole so it can stand where the comparison stood (`A && (…)`): + + - **A `record.` / `previous.` read evaluated as CEL** (a validation rule, a field rule, a formula, an action's `visible` / `disabled` / `pressed`, a hook condition): + - FROM `record.labels != null && "frontend" in record.labels` + - TO `(has(record.labels) && record.labels != null && "frontend" in record.labels)` + - `has()` answers on a sparse row or a null `previous`, where the old form faulted. + - For `!=` the TO form is `(!has(record.labels) || record.labels == null || !("frontend" in record.labels))`. The old `!=` form, with no parentheses, split under a leading `&&`. + - **A bare name at a flow condition:** + - FROM `labels == null || !("frontend" in labels)` + - TO `(labels == null || !("frontend" in labels))` + - For `==` the TO form is `(labels != null && "frontend" in labels)`. + - **A sharing rule `condition`**, which compiles to a query filter: + - FROM `record.labels != null && "frontend" in record.labels`, which does not lower (`in` needs a field on its left), so the rule was dropped as `sharing-rule-unlowerable-condition`. + - TO `(record.labels != null && record.labels.contains("frontend"))`, which lowers to a membership filter (`$contains`). + - For `!=` the TO form is `(record.labels == null || !record.labels.contains("frontend"))`. + - A number or boolean operand is passed as its text (`contains("3")`). + + One-line fix: write the rewrite the refusal names. + + `registerFlow`'s advisory pass now hands the validator `faultOutcome: 'run-fails'` on a record-triggered flow and on a time-relative sweep of the typed object, the same flows `os validate` declares it on. On those flows its logged type-mismatch lines now use the wording `os validate` prints. It still only logs and never throws. +- 92e0475: docs(spec): the page and action describes say where an authored record page is drawn + + Clause-②: no + Metadata-protocol: semantic + + An object's assigned record page of kind `full`, `html` or `react` (its `isDefault` page, or an app's page named by `apps`) is drawn on the desktop full record page only. On a phone and in the side preview (the drawer a list opens, a split pane, an interface page's preview) the record opens on the standard record page built from the object's own metadata. The `kind`, `isDefault` and `apps` describes, the `page.slots.tabs` tombstone's remedy and the action `locations` describe now say so. `record_section` actions are drawn only by an authored page block, so an action that must reach every surface adds `record_more` as well. A page named in the URL, the platform's approval request and user pages, and `kind: 'slotted'` pages are drawn on every surface. No schema shape changed. +- ad92dfd: fix(lint)!: `==` / `!=` between a list-valued field reached through a lookup hop and a scalar is refused, as the root-field case is + + Clause-②: yes (narrowing) + Metadata-protocol: narrowed + Skills-docs: none — the `objectstack-formula` skill already teaches that a list field compared with a scalar literal is refused and the `has()`-guarded `in` rewrite; a hop read of a list field takes the same rewrite + + <!-- adr-0087: not-required (already-registered cel-list-equality-refused) the same list-equality refusal and membership rewrite, one hop away; this change extends that entry's surface to the one-hop read at a validation rule predicate and a field expression, and states its doors (os validate, os build, the object save door) --> + + **BREAKING** accept-set narrowing, shipped as `minor`; the new `@objectstack/formula` export `findHopListEquality` widens the package's public surface. + + `record.labels == 'vip'` on a list-valued field has been refused as `list-equality` since the shared validator learned it, but the same comparison one hop away, `record.account.labels == 'vip'` where `account` is a lookup and `labels` a list-valued field of its target, was refused nowhere. A validation rule's `condition` / `when` and a formula's `expression` are the two sites that serve a hop: the engine hydrates the related row, so `record.account.labels` is the stored list, and comparing it with a scalar answers `false` (for `!=`, `true`) on every row. A rule written that way never fires and saves clean. + + - **The refusal.** At those two sites, the publish lint (`os validate` / `os build`) and the object save door refuse a `==` / `!=` between a read of a hop target's list-valued field (an inherently multi-value type, or a multi-capable type declared `multiple: true`) and a non-null scalar literal, either operand order, in the root case's words, prescribing the root case's membership test on the hop read. + - **What carries it.** `@objectstack/formula` exports `findHopListEquality(source, listLeaves)`, which returns the `list-equality` refusals (same code and params as `validateExpression`'s) for the reference → list-valued-leaves map its caller hands in. `ExprSchemaHint` is unchanged. The ADR-0087 entry `cel-list-equality-refused` now names the one-hop read and its doors; the Studio draft check and the shared-validator half of the MCP `validate_expression` tool do not see a hop. + - **Still accepted.** A hop to a scalar field (`record.account.tier == 'vip'`), `record.account.labels == null`, `'vip' in record.account.labels`, a hop through a reference that is itself multi-valued, and every site that serves no hop (an action's `visible`, a flow condition), where `record.account` is the stored id. + + FROM → TO: + + - `record.account.labels == 'vip'` → `(has(record.account.labels) && record.account.labels != null && "vip" in record.account.labels)` + - `record.account.labels != 'vip'` → `(!has(record.account.labels) || record.account.labels == null || !("vip" in record.account.labels))` + + One-line fix: test membership with `in` on the hop read, guarded as the refusal prescribes. +- 8da2b7e: fix(fields): a lookup pick no longer copies an amount into a field in another currency; the field stays empty and the form says why + + Clause-②: yes (narrowing) — a cross-currency price copy that happens today stops and the line is left empty with a stated reason (ruled B); widened: three new `@object-ui/i18n` `lookup.autofill*` keys in every locale pack, new `@object-ui/fields` exports from `lookupAutofill.ts` (`planDeclaredLookupAutofill`, `crossCurrencyRefusal`, `amountCurrencyOf`, `pickedAmountCurrencyOf`, `withheldAutofillMessage`, `withLookupAutofillTargets`, `readLookupAutofillTargets`, `LOOKUP_AUTOFILL_TARGETS_KEY` and their types), an optional second argument on `onSelectRecord`, an optional trailing `currency` parameter on `declaredLookupAutofillPatch` and `lookupAutofillPatch`, and the optional `columnFields` prop on `GridField` + Metadata-protocol: semantic + + <!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed or renamed, and nothing stored is rewritten: what moved is what a pick copies in the browser. The fix for an author is in the body: the price on a line in another currency is entered by hand. --> + + **BREAKING** for forms and line-item grids that relied on a pick copying an amount across currencies. On a EUR invoice, picking a product whose price is in the home currency used to copy the number as euros (a $100 product became a €100 line). Nothing converted it. Now the price is not copied: the cell or field stays empty, and a note under the line (in a grid) or under the lookup (in a form) names the picked amount with its currency and the currency of the field, so the price can be entered by hand. The other fields of the same pick (a description) still fill. + + **The rule.** It applies to the grid's same-named copy (the column key `autofill`), to the grid's declared `lookupAutofill` pairs, and to the record form's declared pairs, on a pick and on a create form's opening fill: + + - an amount is a `currency` field or a `formula` returning `currency`; a `number` carries no currency and copies as before; + - both sides in the home currency (neither declares one) copy as before, also when no home currency is configured; + - otherwise the value copies only when both sides name the same known code: a `fixed` code, the code the record holds, or the code its `master_detail` parent holds (ADR-0144 D2 as amended), with the home currency counting as its configured code; + - a field that follows a record's currency while that record holds none yet is not filled, and the note says no currency is chosen yet. + + Nothing is converted at any rate, and no build-time check is added: the line's currency is known only while the form is open. + + **`@objectstack/spec`.** The describes of `FieldSchema.lookupAutofill` and of the inline grid column key `autofill` state the rule. + + **`@object-ui/fields`.** `planDeclaredLookupAutofill` returns the writes and the withheld values of a pick; `declaredLookupAutofillPatch` and `lookupAutofillPatch` keep returning the writes alone. `LookupField` hands a host that owns the pick (`onSelectRecord`) the referenced object's field map as a second argument. `GridField` takes `columnFields`, the child field behind each currency column, so a `fixed` code or a code on the line decides that column's currency as on the record form. + + **`@object-ui/plugin-form`.** The record form stamps the definitions of a lookup's `lookupAutofill` targets on the lookup's field metadata, each with the name the form shows for it, so the lookup can read each target's currency and names it as the form does. The line-item hosts hand their grid each currency column's child field. + + **`@object-ui/i18n`.** Three new `lookup.autofill*` sentences, in every locale pack. +- 9742142: feat(plugin-detail): on the synthesized record page every titled field group folds, open by default + + Clause-②: no + Metadata-protocol: semantic + + On the synthesized (default) record page every field group that has a title now draws the right-hand chevron and folds from its whole title row, whatever its `collapse` says. This holds in the side preview, on the phone's 「详情」 tab, in the wide page's pinned left column and on the full page. Folding a group there is something the reader does. `collapse` still sets the first state: `'collapsed'` starts closed, `'none'` and `'expanded'` start open. 系统信息 still starts closed. + + Unchanged: + + - Forms and the designer preview: `'none'` still means always open, with no toggle. + - The untitled field bucket has no toggle. + - A print page draws every group open. + - An authored record page keeps its own faces. + - The fold state lasts while the record stays open. It is not saved. + + `@objectstack/spec`: the `ObjectFieldGroupSchema.collapse` description, the refusal guidance for a stray `expanded` key and the object form's Collapse help text now say that the default record page lets the reader fold every titled group; the form's "None" option reads "always open on the entry form, no toggle". The enum, its default and what it accepts are unchanged. + + `@objectstack/platform-objects`: the object form's Collapse help text in every metadata-form catalog follows the new wording (English regenerated, the ten translated catalogs re-translated). + + What to check in an app: an object that used `collapse: 'none'` to keep a group's heading from folding on the record page now shows a chevron there. The setting still keeps the group always open on forms. +- f3a8a13: feat(spec,ui)!: every grid that renders editable selects a cell first and saves each cell on its own, and `object-grid`'s `singleClickEdit` is retired + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + + <!-- adr-0087: registered object-grid-single-click-edit-removed, object-grid-single-click-edit-retired --> + + **BREAKING** accept-set narrowing on the `object-grid` page block (`@objectstack/spec`, `ComponentPropsMap['object-grid'].singleClickEdit`) and on `@object-ui/types` (`ObjectGridSchema.singleClickEdit`, and the `object-view` `table` slot that relayed it), with the grids following it in the same release. + + - **Now.** A grid that renders editable (`editable` set and the viewer allowed to edit the object) uses the list page's select-first cell model wherever it is drawn: the grid an `object-view` draws itself (the Studio's view preview, a page that places an `object-view`) and an authored `object-grid` node. A click selects a cell; double-click, Enter, F2 or typing opens its editor; Esc cancels; and each committed cell is saved at once as one update for its record. The pending-changes bar, its "Save All" and "Cancel All" buttons and the per-row save column are no longer drawn there. On a touch screen a tap on these grids opens the record, and a touch never edits a cell in place. + - **Unchanged.** A grid that renders read-only keeps its click-to-open row. Neither `editable` nor a view's `inlineEdit` can open editing that the object or the reader's `update` grant refuses, and a refused cell now says why when it is asked to edit, as on the list page. A React host that draws `ObjectGrid` itself can still pass `cellSelection={false}` to keep the staged model with its Save All bar. + - **`keyboardNavigation` narrowed to what is enforced.** On a grid that renders editable the arrow-key navigation is always on, because the selection moves with those keys; `false` no longer turns it off there. On a read-only grid `true` still turns it on. + + | FROM | TO | + |:--|:--| + | `object-grid` `properties.singleClickEdit: true` (or absent: the old default) | delete the key; a click selects the cell and double-click, Enter, F2 or typing opens its editor | + | `object-grid` `properties.singleClickEdit: false` | delete the key; double-click still opens the editor | + | `object-view` `table.singleClickEdit` | delete the key | + | a React host passing `ObjectGrid` `onBatchSave` alone (no `onRowSave`, no `cellSelection`) on an editable grid: "Save All" called it | each cell now saves through `onRowSave`, or through the grid's own `dataSource.update` when there is none, and `onBatchSave` is never called. Pass `onRowSave` to own the write per cell, or pass `cellSelection={false}` to keep the staged model, where `onBatchSave` is still called. The prop is marked `@deprecated` | + + The one-line fix: delete `singleClickEdit` wherever it is written; `os migrate meta --from 17 --write` deletes it from page sources. Writing it after upgrade fails `tsc` (the input type is `never`) and fails the parse with that prescription. + + The retirement kit: + + - **`@objectstack/spec`**: `singleClickEdit` is a `retiredKey()` tombstone on `ObjectGridPropsSchema`, registered in `RETIRED_KEYS_BY_MAJOR[18]` as `ui/ObjectGridProps:singleClickEdit`. The D2 conversion `object-grid-single-click-edit-removed` deletes it from `object-grid` components (top-level regions, nested `children` and named slots), whatever its value, and the D3 entry `object-grid-single-click-edit-retired` names what the upgrade still owes: help text and tests that describe the old gestures. `keyboardNavigation`'s describe says what is enforced. The liveness ledger records the retirement and the narrowed read. + - **`@object-ui/types`**: `ObjectGridSchema.singleClickEdit` is `?: never` with a `retirementTombstone()` twin, and the `object-view` `table` slot inherits it. `DataTableSchema.singleClickEdit`, a flag a host sets in code, is unchanged. + - **`@object-ui/plugin-grid`**: `ObjectGrid` turns the select-first model on wherever the grid renders editable (a host's `cellSelection` still wins), and no longer reads `singleClickEdit`. The `object-grid` inputs no longer list it. `ObjectGridComponentProps.onBatchSave` is `@deprecated`: it is called only under the staged model. + - **`@object-ui/plugin-view`**: `table.singleClickEdit` is no longer relayed to the grid. +- 70194ff: feat(audit): a record's activity stream shows each changed field's old → new values by default, with a new `fieldHistory` off switch on the object and the field, and a reader is served only the changes of fields they may read + + Clause-②: yes (widening) + Metadata-protocol: semantic + + A record's activity stream now shows `Field: old → new` for every changed field, on every object, unless the object or the field turns it off. Before, values showed only for a field that declared `trackHistory: true`. Every other change was named by its field label alone. + + - **New `enable.fieldHistory`, with no default.** Absent: values show. `false`: off for the object, and a change names its fields only. It has no default so that a parsed body never writes one. A built artifact or a stored definition therefore gets values when it is upgraded, with no rebuild. + - **`enable.trackHistory: false` alone no longer turns values off.** The flag keeps its meaning: with `true`, the default record page shows the compliance ledger's field changes to a reader the ledger serves, and the derived `history` API verb is served. To keep an object's activity free of values, write `enable: { fieldHistory: false }`. Every platform object that wrote `trackHistory: false` now also writes `fieldHistory: false`. + - **New field `fieldHistory`, with no default: the field's off switch.** Absent shows the values, `false` names the change without them, `true` shows them (a media or JSON type included). Under an object with `enable.fieldHistory: false`, values stay off whatever a field says. + - **Field `trackHistory: false` no longer means anything: it reads like absent, so the values show.** The field designer wrote it on every save while the key meant nothing, so a stored `false` cannot be told from a choice. `trackHistory: true` keeps one job: it opts a media or JSON field in. A credential field (`secret`, and `password` off better-auth objects) never shows values, because both sides are the same mask. A media or structured-JSON field (`image`, `file`, `avatar`, `video`, `audio`, `signature`, `composite`, `repeater`, `record`, `location`, `address`, `code`, `json`, `vector`) shows them only with an explicit `true` (`fieldHistory` or `trackHistory`). + - **The new field key is classified where every `FieldSchema` key is.** The SQL driver counts `fieldHistory` as a presentation key, so creating a column never reads it. The field-level-security scrub keeps it as written, because a boolean names no field. + - **Who reads a value:** the field-change code (`metadata.summary_message`) is now served to readers. It is narrowed change by change with the same field answer as `metadata.old` and `metadata.new`. A reference field's change is kept only for a reader served the referenced record's title. When a reader is not served some of a summary's changes, the summary is rebuilt from the changes they are served instead of being dropped whole. The full audit ledger is not widened. + - **A long value no longer fails the activity insert.** The stored summary is fitted to `sys_activity.summary`'s `maxLength` (500): each side is cut first, then trailing changes are left out. The code keeps every change, with each side capped at 1,000 characters. + + To keep an object's activity free of values, set `enable: { fieldHistory: false }` on it. For one field, set `fieldHistory: false` on that field; `trackHistory: false` does not turn values off. +- 70d07fd: feat: an object arranges its actions per scope (`actionLayout`: pinned buttons and the 「More」 order), and the design mode sets it + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: follow-up #36630 + + A page header draws at most three of its actions as buttons and puts the rest in its 「More」 menu. An object now arranges them itself with the new optional key `actionLayout` on `ObjectSchema` and `ObjectExtensionSchema`: `{ list?: Arm, record?: Arm }`, where `Arm = { pinned: string[], more?: string[] }`. `pinned` names the buttons in the order drawn, at most three (`[]` pins none); `more` orders the 「More」 menu; an action the scope places that neither part names goes to the end of 「More」 in its default order. A pinned action that is hidden leaves its button out, and no other action takes its place. + + - `list` arranges the actions placed at `list_toolbar` and the list page's built-ins `$import` and `$export`. A built-in is only ever pinned: one named in `more` is refused with its reason, since not pinned the list page draws it in its own Import / Export menu. + - `record` arranges the actions placed at `record_header` or `record_more`. It is a scope, not a page: the record page header, the side preview and a phone's bottom action bar all read it. A `page:header` that authors its own `actions` list keeps that list. + - An arm left out (or the key left out) draws that scope exactly as before. + + What each package gains: + + - `@objectstack/spec`: the key and its shape refusals at every door (more than three pinned, a name given twice in one part or in both, a malformed name, a built-in the scope does not have, a built-in in `more`, since a built-in is only ever pinned), each with its reason. New exports `OBJECT_ACTION_LAYOUT_PINNED_LIMIT`, `OBJECT_ACTION_LAYOUT_SCOPES`, `OBJECT_ACTION_LAYOUT_BUILTINS` and the types `ObjectActionLayoutScope`, `ObjectActionLayout`, `ObjectActionLayoutArm`. The object form offers it under Advanced, one JSON row per arm. + - `@objectstack/objectql`: `actionLayout` joins `fieldGroups` and `relatedLists` as a key only the base's paired `.custom` package writes on an `object_extension` (ADR-0146 D10). It is applied last, after every other layer, arm by arm: each arm it writes replaces the served arm for that scope whole, and an arm it leaves out stays. A manifest's `objectExtensions` entry now carries the key to the fold. + - `@objectstack/metadata-protocol`: the one judge refuses `actionLayout` from any other package, naming the action's own `locations` and `order` as the way to place an action the package brings. Each door says it its own way: publish, restore and draft promotion of an `object_extension` answer `VALIDATION_ERROR` / 400; marketplace install refuses the package body with `VALIDATION_ERROR` / 422; `os validate` and `os build` exit non-zero and print the row; the registry fold skips the key and leaves a note. + - `@objectstack/lint`: `validateObjectActionLayout` (`object-action-layout-unknown`, `object-action-layout-not-placed`, at `error`) refuses in `os validate`, `os build` and `os lint` a name, in either part, that is no action of the object or is not placed in the scope its arm arranges. + - `@object-ui/types`: `arrangedHeaderActions(actions, arm, scope)`, the one reader both record headers and the list header apply, and `readActionLayoutArm`. + - The console: both record headers (the default page's and an authored `page:header` with `placedActions: true`) and the list header draw the arrangement. In the design mode, 「Header buttons」 at the end of the page header lists the scope's actions under 「Pinned to header」 and 「Other」 (the 「More」 menu), each dragged into order; a dot moves an action between them, a fourth pin is refused with a toast, the header shows the change at once, and 「Save」 writes only the arms that changed: into the object's own package when it is writable, else into the installed object's customization package as an `object_extension`, through the one writer of an installed object's arrangement (`saveObjectExtensionArrangement`, whose patch type now takes the object-shaped `actionLayout`), which refuses a customization package the server does not list writable. A name the scope no longer offers is listed in the panel as left out. A name the header cannot draw is refused at save with its reason. New `@object-ui/i18n` keys under `designMode.pins`. +- 73f2cf4: feat(kanban): the board's own 视图设置, a lane header 「+」 and 「⋯」, and a lane statistic and card toggles on `KanbanConfig` + + Clause-②: yes (widening) + Metadata-protocol: added + + `KanbanConfigSchema` gains three optional keys, none with a default; a view that declares none of them renders as before: + + - `summary` — a lane statistic drawn at the foot of each lane (`KanbanLaneSummary`): `{ type: 'count' }`, or `{ type: 'sum', field }` of a number field over the cards the lane has loaded, not every record of the lane; `{ type: 'none' }` shows nothing. It takes precedence over `summarizeField`. A sum over a lane holding more cards than were loaded says so (「仅已加载的卡片」). The whole-lane sum, and average, minimum and maximum, wait for a server lane read (#36520). + - `showFieldLabels` — absent means `true`: a card names each field beside its value; `false` draws the values alone. + - `hideEmptyFields` — absent means `true`: a card leaves out an empty field; `false` keeps its line. + + On a board, the view settings show the lane field, which lanes show and in what order, the card fields (order, hide, add), the two card toggles and the lane-foot statistic, in place of the table's columns, group, row height and row colour. Each change applies at once and is held as the list's draft until Save. Each lane header gets 「+」 (a new record with the lane prefilled; an empty lane also gets a 「+ New」 row) and 「⋯」 (collapse, kept in this browser; hide). Hiding a lane moves its cards into 「未分类」, as `kanban.lanes` (#28211) always has, and the menu and the lanes list say so. The lane field picker offers select and radio fields; collapse is kept per reader, object and view. The Console now relays the view's `kanban.lanes`, which it used to drop, and both producers of the board node (`ListView` and `ObjectView#generateViewSchema`) relay the three new keys. `ObjectKanban` takes the host's `laneMenu` request (`KanbanLaneMenuRequest`). `@objectstack/lint` walks `kanban.summary.field` and refuses a `sum` over a field that is no number, a yes / no field included (`list-view-summary-field-type-refused`). Saving a board whose view declares no `kanban` block stores the lane field the board draws with the changed keys. +- 60e79ed: feat(app-shell): the report and dashboard-widget panels speak business wording, and opening the report editor keeps the page in the session's language + + Clause-②: yes (widening) — the report and widget panels accept an edit of a translated name or title in the session's language, stored as the inline locale map `{ default: SOURCE, LANG: EDIT }` the spec's `I18nLabel` already allows; nothing is removed or renamed + Metadata-protocol: semantic — `translateReport` and `translateDashboard` now treat a report `label`/`description` or a widget `title` as changed when its inline locale-map entry for the requested locale (the entry the panel writes: exact tag, then the locale's own script, else base tag or a sibling region; never `default`) differs from the packaged base's own, so the base's translation no longer replaces it; a translation the paired `.custom` package ships still answers first (ruling record 6631250894), and with none the entry is served; dataset members (`translateDataset`, ADR-0149) are unchanged + + The report editor beside a report (runtime 「编辑」 and Studio) and the dashboard widget property bar (Studio, and the dashboard page's edit state) now name things the way a business reader does: + + - Fields, measures and data sources show their labels in the current language; the machine name is on hover only (`title`), never printed. A measure reads `LABEL · AGGREGATE` with the aggregate in words (「金额 · 合计」, "Amount · Sum"). + - 「行(维度)」「维度」 read 「分组」, 「值(度量)」 reads 「指标」, 「数据集」 reads 「数据来源」 (its label alone, no `(name)` and no description), and the filter-binding section reads 「跟着页面顶部的筛选变」 with each filter by its name (「时间」 for the date range, the dimension's label for a filter with none). + - The chart-type list is Chinese names with their icons (柱状图, 折线图, …), not `bar`. + - The line under the data source is plain words: 「报表从这里取数;每个人只能看到自己有权限的记录。」 — no 「受治理」 or 「RLS」. + - The report form rows below the curated fields (section headings and hints in zh-CN) use the same wording. + + The report's name box and a widget's title box show the served (current-language) text while it is untouched, and an edit lands in the session language only: a plain-string source shown translated becomes `{ default: SOURCE, LANG: EDIT }`, so every other language reads exactly what it read before. For a report or dashboard installed from a package (one with a packaged base), the server serves that entry ahead of the package's translation (a translation the paired customization package ships still comes first), so the edit is what the page shows after save. A report with no packaged base keeps the bundle first: where the bundle has an entry for that language, the stored edit does not show. + + Fixed: opening the report editor no longer turns the page heading and subtitle from the served 「各阶段商机」 to the English source. The page draws the served text for every translated key the edit has not touched. + + This supersedes objectui#11161's `LABEL (name)` and objectui#12303's trailing machine name on these two panels only; other dataset pickers are unchanged. +- 595844b: fix(spec)!: retire `columnState` from the stored `view` row — column widths live in each reader's browser and a column order is saved into the view itself + + Clause-②: no (narrowing) — `columnState` stops being an accepted key on a view item record and on a flattened view overlay; no published export is removed + Metadata-protocol: narrowed + + <!-- adr-0087: registered view-column-state-retired --> + + **BREAKING** for a stored `view` row, a package view or a source that still carries `columnState`. The key held the console grid's per-user column order and widths on a shared view row (admitted as a runtime-only overlay key in 17.1.0). Since #35955 nothing writes it: a column drag goes to the list's draft and is saved into the view's own `columns` / `fieldOrder`, and column widths are kept in the reader's browser, per view. Until this release a stored layout was still applied: a reader with no column order or widths of their own in the browser saw the order and widths the row held. It is not carried forward (the maintainer's ruling on #35955, restated on #36403 in comment 7079029398: a stored layout is not migrated): from this release that reader sees the view's own columns, column order and widths. No stored order is moved into `fieldOrder`; to keep a layout for everyone, reorder the columns and Save to the view, or set `width` on the columns. + + What moves (each line FROM → TO): + + - `columnState` on a view item record (`ViewItemWireSchema`, member 1 of the `view` union the `PUT /api/v1/meta/view/:name` save validates) and on a flattened view overlay (`VIEW_METADATA_MEMBERS.listOverlay` / `formOverlay`): FROM `{ order?: string[]; widths?: Record<string, number> }` accepted and stored TO a `retiredKey()` tombstone — the save answers 422 `INVALID_METADATA` with the prescription at the key, and `tsc` types the key `never`. + - `VIEW_CONSOLE_ROUND_TRIP_KEYS` (`@objectstack/spec/ui`): FROM six keys TO five; `columnState` is gone, so the console derivations read off it (`@object-ui/data-objectstack`'s `listViews()` row keys, `@object-ui/app-shell`'s view-config save) stop carrying it without an edit. + - `columnState` on an authored view item or a list view body: still refused by name, now with the retirement text instead of the runtime-only note. + - a stored `view` row (every read replays the conversions before the row is served or badged), a package export or environment artifact (`viewItems`), and a source run through `os migrate meta --from 17`: the D2 conversion `view-column-state-removed` deletes the key from a view item record and from a flattened overlay; containers are untouched. + + The fix: delete the key. To ship a default column order, list `columns` in that order (or set `fieldOrder`); to ship a default width, set `width` on the column. Run `os migrate meta --from 17` to list the mechanical edits for existing sources, and `os migrate meta --stored --apply` to rewrite stored rows. + + One stored class is not brought back into the accept set: an overlay row that held nothing but its identity (`name` / `object` / `viewKind` / `label`) and `columnState` — what a column drag on a system view wrote before the overlay writer retired — is left identity-only, which the `view` door refuses ("only identity fields"). It is served badged invalid and `--apply` reports it `failed`. Delete such a row; it held only a column layout that is not carried forward. D3 entry: `view-column-state-retired`. + + The retirement kit: `retiredKey()` tombstones in `ui/view.zod.ts`, D2 `view-column-state-removed` (step 18), `RETIRED_KEYS_BY_MAJOR[18]` rows `ui/ViewItemWire:columnState` and `ui/ViewMetadata:columnState`, D3 `view-column-state-retired`, the regenerated `view.mdx` reference, and the pin `ui/view-column-state-retirement.test.ts`. +- 28588d0: feat(spec): a field can say it is not asked for when a record is created (`showOnCreate`) + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: follow-up #36455 + + `FieldSchema` gains `showOnCreate`, an optional boolean. Absent or `true`, the field is asked for when a record is created, as today. `false` says the business does not ask for it at creation: every create surface (the create dialog, the full-page create, an action-opened create) leaves it out, while editing, the record page and lists keep showing it, so the value is filled in after the record exists. + + - The one pair refused is `showOnCreate: false` on a `required: true` field, at the field's `showOnCreate` key, at every door that parses a field (`defineStack`, `os validate`, the metadata save): a required field is always asked for when a record is created, so the person creating it sees every value the record must have. The message names both fixes (keep the field on create, or drop `required`). A declared `defaultValue` makes no exception: the field is still asked for, with its default filled in. A `requiredWhen` field is accepted, since its gate is a predicate the parse cannot judge; the write door still refuses a create born inside it. + - No create surface reads the key yet: it is `planned` in the liveness ledger, and the Console's create surfaces read it in the change that follows. Nothing that parses today is refused, and no parsed field's output changes (the key has no default). + - `@objectstack/driver-sql` and `@objectstack/metadata-core` classify the new key in their every-field-key ledgers: `FIELD_KEY_STORAGE_CLASS` marks `showOnCreate` `presentation` (the DDL never reads it), and `FIELD_REFERENCE_POSITIONS` keeps it, since it is a boolean that names no field. Neither changes what it does with any field. +- 3b58921: feat(console): record create and edit stop loading internal forms; a field's Show on create switch + + Clause-②: no (narrowing) + Metadata-protocol: semantic + + <!-- adr-0087: registered internal-record-forms-not-loaded --> + + The Console's record create and edit surfaces no longer load an object's internal form view. The create dialog, the edit dialog, the full-page create and edit (`/new`, `/record/:id/edit`) and a create or edit an action opens now lay the record out by the object's field groups (`fieldGroups`) and follow the rules on its fields (`visibleWhen`, `readonlyWhen`, `requiredWhen`, `required`). What used to steer those surfaces and now steers nothing: the default form view (`form`, `formViews.default`), the `create` form view, and on them `sections`, the `tabbed` and `wizard` layouts, `defaultTab`, `tabPosition`, `subforms`, `modalSize`, `buttons`, `layout` and `defaults`. A master-detail sub-table still comes from `fieldGroups[].relatedList`, and a flow screen reads its sub-table settings from there too. + + An app that still declares an internal form installs and runs as before; the definition is inert. A public form (`sharing.enabled: true`) keeps loading at its own link by its own definition, and a named form an action of type `form` opens is unchanged. + + `showOnCreate` is now live: a field with `showOnCreate: false` is left out of every create surface and stays on edit, the record page and lists. The field form (`field.form.ts`) and the Studio field inspector offer it as "Show on create", on by default; a required field keeps it on. + + `@objectstack/lint` adds the advisory rule `form-view-internal-not-loaded`: a warning, never an error, on each internal create or edit form an app declares (a container's `form`, `formViews.create`, `formViews.default`, and a stored form view that is the default or named `OBJECT.create`), and on no public or named form. + + Studio: the Data pillar's Form tab always lays out the object's field groups, and the Interfaces rail no longer lists internal forms; public forms and named forms stay listed. + + An app that relied on its internal form for create defaults should move them to each field's `defaultValue`; sections move to `fieldGroups`, and required or conditional rules move onto the fields. + + The upgrade guide carries this as the protocol-18 semantic entry `internal-record-forms-not-loaded`. +- 45ef94e: feat(spec): a base's paired `.custom` package declares an installed object's whole field-group and tab arrangement (`fieldGroups`, `relatedLists` on its object extension) + + Clause-②: yes (widening) + Metadata-protocol: added + + The record page is arranged in three layers. The package that owns an object declares its `fieldGroups` and `relatedLists`; a package that extends it places what it brings with `place`; and now the environment, in the base's paired `.custom` package, may declare the whole arrangement over both: + + ```ts + objectExtensions: [{ + extend: 'crm_lead', + fields: { region__c: { type: 'text', label: 'Region' } }, + // The whole field arrangement: the two groups swapped, `status` moved. + fieldGroups: [ + { key: 'contact', label: 'Contact', fields: ['email', 'phone', 'status'] }, + { key: 'basic', label: 'Basics', fields: ['name', 'company', 'region__c'] }, + ], + // The whole tab list: events before tasks, the notes tab hidden. + relatedLists: ['crm_event', 'crm_task', { list: 'crm_note', hidden: true }], + }], + ``` + + - **Two new keys on an object extension, written only by a `.custom` package.** `fieldGroups` takes the shape an object's `fieldGroups` takes and may list any field the object has, whoever declares it; a group's `relatedList` may place any body table. `relatedLists` takes an object's entry shape (a bare name, the three built-in tab names, or `{ list, label?, columns? }`) plus `hidden`. + - **Each key replaces, whole.** The registry applies it last: the owner's arrangement, then every extension's `place`, then the `.custom` key in place of the result. Nothing is merged entry by entry. A key the extension does not write keeps the owner's arrangement with the placements, so writing only `relatedLists` leaves the field groups as they were. + - **A field the arrangement does not list is not dropped.** It shows after the last group, whichever group its owner or another extension had put it in. A group that lists `fields` shows exactly its list. + - **A tab the arrangement does not name still shows, after the listed ones.** This is the reverse of an object's own `relatedLists`, where leaving a list out hides it. Hiding is written: `{ list: 'crm_note', hidden: true }` hides that list's tab, whichever package brings it. `hidden` is accepted only here; an object's own `relatedLists` refuses it and says where it belongs. A list the owner hides by leaving it out of its own `relatedLists` stays hidden until the arrangement names it. The built-in tabs keep their own rules and are not hidden here. + - **A package that is not a `.custom` package writing either key is refused**, once at each door: saving or publishing the extension, `os validate` and `os build`, and installing the package (`VALIDATION_ERROR`; 400 at save and publish, 422 at install). Each refusal names the key, the object and the package and prescribes `place`. An extension that reaches the registry past those doors is not applied, and the boot log says so. Within one extension, a `place` entry beside the arrangement key that would replace it is refused at parse. + - **Only the object's own pair is served.** The pair is the `.custom` package of the App the object belongs to: for an object a module of an App owns, the App's pair. A `.custom` package an earlier version created for the module itself is still read while it is installed; where both write a key, the App's pair is served. The choice is by role, never by load order. What any other `.custom` package writes under these keys is not refused at the doors; the registry does not apply it, alone or beside the pair, and the boot log names the package and the object. + - **One merge, every reader.** The record page, the forms, the preview and Studio read the served object, so they show one arrangement. Removing a key, or uninstalling or disabling the `.custom` package, serves the owner's arrangement with the placements again. + - **Served reads say what the reader cannot derive.** Where a `.custom` package writes `relatedLists`, the served object carries the read decoration `_relatedListsArrangement` (`{ packageId, hidden, unlisted }`): the lists the environment hides, and whether an unlisted list shows. The record page's tab reader and the default page synthesis read it; with no decoration served they answer exactly as before. A reader's own tab order (kept per user) is still laid over this list, and a tab the environment hides is not offered to them. + - **A group the arrangement brings is a translation anchor.** `os validate`'s translation-reference rule reads an extension's `fieldGroups` too, so a bundle's `_sections` key for a group the `.custom` arrangement declares is not reported as naming nothing. + - **`hidden` on a field is not a display property a `fieldPatches` entry may set.** A hidden field is also left out of the search index and out of a form's required check, so the display whitelist is not widened. To keep a vendor field off the record page and the forms, list it in a group whose `visibleWhen` is false. That is presentation only, not access control: the field stays readable and writable through the API. Do not use it for a `required` field that has no default: the create form no longer shows the field while the save still requires it, so the form cannot be submitted. + + What to check in an app: nothing changes until a `.custom` package writes one of the two keys. A package other than a `.custom` one that wrote `fieldGroups` or `relatedLists` on an extension was refused at parse. It is now refused by the save, publish, install, `os validate` and `os build` doors, with the same prescription. Where none of those doors judges it (for example a code-defined stack that boots without `os validate` or `os build`, or a stack that names no package id), the key is not applied and the boot log names it, where the parse refused it before. +- 573a376: feat(i18n): `GET /i18n/locales` names the source locale, and a design-mode menu rename outside it is stored as that language's translation + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: follow-up owed — skills/objectstack-i18n/SKILL.md + + - **`GET /api/v1/i18n/locales` names the source locale.** The body gains an optional `sourceLocale` (`GetLocalesResponseSchema.sourceLocale`): the language the app's own text, a plain-string `label`, is written in. It is the declared `i18n.sourceLocale`, else the default locale, the same rule the metadata translators use. It differs from the `isDefault` locale on an app written in one language that defaults its users to another. It is absent only when the server knows neither. Nothing that parsed before stops parsing. + - **A menu rename in design mode is stored where the reader's language reads it.** The name field of 「Rename and icon」 is now open in every language. A name typed in the source language, over an entry shown by its stored label, is still written to the stored label. Any other name is written as that language's translation of the entry: a name typed in another language, or one typed in the source language over a translation the reader was shown. The stored label stays unchanged, so every other language keeps its name. The rename says so when the new name will be a translation ("The new name is shown in LANGUAGE. The app's other languages keep their names."). + - **Where the translation goes.** It is written to the `translation` item `APP_menu_LOCALE` (for example `crm_menu_zh_cn`), at `apps.APP.navigation.ID.label`, the key app navigation is translated by. It goes into the package the menu is written to: the app's own package when that is writable, else its customization package, whose own translations are read first (ADR-0146 D2). Like the menu, it is saved as a draft with the first-write pin and published at once. A pending draft of it is refused and the reason is shown. A translation-only rename writes the translation and leaves the app alone. + - **A link added in another language** is stored without a name, and the name typed for it becomes that language's translation. The source language names it when someone sets a name there. Until then, a reader in the source language sees the link's URL, as for any link with no label. + - Before this change, the console allowed a rename only when the reader was in the deployment's default language. The default language could differ from the source language, and a rename there was written to the stored label for every language. +- 8f141a2: feat(kanban): a lane's sum, average, minimum and maximum cover every record of the lane, computed in the query + + Clause-②: yes + Metadata-protocol: semantic + Skills-docs: follow-up #36422 (skills/objectstack-ui/rules/list-views.md teaches the board lane summary, now including avg / min / max) + + A stored `kanban.summary` of type `sum` now totals every record in the lane (computed in the query) instead of the loaded cards; where the board cannot ask the server, no figure is drawn. + + A board's lane foot statistic, `kanban.summary`, now takes `{ type: 'avg' | 'min' | 'max', field }` beside `none`, `count` and `sum`, and every one of `sum`, `avg`, `min` and `max` covers all of the lane's records: + + - **One grouped aggregate, no fetch-then-add.** The board asks ONE aggregate over its own query — its filter and its host's search, grouped by the lane field — through the data door a grouped list view's headers already ride (`DataSource.queryGroupHeaders`, `POST /data/:object/query`). A lane longer than its page (50 records) shows the whole lane's figure; the "loaded cards" label is gone. Records with no lane value, and records in a value that is no lane, are folded into the trailing "Uncategorized" lane. A lane with no record shows `0` for a sum and no figure for the other three; a lane that holds records but that the answer has no group for (the door can cut the group rows under a deployment's default page size) shows no figure rather than `0`. A whole answer needs the door to hand back that the rows were cut: follow-up #36870. + - **Under the reader's permissions.** The platform runs the aggregate with the reader's row filter, and refuses an aggregate over a field the reader may not read; the board asks nothing for such a field, and a refused read draws no figure. + - **No figure rather than a partial one.** A data source without `queryGroupHeaders`, or a filter the read cannot repeat, draws no `sum` / `avg` / `min` / `max` figure. Over cards a host hands to the board, a `sum` is still added up on the board and the other three draw nothing. Known gap, follow-up #36871: the list view hands a board whose lanes it cannot know before the query (lanes over a lookup field, a view with grouping) its fetched page, so there `sum` totals that page, unmarked. + - **`@objectstack/lint`** judges `avg`, `min` and `max` the way it judges `sum` (`list-view-summary-field-type-refused`): the aggregate × field-type table's row for that function over the field's declaration, less the boolean class, which it now reads from the spec (`BOOLEAN_VALUE_TYPES`) instead of listing `boolean` and `toggle` itself. The list view's lane-statistic picker reads the same class, and now offers and names `avg` (Average), `min` (Minimum) and `max` (Maximum) over the number fields it offers for `sum`; the locale packs carry the three names and drop the retired loaded-cards label. + + A stored `sum` keeps its key and its field; what it draws is now the whole lane's total where it drew a total over the loaded cards before, and no figure over a data source that cannot answer the lane read. +- f66340a: feat: a record-page tab title an object's `relatedLists` entry declares can be translated + + Clause-②: yes (widening) + Metadata-protocol: added + + An object-form `relatedLists` entry (`{ list, label, columns }`) titles its tab and table on the parent's record page, and its `label` wins over the child lookup field's `relatedListTitle`. The field's title had a translation key; the entry's did not, so a declared tab title showed its authored text in every locale. + + A translation bundle now carries it on the parent object, keyed by the entry's literal `list` (a dotted `object.field` is one key): + + ```ts + objects: { + account: { + _relatedLists: { + contact: { label: '联系人' }, + 'event.related_to': { label: '会议' }, + }, + }, + } + ``` + + - `@objectstack/spec`: `ObjectTranslationDataSchema._relatedLists` (a closed leaf with one key, `label`; the un-prefixed `relatedLists` is named as a rename onto `_relatedLists`). `translateObject` overlays it onto the served parent object's entries, so `GET /meta/object` serves the translated title and the console's record page shows it with no change of its own. Only an entry that authors a `label` is translated: an entry without one, a bare name and a built-in tab keep their current title (the child field's `relatedListTitle`, else the child object's plural label). A title a tenant changed keeps its text, as every other translated slot does. + - `@objectstack/lint`: `os i18n extract` scaffolds the key for every labelled entry and the coverage gate counts it; `os validate` reports a `_relatedLists` key that names no labelled entry of that object as `translation-target-unknown`. A labelled entry an object extension brings (a list placement in `place`, or a shown entry of the paired `.custom` package's `relatedLists`) is a labelled entry of the object it extends, so its key resolves; the record page shows a placed tab only where that object declares `relatedLists`. A key over a built-in tab, or over an entry the `.custom` arrangement hides, is reported with its own reason. + - `@objectstack/metadata-protocol`: a save that sends back a translated entry title (a Studio edit of the object read in another language) stores the source title instead, with an `info` advisory, as it already does for field labels. + - `@objectstack/objectql`: the packaged base `getPackagedObjectBase` hands the `/meta` read (the text a served slot is compared with) carries the tabs a code package's `place` adds to the owner's `relatedLists`, as the fold splices them (so only where the owner declares `relatedLists`). A placed title is therefore translated from the deployment's catalog, which carries the placing package's translations, the way a field such a package adds already is; a tenant's rename of that title keeps its text. A `.custom` arrangement's title is the customization layer and reads the pair's own translations. +- fed637c: feat(i18n): a flow screen with its own heading gets a translatable step name, `flows.FLOW.nodes.NODE_ID.label` + + Clause-②: yes (widening) + Metadata-protocol: added + + A screen node that sets its own `config.title` has a heading and a separate canvas label. Until now only the heading could be translated (`flows.FLOW.screens.NODE_ID.title`), so the label stayed in the authoring language. The docs flow embed and the Studio flow designer both draw that label. + + - **New key accepted.** `objectstack validate` now accepts `flows.FLOW.nodes.NODE_ID.label` over a screen whose `config.title` is a non-empty string. A screen with no `config.title` is still refused there and pointed at `screens.NODE_ID.title`, because its heading is its label and one string keeps one key. An `approval` node is still pointed at `approvals.NODE_ID.label`. + - **Docs embed.** The `type: flow` embed (`element:metadata_viewer`) names a titled screen by its heading, translated where the bundle has the heading. When the heading holds a `{{ }}` hole, which a drawing cannot fill, the embed now names the screen by the new key, and falls back to the authored label only if the key is missing. + - **Studio designer.** The canvas draws a titled screen's label from the new key. + - **Untitled screen with a hole.** If a translated `screens.NODE_ID.title` contains a `{{ }}` hole, the embed and the canvas now draw the authored label rather than the raw template. + - **Coverage.** `os lint`'s i18n coverage and `os i18n extract` ask for the new key on a top-level screen whose authored heading holds a `{{ }}` hole. These are the screens the embed draws by their label. + - **One branch rule.** `@objectstack/spec/automation` exports `flowDecisionEdgeBranch`, `FlowDecisionEdgeBranch` and `FLOW_DECISION_DEFAULT_BRANCH_LABEL`. They decide which out-edges of a decision a drawing lists as branches. The docs embed's branch list and the i18n walk's folded branch targets both read them, so the two can no longer disagree. + + Nothing to migrate. A bundle that does not use the new key keeps working. +- 7a7ab47: fix(record-page): a field group whose fields are all empty is counted and revealed by "Show N empty fields" + + Clause-②: no + Metadata-protocol: semantic + + On an object's default record page, a field group the object declares (`fieldGroups`) no longer disappears for good when every one of its fields is empty. Before, read mode drew nothing for such a group, the field list's closing "Show N empty fields" row left its fields out of the count, and pressing the row did not draw them; they appeared only in edit mode. Now the row counts them, and pressing it draws the group in its place, heading and fields. With the row not pressed the page looks as before: an all-empty group draws nothing, not even its heading. + + What changed is the meaning of a `record:details` section's `hideEmpty` in read mode: it now hides an all-empty section only while the reader hides empty fields. This holds for an authored `hideEmpty: true` and for the renderer default (an omitted `hideEmpty`), which the default page's declared groups carry. When the reader shows empty fields, through the field list's row or the per-object choice a section's own "Show N empty fields" toggle writes, the section draws like any kept all-empty section. A print page has no toggle and keeps the section hidden. Edit mode is unchanged and still draws every field as an input. A group with at least one value draws exactly as before. An authored `hideEmpty: true` on a `detail-view` section gives way to the reader in the same way: it draws once the reader's remembered per-object choice is to show empty fields. Outside the field list, with no remembered choice (no host preference store, or no object name), the section stays hidden as before. This supersedes the line in the pending `36147-record-field-list` changeset that says an authored `hideEmpty` group "stays hidden and is not counted": on the record page's field list such a group is now counted by the one "Show N empty fields" row and drawn when the reader shows empty fields. + + The accepted keys and values are unchanged: `hideEmpty` is still an optional boolean. Its `describe()` in `@objectstack/spec`, the `DetailViewSection` and `record:details` section docs and the `views.zod` describe in `@object-ui/types`, and the `record:details` and `detail-section` input descriptions in `@object-ui/plugin-detail` state the new reading. +- 70f454a: fix(metadata): two Studio Saves over one published item are no longer last-writer-wins + + Clause-②: yes (widening) — two new optional members join what the API accepts and answers: `PublishMetaItemRequestSchema.parentVersion` (the `If-Match` / `If-None-Match: *` pin on `POST /meta/:type/:name/publish`) and `GetMetaItemLayeredResponseSchema.overlayVersion` (served on `GET /meta/:type/:name/layers`); nothing is removed or narrowed, and a publish that names no version behaves as before + Metadata-protocol: added + + A Studio Save writes the item's draft and then publishes that one item, so it leaves no draft behind. Two admins who opened the same object with no pending draft both asserted "no draft" on their draft save, and the later Save published over the earlier one without a word: the published layer served no version a Save could pin. + + - `GET /meta/:type/:name/layers` now answers `overlayVersion`: the version token of the stored active row at the read's address (`?package=`), the same keyed token the plain uncached read serves as `version` and a publish receipt serves as `version`; `null` when no active row is stored there. + - `POST /meta/:type/:name/publish` takes that token as `If-Match` (or `If-None-Match: *`, "no active row here"). A token that is not the current active row's is refused `409 METADATA_CONFLICT` with the current token as `currentVersion`, and nothing is promoted: the draft stays pending. The headers are read as the save door reads them, so `If-Match` beside `If-None-Match`, or an `If-None-Match` other than `*`, is refused `400 VALIDATION_ERROR`. A publish with neither header is unpinned, as before. The pin is checked by the store's own lock on the promoting write, not by a separate earlier read. + - `MetadataClient.publish` (`@object-ui/data-objectstack`) takes `ifMatch` / `ifNoneMatch`, sent as those headers. + - Studio's object page pins its Save's publish to the published row it was loaded at. When another editor published since, the Save shows the reload-or-overwrite dialog the draft conflict shows, worded for a live change: reload takes back the draft the Save wrote and re-reads the live object, overwrite (after a confirmation) publishes over the version the refusal names, and keep editing leaves the edits on the page, unsaved. New locale keys in the studio catalogue (en, zh): `engine.draftConflict.publishedTitle`, `engine.draftConflict.publishedDescription`, `engine.draftConflict.publishedOverwriteTitle`, `engine.draftConflict.publishedOverwriteDescription`. + + The two members enter the authorable-surface ratchet (`api/GetMetaItemLayeredResponse:overlayVersion`, `api/PublishMetaItemRequest:parentVersion`), so `@objectstack/spec` takes `minor`; the other packages stay `patch`. + + Nothing to migrate: a client that sends no version is unaffected. +- 8644ce7: feat(runtime): `GET /packages/:id/customizations` lists the arrangements the base's `.custom` pair writes + + Clause-②: yes (widening) + Metadata-protocol: added + + An administrator who arranges an installed object's record page (reorders, retitles or hides its tabs, or arranges its field groups or actions) writes that arrangement into the base's paired `<base>.custom` package as an object extension (ADR-0146 D10). Until now the per-base customization read did not show it: its lists covered the overrides, the extension fields, validation rules and indexes, the switched-off items and other packages' contributions, so a tab arrangement was a customization nobody could see in that read. + + The read now answers a fifth list, `arrangements`, with its count: + + - **What is listed.** One `{ object, key }` entry per object the base owns and arrangement key the pair's extension of it writes: `fieldGroups`, `relatedLists` (the record page's tab list) or `actionLayout`, the keys of `CUSTOM_ARRANGEMENT_KEYS`. A key counts as written when the extension carries any value under it, an empty list included. + - **What is not.** The arrangement's content: read it back with `GET /api/v1/meta/object_extension/<object>?package=<base>.custom`. Nothing is compared with the base, which stays as its package declares it. Another package's extension, and the pair's extension of an object the base does not own, are not listed. + - **Its own kind.** An arrangement is one whole declaration of the object, not a member of one of its collections, so it is not an `extensions` entry and `counts.extensions` is unchanged. + - Ordered by object, then key in the order `fieldGroups`, `relatedLists`, `actionLayout`. + + `GetPackageCustomizationsResponseSchema` declares the member and `counts.arrangements`, strict as the rest of the answer. A client that parses the answer through the schema (`client.packages.customizations(id)` returns its type) needs this version of `@objectstack/spec`: an older schema refuses the new member. +- 129e637: feat(i18n): console flow labels follow the server's declared fallback chain + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: none — the new member is a response field the console reads, not something a metadata author writes; no skills/ page teaches `GET /i18n/locales` or how the console resolves flow labels + + - **`GET /api/v1/i18n/locales` names the declared fallback chain.** `GetLocalesResponseSchema` (`@objectstack/spec/api`) gains an optional `fallbackChain: string[]`, and the runtime's `/i18n` domain fills it from the i18n service's `getFallbackLocale()` (the stack's `i18n.fallbackLocale`, else its `defaultLocale`), the same accessor the server's metadata translations hand the spec resolvers as `ResolveOptions.fallbackChain`. A service that declares no fallback (no accessor, or an empty answer, such as the core in-memory provider) serves no member. Nothing existing changes meaning. + - **The console loads the fallback locale's flow translations.** The console's language loader reads the chain and `sourceLocale` beside the active language's bundle and, unless the language is the authored one, fetches each fallback locale's bundle and keeps its `flows` group (`withDeclaredFlowsFallback`, `@object-ui/i18n`). + - **Flow labels walk the same locales as the server.** `activeFlowsBundle` returns the fallback locales' rows too, and the new `flowsResolveOptions` hands the spec resolvers `{ locale, fallbackChain, defaultLocale }`. The flow runner (flow name, field copy, option labels), the flow designer and docs viewer (`flowLabelTranslations`, `useFlowLabelTranslations`, which take the declared options) and the stage-change confirm now read a declared fallback locale's text for a label the active language lacks, before the authored label. A stack that declares no fallback keeps "requested locale, then the authored label". +- 151e812: feat(spec): declare a metadata type's Studio list columns in the spec and serve them on `/meta/types` + + Clause-②: yes (widening: new exported schemas and a new optional `list` on each `/meta/types` entry) + Metadata-protocol: added + Skills-docs: none — no skill under `skills/**` teaches Studio's metadata list columns; `skills/objectstack-ui/SKILL.md` names `entries[].schema` only, which is unchanged + + Which columns Studio's generic list shows for a metadata type is now declared in the spec, beside the type's form, instead of in console code: + + - **Spec.** `MetadataListViewSchema` is a list layout bound to the type's own schema (`data: { provider: 'schema', schemaId }`) with its `columns`; each `MetadataListColumnSchema` names a key of that schema or a dotted path into it, a header, and a cell renderer (`MetadataListCellTypeSchema`: `text`, `badge`, `boolean`, `count`, `list`, `summary`). `defineList({ schemaId, columns })` builds one and refuses an unknown renderer, an empty column list and any `ListColumn` key outside `field` / `label` / `type`. `METADATA_LIST_REGISTRY` (`@objectstack/spec/system`) is the list counterpart of `METADATA_FORM_REGISTRY`; this release declares `hook`, and a type with no entry keeps Studio's default list. A reconciliation test refuses a column naming a key the type's schema does not declare (or declares retired, or as an overlay `_` key) and a header that differs from the form field label of the same path. + - **Serve.** `getMetaTypes()` serves the registry entry as `list` on the type's `/meta/types` row, next to `form`; `GetMetaTypesResponseSchema` declares it. The REST handler translates each header through the type's form field slot, `metadataForms.<type>.fields.<field>.label`, so a column and the form field of the same key read the same words. `resolveMetadataListLabels` (`@objectstack/spec/system`) does the lookup. + - **i18n.** `os i18n extract` emits that slot for every column whose path the type's form does not already label, with the column's header as the English source. Every `hook` header reuses a form label, so no bundle changes here. + - **Console.** Studio's generic list reads the served columns first: the served list, else the console's own `listColumns`, else name / label / description. A served header is shown as served, already in the reader's language. A key the stored row leaves out shows the default the type's JSON Schema declares there, the value the runtime uses. The console can still draw a served column's cell its own way (`listCells`) and append values the server stamps on a row that are not schema keys (`listExtraColumns`). + + New exports: `@objectstack/spec` adds `MetadataListCellTypeSchema`, `MetadataListColumnSchema`, `MetadataListViewSchema`, `defineList` and their types (`ui`), and `METADATA_LIST_REGISTRY`, `MetadataListType` and `resolveMetadataListLabels` (`system`). Nothing that was accepted before is refused, and a client that ignores `list` sees the `/meta/types` it saw before. +- 4f9a3f8: fix(spec): `GetMetaTypesResponseSchema` declares every member `GET /meta/types` serves on an entry + + Clause-②: yes (widening: the published response schema declares four members the route already serves) + Metadata-protocol: added + + Each `/meta/types` entry has always carried `schemaId`, `schema` (the type's JSON Schema), `form` (its Studio editor layout) and, when the type has any, `actions`, but the wire schema declared none of them, so a typed client and the published JSON Schema could not see them. They are declared now: `schemaId` as a string, `schema` as a JSON Schema record, `form` as a `FormView` and `actions` as `Action[]`, each optional except `schemaId`, as the route serves them. Nothing the server sends changes. Because `form` and `actions` carry defaults, the response now has a parsed shape, named `GetMetaTypesResponseParsed`. +- 1cda7ea: feat(metadata): the metadata list answers when each listed item last changed, as `changedAt` beside its items + + Clause-②: yes + Metadata-protocol: added + Skills-docs: none — a read-only field of the list response that no author writes; no skill documents the list envelope's sibling fields (`registrations`, `disabledActions`) + + `GET /api/v1/meta/:type` now answers `changedAt` beside `items` (`GetMetaItemsResponseSchema.changedAt`): for each listed item served from a stored row, the `updated_at` of that row, keyed by the item's `name`, as an ISO-8601 instant in UTC written with `Z`. A list can show a "changed" column without one read per item. + + - Only an item served from a stored row has an entry. A code-shipped or file-loaded item has no recorded change time and no entry: never the read time or the boot time standing in. The field is absent when no listed item is served from a row. + - The time is the row whose content is listed. Of several stored rows in scope for one item (its package's own row, the package-less row, the package's declared override), on the list naming no package and on the list scoped to one, it is the row the list serves, the instant the by-name read serves as `Last-Modified` for it. + - On `?preview=draft`, an item whose pending draft is served (`_draft: true`) has the draft row's time. + - Several listed items of one name (a name two or more packages ship, the members of a bundle) answer the latest of their times. + - The `/meta` list chain (REST and the runtime dispatcher) keys only the names of which it still lists every item: where the per-caller gate withholds an item, or a query filter leaves one out, that name has no entry, so the time of an item the caller is not shown is never served, under its own name or a name another listed item shares. + - The items themselves are unchanged. The execution face and the per-package layer answer no `changedAt`, and the MCP `list_metadata_items` summary is unchanged. +- 06c1f54: feat(console): a chat conversation can be pinned to one record — sent as `context.focus` on every turn, shown as a chip in the composer, kept across navigation — where the agent declares `capabilities.focus` + + Clause-②: yes + Metadata-protocol: added + + **Contract (`@objectstack/spec`).** `ToolExecutionContext` gains `focus?: { object: string; id: string }[]`, beside `surfaceContext`: the record(s) the conversation is pinned to, as the client reports them on every turn. Client-reported and advisory, never an access decision; a consumer re-reads the record as the caller. At most one entry in phase 1. The agent catalog row (`AiAgentCapabilitiesSchema`, `GET /api/v1/ai/agents`) gains an optional `capabilities.focus: boolean`: an agent that honours the focus says so, and an absent flag reads as false. Both are additions; nothing is removed or renamed, and every catalog row served before the flag still parses. + + **Console (`@object-ui/app-shell`, `@object-ui/plugin-chatbot`, `@object-ui/i18n`).** Where the agent the chat runs declares `capabilities.focus: true`: + + - The composer's page chip is drawn in the row above the input (where the drafts line sits) instead of on the input's top edge, and carries a pin when the page shows one record (a record page, or a record open in a list's drawer). Pinning makes every later turn send `context.focus: [{ object, id }]`, the first turn of a new conversation included, until the user removes it with the chip's remove control. + - The pinned record's chip replaces the page chip and names the record by its display name, read in the browser as the user; a record the user cannot read keeps its `object · id` pair. + - Opening another record while one is pinned asks once whether to ask about that one instead; a decline is remembered for the conversation. + - The focus belongs to the conversation: it never changes which conversation the drawer shows, and it is restored when that conversation is shown again in the same tab. + - `setChatFocus({ object, id })` (exported from `@object-ui/app-shell`) is the setter every entry point pins through. + + Where the agent does not declare the flag — every server today — nothing changes: no pin, no chip, no `focus` key in the request, and the page chip stays where it was. `AgentCapabilities` in `@object-ui/plugin-chatbot` gains `focus`, read from the catalog; unlike the build-era capabilities it has no name-based fallback for older servers. New locale keys `console.ai.focus.pin`, `.pinned`, `.remove`, `.switchPrompt`, `.switchAccept` and `.switchDecline`, in every pack. +- c063734: fix(metadata): a skill the platform registers keeps its own slot beside an app's skill of the same name + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: none — no skills/ page names `_provenance` or its values, and the new value is one no author writes: the artifact door refuses it + + `MetadataProvenanceSchema` (`@objectstack/spec/kernel`) gains `'platform'`: the `_provenance` of a record the platform's own code registers at boot. It is a store-slot marker only, read at the item's own top-level `_provenance` key and nowhere else, and only the metadata service sets it. + + For every type stored per `(package, name)` (`skill`, `agent`, `tool` and the rest of `PACKAGE_SLOTTED_STORE_TYPES`), the platform's built-in record and a package's item of the same name no longer overwrite each other, in memory, in `sys_metadata`, and on a process or cluster peer that reads them back from the rows. + + - `MetadataManager.register(type, name, data, { origin: 'platform' })` marks a record the platform's own code registers: the body is stamped `_provenance: 'platform'` and the record fills the name's bare slot, in memory and in `sys_metadata`. Before, a package-less write under a name one package held was folded into that package's slot as its customization, so the platform's boot registration rewrote the app's skill. + - A package's first item of a name no longer takes over the bare slot when the platform's record is in it; the two stay side by side. For a bundled type (`email_template`) the row judged is the written member's. The environment's own item in the bare slot is still taken over, as before. + - A package-less environment write under a platform name keeps today's rule: it takes the bare slot without the stamp, and the platform's next registration restores its record. + - The readers that rebuild the store from loaders and rows keep both records: the plural read (`loadMany`, `loadManyKeyed`) gives the platform's entry a key of its own, `list` keeps a loader's platform row beside a package's slot and a loader's package item beside a platform slot, and a read naming a package is never answered from the platform's record. + - `MetadataManager.unregister(type, name, { origin: 'platform' })` withdraws the platform's record only, from the registry, every loader (`MetadataLoaderDeleteOptions.platformOnly`) and every cluster peer. A package's item of the name and the environment's own item are never taken, for any type, and nothing is refused however many packages hold the name. Before, a removal naming no package took every slot of a name one package held. On a host that declares a package id, the boot pass leaves the platform's stored record without the host's package, for every type, so the withdrawal takes the registry's copy too. + - `MetadataManager.getPlatformItem(type, name)` reads the platform's record only, never a package's item and never the environment's own. + - No other write carries the platform stamp. `register` without `origin: 'platform'`, `registerInMemory`, `save` and `rollback` store the body without it, and so do the metadata protocol's save door and its restore doors (`rollbackMetaItem` and the restore limb of `revertCommit`); a stored row the boot pass re-registers keeps it only when the row held it as read. `rollback` whose row is the platform's own record is refused (`409 RESOURCE_CONFLICT`, naming the fix), with nothing written. The metadata protocol's two undo writes, of a refused batch publish's landed promotions and of a failed batch row write, put a row back as the same operation found it, byte for byte, so the mark comes back only where the row held it. A body served from a loader other than a `datasource:` one is served without it; `getPublished` serves it on the answer's top level only when the stored item carries it there, and never inside a publish snapshot; and the artifact door refuses an item that carries it, with or without a manifest id (`VALIDATION_ERROR` at `_provenance`, naming the fix). A `_provenance` key nested in the body (an authored `metadata` record, for one) is the author's data: it is kept as written and never read as the mark. A body that names a package is that package's item, whatever `_provenance` it carries. + - `@objectstack/metadata` exports the mark's one definition (`PLATFORM_PROVENANCE`, `carriesPlatformStamp`, `isPlatformOrigin`, `withoutPlatformOrigin`); the artifact door and the metadata protocol's doors read it. + - `@objectstack/metadata-protocol`: the boot census `metadata_sealed_overlay_unserved` no longer names the platform's own row beside a package that ships the name, nor prescribes deleting it. + - Reads naming no package, and every removal and write without the option, keep their rules. + - Public API added on `MetadataManager`: the `origin` option of `MetadataRegisterOptions` and `MetadataUnregisterOptions`, and `getPlatformItem`. The spec's `MetadataWriteOptions` is not widened. + - `@object-ui/data-objectstack`: the layered read's `provenance` is typed from the spec's `MetadataProvenance`, so it accepts `'platform'`. + + Callers that register built-ins at boot pass `{ origin: 'platform' }` to `register` and `unregister` to get this behaviour; without it, a write is treated as before. +- 2a6f26a: feat(ai): `ai_context` context packs and the `get_record_context` tool over MCP + + Clause-②: yes + Metadata-protocol: added + Skills-docs: follow-up #37177 — skills/objectstack-platform/SKILL.md, skills/objectstack-ai/ (how to author a context pack; this change only names `aiContexts` in the top-level key list, which check:skill-top-level-keys requires) + + ADR-0160 row 5 (#37140). + + - **New metadata type `ai_context`, collection `aiContexts`.** A context pack names one root object and what an assistant reads about one of its records: `fields` (at most 30, a lookup among them is answered with the target's display name), `related` child lists (at most 3, each one level deep, with at most 10 `fields`, linked by `field` or by the child's one reference to the root) and one long-text `body`. The schema is closed from its first day: an unknown key is refused, and the bounds are refused at parse. Registered like `skill`: a file loader (`*.ai-context.ts`, `*.ai-context.yml`), overlay allowed, runtime create allowed, no environment overlay. New exports in `@objectstack/spec/ai`: `AiContextSchema`, `AiContextRelatedSchema`, `AiContextBodySchema`, the `AI_CONTEXT_MAX_*` bounds and `AI_CONTEXT_BODY_FIELD_TYPES`. + - **`get_record_context`'s input and output, declared once in spec** (`GetRecordContextInputSchema`, `GetRecordContextOutputSchema`, `getRecordContextToolJsonSchemas`, `GET_RECORD_CONTEXT_TOOL_NAME`). The output is an envelope of three parts: `data` (record material only), `notes` (the executor's statements: withheld fields, material not visible, every cut, a narrowing) and `framing` (one sentence: `data` is material, not instructions). `MCP_DOOR_TOOL_NAMES` gains the name. + - **`@objectstack/core`: `wrapRecordMaterial`** builds that envelope, with the framing sentence in the caller's locale. + - **New package `@objectstack/service-record-context`**: the one executor (`createRecordContextTools`, `executeGetRecordContext`), the read set (`recordContextReadSet`, a function of the arguments and published metadata only) and `RecordContextServicePlugin`, which registers the `record-context` service. Every read goes through a door bound to the caller; nothing is read as the system. Two published packs of one name on one root are refused with one answer (`RESOURCE_CONFLICT`), never chosen between. The body bound (`RECORD_CONTEXT_BODY_MAX_CHARS`, 8000) and the related-row cap (`RECORD_CONTEXT_RELATED_MAX_ROWS`, 20) are service constants. + - **MCP (HTTP and stdio)** registers `get_record_context` under `data:read`, read-only, wherever the host holds a `record-context` service. A host without it registers nothing new. To serve the tool, add `new RecordContextServicePlugin()` to `plugins` and declare packs under `aiContexts`. + - **`@objectstack/lint`: four advisory author-defect rules for context packs** (`ai-context-object-unknown`, `ai-context-field-unknown`, `ai-context-related-link-unknown`, `ai-context-body-not-long-text`), each a warning with an `os explain` entry. `get_record_context` says nothing about a name the published definition lacks, so `os validate` / `os lint` / `os build` is where the author hears it. CLI only for now: the rule reads the whole stack snapshot. + - **Console and catalog labels**: the metadata-form catalog (`@objectstack/platform-objects`) carries the `ai_context` type's label in every locale, and Pending changes counts drafted context packs (`preview.changes.typeCount.ai_context`). +- 595e9cb: feat(security): `server.trustProxy` gains a trusted-network form, and the client address is read from the trusted hop + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: none — no skill under `skills/**` teaches `server.trustProxy` or forwarded headers; `docs/HARDENING.md`, `content/docs/deployment/production-readiness.mdx`, `content/docs/protocol/kernel/http-protocol.mdx` and `content/docs/permissions/authentication.mdx` gain the form in this change. + + `server.trustProxy` accepts a third form beside `false` and `true`: `{ networks, header }`, naming the reverse proxies a deployment runs. + + ```ts + defineStack({ + server: { + trustProxy: { networks: ['10.20.0.0/28', '2001:db8::10'] }, // header defaults to 'x-forwarded-for' + }, + }); + ``` + + - A forwarded header is believed only on a connection whose peer address is inside `networks`. From any other peer the client is the peer itself. + - `X-Forwarded-For` is read from the right: every entry inside `networks` is a hop of the deployment's own, and the first entry outside them is the client. When every entry is inside them, the leftmost is the client. An entry a trusted hop reports that is not an address establishes no address. + - `header: 'x-real-ip'` reads `X-Real-IP` instead. Under this form the header it does not name is never read. + - Each entry of `networks` is an address or a CIDR range, IPv4 or IPv6, read the way an `allowed_ip_ranges` entry is read. Every address inside `networks` is taken for a proxy hop, so list the proxies' own addresses, never a range clients connect from. A range of prefix length 0 is refused: it would stand in for `true`. + - `os validate` and `defineStack` refuse an entry not shaped like an address or a CIDR range, a prefix length of 0, an empty list, an unknown header and an unknown key. The runtime reads every entry in full at boot and refuses, naming the entry, what passes the shape but names no range (an address with a port, an IPv4-mapped prefix wider than the mapping), so a form is never read as "trust nobody". + - A malformed `server.trustProxy` object, which used to read as `false`, now fails the boot. + - A forwarded header sent as several lines is read as one list, under every form. + + Every consumer of the client-address rule reads the new form: the inbound rate limiter, the per-endpoint rate limiter, and the authentication plugin's IP allow-list, `last_login_ip` login audit and vendored-library limiter. `objectstack serve` hands the authored value to both `AuthPlugin` and the dispatcher as it is, in either form. A host that composes them itself passes the same value to `AuthPlugin({ trustProxy })` and `createDispatcherPlugin({ rateLimit: { trustProxy } })`; `@objectstack/plugin-auth/client-address` exports `readTrustProxy`, the one reading of the declaration, with `ClientAddressTrust` and `TrustedProxyNetworks`. + + `server.trustProxy: true` reads as before, and is sound only behind a proxy that overwrites `X-Forwarded-For` on every request, never one that appends to it. Under `true` the server now logs one `warn` per process the first time an `X-Forwarded-For` with more than one entry arrives, naming the trusted-network form. The IP allow-list's two operator warnings say the same. `true` is refused at boot from the next major; to move now, replace it with `{ networks: [...] }` listing your proxies' addresses or ranges. + +### Patch Changes + +- 1d28405: feat(objectql)!: every row a sync-in pull writes records where it came from, and nothing else may write those columns + + Clause-②: no (narrowing) + Metadata-protocol: none + Skills-docs: none (no skills/ page names the `_sync_` columns or the synced bucket's injected columns) + + <!-- adr-0087: not-required (no-migration-prescription) No authorable key is added, removed, renamed or re-shaped, and every metadata document that parsed before parses the same. What changes is the registered shape of a `managedBy: 'synced'` object (five platform columns and one index the platform adds) and the answer a data write gets when it names a `_sync_` column: no authored value has to be rewritten, so there is nothing for a migration to prescribe and no tombstone. --> + + ADR-0153 D4, the provenance half (#32062, slice 5). + + - **Five `_sync_` columns on every `managedBy: 'synced'` object.** `resolveInjectedSystemColumns` (`@objectstack/spec/data`) now plans `_sync_source`, `_sync_external_id`, `_sync_pulled_at`, `_sync_run_id` and `_sync_deleted_at` on that bucket only (`plan.sync`), and the registry injects them as hidden, read-only system columns, with an index on (`organization_id`, `_sync_source`, `_sync_external_id`) placed after the tenant index. New exports: `SYNC_PROVENANCE_COLUMNS`, `SYNC_PROVENANCE_PREFIX`, `SyncProvenanceColumn`, `SYNC_PROVENANCE_FIELD_DEFS`. A synced object that declares `systemFields: false` gets none of them. + - **Both pulls stamp them.** A connector pull and a datasource pull write `_sync_source` (the mapping), `_sync_external_id` (the row's `upsertKey` value as text; a key of several fields is a JSON array of the values in `upsertKey` order, such as `["10","A-1"]`), `_sync_pulled_at` and `_sync_run_id` (the `sys_sync_run` row; not written when no run ledger is composed) on every row. `_sync_deleted_at` exists but stays empty until delete marking (D3) lands. A mapping whose `fieldMapping` targets a `_sync_` column is refused with `400 mapping_target_refused` when it runs (it was refused before as an unknown target). A connector pull whose target object's definition cannot be read is now refused the same way before it calls the connector, instead of writing rows it cannot stamp; the datasource pull already refused it. + - **BREAKING: a `_sync_` column in any other write is refused.** The engine refuses an insert or update naming a `_sync_` key with `400 ERR_SYNC_PROVENANCE_WRITE_REFUSED`, before middleware, defaults and hooks run, whatever the caller's context, `isSystem` included. A `_sync_` key a `beforeInsert` or `beforeUpdate` hook assigns, changes or removes is refused the same way before the driver is called, on any write, the pull's own included, so the pull's stamps are stored exactly as it wrote them. Only the pull's own write is admitted (`markSyncPullWrite`, exported from `@objectstack/objectql` with `SYNC_PULL_WRITE`, `SyncProvenanceWriteRefusedError` and `SYNC_PROVENANCE_WRITE_REFUSED_CODE`). The mark is consumed by that write, so a hook or flow it triggers writes as any other system caller and is refused the same way. Fix: leave the `_sync_` columns out of the write and out of your hooks; the next pull of the mapping stamps them. + - Load-time diagnostics leave the injected `_sync_` columns out when they judge a served synced object, so it is not flagged for the reserved prefix; an author field under a `_sync_` name is still refused. +- 7a3f86c: fix: four refusals say what the author can act on — the clone control by its console label, an empty or short unknown key, and an unknown CLI command + + Clause-②: no + Metadata-protocol: none + + Nothing new is accepted or refused; only the words change. + + - **Packaged permission sets.** The `ITEM_LOCKED` save refusal and the `NOT_OVERRIDABLE` lock refusals sent the admin to a "Clone" action. Studio's Access pillar and Setup label that control "New similar" ("新建类似" in a Chinese session), so the diagnostic and both end-user messages, in every language they ship, now name it that way. + - **Unknown keys.** A refusal naming an empty key printed it as empty backticks; it now says "an empty key (`""`)" and offers no rename. On a key of five characters or fewer, a "Did you mean" rename is offered only when the declared key is one edit away, counting a swap of two adjacent letters as one: `lable` → `label` is still offered, while a removed `aria` is no longer answered with `areas`. + - **CLI.** `os <topic> <unknown>` and `os <unknown>` still exit 2 without running anything, and now name the command as typed (`command environments frobnicate not found`) and end with the help that lists the real ones (`See more help with \`os environments --help\``). +- 52a2398: fix(plugin-sharing)!: every share grant counts; the sharing scopes carry the share-grant leaf instead of a list capped at 5,000 grants (ADR-0155 plan step 6) + + Clause-②: yes (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no stored row, registry key or authored value changes. What moves is how the sharing scopes count share grants (every grant, through a subquery, where a read of at most 5,000 used to stand), that grants stop counting on objects whose storage cannot evaluate that subquery, and that a host registering a narrowing of sys_record_share reads by name no longer boots. There is nothing for a migration to rewrite and no tombstone; each host-side remedy is one line, below. --> + + **What was wrong.** The read scope of a sharing-scoped object read the caller's share grants into an id list first, at most 5,000 of them, and dropped the rest without a word: a member holding 6,000 grants on one object saw 6,000 rows of 7,000 (1,000 owned plus 5,000 of the 6,000 shared), and a GET of an unread grant answered 404. The predicate-update scope had the same cap on edit-level grants. + + **Now.** `buildReadFilter` and `buildWriteFilter` carry the share arm as the share-grant leaf, `{ id: { $in: SharedRecordIds.read(object, user) } }` (the update scope carries `.write(object, user, ['edit', 'full'])`), which the SQL driver compiles as a subquery over `sys_record_share` inside the same statement. Every grant counts, at any number; no grant is read into memory and nothing binds one parameter per grant. The pending-approval ids stand as a disjunct of their own. `delete` scopes to the owner match alone, as before. + + **BREAKING**, in three places, each a tightening that lands here, where it takes effect: + + - **Share grants stop counting on objects whose storage cannot evaluate them** (ADR-0155 R2). An object stored on another datasource than `sys_record_share`, or by a driver that does not evaluate the leaf (`supports.fixedReadLeaves` without `SharedRecordIds`: today the MongoDB, in-memory and OData drivers), keeps its owner, queue and pending-approval access unchanged, but its share rows are no longer consulted: no scope carries the share arm, the edit gate reads no grant, and a new grant or a new sharing rule on it is refused `SHARING_NOT_ENABLED` (422 at the REST doors). The boot names, once at `warn`, every such object that holds `sys_record_share` rows, with the reason. `security/explain` reports each share on such a record as evaluated and not granting, and says why. + The fix for a host: to share such an object's records again, store it on the datasource of `sys_record_share`, on a driver that evaluates share grants (the SQL drivers do). + - **A narrowing of `sys_record_share` reads registered BY NAME refuses the boot** (ADR-0155 R1 at boot, D4). A host that registers an object-scoped middleware, or a `beforeFind` / `afterFind` hook, for `sys_record_share` (an opt-in of that table into plugin-audit's record-view auditing included) no longer starts: the boot fails at `kernel:bootstrapped`, before any request is served, with `INTERNAL_ERROR` / 500 naming the registration. No registration is exempt, one whose handler skips system reads included. A registration made after boot is refused at read by the engine, with the same envelope. + The fix for a host: remove that registration for `sys_record_share`. A host that opted the table into record-view auditing gives up that auditing of share rows. + - **A narrowing that names NO object is not run on the share arm.** A middleware or a find hook registered for no object, or for `'*'`, ran on today's grant read, which went through the engine as a system read. The share arm now makes no engine read of `sys_record_share`, so such a registration does not run on it, and nothing refuses, reports or logs that. On a host where such a registration changes a system read of `sys_record_share`, the share arm's rows can differ from what they were. This paragraph is the telling (ADR-0155 D4's boundary; `ISharingService`'s contract says the same). The repository's own registrations of that kind were read before this change, and none changes that read. + + **Preconditions this step inherits from the PostgreSQL key-type change** (ADR-0155 O2): + + 1. On PostgreSQL, a statement holding the leaf whose catalog read fails, or finds no such relation, answers `INTERNAL_ERROR` / 500, where an uncast statement would have run. + 2. Each transaction pays one savepoint and one catalog read per table it compares a leaf against, when the table has no pooled reading. + 3. A failed catalog read inside that savepoint rolls back the caller's concurrent statements on the same transaction. The sharing plugin issues no statement of its own that carries the leaf, and none of its reads runs inside a caller's transaction or concurrently with another on one: its own reads are sequential system reads. + + **What it costs, quoted no wider than ADR-0155 quotes it.** For the scope statements alone (an account page, its total and the two grant reads), at 1M rows and 5,000 grants, the id-list scope against the subquery scope read PostgreSQL 21.6 → 7.0 ms and SQLite 18.3 → 12.1 ms. It is not a whole-request figure. For a caller holding no grant, whose scope was the bare owner match and is now an `$or` with the subquery, SQLite still serves the page and its total from the owner index; PostgreSQL 16 serves the page as before but plans the total as a sequential scan, which grows with the table: measured, that caller's total went from 1.46 to 7.29 ms at 100k rows and from 7.88 to 42.21 ms at 1M, the page flat at both. SQLite keeps the owner index. Follow-up #36034 measures `id = ANY(ARRAY(SELECT …))` against the subquery for that caller on PostgreSQL. +- 1c05546: feat(plugin-grid): an aggregate bulk action that resolves with a `BulkActionResult` is reported per row: the rows it moved, the rows it refused with its own reasons, and the rows it did not confirm + + Clause-②: yes + Metadata-protocol: none + + The grid's bulk executor now reads the resolve value of an `execution: 'aggregate'` bulk handler. When it is a `BulkActionResult` (`{ succeeded: string[], failed: { id, message }[] }`, `BulkActionResultSchema` in `@objectstack/spec/ui`), the result panel shows how many selected rows were moved, lists each refused row under its record with the handler's `message` (and in the error CSV), and lists every selected row the result names in neither list as "not confirmed", never as succeeded. Ids are read against the dispatched `params._selectedIds`: an id outside the selection is dropped, a duplicate counts once, an id in both lists counts as failed, and when one id is in `failed` twice the first entry's message wins. A rejection is unchanged: it stays one outcome for the whole selection. + + A handler that partly succeeds no longer has to reject to avoid being reported as full success: resolve with the per-row answer instead. The `[PLANNED — not enforced]` marker is removed from `BulkActionResultSchema`'s description and its reference page, and the "all-or-nothing" wording is removed from the `bulkActionDefs` description (`@objectstack/spec`) and the `BulkActionDef.execution` TSDoc (`@object-ui/types`). + + **Declared behaviour change.** An existing aggregate handler whose own return value carries a top-level `succeeded` or `failed` member in another form (for example counts, `{ succeeded: 2, failed: 1 }`, or only one of the two lists) was reported as full success and is now reported as "unreadable": the panel says the action finished but its result could not be read, prints no per-row count, and the grid re-reads its rows when the dialog closes. To keep the success report, return a value with neither member (a summary under another name), or return both lists in the `BulkActionResult` shape. A handler that returns nothing, or a value with neither member, keeps today's report. + + The widening is additive: three new keys in every locale pack `@object-ui/i18n` publishes (`grid.bulk.resultNotConfirmed`, `grid.bulk.notConfirmedRecords`, `grid.bulk.aggregateUnreadable`). No metadata key, value or default changes. +- 8f49499: fix(approvals): a recall or subflow-parent strand reports the hook refusal that stranded the run + + Clause-②: yes + Metadata-protocol: none + + When an approval decision strands its flow run because the next step was refused (a record hook's declared refusal, a validation rule, a permission), the thrown `RESUME_FAILED` already carries `innerRefusal` and the refusal's marked `userMessage`. Two doors report a stranded run on a success answer instead, through `resumeFailure`: the recall door, whose own resume stranded, and a subflow parent that stranded after the run this door resumed advanced (through `decide` and through `recall`). Those reports carried `code`, `runId`, `status` and `repairable` only, so the approver saw a stranded run with no reason. + + - `ResumeFailureReport` (`@objectstack/spec/contracts`) gains two optional members, `innerRefusal` (`{ code, message }`, the engine's `AutomationResult.innerRefusal`) and `userMessage` (the declared sentence in the language of whoever started the run, since a resumed leg keeps the starter's locale; the authored message when no person started the run). The names and shapes are the ones the thrown `RESUME_FAILED` uses. `innerRefusal` is absent when the strand met no refusal (a fault), and `userMessage` is absent unless the failure carried a marked end-user text, so it can ride alone; neither changes how `code` and `repairable` are read. `ResumeFailureDetailsSchema` is unchanged. On the resume door these members already ride the error envelope. + - `AutomationEngine.takeSubflowParentStrand` now returns the stranded parent's `innerRefusal` / `userMessage` beside `runId`, `repairable` and `error`, read from the parent's own result. + - The approvals recall door and the subflow-parent strand fill both members whenever the strand met a refusal, read the way the thrown `RESUME_FAILED` reads them: an `innerRefusal` whose `code` is outside the registered error codes or whose `message` is not a string, and a blank or non-string `userMessage`, are dropped, so a node that returns a malformed pair answers the same on the success channel as on the thrown one. + + No migration: the change only adds optional members, and a caller that ignores them reads exactly what it read before. +- b68f9ae: docs(spec): the request texts state that a request naming no package follows the row-held base + + Clause-②: yes (widening) + Metadata-protocol: none + + The `packageId` descriptions of the save, draft save, per-item publish, delete and history/diff/rollback requests (`HISTORY_PACKAGE_SELECTOR_DESCRIPTION`) said a request naming no package is refused `409 RESOURCE_CONFLICT` wherever an item's active rows are bound to two or more packages. They now state the exception the server answers: a bundled type's member that a base package and a package declaring it both hold, with no package-unbound row beside them, is the row-held base's, as the read naming no package serves it, and the request addresses the base's row, draft or versions as naming the base does. Two packages neither of which declares the other are still refused `409`. The delete text states the consequence: the dependent's row is served next, a second delete naming no package removes it too, and the base's copy comes back only by saving it again. Description text only; no schema shape, key or accepted value moves. +- 2e9e1ac: fix(metadata-protocol)!: the read naming no bundle member addresses the canonical member alone, as `?member=en-US` and `/published` do + + Clause-②: no (narrowing) + Metadata-protocol: none + Skills-docs: none — no page under `skills/**` or `content/docs/**` teaches the read naming no member of a bundle that has no canonical member; `content/docs/references` prints the selector sentence this change now follows, and the ADR-0146 paragraph of `skills/objectstack-platform/SKILL.md` names members only at a base or a package address. No taught sentence moves. + + <!-- adr-0087: registered bundle-without-canonical-member-bare-read-absent --> + + **BREAKING**: where the address holds no canonical member of a bundled name, the read naming no member (`GET /meta/TYPE/NAME`, with or without `?package=`), `/layers` naming none and the execution read naming none move from serving another member (200) to `404 RESOURCE_NOT_FOUND` (the execution read: `null`). Name the member (`?member=fr-FR`) to read it, as before. + + The by-name doors' member selector reads a request naming no member as the canonical one (`en-US` for `email_template`), and naming the canonical value is the same request. That is the selector's declared contract (`GetMetaItemRequest.member`). For a bundle with no canonical member, the two requests got different answers: + + - The plain read `GET /api/v1/meta/email_template/NAME` and `/layers` served the bundle's other member (for example `fr-FR`, status 200). The execution read (`getMetaItemForExecution`) returned that member too. + - `?member=en-US` and `/published` answered 404. + + The same split held in two more arrangements: + + - A base ships only `fr-FR` and a dependent that declares it stores `en-US`. The read naming no package and no member served the base's `fr-FR`. + - `?package=X` where X ships no `en-US` while another package does (a dependent, or a disabled holder that the read naming no package re-addresses past to X). The read naming no member served X's `fr-FR`. `?package=X&member=en-US` answered nothing. + + For a bundle that only stores a non-canonical row (a package-less `fr-FR` row with no `en-US` row), the plain read also changed across a restart. It answered 404 before the restart. After the restart it served the row (200), because the restart had moved the row into the registry's bare slot. + + The plain read, `/layers` and the execution read now ask every layer for the canonical member when no member is named. They take the registry's bare-name answer only when it is that member. The base-address fallback serves only the base's canonical member, and an exact address (`?package=`) replaces another package's item only with the holder's item at the addressed member. So each of these arrangements answers 404 on every door naming no member, the same as `?member=en-US` and `/published`, before and after a restart. + + A bundle that ships or stores its canonical member keeps its status and served body, and so does any named member. Three more answers move: + + - `/layers` naming no member, where the canonical member is stored over a package that ships only another member: `code` goes from that member's body to `null`, as `/layers?member=en-US` already answered. Status and `effective` do not move. + - For a type with no members, `/layers?package=X`, where X holds nothing of the name and the only holder is disabled: `code` goes from the disabled holder's artifact to `null`. A disabled package holds no name. + - `?package=X` naming no member, where X does not hold the name and the environment stores it only in a non-canonical member: the read was refused `409 RESOURCE_CONFLICT` (`not-held-by-qualifier`, naming the environment) once a restart had hydrated the row. It now answers the `404` that `?member=en-US` already answered, on the plain read and `/layers`. A non-canonical member is still read with its own selector, for example `?member=fr-FR`, which the Studio list already links to for each member. + + **Reverses two statements of the 18.6.0 note** for the arrangement where base A ships `email_template` `welcome` in `fr-FR` only and dependent D, which declares A, stores `en-US`: + + - 18.6.0 said "`GET /meta/email_template/welcome/layers` (no member) moves FROM `404` after a restart TO A's `fr-FR` (200)". Now `/layers` naming no member answers `404 RESOURCE_NOT_FOUND` on both sides of a restart, as `/layers?member=en-US` does. + - 18.6.0 said "**Not moved.** The plain read, `?member=CANONICAL` and the execution read of the first shape (A's `fr-FR` naming no member, 404 at `en-US`)." Now only `?member=CANONICAL` is unmoved. The plain read naming no member answers 404 and the execution read naming no member answers `null`, where both served A's `fr-FR`. + + Migration: a caller that read a bundle with no canonical member without naming a member must name the member it wants (`?member=fr-FR`). The email template loader reads the list (`getMetaItemsForExecution`) and does not use this read, so it is not affected. +- 8e46424: Clause-②: yes (widening) + Metadata-protocol: added + + feat(messaging): Slack DM delivery — a `slack` channel, a per-person link store, approval requests by DM + + An organization can now receive notifications in Slack, as direct messages to each person who connected their own Slack user (ADR-0013 addendum of 2026-11-19, step 2 of #34730). + + - **The install.** An organization administrator (`setup.write` in their current organization) installs the organization's own Slack app with `PUT /api/v1/messaging/slack/account` `{ token }`. Slack proves the bot token (`auth.test`) before it is saved. The app's bot token needs the scopes `chat:write`, `im:write`, `users:read` and `users:read.email` (the methods called are `auth.test`, `users.lookupByEmail`, `conversations.open` and `chat.postMessage`); `auth.test` does not check scopes, so an app without `users:read.email` installs and every proposal then answers 502. The token is kept in `sys_channel_account.bot_token`, a `secret` field: encrypted at rest by the host's `ICryptoProvider`, masked on every read, never returned by any route, and read only by the server when it calls Slack. `GET` and `DELETE` on the same route read and remove the install. + - **A person's link.** `POST /api/v1/messaging/me/slack-link/proposal` proposes a link by the person's email (Slack `users.lookupByEmail`); it delivers nothing until the person confirms it with `POST /api/v1/messaging/me/slack-link/confirm`. A Slack link is proposed only for a verified email and names no one before it is confirmed. `GET` and `DELETE /api/v1/messaging/me/slack-link` read and remove it. An administrator lists links with `GET /api/v1/messaging/slack/links` and removes one with `DELETE /api/v1/messaging/slack/links/:id`; the person is told by inbox and e-mail (topic `messaging.slack_link_removed`) and may link again. A link goes when the person is deleted, banned, or leaves the organization. Links are `sys_channel_user_link` rows; every write names who acted, so the platform's write audit records each one. + - **The channel, only where connector-slack is composed.** `slack` is registered beside inbox, email, sms and push only on a composition where connector-slack's `slack` client service resolves at boot: `ConnectorSlackPlugin` now registers that service, which sends with a caller-held token. On such a composition, and only there, the `/automation` save doors accept `slack` on a `notify` node, and `GET /api/v1/messaging/preference-options` and `GET /api/v1/messaging/me/preferences` list `slack` as a channel. A `notify` node naming `slack` delivers only where connector-slack is composed, the organization installed Slack and the recipient confirmed a link. Without connector-slack, those doors answer as before: a `notify` node naming `slack` is refused 400, and neither preference door lists it. It sends `conversations.open` then `chat.postMessage` with the notification's title linked to its deep link, made absolute under `OS_AUTH_URL` / `OS_BASE_URL`. Preferences, digest and quiet hours apply as on every channel. A recipient with no confirmed link is skipped before any delivery row is written, so nothing is dead-lettered for them; a refused token stops delivery on that install until an administrator sets it again; a rate limit is retried. + - **Approval requests.** `approval.requested` also asks for `slack`, beside inbox and e-mail, only while the `slack` channel is registered and mounted (connector-slack composed). + - `MessagingChannel` gains an optional `reachableRecipients(ctx, { organizationId, recipients })`, consulted once per channel per emit after preferences. A channel without it reaches every recipient, as before. + - `PLATFORM_OBJECTS_BY_PACKAGE['service-messaging']` lists `sys_channel_account` and `sys_channel_user_link`, and the organization ownership inventory gives both a row. +- 9c29d73: docs(skills, spec): the ui and i18n skills teach an action's `refusals` catalogue and its translation keys; `action.zod.ts` gains a module description + + Clause-②: no — skill teaching text, evals and two comment-only edits in packages/spec; no schema, export or accept set moves + Metadata-protocol: none — no metadata key is touched + + objectstack-ui's `rules/actions.md` gains a short section, "Refusing by code (`refusals`)": a `type: 'script'` action with a `js` body declares the refusals it may throw and throws the code instead of a sentence, the catalogue, the throws and the checks are the ones a hook has (taught in objectstack-data's `references/data-hooks.md` § Declared refusals), the sentence is answered as `userMessage` and translated at `objects.<object>._actions.<action>.refusals.<CODE>.message`, and an authored `errorMessage` replaces it in the console's failure toast. The file's Add Line example now declares `refusals: { PRODUCT_NOT_FOUND: … }` and throws `{ code: 'PRODUCT_NOT_FOUND' }` where it threw `new Error('Product not found.')`. + + objectstack-i18n's SKILL.md lists the keys in the object key table — `_actions.{action_name}.refusals.{CODE}` holds `message` and `reasons.{reason}.message`, the same under `globalActions.{action_name}`, and a key for a code or reason the action does not declare is `translation-target-unknown` — and the server-composed text section names an action's refusal beside a hook's. Each skill's eval file gains one case that grades the rule. + + `@objectstack/spec`: comments only. `src/ui/action.zod.ts` opens with a module doc block, so the generated reference page and the two skill reference indexes describe the module ("Action protocol schemas — `ActionSchema`, the `action` metadata type, and the parts it is built from.") where they listed its first five exports, and the jsdoc above `actionRefusalsWithoutSandboxedBody` names the third case as the function judges it: a `script` action with no `body`. +- 0f29688: fix(plugin-auth)!: an invited sign-up the audience posture's own rule admits receives the declared self-registration permission set, and is refused when that set cannot be resolved + + Clause-②: no (narrowing) + Metadata-protocol: none + Skills-docs: none — no skill under `skills/**` teaches the audience posture's invitation sign-up or `selfRegistrationPermissionSet`; `content/docs/deployment/self-hosting.mdx` gains the rule in this change. + + <!-- adr-0087: registered self-registration-permission-set-reaches-invited-sign-ups --> + + **BREAKING** for a deployment under the `open` audience posture, or under `email_domain` for an address on `allowedEmailDomains`, whose declared `selfRegistrationPermissionSet` cannot be resolved (no such set, or the set is switched off) and that relies on an invited person still being able to sign up. + + - Under `open`, and under `email_domain` for an address on the allowlist, a self-serve sign-up is admitted by the posture's own rule, invitation or not. It now receives the declared `selfRegistrationPermissionSet` whether or not it also holds a pending invitation. Before, a pending invitation addressed to it was read ahead of the posture in `decideAudienceAdmission` (`audience-posture.ts`), and the sign-up was admitted with no self-registration grant, though the membership settle already treated it as admitted by the posture and bound it at creation. The verdict and the settle now read one classification, the module-private `isAdmittedByPostureRule`. + - When the declared set cannot be resolved, such an invited sign-up is now refused `403 AUTH_CONFIG_ERROR`, naming the set, as an uninvited one already was. No account is created. Before, the invitation admitted it without the set. + - The invitation still places the sign-up as it names: once the address is verified and the invitation accepted, the membership and role it names are written beside the grant. + + Unchanged: under `invite_only` an invitation admits with no self-registration grant; under `email_domain` an address off the allowlist that an invitation admitted gets the account and no grant, and is not bound while its address is unverified, whatever state the declared set is in; operator, bootstrap and SSO-provider creations; a social-provider creation whose address the provider did not verify is still refused under `email_domain`, and under `open` while email verification is in force; `admin_full_access` is still refused as the self-registration set. + + No authorable key, accepted value or default changes; `selfRegistrationPermissionSet` keeps its meaning, the set each self-registrant receives, and now reaches the invited sign-ups its posture admits. + + What to do: keep `selfRegistrationPermissionSet` naming a permission set that exists and is switched on. A person refused this way signs up again once an administrator has corrected the setting or switched the set on, or an administrator creates the account directly. An invitation can expire while the set is broken; send it again after the fix. +- 2df9691: fix(plugin-detail): an authored record page folds its all-empty field groups into one closing line, as the default page does + + Clause-②: no + Metadata-protocol: none + + On a record page you author, the details body (`record:details`) used to draw every field group the page keeps with `hideEmpty: false` as its own bordered card, even when every field in it was empty: a card holding nothing but its heading and one "Show N empty fields" row. A new opportunity on such a page showed two of these, one per empty group. + + Now every `record:details` body does what the default record page already did. The groups whose fields are all empty leave their places, and the body ends in one quiet line that names them, for example "Deal Narrative · Notes & Next Steps · 2 empty sections · Expand". Expanding the line draws each group in its own place, as its heading plus its "Show N empty fields" row, and from there the fields can be shown and edited in place. "Collapse" folds them back. + + What does not change: + + - A group with at least one value draws as before, its own "Show N empty fields" row included. + - `hideEmpty` keeps its default. An omitted key still hides an all-empty group outright, and such a group is not named in the line. + - Edit mode draws every group with every field as an input, and a print page prints every row. + - A standalone `detail-view` keeps one section per group, and still folds a body whose groups are all empty into one "Show N empty fields" row. + + No metadata key, value or default changes. The `@objectstack/spec` `describe()` of `record:details` `sections[].hideEmpty`, the `@object-ui/types` docs and the component manifest now describe the closing line. +- f19e6c6: fix(lint): `ai-skill-tool-unresolved` resolves every tool the MCP door registers for a skill offered over MCP, and says why when a skill kept out of MCP names one + + Clause-②: yes (widening) — `ai-skill-tool-unresolved` stops warning on eight tool names the MCP door registers, and `@objectstack/spec/system` gains the export `MCP_DOOR_TOOL_NAMES`; nothing that resolved before is reported + Metadata-protocol: none + + The MCP door in `@objectstack/mcp` registers record, file, action, federation and dataset tools, and offers a skill bound to them over MCP. The lint rule knew only the two file tools, so a skill bound to `aggregate_records`, `delete_record`, `delete_records`, `list_actions`, `run_action`, `resume_run`, `list_remote_tables` or `import_object` was warned that the agent cannot call it, and `os lint --strict` failed. + + `@objectstack/spec/system` now exports `MCP_DOOR_TOOL_NAMES`, every tool the door registers on a bridge carrying every optional member under a grant naming every scope. For a skill offered over MCP (`mcpPrompt` not `false`), the rule resolves every name in it. `@objectstack/mcp` has a test that keeps this list equal to what the door registers, so a tool added to or renamed at the door fails there until the list follows it. Some door names (`get_record`, `query_records`, `describe_object`, …) are cloud registrations as well and stay in `PLATFORM_PROVIDED_TOOL_NAMES`; the door's names do not join `PLATFORM_TOOLS_BY_PACKAGE`, so each group there stays the exact set one cloud package registers. `MCP_FILE_TOOL_NAMES` stays as it was and is part of the new list. + + A skill kept out of MCP (`mcpPrompt: false`) runs only in the in-product agents, which do not have the door tools no cloud package registers, so naming one there is still reported. The warning now says so: "Tool "run_action" resolves only for a skill offered over MCP, and this skill sets `mcpPrompt: false`, so the in-product agents it runs in have no such tool". The fix line offers dropping `mcpPrompt: false` or removing the name. A trailing-wildcard entry that matches only door tools gets the same verdict. + + `os explain ai-skill-tool-unresolved` names `MCP_DOOR_TOOL_NAMES` as the third source and adds that a skill which runs an app action binds `action_<name>` (or `action_*`) rather than `run_action`: the MCP door serves that entry through `run_action`, and the in-product agents call the action tool itself. +- c0716ed: feat(spec): the Studio action form offers an action's declared `refusals` and `texts` + + Clause-②: no + Metadata-protocol: none + + - **Studio action form.** `actionForm` gains two rows in the Behavior section, right after the script `body`, each shown only on a `type: 'script'` action as the body is: `refusals`, a key-only record keyed by the SCREAMING_SNAKE code the body throws, each entry editing its `message`, `status`, `reasons` (a key-only record of `{ message }`) and `params`; and `texts`, a key-only record keyed by the snake_case key the body asks for with `ctx.text`, each entry editing its `message` and `params`. They are the hook form's two rows, because the action entries are the hook entries. An author editing an action in the Studio can now write the `refusals` and `texts` the schema already accepts, instead of going through the metadata API or the package source. Nothing about what an action may declare changes. + - **Locale packs.** The rows' labels and help text ship in all eleven metadata-forms locale packs of `@objectstack/platform-objects`. +- 9062756: fix(lint)!: ten publish-time checks for flows that save and do not run — seven refuse the publish, three warn + + Clause-②: yes (narrowing) + Metadata-protocol: narrowed + Skills-docs: follow-up #36718 + + <!-- adr-0087: registered publish-refuses-flows-that-save-and-do-not-run --> + + **BREAKING** for the publish of a flow that carries one of the seven errors below: it was accepted before and is refused now, with the fix named in the finding. The schema is unchanged and stored flows are not rewritten or refused at boot; the refusal comes at the next publish, and from `os validate` / `lint` / `compile` / `build`. + + Seven errors, run by the runtime publish gate and the CLI: + + - `flow-trigger-object-missing`: a record-triggered flow with no `objectName` registers its hook with no object, so it fires on writes to every object; a blank `objectName` is refused too, because the engine will not register a hook on an empty name and the flow never starts. + - `flow-condition-option-label`: a start condition compares a select field with one of its option labels (`record.stage == 'Closed Lost'`) where the row holds the option value (`closed_lost`), so it is never true. Reported only when the label is that field's own comparand (`F == 'L'`, `F != 'L'`, `'L' == F`, or a member of `F in [...]`); judged only when the field's options are inline in this stack. + - `flow-time-relative-shadowed`: a `timeRelative` block under a record `triggerType` never sweeps, because a record trigger wins. + - `flow-time-relative-key-misplaced`: `filter` or `maxRecords` written beside `timeRelative` is ignored; the sweep reads them only inside the block. + - `flow-time-relative-date-field-invalid`: a `timeRelative.dateField` the swept object does not have, or that is not a `date` / `datetime` field, matches no record. Judged only when the stack declares the object; `created_at` / `updated_at` count as datetime fields. + - `flow-node-write-unknown-option`: a create / update node writes a select field a literal no option carries; the record validator refuses it `invalid_option` on every run. When the literal is an option's label, the finding names its value. + - `flow-node-write-date-helper-text`: a create / update node writes a date field the text of a helper call (`'today()'`); the validator refuses it `invalid_date`. The fix is a CEL value envelope, `{ dialect: 'cel', source: 'isoDate(today())' }`. + + Three warnings, which refuse nothing and make `os validate --strict` exit 1 as any warning does: + + - `flow-schedule-timezone-missing`: a schedule or time-relative cron with no `timezone` runs in UTC. + - `flow-subflow-unknown` (CLI only, new rule `validateFlowSubflowTargets`): a `subflow` / `map` node names a flow this stack and its packages do not carry. The publish gate sees one flow at a time, and another package may ship the called flow, so it is not judged there. + - `flow-create-update-pair`: an after-create flow and an after-update flow on the same object with the same nodes; one flow on `triggerType: 'record-after-write'` does both (on the create run `previous` is null). Judged on the CLI, where the stack holds both flows. + + ## FROM → TO + + - a start node `{ triggerType: 'record-after-update' }` with no `objectName` → `{ triggerType: 'record-after-update', objectName: 'deal' }`. + - `record.stage == 'Closed Lost'` → `record.stage == 'closed_lost'`. + - `triggerType: 'record-after-update'` plus `timeRelative` → keep the one the flow means. + - `{ timeRelative: {...}, filter, maxRecords }` → `{ timeRelative: { ..., filter, maxRecords } }`. + - `fields: { stage: 'Closed Lost' }` → `fields: { stage: 'closed_lost' }`. + - `fields: { due_on: 'today()' }` → `fields: { due_on: { dialect: 'cel', source: 'isoDate(today())' } }`. + + New exports from `@objectstack/lint`: `validateFlowSubflowTargets` and the rule ids `FLOW_TRIGGER_OBJECT_MISSING`, `FLOW_CONDITION_OPTION_LABEL`, `FLOW_TIME_RELATIVE_SHADOWED`, `FLOW_TIME_RELATIVE_KEY_MISPLACED`, `FLOW_TIME_RELATIVE_DATE_FIELD_INVALID`, `FLOW_SCHEDULE_TIMEZONE_MISSING`, `FLOW_SUBFLOW_UNKNOWN`, `FLOW_NODE_WRITE_UNKNOWN_OPTION`, `FLOW_NODE_WRITE_DATE_HELPER_TEXT`, `FLOW_CREATE_UPDATE_PAIR`. `@objectstack/spec` adds only the upgrade-guide entry `publish-refuses-flows-that-save-and-do-not-run`. +- 09ba0c7: docs(skills): the `objectstack-ask` skill and the `list_datasets` output schema ask back only about a word with a measure among its `candidates` + + Clause-②: no + Metadata-protocol: none + + The `list_datasets` tool description and the MCP `initialize` selection rule already scope the ask-back: "A word whose candidates are all dimensions is at most a possible grouping: never ask about it, and it never stops a matched measure." Two texts a connected client also reads still said to ask about every word with candidates. The skill now carries the same sentence, and the schema description states the same scope in its own words. + + - The `objectstack-ask` skill, and the page at `GET /mcp/skill` that is generated from it. Step 2's `candidates` row is now two rows. A word with a measure among its `candidates` is asked about the same way as a word that matches several measures; with one candidate, the client asks whether it is the one meant. A word whose `candidates` are all dimensions is at most a possible grouping: the client never asks about it, and it never stops a matched measure. So 「按行业看销售额」, where 销售额 matches a measure and 「按行业」 is only near a 行业 dimension, is computed and grouped with no question back. + - `@objectstack/spec`: the description of `ListDatasetsOutputSchema.candidates`, which `list_datasets` serves in its `outputSchema`. It said every candidate is offered for a clarifying question. It now says the clarifying question is for a term with a measure among its candidates, and that a term whose candidates are all dimensions is offered them as a possible grouping, not for a question, and does not stop a matched measure. It states what the candidates are offered for and does not carry the sentence above: the instruction stays in the tool description and the skill. The doc comment of `DatasetTermCandidateSchema` says the same. No shape changes: `candidates` holds the same entries in the same order. + + The new skill row is paid for inside the same file, by removing text that restated another line of it: the `candidates` row's own listing instruction and "Do not pick one." (the row above states both, and the row now says "Ask the same way"), "A word matches nothing, and" in its left cell (step 1 says a word that matched nothing may have `candidates`), and "on the answer" in that step 1 bullet. `packages/mcp/src/ask-skill.generated.ts` is regenerated from the skill and `content/docs/references/ai/dataset-tools.mdx` from the spec; no code path changes. +- f6902e9: feat(lint): warn when a text field named like a currency, country or time zone code declares no valueDomain + + Clause-②: yes + Metadata-protocol: none + + `os lint` gains `field/missing-value-domain`, a warning. It fires on a `text` field that declares no `valueDomain` and whose whole name, compared case-insensitively, reads as a standard code: `currency` or `currency_code` (fix: `valueDomain: 'iso_4217_currency'`), `country` or `country_code` (`iso_3166_alpha2`), `time_zone`, `timezone` or `tz` (`iana_time_zone`). The fix line names the domain to add. A field that already declares a domain, a `select` field, any other type and any other name are not judged. It is a warning only: `os validate`, `os build` and the metadata save door are unchanged. Like every warning, it makes `os lint --strict` exit 1; there is no per-rule switch, so a strict run fails until the field declares the domain. Declaring it does not re-read rows that already hold free text; only a later write that carries a non-member is refused. `os explain field/missing-value-domain` gives the reasoning. + + New exports: `VALUE_DOMAIN_FIELD_NAMES` from `@objectstack/spec/shared`, the one word list (domain → field names) the rule reads, and `FIELD_MISSING_VALUE_DOMAIN` from `@objectstack/lint`. The word list adds no member to `ValueDomainSchema`. +- df81f4c: feat: working calendars in Setup — `sys_work_calendar` and `sys_work_calendar_exception` (ADR-0157, part two of two) + + Clause-②: yes (widening) + Metadata-protocol: added + + Not released alone; pair #35641/#35642. The first half, #35641 (the calendar service and its arithmetic), is merged; this half ships in the same release as it, with the working-day formula functions (#35356) and the approval escalation's working-time clock (#35357), ADR-0157 D4. + + - **Two platform objects** (`@objectstack/platform-objects`). `sys_work_calendar` holds a calendar's `code` (unique per organization, snake_case), `name`, required IANA `timezone`, `is_default` (one per organization), the required `maintained_from` .. `maintained_through` span its holidays are entered for, and one period column per weekday (`monday_periods` … `sunday_periods`, `HH:mm-HH:mm` periods separated by commas, blank for a day off). `sys_work_calendar_exception` holds dated overrides: `calendar`, `date`, `kind` (`off`, no periods; `on`, that date's full periods), `periods` and `note`, one row per calendar and date. Both are organization data an administrator keeps, audited, like `sys_exchange_rate`; a package may seed rows under the existing seed contract and name a calendar by code. Their names join the platform object name list (`@objectstack/spec`). + - **Setup.** Two entries under Exchange Rates: Working Calendars (with a Needs Maintenance list of every calendar whose maintained span ends within 60 days) and Calendar Exceptions, whose list page imports a year of holidays from a file; the `calendar` column names a calendar by its code or name. Labels and help text ship in all eleven locales. + - **Time zone on create** (`@object-ui/plugin-form`, ADR-0157 D7). A create form opens a required time-zone field that declares no default (`valueDomain: 'iana_time_zone'`) on the organization's time zone, as it opens a record-currency field on the organization's currency; the user can change it. A create that leaves the calendar's `timezone` out takes the same zone on the server. An optional time-zone field, where blank means "take the parent's", is not prefilled. + - **Refusal wording** (`@objectstack/objectql`). The refusal of a create that marks a calendar the default in another organization no longer assumes the writer is working in an organization. + - **A calendar stays in its organization** (`@objectstack/objectql`). An update that changes the organization of a calendar or of an exception date is refused with `400 VALIDATION_FAILED` on `organization_id` (`invalid_value`), before any read and for every writer, system writes included. To have a calendar in another organization, create it there. An edit that leaves `organization_id` out or repeats the stored one is judged as before; a predicate update is judged row by row, and one matched row whose organization would change refuses it. + - **An exception date names a calendar of its own organization** (`@objectstack/objectql`). On a create, and on an update that carries `calendar`, the calendar is read by id in the exception's organization; when it is not there, the write is refused with `400 VALIDATION_FAILED` on `calendar` (`invalid_value`). A calendar of another organization and an id that names no calendar get the same refusal, word for word. The import door is judged the same way, row by row. + - **Organization ownership** (`@objectstack/cli`). Both objects are organization-owned; an exception reaches its organization through its calendar. +- ed906d5: feat: the working-calendar service, its arithmetic and its refusal codes (ADR-0157, part one of two) + + Clause-②: yes (widening) + Metadata-protocol: none + + Not released alone; pair #35641/#35642. This ships in the same release as #35642 (the calendar objects and Setup pages, the second half of this change), the working-day formula functions (#35356) and the approval escalation's working-time clock (#35357), ADR-0157 D4. + + - **The arithmetic** (`@objectstack/formula`). `isWorkingTime`, `addWorkingDays`, `workingDaysBetween` and `addWorkingHours` compute over a resolved calendar and its dated exceptions, as pure functions a formula can call synchronously, beside `parseWorkPeriods` (`HH:mm-HH:mm` periods; a period that crosses midnight is refused, `24:00` is a legal end), `buildWorkCalendar` (a frozen calendar) and the three error classes. A computation that needs a date outside the calendar's maintained span is refused rather than read from the weekly pattern. + - **The types, constants and time-zone rule** (`@objectstack/spec`). `WorkCalendar` and the column and code constants are in `@objectstack/spec/data`; the service contract is `IWorkCalendarService` in `@objectstack/spec/contracts`. `zonedWallClockToUtcMs`, `wallClockToUtcMs` and `WallClockParts` move to `@objectstack/spec/data` from `@objectstack/core`, unchanged; `@objectstack/core` re-exports all three, so no import changes. + - **Three error codes** in the ADR-0112 ledger: `ERR_WORK_CALENDAR_UNRESOLVED` (no calendar by that code, no organization default, two defaults, or no organization named outside the `single` posture), `ERR_WORK_CALENDAR_NOT_MAINTAINED` and `ERR_WORK_CALENDAR_INVALID`, each a 400. + - **The calendar service** (`@objectstack/objectql`, registered as `work-calendar`). `resolve({ organizationId, calendar })` takes the named code, else the organization default, else refuses; it never falls back to wall-clock time. It reads in the organization the caller names, elevated, and caches until a calendar or exception row is written. Outside the `single` tenancy posture, a computation that names no organization is refused before any read. Until the calendar objects are registered it refuses every resolution. + - **The write door** (`@objectstack/objectql`). Once the calendar objects exist, a calendar or exception write is refused `400 VALIDATION_FAILED` when a period crosses midnight, is malformed or overlaps another, an `off` row carries periods or an `on` row carries none, `maintained_through` is before `maintained_from`, a second calendar is marked the default, or a calendar created in an organization other than the one being worked in is marked the default (create it there, or set the default by an update); a calendar created without `timezone` takes the organization's Localization time zone. The hooks take the organization from the session. +- 99ece3c: fix(i18n): an approval step label and an approval notification's object label read as the metadata translators serve them + + Clause-②: yes (widening) + Metadata-protocol: none + + In a deployment whose `i18n.sourceLocale` differs from its `i18n.defaultLocale` (an app authored in English that defaults its users to Chinese), an English reader was shown the Chinese approval step name, and an English approval-notification recipient read the Chinese object name inside an English sentence. Both labels were read through `II18nService.t()`, which falls back to the `defaultLocale` row; `/meta` serves the authored text. Both now resolve the way the metadata route resolves a label: the reader's negotiated locale, the declared fallback chain, and the authored language (the declared `sourceLocale`, else `defaultLocale`). + + - **`@objectstack/spec`** adds `resolveFlowApprovalStepLabel(bundle, flowName, nodeId, literal?, opts?)` (`@objectstack/spec/system`), the one reading of `flows.<flow>.approvals.<node_id>.label`: the requested locale, then the declared fallback chain (skipped for the authored locale), then `literal`. It takes the flow's name and the node's id, so a reader holding only an approval request row needs no flow document. + - **`@objectstack/service-messaging`** accepts a new `NotificationTextKeys.params` value, `{ object: '<object API name>', fallback }` (`NotificationObjectLabelParam`): the label of that object in the recipient's language, resolved as `GET /meta/object/:name` serves it, by `translateObject` over the object's served definition and its packaged base, so a renamed packaged object is named by its rename. It renders the same way on the inline fan-out, the dispatcher (digests included) and the inbox reader. `fallback` is delivered when nothing resolves. The `{ key, fallback }` value is still accepted and still renders through `t()`, so stored deliveries and inbox rows render as before. + - **`@objectstack/plugin-approvals`** names a notification's object with that typed param, and reads the approval step label through `resolveFlowApprovalStepLabel`, so `t()` carries catalog sentences only. + + Upgrade `@objectstack/plugin-approvals` and `@objectstack/service-messaging` together: an older messaging service refuses the typed param at `emit()`. +- 16a96ac: feat(rest): Change Owner endpoint — hand one record or a list of records to another owner, on objects that offer the action + + Clause-②: yes (widening) + Metadata-protocol: none + + Two new doors under the data surface, both run as the caller: + + - `POST /api/v1/data/:object/:id/change-owner` with `{ ownerId | queue, notify? }` hands one record to a person or moves it to an ownership queue (ADR-0142), and answers the record's new owner. + - `POST /api/v1/data/:object/change-owner` with `{ ids, ownerId | queue, notify? }` does the same for up to 500 records, one update per record, and answers a per-row report that lists every record that did not move with its code and sentence. + + An object offers Change Owner when the platform gives it a reassignable owner and its `userActions.transfer` switch is on (on by default, off on a `controlled_by_parent` detail). Any other object is refused as a whole, `403 CHANGE_OWNER_DISABLED`, whoever asks — a holder of `modifyAllRecords` included. The switch gates this action only: a plain `owner_id` update still needs the transfer grant and nothing else, so imports and hooks are unaffected. On an object that offers it, each record moves through the ordinary write path, so the caller needs edit on the record and the transfer grant (`allowTransfer` or `modifyAllRecords`); without the grant the record keeps its owner and the answer is the data door's own `403 PERMISSION_DENIED`. `notify: true` sends the new owner one notification under the `record.owner_changed` topic, its title keyed so it renders in the new owner's own language (English when no entry renders). + + `@objectstack/core` exports `changeRecordOwner`, `changeRecordsOwner`, `changeOwnerOffReason`, `changeOwnerOffRefusal`, `CHANGE_OWNER_DISABLED`, `CHANGE_OWNER_NOTIFICATION_TOPIC`, `CHANGE_OWNER_NOTIFICATION_TEXT` and `assertAssignableUser` (the assigned-work hand-over's target check, now shared). That check now reads the target user the way the write path reads a user reference: a user the caller cannot read answers as one that does not exist (`404`, `reference_not_found`), on Change Owner and on the hand-over alike. `@objectstack/client` adds `data.changeOwner` and `data.changeOwnerMany`. `@objectstack/spec` registers `CHANGE_OWNER_DISABLED` in the error-code ledger, and the `userActions.transfer` liveness row is now `live`. `@objectstack/service-messaging` lists `record.owner_changed` among the platform's notification topics and carries the notice's title in every shipped locale (`messages.recordOwnerChangedTitle`, `messages.recordsOwnerChangedTitle`). +- f4de1de: fix(spec): `ObjectSchema.create()`, `defineSeed` and the `defineStack` / CLI unknown-authoring-key report no longer answer a short unknown key with an unrelated one + + Clause-②: no + Metadata-protocol: none + + The strict unknown-key refusal on every `strictObject` surface stopped offering a key of five characters or fewer a rename that is two unrelated edits away: such a key is answered only by a candidate one edit away, an adjacent swap counted as one. `ObjectSchema.create()` and `defineSeed` carried their own copy of the `max(2, len/3)` budget without that screen, so they went on answering, for example, an object key `page` with `name` and a seed key `kind` with `id`. The unknown-authoring-key report that `defineStack` and the CLI print (`… is not a declared … key, so its value is dropped at load — did you mean …?`) used a flat distance of 3 for every key, so `aria` was answered `areas`, and the budget did not follow the key's length. + + All four now read one rename rule. A genuine one-edit slip is still answered (`nmae` → `name`, `labl` → `label`, `queeu` → `queue`), and keys longer than five characters keep the same `max(2, len/3)` budget (for the authoring-key report that budget replaces the flat 3, so an eight-character key three edits away, `descrptn`, is no longer answered, while a nine-character one, `dfltValue` → `defaultValue`, still is); `ObjectSchema.create()` now also ranks its candidates the way the strict refusal does (case and separators folded on both sides, the author's own capitalisation breaking a tie). Only the "did you mean" text changes: no key is accepted or refused that was not before, and no export is added or removed. +- 53c9575: feat(mcp): the MCP door can search and read the installed apps' manuals, and tells the client how to answer a question about the app + + Clause-②: yes + Metadata-protocol: none + + An AI client connected over MCP (a user's own Claude, Cursor, …) can now answer "what is X?" and "how does this approval work?" from the manuals the installed apps ship, instead of from its own guess: + + - **`search_package_docs({ terms, package? })`** finds the pages whose title, a heading or text contains one of the terms (case aside, in the page's base text or a translation). Pages that contain more of the terms come first, then pages where the terms sit higher (the sum of title 3, heading 2, text 1), then by title; at most 10, each with an excerpt, its manual and, where the page has one, its console address (`/_console/apps/<package>/docs/<book>/<page>`) to cite. The heading parse is line-based and linear. + - **`read_package_doc({ name, package?, locale? })`** reads one page: its title, manual, Markdown content and, where the page has one, its console address (cut at 60,000 characters, and the answer says so). + - **Who sees what.** Both tools read the `doc` items through the `/meta/doc` docs-audience gate (ADR-0046 §6.7) with the request's execution context as the caller: a page the caller may not read is neither found nor read, and answers as not found. On an OAuth grant the request is an agent acting for the person who consented, and a permission-set audience is read against that person's own permission sets (ADR-0090 D10), never the token's scope-derived sets. Both are read tools: they register for an API key, a session, or a token granted `data:read`. The runtime's HTTP bridge carries them where the protocol serves the `/meta` list read; the stdio bridge does not. + - **The answer order.** Where both tools register, the HTTP `initialize` instructions say: read the manuals first; answer a concept from the manual, and label a general explanation as one when no page covers it; for a process or rule, also read its real definition, which wins where the two differ; end with each page's title and url. The rule names a definition reader only where the connection lists one (`describe_metadata`, else `get_metadata_item`, both under `metadata:write`); without one it says to answer from the manual and state that the configured process was not checked. A host's own instructions and a configured `instructions` option are served unchanged. + + The two names are the ones the cloud AI runtime already registers, so `MCP_DOOR_TOOL_NAMES` (`@objectstack/spec/system`) now lists them too; `PLATFORM_PROVIDED_TOOL_NAMES` is unchanged. No metadata key, value or default changes. +- 7411f9b: feat(spec, platform-objects): the standard unit table and the organization unit object `sys_unit` (ADR-0158 U1–U3) + + Clause-②: yes (widening) + Metadata-protocol: none + + Units of measure, first release (ADR-0158 U7 R1). Nothing reads these tables yet: the unit declaration on a `number` field, the write-time membership check and the display of a quantity with its unit ship with their own cards. No field key ships here. + + - **`@objectstack/spec`** (`@objectstack/spec/data`) exports `STANDARD_UNITS`, a closed table of 41 UN/ECE Recommendation 20 codes. Each code carries its dimension (`UNIT_DIMENSIONS`: `mass`, `length`, `area`, `volume`, `time`, `count`, `package`) and its ratio to the dimension's base unit (`UNIT_DIMENSION_BASE_CODES`: `KGM`, `MTR`, `MTK`, `MTQ`, `SEC`, `H87`), as an exact decimal string: `1 CODE = ratio × BASE`. Package codes (`XBX`, `XCT`, `XPX`, …) carry no ratio. The piece is `H87`; `C62` and `EA` are not members. `ORGANIZATION_UNIT_CODE_PATTERN` is the namespace of an organization's own codes (uppercase letters, digits and underscores, at least 4 characters or containing an underscore), which no standard code can match. `PLATFORM_OBJECTS_BY_PACKAGE['platform-objects']` gains `sys_unit`. The table is not a value domain: `ValueDomainSchema` keeps its three members. + - **`@objectstack/platform-objects`** registers `sys_unit` (Setup → Configuration → Units of Measure), an organization's own units: `code`, `label`, `dimension`, `ratio` (scale 12; required on every dimension but `package`, refused on `package`), `decimal_places` (a display default) and `retired`. It is organization-owned behind the tenant wall and ships no rows. A code outside the organization namespace is refused, the code is unique within the organization, and the code and dimension cannot change after create. A unit is retired instead of deleted, and retiring cannot be undone, so a code is never created again with another meaning; the data API serves no delete on it. Every column carries field history. + - **`@objectstack/plugin-security`**: `member_default` reads `sys_unit`, so a unit's label displays to every member; organization administrators write it through their existing grant. + - **`@objectstack/cli`**: the organization-ownership inventory lists `sys_unit` as attributed to its organization. +- f7b172f: docs(spec): the `FilterCondition` nested-relation docblock states the engine's three-relationship limit + + Clause-②: no — comment-only edits in packages/spec; no schema, export or accept set moves + Metadata-protocol: none — no metadata key is touched + + `@objectstack/spec`: comments only, in `src/data/filter.zod.ts`, which the package ships as source. The nested-relation form (`{ relation: { field: value } }`, form 4 on `FilterCondition`) and its three one-line mentions said the engine serves it one level deep; they now say up to three relationships deep (ADR-0071's 3-hop limit, `RELATION_CONDITION_MAX_HOPS` in objectql), with a condition past the third relationship refused as `INVALID_FILTER` / 400, and name the platform-provisioned `id`, `created_at` and `updated_at` beside the related object's declared fields as admitted keys. +- 59392ed: fix(service-analytics)!: the analytics doors refuse an object of a disabled package with the data route's `404 OBJECT_PACKAGE_DISABLED` + + Clause-②: yes (narrowing) — the exported `AnalyticsServiceConfig` (`@objectstack/service-analytics` root) gains the optional key `isObjectPackageDisabled`, and the analytics doors newly answer `404 OBJECT_PACKAGE_DISABLED` for an object of a disabled package, which they answered `200` with data before + Metadata-protocol: none + Skills-docs: none — no page under `skills/` teaches what analytics answers for a disabled package's object; the refusal carries the data route's own sentence, which names the fix + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no stored row, registry key or authored value changes. What moves is the answer the analytics doors give for an object whose owning package is disabled, an answer that returns to what it was the moment the package is re-enabled; there is nothing for a migration to rewrite and no tombstone. --> + + **BREAKING** for a caller that queries a disabled package's object through analytics. A package disable takes the package's objects off the data plane (`GET /api/v1/data/:object` answers `404 OBJECT_PACKAGE_DISABLED`), but the analytics service asked only whether an object exists and whether it is exposed, never the registry's disabled-package predicate. + + - FROM: `POST /api/v1/analytics/query` (and `/analytics/sql`, and the dataset door behind dashboards and the AI dataset tools) answered `200` for a disabled package's object: an authored or inferred cube's counts and sums, its field values as group keys, and an enabled object's relationship hop into it. `GET /api/v1/analytics/meta` still listed a cube over it, and a lookup dimension's label pass still read its records' display names. + - TO: every analytics door refuses a query whose read set (the cube's base object, a declared join, or a relationship hop) holds an object of a disabled package with `404 OBJECT_PACKAGE_DISABLED`, naming the object, in the data route's words, for every caller (system included, as on the data route). A declared join counts even when the query does not use it, the same read set the exposure and permission gates already judge. `GET /api/v1/analytics/meta` leaves such a cube out (by name it answers an empty list, as for a hidden cube), and a lookup dimension's label is withheld, so the stored id renders, as the data route's `$expand` withholds the target. + + **Not moved.** An enabled object queried on its own is served while another package is disabled. A registry that cannot answer the question hides nothing. Re-enabling the package serves every read again, and nothing is cached. + + A host that constructs `AnalyticsService` by hand, instead of through `AnalyticsServicePlugin`, must wire the new `isObjectPackageDisabled` config key (the registry's disabled-package predicate, for example `registryObjectPackageDisabled(engine.registry)` from `@objectstack/core`), or its analytics doors stay ungated for a disabled package's objects. + + The error-code ledger records the code under `@objectstack/service-analytics` too (a provenance row: the set of registered codes is unchanged). + + The fix for a caller: re-enable the package, or query only objects of enabled packages. +- c99156e: feat(spec): declare `SharedRecordIds`, the share-grant semi-join leaf, with its fixed inner read, the comparand door's `admitFixedReadLeaves` option and a conformance case-set (ADR-0155 step 1) + + Clause-②: yes + Metadata-protocol: none + + ADR-0155 replaces the list the sharing read scope binds today (`{ id: { $in: [granted ids] } }`, read from `sys_record_share` at most 5,000 grants per read, so a member past that count silently loses access) with an engine-internal leaf that a SQL driver compiles as a subquery in the same statement. This release declares the contract the later steps build on. Nothing writes the leaf yet, no caller admits it, and no read, write or boot behaves differently. + + New in `@objectstack/spec/data`: + + - **`SharedRecordIds`** — `SharedRecordIds.read(object, recipient)` (every access level) and `SharedRecordIds.write(object, recipient, accessLevels)` (the levels the producer supplies, for a predicate update) build a frozen value branded under `SHARED_RECORD_IDS_BRAND` (`Symbol.for('objectstack.filter.sharedRecordIds')`), non-enumerable like the `ReadableIds` brand. `isSharedRecordIds(value)` recognises it; a copy that crossed JSON, a structured clone or a spread arrives unbranded and is refused as a non-list comparand (`INVALID_FILTER` / 400), never dropped. It carries the object, the recipient user id and, on the write form, the levels: no organization and no reading context. No filter operator spells it, so no request or metadata author can write it. + - **The fixed inner read** — `SharedRecordIds.innerRead(leaf)` and the shared `fixedInnerReadOf(leaf)` describe what the leaf denotes as a `FixedInnerRead`: the table (`sys_record_share`), the projected column (`record_id`), the bound equality predicates (`object_name`, `recipient_type = 'user'`, `recipient_id`), the membership predicate on the write form (`access_level`), and `tenantScope: 'none'` (the subquery takes no tenant scope). Every evaluator compiles that description, plus the blank-id guard on the column, and none restates the predicate. `fixedReadLeafBrandOf` and `isFixedReadLeaf` recognise the leaf; ADR-0147's leaf will add its row to the same dispatch. + - **`ListComparandShapeOptions.admitFixedReadLeaves`** — one option naming the brands a caller of `assertListComparandShapes` admits as a `$in` comparand, beside `admitReadableIds`. No caller passes it in this release, so every door keeps refusing the leaf. + - **`FIXED_READ_LEAF_CASE_SETS` / `SHARED_RECORD_IDS_CASE_SET`** — the per-driver conformance cases (fixture tables, the rows each `where` must answer, which case needs the inner read to stay unwalled) and the engine seam's position, verb and recipient cases, as data for the driver and engine cards to run. + + The `ISharingService.buildReadFilter` and `ISecurityService.getReadFilter` docs now say what holds once plugin-sharing writes the leaf: hand the scope to an engine read in process, under the context it was asked for, a context acting on that user's behalf, or a system context, and never serialise it or match it with a generic matcher. A host that registers a middleware or a `beforeFind` / `afterFind` hook for `sys_record_share` by name will be refused at boot from that switch on, until it removes the registration. A middleware or find hook registered for no object will not run on the share arm. +- 7ee7a61: docs(spec): the `FilterCondition` nested-relation (form 4) docblock says per verb and driver how the form is served + + Clause-②: no + Metadata-protocol: none + + The form 4 paragraph of the `FilterCondition` docblock in `@objectstack/spec/data` said the nested-relation form is served "the same on every driver" by reading the related ids, and that a condition over the engine's cap is refused. It now says what the engine does: on a read verb (`find`, `findOne`, `count`, `aggregate`) a single-valued relation is one subquery inside the read's own statement where that is provably the same read; a multi-valued relation, `update`, `delete` and a read the subquery cannot prove read the related ids. On a driver that does not declare `DriverCapabilities.readableIdsLeaf` (MongoDB, OData) a single-valued condition on a read verb is refused up front with `INVALID_FILTER` / 400 (ADR-0139 D3, as amended). The cap sentence now applies only where ids are read. Text only: no schema, type or behaviour change; it now agrees with the Data Engine contract page. +- 401eb44: fix(app-shell): Studio's formula inspector asks whether the formula still computes money before it keeps a `currency` result type + + Clause-②: yes (widening) + Metadata-protocol: none + + When an author edited a formula field in Studio, the inspector re-stamped `returnType` from the expression's inferred CEL type, and kept a declared `currency` under every `number` or unproven verdict, because that type never says "money". So a formula edited from an amount (`record.amount * 0.1`) into a count (`record.est_hours * 2`) kept `returnType: 'currency'` and its `currencyConfig`, and its value was still shown as an amount. + + The stamp now also asks `@objectstack/formula`'s `inferFormulaReturn`, over the object's declared fields, whether the edited expression computes money: + + - Provably money: `returnType` is stamped `currency`, with the currency the source amounts are in as the formula's `currencyConfig` (absent for the tenant default currency). This holds for a formula that was `number` too. + - An edit it answers `number` for withdraws a declared `currency`: `returnType` becomes `number` and the `currencyConfig` is removed. + - An unproven verdict (a field-over-field quotient, two currencies meeting) keeps a declared `currency`, as before, and so does an engine that does not offer `inferFormulaReturn`. + - A declared `percent` is unchanged: it survives a `number`, unproven or money verdict, and is never re-stamped `currency`. A verdict that proves `text`, `boolean` or `date` still stamps, and now also removes a stale `currencyConfig`. + + `@objectstack/formula`'s `inferFormulaReturn` now answers `{}` (unproven) where it used to answer `{ returnType: 'number' }` on the numeric path, unless the unit proof succeeds or every read of the record (`record.x`, `record['x']`, `record.?x`, `record[?'x']`, or a bare `x`) is one segment naming a declared field whose unit can be read and is not money. FROM `inferFormulaReturn('record.rollup * 0.9', fields)` → `{ returnType: 'number' }` TO → `{}`. The same holds for `100 / record.amount`, `record.amount % 3`, `record.amount * 1.0 + record.fee_eur * 1.0` (two currencies), `double(record.amount) * double(record.tax)`, an amount whose `currencyConfig` does not parse, a hop through a reference (`record.account.balance * 0.9`), a formula operand that declares no `returnType` (`record.subtotal * 0.2`), the indexed and optional spellings of an amount (`record['amount'] * 0.1`), and a name the field map does not declare (`record.unknown_field * 2`). A call with no field map therefore answers `{}` for any numeric expression that reads the record (`inferFormulaReturn('record.amount * 0.1')` was `number`). So a `number` answer means "proved not money", and only that answer withdraws a declared `currency`. + + What still answers `number` is an expression over declared fields of readable non-money units: number, percent and other plain fields, a formula declaring a non-`currency` `returnType`, and a `count` roll-up whose `summaryOperations` is passed. A bare ratio of two amounts in one currency (`record.amount / record.tax`) types `dyn` and answers `{}`, as before. A caller that read the old `number` for these shapes should read the expression's CEL type (`inferExpressionType`) instead. In Studio, a new formula over such an amount is still stamped `number` from that CEL type. + + Widened: the published `FormulaSourceField` type gains one optional member, `summaryOperations` (a `summary` field's roll-up, as declared). A `count` roll-up is read as a plain number only when it is passed. A roll-up passed without `summaryOperations`, a `count` included, is read as possibly money, so an expression over it answers `{}`. + + The stamp still runs only after the author edits the expression; selecting a field writes nothing. The `returnType` description in `@objectstack/spec` now says the same: `currency` is stamped when the expression provably computes money and withdrawn for `number` when an edit leaves it a plain number, and a declared `percent` is kept under a money verdict. +- de25d58: docs(spec): `page:header` `maxVisible` / `mobileMaxVisible` descriptions state the renderer's real fallbacks per host + + Clause-②: no + Metadata-protocol: none + + The two descriptions said the renderer shows 3 inline header buttons (1 on mobile) when the key is unset. Since the record page's header became one row, an unset `maxVisible` gives 1 there and 3 on any other header, and an unset `mobileMaxVisible` gives 2 in a record page's bottom action bar on a phone and 1 elsewhere. Text only: the schema shape, its validation and its lack of a schema default are unchanged. +- 4fb7169: fix(spec): a hook's or action's `ctx.text` key is read as literal at save only when its closing quote ends the argument + + Clause-②: no + Metadata-protocol: none + + The save doors of `HookSchema` and `ActionSchema` read the text keys a body asks for literally (`hookTextKeysAskedIn`) and refuse one that `texts` does not declare. The reading stopped at the closing quote, so a key built from a literal — `ctx.text('follow_up' + suffix)`, `ctx.text?.('follow_up' + suffix)`, `ctx.text('follow_up'.concat(suffix))` — was read as a literal ask for `follow_up` and refused at save, though the body would run correctly once the built key is declared. The published reading already left a computed value to the run-time refusal; the save now agrees with it. + + A key is literal now only when its closing quote is followed by `,` or `)`, after optional whitespace. Every literal ask the save refused before is still refused, in the same words: `ctx.text('key')`, `ctx.text('key', params)`, `ctx.text?.('key', params)`, a backtick key with no hole, and a key whose quote is followed by a comment or a line break before the comma or close. A key built from a literal is refused when the hook or action runs, naming the key, as any other computed key is. No author action is needed. +- bb1c55d: docs(approvals): a reject reason is required at every human door — the contract docblock, the docs and the platform checklist say so + + Clause-②: no + Metadata-protocol: none + + Text only; no behaviour changes. `ApprovalService.decide()` already refuses a reject whose `comment` is missing, blank or not a string with `400 VALIDATION_ERROR` before any write, and an approve keeps its comment optional. The texts that still called the reason optional now state that rule: the `ApprovalDecisionInput.comment` and `IApprovalService.decide` docblocks in `@objectstack/spec` (the type is unchanged: `comment` stays optional in the interface, because an approve may omit it), and the `approval_reject` action's source comment in `@objectstack/plugin-approvals`, which said the target route does not judge the reason. +- 40e22f1: fix(approvals, list): a list cell no longer opens an editor before it knows the record's approval lock, and the list reads the locks of a page in one request + + Clause-②: yes (widening) + Metadata-protocol: none + + **What a list user sees.** On a list that edits in place, a double-click, Enter, F2 or a typed key on a cell whose record's approval lock or edit permission is still being read no longer opens an editor that the server would then refuse on save. The cell says "Checking whether this record can be edited…", and when the answer arrives the same edit goes ahead by itself (with the typed key), or the cell says why it does not: the record is locked while it is in approval, or the reader has no permission to edit it. Selecting another cell in the meantime drops the wait. Moving the selection with the arrow keys no longer sends a lock request per row: the first cell selected on a page asks the locks of every row on it at once. + + **New route.** `POST /api/v1/approvals/records/:object/locks` with the body `{ "recordIds": ["<id>", ...] }` (at least one id, at most `APPROVAL_RECORD_LOCKS_MAX_RECORD_IDS`, 200) answers `{ success: true, data: { records: [{ recordId, locked }] } }`, one entry per id in order. `locked` is what `GET /api/v1/approvals/records/:object/:recordId/lock` answers for that id, and `null` where that route answers 404: a record the caller cannot read and one that does not exist answer alike. Any other body (a key other than `recordIds`, an empty list, a non-string or blank id, more ids than the cap) and any query parameter are refused whole with `400 VALIDATION_ERROR`, never trimmed. A deployment whose approvals service does not implement the read answers `501`. + + **Contract and SDK.** `IApprovalService` gains the optional member `getRecordLocks(object, recordIds, context)`, entry `i` answering `recordIds[i]` exactly as `getRecordLock` does; the approvals plugin implements it in two reads whatever the page size (the caller's read of the ids, then one pending-request lookup judged by the record-lock hook's own judgement). `@objectstack/spec/contracts` exports `APPROVAL_RECORD_LOCKS_MAX_RECORD_IDS`. `@objectstack/client` gains `client.approvals.getRecordLocks(object, recordIds)`. + + **Components.** `GridCellFacts` (the select-first table's per-cell facts) gains the optional `checking: { text, settled }`: while present, an edit asked on the cell shows `text` and is asked again when `settled` settles; a toggle, paste or clear shows `text` and writes nothing. A host that sets no `checking` sees no change. +- bc9ace2: feat(record-page): the record's header is two rows — navigation over the record — and shows up to three actions again + + Clause-②: yes (widening) — `@object-ui/components` takes four optional members: `RecordTopBarProps.record`, `RecordTopBarStepper.onScope`, `NavigationOverlayProps.recordRow` and `PageHeaderActionsProps.fitWidth`; nothing removed or renamed + Metadata-protocol: none + + The record's top bar, on the full page and in the drawer alike, is now two rows: + + - The navigation row (40 px). From a list: ↑ ↓ and 「第 N 条,共 M 条 · 视图名」 ("N of M · view"), M being the records the list matched; the view's name returns to the list. From no list (a link, a notification, a search): the object's name and no ↑ ↓; on the page the name links to the object's list, and in the drawer it is shown without a link. ✕ sits at the far right in every case: on the page it returns to the list the page came from as it was left, else the object's default list; in the drawer it closes, with ⤢ (open the full page) before it. + - The record row (48 px): the record's icon, its name one size larger, its stage and approval tags, then who else is on the record and the managing package's badge (on the page they no longer float over the corner above the tabs), and at the right the record's buttons and ⊟. + + The drawer shows ↑ ↓ and the count again (the drawer hid them since #35593). A phone keeps its one-row bar. + + The header bar's default inline budget is 3 again (#35593 had set it to 1): what does not fit the bar's width folds into 「更多」 one action at a time, down to the primary, so a narrow drawer shows fewer. An authored `maxVisible` still wins, a phone still shows one primary action (its bottom bar holds the host's Edit and one more), and there is still one primary-coloured button at a time. The `page:header` `maxVisible` / `mobileMaxVisible` describe, the `pages.mdx` Default cell and the Studio designer descriptions say so. +- 0a1b69c: feat(approvals): a decided request's step line says where the record's approval went next: on to a later step, or ended + + Clause-②: yes + Metadata-protocol: none + + The single approval request read (`GET /api/v1/approvals/requests/ID`) serves one more fact on a decided request's own route: `flow_route.outcome`, beside `ahead: 'decided'`. Before, a decided route stopped at the request's own step, so an approver reopening a request they had decided could not tell whether the record's approval went on to a later step or ended. + + - `outcome.step` is the run's latest request when it is a later one than this request (a request of the same flow run opened after it, on any node, a later round of the same node included; a pending one wins over a decided one). It is absent when no later request was opened in that run; a request a child run opened is not among them. + - `outcome.status` is that latest request's status, or this request's own when `step` is absent. `pending` with a `step` means the approval went on to that step and waits on its decision. + - `outcome.ended` is `true` only when the record's approval is known to have stopped: the request's run is a root run (not a `subflow` body or a `map` item, whose end is not the approval's), the flow body the run ran holds no `subflow` or `map` node anywhere, regions included (a child run files its requests under its own run, so this run's requests cannot show what it decided, before or after this request), and the run reports it stopped for good, with the same terminal set the dead-run sweep uses. The body the run ran is known only when the body armed now is the flow's newest registration and was registered before the run started, so a flow edited, rolled back or re-registered after a run started is never judged by its current body for that run. `false` means not known to have stopped: the run goes on, is a child run, ran a body that can start a child run, ran a body that is not known, cannot be read, or was opened before this release (the approval node now records on each new request whether its run is a root run). + + `outcome` is absent when nothing past the request is known: no later request was opened and the approval is not known to have ended, or several later requests are pending at once (parallel steps). A pending request's route never carries it. It is served to every reader of the request and says only where the same approval went: the later step's node id and label and that request's status, never the later request's id, approvers, comments or field values. The `ApprovalRequestRow.flow_route` contract type in `@objectstack/spec/contracts` gains the optional member, and `routeOutcome` in `@objectstack/plugin-approvals` is the rule. + + The approval request page (`@object-ui/app-shell`) draws one line under the decided step: "Went on to STEP, waiting for a decision", "Went on to STEP: DECISION", "Went on to STEP, then ended: DECISION", or "The approval ended here". No line is drawn when no outcome is served. `@object-ui/i18n` carries the four new `approvalsInbox` rows in every built-in locale, and the console's request type (`@object-ui/console`) mirrors the new member. + + Nothing to migrate: a caller that does not read `outcome` is unaffected. +- 643fe3b: feat(driver-sql, driver-turso): the SQL drivers compile the `SharedRecordIds` fixed-read leaf to a subquery (ADR-0155, step 3 of 6) + + Clause-②: yes + Metadata-protocol: none + + No visible change on its own: nothing on main writes a `SharedRecordIds` leaf yet. The sharing plugin starts writing it at ADR-0155's last step. + + - **The compile** (`@objectstack/driver-sql`). A `SharedRecordIds` leaf in a field's `$in` compiles to one subquery in the list's own position: `id IN (SELECT record_id FROM sys_record_share WHERE object_name = ? AND recipient_type = 'user' AND recipient_id = ? AND record_id IS NOT NULL AND record_id <> '')`. The write form adds `AND access_level IN (…)` inside the subquery. Every value is bound. The subquery carries no tenant scope (ADR-0155 ① ruled A), and the outer statement's tenant wall is unchanged. It compiles on every read verb and on `updateMany`, for SQLite, PostgreSQL, MySQL, SQL Server and Oracle. SQLite and PostgreSQL were run live for this release. MySQL, SQL Server and Oracle are pinned at compile shape, and MySQL also runs live in CI's Temporal Conformance job. On PostgreSQL, an object whose `id` column is not text (an integer- or uuid-keyed federated table) fails the compiled subquery with `DATABASE_ERROR` (42883) instead of answering its rows. That case is open on #35906 (ADR-0155 D-0) and is settled before the sharing plugin writes the leaf. On Oracle the `<> ''` half is left out, because Oracle stores `''` as NULL. `SqliteWasmDriver` and Turso's local mode inherit the compile. + - **The remote transport** (`@objectstack/driver-turso`). Turso's remote mode compiles the same subquery with its own compiler, from the same predicates. + - **The declaration.** `SqlDriver.supports.fixedReadLeaves` is `['SharedRecordIds']`, and `TursoDriver` inherits it in every mode. The engine's seam now hands the leaf to these drivers instead of refusing it. + - **The refusal.** A leaf anywhere other than a field's `$in` comparand is refused before any statement runs, with `INTERNAL_ERROR` / 500, and logged at `error` once per driver. + - **New exports** (`@objectstack/driver-sql`). `findMisplacedFixedReadLeaf`, `fixedInnerReadPredicates` and `misplacedFixedReadLeafMessage` are the walk, the predicates and the refusal text the two compilers share. + - **The shared case-set** (`@objectstack/spec`). `SHARED_RECORD_IDS_CASE_SET` gains a note (`n5`) on a doc whose only grant is stamped in another organization, and a nested case read under a tenant. Together they witness, in the nested position, that the inner read carries no tenant scope. +- 0a3dd40: feat: analytics compiles the `SharedRecordIds` fixed-read leaf, the access explainer resolves it at the record, and OData refuses it (ADR-0155, step 5 of 6) + + Clause-②: yes + Metadata-protocol: none + + No visible change on its own: nothing on main writes a `SharedRecordIds` leaf yet. The sharing plugin starts writing it at ADR-0155's last step. + + - **Analytics, the native SQL path** (`@objectstack/service-analytics`). A read scope carrying `{ id: { $in: SharedRecordIds.read(object, user) } }` compiles to one subquery in the list's own position, `id IN (SELECT "record_id" FROM "sys_record_share" WHERE "object_name" = ? AND "recipient_type" = ? AND "recipient_id" = ? AND "record_id" IS NOT NULL AND "record_id" <> '')`, with every value bound and no tenant scope on the subquery (ADR-0155 ① ruled A). The native strategy takes such a scope only when the host answers `AnalyticsServiceConfig.fixedReadLeafClassOf` with `null` for each leaf (outside both classes ADR-0155 D4 recognises: the object on another datasource than `sys_record_share`, or a middleware or `beforeFind` / `afterFind` hook registered for `sys_record_share` by name) and the dialect is SQLite, PostgreSQL, MySQL or SQL Server. Otherwise it declines, and the ObjectQL engine path answers. A host that wires no answer keeps today's behaviour: the native path declines every scope that carries the leaf. This change ships the hook unwired: `AnalyticsServicePlugin` passes no answer, so the native path declines a scope carrying the leaf and the engine path answers, until #35946 wires it. + - **Analytics, the ObjectQL path.** The read-scope merges (`withReadScope`, the related-object scope, the label read) admit a placed read-form leaf and hand it to the engine by reference. The dry-run SQL echo prints the subquery. A leaf in any other position, under `$nin`, on another object or in its write form is refused, `INTERNAL_ERROR` / 500, logged at `error` once per service logger. + - **Analytics, the query's `where`.** A leaf reaches analytics only in the read scope. A leaf anywhere in a query's `where`, in either spelling, is now refused before either strategy runs, with `INTERNAL_ERROR` / 500. The message names the leaf and its table, not the recipient. Before this release `{ id: { $in: leaf } }` there answered `INVALID_FILTER` / 400, with a message that printed the recipient. A bare `{ id: leaf }`, or an array-form `=`, was read as a relation condition on `id`. No request can spell the leaf, so only in-process code could reach this. + - **The access explainer** (`@objectstack/plugin-security`). `ISecurityService.explain` resolves each leaf in the sharing read filter at the record it judges, with one read of `sys_record_share` under the leaf's own predicate, keyed by the record ids (one read for a whole batch). The sharing layer's `rowFilter` then has the two shapes it has today: `{ id: { $in: [recordId] } }` in the share arm for a caller with a grant on the record, and the share arm left out for a caller without one. The published `rowFilter` never carries the leaf. A leaf it cannot resolve is refused, `INTERNAL_ERROR` / 500, logged at `error` once. That includes a leaf anywhere but `{ id: { $in: leaf } }` in the object's own filter, such as one inside a relation condition or a composed `ReadableIds` scope, as the engine and the analytics compiler refuse it. + - **OData** (`@objectstack/driver-odata`). `find` and `count` refuse a `where` carrying the leaf before any request is sent, `INTERNAL_ERROR` / 500. An OData `$filter` has no form of the subquery, and the driver declares no `fixedReadLeaves`. Before this release a direct `find` left the leaf's predicate out of the `$filter` it sent. The engine already refused the leaf before calling this driver. + - **The array form** (`@objectstack/spec`). `parseFilterAST` now refuses a leaf in the array form with `INTERNAL_ERROR` / 500 wherever it answered `INVALID_FILTER` / 400: as an `in` / `nin` comparand, as a member of an `in` / `nin` list, or as the comparand of a scalar operator (`!=`, `>` and the rest). The old messages printed the leaf's inputs, the recipient among them. The new message names the leaf and its table only. An unbranded copy that crossed JSON is still `INVALID_FILTER` / 400. An array-form `=` is passed on by reference and refused by the engine, as before. + - **New exports** (`@objectstack/objectql`). `fixedReadLeafClassOfEngine(engine, leaf)` answers which ADR-0155 D4 class, if any, keeps the engine from handing a leaf to a driver. `driverEvaluatesFixedReadLeaf` answers whether a driver declares the leaf. Neither reads or writes anything. +- 6b51822: fix(ui): the entry form draws a group-placed master-detail table at its field group + + Clause-②: no + Metadata-protocol: none + + A master-detail child that a field group of the parent places (`fieldGroups[].relatedList`) is now drawn at that group in the parent's create and edit forms, where the record page draws it, instead of below all of the record's fields: + + - A form laid out from the parent's field groups draws the table after the sections of the groups declared before the placing group and before the ones declared after it. + - The form's section bar stops at the table too, between the sections around it. + - A tabbed form gives it a tab of its own at that position, labelled with the group's label. A wizard master-detail form is drawn as the simple form, as before, and places it the same way. + - A form whose sections name no field group, and a child no group places (a form view's own `subforms`), keep the table below the record's fields, as before. + + The table is the same one: its rows still save with the record in one batch, an expanded row's editor opens beside it, and the document totals stay at the foot of the form. No metadata changes. +- f548bdc: fix: descriptions and help text no longer say the default record page draws a key-field strip or a stage path + + Clause-②: no + Metadata-protocol: none + + The default record page draws no key-field strip and no stage path: the stage is the status tag beside the record name. These texts said otherwise and now say what each key drives: + + - `@objectstack/spec`: the `highlightFields` describe ("Drives default list and related-list columns, cards, hover cards, previews and the record picker; the default record page draws no strip from it") and its Studio help text. The `stageField` and `RECORD_HIGHLIGHTS_MAX` doc comments say the header's status tag reads the stage and the count cuts only a strip a page places in its `highlights` slot. The upgrade-guide entry `field-group-shadowed-six-highlights` no longer tells authors to move highlights: the warning now judges the record title alone, and no action is owed. + - `@objectstack/platform-objects`: the `highlightFields` help text in every metadata-form locale. + - `@objectstack/lint`: the `os explain` text of `object-field-ref-unknown` and `semantic-role-field-unprovisioned` names the hover card and the record picker in place of the strip. + - `@object-ui/plugin-detail`: the `record:details` `hideFields` description no longer says the default page fills it. The key is still accepted. + - `@object-ui/i18n`: Studio's lifecycle-field help (`stageField`, and its "None" choice) talks about the status tag, not a progress bar. + - `@object-ui/types`: the page `highlights` slot doc says it places a strip the synthesized default does not draw. + - `@object-ui/app-shell`: on a phone the default record page no longer hands the synthesizer a highlight list it never read. The page looks the same, and the subtitle under the record name is unchanged. +- e72f2aa: feat: the analytics plugin asks the engine which share-grant scopes its native SQL path may compile (ADR-0155 D4) + + Clause-②: yes + Metadata-protocol: none + + - **New optional contract member** (`@objectstack/spec`). `IObjectQLEngine.fixedReadLeafClassOf(leaf)` answers which of ADR-0155 D4's two classes a `SharedRecordIds` leaf falls in on an engine: `'other-datasource'` (the leaf's object is bound to another datasource than `sys_record_share`) or `'registration-by-name'` (a middleware or a `beforeFind` / `afterFind` hook is registered for `sys_record_share` by name), with what names it. It answers `null` when neither class applies, and throws `TypeError` on a value that is not a fixed-read leaf. The answer type is the new `EngineFixedReadLeafClass`. The member is optional, and because "neither" is `null`, `engine.fixedReadLeafClassOf?.(leaf)` is a caller's whole answer: a class, `null`, or `undefined` from an engine without the member, which cannot say. + - **The engine implements it** (`@objectstack/objectql`). `ObjectQL.fixedReadLeafClassOf` returns the seam's own recognition, `fixedReadLeafClassOfEngine(engine, leaf)`, with "neither" spelled `null`. It reads only datasource bindings, middlewares and hooks. It calls no driver and logs nothing. + - **The analytics plugin wires it** (`@objectstack/service-analytics`). `AnalyticsServicePlugin` now fills `AnalyticsServiceConfig.fixedReadLeafClassOf` from the `"data"` engine on each call. When the engine answers `null` (neither class), the native SQL path compiles a read scope that carries the leaf. When the engine names a class, throws, answers anything but `null`, or has no such member, the query goes to the ObjectQL engine path, as before. An engine without the member is reported once at `warn`. Neither class is restated in analytics. + + Nothing a metadata author writes changes. On a host that runs `ObjectQLPlugin`'s engine as `"data"`, a sharing-scoped analytics query outside both classes keeps the native SQL path once the producer starts writing the leaf (ADR-0155 step 6). +- 8c5a81e: fix(plugin-list): Refresh alone no longer draws the Display entry in the default list toolbar + + Clause-②: no + Metadata-protocol: none + + The default (Display) list toolbar has no Refresh button, yet `userActions.refresh` still counted as a reason to draw the toolbar's Display entry. On a non-grid view (kanban, calendar and the rest) whose other Display controls were all off, the entry opened a panel holding only its footer. Refresh no longer counts, so such a view draws no Display entry. The wide toolbar (`compactToolbar: false`) still draws Refresh as before, and `userActions.refresh: false` still takes it off there. + + `@objectstack/spec`: the `userActions.refresh` description now says the toggle governs only the wide toolbar's Refresh button and changes nothing in the default toolbar. The view form's hint for the key says the same, and `@objectstack/platform-objects` ships it as the English help text in the metadata-forms bundle; the other locales keep their existing translations. Only the description text changed: the key, its type and its default are the same. +- ed4d322: docs(skills): the data skill teaches the three permission axes, `viewAllFields` and the sensitivity tiers + + Clause-②: no + Metadata-protocol: none + + objectstack-data's `rules/security.md` now teaches the permission model in three axes. Object permission (`allowRead`, `allowCreate`, `allowEdit`, `allowDelete`) decides whether the caller can use the object at all. Record scope (`viewAllRecords`, `modifyAllRecords`) widens which records the caller reaches, and from v19 those two bits open no field. Fields are visible by default, so an author writes only the exceptions: nothing for an ordinary field, `fields` rows in the sets that differ for a position-dependent one, and `requiredPermissions` on the field itself for a high-sensitivity one (salary, ID numbers), with `maskingRule` where a partial value is needed. That gate is strictest-wins over every field row, `viewAllFields`, View All and Modify All. + + A new section teaches `viewAllFields: true` as the way to say "this set reads every field", for admin-like sets: a read vote on every field, fields added later included, and never an edit vote; the set's own `readable: false` row beats it; it grants no object access and widens no record; on the `'*'` entry it also votes on the fields of private-posture objects, which a plain `'*'` does not grant; it is authored in metadata, as Studio's permission matrix keeps the key and has no control for it. + + `evals/hooks-security-seeds-datasources.json` gains two cases: a read-everything auditor set written with `viewAllFields`, and salary and ID-number fields gated with `requiredPermissions` and `maskingRule`. Two restatements in `rules/security.md` were removed to pay for part of the new text (the "Locks, never grants" bullet and the recipe link of the `when` section). + + `@objectstack/spec`: two docblock sentences in `src/security/permission.zod.ts`, comments only. The `viewAllFields` docblock now says the key changes nothing on an object entry that carries View All or Modify All (it said "on a set"), and the `FieldPermissionSchema` docblock names `viewAllFields` beside the super-user bits as a voter in the field merge. No schema, description or generated artifact changes. +- 0628e08: perf(fields): the line-item grid's body loads on first use, and the console's first load no longer carries it + + Clause-②: yes (widening) + Metadata-protocol: none + + The line-item grid (the `grid` field and the line items of a master-detail form) was the largest field widget in the console's first-load bytes, though only a form with line items draws it. Its body now loads the first time a grid is drawn, or earlier, when a form that draws line items mounts. + + - **The same two components.** `GridField` and `LineItemsField` keep their names and their props. They now render the grid's body once it has loaded; a grid mounted before that shows a small busy placeholder until it arrives. A grid mounted after the body loaded renders it directly, and a grid that showed the placeholder draws the body once it arrives and never remounts it on a later render, so its rows and focused cell stay. + - **One new export, `preloadGridField()`.** It starts loading the body ahead of the first grid. It is safe to call often, its promise settles once the body has loaded, and it never rejects: a failed load is reported by the grid that needs it, through the nearest error boundary. + - **The record forms wait for it.** `MasterDetailForm` and the record page's line-item editor derive a grid's columns from the child object's schema, and now show those columns only once the body has loaded as well, so on a form's first open the grid never shows the placeholder. `LineItemsPanel` starts the load when it mounts. + - **The helpers stay where they were.** `evalArith`, `computeRow`, `lookupAutofillPatch`, `columnHelpByField`, `UNTOUCHED_NEW_ROW`, `isUntouchedNewRow` and the `GridColumn`, `ColumnCurrencies` and `ColumnHelp` types are exported as before and load with the package. + - **The console loads it on demand.** The console's build puts the grid's body in a chunk of its own (`fields-grid`), loaded on demand, so its first load is about 6 KB (gzip) smaller. + - **The liveness ledger points at the helper's new file.** In `@objectstack/spec`, the evidence path for `lookupAutofill` in the field liveness ledger now names `widgets/GridField.ts`, where `lookupAutofillPatch` lives; the verdict does not change. + + A host that renders `GridField` or `LineItemsField` itself and needs the grid in its first render calls `preloadGridField()` earlier and waits for it, as the record forms do. No metadata key, value or default changes. +- b7fe94a: docs(spec): the `SharedRecordIds` docblock describes the share arm after the switch — the capped list of granted ids is retired and the share arm carries the leaf (ADR-0155 step 6) + + Clause-②: no + Metadata-protocol: none + + Comment-only. The module docblock of `@objectstack/spec/data`'s `SharedRecordIds` no longer says the share arm binds a list of at most 5,000 granted ids today, nor that nothing writes the leaf yet: plugin-sharing's read and write scopes carry the leaf, which is the whole grant set at every count. No schema, export or runtime behaviour changes. +- bb89b2d: feat(app-shell): the record's favorite star sits beside its name, and the header's `⋯` no longer holds "Add to favorites" + + Clause-②: no + Metadata-protocol: none + + The record page draws its favorite star right of the record's name, always visible: hollow until the record is a favorite, filled once it is, one press to toggle with no confirm. The full page, a drawer or split-pane preview, and a phone's record page all draw it, from the same favorite the sidebar's Favorites section reads, so nothing about the stored favorites or that section changes. The header's `⋯` menu drops its "Add to favorites" / "Remove from favorites" entry, so the page keeps one favorites control. On a phone the star keeps a 44px tap target, as the copy-id button beside it does. A print page, which draws no record header and so no star, keeps the entry in its chrome row's `⋯`. The `showStar` refusal in `@objectstack/spec` (the retired `page:header` key) now says what stays true: the console draws the record's star from the host's favorites toggle, never from metadata, so the key switched nothing; it no longer names the `⋯` menu as the favorites entry. +- 7c9b22b: fix(core)!: Change Owner refuses an object of a disabled package with the data door's `404 OBJECT_PACKAGE_DISABLED` + + Clause-②: yes (narrowing) — `@objectstack/core` gains the root export `objectPackageDisabledError`, and all three Change Owner doors newly answer `404 OBJECT_PACKAGE_DISABLED` for an object of a disabled package, which they answered `200` before + Metadata-protocol: none + Skills-docs: none — no page under `skills/` teaches Change Owner; the refusal carries the data door's own sentence, which names the fix + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no stored row, registry key or authored value changes. What moves is the answer the three Change Owner doors give for an object whose owning package is disabled, an answer that returns to what it was the moment the package is re-enabled; there is nothing for a migration to rewrite and no tombstone. --> + + **BREAKING** for a caller that changes owners on a disabled package's object. + + - FROM: `POST /api/v1/data/:object/:id/change-owner` and `POST /api/v1/data/:object/change-owner` answered `200` for an object of a disabled package: the owner changed (and, when a cascade was named, its child rows), and when asked the notification was sent; `GET /api/v1/data/:object/change-owner/cascades` answered `200` with the object's cascade candidates. + - TO: all three doors answer `404 OBJECT_PACKAGE_DISABLED`, naming the object, in the data door's words; nothing is read, written or sent. The fix for a caller: re-enable the package. + + `POST /api/v1/data/:object/:id/change-owner` and `POST /api/v1/data/:object/change-owner` changed owners (and cascaded child rows), and sent owner-change notifications, on records of an object whose owning package was disabled, although every `/data` write refuses such an object. `changeRecordOwner` and `changeRecordsOwner` now ask the engine registry's `isObjectPackageDisabled` before the object's Change Owner switch is read, and refuse the whole call with the data door's own envelope (`code: 'OBJECT_PACKAGE_DISABLED'`, `status: 404`, the object name on `object`) before any user lookup, write or notification. Re-enabling the package restores the action; nothing is cached. `GET /api/v1/data/:object/change-owner/cascades` asks the same predicate in the same order (after the object resolves, before the switch), so the dialog lists nothing for such an object. + + The refusal's constructor, `objectPackageDisabledError`, now lives in `@objectstack/core` and is exported from it; `@objectstack/metadata-protocol` re-exports the same function under the same name, so its importers are unchanged and the code, status and sentence stay one. The error-code ledger (`@objectstack/spec`) records `OBJECT_PACKAGE_DISABLED` under `@objectstack/core` as a provenance row; the code itself, its status and its wire shape are unchanged. +- 543585d: feat(record-page): one field's change history, opened in place from the field or from a list cell's context menu + + Clause-②: yes (widening) — three new `detail.*` language-pack keys in every locale `@object-ui/i18n` ships (`fieldHistory`, `fieldHistoryNone`, `fieldHistoryNoneRecent`); new exports from `@object-ui/plugin-detail` (`FieldHistoryButton`, `FieldHistoryCard`, `FieldHistoryPopover`, `useFieldHistory`, `useFieldHistoryOffered`, `fieldHistoryOffered`, the constants `FIELD_HISTORY_PAGE_SIZE`, `FIELD_HISTORY_SCAN_BATCH` and `FIELD_HISTORY_SCAN_BATCHES_PER_LOAD`, and their types); an optional `column` member on the context `data-table` hands a host's `renderRowContextMenu`; `FieldChangeItem` draws no label for `label: ''`; nothing is removed or renamed + Metadata-protocol: none + + A reader can now see one field's past changes on one record without reading the whole activity stream. + + - On the record page, each field of the object has a history button beside its value, shown on hover and focus like the copy button. In a list, right-clicking a cell of a field the object declares adds 「Change history」 to the row's menu. Both open the same small card in place. Neither is offered on a field whose old → new values are not recorded (`fieldHistory: false` on the field, `enable.fieldHistory: false` on the object, a credential field, or a media or JSON-like type that does not opt in), judged by the same `resolveFieldHistory` the audit writer keeps values by. + - The card lists only that field's changes: who, when, and old → new in the reader's words (an option by its label, an empty side as the pack's word for empty), newest first, ten at a time with 「Load more」. + - A field never changed reads 「No changes recorded」 with who created the record and when. + - The changes are the record's activity rows the server already serves, narrowed to the reader: a change of a field the reader may not read is never sent. A field the reader may not read offers no entry point at all. The full audit log is not read. + - The rows are read by record, newest first, fifty at a time, keeping those that changed the field; a query naming the change columns is refused for a reader withheld any field of the object, so the field is never part of the query. Opening the card reads at most four batches, and each 「Load more」 at most four more; when they hold no change of the field and older rows remain, the card reads 「No changes in the recent activity」 and offers 「Load more」 to read on. + + `@objectstack/spec`: the authoring hint for the mistyped field key `tracked` now names what turns one field's change history on or off today (`fieldHistory: false`, `true` for a media or JSON field, `enable.fieldHistory: false` on the object), where it named `trackHistory: true`, which changes nothing for most field types. Wording only; `tracked` stays rejected. +- 7a5ae65: docs(spec): the `compactToolbar` describe says which toolbar is the default and that it draws no Refresh + + Clause-②: no + Metadata-protocol: none + + The `compactToolbar` description on a list view (and the view form's hint for it, which mirrors it) now says what a renderer does when the key is omitted and which toolbar `userActions.refresh` applies to: the compact toolbar (the View settings popover) is on by default, omitted or `true`; `false` draws the wide toolbar, one button per control. The compact toolbar draws no Refresh button, so `userActions.refresh` governs only the wide toolbar; pull-to-refresh is unaffected by either key. This matches the `userActions.refresh` description, which already scopes the toggle to the wide toolbar. + + Description text only: the key, its type, its optionality and the accepted values are unchanged, so every view that parsed before parses the same. The generated reference pages and the English metadata-forms help text carry the new sentence; the translated help texts keep their current wording. +- c45dd80: feat(setup): Setup → Configuration → Public forms lists every public form of the environment and switches it on or off + + Clause-②: yes (widening) — a new Setup navigation id `nav_public_forms`, a new component id `forms:public-forms`, new language-pack keys (the `publicFormsSetup` block and the nav label) in every shipped locale, and `anonymousFormIntakeWithdrawnIn` newly exported from `@objectstack/spec/ui` (moved from `@objectstack/metadata-core`, which re-exports the same binding) + Metadata-protocol: none + + A system administrator (`manage_platform_settings`, the capability the Setup entry asks) now has one page for the operations side of public forms. It lists every public form of the environment: its name, the object a submission creates a record of, its address, and whether it is on. Per row: switch it on or off, copy its address, or open it in a new tab. A form is designed (created, deleted, its fields and title changed) in Studio, not here. + + - **Which forms are listed.** A form view whose `sharing` opens it to anonymous intake once switched on (`allowAnonymous: true` and a `publicLink`), read by the same rule the anonymous form routes use (`anonymousFormIntakeCandidates`). A switched-off form stays listed and can be switched back on. A form with no public address or no anonymous access is an internal form and is not listed. The list is the effective one (`GET /meta/view`), so an installed app's form switched off in this environment lists as off. + - **Where a switch is saved.** The switch is the form's `sharing.enabled`, saved and published at once. A form of a writable package is saved in that package. A form of an installed (read-only) app is saved as this environment's customization, an override in the app's `.custom` package (ADR-0146), never an edit of the app's own package, so the app upgrades as before. Switching such a form back on removes the override when it held nothing but the switch, so the app's own form is served again; an override that also carries design changes keeps them, with the switch on. + - **A form its installed app ships switched off** (its address kept, `enabled` or `allowAnonymous` set to `false`, or `enabled` omitted, which the stack schema reads as `false`) stays closed whatever the environment saves: the anonymous routes treat the app's own document as a withdrawal that no override re-opens. The page judges this with the routes' own function, `anonymousFormIntakeWithdrawnIn`, now declared in `@objectstack/spec/ui` beside the rest of the intake rule; `@objectstack/metadata-core` re-exports the same binding, so the server's import is unchanged. The page lists such a form as "Off (switched off by its app)" with its switch disabled, also when an override already switches it on, and a switch-on writes nothing and says the app ships it switched off. A form whose app's document cannot be read is shown as status unknown, never as on. + - **After an app upgrade**, switching back on an override taken from an earlier version restores the app's own form when the form is otherwise unchanged. When it is not, the override is kept with the switch on and the page says the form stays on the app's earlier version, which Studio's "Restore package original" undoes. + - A switch over a draft already pending where it would save writes nothing and says so: that draft is its saver's and is never published on their behalf. + - A switch writes the form's metadata, which the server lets only a `manage_metadata` holder do. Without it the page still lists the forms but disables the switches and says why. A refused switch, and a list read that fails, are told in business words, never the server's raw message. + - A switched-off form keeps answering as it does today: `404 FORM_NOT_FOUND` at its address. No route, error code or stored key is added. + + New Setup navigation entry `nav_public_forms` in `group_configuration` (label "Public Forms", in every shipped locale) opening the component `forms:public-forms`; the Setup navigation now carries 35 entries. New locale block `publicFormsSetup` in every console locale. Not shown: when a form last took a submission, since a submission is an ordinary record of the form's object and records no form. +- 48c5484: Clause-②: no + Metadata-protocol: none + + The report authoring form now reads in business terms: data source, grouping, metric. It no longer uses the schema's own vocabulary (dataset, dimension, measure, "render-time", "ANDed"), and its English matches what the Chinese report panel says. Every section description and field hint the report panel draws was reworded. The `dateRange` and `exportOptions` composites now declare their children as form rows (Date Field, Default Period, Allow Custom Range; Formats, Include Headers, File Name), each with its own hint, so the panel no longer shows the schema descriptions for them. The Description row gained its own hint. The joined-block and sort row titles now read Data Source, Group By, Group Columns By, Metrics, Sort Order and Sort By, in the form and in the item schema `title` together. + + Only prose and form layout moved. No key, accepted value or section title changed, and nothing an author can write or validate is different. The platform metadata-form bundles are regenerated, with zh-CN, ja-JP and es-ES translations for the 13 new rows, and the console's zh-CN overlay carries the new rows too. +- cb2d6aa: docs(spec): `navigation.size` says what `'auto'` really does + + Clause-②: no + Metadata-protocol: none + + The TSDoc and `.describe()` text of a view's `navigation.size` said that the default `'auto'` makes the renderer derive the drawer size from the object's field count and the viewport, so an author writes nothing. No renderer does that. `'auto'` is the host's fixed default width, the same for every object: the console's record side panel opens at `min(92vw, 460px)`, and a page block's drawer at that block's own default. The text now says so, gives the pixel cap of each explicit bucket (sm 480, md 720, lg 960, xl 1200, full 1600, always clamped to the viewport), says that a width the reader drags wins, and says where the key has no effect (a record that opens as a page, a phone-width screen). It no longer calls the buckets aligned with `FormView.modalSize`, whose buckets have other names and other widths. + + Prose only: the key, its values and its default are unchanged. The view form's help text for the key, the English metadata-form bundle `@objectstack/platform-objects` serves it from, and the generated reference pages carry the same text. +- d463c46: fix(comments): unreact, resolve and own-comment delete work on a kernel with no `http.server` (a hosted tenant kernel) instead of answering 404 + + Clause-②: yes (widening) + Metadata-protocol: none + + The three comment doors, `DELETE /api/v1/comments/reactions/:id`, `PUT /api/v1/comments/:id/resolution` and `DELETE /api/v1/comments/:id`, were mounted by `AuditPlugin` only on the kernel's `http.server`. A hosted tenant kernel owns no socket and registers no `http.server`, so the host's `createHonoApp` catch-all handed each of them to the runtime dispatcher, which had no domain for them and answered `404 ROUTE_NOT_FOUND`, and removing a reaction, resolving or reopening a thread and deleting your own comment failed there. + + - `@objectstack/spec/contracts` declares `ICommentDoorsService` with one optional, transport-neutral member, `handleCommentDoor(request: Request): Promise<Response>`, and types the `comments` service slot with it (`ServiceSlotContracts.comments`). A service without the member still satisfies the contract. + - `AuditPlugin` registers the `comments` service with that member. It runs the same registrars over the same dependencies the `http.server` mount runs, on a private route table that never listens, so every answer is the mount's own. The `http.server` mount is unchanged, and no path is mounted twice. `@objectstack/plugin-audit` now depends on `@objectstack/plugin-hono-server` at runtime (the private table is a `HonoHttpServer`), and the `comments` service name is now taken: a composition that registers its own `comments` service alongside `AuditPlugin` fails to boot with a duplicate-service error. + - The runtime dispatcher gains a `/comments` domain that claims exactly the three method and path shapes and forwards the request, body unread, to the request kernel's `comments` service. Every other `/comments` shape keeps the dispatcher's `404 ROUTE_NOT_FOUND`. With no `comments` service, or one without `handleCommentDoor`, the doors answer `501 NOT_IMPLEMENTED` naming `@objectstack/plugin-audit`. The doors stay behind the dispatcher's authentication and project-membership gates. +- 7501d0c: feat(studio): the Field History setting offers Default, On and Off, and Default says what it resolves to + + Clause-②: yes (widening) + Metadata-protocol: none + + The Field History setting on the field form, on each row of the object form's field list, and in the object's capabilities is now a three-way choice instead of a switch. Default leaves the setting unset, so the field (or object) follows the platform, and it names what that means for the row: "Default (On)" for most field types, "Default (Off)" for a media or JSON field unless the field opts in with Track History, and for a credential field always. On and Off write `true` and `false` as before. A setting turned off can now be returned to Default, which removes the key. + + `@objectstack/spec/data` exports `resolveFieldHistory(field, object)` and `FIELD_HISTORY_DEFAULT_OFF_TYPES`: whether a changed field's old → new values show on the activity timeline, and the types that are off by default. The activity writer in `@objectstack/plugin-audit` now asks this predicate instead of its own copy of the type list, so the default the form shows and what the writer keeps cannot disagree. Behaviour of the writer is unchanged. +- cbc06ff: fix(hosted): deleting a personal view and removing or renaming an attachment work on a kernel with no `http.server` (a hosted tenant kernel) instead of answering 404 + + Clause-②: yes (widening) + Metadata-protocol: none + + `DELETE /api/v1/personal-views/:id` (plugin-auth) and `DELETE` / `PATCH /api/v1/attachments/:id` (service-storage) were mounted only on the kernel's `http.server`. A hosted tenant kernel owns no socket and registers no `http.server` (and runs `AuthPlugin` with `registerRoutes: false`), so the host's `createHonoApp` catch-all handed each request to the runtime dispatcher, which had no domain for them and answered `404 ROUTE_NOT_FOUND`: a member could not delete a personal view, or remove or rename an attachment, there. + + - `@objectstack/spec/contracts` declares `IPersonalViewDoorsService` (one optional, transport-neutral member, `handlePersonalViewDoor(request: Request): Promise<Response>`) and types the new `personal-views` service slot with it, and declares `IAttachmentDoorsService` (`handleAttachmentDoor`), which the existing `file-attachments` service implements beside `IFileAttachmentService`. A service without the member still satisfies either contract. + - `AuthPlugin` registers the `personal-views` service in `init()`, whatever `registerRoutes` says, and `StorageServicePlugin`'s `file-attachments` service gains `handleAttachmentDoor`. Each member runs the same registration over the same dependencies the `http.server` mount runs, on a private route table that never listens, so every answer is the mount's own. The `http.server` mounts are unchanged, and no path is mounted twice. The `personal-views` service name is now taken: a composition that registers its own `personal-views` service alongside `AuthPlugin` fails to boot with a duplicate-service error. `@objectstack/plugin-auth` and `@objectstack/service-storage` now depend on `@objectstack/plugin-hono-server` at runtime (the private table is a `HonoHttpServer`; plugin-auth previously listed it as a dev dependency only). + - `@objectstack/plugin-hono-server` exports `createDoorTableMember(routes, mount)`, the private never-listening table both members are built on, and `matchDoorTableRoute`. + - The runtime dispatcher gains `/personal-views` and `/attachments` domains that claim exactly the door shapes and forward the request, body unread, to the REQUEST kernel's member (never the host kernel's scoped fallback). Every other shape under those prefixes keeps the dispatcher's `404 ROUTE_NOT_FOUND`. With no slot, or one without the member, the doors answer `501 NOT_IMPLEMENTED` naming the package that registers it. The doors stay behind the dispatcher's authentication and project-membership gates. +- d24e4ab: feat: the controlled-by-parent master refusal carries a machine-readable code, and the Studio settings tab words it for the author in en and zh + + Clause-②: yes + Metadata-protocol: none + + `@objectstack/spec` — the refusal of a `sharingModel: 'controlled_by_parent'` object that does not derive exactly one writable master now stamps its parse issue with `params: { code: 'CONTROLLED_BY_PARENT_MASTER_INVALID', shape }`, at both raise sites: `ObjectSchema`'s refinement and `defineStack`'s extension-merge gate. `shape` is the refusal's existing `ControlledByParentMasterShape` (`several-required-masters`, `several-masters`, `master-not-required`, `required-lookup-only`, `no-master`, `master-not-writable`). The code is exported as `CONTROLLED_BY_PARENT_MASTER_INVALID` from `@objectstack/spec/data`, with the `ControlledByParentMasterIssueParams` type, and is registered in `ERROR_CODE_LEDGER` under `@objectstack/spec`. Which objects are refused, and where, is unchanged. + + The refusal's English message no longer cites an ADR section: each of its three arms read `ADR-0055 §1: since @objectstack/spec 18, …` and now reads `Since @objectstack/spec 18, …`. The rest of each message, including the fix it prescribes, is unchanged. A script that matched `ADR-0055 §1:` in this message should match `params.code` on the zod issue instead, where it can see the issue: an `ObjectSchema` / `ObjectStackDefinitionSchema` `safeParse`, or the `issues` of `defineStack`'s `STACK_SCHEMA_INVALID` refusal. The metadata save door's `422 INVALID_METADATA` does not carry the code: its `issues[]` entries keep `path`, `message` and zod's issue code (`custom`) only, so a reader there still has only the message. + + `@object-ui/app-shell` / `@object-ui/i18n` — the Studio object settings tab no longer shows the spec's English message verbatim when "Follows its parent record" cannot be saved. It reads the code and shape off the save door's own parse and shows one sentence per shape from the `studio` namespace (`engine.studio.settings.cbpRefusal*`, en and zh), naming the fields to change by their labels. A refusal without the code, or with a shape that has no sentence, still shows the spec's message. +- 08f4bad: fix(metadata-protocol): a tab a code package places, or a field it adds, is saved in its source text from a translated read + + Clause-②: no + Metadata-protocol: none + + The `/meta` read of an object serves a related-list tab that another installed code package places into the object's `relatedLists` (its `place`), and a field such a package adds, translated for the caller's language. When the object has a stored customization row saved before that package was installed, the row carries no copy of either. A save of that translated read in a language other than the source (the whole body sent back through `PUT /meta/object/NAME`) then had nothing to compare them with, so the translation was stored as the tab title or the field label, and every other language read it from then on. + + The save door now compares them with the packaged definition as a last resort: a tab whose `list` the owning package does not name, or a field the owning package does not declare, that the stored row does not declare at all, is compared with what the packaged definition carries, and its translation is stored as that source text. The save answer names each such slot in `advisories` (`translated-label-echo`), as it does for every other restored label. A title or label the stored row does declare is never compared with the packaged definition, so a customer's own rename keeps its text, even when it equals some language's catalog entry. A tab or field the owning package declares and the stored row dropped is left as the body carries it. + + Console and Studio editors already save the stored document rather than the translated read, so they never reached this; a client that saved the translated read back did. + + `TranslateDocumentOptions.packagedBase` now says that an object's packaged definition carries the tabs a code package places, and that a placement is judged on the owning package there but on the customization row by the served object: where only a customization row declares `relatedLists`, the placed tab has no packaged counterpart and the deployment catalog does not translate its title. +- 8aecf6d: feat(mcp,service-knowledge): the MCP door serves `search_knowledge`, and a skill MCP withholds is no longer withheld in silence + + Clause-②: yes + Metadata-protocol: none + + **`search_knowledge` over MCP.** An app that mounts the knowledge service (`KnowledgeServicePlugin`) now has its knowledge sources searchable from any MCP client: `tools/list` lists `search_knowledge` wherever the kernel holds a `knowledge` service and the connection's grant reaches the read family (`data:read`, or an API key or session, which carry no OAuth grant). Before, no MCP connection served a knowledge tool, so a BYO-AI client could not reach an app's knowledge base at all, and every skill whose `tools` named `search_knowledge` was dropped from `prompts/list`. + + - **One definition, one executor (ADR-0149 D2).** `@objectstack/service-knowledge` exports the tool's `AIToolDefinition` (`getKnowledgeToolDefinitions`) and its executor (`createKnowledgeTools`, also `KnowledgeService.knowledgeTools()`). The MCP door registers the definition as the service hands it over, on HTTP and on stdio, and holds no copy of its description or argument schema. Arguments: `query` (required), `sourceIds` (at least one id; omit it to search every source, and an empty list is refused `VALIDATION_ERROR` rather than answered with no passage), `topK` (1 to 20, default 5); any other key is refused before the search runs. + - **As the caller.** Each call runs with the caller's execution context, and the knowledge service re-checks every passage indexed from a record against the caller's row-level security; on an OAuth connection that is the delegating person's own reach. + - **Only `aiExposed` sources.** The tool searches only the sources whose `aiExposed` is not `false`, and refuses a `sourceIds` entry naming any other source with `NOT_FOUND` and the sentence an unknown id gets, so an agent never learns a withheld source exists. `IKnowledgeService.search` itself is unchanged: it still searches a source its caller names explicitly, because it also serves platform callers that are not agents. + - `MCP_DOOR_TOOL_NAMES` (`@objectstack/spec/system`) lists `search_knowledge`, so `os lint` resolves it for a skill offered over MCP, as it already did through the platform registry. + + **A withheld skill is said, twice.** + + - **Authoring time.** The `ai-skill-tool-unresolved` rule gains a verdict for a skill MCP would offer as a prompt (`instructions`, not `mcpPrompt: false`, not `active: false`) whose `tools` names one of the `ask` product's data tools no MCP connection serves (`aggregate_data`, `query_data`, `visualize_data`): the name resolves, but MCP withholds the skill from every `prompts/list`, and the warning names the tool. Fix: bind tools both doors serve, or set `mcpPrompt: false` on a skill written for the in-product agents. + - **Runtime.** On the HTTP door, each `prompts/list` that withholds a skill logs one `debug` line naming the skill and each bound tool the connection does not serve. +- 8ddadc1: docs(spec): the `IApprovalService.handleActionPage` contract names the reason a reject link's POST now carries + + Clause-②: no + Metadata-protocol: none + + Documentation only; no type, schema or export changes. The docblock shipped in `@objectstack/spec`'s contract types now matches what the ADR-0043 action page does since the reject-reason change in `@objectstack/plugin-approvals`: + + - The confirm page for a reject link carries a required reason field, and the `POST` reads it from the form's `comment` field beside `token` (the last of each when a field repeats). + - A reject whose `comment` is missing, blank or not a string is answered the same confirm page again with status `400` (redemption outcome `reason_required`): nothing is decided and the token is not consumed. A dead link is still told on its result page with `200`. + - An approve link reads no `comment` and records the fixed comment "Via action link". +- a03bc4e: docs(skills): the automation skill, the schedule trigger README and the start-node schedule refusals spell only flow shapes the publish checks accept + + Clause-②: no + Metadata-protocol: none + + Ten flow checks of `os validate` and publish (`flow-schedule-timezone-missing`, `flow-condition-option-label`, `flow-node-write-unknown-option`, `flow-subflow-unknown` and the rest) landed without the text that teaches flows. Three of them are warnings and refuse nothing: `flow-schedule-timezone-missing`, `flow-subflow-unknown` (run by the CLI only) and `flow-create-update-pair`. Wording only; no schema, rule or reader changes. + + - `@objectstack/spec`: the three refusals of a start node's `config.schedule` (an empty string, a typed schedule the published schema refuses, a value the readers read nothing from) now offer `{ type: 'cron', expression: '0 8 * * *', timezone: 'UTC' }` as the cron to write. They no longer offer a bare cron string or a cron object with no `timezone`, which `os validate` warns on. The typed-alias hint names `{ type: 'cron', expression: '…', timezone: 'UTC' }`. What is refused is unchanged. + - `objectstack-automation` skill: recipe 1's nightly cron states `timezone: 'UTC'`; the schedule example's comment says a cron with no `timezone` (a bare string) runs in UTC and warns, where it said a bare cron string also works; the `subflow` row says `os validate` warns `flow-subflow-unknown` on any name the stack does not hold, a correct call to another package's flow included, where it said `os validate` passes; the select-label rule says a start condition or a `fields` write that uses an option's label is refused at publish where the options are inline, where it said the flow stages clean, and says a label in a `filter` or an edge condition is never checked and silently matches nothing, where it said a `filter` fails the run. Eval 1's expected answer states the cron's `timezone`, and eval 20's states that warning. No skill file passes its token ceiling: `SKILL.md` gains one line, paid for by shorter wording and shorter table separator rows in the same file, and two node labels in recipe 1 are shortened to pay for the `timezone` key. + - `@objectstack/trigger-schedule` README: the time-relative example's cron states `timezone: 'UTC'`, and the schedule-shapes table is followed by the UTC reading and the warning. +- 13f5466: Clause-②: no + Metadata-protocol: none + + The dashboard settings panel's hints now read in business terms. Nine field hints of the dashboard authoring form (Name, Label, Columns, Gap, Refresh Interval Seconds, Header, Widgets, Date Range, Global Filters) no longer use developer vocabulary such as "snake_case", "in steps of 0.25rem (4 = 1rem)" or "config". Each one now says what the builder decides. The Columns and Gap hints also describe what an empty value does, in line with the dashboard renderer. + + Only hint text moved. No key, accepted value, label or section title changed, and nothing an author can write or validate is different. The platform metadata-form bundles are regenerated, and the nine hints are re-translated in all ten translated locales (zh-CN, zh-Hant, ja-JP, ko, es-ES, fr, de, pt-BR, ru, ar). The console's own zh-CN overlay for the dashboard panel now uses the same platform wording for these nine hints. +- 00aa574: Clause-②: no + Metadata-protocol: none + + The report authoring form's Default Period row (Period & export, then Date Range) now names each choice: Today, This month, Last 30 days, Custom… and so on, instead of the stored preset (`this_month`). The options cover the shared preset table one for one, so a preset added later is offered with a name the day it lands. In the Studio report inspector, a Chinese session reads the names from the console's locale packs, the same words the report page's period chip shows (本月, 近 30 天, 自定义…). + + Only the form's option names moved. No key, accepted value or default changed, and nothing an author can write or validate is different. +- d95d34f: Clause-②: no + Metadata-protocol: none + + The report authoring form now names its top-level data rows with the same words as its joined-blocks grid: Data Source, Metrics, Group By and Group Columns By, where they read Dataset, Values, Rows and Columns. One form no longer calls the same setting by two names. The Metrics hint no longer says a metric is only a total or a count; it can be any measure of the data source, such as an average or a ratio. The File Name hint now says what the download does: the prefix takes the place of the report's label, and an empty prefix names the file after the label, or after the report's name when it has no label. + + Only prose moved. No key, accepted value, default or section title changed. The platform metadata-form bundles are regenerated, the File Name hint is re-translated in zh-CN, ja-JP and es-ES, and the console's zh-CN overlay now follows the current English for the Date Range and Runtime Filter hints. +- 76eea0f: fix(hosted): printing a record works on a kernel with no `http.server` (a hosted tenant kernel), and an api action whose service is absent shows a readable, localized line instead of the route text + + Clause-②: yes (widening) + Metadata-protocol: none + + `POST /api/v1/print/records` (service-print) was mounted only on the kernel's `http.server`. A hosted tenant kernel owns no socket and registers no `http.server`, so the host's `createHonoApp` catch-all, and the `/actions` door's in-process forward of a `type: 'api'` action, handed the request to the runtime dispatcher, which had no domain for it and answered `404 ROUTE_NOT_FOUND`. A hosted HotCRM's Print Quote showed its user `Route Not Found: /print/records`. + + - `@objectstack/spec/contracts` declares `IPrintDoorService` (one optional, transport-neutral member, `handlePrintDoor(request: Request): Promise<Response>`). A service without the member still satisfies it. + - `PrintServicePlugin`'s `print` service gains `handlePrintDoor`, which runs the same registration the `http.server` mount runs, on a private route table that never listens (`createDoorTableMember`), so every answer is the mount's own. The `http.server` mount is unchanged, and no path is mounted twice. `@objectstack/service-print` now depends on `@objectstack/plugin-hono-server` at runtime. + - The runtime dispatcher gains a `/print` domain that claims exactly `POST /print/records` and forwards the request, body unread, to the REQUEST kernel's member (never the host kernel's scoped fallback). Every other shape under `/print` keeps the dispatcher's `404 ROUTE_NOT_FOUND`. With no `print` slot, or one without the member, the door answers `501 NOT_IMPLEMENTED` naming `@objectstack/service-print`. The door stays behind the dispatcher's authentication and project-membership gates. + - The console shows a `type: 'api'` action's `501 NOT_IMPLEMENTED` refusal (the service behind its target is not composed in this environment) as the new `actions.serviceUnavailable` line in the user's language (zh-CN: 「此操作所需的服务在当前环境未启用,请联系管理员。」) instead of the server's operator text. A producer-marked `userMessage` still wins. A `503 SERVICE_UNAVAILABLE` (a transient outage) and a route miss (`ROUTE_NOT_FOUND`, `ENDPOINT_NOT_FOUND`, for example a misspelled `target`) keep the server's own sentence. +- 84b1e0c: feat(spec): Studio list columns for 27 metadata types, served in the reader's language on both doors + + Clause-②: yes (widening: `/meta/types` serves `list` on 26 more entries, and the runtime dispatcher's listing is now translated) + Metadata-protocol: none + + `METADATA_LIST_REGISTRY` now declares the Studio list columns of 27 metadata types: the first batch (`hook`, `flow`, `job`, `api`, `action`, `report`, `dataset`, `email_template`, `assignment_rule`, `sharing_rule`, `queue`, `agent`, `tool`, `skill`, `doc`, `seed`, `mapping`, `picklist`, `translation`) and the eight types the console used to declare itself (`object`, `field`, `view`, `page`, `dashboard`, `permission`, `position`, `book`). Every column names a key the type's schema declares, checked by the reconciliation test. Nothing an author writes changes: the registry is the spec's own constant. + + - **Headers in every shipped language.** The 52 headers no form field already labels get their own `metadataForms.<type>.fields.<path>.label` leaf in the 11 platform bundles (`@objectstack/platform-objects`), translated in all ten non-English locales. A column the form labels reads the form's words. + - **Both doors translate the listing.** The runtime dispatcher's `GET /meta` and `GET /meta/types` now answer the types listing in the request's language, as `RestServer`'s `GET /meta` does: type labels, form labels, list headers and schema titles. Both run one function, `translateMetaTypesListing` (`@objectstack/rest`). Before this, a host served through the dispatcher answered all of it in English. + - **The console's own declarations move into the spec.** Studio's lists of objects, fields, views, pages, dashboards, permission sets, positions and books read the served columns. The console keeps only what the schema cannot say: a field row's server-stamped `object`, a position's holder count and granted permission sets, a view's derived display type, a book's audience and a sharing rule's `sharedWith` rendering. The console declared `object`'s columns twice, in two registrations that disagreed (the later one won); both declarations are gone, so one remains, in the spec. A page's former `route` column named no `PageSchema` key and is dropped. What an admin sees in Studio (`@object-ui/app-shell`): the metadata lists of all 27 types show the spec's columns, in the declared order, with headers in the reader's language. The moved lists lose the console's fixed column widths (the view list's display type and the book list's audience keep theirs), the Fields list reads name, type, label, then object, the sharing-rule list's header reads "Access Level" where it read "Access", and the Pages list shows type and description in place of the dropped route column. A summary cell reads an expression member as its source, so the Jobs list's schedule shows a cron job's expression (`cron · 0 2 * * * · UTC`), not only its kind and time zone. +- 01967c3: docs(spec): the `userActions.transfer` description names both things the switch decides, the Change Owner action and the offboarding hand-over + + Clause-②: no + Metadata-protocol: none + + The description of an object's Change Owner switch (`userActions.transfer`), in the published JSON schema and the generated reference docs, said the switch gates only the Change Owner action. On an object eligible for Change Owner it also decides whether the offboarding hand-over of a user's assigned work moves the object's `owner_id`: where an eligible object's switch resolves off, those records are counted as held and keep their owner. An `owner_id` the platform does not provide (an object the platform gives no owner column, declaring its own `owner_id` user field) is handed over like any other user field. The hand-over reads only the resolved on or off, not the per-record `visibleWhen`/`disabledWhen` predicates. The description now says so. No shape, accepted value or default changes. +- 8b1841f: feat(platform-objects): built-in tasks and notes, `sys_task` and `sys_note`, in every environment + + Clause-②: yes (widening) + Metadata-protocol: none + + `PlatformObjectsPlugin` now registers two ordinary, customizable objects on their own manifest + (`com.objectstack.platform-objects.work`), so any application can put tasks and notes in its menu + without declaring its own: + + - `sys_task` — title (required), description (rich text), status (To Do / In Progress / Done, + default To Do), due time, assignee (a user, defaulting to the creator) and a read-only completion + time the platform writes when the status becomes Done and clears when it leaves Done. + - `sys_note` — an optional title and a rich-text body; lists show a read-only heading that is the + title, or the body's first line when the title is empty. + + Each keeps its own sharing: `sharingModel: 'private'` over a declared `owner_id` (the creator), and a + task is also shared, with edit access, with its assignee through the declared `sys_task_assignee` + sharing rule. Neither links to, grants access to, or derives access from any other record. Default + views: tasks Assigned to Me (open, by due time), Created by Me and All Tasks (a board by status); + notes My Notes and All Notes. Attachments are on for both. + + Both names join `PLATFORM_OBJECTS_BY_PACKAGE['platform-objects']` in `@objectstack/spec`, so + validation treats them as platform-provided: an app's navigation entry reaches them with + `requiresObject` beside `objectName` (`{ type: 'object', objectName: 'sys_task', requiresObject: + 'sys_task' }`), which `defineStack` accepts and the console hides on a kernel without the object. + Their labels ship in the platform's eleven locales (zh-CN 任务 / 备忘). + + `@objectstack/plugin-security`: the member baseline `member_default` grants `sys_task` and + `sys_note` read, create and edit, with no delete (maintainer ruling 7131539862, option A). It opens + the objects only: which rows a member sees stays with each object's private sharing, so a task is + read by its creator and its assignee and a note by its creator. + + `@objectstack/cli`: the organization-ownership inventory (ADR-0131 D10) gives `sys_task` and + `sys_note` the `attribution` fate, so `os migrate organization-ownership` and the `os dev` upgrade + plan databases that hold them instead of refusing an object with no fate. + + Clause-② reads `yes (widening)`: `defineStack` now accepts a top-level action whose `objectName` is + `sys_task` or `sys_note`, and the public surface grows. `Metadata-protocol: none` follows the + `sys_unit` roster-addition precedent: no metadata key, type or schema value is added, and a + reference that already parsed now resolves. +- 422df61: Clause-②: no + Metadata-protocol: none + + An import row refused because another row of the same file carries the same match key (`DUPLICATE_MATCH_KEY`) now reads in the importing user's language, like the cell errors beside it, and names the key by its field label (`Email`, `Supplier + Type`) instead of its API name; the row numbers stay in the sentence. The sentence is the new `import_duplicate_match_key` entry of the built-in validation message catalog (`BUILTIN_VALIDATION_MESSAGES`, in all four platform locales), so a deployment can override it under `validation.field.import_duplicate_match_key`. The row keeps its shape (`code`, `error`); only the `error` text changes. An English deployment reads the same sentence as before, with the field label where the API name was. + + The console import wizard shows a row refused by an object-level validation rule (a rule that names no field, reported on the `_record` field) as its message alone, without a `_record:` prefix, in the dry-run findings, on the result screen and in the failed-rows download. A field-level error keeps its `Label: message` form; the failed-rows download now prefixes it with the field label too, where it used the API name. +- 0439a04: Clause-②: no + Metadata-protocol: none + + Two more import row refusals are now sentences of the built-in validation message catalog (`BUILTIN_VALIDATION_MESSAGES`, all four platform locales) and name fields by their label instead of their API name, the same way the duplicate-match-key row does. Each reads in the caller's locale when the caller carries one and in English otherwise, and a deployment override reaches it only where the caller passes a translator. A row blank on every ordered key set (`BLANK_MATCH_KEY`) reads the new `import_blank_match_key` entry, naming each key set by label (`Email; Phone + Company`); its caller is the import endpoint (`POST /data/:object/import` with ordered key sets), which passes the request locale and the deployment's translator, so it reads in the request language and can be overridden under `validation.field.import_blank_match_key`. A run whose match key names a field holding a list or a structured value fails every row with the new `import_multi_value_match_key` entry, naming those fields by label; its only callers are the ones that reach the import runner without the import door (the connector and datasource pulls), which pass no request locale and no translator, so there it reads in English and `validation.field.import_multi_value_match_key` is not consulted. A deployment override of any of the three match-key sentences can name the API names as `{{field}}`. The rows keep their shape and codes (`BLANK_MATCH_KEY`, `VALIDATION_ERROR`), and the multi-value row's `field` still carries the API name; only the `error` text changes. The import door's own `400 INVALID_REQUEST` refusal of such a key is unchanged. +- f92d271: fix(plugin-approvals): the batch lock read answers a line of a held master as locked, as the single read does + + Clause-②: no + Metadata-protocol: none + + `getRecordLocks` (`POST /api/v1/approvals/records/:object/locks`) answered `locked: false` for a master-detail line whose master is held by a locking approval, while `getRecordLock` answered `locked: true` and the line's write was refused `RECORD_LOCKED`. The batch read now asks the detail-row lock too, through its new batch form `detailRowsHeldByLockingApproval`: one read of the rows' master-detail columns plus one lookup per master-detail edge, whatever the page size, never one read per row. The answer's shape is unchanged (`{ locked }` or `null`); a list page that reads the batch door now stops offering an editor on such a line. The `getRecordLock` / `getRecordLocks` contract docblocks in `@objectstack/spec` now say a line of a held master answers `true`. +- 3d4f423: feat(embedder-openai): an over-limit input is refused, not truncated — known-model input limits and one shared token estimate + + Clause-②: yes + Metadata-protocol: none + + When a limit applies (a model in the known-model table, or `maxInputTokens`), `OpenAIEmbedder.embed()` now measures every input before it sends anything. When one input is over the model's per-input token limit, the call fails with an error naming the input's 0-based index, the model, the estimate and the limit; nothing is sent, so the provider never silently truncates the text and drops its tail from the index. An input at or under the limit is sent unchanged. + + - The known-model table gains each model's provider-documented per-input limit: OpenAI `text-embedding-3-small` / `-3-large` / `ada-002` 8192, DashScope `text-embedding-v3` 8192 and `-v2` / `-v1` 2048, BigModel `embedding-3` 3072 and `embedding-2` 512, SiliconFlow `BAAI/bge-m3` 8192 and `BAAI/bge-large-zh-v1.5` / `-en-v1.5` 512. + - New option `OpenAIEmbedderOptions.maxInputTokens` (a positive integer) overrides the table. + - A model that is not in the table, with no `maxInputTokens`, has no limit and warns once per embedder instance. That warning is the same single warning an unknown model already gave for its batch size: one instance warns at most once, naming every option it is missing. + + `@objectstack/spec/shared` exports `estimateTokens(text)`, its `TOKEN_ESTIMATE_MARGIN` (1.1) and `ASCII_RUN_CHARS_PER_TOKEN` (`{ letters: 4, digits: 3, mixed: 2 }`): the one conservative token estimate the embedder uses, for an app that sizes its own chunks to call too. CJK characters and full-width punctuation count 1.5 each, a run of ASCII letters only ceil(length / 4), of digits only ceil(length / 3), and of letters and digits mixed ceil(length / 2), any other punctuation mark or character 1, whitespace 0; the sum is multiplied by 1.1 and rounded up. + + The estimate is conservative: on Chinese text it runs about 1.4 times the real token count. It is at or above OpenAI `cl100k` counts on Chinese, mixed Chinese/English and English-heavy text (long words, numbers, URLs, code); text made mostly of random hex or base64 (UUIDs, hashes) can estimate below its real count. + + What to do: nothing for a known model. A call that used to send a text over the model's limit — which the provider truncated — now fails instead. Because the estimate errs high, a text whose real count is under the limit can now be refused too, although it was never truncated. For example, on a 512-token model such as `BAAI/bge-large-zh-v1.5`, whose tokenizer counts about one token per Chinese character, a Chinese text of about 311 to 510 characters fits the model but estimates over 512 (311 characters estimate 514), so it is now refused; 310 characters estimate 512 and are sent. In both cases split the text smaller, or set `maxInputTokens` yourself if you know the model's real count fits. For a model outside the table, set `maxInputTokens` to your provider's documented limit, which also silences the warning; an app that set only `maxBatchSize` for such a model now sees the warning again until it sets `maxInputTokens` too. +- fd462c5: feat(plugin-approvals): the record lock reads say whether a row is held by its own approval or by its master's + + Clause-②: yes (widening: both lock doors' published entry gains a field) + Metadata-protocol: none + + Both approval lock reads (`IApprovalService.getRecordLock` and `getRecordLocks`, and their REST doors `GET /api/v1/approvals/records/:object/:recordId/lock` and `POST /api/v1/approvals/records/:object/locks`) now answer a locked record with `lockSource`, which approval holds it: + + - `'record'`: a pending request on the record itself, from a node whose `lockRecord` is not `false`. Deleting the record still goes through and cancels the request. + - `'master'`: the record is a `master_detail` line of a record so held. The server refuses the line's insert, update and delete with `409 RECORD_LOCKED`. + + When both hold (a line with a pending request of its own, under a held master), the answer is `'master'`, because that is the delete the server refuses. An unlocked record still answers `{ locked: false }`, with no `lockSource`, and `null` (`404 RECORD_NOT_FOUND` at the single door, `locked: null` in the batch door) still means unreadable or missing, never told apart. No request id, node, approvers or `pending` flag is served. A list can now hide Delete on a line whose master is under approval instead of offering a delete the server refuses. + + The `IApprovalService` return types gain the optional `lockSource?: 'record' | 'master'`, so an implementation may omit it on a locked answer and still satisfies the contract; the REST doors then serve `{ locked: true }` without a kind. + + Which rows count as readable is unchanged at both doors. The two doors keep different readability anchors on purpose: the single door counts any returned row, the batch door only the row whose id is the asked id; aligning them would narrow a published answer (seat ruling 7152650156 on #37151). So an id the database matches only under another spelling (a different letter case, `07` for a numeric `7`) answers `null` in the batch door. The single-record door counts the row it finds as readable and judges it, as before: a line of a held master answers `'master'`, because that check reads the row found, but a record's own request is looked up by the id as asked, so a record held by its own request may answer `{ locked: false }` under another spelling. A client asking with the ids the server gave it gets the same answer from both doors. + + `@objectstack/client`: `client.approvals.getRecordLock` and `getRecordLocks` type the answer with the optional `lockSource?: 'record' | 'master'`. +- d15e439: Clause-②: no + Metadata-protocol: none + + The import row refusal for a row whose match key finds more than one stored record (`AMBIGUOUS_MATCH`) is now a sentence of the built-in validation message catalog (`BUILTIN_VALIDATION_MESSAGES`, all four platform locales), the new `import_ambiguous_match` entry, the same way the duplicate-key, blank-key and multi-value-key rows are. It names the key set the row was matched by its field labels instead of the old English `matchFields matched more than one <object> record`, which named the API parameter and the object's API name. It reads in the caller's locale when the caller carries one and in English otherwise, and a deployment override (`validation.field.import_ambiguous_match`, which can also print the API names as `{{field}}`) reaches it only where the caller passes a translator: the import endpoint (`POST /data/:object/import` and the async import job) passes both the request locale and the deployment's translator, while the connector and datasource pulls pass neither and so read English. The row keeps its shape and its code; only the `error` text changes. +- 6831e04: feat(ai): `get_record_context` caps a body outline's entries and states the cut + + Clause-②: yes (widening) + Metadata-protocol: none + + A long body comes back as an outline of its headings. That outline had no cap, so a long body that is mostly headings made an outline answer as big as the body. The outline is now bounded whatever the body holds. + + - **`RECORD_CONTEXT_OUTLINE_MAX_ENTRIES` (80), new export of `@objectstack/service-record-context`.** An outline lists at most 80 headings, and its listing, serialized, stays within `RECORD_CONTEXT_BODY_MAX_CHARS` (8000). When a body has more, the outline keeps the shallowest levels first and lists them in body order, so a listed section's text holds the headings left out under it. Every heading's `anchor` still reads its section, listed or not, and a listed anchor is the same whether or not the outline was cut. + - **New note kind `outline_truncated`** on `RecordContextNoteKind` in `@objectstack/spec/ai`. When the cap cuts, the answer carries one such note beside `body_outline`, and its sentence says how many headings are not listed. A consumer that switches over note kinds exhaustively must handle the new value. + - A body whose only heading is too long to list within the bound is carried as text up to the bound and marked `truncated`, the same as a long body with no headings. +- 372ce7c: fix(spec)!: a refused data-API request no longer lists zod's bare "Invalid input" union entry in `fields[]` ahead of the entries that explain it + + Clause-②: no (narrowing) + Metadata-protocol: none + Skills-docs: none (no skills/ page names the union's `invalid_shape` / `Invalid input` entry or reads `fields[]` by position) + + What narrows: `zodIssuesToFields` (`@objectstack/spec/api`) no longer emits a union's own `{ code: 'invalid_shape', message: 'Invalid input' }` entry when an entry below it explains the failure, at every depth. A `400 VALIDATION_FAILED` whose `fields[]` comes from it moves only when the refused value sits on a union slot with a branch that explains the failure: the query door, personal-view config saves, and the other declared-schema ingress doors can answer one. Plain create, update, bulk and batch record writes emit no such entry and do not move. `fields[0]` of a refusal that does move is now the first located cause. + + <!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed or renamed, and nothing stored is rewritten: what moves is which entries a refusal's fields list carries, computed afresh on every refused request. The accept set is unchanged. The one reading instruction is in the body: read entries by field and code, never by index. --> + + **BREAKING** for a client that reads a refused request's `fields[]` by position, or that looks for an `invalid_shape` entry carrying `Invalid input`. That entry named only the slot the union sat on; the entries that name the key and the constraint were always further down the same list, and they are now first. Read entries by `field` and `code`, not by index. + + For a value refused by a `z.union` slot whose branches explain the failure: + + - FROM: `fields[]` opened with `{ field: 'u', code: 'invalid_shape', message: 'Invalid input' }`, followed by the entries that explain it, such as `{ field: 'u.a', code: 'required', … }`. A union nested in a union added one such entry per level before the cause. + - TO: `fields[]` holds the explaining entries only, such as `{ field: 'u.a', code: 'required', … }`, at every depth. + + The fix for a caller that read `fields[0]` expecting the union's slot: find the entry whose `field` equals the slot or starts with the slot and a dot. + + **What stays.** A union entry is kept, ahead of what it explains, in every other case: + + - nothing below explains it: every branch only says the value is the wrong kind, or the nesting bound was reached. Then it is the whole answer for that slot, and the only entry naming it. + - its message is the schema's own sentence rather than zod's default (a union declared with an `error`). That sentence is a prescription, so dropping it would drop the fix. + - it is a container's entry (`invalid_key`, `invalid_element`): its code is the one place that says a key was refused rather than the value under it. + + The comparison is against zod's exact default text, held in one constant beside the mapper and pinned against a real zod parse, so a zod upgrade that rewords the default fails a test instead of quietly bringing every such entry back. + + **Now the same as the metadata envelope.** This is the rule a refused metadata save's `issues[]` takes (`@objectstack/metadata-protocol`, whose change ships in this same release), so the two machine-read lists say the same thing about one value; the cross-package parity test pins them entry for entry. The terminal renderer (`formatZodError`, the CLI) still prints the union line as the parent of its indented tree. +- 20d025f: fix(service-storage)!: stored bytes outside the inline allow-list are served as attachments, and every stored-bytes answer carries nosniff and a sandbox CSP + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed or re-shaped, and no stored row, registry key or authored value changes. What moves is the response headers a downloaded file is answered with; there is nothing for a migration to rewrite. --> + + **BREAKING** — how a downloaded file is answered to a browser. One rule, stated once in the storage service and applied by every door that answers stored bytes: + + - FROM: a file was answered under the type recorded for it, and rendered in place by default, whatever that type was. + - TO: only a type on the inline allow-list is rendered in place: raster images (PNG, JPEG, GIF, WebP, AVIF, BMP), PDF, plain text, and common audio and video types. Every other type, SVG and HTML included, and a missing or malformed type, is answered as an `attachment`, which the browser saves rather than opens. The type is judged by its essence, and the answered `Content-Type` is that essence: case is folded and parameters are dropped (a `charset` is kept on `text/plain` only), so neither changes the verdict. + - FROM: the local adapter's byte route sent no `X-Content-Type-Options` and no `Content-Security-Policy`. + - TO: every answer from it carries `X-Content-Type-Options: nosniff` and a sandbox `Content-Security-Policy` that lets no script run, inline or not. Allow-listed audio and video answered inline carry a media variant of it, `sandbox allow-same-origin; default-src 'none'; media-src 'self'; style-src 'unsafe-inline'`, so the browser's player can load the file's own URL. Every other answer carries `sandbox; default-src 'none'; style-src 'unsafe-inline'`, which asks the browser for a sandboxed document that runs no script and loads no subresource. + - Measured in Chromium (the Console's download in a new tab, and direct navigation): PNG, PDF and plain text render in place; HTML and SVG are saved. WAV, Ogg, MP3, WebM and MP4 open in the browser's player, which loads the file and starts playback when the user presses play; before this change the player started playback on its own. Firefox and Safari were not measured. + - The S3 adapter's signed download URL always carries the same type and disposition; a call that names no type is signed as `application/octet-stream`, an attachment. A caller's `disposition: 'inline'` no longer overrides the list. A signed `GetObject` URL can set no other response header, so `nosniff` and the CSP are the bucket's to send there. + + The fix for a host: nothing to change. A file outside the list still downloads under its own name and type; open it from the saved copy. An `<img>` that shows a stored SVG keeps showing it: an image element ignores the disposition. +- 64b278e: fix(rest)!: every data door judges environment membership + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) every data door judges environment membership; nothing an author writes is retired, renamed or re-shaped, so there is nothing for a migration to rewrite --> + + **BREAKING** for a signed-in caller who is not a member of the environment a request resolved to: every data door now judges environment membership and answers that caller `403 PROJECT_MEMBERSHIP_REQUIRED`, in the envelope the runtime dispatcher already answers with. + + Every data door judges environment membership. The rule is one function in `@objectstack/core` (`judgeEnvironmentMembership`), asked by the runtime dispatcher and the REST server alike; the dispatcher's own answers are unchanged. + + It is off in exactly two cases: `api.enforceProjectMembership: false` (ADR-0135 D9: a host whose environment-native auth is the membership), or no `sys_environment_member` object registered. The switch is read through one function for every door (`resolveEnvironmentMembershipEnforcement`): an explicit `enforceProjectMembership` wins, else it is on exactly when environment scoping is on. `objectstack serve` hands the stack's `api.enforceProjectMembership` to the REST and the dispatcher plugin alike. + + Migration: a host that composes the plugins itself passes the same `enforceProjectMembership` to `createRestApiPlugin` as to `createDispatcherPlugin`. +- 695b9db: fix(plugin-security)!: an app-authored elevation's reads and writes are judged by its caller's organization wall + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is the answer a data operation gets when it runs under an action body's, a system hook's or a system flow's elevation, and three schema descriptions that state it: no stored row, registry key or authored value changes, so there is nothing for a migration to rewrite and no tombstone. --> + + The rule: elevation lifts a caller's business rules, never the organization wall. An action body, a hook that runs as system (`runAs: 'system'`, a system context it inherits, its `ctx.api.sudo()`) and a flow that runs as system have their reads and writes judged by the organization wall of the caller they run for (ADR-0095 D1, ADR-0123 D1/D2), under every tenancy posture and on every object, a federated one included. + + **BREAKING** for an action body, a system hook or a system flow run for a signed-in caller. + + - FROM: the elevation, not the caller's organization wall, decided what such a context reached of a tenant-scoped object. + - TO: the caller's own organization wall decides it: + - with no active organization under `isolated`, an empty membership set under `group`, or no membership at all under `single`: its reads of a tenant-scoped object resolve to nothing (zero rows, no error); its delete and purge are answered by that read rule (a predicate delete matches nothing, a by-id delete answers `404 RECORD_NOT_FOUND`); and its other writes (insert, update, transfer, and the recycle bin's restore) are refused with `403 PERMISSION_DENIED`, naming the missing active organization or membership; + - under `group`, a member reads and writes the union of the organizations they hold a membership in, with or without an active organization; + - on a federated object it reads only rows of the caller's organization scope, and a by-id write of a row outside it answers `404 RECORD_NOT_FOUND`, as a row that is not there; + - an insert with no active organization on a walled tenant object is refused with `403 PERMISSION_DENIED`; + - for every caller, an active organization included: a write whose own data names an organization outside the caller's wall, and an update whose own data empties a row's organization, are refused with `403 PERMISSION_DENIED`; + - the check of the row a by-id write names is read inside the transaction the write carries, so a row the body's own transaction wrote is the caller's to write again in it; + - a system flow started by a record change, and every system run whose own user is its caller, carries that user's membership set and posture rung from run setup: under `group` it reads the union of the user's memberships, with or without an active organization. The set and rung are those of run setup: a membership the user gains or loses while the run waits is read by the next run. A decided segment, a run that began for no caller and a child run of either carry neither: a decided segment's caller's facts are resolved for it again. + + **Not moved.** A caller with an active organization keeps exactly that organization's reach. Objects outside tenancy, objects with no organization column, and a platform operator crossing the wall on an object whose posture permits it are answered as the caller's own requests answer them. System work that runs for no caller (a scheduled run, a platform plugin's own system context, the seeders) is unchanged, and so is a system flow that began for no caller after an approval decision: the decider is its attribution user, not its caller. A run that a write of such a segment starts begins for no caller too, and carries neither the writer's membership set nor its posture rung; its trigger user stays the writer, so an approval's submitter exclusion, who may read the run's state, and the run's history answer as before. A run that a write of a decided segment of a run that began for a caller starts begins for the decider, as before. A system flow that began for a caller is judged by that caller after a decision, not by the decider. + + The fix for a caller: select an active organization before running the action, or start the run from a session that has one. A body that must place a row in another organization does so as a member of that organization, through its own request. The `runAs` descriptions of flows and hooks and the `body` description of actions now state this limit beside the other two. + + Also in this change: + - `@objectstack/core` exports `RUN_CALLER`, `markRunCaller` and `runCallerOf`: the server-constructed mark a flow run's data context carries wherever the run's own user is not its caller (a decided segment, a run recorded as begun for no caller in every segment, and a child run of either), naming the user its run began for, or that it began for none. + - `@objectstack/service-automation`: a `runAs: 'system'` run's data context carries the run user's membership set (`accessible_org_ids`) and posture rung, seeded once at run setup; it carries no grants. A run context may record `beganForNoCaller: true`. A run whose own user is not its caller is seeded with neither, and its data context carries neither. + - `@objectstack/objectql`: the hook session of a write made under that mark, for a run that began for no caller, carries it; `@objectstack/trigger-record-change` records that the run such a write fires began for no caller, and keeps the writer as its trigger user. +- d280de9: docs: stale prose on summary currency, the temporal-comparand door and analytics filters now says what the code does + + Clause-②: no + Metadata-protocol: none + + No accepted value, key or answer moves. Two refusal messages change their words: + + - A `currencyMode: 'dynamic'` summary over a child `currency` field that is neither `dynamic` nor a well-formed `record` / `fixed` (a stored `fixed` field with no `defaultCurrency`, or a `currencyMode` outside the three) is still refused, and the refusal now names what the child lacks: "is a 'currency' field in `fixed` mode with no `defaultCurrency` code (the currency it is fixed to is missing)", or "is a 'currency' field whose `currencyMode` 'X' is none of `dynamic`, `fixed` and `record`". Before, it said only "is a 'currency' field, not a `currency` field in `dynamic` mode". + - The temporal-comparand door's refusal of a comparand no temporal rule reads (`'not-a-date'`, the preset name `'last_30_days'`) now ends "As written it would reach the driver and be compared as text: it may select every row, none or the wrong ones (or raise a database error), an answer indistinguishable from a real one." Before, it said the comparison would "compare false for EVERY row", which was wrong for `$lt` and others that selected every row, for a partial day such as `'2026-06'` that selected a subset, and on PostgreSQL, which raised a database error. Its `having` twin says the same of the groups it would keep, where it said "no group or every group, a 200". + + The upgrade-guide entry `summary-dynamic-currency-rollup-home-amount-judged-as-served` now states the admitted set as both doors enforce it: a `dynamic` summary may roll up any child `currency` field in `dynamic` mode, a stored home amount included. Source comments and published docblocks that said every `{placeholder}` is stepped around by the temporal door now state the per-kind rule: a date macro is stepped around and judged by its year once resolved, a period key and a context token are judged as written, and an unknown or record-context token is left to the resolver. +- 6296909: fix(spec): a deployment's validation override prints a written value exactly as written + + Clause-②: no + Metadata-protocol: none + + `renderValidationMessage` (`@objectstack/spec/system`) now asks a deployment's `validation.field.<messageKey>` override for its template, without the parameters, and fills the placeholders once. Before, the `i18n` service filled them and the renderer filled the result again, so a written value that itself contained a placeholder, such as a select value `{{label}} plan` refused as `invalid_option_value`, was expanded on the second pass and the refusal showed the field label where the user's own value should be. An override's text now quotes the value exactly as written, as the built-in sentence already did. Overrides that use only `{{name}}` placeholders read the same as before. + + The `translate` option of `RenderValidationMessageOptions` and `RenderOperationMessageOptions` now says it is asked for the template with no params. Its type is unchanged. The error code, status and the shipped `value` field of the refusal are unchanged. + ## 18.6.0 ### Minor Changes diff --git a/packages/spec/package.json b/packages/spec/package.json index 523b20de576..5ddeaf629e8 100644 --- a/packages/spec/package.json +++ b/packages/spec/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/spec", - "version": "18.6.0", + "version": "18.7.0", "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 5ec45ad87b5..d29964a2564 100644 --- a/packages/triggers/trigger-api/CHANGELOG.md +++ b/packages/triggers/trigger-api/CHANGELOG.md @@ -1,5 +1,181 @@ # @objectstack/trigger-api +## 18.7.0 + +### Patch Changes + +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/core@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/triggers/trigger-api/package.json b/packages/triggers/trigger-api/package.json index 992d63e5068..a116ffab0a8 100644 --- a/packages/triggers/trigger-api/package.json +++ b/packages/triggers/trigger-api/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/trigger-api", - "version": "18.6.0", + "version": "18.7.0", "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 6e5845ed485..580f4d2c64d 100644 --- a/packages/triggers/trigger-record-change/CHANGELOG.md +++ b/packages/triggers/trigger-record-change/CHANGELOG.md @@ -1,5 +1,222 @@ # @objectstack/plugin-trigger-record-change +## 18.7.0 + +### Patch Changes + +- c261a7c: feat(automation): `POST /api/v1/automation/_record-starts` answers which flows a proposed update of one record would start + + Clause-②: yes (widening) — one new public read: the route `POST /api/v1/automation/_record-starts` (`automation.listRecordUpdateStarts` in the API contract and in `@objectstack/client`); `@objectstack/spec/api` adds `RecordUpdateStartsRequestSchema`, `RecordUpdateStartSchema`, `RecordUpdateStartsResponseSchema` and their types; `@objectstack/spec/contracts` adds `RecordUpdateStartsInput` and the optional `IAutomationService.listRecordUpdateStarts`; `@objectstack/spec/automation` adds `recordChangeTriggerHookEvents` and `recordChangeTriggerFiresOnUpdate`; `_record-starts` joins the `/automation` domain's reserved position literals. Nothing existing is removed or re-typed. + Metadata-protocol: added — the three new `@objectstack/spec/api` schemas enter the `api` authorable-surface shard (10 keys: `RecordUpdateStart:name/label/startsApproval`, `RecordUpdateStartsRequest:object/recordId/changes`, `RecordUpdateStartsResponse:success/data/error/meta`); no flow or other metadata key is added + Skills-docs: none — no skill under `skills/**` teaches the console's stage confirms; `content/docs/automation/flows.mdx` gains the read in this change. + + The console's stage confirms now name the flows a move would start (objectstack#35928, ruling record 7073655354). They ask the server: + + - **Request** `{ object, recordId, changes }`; **response** `{ success, data: { flows: [{ name, label, startsApproval }] } }`. + - **Who is answered:** a signed-in caller who can read the record. The record is read as the caller through the `/data` door's own `get`, so a record they cannot read answers `404 RECORD_NOT_FOUND` exactly as an absent one, and the engine is never asked. Anonymous `401`; a malformed body `400 VALIDATION_FAILED`; a `changes` key that is not a declared field of the object `400 VALIDATION_FAILED` on that key, the engine never asked; a read that answers no record `404 RECORD_NOT_FOUND`; any query parameter `400 VALIDATION_ERROR`; an engine without the read `501`. + - **Which flows:** enabled `record_change` flows of the object, armed on their trigger, whose `triggerType` binds an update, and whose start condition holds for the record read with `changes` applied (`previous` is the record read). The condition goes through the engine's one start-condition gate, the one every run passes; the token grammar `@objectstack/trigger-record-change` binds hooks by moved into the spec (`recordChangeTriggerHookEvents`) so the preview reads the same rule, with no second copy. A condition that cannot be evaluated against the record is not listed. Hooks are never listed. + - **Per flow:** `name`, the authored `label` (a client translates it by name) and `startsApproval`, true for a flow holding an `approval` node (ADR-0019). No description, condition or nodes. +- 695b9db: fix(plugin-security)!: an app-authored elevation's reads and writes are judged by its caller's organization wall + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is the answer a data operation gets when it runs under an action body's, a system hook's or a system flow's elevation, and three schema descriptions that state it: no stored row, registry key or authored value changes, so there is nothing for a migration to rewrite and no tombstone. --> + + The rule: elevation lifts a caller's business rules, never the organization wall. An action body, a hook that runs as system (`runAs: 'system'`, a system context it inherits, its `ctx.api.sudo()`) and a flow that runs as system have their reads and writes judged by the organization wall of the caller they run for (ADR-0095 D1, ADR-0123 D1/D2), under every tenancy posture and on every object, a federated one included. + + **BREAKING** for an action body, a system hook or a system flow run for a signed-in caller. + + - FROM: the elevation, not the caller's organization wall, decided what such a context reached of a tenant-scoped object. + - TO: the caller's own organization wall decides it: + - with no active organization under `isolated`, an empty membership set under `group`, or no membership at all under `single`: its reads of a tenant-scoped object resolve to nothing (zero rows, no error); its delete and purge are answered by that read rule (a predicate delete matches nothing, a by-id delete answers `404 RECORD_NOT_FOUND`); and its other writes (insert, update, transfer, and the recycle bin's restore) are refused with `403 PERMISSION_DENIED`, naming the missing active organization or membership; + - under `group`, a member reads and writes the union of the organizations they hold a membership in, with or without an active organization; + - on a federated object it reads only rows of the caller's organization scope, and a by-id write of a row outside it answers `404 RECORD_NOT_FOUND`, as a row that is not there; + - an insert with no active organization on a walled tenant object is refused with `403 PERMISSION_DENIED`; + - for every caller, an active organization included: a write whose own data names an organization outside the caller's wall, and an update whose own data empties a row's organization, are refused with `403 PERMISSION_DENIED`; + - the check of the row a by-id write names is read inside the transaction the write carries, so a row the body's own transaction wrote is the caller's to write again in it; + - a system flow started by a record change, and every system run whose own user is its caller, carries that user's membership set and posture rung from run setup: under `group` it reads the union of the user's memberships, with or without an active organization. The set and rung are those of run setup: a membership the user gains or loses while the run waits is read by the next run. A decided segment, a run that began for no caller and a child run of either carry neither: a decided segment's caller's facts are resolved for it again. + + **Not moved.** A caller with an active organization keeps exactly that organization's reach. Objects outside tenancy, objects with no organization column, and a platform operator crossing the wall on an object whose posture permits it are answered as the caller's own requests answer them. System work that runs for no caller (a scheduled run, a platform plugin's own system context, the seeders) is unchanged, and so is a system flow that began for no caller after an approval decision: the decider is its attribution user, not its caller. A run that a write of such a segment starts begins for no caller too, and carries neither the writer's membership set nor its posture rung; its trigger user stays the writer, so an approval's submitter exclusion, who may read the run's state, and the run's history answer as before. A run that a write of a decided segment of a run that began for a caller starts begins for the decider, as before. A system flow that began for a caller is judged by that caller after a decision, not by the decider. + + The fix for a caller: select an active organization before running the action, or start the run from a session that has one. A body that must place a row in another organization does so as a member of that organization, through its own request. The `runAs` descriptions of flows and hooks and the `body` description of actions now state this limit beside the other two. + + Also in this change: + - `@objectstack/core` exports `RUN_CALLER`, `markRunCaller` and `runCallerOf`: the server-constructed mark a flow run's data context carries wherever the run's own user is not its caller (a decided segment, a run recorded as begun for no caller in every segment, and a child run of either), naming the user its run began for, or that it began for none. + - `@objectstack/service-automation`: a `runAs: 'system'` run's data context carries the run user's membership set (`accessible_org_ids`) and posture rung, seeded once at run setup; it carries no grants. A run context may record `beganForNoCaller: true`. A run whose own user is not its caller is seeded with neither, and its data context carries neither. + - `@objectstack/objectql`: the hook session of a write made under that mark, for a run that began for no caller, carries it; `@objectstack/trigger-record-change` records that the run such a write fires began for no caller, and keeps the writer as its trigger user. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/core@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/triggers/trigger-record-change/package.json b/packages/triggers/trigger-record-change/package.json index 4bd356bcd89..e592414d933 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": "18.6.0", + "version": "18.7.0", "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 e146cccd5f2..babe6a617ff 100644 --- a/packages/triggers/trigger-schedule/CHANGELOG.md +++ b/packages/triggers/trigger-schedule/CHANGELOG.md @@ -1,5 +1,196 @@ # @objectstack/plugin-trigger-schedule +## 18.7.0 + +### Patch Changes + +- a03bc4e: docs(skills): the automation skill, the schedule trigger README and the start-node schedule refusals spell only flow shapes the publish checks accept + + Clause-②: no + Metadata-protocol: none + + Ten flow checks of `os validate` and publish (`flow-schedule-timezone-missing`, `flow-condition-option-label`, `flow-node-write-unknown-option`, `flow-subflow-unknown` and the rest) landed without the text that teaches flows. Three of them are warnings and refuse nothing: `flow-schedule-timezone-missing`, `flow-subflow-unknown` (run by the CLI only) and `flow-create-update-pair`. Wording only; no schema, rule or reader changes. + + - `@objectstack/spec`: the three refusals of a start node's `config.schedule` (an empty string, a typed schedule the published schema refuses, a value the readers read nothing from) now offer `{ type: 'cron', expression: '0 8 * * *', timezone: 'UTC' }` as the cron to write. They no longer offer a bare cron string or a cron object with no `timezone`, which `os validate` warns on. The typed-alias hint names `{ type: 'cron', expression: '…', timezone: 'UTC' }`. What is refused is unchanged. + - `objectstack-automation` skill: recipe 1's nightly cron states `timezone: 'UTC'`; the schedule example's comment says a cron with no `timezone` (a bare string) runs in UTC and warns, where it said a bare cron string also works; the `subflow` row says `os validate` warns `flow-subflow-unknown` on any name the stack does not hold, a correct call to another package's flow included, where it said `os validate` passes; the select-label rule says a start condition or a `fields` write that uses an option's label is refused at publish where the options are inline, where it said the flow stages clean, and says a label in a `filter` or an edge condition is never checked and silently matches nothing, where it said a `filter` fails the run. Eval 1's expected answer states the cron's `timezone`, and eval 20's states that warning. No skill file passes its token ceiling: `SKILL.md` gains one line, paid for by shorter wording and shorter table separator rows in the same file, and two node labels in recipe 1 are shortened to pay for the `timezone` key. + - `@objectstack/trigger-schedule` README: the time-relative example's cron states `timezone: 'UTC'`, and the schedule-shapes table is followed by the UTC reading and the warning. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [8856afc] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [7c122ff] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [9c57bd2] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [c059e60] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [ecd4b2b] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/types@18.7.0 + - @objectstack/core@18.7.0 + - @objectstack/metadata-core@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/triggers/trigger-schedule/package.json b/packages/triggers/trigger-schedule/package.json index 093da7abba4..ffe794a1b98 100644 --- a/packages/triggers/trigger-schedule/package.json +++ b/packages/triggers/trigger-schedule/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/trigger-schedule", - "version": "18.6.0", + "version": "18.7.0", "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 088254a84a1..be81cd2d066 100644 --- a/packages/types/CHANGELOG.md +++ b/packages/types/CHANGELOG.md @@ -1,5 +1,199 @@ # @objectstack/types +## 18.7.0 + +### Patch Changes + +- 9abc732: fix(share-links): the share-link page names the shared object by its label in the reader's language and no longer lists the fields the object hides + + Clause-②: yes (widening) + Metadata-protocol: none + + `GET /api/v1/share-links/{token}/resolve` answers two more facts, on both of its mounts (the sharing plugin's route and the runtime dispatcher's `/share-links` domain): + + - `link.object_label` — the shared object's label in the request's locale: the request's `Accept-Language` top tag, else the i18n service's default locale, translated the way `GET /meta/object/NAME` translates it: the translation bundle over the served `label`, with the deployment's fallback locale and authored language, and the object's packaged declaration read through the metadata protocol. A renamed object therefore keeps its rename and is not given the bundle's translation of its old label. With no i18n service, or no bundle entry for that locale, the served label is served. An object that declares no label carries no `object_label`. + - `fields[NAME].hidden: true` — for a field the object declares hidden, including the injected scope and queue columns, which are hidden at their source. A field that is not hidden carries no `hidden` key. + + Both public share-link routes (`/resolve` and `/messages`), on both mounts, now answer `Vary: X-Share-Password, X-Share-Password-Encoding, Accept-Language` (the new `SHARE_LINK_PUBLIC_VARY` in `@objectstack/types`). Before, they sent only the two password headers. They still send `Cache-Control: no-store`. + + `ShareLinkResolvedLink` and `ShareLinkFieldDisplay` (`@objectstack/types`) gain the two optional keys, and `buildShareLinkResolveAnswer` takes an optional fourth argument with the request's `Accept-Language` value, the i18n service and the metadata protocol. `registerShareLinkRoutes` (`@objectstack/plugin-sharing`) takes optional `i18n` and `protocol` resolvers, which `SharingServicePlugin` wires to the kernel's `i18n` and `protocol` services. + + The console's share-link page (`@object-ui/console`) titles the page with the label ("Shared Client Brief"), falling back to the object's name from a server that does not send one, and leaves off every field the answer marks hidden, as the record page does. Its resolve and messages requests state the console's UI language as `Accept-Language`, so the label arrives in the language the rest of the page is in. + + Nothing to migrate: a caller that reads neither key is unaffected. +- 9c57bd2: refactor(studio): every Studio address comes from one builder; no address changes + + Clause-②: yes (widening) + Metadata-protocol: none + + Studio redesign groundwork (#36895, epic #36890). Every place that produced a `/studio...` URL now calls one builder, so a later change can move an item type to its metadata address in one place. Every address is byte-for-byte what it was: no link, bookmark or redirect changes. + + - **Console.** `studioAddress.ts` in `@object-ui/app-shell` builds every Studio address: the landing, a package, a pillar, an item (`studioItemPath`), the "All metadata" area, and the draft review links. `studioAddressTable.ts` lists every address family, every `?surface=` spelling and every query parameter, with what each becomes on the metadata address. The retired `/interfaces` redirect keeps exactly the parameters that table marks. New exports from `@object-ui/app-shell`: `STUDIO_ROOT_PATH`, `STUDIO_HOME_PILLAR`, `studioLandingPath`, `studioPackagePath`. Existing exports keep their names and values. + - **Server.** `studioChangesReviewLink` and `studioItemReviewLink`, new in `@objectstack/types`, build the review links that `os meta register` prints and that the MCP authoring tools return after a draft save. The text an AI is handed is unchanged. + - **Guards.** A test under `ui/` refuses a hand-built Studio address in any ui source. A test in `@objectstack/types` refuses one in any server package, and holds the review links quoted by the `objectstack-mcp-build` skill's evals equal to what the builder returns. +- c059e60: Clause-②: yes (widening) — `@objectstack/types` gains root exports (`FLOW_RUNTIME_STATE_KEY`, `flowRuntimeStateOf`, `FlowRuntimeStateAnswer`), and the open door's `get_metadata_item` answer on a flow gains the key `runtimeState`; nothing that was accepted is refused, and no key a caller sends is added + Metadata-protocol: none + + An MCP definition reader now says when an admin has switched a flow off. The open authoring door's `get_metadata_item` answers a flow with `runtimeState: { enabled }`, the engine's own reading (the one `GET /automation/_status` serves), placed ahead of the item; the switch moves only that bit and leaves the definition, `status: 'active'` included, as it was, so before this a switched-off approval read as running. The app-docs answer-order text sent on `initialize` (`packageDocAnswerRule`) now tells the agent that `runtimeState.enabled: false` means the process is switched off and does not run. `@objectstack/types` exports the key and the reading (`FLOW_RUNTIME_STATE_KEY`, `flowRuntimeStateOf`) for a host's own reader. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/types/package.json b/packages/types/package.json index d140c4f3212..1816f2282d3 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/types", - "version": "18.6.0", + "version": "18.7.0", "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 8869174c4aa..2231e5c4860 100644 --- a/packages/verify/CHANGELOG.md +++ b/packages/verify/CHANGELOG.md @@ -1,5 +1,424 @@ # @objectstack/verify +## 18.7.0 + +### Patch Changes + +- 00110fd: feat(verify): run a flow locally and report its node trace before it is submitted + + Clause-②: yes (widening: a new `os verify --flow` option, and new `@objectstack/verify` exports) + Metadata-protocol: none + + `os verify --flow <name>` runs one flow once on a fresh in-memory boot of the app and reports what the engine did: each node's status as the run's log records it, the first failure with its code and the node named, and every write the run made. + + - The run starts the way production starts it. A record-change flow is fired by its own trigger: the run writes the record `--flow-record '{"field":"value"}'` names as the dev admin (inserted for a create or write leg; seeded and saved unchanged for an update leg; seeded and deleted for a delete leg). A flow its own trigger starts is started with no caller, with the context that trigger builds: an API-triggered flow gets `--flow-input '{...}'` as its record and its params (the request body); a time-relative flow gets the `--flow-record` row, seeded first, as its record (the acting organization a sweep can set is not reproduced); a schedule or another `runAs: 'system'` flow gets `--flow-input` as its params. Any other flow goes through the trigger route as the dev admin, with `--flow-input` as its params. + - A node whose type no installed plugin runs is named, whether the run reached it or not. A flow whose trigger never binds is reported with the trigger and the engine's reason, and is not run. A schedule or time-relative trigger left unarmed by the deployment's scheduled-work switch (the default) is not a defect: it is reported as not armed and the flow is still run. + - The run writes to the in-memory database the boot creates and nowhere else: a write to an object bound to any other datasource is refused before that datasource's driver is called, and the node that made it fails naming the object and the datasource. Four outbound node types are not executed: `http`, `connector_action` (with every connector a plugin contributes behind it), `notify` and `script`; a plugin's own node type that calls out under another name is not stood in and runs for real. A run that ends at one of them stops there and the report names it (`outbound_not_run`), in a child flow too; every node before it ran for real. A stop a `try_catch` catches is listed in `outboundStops`, and a later node that fails is still the first failure. + - A failed run, a missing executor, an unbound trigger, a record-change or time-relative flow given no record, and a write refused outside the ephemeral stack each fail `os verify`. A run its start condition skipped, one that paused at a screen, wait or approval, and one stopped at an outbound node are reported and do not. + - `--json` carries the report as `flowRun`. + + New exports from `@objectstack/verify`: `runFlowProof`, `formatFlowRunReport`, and the `FlowRunRequest`, `FlowRunVerdict`, `FlowRunStart`, `FlowRunStep`, `FlowRunWrite`, `FlowRunFailureKind`, `FlowRunFailure`, `FlowRunTrigger` and `FlowRunReport` types. Nothing that ran before changes. +- cf6bb70: fix(verify): `os verify` writes nothing to an object on an external datasource, even one whose write gate is open + + Clause-②: no + Metadata-protocol: none + + The harness connects every datasource an app declares, the way `os dev` does. An object on an external datasource whose write gate was open (`external.allowWrites` on the datasource and `external.writable` on the object) was let into the CRUD round trip and every write family built on it, so a verify run could insert, update and delete test rows in the real database behind that datasource. + + Now `deriveCrudCases` blocks every object on an external datasource, whatever its write gate says, and the reason names the gate's state: `external datasource "NAME" (writes allowed): not exercised — verify writes only to its ephemeral store`, or `(read-only)` for a closed gate. The CRUD stage reports the object `skipped` with that reason, which does not fail the run; the RLS, reference-shape, delete-behaviour, unique-scope, parent-write-reach and dashboard-window families, which build their records from the same case, leave it out with the same reason. An object that requires a reference to it is skipped too. An object counts as on an external datasource when it carries an `external` block (verify's existing trigger) or when its datasource declares a `schemaMode` other than `managed` (the engine's write gate's own test). An object bound to a declared managed datasource, or one that declares no `schemaMode`, is still written through that datasource, as under `os dev`. + + A write the app itself makes to an external object (its seed, or a hook or flow that one of verify's writes fires) still goes where the app sends it, as under `os dev`; the `--flow` run already refuses every write routed away from the in-memory database. The package README and the harness header now say exactly this instead of "never touches a real database". +- 9a3a500: fix(verify)!: a managed `mongodb` datasource runs on verify's in-memory stand-in, and a managed datasource on a plugin's driver id refuses the boot + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or export is added, removed, renamed or re-shaped, and no stored row changes. What moves is what `os verify` (and `bootStack`) does with a datasource an app already declares: a managed `mongodb` one is built in memory instead of on its real connection, and a managed one on a driver id the platform does not ship refuses the boot. There is nothing for a migration to rewrite and no tombstone. --> + + Verify writes only to stores it creates. Until now that held for a managed datasource on a SQL engine or `memory`, but not for one on `mongodb` or on a driver id a plugin supplies: those kept their real driver, verify withheld only its own writes from their objects, and the app's seed, hooks and flows still wrote to the real database during the run, where verify could neither identify nor undo the rows it changed. + + - **`mongodb`, and every other engine the platform ships.** A declared managed datasource (`schemaMode: 'managed'`, or none declared) on any driver id the platform ships, `mongodb` included, now runs on verify's ephemeral in-memory stand-in, the same store verify builds for the SQL engines: nothing of its declared connection is used, every write to its objects (verify's and the app's seed, hooks and flows) stays in memory, and its objects are exercised by every derived family. The CRUD report no longer lists them as `managed datasource "NAME" (driver "mongodb"): not exercised`. + - **BREAKING: a managed datasource on a plugin's driver id refuses the boot.** Such a datasource cannot be stood in: the plugin builds and registers its own driver, and the boot would write through it. `os verify` now refuses to boot while one is declared (any name other than `default`), before anything is composed. The refusal names each such datasource and its driver id, says why, and `os verify` exits 1 with it. + - FROM: `os verify` booted the app, left the datasource's objects out of its own write families, and let the app's seed, hooks and flows write to the real database behind the plugin's driver. + - TO: `os verify` refuses to boot, naming the datasource and the driver id. There is no flag, boot option or metadata key around the refusal. + - The fix for an app author: correct the driver id if it is a misspelling, or verify a configuration that does not declare that datasource. + - **BREAKING: a plugin driver registered under a managed datasource's name refuses the boot.** The datasource connection service keeps a driver already registered under a datasource's name, whatever driver id the datasource declares, so a plugin that registers a driver under a managed datasource's name on a shipped id (`mongodb`, `postgres`, …) would have run it on the plugin's driver. `os verify` now refuses that boot, naming the datasource and its declared driver id, when the driver is registered before verify's stand-in holds the name: as a `driver.*` service (matched by its key and by the driver's own name, before any plugin starts), or into the engine from an `objectql:drivers-ready` handler or anywhere else (refused at the engine's `registerDriver`, before the engine holds it). Either way no connect, schema sync or write reaches the plugin's driver. A driver registered under the name once the stand-in holds it (an app plugin's `start()`, a `runtime.onEnable` bridge) is discarded by the engine, as before, and that boot runs on the stand-in. + - FROM: when the plugin's driver took the datasource's name before verify's stand-in did, `os verify` booted on it, and the app's seed, hooks and flows (and, for a SQL id, verify's own writes) reached the store behind it. + - TO: `os verify` refuses that boot, even when the plugin catches the refusal and carries on. No flag, boot option or metadata key around it. + - The fix for an app author: verify a configuration whose plugins do not register a driver under a managed datasource's name. An external datasource (`schemaMode: 'external'` or `'validate-only'`) on a plugin's driver is not affected: verify keeps its real driver and withholds its own writes from its objects, as before. + + This supersedes what two earlier notes in this release say about a managed datasource "with no faithful stand-in": neither `mongodb` nor a plugin's driver keeps its real driver under `os verify` any more. +- c03a8a3: fix(verify): the skip reason for a managed datasource with no stand-in no longer says verify never writes to it + + Clause-②: no + Metadata-protocol: none + + For an object on a managed datasource whose engine has no ephemeral stand-in (`mongodb`, or a driver a plugin supplies), the CRUD report said `not exercised — verify has no ephemeral stand-in for this engine and never writes through to the real one`. That was not true: verify withholds only its own derived writes there, while the app's seed and the hooks and flows that verify's writes fire still write to that real database during the run. The reason now reads `… verify has no ephemeral stand-in for this engine, so it withholds its own writes; the app's seed, hooks and flows still write to the real database`, and the README says the same. Nothing else changes: which objects are skipped, and what reaches which store, are as before. +- 1104ee5: Clause-②: no + Metadata-protocol: none + + `os verify` no longer writes test rows into a declared managed datasource's real database. A datasource the app declares with `schemaMode: 'managed'` (or none) is now built as a fresh in-memory store of the same kind as verify's own default store, so its objects are still exercised (CRUD, reference shapes, delete behaviours, unique scopes) and nothing reaches the database the datasource names. A managed datasource whose engine has no faithful in-memory stand-in (`mongodb`, or a driver a plugin supplies) keeps its real driver, and verify leaves its objects out, reported as `managed datasource "NAME" (driver "DRIVER"): not exercised`. An object that requires a reference to a withheld object (external, or one of those) is now reported as withheld on purpose with the target's reason, instead of "required relational target X is not synthesizable". +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [8c629b2] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [9abc732] +- Updated dependencies [52a2398] +- Updated dependencies [4c2d8d7] +- Updated dependencies [cc03bdc] +- Updated dependencies [ef39b2c] +- Updated dependencies [a73edb3] +- Updated dependencies [7878cf0] +- Updated dependencies [93fa4f9] +- Updated dependencies [37e7fdf] +- Updated dependencies [2a0cd20] +- Updated dependencies [a998964] +- Updated dependencies [1c05546] +- Updated dependencies [9fea316] +- Updated dependencies [cceb5c6] +- Updated dependencies [7f4970a] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [5f18b9b] +- Updated dependencies [e6e5224] +- Updated dependencies [94a2d8b] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [d053c7d] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [c4a73be] +- Updated dependencies [806bba8] +- Updated dependencies [4db08d5] +- Updated dependencies [c9b3f7a] +- Updated dependencies [01e6af6] +- Updated dependencies [8e46424] +- Updated dependencies [d5ece3e] +- Updated dependencies [2d33205] +- Updated dependencies [78f3ab2] +- Updated dependencies [3c038eb] +- Updated dependencies [f5cfdd2] +- Updated dependencies [f4dbcc2] +- Updated dependencies [1950f07] +- Updated dependencies [d17adf5] +- Updated dependencies [9c29d73] +- Updated dependencies [e22502c] +- Updated dependencies [e100a37] +- Updated dependencies [f848e37] +- Updated dependencies [bf69cb4] +- Updated dependencies [4026c44] +- Updated dependencies [0739dee] +- Updated dependencies [f54fc93] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [96faf44] +- Updated dependencies [e25207d] +- Updated dependencies [d6ce9ba] +- Updated dependencies [7ed18b5] +- Updated dependencies [2df9691] +- Updated dependencies [bfd6b6b] +- Updated dependencies [961f474] +- Updated dependencies [a6cf988] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [338448e] +- Updated dependencies [50f85e9] +- Updated dependencies [4b1eb0e] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [9e65474] +- Updated dependencies [8596c80] +- Updated dependencies [ba304e0] +- Updated dependencies [fd471d3] +- Updated dependencies [4a1919d] +- Updated dependencies [ec227fc] +- Updated dependencies [ba6556c] +- Updated dependencies [8856afc] +- Updated dependencies [96a1f2b] +- Updated dependencies [c787255] +- Updated dependencies [c480f33] +- Updated dependencies [9062756] +- Updated dependencies [65b67be] +- Updated dependencies [1caee8c] +- Updated dependencies [dbb2f68] +- Updated dependencies [cdb327f] +- Updated dependencies [5cd2b54] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [43639a6] +- Updated dependencies [d99b746] +- Updated dependencies [467b13b] +- Updated dependencies [338ef35] +- Updated dependencies [abb40ae] +- Updated dependencies [b863d2b] +- Updated dependencies [068a0f9] +- Updated dependencies [89ea9bf] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [c321914] +- Updated dependencies [61722e9] +- Updated dependencies [03865ae] +- Updated dependencies [37f7814] +- Updated dependencies [8384d18] +- Updated dependencies [f6902e9] +- Updated dependencies [d76d57a] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [3ce6b65] +- Updated dependencies [aff34ba] +- Updated dependencies [6d0089c] +- Updated dependencies [99ece3c] +- Updated dependencies [3cfa5bc] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [cda16d4] +- Updated dependencies [fe75349] +- Updated dependencies [f4de1de] +- Updated dependencies [4890cd0] +- Updated dependencies [c9aad65] +- Updated dependencies [53c9575] +- Updated dependencies [7eaa3f5] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [c59ee99] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [fcbebf2] +- Updated dependencies [eb9f8ed] +- Updated dependencies [c99156e] +- Updated dependencies [ea58563] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [1e018d6] +- Updated dependencies [7c122ff] +- Updated dependencies [50d6da8] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [61831d2] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [03bce5c] +- Updated dependencies [de25d58] +- Updated dependencies [7dd1a2f] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [d9be915] +- Updated dependencies [65ee4b7] +- Updated dependencies [a03c3d4] +- Updated dependencies [c9b0a23] +- Updated dependencies [a8126d2] +- Updated dependencies [c4d6acc] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [ed33f8a] +- Updated dependencies [1c4db09] +- Updated dependencies [17ed9e7] +- Updated dependencies [cf7e443] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [a98c077] +- Updated dependencies [4dbee9f] +- Updated dependencies [236c804] +- Updated dependencies [d71fe59] +- Updated dependencies [c261a7c] +- Updated dependencies [0e91213] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [62daf7d] +- Updated dependencies [a5a5312] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6943af1] +- Updated dependencies [83e545a] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [5827212] +- Updated dependencies [00ae570] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [b7fe94a] +- Updated dependencies [011635f] +- Updated dependencies [0b2118f] +- Updated dependencies [81eae2b] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [7376505] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [03dbbe4] +- Updated dependencies [9a82465] +- Updated dependencies [0d4f190] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [ec545de] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [0fc430a] +- Updated dependencies [a3381cc] +- Updated dependencies [0a49be3] +- Updated dependencies [7a5ae65] +- Updated dependencies [d24a502] +- Updated dependencies [70d07fd] +- Updated dependencies [0ab9b15] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [ddceb22] +- Updated dependencies [595844b] +- Updated dependencies [53733c1] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [76bff41] +- Updated dependencies [6bc775f] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [ac43336] +- Updated dependencies [a3ee862] +- Updated dependencies [7501d0c] +- Updated dependencies [756df0a] +- Updated dependencies [45ef94e] +- Updated dependencies [3f568c1] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [e17c2ae] +- Updated dependencies [24ff03c] +- Updated dependencies [24ff03c] +- Updated dependencies [24ff03c] +- Updated dependencies [24ff03c] +- Updated dependencies [24ff03c] +- Updated dependencies [24ff03c] +- Updated dependencies [24ff03c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [e343ab7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [c8d4b90] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [6cfb782] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [9c57bd2] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [586c3a2] +- Updated dependencies [422df61] +- Updated dependencies [30778f3] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [c448c61] +- Updated dependencies [92ab056] +- Updated dependencies [b3247dd] +- Updated dependencies [372ce7c] +- Updated dependencies [c059e60] +- Updated dependencies [084156d] +- Updated dependencies [df8a1b8] +- Updated dependencies [75925e1] +- Updated dependencies [d59d875] +- Updated dependencies [8e415bd] +- Updated dependencies [852270a] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [bc2aaf1] +- Updated dependencies [4e55e4e] +- Updated dependencies [64b278e] +- Updated dependencies [4101f1f] +- Updated dependencies [99bd6d1] +- Updated dependencies [695b9db] +- Updated dependencies [7751753] +- Updated dependencies [d2bc1ff] +- Updated dependencies [6927c3f] +- Updated dependencies [ecd4b2b] +- Updated dependencies [1e692d1] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @objectstack/service-automation@18.7.0 + - @objectstack/runtime@18.7.0 + - @objectstack/objectql@18.7.0 + - @objectstack/plugin-auth@18.7.0 + - @objectstack/plugin-security@18.7.0 + - @objectstack/types@18.7.0 + - @objectstack/plugin-sharing@18.7.0 + - @objectstack/plugin-audit@18.7.0 + - @objectstack/service-settings@18.7.0 + - @objectstack/platform-objects@18.7.0 + - @objectstack/service-storage@18.7.0 + - @objectstack/service-analytics@18.7.0 + - @objectstack/metadata@18.7.0 + - @objectstack/plugin-approvals@18.7.0 + - @objectstack/mcp@18.7.0 + - @objectstack/service-messaging@18.7.0 + - @objectstack/rest@18.7.0 + - @objectstack/core@18.7.0 + - @objectstack/plugin-hono-server@18.7.0 + - @objectstack/trigger-record-change@18.7.0 + - @objectstack/service-realtime@18.7.0 + - @objectstack/plugin-webhooks@18.7.0 + - @objectstack/trigger-schedule@18.7.0 + - @objectstack/plugin-email@18.7.0 + - @objectstack/plugin-pinyin-search@18.7.0 + - @objectstack/service-cache@18.7.0 + - @objectstack/service-datasource@18.7.0 + - @objectstack/service-job@18.7.0 + - @objectstack/service-mailbox@18.7.0 + - @objectstack/service-package@18.7.0 + - @objectstack/service-push@18.7.0 + - @objectstack/service-queue@18.7.0 + - @objectstack/service-sms@18.7.0 + - @objectstack/trigger-api@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/packages/verify/package.json b/packages/verify/package.json index 682969ca923..8c284183eb5 100644 --- a/packages/verify/package.json +++ b/packages/verify/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/verify", - "version": "18.6.0", + "version": "18.7.0", "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 f38e451c124..d9808fc884d 100644 --- a/skills/objectstack-ai/SKILL.md +++ b/skills/objectstack-ai/SKILL.md @@ -12,7 +12,7 @@ license: Apache-2.0 compatibility: Requires @objectstack/spec 18.x (Zod v4 schemas) metadata: author: objectstack-ai - version: "18.6.0" + version: "18.7.0" domain: ai tags: agent, tool, skill, knowledge, llm, embedding, mcp --- diff --git a/skills/objectstack-api/SKILL.md b/skills/objectstack-api/SKILL.md index ebac7da57b2..18d819f916e 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 18.x (Zod v4 schemas) metadata: author: objectstack-ai - version: "18.6.0" + version: "18.7.0" domain: api tags: rest, endpoint, auth, realtime, server --- diff --git a/skills/objectstack-ask/SKILL.md b/skills/objectstack-ask/SKILL.md index f0d06ac017c..edcee2f7de2 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 18.x metadata: author: objectstack-ai - version: "18.6.0" + version: "18.7.0" 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 868820401cb..de5061fdf24 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 18.x (Zod v4 schemas) metadata: author: objectstack-ai - version: "18.6.0" + version: "18.7.0" 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 8a86fca42a2..6f67897993f 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 18.x (Zod v4 schemas) metadata: author: objectstack-ai - version: "18.6.0" + version: "18.7.0" 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 bf6be2469f3..ced46fce2ce 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 18.x and @objectstack/formula 18.x (CEL) metadata: author: objectstack-ai - version: "18.6.0" + version: "18.7.0" 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 2b1f06c7f0f..f4e5a125f29 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 18.x (Zod v4 schemas) metadata: author: objectstack-ai - version: "18.6.0" + version: "18.7.0" 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 ca8956afd4b..cef5b5fb750 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 18.x serves the MCP draft door (none through 18.6.0 does), on a connection granted metadata:write metadata: author: objectstack-ai - version: "18.6.0" + version: "18.7.0" 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 d40bf7cd86d..2f29b59297e 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 18.x and @objectstack/core 18.x (Zod v4 schemas), Node 22+ metadata: author: objectstack-ai - version: "18.6.0" + version: "18.7.0" 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 847bc38bc00..89ccabb37e8 100644 --- a/skills/objectstack-platform/references/bootstrap.md +++ b/skills/objectstack-platform/references/bootstrap.md @@ -142,13 +142,13 @@ or `module` package id are refused (`STACK_SINGLE_APP_VIOLATION`, 422). "validate": "objectstack validate" }, "dependencies": { - "@objectstack/spec": "18.6.0", - "@objectstack/runtime": "18.6.0", - "@objectstack/driver-memory": "18.6.0", - "@objectstack/plugin-hono-server": "18.6.0" + "@objectstack/spec": "18.7.0", + "@objectstack/runtime": "18.7.0", + "@objectstack/driver-memory": "18.7.0", + "@objectstack/plugin-hono-server": "18.7.0" }, "devDependencies": { - "@objectstack/cli": "18.6.0", + "@objectstack/cli": "18.7.0", "typescript": "^5.3.0" } } diff --git a/skills/objectstack-project/SKILL.md b/skills/objectstack-project/SKILL.md index 634386b932e..3c28a17c3a6 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 18.x and @objectstack/verify 18.x; the check lists below are that version's. metadata: author: objectstack-ai - version: "18.6.0" + version: "18.7.0" 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 0920aedd586..01ba747dbc1 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 18.x (Zod v4 schemas) metadata: author: objectstack-ai - version: "18.6.0" + version: "18.7.0" 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 596b4952b7f..86045dbc5c9 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 18.x (Zod v4 schemas) metadata: author: objectstack-ai - version: "18.6.0" + version: "18.7.0" 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 47b0a6dd733..f080651e713 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: "18.6.0" + version: "18.7.0" 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 991683aec76..35b12694306 100644 --- a/skills/objectui/SKILL.md +++ b/skills/objectui/SKILL.md @@ -5,7 +5,7 @@ license: Apache-2.0 compatibility: Requires @objectstack/spec 18.x; each @object-ui/* package declares its exact @objectstack/spec range in its own manifest. metadata: author: objectstack-ai - version: "18.6.0" + version: "18.7.0" 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 30e2d9ba954..1921f736ef3 100644 --- a/ui/apps/console/CHANGELOG.md +++ b/ui/apps/console/CHANGELOG.md @@ -1,5 +1,630 @@ # @object-ui/console +## 18.7.0 + +### Minor Changes + +- e6fa510: feat(approvals): an escalation deadline can count working time on an organization's working calendar (`escalation.clock: 'working_time'`) + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: follow-up owed — skills/objectstack-automation/references/state-machines-and-approvals.md + + An approval node's `escalation` gains two optional keys (ADR-0157 D5): + + - **`clock`**: `'wall_clock'` (the default) or `'working_time'`. Under `wall_clock` nothing changes: `timeoutHours` counts elapsed hours from `created_at`, nights, weekends and holidays included, and every request already open keeps its deadline (a stored snapshot carries no `clock`). Under `working_time` the hours count only the working periods of a working calendar (`sys_work_calendar`), skipping its holidays and counting its make-up workdays: a request opened at 17:00 on a Friday with `timeoutHours: 4`, on 09:00-12:00 and 13:00-18:00 periods, escalates at 12:00 on the next working day. + - **`calendar`**: the code of the working calendar to count on. Left out, the request organization's default calendar counts. There is never a fallback to wall-clock hours. + + The approvals sweep and the request read share one deadline function. A `working_time` deadline is counted again on every sweep and every read and is never stored, so a holiday entered after a request opened moves its deadline; an escalation that already fired stays fired (single-shot, ADR-0042). When the calendar cannot count the deadline (no calendar has the code, the organization has no default, or the calendar is not maintained as far as the deadline needs), the request does not escalate, the next sweep tries again, and the request read carries a new additive field, `sla_due_refusal` (`code`, `reason` or `date`, `message`), in place of `sla_due_at`. The approvals inbox shows "Calendar can't compute" with the reason where the SLA countdown sits, in every console language. + + `@objectstack/lint` refuses a `calendar` written beside the wall clock (`approval-escalation-calendar-without-working-time`, error): nothing would read it. Whether the named calendar exists is the organization's runtime data and is never checked at publish. The Studio approval inspector offers the clock and, under working time only, the calendar. + + Not released alone: this ships in the same release as the working-calendar objects and service and the working-day formula functions (ADR-0157 D4). +- 129e637: feat(i18n): console flow labels follow the server's declared fallback chain + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: none — the new member is a response field the console reads, not something a metadata author writes; no skills/ page teaches `GET /i18n/locales` or how the console resolves flow labels + + - **`GET /api/v1/i18n/locales` names the declared fallback chain.** `GetLocalesResponseSchema` (`@objectstack/spec/api`) gains an optional `fallbackChain: string[]`, and the runtime's `/i18n` domain fills it from the i18n service's `getFallbackLocale()` (the stack's `i18n.fallbackLocale`, else its `defaultLocale`), the same accessor the server's metadata translations hand the spec resolvers as `ResolveOptions.fallbackChain`. A service that declares no fallback (no accessor, or an empty answer, such as the core in-memory provider) serves no member. Nothing existing changes meaning. + - **The console loads the fallback locale's flow translations.** The console's language loader reads the chain and `sourceLocale` beside the active language's bundle and, unless the language is the authored one, fetches each fallback locale's bundle and keeps its `flows` group (`withDeclaredFlowsFallback`, `@object-ui/i18n`). + - **Flow labels walk the same locales as the server.** `activeFlowsBundle` returns the fallback locales' rows too, and the new `flowsResolveOptions` hands the spec resolvers `{ locale, fallbackChain, defaultLocale }`. The flow runner (flow name, field copy, option labels), the flow designer and docs viewer (`flowLabelTranslations`, `useFlowLabelTranslations`, which take the declared options) and the stage-change confirm now read a declared fallback locale's text for a label the active language lacks, before the authored label. A stack that declares no fallback keeps "requested locale, then the authored label". + +### Patch Changes + +- 9abc732: fix(share-links): the share-link page names the shared object by its label in the reader's language and no longer lists the fields the object hides + + Clause-②: yes (widening) + Metadata-protocol: none + + `GET /api/v1/share-links/{token}/resolve` answers two more facts, on both of its mounts (the sharing plugin's route and the runtime dispatcher's `/share-links` domain): + + - `link.object_label` — the shared object's label in the request's locale: the request's `Accept-Language` top tag, else the i18n service's default locale, translated the way `GET /meta/object/NAME` translates it: the translation bundle over the served `label`, with the deployment's fallback locale and authored language, and the object's packaged declaration read through the metadata protocol. A renamed object therefore keeps its rename and is not given the bundle's translation of its old label. With no i18n service, or no bundle entry for that locale, the served label is served. An object that declares no label carries no `object_label`. + - `fields[NAME].hidden: true` — for a field the object declares hidden, including the injected scope and queue columns, which are hidden at their source. A field that is not hidden carries no `hidden` key. + + Both public share-link routes (`/resolve` and `/messages`), on both mounts, now answer `Vary: X-Share-Password, X-Share-Password-Encoding, Accept-Language` (the new `SHARE_LINK_PUBLIC_VARY` in `@objectstack/types`). Before, they sent only the two password headers. They still send `Cache-Control: no-store`. + + `ShareLinkResolvedLink` and `ShareLinkFieldDisplay` (`@objectstack/types`) gain the two optional keys, and `buildShareLinkResolveAnswer` takes an optional fourth argument with the request's `Accept-Language` value, the i18n service and the metadata protocol. `registerShareLinkRoutes` (`@objectstack/plugin-sharing`) takes optional `i18n` and `protocol` resolvers, which `SharingServicePlugin` wires to the kernel's `i18n` and `protocol` services. + + The console's share-link page (`@object-ui/console`) titles the page with the label ("Shared Client Brief"), falling back to the object's name from a server that does not send one, and leaves off every field the answer marks hidden, as the record page does. Its resolve and messages requests state the console's UI language as `Accept-Language`, so the label arrives in the language the rest of the page is in. + + Nothing to migrate: a caller that reads neither key is unaffected. +- 2b57044: perf(console): the first load stops downloading the grid and detail packages; `@object-ui/plugin-detail/core` publishes the detail helpers without registering anything + + Clause-②: yes (widening) — one new published `exports` subpath, `@object-ui/plugin-detail/core`, joins what the package accepts; nothing is removed or renamed, and the package root exports the same names as before + Metadata-protocol: none + + `@object-ui/plugin-detail` registers its detail and record-page renderers with `ComponentRegistry` when its root entry is evaluated, and the root reaches every detail surface (and, in the console's build, the grid it draws with). A host that imported one pure helper from the root therefore kept the whole package. The package now publishes a `/core` subpath that registers nothing: `isRefusedFeedRead`, `relatedListEntryNames`, `RELATED_ARRANGEMENT_RECORD_VERSION`, `relatedArrangementFromRecord`, `relatedArrangementToRecord`, `deriveFieldGroupDetailSections`, `deriveHighlightFields`, `resolveDetailSections`, `isWideFieldType`, `prefetchRelatedCounts`, `relatedCountTargetsIn`, `COMPACT_RELATED_ROWS`, `normalizeRelatedListSort`, `seedQueueClaimDecision`, `seedRecordFieldAccess`, `seedRecordVerdict`, and the type `RelatedArrangement`. + + The same names stay exported from the package root, unchanged; nothing to migrate. The subpath ships ESM only (`import`), as the other `/core` subpaths do. The package's ESM build now emits one file per source module (`dist/index.js`, `dist/core.js` and the modules they import), so the record-page caches a `/core` seed writes are the ones the root's hooks read; the UMD build (`dist/index.umd.cjs`) is unchanged. + + The console (`@object-ui/console`, and the shell it draws, `@object-ui/app-shell`) takes these helpers from the subpath, draws the record pointer card's key fields and the approval decision's child tables through `lazy()`, loads the dev-only row-actions page lazily, and registers the tags the grid and detail packages register (`object-grid`, `view:grid`, `detail-view`, `detail-section`, `view:detail`, and the eleven `record:` blocks `details`, `related_list`, `highlights`, `activity`, `chatter`, `discussion`, `path`, `quick_actions`, `history`, `reference_rail`, `alert`) as lazy stubs with the namespaces those registrations declare. Neither package is downloaded on the first load any more; the list and record routes load them with their own route chunks, and any other surface loads them, and registers once, the first time it draws a grid or a detail block. What every page draws is unchanged. +- 645d2bb: fix(console): Studio condition editors list fields by their label + + Clause-②: no (`@object-ui/app-shell` is `"private": true`; flipping the `labelSubjects` default reaches no published export) + Metadata-protocol: none + + The subject list of every Studio condition editor now offers a field by its label, with its CEL path (`record.status`) beside it as secondary text: a hook's "Run only when", an action's "Visible when" and "Disabled when", a page block's "Visible when", and the generic condition field of the metadata forms. The flow Entry condition and the object Validations panel already did. A field with no label, or whose label only repeats its name, still reads as its path. The compiled condition is unchanged. +- de8d549: fix(console, app-shell): discovery starts with the session check, and Setup's open no longer reads the whole object registry + + Clause-②: no + Metadata-protocol: none + + The console asked for `GET /api/v1/discovery` from its main bundle, after the session check had answered and the bundle had downloaded, and the data layer waited for it before the first permission and app reads. `index.html` now sends it during parse, beside `get-session`, and the console's one shared discovery read takes that request, so it is no longer a round trip of its own in the boot. + + Opening Setup (the root of an app whose package holds no objects of its own) read the package's empty object list and then the whole object registry. The root now reads as that app's object routes do: the package list, then the objects its entries require (`requiresObject`), and an object the entered app's bundle holds is answered from the bundle without a request. On the showcase app the registry is about 860 KB; Setup's open there now reads two object lists that answer empty instead. + + What does not change: the routes that read the whole registry before (a record overlay, a record route with no declared record page) still do; which entries the sidebar shows is unchanged. No metadata key, value or default changes. +- c4a73be: fix(mcp): the open MCP door's `tools/list` is a quarter smaller; teaching prose moves to the served SKILL.md + + Clause-②: no + Metadata-protocol: none + + Every MCP connection pays for `tools/list` before any work starts. Its total for an API key on a self-hosted app (17 tools) drops from 47,712 to 36,481 bytes; the descriptions `@objectstack/mcp` owns drop from 18,213 to about 8,740. No tool is removed or renamed, and nothing a tool accepts changes: only description strings. + + Each description keeps what a call needs: the arguments, the confirmation a destructive call takes, the refusal it may answer and what to do about it. Worked examples, answer-reading guidance and edge cases move to the SKILL.md the server serves at `/api/v1/mcp/skill` (and the Console's "Download skill" copy of it): `describe_object`'s field facts, `query_records`' `latestPer` / `expand` examples (its approvals-waiting-on-you filter and the `sys_user` colleague lookup stay in the description, one line each), `aggregate_records` under the `query_records` entry, `get_record`'s `related`, `run_action`'s `FLOW_FAILED` relay, and `create_upload_link`'s read-only and locked-record cases. `validate_expression`'s description now names the facts to pass per site and points at the skill for the full list of checks. + + The skill's `validate_expression` entry now names its `variables` input, and says that at a `flow_condition` the shadowed-read warning, and the binding of a bare name to the variable rather than the field, need it. +- 55020c3: fix(form): formula fields are recomputed from the live inputs before the field rules are judged + + Clause-②: yes (widening) — one new member on the `@object-ui/core` package entry, `planObjectFormulas` (with its `ObjectFormulaPlan` type); nothing removed or renamed + Metadata-protocol: none + + A required field whose `visibleWhen` reads a `formula` field was judged on the formula value the form last read, or on nothing on a create. On a create form the field stayed hidden whatever was typed, or, when the formula was not drawn on the form, the rule faulted on the missing key and every submit was refused. On an edit that moved the inputs across the condition, the field stayed hidden while the server required it. In both cases the user could not save. + + The object form renderer and the console's form-view page now compute the object's formula fields over the record being edited, in the platform's read order, with the canonical `@objectstack/formula` engine, and judge `visibleWhen`, `requiredWhen` and `readonlyWhen` over that record. The formulas are computed for the signed-in user as the server computes them: `current_user` (also `user` and `ctx.user`) carries the user's id and positions. A formula that faults the way a read faults (an operator over an empty operand, an undeclared key, a cycle, a scope root the server does not bind for a formula, such as `previous`) reads `null`, and the rule is judged on that `null`. A formula the form cannot compute is one that reads through a reference, calls `label()` or `current_user.can()`, reads `os`, reads the user when nobody is signed in, is served without its expression, or reads such a formula. A field whose `visibleWhen` reads one is shown and keeps its `required` flag, with one console warning, and the form does not refuse the submit for that rule; the server, which judges the write, decides. Computed values are used for the rules only and are never sent in the write. +- 6f2bd4f: fix(fields): a create form that opens with a lookup value runs that lookup's `lookupAutofill`, and a picker's "+ New" seeds the `dependsOn` parent it filters by + + Clause-②: no + Metadata-protocol: none + + - **Opening value.** A create form can open with a lookup already set: a related list's New links the parent, a URL prefill sets it, or a form view default does. That lookup now fills the targets its `lookupAutofill` declares from that record, the same way a pick does. Example: from an opportunity, Related → Quotes → New opens a quote with Account filled from the opportunity. Only empty targets fill. A value the form opened with is explicit, so `overwrite: true` does not replace it. The fill uses the record the lookup already reads for its label, so no second request is made. The filled values count as opening values: a form nobody has touched closes without the discard prompt. A later pick replaces what the opening fill wrote, as it replaces what an earlier pick wrote. An edit form fills nothing from the stored record. + - **"+ New" in a dependent picker.** When a lookup's picker is filtered by `dependsOn`, its "+ New" now opens the create form with those values already set, under the field name the filter uses (`param`). The new record is then one the picker lists. The one-field inline create, used when no modal host is present, sends the same values. A picker with no `dependsOn` seeds nothing. + - **Hosts.** The form renderer passes a lookup the value it opened with (`openingValue`, create forms only). `onAutofill` now takes `{ opening: true }` for a fill made from that value. The console's `useActionModal` opens an object create form with the `initialValues` the descriptor carries. + + No metadata key is added or changed. +- b2d4355: fix(app-shell, plugin-designer, console): app writes send the app as its author stored it, not as the console's locale serves it + + Clause-②: no + Metadata-protocol: none + + The served app list is translated for the reader's locale, and the metadata save door stores a body verbatim. Four writers seeded a whole-app save from that served list: the Edit app wizard, App management's Disable / Enable / Set default and bulk toggles, the navigation sync that adds or removes an entry when a page, dashboard, report or object is created or deleted, and the Publish button on an unpublished app. In a zh-CN session each of them stored the app's label and every navigation label in Chinese, and readers in every other locale were then served Chinese. Each writer now reads the stored app from the untranslated layers through the new `ObjectStackAdapter.getAuthoredItem(type, name, { packageId })`, and changes only the keys its control owns. The served list is still used to find the app. When the stored app cannot be read, the writer refuses with an error and saves nothing; the Edit app page shows the read error instead of opening the wizard. +- b1eb500: fix(app-shell, data-objectstack, console): view, form, pair-action and report edits start from the stored item, not the translated served one + + Clause-②: no + Metadata-protocol: none + + The served metadata reads are translated for the reader's locale, and the metadata save door stores a body verbatim. Four more writers seeded a whole-item save from a served read, so in a zh-CN session each stored the translations as the item's source text and readers in every other locale were then served Chinese. The view config panel (and its draft-bar resume) seeded its buffer from the served view; the adapter's `updateView`, behind Manage views' Rename, Pin and Set as Default, merged onto the served draft or the served published view; Developer → Public Forms spread the served form view into its Publish and Edit writes and prefilled the thank-you text from it; and Studio's pair actions on an installed app's object buffered the pair's served actions. Each now starts from the untranslated layered read through `authoredBuffer` (the pending draft as stored, else the published item) or, for the live-row writers, `authoredPublished`, and changes only the keys its control owns. A pending draft whose stored copy the layered read does not serve is refused, and so is an item with nothing stored to read: nothing is written from the served copy. The report quick edit now hands its served draft to `authoredBuffer`, so a pending report draft the layers do not serve opens no editor instead of one seeded from the published report. +- 17ceb2d: fix(plugin-designer): the app wizard decides a generated navigation entry's plural label from the object as authored, not as the console's locale serves it + + Clause-②: yes (widening) + Metadata-protocol: none + + When the Create app or Edit app wizard leaves the Objects step, it generates one navigation entry for each newly selected object. The entry carries no label unless the object declares a plural label that differs from its label and its name. That decision, and the text it stored, came from the served object list, which is translated for the reader's locale. So a zh-CN session stored the translated plural, such as `项目列表`, as the app's source text, readers in every other locale were served it, and whether a label was stored at all depended on the editor's language. The wizard now reads each newly selected object from the untranslated layers through `ObjectStackAdapter.getAuthoredItem('object', name, { packageId })`, at the package the served object came from, and decides and stores the authored plural label (`Projects`). The Next button waits for these reads, and the step buttons and the object selection are disabled until they settle, so the selection cannot change under them. If an object's stored definition cannot be read, its entry carries no label and inherits the object's label at render time; it never falls back to the served text. To show the plural in another locale, translate the entry under `apps.<app>.navigation.<object>.label`. Entries already stored are not rewritten. + + `AppCreationWizardProps` gains the optional `readAuthoredObject(objectName)` prop, which `CreateAppPage` and `EditAppPage` now pass. A host that renders `AppCreationWizard` without it gets entries with no label: they inherit the object's label at render time. +- 2fea6d2: fix(plugin-designer, app-shell): a packaged app is saved at its package, not at the package-less address + + Clause-②: no + Metadata-protocol: none + + The Edit app wizard read a packaged app at its package but saved it with no package, and the navigation sync that adds or removes an entry when a page or dashboard is created or deleted read and saved every app with no package. Both now read and save an app a package owns with `{ packageId }` (sent as `?package=`), the row the console serves, the way App management already saves it. An app no package owns, including one served with the `sys_metadata` sentinel, keeps the package-less address. A managed package's sealed app is still refused by the server at either address, and the navigation sync still skips it. +- 20badae: fix(console): an object the presence read served is not read again by name + + Clause-②: no + Metadata-protocol: none + + A list page whose object has a lookup to an object outside the app's package (on the showcase, `sys_user`) asked for that object twice: first in the `GET /api/v1/meta/object?names=` presence read, which already answers with the object's definition, and then by name (`GET /api/v1/meta/object/sys_user`) about 0.7 s later. The by-name read now takes the definition from the presence read when that read served it, so the lookup target costs one request. The same holds for the objects an app's entries require (`requiresObject`) and a dashboard's widget objects, which were also asked by name after their presence read had served them. + + What does not change: a name the presence read left out is still asked by name, so an object that is refused (`OBJECT_PACKAGE_DISABLED`) is still told apart from one that does not exist. A name the presence read has not answered yet is still asked by name. The draft preview still reads every object by name. The definition a scope holds is the same document the by-name read returned. No metadata key, value or default changes. +- 6a35635: feat(console): Change Owner on the record page, in a list's selection bar, and beside the read-only owner of the edit form + + Clause-②: yes (widening) + Metadata-protocol: none + + A record whose object offers Change Owner now shows a **Change Owner** action in its page header. The action appears only where three things hold: the object can have its owner changed (it has a per-person owner that is not pinned read-only), the object's `userActions.transfer` switch is on, and the server's explain engine allows this user to transfer this record. A `controlled_by_parent` detail offers the action only once its author turns the switch on. Objects with `ownership: 'none'`, `managedBy` objects and `sys_*` objects never offer it, even to a platform admin. + + The action opens one dialog. You pick the new owner under the object's own label for its owner field. Where the object has an ownership queue, you can pick a queue instead. You can also ask that the new owner be notified. The dialog sends the change through `data.changeOwner` for one record and `data.changeOwnerMany` for several. Picking the record's current owner is refused in the dialog with the reason shown. A bulk change ends with a report: how many records moved, how many already had that owner, how many did not move, and each row that did not move with the server's own reason. + + A list's selection bar offers **Change Owner** for the selected rows, where the object's switch is on and the explain engine allows this user to transfer the object's records (one question per object, not per row, asked once a selection is open rather than when the list opens). The rows of such an object take a selection even when the user has no bulk Delete and the view authors no bulk actions, so the entry can be reached at all; where the verdict refuses, the bar draws no Change Owner. The server judges every row again. Rows that the switch's `visibleWhen` excludes are left out of the request, and the dialog says how many were left out. + + The Console's edit form now shows the owner, read-only, above the form's fields, with Change Owner beside it when it is offered. The owner field is still not part of what the form saves. Forms embedded outside the Console are unchanged: the owner line appears only where a host mounts `FormOwnerLineContext` (exported from `@object-ui/plugin-form` and `@object-ui/plugin-form/core`). + + New public surface, all additive: + + - `@object-ui/plugin-grid`: `ObjectGrid` takes two new optional props, `onBulkChangeOwner` (wiring it makes the rows selectable and adds the entry) and `bulkChangeOwnerOffered` (`false` holds the entry back while the rows stay selectable); the package exports the action name `CHANGE_OWNER_BULK_ACTION`. + - `@object-ui/plugin-list`: `ListView` takes and forwards both props. + - `@object-ui/plugin-form`: new exports `FormOwnerLine`, `FormOwnerLineProps`, `FormOwnerLineContext`, `FormOwnerActionTarget` and `FormOwnerLineHost`; `@object-ui/plugin-form/core` exports `FormOwnerLineContext`, `FormOwnerActionTarget` and `FormOwnerLineHost`. + - `@object-ui/plugin-detail`: `RecordOperation` gains `'transfer'`, so `useRecordVerdict` and `seedRecordVerdict` accept it. + - `@object-ui/i18n`: every console locale gains `grid.changeOwner` and the `console.changeOwner.*` block. +- 549c9f5: fix(console): full-height edge drawers have square corners + + Clause-②: no + Metadata-protocol: none + + - The console stylesheet gave every dialog surface a 1.25rem corner radius, which also rounded the left and right drawers (the notification center, the side form drawer and every other full-height Sheet). Those drawers sit against the top, side and bottom of the window, so the rounding showed as a notch at their inner corners. The rule now skips full-height edge sheets; they render with square corners. The record drawer, a floating card, now shows its own corner radius instead of the global one. Centred dialogs and bottom sheets keep the rounded corners. Drawer width, animation and content are unchanged. +- cc6f30c: fix(console): an approval request opened from an app's inbox stays in that app, and the record breadcrumb never shows a raw id + + Clause-②: no + Metadata-protocol: none + + Opening a request from the approvals inbox an app mounts (「待我审批」, `approvals:inbox`, or the inbox under the app's `system/approvals`) now opens it inside that app: the app name, the sidebar and the path stay the app's (`/apps/APP/sys_approval_request/record/ID`). It used to open under whichever app listed the request's record object, else the Setup app, so a business user lost their app after every decision. "Open the next one" after a decision stays in the same app, and the last decision returns to that app's inbox. The record card on the request page still opens the record in the app that owns it. Requests opened from no app (Home's 我的工作, a notification, an email link) are unchanged: they still open under the app that owns the record, else Setup. + + A record page's breadcrumb (「OBJECT › RECORD」) drew the record's raw id (`#areq_9e5…`) for as long as the record's read took, then swapped in its title. It now names the record by its object's label while the read is in flight (「审批请求」 for an approval request, 「Lead」 for a lead), then by its title once the read lands, in the same render. A loaded record with nothing to be named by still shows its short id. Every object's record page gets this. + + The page also stays mounted when it steps to another record (the counter's ↓ ↑, `j` / `k`, and the approvals queue's 「open the next one」 after a decision), and its title used to be held across the step: while the next record was read, the breadcrumb named it with the previous record's title, and its favourite label, its "Recently Accessed" entry and the pane bar's title were briefly written with that title too. A title is now read back only for the record it was resolved for, so during the read the breadcrumb names the object, and nothing is written under the wrong record. No locale keys, props or exports change. +- 9b3227f: fix(console): the first-run checklist on Home counts its done rows the way its progress line does, names the Setup app in the reader's language, and folds to one line when two rows or fewer are left + + Clause-②: yes (widening) — @object-ui/i18n adds console.firstRunChecklist.showDoneSplit; nothing removed + Metadata-protocol: none + + The progress line counts the required rows alone, while the control that unfolds the done rows counted every done row, optional ones included, so a managed environment could read "6 of 7 done" above "Show completed (8)". Once an optional row is done the control now names the two counts apart ("Show completed (6 required · 2 optional)"); with no optional row done it reads as before. + + The checklist's description, the built-in AI row's done line and the Connect an AI assistant row's line named "Setup" in English in every language; they now use the Setup app's own label in each pack (for example 系统设置, 系統設定, セットアップ, Configuración). English and German keep "Setup", which is their label. + + Above the page, once two rows or fewer are left to do, the card folds to one line: its title, its progress, each row left by its title and a Set button, and the close button. A language, timezone or currency row's Set opens the full card with that row's editor, and the card folds back once the editor closes; every other row's Set opens the page its row links to. The phone placement after the apps keeps its own fold. No row, completion rule or setting write changes. + + New locale key: `console.firstRunChecklist.showDoneSplit`, in all eleven packs. +- fe75349: fix(approvals): the approval timeline names an unstaffed position by its label, and the platform's own rows read as the system's + + Clause-②: yes (widening) — @objectstack/plugin-approvals adds the optional `ApprovalServiceOptions.positionLabelSource`; @object-ui/i18n adds approvalsInbox.systemActor and approvalsInbox.actSystemNote; nothing removed + Metadata-protocol: none + + When a request goes to the organization's administrators because a position on its approver list has no holder, its timeline note named the position by its machine name ("岗位「crm_sales_manager」无人任职"). The note a reader is served now names it by its label: the reader's language pack (`positions.<name>.label`) first, else the position's declared `label`, else the name as before ("岗位「销售经理」无人任职"). The English the row stores for audit keeps the name. + + On the timeline, a row no person took read its actor as "—", and the routing, submitter-exclusion and no-approver notes read as "Commented". A row with no actor now reads its actor as "System", and a `comment` row with no actor reads as "System note". A person's comment keeps "Commented" and its author. + + New locale keys: `approvalsInbox.systemActor` and `approvalsInbox.actSystemNote`, in all eleven packs. +- dab4712: feat(console): the 「All documentation」 page has the console's top bar, groups its books by app, and searches every article + + Clause-②: yes (widening) — @objectstack/client `meta.getItems` takes an optional `include` (`'content' | 'grants'`, sent as `?include=`) and exports its options type `MetaItemsListOptions`; @object-ui/i18n adds nine help.* keys (two of them plural, with their per-locale forms); nothing removed + Metadata-protocol: none + + - **The console's top bar on every portal page.** `/docs`, a book (`/docs/<book>`) and an article (`/docs/<book>/<article>`) are drawn in Home's frame, whose bar reads 「<product> / Documentation」 (the crumb links to the portal's index) and carries the search, the inbox, the assistant and the avatar menu, so the reader can go back to any app. The portal's own 「Documentation / <title>」 strip is gone. + - **Books grouped by app.** The page lists each app's books under the app's name, as the launcher names it: a book goes under the first app whose navigation links to it (a module's navigation contributions included), else under its package's app; books no app carries are listed last under 「Other documentation」. No card shows a package id; a package's docs with no authored book are named by their app. A platform package's books (`com.objectstack.*`, such as Setup's) are listed only under an app in the member's list that carries them, never under 「Other documentation」, so they are not listed for a member whose app list has no such app. This is what the page lists, not who may read a doc: the server's audience gate decides that, as before. + - **The subtitle and the counts read the session language** (「9 篇」, not 「9 articles」). + - **「Search all documentation」.** A search field on the page searches every listed article's title, summary and body, and lists the matches with the words marked in context; each opens the article in its own book. The bodies are asked once, the first time the reader searches (`GET /meta/doc?include=content`, through the same audience gate as the list). The query stays in the URL (`?q=`). + - **A hand-typed article URL whose book does not hold the article** (`/docs/<book A>/<article of book B>`) now opens the article in its own book; with no book that holds it, the article draws no previous/next pager instead of showing both ends at once. Inside an app, an article whose book is in no package now keeps its 「← Back to <app>」 link. + + `@objectstack/client`: `client.meta.getItems(type, { include })` and the environment-scoped `meta.getItems` send `?include=`; leaving it out sends nothing, as before. `@object-ui/app-shell`: `AppHeader` takes a `docs` variant and `DefaultHomeLayout` a `variant` prop for it. +- 141a826: feat(console): an app's docs page has one navigation — the docs column — with the path to its book and the previous and next article + + Clause-②: yes (widening) — @object-ui/plugin-markdown exports MermaidEnlargeContext and MermaidEnlargeText; @object-ui/i18n adds 12 help.* keys; nothing removed + Metadata-protocol: none + + Inside an app, the documentation pages (`/apps/<app>/docs/…`) no longer draw the app menu beside the docs: the left column is the docs' own, with 「← Back to <app>」 at its top, a title filter, every book of the app's package (the current book open, the others folded, each with its article count; long titles wrap instead of truncating) and 「All documentation →」 at its foot. Every other docs page inside an app (the app's docs index, a book with no articles, a book or doc not found) carries the same 「← Back to <app>」 at its top. The app bar stays, and reads 「<app> / Documentation」; the separate 「Documentation / <title>」 bar under it is gone, and the path above the article names the book (Documentation › <book>). 「On this page」 marks the section being read as the page scrolls, and the article ends with its book's previous and next article. The article column is 720 px wide at 15 px, and a diagram carries an 「Enlarge」 control that opens it full size. + + `@object-ui/plugin-markdown` adds `MermaidEnlargeContext`: a host that provides its words gets the enlarge control on every rendered diagram; with no provider a diagram renders exactly as before. `@object-ui/app-shell` exports `matchAppBySegment` and `useServedAppLabel`, and `isAppDocsPath` beside `isRecordPagePath` from its `ConsoleLayout` module. New `help.*` keys in every shipped locale. No doc content, doc metadata, route or API changes. +- 8145424: feat(i18n): the sign-in page and the in-app language menu offer one list, every interface language + + Clause-②: yes (widening) — @object-ui/i18n adds `appContentLanguages` to the i18n context and the locale key `console.localeSwitcher.appContentDefault` in all eleven packs; `offerableLanguages` is never `null` any more; nothing removed + Metadata-protocol: none + + The in-app language menu used to list only the languages the app declares (four on HotCRM), while the sign-in page, which has no session to ask the app with, listed all eleven interface languages. A language picked on the sign-in page (German, Korean) was then missing from the menu after sign-in. + + Both now list all eleven, as does the profile page's language card. A language the app's own content is not translated into stays selectable: the interface shows in it, and object, field and view names show in the deployment's default language. The menu row of such a language carries one muted line, "App content shows in the default language", and the profile card shows the same line under the picker when one is chosen. The sign-in page marks nothing, because nothing has been read about the app there. + + `offerableLanguages` on `useObjectTranslation()` is now every platform locale table language whatever the app ships. The app's list (`loadLocales`) feeds the new `appContentLanguages`: the table languages it covers, or `null` when not known (in flight, signed out, failed, or naming no table language). `GET /api/v1/i18n/locales` is unchanged and no language pack is added. The organization's default-language setting keeps the app's declared list. +- e25ca63: fix(console, auth): a cold console load sends `me/localization` once, and asks for the cookie session at parse time + + Clause-②: no + Metadata-protocol: none + + On a device's first visit the console sent `GET /api/v1/auth/me/localization` twice. The language seed asked before the app mounted. The localization provider asked again after its own mount, because the seed's request had already settled and requests are shared only while they are in flight. The provider's boot read now takes the seed's answer to the same request once, but only when it was an authenticated answer about the browser's current owner. A re-read after a write to the user's own row still asks the server, and so does any later mount. + + With no stored Bearer (a cookie session), `get-session` was asked by `AuthProvider` only after React mounted. That mount waits on the seed's bounded race, so the session check waited for the language read. `index.html`'s parse-time session check now asks the cookie session's question too, without an `Authorization` header. `preflightAuth()` hands the answer to `AuthProvider` through the existing slot with a null token. A signed-out answer is handed on as well: a body naming no user, or the server's 401 `UNAUTHENTICATED`. A signed-out visitor therefore still sends one `get-session`. `AuthProvider` takes a null-token answer only while no token is stored. A protected route still waits for the session answer, and the seed's race and the language applied before first paint are unchanged. +- 2ad42b5: perf(console): a page load requests the code it needs in one wave + + Clause-②: no + Metadata-protocol: none + + The console's built `index.html` named five of the files every page load runs; the browser found the rest only after downloading and parsing the files that import them, wave after wave, before the first authenticated request could leave. Opening a list or a record page did the same with the page's own code: the route chunk's imports arrived level by level, and the page asked for its data after the last one. Each wave is one more round trip, which is what a hosted console far from its users pays for. + + `index.html` now preloads every file a page load runs, and opening a page preloads the whole closure of that page's code beside the page chunk. Nothing is downloaded that was not downloaded before, and nothing moves between chunks; only the time a file is requested changes. A build-time check fails the console build when a file a load needs would again be found only after the file that imports it. +- 753091e: perf(console): a record page asks its app's object list beside the page list, not after it + + Clause-②: no + Metadata-protocol: none + + Opening a record page inside an app read the page list first and asked the app's object list only once that answer had landed, so the record's data waited one more round trip than a list page's. Both outcomes of the page list read that object list first, so it now leaves in the same round trip as the page list: the same request, earlier. When the app bundle already says it cannot name the record's related objects (no bundle, a draft preview), nothing is started early, and the record page reads exactly what it read before. +- c5f8588: fix(console): an approval request opened with no source app stays in an app instead of landing in Setup + + Clause-②: no + Metadata-protocol: none + + An approval request opened from Home's My work, from the bell outside an app, from a notification or from the e-mail link used to open under the app whose navigation lists the request's record, and otherwise under Setup. It now opens in this order: the app that lists the record's object, then the current app, then the app the person last used, then the first app they can open. Setup is the answer only when it is the current or the last used app. The server's `/system/approvals?request=ID` link, which forwards through `/apps/setup/system/approvals`, moves on to that app too, and so does the approvals inbox opened there without a request. + + On the request page reached this way, the close button and the phone's back link return to the approvals inbox of that app, not to the raw approval request list. A request opened from Home or from the bell is handed the pending queue they list, so the page counts through it and "Open next after deciding" moves on to the next request. The e-mail link and a notification carry only the way back. + + `/apps/com.objectstack.setup/system/approvals`, Setup's own address, is unchanged. +- 2e19f36: fix(console): the language seed's `me/localization` leaves at parse time, beside discovery + + Clause-②: no + Metadata-protocol: none + + On a device's first visit the console's language seed asked `GET /api/v1/auth/me/localization` from the bundle, so the request waited for the whole eager module graph to download and evaluate, about half a second after navigation on a local server and longer on a hosted one. It needs nothing from the bundle except discovery's `locale.supported`, which `index.html` already asks for during parse. A new parse-time script now asks the seed's question the moment that discovery answers, under the seed's own gates (no stored language choice, no cached seed), and leaves the pending response for the seed. The seed takes it once, and only when it is exactly the request it would send itself, `Accept-Language` included, so the page still sends one `me/localization` and the language it picks is unchanged. The seed's 500 ms race and its fallback, the in-flight sharing with the localization provider and the hand-off of the settled answer are unchanged. A failed parse-time discovery sends nothing early, and the seed asks as before. +- 227a16a: fix(ui): danger text is readable in dark theme + + Clause-②: no + Metadata-protocol: none + + In dark theme, `text-destructive` (a menu's Delete, error messages, danger links) used the deep red that is the fill of red buttons, about 1.6:1 on a dark menu. Text utilities now read their own token: each shipped `@theme` maps `--text-color-destructive` to `--destructive-text`, which only `.dark` defines (a brighter red that clears 4.5:1 on every dark surface). Light theme leaves it unset and falls back to `--destructive`, so it is unchanged; `bg-`, `border-` and `ring-destructive` and red buttons keep `--destructive`. New apps from `objectui init` carry the same split, and the Gantt resource view's over-capacity label reads the text token. A host that overrides `--destructive` for its own dark theme can set `--destructive-text` beside it. +- 0a1b69c: feat(approvals): a decided request's step line says where the record's approval went next: on to a later step, or ended + + Clause-②: yes + Metadata-protocol: none + + The single approval request read (`GET /api/v1/approvals/requests/ID`) serves one more fact on a decided request's own route: `flow_route.outcome`, beside `ahead: 'decided'`. Before, a decided route stopped at the request's own step, so an approver reopening a request they had decided could not tell whether the record's approval went on to a later step or ended. + + - `outcome.step` is the run's latest request when it is a later one than this request (a request of the same flow run opened after it, on any node, a later round of the same node included; a pending one wins over a decided one). It is absent when no later request was opened in that run; a request a child run opened is not among them. + - `outcome.status` is that latest request's status, or this request's own when `step` is absent. `pending` with a `step` means the approval went on to that step and waits on its decision. + - `outcome.ended` is `true` only when the record's approval is known to have stopped: the request's run is a root run (not a `subflow` body or a `map` item, whose end is not the approval's), the flow body the run ran holds no `subflow` or `map` node anywhere, regions included (a child run files its requests under its own run, so this run's requests cannot show what it decided, before or after this request), and the run reports it stopped for good, with the same terminal set the dead-run sweep uses. The body the run ran is known only when the body armed now is the flow's newest registration and was registered before the run started, so a flow edited, rolled back or re-registered after a run started is never judged by its current body for that run. `false` means not known to have stopped: the run goes on, is a child run, ran a body that can start a child run, ran a body that is not known, cannot be read, or was opened before this release (the approval node now records on each new request whether its run is a root run). + + `outcome` is absent when nothing past the request is known: no later request was opened and the approval is not known to have ended, or several later requests are pending at once (parallel steps). A pending request's route never carries it. It is served to every reader of the request and says only where the same approval went: the later step's node id and label and that request's status, never the later request's id, approvers, comments or field values. The `ApprovalRequestRow.flow_route` contract type in `@objectstack/spec/contracts` gains the optional member, and `routeOutcome` in `@objectstack/plugin-approvals` is the rule. + + The approval request page (`@object-ui/app-shell`) draws one line under the decided step: "Went on to STEP, waiting for a decision", "Went on to STEP: DECISION", "Went on to STEP, then ended: DECISION", or "The approval ended here". No line is drawn when no outcome is served. `@object-ui/i18n` carries the four new `approvalsInbox` rows in every built-in locale, and the console's request type (`@object-ui/console`) mirrors the new member. + + Nothing to migrate: a caller that does not read `outcome` is unaffected. +- 138faaa: feat(app-shell): on a phone, sign-in lands in an app whose home is its whole menu, and the bottom bar is fixed to Home, Notifications, Approvals and search + + Clause-②: no + Metadata-protocol: none + + Phone width only (below 768 px). Desktop and tablet widths do not change. + + - **Where sign-in lands.** A phone opens the app the person used last. The app the product marks as default is used only when there is no record yet, for example on a first sign-in. With one app it opens that app; with several and neither, it opens the app list. The last app is kept per person with their other console preferences (the `ui.app.last` key), so it follows them across devices. It is read in the same request as those preferences, not in a new one. A desktop still lands on the declared default first, as before. + - **The app's home is its whole menu.** On a phone, `/apps/SEGMENT` shows the app's menu with its groups, order and icons, one row per entry. It no longer redirects to the first entry. This is the sidebar's own menu drawn in a second place, so it cannot list an entry the sidebar hides. 「‹」 on a page one level down goes back to it, and the page comes back scrolled as it was left. An app that shows the member no entry still says so. + - **App switcher.** The app pill at the top left opens a bottom sheet: 「Current app」 with a check, then 「Other apps」 with Setup last, and a search box at the bottom. On a phone, `/home` is that same list as a page. + - **Bottom bar.** The bar has three fixed cells, Home, Notifications and Approvals, and a round search button. They do not change with the app and cannot be configured. Home opens the app's home. Notifications and Approvals open the pages the bell opens, with the bell's two counts as badges. Search opens the command palette. The bar shows only on those three pages; a list, a record, a form or any deeper page has the screen to itself. The bar no longer holds menu entries, a 「More」 cell or pinned entries (objectstack#34594). Pins already stored are ignored, and the drawer's menu search and pin hint are gone. The drawer still opens with a swipe in from the left edge. +- 9ed18a5: fix(ui): danger colours render red in both themes, and light danger text clears 4.5:1 + + Clause-②: no + Metadata-protocol: none + + - The grid and list views' export-error line, and the Markdown caution alert's border and title, set their colour to a bare `var(--destructive)`. That variable holds an HSL triplet, not a colour, so the browser dropped the declaration and the text rendered in the inherited colour. The export-error line now uses the `text-destructive` utility and the caution alert reads `hsl(var(--destructive-text, var(--destructive)))`. The Markdown theme's heading anchors, quote and meta tokens and blockquote border and background had the same defect with other theme variables and now wrap them in `hsl()` too. + - The flow preview's invalid-edge stroke and arrowhead paint with the danger text colour, so they stay readable on the dark theme. + - The light theme now sets its own `--destructive-text`, red-700 (`#b91c1c`, `0 73.7% 41.8%`), so `text-destructive` reads at 6.47:1 on white instead of 3.76:1. `--destructive`, the brand red used for button and badge fills, is unchanged. The same value is in the stylesheet that `objectui init` generates. + - A theme's `error` colour applied through the theme engine still sets `--destructive`, and now also derives a danger text colour for each mode from it (same hue, lightness moved until it reads at 4.5:1 on that mode's surfaces), written as `--destructive-text-light` and `--destructive-text-dark`. The shipped stylesheets read those into `--destructive-text` in their light and dark blocks, so a custom red drives danger text and stays readable in both modes. A host stylesheet that overrides `--destructive` by hand should set `--destructive-text` beside it in each mode. +- 76cb366: fix(console): Studio's kanban card "Click to open" offers only Default and "Don't open" + + Clause-②: no + Metadata-protocol: none + + On an object's list the record name opens the full page and the hover icon opens the side panel, so `navigation.mode` `drawer`, `page` and `new_window` parse there and change nothing; only `none` still counts. The kanban card section of Studio's list-view inspector offered all four. It now offers Default (no key) and "Don't open" (`none`). A view that already stores `drawer`, `page` or `new_window` shows that value flagged "(deprecated)" in the select, and picking Default removes the key. Opening such a view writes nothing. The spec is unchanged, and page blocks that carry `navigation` keep every mode. + + The studio catalogue drops the three labels nothing reads any more: `engine.studio.inspector.listView.kanbanCard.mode.drawer`, `.mode.page` and `.mode.newWindow`. +- 27e414b: fix(ui): a view a read-only package ships hides only Delete in Manage views and opens its view panel read-only + + Clause-②: yes (widening) + Metadata-protocol: none + + This applies to a list view that ships inside a read-only package (a code or installed package). The console no longer offers that view the two writes the server refuses: + + - Manage views hides Delete on its row. + - The row's configuration entry reads "View config". It opens the admin's view panel read-only: the configuration is shown read-only, no edit reaches the list, and there is nothing to save. The panel has no Save, no draft bar to publish or discard, and only Close. + + Rename, pin and set as default stay offered. They land in that package's customization (the console creates it on first use), so no lock icon is drawn on the row. The list's options menu offers Rename on such a view again. A shared view the console saved into the customization package, and the reader's own view, are unchanged. The toolbar's personal list changes keep saving to the reader's preferences. + + `@object-ui/plugin-view`: `ViewTabItem` gains an optional `definitionReadonly` field. When it is `true`, `ManageViewsDialog` hides Delete and labels the configuration entry "View config" (`view.showViewConfig`, a new key in every locale of `@object-ui/i18n`). Rename, pin, set as default and the configuration entry stay. `readonly` still wins when both are set. Without the field a row behaves as before. `ViewTabBar` does not read it. + + The read-only verdict is the one the footer calculation menu already uses. The console takes the package the view row was served under and reads the server's `writable` verdict for it from the package list it holds for the session. While that list is unread, or when the read fails or does not name the package, everything stays offered as before and the server's refusal still applies. The view panel reads the same answer that drew the Manage views row, so a row's "View config" never opens an editable panel. If the answer arrives after the admin has started editing, the panel turns read-only and discards the edit: the list's preview goes back to the stored view. +- eb53d63: fix(studio): the key-fields editor no longer previews a record-page strip + + Clause-②: no + Metadata-protocol: none + + The default record page draws no key-field strip, so Studio's object settings + stop drawing a "Highlight strip preview" under the `highlightFields` list. The + ordered rows stay: order still decides which fields each surface takes. The + `engine.studio.settings.highlightPreview` catalogue key leaves the studio + namespace (English and Chinese). +- 035a12c: feat(ui): every modal dialog draws one lighter surface, short create and edit dialogs are one narrow column, and a create dialog can stay open for the next record + + Clause-②: yes (widening) + Metadata-protocol: none + + What a user sees: + + - Behind a dialog the page is only slightly dimmed (10% in light mode) and no longer blurred, so it stays readable. The dialog is a white card (the raised grey in dark mode) with a hairline edge and a translucent outer ring, a 12px corner, and anything inside it drawn at the shared 40px control height (`h-10`: inputs, select triggers, default and icon buttons, and any other `h-10` element such as a 40px avatar) one step smaller, 32px from the `sm` breakpoint up; the phone sheet keeps its 44px touch targets. Confirmation dialogs, the required-fields prompt and the record create and edit dialog all share it. + - The create and edit dialog's title is 16px and follows the object's icon, and its padding is 20px. + - A dialog that lays out at most six fields and declares no `columns` (not on the form, not on any section) draws one field per row in the narrow `lg` size (672px); six is the maintainer's choice (ruling of record 7061696632 on objectstack-ai/objectstack#35980). This reverses the at-least-two-columns default such a dialog drew before. Seven fields or more, any declared `columns`, an authored `modalSize` or a maximized dialog lay out as before. + - The console's list 「New」 dialog (and a related list's child create) has a 「Create more」 switch. With it on, a save keeps the dialog open on an empty form with focus on the first field, and the list behind refreshes; with it off, a save closes the dialog and opens the new record as before. The switch is remembered per object in this browser. + - ⌘↵ (Ctrl+Enter on other platforms) saves the create and edit dialog, and the Save button shows the keycaps. A master-detail dialog (a record with line items) takes neither the shortcut nor 「Create more」. + + What a developer sees (`Clause-②: yes (widening)`, additions only): + + - `ModalFormSchema.createMore?: boolean` offers the switch on a `create` dialog that a host mounts itself (the `object-form` renderer's `formType: 'modal'` keeps it off), and `ModalFormSchema.onSuccess` receives a second argument, `{ createMore: true }`, when the dialog stays open. A host that passes neither sees no change. + - New i18n key `form.createMore` in every locale. + - The console's global `[role="dialog"]` corner rule and the blurred overlay on dialogs are gone; the look lives in `@object-ui/components` (`src/lib/dialog-surface.ts`), reached from the `dialog` and `alert-dialog` primitives through declared Shadcn patches. The card carries the `dialog-surface` class, which the console's shared floating-surface shadow skips; a host stylesheet that adds its own shadow to `[role="dialog"]` should skip it too. Popovers and the bottom drawer keep their rounded corners by their own containers; side drawers are unchanged. + + Nothing to migrate. +- 2955685: perf(console): an app route draws the console's frame right after the session read, and the chrome no longer waits for the route's own metadata + + Clause-②: no + Metadata-protocol: none + + Opening an app page by its URL (a reload, a pasted link) showed the full-screen splash until the permission answer, the app list, the admin verdict and the page's own metadata reads had all arrived. On a hosted environment the permission answer alone takes seconds. + + - `LoadingFallback` (the console's boot-gate fallback) and `AppContent`'s readiness gate now draw `ConsoleBootShell` on an `/apps/:app/*` route once the session has answered with a user: the chrome's frame (the sidebar at the width the reader left it, from 768 px up with grey blocks where its head and foot put the app menu, the search, the bell and the account; the top bar on a phone, except on a record page, and on an app's docs pages, which have no sidebar; the route's skeleton in the slot: the shape the chrome draws on that route), with no app name, no navigation entry and nothing to press, because those are what the gates still decide. The splash stays for the session read itself and for every other route. The console's permission scope uses the same fallback. + - `AppContent` mounts the console chrome once the app list, the permission answer, the admin verdict and the deployment flags (`/auth/config`, which the chrome's navigation gates read) are in; the route's own metadata reads no longer hold it on the first paint. The route slot draws the route's skeleton until they land, and a route element whose chunk is still loading draws the same skeleton instead of the full-screen splash inside the chrome. + - The frame and the first route skeleton carry `data-boot-splash`, so readiness waits and the reads deferred to the first paint past the splash wait exactly as before; `data-boot-shell` tells the frame apart. +- 6aacad9: fix(fields, console): condition editors offer a multiple: true field only what its evaluator answers + + Clause-②: no + Metadata-protocol: none + + A `select`, `lookup` or `user` field declared `multiple: true` holds a list, and the condition editors used to treat it as a single value: they offered Equals and Is any of on it. The engine refuses those operators on such a field with 400 `INVALID_FILTER`, a dataset filter answered them with 0, and a flow edge guard written as `record.attendees == 'u1'` is false for every record. Each editor now passes the field's `multiple` to the shared filter builder, which offers such a field Contains, Does not contain, Is empty and Is not empty, the operators a `multiselect` already got: + + - the criteria editor (`@object-ui/fields` `FilterConditionField`, e.g. a sharing rule's criteria); + - the Studio filter editor for a dataset's scope and measure filters and a field's related-list filter. A stored `$eq` or `$in` on such a field now opens in Source instead of as an Equals row; + - the Studio flow edge rows. On a list-valued field they write Contains as CEL list membership, `record.attendees != null && 'u1' in record.attendees`, and Does not contain as `record.attendees == null || !('u1' in record.attendees)`. A guard spelled that way opens as a row again. + + A single-value field of the same types keeps its operators. The Studio field list now carries the declared `multiple`, so the CEL condition builder also words and writes Is empty on such a field as an empty list, as the spec's 「is empty」 table says. No metadata key, value or default changes. +- 3ae62ac: feat(ui): one 8px corner for every control, a white content area beside a light grey sidebar, and badges at weight 500 + + Clause-②: no + Metadata-protocol: none + + - **Controls share one corner, 8px.** Buttons, inputs, selects, toolbar controls, menus and tab lists are `rounded-md`, which the console theme now sets to 8px (it was 12px, derived from the 14px card corner). What sits inside one of them, a tab trigger in its list or a menu row, is `rounded-sm`, 6px. Cards keep their 14px corner, and dialogs, popovers and drawers keep theirs. + - **Chips follow.** A lookup chip in a list cell (it was 4px), a person or record chip in a form's lookup field and its selection tray, and the list's Sort, Filter and condition chips (they were pills) take the same 8px corner. Coloured option badges stay pills. + - **The content area is white.** The console's `--background` is white instead of the grouped grey, so a list, a record page, a kanban board and the top bar sit on white. The sidebar is the one light grey surface beside it, with its hairline border; in the dark theme the content area is the darkest step and the sidebar one step lighter. + - **Badges are weight 500.** `Badge` was `font-semibold` (600), outside the console's two text weights; it is `font-medium` (500). This is a declared local patch on the Shadcn primitive (`badge-medium-weight` in `ui/scripts/shadcn-local-patches.mjs`), so it survives a registry sync. +- 6c7c6db: feat(ui): the console's pages set text in two sizes, 14 and 12, and two weights, 400 and 500 + + Clause-②: no + Metadata-protocol: none + + - **Two sizes.** Body text, list cells, field values, inputs, menu items, toolbar controls and buttons are 14px (`text-sm`); field labels, column headers, counts, timestamps, hints and chip text are 12px (`text-xs`). The hard-coded 13px is gone from the console's runtime pages, and the 10px, 11px and other odd sizes there are 12px. The in-cell editor is 14px, like the cell it edits. + - **Two weights.** Record names, tabs, buttons, section titles and column headers are 500 (`font-medium`); body text is 400. Weight 600 and 700 stay only on page and dialog titles 18px and larger. `DropdownMenuLabel` is weight 500 through a declared local patch on the Shadcn primitive (`dropdown-menu-label-medium-weight` in `ui/scripts/shadcn-local-patches.mjs`), so it survives a registry sync. + - **Not changed:** Studio and metadata administration internals, the settings pages, developer tools, phone-only layouts, avatar initials, authored markdown and SDUI heading typography, the docs reader's prose size, and the shape of coloured option badges (still pills). + - A list column with no declared width measures its content, so it grows with the 14px text; a column whose width a view or a user set keeps that width and shows about 8% fewer characters before it truncates. +- 0628e08: perf(fields): the line-item grid's body loads on first use, and the console's first load no longer carries it + + Clause-②: yes (widening) + Metadata-protocol: none + + The line-item grid (the `grid` field and the line items of a master-detail form) was the largest field widget in the console's first-load bytes, though only a form with line items draws it. Its body now loads the first time a grid is drawn, or earlier, when a form that draws line items mounts. + + - **The same two components.** `GridField` and `LineItemsField` keep their names and their props. They now render the grid's body once it has loaded; a grid mounted before that shows a small busy placeholder until it arrives. A grid mounted after the body loaded renders it directly, and a grid that showed the placeholder draws the body once it arrives and never remounts it on a later render, so its rows and focused cell stay. + - **One new export, `preloadGridField()`.** It starts loading the body ahead of the first grid. It is safe to call often, its promise settles once the body has loaded, and it never rejects: a failed load is reported by the grid that needs it, through the nearest error boundary. + - **The record forms wait for it.** `MasterDetailForm` and the record page's line-item editor derive a grid's columns from the child object's schema, and now show those columns only once the body has loaded as well, so on a form's first open the grid never shows the placeholder. `LineItemsPanel` starts the load when it mounts. + - **The helpers stay where they were.** `evalArith`, `computeRow`, `lookupAutofillPatch`, `columnHelpByField`, `UNTOUCHED_NEW_ROW`, `isUntouchedNewRow` and the `GridColumn`, `ColumnCurrencies` and `ColumnHelp` types are exported as before and load with the package. + - **The console loads it on demand.** The console's build puts the grid's body in a chunk of its own (`fields-grid`), loaded on demand, so its first load is about 6 KB (gzip) smaller. + - **The liveness ledger points at the helper's new file.** In `@objectstack/spec`, the evidence path for `lookupAutofill` in the field liveness ledger now names `widgets/GridField.ts`, where `lookupAutofillPatch` lives; the verdict does not change. + + A host that renders `GridField` or `LineItemsField` itself and needs the grid in its first render calls `preloadGridField()` earlier and waits for it, as the record forms do. No metadata key, value or default changes. +- 71e02ff: fix(studio): the CEL condition builder offers membership, not equals, on a list field + + Clause-②: no + Metadata-protocol: none + + On a field that holds a list (a `multiselect`, `checkboxes` or `tags` field, or a `select` / `lookup` / `user` field declared `multiple: true`), Studio's condition builder (hook, validation-rule, action-visibility, page-block and flow entry conditions) offered equals / not equals and the ordering operators. CEL compares the whole list with one value there, so `record.labels == 'frontend'` was false for every record (and `!=` true for every record), and the author got no signal. + + Such a field is now offered what the list toolbar's filter builder offers it: contains, does not contain, is empty and is not empty. Contains writes `S != null && V in S` and does not contain writes `S == null || !(V in S)`, the same spelling a flow edge's condition rows write; both are null-safe. A row moved onto a list field leaves equals for contains, and a row moved off one leaves membership for equals. A stored condition that compares a list field with `==` / `!=` now opens in the expression editor exactly as stored, never rewritten. A single-value field is offered what it was before. + + New locale key: `engine.inspector.condition.op.notContains` in the studio catalogue (en, zh). No props or exports change. +- 865df27: fix(console): the view and page-block filter editor offers a multiple: true field only Contains, Does not contain and the empty checks + + Clause-②: no + Metadata-protocol: none + + A `select`, `lookup` or `user` field declared `multiple: true` holds a list. Studio's filter editor for a view's filter, a page's base filter and tab presets, and a related-list block's filter built its field list without `multiple`, so it offered Equals and Is any of on such a field, and the saved filter was refused by the data door with 400 `INVALID_FILTER` for every reader of that view. Every host that builds the editor's field list now carries the field's declared `multiple` (the generic metadata editor, the list-view and view-variant inspectors, the in-app view configuration panel and the page block inspector), and the shared filter builder offers such a field Contains, Does not contain, Is empty and Is not empty, the operators the other condition editors already give it. + + A single-value field of the same types keeps its operators. A stored Equals rule on a list-valued field still opens as its row, so it can be changed. No metadata key, value or default changes. +- 4c93f88: fix(console): the view and page-block filter editor offers a picklist field's options instead of a free-text value box + + Clause-②: no + Metadata-protocol: none + + Studio's filter editor for a view variant's filter, a page's base filter and tab presets, and a related-list block's filter built its field list without each field's declared `options`, so on a `select` (picklist) field the value was a plain text box. An author typed the label they see, the saved filter held a value no record stores, and the view or block showed no rows with no error. Every host that builds the editor's field list now carries the field's declared choices (the generic metadata editor, the view-variant inspector, the in-app view configuration panel and the page block inspector, as the list-view inspector already did), so a picklist field's value is a picker over its options and stores the option's value. + + A field with no declared options keeps its text box. Stored filters are not rewritten. No metadata key, value or default changes. +- 0d2bb8d: fix(console): while a record loads, the record drawer's title shows a placeholder instead of the record's internal id, and a related list's count badge waits for its count instead of showing 0 + + Clause-②: no + Metadata-protocol: none + + On a slow network the record drawer named the record `#8e25d44e…` until its read landed, and every related list's header read 「0」 before its rows arrived — a false "no related records". The drawer's record row now draws a placeholder until the record reports its name (a loaded record with nothing to be named by still shows its short id, and a read that ends without a record — not found, refused, failed — names the object instead), and a related list or compact related card draws no count until its count is known; a list whose read really comes back empty still shows 0. +- 76bff41: fix(plugin-approvals): the decide refusal of a submitter's own approval, and a submitter notice that names several slots, read in the reader's language + + Clause-②: yes (widening) + Metadata-protocol: none + + **Widened door response.** The approvals decide door (`packages/rest/src/approvals-routes.ts`) gains one optional member, `userMessage`, at the top level of its flat `{ code, error }` refusal body. Two rows answer it today: the two `403 FORBIDDEN` decide refusals of a submitter's own approval, the `excludeSubmitter` refusal and the administrator-override self-approve refusal. It is absent whenever no producer marked one, so every other refusal body is unchanged. + + - **The decide refusal.** When the decision door refuses a submitter's own approval (the step sets `excludeSubmitter`, or the administrator override would approve the actor's own request), the thrown error now carries a `userMessage`: the same refusal, with its remedy, in the decider's language (`approvalDecideRefused*` in every approvals message pack). A position is named by the decider's pack label, then its declared label, then its name. The error's `message` is unchanged: it stays English for the developer and the log. With no reader language, `userMessage` is English and names no user id. + - **The REST door.** The approvals routes answer a refusal the service marked with `userMessage` at the top level of their flat `{ code, error }` body, beside `error`, on every mapped row. A refusal with no marking answers exactly as before. + - **The console.** The record page's `type: 'api'` actions (the request's Approve button) read a flat body's top-level `userMessage` as well as the `error.userMessage` of the ADR-0112 envelope, and show it in place of the English `error`. The Approval Center's inline decision toast shows a marked refusal as written, before its generic line. + - **The submitter notice.** A notice for a slate of 2 to 8 slots names each slot inline, one keyed type word and value per slot (`approvalNoApproverHoldingSlots2` to `…Slots8`, derived from each pack's own `approvalNoApproverHolding`, `approvalNoApproverSlot` and `approvalNoApproverSlotSeparator`), so the messaging service renders every slot in the recipient's language at delivery. A slate of more than 8 slots still names its slots in English inside the recipient's sentence. The literal English body is unchanged. +- 6206939: fix(console): the approvals inbox row figure is the field the object declares, not a guess from field names + + Clause-②: no + Metadata-protocol: none + + Each request row in the console's approvals inbox shows a figure after the object name, and the inbox's "Amount (high→low)" sort orders on it. That figure is now the first `highlightFields` entry of the request's object (ADR-0085: the object's one curated list of its most important fields, first entry wins where only one fits) that names a numeric field — `number`, `currency`, `percent`, `summary`, or a `formula` whose `returnType` is `number`, `currency` or `percent` — and that the object does not declare `hidden: true`. The value comes from the request's submitted snapshot, formatted as before. + + Before, the console picked the first snapshot key whose NAME looked like money (`amount`, `total`, `fee`, `budget`, …) with a non-zero value, so an incidental money-named field declared before the headline figure was shown instead of it, and an app could not change the choice without renaming or reordering its fields. + + Visible change: an object whose `highlightFields` names no numeric field (or that declares no `highlightFields`) no longer shows a figure on its inbox rows, and those rows sink to the bottom of the amount sort. To show one, list the headline numeric field in the object's `highlightFields`. A declared figure of 0 is now shown (the old guess skipped zeros). The figure is read from the same per-object metadata read the inbox already made, so no request is added. +- 4d4ec16: feat(console): from 768 px up a sign-in lands in the last-used app, and the platform home page retires + + Clause-②: yes (widening) + Metadata-protocol: none + + From 768 px up there is no platform home page any more. A sign-in, the SSO round trip and the old `/home` address all land the person in an app their permission sets show, in this order: the app they last had open, while it is still there for them; else the app the product declares `isDefault`; else the first app somebody put into the environment (never Setup or Studio). + + - A person with no such app at all stays on `/home`, which now draws only the no-apps empty state: 「No applications yet」, and for a viewer who may add an app the same doors the sidebar's 「Add app」 offers (build with AI, start from a template, the app marketplace). An administrator's first-run checklist stays above it. + - An administrator's first-run checklist, while it has open items, moves to the top of the Setup app's first page (the page Setup opens on). It is drawn from 768 px up only, and a phone is unchanged. + - `@object-ui/app-shell` exports `SetupFirstPageSlotProvider`, through which a host puts its element above the Setup app's first page. + - The console's Home affordances (⌘⇧H, the way back from a missing app, Studio's way out) go where the landing goes. Where the chrome cannot yet tell which apps a permission set hides (Studio, the AI pages, or before that answer arrives) they point at `/home`, which resolves the landing itself. + - The SSO sign-in's callback is the console root instead of `/home`, so it lands the same way. + - A phone is unchanged: it still lands in the last app first, and `/home` is still its app list. + - `@object-ui/app-shell` exports `resolveDesktopHomePath(apps, lastApp)`, the desktop's Home. + - `RedirectWithSplash` takes an optional `state`, so the hops from `/` and `/home` into the landing app keep what the visit carried (an old `/ai` address's Builder handoff). + - Every console locale gains `home.noAppsAddDescription`. +- 8018e00: feat(console): the first-run checklist asks for the organization's basics in one form, leaves the rest optional, and follows the administrator as a 「Get started n/m」 pill in the sidebar + + Clause-②: yes (widening) + Metadata-protocol: none + + The administrator's first-run checklist had five setup rows that each saved on their own (the organization's name, language and country, timezone, currency) and counted every row, so it only went away once mail, invitations and AI were set up too. Following the maintainer's ruling on objectstack#36739: + + - **One form, one save.** A single 「Organization basics」 row opens one form with the organization's name, default language, country, timezone and currency. Values the server does not hold yet are suggested from the browser, and a setting with neither a value nor a suggestion must be filled in like the name; nothing is written until Save, which renames the organization (when the name changed) and writes the four settings in one call. A refused rename or a refused setting shows on its field, as before. The row is done once the organization has a real name and all four settings are set. + - **Only the basics are required.** Mail, invitations, the built-in AI provider and connecting an outside assistant become optional rows (marked 「Optional」); they still tick themselves when the server says they are done. On the hosted profile, 「Put in your first app」 stays required. The checklist is complete, and stands aside on Home, once the required rows are done; its progress (n/m) still counts every row. + - **A pill in every app.** For the administrator only, a 「Get started n/m」 pill sits at the bottom of every app's sidebar (on the folded icon rail it keeps its icon, with the count in its accessible name and tooltip). A press opens the checklist in place in a popover; the popover's X only closes it, and 「Hide on this device」 under the list hides the pill and Home's card. On a phone, which has no resident sidebar, the pill sits after the app's menu on the app's home page. It disappears once the required rows are done, or once the administrator hides it on this device. + - **Setup's first page keeps the full list**, done rows included, even after the checklist is complete or hidden; a completed list folds to one line with 「Show list」. + + `@object-ui/app-shell` exports a product-neutral `SidebarFooterSlotProvider` (with its `SidebarFooterSlot` and `SidebarFooterSlotPlace` types; places `'sidebar' | 'phoneAppHome'`) that the console fills; the shell names no checklist. `@object-ui/i18n` replaces the per-setting checklist strings in all eleven packs. Added under `console.firstRunChecklist`: `showList`, `hideHere`, `organizationBasics.{title,todo,name,nameRequired,prefilled,save,saved}`, `pill.{label,count,aria}`. Removed from `console.firstRunChecklist` (no reader is left in the console; a consumer that indexed them reads the new keys instead): `showDoneSplit`, `confirm`, `prefilled`, `organizationName.{title,todo,action}`, `languageCountry.{title,todo,saved}`, `timezone.{title,todo,saved}`, `currency.{title,todo,saved}`. +- 76eea0f: fix(hosted): printing a record works on a kernel with no `http.server` (a hosted tenant kernel), and an api action whose service is absent shows a readable, localized line instead of the route text + + Clause-②: yes (widening) + Metadata-protocol: none + + `POST /api/v1/print/records` (service-print) was mounted only on the kernel's `http.server`. A hosted tenant kernel owns no socket and registers no `http.server`, so the host's `createHonoApp` catch-all, and the `/actions` door's in-process forward of a `type: 'api'` action, handed the request to the runtime dispatcher, which had no domain for it and answered `404 ROUTE_NOT_FOUND`. A hosted HotCRM's Print Quote showed its user `Route Not Found: /print/records`. + + - `@objectstack/spec/contracts` declares `IPrintDoorService` (one optional, transport-neutral member, `handlePrintDoor(request: Request): Promise<Response>`). A service without the member still satisfies it. + - `PrintServicePlugin`'s `print` service gains `handlePrintDoor`, which runs the same registration the `http.server` mount runs, on a private route table that never listens (`createDoorTableMember`), so every answer is the mount's own. The `http.server` mount is unchanged, and no path is mounted twice. `@objectstack/service-print` now depends on `@objectstack/plugin-hono-server` at runtime. + - The runtime dispatcher gains a `/print` domain that claims exactly `POST /print/records` and forwards the request, body unread, to the REQUEST kernel's member (never the host kernel's scoped fallback). Every other shape under `/print` keeps the dispatcher's `404 ROUTE_NOT_FOUND`. With no `print` slot, or one without the member, the door answers `501 NOT_IMPLEMENTED` naming `@objectstack/service-print`. The door stays behind the dispatcher's authentication and project-membership gates. + - The console shows a `type: 'api'` action's `501 NOT_IMPLEMENTED` refusal (the service behind its target is not composed in this environment) as the new `actions.serviceUnavailable` line in the user's language (zh-CN: 「此操作所需的服务在当前环境未启用,请联系管理员。」) instead of the server's operator text. A producer-marked `userMessage` still wins. A `503 SERVICE_UNAVAILABLE` (a transient outage) and a route miss (`ROUTE_NOT_FOUND`, `ENDPOINT_NOT_FOUND`, for example a misspelled `target`) keep the server's own sentence. +- 9c57bd2: refactor(studio): every Studio address comes from one builder; no address changes + + Clause-②: yes (widening) + Metadata-protocol: none + + Studio redesign groundwork (#36895, epic #36890). Every place that produced a `/studio...` URL now calls one builder, so a later change can move an item type to its metadata address in one place. Every address is byte-for-byte what it was: no link, bookmark or redirect changes. + + - **Console.** `studioAddress.ts` in `@object-ui/app-shell` builds every Studio address: the landing, a package, a pillar, an item (`studioItemPath`), the "All metadata" area, and the draft review links. `studioAddressTable.ts` lists every address family, every `?surface=` spelling and every query parameter, with what each becomes on the metadata address. The retired `/interfaces` redirect keeps exactly the parameters that table marks. New exports from `@object-ui/app-shell`: `STUDIO_ROOT_PATH`, `STUDIO_HOME_PILLAR`, `studioLandingPath`, `studioPackagePath`. Existing exports keep their names and values. + - **Server.** `studioChangesReviewLink` and `studioItemReviewLink`, new in `@objectstack/types`, build the review links that `os meta register` prints and that the MCP authoring tools return after a draft save. The text an AI is handed is unchanged. + - **Guards.** A test under `ui/` refuses a hand-built Studio address in any ui source. A test in `@objectstack/types` refuses one in any server package, and holds the review links quoted by the `objectstack-mcp-build` skill's evals equal to what the builder returns. +- a68b475: feat(studio): a collapsible left menu of six groups replaces the top pillar nav + + Clause-②: yes (widening) + Metadata-protocol: none + + ADR-0084 (amended) · #36899, part of #36890. + + - **Studio's one navigation is a left menu.** The top bar's Data / Automations / Access / All metadata switcher is gone. Every Studio page (a package's pillars and area, the package-less flows `~org`, and the cross-package leg `~all`) draws the same menu of six groups: Data, UI, Automation, Platform, Access, AI (数据、界面、自动化、平台、访问、AI). Each group lists the metadata types the package holds (the directory's own rule, `scopeDirectoryEntries`), with a type count per group and an item count per type, and a search box that narrows the entries. A type entry opens that type's list in the area; an item of an object, flow or permission set still opens its designer. Four entries are not a type: Organization flows (`~org`, under Automation), Default sharing (the Access pillar's OWD overview, under Access), Diagnostics (under Platform) and Positions and permissions (the environment catalog on `~all`, under Access). + - **It collapses like the app sidebar, under its own cookie.** It is the app sidebar's primitive: the header's toggle hides and shows it, the state survives a reload under `studio_menu_state` (never the app sidebar's `sidebar_state`), and below 768 px it is a drawer. `SidebarProvider` (`@object-ui/components`) takes a new optional `cookieName` prop for that; the default is unchanged. + - **The menu names the `system` group Platform / 平台 and the `security` group Access / 访问**, the amended ADR-0084's group names, through its own `studioMenuGroupLabel`. The shared domain dictionary (`translateMetadataDomain`) is unchanged: Setup's datasource pages and the rest of Studio still say System / 系统 and Security / 安全. + - **`~all` is drawn in the builder's shell.** `/studio/~all/metadata/*` is served by the same route as a package's area, so it has the left menu too; the landing's frame no longer draws it. A `~org` area URL (or `?package=~org`) now lands on the package-less flows instead of being read as a package. + - **「‹ Back to app」 names the current package's app** (decision 5), never a remembered app of another package; a package with no app names the package and goes to the apps home. + - Changes and Publish stay at the right end of the top bar, beside Cancel and Save. +- 355c73c: feat(studio): ⌘K on every Studio design page lists the package's whole menu and its items + + Clause-②: no + Metadata-protocol: none + + Studio redesign: an author switches between items with ×, ‹ › and ⌘K · #36900, part of #36890. + + - **⌘K / Ctrl+K opens the command palette on every Studio design page.** That covers a package's pages and its "All metadata" area, the organization's own flows, and the cross-package positions-and-permissions catalog. Until now only the Studio start page had a palette, and the cross-package catalog had lost the one it used to have. + - **On a package it lists the left menu, group by group**: Data, UI, Automation, Platform, Access, AI (数据、界面、自动化、平台、访问、AI), in the menu's order and under the menu's names. Each group holds the menu's own entries (each type's list, Organization flows, Default sharing, Diagnostics, Positions and permissions), then every item of the types it lists, the package's customizations included. Each item shows its type on the right; a customization is marked "Customization of" the package's name. The packages stay listed, so another package is one pick away. On a package the palette no longer lists every package's objects and flows: the package's own items replace them. The organization's flows and the cross-package catalog keep those lists and add their own menu entries. + - **A pick opens what the menu and the lists open**: an object, a flow or a permission set in its designer, any other item on its own page in "All metadata", exactly where its list row leads. A menu entry goes where the menu entry goes. + - **It never drops unsaved work silently.** A pick, like Studio's Back to app, asks first whenever the page holds unsaved edits, the "All metadata" item page's included. A pick of the page already open on another view (Default sharing, from the Access page) reopens that page on it; a pick of the page already shown just closes the palette. + - The query matches an item by its label, its name or its type, and a menu entry by its label, its type or its group. While the package's lists are still loading, an empty result says "Searching…". The item lists are read only once the palette opens. + - Pressing Escape to close a dialog over a full-screen item editor (the palette, for one) no longer also leaves full screen. +- 5727092: fix(console): the approvals inbox status filter offers Cancelled + + Clause-②: no + Metadata-protocol: none + + On the **Submitted by me** and **All** tabs of the approvals inbox, the status filter listed Pending, Approved, Rejected, Recalled and Returned for revision, but not **Cancelled**, although cancelled requests show in the same list with their own badge and the server answers `GET /api/v1/approvals/requests?status=cancelled`. The filter now offers Cancelled, and choosing it lists only the cancelled requests. + + The options are now drawn from the approval contract's status list (`APPROVAL_STATUSES` in `@objectstack/spec/contracts`) rather than typed out one by one, so a status the platform adds later appears in the filter without a console change. Each option keeps the label its badge shows. + + Nothing to migrate. +- d25d912: fix(console): the approvals inbox keeps its tab, filters, search and sort across a request's page and Back + + Clause-②: no + Metadata-protocol: none + + Opening a request from the approvals inbox and pressing Back used to bring the inbox back on "My Pending" with every filter cleared: the tab, the status, process and object filters, the search text and the sort were held in component state only, and the inbox is rebuilt when the reader comes back. Someone working through "All" filtered to "Recalled" had to pick the tab and rebuild the filters after every request. + + They now ride the inbox's address as page-scoped params: `scope` (the tab: `submitted` or `all`), `status`, `process`, `object`, `q` (the search text) and `sort` (`oldest` or `amount`). So Back, a reload and a copied link all reopen the inbox as the reader left it. + + - A value at its default is left out, so an untouched inbox keeps a bare address. + - Every change replaces the current history entry instead of adding one, so Back leaves the inbox rather than stepping through filter changes. + - The search text reaches the address after the same short pause the server search already waited for. A search typed and opened at once is written before the request opens, so Back still returns to it. + - A value the inbox does not offer (an unknown tab, sort or status, or a status on "My Pending", which has no status filter) reads as the default. A process or object the address names is checked once, when the first requests arrive, and is dropped only if those requests are the whole list (on "My Pending", or when the first page holds every request) and none of them carries it. On "Submitted by me" and "All", a value past the first page is kept and shown in its dropdown, so a filter picked after loading more pages survives Back, a reload and a copied link. + - Switching tabs still clears the filters, search and sort, now in the address too. Other params are kept. + - The `?request=` notification link still opens that request. + + The tab rides `scope`, not `tab`, because `tab` is the console's reserved record-page tab param. Nothing to migrate. +- e91149e: fix(console): the profile Language card says it is the same setting as the globe menu + + Clause-②: no + Metadata-protocol: none + + The Language card on the profile page described itself as the language for notifications and messages only, and said the interface language was chosen separately from the globe menu. Both controls write the same `sys_user.locale` column and the console applies it as the interface language, so saving the card switched the whole console. The card's description (`profile.language.description`, in all ten built-in packs and in the console's own fallback text) now says it is one setting for the interface and for what is sent to the user, the same one as the globe menu. The zh-Hans text uses full-width punctuation. Nothing to migrate. +- 58e1a3b: fix(auth, console): saving your name on the profile page keeps the page on screen and shows "Profile updated successfully."; a language save that changes the interface language still confirms + + Clause-②: no + Metadata-protocol: none + + `useAuth().updateUser` (`@object-ui/auth`) installed the answer of better-auth's `POST /update-user` as the session user. That endpoint answers `{ status: true }`, not the user, so for a moment the signed-in user had no `id`, `name` or `email`: the header showed "?" and "User", and every consumer keyed on the identity dropped its children and mounted them again. In the console the page went blank, its data was read again, and the profile card's success alert, which is local state, was lost. `updateUser` now keeps the same user and applies the fields it wrote to it, the way better-auth builds the stored row. The page is not remounted, and the alert stays. The avatar upload and remove, which call `updateUser` too, no longer blank the page either. + + The profile page's Language card (`@object-ui/console`) also confirms a save with a toast. A save that changes the interface language remounts the page under the console shell's language key, by design, and that remount took the card's inline alert with it. The console's toaster sits above that key, so the toast stays. A save that does not change the interface language shows the inline alert as before, and the toast beside it. + + Nothing to migrate. +- adb3aef: fix(console): Settings, Packages, Audit Log and the connector pages send the stored bearer token, so a session the rest of the console accepts works there too + + Clause-②: no + Metadata-protocol: none + + These Setup surfaces called their endpoints with the session cookie only (`credentials: 'include'`), while the rest of the console sends the stored bearer token through its authenticated fetch. A session held by its bearer token alone (a second local runtime on the same host replaced the cookie, the cookie was blocked as a third-party cookie, or the cookie jar was cleared) therefore worked everywhere except here, where each page printed the server's `401` instead: "Authentication is required to access this endpoint.", a bare `UNAUTHENTICATED`, or, on the Audit Log, the raw response body followed by "No audit entries". + + They now go through `createAuthenticatedFetch` from `@object-ui/auth`, the path every other console request takes: every `/api/settings` call and the judged client-address read of the Authentication and Access policy pages, the Audit Log read, the connector credential and connection doors, the Packages list (the Installed Apps address included), and this runtime's own install ledger (`/api/v1/marketplace/install-local*`) and cloud-connection reads (`installed`, `org-packages`). The session cookie still rides along (`credentials: 'include'` is unchanged), so a cookie session behaves exactly as before, and a `401` now reaches the console's session-ended check as it does on every other page. Nothing changes in what the server accepts. + + A failed Audit Log read no longer draws the "No audit entries" empty state, and its alert shows the refusal's own sentence when the response envelope carries one, or "Failed to load audit log" otherwise, never the raw response body. +- ad604c1: fix(console): the developer pages and the device sign-in approval send the stored sign-in token, so a session held by its token alone works there too + + Clause-②: no + Metadata-protocol: none + + The developer integrations page, the agent-connect section (discovery and creating an API key) and the device sign-in approval (claim, approve, deny) asked this server with the session cookie only, so a session held by its sign-in (bearer) token alone was refused there. They now send the stored token as well, as the other same-server console requests do. The session cookie is still sent, so a cookie session behaves exactly as before, and a refused request now reaches the console's session-ended check. Nothing changes in what the server accepts. +- 93bd459: feat(console): an app's documentation pages draw in the app shell from 768 px up + + Clause-②: no + Metadata-protocol: none + + From 768 px up every app page lost the top bar and keeps the app menu, search, notifications and account in the sidebar. An app's documentation pages (`/apps/APP/docs`, a book, a flat doc link, an article) were the one exception: they kept the top bar at every width and mounted no sidebar. They now draw like every other app page there: no top bar, the resident sidebar with its usual head (the app-name menu, collapse, search, notifications) and foot (the account), and the page header's button group (assistant and help) at the top right. + + The documentation still has one navigation, its own: the sidebar's body carries the docs column (「← Back to APP」, every book of the app with the current one open, a title filter and 「All documentation」) in place of the app's menu. The reader no longer draws that column inside the page there. The app's other docs pages (its docs index, a book with no articles, a book or doc that is not found) carry the same column in the sidebar instead of a back link above the page. + + Unchanged: every docs address resolves to the same page as before, and a phone keeps its app bar, no sidebar and the in-page column. The `/docs` portal is not changed by this release. Nothing to migrate. +- 3570b81: fix(console): a session the server answered "not shown" sends no first-run checklist reads on its next console opens + + Clause-②: no + Metadata-protocol: none + + Since the first-run checklist's reads moved above every app route, every session holding any capability sent `GET /api/settings` after the first paint on every console open, only to learn it may not write `localization` and is never shown the checklist: a plain member, and an ordinary organization owner on the cloud control plane (it holds `setup.write`, but that plane's `localization` manifest asks `manage_platform_settings`). The provider now remembers that answer on the device, per organization, user and capability set, for one day, and asks nothing while it stands. An administrator's reads are unchanged; a changed capability set, another user or organization, an expired record, or a failed read reads again. +- c8f44e8: fix(console): a signed-in open asks `GET /api/v1/i18n/locales` once, not twice + + Clause-②: no + Metadata-protocol: none + + The console has two readers of the locale list: the globe menu's locale codes (`loadLocales`) and the language load, which reads the server's declared fallback chain beside the active language's bundle (objectstack#36809). Each sent its own request, so every signed-in page open asked the server the same question twice. Both now share one answer per page load (`localesRead.ts`), and a language switch reuses it too. A failed read is not kept, so the next reader asks again, as before. +- @objectstack/sdui-parser@18.7.0 + ## 18.6.0 ### Minor Changes diff --git a/ui/apps/console/package.json b/ui/apps/console/package.json index 948e7565d57..1236593d9fb 100644 --- a/ui/apps/console/package.json +++ b/ui/apps/console/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/console", - "version": "18.6.0", + "version": "18.7.0", "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 18f42fb4fa6..dd43f43a80b 100644 --- a/ui/packages/app-shell/CHANGELOG.md +++ b/ui/packages/app-shell/CHANGELOG.md @@ -1,5 +1,3256 @@ # @object-ui/app-shell — Changelog +## 18.6.0 + +### Minor Changes + +- 0739dee: fix(objectql)!: a field that is `required` and hidden by its own `visibleWhen` is required only when shown, so one admin setting no longer locks every record outside the condition + + Clause-②: yes (narrowing + widening of the required write contract) — widened: an insert or update whose record a `required` field's own `visibleWhen` cleanly hides no longer needs that field, and an explicit null onto a row already shown and empty is accepted. Narrowed: a write that moves a record INTO the condition while that field is empty is refused; 18.5.0 accepted it. + Metadata-protocol: semantic + + <!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed or renamed, and nothing stored is rewritten: what moved is when the engine enforces required on a field that also declares visibleWhen. The one-line fix for a refused write is in the body: fill the field in the same write that moves the record into the condition. --> + + **BREAKING** for flows, bulk updates, imports and API PATCHes that move existing records into a `required` field's `visibleWhen` condition without filling the field. Such a write is now refused with `required` naming the field (on a bulk update, one such row refuses the batch). Fill the field in the same write. A field with `required` and no `visibleWhen` is unchanged. + + **What changed (ADR-0113 D1 and D5, amended).** A field that declares `required: true` and its own `visibleWhen` used to be enforced on every save. In Studio an administrator can add one in a few clicks, and from then on every record that fails the condition refused every write, even an edit of an unrelated field, naming a field nobody could see. The engine now judges such a field from its visibility on the write: + + - the predicate evaluates cleanly to anything but TRUE on the record (the stored row with the write over it), so FALSE, or `null` such as an unset boolean: the field is not required for that write, so a record outside the condition can be created and edited, and the form's clear-on-hide `null` is accepted; + - the predicate is true: the field is required by the same non-regression rule `requiredWhen` uses, against the prior record, which the engine now reads on update for objects with such a field; + - the predicate cannot be evaluated: it counts as shown, the field stays required exactly as before, and the server logs a warning naming the field and the fault. + + The predicate is evaluated with the acting user bound as `current_user`, so a role-gated field is judged per writer; a system write with no user counts as shown. A `formula` field it reads is computed over the record first, as a read of that record computes it. A formula that faults for a reason a read shares (an empty operand) is judged on the `null` a read serves; a formula whose read value the write path cannot know (it reads through a reference, calls `label()`, calls `can` on a write that picks no permission-gated option and so resolves no permission map, reads `current_user` on a system write with no user, or reads such a formula at any depth) counts as shown; the system-write case is logged as `no-acting-user`, as the direct `current_user` spelling is. Only the field's own `visibleWhen` is read: a field group's `visibleWhen` and form-view predicates are not. + + The refusal for such a field now comes from the rule pass rather than the record walk. A single-fault write gets the same `required` code and sentence; a write with several faults may name fewer of them in one `400`, or answer a dangling reference first, and a `beforeUpdate` hook now runs before the refusal and may fill the field. + + **A formula-driven `visibleWhen` on the form.** The form computes the object's formula fields over the record being edited before it judges the field rules (the form-side recompute in `@object-ui/core`, `@object-ui/components` and `@object-ui/console`), so it shows such a field where the server requires it. A formula the form cannot compute (it reads through a reference, calls `label()` or `can()`, reads `os`, or reads the user when nobody is signed in) leaves the field shown and required, and the server decides on save. + + **`@objectstack/lint`.** Three new warnings at `objectstack validate` and the object save door, on a `required` field with a `visibleWhen`: the predicate reads through a reference field (the server cannot evaluate it, so the field stays required everywhere); the predicate reads a `formula` field (with the counts-as-shown consequence when a formula it reads, at any depth, reads through a reference, calls `label()`, or calls `can`, which a write computes only when it picks a permission-gated option); and `storage.notNull: true` beside the pair (the column still refuses the null on a record outside the condition). + + **`@object-ui/app-shell`.** Studio's field inspector shows the reference-read and formula-read warnings under the Visible-when editor of a required field. + + **`@objectstack/spec`.** The `required` and `visibleWhen` descriptions on `FieldSchema` say how the two combine. +- 61722e9: feat: Change Owner cascade — a relationship declares `transferBehavior: 'cascade'`, and the Change Owner dialog offers it as a tick + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: follow-up #36713 + + A Change Owner can now move related records along with the record, relationship by relationship. + + - **The declaration.** A `lookup` or `master_detail` field takes `transferBehavior: 'none' | 'cascade'`, beside `deleteBehavior` (omitted means `'none'`). `'cascade'` on the child's reference field to a parent says: when the parent's owner changes, the child records that point at it and are owned by the parent's previous owner may move to the new owner too. No other child records move; there is no filter key. + - **Refused where it could never act.** The key is refused on any other field type, `'cascade'` is refused on a reference to a `sys_` object and on a multi-value reference (`multiple: true`), and `'cascade'` is refused on a field of an object that does not offer Change Owner itself: one that is not structurally eligible (no reassignable owner), a `controlled_by_parent` detail (its access already follows its master), or one whose `userActions.transfer` is off. Each refusal names the field and the fix. + - **The request.** `POST /api/v1/data/:object/:id/change-owner` and `POST /api/v1/data/:object/change-owner` take an optional `cascade: [{ object, field }]` naming the relationships to move along (`data.changeOwner` / `data.changeOwnerMany` in `@objectstack/client`). A relationship that does not declare `'cascade'`, or whose child does not offer Change Owner, is refused `400 VALIDATION_ERROR` before anything is written; so is a cascade with a queue target. Each cascaded record is updated as the caller, so it needs the caller's own transfer grant on the child object. Each relationship's outcome in the answer's `cascade[]` lists every record the caller's write refused, with its id, code and sentence: a related record whose `owner_id` is locked on it (read-only, or under a `readonlyWhen` that holds) is refused `FIELD_NOT_ACCESSIBLE` and keeps its owner, as the record itself would be, while the record's own move stands. One call moves at most 500 related records; the records past that limit are counted in `remaining`, still with the previous owner, not listed. When a relationship's records could not be read, its outcome carries `readFailure` and none of them moved. + - **The candidates.** `GET /api/v1/data/:object/change-owner/cascades` (`data.changeOwnerCascades`) lists the relationships declared to an object whose child offers Change Owner. A child whose declared API exposure does not serve `update` is left out, and so is a child of a disabled package. + - **The Studio.** The field form and the object form's field rows offer `transferBehavior` beside `deleteBehavior`, on `lookup` and `master_detail` fields; the row's label and help text ship in the metadata-forms locale packs of `@objectstack/platform-objects`. + - **The dialog.** For a person target, the Change Owner dialog lists those relationships on which the explain engine allows the caller the `transfer` operation, one tick each, sends the ticked ones, and draws each relationship's outcome, every record it did not move included. + + A plain `owner_id` update is unchanged: the declaration is read only by the Change Owner action. +- bfd1049: fix(core, console): a banned user's hand-over follows each object's Change Owner switch, and the ban dialog says why a record stays + + Clause-②: no + Metadata-protocol: semantic + + An object's Change Owner switch (`userActions.transfer`) now also decides whether the offboarding hand-over (`POST /api/v1/security/users/USER_ID/assigned-work/transfer`) moves the object's `owner_id`, and how the count (`GET /api/v1/security/users/USER_ID/assigned-work`) reports it. The hand-over reads the same resolution the Change Owner action refuses by (`resolveUserActionTransfer`), so the two never disagree: + + - An object that turns the switch off keeps its records' owners where they are. Before, the hand-over moved them. + - A `controlled_by_parent` detail that leaves the switch out keeps its owner (the default is off there), as before. A detail that sets `userActions.transfer: true` now has its owner handed over like any other object. Before, every detail's owner was skipped. + - The object's own user fields (an approver, an assignee) are handed over whatever the switch says. + + A kept owner is still counted. Before, a detail's owner was left out of the count; now its row answers `transferable: false` with `reason: 'transfer_off'`. A multi-valued user field answers `reason: 'multi_valued'`. `reason` is a new optional member of each `objects[]` row in `security.assignedWork.count`'s answer (`UserAssignedWorkSummary` in `@objectstack/client`, `UserAssignedWorkHoldReason` in `@objectstack/core`). It is present exactly when `transferable` is false. + + The ban dialog words each kept row by its reason. A kept owner reads "Not handed over: this object keeps the owner of each record (Change Owner is off for it)." (zh: 不会交接:该对象的记录负责人保持不变(该对象已关闭“更改负责人”)。). A multi-valued row keeps its own sentence ("Lists several people, so it cannot be handed over here."), and a kept owner never shows it. The new `console.assignedWork.ownerKept` key is in all eleven UI locales. + + To keep the old hand-over of an object you switched off, set `userActions.transfer` back on for it. Before this change the switch gated only the Change Owner action; it now gates that action and the hand-over, and nothing else: a plain `owner_id` write (an import, a hook, a `PATCH`) still needs only the transfer grant. +- 9b6db73: feat(spec, ui): a master_detail child is a table in the record overview by default + + Clause-②: yes (widening: a master_detail FK with no `relatedList` now reads as `'primary'`) + Metadata-protocol: semantic + + A `master_detail` child used to be a side list unless it also declared `inlineEdit`. Now the relation type decides: a `master_detail` FK that declares no `relatedList` is a body table in the parent's record overview. `inlineEdit` is no longer needed for that; it stays what it was, the write side (whether the edit form inlines the child as line items). + + - `relatedList: false` hides the list, `relatedList: true` keeps it a side list (a card in the related column, a tab on the tab row), `relatedList: 'primary'` is unchanged. A `lookup` FK with no `relatedList` stays a side list. + - `isBodyTableRelationship` is still the one judgement. The field-group placement check at `defineStack` and at the publish door follows it, so a field group may now name a plain `master_detail` child to position its table. Studio reads a plain `master_detail` FK as "primary" and writes an explicit `true` when you pick "Show". + - Placement: the body tables of a synthesized page are drawn in the overview's left column above the field sections (under the stage bar and key fields), in the parent's `relatedLists` order. A field group that names one still positions it. They never get a tab or a related-column card. The drawer uses the same page. + - An empty body table draws its column headers and one empty row holding the empty sentence and a New button. + - The table shows 10 rows by default (the page can set its own page size). "Show all N" expands it in place, and ↗ opens the child list filtered to the parent. + - Totals come from the server: the parent's `summary` field over the same child rows when there is one, otherwise a sum aggregate over every child row of this parent (the existing data query, no new endpoint). They are drawn in the table's summary row. The old "this page" sum of the shown rows is gone; a data source with no `aggregate` draws no total. + - A `master_detail` related list placed on an authored record page gets the same body-table treatment (the totals and the empty row). + + To keep an existing `master_detail` child as a side list, write `relatedList: true` on its FK. +- c7174c3: fix(record-page): business dates read as dates, Save is the edit state's primary button, a new detail line starts on its defaults, and the tabs follow the header with no blank band + + Clause-②: yes (widening) + Metadata-protocol: semantic + + Four things on the record page. + + **Dates.** A `date` field that declares no `format` read as a relative phrase on the record page ("6 days ago", "Tomorrow") while the list beside it wrote the date ("Nov 13"), so the reader had to work the day out. The record page's field sections and its highlights strip now write the date itself, with its year, as the list's columns do; the relative phrase (an overdue deadline's "Overdue 5d" included) is the date's tooltip, and a deadline past due still reads red. A declared `format`, `'relative'` included, still wins. A `datetime` field already read as an absolute date there (its cell's default face is the compact one, never the relative phrase), and is now pinned to stay so. The record footer's created and modified times keep their relative wording, and card surfaces (kanban, gallery) are unchanged. `@object-ui/fields`' cell props gain `absoluteDate`, read by the `date` cell. + + **Edit-state buttons.** In the record page's edit state, Cancel drew as the filled primary button and Save as an outline one, so the hand fell on the button that throws the edit away. Save is now the one filled button, after Cancel, the order a form's footer uses. `page:header` now makes a host button declaring `variant: 'primary'` the primary over the page's own actions, in the place the host gave it; no other host button declares one, so every other header is unchanged. + + **New detail lines.** A line added to a master-detail table in the record page's edit state started blank, so a required column with a default (a status that defaults to "Pending") read red although the save then stored the default. A new line now starts on the child object's static defaults, the values a create form seeds; a default the server resolves at insert (`NOW()`, a CEL expression) is left to the server. A new line's empty required cell reads red only after a save was refused, with the server's reason listed under the table; a stored line is flagged as before. A line added and never edited, holding only its defaults, is still skipped at save like a blank one; once the user edits a cell of it, it is input and is saved, even when every value they typed equals a default. `LineItemsField` gains `newRowValues` and `newRowRequiredShown`; a line its Add starts on `newRowValues` carries the `UNTOUCHED_NEW_ROW` mark (a symbol key no payload carries) until its first edit, and `isBlankRow` reads that mark. `@object-ui/fields` exports `UNTOUCHED_NEW_ROW` and `isUntouchedNewRow`. A host that passes neither prop sees no change. The save request and its transaction are unchanged. + + **The band above the tabs.** The record page's scroller and its column layout each padded their top by 24px on a desktop, so a 48px empty band stood between the header and the tab row. The scroller now pads only its sides and bottom, and the column layout keeps a 12px top on every width, so the tabs follow the header at the gap the rest of the page uses; on a phone the title block keeps 16px to the tabs. The print chrome and the approval actions bar that render above the columns keep their own top margin, and an authored page the page renderer draws keeps its own top padding. Side padding is unchanged. +- d6be99d: feat(console)!: an object's list opens a record one way — the name opens the page, the hover icon opens the side panel; `navigation.mode` is deprecated + + Clause-②: yes (narrowing) + Metadata-protocol: semantic + + <!-- adr-0087: not-required (runtime-export-retired @object-ui/components#NavigationOverlayProps.maximizable, @object-ui/plugin-list#ListViewProps.recordOpen) the retired operands are a prop of the drawer component and a host prop of the list, in published ui package entries; no packages/spec schema, no registered node type, no ADR-0087 conversion surface and no stored shape names them, so there is nothing for `objectstack migrate meta` to rewrite --> + + **BREAKING** for a host that passed `NavigationOverlay` its `maximizable` prop or passed `ListView` a `recordOpen` choice. The maintainer ruled one way to open a record from an object's list, with no setting (「这样就不需要任何设置」), and deprecated `navigation.mode` (「废弃」). + + On a Console object list the record's name now opens the full record page, and the icon shown beside the name while the row is hovered (「在侧边打开」 / "Open in side panel") opens the record in the drawer over the list. There is no setting to choose between them: the Display menu's 「打开记录:抽屉 / 整页」 section and the browser-kept preference behind it are gone. A touch screen has no hover, so there the name opens the page. A ⌘/Ctrl or middle click on the name still opens the page in a new tab. + + The drawer is a card floating 8 px clear of the window's top, right and bottom edges, rounded and shadowed. Its full-width "maximize in place" state is gone (a reload lost it, and the full page is the wide face): the bar's one ⤢ opens the full page. The page's 「收为抽屉」 / "Collapse to drawer" hop is gone with it. + + A page the list opens remembers the list in its history entry (`location.state.from`): the list's URL (view, filters, sort, search, grouping, page), its view's name, the rows it showed and, new here, the count its query matched (`total`). A reload of the tab keeps it, and going back to that URL restores the list's scroll position. A page opened any other way carries none. + + `navigation.mode` (`NavigationConfigSchema.mode`) is deprecated on an object's list (`@deprecated`, `[DEPRECATED]` describe; ADR-0087 D3 semantic entry `navigation-mode-record-open-deprecated`). The key stays in the shape and every value still parses, so existing metadata loads. On an object's list (a list view, an object's `listViews`) `drawer`, `page` and `new_window` change nothing: a view that declares one behaves as a view that declares nothing. `none` keeps "rows open nothing", because a read-only list that started opening records would be a regression nobody chose; prefer `navigation: { preventNavigation: true }`. `navigation.openNewTab: true` stays live: on an object's list the record's name then opens the full page in a new tab, and the list stays. A page's blocks that carry `navigation` (a list block, the timeline, an embedded view) still honour `drawer`, `page` and `new_window` as before: keep the key there. + + The i18n keys `list.recordOpen`, `list.recordOpenDrawer`, `list.recordOpenPage`, `list.optionsMenu.recordOpenAlwaysPage`, `detail.collapseToDrawer` and `console.objectView.openAsPage` are removed from every pack, and `console.objectView.openInSidePanel` is added. + + What leaves, and what to write instead: + + - FROM `NavigationOverlayProps.maximizable` TO nothing, in the components package: the drawer has no full-width state. Fix: delete `maximizable`; the drawer's ⤢ opens the full page. + - FROM `ListViewProps.recordOpen` TO nothing, in the list plugin: the Display menu has no Open records section. Fix: delete `recordOpen`; the list opens a record one way. +- f3c9d42: feat(spec, ui): a master_detail child is a tab by default; a field group puts it in the overview and the form + + Clause-②: yes (widening: `@objectstack/spec/data` exports `isGroupPlaceableRelationship`, `fieldGroupsPlaceRelationship` and the `BodyTableContext` type, and `isBodyTableRelationship` takes an optional second argument) + Metadata-protocol: semantic + + A `master_detail` FK that declares no `relatedList` used to put its child list into the parent record's overview as a table (since #35597). Now it is a tab of the record page with its count, like any other related list, `inlineEdit` or not. It goes into the overview only where a field group of the PARENT names it (`fieldGroups[].relatedList`). + + - Placed by a group, the child's table is drawn at that group's position in the overview, the parent's create and edit forms inline it, and the record page's Edit saves the record fields and the rows in one save. Its tab stays on the tab row too, with its count. + - `relatedList: 'primary'` on the FK is unchanged on the record page: a body table with no group, and no tab of its own whether or not a group positions it. Its forms follow ruling B like every other child: a field group naming it inlines it in the parent's create and edit forms, `inlineEdit` or not, and with no group naming it the forms do not inline it, even with `inlineEdit`. `relatedList: true` keeps a tab that no group may place, and `false` hides the list. + - A field group may name exactly what it could name before: a plain `master_detail` child or a `'primary'` one. `isGroupPlaceableRelationship` is that test; `isBodyTableRelationship(field, { placedByGroup })` is still the one body-table judgement. + - `inlineEdit` on the FK no longer inlines a child in the parent's form by itself (maintainer ruling B: only the field group decides). It now only picks the form factor of a child a group places: `'grid'`, `'form'`, or `true` / absent for the shape-picked default. A child with `inlineEdit` that no group names is a tab and is not in the form. + - `os lint`: `relationship/line-items-inline-edit` now suggests a field group on the parent (with its required `label`) instead of `inlineEdit: true`, and only for a FK a group may place; `relationship/association-inline-edit` and `relationship/inline-edit-needs-bulk` judge the children a parent group places; the field-consumer rule credits a child's inline grid columns only when a parent group places it. + - The showcase invoice and expense report, and the CRM opportunity, gain a field group naming their lines, so their forms and record pages keep the line table. + - In the entry form a placed table sits at its group's place too: between the sections of the groups around it, or in a tab of its own (labelled with the group) in a tabbed form. A form whose sections name no field group keeps it below the record's fields. + - Studio's field-group picker offers the same children as before. The relationship field inspector reads a plain `master_detail` FK as "Show", and "Show" leaves the key absent so a group can still place it. + + To keep a master-detail child's table in the overview and its rows in the form (including a child that set `inlineEdit`), add a field group to the parent that names it, in the place the table should sit: + + ```ts + fieldGroups: [ + { key: 'basic', label: 'Basic information' }, + { key: 'lines', label: 'Lines', relatedList: 'order_line' }, // or 'order_line.order' for one FK + { key: 'terms', label: 'Terms' }, + ], + ``` + + Such a group holds no fields. Or write `relatedList: 'primary'` on the child's FK to keep it in the overview with no group. A group may name only a list it can place: for an `inlineEdit` child on a `lookup` FK, or on a FK declaring `relatedList: true`, also write `relatedList: 'primary'` on the FK (a `master_detail` FK may instead drop `relatedList: true`). A form view that declares its own subforms still inlines what it declares. +- 8df7bf2: feat(spec): an object's `relatedLists` is its record page's tab list — only the listed related lists show, in order, the attachments, approvals and activity-stream tabs are placed by object name, and an entry can carry its list's title and columns + + Clause-②: yes (widening) + Metadata-protocol: semantic + + A record page's tabs are now declared on the parent object, in one place: + + ```ts + relatedLists: [ + { list: 'quote_line', label: 'Line items', columns: ['product', 'quantity', 'unit_price', 'amount'] }, + 'task', + 'sys_attachment', + 'sys_approval_request', + 'sys_activity', + ], + ``` + + - **No `relatedLists` (or an empty one): nothing changes.** Every related list shows, in the derived order, then attachments, approvals and the activity stream. + - **A declared `relatedLists` now decides which tabs show**, not only their order. A related list no entry names shows no tab; before, it still followed the listed ones. Removing an entry removes its tab. Body tables a field group places in the overview (`fieldGroups[].relatedList`) stay at their group, and the tab such a `master_detail` table also keeps on an undeclared page shows only when an entry names it, and `relatedList: false` on the child's FK still hides a list. + - **This narrows the #35889 note** ("Its tab stays on the tab row too, with its count"): the tab of a `master_detail` child that a field group places in the overview stays only while the parent declares no `relatedLists`; once it declares one, that tab shows only if an entry names the child. + - **The three built-in tabs by object name**: `'sys_attachment'` (attachments; shown only when listed, and still only when the object enables files), `'sys_approval_request'` (approvals; still only on a record with requests, and when unlisted it follows the listed tabs), `'sys_activity'` (the one activity stream; when unlisted it closes the strip). A built-in is written only as its bare name: `{ list: 'sys_attachment', … }` is refused at parse. `'sys_comment'` and `'sys_audit_log'` are parts of the stream, not tabs: `os validate` warns (`related-list-stream-part`) and prescribes `'sys_activity'`. `'sys_attachment'` on an object without files warns (`related-list-attachments-off`). + - **An entry's own title and columns**: `{ list, label?, columns? }` wins over the child FK's `relatedListTitle` / `relatedListColumns`, which keep working unchanged. The columns are child field names, used wherever the list is drawn (its tab, and the body table a field group places); a dotted column (`account.industry`) walks the child's relationships, as `relatedListColumns` does, and a name that resolves to no field of the child is refused (`related-list-column-unknown`) by `os validate`, `os build` and the metadata write door. + + - **The generic object form** (metadata admin) edits `relatedLists` with its own chip input: a bare name and an object entry both show and both survive add and remove (the entry's title and columns beside its name; they are edited in Studio). Its help text states the tab-list meaning in every translated locale. + - **Studio** (object settings, Record page tabs): the editor lists the entries in order, the built-in tabs among them, and offers the built-ins not yet listed (attachments only when the object enables files). A relationship row's edit sets its own title and columns, and clearing both writes the bare name again. The relationships not listed are shown below as having no tab. A move, a removal or an add keeps every entry's object form and every built-in name. + + What to check in an app: an object that already declares `relatedLists` and leaves some related lists out now shows only the listed ones, and shows no attachments tab unless `'sys_attachment'` is listed. List every tab the page should keep, or remove `relatedLists` to show them all. A child list another package adds is hidden too until the parent names it, which a build accepts only when that package is in the parent's stack; letting a package place its own list is a later change. ADR-0087 semantic entry `related-lists-declared-is-tab-list`. +- 170ca48: feat(spec): a field group lists its own members and their order (`fieldGroups[].fields`) + + Clause-②: yes (widening) + Metadata-protocol: added + + A field group may now list which fields it shows and in what order: + + ```ts + fieldGroups: [ + { key: 'basic', label: 'Basic', fields: ['account', 'name', 'valid_until'] }, + { key: 'terms', label: 'Terms', fields: ['terms'] }, + ] + ``` + + The record page, the create and edit forms and the drawer show the group's fields in the list's order, whatever order the object's `fields` declares them in, so a group can be reordered without moving any field (and without changing a list view's default column order). + + Nothing changes for an object that writes no `fields` on its groups: a group without the list still holds the fields whose `group` names it, in field declaration order. `Field.group` is the older spelling and is still read; it is not deprecated for removal. + + The two spellings must agree. The object parse refuses a field one group lists while its own `group` names another declared group (reported at both places; a `group` naming no declared key is not another group, so the list wins), a field two groups list, a name one list repeats, and `fields` on a group that places a related list (`relatedList`). A field whose `group` names a listing group that leaves it out is shown after the listed fields, never dropped. A listed name the object does not declare is skipped, so removing a field never makes the object unparseable; `os lint` warns about it (`field-group-member-unknown`). + + New export: `readFieldGroupMembership` (`@objectstack/spec/data`), the membership `deriveFieldGroupLayout` places sections from, for editors that also show hidden fields. + + Studio: dragging a field inside a group, or into another group, now writes those groups' `fields` lists and leaves the object's field declaration order alone. Only the ungrouped bucket, which has no list, still reorders by declaration order. Moving a field to another group from the field inspector does the same once a list is involved. + + Field-level security: the object document served to a caller who cannot read some fields keeps each group's `fields` list, with the hidden names filtered out and the rest in order, so the record page and forms keep the layout for that caller. +- d33bf5a: feat(spec): an object extension says where the fields, groups and child lists it brings go (`place`), and a child list another package brings is no longer hidden by the parent's `relatedLists` + + Clause-②: yes (widening) + Metadata-protocol: semantic + + An `objectExtensions` entry can now place what it brings on the object it extends: + + ```ts + objectExtensions: [{ + extend: 'account', + fields: { tax_id: { type: 'text', label: 'Tax ID' } }, + place: [ + { field: 'tax_id', group: 'basic', after: 'industry' }, + { group: { key: 'tax', label: 'Tax' }, after: 'basic' }, + { list: 'contract', after: 'opportunity', label: 'Contracts', columns: ['name', 'amount'] }, + ], + }], + ``` + + - **No `place`: nothing moves.** Fields still arrive after the object's own, and an extension that writes no `place` serves exactly what it served before. + - **One merge, every reader.** The registry fold applies the placements once, after every contributor's fields are merged, so the record page, the forms and Studio show one arrangement. Uninstalling or disabling the package takes its items off and leaves the object's own order as it was. + - **Placement arranges what the parent declares.** A list placement applies when the extended object declares `relatedLists`; a group or field placement when it declares `fieldGroups`. On a parent that declares neither, its automatic arrangement stays and nothing is dropped: the list shows in the automatic tab order, and its entry's `label` / `columns` are not applied either (write `relatedListTitle` / `relatedListColumns` on your child object's lookup field to title it on every parent); the field shows among the fields, its `after` / `before` not applied. The boot log names each placement that did not apply, with the object and the package. It is the main channel: `os validate` names it too (`extension-placement-not-applied`, warning) only when the extended object is in the same stack. + - **Anchors and order.** `after` or `before`, not both; neither means the end. An anchor may be an item another placement brings, whatever order the two are written or registered in. An anchor nobody has puts the item at the end of its group, of the groups, or of the tabs (before a trailing approvals / activity-stream run), and `os validate` warns (`extension-placement-anchor-missing`). A list placement's `columns` are fields of the child, checked by `os validate` as a `relatedLists` entry's are (`related-list-column-unknown`). Several packages at one anchor follow ascending `priority`, then package name, so every build gives the same order. When the object itself already names the list or lists the field, its own position wins. + - **An extension places only its own items.** A field outside its own `fields`, a field the extended object declares (also one the extension redeclares to relabel it), a group key the extended object already declares, or a list (placed as a tab or by a group's `relatedList`) that is not a child object of its package pointing at the extended object is refused at parse or at `defineStack`, and skipped by the merge with a warning naming whose item it is, whichever door registered the extension. The extension keys `fieldGroups` and `relatedLists` are refused with a prescription naming `place`. + - **Shipped behaviour change (flips #35897's hiding):** a child list another package brings is no longer hidden by the parent's declared `relatedLists`. Placed, it sits where its package puts it; unplaced, it shows at the end of the tabs. "Another package" means the child and the parent both belong to a package and the two differ; a child of the parent's own package, or one no package owns, is still hidden until an entry names it. This narrows the #35897 note "A child list another package adds is hidden too until the parent names it … letting a package place its own list is a later change": that change is this one. + - **Studio** (object settings, Record page tabs) shows such a list read-only among the unlisted rows with a "from <package>" badge, and the preview draws it where the record page does. + + What to check in an app: on an object that declares `relatedLists`, every installed package's child lists of it now show, at the end of the tabs unless placed; name one in the parent's `relatedLists` to put it elsewhere, or set `relatedList: false` on that package's FK to hide it. Nothing in HotCRM changes meaning today: no module writes `place`, and no object declares `relatedLists`. Most HotCRM objects already declare `fieldGroups`, so a field or group placement there applies as soon as a module writes one; a list placement waits until the parent declares its `relatedLists` (follow-up #35902). ADR-0087 semantic entry `object-extension-place-and-cross-package-lists`; ADR-0146 D10 and ADR-0085 notes. +- a23164e: feat(spec, ui): an object takes a colour from a fixed palette, and its icon is drawn as a white glyph on a square of that colour + + Clause-②: yes (widening) + Metadata-protocol: added + + - **`ObjectSchema.color` (new, optional).** One name from a closed palette of nine: `gray`, `blue`, `teal`, `green`, `amber`, `orange`, `red`, `pink`, `purple` (exported as `OBJECT_COLORS` and the `ObjectColor` type from `@objectstack/spec/data`). No free colour values: `color: '#ff0000'` is refused, and the refusal lists the nine names. An object without a `color` is drawn in the neutral `gray`. Nothing to migrate: every existing object stays valid and simply has no colour. + - **The AI blueprint carries it too.** `BlueprintObjectSchema.color` is the same leaf (required-but-nullable on `SolutionBlueprintStrictSchema`, like `icon`), and its rule asks the model to colour every object and give each object of one solution a different colour while the palette lasts. A producer of the STRICT shape must now send `color` on each object, `null` when it has none; the lenient shape a stored blueprint is read with keeps it optional. + - **`ObjectIconTile` (new, `@object-ui/components`).** Draws an icon name as a white glyph on a rounded square of a palette colour, in four sizes. Each name has a light-theme and a dark-theme value chosen so the white glyph keeps at least 3:1 contrast. `OBJECT_COLOR_TILE_CLASS` and `objectColorOrDefault` are exported with it. + - **Navigation draws objects as tiles.** In the sidebar, the app-home menu and the phone menu, every entry that opens an object is drawn as that object's tile: the entry's own `icon` when it names one, else the object's, on the object's colour. Dashboards, pages and links keep their line icons. `NavigationRenderer` takes a new `resolveTargetColor` resolver (`NavTargetColorResolver`) beside `resolveTargetIcon`; the console answers it from the object metadata it already holds (`useNavTargetColor`). A host that passes no `resolveTargetColor` gets its object entries as gray tiles where it had line icons. + - **The designer picks icon and colour together.** In the object's settings, the icon picker shows the nine colour swatches, and the trigger and every icon in the grid are previewed as the tile they become. The picker elsewhere (pages, apps, navigation entries) is unchanged: only objects carry a colour. + - The other places that draw an object's icon (list and record headers, search, related-record chips, the designer's object lists) switch to the tile in a follow-up release. + + `@objectstack/metadata-core`: the field-level-security reference table classifies the new `color` key as `keep` (a palette name names no field). + + `@objectstack/platform-objects`: the generic object form's metadata-form packs ship the new `color` row's label and help text in all 10 locales. +- 1208cc8: feat(app-shell): an authored record page is drawn on the desktop full page only; a phone and the side drawer draw the standard page + + Clause-②: no + Metadata-protocol: semantic + Skills-docs: follow-up #36179 — skills/objectstack-ui/rules/record-page.md rules 4 and 5 (the `record_more` advice); skills edits ride a domain:skills PR + + What a `kind: 'full'` record page means changes: it is drawn on the desktop full page only. On a phone, and in every embedded record view (the side drawer a list opens, the split pane, an interface page's preview), the record draws the platform's standard page for its object, whether or not the object has an authored page. **Open full page** from the drawer still lands on the authored page. + + The standard page keeps what the object declares: field groups and order, field permissions and visibility, the `record_header` / `record_more` actions, one tab per child table, the stage and the approval state. The authored page's layout does not apply there, nor anything that lives only on it: its tabs and sections, page-only related lists and blocks, banners, and `record_section` actions, which the standard page does not draw. To keep such an action reachable on a phone and in the drawer, add `record_more` to its `locations` (and leave it out of the authored header's `actions` list, so the full page still draws it once). There is no setting that keeps an authored page on the phone or in the drawer. + + Unchanged: a slotted page (the standard page with slots filled) applies everywhere; a page named in the URL (`…/record/:id/page/:pageName`, print pages included) is drawn wherever that route renders; the platform's approval request (`sys_approval_request`) and user (`sys_user`) pages keep their own page on every surface. + + Nothing to migrate: no metadata key changes, and the desktop full page draws exactly as before. +- 0b2118f: feat(record-page): on a phone the record page's bottom bar holds the object's own actions only, and Edit moves into the More menu at the top bar's right end + + Clause-②: yes (widening) + Metadata-protocol: semantic + + On a phone the record page's bottom bar used to always draw Edit first, then the primary action and the `⋯`; an object with no action of its own got a full-width Edit and nothing else. A field's value is now edited by a tap on it, so on a phone: + + - The bottom bar draws the object's actions only: the primary and the next one (the default budget of 2 is unchanged), filling the row. The record's edit state keeps its Cancel and Save there. + - With no action to draw, no bottom bar is drawn and the page body runs to the foot of the screen. + - The `⋯` moves to the right end of the top bar. It holds Edit (on or off, with the reason when it is off), the actions that did not fit, Refresh, Share and Delete. (Favorites is not in it: the favorite star sits beside the record's name.) Edit there does what the bar's Edit did. + - A record pending the reader's approval is unchanged: the bar is the approval's decisions and its own `⋯`. + - The desktop header is unchanged. + + `page:header` `mobileMaxVisible` keeps its default of 2 in the phone bar, but Edit no longer takes one of those slots, so an unset budget now shows two of the page's actions where it showed one, and an authored value counts the page's actions alone. Host buttons still take bar slots ahead of the page's actions: the queue's Claim, and in the record's edit state its Cancel and Save. Its description in the spec, the designer and the docs says so. + + Migrating: an author who wants the earlier number of page actions in the phone bar lowers `mobileMaxVisible` by one. An authored `1` that meant "Edit only" now shows the primary action; to keep the bar free of inline actions, mark the page's actions `component: 'action:menu'` so they fold into the `⋯`. + + `@object-ui/components`: `PageHeaderPhoneFace` (the value of `PageHeaderPhoneContext`) gains an optional `more` slot. A host that hands it gets the `⋯` drawn there, and a bar with no button draws nothing; a host that does not keeps the `⋯` as the bar's last button, as before. +- ad65d82: fix(formula)!: `validateExpression` refuses `==` / `!=` between a list-valued field and a scalar, which answers a constant on every row + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: follow-up #36217 + + <!-- adr-0087: registered cel-list-equality-refused --> + + **BREAKING** accept-set narrowing, shipped as `minor`. CEL compares the whole list with the scalar, so `record.labels == 'frontend'` is `false` for `['frontend', 'qa']` and for `null` alike, and `record.labels != 'frontend'` is always `true`: a condition written that way never fires (or always does), with no fault and no log line. The shared validator accepted it. + + - **The refusal.** `validateExpression` refuses a `==` / `!=` between a read of a list-valued field on `record` / `previous` (`record.f`, `record['f']`, either operand order) — or, at a flattened (flow) condition, its bare name `f`, which the run binds to the trigger record's field, unless a flow variable holds the name or a node can bind names no reader sees — and a non-null string, number or boolean literal, as the new `list-equality` code (params `reference`, `operator`, `operand`, `answer`, `rewrite`), prescribing the null-guarded membership test. + - **Which fields are lists.** A `fieldTypes` entry of an inherently multi-value type (`multiselect`, `checkboxes`, `tags`), or a field named in the new optional `ExprSchemaHint.multiValueFields` — the fields a caller reads as multi-valued through `isMultiValueField` (`@objectstack/spec/data`), which is how a `select` / `radio` / `lookup` / `user` / `file` / `image` field declared `multiple: true` becomes a list here. Absent, such a field is not judged, as before. + - **Who fills it.** The publish lint (`os validate` / `os build`, every CEL site that types the object's fields), the MCP `validate_expression` tool (read off the served definition, `McpDataBridge.servedObjectDefinitionOf`, at the validation / formula / flow-condition sites; a bridge without it answers as before), `registerFlow`'s schema pass (`parseObjectFieldSchema` returns `multiValueFields`; logged, never thrown, like every finding of that pass), the scenario scorer, and Studio's object draft check (field rules, formulas, validation rules; `CelSchemaHint.multiValueFields`). + - **Still accepted.** `S == null` / `S != null` (either side), `'a' in S`, a list compared with a list literal or with another list field, and a comparison whose other operand is not a literal. + + FROM → TO: + + - `record.labels == 'frontend'` → `record.labels != null && 'frontend' in record.labels` + - `record.labels != 'frontend'` → `record.labels == null || !('frontend' in record.labels)` + - at a flow condition, `labels == 'frontend'` → `labels != null && 'frontend' in labels` + + One-line fix: test membership with `in`, null-guarded (`'a' in null` faults); compare the list with `null` to test whether it is set. +- 73f2cf4: feat(kanban): the board's own 视图设置, a lane header 「+」 and 「⋯」, and a lane statistic and card toggles on `KanbanConfig` + + Clause-②: yes (widening) + Metadata-protocol: added + + `KanbanConfigSchema` gains three optional keys, none with a default; a view that declares none of them renders as before: + + - `summary` — a lane statistic drawn at the foot of each lane (`KanbanLaneSummary`): `{ type: 'count' }`, or `{ type: 'sum', field }` of a number field over the cards the lane has loaded, not every record of the lane; `{ type: 'none' }` shows nothing. It takes precedence over `summarizeField`. A sum over a lane holding more cards than were loaded says so (「仅已加载的卡片」). The whole-lane sum, and average, minimum and maximum, wait for a server lane read (#36520). + - `showFieldLabels` — absent means `true`: a card names each field beside its value; `false` draws the values alone. + - `hideEmptyFields` — absent means `true`: a card leaves out an empty field; `false` keeps its line. + + On a board, the view settings show the lane field, which lanes show and in what order, the card fields (order, hide, add), the two card toggles and the lane-foot statistic, in place of the table's columns, group, row height and row colour. Each change applies at once and is held as the list's draft until Save. Each lane header gets 「+」 (a new record with the lane prefilled; an empty lane also gets a 「+ New」 row) and 「⋯」 (collapse, kept in this browser; hide). Hiding a lane moves its cards into 「未分类」, as `kanban.lanes` (#28211) always has, and the menu and the lanes list say so. The lane field picker offers select and radio fields; collapse is kept per reader, object and view. The Console now relays the view's `kanban.lanes`, which it used to drop, and both producers of the board node (`ListView` and `ObjectView#generateViewSchema`) relay the three new keys. `ObjectKanban` takes the host's `laneMenu` request (`KanbanLaneMenuRequest`). `@objectstack/lint` walks `kanban.summary.field` and refuses a `sum` over a field that is no number, a yes / no field included (`list-view-summary-field-type-refused`). Saving a board whose view declares no `kanban` block stores the lane field the board draws with the changed keys. +- 3b58921: feat(console): record create and edit stop loading internal forms; a field's Show on create switch + + Clause-②: no (narrowing) + Metadata-protocol: semantic + + <!-- adr-0087: registered internal-record-forms-not-loaded --> + + The Console's record create and edit surfaces no longer load an object's internal form view. The create dialog, the edit dialog, the full-page create and edit (`/new`, `/record/:id/edit`) and a create or edit an action opens now lay the record out by the object's field groups (`fieldGroups`) and follow the rules on its fields (`visibleWhen`, `readonlyWhen`, `requiredWhen`, `required`). What used to steer those surfaces and now steers nothing: the default form view (`form`, `formViews.default`), the `create` form view, and on them `sections`, the `tabbed` and `wizard` layouts, `defaultTab`, `tabPosition`, `subforms`, `modalSize`, `buttons`, `layout` and `defaults`. A master-detail sub-table still comes from `fieldGroups[].relatedList`, and a flow screen reads its sub-table settings from there too. + + An app that still declares an internal form installs and runs as before; the definition is inert. A public form (`sharing.enabled: true`) keeps loading at its own link by its own definition, and a named form an action of type `form` opens is unchanged. + + `showOnCreate` is now live: a field with `showOnCreate: false` is left out of every create surface and stays on edit, the record page and lists. The field form (`field.form.ts`) and the Studio field inspector offer it as "Show on create", on by default; a required field keeps it on. + + `@objectstack/lint` adds the advisory rule `form-view-internal-not-loaded`: a warning, never an error, on each internal create or edit form an app declares (a container's `form`, `formViews.create`, `formViews.default`, and a stored form view that is the default or named `OBJECT.create`), and on no public or named form. + + Studio: the Data pillar's Form tab always lays out the object's field groups, and the Interfaces rail no longer lists internal forms; public forms and named forms stay listed. + + An app that relied on its internal form for create defaults should move them to each field's `defaultValue`; sections move to `fieldGroups`, and required or conditional rules move onto the fields. + + The upgrade guide carries this as the protocol-18 semantic entry `internal-record-forms-not-loaded`. +- 45ef94e: feat(spec): a base's paired `.custom` package declares an installed object's whole field-group and tab arrangement (`fieldGroups`, `relatedLists` on its object extension) + + Clause-②: yes (widening) + Metadata-protocol: added + + The record page is arranged in three layers. The package that owns an object declares its `fieldGroups` and `relatedLists`; a package that extends it places what it brings with `place`; and now the environment, in the base's paired `.custom` package, may declare the whole arrangement over both: + + ```ts + objectExtensions: [{ + extend: 'crm_lead', + fields: { region__c: { type: 'text', label: 'Region' } }, + // The whole field arrangement: the two groups swapped, `status` moved. + fieldGroups: [ + { key: 'contact', label: 'Contact', fields: ['email', 'phone', 'status'] }, + { key: 'basic', label: 'Basics', fields: ['name', 'company', 'region__c'] }, + ], + // The whole tab list: events before tasks, the notes tab hidden. + relatedLists: ['crm_event', 'crm_task', { list: 'crm_note', hidden: true }], + }], + ``` + + - **Two new keys on an object extension, written only by a `.custom` package.** `fieldGroups` takes the shape an object's `fieldGroups` takes and may list any field the object has, whoever declares it; a group's `relatedList` may place any body table. `relatedLists` takes an object's entry shape (a bare name, the three built-in tab names, or `{ list, label?, columns? }`) plus `hidden`. + - **Each key replaces, whole.** The registry applies it last: the owner's arrangement, then every extension's `place`, then the `.custom` key in place of the result. Nothing is merged entry by entry. A key the extension does not write keeps the owner's arrangement with the placements, so writing only `relatedLists` leaves the field groups as they were. + - **A field the arrangement does not list is not dropped.** It shows after the last group, whichever group its owner or another extension had put it in. A group that lists `fields` shows exactly its list. + - **A tab the arrangement does not name still shows, after the listed ones.** This is the reverse of an object's own `relatedLists`, where leaving a list out hides it. Hiding is written: `{ list: 'crm_note', hidden: true }` hides that list's tab, whichever package brings it. `hidden` is accepted only here; an object's own `relatedLists` refuses it and says where it belongs. A list the owner hides by leaving it out of its own `relatedLists` stays hidden until the arrangement names it. The built-in tabs keep their own rules and are not hidden here. + - **A package that is not a `.custom` package writing either key is refused**, once at each door: saving or publishing the extension, `os validate` and `os build`, and installing the package (`VALIDATION_ERROR`; 400 at save and publish, 422 at install). Each refusal names the key, the object and the package and prescribes `place`. An extension that reaches the registry past those doors is not applied, and the boot log says so. Within one extension, a `place` entry beside the arrangement key that would replace it is refused at parse. + - **Only the object's own pair is served.** The pair is the `.custom` package of the App the object belongs to: for an object a module of an App owns, the App's pair. A `.custom` package an earlier version created for the module itself is still read while it is installed; where both write a key, the App's pair is served. The choice is by role, never by load order. What any other `.custom` package writes under these keys is not refused at the doors; the registry does not apply it, alone or beside the pair, and the boot log names the package and the object. + - **One merge, every reader.** The record page, the forms, the preview and Studio read the served object, so they show one arrangement. Removing a key, or uninstalling or disabling the `.custom` package, serves the owner's arrangement with the placements again. + - **Served reads say what the reader cannot derive.** Where a `.custom` package writes `relatedLists`, the served object carries the read decoration `_relatedListsArrangement` (`{ packageId, hidden, unlisted }`): the lists the environment hides, and whether an unlisted list shows. The record page's tab reader and the default page synthesis read it; with no decoration served they answer exactly as before. A reader's own tab order (kept per user) is still laid over this list, and a tab the environment hides is not offered to them. + - **A group the arrangement brings is a translation anchor.** `os validate`'s translation-reference rule reads an extension's `fieldGroups` too, so a bundle's `_sections` key for a group the `.custom` arrangement declares is not reported as naming nothing. + - **`hidden` on a field is not a display property a `fieldPatches` entry may set.** A hidden field is also left out of the search index and out of a form's required check, so the display whitelist is not widened. To keep a vendor field off the record page and the forms, list it in a group whose `visibleWhen` is false. That is presentation only, not access control: the field stays readable and writable through the API. Do not use it for a `required` field that has no default: the create form no longer shows the field while the save still requires it, so the form cannot be submitted. + + What to check in an app: nothing changes until a `.custom` package writes one of the two keys. A package other than a `.custom` one that wrote `fieldGroups` or `relatedLists` on an extension was refused at parse. It is now refused by the save, publish, install, `os validate` and `os build` doors, with the same prescription. Where none of those doors judges it (for example a code-defined stack that boots without `os validate` or `os build`, or a stack that names no package id), the key is not applied and the boot log names it, where the parse refused it before. +- 129e637: feat(i18n): console flow labels follow the server's declared fallback chain + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: none — the new member is a response field the console reads, not something a metadata author writes; no skills/ page teaches `GET /i18n/locales` or how the console resolves flow labels + + - **`GET /api/v1/i18n/locales` names the declared fallback chain.** `GetLocalesResponseSchema` (`@objectstack/spec/api`) gains an optional `fallbackChain: string[]`, and the runtime's `/i18n` domain fills it from the i18n service's `getFallbackLocale()` (the stack's `i18n.fallbackLocale`, else its `defaultLocale`), the same accessor the server's metadata translations hand the spec resolvers as `ResolveOptions.fallbackChain`. A service that declares no fallback (no accessor, or an empty answer, such as the core in-memory provider) serves no member. Nothing existing changes meaning. + - **The console loads the fallback locale's flow translations.** The console's language loader reads the chain and `sourceLocale` beside the active language's bundle and, unless the language is the authored one, fetches each fallback locale's bundle and keeps its `flows` group (`withDeclaredFlowsFallback`, `@object-ui/i18n`). + - **Flow labels walk the same locales as the server.** `activeFlowsBundle` returns the fallback locales' rows too, and the new `flowsResolveOptions` hands the spec resolvers `{ locale, fallbackChain, defaultLocale }`. The flow runner (flow name, field copy, option labels), the flow designer and docs viewer (`flowLabelTranslations`, `useFlowLabelTranslations`, which take the declared options) and the stage-change confirm now read a declared fallback locale's text for a label the active language lacks, before the authored label. A stack that declares no fallback keeps "requested locale, then the authored label". +- 151e812: feat(spec): declare a metadata type's Studio list columns in the spec and serve them on `/meta/types` + + Clause-②: yes (widening: new exported schemas and a new optional `list` on each `/meta/types` entry) + Metadata-protocol: added + Skills-docs: none — no skill under `skills/**` teaches Studio's metadata list columns; `skills/objectstack-ui/SKILL.md` names `entries[].schema` only, which is unchanged + + Which columns Studio's generic list shows for a metadata type is now declared in the spec, beside the type's form, instead of in console code: + + - **Spec.** `MetadataListViewSchema` is a list layout bound to the type's own schema (`data: { provider: 'schema', schemaId }`) with its `columns`; each `MetadataListColumnSchema` names a key of that schema or a dotted path into it, a header, and a cell renderer (`MetadataListCellTypeSchema`: `text`, `badge`, `boolean`, `count`, `list`, `summary`). `defineList({ schemaId, columns })` builds one and refuses an unknown renderer, an empty column list and any `ListColumn` key outside `field` / `label` / `type`. `METADATA_LIST_REGISTRY` (`@objectstack/spec/system`) is the list counterpart of `METADATA_FORM_REGISTRY`; this release declares `hook`, and a type with no entry keeps Studio's default list. A reconciliation test refuses a column naming a key the type's schema does not declare (or declares retired, or as an overlay `_` key) and a header that differs from the form field label of the same path. + - **Serve.** `getMetaTypes()` serves the registry entry as `list` on the type's `/meta/types` row, next to `form`; `GetMetaTypesResponseSchema` declares it. The REST handler translates each header through the type's form field slot, `metadataForms.<type>.fields.<field>.label`, so a column and the form field of the same key read the same words. `resolveMetadataListLabels` (`@objectstack/spec/system`) does the lookup. + - **i18n.** `os i18n extract` emits that slot for every column whose path the type's form does not already label, with the column's header as the English source. Every `hook` header reuses a form label, so no bundle changes here. + - **Console.** Studio's generic list reads the served columns first: the served list, else the console's own `listColumns`, else name / label / description. A served header is shown as served, already in the reader's language. A key the stored row leaves out shows the default the type's JSON Schema declares there, the value the runtime uses. The console can still draw a served column's cell its own way (`listCells`) and append values the server stamps on a row that are not schema keys (`listExtraColumns`). + + New exports: `@objectstack/spec` adds `MetadataListCellTypeSchema`, `MetadataListColumnSchema`, `MetadataListViewSchema`, `defineList` and their types (`ui`), and `METADATA_LIST_REGISTRY`, `MetadataListType` and `resolveMetadataListLabels` (`system`). Nothing that was accepted before is refused, and a client that ignores `list` sees the `/meta/types` it saw before. +- 2a6f26a: feat(ai): `ai_context` context packs and the `get_record_context` tool over MCP + + Clause-②: yes + Metadata-protocol: added + Skills-docs: follow-up #37177 — skills/objectstack-platform/SKILL.md, skills/objectstack-ai/ (how to author a context pack; this change only names `aiContexts` in the top-level key list, which check:skill-top-level-keys requires) + + ADR-0160 row 5 (#37140). + + - **New metadata type `ai_context`, collection `aiContexts`.** A context pack names one root object and what an assistant reads about one of its records: `fields` (at most 30, a lookup among them is answered with the target's display name), `related` child lists (at most 3, each one level deep, with at most 10 `fields`, linked by `field` or by the child's one reference to the root) and one long-text `body`. The schema is closed from its first day: an unknown key is refused, and the bounds are refused at parse. Registered like `skill`: a file loader (`*.ai-context.ts`, `*.ai-context.yml`), overlay allowed, runtime create allowed, no environment overlay. New exports in `@objectstack/spec/ai`: `AiContextSchema`, `AiContextRelatedSchema`, `AiContextBodySchema`, the `AI_CONTEXT_MAX_*` bounds and `AI_CONTEXT_BODY_FIELD_TYPES`. + - **`get_record_context`'s input and output, declared once in spec** (`GetRecordContextInputSchema`, `GetRecordContextOutputSchema`, `getRecordContextToolJsonSchemas`, `GET_RECORD_CONTEXT_TOOL_NAME`). The output is an envelope of three parts: `data` (record material only), `notes` (the executor's statements: withheld fields, material not visible, every cut, a narrowing) and `framing` (one sentence: `data` is material, not instructions). `MCP_DOOR_TOOL_NAMES` gains the name. + - **`@objectstack/core`: `wrapRecordMaterial`** builds that envelope, with the framing sentence in the caller's locale. + - **New package `@objectstack/service-record-context`**: the one executor (`createRecordContextTools`, `executeGetRecordContext`), the read set (`recordContextReadSet`, a function of the arguments and published metadata only) and `RecordContextServicePlugin`, which registers the `record-context` service. Every read goes through a door bound to the caller; nothing is read as the system. Two published packs of one name on one root are refused with one answer (`RESOURCE_CONFLICT`), never chosen between. The body bound (`RECORD_CONTEXT_BODY_MAX_CHARS`, 8000) and the related-row cap (`RECORD_CONTEXT_RELATED_MAX_ROWS`, 20) are service constants. + - **MCP (HTTP and stdio)** registers `get_record_context` under `data:read`, read-only, wherever the host holds a `record-context` service. A host without it registers nothing new. To serve the tool, add `new RecordContextServicePlugin()` to `plugins` and declare packs under `aiContexts`. + - **`@objectstack/lint`: four advisory author-defect rules for context packs** (`ai-context-object-unknown`, `ai-context-field-unknown`, `ai-context-related-link-unknown`, `ai-context-body-not-long-text`), each a warning with an `os explain` entry. `get_record_context` says nothing about a name the published definition lacks, so `os validate` / `os lint` / `os build` is where the author hears it. CLI only for now: the rule reads the whole stack snapshot. + - **Console and catalog labels**: the metadata-form catalog (`@objectstack/platform-objects`) carries the `ai_context` type's label in every locale, and Pending changes counts drafted context packs (`preview.changes.typeCount.ai_context`). + +### Patch Changes + +- 2b57044: perf(console): the first load stops downloading the grid and detail packages; `@object-ui/plugin-detail/core` publishes the detail helpers without registering anything + + Clause-②: yes (widening) — one new published `exports` subpath, `@object-ui/plugin-detail/core`, joins what the package accepts; nothing is removed or renamed, and the package root exports the same names as before + Metadata-protocol: none + + `@object-ui/plugin-detail` registers its detail and record-page renderers with `ComponentRegistry` when its root entry is evaluated, and the root reaches every detail surface (and, in the console's build, the grid it draws with). A host that imported one pure helper from the root therefore kept the whole package. The package now publishes a `/core` subpath that registers nothing: `isRefusedFeedRead`, `relatedListEntryNames`, `RELATED_ARRANGEMENT_RECORD_VERSION`, `relatedArrangementFromRecord`, `relatedArrangementToRecord`, `deriveFieldGroupDetailSections`, `deriveHighlightFields`, `resolveDetailSections`, `isWideFieldType`, `prefetchRelatedCounts`, `relatedCountTargetsIn`, `COMPACT_RELATED_ROWS`, `normalizeRelatedListSort`, `seedQueueClaimDecision`, `seedRecordFieldAccess`, `seedRecordVerdict`, and the type `RelatedArrangement`. + + The same names stay exported from the package root, unchanged; nothing to migrate. The subpath ships ESM only (`import`), as the other `/core` subpaths do. The package's ESM build now emits one file per source module (`dist/index.js`, `dist/core.js` and the modules they import), so the record-page caches a `/core` seed writes are the ones the root's hooks read; the UMD build (`dist/index.umd.cjs`) is unchanged. + + The console (`@object-ui/console`, and the shell it draws, `@object-ui/app-shell`) takes these helpers from the subpath, draws the record pointer card's key fields and the approval decision's child tables through `lazy()`, loads the dev-only row-actions page lazily, and registers the tags the grid and detail packages register (`object-grid`, `view:grid`, `detail-view`, `detail-section`, `view:detail`, and the eleven `record:` blocks `details`, `related_list`, `highlights`, `activity`, `chatter`, `discussion`, `path`, `quick_actions`, `history`, `reference_rail`, `alert`) as lazy stubs with the namespaces those registrations declare. Neither package is downloaded on the first load any more; the list and record routes load them with their own route chunks, and any other surface loads them, and registers once, the first time it draws a grid or a detail block. What every page draws is unchanged. +- a0b4ecf: fix(console): creating a package answers with a toast naming the new package + + Clause-②: no + Metadata-protocol: none + + Creating a package (Studio's *New app*, the Studio package switcher's *New package*, and the Packages page) closed the dialog and moved on with nothing on screen saying the write landed. The create dialog now shows a success toast naming the new package by its display name: "Created package “NAME”." (zh: 已创建软件包「NAME」。). A refused create shows no toast and keeps its message in the dialog, as before; saving an edit is unchanged. + + New locale key: `engine.packages.create.created` in the studio catalogue (en, zh). No props or exports change. + + Revoke on a granted suggested binding in Studio Access already answers with its toast ("“SET” is no longer granted by default."); a new pin on the Studio mount holds it. +- ee5fdc8: fix(record-page): an authored record page's feed panels show the record's field history, and offer Field Changes + + Clause-②: no + Metadata-protocol: none + + On an authored (assigned) record page, a `record:discussion`, `record:chatter` or `record:activity` panel never showed who changed which field from what to what, never offered the Field Changes filter, and an authored `filterMode: 'changes_only'` silently opened on All Activity. The record page read the audit log only for the page it synthesizes. + + Now, on an object with `enable.trackHistory`, the record page reads the record's field history (the newest 50 audit entries, plus one user-name lookup) while one of those panels is on screen, at open or when its tab opens; a page with no such panel on screen, or an object without `trackHistory`, reads nothing more. The panel merges the field changes into its feed the way the default page's activity stream does: an update that wrote both an activity row and an audit entry is one row, now showing its before and after values; a change with no activity row is its own row; and an `updated` activity row with no audit entry steps aside, as on the stream. Field Changes is offered, and an authored `changes_only` holds those changes, exactly when the reader's audit read answered: a reader the server refuses the audit log to is offered no Field Changes, as before. A panel authored with `unifiedTimeline: false` shows no field changes and offers no Field Changes. + + Visible change on existing authored pages: on a `trackHistory` object, a feed panel's All Activity now includes the field changes with their before and after values, and its filter gains Field Changes. The default record page is unchanged. `@object-ui/plugin-detail` adds `mergeFieldHistoryIntoFeed` to its `recordTimelineStream` module (not re-exported from the package entry); no locale keys, props or entry exports change. +- 0c047d0: fix(console): the Marketplace package page names a suggested binding's permission set by its label + + Clause-②: no + Metadata-protocol: none + + After a package that suggests a default audience binding is installed, the Marketplace package page shows "this app suggests granting SET to Everyone" with Grant and Dismiss, and later the accepted line with Revoke. Its prompt, its state lines and its Grant, Dismiss, Revoke and Reopen toasts named the permission set by its machine name (`crm_user`). They now name it by its label (`CRM user`), read from the package's own permission sets as this runtime serves them (`list('permission', { packageId })`, the read the Studio Access rail makes). A set with no label, or a read that is refused or fails, names the set by its machine name, with no error shown. + + The Studio Access mount of the same banner and this page now draw the name through one shared helper, `suggestedSetLabel` (`components/suggestedSetLabel.ts`), so the two mounts cannot name the same set differently. No locale keys, props or exports change. +- 645d2bb: fix(console): Studio condition editors list fields by their label + + Clause-②: no (`@object-ui/app-shell` is `"private": true`; flipping the `labelSubjects` default reaches no published export) + Metadata-protocol: none + + The subject list of every Studio condition editor now offers a field by its label, with its CEL path (`record.status`) beside it as secondary text: a hook's "Run only when", an action's "Visible when" and "Disabled when", a page block's "Visible when", and the generic condition field of the metadata forms. The flow Entry condition and the object Validations panel already did. A field with no label, or whose label only repeats its name, still reads as its path. The compiled condition is unchanged. +- de8d549: fix(console, app-shell): discovery starts with the session check, and Setup's open no longer reads the whole object registry + + Clause-②: no + Metadata-protocol: none + + The console asked for `GET /api/v1/discovery` from its main bundle, after the session check had answered and the bundle had downloaded, and the data layer waited for it before the first permission and app reads. `index.html` now sends it during parse, beside `get-session`, and the console's one shared discovery read takes that request, so it is no longer a round trip of its own in the boot. + + Opening Setup (the root of an app whose package holds no objects of its own) read the package's empty object list and then the whole object registry. The root now reads as that app's object routes do: the package list, then the objects its entries require (`requiresObject`), and an object the entered app's bundle holds is answered from the bundle without a request. On the showcase app the registry is about 860 KB; Setup's open there now reads two object lists that answer empty instead. + + What does not change: the routes that read the whole registry before (a record overlay, a record route with no declared record page) still do; which entries the sidebar shows is unchanged. No metadata key, value or default changes. +- e81eccc: fix(console): the *Publish all* warning about a failed runtime check shows the customer's sentence, never the agent's text + + Clause-②: no + Metadata-protocol: none + + Home's *Publish all* and the draft-preview bar's *Publish* warn "Published, but verification found problems." when a publish's runtime checks (ADR-0038 L3 probes) find an error. The detail under that title printed the finding's `message`, which is English written for the AI agent that repairs the build. It now shows the finding's `userMessage`, the sentence the platform writes for the person who published, in the request's language. When no error carries one, the detail is the generic sentence the AI chat's publish-health line already shows for the same case (`chatbot.build.issuesSummary`, from the locale pack). A finding's `message` and `fix` never reach the toast. + + No locale keys, props or exports change. +- 3f88af4: fix(console): Home's Recently Accessed leaves out a row whose object is not registered, and never asks that object by name + + Clause-②: no + Metadata-protocol: none + + Home's Recently Accessed kept a row for a record, an object or a list view whose object's package was disabled after the row was stored. The row opened a page the environment no longer serves, and its icon and label asked `GET /meta/object/NAME` by name, which answered 404 on every Home render. + + Now the objects the recent rows name are asked in one `GET /meta/object?names=` read, which leaves an unregistered object out instead of answering 404. A row whose object that read leaves out is not drawn and takes no place among the six rows. Only an object the read answered served is read by name for its icon and label. While the read has not answered, or after it failed, the row is drawn with its stored title or its object's bundle label and its kind's icon, and nothing is asked by name. Once the whole object registry is loaded, Home reads presence from that list. This is the rule a record page's related lists, a dashboard's `requiresObject` widgets and the navigation's `requiresObject` entries already follow. +- c9b3f7a: feat(account): a Notification Settings page where each person chooses their own notification topics, channels, digest and quiet hours + + Clause-②: yes + Metadata-protocol: none + + The Account app has a new **Notification Settings** page, under Inbox and only when the messaging service runs. It shows one row per notification topic and one column per channel. Each cell shows whether that notification reaches you on that channel, and where the answer comes from: your own setting, your organization's default, the built-in default, or a mandatory topic. Mandatory topics are always delivered and cannot be switched off. A channel the deployment cannot send on yet says so in its column header. Above the matrix you can set your digest and your quiet hours. + + - **The read: `GET /api/v1/messaging/me/preferences`.** This new door answers the signed-in person's *effective* preferences. The server computes them with the same resolver `emit` uses to filter (`PreferenceResolver.effectiveFor`), so the page shows what is actually sent and computes nothing itself. The door takes no parameters and answers only about the caller: there is no `user` parameter, and any parameter is refused `VALIDATION_ERROR` / `400`. It keeps the posture of `GET /api/v1/messaging/preference-options`: + - an anonymous caller gets `401`; + - a held sign-in gets `403`; + - a source it cannot read is `500` / `INTERNAL_ERROR`, never a partial or "everything on" answer. + + The door reads only what the answer needs: the caller's own rows and the organization's default rows, each by equality on `user_id` within the caller's organization. A read that comes back with more rows than its cap is a fault (`500`), never a page. + + The organization's defaults appear only as `source: 'default'` on the caller's own cells. No other person's row, and no row id except the caller's own, is ever answered. + - **The writes: your own `sys_notification_preference` rows, through the data door, as you.** `member_default`, the baseline set every signed-in person resolves (external members excepted), now carries a grant of read, create and edit on the object, with no delete. Two row policies come with it: + - `sys_notification_preference_self` binds every principal that holds the grant. Its row scope is `user_id == current_user.id`, and its write check is the same expression, so the row as written must still be your own. + - `sys_notification_preference_org_admin` widens organization owners and administrators back to every row of their organization. Its write check is `topic != null`, which holds on every row being created because `topic` is required with a default. If `topic` ever becomes optional, an administrator's create is refused, never widened. + + An ordinary member or a delegated administrator lists only their own rows. Their create with `user_id` omitted, empty or naming another person is refused `403` / `PERMISSION_DENIED`, as is moving their own row to another person or to the organization default. + - **Owners and administrators are unchanged.** They still list every row, create and edit the organization default, create and edit another person's row, and delete in the Setup grid. + - **App-authored grants are narrowed too.** `sys_notification_preference_self` carries no `positions` domain, so it binds every principal that holds a grant on this object, including through an app's own permission set. A role other than organization owner or administrator that an app grants this object reads and writes only its own rows, unless the app declares its own widening policy for that role. + + There is no "reset to the organization's default" button, because that needs a delete, which members are not granted. Changing your digest or quiet hours saves your own general setting, and the page says so beside the control. From then on, that setting applies in place of the organization's defaults to every topic and channel you have not set yourself. +- 8896822: Clause-②: no + Metadata-protocol: none + + feat(app-shell): connect your Slack account on the notification settings page, and an admin Slack page in Setup + + The console side of Slack direct-message delivery (step 3 of the Slack DM work; the server doors shipped with `@objectstack/service-messaging`'s Slack link routes). + + - **Notification Settings: your Slack link.** Where the preference door lists the `slack` channel (only on a deployment that composes connector-slack), the page shows a Slack section. Without an install, or with an install whose token Slack refused, it says so and offers nothing. Otherwise **Connect Slack** asks `POST /api/v1/messaging/me/slack-link/proposal`; the page shows what the door answers: that a Slack user with your verified email was found (never whom), with **Confirm** (`…/confirm`) and **Cancel** (`DELETE /api/v1/messaging/me/slack-link`); or, when nothing was proposed, a sentence naming every reason the door does not tell apart (no verified email, no Slack user with it, or that Slack user linked to someone else). A confirmed link shows the Slack user and **Disconnect**. A refusal is shown in the server's own words (its `userMessage` when it carries one), and the section then reads the door again. + - **Setup's Slack page** (component `messaging:slack`, `/apps/setup/component/messaging/slack`): for an organization administrator holding `setup.write`, the capability the doors ask; anyone else sees what is needed and no door is read. It installs or sets again the organization's bot token (`PUT /api/v1/messaging/slack/account`) through a password input that always starts empty, removes the install after a confirm that says every linked person is told, and lists every link as served (person, Slack user once confirmed, when) with a confirmed **Remove** per link. When the list reaches the 10,000 links the server answers, the page says it may be incomplete. + - Every new sentence is in all eleven built-in locales (`slackLink`, `slackSetup`). +- 438ff47: fix(console): a permission set outside a delegated security administrator's scope offers no Add and no Remove + + Clause-②: no + Metadata-protocol: none + + On a permission set's Assigned users section, a delegated security administrator was offered Add user, the member picker and each row's Remove for a set outside every delegated scope they hold, and the server then refused the write (403 `DELEGATION_SCOPE_VIOLATION`). The section now reads the caller's own delegable-scope report (`my-delegable-scope`, through `useAuth().describeDelegableScope`, as the invite dialog does): where the report names delegated scopes and the set is in none of their `assignablePermissionSets`, the section lists the holders with no Add, no picker, no Remove and no "click Add" sentence. The server's gate still decides every write (ADR-0090 D6/D12); the section judges nothing else, so a set the report allowlists keeps its controls and a write the gate still refuses (a target user outside the delegate's business-unit subtree) is refused by the server in its own words. + + Every other caller keeps the controls as before: a tenant-level administrator, a caller whose report names no delegated scope (how the report draws an organization administrator), and any caller while the report is read, where no runtime serves it, or where the read fails. An organization administrator who also holds a delegated scope is read as the delegate its scopes describe, since the report does not tell the two apart. +- dc53d4a: fix(app-shell): Studio's "Explain access" says why Explain and Pick are disabled, on hover, on keyboard focus and to assistive technology + + Clause-②: no + Metadata-protocol: none + + With no object chosen, the Explain button and the record Pick button were bare disabled buttons: no tooltip on hover, skipped by Tab, and nothing in the accessibility tree (Pick's only title was its own label, "Pick"). Both now sit in the shared `DisabledControlReason` wrapper the Studio form designer, create dialog and metadata Save already use: a focusable wrapper that opens a tooltip with the reason "Choose an object first", and both the wrapper and the button point `aria-describedby` at it. Each button keeps its own name; once an object is chosen both are plain enabled buttons, and a running Explain gives no reason because its label already says "Explaining…". The new string is in the Studio namespace catalogues (`en`, `zh`) of `@object-ui/i18n`. +- 34fe96f: fix(studio): removing a field that holds data asks before the Data pillar saves it + + Clause-②: no + Metadata-protocol: none + + In Studio's Data pillar, removing a stored field from a published object (or retyping or requiring one) made the draft autosave answer `409 DESTRUCTIVE_CHANGE`, and the pillar showed only its generic "changes not saved" strip, with no way to finish the change. The refusal now opens a confirmation that lists what the save would lose, in the server's own findings. **Force save** sends the same body to the same object and package again with `force`; **Cancel** puts each field the findings name back as the server holds it and sends nothing more. While the confirmation is open the autosave sends nothing. Every other refusal reads on the strip as before. + + The confirmation reuses the existing `engine.edit.destructiveTitle`, `engine.edit.destructiveDesc`, `engine.edit.forceSave` and `engine.cancel` strings: no locale key, prop or export changes. +- 0e46840: **Shipped in 18.6.0**, whose CHANGELOG missed this entry; listed here one release late. + + fix(studio): the Studio landing's own-app cards and 最近访问 entries show the app, not its package id, and 最近访问 is left out when it only repeats the cards + + Clause-②: no + Metadata-protocol: none + + Two changes on the Studio landing page (`/studio`): + + - **自己的应用 / Your own apps cards.** A card shows the app's name only. The package id line under the name (for example `app.nb57`) is gone, and so is the 可写 / "Writable" badge: every app in this section is writable, so the badge said nothing. The package id is still on the card's hover title, the way an installed app's card already carries it. + - **最近访问 / Recently viewed.** The row is left out when its entries are exactly the apps the cards above already show, for example one recent visit to the only app on the page. It is drawn whenever it adds something: an app no card shows, or a card it does not repeat. Each entry shows the app's name only; its package id line is gone and the id is on the entry's hover title, as on the cards. + + No layout or feature change: the cards, the Duplicate button, the create card and the other sections are as before. No locale keys change. +- aef42cb: fix(app-shell): a phone's bottom menu bar lights More when the page in view is in the full menu but not in the bar + + Clause-②: no + Metadata-protocol: none + + On a phone, the bottom menu bar holds four of the app's entries and then More, which opens the full menu. On a page whose entry was not one of the four (an Opportunities list when the bar holds Home, Sales home, Leads and Accounts), no cell was highlighted, so the bar did not show where the reader was. More is now highlighted on such a page, and the full menu it opens shows that entry selected. On a page whose entry is one of the four, that cell is highlighted as before and More is not. A page that no menu entry addresses highlights no cell. Which four entries the bar holds is unchanged: pinned entries first, then the menu's first entries. +- bfd6b6b: fix(i18n): an approval rejection reads 驳回 in Chinese, on the runtime surfaces and in the designer's approval panel + + Clause-②: no + Metadata-protocol: none + + In Chinese, the approval runtime now names the reject decision 驳回 (zh-Hant 駁回), the word the flow designer gives the approval branch and the server notifications already use. Before, the designer's branch said 驳回 while its approval-node help and the approver's buttons said 拒绝 for the same decision. + + - `@object-ui/i18n`: the `approvalsInbox` strings in zh-Hans and zh-Hant: the inbox and record-bar buttons, the bulk and single confirm dialogs, the toasts, the status chip (已拒绝 → 已驳回), the history row, the keyboard hint and the send-back limit notice. + - `@objectstack/plugin-approvals`: the zh-CN labels of `sys_approval_request` (the `approval_reject` lever, its confirm question and success toast, the `rejected` status) and of the `reject` row of `sys_approval_action`; the zh-Hant bundle already said 駁回. The email action-link confirm and result pages read 驳回. + - `@object-ui/app-shell`: the approval node's zh panel in the flow designer: the multi-approver help, the status-mirror help, the escalation help and its `auto_reject` option label (自动拒绝 → 自动驳回; the stored `auto_reject` value is unchanged), and the revision-limit help. Its branch label and Problems hint already said 驳回; a zh-Hant session draws the same Simplified table. + + 拒绝 stays where it means access denial or declining an invitation, in the AI tool approvals, and in the designer's end-node refused outcome and its API-key, bulk-update and audit-outcome refusals. Display text only: the stored `rejected` status and the `reject` action key are unchanged, and English and the other languages are untouched. +- 50f85e9: feat(spec): a formula field can return `percent` + + Clause-②: yes (widening) + Metadata-protocol: added + + A ratio formula (budget used, gross margin) can now declare `returnType: 'percent'` and read and display as a `percent` field does, instead of a bare decimal beside the stored percentages. + + - **The value.** A `percent` formula result is read exactly as a `percent` field reads its stored value: a fraction (`0.25` shows `25%`, so the expression divides and does not multiply by 100), unless the formula declares a `max` above 1, then percentage points (`percentScaleOf`). + - **Its places.** `scale` counts the decimal places of the displayed percentage, as on a `percent` field (absent: 0). The engine rounds a fraction result to `scale + 2` places and a whole percentage to `scale`, so `scale: 1` keeps 0.417 (41.7%) instead of rounding it to 0.4. + - **An existing `percent` field computed from its `expression` rounds the same way.** The engine shares one rounding step for computed values, so a stored `percent` field that computes from an `expression` now keeps `scale + 2` places for a fraction (and `scale` for a whole percentage). Before, its computed fraction was rounded to `scale` itself: at `scale: 1`, 0.417 was stored as 0.4 and read 40.0%; it is now stored 0.417 and reads 41.7%. The change applies to the next computed write; rows written earlier are not rewritten. + - **Its face.** `percentDisplay` applies to a `percent` formula too (bar or plain). The formula renderer formats the result with the percent formatter, and the field and object forms offer `percent` as a return type. Editing the expression in the Studio field inspector keeps a declared `percent` (or `currency`) unless the new expression proves text, a boolean or a date. + - **Declared, never inferred.** No CEL type proves a quotient is a percentage, so authoring keeps a declared `percent` where it would otherwise stamp `number`. Readers that switch on `returnType` (display-name eligibility, filter operator and comparand typing) treat `percent` as a number. + + The enum only gains a member: every formula that parsed before parses the same, and nothing stored needs migrating. +- 6f2bd4f: fix(fields): a create form that opens with a lookup value runs that lookup's `lookupAutofill`, and a picker's "+ New" seeds the `dependsOn` parent it filters by + + Clause-②: no + Metadata-protocol: none + + - **Opening value.** A create form can open with a lookup already set: a related list's New links the parent, a URL prefill sets it, or a form view default does. That lookup now fills the targets its `lookupAutofill` declares from that record, the same way a pick does. Example: from an opportunity, Related → Quotes → New opens a quote with Account filled from the opportunity. Only empty targets fill. A value the form opened with is explicit, so `overwrite: true` does not replace it. The fill uses the record the lookup already reads for its label, so no second request is made. The filled values count as opening values: a form nobody has touched closes without the discard prompt. A later pick replaces what the opening fill wrote, as it replaces what an earlier pick wrote. An edit form fills nothing from the stored record. + - **"+ New" in a dependent picker.** When a lookup's picker is filtered by `dependsOn`, its "+ New" now opens the create form with those values already set, under the field name the filter uses (`param`). The new record is then one the picker lists. The one-field inline create, used when no modal host is present, sends the same values. A picker with no `dependsOn` seeds nothing. + - **Hosts.** The form renderer passes a lookup the value it opened with (`openingValue`, create forms only). `onAutofill` now takes `{ opening: true }` for a fill made from that value. The console's `useActionModal` opens an object create form with the `initialValues` the descriptor carries. + + No metadata key is added or changed. +- b2d4355: fix(app-shell, plugin-designer, console): app writes send the app as its author stored it, not as the console's locale serves it + + Clause-②: no + Metadata-protocol: none + + The served app list is translated for the reader's locale, and the metadata save door stores a body verbatim. Four writers seeded a whole-app save from that served list: the Edit app wizard, App management's Disable / Enable / Set default and bulk toggles, the navigation sync that adds or removes an entry when a page, dashboard, report or object is created or deleted, and the Publish button on an unpublished app. In a zh-CN session each of them stored the app's label and every navigation label in Chinese, and readers in every other locale were then served Chinese. Each writer now reads the stored app from the untranslated layers through the new `ObjectStackAdapter.getAuthoredItem(type, name, { packageId })`, and changes only the keys its control owns. The served list is still used to find the app. When the stored app cannot be read, the writer refuses with an error and saves nothing; the Edit app page shows the read error instead of opening the wizard. +- b1eb500: fix(app-shell, data-objectstack, console): view, form, pair-action and report edits start from the stored item, not the translated served one + + Clause-②: no + Metadata-protocol: none + + The served metadata reads are translated for the reader's locale, and the metadata save door stores a body verbatim. Four more writers seeded a whole-item save from a served read, so in a zh-CN session each stored the translations as the item's source text and readers in every other locale were then served Chinese. The view config panel (and its draft-bar resume) seeded its buffer from the served view; the adapter's `updateView`, behind Manage views' Rename, Pin and Set as Default, merged onto the served draft or the served published view; Developer → Public Forms spread the served form view into its Publish and Edit writes and prefilled the thank-you text from it; and Studio's pair actions on an installed app's object buffered the pair's served actions. Each now starts from the untranslated layered read through `authoredBuffer` (the pending draft as stored, else the published item) or, for the live-row writers, `authoredPublished`, and changes only the keys its control owns. A pending draft whose stored copy the layered read does not serve is refused, and so is an item with nothing stored to read: nothing is written from the served copy. The report quick edit now hands its served draft to `authoredBuffer`, so a pending report draft the layers do not serve opens no editor instead of one seeded from the published report. +- 9f352e8: feat(studio): the main area adapts when the Studio right slot opens: narrow left rails, a four-column permission matrix, a Records grid that shows its scrollbar, and a resizable right slot + + Clause-②: no + Metadata-protocol: none + + - **Left rails narrow.** While the right slot shows beside the Studio pillars and the middle region they leave, list and content together, is under 900 px, the Data, Automations, Interfaces and Access lists draw 52 px wide: each row shows the first character of its name, with the full name on hover. The 「»」 button at the top shows the whole list over the content until a row is picked, Escape or a click outside. Closing the slot or a wider window brings the full list back. Phones are unchanged. + - **Permission matrix (Access pillar, Objects tab).** When the matrix's pane is narrower than 1000 px, each object row keeps Create / Read / Edit / Delete as flat checkboxes. Export, Transfer, View all, Modify all and the read and write scopes move behind the row's "More permissions" button, which shows how many of those six are on ("2 on" / 「已开 2 项」) and opens them in a row beneath. The "All · Read only · None · Read & write" strip folds into one "Bulk" menu with the same four actions. At 1000 px and wider the matrix is the full flat grid it was. The folded controls are the same checkboxes and pickers as the flat columns, so a read-only set locks them the same way. The width rule is a CSS container query on the matrix pane, so it follows the right slot opening, closing or being dragged wider. Setup's permission set page draws a different table and does not fold. + - **Records tab (Data pillar).** The grid's horizontal scrollbar is drawn at rest instead of only under the pointer, so a pane the right slot narrows still shows there are more columns. Selecting a field by its column header, or from the field list, scrolls that column into view, clear of the frozen name column. Column widths, the frozen name column and the 400 px ceiling of a long text column are the runtime grid's, unchanged. + - **Right slot width.** The slot is resized from its left edge within 320–560 px, and the properties pane and the AI copilot each remember their own width in the browser (360 px and 420 px by default). A width both panes shared before this release is not carried over: each pane starts from its default once. The in-place widen of the copilot and the phone overlay keep their own widths. + - New `studio` namespace strings, in en and zh: `engine.studio.rail.expand`, `engine.studio.rail.collapse`, `perm.more.col` and `perm.more.count`. +- 756aba2: fix(app-shell): a collapsed console sidebar hides fully, and its full menu floats out from the window's left edge + + Clause-②: no + Metadata-protocol: none + + From 768 px up, a collapsed app sidebar no longer leaves a column of unlabelled icons: it is hidden, the list and record pages get its width, and nothing in it can be focused or is announced. Both ways of collapsing look the same: collapsing it with the app bar's button, and the fold that collapses it on its own on a window narrower than 1416 px. To get the menu back, rest the pointer on the window's left edge (or press there): the full menu, with its labels and groups, floats over the page and folds back when the pointer moves away, a choice is made, Esc is pressed or the page is clicked. The app bar's button and ⌘B float the same menu, however the sidebar was collapsed, and move the keyboard focus into it; Esc gives focus back to the button. Floating it does not expand the sidebar, so a reload still finds it collapsed. To put the sidebar back beside the page, choose "Keep sidebar open" at the foot of the floated menu: the sidebar stays expanded, after a reload too, and on a narrow window the fold stays off. The phone keeps its bottom menu bar and drawer. +- 6cc1b3e: fix(app-shell): a phone's record bar never leads with an Edit that is off, whatever turned it off + + Clause-②: no + Metadata-protocol: none + + On a phone, the record page's bottom bar moved a greyed Edit out of its first slot only under an approval lock. An Edit turned off by the object's `userActions.edit.disabledWhen`, or by the record's state (every field the edit form shows is read-only through its `readonlyWhen`), still took the first slot, ahead of every action the reader could press. Now Edit moves into the bar's `⋯` for any of the three reasons, still drawn and still off, and the first usable action takes the slot. The state lock keeps its "Not editable in its current state" badge. The desktop header keeps Edit greyed in place for every reason, and an Edit that is on is unchanged. +- 2fea6d2: fix(plugin-designer, app-shell): a packaged app is saved at its package, not at the package-less address + + Clause-②: no + Metadata-protocol: none + + The Edit app wizard read a packaged app at its package but saved it with no package, and the navigation sync that adds or removes an entry when a page or dashboard is created or deleted read and saved every app with no package. Both now read and save an app a package owns with `{ packageId }` (sent as `?package=`), the row the console serves, the way App management already saves it. An app no package owns, including one served with the `sys_metadata` sentinel, keeps the package-less address. A managed package's sealed app is still refused by the server at either address, and the navigation sync still skips it. +- fd471d3: fix(messaging): a member's own "no digest" or "no quiet hours" now beats the organization's default + + Clause-②: no + Metadata-protocol: none + + A member who chooses no digest, or clears their quiet hours, now keeps that choice even when the organization's default sets a digest or quiet hours. The organization's default is a default, not a floor. Before this release the member still got the organization's digest and quiet hours. + + - **Three states per field.** A notification preference's `digest` and `quiet_hours` are each one of: not set (empty), explicitly off, or a value. The most specific preference that sets the field decides it. A preference that leaves a field empty decides nothing for that field, so it keeps following the next preference: the default for all users, then none. Explicit off is `none` for the digest and `{ "off": true }` for quiet hours. An organization default that is explicitly off is the same as no default. After an explicit "no quiet hours", the member's digest still lands at midnight in the time zone of the organization's quiet-hours window (the next preference that holds one), or UTC when none does. + - **`digest` has no default value any more.** A preference created without a digest stores it empty, so it follows the organization's default. On a database created by an earlier release, the `digest` column still carries the old database default `none`. The messaging service writes an explicit empty digest on every insert that leaves it out, so the database default never applies. A write that skips the platform's engine (raw SQL, a bulk load straight into the table) still stores `none` on such a database. That stored `none` now means "no digest". + - **Stored rows keep their meaning.** On the first start of this release, every stored `digest = 'none'` is rewritten to empty, in every organization, once. The pass is recorded in `sys_migration` (`messaging-preference-digest-none-unset`) and never runs again, so a `none` chosen after the upgrade is kept. A stored `none` never took effect before, so no one's digest changes at upgrade. If you picked "none" by hand in Setup > Notification Preferences to opt out, pick it again after upgrading. + - **The Notification Settings page offers the opt-out.** "No digest" is always offered and saves `none`. Clearing the quiet-hours window and saving stores `{ "off": true }`. The two notes saying these choices were not offered are gone, in all 11 languages. +- 1b2cd80: fix(app-shell, components): a record Edit or Delete greyed by `userActions.*.disabledWhen` says why + + Clause-②: no + Metadata-protocol: none + + When an object's `userActions.edit.disabledWhen` held on a record, the record page greyed Edit and said nothing about why, on desktop and on the phone; the header overflow's Delete under `userActions.delete.disabledWhen` was just as silent. Both now give the generic reason an authored action without a declared `disabledReason` already gives ("Not available for this record", in every shipped language): on desktop as Edit's tooltip and accessible description, and as the second line of the `⋯` entry, which is where Delete sits and where a phone's off Edit goes. The approval band and the "Not editable in its current state" badge keep explaining their own locks, so an Edit they turn off gives no second reason, and a record that has not loaded yet gives none. + + `page:header` now draws a `disabledReason` a host hands with one of its own header actions (`RecordContext.headerSystemActions`) when that action's `disabled` holds. A host action that hands none stays silent, as before; the generic reason is still given only to authored actions. +- 00cfb78: fix(console): the *Publish all* warning about failed sample data shows the pack's sentence, never the seed loader's text + + Clause-②: no + Metadata-protocol: none + + Home's *Publish all* and the draft-preview bar's *Publish* warn "Published, but some sample data failed to load." when a seed fails to load. The detail under that title printed the seed loader's own engine text (for example "seed apply stopped at the seed for object …"), and for a package-less seed with no text a hard-coded English "NAME: sample data failed to load" in every language. It now shows the sentence the AI chat's publish-health line already shows for the same failure (`chatbot.build.health.seedFailed`, from the locale pack), on both the package batch and the package-less publish. The loader's text never reaches the toast. + + No locale keys, props or exports change. +- 7702f09: fix(lint, studio): warn about a required field's `visibleWhen` formula read only when the form cannot compute the formula + + Clause-②: no + Metadata-protocol: none + + A `required` field whose `visibleWhen` reads a `formula` field used to draw a warning from `os validate` (and the object save door) and an advisory in Studio's field inspector for every formula it read. The form now computes the object's formulas over the record being edited, so for a formula it can compute the form and the server judge the same value, and that warning named no real problem. Both now fire only for a formula the form cannot compute: + + - **The server cannot compute it either.** The formula reads through a reference, calls `label()` or `current_user.can()`, or reads such a formula. The server counts the field as shown, so it stays required on every record. Same verdict as before, now stated on its own. + - **Only the form cannot compute it.** The formula reads `os`, or reads such a formula. The server computes it and can waive the field where the form still shows it and keeps it required. Before this change such a formula drew only the generic warning, which said the form computes it. + + Either message now says that the form's half holds for a form that computes the object's formulas. A form check that computes none judges the value it last read, and can hide the field or not ask for it. + + A formula that reads the acting user draws nothing, as before. Both sides compute it for a signed-in writer. + + Studio catalogue (en, zh): `designer.field.requiredVisibleWhenFormula` is removed. `designer.field.requiredVisibleWhenFormulaUnservable` is now a full sentence on its own. `designer.field.requiredVisibleWhenFormulaFormOnly` is new. The lint rule's location and severity (warning) are unchanged. No props or exports change. +- 05e0eb8: fix(console): Notification Settings is read-only, with its reason, for a caller who cannot change their notification preferences + + Clause-②: no + Metadata-protocol: none + + An external member (the `org_external` identity, `external_default` permission set) could open the Account app's Notification Settings page and was shown every switch, the digest choice and the quiet hours as editable, yet each change answered `403`: that set grants no create or edit on `sys_notification_preference`. The page now reads the caller's own grant on that object from the console's permission answer (`/me/permissions`, through `usePermissions()`), and when the caller holds neither a create nor an edit grant it draws the same settings read-only: every control disabled, one visible line saying why (`notificationSettings.readOnly`, in every built-in locale), named by each disabled control as its accessible description, and no write sent. + + What does not change: a member and an organization administrator see and use the page as before. With no permission answer mounted, the page stays writable and the server's refusal decides, as every other console grant read does. No metadata key, value, default or permission changes; the server's refusal is unchanged. +- c890070: feat(console): the Studio landing opens package management in one click + + Clause-②: no + Metadata-protocol: none + + Studio's landing (the App Builder home at `/_console/studio`) is now the visible door to package management. Every package card carries **Manage**, which opens the same detail sheet as the top-bar package switcher's "Package info & settings": Disable where the server says the package can be switched off (a module of an installed app, or your own app), Enable on a disabled package, and export. The title row gains an **All packages** link to the unfiltered Packages page. Before, the only way in from a menu was to open a package, open the package switcher and pick its last entry, so admins of code-loaded modules looked for Disable and did not find it. +- 609b675: fix(console): the record form draws a field whose `visibleWhen` holds for the record, on the default (fieldGroups) form too + + Clause-②: no + Metadata-protocol: none + + The console's record-form dialog and the full-page record form built their field list by evaluating each object field's `visibleWhen` once, with no record bound. A total predicate such as `has(record.stage) && record.stage == "closed_lost"` answers a clean false without a record, so the field was left out of the list before the form saw the record. A form laid out from the object's `fieldGroups` draws only listed fields, so a deal's Loss Reason never appeared on a lost deal, while an authored form view section with the same predicate drew it. + + The field list now reads the static `hidden` alone. A field's `visibleWhen` is evaluated by the form, against the record (the stored row under the values being edited) and the signed-in user, and again as the user edits, so a field whose predicate turns true mid-edit now appears. `hidden: true` still keeps a field off the form whatever its predicate says, a predicate that cannot be evaluated still fails open, and the refused field-level `visible` is still not read. + + Visible change: a field whose `visibleWhen` reads the record (or the user) is now drawn whenever its predicate holds for that record. On the full-page form this includes an authored section that names such a field, which the list used to drop. No props, exports, metadata keys or locale keys change. +- 58d00db: fix(console): the About dialog names the ObjectStack version first, then the console build + + Clause-②: no + Metadata-protocol: none + + Help → About showed one row, the console build (a git short sha), and nowhere the ObjectStack version. The dialog now opens on an **ObjectStack version** row filled with exactly the `version` the server's discovery document answers (an operator's `OS_RUNTIME_VERSION` stamp where one is set), read through the shell's adapter from the discovery document the console already holds, so opening it sends no new request. **Console build** stays as the second row, so a deployment can still be traced to a commit. While the read is in flight the version row says it is loading; when discovery cannot be read or names no version, it says so in words ("Unknown version (the server did not report one)"), never an empty field. + + New locale keys `help.aboutVersion` and `help.aboutVersionUnknown` in all eleven packs, and `help.aboutDescription` now names both rows. No props or exports change. +- 3e7feed: fix(console): the AI chat page's publish warning about failed sample data shows the pack's sentence, never the seed loader's text + + Clause-②: no + Metadata-protocol: none + + Publishing from the AI chat page warns "Published, but some sample data failed to load." when a seed fails to load. The detail under that title printed the seed loader's own engine text (for example "seed apply stopped at the seed for object …"), and when the loader reported only per-record rows it printed "[object Object]". It now shows the sentence the chat's publish-health line already shows for the same failure (`chatbot.build.health.seedFailed`, from the locale pack), the same sentence *Publish all* shows. The loader's text and its error rows go to the browser console (`console.warn`), never the toast. + + No locale keys, props or exports change. +- 20badae: fix(console): an object the presence read served is not read again by name + + Clause-②: no + Metadata-protocol: none + + A list page whose object has a lookup to an object outside the app's package (on the showcase, `sys_user`) asked for that object twice: first in the `GET /api/v1/meta/object?names=` presence read, which already answers with the object's definition, and then by name (`GET /api/v1/meta/object/sys_user`) about 0.7 s later. The by-name read now takes the definition from the presence read when that read served it, so the lookup target costs one request. The same holds for the objects an app's entries require (`requiresObject`) and a dashboard's widget objects, which were also asked by name after their presence read had served them. + + What does not change: a name the presence read left out is still asked by name, so an object that is refused (`OBJECT_PACKAGE_DISABLED`) is still told apart from one that does not exist. A name the presence read has not answered yet is still asked by name. The draft preview still reads every object by name. The definition a scope holds is the same document the by-name read returned. No metadata key, value or default changes. +- 6f4d6e7: fix(app-shell): the Studio Automations list names each flow by the package's translated label + + Clause-②: no + Metadata-protocol: none + + A package can translate a flow's label (`flows.<flow>.label`). The flow designer already showed that translation for the open flow, but the Automations list beside it still showed every flow by its authored English label, so a zh-CN admin looked for a flow under a name the list did not use. Each list row, and its hover title, now shows the same translated label the designer header shows, read through the same helper in the viewer's language. A flow the package does not translate keeps its authored label, as before. The list search matches the label a row shows, and still matches the authored label and the machine name. +- 6a35635: feat(console): Change Owner on the record page, in a list's selection bar, and beside the read-only owner of the edit form + + Clause-②: yes (widening) + Metadata-protocol: none + + A record whose object offers Change Owner now shows a **Change Owner** action in its page header. The action appears only where three things hold: the object can have its owner changed (it has a per-person owner that is not pinned read-only), the object's `userActions.transfer` switch is on, and the server's explain engine allows this user to transfer this record. A `controlled_by_parent` detail offers the action only once its author turns the switch on. Objects with `ownership: 'none'`, `managedBy` objects and `sys_*` objects never offer it, even to a platform admin. + + The action opens one dialog. You pick the new owner under the object's own label for its owner field. Where the object has an ownership queue, you can pick a queue instead. You can also ask that the new owner be notified. The dialog sends the change through `data.changeOwner` for one record and `data.changeOwnerMany` for several. Picking the record's current owner is refused in the dialog with the reason shown. A bulk change ends with a report: how many records moved, how many already had that owner, how many did not move, and each row that did not move with the server's own reason. + + A list's selection bar offers **Change Owner** for the selected rows, where the object's switch is on and the explain engine allows this user to transfer the object's records (one question per object, not per row, asked once a selection is open rather than when the list opens). The rows of such an object take a selection even when the user has no bulk Delete and the view authors no bulk actions, so the entry can be reached at all; where the verdict refuses, the bar draws no Change Owner. The server judges every row again. Rows that the switch's `visibleWhen` excludes are left out of the request, and the dialog says how many were left out. + + The Console's edit form now shows the owner, read-only, above the form's fields, with Change Owner beside it when it is offered. The owner field is still not part of what the form saves. Forms embedded outside the Console are unchanged: the owner line appears only where a host mounts `FormOwnerLineContext` (exported from `@object-ui/plugin-form` and `@object-ui/plugin-form/core`). + + New public surface, all additive: + + - `@object-ui/plugin-grid`: `ObjectGrid` takes two new optional props, `onBulkChangeOwner` (wiring it makes the rows selectable and adds the entry) and `bulkChangeOwnerOffered` (`false` holds the entry back while the rows stay selectable); the package exports the action name `CHANGE_OWNER_BULK_ACTION`. + - `@object-ui/plugin-list`: `ListView` takes and forwards both props. + - `@object-ui/plugin-form`: new exports `FormOwnerLine`, `FormOwnerLineProps`, `FormOwnerLineContext`, `FormOwnerActionTarget` and `FormOwnerLineHost`; `@object-ui/plugin-form/core` exports `FormOwnerLineContext`, `FormOwnerActionTarget` and `FormOwnerLineHost`. + - `@object-ui/plugin-detail`: `RecordOperation` gains `'transfer'`, so `useRecordVerdict` and `seedRecordVerdict` accept it. + - `@object-ui/i18n`: every console locale gains `grid.changeOwner` and the `console.changeOwner.*` block. +- a354bb0: fix(app-shell): the inbox badge's read-state no longer waits for the inbox messages to load + + Clause-②: no + Metadata-protocol: none + + The bell badge and Home's action centre read the signed-in user's newest 20 inbox messages and the receipts that say which of them are read. The receipt read used to start only after the message read answered, so on every console page load it was the last request to go out. It now reads the newest 20 inbox receipts at the same time as the newest 20 messages, and asks by id only for a listed message whose receipt that read did not carry, so the read-state, the unread count and the badge stay exactly as they were. An inbox with no messages still sends no receipt read on its later polls. +- cc6f30c: fix(console): an approval request opened from an app's inbox stays in that app, and the record breadcrumb never shows a raw id + + Clause-②: no + Metadata-protocol: none + + Opening a request from the approvals inbox an app mounts (「待我审批」, `approvals:inbox`, or the inbox under the app's `system/approvals`) now opens it inside that app: the app name, the sidebar and the path stay the app's (`/apps/APP/sys_approval_request/record/ID`). It used to open under whichever app listed the request's record object, else the Setup app, so a business user lost their app after every decision. "Open the next one" after a decision stays in the same app, and the last decision returns to that app's inbox. The record card on the request page still opens the record in the app that owns it. Requests opened from no app (Home's 我的工作, a notification, an email link) are unchanged: they still open under the app that owns the record, else Setup. + + A record page's breadcrumb (「OBJECT › RECORD」) drew the record's raw id (`#areq_9e5…`) for as long as the record's read took, then swapped in its title. It now names the record by its object's label while the read is in flight (「审批请求」 for an approval request, 「Lead」 for a lead), then by its title once the read lands, in the same render. A loaded record with nothing to be named by still shows its short id. Every object's record page gets this. + + The page also stays mounted when it steps to another record (the counter's ↓ ↑, `j` / `k`, and the approvals queue's 「open the next one」 after a decision), and its title used to be held across the step: while the next record was read, the breadcrumb named it with the previous record's title, and its favourite label, its "Recently Accessed" entry and the pane bar's title were briefly written with that title too. A title is now read back only for the record it was resolved for, so during the read the breadcrumb names the object, and nothing is written under the wrong record. No locale keys, props or exports change. +- cda16d4: fix(console): the approval request page is named by the record it asks a decision on, and its reject button no longer outweighs approve + + Clause-②: yes (widening) + Metadata-protocol: none + + - **The page title.** An approval request's page used to be titled by its flow's label ("Purchase approval"), which the strip under it repeated as its Flow chip, while the business record the approver decides on had no title at all. The page header now reads the record's title the approvals get serves (`record_title`), linked to that record once the page itself has read it: a plain click opens it in the app, as the "As submitted" card's "Open record" link does, and a modifier or middle click opens it in a new tab. Where the page's read of the record is refused or finds nothing, or the platform says the record was deleted, the title is plain text with no link, as the record card on the same page draws it. The title makes no read of its own: the reads the page already makes report what they found. Where the get serves no title for the record, or serves only its id, the header keeps the flow's label, so the page never names the record by a raw id. The flow stays named once, by the strip's Flow chip; no subtitle is added, because it would repeat that chip. The request object's declared title (`nameField: 'process_label'`) is unchanged, so lists, search, recent items and the breadcrumb still name a request by its flow. + - **`RecordHeaderState.title`** (`@object-ui/components`, new optional member, with its type `RecordHeaderTitle`). A host that knows a better name for the record than the object's declared title hands `{ text, node? }`; `page:header` draws `node` (or `text`) inside its H1, in the host's top bar and in its own row alike. Absent, or with an empty `text`, the header's own title stands exactly as before. + - **The decision band.** In the approver's band (the request page, and the business record page's approval band), Approve stays the filled primary button and Reject is drawn as an outline button in the destructive text colour, the face the record header already gives a secondary danger lever. A host that does not ask for the band's fold keeps the declared filled danger face. + - **One time format.** The approval timeline's action times use the compact datetime face the page's highlight chips and every `datetime` cell draw (`2026/11/10 下午8:25` under zh-CN), in the host's display time zone, instead of the browser's long form with seconds. + - `@objectstack/plugin-approvals`: comments only, saying where the request page now names its record. +- 540022f: perf(console): a full-page record open asks its page list and object scope beside the permission read, and the app bar's package list after the page + + Clause-②: no + Metadata-protocol: none + + Opening a record page by its URL (a reload, a pasted link) waited one more round trip than it needed to, and shared the link with the largest response an app page reads: + + - The console root's prefetch (`useAppObjectScopePrefetch`) now starts a record route's page list (`/meta/page`) and, under the same rule `AppContent` follows, the app package's object list, as soon as the app list names the app. Before, both left only once `AppContent` mounted, which is after `/auth/me/permissions` answers. + - `fetchSessionPackages` (the read behind the app bar's and the sidebar's Studio entries) waits until the page's own requests have stayed quiet for 750 ms (at most 8 s) before it reads `GET /api/v1/packages`, so that response no longer downloads beside the record. The entries it gates stay absent until it answers, as they already did while it was on the wire. Studio's own package reads are unchanged. + - New `whenQuiet(quietMs, maxMs)` in the settle signal; it resolves at once where no data layer counts requests. +- fe75349: fix(approvals): the approval timeline names an unstaffed position by its label, and the platform's own rows read as the system's + + Clause-②: yes (widening) — @objectstack/plugin-approvals adds the optional `ApprovalServiceOptions.positionLabelSource`; @object-ui/i18n adds approvalsInbox.systemActor and approvalsInbox.actSystemNote; nothing removed + Metadata-protocol: none + + When a request goes to the organization's administrators because a position on its approver list has no holder, its timeline note named the position by its machine name ("岗位「crm_sales_manager」无人任职"). The note a reader is served now names it by its label: the reader's language pack (`positions.<name>.label`) first, else the position's declared `label`, else the name as before ("岗位「销售经理」无人任职"). The English the row stores for audit keeps the name. + + On the timeline, a row no person took read its actor as "—", and the routing, submitter-exclusion and no-approver notes read as "Commented". A row with no actor now reads its actor as "System", and a `comment` row with no actor reads as "System note". A person's comment keeps "Commented" and its author. + + New locale keys: `approvalsInbox.systemActor` and `approvalsInbox.actSystemNote`, in all eleven packs. +- dab4712: feat(console): the 「All documentation」 page has the console's top bar, groups its books by app, and searches every article + + Clause-②: yes (widening) — @objectstack/client `meta.getItems` takes an optional `include` (`'content' | 'grants'`, sent as `?include=`) and exports its options type `MetaItemsListOptions`; @object-ui/i18n adds nine help.* keys (two of them plural, with their per-locale forms); nothing removed + Metadata-protocol: none + + - **The console's top bar on every portal page.** `/docs`, a book (`/docs/<book>`) and an article (`/docs/<book>/<article>`) are drawn in Home's frame, whose bar reads 「<product> / Documentation」 (the crumb links to the portal's index) and carries the search, the inbox, the assistant and the avatar menu, so the reader can go back to any app. The portal's own 「Documentation / <title>」 strip is gone. + - **Books grouped by app.** The page lists each app's books under the app's name, as the launcher names it: a book goes under the first app whose navigation links to it (a module's navigation contributions included), else under its package's app; books no app carries are listed last under 「Other documentation」. No card shows a package id; a package's docs with no authored book are named by their app. A platform package's books (`com.objectstack.*`, such as Setup's) are listed only under an app in the member's list that carries them, never under 「Other documentation」, so they are not listed for a member whose app list has no such app. This is what the page lists, not who may read a doc: the server's audience gate decides that, as before. + - **The subtitle and the counts read the session language** (「9 篇」, not 「9 articles」). + - **「Search all documentation」.** A search field on the page searches every listed article's title, summary and body, and lists the matches with the words marked in context; each opens the article in its own book. The bodies are asked once, the first time the reader searches (`GET /meta/doc?include=content`, through the same audience gate as the list). The query stays in the URL (`?q=`). + - **A hand-typed article URL whose book does not hold the article** (`/docs/<book A>/<article of book B>`) now opens the article in its own book; with no book that holds it, the article draws no previous/next pager instead of showing both ends at once. Inside an app, an article whose book is in no package now keeps its 「← Back to <app>」 link. + + `@objectstack/client`: `client.meta.getItems(type, { include })` and the environment-scoped `meta.getItems` send `?include=`; leaving it out sends nothing, as before. `@object-ui/app-shell`: `AppHeader` takes a `docs` variant and `DefaultHomeLayout` a `variant` prop for it. +- 141a826: feat(console): an app's docs page has one navigation — the docs column — with the path to its book and the previous and next article + + Clause-②: yes (widening) — @object-ui/plugin-markdown exports MermaidEnlargeContext and MermaidEnlargeText; @object-ui/i18n adds 12 help.* keys; nothing removed + Metadata-protocol: none + + Inside an app, the documentation pages (`/apps/<app>/docs/…`) no longer draw the app menu beside the docs: the left column is the docs' own, with 「← Back to <app>」 at its top, a title filter, every book of the app's package (the current book open, the others folded, each with its article count; long titles wrap instead of truncating) and 「All documentation →」 at its foot. Every other docs page inside an app (the app's docs index, a book with no articles, a book or doc not found) carries the same 「← Back to <app>」 at its top. The app bar stays, and reads 「<app> / Documentation」; the separate 「Documentation / <title>」 bar under it is gone, and the path above the article names the book (Documentation › <book>). 「On this page」 marks the section being read as the page scrolls, and the article ends with its book's previous and next article. The article column is 720 px wide at 15 px, and a diagram carries an 「Enlarge」 control that opens it full size. + + `@object-ui/plugin-markdown` adds `MermaidEnlargeContext`: a host that provides its words gets the enlarge control on every rendered diagram; with no provider a diagram renders exactly as before. `@object-ui/app-shell` exports `matchAppBySegment` and `useServedAppLabel`, and `isAppDocsPath` beside `isRecordPagePath` from its `ConsoleLayout` module. New `help.*` keys in every shipped locale. No doc content, doc metadata, route or API changes. +- 8145424: feat(i18n): the sign-in page and the in-app language menu offer one list, every interface language + + Clause-②: yes (widening) — @object-ui/i18n adds `appContentLanguages` to the i18n context and the locale key `console.localeSwitcher.appContentDefault` in all eleven packs; `offerableLanguages` is never `null` any more; nothing removed + Metadata-protocol: none + + The in-app language menu used to list only the languages the app declares (four on HotCRM), while the sign-in page, which has no session to ask the app with, listed all eleven interface languages. A language picked on the sign-in page (German, Korean) was then missing from the menu after sign-in. + + Both now list all eleven, as does the profile page's language card. A language the app's own content is not translated into stays selectable: the interface shows in it, and object, field and view names show in the deployment's default language. The menu row of such a language carries one muted line, "App content shows in the default language", and the profile card shows the same line under the picker when one is chosen. The sign-in page marks nothing, because nothing has been read about the app there. + + `offerableLanguages` on `useObjectTranslation()` is now every platform locale table language whatever the app ships. The app's list (`loadLocales`) feeds the new `appContentLanguages`: the table languages it covers, or `null` when not known (in flight, signed out, failed, or naming no table language). `GET /api/v1/i18n/locales` is unchanged and no language pack is added. The organization's default-language setting keeps the app's declared list. +- 83a79e6: fix(app-shell, plugin-chatbot): the AI panel in an app has one title row, and its composer reads cleanly + + Clause-②: no + Metadata-protocol: none + + The console's AI drawer title bar is one row: History, a 「···」 menu and a 「×」 Close. The menu holds the AI usage reading (with its upgrade or top-up entry when the pool runs low), Share, Expand / Restore side panel, and the Build Doctor. The Build Doctor is listed only for a user who may build (`manage_metadata`, the reading that already decides who gets the build composer). While the usage pool is running low or full, the 「···」 trigger carries a marker. The close button is the drawer 「×」, named Close, in both the side panel and the full window; closing still keeps the conversation for the next open. The phone sheet gets the same menu, without Expand. + + The pane row under the title keeps the agent label and the app chip, but no longer draws Share or the Build Doctor in the drawer. `ChatPane` gains `actionsInHost` for a host that offers them itself. The full-page chat and the Studio copilot are unchanged. + + In the composer: + + - the 「正在看」 chip sits on the input's top edge, inside its frame; + - the closed model picker shows the model's label alone, truncated, with the full label on its title (no provider, no `×N`). The list rows keep both; + - the 「↵ 发送 · Shift+↵ 换行」 hint stays on one line; + - the 「+」 attachment button and its menu item are named "Add attachment" (「添加附件」). + + An answer table's copy and download tools are named in the reader's language (「复制表格」, 「下载表格」 and their format variants) instead of streamdown's English defaults. + + New locale keys, in every pack: `console.ai.dock.close`, `console.ai.dock.more`, `chatbot.composer.addAttachment`, `chatbot.answer.copyTable`, `copyTableAsMarkdown`, `copyTableAsCsv`, `copyTableAsTsv`, `downloadTable`, `downloadTableAsCsv`, `downloadTableAsMarkdown`. The drawer no longer reads `console.ai.dock.collapse`. +- dda665f: fix(grid): a list in a narrowed main area keeps every data cell clear of its fixed columns, shows its horizontal scrollbar, and draws a short header + + Clause-②: no + Metadata-protocol: none + + - **Row actions column.** While a list's table is wider than its box (the AI panel docked, a small window, the record drawer open), the row actions column (the row's "⋮") is drawn right after the frozen name column and frozen with it, instead of pinned to the right edge, where it covered the data column reaching that edge (an amount cut to 「¥94,0」). Every data column then scrolls sideways under the frozen columns, and none is covered at rest. Once the box is wide enough for the whole table again, the column goes back to the right edge, so a list that fits looks as before. Inline primary row actions still fold into the "⋮" menu first, as before. Columns an author pinned to the right stay where the author put them; the grouped list is unchanged. + - **Horizontal scrollbar.** A table wider than its box draws its scrollbar at rest instead of only while the pointer is over it, so columns out of view are announced. A table that fits keeps the scrollbar that shows on hover. + - **List header.** While the list page's header is narrower than 768 px, it draws no description, and Import moves into the 「⋯」 menu beside New. A wider header is unchanged. This is opt-in: the console `PageHeader` gains `compactBelow` (a width in px; below it the one-row header drops its description and draws its folded actions), which only the list page passes, so other pages that use `PageHeader` are unchanged. Setup's two-line header ignores it. + - No column is hidden and no column configuration changes. +- 36e02fd: fix(console): a refused metadata save draws a nested cause under the row its path names + + Clause-②: no + Metadata-protocol: none + + After a refused save, Studio's metadata form drew an issue under a field only when the issue's path was exactly that field's key. A cause one level down — a label carrying a key that is not a locale (`label.not_a_locale`), a nested predicate's part, a list column's sub-field (`columns.0.field`) — lit no field at all, and since the server stopped sending the bare "Invalid input" head at the field's own key, about 25 keys across 12 metadata types showed no red line after a refused save. + + An issue is now drawn on the deepest field the form shows for a prefix of its path, for every issue source (the server's refusal, the live check, load-time diagnostics): + + - a field draws a deeper issue itself, led by the path's trail (`Label → not_a_locale: …`, `Columns → #1 → field: …`); + - a field rendered as a nested form passes the issue down to the nested field it names, which draws it as its plain message; + - an issue under a list, map or code field stays on that field, with its trail; an issue under a hidden or canvas-owned key stays in the summary banner, as before. + + One mistake is still one message: the summary banner and the refusal line leave out every issue whose top-level field the form draws it under. In a new item's form, a nested field's issue shows exactly when its parent field's does. + + The Save button's reason for a refused draft no longer starts with a comma when the server also refused the document as a whole: the whole-document entry is not named as an empty field, and a refusal of only the whole document names its own message. + + No locale keys, props or exports change. +- 3957126: perf(console): an object list's saved-view read starts with the route, not after the list's lazy modules + + Clause-②: no + Metadata-protocol: none + + Opening an object's list (`/apps/APP/OBJECT`, or one of its views) read the object's saved views (`GET /api/v1/meta/view?object=OBJECT`) only once the list page had mounted, which waits for the list's lazy modules to load. On the built console that read left 486-883 ms after the app bundle answered, with no request in flight. The console now starts the same read as soon as the route can render (the app's object scope has settled with the route's object in it), so it runs while those modules load, and the list page joins it when it mounts: still one request per open. The list's first data page is still asked when the list mounts; the saved views are now in hand by then. + + Not started under a draft preview (`?preview=draft`), whose list read is a different request, nor on a route whose object the app does not serve. A record page is unchanged. No props, exports or metadata change. +- e01b8be: feat(console): the list page's frame — a 44px page bar, a 40px view bar, a denser grid and per-column totals in the grid's own last row + + Clause-②: no + Metadata-protocol: none + + The object list page is redrawn around two bars and a denser grid (objectstack#35548, the first card of the list-page epic): + + - **Page bar, 44px.** The object's icon in one colour and its name on the left; ⋮ and 「+ 新建」 on the right. The object's description, Import and Favorite moved into ⋮. + - **View bar, 40px.** The view switcher is one trigger on the left, reading the view type's icon, the view name, the record count and a caret (the count beside the name returns, after objectstack#34603 removed it). 「筛选」「排序」「选项」 are text buttons on the right beside the search icon, and open the same panels as before; below `sm` they stay icons. The kanban and every other view type draw the same two bars. An empty condition row under the bar takes no height. + - **Grid.** A 32px header and 33px default rows, 13px on the header, the cells and the bar buttons, faint row lines, no rule after the first column, and the frozen-column shadow only once the grid scrolls sideways. The row ⋮ trigger is 24px so it fits the row. Lookup values read as small chips, money and number columns (a money formula with `returnType: 'currency'` among them) align right with tabular digits, and select labels keep their colour at lower saturation. + - **Totals.** Column summaries are drawn as the table's own last row, each figure under its column (so they line up at any width and are never covered by pinned columns), led by 「计数 N」; the separate footer line and its doubled colon are gone. + + `DataTableSchema` gains one host-only runtime slot, `summaryRow` (`{ lead?, cells }`), which `ObjectGrid` fills; like `rowGroups`, the zod face refuses it by name, so it is not authorable. New locale keys: `list.options`, `grid.summary.countLead`. +- 238661f: feat(list): the list's options panel is a menu of second levels, and the view dropdown creates a view in place + + Clause-②: no + Metadata-protocol: none + + **The options panel (选项) is a menu.** Each row names a setting on the left and shows its current value on the right, and opens a second level: the view name, Layout, Fields (「已显示 N 个」), Grouping, Row color, Row height (紧凑 / 标准 / 宽松), and More (how records open, row numbers, inline edit). On a phone a Sort row is added, as before. The Layout level lists every layout the view offers as one choice each, at any count. The Fields level is the list's shared field list (the one 筛选 and 排序 open), as the view's field manager: a search box on top; the shown fields are listed in their order, can be dragged (or moved with the arrow keys) and hidden by their eye, and the hidden fields sit below, where one click shows a field again or adds a readable field the view does not list. Only fields the reader may read are offered. The footer reads 「恢复默认」 and 「刷新」, and — on one of the reader's own views that differs from what it stores — 「保存」 beside 「恢复默认」, which writes the list on screen into that view (as the 「已个性化」 marker's 保存 does); in the console 「恢复默认」 is the marker's reset, dimmed while there is nothing to restore. The view name at the top is renamed in place by the view's owner, or by an admin on a saved shared view; opening the menu does not put the cursor in it. Fields reorders the grid's columns through the same state a header drag writes, and Row height on a gallery picks its card size by name; every icon button has a name; the developer note under Open records is gone. These settings stay the reader's own preference, stored as before. + + **The view dropdown** keeps its search and lists one row per view, led by its type's icon, with the reader's own views (我的视图) and the shared views in groups of their own; a long name wraps instead of being cut. 「添加视图」 at the bottom turns the dropdown into a create card (the separate 「另存为我的视图」 entry and its name dialog are folded into it; the full Create View dialog stays reachable from 「管理视图」): a name, the view type (with icons), the one field the type needs (kanban: the group field; calendar: the date field), 「包含当前的筛选和排序」 while the list holds unsaved conditions (on by default), and — for a reader who may create shared views — a personal / shared switch. The one field a type needs defaults to one the list shows (a kanban groups by 阶段 on a list that shows it, not by a hidden status-like field). 「创建」 creates one of the reader's own views by default and opens it; a shared view goes through the existing draft-and-publish door unchanged. No machine name is asked for: a unique one is generated from the name. A kanban or gallery created this way lists the view's columns as its card fields, as the add-view door does. + + The fields count label (`list.optionsMenu.fieldsShown`) is a count family in every pack. Keys no surface reads any more are dropped from every pack: `list.recordOpenNote`, `list.recordOpenDeclaredPage`, `view.switcher.all` and `view.switcher.saveAsMyView`. +- 72d19c4: feat(record-page): the record's header is one row with one button group + + Clause-②: no + Metadata-protocol: none + + A record page used to stack its top bar, the record's header row under it and, while an approval was pending, a band of decision buttons above the body. They are now one 44px row: + + - **Full page.** The object icon and name, `/`, the record's name, its stage tag and an approval tag on the left; the record counter and prev/next, a divider and the record's ONE button group on the right. + - **Drawer.** The record's icon, name, stage tag and approval tag, then the button group, 整页打开 and 关闭. The drawer's bar draws no object name, counter or prev/next once the record's header holds it. + - **One button group, by the approval's state.** Normal: Edit, the record's one primary action and ⋯. Pending on the viewer: 通过 (the only filled button), 驳回, and ⋮ with the other approval levers, a separator and the record's actions. The viewer's own submission pending: 撤回, 催办 and the same ⋮. An administrator who holds only the override keeps the marked override menu ahead of the group. On a phone the bottom bar draws the same group, with 通过 the only filled button. + - **Approval tag.** 「待你审批」, 「审批中」, 「已退回修改」 or 「已驳回」 beside the record's name; it opens the approval's detail, today the approvals panel on the page. + - **Locks.** A record an approval locks draws no Edit and no 「审批中已锁定」 badge in the body; the approval tag says why (its tooltip names the lock). A lock from the record's state keeps Edit drawn and disabled, with its lock tag beside the record's name. + - **Reject asks for a reason.** The record page's reject dialog requires its comment. The declaration and the approvals list are unchanged. + + A record page whose layout has no `page:header` keeps the decision band above its body, since no header draws the group there. The request page's `ApprovalDecisionPanel` band is unchanged. + + `@object-ui/components` adds `RecordHeaderBarContext` (the slots a host's bar offers the record's header) and `RecordHeaderStateContext` (the tags and the button group a host's record state hands it); `RecordTopBar` and `NavigationOverlay` take an `actionSlotRef`, and `NavigationOverlay` a `stepperHidden`. `PageHeaderActions` takes a `defaultMaxVisible`. `@object-ui/react`'s `InlineEditProvider` takes `approvalTagDrawnByHost`, and `DetailView`'s approval band then draws no badge for an approval lock (the tally stays). Nothing an app authors changes. +- b0c624a: feat(record-page): one tab per related list, and an Overview rail that sums up the other tabs + + Clause-②: no + Metadata-protocol: none + + The record page's tab row and its right column are redrawn (supersedes objectstack#28469): + + - **Tabs.** Overview, then one tab per related list in its order, then Attachments, Approvals and Activity last. Every tab is there at first paint and none moves when the counts land. A list with no records keeps its place, greyed, with no number. The width is the row's only fold: the tabs that do not fit go into 「更多 N ▾」, whose items keep their counts. Approvals carries a dot while a request waits, not a count. A tab that merges several tables (only an explicit page can write one) carries no count. + - **Overview.** The stage path and the key fields sit across the whole width on Overview only; every other tab draws its block in full in their place. + - **Right rail.** On Overview, the right column sums up the other tabs, in this order: Approvals, Attachments, Recent activity, then 「其他相关」 with a card for each related list that has records. Each card has a title (which opens its tab), a grey count and at most three rows. A card with nothing to show is not drawn, and there is no 「还有 N 个空关联」 line. Nothing in the rail is editable. A rail with no cards folds away. A drawer draws no rail and no right-column switch. The rail's rows come from the page's one read: it reads nothing more. + - **No band at the foot.** A page drawn as written that places no approvals or attachments panel gets them as tabs of its first tab strip, not as bands under the page. The header's approval tag opens the Approvals tab. + - **One approval band.** A page drawn as written whose details are split into several `record:details` nodes draws the record's approval band once, on the first body that reaches it, recall included. + + - **Reader arrangement leaves with the cards.** The related cards' ⠿ handle, ⌥↑ / ⌥↓ and 「隐藏」 are gone with the cards, so a reader can no longer reorder or hide a related list on the page. An order or hides already stored still apply, and 「恢复默认顺序」 / 「显示」 still undo them. + - **`?tab=related` is retired.** The single 「Related」 tab is gone, so a saved link carrying `?tab=related` opens Overview. + + `@object-ui/plugin-detail` adds `ApprovalBandOnceScope`. `@object-ui/i18n` adds the 「更多 N」 trigger and the rail's labels in every pack. Nothing an app authors changes. +- 6d86b43: fix(studio): Customize is offered only on a list view the read-only base ships + + Clause-②: yes (widening) + Metadata-protocol: none + + On a read-only base, an object's page in Studio lists every list view of the object, including views created in the app (the console's New view) and views the customization package adds. Customize declares an override of the base's view, and the server refuses that declaration for a view the base does not ship, so the first saved edit of such a view answered 403 ("declares an override of …, which ships no view named …"). Studio now reads whether the base ships the view from the layered read at the base (its code layer) and offers Customize only then. A view created in the app is read-only in Studio, and its panel says it is edited in the app, from Manage views › Edit view config; a view the base serves nothing of says the base does not ship it. Two new Studio strings carry those sentences, in English and Chinese. +- bae933b: fix(record-page): the related tab offers only 「↗」 and 「+ 添加」, and a pick of several is added all or none + + Clause-②: no + Metadata-protocol: none + + The record page's related tab drew a filter box, condition chips, an options menu, an export and its own New, and repeated the row count under the table. It now carries two entries at its right end. 「↗」 opens the child object's list under this record, on an empty list too. 「+ 添加」 is the one add entry, chosen by the relationship when the page authored no `add`: a `lookup` child opens a picker of that object whose first row is New; a `master_detail` child whose rows name a catalog record (one other required lookup) opens a picker of that catalog; one with no catalog opens the new-record form directly. The count shows once, in the tab title. + + A pick of several records is one request to the transactional batch route: every row is added or none is, and the list says why when none was. Before, each pick was its own write, and a failure part way left the earlier rows added. A data source without the batch route offers no picker. + + A child with a status and a deadline that the status settles is grouped by status on the tab: open groups first in the order the status lists them, completed groups last, each collapsible. + + The reader's header sort and column widths on the tab are remembered per list in the record page's existing per-user preferences. + + The list page 「↗」 opens names the record it came from: its condition tag reads the record's name, a breadcrumb leads back to it, 「Reset」 puts that condition back after the reader changed the filters, and New opens the record form linked to it. + + A body table's total under a currency column whose currency does not resolve is drawn as its cells are, an amount with no symbol, instead of being left out (objectstack#35710). Rows that name their own currency are still totalled per currency. +- a3a74f2: feat(record-page): dense field rows, one-line activity entries grouped by day, and one row per attachment + + Clause-②: no + Metadata-protocol: none + + The record page now fits more on one screen: fields read as one row each with the label on the left, the activity feed shows one line per entry under a day heading with a one-line comment box, and each attachment is one file row with its actions in a ⋮ menu. + + New locale keys in every pack: `detail.streamToday`, `detail.streamYesterday`, `detail.viewApproval`, `detail.replyToComment`, `detail.attachmentsDropHint`, `detail.attachmentsChooseFile`, `detail.attachmentActions`. `RecordActivityTimeline` takes an optional `onViewApprovals`; `RichTextCommentInput` takes an optional `compact`; `CommentBody` takes an optional `controlsClassName`. No metadata key, value or default changes. +- 74d3d83: fix(console): a view added in an app is saved into that app, so its draft preview bar counts and publishes it + + Clause-②: yes (widening) — one new published language-pack key, view.savedOutsideApp, in all eleven packs (the fallback notice the maintainer's ruling 7024102451 names) + Metadata-protocol: none + + Add new view and Save as view used to save the new view's draft naming no package. The app's draft preview bar counts only the app's package and its customization package, so right after the create it said "no unpublished changes" while the draft was pending, and its Publish left the new view unpublished. A view created inside an app is now saved into the app: into the app's own package when that package is writable, else into its customization package (`BASE.custom`), which is created on first use. The bar counts the view at once, its Publish publishes it, and the view travels with the app's customization. Editing, discarding and publishing the view afterwards reach that same draft. Views saved without a package before this change keep their address. When the customization package cannot be used (an isolated multi-tenant deployment refuses a tenant administrator), the view is saved without a package as before, and a notice says that this app's draft bar does not count it and that it is published from Home. Reports, dashboards and pages are created as before. +- 14e7c24: fix(console): a refused metadata save draws its causes under the rows of the view, object and other curated designers + + Clause-②: no + Metadata-protocol: none + + After a refused save, a metadata type edited in a curated designer panel (view, object, dataset, action, hook, dashboard, page, report) drew the cause under no field: the panel was never handed the save's issues, so only the Save button's reason (and, where the editor runs a live check, the summary banner) named them. A view refused at `label.not_a_locale` or at `config.columns.0` lit no row in the view designer. + + The panels now draw each cause under the row that edits its path, with the same placement the generic form uses: + + - the view designer draws `label.*` under Label, `config.columns.*` under Columns, and a cause in the view body under the body form's row (`config.description` under Description); + - the object designer draws a cause under Name, Label, Plural label, Icon, Description, Access or Required permissions; the dataset designer under Name, Label, Description, Base object, Included relationships, Scope filter, Dimensions or Measures; + - the action, hook, dashboard, page and report panels draw a cause under the row of their "More fields" form, nested causes included. + + One mistake is still one message: the summary banner and the refusal line leave out exactly the causes a row draws. A cause under a key no row renders (`config.zz_unknown`, an object's `fields.*`) stays in the banner. The register a panel reports now names path prefixes, so a form over the view body counts as drawing `config.description`, never every `config.*` cause. + + `MetadataDefaultInspectorProps` gains three optional props (`issues`, `revealIssues`, `onInlineIssueFieldsChange`); a host that passes none gets the panel it got before. No locale keys change. +- 401eb44: fix(app-shell): Studio's formula inspector asks whether the formula still computes money before it keeps a `currency` result type + + Clause-②: yes (widening) + Metadata-protocol: none + + When an author edited a formula field in Studio, the inspector re-stamped `returnType` from the expression's inferred CEL type, and kept a declared `currency` under every `number` or unproven verdict, because that type never says "money". So a formula edited from an amount (`record.amount * 0.1`) into a count (`record.est_hours * 2`) kept `returnType: 'currency'` and its `currencyConfig`, and its value was still shown as an amount. + + The stamp now also asks `@objectstack/formula`'s `inferFormulaReturn`, over the object's declared fields, whether the edited expression computes money: + + - Provably money: `returnType` is stamped `currency`, with the currency the source amounts are in as the formula's `currencyConfig` (absent for the tenant default currency). This holds for a formula that was `number` too. + - An edit it answers `number` for withdraws a declared `currency`: `returnType` becomes `number` and the `currencyConfig` is removed. + - An unproven verdict (a field-over-field quotient, two currencies meeting) keeps a declared `currency`, as before, and so does an engine that does not offer `inferFormulaReturn`. + - A declared `percent` is unchanged: it survives a `number`, unproven or money verdict, and is never re-stamped `currency`. A verdict that proves `text`, `boolean` or `date` still stamps, and now also removes a stale `currencyConfig`. + + `@objectstack/formula`'s `inferFormulaReturn` now answers `{}` (unproven) where it used to answer `{ returnType: 'number' }` on the numeric path, unless the unit proof succeeds or every read of the record (`record.x`, `record['x']`, `record.?x`, `record[?'x']`, or a bare `x`) is one segment naming a declared field whose unit can be read and is not money. FROM `inferFormulaReturn('record.rollup * 0.9', fields)` → `{ returnType: 'number' }` TO → `{}`. The same holds for `100 / record.amount`, `record.amount % 3`, `record.amount * 1.0 + record.fee_eur * 1.0` (two currencies), `double(record.amount) * double(record.tax)`, an amount whose `currencyConfig` does not parse, a hop through a reference (`record.account.balance * 0.9`), a formula operand that declares no `returnType` (`record.subtotal * 0.2`), the indexed and optional spellings of an amount (`record['amount'] * 0.1`), and a name the field map does not declare (`record.unknown_field * 2`). A call with no field map therefore answers `{}` for any numeric expression that reads the record (`inferFormulaReturn('record.amount * 0.1')` was `number`). So a `number` answer means "proved not money", and only that answer withdraws a declared `currency`. + + What still answers `number` is an expression over declared fields of readable non-money units: number, percent and other plain fields, a formula declaring a non-`currency` `returnType`, and a `count` roll-up whose `summaryOperations` is passed. A bare ratio of two amounts in one currency (`record.amount / record.tax`) types `dyn` and answers `{}`, as before. A caller that read the old `number` for these shapes should read the expression's CEL type (`inferExpressionType`) instead. In Studio, a new formula over such an amount is still stamped `number` from that CEL type. + + Widened: the published `FormulaSourceField` type gains one optional member, `summaryOperations` (a `summary` field's roll-up, as declared). A `count` roll-up is read as a plain number only when it is passed. A roll-up passed without `summaryOperations`, a `count` included, is read as possibly money, so an expression over it answers `{}`. + + The stamp still runs only after the author edits the expression; selecting a field writes nothing. The `returnType` description in `@objectstack/spec` now says the same: `currency` is stamped when the expression provably computes money and withdrawn for `number` when an edit leaves it a plain number, and a declared `percent` is kept under a money verdict. +- 0de93df: fix(studio): the action designer draws a script action's refusal catalogue and declared texts with their served rows + + Clause-②: no + Metadata-protocol: none + + The served `action` form gives `refusals` and `texts` the key-only record control (an entry is drawn under its code or key, with its message, status, reasons and params rows) and help text, but only the Related drawer editor read that form. The action's full-page editor and the Studio object's Actions view mount the action designer, whose "More fields" section was handed the bare schema, so both keys read as the raw JSON editor. + + The designer now takes the served form from its host (`serverForm` on the default-inspector props) and draws the two rows from it in its Behavior section, beside the script body; the row's own visibility rule shows them on a script action only. A host with no served form keeps both keys in "More fields", as before. Nothing about what an action stores or what the server accepts changes. + + The console's zh-CN overlay gains the labels for the action's `refusals` and `texts` rows and the hook's `texts` rows. +- 598a34d: Clause-②: no + Metadata-protocol: none + + fix(list): the list page lines up on one 16px left edge; the checkbox column is 40px at any width; no row numbers + + The list page drew five different left edges, and on a list with more columns than fit, the selection column was squeezed to the checkbox's own 16px, flush against the left of the page. Now the page bar's object icon, the view bar's view icon, the header's select-all box, every row's checkbox and the footer's record count all start 16px in, and the selection column is 40px (16px in, the 16px box, 8px before the first column) on a list that scrolls sideways, on one that fits, and after scrolling sideways and back. The view bar's last text trigger ends 16px in, where the page bar's button ends. + + The grid no longer draws row numbers unless a host asks for them (`showRowNumbers`): each row's leading cell is its checkbox, shown at rest rather than on hover. This applies to every grid, the list page, related lists and the designers' grids among them. The list page's Options menu no longer offers a 行号 (Row numbers) switch, the 「已个性化」 (Personalized) marker no longer names row numbers, and `ListView` drops its `defaultRowNumbers` host prop; the `list.rowNumbers` and `console.objectView.personalizedParts.rowNumbers` keys leave every language pack. + + A non-selectable grid with a row click drew a hover 「打开 ›」 (Open) button in its row-number cell; with row numbers off by default that button now appears only where a host opts into row numbers. Clicking the row, and Cmd/Ctrl-clicking it, still open the record. + + Removed from `@object-ui/plugin-list`'s exports: + - `ListViewProps.defaultRowNumbers`: `<ListView defaultRowNumbers={…}>` → delete the prop. Row numbers are off by default; a grid host that wants them passes `showRowNumbers` to `ObjectGrid`. + - `'rowNumbers'` in `ListPersonalizationPart`: an `onPersonalizationChange` handler or a label map keyed on it → drop that entry; the list no longer reports it. A grid whose authored columns all fail to resolve now says it renders "NO data columns" in its console diagnostic, since it no longer draws a row-number column. +- 0585797: feat(plugin-grid): selected rows get one small bar floating at the bottom centre of the list + + Clause-②: yes (widening) + Metadata-protocol: none + + Selecting rows in a grid now shows one bar floating at the bottom centre of the list area: 「已选 N 条」 and ×, up to three labelled actions, and the rest under 「更多」. When the selection offers no more than three actions they are all buttons, so a lone Delete is a button; over three, Delete goes behind 「更多」 with the rest. The bar sits above the footer calc row, the list keeps room after its last row so that row scrolls fully clear of the bar, and when every loaded row is selected and more match, the bar offers 「选择全部 N 条」. × or Esc clears the selection; Esc that belongs to a field, or to another open menu or dialog, does not. + + The same bar serves the object list page, a record's child-table tabs, the side record and embedded tables. The old bottom strip and the list page's 「已选」 face in the view bar are both retired, so the top of the list page no longer changes when rows are selected. On the list page, where rows draw no actions of their own, one selected record offers that record's actions; elsewhere the bar offers the bulk actions at any count. A narrow list gives actions back to 「更多」 until the bar fits on one line. + + - `@object-ui/plugin-grid`: `BulkActionBar` is redrawn as the floating bar; its props gain `singleRowMenu`. `useListPageScope(scope)` replaces the unpublished `useListPageBarHost`. + - `@object-ui/types` / `@object-ui/components`: `DataTableSchema.floatingBar` is a runtime slot (refused by the zod twin like the other runtime slots). The table floats it over its scroll box, above its summary row, with room after its last row. + - `@object-ui/app-shell`: the list page header and the view bar no longer swap to a selection face. + + This supersedes the selection behaviour in the list-page entry of this release (no Actions column on the list page): the selection is no longer shown in the page bar, up to three actions are buttons and a lone Delete is one, and grids outside a list page no longer draw a bottom bulk bar. +- 811858c: feat(list): a list's cells are selected by a click and edited by a double-click, Enter or typing, with no inline-edit toggle + + Clause-②: yes (widening) + Metadata-protocol: semantic + Skills-docs: none — `skills/objectstack-ui/rules/list-views.md` already teaches that inline editing is on by default for a user who may update the object, with `userActions: { editInline: false }` as the opt-out, which the list page now does with no toggle; no skill teaches the toggle or a single-click edit. + + **The list page (`ListView`) has no inline-edit mode and no toggle.** Its grid is editable in place wherever the reader may update the object and the view does not declare `userActions.editInline: false`; a view's boolean `inlineEdit` still folds into that switch, so `inlineEdit: false` reads off and `inlineEdit: true` reads on. Before, a view that declared neither opened read-only with an "Edit inline" toggle in the toolbar and in the Display menu, the mode lasted for the session, and a click on a cell edited it. Both toggles are gone, and `ListViewProps.onInlineEditChange` is deprecated and never called; the console stops passing it. + + **The select-first cell model** (`data-table`, behind the new `GridCellSelectionProvider` in `@object-ui/components`; `ObjectGrid` mounts it when its host passes the new `cellSelection` prop, and `ListView` passes it for every `object-grid` view it draws, on the hosts listed below): + + - A click selects a cell (a ring around it) and neither edits it nor opens the record. A link the cell draws (the name, a lookup, a phone or an email) keeps its own click. A touch tap opens the record and never edits in place. + - Double-click, Enter or F2 edits, keeping the value with the caret at its end; typing a character replaces the value with it (a picker or a date opens instead); Backspace or Delete clears the cell and saves at once, and a required field keeps its value and says it is required (objectstack#36023). + - While editing, Enter commits and stays on the cell (objectstack#36023), Tab and Shift+Tab commit and move right and left, Escape cancels and keeps the cell selected; in a multi-line editor Enter is a new line and Ctrl/Cmd+Enter commits. Commits are the grid's staged edits, saved by the row's Save and Save All as before. + - On the selected cell the arrows and Tab move the selection, Space opens the record (a checkbox cell flips and commits instead, as a second click on it does), Ctrl/Cmd+C copies, Ctrl/Cmd+V converts the text to the field's type and commits it, and Escape clears the selection. + - An input method's composition is kept whole: keys pressed while composing, and the 229 Enter Safari raises after it, never commit, cancel or move, and a composition started on a selected cell opens the editor with the composed text. This guard applies to every `data-table` editor. + - A cell that opens no editor says why on the cell: the field is read-only, calculated or not editable in a list, the reader may not edit the field, these records or this record, the view turned editing off, or the record is locked by an approval. The approval lock is read from the approvals service's per-record lock when a cell of the row is selected, through the record page's rule (`resolveApprovalLock`); until it answers, the row's `approval_status` stands in only where the view fetches that column, which a view that authors its columns does only when a column, a row predicate or a grouping names it. + + Every grid a `ListView` draws has this model, because `ListView` passes `cellSelection` to each `object-grid` view: the console's object list pages, interface list pages, the object data page (`/apps/:app/:object/data`), the Studio Data pillar's records artboard, and every `list-view` block, whether an SDUI page node or a `ListView` on a `kind: 'react'` page; a grid no `ListView` draws mounts no provider and keeps its click-to-edit (`singleClickEdit`) and click-to-open behaviour unchanged: an authored `object-grid` node, `ObjectView`'s own grid (the `object-view` block, or a host that passes no `renderListView`), a related list, a dashboard table, the record picker and the designer's grids. + + On every `ListView` grid (the select-first model) the table's trailing edit column, which holds a changed row's Cancel and Save, is drawn only while a row has changes, so the list at rest ends on its last data column. `@object-ui/core` exports `resolveAffordanceGrant`, the grant half of `resolveAffordance`, which the list cell's read-only reason reads. + + New locale keys, in every pack: `table.cellReadOnly` and `grid.readOnlyReason.*` (nine reasons). No key is removed: `list.inlineEditShort` and `list.inlineEditLabel`, the toggle's words, stay in every pack, though the list no longer draws the toggle. +- f909734: feat(ui): a resident footer row on list tables, where a reader who may change the view picks each column's calculation + + Clause-②: yes (widening) + Metadata-protocol: none + + A list's table view now always ends in one footer row, aligned with the columns and held at the bottom of the table: the record count in its first cell, and under each column its calculation, if any, written as the calculation's name in the secondary text colour and the figure in the normal one, with a space and no colon (`Sum ¥1,234,500`). A `min` / `max` over a date reads Earliest / Latest. The list's own "N records" line at the foot of the page is gone from a table that draws this row; the data-cap notice stays there. A grouped table, the phone's card list and every other view type are unchanged. + + A reader who may change the open view clicks a cell to pick the column's calculation from one menu that lists what the field type allows (sum and average on numbers and amounts, earliest and latest on dates, the counts on any field), the current one ticked and None last. The console saves it as the column's `summary` on the view, and nothing else of the reader's layout. On a personal view it is saved at once and stays drawn. On a shared view the console saved, a reader who may edit it saves it as a draft through the view settings' own save: the draft save reloads the list, which then draws the published view again, so the pick shows for a moment and is drawn again, for every reader, once the draft is published. Until #35932, each pick's draft is built on the published view, so a second pick before Publish replaces the first in the draft: only the latest pick is published. The menu is offered on the columns the view itself declares; a column the reader added for themselves and a view that declares no columns draw the figures with no menu. A pick that is not saved is taken back, with the refusal said (a view a read-only package ships is refused this way: its changes go to the package's customization). A reader who may not change the view sees the figures and no menu. + + New host props, all optional and never authored metadata: `ObjectGrid` takes `residentSummaryRow`, `onColumnSummaryPick(field, summary)` (answer `false` to have the pick taken back), `summaryPickFields` and `onResidentSummaryRowChange(drawn)`; `ListView` takes `onColumnSummaryPick` and `columnSummaryPickFields`. `ColumnSummaryResult` gains `name` and `text`, the two halves of its `label`. `@object-ui/i18n` adds the `grid.summary` keys `earliest`, `latest`, `pageName`, `calculate`, `none`, `menuPercentEmpty` and `menuPercentFilled` in every pack. +- a03c3d4: feat(plugin-approvals): a record's activity shows its approval steps, to the users who can read its approvals + + Clause-②: no + Metadata-protocol: none + + A record under approval used to show no approval in its activity: nothing wrote an activity entry for an approval step, so the activity stream's one-line approval entry was reachable only from items a host supplied by hand. + + - **One activity entry per approval step.** plugin-approvals now appends one `sys_activity` entry for each step it records in its decision log, about the record the request governs: submitted, approved (`Approved · Manager review`, the step's label after the dot), rejected (`Rejected · Manager review`), sent back for revision (`Sent back for revision · Manager review`), resubmitted, recalled, and cancelled (the record was deleted). Other actions (a reminder, a reassignment, a thread comment, …) write none, and an object that sets `enable.activities: false` gets none, as the CRUD mirror writes none for it. The entry carries no decision comment. It follows ADR-0052 §5, so no published vocabulary changes: `type` is the built-in `system`, the domain kind is `metadata.kind: 'approval'` (with the step's action, its label and the flow and step names beside it), and `source_object` / `source_id` name the request. A deployment without plugin-audit has no `sys_activity` and gets no entries. + - **Each entry reads in the reader's language.** The stored `summary` is the English line from plugin-approvals' own catalog (`approvalActivity*` messages, shipped in all eleven of its locales). A read that carries a locale is served the line re-composed in that locale, and the step's label is read from the app's language pack (`flows.<flow>.approvals.<node_id>.label`) the way the approvals tab reads it, else the stored label: a zh-CN reader sees `已批准 · 经理审批`. A system read, or a read with no locale, gets the stored English line. A failed append never fails the approval step; it is logged once at `error`. + - **Only the users who can read the record's approvals read those entries.** A read of `sys_activity` keeps an approval entry only when the approvals service would serve the caller its request: a participant (submitter, current or past approver), the override actor, or a reader of the record where the object opts into `enable.approvalsVisibleToReaders`. Every other entry is served as before, and plugin-audit's rule that the record must be readable still applies. The record page's activity count and its rows agree. + - **The stream draws each entry as the approval line, and 「看审批」 opens the approvals.** The console reads an activity row with `type: 'system'`, `metadata.kind: 'approval'` and a `sys_approval_request` source as the `approval` feed kind (`APPROVAL_ACTIVITY_FEED_TYPE`, exported from `@object-ui/plugin-detail`), so `approval` now counts as produced. The record page supplies the new `RecordViewApprovalsContext`, and the approval line's 「看审批」 opens the record's 审批 tab, the same place the approval tag in the header opens; with no approvals the reader is served, the line has no link. The entry keeps `sys_activity`'s own lifecycle (reaped after 14 days); the 审批 tab keeps the full history. +- c9b0a23: feat(service-storage): rename an attachment through a door by the attachment delete rule, and the Attachments tab names the uploader of other people's files + + Clause-②: yes (widening) + Metadata-protocol: none + + Two additions, no answer narrowed: + + - **The rename door.** `PATCH /api/v1/attachments/:id` with `{ "file_name": "..." }` sets the name one `sys_attachment` row is listed under, by the attachment delete rule: the caller who uploaded it, or a caller the attachment update gate admits as an editor of the record it is attached to. The door reads the row as the caller first, so every attachment read rule applies; the uploader's rename is written on the caller's behalf with no edit grant, as the uploader's removal door does; anyone else's goes through the data engine as the caller, so the object's edit grant and the update gate judge it. It answers `{ id, file_name }` (200), and refuses `UNAUTHENTICATED` (401), `VALIDATION_ERROR` (400: a query parameter, a blank name, or any body key besides `file_name`), `RECORD_NOT_FOUND` (404: an attachment the caller cannot read answers as one that does not exist) and the update gate's `RECORD_NOT_ACCESSIBLE` (403) for a caller who can read the record but not edit it. Only the attachment row's name changes: the stored file, its bytes and the name a download carries are untouched. The package's exports are unchanged; `StorageServicePlugin` mounts the door beside the removal door. + - **The uploader, expanded.** The record page payload's `attachments` part (`POST /api/v1/data/:object/:id/page`) now asks its `sys_attachment` read with `uploaded_by` expanded, as the `activity` part expands its actor, and the Attachments panel's own list read does the same. The expansion is a read of `sys_user` as the caller: a reader who may read the uploader gets that user's row (its name), and a reader who may not keeps the stored id. A consumer of that part that compared `uploaded_by` with a user id now reads `uploaded_by.id` where the reader may read the user. + + The record Attachments tab shows the uploader's name on every row whose uploader the reader may read, and never shows a bare id. Its row menu offers Rename beside Delete, on the reader's own uploads and, to a reader who also holds the edit grant on `sys_attachment`, on every row, opening a name prompt; the new name is the one the list shows after a reload. + + `@object-ui/core`: the affordance-to-grant map gains the `attachmentRename` row (the edit grant on `sys_attachment`), which the panel asks for a row the caller did not upload. +- 06faee5: fix(list): a list opened from a record shows its condition once, by name + + Clause-②: no + Metadata-protocol: none + + A list opened from a record's related tab (「↗」) now shows its condition once, as the data page's own 「Filtered by」 tag: the list under it still filters on the condition but no longer repeats it as a locked chip printing the record's raw id beside a second 「Reset」. Where a list does lock a lookup condition (a saved view filtered on a lookup), the chip names the record it points at — and so does the reader's own lookup filter chip — keeping the id only when the name cannot be read. The condition row's 「Reset」 is drawn only while the reader has something of their own to reset (a filter they added, a sort they changed); it is no longer drawn disabled. + + `ListView` takes a host prop, `hostDrawnConditionFields`: the fields whose conditions in `schema.filter` the host draws as its own tags. The list keeps filtering on them and draws no locked chip for them. It is not a schema key. +- 0189004: fix: a chart view's view bar starts its view icon on the list page's 16px left edge, as the list view's bar does + + Clause-②: no + Metadata-protocol: none + + A chart view draws its own copy of the view bar, and that copy kept `sm:px-4` after the list view's bar moved to `sm:pl-2.5 sm:pr-2` in #35663. From `sm` up the chart's view icon sat 22px from the main area's left edge while the list's sat at 16, so switching between a list view and a chart view moved the switcher. The chart bar now carries the list bar's padding: at 1280 its icon starts at 16 and its right padding is the list bar's 8. Below `sm` both bars keep `px-2`, so a phone is unchanged. + + The list renderer's `inSetup` input is gone. Since #35663 removed the Setup app's row-number line it was read only in a memo's dependency list, so `ObjectView` no longer derives it from the route. +- f51578e: fix(app-shell): a decided approval step shows its step and decision in "Approval progress" instead of an empty card + + Clause-②: no + Metadata-protocol: none + + On an approval request's page, a request decided at the first step of its flow, or decided in a one-step flow, showed an "Approval progress" card with nothing in it: the step line drew only from two steps up, a single-approver step has no tally, and nobody is pending any more. The step line now draws a decided request's route even when it is a single step, and marks the request's own step with its decision (Approved, Rejected, Returned for revision, Recalled or Cancelled) instead of drawing a rejected, returned, recalled or cancelled step as the step in progress. A pending request still needs two steps for a line, as before. A progress card with nothing to draw (no line, no tally, nobody pending) is no longer drawn at all. + + New locale key: `approvalsInbox.statusCancelled` in every ui language pack. Inside `@object-ui/app-shell`, `ApprovalStepLine` gains an optional `decided` prop and its module exports a new `stepLineDraws` helper; neither is exported from the package entry, so the package's public exports are unchanged. No metadata changes. +- bc9ace2: feat(record-page): the record's header is two rows — navigation over the record — and shows up to three actions again + + Clause-②: yes (widening) — `@object-ui/components` takes four optional members: `RecordTopBarProps.record`, `RecordTopBarStepper.onScope`, `NavigationOverlayProps.recordRow` and `PageHeaderActionsProps.fitWidth`; nothing removed or renamed + Metadata-protocol: none + + The record's top bar, on the full page and in the drawer alike, is now two rows: + + - The navigation row (40 px). From a list: ↑ ↓ and 「第 N 条,共 M 条 · 视图名」 ("N of M · view"), M being the records the list matched; the view's name returns to the list. From no list (a link, a notification, a search): the object's name and no ↑ ↓; on the page the name links to the object's list, and in the drawer it is shown without a link. ✕ sits at the far right in every case: on the page it returns to the list the page came from as it was left, else the object's default list; in the drawer it closes, with ⤢ (open the full page) before it. + - The record row (48 px): the record's icon, its name one size larger, its stage and approval tags, then who else is on the record and the managing package's badge (on the page they no longer float over the corner above the tabs), and at the right the record's buttons and ⊟. + + The drawer shows ↑ ↓ and the count again (the drawer hid them since #35593). A phone keeps its one-row bar. + + The header bar's default inline budget is 3 again (#35593 had set it to 1): what does not fit the bar's width folds into 「更多」 one action at a time, down to the primary, so a narrow drawer shows fewer. An authored `maxVisible` still wins, a phone still shows one primary action (its bottom bar holds the host's Edit and one more), and there is still one primary-coloured button at a time. The `page:header` `maxVisible` / `mobileMaxVisible` describe, the `pages.mdx` Default cell and the Studio designer descriptions say so. +- 0a1b69c: feat(approvals): a decided request's step line says where the record's approval went next: on to a later step, or ended + + Clause-②: yes + Metadata-protocol: none + + The single approval request read (`GET /api/v1/approvals/requests/ID`) serves one more fact on a decided request's own route: `flow_route.outcome`, beside `ahead: 'decided'`. Before, a decided route stopped at the request's own step, so an approver reopening a request they had decided could not tell whether the record's approval went on to a later step or ended. + + - `outcome.step` is the run's latest request when it is a later one than this request (a request of the same flow run opened after it, on any node, a later round of the same node included; a pending one wins over a decided one). It is absent when no later request was opened in that run; a request a child run opened is not among them. + - `outcome.status` is that latest request's status, or this request's own when `step` is absent. `pending` with a `step` means the approval went on to that step and waits on its decision. + - `outcome.ended` is `true` only when the record's approval is known to have stopped: the request's run is a root run (not a `subflow` body or a `map` item, whose end is not the approval's), the flow body the run ran holds no `subflow` or `map` node anywhere, regions included (a child run files its requests under its own run, so this run's requests cannot show what it decided, before or after this request), and the run reports it stopped for good, with the same terminal set the dead-run sweep uses. The body the run ran is known only when the body armed now is the flow's newest registration and was registered before the run started, so a flow edited, rolled back or re-registered after a run started is never judged by its current body for that run. `false` means not known to have stopped: the run goes on, is a child run, ran a body that can start a child run, ran a body that is not known, cannot be read, or was opened before this release (the approval node now records on each new request whether its run is a root run). + + `outcome` is absent when nothing past the request is known: no later request was opened and the approval is not known to have ended, or several later requests are pending at once (parallel steps). A pending request's route never carries it. It is served to every reader of the request and says only where the same approval went: the later step's node id and label and that request's status, never the later request's id, approvers, comments or field values. The `ApprovalRequestRow.flow_route` contract type in `@objectstack/spec/contracts` gains the optional member, and `routeOutcome` in `@objectstack/plugin-approvals` is the rule. + + The approval request page (`@object-ui/app-shell`) draws one line under the decided step: "Went on to STEP, waiting for a decision", "Went on to STEP: DECISION", "Went on to STEP, then ended: DECISION", or "The approval ended here". No line is drawn when no outcome is served. `@object-ui/i18n` carries the four new `approvalsInbox` rows in every built-in locale, and the console's request type (`@object-ui/console`) mirrors the new member. + + Nothing to migrate: a caller that does not read `outcome` is unaffected. +- 2ab7601: fix(console): the bare data page opens a record the way an object's list does + + Clause-②: no + Metadata-protocol: none + + On the bare data page (`/apps/APP/OBJECT/data`) a click on a record's name used to open the record in the side drawer. It now follows the list's one rule: the name opens the record's full page, and the 「Open in side panel」 icon that appears in the name cell while the row is hovered opens the side drawer over the list (`?recordId=`). The full page carries the data page as its origin, with its URL conditions, its name, the rows it shows and the count it matched: the page's top bar counts the record among them, ↑ ↓ step through them, and its ✕ returns to the data page with its conditions. A click on any other cell still selects it and opens nothing; a touch tap on a row opens the full page; a phone draws no icon; a list-only object's rows still open nothing. `?recordId=` links keep opening the drawer. +- 138faaa: feat(app-shell): on a phone, sign-in lands in an app whose home is its whole menu, and the bottom bar is fixed to Home, Notifications, Approvals and search + + Clause-②: no + Metadata-protocol: none + + Phone width only (below 768 px). Desktop and tablet widths do not change. + + - **Where sign-in lands.** A phone opens the app the person used last. The app the product marks as default is used only when there is no record yet, for example on a first sign-in. With one app it opens that app; with several and neither, it opens the app list. The last app is kept per person with their other console preferences (the `ui.app.last` key), so it follows them across devices. It is read in the same request as those preferences, not in a new one. A desktop still lands on the declared default first, as before. + - **The app's home is its whole menu.** On a phone, `/apps/SEGMENT` shows the app's menu with its groups, order and icons, one row per entry. It no longer redirects to the first entry. This is the sidebar's own menu drawn in a second place, so it cannot list an entry the sidebar hides. 「‹」 on a page one level down goes back to it, and the page comes back scrolled as it was left. An app that shows the member no entry still says so. + - **App switcher.** The app pill at the top left opens a bottom sheet: 「Current app」 with a check, then 「Other apps」 with Setup last, and a search box at the bottom. On a phone, `/home` is that same list as a page. + - **Bottom bar.** The bar has three fixed cells, Home, Notifications and Approvals, and a round search button. They do not change with the app and cannot be configured. Home opens the app's home. Notifications and Approvals open the pages the bell opens, with the bell's two counts as badges. Search opens the command palette. The bar shows only on those three pages; a list, a record, a form or any deeper page has the screen to itself. The bar no longer holds menu entries, a 「More」 cell or pinned entries (objectstack#34594). Pins already stored are ignored, and the drawer's menu search and pin hint are gone. The drawer still opens with a swipe in from the left edge. +- 411fe24: feat(list): a phone's object list gets its own top row, one row of pills, and bottom-sheet sort, filter and view panels that apply on 「✓」 + + Clause-②: yes (widening) + Metadata-protocol: none + + At phone width (below `sm`) the console's object list changes its containers, not its content: + + - The app bar's row becomes the page's own: 「‹」, the object's icon and name, and 「⋮ More」 at the right. The app pill, the page title, the search, the bell and the avatar are not drawn while the list is on screen (the phone has them in the bottom bar and on the app's home). 「⋮ More」 offers 「Select」 (only on a card list whose rows take more than one tick), the object's description, Import and the favorite. + - Below it, one row of pills: the view switcher, Sort and Filter with a count of what is in force, and Search, which expands into a field in place. There is no condition row on a phone. + - Sort, Filter, the view switcher and View settings open as bottom sheets. The sort and filter sheets edit a copy: 「✓」 applies it through the same write the desktop chips use, 「×」 drops it. The sort sheet lists each level on two lines (field over direction) with a handle a finger can drag (or ArrowUp / ArrowDown moves), a ⋯ menu per level (change field, direction, remove) and 「Add sort」. The filter sheet lists the conditions, each with a ⋯ menu (edit, remove), and shows a sentence and 「Add filter」 when there are none. A view whose filter is an 「or」 group says it uses an advanced filter and is changed on a computer. View settings keeps its desktop content and applies as before. 「✓」 on an untouched copy writes nothing. While the on-screen keyboard is up, a sheet stands on it (it reads `visualViewport`), so its 「✓」 and the focused field stay in view. + - A long press on a card starts selecting with that card ticked, as 「Select」 in 「⋮ More」 does with none; a tap then ticks or unticks a card, and unticking the last ends it. The selection shows in the list's floating selection bar, which after 「Select」 reads 「0 selected ×」 until a card is ticked. The 「+」 create button is not drawn while selecting. A card is also a keyboard control: Enter opens it, and while selecting Enter or Space toggles it. + + New exports and props: + + - `@object-ui/plugin-list`: `PhonePanelSheet`, `useListPhonePanels`, `PHONE_CHIP`, `PHONE_CHIP_ACTIVE` and the types `PhonePanelSheetProps`, `ListPhonePanels`. + - `@object-ui/plugin-grid`: `requestListSelection`, `useListPageSelecting` and `useListPageSelectable` (would 「Select」 open a selection in this page's list); `BulkActionBar` takes `open` (show 「0 selected ×」 with no actions while a host's selection is open and empty). + + `@object-ui/app-shell` changes no public export: the page's top row is an internal store (`PhonePageBarProvider`, mounted by `ConsoleLayout`). +- 48c732c: feat(console): on a wide full record page the details are pinned in a left column and the other tabs sit beside them; the right summary rail is retired + + Clause-②: yes (widening) + Metadata-protocol: none + + The synthesized record page (objectstack#35890, ruling on the card 7064066204): + + - **Pinned details.** A full page whose content fits a 320 px details column, a 24 px gap and 400 px of tabs pins the record's details in a left column and draws the other tabs (related lists, Attachments, Approvals, 动态) beside them, opening on the first. The column is 400 px wide and narrows toward 320 px on a tight page; its edge is a separator the reader drags, or moves with ←/→ (Home/End for the ends). The dragged width is kept per object in the console's workspace preference store (`record.columns.details-width`, this browser). Each column scrolls on its own. A page with no other tab draws the details across the page with no tab row; a page whose details hold a related table among the fields (objectstack#35889) is not pinned and keeps its one-column tab row. Narrowing out of the pinned layout keeps the tab that was shown, writing it to the address with `replace`. + - **The right rail is retired** at every width, with its ⊟ switch and `⌘⇧,` shortcut and the `record.columns.related` preference (an old stored choice is no longer read). Its cards (approval, attachments, recent activity, other related) are the tabs they summarised. A list the reader hid still opens, from its item in 「更多」 or from an address that names it (`?related=`). + - **「详情」.** The first tab is named Details (详情) in every locale. + - **「审批中 · 当前步骤」.** For everyone but the approver, the header's in-approval tag names the step the request waits at, when it has one. + - **Drawer, split pane and phone** keep their one-column tab row and never pin. What reaches them: the rail is gone there too, and the first tab reads 「详情」 / Details. Authored pages are untouched. + + `RecordPageColumns` gains the optional `fullPage`, `detailsWidth`, `onDetailsWidthChange` and `onShownTabChange` props, and `onEnlargeRelated` an optional `{ replace }`; `rightColumn` and `rail` are kept as deprecated props that do nothing. `@object-ui/plugin-detail` exports `RECORD_PAGE_DETAILS_WIDTH`, `RECORD_PAGE_PIN_MIN_WIDTH` and `recordPagePinsDetails`; `recordPageTierHasRightColumn` stays exported, answering as before, and is now `@deprecated` (no tier draws a right rail). + + `@object-ui/i18n` widens: two new keys in every pack, `detail.approvalPendingStep` (`In approval · {{step}}`) and `detail.detailsColumnResize` (the separator's name), and `detail.recordTabOverview` changes its text from 概览 / Overview to 详情 / Details. Every key the rail read (`detail.relatedColumn`, `detail.relatedHiddenCount` and its plural forms, `detail.relatedShowHidden`, the six `detail.summary*` keys and `shortcuts.toggleRelated`) stay in every pack, unread, so a host that reads them keeps its text; retiring them is a separate change. +- 8807dcb: feat(ui): a record page's related tab is the child object's full list + + Clause-②: yes (widening) — a new export `ListConditionsBlock` (`@object-ui/plugin-list`, the condition row as a host element, not a registered node type) and its `ListConditionsHostProps`; a new slot `RelatedListConditionsSlotContext` and its `RelatedListConditionsProps` (`@object-ui/plugin-detail`), which the record page fills (`@object-ui/app-shell`); new exports `ConditionDiscardButton` and its type `ConditionDiscardButtonProps` (`@object-ui/plugin-list`) and `withHeaderSortPick` (`@object-ui/core`); new i18n keys in every `@object-ui/i18n` locale pack (`listConditions.chips.discard`, `listConditions.chips.discardHint`, `detail.relatedNoMatches`, `detail.deleteRowsTitle`, and the count family `detail.deleteRowsConfirmation` with its plural slots `_zero`, `_one`, `_two`, `_few`, `_many`, `_other` as each pack needs them); nothing removed or renamed + Metadata-protocol: none + + On a record page, a related list opened as its own tab now works like the object's list page: + + - The first row names the child list (its tile and title) on the left and keeps **+ Add** on the right. The **Open in list** button is gone. + - The second row is the list page's own condition row: **Sort** (several levels) and **Filter**, with no view switch, view settings or search. On a narrow tab or in the drawer their labels fold to icons. + - The table is the list page's grid: the column menu, cell editing as on the list page wherever the reader may edit the child object, row selection with the floating bulk bar (bulk delete asks once, deletes the selection in one batch call where the data source has one, and says how many rows went and how many did not), and the footer row, whose calculations cover every matching row, not just the loaded ones. A tab grouped by status draws no footer row. + - Rows load as the page scrolls instead of in pages. + - The tab title still counts every child; the footer counts the rows the filter keeps. + - What the reader changes (sort, filter, footer calculations) lasts while they stay on the record, for that reader only, across its tabs and between its page and its drawer, and is gone after a reload or on another record. **Discard** appears once something changed and puts the tab back; there is no Save. The list page's Discard and this one are one button. + + Upgrade note: the header sort and the column widths and order that an earlier version remembered for a related tab in a reader's record-page preference (`sys_user_preference`) no longer apply: the tab opens in its declared order, and its column widths and order are now kept in the reader's browser, as the list page's are, so they start from the default once. Nothing stored is deleted. The default sort and columns of every related list are unchanged. + + `@object-ui/core` adds `withHeaderSortPick`, the list page's rule for how a header sort joins an existing multi-level sort, now shared with the related tab. `@object-ui/app-shell`'s list Discard is drawn by `ConditionDiscardButton`; it looks and behaves as before. +- c261a7c: feat(console): a stage confirm names the flows the move would start, in the list cell and on the record page + + Clause-②: yes (widening) — `@object-ui/plugin-detail` adds the exports `useRecordUpdateStarts`, `StageChangeStarts`, `RECORD_UPDATE_STARTS_PATH` and the type `RecordUpdateStartsAsk`; `@object-ui/fields`' `RequiredFieldsDialog` takes an optional `notice`; `@object-ui/i18n` adds the export `activeFlowsBundle` (with the types `FlowsTranslation` and `TranslationResourceReader`, moved from `@object-ui/app-shell`'s internal `utils/flowsBundle`) and two keys to every pack: `detail.stageChangeStartsHeading`, `detail.stageChangeStartsApproval`. `@object-ui/plugin-grid`'s `StateChangeConfirm` gains an optional `ask`. Nothing existing is removed or re-typed. + Metadata-protocol: none + Skills-docs: none — no skill under `skills/**` teaches the console's stage confirms; `content/docs/frontend/plugins/plugin-grid.mdx` names the list in this change. + + When a stage move would start a flow, its confirm now says so (objectstack#35928, ruling record 7073655354): + + - The list cell's state-machine confirm and the record page's stage confirm (the path's press and the header's stage menu) keep their sentence and add, under it, 「保存后将启动以下流程:」 ("Saving this change starts these flows:") and each flow by its label in the reader's language. A flow that starts an approval is marked 「发起审批」 ("starts an approval"). + - Both confirms ask one read, `POST /api/v1/automation/_record-starts`, through one shared hook, so the two surfaces cannot disagree. The server decides which flows start; nothing is judged in the browser. + - A move that starts nothing shows no list, and a read that fails or is refused leaves the confirm exactly as it was. + - A flow label is translated as the flow runner translates it: the app's `flows` translations, read through `activeFlowsBundle`, which now lives in `@object-ui/i18n` so the confirms' packages can read it; the console's flow runner and designer import it from there. +- 55cd85f: fix(console): saving a shared view's draft keeps the list on screen, and a second change builds on the first + + Clause-②: no + Metadata-protocol: none + + An admin who saved a draft of a shared view (a footer calculation pick, or a view settings change) saw the list redraw on the published view about half a second later, and the change came back only after Publish. A second change before Publish was then built on the published view, so its draft replaced the first: pick Sum, then Latest, then Publish, and only Latest was kept. + + Every draft save announces itself on the metadata-refresh pulse, so the pending-drafts surfaces re-read, and every mounted metadata provider refetches its loaded types on that pulse. While the refetched view list was on the wire, the route's object scope read as unanswered, so the console dropped the route to its loading skeleton and mounted the list again, on the published view. A type that is refetching over an answer it still holds now counts as answered: the scope stays settled on the views in hand, the route stays mounted, and the list keeps the draft on screen. This holds for every refresh pulse (a publish, a package install, a change noticed in another tab), not only a draft save. On an app with a metadata bundle, the pulse also drops the bundle, and it answers nothing until it is downloaded again; meanwhile the scope's views now come from the bundle that last answered, when it holds every object the route asked for, so the route stays mounted there too. A type the provider drops (an invalidation, an organization switch) still waits for its new answer, and an organization or session switch forgets the last bundle. + + Publish and Discard in view settings now drop the list's local copy of the draft once the saved views have been read again, so the list then shows what is stored. A reader who is not an admin still sees the published view until Publish. No props, exports or locale keys change. +- f9f45d3: fix(ui): a view a read-only package ships offers no footer calculation menu and no Rename + + Clause-②: no + Metadata-protocol: none + + On a list view that ships inside a read-only package (a code or installed package), an admin was offered the footer's calculation menu and the options menu's Rename; the server refuses both saves ("save it into the customization package"), so the pick was taken back with a toast. Neither is offered there now. A shared view the console saved into the customization package, a stored view bound to no package and the reader's own view keep them. + + The view's name cannot tell these apart, since every stored view is named `object.key`; the package the row was served under does. `listViews()` in `@object-ui/data-objectstack` now carries the row's served `_packageId` on both of its arms (the `config`-flattening arm dropped it). The console reads the server's `writable` verdict for that package from the package list it already holds for the session, the one the app bar's Studio entries read. While that list is unread, or when the read fails or does not name the package, the menu stays offered as before and the server's refusal still applies. +- 76cb366: fix(console): Studio's kanban card "Click to open" offers only Default and "Don't open" + + Clause-②: no + Metadata-protocol: none + + On an object's list the record name opens the full page and the hover icon opens the side panel, so `navigation.mode` `drawer`, `page` and `new_window` parse there and change nothing; only `none` still counts. The kanban card section of Studio's list-view inspector offered all four. It now offers Default (no key) and "Don't open" (`none`). A view that already stores `drawer`, `page` or `new_window` shows that value flagged "(deprecated)" in the select, and picking Default removes the key. Opening such a view writes nothing. The spec is unchanged, and page blocks that carry `navigation` keep every mode. + + The studio catalogue drops the three labels nothing reads any more: `engine.studio.inspector.listView.kanbanCard.mode.drawer`, `.mode.page` and `.mode.newWindow`. +- 32409a9: fix(form): a new detail line on a master-detail create / edit form starts on the child's defaults, does not read red before a save is tried, and a line added and left untouched is skipped with a notice on the form and the record page + + Clause-②: no + Metadata-protocol: none + + On a parent object's create or edit form, a line added to a detail table started blank, so a required column with a default (a status that defaults to "Pending") read red at once although saving would store the default. The record page's edit state already started its new lines on their defaults; the form now does the same. + + **New lines on the form.** A new line starts on the child object's static defaults, the values a create form of the child seeds, whether it is added with Add or with Enter on the last line. A default the server resolves at insert (`NOW()`, a CEL expression) is left to the server. A new line's empty required cell reads red once a save of the form was tried, not the moment the line appears; a stored line is flagged as before. A line added with Add and then applied from the row editor is the user's input and is saved. + + **A line added and left untouched** (maintainer ruling, card comment 7056413638: 「跳过并提示未保存」). A line Add started on its defaults that nobody edited holds only those defaults. It is still not written, and the save now says so: once the save lands, the form and the record page's edit state show "1 blank line was not saved" (or "N blank lines were not saved"), also when the host supplies its own save confirmation. Such a line never reads red, before or after a refused save, since there is nothing in it to fix; once the user edits any of its cells it is input, saved and flagged like any other new line. On an edit form that stays open after saving, the skipped line leaves with the save, as it does on the record page. A line the user typed into and then cleared is blank and is skipped as before, without the notice. The pack key is `form.lineItems.untouchedNotSaved`, in every built-in locale. + + **Seeding context.** The defaults on both the form and the record page's edit state are now read with the session facts a create form uses: a child field defaulted to the acting user starts on that user, and the organization's currency and time zone seed the fields they seed on a create form. With no known user that field starts empty and the server fills it, as before. +- f548bdc: fix: descriptions and help text no longer say the default record page draws a key-field strip or a stage path + + Clause-②: no + Metadata-protocol: none + + The default record page draws no key-field strip and no stage path: the stage is the status tag beside the record name. These texts said otherwise and now say what each key drives: + + - `@objectstack/spec`: the `highlightFields` describe ("Drives default list and related-list columns, cards, hover cards, previews and the record picker; the default record page draws no strip from it") and its Studio help text. The `stageField` and `RECORD_HIGHLIGHTS_MAX` doc comments say the header's status tag reads the stage and the count cuts only a strip a page places in its `highlights` slot. The upgrade-guide entry `field-group-shadowed-six-highlights` no longer tells authors to move highlights: the warning now judges the record title alone, and no action is owed. + - `@objectstack/platform-objects`: the `highlightFields` help text in every metadata-form locale. + - `@objectstack/lint`: the `os explain` text of `object-field-ref-unknown` and `semantic-role-field-unprovisioned` names the hover card and the record picker in place of the strip. + - `@object-ui/plugin-detail`: the `record:details` `hideFields` description no longer says the default page fills it. The key is still accepted. + - `@object-ui/i18n`: Studio's lifecycle-field help (`stageField`, and its "None" choice) talks about the status tag, not a progress bar. + - `@object-ui/types`: the page `highlights` slot doc says it places a strip the synthesized default does not draw. + - `@object-ui/app-shell`: on a phone the default record page no longer hands the synthesizer a highlight list it never read. The page looks the same, and the subtitle under the record name is unchanged. +- c757e07: feat(console): a change on a list is a draft, with Discard and Save + + Clause-②: yes (widening) — new `console.objectView.draft.*` keys in every `@object-ui/i18n` locale pack (`discard`, `discardTitle`, `save`, `heading`, `partSeparator`, `saveToView`, `saveAsMyView`, `copyName`, `saved`); nothing removed or renamed + Metadata-protocol: none + + On a Console object list, a header sort, a filter change, grouping, the search, Hide Fields, an added field and a column drag apply at once and are now a draft: they are kept nowhere. They used to be saved at once into the reader's own list preference (`sys_user_preference`, key `ui.list.<object>`) and followed them to every device. + + - While the list holds a draft, **Discard** and **Save** sit at the end of the condition row, where the 「Personalized · Reset to view」 marker was. On a narrow list or a phone they fold into one **Save** whose menu also holds Discard. + - **Save** names what is unsaved and offers **Save to this view** (on a view of the reader's own) and **Save as my view**, which asks a name first (the view's name with "copy"), saves the draft as a new view of the reader's own and opens it. Either says "Saved", and the buttons go while the conditions stay. + - **Discard** puts the list back as its view declares it and removes the list's `uf_*` parameters from the address bar. + - Where the reader may not save (no personal view can be created or updated), both faces are Discard alone. + - The draft survives opening a record (as a page or in the side panel) and coming back. Opening another view or object, or reloading the list's page, drops it. A reload of another page does not drop the state an in-app link to a list carries. + - Column widths, the row height and the views' order are not a draft. They are still remembered for the reader in the same `ui.list.<object>` row. + + Upgrade note: a sort, filter, search, column order, hidden column or added column that an earlier Console stored in a reader's `ui.list.<object>` row no longer applies; the list opens as its view declares it. Nothing stored is deleted by this change; a later column-width change rewrites that row's column state with the widths alone. A reader who wants such a list kept saves it as a view of their own. + + Saving into a shared view, and saving the Display panel's layout and row colour, are not offered yet. `@object-ui/plugin-list` changes only its README, which now describes added fields as part of the draft. No metadata key, value or default changes. +- a5a5312: feat(console): a list's column widths, row height and tab order are kept in this browser only + + Clause-②: no + Metadata-protocol: none + + On a Console object list, the column widths a reader drags, the row height they pick and the order they give the view tabs are now kept in their own browser only, per signed-in user and object (localStorage `list-layout:<user id>:<object>`). Nothing is sent to the server: the Console no longer reads or writes the per-user list preference row `sys_user_preference` `ui.list.<object>`, and its boot read of the reader's preferences no longer asks for that key family. A list opens at once, without waiting for that read. + + - Another browser or device opens the list on its view's own widths, row height and tab order until the reader changes them there. + - Signing out clears these entries with the rest of this browser's Console state, as before. + - With nobody signed in, nothing is kept. + - The record page's "show empty fields" choice (`ui.record.<object>`) is unchanged and still follows the reader. + + Upgrade note: what an earlier Console kept for a reader's lists is not carried over. The `ui.list.<object>` rows are no longer read, so every reader's lists open on their views' own widths, row height and tab order until they change them again. This browser's old copies (`list-state:*`, `list-filters:*` and `viewOrder:*` in localStorage) are removed on the first list the Console opens. The server rows stay where they are, unread; leaving them does no harm. + + `@object-ui/data-objectstack`, `@object-ui/react` and `@objectstack/platform-objects` change only comments and a README example that named the retired key. No metadata key, value or default changes. +- c1b35c3: feat(console): Save to this view on a shared view asks once, then saves and publishes it; the layout and row colour are part of a list's draft + + Clause-②: yes (widening) — new `console.objectView.draft.*` keys in every `@object-ui/i18n` locale pack (`saveToViewConfirmTitle`, `saveToViewConfirm`, `saveToViewConfirmButton`, `savedForEveryone`, `pendingDraft`); `@object-ui/plugin-list` `ListView` gains the optional host prop `onRowColorChange` and two optional `viewDefaults` members, `viewType` and `rowColor`; nothing removed or renamed + Metadata-protocol: none + + On a Console object list, **Save to this view** is now offered on a shared view to a reader who may edit it (an administrator, on a stored view whose package takes saves). It asks once ("everyone who uses this view will see these changes"), then saves the view and publishes it in the same step, so other readers see it on their next read, and says "Saved, visible to everyone". The options menu's Save does the same. + + - When the view already has unpublished changes (a draft saved from the view settings, by anyone), nothing is written: the Console says so and points to the view settings to publish or discard that draft first. The draft write is sent with the first-write pin (`If-None-Match: *`), so the server refuses it when a draft is pending; that draft is never published on someone else's behalf. A publish the server refuses discards the draft the save wrote. + - The reader's row height and column widths are never written into a shared view: it keeps its own. + - The Display panel's layout and row colour are part of the list's draft: they survive opening a record and coming back, and both Save to this view and Save as my view keep them (a layout switch retypes the saved view). Discard puts back the view's own. + + `@object-ui/plugin-list`: `ListView` reports a pick in its row colour panel through the new optional host prop `onRowColorChange` (the rule in force, or `null` for none), never at mount or for a reset. A host that lays the reader's layout or row colour into `schema` passes the view's own in `viewDefaults.viewType` / `viewDefaults.rowColor`, and the `layout` / `rowColor` parts and the Display count are judged against them; each is read only when its key is present. Without them nothing changes. + + No metadata key, value or default changes. The view settings panel and the footer calculation still save a shared view as a draft that the view settings publish. +- 27e414b: fix(ui): a view a read-only package ships hides only Delete in Manage views and opens its view panel read-only + + Clause-②: yes (widening) + Metadata-protocol: none + + This applies to a list view that ships inside a read-only package (a code or installed package). The console no longer offers that view the two writes the server refuses: + + - Manage views hides Delete on its row. + - The row's configuration entry reads "View config". It opens the admin's view panel read-only: the configuration is shown read-only, no edit reaches the list, and there is nothing to save. The panel has no Save, no draft bar to publish or discard, and only Close. + + Rename, pin and set as default stay offered. They land in that package's customization (the console creates it on first use), so no lock icon is drawn on the row. The list's options menu offers Rename on such a view again. A shared view the console saved into the customization package, and the reader's own view, are unchanged. The toolbar's personal list changes keep saving to the reader's preferences. + + `@object-ui/plugin-view`: `ViewTabItem` gains an optional `definitionReadonly` field. When it is `true`, `ManageViewsDialog` hides Delete and labels the configuration entry "View config" (`view.showViewConfig`, a new key in every locale of `@object-ui/i18n`). Rename, pin, set as default and the configuration entry stay. `readonly` still wins when both are set. Without the field a row behaves as before. `ViewTabBar` does not read it. + + The read-only verdict is the one the footer calculation menu already uses. The console takes the package the view row was served under and reads the server's `writable` verdict for it from the package list it holds for the session. While that list is unread, or when the read fails or does not name the package, everything stays offered as before and the server's refusal still applies. The view panel reads the same answer that drew the Manage views row, so a row's "View config" never opens an editable panel. If the answer arrives after the admin has started editing, the panel turns read-only and discards the edit: the list's preview goes back to the stored view. +- eb53d63: fix(studio): the key-fields editor no longer previews a record-page strip + + Clause-②: no + Metadata-protocol: none + + The default record page draws no key-field strip, so Studio's object settings + stop drawing a "Highlight strip preview" under the `highlightFields` list. The + ordered rows stay: order still decides which fields each surface takes. The + `engine.studio.settings.highlightPreview` catalogue key leaves the studio + namespace (English and Chinese). +- 035a12c: feat(ui): every modal dialog draws one lighter surface, short create and edit dialogs are one narrow column, and a create dialog can stay open for the next record + + Clause-②: yes (widening) + Metadata-protocol: none + + What a user sees: + + - Behind a dialog the page is only slightly dimmed (10% in light mode) and no longer blurred, so it stays readable. The dialog is a white card (the raised grey in dark mode) with a hairline edge and a translucent outer ring, a 12px corner, and anything inside it drawn at the shared 40px control height (`h-10`: inputs, select triggers, default and icon buttons, and any other `h-10` element such as a 40px avatar) one step smaller, 32px from the `sm` breakpoint up; the phone sheet keeps its 44px touch targets. Confirmation dialogs, the required-fields prompt and the record create and edit dialog all share it. + - The create and edit dialog's title is 16px and follows the object's icon, and its padding is 20px. + - A dialog that lays out at most six fields and declares no `columns` (not on the form, not on any section) draws one field per row in the narrow `lg` size (672px); six is the maintainer's choice (ruling of record 7061696632 on objectstack-ai/objectstack#35980). This reverses the at-least-two-columns default such a dialog drew before. Seven fields or more, any declared `columns`, an authored `modalSize` or a maximized dialog lay out as before. + - The console's list 「New」 dialog (and a related list's child create) has a 「Create more」 switch. With it on, a save keeps the dialog open on an empty form with focus on the first field, and the list behind refreshes; with it off, a save closes the dialog and opens the new record as before. The switch is remembered per object in this browser. + - ⌘↵ (Ctrl+Enter on other platforms) saves the create and edit dialog, and the Save button shows the keycaps. A master-detail dialog (a record with line items) takes neither the shortcut nor 「Create more」. + + What a developer sees (`Clause-②: yes (widening)`, additions only): + + - `ModalFormSchema.createMore?: boolean` offers the switch on a `create` dialog that a host mounts itself (the `object-form` renderer's `formType: 'modal'` keeps it off), and `ModalFormSchema.onSuccess` receives a second argument, `{ createMore: true }`, when the dialog stays open. A host that passes neither sees no change. + - New i18n key `form.createMore` in every locale. + - The console's global `[role="dialog"]` corner rule and the blurred overlay on dialogs are gone; the look lives in `@object-ui/components` (`src/lib/dialog-surface.ts`), reached from the `dialog` and `alert-dialog` primitives through declared Shadcn patches. The card carries the `dialog-surface` class, which the console's shared floating-surface shadow skips; a host stylesheet that adds its own shadow to `[role="dialog"]` should skip it too. Popovers and the bottom drawer keep their rounded corners by their own containers; side drawers are unchanged. + + Nothing to migrate. +- 2955685: perf(console): an app route draws the console's frame right after the session read, and the chrome no longer waits for the route's own metadata + + Clause-②: no + Metadata-protocol: none + + Opening an app page by its URL (a reload, a pasted link) showed the full-screen splash until the permission answer, the app list, the admin verdict and the page's own metadata reads had all arrived. On a hosted environment the permission answer alone takes seconds. + + - `LoadingFallback` (the console's boot-gate fallback) and `AppContent`'s readiness gate now draw `ConsoleBootShell` on an `/apps/:app/*` route once the session has answered with a user: the chrome's frame (the sidebar at the width the reader left it, from 768 px up with grey blocks where its head and foot put the app menu, the search, the bell and the account; the top bar on a phone, except on a record page, and on an app's docs pages, which have no sidebar; the route's skeleton in the slot: the shape the chrome draws on that route), with no app name, no navigation entry and nothing to press, because those are what the gates still decide. The splash stays for the session read itself and for every other route. The console's permission scope uses the same fallback. + - `AppContent` mounts the console chrome once the app list, the permission answer, the admin verdict and the deployment flags (`/auth/config`, which the chrome's navigation gates read) are in; the route's own metadata reads no longer hold it on the first paint. The route slot draws the route's skeleton until they land, and a route element whose chunk is still loading draws the same skeleton instead of the full-screen splash inside the chrome. + - The frame and the first route skeleton carry `data-boot-splash`, so readiness waits and the reads deferred to the first paint past the splash wait exactly as before; `data-boot-shell` tells the frame apart. +- 33d0169: feat(ui): the object's colour tile replaces its line icon wherever else the object is named + + Clause-②: yes (widening) — `ConsolePageHeaderProps` gains the optional `iconTile`, and `RecordSearchHit` and `RecordHoverCardObjectDef` the optional `color`; nothing removed or renamed + Metadata-protocol: none + + The tile the navigation already draws for an object (a white glyph on the object's palette colour, gray when it has none) now also names the object in: + + - **List and data pages:** the page bar and the view bar's object name in front of the view switcher; the URL data page's header. + - **The record page and the record drawer:** the record row in front of the record's name. + - **The record page's related lists:** each section's title, with the list's own icon else the related object's, on that object's colour. + - **Search:** the command palette's recent records, record hits and object entries; the search results page (group headings and hit cards); the global search block. + - **Home:** a record row in "Recently accessed". + - **References:** a pointer cell in a grid (`referenceVia`) and the record hover card. + - **Studio:** the data pillar's object list and header, and the interfaces pillar's object entries and header. + + `ConsolePageHeader` takes `iconTile`, an icon that draws its own square, drawn as given in every posture in place of `icon`. `RecordSearchHit.color` carries the object's palette name beside `icon`, and `RecordHoverCardObjectDef` names `color` beside `icon`. `ObjectIconTile`'s glyph keeps its size inside a host row that sizes every nested `svg`. +- 6aacad9: fix(fields, console): condition editors offer a multiple: true field only what its evaluator answers + + Clause-②: no + Metadata-protocol: none + + A `select`, `lookup` or `user` field declared `multiple: true` holds a list, and the condition editors used to treat it as a single value: they offered Equals and Is any of on it. The engine refuses those operators on such a field with 400 `INVALID_FILTER`, a dataset filter answered them with 0, and a flow edge guard written as `record.attendees == 'u1'` is false for every record. Each editor now passes the field's `multiple` to the shared filter builder, which offers such a field Contains, Does not contain, Is empty and Is not empty, the operators a `multiselect` already got: + + - the criteria editor (`@object-ui/fields` `FilterConditionField`, e.g. a sharing rule's criteria); + - the Studio filter editor for a dataset's scope and measure filters and a field's related-list filter. A stored `$eq` or `$in` on such a field now opens in Source instead of as an Equals row; + - the Studio flow edge rows. On a list-valued field they write Contains as CEL list membership, `record.attendees != null && 'u1' in record.attendees`, and Does not contain as `record.attendees == null || !('u1' in record.attendees)`. A guard spelled that way opens as a row again. + + A single-value field of the same types keeps its operators. The Studio field list now carries the declared `multiple`, so the CEL condition builder also words and writes Is empty on such a field as an empty list, as the spec's 「is empty」 table says. No metadata key, value or default changes. +- cc05e60: feat(console): Manage views restores the factory version of a customized package view + + Clause-②: yes (widening) + Metadata-protocol: none + + A pin, a rename or a set-default on a view a read-only package ships writes the whole view into the package's customization (`<package>.custom`), and every user of the view then sees that copy. Manage views now marks such a view "customized" and offers "Restore factory version" in its `…` menu. After one confirm, which says every user of the view sees the factory version again, the override is removed from the customization and the list shows the package's own view. A view without a customization has no mark and offers no restore; a refused restore is said with the server's own message. + + - `@object-ui/data-objectstack`: `ObjectStackAdapter.restoreFactoryView(objectName, viewName)` deletes the view's draft, then its row, at the customization the ensure door names for the shipping package (`DELETE /meta/view/NAME?package=PAIR`, the door Studio's "Restore package original" uses). It refuses, sending nothing, a view that is no override of the package it is served under, and throws when the customization held no row of the view. The customization package itself stays. `listViews()` now carries a record's `overrides` declaration onto the flattened row. + - `@object-ui/plugin-view`: `ViewTabItem.customized` and `ManageViewsDialogProps.onRestoreFactory`. + - `@object-ui/i18n`: the mark, the menu entry, the confirm, its result and the failure title, in every locale pack. +- dca608a: feat(grid): on the list page a lookup chip opens its record in the side drawer, and a lookup cell has an edit button + + Clause-②: yes (widening) + Metadata-protocol: none + + On the console's list page, a single click on a lookup chip (a record of another object, such as a contact's account) now opens that record in the side drawer over the list. This replaces, for lookup chips on that page, the earlier change in this release where a plain click on a lookup chip only selected its cell. The list stays where it was: closing the drawer leaves its scroll position and the selected cell as they were. The drawer's address carries the record and its object (`?recordId=…&recordObject=…`), so a reload keeps it open and Back closes it, as with the name cell's "Open in side panel" icon. A click beside the chips only selects the cell. A cell of several chips opens the chip that was clicked; Ctrl/Cmd+Enter on the selected cell opens the first one in the drawer; Ctrl/Cmd-click still opens the record's page in a new tab. + + A lookup cell now draws an edit (pencil) button while the pointer is over it and while it is selected. It opens the cell's editor, as a double-click or Enter does, and it is not drawn when the cell cannot be edited (no permission, a read-only field, a locked record). It takes the place of the open button a selected cell shows. + + A chip naming a person (an owner, a creator: a lookup to `sys_user`) keeps the behaviour it had: a single click only selects the cell, and it opens from the open button or Ctrl/Cmd+Enter. Email, phone and URL cells and the name column are unchanged. On a phone every record still opens as its page. + + For hosts: `ListView` and `ObjectGrid` take a new runtime prop, `openReferencedRecord(objectName, recordId)`, that opens such a record in the host's place; `GridCellSelection` gains an optional `referenceCells` member (`isReferenceColumn`, `openRecord`), exported with its type `GridReferenceCells` from `@object-ui/components`. A host that passes neither keeps the previous behaviour, where a chip only selects its cell. `ReferencedRecordLink`'s anchor now carries `data-record-object` and `data-record-id`. +- 4ab1218: fix(console): on a phone the account menu stays on the screen in every interface language + + Clause-②: no + Metadata-protocol: none + + The account menu sized itself to its longest line. On a phone, with the desktop notification hint showing (notifications blocked, or a browser with no notification support such as Safari on iPhone), the menu was wider than a 375 px screen in seven of the eleven interface languages (English, German, French, Russian, Spanish, Portuguese, Japanese), and in German, French, Russian, Spanish and Portuguese the Language control was pushed off the right edge, so the language list could not be opened. + + Below 768 px the menu is now no wider than the screen less a 1 rem gutter on each side, and long lines wrap with their full text. The language list opens under the Language control (or above it where only that fits), on the screen. From 768 px up the menu is unchanged, and the language list itself, which the sign-in page also uses, is unchanged. No props, exports or locale keys change. +- 6c7c6db: feat(ui): the console's pages set text in two sizes, 14 and 12, and two weights, 400 and 500 + + Clause-②: no + Metadata-protocol: none + + - **Two sizes.** Body text, list cells, field values, inputs, menu items, toolbar controls and buttons are 14px (`text-sm`); field labels, column headers, counts, timestamps, hints and chip text are 12px (`text-xs`). The hard-coded 13px is gone from the console's runtime pages, and the 10px, 11px and other odd sizes there are 12px. The in-cell editor is 14px, like the cell it edits. + - **Two weights.** Record names, tabs, buttons, section titles and column headers are 500 (`font-medium`); body text is 400. Weight 600 and 700 stay only on page and dialog titles 18px and larger. `DropdownMenuLabel` is weight 500 through a declared local patch on the Shadcn primitive (`dropdown-menu-label-medium-weight` in `ui/scripts/shadcn-local-patches.mjs`), so it survives a registry sync. + - **Not changed:** Studio and metadata administration internals, the settings pages, developer tools, phone-only layouts, avatar initials, authored markdown and SDUI heading typography, the docs reader's prose size, and the shape of coloured option badges (still pills). + - A list column with no declared width measures its content, so it grows with the 14px text; a column whose width a view or a user set keeps that width and shows about 8% fewer characters before it truncates. +- 493ad09: fix(record-page): the record header's Edit is an outline button, and the desktop header row is one height, 28 + + Clause-②: no + Metadata-protocol: none + + On a record whose object declares no header action of its own, the host's Edit was drawn as the page's one filled button, 36 high, louder than the record's name, though the record's fields already edit in place. It is now an outline button everywhere in the header row, in the record page and in the record drawer alike. What Edit does when pressed is unchanged. + + - **The page's own actions keep their faces.** An action declaring `variant: 'primary'` is still the filled button; with none, the first page action still is. The record edit state's Save stays filled. + - **One row height.** On desktop every button in the record header row is 28 high: Edit, the page's own actions, the `⋯`, the approval levers a record under approval shows there, and the trailing panel toggles (32 before). `page:header` is a shared block, so a custom page's header actions get 28 too. An action that declares its own `size` keeps it. + - **Phones unchanged.** The phone's bottom action bar still draws Edit filled at 44, and the phone header rows keep 36. +- 3543b51: fix(comments): Reply puts the caret in the reply box, comments show the author's avatar or initials, the mention menu opens at the caret, and a delete says it went through + + Clause-②: yes (widening) + Metadata-protocol: none + + Four small fixes to comments on the record page: + + - **Reply.** Pressing Reply on a comment opened the reply box but left focus on the button, so typing went nowhere (or into the main comment box). The caret now goes into the reply box. On a comment whose replies were collapsed, Reply also expands them first. + - **Author avatar.** A comment by someone without an avatar showed a generic comment icon. Every comment and reply now leads with a 20 px avatar: the author's image, or their initials on the same round disc the people chips draw. + - **Mention menu.** Typing `@` opened the people menu at the top left of the comment box. It now opens under the caret, or above it when the window has no room below. + - **Delete.** Deleting a comment now shows a "Comment deleted" toast (zh: 评论已删除). A refused delete still shows its error, as before. + + Additions, nothing removed or changed in meaning: `@object-ui/plugin-detail` exports `CommentAuthorAvatar` (and its props type), and `ThreadedReplies` takes a new optional `focusReplyOnOpen` prop (default `false`, so a host that always shows the reply box keeps today's focus behaviour). `@object-ui/fields` exports `getPersonInitials`. New locale key `detail.commentDeleted` in all eleven locale packs. +- 4ab2c82: feat(record-page): the desktop comment panel resolves and reopens threads, filters them, counts the unresolved ones, and offers Edit and Delete on other people's comments only where the server admits them + + Clause-②: yes (widening) — `@object-ui/react`'s `DiscussionContextValue` adds three optional members: `onResolveComment(itemId, resolved)`, `moderatesComments` and `updatesOthersComments`. `@object-ui/types`' `FeedItem` adds five optional members: `resolved`, `resolvedById`, `resolvedByName`, `resolvedAt`, `mentionsViewer`. `@object-ui/plugin-detail` adds exports `useRecordVerdict` (the three-state verdict `useRecordEditable` fails open on; a definite allow is the explain answer's `allowed` together with its `record.visible`, as the server admits a by-id write, so `useRecordEditable` reads as before except that an answer whose `allowed` is false beside a visible record, such as an on-behalf-of session whose delegator is gone, now reads not editable), `threadResolvable`, `threadResolved`, `threadInvolvesViewer`, `filterCommentThreads`, `unresolvedThreadCount`, `DEFAULT_COMMENT_THREAD_FILTER` and the type `CommentThreadFilter`; `RecordCommentsData` adds `resolvable`, `onResolveComment`, `moderates` and `updatesOthers`, and its `count` is now the unresolved threads; `CommentItemActions` adds `onResolve` and `resolved`; `CommentHoverActionsProps` adds `resolved`; `RecordCommentThreadProps['comments']` may carry `onResolveComment`, `moderates` and `updatesOthers`. `@object-ui/i18n` adds ten keys to every pack: `detail.reopenThread`, `detail.threadResolved`, `detail.threadResolvedBy`, `detail.filterComments`, `detail.showResolvedComments`, `detail.commentsInvolvingMe`, `detail.noUnresolvedComments`, `detail.noCommentsInvolvingMe`, `detail.showAllComments`, `detail.commentResolveFailed`. Nothing existing is removed or re-typed. + Metadata-protocol: none + Skills-docs: none — no skill under `skills/**` teaches the console's comment panel; `content/docs/frontend/plugins/plugin-detail.mdx` and the plugin-detail README gain resolved threads, the filter and the moderator's Edit and Delete in this change. + + The desktop record page's comment panel (objectstack#36075) gains the resolved threads #36071 stores: + + - ✓ in a thread's first comment's action row marks the thread resolved: it leaves the list and the comments icon's number, now the unresolved threads, drops by one. ✓ is offered under the `sys_comment` update grant: on a thread the viewer started, and on anyone's only where the explain engine admits the viewer's update of a comment they did not write. Today the platform's row floor admits that for administrators, not for rank-and-file members, so a member resolves only the threads they started until the server carries ruling 7063285032 (any reader of the record may resolve) past that floor. + - The filter menu at the panel's top right holds 「显示已解决」, which shows resolved threads marked 「已由 X 解决」 (their ✓ reopens them), and 「只看我参与的」, the threads the viewer started, replied in or is mentioned in. The filter is not stored. With every thread resolved, the panel says so and offers to show them all. + - A reply into a resolved thread shows the thread reopened, as the platform stores it. + - The resolver is named from the people the page already knows (the viewer and the discussion's authors); any other resolver is named by one `sys_user` read of exactly those ids, after the discussion is drawn. Where that read is refused, the mark reads 「已解决」. + - Edit and Delete under More are offered on other members' comments to a viewer the explain engine admits to update the record by id, the server's rule for moderating someone else's comment; Edit also needs the explain engine to admit their update of a comment they did not write (the row floor above). Both are asked only on a definite allow: pending, a refusal, an error or a deployment without the explain service offers them on the viewer's own comments alone. Their own comments keep them as before. + + Unchanged: no server permission changes (a deployment without the explain service shows ✓ and Edit on the viewer's own rows only, administrators included); a deployment whose comment rows carry no `is_resolved` shows no ✓ and no filter, and the icon counts every thread; hand-written record pages and the phone keep their feed as before. +- 04f9861: feat(record-page): a record's comments move out of the 动态 tab into a comment panel of their own on the desktop + + Clause-②: yes (widening) — `@object-ui/plugin-detail` adds exports (`CommentsPanel`, `CommentsButton`, `CommentThread`, `CommentItem`, `CommentComposer`, `CommentHoverActions`, `useRecordComments`, `buildCommentThreads`, `latestRepliers`, `RecordCommentsInPanelContext`) and their types (`CommentsPanelProps`, `CommentsButtonProps`, `RecordCommentThreadProps`, `CommentItemProps`, `CommentItemActions`, `CommentComposerProps`, `CommentHoverActionsProps`, `CommentThreadData`, `RecordCommentsData`), and an optional `reservedWidth` on `useRecordPageTier`. `RichTextCommentInput` (exported) now takes the `Esc` that closes its @ list (`preventDefault` and `stopPropagation`), so nothing round it acts on that key. `RecordActivityTimeline` draws no chip group when it is handed no chips. `@object-ui/components` adds an optional `comments` slot to `RecordTopBar` and `NavigationOverlay`, and the drawer leaves an `Esc` pressed inside a `[data-owns-escape]` region to that region. `@object-ui/i18n` adds five keys to every pack: `detail.closeComments`, `detail.collapseReplies`, `detail.commentActions`, `detail.commentsEmptyHint`, `detail.resolveThread`. Nothing existing is removed or re-typed. + Metadata-protocol: none + Skills-docs: none — no skill under `skills/**` teaches where the console draws a record's comments; `content/docs/frontend/plugins/plugin-detail.mdx` and the plugin-detail README gain the panel in this change. + + On the desktop record page and in the record drawer, the record header gains a comments icon with the number of top-level comments. A press opens the record's comment panel, the next one closes it, and the browser remembers whether it was left open (once for the page, once for the drawer). + + - The panel is 380 px wide: 「评论」 and ✕ at the top, the threads oldest first, the comment box docked at the foot. A thread's replies fold to 「N 条回复」 with the latest repliers' faces and open in place, with a reply box under them; Reply on any comment of a thread opens it with the caret in that box. + - A comment's actions sit in one row at its top right while the pointer is over it, or focus is in it: Reply, an emoji, and More with Edit and Delete on the viewer's own comments. Every write is offered under the same grants as before. + - From a 1280 px window the panel sits beside the record and the record gives way; in a narrower window it is drawn over the record's right edge. In a drawer narrower than 760 px (the default 720 px drawer) it covers the drawer's body; a wider drawer splits. + - Esc in the panel closes it and returns the focus to the comments icon, in a drawer too: the drawer neither closes nor steps back on it. Esc in the panel's @ list closes the list only and keeps the draft. + - While the panel holds the comments, the 动态 tab and panel hold the system entries only: activity and field changes, with no comment box and no All / Activity / Discussion chips; the Changes chip stays where the record shows its field history, and pressed again it goes back to every entry. Their count leaves the comments out. + + Unchanged: a record page authored in full keeps the feed blocks it places (`record:discussion`, `record:activity`) as they were and shows no icon; an object with `enable.feeds: false` shows no icon; the phone keeps the comments in its 动态 tab. +- c30ce97: feat(record-page): on a phone, the record's comments open as a page of their own: the threads first, a thread's replies inside it, the comment box docked at the foot, and a long press for a comment's actions + + Clause-②: yes (widening) — `@object-ui/plugin-detail` adds the export `CommentsPage` and its type `CommentsPageProps`; `CommentThread` takes a third `mode`, `'page'`, and optional `itemInteraction`, `heldId` and `onHeldActions`; `CommentItem` an optional `interactionProps`; `CommentComposer` and `RichTextCommentInput` (exported) an optional `layout` (`'default' | 'phone'`). `@object-ui/app-shell` reserves the console URL parameter `comments` (`RECORD_COMMENTS_PARAM`, in `RESERVED_URL_PARAMS`). `@object-ui/i18n` adds four keys to every pack: `detail.addReactionEmoji`, `detail.commentThread`, `detail.formatBold`, `detail.formatItalic` (the toolbar's names without their shortcut). Nothing existing is removed or re-typed; the desktop's panel, toolbar and labels are unchanged. + Metadata-protocol: none + Skills-docs: none — no skill under `skills/**` teaches where the console draws a record's comments; `content/docs/frontend/plugins/plugin-detail.mdx` and the plugin-detail README gain the phone's page in this change. + + On a phone the record page's top bar gains the comments icon, with the number of unresolved threads. A press opens the record's comments as a page over the record, which stays where it was under it; 「‹」 and the browser's Back return to it. + + - The page lists each thread's first comment with 「N 条回复」 under it; a tap opens the thread, the comment first and its replies after it. 「‹ 评论」 returns to the list. + - The comment box is docked at the foot of the screen and stands on the keyboard while it is up. One line until tapped; then a row under the text holds mention, bold, italic, list and code, and send at the right end. In the list it writes a comment, in a thread a reply. No 「Ctrl+Enter」 hint. + - A long press on a comment (or its context menu) raises a sheet from the bottom: six reactions, 「标记已解决」 on a thread's first comment, 「编辑」 and 「删除」 (red, confirmed first), each offered exactly where the desktop's hover row offers it. + - The filter at the top right is the desktop's: 「显示已解决」 and 「只看我参与的」. + - The 动态 tab holds the system entries alone, as on the desktop. On a phone the comments live on this page: this replaces the lines of the two objectstack#36075 entries (the record comment panel, and resolved threads) that said the phone keeps the comments in its 动态 tab, or keeps its feed as before. + - The page is in the URL (`?comments=` for the list, `?comments=<id>` for a thread), so a link or a reload opens it where it was. + + Unchanged: the desktop; who may write, resolve, edit or delete a comment (the phone offers each exactly where the desktop does); a record page authored in full and an object with `enable.feeds: false` show no icon. +- 713545f: feat(console): reports and custom pages open with the console page header; the shell's top-right button group is built and placed, off while the top bar stands + + Clause-②: yes (widening) + Metadata-protocol: none + + - **Reports, the report index and custom pages draw the console page header** that lists and dashboards draw: the page's name (and description) on the left, its actions on the right. A report keeps its 「Edit」 (the inspector beside the report) as the header's action. A custom page's name and description move into the header; the page renderer no longer draws them a second time, and a `page:header` the author wrote stays as written, its title one heading level down (`h2`) so the page keeps one `h1`. An interface page swaps its own title row for the header, buttons included. On a phone a custom page keeps the face it had, its floating 「Edit in studio」 pencil included; from the phone breakpoint up the pencil is gone and the top bar's 「Edit app」 opens the same surface. + - **The top-right button group** (`ShellPageActions`, internal to `@object-ui/app-shell`): the comments slot, 「Edit app」 (words beside a non-pencil icon, icon-only below `lg`, the same gate and target as the top bar's pencil; a read-only package gets the eye), the AI assistant and help. The console page header draws it after its actions (so reports, dashboards and custom pages), the list page at the end of its view bar after ⋮, the record page in its navigation row before ✕. **It is off** while the top bar stands, so nothing changes on screen beyond the headers above; `localStorage['os:shell:page-actions'] = 'on'` turns it on for checking. The help menu is now one component the top bar and the group share. + - `@object-ui/components` exports `PageTitleHostContext`, a host switch (never metadata) that says the host draws the page's title and description: the page renderer then draws neither, and an authored titled `page:header` draws its title as an `h2`. Default `false`: every other host is unchanged. +- cbd582f: feat(app-shell): from 768 px up an app draws no top bar; what it carried moves to the sidebar and the content area + + Clause-②: no + Metadata-protocol: none + + Part of objectstack#36112 (epic #36107). An app page from 768 px up now starts at the window's top: + + - **Sidebar head.** The first row is the app's glyph and name, which open a menu that only switches apps (the viewer's apps with the current one checked, Setup among them for the viewers the server serves it to, a search field past eight apps, and 「Add app」 for a workspace admin who may author: build with AI or in Studio, start from a template, the marketplace), with the collapse button beside it. The second row is search (`⌘K`) and the notification bell. + - **Sidebar foot.** The account menu: avatar, name and, in a walled organization, the organization's name; the same entries the avatar menu had (profile, connect an AI assistant, organizations, hidden apps, theme, language, notifications, log out), plus the stage chip on a preview or beta deployment. + - **Content area.** The impersonation, read-rate and storage banners and a lost-connection notice sit at the top of the content, its width. + - **Page header.** While the sidebar is collapsed the page header draws the expand button first; a route with no shell header gets it at the content's top-left corner. The page's button group (#36111) is always on; the `os:shell:page-actions` storage switch is gone. + - `⌘⇧H` goes home from any app page at every width (the app layout installs it, not the bar). + + Unchanged: a phone keeps its top bar and bottom bar; an app's docs pages, which mount no sidebar, keep the bar at every width; `/home`, the organization pages and Studio keep their bar; the sidebar's fold below 1416 px and its keep-open choice are as before. + + New strings in all 11 locales: `sidebar.collapse`, `sidebar.expand`, `layout.appSwitcher.addApp`. +- 031325d: feat(console): the sidebar's docking model — 1280 px starts expanded, the expand/collapse button is the one control, and Recent lists this app's items + + Clause-②: no + Metadata-protocol: none + + - **Which state a window starts in.** From 768 px up, a browser with no choice kept starts with the sidebar expanded on a window 1280 px wide and up, and collapsed from 768 to 1279 px. The threshold was 1416 px, and below it the sidebar folded on its own. `CONSOLE_SIDEBAR_RAIL_BELOW_WIDTH` is now 1280 (one constant). + - **The reader's choice wins, on each side.** The sidebar's collapse button and, while it is collapsed, the page header's expand button are the one control, and this browser keeps each press: a wide-window choice and a narrow-window choice, kept apart as before. The expand button now docks the sidebar beside the page; before, it floated the menu over the page. Resting the pointer on the window's left edge and ⌘B still float the menu over a collapsed sidebar without changing the choice. Phone widths are unchanged, and the sidebar stays 256 px wide. + - **"Keep sidebar open" is gone.** Its stored choice (the workspace preference `console.sidebar.keepOpen`) is now the narrow-window choice, so a reader who kept the sidebar open starts expanded on a narrow window. Nothing to migrate. + - **Upgrade change.** On a 1280 to 1415 px window, a reader who never kept the sidebar open now starts with it expanded (it folded before), unless they collapsed it on a wide window. The accepted cost: on a 1280 px window with the sidebar expanded, the list beside an open record drawer is 304 px wide (560 before), and on 1280 to 1415 px, opening the record page's comment panel moves its fields back to the tab row; collapsing the sidebar gives the width back. + - **Recent is this app's.** From 768 px up, the sidebar's Recent group lists only the items opened in the current app. Home's "Recently accessed" and the phone drawer still list every app's. + + `@object-ui/i18n`: the `sidebar.keepOpen` key, which no surface reads any more, is dropped from all eleven packs (zh-Hant regenerated). +- 1705ec9: feat(console): the list page's top reads the object's row, the view bar, then the condition row; 「Import / Export」 and 「New Account」 end the view bar + + Clause-②: yes (widening): `@object-ui/plugin-list` exports `ListExportDoor` and `ListToolbarTrailingState` and calls `toolbarTrailing` with a second argument; `@object-ui/i18n` adds `console.objectView.newObject` and `console.objectView.importExport` + Metadata-protocol: none + + An object's list page draws three rows above its table again: + + - **The object's row** — the console `PageHeader` in its list posture: the object's icon and plural name, ended by the shell's top-right button group where the shell turns it on. It carries none of the page's acts. + - **The view bar** — the view switcher and 视图设置 on the left; the search, 「Import / Export」, the authored list toolbar actions, 「New Account」 and ⋮ More on the right. The view bar no longer leads with the object's name. + - **The condition row** — the sort and filter chips, and Discard / Save while the list holds a draft, as before. + + 「Import / Export」 holds Import and one entry per export format the reader may use. ⋮ More keeps the object's description and the favorites entry; Import is no longer in it. While the list is narrower than 896px, 「Import / Export」 folds into ⋮ More; below 768px the search keeps its icon alone, without the active keyword. The 视图设置 panel keeps its export entries. The create button names what it creates (`console.objectView.newObject`, 「New {{object}}」, in every locale). A phone's list header is unchanged. + + `@object-ui/plugin-list`: `ListView`'s `toolbarTrailing` host prop is now called with a second argument, `ListToolbarTrailingState`, whose `export` is the list's export door (`ListExportDoor`: the formats, `run`, `busy`, `error`), absent where the list offers no export. Both types are exported. A host that reads only the first argument is unchanged. +- 674f877: fix(console): a view settings save is pinned to the draft it opened, so it can no longer be published by someone else's Save to this view + + Clause-②: yes (widening) — `ViewConfigPanel`'s `onSave` host prop gains an optional second parameter, the panel's draft-version guard (`saveDraft`), which the panel always passes; a host that takes one argument is called as before; nothing removed or renamed + Metadata-protocol: none + + **Save to this view** on a shared view writes a draft and then publishes it. A save from the view settings panel that landed between the two used to overwrite that draft unpinned, and the publish then made the settings panel's unreviewed change live for everyone. + + - The view settings panel now sends its draft save pinned to the draft it opened: `If-Match` with the version its load read, or `If-None-Match: *` when the view had no draft. After a save lands, the next one is pinned to that save's receipt. A save over a draft that changed since (another admin's settings save, or a Save to this view in flight) is refused by the server, and the panel opens the Studio editors' draft conflict dialog: reload the saved version, overwrite it after a second confirmation, or keep editing. The edit stays in the panel until the author chooses. + - Creating a view (the Create View dialog, the panel's create mode, Save as view) sends the first-write pin, `If-None-Match: *`, so a create over a name that already holds a pending draft is refused instead of writing over it. + - A host of `ViewConfigPanel` that writes through the guard it receives gets the pin and the dialog; a host that ignores it saves unpinned, as before. + + No metadata key, value or default changes. +- a2dc858: feat(ui): every menu row is a tile: objects and their views in the object's colour, everything else on a light grey tile + + Clause-②: yes (widening) — `@object-ui/components` adds `NeutralIconTile`, `NeutralIconTileProps` and `NEUTRAL_ICON_TILE_CLASS`; `@object-ui/layout` adds `NAV_KIND_ICON` and `resolveNavKindIcon`; nothing removed or renamed + Metadata-protocol: none + + The sidebar drew an object entry as its object's colour tile and every other entry as a bare line icon, so one column mixed solid squares and outlines. Now every row is a tile of the same size and corners, and colour still says only which object a row opens: + + - **Object entries, and object entries that open one of its views** (a `viewName`, such as "My deals"): the object's tile, as before. + - **Every other entry** (`dashboard`, `report`, `page`, `url`, `component`, `doc`, `action`): a light grey tile with a dark grey glyph, the entry's own `icon`, else its kind's (`NAV_KIND_ICON`: a dashboard, a column chart, a page, an outward arrow, a grid, a book, a bolt). No kind gets a colour of its own. + - **Recent, Favorites and Starred in the sidebar, and Home's "Recently accessed"**: an object, one of its views or one of its records is that object's tile; a dashboard, page or report is the neutral tile. The emoji these rows drew are gone. + - Group headings and separators are unchanged. The phone's app home lists the same menu, so it follows. +- aad35e6: feat(record-page): the side preview opens 460 wide, puts the record's name first with one labelled action, and lists a child tab one row per record + + Clause-②: yes (widening) — new optional members only: `RecordHeaderBar.preview` and `PageHeaderActionsProps.preview` on `@object-ui/components`, `ObjectGridComponentProps.cardFace` on `@object-ui/plugin-grid`; nothing removed or renamed + Metadata-protocol: none + + The record preview that opens beside a list (and a record page's drawer level) is now a narrow pane: + + - **Width.** It opens 460 px wide (at most 92% of the window). Its left edge drags it from 380 to 900 px. The dragged width is remembered in the browser under one key for every object's preview, not per object. A drawer whose `navigation` authors its width (`navigation.size` other than `auto`, or a `navigation.width`, pixel or percent) does not use that key. The list's preview reads the view's `navigation`, then the object's; a record page's drawer reads only its root record's object's `navigation`. Such a drawer keeps the object's per-object key (`recordOverlayWidthStorageKey`, unchanged), which it shares with that object's calendar, gantt, kanban, tree and grid overlays and a resizable `RecordDetailDrawer`, and opens at the authored width until a width is dragged in that drawer or one of those overlays. For an object that authors no size or width, the console's preview no longer shares a width with that object's calendar, gantt, kanban, tree or grid overlay or its `RecordDetailDrawer`. The width and its key belong to the drawer's root and stay with it: child levels keep the root's width, and in the list a record a lookup chip opens as the root takes the list's width and key (the list object's, not the opened record's). On a record page, a drawer closed and next opened on another object's record opens at that object's width, not the width dragged for the previous one. + - **Header.** The record's name comes first. The row shows at most one labelled action, the page's primary. The host's Edit and every other action go into the `⋯` in their usual order. The primary folds into the `⋯` too while the name would be cut below 16 characters' width. The copy-id icon after the name is gone, and 「Copy record ID」 is in the `⋯` instead. The full name is the name's tooltip. An approval's approve / reject levers and the record page's edit state (Cancel, Save) are drawn as before. A page's own header is unchanged. + - **`@object-ui/components`: every resizable drawer's range.** The range lives in `NavigationOverlay`, so it applies to every drawer opened with a `storageKey`: the calendar, gantt, kanban, tree and grid overlays, a resizable `RecordDetailDrawer`, and the console's preview. The drag range was 360 px to 60% of the window; it is now 380 to 900 px. On a 1920 px window the widest drag drops from 1152 to 900 px. On a 1024 px window a dragged or remembered width can now reach 900 px, where 60% of the window (614 px) capped it before; the drawer still never draws wider than the window less 1rem. A remembered width under 380 px is no longer used: the drawer opens at its host's width. A drawer whose `storageKey` changes while it stays mounted now drops the previous key's width when the new key remembers none, and opens at its host's width. + - **Child tabs.** A child list's tab draws one row per record (its title, one summary line and its status chip), the phone's card rows, instead of a table cut off at the pane's edge. `ObjectGrid` takes a new host prop, `cardFace`, that draws those rows at any window width. +- 1f11c33: feat(console): an app's icon is the same everywhere: an app with no logo and no colour gets a solid colour of its own, and Home drops its gradients + + Clause-②: no + Metadata-protocol: none + + An app that declared neither `branding.logo` nor a hex `branding.primaryColor` was drawn two ways: on one of ten gradients on Home, and on a neutral grey square in the app switcher, its pill, the phone's app list and Studio's package chip. Now every place draws it by one rule: + + - **A declared logo** is drawn, as before. + - **A declared hex `primaryColor`** colours the icon's square, as before. + - **Neither:** the icon is a white glyph on a solid square of a colour picked by the app's `name` from the objects' palette (`OBJECT_COLORS` without `gray`: blue, teal, green, amber, orange, red, pink, purple). The pick is djb2 over the name, kept to a signed 32-bit integer, its absolute value modulo eight, so an app keeps its colour on every load and for every viewer. Nothing is written back, and the app's buttons keep the platform's default primary colour. + + Home's tiles lose their gradients and draw this same square at their 56 px size. The `tile-grid` page block, which draws Home's tile, takes a solid palette colour keyed by its tile's `href` instead of a gradient. The command palette's "Switch app" items draw the app's mark (its logo, or its square) instead of a bare line icon. +- 71e02ff: fix(studio): the CEL condition builder offers membership, not equals, on a list field + + Clause-②: no + Metadata-protocol: none + + On a field that holds a list (a `multiselect`, `checkboxes` or `tags` field, or a `select` / `lookup` / `user` field declared `multiple: true`), Studio's condition builder (hook, validation-rule, action-visibility, page-block and flow entry conditions) offered equals / not equals and the ordering operators. CEL compares the whole list with one value there, so `record.labels == 'frontend'` was false for every record (and `!=` true for every record), and the author got no signal. + + Such a field is now offered what the list toolbar's filter builder offers it: contains, does not contain, is empty and is not empty. Contains writes `S != null && V in S` and does not contain writes `S == null || !(V in S)`, the same spelling a flow edge's condition rows write; both are null-safe. A row moved onto a list field leaves equals for contains, and a row moved off one leaves membership for equals. A stored condition that compares a list field with `==` / `!=` now opens in the expression editor exactly as stored, never rewritten. A single-value field is offered what it was before. + + New locale key: `engine.inspector.condition.op.notContains` in the studio catalogue (en, zh). No props or exports change. +- 865df27: fix(console): the view and page-block filter editor offers a multiple: true field only Contains, Does not contain and the empty checks + + Clause-②: no + Metadata-protocol: none + + A `select`, `lookup` or `user` field declared `multiple: true` holds a list. Studio's filter editor for a view's filter, a page's base filter and tab presets, and a related-list block's filter built its field list without `multiple`, so it offered Equals and Is any of on such a field, and the saved filter was refused by the data door with 400 `INVALID_FILTER` for every reader of that view. Every host that builds the editor's field list now carries the field's declared `multiple` (the generic metadata editor, the list-view and view-variant inspectors, the in-app view configuration panel and the page block inspector), and the shared filter builder offers such a field Contains, Does not contain, Is empty and Is not empty, the operators the other condition editors already give it. + + A single-value field of the same types keeps its operators. A stored Equals rule on a list-valued field still opens as its row, so it can be changed. No metadata key, value or default changes. +- d12ac84: feat(comments): a member resolves and reopens any thread they can read, and deletes their own comments + + Clause-②: yes (widening) — `@objectstack/plugin-audit`'s `AuditPlugin` mounts two new HTTP routes, `PUT /api/v1/comments/:id/resolution` and `DELETE /api/v1/comments/:id`, and the stamp of who resolved a thread now reads a system write's `provenance.attributedUserId`. `@objectstack/core`'s `OwnRowDeleteDoor` adds an optional member, `refuseRemoval(row, engine, context)`, asked after the owner check. `@object-ui/react`'s `DiscussionContextValue` adds the optional `ownCommentDeletesOnly`; `@object-ui/plugin-detail`'s `RecordCommentsData` adds the optional `ownDeletesOnly`, and `RecordCommentThreadProps['comments']` may carry it; `@object-ui/core`'s affordance-to-grant map adds the row `feedCommentDeleteOwn`. Nothing existing is removed or re-typed. + Metadata-protocol: none + + Two server doors carry the maintainer's comment permission rulings past the platform's row floor (`owner_only_writes`, which lets a rank-and-file member update only the rows they created) and past the delete grant no every-member set may hold (ADR-0090 D5). Neither changes the floor, `sys_comment_moderation` or any permission set, and the data API answers exactly what it answered before. + + - **Resolve and reopen: `PUT /api/v1/comments/:id/resolution`** with the body `{ "resolved": true }` or `{ "resolved": false }` and nothing else. Whoever can read the thread and may post a comment on it may, external members included (ruling record 7063285032, option A: anyone who can see the record, the same gate as posting a comment): the door reads the comment as the caller (a comment they cannot read answers `404 RECORD_NOT_FOUND`, as an unknown id does), refuses a caller who reads comments but may not post one (`403 PERMISSION_DENIED`), refuses a reply (`400 VALIDATION_ERROR`) and then writes `is_resolved` alone, attributed to the caller. `resolved_by` names the caller. It answers `200` with `{ id, is_resolved, resolved_by, resolved_at }`. Any other query parameter or body is `400 VALIDATION_ERROR`; a signed-out request is `401`. + - **Delete your own comment: `DELETE /api/v1/comments/:id`.** It removes a comment the caller wrote (`author_id`), with no delete grant needed, on the platform's shared own-row delete door. Another member's comment is `403 PERMISSION_DENIED` and stays, even for a record editor: moderating someone else's comment stays the data API's, behind the delete grant. A comment that has replies stays too, whoever wrote them, `409 DELETE_RESTRICTED`, because removing it would turn each reply into a thread of its own (ruling record 7069889899: no one deletes or rewrites someone else's comment); its author may still edit its text. It answers `200` with `{ id, deleted: true }`. + - **Unchanged:** comment text stays its author's alone; a member's data-API update of a colleague's comment, `is_resolved` included, and a member's data-API delete are still `403`; administrators keep the data API for resolving, editing and deleting anyone's comment. + + The desktop comment panel follows the doors: + + - ✓ is on every thread, the viewer's and anyone else's, for a viewer holding the `sys_comment` create grant, and writes through the resolution door. It no longer asks the explain engine; that probe now gates only Edit on someone else's comment. + - A viewer without the `sys_comment` delete grant (an ordinary member) is offered Delete on their own comments that have no reply, and it goes through the own-comment delete door; a viewer with the grant deletes through the data API as before, others' comments included where they may edit the record. + + Corrections to two earlier notes of this release, which stay as written: + + - A rank-and-file member now resolves and reopens a colleague's thread through the resolution door; this replaces the #36071 note's line "This is the one widening: an update that changes nothing but `is_resolved` is admitted without the author-or-record-editor rule", because the platform's row floor (`owner_only_writes`) runs first, so through the data API such a member still resolves only the threads they started and an administrator resolves any. + - The desktop comment panel offers ✓ on every thread to a viewer who may post a comment and writes it through the resolution door; this replaces the #36075 note's line "✓ is offered under the `sys_comment` update grant: on a thread the viewer started, and on anyone's only where the explain engine admits …", and its "Unchanged" line's "a deployment without the explain service shows ✓ and Edit on the viewer's own rows only" now holds for Edit alone. +- 5e8e243: feat(console): a footer calculation is a part of the list's draft; a refused save of a package's view says why in the reader's words + + Clause-②: yes (widening) — new keys in every `@object-ui/i18n` locale pack: `console.objectView.personalizedParts.summaries` and `console.objectView.saveRefused.packaged`; nothing removed or renamed + Metadata-protocol: none + + On a Console object list, picking, changing or removing a column's footer calculation (「+ 添加统计」) applies at once and writes nothing. It used to be saved at once: on the reader's own view straight into it, on a shared view as a draft of the view (`PUT /api/v1/meta/view/<name>?mode=draft`), which the server refuses on a view an app package ships. + + - The calculation is a part of the list's draft, like the sort and the filter: **Discard** and **Save** appear, Save's menu names it (「统计」), and Discard takes it off. The draft lives as long as the others: kept on opening a record and coming back, dropped on another view, object or a reload. + - **Save to this view** (on the reader's own view, or on a shared view an admin may edit) and **Save as my view** store it on the columns the saved view keeps. + - **Save to this view** on a shared view is offered only once the Console has read that the view's package takes saves: not while that read is in flight (on a slow start the list draws seconds before it lands) nor for a package it lists read-only. A failed read, or a package the list leaves out, still offers it as before. + - On a view the reader cannot change in place (one an app package ships, or a shared view of a reader who is no admin), the pick goes into the draft too and Save offers **Save as my view** alone. + - The menu is offered on every column the saved view would carry: the columns the list draws and the fields the reader added. + - When the server refuses to save a view an app package ships (`NOT_OVERRIDABLE`), the toast says in the reader's language that the view comes with an app package, cannot be changed directly and can be saved as the reader's own view. The server's text goes to the console only. Every other refusal is said as before. +- 4c93f88: fix(console): the view and page-block filter editor offers a picklist field's options instead of a free-text value box + + Clause-②: no + Metadata-protocol: none + + Studio's filter editor for a view variant's filter, a page's base filter and tab presets, and a related-list block's filter built its field list without each field's declared `options`, so on a `select` (picklist) field the value was a plain text box. An author typed the label they see, the saved filter held a value no record stores, and the view or block showed no rows with no error. Every host that builds the editor's field list now carries the field's declared choices (the generic metadata editor, the view-variant inspector, the in-app view configuration panel and the page block inspector, as the list-view inspector already did), so a picklist field's value is a picker over its options and stores the option's value. + + A field with no declared options keeps its text box. Stored filters are not rewritten. No metadata key, value or default changes. +- 441a0d7: fix(studio): the CEL editor refuses `==` / `!=` on a list field while you type, not first on save + + Clause-②: no + Metadata-protocol: none + + The object designer's CEL editors (a field's formula and stored expression, its visible / read-only / required conditions, and the condition builder's CEL box) now hand the as-you-type check each field's type and `multiple`. Writing `record.labels == 'a'` against a multi-select, tags or checkboxes field, or a select, lookup or user field declared `multiple: true`, shows the `list-equality` refusal and its `in` rewrite under the editor and holds Save, the same verdict the object draft check and publish already gave. A scalar field is judged as before. `CelPredicateField` takes a new optional `fieldDefs` prop; a mount that omits it lints exactly as before. +- 8466fca: feat(record-page): the side preview drops the comments icon and the comment panel; a record's comments are on its full page + + Clause-②: no + Metadata-protocol: none + + A record opened in the side preview (the drawer or pane a list opens, and the drawer a record page opens over itself) no longer shows the comments icon in its header, and no comment panel can be opened anywhere in it. Its 动态 tab keeps the system entries alone, with no comment and no comment box, so the preview shows no comments at all. To read or write a comment, open the record as a full page from the preview header; the full page's comments icon, panel and comment box are unchanged, and so is the phone's comment page. + + This replaces the lines of the objectstack#36075 record-comment-panel entry that put the icon and the panel in the record drawer: there is no drawer placement any more (no cover of the drawer body under 760 px, no split above it), and the browser keeps one open-or-closed choice, the record page's. No props, exports or metadata change. + + The `@object-ui/plugin-detail` README and the docs of `RecordCommentsInPanelContext` now describe the preview case; no code changes there. +- 6a73185: feat(console): the left sidebar resizes by its right edge, the collapsed sidebar floats as a card, and a menu opened from the float no longer leaves it folded with the menu cut off + + Clause-②: yes (widening) — one new `@object-ui/i18n` key (`sidebar.resize`) in all 11 locales; no spec, schema, server or published export change + Metadata-protocol: none + + - **Resize** (`@object-ui/app-shell`): from 768 px up, the docked sidebar's right edge drags it between 200 and 350 px; a double-click comes back to 256; ← → move it 16 px, Home and End to either end. The width is kept in this browser (`console.sidebar.width`) and the menu floating over a collapsed sidebar takes it too. A phone's drawer keeps its own width. + - **The float is a card:** 8 px off the window's left, top and bottom edges, with rounded corners, a border and a shadow; the page under it is not dimmed or moved. Resting the pointer at the window's left edge still floats it and moving away still folds it. + - **A menu opened from the float keeps it out:** pressing the app name (or the account, or an entry's `…`) while the float was still sliding in under the pointer opened the menu and folded the float a moment later, leaving the menu cut off at the window's left edge. A press in the float now stops the fold's clock, and the fold does not happen while a menu or dialog is open, or while the pointer is on the float. +- a57efde: fix(console): favorites, recent items, the last app and the pinned list view are kept per organization in the browser + + Clause-②: no + Metadata-protocol: none + + A person's favorites, recent items, last app and flow palette recents are saved on the server per organization, but the console's browser copy of them was kept per user only. A person in two organizations who switched from A to B saw A's favorites, recent items and last app on B's first paint, and the nav pins set in A were merged into B's saved favorites. The browser copy is now kept per user and organization, under the organization the console stamps on its requests, so B paints and saves only B's own lists. + + The pinned list view of an object (the 📌 in the list title's view switcher) was one browser slot per object, so a view pinned in A, which may be a personal view that exists only in A, was read in B and pinned over by B. It is now kept per organization as well: a pin set in A is still there on return to A, and B holds its own. The other per-browser list preferences (column widths, row height, tab order) are unchanged. + + Nothing a person has is lost: the first organization that reads its copy takes over the copy kept before this change (once, after which the old copy is removed), so a person in a single organization keeps their favorites, recents, last app and pins as they were. A deployment without organizations keeps the per-user copy it always had. +- bb89b2d: feat(app-shell): the record's favorite star sits beside its name, and the header's `⋯` no longer holds "Add to favorites" + + Clause-②: no + Metadata-protocol: none + + The record page draws its favorite star right of the record's name, always visible: hollow until the record is a favorite, filled once it is, one press to toggle with no confirm. The full page, a drawer or split-pane preview, and a phone's record page all draw it, from the same favorite the sidebar's Favorites section reads, so nothing about the stored favorites or that section changes. The header's `⋯` menu drops its "Add to favorites" / "Remove from favorites" entry, so the page keeps one favorites control. On a phone the star keeps a 44px tap target, as the copy-id button beside it does. A print page, which draws no record header and so no star, keeps the entry in its chrome row's `⋯`. The `showStar` refusal in `@objectstack/spec` (the retired `page:header` key) now says what stays true: the console draws the record's star from the host's favorites toggle, never from metadata, so the key switched nothing; it no longer names the `⋯` menu as the favorites entry. +- 6e643cc: feat(plugin-dashboard): a dashboard or report drill opens a centred dialog over the standard list, and a report's chart marks drill + + Clause-②: yes (widening) — additive members only, among them the new `PageRegionPostureReset` export of `@object-ui/components`; nothing is removed or renamed + Metadata-protocol: none + + Clicking a number on a dashboard (a chart mark, a metric tile, a table cell) or on a dataset report used to open a full-height side drawer whose table listed every field of the object, with no sort, no filter and no word on which conditions selected the records; a row stacked a second record panel on top. The drill now opens a dialog about 70% wide and 65% tall that dims and blurs nothing behind it, and its body is the standard list the object list page draws (`list-view`): the same row height, column-header sort, filter chips, added columns, record count and column calculations. The drill's conditions (the clicked bucket, the widget's filter, the measure's scope) are the list's own chips and can be changed or removed; a condition no chip can say (a relationship path, an `$or`) still filters the list. The default columns are the record's name, the grouped fields and the measured fields. Nothing done in the dialog is saved, and it writes nothing. A record's name opens the record's full page, whose 「N of M」 stepper walks the drill's rows and whose way back is the dashboard or report; no second panel is stacked. 「Open in list」 is unchanged. On a phone the drill keeps the side drawer, with the same list. + + A dataset report's chart marks now drill too: a bar opens the same records as the summary line it stands for. + + Additive members: `DrillNavigationValue.openRecord` and the `DrillRecordOrigin` type (`@object-ui/react`), `DrillDownDrawerProps.defaultColumns` (`@object-ui/plugin-dashboard`), `DatasetDrillArgs.fields` (`@object-ui/plugin-report`), `PageRegionPostureReset` (`@object-ui/components`). A renderer without `@object-ui/plugin-list` registered lists the drilled records in the dashboard's data table. A host that gives no `openRecord` (a page block's metric or pivot) opens the drilled record in a dialog, from either body. + + Inside a page the drill draws the same standard list: the page region's posture (the compact or capped list a page block draws) is cleared for the drill's dialog by the new `PageRegionPostureReset` (`@object-ui/components`), so a page block's metric or pivot drill shows its chips, its record count and its pager, and no 「View all」 link to a list without the drill's condition. A drill whose filter names no condition any read can carry (a string, a number) lists nothing and says so, instead of listing every record. +- e5213e7: feat(console): the ⌘K palette's "Current page" group offers the list's "Add view" and the record's "Edit" + + Clause-②: no + Metadata-protocol: none + + Opened with nothing typed, the command palette's "Current page" group now carries the page's own main entry beside its favorites row: + + - **On an object's list**: "Add view", listed exactly where the view switcher offers "Add view". Enter opens the switcher on its in-place create card, or, for a host that offers only the Create View dialog, opens that dialog. + - **On a record page**: "Edit", the header's own Edit. It runs what the header button runs (the record form, or the page's edit state), and it is off exactly when the button is off: a `userActions.edit.disabledWhen` that holds, the state lock, or a live inline draft the header greys Edit for, with the header's reason under it. A record an approval locks, a record already in its edit state and a record shown in a drawer or pane over a list offer no Edit row. + + The footer names what Enter does ("Add view ↵", "Edit ↵"), in the controls' own words. Nothing is recomputed in the palette: the list and the record page publish the command beside the control while they draw it. No locale keys, props or package exports change. +- 96b7975: feat(console): the empty ⌘K palette leads with a "Current page" group: the page's favorites entry + + Clause-②: yes (widening) — one new published language-pack key, in all eleven packs: console.commandPalette.currentPage + Metadata-protocol: none + + Opened with nothing typed, the command palette inside an app now starts with a "Current page" group, above the recently viewed records, when the page behind it is an object's list or a record page: + + - **On an object's list** (`/apps/APP/OBJECT`, or one of its views): "Add to favorites" (or "Remove from favorites"), the list's own favorites entry from its ⋮ More menu. It pins the app's navigation entry for the list where the app has one, and keeps an object favorite otherwise, exactly as that menu does. + - **On a record page**: the record's star — the same `record` favorite the star beside the record's name toggles, named by the title the record was last visited under. + + The row is first, so Enter on the empty palette now runs it; the footer says so ("Add to favorites ↵" / "Remove from favorites ↵", the menu's own words). Typing takes the group away. On every other page (an app's landing, a dashboard, the search page, a create form) the palette is unchanged. Which records the palette searches and how it ranks them, the full search page, and the phone's search are unchanged. + + New locale key, in every pack: `console.commandPalette.currentPage`. No props or package exports change. +- e8b494a: feat(console): the ⌘K palette previews the record it is on, creates a record from what you typed, finds "New OBJECT", and says what Enter does + + Clause-②: yes (widening) — eight new published language-pack keys, in all eleven packs: console.commandPalette.create, createAs, previewEmpty, enterOpenRecord, enterCreate, enterSwitchApp, enterApplyTheme, enterOpen + Metadata-protocol: none + + The command palette inside an app gains four things; which records it searches, and how it ranks them, are unchanged. + + - **Record preview.** While the query finds records, the palette widens and shows the selected hit on the right, read-only: the object's label, the record's title and the object's declared key fields (`highlightFields`), drawn the way the record pointer card draws a record (field-level security applied; an object that declares no key fields shows its title alone). Arrow keys move the preview with the selection; the record is read once the selection rests for 150 ms. A palette narrower than 45rem (720px) shows the results alone. + - **Create "words" as OBJECT.** Once something is typed, the end of the list offers to create a record of up to three of the app's objects, the object of the page the palette was opened on first, with the typed words in the object's title field: Enter opens that object's create page (`/apps/APP/OBJECT/new`) with the field filled. An object is offered only where its list offers New (the same verdict: CRUD bucket, `userActions.create`, effective API operations, the create grant, and the create action's `visibleWhen` / `disabledWhen`), and only when its title field is a text field the member may write on create. + - **New OBJECT.** Typing "new", "create" or an object's name finds a "New OBJECT" entry for each such object, which opens its empty create page. + - **Enter hint.** A footer names what Enter does to the selected entry: Open record, Create, Switch app, Apply theme or Open. + + New locale keys, in every pack: `console.commandPalette.create`, `createAs`, `previewEmpty`, `enterOpenRecord`, `enterCreate`, `enterSwitchApp`, `enterApplyTheme`, `enterOpen`. No props or package exports change. +- 7e89bc6: feat(studio): the field inspector, the field designer and the object's settings write Field change values instead of Track history + + Clause-②: yes (widening) + Metadata-protocol: none + + Old → new values show on the record activity by default, and an object or a single field can turn them off. The Studio now writes that setting where an author looks for it: + + - **Field inspector.** The "Track history" box is gone. In its place, "Field change values" offers Default, On and Off. Default leaves the field's `fieldHistory` unset and names what it means for this field on this object: "Default (On)" for most types, "Default (Off)" for a media, JSON or credential field, and "Default (Off)" for every field when the object turns values off, with a note saying so. On and Off write `fieldHistory: true` and `false`; choosing Default after Off removes the key. A stored `trackHistory` is kept as it is and never written. + - **Field designer** (`@object-ui/plugin-designer`). The drawer's "Track History" switch, which wrote `trackHistory: false` on every save, is replaced by "Field Change Values" with the same three choices: Default (named "Default (On)" or "Default (Off)" for the type in the drawer, and it follows a type change), On, Off. A stored `trackHistory` is carried through an edit and never written. `DesignerFieldDefinition` (`@object-ui/types`, with its zod mirror) gains an optional `fieldHistory`, and both designer save paths (`MetadataFieldsPage`, `MetadataService.saveFields`) carry it; Default sends no key, which removes a stored one. + - **Object settings.** The Features card gains "Field change values" (`enable.fieldHistory`). Unticking it writes `false`; ticking it again removes the key rather than writing `true`, since unset already means on. Sibling `enable` keys are kept. + + The inspector and the metadata form's Field History control share one module for the three choices, what each writes and their wording; the field designer cannot import it (the app shell depends on the designer) and shares the rule itself, `resolveFieldHistory` from `@objectstack/spec/data`. New Studio strings `designer.field.fieldHistory`, `designer.field.fieldHistoryObjectOff`, `engine.studio.settings.capFieldHistory` and `engine.studio.settings.capFieldHistoryDesc` (en, zh); `designer.field.trackHistory` is removed with the box it labelled. In the language packs, `appDesigner.fieldDesigner.trackHistory` is replaced by `appDesigner.fieldDesigner.fieldHistory`, `fieldHistoryDefault`, `fieldHistoryOn` and `fieldHistoryOff`, in all eleven locales. +- e9da898: fix(console): the bare data page's side drawer draws ⤢ 「Open as full page」 + + Clause-②: no + Metadata-protocol: none + + On the bare data page (`/apps/APP/OBJECT/data`), the side drawer a record opens in (from the name cell's 「Open in side panel」 icon, or a `?recordId=` link) now draws the same ⤢ 「Open as full page」 button in its top bar that the object list's drawer draws. It closes the drawer and opens the record's full page with the same origin a click on the record's name carries: the data page's URL with its conditions, its name, the rows it shows and the count it matched. The full page's ✕ returns to the data page with its conditions and no drawer. +- a10422d: fix(console): a stage move refused with a 409 in a record drawer re-reads the record, so the next Move sends the stored version + + Clause-②: yes (widening) — `RecordContextValue` (and so `RecordContextProviderProps`) gains one optional member, `reread`; nothing is removed or renamed, and `refresh` keeps its type + Metadata-protocol: none + + The record header's stage menu also draws in a record drawer (the list's drawer, and the drawer a record page opens over itself). Its save path answered a `409 CONCURRENT_UPDATE` by calling the record context's `refresh`, which the record view leaves out in a drawer so the header draws no Refresh entry there. In a drawer the record was therefore never read again: the dialog kept the old row, and a second Move sent the same stale version and was refused again. + + `RecordContextValue` now keeps the two apart. `refresh` stays the host's opt-in to the header's Refresh entry and is still left out in a drawer. The new `reread` reads the record again with no affordance of its own; the record view provides it on the page and in a drawer alike, and the stage menu and `record:path`'s stage press call it after a move and after a 409. On the record page nothing changes: `reread` publishes the same `'*'` notice the Refresh entry does. + + A host that mounts `RecordContextProvider` with only `refresh` keeps its behaviour: the stage surfaces call `reread` when the host provides it and `refresh` otherwise. Nothing to migrate; a host that wants the re-read without the Refresh entry passes `reread` alone. +- b2da19d: fix(app-shell): ⌘B / Ctrl+B does what the sidebar's expand / collapse button does + + Clause-②: no + Metadata-protocol: none + + From 768 px up, ⌘B / Ctrl+B is now a press on the console sidebar's expand / collapse button, on a window of any width. With the sidebar beside the page it collapses it; with the sidebar collapsed it puts it back beside the page; either way the browser remembers the choice for that side of 1280 px, as it does for the button, and a reload keeps it. On a window narrower than 1280 px, where the sidebar starts collapsed, ⌘B puts it beside the page and keeps it there. While the menu floats over the page, ⌘B puts it beside the page where it is. The key moves no focus, as a press on the button moves none. + + Before, ⌘B floated the menu over the page without changing the collapsed state. The temporary float now comes only from the window's left edge: rest the pointer there, or press there. Unchanged: Esc, a chosen entry and a press outside fold the float; the phone's drawer, which ⌘B still opens and closes; the 1280 px threshold; the sidebar's width. The button's tooltip keeps naming ⌘B, which now does what it says. +- ff60149: feat(console): 「Edit app」 turns on a design mode in the running app instead of opening Studio + + Clause-②: yes (widening) + Metadata-protocol: none + + An administrator who may design the app (a workspace admin holding `manage_metadata`, on a writable package: the gate 「Edit app」 always had) now presses 「Edit app」 in the page header to turn on the app's design mode, in place. A bar across the top of the window says 「Design mode」 and offers 「Cancel」 and 「Save」, and nothing else. The mode stays on from page to page of the app and goes off when the app changes; it is never on a phone. While it is on, the sidebar shows the app's own menu without the person's Favorites. + + The mode is the extension point the next design-mode surfaces (menu editing, the page header's pinned actions) stage their changes through: 「Save」 writes every staged change and leaves the mode, 「Cancel」 drops them all. 「Save」 is off while nothing is staged. While a change is staged, closing or reloading the tab, a link out of the app and the app switcher ask first; a link to another page of the app does not. This release stages nothing yet. + + A read-only package's app keeps its 「Open APP in Studio」 entry unchanged. New `@object-ui/i18n` keys: `designMode.title`, `designMode.leaveUnsaved`, `designMode.saveFailed`. +- ee651ce: feat(console): the app's menu is edited in the design mode, and an installed app enters it too + + Clause-②: yes (widening) + Metadata-protocol: none + + While the design mode is on, the sidebar draws the app's menu with its editor. Each group, and the menu's top level, ends with 「Add menu item」: it holds a dashed row 「Choose a menu item…」 where the entry will go and opens a picker that searches the app's existing objects, views, dashboards, reports and pages (and takes a link), offering only what is not in the menu yet. Each entry has a 「⋮」 menu (move up, move down, move to a group, add an item before or after it, rename and icon, remove from the menu) and can be dragged to another place or group. Removing takes the entry off the menu only; the picker offers it again. + + The edits are staged with the mode: 「Save」 writes the app with its new menu where Studio's menu editing writes it (the app's package when it is writable, else its customization package, declaring the override at the package's version) and publishes it, so every member sees it; 「Cancel」 drops them. A draft of the app already pending (in Studio) is not overwritten: the save says so and keeps the mode on. The save is composed from the app as stored, never as served: the menu a member is shown is translated into their language and pruned of what they may not open, so the edits are replayed by entry id on the stored menu, and every entry they did not touch is written back as it was. Renaming an entry is offered in the deployment's default language only, and only while the entry shows its stored name; in any other language the name field is closed and says that menu names are changed in the app's source language. Adding, moving and the icon stay open in every language. An entry another package puts into the menu (its `navigationContributions`) is not in the app's stored menu, so its 「⋮」 says it is changed in that package, and it is not moved, renamed or removed here. Such entries are added after the app's own entries when the app is served, so, once the editor has read the app's stored menu, an entry added or moved to the end of a group the app itself holds is drawn before them, where everyone will see it. A group another package adds, and the moment before that read lands, are not handled this way yet. + + 「Edit app」 now enters the mode on an installed (read-only) app as well, where the customization door takes the caller; where it is walled off (a walled deployment, not the platform operator) the eye into Studio stays. An app whose menu is split in areas keeps its menu unedited in the mode. New `@object-ui/i18n` keys under `designMode.menu`. +- dad9b55: feat(console): a new dashboard is created from the design mode's 「Add menu item」 and opens for editing + + Clause-②: yes (widening) + Metadata-protocol: none + + In the design mode's 「Add menu item」 picker, the 「Dashboards」 list now starts with 「New dashboard…」, above the existing dashboards that are not in the menu yet. It asks for a name only. 「Create」 creates the dashboard, empty, in the package the menu is saved to (the app's package when it is writable, else its customization package), publishes it, puts its entry in the place the editor held for it, and saves the menu with every other change staged in the mode; the mode is then left and the new dashboard opens in its page's edit state. A dashboard with no cards yet now says so on its page (「No cards yet」) instead of drawing a blank canvas, so members see an empty dashboard, not an error. 「Cancel」 writes nothing and leaves nothing in the menu. Where the menu cannot be saved (the app's package is not listed, an installed app states no version, or its customization package cannot be had or written) nothing is created. When the menu save is refused after the dashboard was created, the dashboard is removed again, the mode stays on and the reason is said. The machine name is generated from the name (a Chinese name through its pinyin), unused by any dashboard. A report cannot be created this way yet: a report needs a dataset and measures before it can be published. New `@object-ui/i18n` keys under `designMode.menu` and `dashboard.noCards`. +- d076975: feat(console): a new report is built from the design mode's 「Add menu item」 and lands in the place held for it + + Clause-②: yes (widening) — new `@object-ui/i18n` keys (`designMode.menu.newReport`, `designMode.menu.newReportLeft`, `report.builder.addsToMenu`) in all 11 locales; no package export, spec or schema change + Metadata-protocol: none + + In the design mode's 「Add menu item」 picker, the 「Reports」 list now starts with 「New report…」. A report needs a data source and a measure before it can be published, so it is not created from a name: the place stays held in the menu (「New report…」) and the report builder opens at the app's `reports/new`, saying that saving adds the report to the menu. The builder's Save creates and publishes the report in the package the menu is saved to (the app's package when it is writable, else its customization package), puts its entry in the held place, and saves the menu with every other change staged in the mode; the mode is then left and the report's page opens. When the menu save is refused the report is removed again, the mode and the held place stay, and the builder stays open with the reason. The builder's Close, or leaving the builder any other way, drops the held place and writes nothing. Opened outside the design mode, `reports/new` saves on its own as before. +- 70d07fd: feat: an object arranges its actions per scope (`actionLayout`: pinned buttons and the 「More」 order), and the design mode sets it + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: follow-up #36630 + + A page header draws at most three of its actions as buttons and puts the rest in its 「More」 menu. An object now arranges them itself with the new optional key `actionLayout` on `ObjectSchema` and `ObjectExtensionSchema`: `{ list?: Arm, record?: Arm }`, where `Arm = { pinned: string[], more?: string[] }`. `pinned` names the buttons in the order drawn, at most three (`[]` pins none); `more` orders the 「More」 menu; an action the scope places that neither part names goes to the end of 「More」 in its default order. A pinned action that is hidden leaves its button out, and no other action takes its place. + + - `list` arranges the actions placed at `list_toolbar` and the list page's built-ins `$import` and `$export`. A built-in is only ever pinned: one named in `more` is refused with its reason, since not pinned the list page draws it in its own Import / Export menu. + - `record` arranges the actions placed at `record_header` or `record_more`. It is a scope, not a page: the record page header, the side preview and a phone's bottom action bar all read it. A `page:header` that authors its own `actions` list keeps that list. + - An arm left out (or the key left out) draws that scope exactly as before. + + What each package gains: + + - `@objectstack/spec`: the key and its shape refusals at every door (more than three pinned, a name given twice in one part or in both, a malformed name, a built-in the scope does not have, a built-in in `more`, since a built-in is only ever pinned), each with its reason. New exports `OBJECT_ACTION_LAYOUT_PINNED_LIMIT`, `OBJECT_ACTION_LAYOUT_SCOPES`, `OBJECT_ACTION_LAYOUT_BUILTINS` and the types `ObjectActionLayoutScope`, `ObjectActionLayout`, `ObjectActionLayoutArm`. The object form offers it under Advanced, one JSON row per arm. + - `@objectstack/objectql`: `actionLayout` joins `fieldGroups` and `relatedLists` as a key only the base's paired `.custom` package writes on an `object_extension` (ADR-0146 D10). It is applied last, after every other layer, arm by arm: each arm it writes replaces the served arm for that scope whole, and an arm it leaves out stays. A manifest's `objectExtensions` entry now carries the key to the fold. + - `@objectstack/metadata-protocol`: the one judge refuses `actionLayout` from any other package, naming the action's own `locations` and `order` as the way to place an action the package brings. Each door says it its own way: publish, restore and draft promotion of an `object_extension` answer `VALIDATION_ERROR` / 400; marketplace install refuses the package body with `VALIDATION_ERROR` / 422; `os validate` and `os build` exit non-zero and print the row; the registry fold skips the key and leaves a note. + - `@objectstack/lint`: `validateObjectActionLayout` (`object-action-layout-unknown`, `object-action-layout-not-placed`, at `error`) refuses in `os validate`, `os build` and `os lint` a name, in either part, that is no action of the object or is not placed in the scope its arm arranges. + - `@object-ui/types`: `arrangedHeaderActions(actions, arm, scope)`, the one reader both record headers and the list header apply, and `readActionLayoutArm`. + - The console: both record headers (the default page's and an authored `page:header` with `placedActions: true`) and the list header draw the arrangement. In the design mode, 「Header buttons」 at the end of the page header lists the scope's actions under 「Pinned to header」 and 「Other」 (the 「More」 menu), each dragged into order; a dot moves an action between them, a fourth pin is refused with a toast, the header shows the change at once, and 「Save」 writes only the arms that changed: into the object's own package when it is writable, else into the installed object's customization package as an `object_extension`, through the one writer of an installed object's arrangement (`saveObjectExtensionArrangement`, whose patch type now takes the object-shaped `actionLayout`), which refuses a customization package the server does not list writable. A name the scope no longer offers is listed in the panel as left out. A name the header cannot draw is refused at save with its reason. New `@object-ui/i18n` keys under `designMode.pins`. +- 8a741ab: feat(console): a dashboard is edited on its own page by the people who may design its package, and every card marks the page filters it does not follow + + Clause-②: yes (widening) — one new exported function (`dashboardFiltersNotApplied` in `@object-ui/core`), two new optional `DashboardRenderer` props (`onWidgetResize`, `onAddFilter`), and new `@object-ui/i18n` keys (`dashboard.inPageEdit.*`, `dashboard.filters.notApplied`, `dashboard.filters.addFilter`); nothing is removed or renamed + Metadata-protocol: none + + A dashboard page draws an **Edit** button for a workspace admin who may author metadata, on a package Studio lists (the gate of the app's Studio entries). Edit opens the dashboard as stored (never the translated copy the page shows) in an edit state: the header says **Editing**, with **Add card**, **Discard** and **Save**; every card draws a dashed outline and can be dragged to move it, resized from its corner by whole grid tracks (or with the arrow keys on the corner handle) and clicked to select it. The panel at the right is Studio's own dashboard panels, as they stand: a selected card's (its data, its "follow page filters" switches, Remove) and otherwise the dashboard's (label, cards, filters, layout). The filter bar's **Add filter** opens the panel's Filters section. Add card appends a card at the end and selects it. + + Save writes where Studio's Customize would and publishes that one item in the same act, so everyone sees the change at once without the app's package being published: into the owning package when it is writable, else into the app's customization package (`<base>.custom`, declaring `overrides: { package, basedOn }`), so an installed app's dashboard is edited too. Opening the edit state writes nothing: the pair is asked of the ensure door, which creates it on first use, at Save only. As with Studio's Customize, an installed app's dashboard is not opened where that door is walled for the caller or the package list gives no installed version to declare the override at. A dashboard with a draft already pending there (a Studio edit not yet published) is not opened for editing, and a save over one writes nothing: that draft is never published on its saver's behalf. Discard drops every change and writes nothing. + + Every card, in every mode, carries a small mark naming the page filters that do not reach it ("Not filtered by Region"), asked of the same binding its query is built from (`dashboardFiltersNotApplied` over `resolveBoundField`): a filter the card opts out of, or one whose `targetWidgets` leaves it out (an explicit string binding wins over `targetWidgets`). A card every filter reaches carries none. +- 60e79ed: feat(app-shell): the report and dashboard-widget panels speak business wording, and opening the report editor keeps the page in the session's language + + Clause-②: yes (widening) — the report and widget panels accept an edit of a translated name or title in the session's language, stored as the inline locale map `{ default: SOURCE, LANG: EDIT }` the spec's `I18nLabel` already allows; nothing is removed or renamed + Metadata-protocol: semantic — `translateReport` and `translateDashboard` now treat a report `label`/`description` or a widget `title` as changed when its inline locale-map entry for the requested locale (the entry the panel writes: exact tag, then the locale's own script, else base tag or a sibling region; never `default`) differs from the packaged base's own, so the base's translation no longer replaces it; a translation the paired `.custom` package ships still answers first (ruling record 6631250894), and with none the entry is served; dataset members (`translateDataset`, ADR-0149) are unchanged + + The report editor beside a report (runtime 「编辑」 and Studio) and the dashboard widget property bar (Studio, and the dashboard page's edit state) now name things the way a business reader does: + + - Fields, measures and data sources show their labels in the current language; the machine name is on hover only (`title`), never printed. A measure reads `LABEL · AGGREGATE` with the aggregate in words (「金额 · 合计」, "Amount · Sum"). + - 「行(维度)」「维度」 read 「分组」, 「值(度量)」 reads 「指标」, 「数据集」 reads 「数据来源」 (its label alone, no `(name)` and no description), and the filter-binding section reads 「跟着页面顶部的筛选变」 with each filter by its name (「时间」 for the date range, the dimension's label for a filter with none). + - The chart-type list is Chinese names with their icons (柱状图, 折线图, …), not `bar`. + - The line under the data source is plain words: 「报表从这里取数;每个人只能看到自己有权限的记录。」 — no 「受治理」 or 「RLS」. + - The report form rows below the curated fields (section headings and hints in zh-CN) use the same wording. + + The report's name box and a widget's title box show the served (current-language) text while it is untouched, and an edit lands in the session language only: a plain-string source shown translated becomes `{ default: SOURCE, LANG: EDIT }`, so every other language reads exactly what it read before. For a report or dashboard installed from a package (one with a packaged base), the server serves that entry ahead of the package's translation (a translation the paired customization package ships still comes first), so the edit is what the page shows after save. A report with no packaged base keeps the bundle first: where the bundle has an entry for that language, the stored edit does not show. + + Fixed: opening the report editor no longer turns the page heading and subtitle from the served 「各阶段商机」 to the English source. The page draws the served text for every translated key the edit has not touched. + + This supersedes objectui#11161's `LABEL (name)` and objectui#12303's trailing machine name on these two panels only; other dataset pickers are unchanged. +- 3cf6a44: feat(console): the report builder — one page to build a new report or edit an existing one, with the report drawn live on the left and five settings on the right + + Clause-②: yes (widening) — new public exports from `@object-ui/plugin-report` (`ReportBuilder` and its model types), a new optional `foldTableUnderChart` prop on `DatasetReportRenderer`, and new `@object-ui/i18n` keys (`report.builder.*`, `report.computedValues`) in all 11 locales; no spec or schema change + Metadata-protocol: none + + - **The builder** (`ReportBuilder`, `@object-ui/plugin-report`): the report previewed on the left; report type, data source, measure, grouping and chart on the right. Every pick rewrites the report and the preview draws it again; there is no Generate button. Picking a data source draws a single number at once (the dataset's count measure, no grouping). While a required piece is missing, the preview says what it is where the chart would be (「Choose a data source」, 「Choose a field to group by」) and that setting's picker opens by itself. A second grouping layer splits a bar or line chart; the chart's own switches are Show values and a target line. Grouping by a date adds the report's period chip. The report's table folds under the chart as 「Computed values」. + - **The doors** (`@object-ui/app-shell`): the report page's 「Edit」 opens the builder for a dataset-bound report (a joined report, a pre-dataset report, and a dataset report with a cross-tab, a saved filter or several values keep the inspector panel), and the app's `reports/new` address opens it on a new report, created under a name no served report holds. Admin only. + - **Save is seen by everyone at once:** the report is written and published in the same press, for the builder and the inspector panel alike. Over any pending draft nothing is written and the builder says so; the draft bar above the preview publishes or discards it. +- c13af73: fix(console): an action refused before it reaches its flow shows the refusal's userMessage + + Clause-②: no + Metadata-protocol: none + + When the action route refuses a click before it hands it to the action's flow — the subject record was deleted or became unreadable after the page loaded (`404 RECORD_NOT_FOUND`), or the subject is denied or locked — the red toast now shows the envelope's producer-marked `userMessage` (the translated line) and falls back to the developer `message` only when the envelope carries none. The same rule already held when the handler threw. + + It covers every failure arm the flow reader has outside a failed run: the action door and the trigger route of a `type: 'flow'` launch, a resume that finds no run, and any other refused or transport answer. A `type: 'api'` action refused at the action door reads it the same way; `type: 'script'` already did. An action's authored `errorMessage` still wins over both. No props or exports change. +- 5fecc22: feat(console): Change Owner's queue picker searches the server, so a queue past the first 200 can be found and picked; a non-grid list says bulk Change Owner is in the grid + + Clause-②: no + Metadata-protocol: none + + The Change Owner dialog's queue target used to read `sys_queue` once, capped at 200 rows, into a plain dropdown with no search, so an organization with more queues could not pick the rest. It now picks the queue the way the person tab picks a person: with the shared lookup picker over `sys_queue`, which reads one page at a time when it is opened and sends the typed term to the server as its search. The picker shows the queue's label and sends its `name`, which is what the Change Owner endpoint's `queue` takes. Nothing the endpoint accepts changes. + + Bulk Change Owner lives in the grid's selection bar, and kanban, calendar, gallery, timeline, gantt, map and tree layouts select no rows. On those layouts, a reader the grid would offer bulk Change Owner to (the object offers the action and the object-level transfer verdict allows it) now sees one muted line above the list: "To change the owner of several records at once, switch to a grid view." The list view's `onBulkChangeOwner` documentation says the same. + + `@object-ui/i18n`: adds `console.changeOwner.gridOnly` to every locale pack and removes the four keys the old queue dropdown read and nothing reads any more: `console.changeOwner.noClient`, `console.changeOwner.queuesLoading`, `console.changeOwner.queuesFailed` and `console.changeOwner.noQueues`. +- f4c2d0b: fix(record-page): an empty field in the synthesized "More details" section is counted and revealed by "Show N empty fields" + + Clause-②: no + Metadata-protocol: none + + On an object's default record page, a field the page moves to its synthesized "More details" section (a long-text field such as `notes`) no longer disappears from read mode when it is empty. Before, a "More details" section whose fields were all empty drew nothing, the field list's closing "Show N empty fields" row left the field out of its count, and pressing it did not draw the field; it appeared only in edit mode. The section now folds its empty rows the way every other group does: the row counts them, and showing empty fields draws them in place under the "More details" heading. + + The default page's derived sections (the untitled primary section, "More details", and the "Other" section of fields no field group claims) now carry `hideEmpty: false`, the value the `record:details` section contract already declares for keeping an all-empty section. A record page Studio seeds from these sections saves the same value. Pages that authors write are unchanged: an authored section that omits `hideEmpty` still disappears when all its fields are empty. +- 047e1dc: fix(console): the bare data page keeps its list's search, sort, grouping and Filter panel when a record is opened and closed, and on a reload + + Clause-②: no + Metadata-protocol: none + + On the bare data page (`/apps/APP/OBJECT/data`) a search, a sort, a grouping or a Filter panel condition was lost as soon as the reader opened a record and came back, or reloaded the page: the page kept only its own URL conditions in its address. It now keeps the list's own state there too, under the same parameters an object's list uses (`uf__search`, `uf__sort`, `uf__group`, `uf__filter`), written with replace so typing a term adds no history entries. The record page's close, a reload and a copied link open the list as the reader left it. + + The page's own URL conditions (`filter[FIELD]`, the removable 「Filtered by」 tags) are unchanged and stay a separate layer: the list applies them and the Filter panel together, and changing one never rewrites the other. "Save as view" still saves only the URL conditions. A Filter panel in the address that names a field the object does not declare, or one the reader cannot read, is refused whole with the same notice an object's list shows. 「Reset」 on a list opened from a record's related list, which already removed every `uf_` parameter from the address, now also opens the list again without them: no search, sort, grouping, Filter panel or quick-filter selection is left applied on screen. +- 9c283a1: feat(console): preview images, PDF, text and CSV in the page from a record's attachments and from a file field + + Clause-②: yes (widening) + Metadata-protocol: none + + A file opens in a dialog in the page instead of leaving it. In a record's attachments, the file's name opens the preview; the download stays in the row's menu. On a file field, a click on the file's link opens the preview; a modified click (new tab, new window) still opens the link as before. + + - **Four views, no new dependency.** Images (PNG, JPEG, GIF, WebP) draw in an image element, and an SVG only ever through an image element, never inlined. A PDF draws in the browser's own viewer in a frame; on a phone it opens in a new tab, which hands it to the system viewer. Plain text draws as text. A CSV draws as a table, read with the same GBK-aware decoder the grid's import wizard uses. + - **Download only.** Word, Excel, PowerPoint, HTML and every other type show "This file type cannot be previewed. Please download it." with a download button. An HTML file is never framed and never drawn as markup. + - **Limits.** Images and PDF up to 20 MB; text and CSV up to 2 MB, showing their first 1000 rows or lines. Past a limit the dialog shows "This file is too large to preview. Please download it." with a download button. + - **Controls.** Previous and next (and the arrow keys) walk a record's attachments; download; open in a new tab. + - **Same door as the download.** The preview reads the same signed link through the same permission check as the download, so a reader the download refuses sees the same refusal in the preview. When the browser cannot read a text or CSV file from the page (a bucket on another origin without the CORS rule the preview needs), the dialog offers the new tab instead. + + New exports from `@object-ui/fields`: `FilePreviewDialog` and its types `FilePreviewDialogProps` and `FilePreviewItem`; `decodeSpreadsheetText` and `parseDelimited`, the delimited-text reader that moved down from `@object-ui/plugin-grid` (which now imports them from `@object-ui/fields`; its own behaviour is unchanged). + + New `@object-ui/i18n` keys in every pack, under `fields.filePreview`: `title`, `previous`, `next`, `download`, `openInNewTab`, `loading`, `tooLarge`, `unsupported`, `denied`, `loadFailed`, `blocked`, `pdfOutside`, `truncatedRows`, `truncatedLines`, `empty`. + + No metadata key, value or default changes. +- c45dd80: feat(setup): Setup → Configuration → Public forms lists every public form of the environment and switches it on or off + + Clause-②: yes (widening) — a new Setup navigation id `nav_public_forms`, a new component id `forms:public-forms`, new language-pack keys (the `publicFormsSetup` block and the nav label) in every shipped locale, and `anonymousFormIntakeWithdrawnIn` newly exported from `@objectstack/spec/ui` (moved from `@objectstack/metadata-core`, which re-exports the same binding) + Metadata-protocol: none + + A system administrator (`manage_platform_settings`, the capability the Setup entry asks) now has one page for the operations side of public forms. It lists every public form of the environment: its name, the object a submission creates a record of, its address, and whether it is on. Per row: switch it on or off, copy its address, or open it in a new tab. A form is designed (created, deleted, its fields and title changed) in Studio, not here. + + - **Which forms are listed.** A form view whose `sharing` opens it to anonymous intake once switched on (`allowAnonymous: true` and a `publicLink`), read by the same rule the anonymous form routes use (`anonymousFormIntakeCandidates`). A switched-off form stays listed and can be switched back on. A form with no public address or no anonymous access is an internal form and is not listed. The list is the effective one (`GET /meta/view`), so an installed app's form switched off in this environment lists as off. + - **Where a switch is saved.** The switch is the form's `sharing.enabled`, saved and published at once. A form of a writable package is saved in that package. A form of an installed (read-only) app is saved as this environment's customization, an override in the app's `.custom` package (ADR-0146), never an edit of the app's own package, so the app upgrades as before. Switching such a form back on removes the override when it held nothing but the switch, so the app's own form is served again; an override that also carries design changes keeps them, with the switch on. + - **A form its installed app ships switched off** (its address kept, `enabled` or `allowAnonymous` set to `false`, or `enabled` omitted, which the stack schema reads as `false`) stays closed whatever the environment saves: the anonymous routes treat the app's own document as a withdrawal that no override re-opens. The page judges this with the routes' own function, `anonymousFormIntakeWithdrawnIn`, now declared in `@objectstack/spec/ui` beside the rest of the intake rule; `@objectstack/metadata-core` re-exports the same binding, so the server's import is unchanged. The page lists such a form as "Off (switched off by its app)" with its switch disabled, also when an override already switches it on, and a switch-on writes nothing and says the app ships it switched off. A form whose app's document cannot be read is shown as status unknown, never as on. + - **After an app upgrade**, switching back on an override taken from an earlier version restores the app's own form when the form is otherwise unchanged. When it is not, the override is kept with the switch on and the page says the form stays on the app's earlier version, which Studio's "Restore package original" undoes. + - A switch over a draft already pending where it would save writes nothing and says so: that draft is its saver's and is never published on their behalf. + - A switch writes the form's metadata, which the server lets only a `manage_metadata` holder do. Without it the page still lists the forms but disables the switches and says why. A refused switch, and a list read that fails, are told in business words, never the server's raw message. + - A switched-off form keeps answering as it does today: `404 FORM_NOT_FOUND` at its address. No route, error code or stored key is added. + + New Setup navigation entry `nav_public_forms` in `group_configuration` (label "Public Forms", in every shipped locale) opening the component `forms:public-forms`; the Setup navigation now carries 35 entries. New locale block `publicFormsSetup` in every console locale. Not shown: when a form last took a submission, since a submission is an ordinary record of the form's object and records no form. +- 48c5484: Clause-②: no + Metadata-protocol: none + + The report authoring form now reads in business terms: data source, grouping, metric. It no longer uses the schema's own vocabulary (dataset, dimension, measure, "render-time", "ANDed"), and its English matches what the Chinese report panel says. Every section description and field hint the report panel draws was reworded. The `dateRange` and `exportOptions` composites now declare their children as form rows (Date Field, Default Period, Allow Custom Range; Formats, Include Headers, File Name), each with its own hint, so the panel no longer shows the schema descriptions for them. The Description row gained its own hint. The joined-block and sort row titles now read Data Source, Group By, Group Columns By, Metrics, Sort Order and Sort By, in the form and in the item schema `title` together. + + Only prose and form layout moved. No key, accepted value or section title changed, and nothing an author can write or validate is different. The platform metadata-form bundles are regenerated, with zh-CN, ja-JP and es-ES translations for the 13 new rows, and the console's zh-CN overlay carries the new rows too. +- b6dc566: fix(console): offer view management only to an administrator who may write views + + Clause-②: no + Metadata-protocol: none + + Manage views, the view settings panel and Create View on a list page, the plugin view's own Create View and view actions, the data page's Save as view, and a saved shared view's rename and save in place were offered to every workspace administrator. Each of them writes `view` metadata, which the server refuses without the `manage_metadata` capability, so an organization administrator who lacks it was offered them and met a refusal on the first save. They now read the answer the Shared choice of a new view already reads (`mayManageViews`): an administrator whose session holds `manage_metadata`. A metadata administrator sees them as before; a reader's own views are unchanged. +- 12ccffe: fix(studio): a view's conditional formatting rule that compares a list field with a single value is refused while typing + + Clause-②: no + Metadata-protocol: none + + A formatting rule such as `record.tags == 'vip'` on a list field (`multiselect`, `checkboxes`, `tags`, or a `select` / `lookup` / `user` declared `multiple: true`) compares a list with a single value, so it never matches any row and the style never shows. The conditional formatting editor accepted it without a word. It now hands the lint the object's field types and `multiple`, as the field inspector's condition editors already do, so the rule is flagged while the author types, with the membership rewrite (`'vip' in record.tags`), and counts as a blocking issue for Save. Both places the editor appears do this: the view inspector in the metadata admin and the list-view panel in Studio. A membership test on the same field, and `==` on a single-value field, stay clean. + + `ConditionalFormattingEditor` takes an optional `fieldDefs` prop (each field's name, `type` and `multiple`); omitted, the lint is what it was before. What the server accepts on save is unchanged. +- 76bff41: fix(plugin-approvals): the decide refusal of a submitter's own approval, and a submitter notice that names several slots, read in the reader's language + + Clause-②: yes (widening) + Metadata-protocol: none + + **Widened door response.** The approvals decide door (`packages/rest/src/approvals-routes.ts`) gains one optional member, `userMessage`, at the top level of its flat `{ code, error }` refusal body. Two rows answer it today: the two `403 FORBIDDEN` decide refusals of a submitter's own approval, the `excludeSubmitter` refusal and the administrator-override self-approve refusal. It is absent whenever no producer marked one, so every other refusal body is unchanged. + + - **The decide refusal.** When the decision door refuses a submitter's own approval (the step sets `excludeSubmitter`, or the administrator override would approve the actor's own request), the thrown error now carries a `userMessage`: the same refusal, with its remedy, in the decider's language (`approvalDecideRefused*` in every approvals message pack). A position is named by the decider's pack label, then its declared label, then its name. The error's `message` is unchanged: it stays English for the developer and the log. With no reader language, `userMessage` is English and names no user id. + - **The REST door.** The approvals routes answer a refusal the service marked with `userMessage` at the top level of their flat `{ code, error }` body, beside `error`, on every mapped row. A refusal with no marking answers exactly as before. + - **The console.** The record page's `type: 'api'` actions (the request's Approve button) read a flat body's top-level `userMessage` as well as the `error.userMessage` of the ADR-0112 envelope, and show it in place of the English `error`. The Approval Center's inline decision toast shows a marked refusal as written, before its generic line. + - **The submitter notice.** A notice for a slate of 2 to 8 slots names each slot inline, one keyed type word and value per slot (`approvalNoApproverHoldingSlots2` to `…Slots8`, derived from each pack's own `approvalNoApproverHolding`, `approvalNoApproverSlot` and `approvalNoApproverSlotSeparator`), so the messaging service renders every slot in the recipient's language at delivery. A slate of more than 8 slots still names its slots in English inside the recipient's sentence. The literal English body is unchanged. +- f3bd5ad: fix(studio): the canvas selection strip names a selected dashboard widget in the session's language + + Clause-②: no + Metadata-protocol: none + + On Studio's dashboard design canvas, the status line above the canvas named the selected widget by its authored source title, so a zh-CN session read 「已选中:Pipeline by Stage」 while the widget's property panel beside it read 阶段管道分布. The strip now names a selected widget by the same text the panel's Title box shows: the served, current-language title while the widget's title in the draft still equals the published one, else the draft's own title. It reads that text through the panel's own rule (`shownLabel` over the served widget titles the Studio already pairs with the published layer), so the two never disagree. + + Other selections are unchanged: a navigation entry already reads its panel's title, the report canvas selects nothing, and a page block keeps the label its panel shows. No props, exports or stored metadata change. +- f26469a: fix(app-shell): the report name box and the dashboard card title box say when readers are served a translation instead of the saved text + + Clause-②: no + Metadata-protocol: none + + The report panel (the report page's Edit panel and Studio) and the dashboard card panel (the dashboard page's edit panel and Studio) write a name or title typed in the session language as that language's entry, `{ default: SOURCE, LANG: EDIT }`. The server does not always serve that entry: with no packaged base (an item built in the environment) a translation the environment keeps for that language answers first, and on an installed item a translation the paired `.custom` package ships answers first (ruling record 6631250894's order, unchanged). The box then showed the translation again after Save, with nothing saying why. + + A note under the box now says so before Save, from the served text paired with the published one: + + - the published name already has its own entry for this language and readers are served another text: the note names that text and says a translation comes ahead of the text saved here, shown before any edit; + - the published name has no entry for this language, readers are served a translation of it, and the box holds an edit: the note names the translation and says readers keep seeing it after Save if it is kept in the environment's own translations or in the customization package. + + Both name where to change it: Studio › All metadata › Translation. Save writes no translation row: the console cannot read which translation row answers. + + New locale keys: `engine.inspector.servedLabel.kept` and `engine.inspector.servedLabel.ifKept` in the studio catalogue (en, zh). No props or exports change. +- 7501d0c: feat(studio): the Field History setting offers Default, On and Off, and Default says what it resolves to + + Clause-②: yes (widening) + Metadata-protocol: none + + The Field History setting on the field form, on each row of the object form's field list, and in the object's capabilities is now a three-way choice instead of a switch. Default leaves the setting unset, so the field (or object) follows the platform, and it names what that means for the row: "Default (On)" for most field types, "Default (Off)" for a media or JSON field unless the field opts in with Track History, and for a credential field always. On and Off write `true` and `false` as before. A setting turned off can now be returned to Default, which removes the key. + + `@objectstack/spec/data` exports `resolveFieldHistory(field, object)` and `FIELD_HISTORY_DEFAULT_OFF_TYPES`: whether a changed field's old → new values show on the activity timeline, and the types that are off by default. The activity writer in `@objectstack/plugin-audit` now asks this predicate instead of its own copy of the type list, so the default the form shows and what the writer keeps cannot disagree. Behaviour of the writer is unchanged. +- 2924732: feat(console): the design mode is entered from the app-name menu; the page header no longer carries 「Edit app」 or 「Open {app} in Studio」 + + Clause-②: no + Metadata-protocol: none + + The app-name menu at the top of the sidebar now offers 「Edit app」 under the list of apps, in one group with 「Add app」. Choosing it turns the design mode on for the app on screen, in place. It is offered on the condition the page header's button was drawn on, unchanged: a workspace admin holding `manage_metadata`, on an app whose package Studio lists (the console's own Setup, Studio and Account apps get none). An app built here and an installed (read-only) one get it alike, except where the customization door is walled off for the caller (a walled deployment, not the platform operator): there an installed app's menu offers no 「Edit app」. While the mode is on, the menu does not offer it. The menu is drawn from 768 px up, docked or floated over the content while the sidebar is collapsed; a phone has no way into the mode, as before. + + The page's top-right button group now holds the comments slot, the AI assistant and help only: its 「Edit app」 and the read-only package's 「Open {app} in Studio」 are gone. The app switcher's 「Open {app} in Studio」 row is unchanged, and so is the top bar's Studio entry where a top bar is still drawn (from 640 to 767 px wide, and on an app's docs pages). +- 4ef1ea9: feat(console): the sidebar's object entry offers Object settings in place of Design, and dashboard and page entries no longer offer Design + + Clause-②: no + Metadata-protocol: none + + A sidebar entry's ⋯ menu used to offer Design for an object, a dashboard or a page entry, and only on an app whose package Studio lists as writable. An object entry, and an object favorite, now offer Object settings instead, which opens the object in Studio's Data surface, where its fields are. It is offered to a workspace admin who may author metadata on an app built here and on an installed app alike; an installed app's package opens in Studio's browse-only posture. A dashboard, page or report entry offers no Studio entry any more: each is edited on its own page. Object settings asks first when the page on screen holds unsaved edits, as Design did. + + The list header's folded ⋯ menu, drawn when the header is too narrow for its actions, leads with the same Object settings entry under the same rule. + + The `console.nav.design` translation key is replaced by `console.nav.objectSettings` in every locale pack. +- 4af3352: fix(app-shell): the Attachments tab offers the uploader Delete and Rename on their own upload + + Clause-②: no + Metadata-protocol: none + + On a record's Attachments tab, a member who uploaded a file now sees Delete and Rename on that row, with no grant on `sys_attachment` beyond the member baseline (read and create). Before, the row menu offered Delete only to a holder of the `delete` grant and Rename only behind it, so a plain member could remove or rename their own upload through the API but never from the console. + + The panel now judges each row the way the storage service's two attachment doors do. On the caller's own upload (its `uploaded_by` names the signed-in user) it offers both verbs: Delete goes through the removal door, `DELETE /api/v1/attachments/:id`, and Rename through the rename door, `PATCH /api/v1/attachments/:id`, as before. On another user's upload it offers Delete to a holder of the `delete` grant, through the data API as before, and Rename to a holder of the edit grant; the delete grant no longer gates Rename. A refusal from either door is shown in the panel's error line, and the row stays. +- d7411fa: feat(console): 「Configure tabs」 on an installed object writes its paired `.custom` package, marks where each tab comes from, and opens the record's 「…」 + + Clause-②: yes (widening) + Metadata-protocol: none + + On the record page of an object of an installed (read-only) package, a workspace administrator who may author metadata now finds 「Configure tabs」 too, where the customization door does not wall them off (the walled `group` / `isolated` postures leave it to the platform operator). Its 「Save」 writes the `relatedLists` of the object extension of the base's paired `.custom` package in the spec's shape (ADR-0146 D10): every shown tab in order, a built-in tab by its bare name, and every hidden related tab written `{ list, hidden: true }`; the pair is created on the first save by the ensure door, as Studio creates it. The extension is written over what the pair stores, with only its `relatedLists` replaced (`fields`, `fieldPatches`, `place` and `fieldGroups` kept), as a draft with the first-write pin, then published; a refused publish discards that draft. The original package is not written. + + On an installed object every tab can be moved: the object's own lists, a list another package brings, and the built-in 附件 / 审批 / 动态. A related tab can be hidden and shown again; a built-in tab cannot be hidden there (the `.custom` list cannot hide it), and an attachments tab the base hides waits in 「Hidden」, from which it can be shown. Each related tab is marked 「Original package」, 「From <package>」 or 「This environment」, read from the child object's package and the relationship field. + + A tab's stored title is kept when the administrator did not rename it, on self-built and installed objects alike: the name the editor shows is the served one, which the read translates for the reader's language. + + The write is one shared helper, `saveObjectExtensionArrangement`, which replaces only the arrangement keys a caller returns (`relatedLists` here; `fieldGroups` for a field-layout editor). + + `page:header`: a host `⋯` entry declaring `leadsMenu: true` is drawn first, ahead of Refresh; an authored action cannot claim the place. The record page's 「Configure tabs」 declares it, so it is the first item of the record's 「…」. + + New language-pack keys under `designMode.recordTabs` (`pairNotWritable`, `builtinMoves`, `sourceBase`, `sourcePackage`, `sourceEnvironment`) in all eleven console locales. +- c6075a7: feat(console): an administrator configures the record page's tabs in place, from the record's 「…」 + + Clause-②: yes (widening) + Metadata-protocol: none + + On the record page of an object whose package is writable (an object of a self-built app), a workspace administrator who may author metadata finds 「Configure tabs」 among the record's own entries in its 「…」 (desktop full page only; never on a phone, in a drawer or a pane, or on a page its author composed). Chosen, the page enters an edit state in place: a bar across the top with 「Configure tabs」, 「Cancel」 and 「Save」, in the design mode's bar's look, and the tab row turns into an editor. The record stays on screen as the preview, in the administrator's default order. + + In the edit state the related tabs are dragged to a new order, hidden into a 「Hidden」 area and shown again from it, and renamed; the attachments tab can be hidden; 审批 and 动态, which the page always draws last, are shown fixed, and so is a list another package brings. 「Adjust field groups」 opens the object in Studio. 「Cancel」 drops the changes and writes nothing; leaving the page with a change held asks first. + + 「Save」 writes the object's `relatedLists` over the object as stored (never as served), as a draft with the first-write pin, and publishes it, so everyone sees the new default order, names and hidden tabs. An object's own `relatedLists` hides a tab by leaving it out; an entry the editor does not arrange (a 审批 / 动态 name, a list it does not offer) is kept. A reader's own dragged order still lays over the new default, and 「Restore default order」 returns them to it. A tab is renamed only in the app's source language, where its shown name is its stored one, the design-mode menu's rule. + + New language-pack keys under `designMode.recordTabs` in all eleven console locales. `RecordPageColumns` takes an optional `tabRowEditor`, drawn in the tab row's place. Objects of installed (read-only) packages are not offered the entry yet. + + `page:header`: a `⋯` entry that finished on the click (it returned no pending promise) now closes the menu, as Refresh does; an entry still running keeps the menu open with its row busy until it settles, as before. +- cd51dbb: feat(studio): the top bar's left end reads 「‹ Back to app」, the app's name and "Studio"; the Studio-home button, the package switcher and Open app are gone + + Clause-②: no + Metadata-protocol: none + + Studio's top bar now starts with one way out: 「‹ Back to app · APP · Studio」. Entered from an app, the link names that app and returns to the page the author came from, its query included. Opened directly (a Studio address in a new tab, a reload), it names the package's published app and lands on its first screen; with several apps, the first. A package with no published app (none yet, or only a draft) and the organization flows scope read 「‹ Back to app」 with no name and go to the console's landing. Leaving with unsaved work in a pillar asks first, as every other header departure does. + + The home icon, the package switcher and the top-right Open app button are removed. Another package is opened from the app, or from the Studio landing, whose cards also carry package management and New package. + + New studio catalogue keys (en, zh): `engine.studio.backToApp`, `engine.studio.backToAppTitle`, `engine.studio.backToAppTitleNoApp`, `engine.studio.mark`. Removed with the Open app button: `engine.studio.openApp`, `engine.studio.openAppTitle`, `engine.studio.openAppPick`. `engine.studio.app.willOpenAfterPublish` now names 「Back to app」. No props or exports of the published packages change. +- 573a376: feat(i18n): `GET /i18n/locales` names the source locale, and a design-mode menu rename outside it is stored as that language's translation + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: follow-up owed — skills/objectstack-i18n/SKILL.md + + - **`GET /api/v1/i18n/locales` names the source locale.** The body gains an optional `sourceLocale` (`GetLocalesResponseSchema.sourceLocale`): the language the app's own text, a plain-string `label`, is written in. It is the declared `i18n.sourceLocale`, else the default locale, the same rule the metadata translators use. It differs from the `isDefault` locale on an app written in one language that defaults its users to another. It is absent only when the server knows neither. Nothing that parsed before stops parsing. + - **A menu rename in design mode is stored where the reader's language reads it.** The name field of 「Rename and icon」 is now open in every language. A name typed in the source language, over an entry shown by its stored label, is still written to the stored label. Any other name is written as that language's translation of the entry: a name typed in another language, or one typed in the source language over a translation the reader was shown. The stored label stays unchanged, so every other language keeps its name. The rename says so when the new name will be a translation ("The new name is shown in LANGUAGE. The app's other languages keep their names."). + - **Where the translation goes.** It is written to the `translation` item `APP_menu_LOCALE` (for example `crm_menu_zh_cn`), at `apps.APP.navigation.ID.label`, the key app navigation is translated by. It goes into the package the menu is written to: the app's own package when that is writable, else its customization package, whose own translations are read first (ADR-0146 D2). Like the menu, it is saved as a draft with the first-write pin and published at once. A pending draft of it is refused and the reason is shown. A translation-only rename writes the translation and leaves the app alone. + - **A link added in another language** is stored without a name, and the name typed for it becomes that language's translation. The source language names it when someone sets a name there. Until then, a reader in the source language sees the link's URL, as for any link with no label. + - Before this change, the console allowed a rename only when the reader was in the deployment's default language. The default language could differ from the source language, and a rename there was written to the stored label for every language. +- 5c2d5cf: feat(studio): the object page's 「表单」 tab is now 「字段布局」 (Field layout), edits the object's field groups only, and arranges an installed object into its paired `.custom` package + + Clause-②: no + Metadata-protocol: none + + The Studio object page's Form tab is renamed 「字段布局」 / Field layout, and says in one sentence where its groups and order are used: the record page, the right-side preview, and the create and edit dialogs. It reads and writes the object's field groups and nothing else; no form view is read or written there. + + Group membership and order are saved in each group's own `fields` list. An object still written with a `group` on each field shows its groups as before, and its first save from the tab converts it to the lists, with nothing on the canvas moving. + + On an object of an installed (read-only) package the tab is no longer read-only where the customization door is open: adding, renaming, deleting and reordering groups, dragging fields (a field another package brings included) and the group settings all edit the object extension of the base's paired `.custom` package, as the whole `fieldGroups` arrangement (every group listing its members), saved and published by the top bar's Save with the rest of that extension. The original package is not written. A field or group `place` entry of that extension, which a written arrangement replaces, is taken off on save; a tab placement stays. Each field card of an installed object is marked 「原始包」 / Original package, 「本环境」 / This environment, or with the package that contributes it. Where the door is walled the tab stays read-only, as before. + + New Studio strings: `engine.studio.data.form.usedOn` and `engine.studio.designer.source.{base,baseTitle,environment,environmentTitle}` (en, zh); `engine.studio.data.form.layoutSource.*` is removed with the chip it labelled. +- f590f3e: feat(studio): hooks, an installed app's added actions and flows save with the top bar, and a Save is live at once + + Clause-②: no + Metadata-protocol: none + + The Studio's hooks, the actions an installed app's object gains in its `.custom` package and flows no longer autosave a draft 1.5 s after each edit. Edits stay on the page until the author presses Save in the top bar; Cancel puts them back as the server holds them. Save writes each edited item's draft and then publishes that one item at the package it was written to, so the change is live at once. A new hook or an added action is written only by Save, and a removed added action is deleted by Save. + + A flow's on/off switch needs no Save: a flip writes the stored flow with the new status and publishes it at once, leaving any unsaved canvas edit on the page for Save. A new flow is published as it is created, switched off, so switching it on makes it live straight away. The inspector footers and the Studio landing say that Save makes a change live; permission sets follow in a separate change. +- 9fa05c6: feat(studio): every human editor in Studio saves live; an item's unpublished AI changes can be dropped on its page + + Clause-②: no + Metadata-protocol: none + + Every editor a person uses in Studio's object, automation and access pages now saves with the top bar's Save and Cancel, and a Save is live at once: an object's fields, field layout, validation rules, actions, settings and hooks, flows, and now permission sets and the Access pillar's record-sharing overview, which no longer has a Save of its own. A permission set no longer autosaves a draft 1.5 s after each edit, and the access banners say that Save makes a change live. Creating an object, a flow or a permission set makes it live at once too, so those create dialogs say Create instead of Save as draft; apps, pages, dashboards, reports and datasets are still created as drafts. + + Changes and Publish are left for the AI assistant's drafts. When an object or a flow holds an unpublished draft the assistant wrote, its page says that saving makes those changes live too and offers to discard them: that one item's draft is dropped, the page goes back to the live version, and Changes counts one item fewer. Unsaved edits on the page go with the discard, after a confirm. +- ed0edb1: feat(studio): the object page saves with Cancel and Save in the top bar, and a Save is live at once + + Clause-②: no + Metadata-protocol: none + + Studio's object page (fields, validation rules, actions, settings and field groups) no longer autosaves a draft 1.5 s after each edit. Edits stay on the page until the author presses Save, which sits at the right of the Studio top bar where Publish was; Cancel beside it puts the page back as the server holds it. Save writes the object's draft and then publishes that one object at the package it was written to, so the change is live at once. An installed app's object takes its edits into the paired `.custom` package and publishes them there. + + Changes and Publish are drawn only while drafts are pending (a copilot's, or another editor's), and a publish waits while the page holds edits Save has not sent. A Save refused by the server keeps the edits on the page with the reason, and its toast names each refused item with its reason and lists the items that were saved. Removing or retyping a published field asks first. Save waits out the expression checks of the last keystroke, so a formula or rule guard that does not parse is never sent. Leaving the page, or opening another object, with unsaved edits asks, as every departure does. + + Hooks, flows and permission sets moved to the same Save in later changes; list views and navigation keep their draft autosave for now. +- a10987a: feat(studio): the object Settings tab speaks business language, shows each setting's key as small print, and puts the developer options last + + Clause-②: no + Metadata-protocol: none + + Studio's object Settings tab is now in two parts. The business settings come first: label, plural label, icon and colour, description, who can see which records, the record name field, the stage field, the highlight fields, the record page tabs and the features. A "Developer options" section comes last, expanded and with no switch. It holds the internal name (read-only once the object exists), who can open the object by default, and the extra permissions it requires. + + Titles and descriptions no longer show ADR numbers, internal rule codes or key names in parentheses. The metadata key each setting writes (`nameField`, `sharingModel`, `enable.clone`, `access.default`, `requiredPermissions`, …) is shown as small monospace text beside the setting's title. One click selects the whole key for copying. The key sits outside the control's label, so selecting it neither opens a picker nor flips a switch. + + Three descriptions are rewritten so that someone who does not know the platform's internals can follow them: the internal name, the default access ("Standard — anyone with access to all objects" / "Restricted — only people granted this object by name") and the extra required permissions. The English and Chinese texts are both updated; every other language falls back to English for these strings, as before. + + What each setting means and what it saves are unchanged. + + For hosts of the object default inspector: `MetadataDefaultInspectorProps` gains an optional `split` (`{ part: 'business' | 'developer'; renderKey? }`). Only the object inspector reads it. Without it the inspector draws its whole panel, as before. The reworded object-inspector strings also show wherever that inspector is mounted. +- d24e4ab: feat: the controlled-by-parent master refusal carries a machine-readable code, and the Studio settings tab words it for the author in en and zh + + Clause-②: yes + Metadata-protocol: none + + `@objectstack/spec` — the refusal of a `sharingModel: 'controlled_by_parent'` object that does not derive exactly one writable master now stamps its parse issue with `params: { code: 'CONTROLLED_BY_PARENT_MASTER_INVALID', shape }`, at both raise sites: `ObjectSchema`'s refinement and `defineStack`'s extension-merge gate. `shape` is the refusal's existing `ControlledByParentMasterShape` (`several-required-masters`, `several-masters`, `master-not-required`, `required-lookup-only`, `no-master`, `master-not-writable`). The code is exported as `CONTROLLED_BY_PARENT_MASTER_INVALID` from `@objectstack/spec/data`, with the `ControlledByParentMasterIssueParams` type, and is registered in `ERROR_CODE_LEDGER` under `@objectstack/spec`. Which objects are refused, and where, is unchanged. + + The refusal's English message no longer cites an ADR section: each of its three arms read `ADR-0055 §1: since @objectstack/spec 18, …` and now reads `Since @objectstack/spec 18, …`. The rest of each message, including the fix it prescribes, is unchanged. A script that matched `ADR-0055 §1:` in this message should match `params.code` on the zod issue instead, where it can see the issue: an `ObjectSchema` / `ObjectStackDefinitionSchema` `safeParse`, or the `issues` of `defineStack`'s `STACK_SCHEMA_INVALID` refusal. The metadata save door's `422 INVALID_METADATA` does not carry the code: its `issues[]` entries keep `path`, `message` and zod's issue code (`custom`) only, so a reader there still has only the message. + + `@object-ui/app-shell` / `@object-ui/i18n` — the Studio object settings tab no longer shows the spec's English message verbatim when "Follows its parent record" cannot be saved. It reads the code and shape off the save door's own parse and shows one sentence per shape from the `studio` namespace (`engine.studio.settings.cbpRefusal*`, en and zh), naming the fields to change by their labels. A refusal without the code, or with a shape that has no sentence, still shows the spec's message. +- f77d078: fix(console): the design mode's menu save refuses an unreadable stored app, pins its publish, and keeps own entries out of another package's group + + Clause-②: no + Metadata-protocol: none + + The menu editor of the console's design mode, and its 「Save」, are hardened in eight places: + + - Two id-less menu entries of one group with the same type and target (two separators, say) are matched to their own served copies: an entry the reader was not shown (other `requiredPermissions`) no longer takes the key of the one shown, so removing the shown entry removes it, not the hidden twin. Twins equal in every key are matched by their place. + - A stored read that holds no app (the layered read answers a 404 as an empty view) refuses the save, and the bar says why, instead of writing an app of the menu additions alone. On entry such a read no longer marks every entry as another package's. + - The publish is pinned to the published row the save was composed over (the `/layers` read's `overlayVersion`, sent as `If-Match`, or `If-None-Match: *` where no row is stored), read at the address the publish writes. A publish somebody lands in between is refused, the draft is discarded and the bar says so; saving again applies the edits over it. A server that serves no `overlayVersion` is published unpinned, as before. + - A group another package contributes is not offered by 「Move to group」, has no 「Add menu item」, takes no drop, and offers no 「Add an item before / after」 on its entries. + - An entry added at a group's end while the stored read is still pending is drawn before another package's entries once the read lands, where the save puts it. + - Space starts a keyboard move and Enter opens the entry's page; the editor's help line and its screen-reader instructions say so. + - A drop outside the menu moves nothing. + - The click that ends a pointer drag opens nothing however long the button was held after an Escape, and no click opens a link while a keyboard move is held. + + `AppMenuSaveTexts` gains two optional sentences, `storedUnread` and `publishedMoved`; a caller that states neither is told the package sentence for the first and the server's refusal for the second. Nothing to migrate. +- 0e83fe0: fix(studio): a state-machine row in the validations panel can say its state may be cleared, and editing the row keeps that + + Clause-②: no + Metadata-protocol: none + + A `state_machine` rule judges a clear of its field (`null` or `''`) as a transition to `''`, allowed only from a state that lists `''` among its targets. The Studio validations panel parsed a row's next states with the empty entries dropped, so an admin could not make a state clearable from Studio, and editing a row that already listed `''` silently removed it, after which users who cleared the field were refused again. + + Each transition row now has a "May be cleared" checkbox that adds or removes the `''` target. The "Next states" box shows and edits the named targets only, and an edit to it keeps an existing `''` (written as the row's last target), so a rule with `paused: ['open', '']` is written back unchanged. Nothing changes in what the server accepts or how it judges a transition. +- e7399fc: fix(console): moving straight from one object's data page to another's opens the new object's list as its address says + + Clause-②: no + Metadata-protocol: none + + On the bare data page (`/apps/APP/OBJECT/data`), going straight to another object's data page without a reload (a link, the browser's back and forward) kept the page and its list mounted. The new object's list then kept the previous object's search, Filter panel, sort, grouping and quick-filter chips, and ignored the ones its own address carried, while the address showed the new ones. The list now opens afresh for each object, from the new address: its `uf__search`, `uf__filter`, `uf__sort`, `uf__group` and `uf_FIELD` chip selections. An address with none of them opens the new object's list with none. 「Reset」 on a list opened from a record's related list is unchanged. +- 42b4060: fix(app-shell): the design-mode menu builds on a case-insensitive file system — its helper module no longer shares the component's name up to letter case + + Clause-②: no + Metadata-protocol: none + + `layout/` held the menu editor component `DesignModeMenu.tsx` beside its pure tree helpers `designModeMenu.ts`. On a case-insensitive file system (the macOS default) the sidebar's lazy `import('./DesignModeMenu.js')` tried `.ts` first and found the helper module, which has no default export: the `@object-ui/app-shell` build failed with TS1149 ("differs from already included file name … only in casing"), and a Console bundled there turned the whole page white when 「Edit app」 opened design mode. The helpers are now `designModeMenuModel.ts` (its test `designModeMenuModel-36363.test.ts`), so `./DesignModeMenu.js` can only reach the component. No behaviour changes; Linux builds were never affected. +- 93d8921: fix(app-shell): a menu reordered in design mode is saved in the order the sidebar draws it, in apps whose menu entries carry `order` + + Clause-②: no + Metadata-protocol: none + + The sidebar sorts each level of an app's `navigation` by `order` (lower first, an absent `order` as 0, ties in array order), but design mode listed and saved the array as authored. In an app whose entries carry `order` — AI-built apps write one on every entry — 「Move up」, 「Move down」, 「Move to group」, a drag and an added item were saved and published without error and changed nothing on screen; re-entering design mode then listed the menu in an order the sidebar did not show. + + Design mode now lists each level in the sidebar's order, and the save writes that order back: every level in which any entry carries `order` has each of its entries, groups and group children alike, renumbered `0`, `1`, … in the order design mode showed. A level in which no entry carries `order` is saved by array order as before and gains no `order` key, so apps authored by array order (HotCRM's) are unchanged. Saving a menu with `order` therefore rewrites its `order` values to consecutive numbers; the order they draw is the one design mode showed. +- 70f454a: fix(metadata): two Studio Saves over one published item are no longer last-writer-wins + + Clause-②: yes (widening) — two new optional members join what the API accepts and answers: `PublishMetaItemRequestSchema.parentVersion` (the `If-Match` / `If-None-Match: *` pin on `POST /meta/:type/:name/publish`) and `GetMetaItemLayeredResponseSchema.overlayVersion` (served on `GET /meta/:type/:name/layers`); nothing is removed or narrowed, and a publish that names no version behaves as before + Metadata-protocol: added + + A Studio Save writes the item's draft and then publishes that one item, so it leaves no draft behind. Two admins who opened the same object with no pending draft both asserted "no draft" on their draft save, and the later Save published over the earlier one without a word: the published layer served no version a Save could pin. + + - `GET /meta/:type/:name/layers` now answers `overlayVersion`: the version token of the stored active row at the read's address (`?package=`), the same keyed token the plain uncached read serves as `version` and a publish receipt serves as `version`; `null` when no active row is stored there. + - `POST /meta/:type/:name/publish` takes that token as `If-Match` (or `If-None-Match: *`, "no active row here"). A token that is not the current active row's is refused `409 METADATA_CONFLICT` with the current token as `currentVersion`, and nothing is promoted: the draft stays pending. The headers are read as the save door reads them, so `If-Match` beside `If-None-Match`, or an `If-None-Match` other than `*`, is refused `400 VALIDATION_ERROR`. A publish with neither header is unpinned, as before. The pin is checked by the store's own lock on the promoting write, not by a separate earlier read. + - `MetadataClient.publish` (`@object-ui/data-objectstack`) takes `ifMatch` / `ifNoneMatch`, sent as those headers. + - Studio's object page pins its Save's publish to the published row it was loaded at. When another editor published since, the Save shows the reload-or-overwrite dialog the draft conflict shows, worded for a live change: reload takes back the draft the Save wrote and re-reads the live object, overwrite (after a confirmation) publishes over the version the refusal names, and keep editing leaves the edits on the page, unsaved. New locale keys in the studio catalogue (en, zh): `engine.draftConflict.publishedTitle`, `engine.draftConflict.publishedDescription`, `engine.draftConflict.publishedOverwriteTitle`, `engine.draftConflict.publishedOverwriteDescription`. + + The two members enter the authorable-surface ratchet (`api/GetMetaItemLayeredResponse:overlayVersion`, `api/PublishMetaItemRequest:parentVersion`), so `@objectstack/spec` takes `minor`; the other packages stay `patch`. + + Nothing to migrate: a client that sends no version is unaffected. +- 368deee: fix(components): avatar pictures keep their proportions instead of being stretched to the circle + + Clause-②: no + Metadata-protocol: none + + A user photo or organization logo that is not square was squashed or stretched to fit the round avatar, because the shared `AvatarImage` set no `object-fit` and the browser default (`fill`) scales each axis on its own. It showed in the account menu, the members and organizations pages, user and lookup fields, kanban card owners, the history timeline and the chatbot. + + `AvatarImage` now draws its picture with `object-cover`: it fills the circle, keeps its proportions and crops the overflow, as common avatar components do. A caller that wants a logo-style fit still passes `object-contain`, which wins over the default. The comment author avatar and the organization settings logo dropped their local `object-cover`, which the default now covers. +- 17f3db8: fix(studio): Save waits for an expression's check to reach the page before it sends, so a predicate that does not parse is held, not saved, on a busy machine too + + Clause-②: no + Metadata-protocol: none + + Studio's top-bar Save reads whether an edit is held (a formula, rule guard or action predicate that does not parse) once the expression checks of the last keystroke have run. It waited a fixed 50 ms past the check's delay, but an action predicate's verdict reaches the object's Save through several renders (the expression field, the condition builder, the action inspector, the actions panel, then the Data pillar), and on a busy main thread those renders came after the 50 ms: Save read the verdict from before the edit and sent the unparsable predicate. Save now also waits until every render already queued has run, so it reads the verdict of the text it is about to send. A Save pressed after the check has reported is not slower; one pressed while renders are pending waits for them. +- c54aa57: feat(console): the report builder adds 「+ Filter」 under the data source — a report filter on the bound dataset, drawn into the preview at once and kept on Save + + Clause-②: yes (widening) — a new optional `filter` slot on `ReportBuilder` (`@object-ui/plugin-report`), two exports from `@object-ui/plugin-list` (`conditionCandidatesOf`, `conditionOptionsOf`, and the `ConditionCandidateField` type), and four new `@object-ui/i18n` keys (`report.builder.source.addFilter`, `filterAdvanced`, `filterLoading`, `filterNoFields`) in all 11 locales; no spec, schema or server change + Metadata-protocol: none + + - **The filter** (`@object-ui/app-shell`): under the data source, 「+ Filter」 opens the same condition editor the dataset designer uses, over the fields of the dataset's object (their translated labels, a select's options, a lookup's record picker; hidden fields are not offered). Each condition is written into the report's `runtimeFilter`, the preview redraws with it at once, and Save keeps it; removing the last condition removes the key. Switching the data source clears the filter. + - **The fields offered** leave out virtual (formula) fields: the dataset door refuses a filter on one, so a report filtered on it could be saved and then fail for every viewer. + - **A filter with `$and` beside other conditions** (`{ $and: [...], amount: {...} }`, or with `$not`) is no longer read as editable rows by the shared filter bridge, so neither the report builder nor the dataset designer opens it where the next edit would drop the conditions beside the `$and`; it keeps the panel / source editor, unchanged. + - **Which reports open in the builder:** a dataset report with a saved filter now opens in the builder when its filter is one the builder can edit (field conditions joined by AND); a filter it cannot edit (an OR, a nested group, two operators on one field) keeps the report inspector panel, as before. A filter that turns out not to be editable once the fields are read is shown as kept and saved unchanged. +- 9348f02: fix(studio): an edit typed right as a Save ends is kept, not replaced by the Save's re-read of the object + + Clause-②: no + Metadata-protocol: none + + A Save in the Data pillar makes the object live, and the object is read again from the server once the Save has ended, so the page shows what the server holds. An edit made while that read is out was already kept. An edit made in the moment between the Save ending and the read starting was not: the page marked the object unchanged as the read started, the read then replaced the object with the server's copy, and the edit and the top bar's Save disappeared with it. That edit is now kept the same way, and its Save sends it. +- e0050ba: fix(console): report editing is its own entry, and report and dashboard editing exclude the design mode both ways + + Clause-②: no + Metadata-protocol: none + + The console's design mode no longer hosts the report builder, so the screen shows one Save/Cancel set at a time: + + - The design mode's 「Add menu item → Reports」 lists only reports that exist; its 「New report…」 row is gone, with the hand-off that let the builder save into the menu. A new report is made from the reports index, then linked from the design mode. + - The reports index offers 「New report」 in its header, opening the report builder. It is offered to workspace admins, as the builder is, and not while the design mode is on. + - While the design mode is on, a dashboard's and a report's own 「Edit」 are not offered. + - While a dashboard or report editor is open, 「Design layout」 refuses with a prompt to save or cancel those changes first, so the design mode's 「Cancel」 can no longer end the mode under an editor left open. + - The report builder's own address reached with the design mode already on (the browser's Back) shows a prompt to finish designing the layout instead of the builder; the builder opens there once the mode is saved or cancelled. + + The design mode's 「New dashboard…」 is unchanged. In `@object-ui/i18n`, `designMode.menu.newReport`, `designMode.menu.newReportLeft` and `report.builder.addsToMenu` are removed from every pack, and `designMode.editorOpen`, `console.reportIndex.newReport`, `report.builder.designModeOnTitle` and `report.builder.designModeOn` are added. Nothing to migrate. +- 14f4d8f: feat(app-shell): Notification Settings offers "Follow organization setting" for digest and quiet hours + + Clause-②: no + Metadata-protocol: none + + Once a member has saved a digest or quiet hours of their own, the Notification Settings page now offers a "Follow organization setting" action beside each one. It empties that field on the member's own general preference (the same empty the Setup grid writes), so the organization's default decides again, including any later change to it. The page then shows the value in force as the organization default. The action appears only where the field is the member's own choice; where there is nothing to clear, it is not drawn. + + The member's own general preference itself stays, and so does its on/off; per-topic and per-channel choices are not reset by this action. + + New strings `notificationSettings.followOrganization` and `notificationSettings.followOrganizationFor` in all eleven built-in locales. +- 183ed23: fix(console): saving a report an installed app ships, from the report builder, writes the app's `.custom` customization package instead of failing with 403 + + Clause-②: no + Metadata-protocol: none + + The report builder (and the report inspector panel beside a joined or pre-dataset report) wrote every save naming no package, so an edit to a report a read-only package ships addressed that package and the metadata write door refused it: the admin's change was lost at Save. The save now lands where the in-page dashboard editor's does (ADR-0146 D2, D3, D11): in the package the report is served from when that package is writable, else in the app's customization package `<base>.custom`, which the ensure door creates on the first save, with the report declaring the override of its base (`overrides: { package, basedOn }`), as Studio's Customize writes it. The editor's buffer is still the layered authored read at the package the report is served from, and Save still writes and publishes in one press. + + Where such a save could not land, the editor is not opened and says why, in Studio's own sentences: the ensure door is walled for this caller, the package list names no installed version to declare the override at, or a draft of the report is already pending in the customization package (the in-page dashboard editor refuses that at open too). A report whose package is not listed, or whose package list cannot be read, is refused in its own sentence with the reason under it; a report of a writable package opened in the builder before this change even when the list could not be read. A report that names no package is saved as before. Two new Studio sentences carry those refusals in English and Chinese. +- f115a66: fix(studio): the hook designer and a global action opened from an app nav leaf draw refusals and texts with their served rows + + Clause-②: no + Metadata-protocol: none + + The served `hook` and `action` forms give `refusals` and `texts` the key-only record control (an entry is drawn under its code or key, with its own rows) and help text. Two Studio hosts did not hand that form to the designer they mount: the object's Hooks view gave the hook designer the schema only, so both keys read as the raw JSON editor in "More fields"; and the Interfaces rail, opening a global action from an app nav leaf, gave the action designer neither schema nor form, so it drew no "More fields" and neither row at all. + + The hook designer now takes the served form (`serverForm`) and draws the two rows from it in its Function section, beside the handler body, the way the action designer does; the Hooks view passes the served `hook` form, and the Interfaces rail passes the served `action` schema and form to the action designer. A host with no served form keeps both keys in "More fields", as before. Nothing about what a hook or an action stores, or what the server accepts, changes. +- 0e3187e: fix(studio): the object extension, hook, action and flow Saves no longer publish over another admin's live change + + Clause-②: no + Metadata-protocol: none + + Studio's top-bar Save writes an item's draft and then publishes that one item. The object page pinned that publish to the published row it was loaded at, but the other editors that save this way did not: two admins who opened the same object extension, hook, pair action or flow each passed the draft check, and the later Save replaced the earlier one's live change without a word. + + Each of those editors now reads the published version at the address its publish writes (the `/layers` read's `overlayVersion`) where its buffer is loaded, and its Save's publish sends it as `If-Match` (`If-None-Match: *` where nothing is published there yet). When another writer published since, the Save opens the same dialog the object page shows for a live change: reload re-reads the live item, overwrite (after a confirmation) publishes over the version the refusal names, and keep editing leaves the edits on the page, unsaved. The flow's on/off switch is pinned the same way. Creating a new hook, pair action or flow publishes with `If-None-Match: *`, so a same-named item another writer published first is refused instead of replaced. No dialog wording or locale key changes. + + A reload over a draft that was pending before the Save (a copilot's) now keeps the publish pinned to the version the conflict was raised on: the reload re-reads that draft, which carries the page's edits, and the next Save is asked again instead of publishing it over the row that moved. An overwrite, a publish that lands, or a load that finds no pending draft ends that hold. This applies to the object page too. + + A server that serves no `overlayVersion` gets an unpinned publish, as before. Nothing to migrate. +- 4d4ec16: feat(console): from 768 px up a sign-in lands in the last-used app, and the platform home page retires + + Clause-②: yes (widening) + Metadata-protocol: none + + From 768 px up there is no platform home page any more. A sign-in, the SSO round trip and the old `/home` address all land the person in an app their permission sets show, in this order: the app they last had open, while it is still there for them; else the app the product declares `isDefault`; else the first app somebody put into the environment (never Setup or Studio). + + - A person with no such app at all stays on `/home`, which now draws only the no-apps empty state: 「No applications yet」, and for a viewer who may add an app the same doors the sidebar's 「Add app」 offers (build with AI, start from a template, the app marketplace). An administrator's first-run checklist stays above it. + - An administrator's first-run checklist, while it has open items, moves to the top of the Setup app's first page (the page Setup opens on). It is drawn from 768 px up only, and a phone is unchanged. + - `@object-ui/app-shell` exports `SetupFirstPageSlotProvider`, through which a host puts its element above the Setup app's first page. + - The console's Home affordances (⌘⇧H, the way back from a missing app, Studio's way out) go where the landing goes. Where the chrome cannot yet tell which apps a permission set hides (Studio, the AI pages, or before that answer arrives) they point at `/home`, which resolves the landing itself. + - The SSO sign-in's callback is the console root instead of `/home`, so it lands the same way. + - A phone is unchanged: it still lands in the last app first, and `/home` is still its app list. + - `@object-ui/app-shell` exports `resolveDesktopHomePath(apps, lastApp)`, the desktop's Home. + - `RedirectWithSplash` takes an optional `state`, so the hops from `/` and `/home` into the landing app keep what the visit carried (an old `/ai` address's Builder handoff). + - Every console locale gains `home.noAppsAddDescription`. +- d763ee7: fix(console): a record page's tabs are arranged in the design mode, under its one bar; a list's draft actions read Reset / Update view + + Clause-②: no + Metadata-protocol: none + + The design mode and the record page's 「Configure tabs」 each drew a purple bar with its own Cancel and Save, and the two stacked when both were open. A list's draft actions (Discard / Save) showed under the design mode's bar as a second page save. Following Twenty's grouping (the maintainer's ruling 「照 Twenty 归类」): + + - The record page's tabs are part of the design mode. While the mode is on, the tab row of a record's desktop full page is the tabs editor in place, for an administrator who may arrange that object's tabs (the same gates as before: a workspace administrator who may author metadata, the desktop full page, not a drawer or pane, not an authored page, and the customization-door wall on an installed object). The draft is staged with the mode's other changes (the app menu, the header buttons): the mode's Save writes it with them, to the object's own package (`relatedLists`, published) or, on an installed object, to the base's paired `.custom` object extension, as before; the mode's Cancel drops it. The draft stays staged while the administrator moves to another page of the app. The record's ⋯ no longer offers 「Configure tabs」, and the separate 「Configure tabs」 bar is gone. A failed save says so through the mode's own message and keeps the draft staged. + - A list's draft actions are the view's own, as Twenty's 「Reset / Update view」: they now read 「重置 / 更新视图」 (en: Reset / Update view; every bundled language pack is updated), and they stay drawn and live while the design mode is on. The Update view menu keeps 「Save to this view」 and 「Save as my view」. Where the open view cannot take the change (a view a read-only package ships, or a reader who may not write it), the button reads 「另存为我的视图」 (Save as my view), the one save its menu holds; on the phone's chip row it reads 「保存」 (Save) there, so the view switcher beside it keeps its name. + + Locale values changed in `@object-ui/i18n` (no key added or removed): `console.objectView.draft.discard` and `console.objectView.draft.save`, in all eleven bundled packs. No props or package exports change. While a record's own edit state is open, its tab row is not the tabs editor. +- 8018e00: feat(console): the first-run checklist asks for the organization's basics in one form, leaves the rest optional, and follows the administrator as a 「Get started n/m」 pill in the sidebar + + Clause-②: yes (widening) + Metadata-protocol: none + + The administrator's first-run checklist had five setup rows that each saved on their own (the organization's name, language and country, timezone, currency) and counted every row, so it only went away once mail, invitations and AI were set up too. Following the maintainer's ruling on objectstack#36739: + + - **One form, one save.** A single 「Organization basics」 row opens one form with the organization's name, default language, country, timezone and currency. Values the server does not hold yet are suggested from the browser, and a setting with neither a value nor a suggestion must be filled in like the name; nothing is written until Save, which renames the organization (when the name changed) and writes the four settings in one call. A refused rename or a refused setting shows on its field, as before. The row is done once the organization has a real name and all four settings are set. + - **Only the basics are required.** Mail, invitations, the built-in AI provider and connecting an outside assistant become optional rows (marked 「Optional」); they still tick themselves when the server says they are done. On the hosted profile, 「Put in your first app」 stays required. The checklist is complete, and stands aside on Home, once the required rows are done; its progress (n/m) still counts every row. + - **A pill in every app.** For the administrator only, a 「Get started n/m」 pill sits at the bottom of every app's sidebar (on the folded icon rail it keeps its icon, with the count in its accessible name and tooltip). A press opens the checklist in place in a popover; the popover's X only closes it, and 「Hide on this device」 under the list hides the pill and Home's card. On a phone, which has no resident sidebar, the pill sits after the app's menu on the app's home page. It disappears once the required rows are done, or once the administrator hides it on this device. + - **Setup's first page keeps the full list**, done rows included, even after the checklist is complete or hidden; a completed list folds to one line with 「Show list」. + + `@object-ui/app-shell` exports a product-neutral `SidebarFooterSlotProvider` (with its `SidebarFooterSlot` and `SidebarFooterSlotPlace` types; places `'sidebar' | 'phoneAppHome'`) that the console fills; the shell names no checklist. `@object-ui/i18n` replaces the per-setting checklist strings in all eleven packs. Added under `console.firstRunChecklist`: `showList`, `hideHere`, `organizationBasics.{title,todo,name,nameRequired,prefilled,save,saved}`, `pill.{label,count,aria}`. Removed from `console.firstRunChecklist` (no reader is left in the console; a consumer that indexed them reads the new keys instead): `showDoneSplit`, `confirm`, `prefilled`, `organizationName.{title,todo,action}`, `languageCountry.{title,todo,saved}`, `timezone.{title,todo,saved}`, `currency.{title,todo,saved}`. +- 844218f: feat(console): the bell opens a full-page inbox from 768 px up + + Clause-②: yes (widening) + Metadata-protocol: none + + From 768 px up, the sidebar's bell no longer opens the right-hand panel: it opens the inbox page at `/apps/APP/inbox` (`/inbox/approvals`, `/inbox/activity`, with `?item=ID` for the selected row), inside the current app's shell, so it can be bookmarked and the browser's Back leaves it. A list on the left, the selected item on the right: + + - **Approvals** — the request's own page, embedded: its fields, approval progress, the applicant's note and the request's declared decision actions, with the same visibility rules and parameter dialogs. A decision moves the selection to the next request and the badge drops with it. + - **Notifications** — the record the notification is about, embedded (its comments stay on the record's full page, one «Open full record» away); opening a notification marks it read, while the row the page shows on arrival stays unread until it is opened. Repeats stay coalesced into one row by topic and title, with every occurrence listed on the right. «Unread only», «Mark all read», and «Load earlier notifications» page beyond the 20 rows the bell badges from. + - **Activity** — the record each activity row happened on. + + J / K move through the list. The inbox links a linkless arrival toast and Home's notifications column used (`sys_inbox_message?view=mine`) now open this page. The zh-Hans name of the surface is 收件箱. The phone keeps its panel, and the `global:notifications` page block keeps the panel at every width. The data, the coalescing rule, the badge count and the decision actions are unchanged. +- 8cce05b: fix(studio): a flow just created in Studio reads 「已停用」 in its header, and the create toast says it is switched off + + Clause-②: no + Metadata-protocol: none + + Creating a flow in Studio publishes it at once, born switched off. The header's Status pill then read 「未发布草稿」 (Unpublished draft): it reads the engine's `/automation/_status` rows, and the create never asked for them again, so the snapshot taken before the flow existed had no row for it, which reads as never published. The create now re-reads the engine status after its publish, as Save and the on/off switch already do, so the header says 「已停用」 (Switched off) right after creation. + + The create toast had reused the Save toast, 「已保存并生效:{items}」, which promises a run the new flow will not do. It now has its own key, `engine.studio.auto.createdOff`: 「已创建:{name}(已停用,启用后才会运行)」 / "Created: {name} (switched off; it runs once you switch it on)". + + The Data pillar's first-object hint no longer ends 「…最后一次发布。」 ("publish once at the end"): objects are live on Save, and it now says each Save takes effect at once. +- e0126e1: fix(studio): the permission matrix draws its flat form only where it fits, so the bulk column no longer covers 「写入范围」 + + Clause-②: no + Metadata-protocol: none + + The Studio Objects permission matrix switched to its full flat form at a 1000 px pane, but the flat table needs 1304 px. Between the two (a 1440 px window gives a 1200 px pane) the table overflowed, and the right-pinned bulk column sat over the write-scope column with nothing to show the pane scrolled sideways. + + The fold width is now the flat table's floor, 1304 px, so one number decides both. Narrower panes get the folded form (the four CRUD boxes, each row's "More permissions", and the "Bulk" menu); 1304 px and wider get the flat form, which always fits. A test pins the fold width equal to the floor. +- d139c7a: fix(studio): the flow header's meta gives way item by item instead of shrinking every item to one character + + In Studio's Automations pillar, the open flow's header shows its meta beside the title: Trigger, Status, Run as, version and, when set, On error. When the row was short of room — with the property panel open, about 80 px were left — every item shrank at once, so the row read as single characters with ellipses. + + Each item now keeps its whole text. When the row cannot hold them all, they drop from the end (On error, then version, then Run as), and hovering the row names each dropped item in full. Trigger and Status always show together: when the row cannot hold those two whole, the meta hides and the hover text names every item. Widen the row and the dropped items come back. The designer's info bar is unchanged. +- 0d727b7: fix(studio): 「新建自己的应用」 on the Studio landing ends with an app, a new object joins that app's menu, and an empty menu is not blamed on access + + Clause-②: yes (widening) — new keys in the published `@object-ui/i18n` packs: the studio namespace (`engine.studio.newApp.*`, `engine.studio.data.appMenu.*`) and all 11 app-shell locale packs (`empty.appMenuEmpty`, `empty.appMenuEmptyDescription`, `empty.openInStudio`). Additive only; nothing is removed or renamed. + Metadata-protocol: none + + The landing's "New app of your own" card opened the create-package dialog unchanged: it created a package and no app, and the author then had to find "Create app" in the top bar, which saved a draft that opened only after a package publish. The card now opens one "New app" dialog, worded for an app throughout (in Chinese it says 「应用」, never 「软件包」), and one confirm creates the package and its app. The app is written and published at once, like every other item a person creates in Studio, so it opens as soon as the dialog closes. A free app name (the package's namespace, else `NAMESPACE_app`) is checked before anything is written, so a taken name refuses the confirm and writes nothing. + + The Studio top bar's left end named an app only when there was one to go back to. A package with no app read "Back to app · Studio" and did not say which package was open; it now shows the package's name in that place. + + The top bar's own "Create app" button and the package dialog on the Packages page are unchanged. + + A new app's menu started empty, and nothing ever filled it: an object created later in Studio did not appear in the app, which opened on an empty screen. Studio's "New object" now adds the new object to the menu of its package's app once the object is live, when the package has exactly one app and no menu entry already opens the object. The entry is written through the design mode's menu save (a draft, then the app's publish), so a draft somebody left pending on the app is refused rather than overwritten. A refused menu save, or a failed read of the package's apps, keeps the object and says so in a warning; the menu can be edited in design mode. With several apps, which menu gets the object stays the author's choice in design mode. + + An app whose menu is empty, as stored, told an administrator to grant access in Setup. For a person who can grant access and author the app (`manage_metadata`), the screen now reads the app's stored menu: when it is empty there too, it says the app has nothing in its menu yet and opens the app's package in Studio. A stored menu with entries this person is not shown, an administrator who cannot author (the stored menu is served to them pruned, and Studio would refuse them), or a failed read keeps the access answer. +- e94eacd: fix(studio): opening an object with no default list view no longer asks the server for a view that does not exist + + Clause-②: no + Metadata-protocol: none + + With no view of an object flagged default, Studio's list-view panel edits `OBJECT.default`, the name its first edit creates the view under. Until then nothing is published under that name, but the panel still read its published layer (`GET /api/v1/meta/view/OBJECT.default/layers`) on every open, and the browser logged the server's 404. The panel now skips that read when the id is the fallback: no view of the object's merged `listViews`, and none of the package's drafted list views, is held under it, read only once the shell's objects and the package's view drafts have answered. The Customize door's served-override read on a read-only base skips the same read and answers as its 404 did. What the panel shows and saves is unchanged. No props or exports change outside `@object-ui/app-shell`'s internal Studio modules. +- 460af0e: fix(app-shell): the console builds on macOS again — two helper modules no longer differ from their component only by letter case + + Clause-②: no + Metadata-protocol: none + + `layout/DesignModeHeaderPins.tsx` sat beside `layout/designModeHeaderPins.ts`, and `views/RecordTabsConfig.tsx` beside `views/recordTabsConfig.ts`. On a case-insensitive file system (macOS by default) an import of the component resolved to the helper, so the app-shell type build and the console bundle failed there (`MISSING_EXPORT`, TS1149) while Linux CI stayed green. The helpers are now `designModeHeaderPinsModel.ts` and `recordTabsConfigModel.ts`, with their importers and unit-test file names updated. No behaviour changes. + + A repo-wide check, `scripts/check-case-colliding-paths.mjs`, now runs in CI through `pnpm check:gitlink-declared` and refuses two tracked entries in one directory whose names, with the last extension dropped, differ only by case. +- ff0d1f1: fix(console): the app-name menu offers 「Design layout」 for the design mode and 「Edit app」 for Studio + + Clause-②: yes (widening) + Metadata-protocol: none + + The app-name menu's 「Edit app」 entered the design mode, which edits only the app's layout (its menu, header pins and page arrangement), and no desktop surface opened the app itself in Studio. The menu now has two entries under the list of apps, in one group with 「Add app」: + + - 「Design layout」 (zh 「设计布局」) turns the design mode on, on the same condition as before. The mode's bar now reads 「Design layout」 too, and so do the strings that name the mode (the leave prompt, the menu editor's notes). + - 「Edit app」 (zh 「编辑应用」) opens this app's package in Studio, on the app switcher's Studio target: an object page opens that object in the Data pillar, a dashboard, page or report its design surface. An installed (read-only) package's app reads 「View in Studio」 (zh 「在 Studio 中查看」) behind an eye instead, and opens Studio's browse-only posture. It is offered on the Studio entry's own condition: a workspace admin holding `manage_metadata`, on an app whose package Studio lists (the console's own Setup, Studio and Account apps get none). + + Two locale keys are added in every built-in pack, `topbar.designLayout` and `topbar.viewInStudio`; `topbar.editApp` keeps its words and now names the Studio entry wherever it is drawn. +- 4f7d6f7: fix(console): the Change Owner dialog's queue target offers the queues an installed app declares, not only the organization's `sys_queue` rows + + Clause-②: no + Metadata-protocol: none + + A queue can live in two places (ADR-0142 D1): a `sys_queue` row the organization authored, or a `queue` item an installed package declares. The Change Owner dialog's queue target searched `sys_queue` alone, so a declared queue could be named everywhere else (sharing-rule recipients, flow approvers) but never picked as a record's new owner. The queue target now lists the declared queues as their own choices under the `sys_queue` lookup, built by `mergeQueueCandidates`, the merge the other queue pickers use. The server resolves a queue name registry-first, so when a `sys_queue` row shares a declared queue's name, the declared queue is the one offered and the lookup leaves that row out. Either choice sends the queue's name, as before. The `sys_queue` lookup keeps its server search and paging; a declared read that fails offers no declared queue and leaves the lookup working. + + `@object-ui/i18n` adds one key, `console.changeOwner.declaredQueues`, in every locale pack. +- 13f5466: Clause-②: no + Metadata-protocol: none + + The dashboard settings panel's hints now read in business terms. Nine field hints of the dashboard authoring form (Name, Label, Columns, Gap, Refresh Interval Seconds, Header, Widgets, Date Range, Global Filters) no longer use developer vocabulary such as "snake_case", "in steps of 0.25rem (4 = 1rem)" or "config". Each one now says what the builder decides. The Columns and Gap hints also describe what an empty value does, in line with the dashboard renderer. + + Only hint text moved. No key, accepted value, label or section title changed, and nothing an author can write or validate is different. The platform metadata-form bundles are regenerated, and the nine hints are re-translated in all ten translated locales (zh-CN, zh-Hant, ja-JP, ko, es-ES, fr, de, pt-BR, ru, ar). The console's own zh-CN overlay for the dashboard panel now uses the same platform wording for these nine hints. +- 0819cab: fix(console): a screen-flow step the run already left is never submitted again + + Clause-②: no + Metadata-protocol: none + + The console's screen-flow dialog no longer resends a step after the run has moved on. Before, a resume could finish on the server while its answer was lost on the way back: a gateway timed out, or the connection dropped. The dialog then kept the step with Next still active. The next press sent that step's values to the screen the run was now on, and the user saw the engine's English refusal, which names the fields. A two-step quote wizard showed this failure after the quote had already been created. + + Before it offers a retry, the dialog now reads the run's paused screen again (`GET /api/v1/automation/FLOW/runs/RUN/screen`). This happens when no answer arrives, and on every failure the dialog would treat as retryable: + + - If the run waits on another screen, the dialog shows that screen with a plain notice: "Your previous submission went through. The flow has moved on to this step." + - If the run waits on no screen (`404`), Next is withdrawn and a plain notice asks the user to check the record before trying again. + - If the run still waits on the same screen, or the read gives no usable answer, the retry and the refusal's sentence stay as before. + + Both notices come from the console catalog (`flowRunner.alreadySubmitted` and `flowRunner.noLongerWaiting`) in every shipped locale. The engine's refusal is unchanged. Nothing to migrate. +- c8d4b90: feat(console): Setup gets one Packages entry, the package list's administration face; the Installed Apps entry retires + + Clause-②: no + Metadata-protocol: none + + The maintainer's ruling on objectstack#36834 amends ruling 甲 of #25098: Setup lists what is installed, with the administration actions only, and the marketplace-only "Installed Apps" entry merges into it. + + - **Setup → Apps → Packages (`nav_packages`).** `@objectstack/platform-objects` contributes one entry to Setup's `group_apps`, gated on `manage_platform_settings` like Setup's other administration entries. It opens the console's `developer:packages` page with `params: { face: 'admin' }`, so the URL carries `?face=admin`. Its label is translated in every locale the Setup bundle carries. + - **The page's administration face.** With `?face=admin`, the Packages page lists every package of every source, with modules folded under their app. It shows the Name, Version, Status, Source and Update columns, plus a Source filter (All, Code, Marketplace, Authored) that writes `?source=`. Its only header action is New Package, and a package created there opens in Studio, on the address the Studio landing's package card opens. The detail sheet offers View info, Disable / Enable and Delete (keeping the choice to keep the data), plus "Open in Studio" on an authored package. Import, Edit, Publish, Revert, Export, Duplicate, Adopt loose items and the pending changes' Publish and Discard are not offered there. An unknown or repeated `face` value is refused by name. With no `face`, the page is unchanged: Studio's "All packages" link and each package card's Manage keep every action. + - **Installed Apps retires.** `MARKETPLACE_INSTALLED_UI_BUNDLE` (`@objectstack/cloud-connection`) no longer carries `nav_marketplace_installed`. The bundle stays exported under its id, with an empty `navigationContributions`, so a host that imports and registers it keeps working. The entry's labels are removed from the Setup translation bundle, and its id joins the dead-key tombstone. A bookmarked `/apps/setup/component/developer/packages?source=marketplace`, which the marketplace page's "Installed" button also opens, still shows the list filtered to marketplace installs, on the administration face. +- 00aa574: Clause-②: no + Metadata-protocol: none + + The report authoring form's Default Period row (Period & export, then Date Range) now names each choice: Today, This month, Last 30 days, Custom… and so on, instead of the stored preset (`this_month`). The options cover the shared preset table one for one, so a preset added later is offered with a name the day it lands. In the Studio report inspector, a Chinese session reads the names from the console's locale packs, the same words the report page's period chip shows (本月, 近 30 天, 自定义…). + + Only the form's option names moved. No key, accepted value or default changed, and nothing an author can write or validate is different. +- d95d34f: Clause-②: no + Metadata-protocol: none + + The report authoring form now names its top-level data rows with the same words as its joined-blocks grid: Data Source, Metrics, Group By and Group Columns By, where they read Dataset, Values, Rows and Columns. One form no longer calls the same setting by two names. The Metrics hint no longer says a metric is only a total or a count; it can be any measure of the data source, such as an average or a ratio. The File Name hint now says what the download does: the prefix takes the place of the report's label, and an empty prefix names the file after the label, or after the report's name when it has no label. + + Only prose moved. No key, accepted value, default or section title changed. The platform metadata-form bundles are regenerated, the File Name hint is re-translated in zh-CN, ja-JP and es-ES, and the console's zh-CN overlay now follows the current English for the Date Range and Runtime Filter hints. +- 91bb024: fix(console): following a record link on a screen flow's result screen closes the flow dialog + + Clause-②: no + Metadata-protocol: none + + On the last screen of a multi-screen screen flow, the screen that links the records the flow created, following one of those links now closes the flow dialog. The user lands on the record with nothing on top of it. + + Before, the dialog stayed open over the record page and showed the flow's first screen again, with its inputs and a live Next. The record page draws a loading state on every record change, and the dialog was rebuilt from the step the run first paused on. Pressing Next sent the first screen's values to a run that was already on its last screen, and the user saw the engine's English refusal ("Invalid screen input: Unknown screen field …"). A lead conversion and a quote wizard both showed this after their records had been created. + + Following a link in the same window now closes the dialog before the page changes: + + - On a result screen (only record links, nothing after it), the run is also completed, the same way Done completes it: the completion toast, the refresh, and the host's completion callback. + - On any other screen, the link closes the dialog the way Cancel does and resumes nothing. + - A link opened in a new tab or window leaves the dialog where it is. + + `ScreenView` takes an optional `onRecordLinkFollow` callback for this; the Studio preview passes none. Nothing to migrate. +- 84b1e0c: feat(spec): Studio list columns for 27 metadata types, served in the reader's language on both doors + + Clause-②: yes (widening: `/meta/types` serves `list` on 26 more entries, and the runtime dispatcher's listing is now translated) + Metadata-protocol: none + + `METADATA_LIST_REGISTRY` now declares the Studio list columns of 27 metadata types: the first batch (`hook`, `flow`, `job`, `api`, `action`, `report`, `dataset`, `email_template`, `assignment_rule`, `sharing_rule`, `queue`, `agent`, `tool`, `skill`, `doc`, `seed`, `mapping`, `picklist`, `translation`) and the eight types the console used to declare itself (`object`, `field`, `view`, `page`, `dashboard`, `permission`, `position`, `book`). Every column names a key the type's schema declares, checked by the reconciliation test. Nothing an author writes changes: the registry is the spec's own constant. + + - **Headers in every shipped language.** The 52 headers no form field already labels get their own `metadataForms.<type>.fields.<path>.label` leaf in the 11 platform bundles (`@objectstack/platform-objects`), translated in all ten non-English locales. A column the form labels reads the form's words. + - **Both doors translate the listing.** The runtime dispatcher's `GET /meta` and `GET /meta/types` now answer the types listing in the request's language, as `RestServer`'s `GET /meta` does: type labels, form labels, list headers and schema titles. Both run one function, `translateMetaTypesListing` (`@objectstack/rest`). Before this, a host served through the dispatcher answered all of it in English. + - **The console's own declarations move into the spec.** Studio's lists of objects, fields, views, pages, dashboards, permission sets, positions and books read the served columns. The console keeps only what the schema cannot say: a field row's server-stamped `object`, a position's holder count and granted permission sets, a view's derived display type, a book's audience and a sharing rule's `sharedWith` rendering. The console declared `object`'s columns twice, in two registrations that disagreed (the later one won); both declarations are gone, so one remains, in the spec. A page's former `route` column named no `PageSchema` key and is dropped. What an admin sees in Studio (`@object-ui/app-shell`): the metadata lists of all 27 types show the spec's columns, in the declared order, with headers in the reader's language. The moved lists lose the console's fixed column widths (the view list's display type and the book list's audience keep theirs), the Fields list reads name, type, label, then object, the sharing-rule list's header reads "Access Level" where it read "Access", and the Pages list shows type and description in place of the dropped route column. A summary cell reads an expression member as its source, so the Jobs list's schedule shows a cron job's expression (`cron · 0 2 * * * · UTC`), not only its kind and time zone. +- 49c6bf3: fix(fields): an action's lookup param honours the borrowed field's `allowCreate: false`, and a record created in a filtered picker that fails the filters is not selected + + Clause-②: yes (widening) + Metadata-protocol: none + + - **A field-backed lookup param reads the field's `allowCreate`.** A param written `{ field, objectOverride }` already took the field's `lookupFilters`, `lookupColumns`, `lookupPageSize` and `descriptionField`, but not `allowCreate`. As a result, a field declaring `allowCreate: false` still showed "+ New" in an action's picker. `resolveActionParams` now copies it, app-shell's `paramToField` forwards it to the record-header dialog's picker, and the selection toolbar's dialog carries it through `resolvePromotedBulkParams`. Both the desktop popover and the phone drawer honour it. `@object-ui/core`'s `ActionParamDef` gains the optional `allowCreate` member it travels on. An author who writes `allowCreate` on a raw param is warned by name in development, like the other inherited picker keys: the spec's `ActionParamSchema` does not declare it. + - **A quick-created record is selected only if the picker could have offered it.** The create form accepts whatever the user enters, so the new record can fail the field's `lookupFilters`, for example a `draft` where the field asks for `approved`. The picker used to select it anyway, and the save or action that read the field then refused it. The picker now re-reads the new id through its own filter, the field's `lookupFilters` and `dependsOn` scope combined with the id. If the server does not return the record, it is not selected, and the picker reopens with the line `lookup.createdOutsideFilters` ("The record was created, but it does not match this field's filters, so it cannot be chosen here."), in every shipped locale. If the check itself fails, the record is not selected either, and the line `lookup.createdUnchecked` says the record was created but could not be checked, so the user searches for it instead of creating a duplicate. A picker with no filter selects the new record as before, without the extra read. + - **A create notice no longer hides the candidate list.** A create notice (the two lines above, or a failed inline create) now sits above the list instead of replacing it, so the user can pick an existing record straight away. Closing the picker clears it. Before, a failed inline create hid the list and its create entry until the widget was remounted. +- faf1d5f: fix(console): a design-mode menu rename in the source language over an inline locale-map label keeps the other languages + + Clause-②: no + Metadata-protocol: none + + A menu entry's label can be written as an inline locale map, for example `{ en: 'Orders', 'zh-CN': '订单' }`. The menu is served with that map as it is stored, so a rename typed in the app's source language goes to the stored label, and the save used to write the new name as a plain string over the whole map: every other language's text was lost from the app. The save now replaces only the entry the editor showed for the session language (`{ en: 'Sales orders', 'zh-CN': '订单' }`), adds that entry when the map has none, and a cleared name drops only that entry. The entry is chosen the way Studio's navigation editors choose it. A plain-string label is replaced by the typed name as before, and where a rename lands (the stored label or a translation) is unchanged. +- 6902acb: internal: move-only — Studio's Data, Automations and Access pillars move out of `StudioDesignSurface.tsx` into their own modules, taking it from 8,010 to 1,715 lines + + Clause-②: no + Metadata-protocol: none + + No behaviour change. Under `views/studio-design/`, `DataPillar.tsx` holds the Data pillar with its records-grid slot (`renderStudioGridList`) and its object draft-save shape. `AutomationsPillar.tsx` holds the Automations pillar and the published-flow-names read only it makes. `AccessPillar.tsx` holds the Access pillar with its "New similar" arrival reader and the list-row name label only it draws. The moved code is byte-identical apart from its imports. `StudioDesignSurface.tsx` imports the three pillars from there and re-exports them, with `renderStudioGridList`, so every import of them keeps working. The package's public exports are unchanged. +- 9c57bd2: refactor(studio): every Studio address comes from one builder; no address changes + + Clause-②: yes (widening) + Metadata-protocol: none + + Studio redesign groundwork (#36895, epic #36890). Every place that produced a `/studio...` URL now calls one builder, so a later change can move an item type to its metadata address in one place. Every address is byte-for-byte what it was: no link, bookmark or redirect changes. + + - **Console.** `studioAddress.ts` in `@object-ui/app-shell` builds every Studio address: the landing, a package, a pillar, an item (`studioItemPath`), the "All metadata" area, and the draft review links. `studioAddressTable.ts` lists every address family, every `?surface=` spelling and every query parameter, with what each becomes on the metadata address. The retired `/interfaces` redirect keeps exactly the parameters that table marks. New exports from `@object-ui/app-shell`: `STUDIO_ROOT_PATH`, `STUDIO_HOME_PILLAR`, `studioLandingPath`, `studioPackagePath`. Existing exports keep their names and values. + - **Server.** `studioChangesReviewLink` and `studioItemReviewLink`, new in `@objectstack/types`, build the review links that `os meta register` prints and that the MCP authoring tools return after a draft save. The text an AI is handed is unchanged. + - **Guards.** A test under `ui/` refuses a hand-built Studio address in any ui source. A test in `@objectstack/types` refuses one in any server package, and holds the review links quoted by the `objectstack-mcp-build` skill's evals equal to what the builder returns. +- bac4864: feat(console): the metadata list keeps its search, filters, sort and scroll position across a trip to an item and back + + Clause-②: no + Metadata-protocol: none + + The generic metadata list (Setup's catalog lists and Studio's "All metadata" area) held its search text, its source filter, "only customizations" and the activation status filter in component state, so opening an item and coming back, or refreshing the page, reset all of them. They now live in the list's address as page-scoped params: `q` (search), `source` (`artifact` / `runtime`), `customized=1`, `status` (`active` / `inactive`) and the new `sort`. A value at its default is left out, so an untouched list keeps its clean address, and every change replaces the history entry instead of adding one, so Back leaves the list rather than paging through keystrokes. The `package` and `scope` params keep their meaning. + + The list gains a sort control: by API name or by label, each way. The default is by API name, A to Z; before this change the list kept the server's order. + + Each row link now carries the list's non-default params to the item page, and the scroll position of the list is restored when the same list address is shown again in the same tab (Back, or a link to the list with the same params). + + New module `metadataListState.ts` beside the page holds the codec, the list's filter and sort (`applyListState`) and `orderedListNames`; the new `useListOrderedNames(type)` hook gives an item page the names of its list in that order, read from its own address — every item of the scope by API name when the address carries no list context. Neither is exported from the package root. + + New locale keys in the studio catalogue (en, zh): `engine.list.sort`, `engine.list.sort.name.asc`, `engine.list.sort.name.desc`, `engine.list.sort.label.asc`, `engine.list.sort.label.desc`. +- c48f06c: feat(app-shell): every metadata type's list is drawn by ObjectGrid, and its New on a read-only base creates in the base's paired `.custom` package + + Clause-②: yes (widening) + Metadata-protocol: none + + - `@object-ui/plugin-grid`: `ObjectGrid` takes two generic host props for its table view — `hostCells` (a host draws a column's cells) and `rowTint` (a palette name per row, over `rowColor`). + - `@object-ui/app-shell`: the metadata list (Setup and Studio's All metadata area) is an `ObjectGrid` fed a declared schema and the page's rows in the list's own order; diagnostics tint, lock, the Active switch, Clone, the served columns and the 「修改时间」 column (its time, its unpublished-changes mark and its `changed` sort, objectstack#36898) are the page's cells; sort, search and page live in the address. The grid's personal columns, export, selection and inline edit are off for it. + - On a read-only base in Studio, the list's New creates in the paired `.custom` package (ADR-0146 D3): an object (with its organization-wide sharing default) and a flow (from a starting point) open the list's create dialog; another type opens the area's create in the pair. Under the customization wall no New is offered. +- 8c29b81: feat(console): the metadata list shows when each item last changed and marks items with unpublished changes + + Clause-②: yes (widening) + Metadata-protocol: none + + The generic metadata list (Setup's catalog lists and Studio's "All metadata" area) gains a 「修改时间」 / "Modified" column, read off the list answer's `changedAt` sibling. Only an item served from a stored row has a time; a code-shipped item shows an empty cell. The sort control gains "Modified (newest first)" and "Modified (oldest first)", which ride the address as `sort=-changed` / `sort=changed`; items without a time sort last either way, and the item page's ‹ › follow the same order. + + Beneath the time, an item with a pending draft on the existing `GET /api/v1/meta/_drafts` ledger is marked 「有未发布的改动」 / "Unpublished changes", including drafts that existed before this change. A draft the AI assistant wrote (any of its recorded changes made by the AI copilot or through the MCP build door, the rule the item page's AI line uses) is marked 「AI 的改动未发布」 / "Unpublished AI changes" instead. A publish removes the mark. + + `MetadataClient.listResponse` now returns the list's `changedAt` beside the items (each entry read with the spec's own rule; an entry that does not parse is dropped, and absence stays absence). `list` is unchanged. + + New locale keys in the studio catalogue (en, zh): `engine.list.sort.changed.asc`, `engine.list.sort.changed.desc`, `engine.list.col.changedAt`, `engine.list.draftMark.human`, `engine.list.draftMark.humanTitle`, `engine.list.draftMark.ai`, `engine.list.draftMark.aiTitle`. +- a68b475: feat(studio): a collapsible left menu of six groups replaces the top pillar nav + + Clause-②: yes (widening) + Metadata-protocol: none + + ADR-0084 (amended) · #36899, part of #36890. + + - **Studio's one navigation is a left menu.** The top bar's Data / Automations / Access / All metadata switcher is gone. Every Studio page (a package's pillars and area, the package-less flows `~org`, and the cross-package leg `~all`) draws the same menu of six groups: Data, UI, Automation, Platform, Access, AI (数据、界面、自动化、平台、访问、AI). Each group lists the metadata types the package holds (the directory's own rule, `scopeDirectoryEntries`), with a type count per group and an item count per type, and a search box that narrows the entries. A type entry opens that type's list in the area; an item of an object, flow or permission set still opens its designer. Four entries are not a type: Organization flows (`~org`, under Automation), Default sharing (the Access pillar's OWD overview, under Access), Diagnostics (under Platform) and Positions and permissions (the environment catalog on `~all`, under Access). + - **It collapses like the app sidebar, under its own cookie.** It is the app sidebar's primitive: the header's toggle hides and shows it, the state survives a reload under `studio_menu_state` (never the app sidebar's `sidebar_state`), and below 768 px it is a drawer. `SidebarProvider` (`@object-ui/components`) takes a new optional `cookieName` prop for that; the default is unchanged. + - **The menu names the `system` group Platform / 平台 and the `security` group Access / 访问**, the amended ADR-0084's group names, through its own `studioMenuGroupLabel`. The shared domain dictionary (`translateMetadataDomain`) is unchanged: Setup's datasource pages and the rest of Studio still say System / 系统 and Security / 安全. + - **`~all` is drawn in the builder's shell.** `/studio/~all/metadata/*` is served by the same route as a package's area, so it has the left menu too; the landing's frame no longer draws it. A `~org` area URL (or `?package=~org`) now lands on the package-less flows instead of being read as a package. + - **「‹ Back to app」 names the current package's app** (decision 5), never a remembered app of another package; a package with no app names the package and goes to the apps home. + - Changes and Publish stay at the right end of the top bar, beside Cancel and Save. +- 355c73c: feat(studio): ⌘K on every Studio design page lists the package's whole menu and its items + + Clause-②: no + Metadata-protocol: none + + Studio redesign: an author switches between items with ×, ‹ › and ⌘K · #36900, part of #36890. + + - **⌘K / Ctrl+K opens the command palette on every Studio design page.** That covers a package's pages and its "All metadata" area, the organization's own flows, and the cross-package positions-and-permissions catalog. Until now only the Studio start page had a palette, and the cross-package catalog had lost the one it used to have. + - **On a package it lists the left menu, group by group**: Data, UI, Automation, Platform, Access, AI (数据、界面、自动化、平台、访问、AI), in the menu's order and under the menu's names. Each group holds the menu's own entries (each type's list, Organization flows, Default sharing, Diagnostics, Positions and permissions), then every item of the types it lists, the package's customizations included. Each item shows its type on the right; a customization is marked "Customization of" the package's name. The packages stay listed, so another package is one pick away. On a package the palette no longer lists every package's objects and flows: the package's own items replace them. The organization's flows and the cross-package catalog keep those lists and add their own menu entries. + - **A pick opens what the menu and the lists open**: an object, a flow or a permission set in its designer, any other item on its own page in "All metadata", exactly where its list row leads. A menu entry goes where the menu entry goes. + - **It never drops unsaved work silently.** A pick, like Studio's Back to app, asks first whenever the page holds unsaved edits, the "All metadata" item page's included. A pick of the page already open on another view (Default sharing, from the Access page) reopens that page on it; a pick of the page already shown just closes the palette. + - The query matches an item by its label, its name or its type, and a menu entry by its label, its type or its group. While the package's lists are still loading, an empty result says "Searching…". The item lists are read only once the palette opens. + - Pressing Escape to close a dialog over a full-screen item editor (the palette, for one) no longer also leaves full screen. +- c75453e: feat(studio): a metadata item fills the content pane under one detail header, and its tools are tabs instead of side sheets + + Clause-②: no + Metadata-protocol: none + + Studio's generic item page and the form editor of an email template or a translation now draw the shared Studio detail header: × back to the type's list (its search, filters, sort and package scope kept), ‹ › to the previous and next item in the list's order with "index / total", the type and source package as chips, and the page's actions at the right. Both × and ‹ › ask first when the page holds unsaved edits; the browser's Back is not intercepted. + + The six side sheets of the generic item page are tabs of the page: Details, Preview (a type with an editing canvas), Related (a type with anchors), Referenced by, History (the versions with rollback, and the audit log read inside it; shown to a caller who may read the authoring trail) and Source (the JSON source, and the layered comparison read inside it, for read-only callers too). The open tab is in the address as `?tab=`; the values the sheets wrote still open the same place (`?tab=layers` opens Source on the layers, `?tab=audit` opens History on the audit log). The draft review is a status chip in the header while a draft is pending, and `?review=1` still opens it. + + On a type with a canvas the page opens on Preview; Details shows the whole item's form. Both edit one draft, and one Save (the header's button, ⌘S or autosave) saves it whichever tab is open, so a tab switch keeps every unsaved edit. + + The address `/studio/PACKAGE/metadata/TYPE/NAME/history` opens the item on its History tab; the permission set, whose item page is its own matrix editor, and an item a pillar's designer opens (a flow, an object) keep the standalone history page there. + + New in `@object-ui/app-shell`: `item-tools/ItemToolTabs.tsx` (the tab strip, the address helpers and the References, History and Source panels, for the designers to mount) and `metadata-admin/ResourceDetailHeader.tsx`. New locale keys `engine.studio.itemTabs.*` in the studio catalogue (en, zh). No metadata changes; nothing to migrate. +- 1e96009: feat(studio): the generic item page's Save takes effect at once; an AI draft gets the designers' notice and discard + + Clause-②: yes (widening) + Metadata-protocol: none + + Studio's generic item page saves the way the designers do. Save writes the item's draft and then publishes that one item (`POST /meta/:type/:name/publish`, at the same package and bundle member), so the change is live at once and there is no second Publish step. The draft save keeps its version pin and conflict dialog, and the publish is now pinned to the published version the page loaded: when another editor published the item in between, the same dialog asks to reload, overwrite or keep editing. A create publishes right after its first save. The auto-save switch is gone, and edits wait for Save, ⌘S or the destructive-change confirmation. + + A refused publish shows its reason above the editor in the designers' words, with the server's text under Details. Nothing goes live, the draft the Save wrote is taken back, and the edits stay on the page, unsaved. + + A pending draft written by the AI assistant (the copilot or an MCP client) is the version on screen, under the designers' line: saving makes it live too, and "Discard AI changes" drops that one item's draft, asking first when the page holds unsaved edits. A pending draft a person wrote before this change is marked "This item has unpublished changes", with its own Publish and Discard for that item. The header's Publish and discard buttons are gone. + + Leaving the page with unsaved edits still asks first through ×, ‹ ›, the side menu, in-app links, reload and close. The browser's Back is not intercepted. + + `@object-ui/data-objectstack`: the exported `MetadataLayered` type gains an optional `overlayVersion` member (`string | null`), and `MetadataClient.layered()` now forwards the served `overlayVersion` into it. The client used to rebuild its answer field by field and drop it, so a Studio Save's publish was never pinned on a server that serves it. + + Locale keys `engine.edit.unpublishedChanges` and `engine.edit.unpublishedPublishDirty` are new, and `engine.edit.autoSaveOn`, `engine.edit.autoSaveOff` and `engine.edit.autoSavingShortly` are removed (en, zh). The per-browser `metadata-admin:autosave` setting is no longer read. No metadata changes; nothing to migrate. +- 886e970: feat(studio): a permission set opens full-screen at its metadata address; the record-visibility overview gets its own route + + Clause-②: no + Metadata-protocol: none + + A permission set in Studio now opens at its own address, `/studio/PACKAGE/metadata/permission/NAME`, full-screen beside the left menu, instead of the Access pillar's rail and workbench. The header is the one every full-screen item page has: × back to the list of sets (its filters kept), ‹ › through it, the set's label (its machine name on the title's tooltip), type and package, and a ⋯ menu. The Access pillar's own page and its list of sets are gone. The tab row is the matrix's five sections (Objects, System capabilities, Row-level security, Tab visibility, Delegated admin), then References, History and Source; History replaces the matrix's History sheet and is addressable (`?tab=history`). Save stays the Studio top bar's, and leaving with unsaved edits (×, ‹ ›, the menu, a reload, closing the tab) asks first; the browser's Back button does not ask. + + What the pillar drew around the matrix comes along: Discard draft, Explain access, the suggested-audience strip, and on a read-only base "New similar", now in ⋯ and also on each of the base's rows in the list of sets; the copy opens at its own address with the strip saying where it landed. A draft the AI assistant left (copilot or MCP) shows the designers' notice, and 「放弃 AI 的改动」 drops that one set's draft; a person's own leftover draft keeps Discard draft. + + The organization-wide default sharing overview ("Who can see which records") is a page of its own, `/studio/PACKAGE/owd`, the Access group's menu entry; a set's per-object visibility badge opens it on that object (`?object=NAME`). + + Old addresses keep working: `/studio/PACKAGE/access?surface=permission:NAME` redirects to the set's address (a set a read-only base's `.custom` pair adds, a "New similar" copy among them, to the pair's address, where it opens writable as the pillar opened it), `?surface=owd:overview` to the overview, and a bare `/studio/PACKAGE/access` to the list of sets; other query parameters are kept. `/studio/PACKAGE/metadata/permission/NAME/history` opens the History tab. The cross-package leg (`/studio/~all/...`) keeps the matrix's environment page. No locale keys, props of published packages or exports change: the catalogue rows only the Access pillar read stay in `@object-ui/i18n`, unread. +- 57445a6: fix(console): a per-record bulk flow action counts a refused record as refused, with its own message, and stacks no refusal notice + + Clause-②: yes (seat ruling: the published `@object-ui/types` `ActionResult` gains a member; L1-a owes a lane-keep L2 review) + Metadata-protocol: none + + The published `@object-ui/types` adds two optional members, `ActionResult.refusal` and `ActionContext.reportsRefusal`. Nothing existing is narrowed. + + A list view's selection bar can run a `type: 'flow'` action once per selected record. A run that ended on an `end` node with `outcome: 'refused'` answers `200` with `status: "refused"` and a `refusalMessage`. Before this change the bulk result counted such a record as succeeded ("Succeeded 3 / 3"), and one refusal dialog opened on top of the result showing a single record's message, so the other refused records' reasons were lost. + + - The result now counts refused records apart: "Succeeded 1 / 3 · Refused 2". Each refused record is listed with the sentence the flow wrote for it. A refused record has no Retry and is not written to the error CSV: re-running it would get the same answer. When a failed record is retried and the action refuses it, it moves to the refused list. + - No refusal dialog opens during a bulk run. The same action launched from a row menu still opens its Close-only refusal notice, unchanged. + - `ActionResult.refusal` (`{ message }`) is set by the console's flow launch on a run that ended `refused`, beside `success: true` and `handedOff: true`. A caller that counts outcomes reads it as refused, never as done. + - `ActionContext.reportsRefusal` is passed for one dispatch through `ActionRunner.execute`'s `callContext`. A caller that lists refusals itself sets it, and the console's flow handler then opens no notice of its own. +- 1f3e9f6: fix(console): a per-record bulk flow action counts a record whose run paused at a screen as waiting for input, and every paused record's screen opens in turn + + Clause-②: yes + Metadata-protocol: none + + The published `@object-ui/types` adds one optional member, `ActionResult.paused`. Nothing existing is narrowed. + + A list view's selection bar can run a `type: 'flow'` action once per selected record. A run that reaches a `screen` node pauses and waits for input. Before this change the bulk result counted such a record as succeeded ("Succeeded 3 / 3"), and the console held one paused run at a time: each paused record replaced the previous one, so only the last record's screen opened and the other records' runs waited at screens nobody could reach. + + - The result now counts paused records apart: "Succeeded 1 / 3 · Waiting for input 2". Each waiting record is listed by name, under a line saying its screen opens next. A waiting record has no Retry and is not written to the error CSV: a re-run would start a second run. When a failed record is retried and its run pauses, it moves to the waiting list. + - The console now queues paused runs. Its flow runner shows the first paused record's screen, and closing or completing it shows the next one, until none is left. This holds for the console's list runtime and for a list on a record page. + - `ActionResult.paused` (`{ runId }`) is set by the console's flow launch on a run that paused at a screen, beside `success: true` and `handedOff: true`. A caller that counts outcomes reads it as waiting, never as done. +- 305fe60: fix(i18n): the full search page names component, doc and link results in every language + + Clause-②: no + Metadata-protocol: none + + The console's full search page (opened from the command palette's "Open Full Search Page") titles each result group and badges each result by the navigation item's type. Component items, doc items and link items printed raw keys (`search.typeComponents`, `search.badgeDoc`, `search.typeUrls`, …) because no locale pack defined them, English included. Every shipped console locale pack now carries a heading and a badge for the three types, and the search placeholder and its accessible label also name components and docs. A new test in `@object-ui/app-shell` renders the page with one navigation item of every spec type and fails when any heading or badge key the page asks for is missing from a pack. +- 4c4a677: fix(console): the AI-build entries show only where the agent catalog serves the build agent, and an old build conversation still opens + + Clause-②: no + Metadata-protocol: none + + A deployment can close in-app building with AI: its agent catalog then keeps `ask` and no longer lists `build`, and the chat route refuses `build`. The console's build entries now read the catalog for the build agent itself (alias-aware, `build` or its legacy id), never "any agent" and never a hosted or self-hosted guess: + + - The sidebar app menu's 「Add app」 and the desktop's no-apps empty state offer "New in Studio" (Studio's new-package flow) instead of "Build with AI"; the template and marketplace choices stay. + - Home's builder chip takes its "New in Studio" form, as it already did for an empty catalog, instead of "Build an app". + - Studio's AI copilot is not drawn; the right panel shows the properties alone, as for an empty catalog. Asking stays in the console's chat drawer. + - The full-page chat address `/ai/build/ID` lands on `/ai/ask/ID` and opens that conversation, instead of `/ai/ask` without it. A maker's bare `/ai/ask` is not redirected to `/ai/build`. + + Where the catalog serves `build`, every entry behaves as before. `useAiSurfaceEnabled()` also returns `buildServed`; no locale keys change. +- adb3aef: fix(console): Settings, Packages, Audit Log and the connector pages send the stored bearer token, so a session the rest of the console accepts works there too + + Clause-②: no + Metadata-protocol: none + + These Setup surfaces called their endpoints with the session cookie only (`credentials: 'include'`), while the rest of the console sends the stored bearer token through its authenticated fetch. A session held by its bearer token alone (a second local runtime on the same host replaced the cookie, the cookie was blocked as a third-party cookie, or the cookie jar was cleared) therefore worked everywhere except here, where each page printed the server's `401` instead: "Authentication is required to access this endpoint.", a bare `UNAUTHENTICATED`, or, on the Audit Log, the raw response body followed by "No audit entries". + + They now go through `createAuthenticatedFetch` from `@object-ui/auth`, the path every other console request takes: every `/api/settings` call and the judged client-address read of the Authentication and Access policy pages, the Audit Log read, the connector credential and connection doors, the Packages list (the Installed Apps address included), and this runtime's own install ledger (`/api/v1/marketplace/install-local*`) and cloud-connection reads (`installed`, `org-packages`). The session cookie still rides along (`credentials: 'include'` is unchanged), so a cookie session behaves exactly as before, and a `401` now reaches the console's session-ended check as it does on every other page. Nothing changes in what the server accepts. + + A failed Audit Log read no longer draws the "No audit entries" empty state, and its alert shows the refusal's own sentence when the response envelope carries one, or "Failed to load audit log" otherwise, never the raw response body. +- 0bfd12c: fix(console): the record drawer's bar opens the assistant + + Clause-②: no + Metadata-protocol: none + + The record side drawer is drawn over the right end of the console's top bar, where the assistant's one entry (the robot) sits, so while a record was open in the drawer the assistant could not be opened. The drawer's bar now carries an 「AI Assistant」 control wherever the robot is drawn (the runtime serves AI): it opens the record as its full page, as 「Open as full page」 does, with the assistant open beside it. Both drawers carry it: the object list's (and a record page's) drawer, and the data page's. Without the assistant no control is drawn. The label is the robot's own, already in every locale. +- 06c1f54: feat(console): a chat conversation can be pinned to one record — sent as `context.focus` on every turn, shown as a chip in the composer, kept across navigation — where the agent declares `capabilities.focus` + + Clause-②: yes + Metadata-protocol: added + + **Contract (`@objectstack/spec`).** `ToolExecutionContext` gains `focus?: { object: string; id: string }[]`, beside `surfaceContext`: the record(s) the conversation is pinned to, as the client reports them on every turn. Client-reported and advisory, never an access decision; a consumer re-reads the record as the caller. At most one entry in phase 1. The agent catalog row (`AiAgentCapabilitiesSchema`, `GET /api/v1/ai/agents`) gains an optional `capabilities.focus: boolean`: an agent that honours the focus says so, and an absent flag reads as false. Both are additions; nothing is removed or renamed, and every catalog row served before the flag still parses. + + **Console (`@object-ui/app-shell`, `@object-ui/plugin-chatbot`, `@object-ui/i18n`).** Where the agent the chat runs declares `capabilities.focus: true`: + + - The composer's page chip is drawn in the row above the input (where the drafts line sits) instead of on the input's top edge, and carries a pin when the page shows one record (a record page, or a record open in a list's drawer). Pinning makes every later turn send `context.focus: [{ object, id }]`, the first turn of a new conversation included, until the user removes it with the chip's remove control. + - The pinned record's chip replaces the page chip and names the record by its display name, read in the browser as the user; a record the user cannot read keeps its `object · id` pair. + - Opening another record while one is pinned asks once whether to ask about that one instead; a decline is remembered for the conversation. + - The focus belongs to the conversation: it never changes which conversation the drawer shows, and it is restored when that conversation is shown again in the same tab. + - `setChatFocus({ object, id })` (exported from `@object-ui/app-shell`) is the setter every entry point pins through. + + Where the agent does not declare the flag — every server today — nothing changes: no pin, no chip, no `focus` key in the request, and the page chip stays where it was. `AgentCapabilities` in `@object-ui/plugin-chatbot` gains `focus`, read from the catalog; unlike the build-era capabilities it has no name-based fallback for older servers. New locale keys `console.ai.focus.pin`, `.pinned`, `.remove`, `.switchPrompt`, `.switchAccept` and `.switchDecline`, in every pack. +- 893eac8: fix(console): re-ticking a dashboard card's "Apply" for a page filter restores the field the app binds it to, so an opt-out can be undone + + Clause-②: no + Metadata-protocol: none + + In the dashboard's own edit state (and in Studio's dashboard editor), unticking "Apply" under a card's "Follows the filters at the top of the page" writes the card's opt-out (`filterBindings: { NAME: false }`). Ticking it again used to drop the entry, which makes the card follow the filter's own field rather than the field the app binds it to. A dashboard save stores the whole document, so the re-target the app ships (for example `dateRange: 'signed_on'` on a card whose dataset has no `issued_on`) was lost: the save then bound the card to a field its dataset lacks, the publish was refused (`dashboard-filter-field-unknown`), and the opt-out stayed in force with no way to undo it from the editor. + + Re-ticking now restores the binding the dashboard as shipped by its package gives that card (the layered read's `code` layer) when it re-targets the filter to a field; where the shipped card opts out too, or binds nothing, the entry is dropped as before. The edit state reads the shipped layer in the same layered read it opens the document from, and Studio's editor hands it to the card panel from the read it already makes. Nothing else a save writes changes, and no new strings. +- ad604c1: fix(app-shell): the package list, Studio, AI chat and draft screens send the stored sign-in token, so a session held by its token alone keeps its packages, Studio and design entries + + Clause-②: no + Metadata-protocol: none + + These screens asked this server for their data with the session cookie only, while the other same-server console requests also send the stored sign-in (bearer) token. A session held by its token alone (a second local runtime on the same host replaced the cookie, the browser blocked it as a third-party cookie, or the cookie jar was cleared) was refused there. The most visible case was the package list behind the sidebar, the app header, the command palette and the Studio entries: every package went missing, and the Studio and design entries with it, with no error shown. + + They now send the token as well: + + - packages: the package list and the package switcher, creating a package's customization package, duplicating a package, a package's customizations, and the package form; + - Studio: the automation status, cloning a flow, cloning a permission set, the flow picker and connector inputs, a flow's run history and node palette, the page preview, the sharing-rule catalog and catalog activation, and the packaged action and flow ledgers in Setup; + - drafts: the pending drafts, the unpublished-app bar, the draft changes panel and its flow checks, and the commit history with its revert; + - AI: the conversation list and conversations, the build-debug report, AI usage, and suggested bindings; + - the inbox bell, the approval feeds and a record's approvals, and changing a record's owner; + - the shell: the no-access state, the deployment notice, the connect-agent widget, the context selectors (only for requests to this server's own origin), the design-mode language list, and the marketplace's install steps on this server. + + The session cookie is still sent, so a cookie session behaves exactly as before, and a refused request now reaches the console's session-ended check. A few requests stay cookie-only for now, among them sign-in, the OAuth hand-off, public forms and calls to the cloud control plane; they are unchanged. Nothing changes in what the server accepts. +- 2af9729: fix(studio): one name per group: the directory and a type page's badge say Platform / Access, like the menu + + Clause-②: no + Metadata-protocol: none + + ADR-0084 (amended) · part of the Studio redesign follow-ups. + + - **The shared domain dictionary (`translateMetadataDomain`) names the `system` group Platform / 平台 and the `security` group Access / 访问**, the amended ADR-0084's group names. It used to say System / 系统 and Security / 安全 while the Studio left menu said Platform / Access. + - **Every place a group is named now reads that one dictionary:** the Studio left menu (`studioMenuGroupLabel` reads it instead of its own two keys), the All metadata directory's group headings and domain chips, and the domain badge on a type or item page (`PageShell`). Setup's datasource pages draw the same badge, so a datasource reads Platform / 平台 there too, the group ADR-0084 puts it in. + - The menu-only keys `engine.studio.menu.groupSystem` and `engine.studio.menu.groupSecurity` are removed from the `studio` namespace (en and zh); nothing reads them any more. +- 8e5ad14: Clause-②: no + Metadata-protocol: none + + The AI assistant no longer names the agent in its header when only one agent is offered: there is nothing to switch, so the row read only "Ask". In the right-side drawer, where Share and the Build Doctor sit in the drawer's own title bar, that leaves the row empty, so it is not drawn at all. With two or more agents the switcher is unchanged; the full-page assistant keeps its row for Share. +- 6161010: fix(console): on a desktop the ⌘⇧H row names the app start page it opens, not the retired home page + + Clause-②: no + Metadata-protocol: none + + From 768 px up the platform home page is retired: `⌘⇧H` / `Ctrl+Shift+H` (unchanged) opens where `/` lands, the last-used app's start page. The keyboard-shortcuts dialog and the app pill's menu still called that 「Back to home」. On a desktop both now read 「Back to app start page」 (zh: 返回应用起始页), one wording for the one destination; the pill's row keeps its `⌘⇧H` keycaps. A phone, whose Home is still its app list, keeps 「Back to home」 in the dialog. + + Locale value change, no new key: `layout.appSwitcher.backToHome` in every built-in locale. No props or exports change. +- 93bd459: feat(console): an app's documentation pages draw in the app shell from 768 px up + + Clause-②: no + Metadata-protocol: none + + From 768 px up every app page lost the top bar and keeps the app menu, search, notifications and account in the sidebar. An app's documentation pages (`/apps/APP/docs`, a book, a flat doc link, an article) were the one exception: they kept the top bar at every width and mounted no sidebar. They now draw like every other app page there: no top bar, the resident sidebar with its usual head (the app-name menu, collapse, search, notifications) and foot (the account), and the page header's button group (assistant and help) at the top right. + + The documentation still has one navigation, its own: the sidebar's body carries the docs column (「← Back to APP」, every book of the app with the current one open, a title filter and 「All documentation」) in place of the app's menu. The reader no longer draws that column inside the page there. The app's other docs pages (its docs index, a book with no articles, a book or doc that is not found) carry the same column in the sidebar instead of a back link above the page. + + Unchanged: every docs address resolves to the same page as before, and a phone keeps its app bar, no sidebar and the in-page column. The `/docs` portal is not changed by this release. Nothing to migrate. +- 39e9a82: Clause-②: yes (widening) + Metadata-protocol: none + + A shared list view is offered only to an administrator who may write one, and it is shared at once. Add view offers Shared only to an administrator whose session holds `manage_metadata`, the capability the shared view's write door asks; an organization administrator without it is no longer offered a Shared choice the server answers `403`. A view created Shared is saved and published in one act, so everyone sees it on their next read instead of waiting behind a draft; a refused save publishes nothing. A reader who opens a view the server says no longer exists is told so once, and the list shows its default view. Two new `@object-ui/i18n` keys under `view.switcher` carry the notices in every locale. +- abb5449: fix(studio): the author panels speak the author's words, and the zh pack names `label` 显示名 + + Clause-②: no + Metadata-protocol: none + + - A Lookup's related-object picker shows the placeholder 「选择对象…」 / "Select object…" (not `object_name`), in prose type, with a chevron; the roll-up child-object picker takes the same placeholder. The "every record is selectable" hint and the related-list help name the target by its label, and neither is drawn before a target is set. + - The post-save advisory toast shows the producer's sentence alone when the finding carries one; the rule id and locator stay on the developer face (a finding with no sentence). + - The Notify node's rows are rewritten in the author's words in en and zh: no key aliases, no literal defaults, no `info | warning | critical`; the topic row reads "Category" (zh 「通知类别」) and the severity options read 一般 / 警告 / 紧急 in zh. + - The object Settings tab keeps each metadata key off the panel at rest: the key is the setting title's hover text. The object inspector's `split.renderKey` is replaced by `split.keysOnHover`. + - The Studio zh pack names an item's `label` 显示名 throughout, where it said 标签 or 显示名称 (the add-field hints included). +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [2b57044] +- Updated dependencies [52a2398] +- Updated dependencies [a0b4ecf] +- Updated dependencies [ee5fdc8] +- Updated dependencies [d6d9645] +- Updated dependencies [1c05546] +- Updated dependencies [7f4970a] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [c3fb37a] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [8b550f8] +- Updated dependencies [c809deb] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [806bba8] +- Updated dependencies [c9b3f7a] +- Updated dependencies [8e46424] +- Updated dependencies [8896822] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [ca4ec2a] +- Updated dependencies [dc53d4a] +- Updated dependencies [0739dee] +- Updated dependencies [ad15579] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [eed422e] +- Updated dependencies [2df9691] +- Updated dependencies [bfd6b6b] +- Updated dependencies [55020c3] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [6f2bd4f] +- Updated dependencies [99a0e4f] +- Updated dependencies [b2d4355] +- Updated dependencies [b1eb500] +- Updated dependencies [a9b36ef] +- Updated dependencies [9f352e8] +- Updated dependencies [3446f23] +- Updated dependencies [c0716ed] +- Updated dependencies [17ceb2d] +- Updated dependencies [7bd5d28] +- Updated dependencies [ba304e0] +- Updated dependencies [2fea6d2] +- Updated dependencies [fd471d3] +- Updated dependencies [1b2cd80] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [f2078e3] +- Updated dependencies [1aac465] +- Updated dependencies [7702f09] +- Updated dependencies [05e0eb8] +- Updated dependencies [b863d2b] +- Updated dependencies [c890070] +- Updated dependencies [e75a528] +- Updated dependencies [5bd7257] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [34308dc] +- Updated dependencies [eb1f85d] +- Updated dependencies [16d3abc] +- Updated dependencies [58d00db] +- Updated dependencies [3819afe] +- Updated dependencies [a5ddeb6] +- Updated dependencies [61722e9] +- Updated dependencies [0ce2598] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [285ad8d] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [6a35635] +- Updated dependencies [9212119] +- Updated dependencies [cda16d4] +- Updated dependencies [9b3227f] +- Updated dependencies [fe75349] +- Updated dependencies [f4de1de] +- Updated dependencies [dab4712] +- Updated dependencies [141a826] +- Updated dependencies [8145424] +- Updated dependencies [b65488a] +- Updated dependencies [53c9575] +- Updated dependencies [83a79e6] +- Updated dependencies [dda665f] +- Updated dependencies [94fb8db] +- Updated dependencies [e25ca63] +- Updated dependencies [98b3f87] +- Updated dependencies [46ad134] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [ccded86] +- Updated dependencies [f7b172f] +- Updated dependencies [ec24363] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [9e02112] +- Updated dependencies [e01b8be] +- Updated dependencies [238661f] +- Updated dependencies [d96c878] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [72d19c4] +- Updated dependencies [b0c624a] +- Updated dependencies [9b6db73] +- Updated dependencies [1e018d6] +- Updated dependencies [6d86b43] +- Updated dependencies [bae933b] +- Updated dependencies [a3a74f2] +- Updated dependencies [f98f18c] +- Updated dependencies [74d3d83] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [227a16a] +- Updated dependencies [de25d58] +- Updated dependencies [598a34d] +- Updated dependencies [0585797] +- Updated dependencies [811858c] +- Updated dependencies [fac1e7d] +- Updated dependencies [4609c48] +- Updated dependencies [8500ee7] +- Updated dependencies [a6607c7] +- Updated dependencies [c00be39] +- Updated dependencies [1c87956] +- Updated dependencies [d8b15b5] +- Updated dependencies [5345905] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [f909734] +- Updated dependencies [cedc094] +- Updated dependencies [a03c3d4] +- Updated dependencies [c9b0a23] +- Updated dependencies [a8126d2] +- Updated dependencies [06faee5] +- Updated dependencies [f51578e] +- Updated dependencies [65fddc8] +- Updated dependencies [6b360ab] +- Updated dependencies [d19d875] +- Updated dependencies [c7174c3] +- Updated dependencies [78f7160] +- Updated dependencies [bb1c55d] +- Updated dependencies [1d7015a] +- Updated dependencies [d7c257e] +- Updated dependencies [9972432] +- Updated dependencies [40e22f1] +- Updated dependencies [5a68b57] +- Updated dependencies [fddb9cb] +- Updated dependencies [647eb92] +- Updated dependencies [7de1bad] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [dea68e9] +- Updated dependencies [b113178] +- Updated dependencies [138faaa] +- Updated dependencies [411fe24] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [48c732c] +- Updated dependencies [52fb30c] +- Updated dependencies [8807dcb] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [9ed18a5] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [c261a7c] +- Updated dependencies [f9f45d3] +- Updated dependencies [76cb366] +- Updated dependencies [32409a9] +- Updated dependencies [cf45e4f] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [9f6f306] +- Updated dependencies [c757e07] +- Updated dependencies [a5a5312] +- Updated dependencies [c1b35c3] +- Updated dependencies [9a98a46] +- Updated dependencies [96b66ca] +- Updated dependencies [8c8ff0f] +- Updated dependencies [27e414b] +- Updated dependencies [eb53d63] +- Updated dependencies [dda5e74] +- Updated dependencies [f2a990b] +- Updated dependencies [035a12c] +- Updated dependencies [33d0169] +- Updated dependencies [a23164e] +- Updated dependencies [f3d0a9f] +- Updated dependencies [6aacad9] +- Updated dependencies [0d0ed81] +- Updated dependencies [8aed508] +- Updated dependencies [a60740a] +- Updated dependencies [1647fb3] +- Updated dependencies [8c5a81e] +- Updated dependencies [43580a3] +- Updated dependencies [be91bfc] +- Updated dependencies [cc05e60] +- Updated dependencies [dc10b3b] +- Updated dependencies [dca608a] +- Updated dependencies [baf2678] +- Updated dependencies [13d1e95] +- Updated dependencies [15b7f51] +- Updated dependencies [c297dff] +- Updated dependencies [1cd4762] +- Updated dependencies [3f7fdd0] +- Updated dependencies [6db1dc2] +- Updated dependencies [729b642] +- Updated dependencies [9ae874a] +- Updated dependencies [3ae62ac] +- Updated dependencies [6c7c6db] +- Updated dependencies [eebb893] +- Updated dependencies [493ad09] +- Updated dependencies [78437e2] +- Updated dependencies [92f6216] +- Updated dependencies [ed4d322] +- Updated dependencies [3543b51] +- Updated dependencies [4ab2c82] +- Updated dependencies [04f9861] +- Updated dependencies [c30ce97] +- Updated dependencies [28749e3] +- Updated dependencies [b57f778] +- Updated dependencies [e605773] +- Updated dependencies [0628e08] +- Updated dependencies [370e14d] +- Updated dependencies [713545f] +- Updated dependencies [cbd582f] +- Updated dependencies [031325d] +- Updated dependencies [1705ec9] +- Updated dependencies [b7fe94a] +- Updated dependencies [a2dc858] +- Updated dependencies [a6756a2] +- Updated dependencies [b3bcfef] +- Updated dependencies [aad35e6] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [71e02ff] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [28ba01f] +- Updated dependencies [5e8e243] +- Updated dependencies [13da40c] +- Updated dependencies [4099ef2] +- Updated dependencies [8466fca] +- Updated dependencies [e3054b4] +- Updated dependencies [6a73185] +- Updated dependencies [0d2bb8d] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [740720c] +- Updated dependencies [6e643cc] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [a09816d] +- Updated dependencies [a61b8ab] +- Updated dependencies [96b7975] +- Updated dependencies [e8b494a] +- Updated dependencies [bbc7e03] +- Updated dependencies [27895d7] +- Updated dependencies [543585d] +- Updated dependencies [7e89bc6] +- Updated dependencies [70194ff] +- Updated dependencies [42e4096] +- Updated dependencies [a10422d] +- Updated dependencies [dcc9b07] +- Updated dependencies [85a9954] +- Updated dependencies [1a2a8a9] +- Updated dependencies [24366ff] +- Updated dependencies [f2ef7d8] +- Updated dependencies [7a5ae65] +- Updated dependencies [17dbea4] +- Updated dependencies [ff60149] +- Updated dependencies [ee651ce] +- Updated dependencies [dad9b55] +- Updated dependencies [d076975] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [8a741ab] +- Updated dependencies [60e79ed] +- Updated dependencies [3cf6a44] +- Updated dependencies [5fecc22] +- Updated dependencies [5c2e34c] +- Updated dependencies [595844b] +- Updated dependencies [2c5b90d] +- Updated dependencies [53733c1] +- Updated dependencies [4f19091] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [e9fa6b5] +- Updated dependencies [9c283a1] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [52971ff] +- Updated dependencies [06c3e5a] +- Updated dependencies [2da2979] +- Updated dependencies [89d9608] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [e4e3bcf] +- Updated dependencies [ad50d61] +- Updated dependencies [87c7bba] +- Updated dependencies [50bfbb8] +- Updated dependencies [f26469a] +- Updated dependencies [7501d0c] +- Updated dependencies [4ef1ea9] +- Updated dependencies [cb909d7] +- Updated dependencies [9849846] +- Updated dependencies [41dd132] +- Updated dependencies [45ef94e] +- Updated dependencies [d7411fa] +- Updated dependencies [c6075a7] +- Updated dependencies [cd51dbb] +- Updated dependencies [3f568c1] +- Updated dependencies [573a376] +- Updated dependencies [5c2d5cf] +- Updated dependencies [cbc06ff] +- Updated dependencies [43916f3] +- Updated dependencies [f590f3e] +- Updated dependencies [9fa05c6] +- Updated dependencies [ed0edb1] +- Updated dependencies [a10987a] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [f77d078] +- Updated dependencies [a98f8c6] +- Updated dependencies [3110de5] +- Updated dependencies [4034a6d] +- Updated dependencies [1948c5f] +- Updated dependencies [0e83fe0] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [9f84e5f] +- Updated dependencies [368deee] +- Updated dependencies [6156fdd] +- Updated dependencies [8644ce7] +- Updated dependencies [0d6589d] +- Updated dependencies [f46ce5b] +- Updated dependencies [c54aa57] +- Updated dependencies [53257a5] +- Updated dependencies [8aecf6d] +- Updated dependencies [03cb550] +- Updated dependencies [115d387] +- Updated dependencies [e0050ba] +- Updated dependencies [2f8e8ba] +- Updated dependencies [14f4d8f] +- Updated dependencies [fa23941] +- Updated dependencies [8ddadc1] +- Updated dependencies [183ed23] +- Updated dependencies [a03bc4e] +- Updated dependencies [4d4ec16] +- Updated dependencies [d763ee7] +- Updated dependencies [8018e00] +- Updated dependencies [844218f] +- Updated dependencies [8cce05b] +- Updated dependencies [0d727b7] +- Updated dependencies [79a355b] +- Updated dependencies [ff0d1f1] +- Updated dependencies [4f7d6f7] +- Updated dependencies [b848b47] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [47ed85d] +- Updated dependencies [0819cab] +- Updated dependencies [97e0f93] +- Updated dependencies [c8d4b90] +- Updated dependencies [00aa574] +- Updated dependencies [69c3dc4] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [9be1741] +- Updated dependencies [b3d953e] +- Updated dependencies [62692b7] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [49c6bf3] +- Updated dependencies [63ab479] +- Updated dependencies [4f9a3f8] +- Updated dependencies [00dd362] +- Updated dependencies [1cda7ea] +- Updated dependencies [bac4864] +- Updated dependencies [c48f06c] +- Updated dependencies [8c29b81] +- Updated dependencies [a68b475] +- Updated dependencies [c75453e] +- Updated dependencies [1e96009] +- Updated dependencies [6cfd04d] +- Updated dependencies [896bfc4] +- Updated dependencies [57445a6] +- Updated dependencies [01967c3] +- Updated dependencies [0212714] +- Updated dependencies [15d2766] +- Updated dependencies [7b56b3a] +- Updated dependencies [1f3e9f6] +- Updated dependencies [8b1841f] +- Updated dependencies [23d61fa] +- Updated dependencies [305fe60] +- Updated dependencies [e91149e] +- Updated dependencies [58e1a3b] +- Updated dependencies [422df61] +- Updated dependencies [293c005] +- Updated dependencies [06c1f54] +- Updated dependencies [706c8c6] +- Updated dependencies [ebb4713] +- Updated dependencies [c063734] +- Updated dependencies [c0dd417] +- Updated dependencies [0439a04] +- Updated dependencies [517e415] +- Updated dependencies [fa7d94b] +- Updated dependencies [95734fe] +- Updated dependencies [f92d271] +- Updated dependencies [6ddb97b] +- Updated dependencies [2af9729] +- Updated dependencies [3d4f423] +- Updated dependencies [ce2645a] +- Updated dependencies [2a6f26a] +- Updated dependencies [6161010] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [b89f1b5] +- Updated dependencies [372ce7c] +- Updated dependencies [3aa008d] +- Updated dependencies [7d3b8d6] +- Updated dependencies [15f8357] +- Updated dependencies [378c955] +- Updated dependencies [56fa31b] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [39e9a82] +- Updated dependencies [9c5fb3e] +- Updated dependencies [abb5449] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @object-ui/plugin-detail@18.7.0 + - @object-ui/i18n@18.7.0 + - @object-ui/fields@18.7.0 + - @object-ui/plugin-grid@18.7.0 + - @object-ui/types@18.7.0 + - @object-ui/plugin-dashboard@18.7.0 + - @objectstack/lint@18.7.0 + - @object-ui/core@18.7.0 + - @object-ui/plugin-chatbot@18.7.0 + - @objectstack/formula@18.7.0 + - @object-ui/auth@18.7.0 + - @object-ui/components@18.7.0 + - @object-ui/data-objectstack@18.7.0 + - @object-ui/plugin-designer@18.7.0 + - @object-ui/plugin-form@18.7.0 + - @object-ui/react@18.7.0 + - @object-ui/plugin-list@18.7.0 + - @object-ui/plugin-report@18.7.0 + - @object-ui/plugin-kanban@18.7.0 + - @object-ui/plugin-view@18.7.0 + - @object-ui/layout@18.7.0 + - @object-ui/plugin-calendar@18.7.0 + - @object-ui/collaboration@18.7.0 + - @object-ui/plugin-charts@18.7.0 + - @object-ui/mobile@18.7.0 + - @object-ui/permissions@18.7.0 + - @object-ui/plugin-editor@18.7.0 + ## 18.5.0 ### Minor Changes diff --git a/ui/packages/app-shell/package.json b/ui/packages/app-shell/package.json index 4b18679784e..de2c98a333f 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.5.0", + "version": "18.6.0", "private": true, "type": "module", "sideEffects": [ diff --git a/ui/packages/auth/CHANGELOG.md b/ui/packages/auth/CHANGELOG.md index f961a3ff1f0..ffd6b13bee8 100644 --- a/ui/packages/auth/CHANGELOG.md +++ b/ui/packages/auth/CHANGELOG.md @@ -1,5 +1,254 @@ # @object-ui/auth +## 18.7.0 + +### Patch Changes + +- ca4ec2a: fix(auth): a "Sign in with SSO" request that never answers gives the sign-in page back after 20 seconds + + Clause-②: no + Metadata-protocol: none + + On the login page, when the request behind "Sign in with SSO" got no answer, the button kept spinning and the email field stayed locked until the page was reloaded. The request now runs under the same 20-second limit as the identity-provider buttons: once it passes, the request is cancelled, the page says the sign-in timed out, and the email field and the button can be used again to retry. An answering request still sends the browser to the identity provider as before. +- 7bd5d28: feat(auth): `directSignIn.afterSignOut` lets an explicit sign-out return through the identity provider's sign-in page + + Clause-②: yes (widening) + Metadata-protocol: added + + A deployment with direct sign-in on can now choose where an explicit sign-out returns once the identity provider has ended its own session. The default keeps today's behaviour, so nothing changes until a deployment sets the new value. + + - The auth plugin's `directSignIn` option takes `afterSignOut: 'hold' | 'identity-provider'`, and the environment variable `OS_AUTH_DIRECT_SIGN_IN_AFTER_SIGN_OUT` wins over it, like the other direct sign-in settings. `hold` is the default. Any other value refuses to boot, naming the variable and both values. + - `GET /api/v1/auth/config` serves `features.afterSignOut` while the direct sign-in setting is on, on the same terms as `features.localSignIn`, and leaves it out otherwise. `AuthFeaturesConfigSchema` in `@objectstack/spec` gains the optional `afterSignOut` enum, and `PUBLIC_AUTH_CONFIG_NON_FLAG_KEYS` gains `'afterSignOut'`. + - `hold`: the Console's sign-out sends the sign-in page as the provider's return address, and the page holds with a button to sign in again, as before. + - `identity-provider`: while `features.directSignIn` reads `true`, the Console's sign-out sends `{basePath}/sign-in/direct` instead, so after the provider's logout the browser goes through the direct sign-in door to the provider's own sign-in page. The door starts a fresh sign-in without the browser's cookies, and the provider has just ended its session, so it asks for credentials; it does not loop. Register the door's absolute address as a post-logout redirect URI at the provider. + - `@object-ui/auth`: `AuthPublicConfig.features` gains the optional `afterSignOut`. When the tab holds no auth config at sign-out, the client reads it once (3 seconds at most) and keeps the sign-in page if it cannot. + - Module exports on the `@objectstack/plugin-auth` entry: the type `DirectSignInAfterSignOut`. In `direct-sign-in.ts` (not on the package entry): `DIRECT_SIGN_IN_AFTER_SIGN_OUT`, and `DIRECT_SIGN_IN_ENV.afterSignOut`. +- e25ca63: fix(console, auth): a cold console load sends `me/localization` once, and asks for the cookie session at parse time + + Clause-②: no + Metadata-protocol: none + + On a device's first visit the console sent `GET /api/v1/auth/me/localization` twice. The language seed asked before the app mounted. The localization provider asked again after its own mount, because the seed's request had already settled and requests are shared only while they are in flight. The provider's boot read now takes the seed's answer to the same request once, but only when it was an authenticated answer about the browser's current owner. A re-read after a write to the user's own row still asks the server, and so does any later mount. + + With no stored Bearer (a cookie session), `get-session` was asked by `AuthProvider` only after React mounted. That mount waits on the seed's bounded race, so the session check waited for the language read. `index.html`'s parse-time session check now asks the cookie session's question too, without an `Authorization` header. `preflightAuth()` hands the answer to `AuthProvider` through the existing slot with a null token. A signed-out answer is handed on as well: a body naming no user, or the server's 401 `UNAUTHENTICATED`. A signed-out visitor therefore still sends one `get-session`. `AuthProvider` takes a null-token answer only while no token is stored. A protected route still waits for the session answer, and the seed's race and the language applied before first paint are unchanged. +- 370e14d: fix(auth): signing out keeps the list layout for the same person; a change of user still clears it + + Clause-②: no + Metadata-protocol: none + + Column widths, row height and tab order are kept only in the browser, so the sign-out purge (`purgeSignedOutUserClientState`, run by `AuthProvider` on `signOut()` and on every session read that answers "no session", including a session that ended on its own) reset every list at every sign-out. It now keeps the list layout: `localStorage` keys starting `list-layout:` (written by `@object-ui/app-shell`) and `grid-columns-` (the grid's own copy of column widths and order, also used by a record page's related tab). An entry is kept only while it holds that layout and nothing else: view ids, field names, widths and a row height. An entry holding anything more, such as a filter, a search term or record data, is removed like any other key. These keys are kept only in `localStorage`; the same keys in `sessionStorage` are still removed. + + A different person signing in on that browser still clears everything (`purgePreviousUserClientState` keeps none of these keys), so their lists open at each view's defaults. Nothing changes for an app that writes no keys under these prefixes. +- f2ef7d8: fix(ui): the kanban card owner, history timeline, user menu and presence stack draw letters-only initials + + Clause-②: yes (widening) + Metadata-protocol: none + + A person whose display name carries punctuation, such as `Alice (Sales)`, now shows `AS` on the kanban card owner's avatar, the history timeline, the user menu and the presence stack, where those four faces drew `A(`. They now use the same rule as the people cell and the avatar widget: initials are made of letters only, a single-word name gives its first two letters (`Admin` → `AD`), a name of three or more words gives its first and last words' first letters (`John Michael Doe` → `JD`), a single CJK word gives its last one or two characters, and a name with no letter gives `?`. The user menu still falls back to the email's first character when there is no name. + + The rule, `getPersonInitials`, is now exported by `@object-ui/types`, the lowest package all of these faces can reach; `@object-ui/fields` re-exports the same function, so its `getPersonInitials` export is unchanged. `@object-ui/auth` now depends on `@object-ui/types`. +- 4d4ec16: feat(console): from 768 px up a sign-in lands in the last-used app, and the platform home page retires + + Clause-②: yes (widening) + Metadata-protocol: none + + From 768 px up there is no platform home page any more. A sign-in, the SSO round trip and the old `/home` address all land the person in an app their permission sets show, in this order: the app they last had open, while it is still there for them; else the app the product declares `isDefault`; else the first app somebody put into the environment (never Setup or Studio). + + - A person with no such app at all stays on `/home`, which now draws only the no-apps empty state: 「No applications yet」, and for a viewer who may add an app the same doors the sidebar's 「Add app」 offers (build with AI, start from a template, the app marketplace). An administrator's first-run checklist stays above it. + - An administrator's first-run checklist, while it has open items, moves to the top of the Setup app's first page (the page Setup opens on). It is drawn from 768 px up only, and a phone is unchanged. + - `@object-ui/app-shell` exports `SetupFirstPageSlotProvider`, through which a host puts its element above the Setup app's first page. + - The console's Home affordances (⌘⇧H, the way back from a missing app, Studio's way out) go where the landing goes. Where the chrome cannot yet tell which apps a permission set hides (Studio, the AI pages, or before that answer arrives) they point at `/home`, which resolves the landing itself. + - The SSO sign-in's callback is the console root instead of `/home`, so it lands the same way. + - A phone is unchanged: it still lands in the last app first, and `/home` is still its app list. + - `@object-ui/app-shell` exports `resolveDesktopHomePath(apps, lastApp)`, the desktop's Home. + - `RedirectWithSplash` takes an optional `state`, so the hops from `/` and `/home` into the landing app keep what the visit carried (an old `/ai` address's Builder handoff). + - Every console locale gains `home.noAppsAddDescription`. +- 79a355b: fix(auth): "Sign in with SSO" brings a signed-out person back to the link they opened + + Clause-②: no + Metadata-protocol: none + + A person who opened a record link while signed out is sent to the sign-in page, which remembers the link. Password and provider-button sign-in took them to it afterwards; signing in with SSO by work email took them to their last app instead. The SSO sign-in now comes back to the sign-in page with that link, the same way the provider buttons do, and the page then takes the person to it. Only a link inside this site is kept: a full web address or one pointing at another host is dropped, and the person lands where any sign-in does. With no link, nothing changes. +- 58e1a3b: fix(auth, console): saving your name on the profile page keeps the page on screen and shows "Profile updated successfully."; a language save that changes the interface language still confirms + + Clause-②: no + Metadata-protocol: none + + `useAuth().updateUser` (`@object-ui/auth`) installed the answer of better-auth's `POST /update-user` as the session user. That endpoint answers `{ status: true }`, not the user, so for a moment the signed-in user had no `id`, `name` or `email`: the header showed "?" and "User", and every consumer keyed on the identity dropped its children and mounted them again. In the console the page went blank, its data was read again, and the profile card's success alert, which is local state, was lost. `updateUser` now keeps the same user and applies the fields it wrote to it, the way better-auth builds the stored row. The page is not remounted, and the alert stays. The avatar upload and remove, which call `updateUser` too, no longer blank the page either. + + The profile page's Language card (`@object-ui/console`) also confirms a save with a toast. A save that changes the interface language remounts the page under the console shell's language key, by design, and that remount took the card's inline alert with it. The console's toaster sits above that key, so the toast stays. A save that does not change the interface language shows the inline alert as before, and the toast beside it. + + Nothing to migrate. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [e01b8be] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [0585797] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [9f6f306] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [f3d0a9f] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [4ab2c82] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [bbc7e03] +- Updated dependencies [543585d] +- Updated dependencies [7e89bc6] +- Updated dependencies [70194ff] +- Updated dependencies [f2ef7d8] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [57445a6] +- Updated dependencies [01967c3] +- Updated dependencies [1f3e9f6] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @object-ui/types@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/ui/packages/auth/package.json b/ui/packages/auth/package.json index 8a3026bf6df..ee0a59c5485 100644 --- a/ui/packages/auth/package.json +++ b/ui/packages/auth/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/auth", - "version": "18.6.0", + "version": "18.7.0", "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 3cfe0ce85db..99fc7ecfda3 100644 --- a/ui/packages/cli/CHANGELOG.md +++ b/ui/packages/cli/CHANGELOG.md @@ -1,5 +1,264 @@ # @object-ui/cli +## 18.7.0 + +### Patch Changes + +- 227a16a: fix(ui): danger text is readable in dark theme + + Clause-②: no + Metadata-protocol: none + + In dark theme, `text-destructive` (a menu's Delete, error messages, danger links) used the deep red that is the fill of red buttons, about 1.6:1 on a dark menu. Text utilities now read their own token: each shipped `@theme` maps `--text-color-destructive` to `--destructive-text`, which only `.dark` defines (a brighter red that clears 4.5:1 on every dark surface). Light theme leaves it unset and falls back to `--destructive`, so it is unchanged; `bg-`, `border-` and `ring-destructive` and red buttons keep `--destructive`. New apps from `objectui init` carry the same split, and the Gantt resource view's over-capacity label reads the text token. A host that overrides `--destructive` for its own dark theme can set `--destructive-text` beside it. +- 9ed18a5: fix(ui): danger colours render red in both themes, and light danger text clears 4.5:1 + + Clause-②: no + Metadata-protocol: none + + - The grid and list views' export-error line, and the Markdown caution alert's border and title, set their colour to a bare `var(--destructive)`. That variable holds an HSL triplet, not a colour, so the browser dropped the declaration and the text rendered in the inherited colour. The export-error line now uses the `text-destructive` utility and the caution alert reads `hsl(var(--destructive-text, var(--destructive)))`. The Markdown theme's heading anchors, quote and meta tokens and blockquote border and background had the same defect with other theme variables and now wrap them in `hsl()` too. + - The flow preview's invalid-edge stroke and arrowhead paint with the danger text colour, so they stay readable on the dark theme. + - The light theme now sets its own `--destructive-text`, red-700 (`#b91c1c`, `0 73.7% 41.8%`), so `text-destructive` reads at 6.47:1 on white instead of 3.76:1. `--destructive`, the brand red used for button and badge fills, is unchanged. The same value is in the stylesheet that `objectui init` generates. + - A theme's `error` colour applied through the theme engine still sets `--destructive`, and now also derives a danger text colour for each mode from it (same hue, lightness moved until it reads at 4.5:1 on that mode's surfaces), written as `--destructive-text-light` and `--destructive-text-dark`. The shipped stylesheets read those into `--destructive-text` in their light and dark blocks, so a custom red drives danger text and stays readable in both modes. A host stylesheet that overrides `--destructive` by hand should set `--destructive-text` beside it in each mode. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [55020c3] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [6f2bd4f] +- Updated dependencies [99a0e4f] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [1b2cd80] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5bd7257] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [3819afe] +- Updated dependencies [61722e9] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [9212119] +- Updated dependencies [cda16d4] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [dda665f] +- Updated dependencies [98b3f87] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [e01b8be] +- Updated dependencies [d96c878] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [72d19c4] +- Updated dependencies [b0c624a] +- Updated dependencies [9b6db73] +- Updated dependencies [bae933b] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [227a16a] +- Updated dependencies [de25d58] +- Updated dependencies [598a34d] +- Updated dependencies [0585797] +- Updated dependencies [811858c] +- Updated dependencies [fac1e7d] +- Updated dependencies [4609c48] +- Updated dependencies [8500ee7] +- Updated dependencies [a6607c7] +- Updated dependencies [c00be39] +- Updated dependencies [1c87956] +- Updated dependencies [5345905] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [c7174c3] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [7de1bad] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [dea68e9] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [52fb30c] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [9ed18a5] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [9f6f306] +- Updated dependencies [a5a5312] +- Updated dependencies [8c8ff0f] +- Updated dependencies [dda5e74] +- Updated dependencies [f2a990b] +- Updated dependencies [035a12c] +- Updated dependencies [33d0169] +- Updated dependencies [a23164e] +- Updated dependencies [f3d0a9f] +- Updated dependencies [8aed508] +- Updated dependencies [a60740a] +- Updated dependencies [8c5a81e] +- Updated dependencies [dc10b3b] +- Updated dependencies [dca608a] +- Updated dependencies [baf2678] +- Updated dependencies [13d1e95] +- Updated dependencies [6db1dc2] +- Updated dependencies [3ae62ac] +- Updated dependencies [6c7c6db] +- Updated dependencies [493ad09] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [4ab2c82] +- Updated dependencies [04f9861] +- Updated dependencies [e605773] +- Updated dependencies [0628e08] +- Updated dependencies [713545f] +- Updated dependencies [b7fe94a] +- Updated dependencies [a2dc858] +- Updated dependencies [b3bcfef] +- Updated dependencies [aad35e6] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [4099ef2] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [740720c] +- Updated dependencies [6e643cc] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [bbc7e03] +- Updated dependencies [543585d] +- Updated dependencies [7e89bc6] +- Updated dependencies [70194ff] +- Updated dependencies [a10422d] +- Updated dependencies [1a2a8a9] +- Updated dependencies [f2ef7d8] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [ad50d61] +- Updated dependencies [7501d0c] +- Updated dependencies [41dd132] +- Updated dependencies [45ef94e] +- Updated dependencies [d7411fa] +- Updated dependencies [c6075a7] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [1948c5f] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [368deee] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [a68b475] +- Updated dependencies [57445a6] +- Updated dependencies [01967c3] +- Updated dependencies [0212714] +- Updated dependencies [1f3e9f6] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [c0dd417] +- Updated dependencies [0439a04] +- Updated dependencies [517e415] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [378c955] +- Updated dependencies [56fa31b] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [9c5fb3e] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @object-ui/types@18.7.0 + - @object-ui/components@18.7.0 + - @object-ui/react@18.7.0 + ## 18.6.0 ### Minor Changes diff --git a/ui/packages/cli/package.json b/ui/packages/cli/package.json index aa30dc29393..d71e908343c 100644 --- a/ui/packages/cli/package.json +++ b/ui/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/cli", - "version": "18.6.0", + "version": "18.7.0", "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 add4b95031f..3265c40bb89 100644 --- a/ui/packages/collaboration/CHANGELOG.md +++ b/ui/packages/collaboration/CHANGELOG.md @@ -1,5 +1,198 @@ # @object-ui/collaboration +## 18.7.0 + +### Patch Changes + +- f2ef7d8: fix(ui): the kanban card owner, history timeline, user menu and presence stack draw letters-only initials + + Clause-②: yes (widening) + Metadata-protocol: none + + A person whose display name carries punctuation, such as `Alice (Sales)`, now shows `AS` on the kanban card owner's avatar, the history timeline, the user menu and the presence stack, where those four faces drew `A(`. They now use the same rule as the people cell and the avatar widget: initials are made of letters only, a single-word name gives its first two letters (`Admin` → `AD`), a name of three or more words gives its first and last words' first letters (`John Michael Doe` → `JD`), a single CJK word gives its last one or two characters, and a name with no letter gives `?`. The user menu still falls back to the email's first character when there is no name. + + The rule, `getPersonInitials`, is now exported by `@object-ui/types`, the lowest package all of these faces can reach; `@object-ui/fields` re-exports the same function, so its `getPersonInitials` export is unchanged. `@object-ui/auth` now depends on `@object-ui/types`. +- Updated dependencies [a0b4ecf] +- Updated dependencies [1c05546] +- Updated dependencies [c3fb37a] +- Updated dependencies [c9b3f7a] +- Updated dependencies [8896822] +- Updated dependencies [dc53d4a] +- Updated dependencies [0739dee] +- Updated dependencies [ad15579] +- Updated dependencies [2df9691] +- Updated dependencies [bfd6b6b] +- Updated dependencies [9f352e8] +- Updated dependencies [fd471d3] +- Updated dependencies [6ffa816] +- Updated dependencies [7702f09] +- Updated dependencies [05e0eb8] +- Updated dependencies [c890070] +- Updated dependencies [58d00db] +- Updated dependencies [61722e9] +- Updated dependencies [e6fa510] +- Updated dependencies [bfd1049] +- Updated dependencies [6a35635] +- Updated dependencies [9b3227f] +- Updated dependencies [fe75349] +- Updated dependencies [dab4712] +- Updated dependencies [141a826] +- Updated dependencies [8145424] +- Updated dependencies [83a79e6] +- Updated dependencies [e01b8be] +- Updated dependencies [238661f] +- Updated dependencies [d96c878] +- Updated dependencies [b0c624a] +- Updated dependencies [1e018d6] +- Updated dependencies [6d86b43] +- Updated dependencies [a3a74f2] +- Updated dependencies [74d3d83] +- Updated dependencies [598a34d] +- Updated dependencies [0585797] +- Updated dependencies [811858c] +- Updated dependencies [fac1e7d] +- Updated dependencies [8500ee7] +- Updated dependencies [c00be39] +- Updated dependencies [5345905] +- Updated dependencies [af566c2] +- Updated dependencies [f909734] +- Updated dependencies [c9b0a23] +- Updated dependencies [f51578e] +- Updated dependencies [1d7015a] +- Updated dependencies [40e22f1] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [dea68e9] +- Updated dependencies [b113178] +- Updated dependencies [138faaa] +- Updated dependencies [411fe24] +- Updated dependencies [48c732c] +- Updated dependencies [52fb30c] +- Updated dependencies [8807dcb] +- Updated dependencies [8df7bf2] +- Updated dependencies [d33bf5a] +- Updated dependencies [c261a7c] +- Updated dependencies [76cb366] +- Updated dependencies [32409a9] +- Updated dependencies [f548bdc] +- Updated dependencies [9f6f306] +- Updated dependencies [c757e07] +- Updated dependencies [c1b35c3] +- Updated dependencies [9a98a46] +- Updated dependencies [27e414b] +- Updated dependencies [eb53d63] +- Updated dependencies [dda5e74] +- Updated dependencies [f2a990b] +- Updated dependencies [035a12c] +- Updated dependencies [a23164e] +- Updated dependencies [f3d0a9f] +- Updated dependencies [43580a3] +- Updated dependencies [cc05e60] +- Updated dependencies [13d1e95] +- Updated dependencies [6db1dc2] +- Updated dependencies [eebb893] +- Updated dependencies [3543b51] +- Updated dependencies [4ab2c82] +- Updated dependencies [04f9861] +- Updated dependencies [c30ce97] +- Updated dependencies [e605773] +- Updated dependencies [cbd582f] +- Updated dependencies [031325d] +- Updated dependencies [1705ec9] +- Updated dependencies [a6756a2] +- Updated dependencies [b3bcfef] +- Updated dependencies [71e02ff] +- Updated dependencies [5e8e243] +- Updated dependencies [4099ef2] +- Updated dependencies [6a73185] +- Updated dependencies [8da2b7e] +- Updated dependencies [f3a8a13] +- Updated dependencies [96b7975] +- Updated dependencies [e8b494a] +- Updated dependencies [bbc7e03] +- Updated dependencies [27895d7] +- Updated dependencies [543585d] +- Updated dependencies [7e89bc6] +- Updated dependencies [42e4096] +- Updated dependencies [f2ef7d8] +- Updated dependencies [ff60149] +- Updated dependencies [ee651ce] +- Updated dependencies [dad9b55] +- Updated dependencies [d076975] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [8a741ab] +- Updated dependencies [60e79ed] +- Updated dependencies [3cf6a44] +- Updated dependencies [5fecc22] +- Updated dependencies [4f19091] +- Updated dependencies [3b58921] +- Updated dependencies [9c283a1] +- Updated dependencies [c45dd80] +- Updated dependencies [f26469a] +- Updated dependencies [7501d0c] +- Updated dependencies [4ef1ea9] +- Updated dependencies [d7411fa] +- Updated dependencies [c6075a7] +- Updated dependencies [cd51dbb] +- Updated dependencies [3f568c1] +- Updated dependencies [573a376] +- Updated dependencies [5c2d5cf] +- Updated dependencies [43916f3] +- Updated dependencies [f590f3e] +- Updated dependencies [9fa05c6] +- Updated dependencies [ed0edb1] +- Updated dependencies [a10987a] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [fed637c] +- Updated dependencies [f77d078] +- Updated dependencies [0e83fe0] +- Updated dependencies [7a7ab47] +- Updated dependencies [70f454a] +- Updated dependencies [0d6589d] +- Updated dependencies [c54aa57] +- Updated dependencies [53257a5] +- Updated dependencies [e0050ba] +- Updated dependencies [14f4d8f] +- Updated dependencies [183ed23] +- Updated dependencies [4d4ec16] +- Updated dependencies [d763ee7] +- Updated dependencies [8018e00] +- Updated dependencies [844218f] +- Updated dependencies [8cce05b] +- Updated dependencies [0d727b7] +- Updated dependencies [ff0d1f1] +- Updated dependencies [4f7d6f7] +- Updated dependencies [b848b47] +- Updated dependencies [129e637] +- Updated dependencies [0819cab] +- Updated dependencies [c8d4b90] +- Updated dependencies [76eea0f] +- Updated dependencies [49c6bf3] +- Updated dependencies [00dd362] +- Updated dependencies [bac4864] +- Updated dependencies [8c29b81] +- Updated dependencies [a68b475] +- Updated dependencies [c75453e] +- Updated dependencies [1e96009] +- Updated dependencies [57445a6] +- Updated dependencies [1f3e9f6] +- Updated dependencies [305fe60] +- Updated dependencies [e91149e] +- Updated dependencies [06c1f54] +- Updated dependencies [2af9729] +- Updated dependencies [2a6f26a] +- Updated dependencies [6161010] +- Updated dependencies [7d3b8d6] +- Updated dependencies [15f8357] +- Updated dependencies [378c955] +- Updated dependencies [39e9a82] +- Updated dependencies [9c5fb3e] +- Updated dependencies [abb5449] + - @object-ui/i18n@18.7.0 + - @object-ui/types@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/ui/packages/collaboration/package.json b/ui/packages/collaboration/package.json index 1163825dc53..14bbe8d1bf4 100644 --- a/ui/packages/collaboration/package.json +++ b/ui/packages/collaboration/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/collaboration", - "version": "18.6.0", + "version": "18.7.0", "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 5adba7b77ba..f8f213affd4 100644 --- a/ui/packages/components/CHANGELOG.md +++ b/ui/packages/components/CHANGELOG.md @@ -1,5 +1,1225 @@ # @object-ui/components +## 18.7.0 + +### Minor Changes + +- 811858c: feat(list): a list's cells are selected by a click and edited by a double-click, Enter or typing, with no inline-edit toggle + + Clause-②: yes (widening) + Metadata-protocol: semantic + Skills-docs: none — `skills/objectstack-ui/rules/list-views.md` already teaches that inline editing is on by default for a user who may update the object, with `userActions: { editInline: false }` as the opt-out, which the list page now does with no toggle; no skill teaches the toggle or a single-click edit. + + **The list page (`ListView`) has no inline-edit mode and no toggle.** Its grid is editable in place wherever the reader may update the object and the view does not declare `userActions.editInline: false`; a view's boolean `inlineEdit` still folds into that switch, so `inlineEdit: false` reads off and `inlineEdit: true` reads on. Before, a view that declared neither opened read-only with an "Edit inline" toggle in the toolbar and in the Display menu, the mode lasted for the session, and a click on a cell edited it. Both toggles are gone, and `ListViewProps.onInlineEditChange` is deprecated and never called; the console stops passing it. + + **The select-first cell model** (`data-table`, behind the new `GridCellSelectionProvider` in `@object-ui/components`; `ObjectGrid` mounts it when its host passes the new `cellSelection` prop, and `ListView` passes it for every `object-grid` view it draws, on the hosts listed below): + + - A click selects a cell (a ring around it) and neither edits it nor opens the record. A link the cell draws (the name, a lookup, a phone or an email) keeps its own click. A touch tap opens the record and never edits in place. + - Double-click, Enter or F2 edits, keeping the value with the caret at its end; typing a character replaces the value with it (a picker or a date opens instead); Backspace or Delete clears the cell and saves at once, and a required field keeps its value and says it is required (objectstack#36023). + - While editing, Enter commits and stays on the cell (objectstack#36023), Tab and Shift+Tab commit and move right and left, Escape cancels and keeps the cell selected; in a multi-line editor Enter is a new line and Ctrl/Cmd+Enter commits. Commits are the grid's staged edits, saved by the row's Save and Save All as before. + - On the selected cell the arrows and Tab move the selection, Space opens the record (a checkbox cell flips and commits instead, as a second click on it does), Ctrl/Cmd+C copies, Ctrl/Cmd+V converts the text to the field's type and commits it, and Escape clears the selection. + - An input method's composition is kept whole: keys pressed while composing, and the 229 Enter Safari raises after it, never commit, cancel or move, and a composition started on a selected cell opens the editor with the composed text. This guard applies to every `data-table` editor. + - A cell that opens no editor says why on the cell: the field is read-only, calculated or not editable in a list, the reader may not edit the field, these records or this record, the view turned editing off, or the record is locked by an approval. The approval lock is read from the approvals service's per-record lock when a cell of the row is selected, through the record page's rule (`resolveApprovalLock`); until it answers, the row's `approval_status` stands in only where the view fetches that column, which a view that authors its columns does only when a column, a row predicate or a grouping names it. + + Every grid a `ListView` draws has this model, because `ListView` passes `cellSelection` to each `object-grid` view: the console's object list pages, interface list pages, the object data page (`/apps/:app/:object/data`), the Studio Data pillar's records artboard, and every `list-view` block, whether an SDUI page node or a `ListView` on a `kind: 'react'` page; a grid no `ListView` draws mounts no provider and keeps its click-to-edit (`singleClickEdit`) and click-to-open behaviour unchanged: an authored `object-grid` node, `ObjectView`'s own grid (the `object-view` block, or a host that passes no `renderListView`), a related list, a dashboard table, the record picker and the designer's grids. + + On every `ListView` grid (the select-first model) the table's trailing edit column, which holds a changed row's Cancel and Save, is drawn only while a row has changes, so the list at rest ends on its last data column. `@object-ui/core` exports `resolveAffordanceGrant`, the grant half of `resolveAffordance`, which the list cell's read-only reason reads. + + New locale keys, in every pack: `table.cellReadOnly` and `grid.readOnlyReason.*` (nine reasons). No key is removed: `list.inlineEditShort` and `list.inlineEditLabel`, the toggle's words, stay in every pack, though the list no longer draws the toggle. +- c7174c3: fix(record-page): business dates read as dates, Save is the edit state's primary button, a new detail line starts on its defaults, and the tabs follow the header with no blank band + + Clause-②: yes (widening) + Metadata-protocol: semantic + + Four things on the record page. + + **Dates.** A `date` field that declares no `format` read as a relative phrase on the record page ("6 days ago", "Tomorrow") while the list beside it wrote the date ("Nov 13"), so the reader had to work the day out. The record page's field sections and its highlights strip now write the date itself, with its year, as the list's columns do; the relative phrase (an overdue deadline's "Overdue 5d" included) is the date's tooltip, and a deadline past due still reads red. A declared `format`, `'relative'` included, still wins. A `datetime` field already read as an absolute date there (its cell's default face is the compact one, never the relative phrase), and is now pinned to stay so. The record footer's created and modified times keep their relative wording, and card surfaces (kanban, gallery) are unchanged. `@object-ui/fields`' cell props gain `absoluteDate`, read by the `date` cell. + + **Edit-state buttons.** In the record page's edit state, Cancel drew as the filled primary button and Save as an outline one, so the hand fell on the button that throws the edit away. Save is now the one filled button, after Cancel, the order a form's footer uses. `page:header` now makes a host button declaring `variant: 'primary'` the primary over the page's own actions, in the place the host gave it; no other host button declares one, so every other header is unchanged. + + **New detail lines.** A line added to a master-detail table in the record page's edit state started blank, so a required column with a default (a status that defaults to "Pending") read red although the save then stored the default. A new line now starts on the child object's static defaults, the values a create form seeds; a default the server resolves at insert (`NOW()`, a CEL expression) is left to the server. A new line's empty required cell reads red only after a save was refused, with the server's reason listed under the table; a stored line is flagged as before. A line added and never edited, holding only its defaults, is still skipped at save like a blank one; once the user edits a cell of it, it is input and is saved, even when every value they typed equals a default. `LineItemsField` gains `newRowValues` and `newRowRequiredShown`; a line its Add starts on `newRowValues` carries the `UNTOUCHED_NEW_ROW` mark (a symbol key no payload carries) until its first edit, and `isBlankRow` reads that mark. `@object-ui/fields` exports `UNTOUCHED_NEW_ROW` and `isUntouchedNewRow`. A host that passes neither prop sees no change. The save request and its transaction are unchanged. + + **The band above the tabs.** The record page's scroller and its column layout each padded their top by 24px on a desktop, so a 48px empty band stood between the header and the tab row. The scroller now pads only its sides and bottom, and the column layout keeps a 12px top on every width, so the tabs follow the header at the gap the rest of the page uses; on a phone the title block keeps 16px to the tabs. The print chrome and the approval actions bar that render above the columns keep their own top margin, and an authored page the page renderer draws keeps its own top padding. Side padding is unchanged. +- d6be99d: feat(console)!: an object's list opens a record one way — the name opens the page, the hover icon opens the side panel; `navigation.mode` is deprecated + + Clause-②: yes (narrowing) + Metadata-protocol: semantic + + <!-- adr-0087: not-required (runtime-export-retired @object-ui/components#NavigationOverlayProps.maximizable, @object-ui/plugin-list#ListViewProps.recordOpen) the retired operands are a prop of the drawer component and a host prop of the list, in published ui package entries; no packages/spec schema, no registered node type, no ADR-0087 conversion surface and no stored shape names them, so there is nothing for `objectstack migrate meta` to rewrite --> + + **BREAKING** for a host that passed `NavigationOverlay` its `maximizable` prop or passed `ListView` a `recordOpen` choice. The maintainer ruled one way to open a record from an object's list, with no setting (「这样就不需要任何设置」), and deprecated `navigation.mode` (「废弃」). + + On a Console object list the record's name now opens the full record page, and the icon shown beside the name while the row is hovered (「在侧边打开」 / "Open in side panel") opens the record in the drawer over the list. There is no setting to choose between them: the Display menu's 「打开记录:抽屉 / 整页」 section and the browser-kept preference behind it are gone. A touch screen has no hover, so there the name opens the page. A ⌘/Ctrl or middle click on the name still opens the page in a new tab. + + The drawer is a card floating 8 px clear of the window's top, right and bottom edges, rounded and shadowed. Its full-width "maximize in place" state is gone (a reload lost it, and the full page is the wide face): the bar's one ⤢ opens the full page. The page's 「收为抽屉」 / "Collapse to drawer" hop is gone with it. + + A page the list opens remembers the list in its history entry (`location.state.from`): the list's URL (view, filters, sort, search, grouping, page), its view's name, the rows it showed and, new here, the count its query matched (`total`). A reload of the tab keeps it, and going back to that URL restores the list's scroll position. A page opened any other way carries none. + + `navigation.mode` (`NavigationConfigSchema.mode`) is deprecated on an object's list (`@deprecated`, `[DEPRECATED]` describe; ADR-0087 D3 semantic entry `navigation-mode-record-open-deprecated`). The key stays in the shape and every value still parses, so existing metadata loads. On an object's list (a list view, an object's `listViews`) `drawer`, `page` and `new_window` change nothing: a view that declares one behaves as a view that declares nothing. `none` keeps "rows open nothing", because a read-only list that started opening records would be a regression nobody chose; prefer `navigation: { preventNavigation: true }`. `navigation.openNewTab: true` stays live: on an object's list the record's name then opens the full page in a new tab, and the list stays. A page's blocks that carry `navigation` (a list block, the timeline, an embedded view) still honour `drawer`, `page` and `new_window` as before: keep the key there. + + The i18n keys `list.recordOpen`, `list.recordOpenDrawer`, `list.recordOpenPage`, `list.optionsMenu.recordOpenAlwaysPage`, `detail.collapseToDrawer` and `console.objectView.openAsPage` are removed from every pack, and `console.objectView.openInSidePanel` is added. + + What leaves, and what to write instead: + + - FROM `NavigationOverlayProps.maximizable` TO nothing, in the components package: the drawer has no full-width state. Fix: delete `maximizable`; the drawer's ⤢ opens the full page. + - FROM `ListViewProps.recordOpen` TO nothing, in the list plugin: the Display menu has no Open records section. Fix: delete `recordOpen`; the list opens a record one way. +- 52fb30c: feat(plugin-detail): the default record page draws no stage bar and no key-field strip; the stage moves from the header's status tag + + Clause-②: yes (widening) + Metadata-protocol: semantic + + The default record page (`buildDefaultPageSchema`) no longer emits `record:highlights` or `record:path`. The stage is the status tag beside the record's name: a reader who may edit the stage field sees it with an arrow and opens a menu listing every stage in order, the current one checked; a stage the field's blocking `state_machine` cannot reach is disabled with its reason under the name. Picking a stage confirms, and a stage that makes other fields required (their `requiredWhen` holds once the record stands on it, such as a loss reason on a lost stage) asks for exactly those fields in the same dialog and writes them with the move. A refusal stays in the dialog, beside the field it names, and the stage does not move. A reader who may not edit the field, an approval lock or an open draft leaves the plain tag. A plain status field (no stage role) is read and moved the same way. + + The details body now draws every field its groups hold: the highlight fields and the stage field are no longer taken out of their groups, so a record reads in the same groups and order in view and in edit (objectstack#35849). `highlightFields` itself is unchanged and still drives the hover card, a related list's default columns and the record picker; nothing is picked when an object declares none. + + `buildDefaultHighlights` and both blocks are kept: an authored page, or a slotted page's `highlights` slot, still places a strip and a path where it wants them. + + - `@object-ui/components`: `RecordHeaderState` gains an optional `stage` renderer (with the exported `RecordHeaderStageParts`), which the header calls with the stage tag it would draw. Without a host bar (a phone) the header now draws the stage tag in the row under the record's name, beside the state's tags; before, a phone showed no stage at all. + - `@object-ui/plugin-detail`: exports `RecordStageMenu`, the menu a host hands the header as `RecordHeaderState.stage`. Its fields-a-stage-needs dialog comes from the package-internal `useStageChange` (`record:path` keeps its plain confirmation). + - `@object-ui/plugin-detail`: `BuildPageOptions.highlightFields`, `.statusField` and `.stages` are still accepted by `buildDefaultPageSchema` and `buildDefaultTabs` but no longer do anything there, since the default page draws no strip and no stage bar; `buildDefaultHighlights` still reads them. Retiring them is objectstack#35943. + - `@object-ui/i18n`: four `detail.stageMenu*` strings in every locale. + - `@objectstack/lint`: `field-group-shadowed` no longer counts the highlight strip as hiding fields from the detail body, since the default record page leaves them in their groups; a group whose only visible member is the record title still warns. +- a23164e: feat(spec, ui): an object takes a colour from a fixed palette, and its icon is drawn as a white glyph on a square of that colour + + Clause-②: yes (widening) + Metadata-protocol: added + + - **`ObjectSchema.color` (new, optional).** One name from a closed palette of nine: `gray`, `blue`, `teal`, `green`, `amber`, `orange`, `red`, `pink`, `purple` (exported as `OBJECT_COLORS` and the `ObjectColor` type from `@objectstack/spec/data`). No free colour values: `color: '#ff0000'` is refused, and the refusal lists the nine names. An object without a `color` is drawn in the neutral `gray`. Nothing to migrate: every existing object stays valid and simply has no colour. + - **The AI blueprint carries it too.** `BlueprintObjectSchema.color` is the same leaf (required-but-nullable on `SolutionBlueprintStrictSchema`, like `icon`), and its rule asks the model to colour every object and give each object of one solution a different colour while the palette lasts. A producer of the STRICT shape must now send `color` on each object, `null` when it has none; the lenient shape a stored blueprint is read with keeps it optional. + - **`ObjectIconTile` (new, `@object-ui/components`).** Draws an icon name as a white glyph on a rounded square of a palette colour, in four sizes. Each name has a light-theme and a dark-theme value chosen so the white glyph keeps at least 3:1 contrast. `OBJECT_COLOR_TILE_CLASS` and `objectColorOrDefault` are exported with it. + - **Navigation draws objects as tiles.** In the sidebar, the app-home menu and the phone menu, every entry that opens an object is drawn as that object's tile: the entry's own `icon` when it names one, else the object's, on the object's colour. Dashboards, pages and links keep their line icons. `NavigationRenderer` takes a new `resolveTargetColor` resolver (`NavTargetColorResolver`) beside `resolveTargetIcon`; the console answers it from the object metadata it already holds (`useNavTargetColor`). A host that passes no `resolveTargetColor` gets its object entries as gray tiles where it had line icons. + - **The designer picks icon and colour together.** In the object's settings, the icon picker shows the nine colour swatches, and the trigger and every icon in the grid are previewed as the tile they become. The picker elsewhere (pages, apps, navigation entries) is unchanged: only objects carry a colour. + - The other places that draw an object's icon (list and record headers, search, related-record chips, the designer's object lists) switch to the tile in a follow-up release. + + `@objectstack/metadata-core`: the field-level-security reference table classifies the new `color` key as `keep` (a palette name names no field). + + `@objectstack/platform-objects`: the generic object form's metadata-form packs ship the new `color` row's label and help text in all 10 locales. +- 0b2118f: feat(record-page): on a phone the record page's bottom bar holds the object's own actions only, and Edit moves into the More menu at the top bar's right end + + Clause-②: yes (widening) + Metadata-protocol: semantic + + On a phone the record page's bottom bar used to always draw Edit first, then the primary action and the `⋯`; an object with no action of its own got a full-width Edit and nothing else. A field's value is now edited by a tap on it, so on a phone: + + - The bottom bar draws the object's actions only: the primary and the next one (the default budget of 2 is unchanged), filling the row. The record's edit state keeps its Cancel and Save there. + - With no action to draw, no bottom bar is drawn and the page body runs to the foot of the screen. + - The `⋯` moves to the right end of the top bar. It holds Edit (on or off, with the reason when it is off), the actions that did not fit, Refresh, Share and Delete. (Favorites is not in it: the favorite star sits beside the record's name.) Edit there does what the bar's Edit did. + - A record pending the reader's approval is unchanged: the bar is the approval's decisions and its own `⋯`. + - The desktop header is unchanged. + + `page:header` `mobileMaxVisible` keeps its default of 2 in the phone bar, but Edit no longer takes one of those slots, so an unset budget now shows two of the page's actions where it showed one, and an authored value counts the page's actions alone. Host buttons still take bar slots ahead of the page's actions: the queue's Claim, and in the record's edit state its Cancel and Save. Its description in the spec, the designer and the docs says so. + + Migrating: an author who wants the earlier number of page actions in the phone bar lowers `mobileMaxVisible` by one. An authored `1` that meant "Edit only" now shows the primary action; to keep the bar free of inline actions, mark the page's actions `component: 'action:menu'` so they fold into the `⋯`. + + `@object-ui/components`: `PageHeaderPhoneFace` (the value of `PageHeaderPhoneContext`) gains an optional `more` slot. A host that hands it gets the `⋯` drawn there, and a bar with no button draws nothing; a host that does not keeps the `⋯` as the bar's last button, as before. +- fed637c: feat(i18n): a flow screen with its own heading gets a translatable step name, `flows.FLOW.nodes.NODE_ID.label` + + Clause-②: yes (widening) + Metadata-protocol: added + + A screen node that sets its own `config.title` has a heading and a separate canvas label. Until now only the heading could be translated (`flows.FLOW.screens.NODE_ID.title`), so the label stayed in the authoring language. The docs flow embed and the Studio flow designer both draw that label. + + - **New key accepted.** `objectstack validate` now accepts `flows.FLOW.nodes.NODE_ID.label` over a screen whose `config.title` is a non-empty string. A screen with no `config.title` is still refused there and pointed at `screens.NODE_ID.title`, because its heading is its label and one string keeps one key. An `approval` node is still pointed at `approvals.NODE_ID.label`. + - **Docs embed.** The `type: flow` embed (`element:metadata_viewer`) names a titled screen by its heading, translated where the bundle has the heading. When the heading holds a `{{ }}` hole, which a drawing cannot fill, the embed now names the screen by the new key, and falls back to the authored label only if the key is missing. + - **Studio designer.** The canvas draws a titled screen's label from the new key. + - **Untitled screen with a hole.** If a translated `screens.NODE_ID.title` contains a `{{ }}` hole, the embed and the canvas now draw the authored label rather than the raw template. + - **Coverage.** `os lint`'s i18n coverage and `os i18n extract` ask for the new key on a top-level screen whose authored heading holds a `{{ }}` hole. These are the screens the embed draws by their label. + - **One branch rule.** `@objectstack/spec/automation` exports `flowDecisionEdgeBranch`, `FlowDecisionEdgeBranch` and `FLOW_DECISION_DEFAULT_BRANCH_LABEL`. They decide which out-edges of a decision a drawing lists as branches. The docs embed's branch list and the i18n walk's folded branch targets both read them, so the two can no longer disagree. + + Nothing to migrate. A bundle that does not use the new key keeps working. + +### Patch Changes + +- 55020c3: fix(form): formula fields are recomputed from the live inputs before the field rules are judged + + Clause-②: yes (widening) — one new member on the `@object-ui/core` package entry, `planObjectFormulas` (with its `ObjectFormulaPlan` type); nothing removed or renamed + Metadata-protocol: none + + A required field whose `visibleWhen` reads a `formula` field was judged on the formula value the form last read, or on nothing on a create. On a create form the field stayed hidden whatever was typed, or, when the formula was not drawn on the form, the rule faulted on the missing key and every submit was refused. On an edit that moved the inputs across the condition, the field stayed hidden while the server required it. In both cases the user could not save. + + The object form renderer and the console's form-view page now compute the object's formula fields over the record being edited, in the platform's read order, with the canonical `@objectstack/formula` engine, and judge `visibleWhen`, `requiredWhen` and `readonlyWhen` over that record. The formulas are computed for the signed-in user as the server computes them: `current_user` (also `user` and `ctx.user`) carries the user's id and positions. A formula that faults the way a read faults (an operator over an empty operand, an undeclared key, a cycle, a scope root the server does not bind for a formula, such as `previous`) reads `null`, and the rule is judged on that `null`. A formula the form cannot compute is one that reads through a reference, calls `label()` or `current_user.can()`, reads `os`, reads the user when nobody is signed in, is served without its expression, or reads such a formula. A field whose `visibleWhen` reads one is shown and keeps its `required` flag, with one console warning, and the form does not refuse the submit for that rule; the server, which judges the write, decides. Computed values are used for the rules only and are never sent in the write. +- 6f2bd4f: fix(fields): a create form that opens with a lookup value runs that lookup's `lookupAutofill`, and a picker's "+ New" seeds the `dependsOn` parent it filters by + + Clause-②: no + Metadata-protocol: none + + - **Opening value.** A create form can open with a lookup already set: a related list's New links the parent, a URL prefill sets it, or a form view default does. That lookup now fills the targets its `lookupAutofill` declares from that record, the same way a pick does. Example: from an opportunity, Related → Quotes → New opens a quote with Account filled from the opportunity. Only empty targets fill. A value the form opened with is explicit, so `overwrite: true` does not replace it. The fill uses the record the lookup already reads for its label, so no second request is made. The filled values count as opening values: a form nobody has touched closes without the discard prompt. A later pick replaces what the opening fill wrote, as it replaces what an earlier pick wrote. An edit form fills nothing from the stored record. + - **"+ New" in a dependent picker.** When a lookup's picker is filtered by `dependsOn`, its "+ New" now opens the create form with those values already set, under the field name the filter uses (`param`). The new record is then one the picker lists. The one-field inline create, used when no modal host is present, sends the same values. A picker with no `dependsOn` seeds nothing. + - **Hosts.** The form renderer passes a lookup the value it opened with (`openingValue`, create forms only). `onAutofill` now takes `{ opening: true }` for a fill made from that value. The console's `useActionModal` opens an object create form with the `initialValues` the descriptor carries. + + No metadata key is added or changed. +- 99a0e4f: fix(ui): grouping headers and the filter value picker name a lookup by its target's `nameField`, and the empty group is translated + + Clause-②: yes (widening) + Metadata-protocol: none + + A lookup with no `displayField` is now named by the target object's declared `nameField`, the default the spec states for `displayField` ("the referenced object's name/title"). This is the same title the lookup's grid cell and the record header already show. Before, three places guessed a `name`, `label` or `title` key, and showed the raw record id when the target had none, for example a target titled by an autonumber such as `DEAL-2026-0001`: + + - **Group headers of a list grouped by the lookup**, both server-grouped and client-grouped. + - **Filter builder value picker options** for the lookup, and the chip of the chosen value. + + An explicit `displayField` on the lookup still wins. Grouping and filtering stay keyed by record id, so two records with the same title stay separate groups and separate options. The picker reads the target object's definition once per picker. The ObjectStack adapter serves later reads of it from its metadata cache. + + The group of rows with no value now reads the grid's own empty-value string (`grid.empty`, for example "Empty" in English and "空" in Chinese) instead of the untranslated `(empty)`. It keeps its place in the group order: first when ascending and last when descending. + + `@object-ui/core` adds `referencedRecordTitle(targetDef, record, displayField?)` to its public entry, a new export. It gives the title of a referenced record using the lookup's `displayField`, then the record-title ladder of `getRecordDisplayName`, and returns `undefined` instead of the `Record #<id>` floor. +- 1b2cd80: fix(app-shell, components): a record Edit or Delete greyed by `userActions.*.disabledWhen` says why + + Clause-②: no + Metadata-protocol: none + + When an object's `userActions.edit.disabledWhen` held on a record, the record page greyed Edit and said nothing about why, on desktop and on the phone; the header overflow's Delete under `userActions.delete.disabledWhen` was just as silent. Both now give the generic reason an authored action without a declared `disabledReason` already gives ("Not available for this record", in every shipped language): on desktop as Edit's tooltip and accessible description, and as the second line of the `⋯` entry, which is where Delete sits and where a phone's off Edit goes. The approval band and the "Not editable in its current state" badge keep explaining their own locks, so an Edit they turn off gives no second reason, and a record that has not loaded yet gives none. + + `page:header` now draws a `disabledReason` a host hands with one of its own header actions (`RecordContext.headerSystemActions`) when that action's `disabled` holds. A host action that hands none stays silent, as before; the generic reason is still given only to authored actions. +- 3819afe: fix(components): a list row's Edit or Delete greyed by `userActions.*.disabledWhen` says why + + Clause-②: no + Metadata-protocol: none + + When an object's `userActions.edit.disabledWhen` (or `delete.disabledWhen`) held on a row, the data-table's row menu greyed Edit (or Delete) and said nothing about why. The item now gives the generic reason the record page gives for the same verdict ("Not available for this record", in every shipped language) as a visible second line under its label and as its accessible description; its accessible name stays the label. An item that is on, with no predicate or with a predicate that does not hold, gives no reason, as before. +- 9212119: fix(components): a record page's stuck tab strip is a solid bar, flush with the top of the page + + Clause-②: no + Metadata-protocol: none + + On a long record page the horizontal tab strip (Details / Related / Activity) sticks to the top as you scroll. Its fill was 60% transparent with a blur, so the cards scrolling under it showed through and overlapped the tab labels, worst in the dark theme. It also stopped short of the top: the page's scroll area is padded, and the browser sticks a `top: 0` box at the padding's inner edge, so a strip of scrolled content stayed visible above the tabs. The stuck strip now uses the solid page-background colour of the active theme and keeps its bottom rule, and it stops exactly at the visible top of its scroll area, whatever that area's padding at the current screen width. Vertical (sidebar) tab layouts, tab styles and tab order are unchanged. +- cda16d4: fix(console): the approval request page is named by the record it asks a decision on, and its reject button no longer outweighs approve + + Clause-②: yes (widening) + Metadata-protocol: none + + - **The page title.** An approval request's page used to be titled by its flow's label ("Purchase approval"), which the strip under it repeated as its Flow chip, while the business record the approver decides on had no title at all. The page header now reads the record's title the approvals get serves (`record_title`), linked to that record once the page itself has read it: a plain click opens it in the app, as the "As submitted" card's "Open record" link does, and a modifier or middle click opens it in a new tab. Where the page's read of the record is refused or finds nothing, or the platform says the record was deleted, the title is plain text with no link, as the record card on the same page draws it. The title makes no read of its own: the reads the page already makes report what they found. Where the get serves no title for the record, or serves only its id, the header keeps the flow's label, so the page never names the record by a raw id. The flow stays named once, by the strip's Flow chip; no subtitle is added, because it would repeat that chip. The request object's declared title (`nameField: 'process_label'`) is unchanged, so lists, search, recent items and the breadcrumb still name a request by its flow. + - **`RecordHeaderState.title`** (`@object-ui/components`, new optional member, with its type `RecordHeaderTitle`). A host that knows a better name for the record than the object's declared title hands `{ text, node? }`; `page:header` draws `node` (or `text`) inside its H1, in the host's top bar and in its own row alike. Absent, or with an empty `text`, the header's own title stands exactly as before. + - **The decision band.** In the approver's band (the request page, and the business record page's approval band), Approve stays the filled primary button and Reject is drawn as an outline button in the destructive text colour, the face the record header already gives a secondary danger lever. A host that does not ask for the band's fold keeps the declared filled danger face. + - **One time format.** The approval timeline's action times use the compact datetime face the page's highlight chips and every `datetime` cell draw (`2026/11/10 下午8:25` under zh-CN), in the host's display time zone, instead of the browser's long form with seconds. + - `@objectstack/plugin-approvals`: comments only, saying where the request page now names its record. +- dda665f: fix(grid): a list in a narrowed main area keeps every data cell clear of its fixed columns, shows its horizontal scrollbar, and draws a short header + + Clause-②: no + Metadata-protocol: none + + - **Row actions column.** While a list's table is wider than its box (the AI panel docked, a small window, the record drawer open), the row actions column (the row's "⋮") is drawn right after the frozen name column and frozen with it, instead of pinned to the right edge, where it covered the data column reaching that edge (an amount cut to 「¥94,0」). Every data column then scrolls sideways under the frozen columns, and none is covered at rest. Once the box is wide enough for the whole table again, the column goes back to the right edge, so a list that fits looks as before. Inline primary row actions still fold into the "⋮" menu first, as before. Columns an author pinned to the right stay where the author put them; the grouped list is unchanged. + - **Horizontal scrollbar.** A table wider than its box draws its scrollbar at rest instead of only while the pointer is over it, so columns out of view are announced. A table that fits keeps the scrollbar that shows on hover. + - **List header.** While the list page's header is narrower than 768 px, it draws no description, and Import moves into the 「⋯」 menu beside New. A wider header is unchanged. This is opt-in: the console `PageHeader` gains `compactBelow` (a width in px; below it the one-row header drops its description and draws its folded actions), which only the list page passes, so other pages that use `PageHeader` are unchanged. Setup's two-line header ignores it. + - No column is hidden and no column configuration changes. +- 98b3f87: fix(plugin-form): a grouped record dialog's section bar is a jump bar, not tabs: it is hidden when the sections fit, and a click marks the section it jumped to + + Clause-②: no + Metadata-protocol: none + + A create or edit dialog for an object with field groups and no authored form layout draws every group stacked, with a row of group names above them. That row is a jump bar: a click scrolls the form to the group. It was drawn as underlined tabs, so users expected a click to switch the content, and when every group fit the dialog a click had nothing to scroll and only the highlight moved, which looked like tabs that do not work. + + - The bar is drawn as jump links (a `#` glyph and a pill per group), not as underlined tabs. + - The bar is hidden while every group fits the dialog body, and comes back when the content outgrows it (a group unfolding, a field appearing, a smaller window). The dialog header keeps its separator when the bar is hidden. + - A click marks the heading of the group it jumped to for a moment, so a jump to a group already in view still shows where it went. + + The same rules apply to the full-page form's section bar. An authored `tabbed` layout keeps its tab strip, which switches the content as before; collapsed groups, the highlight rule and the error counts are unchanged. Nothing to migrate. +- e01b8be: feat(console): the list page's frame — a 44px page bar, a 40px view bar, a denser grid and per-column totals in the grid's own last row + + Clause-②: no + Metadata-protocol: none + + The object list page is redrawn around two bars and a denser grid (objectstack#35548, the first card of the list-page epic): + + - **Page bar, 44px.** The object's icon in one colour and its name on the left; ⋮ and 「+ 新建」 on the right. The object's description, Import and Favorite moved into ⋮. + - **View bar, 40px.** The view switcher is one trigger on the left, reading the view type's icon, the view name, the record count and a caret (the count beside the name returns, after objectstack#34603 removed it). 「筛选」「排序」「选项」 are text buttons on the right beside the search icon, and open the same panels as before; below `sm` they stay icons. The kanban and every other view type draw the same two bars. An empty condition row under the bar takes no height. + - **Grid.** A 32px header and 33px default rows, 13px on the header, the cells and the bar buttons, faint row lines, no rule after the first column, and the frozen-column shadow only once the grid scrolls sideways. The row ⋮ trigger is 24px so it fits the row. Lookup values read as small chips, money and number columns (a money formula with `returnType: 'currency'` among them) align right with tabular digits, and select labels keep their colour at lower saturation. + - **Totals.** Column summaries are drawn as the table's own last row, each figure under its column (so they line up at any width and are never covered by pinned columns), led by 「计数 N」; the separate footer line and its doubled colon are gone. + + `DataTableSchema` gains one host-only runtime slot, `summaryRow` (`{ lead?, cells }`), which `ObjectGrid` fills; like `rowGroups`, the zod face refuses it by name, so it is not authorable. New locale keys: `list.options`, `grid.summary.countLead`. +- d96c878: feat(list): the object list page has no Actions column; a selection swaps the page bar, and a list with no declared pagination loads as it scrolls + + Clause-②: no + Metadata-protocol: none + + - **No Actions column on the list page.** The list's rows carry no control: no Actions column and no "⋮" at the row end, on hover or at rest. A row's actions are reached by selecting it or by right-clicking it. Grids outside a list page (related lists, page blocks, the record drawer) keep their Actions column and their bottom bulk bar. + - **Selection in the page bar.** Ticking rows swaps the page bar to 「对象名 / 已选 N 条」, Cancel, and the actions for what is selected: one record shows its own row actions, two or more show the bulk actions. The first two are buttons (in the order the actions are declared, by their `order`), the rest are behind "⋮", and Delete is never a button. Cancel, or clearing the selection, brings the page bar back. The bottom bulk bar no longer floats over the list on the list page. + - **Context menu.** In a row's menu (its context menu, and the "⋮" where one is still drawn) Delete is the last item, after a separator, in the danger colour; a selection's menu closes with its destructive actions the same way. + - **Checkboxes.** The whole leading cell toggles a row, and Shift extends the selection over the rows between the last toggled row and this one. + - **Scroll loading.** A grid list view that declares no `pagination` draws no pager: it loads 50 rows and the next 50 as the list nears its end, and shows the match total beside the view name. With every loaded row ticked, the page bar offers 「选择全部 M 条」 (capped at 5000 as before). Opening a record on its own page and coming back returns to the same place in the list. A view that declares `pagination` keeps its pager. Footer totals are still computed by the server over every matching record. +- 72d19c4: feat(record-page): the record's header is one row with one button group + + Clause-②: no + Metadata-protocol: none + + A record page used to stack its top bar, the record's header row under it and, while an approval was pending, a band of decision buttons above the body. They are now one 44px row: + + - **Full page.** The object icon and name, `/`, the record's name, its stage tag and an approval tag on the left; the record counter and prev/next, a divider and the record's ONE button group on the right. + - **Drawer.** The record's icon, name, stage tag and approval tag, then the button group, 整页打开 and 关闭. The drawer's bar draws no object name, counter or prev/next once the record's header holds it. + - **One button group, by the approval's state.** Normal: Edit, the record's one primary action and ⋯. Pending on the viewer: 通过 (the only filled button), 驳回, and ⋮ with the other approval levers, a separator and the record's actions. The viewer's own submission pending: 撤回, 催办 and the same ⋮. An administrator who holds only the override keeps the marked override menu ahead of the group. On a phone the bottom bar draws the same group, with 通过 the only filled button. + - **Approval tag.** 「待你审批」, 「审批中」, 「已退回修改」 or 「已驳回」 beside the record's name; it opens the approval's detail, today the approvals panel on the page. + - **Locks.** A record an approval locks draws no Edit and no 「审批中已锁定」 badge in the body; the approval tag says why (its tooltip names the lock). A lock from the record's state keeps Edit drawn and disabled, with its lock tag beside the record's name. + - **Reject asks for a reason.** The record page's reject dialog requires its comment. The declaration and the approvals list are unchanged. + + A record page whose layout has no `page:header` keeps the decision band above its body, since no header draws the group there. The request page's `ApprovalDecisionPanel` band is unchanged. + + `@object-ui/components` adds `RecordHeaderBarContext` (the slots a host's bar offers the record's header) and `RecordHeaderStateContext` (the tags and the button group a host's record state hands it); `RecordTopBar` and `NavigationOverlay` take an `actionSlotRef`, and `NavigationOverlay` a `stepperHidden`. `PageHeaderActions` takes a `defaultMaxVisible`. `@object-ui/react`'s `InlineEditProvider` takes `approvalTagDrawnByHost`, and `DetailView`'s approval band then draws no badge for an approval lock (the tally stays). Nothing an app authors changes. +- b0c624a: feat(record-page): one tab per related list, and an Overview rail that sums up the other tabs + + Clause-②: no + Metadata-protocol: none + + The record page's tab row and its right column are redrawn (supersedes objectstack#28469): + + - **Tabs.** Overview, then one tab per related list in its order, then Attachments, Approvals and Activity last. Every tab is there at first paint and none moves when the counts land. A list with no records keeps its place, greyed, with no number. The width is the row's only fold: the tabs that do not fit go into 「更多 N ▾」, whose items keep their counts. Approvals carries a dot while a request waits, not a count. A tab that merges several tables (only an explicit page can write one) carries no count. + - **Overview.** The stage path and the key fields sit across the whole width on Overview only; every other tab draws its block in full in their place. + - **Right rail.** On Overview, the right column sums up the other tabs, in this order: Approvals, Attachments, Recent activity, then 「其他相关」 with a card for each related list that has records. Each card has a title (which opens its tab), a grey count and at most three rows. A card with nothing to show is not drawn, and there is no 「还有 N 个空关联」 line. Nothing in the rail is editable. A rail with no cards folds away. A drawer draws no rail and no right-column switch. The rail's rows come from the page's one read: it reads nothing more. + - **No band at the foot.** A page drawn as written that places no approvals or attachments panel gets them as tabs of its first tab strip, not as bands under the page. The header's approval tag opens the Approvals tab. + - **One approval band.** A page drawn as written whose details are split into several `record:details` nodes draws the record's approval band once, on the first body that reaches it, recall included. + + - **Reader arrangement leaves with the cards.** The related cards' ⠿ handle, ⌥↑ / ⌥↓ and 「隐藏」 are gone with the cards, so a reader can no longer reorder or hide a related list on the page. An order or hides already stored still apply, and 「恢复默认顺序」 / 「显示」 still undo them. + - **`?tab=related` is retired.** The single 「Related」 tab is gone, so a saved link carrying `?tab=related` opens Overview. + + `@object-ui/plugin-detail` adds `ApprovalBandOnceScope`. `@object-ui/i18n` adds the 「更多 N」 trigger and the rail's labels in every pack. Nothing an app authors changes. +- 227a16a: fix(ui): danger text is readable in dark theme + + Clause-②: no + Metadata-protocol: none + + In dark theme, `text-destructive` (a menu's Delete, error messages, danger links) used the deep red that is the fill of red buttons, about 1.6:1 on a dark menu. Text utilities now read their own token: each shipped `@theme` maps `--text-color-destructive` to `--destructive-text`, which only `.dark` defines (a brighter red that clears 4.5:1 on every dark surface). Light theme leaves it unset and falls back to `--destructive`, so it is unchanged; `bg-`, `border-` and `ring-destructive` and red buttons keep `--destructive`. New apps from `objectui init` carry the same split, and the Gantt resource view's over-capacity label reads the text token. A host that overrides `--destructive` for its own dark theme can set `--destructive-text` beside it. +- 598a34d: Clause-②: no + Metadata-protocol: none + + fix(list): the list page lines up on one 16px left edge; the checkbox column is 40px at any width; no row numbers + + The list page drew five different left edges, and on a list with more columns than fit, the selection column was squeezed to the checkbox's own 16px, flush against the left of the page. Now the page bar's object icon, the view bar's view icon, the header's select-all box, every row's checkbox and the footer's record count all start 16px in, and the selection column is 40px (16px in, the 16px box, 8px before the first column) on a list that scrolls sideways, on one that fits, and after scrolling sideways and back. The view bar's last text trigger ends 16px in, where the page bar's button ends. + + The grid no longer draws row numbers unless a host asks for them (`showRowNumbers`): each row's leading cell is its checkbox, shown at rest rather than on hover. This applies to every grid, the list page, related lists and the designers' grids among them. The list page's Options menu no longer offers a 行号 (Row numbers) switch, the 「已个性化」 (Personalized) marker no longer names row numbers, and `ListView` drops its `defaultRowNumbers` host prop; the `list.rowNumbers` and `console.objectView.personalizedParts.rowNumbers` keys leave every language pack. + + A non-selectable grid with a row click drew a hover 「打开 ›」 (Open) button in its row-number cell; with row numbers off by default that button now appears only where a host opts into row numbers. Clicking the row, and Cmd/Ctrl-clicking it, still open the record. + + Removed from `@object-ui/plugin-list`'s exports: + - `ListViewProps.defaultRowNumbers`: `<ListView defaultRowNumbers={…}>` → delete the prop. Row numbers are off by default; a grid host that wants them passes `showRowNumbers` to `ObjectGrid`. + - `'rowNumbers'` in `ListPersonalizationPart`: an `onPersonalizationChange` handler or a label map keyed on it → drop that entry; the list no longer reports it. A grid whose authored columns all fail to resolve now says it renders "NO data columns" in its console diagnostic, since it no longer draws a row-number column. +- 0585797: feat(plugin-grid): selected rows get one small bar floating at the bottom centre of the list + + Clause-②: yes (widening) + Metadata-protocol: none + + Selecting rows in a grid now shows one bar floating at the bottom centre of the list area: 「已选 N 条」 and ×, up to three labelled actions, and the rest under 「更多」. When the selection offers no more than three actions they are all buttons, so a lone Delete is a button; over three, Delete goes behind 「更多」 with the rest. The bar sits above the footer calc row, the list keeps room after its last row so that row scrolls fully clear of the bar, and when every loaded row is selected and more match, the bar offers 「选择全部 N 条」. × or Esc clears the selection; Esc that belongs to a field, or to another open menu or dialog, does not. + + The same bar serves the object list page, a record's child-table tabs, the side record and embedded tables. The old bottom strip and the list page's 「已选」 face in the view bar are both retired, so the top of the list page no longer changes when rows are selected. On the list page, where rows draw no actions of their own, one selected record offers that record's actions; elsewhere the bar offers the bulk actions at any count. A narrow list gives actions back to 「更多」 until the bar fits on one line. + + - `@object-ui/plugin-grid`: `BulkActionBar` is redrawn as the floating bar; its props gain `singleRowMenu`. `useListPageScope(scope)` replaces the unpublished `useListPageBarHost`. + - `@object-ui/types` / `@object-ui/components`: `DataTableSchema.floatingBar` is a runtime slot (refused by the zod twin like the other runtime slots). The table floats it over its scroll box, above its summary row, with room after its last row. + - `@object-ui/app-shell`: the list page header and the view bar no longer swap to a selection face. + + This supersedes the selection behaviour in the list-page entry of this release (no Actions column on the list page): the selection is no longer shown in the page bar, up to three actions are buttons and a lone Delete is one, and grids outside a list page no longer draw a bottom bulk bar. +- fac1e7d: feat(list): a list cell saves the moment it is committed, and Space types into the selected cell + + Clause-②: yes (widening) — new members on the `@object-ui/react` package entry: `createOwnWrites`, `OwnWritesContext`, `useOwnWrites` and the `OwnWrites` type, and an optional third parameter on `useDataInvalidation`; three new `table.*` keys in every `@object-ui/i18n` locale (`cellSaving`, `cellSaved`, `openRecordToFinish`); nothing removed or renamed + Metadata-protocol: none + + In a grid that mounts `GridCellSelection` (the select-first grid every `ListView` draws), a committed cell edit is now saved at once, as one update for that record: + + - **No save bar, no row Save/Cancel column, no amber row.** The cell shows a small spinner while the save runs and a check mark once it landed. + - **Only that row is redrawn**, from the record the write answered with, so a value a server hook rewrote shows as stored. The list is not read again, though the write is still announced to every other reader (the record's detail pane, related lists, counts): the grid holds the record in the list's `OwnWritesContext` registry for the length of its write, and `ListView` lets that one write go by. So a row whose new value would sort it elsewhere stays where it is until the next load (refresh, sort, filter or page change). The counts on group headers, read with the rows, follow on the next load too; the footer's whole-set summary is its own reader and still refreshes on the write. + - **A refused save keeps the typed value** and shows the server's reason on the cell. Esc puts the stored value back. Later edits on the same row are sent together with the refused one as one update. When the reason names a field the list does not show (a rule that needs another field), the notice offers to open the record. + - **The 409 conflict dialog is unchanged.** The next save on a row sends the version the previous save answered. + - **Space** on a selected cell now types a space and opens its editor, as any other key does. A two-state (boolean) cell still flips. The record opens from the title link or a touch tap; the "Space opens the record" key added in #35747 is gone, so a master-detail page opens its pane only that way too. + + `@object-ui/react` adds that registry: `createOwnWrites()`, `OwnWritesContext` / `useOwnWrites()`, and `useDataInvalidation(objectName, recordId, ownWrites)`, which skips a change naming a held record. + + Grids without `GridCellSelection` keep the staged save bar and its batch save unchanged. + + New `table.*` strings in every locale: `cellSaving`, `cellSaved`, `openRecordToFinish`. +- 8500ee7: feat(list): confirm a state-machine move before a list cell saves it; the drawer's save bar says when the record changed elsewhere + + Clause-②: yes (widening) — `GridCellSelection` in `@object-ui/components` takes an optional `confirmCommit(row, columnKey, value)` member; nothing removed or renamed + Metadata-protocol: none + + In a grid that mounts `GridCellSelection` (the select-first grid every `ListView` draws): + + - **A move of a state-machine field asks first.** When an active `state_machine` validation rule of the object governs the field on update, a new value committed into its cell (picked in the editor, or pasted) opens a confirm naming the field and both values and saying saving may trigger related automation. Cancel writes nothing and the cell keeps what it showed; Change saves the value as any commit is saved. Focus goes back to the cell either way. + - **The generic seam:** `GridCellSelection.confirmCommit` is asked before a value that changes what a cell shows is staged or saved. A promise holds the write until it settles (`true` writes, `false` or a rejection writes nothing); `null` or `undefined` means no question, as before. + + On a record page or in a record drawer, `InlineEditSaveBar` now says so when the record is read again at another version while an inline edit session is open (a list cell beside the drawer saved it, say). The draft stays as typed, and Save writes it over the version now read, as it did before; only the note is new. +- a6607c7: feat(grid): the inline cell editor floats over its cell, so the row keeps its height; a selected cell that is cut off shows its whole value + + Clause-②: no + Metadata-protocol: none + + In `data-table` (and so in every grid `ObjectGrid` draws): + + - **The editor draws on a layer over the cell** instead of inside it. The layer's top-left corner sits on the cell's, it is at least as wide as the column and grows wider or taller where the editor needs it (an address form, a record picker, a multi-line text), and neither the row's height nor any column's width changes. Near the bottom of the window it opens upward, near the right edge it shifts left, and its height is capped at the space left, scrolling inside. A cell partly hidden behind a frozen column, a right-pinned column or the sticky header is scrolled clear first; scrolling the cell out of sight commits the edit, as a click outside does. The layer stays inside the cell's DOM, so click-outside, Escape, Enter / Tab and focus behave as before. Tab inside the layer goes where it went before: the select-first grid commits and moves, other grids let the browser move focus. + - **`ObjectGrid` sizes the layer per field type**: an address or location starts 22rem wide, a multi-line text, markdown, code or JSON 20rem, a lookup, master-detail or user 18rem, a multi-select, tags or checkboxes 16rem, a date, date-time, phone, URL, email or currency 14rem, anything else 10rem; never narrower than its cell. + - **On the select-first grid** (the list page), a selected cell whose value the column cuts off shows it in full on a layer over the cell, wrapped and scrolling past a few lines. Escape, an arrow key or a click elsewhere closes it; Enter or a double-click turns it into the editor in the same place and at least the same size. Enter on a checkbox cell flips it, as Space and a second click already did, instead of opening an editor. +- c00be39: feat(fields): in a list grid's cell editor, select, multi-select, tags, date, time and colour open ready to pick + + Clause-②: yes (widening) + Metadata-protocol: none + + The widget contract `FieldWidgetComponentProps` gains two optional host keys, `inCell` (draw the face for a grid cell's editor) and `onCommit` (the user has finished: write the last `onChange` value and close). `FieldEditWidget` forwards both, and `ObjectGrid`'s cell editor passes them. A host that passes neither renders every widget exactly as before. + + In the cell editor of every grid `ObjectGrid` draws: + + - **Single select and status** show their option list at once, with a search box that filters as you type. The arrow keys move through the list, Enter or a click picks, and the pick is saved; the selection stays on the cell. With nothing picked, Enter commits as before and Escape cancels. + - **Multi-select** (and a select declared `multiple`) is the same list with check marks: each pick toggles, and the edit is saved when you move on. + - **Tags** list this record's tags with check marks; unchecking removes one, and text that matches no tag is added from the list's leading "Add" row (Enter). + - **Date and date-time** open their calendar at once while the typed value stays visible and editable in the text box. The calendar offers Today, Tomorrow, Next week (seven days from today) and Clear. On a date, picking a day or a quick pick saves and closes; on a date-time, a day keeps the calendar open for the time, as in forms. + - **Time** opens the browser's time picker when the editor opens. + - **Colour** shows the hex box first (Enter saves, Escape leaves) and a row of swatches plus the browser's colour picker; a swatch saves and closes. + - A value picked this way hands the keyboard focus back to the selected cell, and in a grid that edits on a single click, the click that picked it no longer opens the editor again. + + `@object-ui/i18n` adds the strings these faces show in every locale: `fields.datePicker.nextWeek`, `fields.datePicker.clearPick`, `fields.options.search`, `fields.options.noMatches`, `fields.tags.add`, `fields.color.swatches`, `fields.color.custom`. + + Forms, dialogs and the record page keep their current controls. +- 1c87956: feat(fields): typed values edit flat in their list cell, a record picker opens its list in place, and a rating is set without an editor + + Clause-②: yes (widening) + Metadata-protocol: none + + In the list grid's cell editor (the layer over the cell, `inCell`): + + - Text, email, phone, URL, number, currency and percent are the cell itself: one row tall, square, with no border, fill or shadow of their own, the layer's 2px frame the only line around them (square and flat even under a host theme that rounds and lifts every dialog with `!important`). The box starts as wide as its column and grows to the right with the text, over the next cells, without moving them. Numbers are right-aligned and raw (`34500.5`, not `34,500.50`); a currency shows its code before the amount; a percent shows its points and a `%`, without the slider. The grid's built-in text and number editors take the same flat look. + - A lookup, master-detail or user cell opens its searchable candidate list at once (recently used first, then results); a pick is the whole edit. Under the list, Browse all records opens the full record picker (classic lookups, gated by `dependsOn` like the list), where a single pick ends the edit too, and Clear is offered while the cell holds a value. + - On a select-first grid a rating opens no editor: a digit key sets that many stars (0 clears, capped at the field's scale), a click on a star of the already selected cell sets it, and Backspace or Delete clears it. `GridCellFacts` gains the optional `stars` fact a host sets for this (`ObjectGrid` sets it for `rating` fields). + - The record pickers' local "recently used" ring is kept per signed-in user as well as per object, so two accounts in one browser no longer share it. Rings stored under the old object-only key are not read, so each user's recents start empty once after the upgrade. + + Forms, dialogs and the record page draw these widgets as before. No i18n key is added. +- 5345905: feat(components): in a list's grid a read-only cell says it is read-only, a cell save is said in one live region, and a touch never edits a cell in place + + Clause-②: yes (widening) + Metadata-protocol: none + + The widening is additive: the new key `table.cellSavedAnnouncement` in every locale pack `@object-ui/i18n` publishes through `./locales`. + + - **Read-only cells.** When the data table is a grid (`role="grid"`: a list page with the select-first cell model, or `keyboardNavigation`), a cell that opens no editor carries `aria-readonly="true"`, and so does the focus inside the selected cell, so a screen reader says "read only" on the cell it moves to. The selected cell adds the host's own facts (`GridCellSelection.describeCell`), asked as it becomes selected and again only when the row is re-read or the host hands a new value, never on each render; the rest read the table's own (`editable`, the column, the row). A plain table carries no `aria-readonly`. In a list, an approval lock or an update verdict that answers after the cell was selected is said on that cell at once, without the reader moving: the lock read re-renders the grid when it answers, and the grid hands the table a new value only when what its cell facts read changed. + - **Save results.** A table that saves each cell (`GridCellSelection` with `onRowSave`) draws one visually hidden polite live region for its whole life and says each saved cell there, by column name ("Saved: Amount"; new pack key `table.cellSavedAnnouncement`, in all eleven locales). Cells saved together are joined in the locale's list punctuation (`validation.formInvalidJoiner`: `、` in ja and zh); a column with no header is never named by its key (the region says "Saved"). A refused save is said once, by the cell's existing alert. The cell's saving/saved mark is no longer a live region of its own (it was mounted with its words and announced unreliably); it stays a named image. + - **Touch.** A tap on a cell that is not selected never edits in place: a lookup cell's edit button is not drawn for a finger, and a tap that lands on one drawn earlier for a mouse does nothing (the row ignores a click on a button). A tap elsewhere on the cell still opens the record, which is where a touch edits. A later click on the button with no pointer of its own (assistive tech) edits as before. +- 40e22f1: fix(approvals, list): a list cell no longer opens an editor before it knows the record's approval lock, and the list reads the locks of a page in one request + + Clause-②: yes (widening) + Metadata-protocol: none + + **What a list user sees.** On a list that edits in place, a double-click, Enter, F2 or a typed key on a cell whose record's approval lock or edit permission is still being read no longer opens an editor that the server would then refuse on save. The cell says "Checking whether this record can be edited…", and when the answer arrives the same edit goes ahead by itself (with the typed key), or the cell says why it does not: the record is locked while it is in approval, or the reader has no permission to edit it. Selecting another cell in the meantime drops the wait. Moving the selection with the arrow keys no longer sends a lock request per row: the first cell selected on a page asks the locks of every row on it at once. + + **New route.** `POST /api/v1/approvals/records/:object/locks` with the body `{ "recordIds": ["<id>", ...] }` (at least one id, at most `APPROVAL_RECORD_LOCKS_MAX_RECORD_IDS`, 200) answers `{ success: true, data: { records: [{ recordId, locked }] } }`, one entry per id in order. `locked` is what `GET /api/v1/approvals/records/:object/:recordId/lock` answers for that id, and `null` where that route answers 404: a record the caller cannot read and one that does not exist answer alike. Any other body (a key other than `recordIds`, an empty list, a non-string or blank id, more ids than the cap) and any query parameter are refused whole with `400 VALIDATION_ERROR`, never trimmed. A deployment whose approvals service does not implement the read answers `501`. + + **Contract and SDK.** `IApprovalService` gains the optional member `getRecordLocks(object, recordIds, context)`, entry `i` answering `recordIds[i]` exactly as `getRecordLock` does; the approvals plugin implements it in two reads whatever the page size (the caller's read of the ids, then one pending-request lookup judged by the record-lock hook's own judgement). `@objectstack/spec/contracts` exports `APPROVAL_RECORD_LOCKS_MAX_RECORD_IDS`. `@objectstack/client` gains `client.approvals.getRecordLocks(object, recordIds)`. + + **Components.** `GridCellFacts` (the select-first table's per-cell facts) gains the optional `checking: { text, settled }`: while present, an edit asked on the cell shows `text` and is asked again when `settled` settles; a toggle, paste or clear shows `text` and writes nothing. A host that sets no `checking` sees no change. +- 7de1bad: fix(ui): the designer and docs text for `page:header` `mobileMaxVisible` states the real default + + Clause-②: no + Metadata-protocol: none + + The Max Inline Actions (mobile) input description, and the `page.mdx` reference generated from it, said the budget defaults to 1. Unset, it is 2 in a record page's bottom action bar on a phone (the host's Edit counts) and 1 on any other header. The description now says so, matching the spec text from #35660, and the stale 3 / 1 comments on the header actions row are corrected. Text only: no value, fallback or rendering changes. +- bc9ace2: feat(record-page): the record's header is two rows — navigation over the record — and shows up to three actions again + + Clause-②: yes (widening) — `@object-ui/components` takes four optional members: `RecordTopBarProps.record`, `RecordTopBarStepper.onScope`, `NavigationOverlayProps.recordRow` and `PageHeaderActionsProps.fitWidth`; nothing removed or renamed + Metadata-protocol: none + + The record's top bar, on the full page and in the drawer alike, is now two rows: + + - The navigation row (40 px). From a list: ↑ ↓ and 「第 N 条,共 M 条 · 视图名」 ("N of M · view"), M being the records the list matched; the view's name returns to the list. From no list (a link, a notification, a search): the object's name and no ↑ ↓; on the page the name links to the object's list, and in the drawer it is shown without a link. ✕ sits at the far right in every case: on the page it returns to the list the page came from as it was left, else the object's default list; in the drawer it closes, with ⤢ (open the full page) before it. + - The record row (48 px): the record's icon, its name one size larger, its stage and approval tags, then who else is on the record and the managing package's badge (on the page they no longer float over the corner above the tabs), and at the right the record's buttons and ⊟. + + The drawer shows ↑ ↓ and the count again (the drawer hid them since #35593). A phone keeps its one-row bar. + + The header bar's default inline budget is 3 again (#35593 had set it to 1): what does not fit the bar's width folds into 「更多」 one action at a time, down to the primary, so a narrow drawer shows fewer. An authored `maxVisible` still wins, a phone still shows one primary action (its bottom bar holds the host's Edit and one more), and there is still one primary-coloured button at a time. The `page:header` `maxVisible` / `mobileMaxVisible` describe, the `pages.mdx` Default cell and the Studio designer descriptions say so. +- dea68e9: fix(plugin-list): a list's column header opens a menu and keeps a multi-level sort; a sort chip opens the sort panel + + Clause-②: yes (widening) + Metadata-protocol: none + + On a list page (the grid `ListView` draws), a click on a column header no longer sorts at once. It opens the column menu: sort ascending, sort descending, hide the column (a column that does not sort offers hide alone). Enter, Space or ArrowDown on the focused header opens the same menu, the arrows move through it, Enter chooses, and Esc shuts it without touching the sort. With no sort or a single level, the column picked in the menu replaces the sort; with two levels or more it becomes the first level, the other levels keep their order after it, and a column already in the sort moves up with the picked direction. No level is dropped. The ↑1 / ↓2 marks on the headers are unchanged. + + A sort chip under the view bar no longer reverses its direction on a click: it opens every sort level in one panel. Each level row in the sort builder now has a handle; dragging it, or ArrowUp / ArrowDown on the focused handle, reorders the levels. + + New public surface, all additive: `GridHeaderMenuProvider` and `useGridHeaderMenu` from `@object-ui/components` (a host opts a data-table into the header menu; without it a header click sorts as before, so related lists, dashboard tables and every other host keep click-to-sort); the `headerMenu` runtime prop on `ObjectGrid`; and the `sortBuilder.reorder` key in every `@object-ui/i18n` locale. The column menu itself is now a menu (`role="menu"` entries, keyboard reachable) wherever it opens, including a right-click on a header and the design host's caret. +- 6b51822: fix(ui): the entry form draws a group-placed master-detail table at its field group + + Clause-②: no + Metadata-protocol: none + + A master-detail child that a field group of the parent places (`fieldGroups[].relatedList`) is now drawn at that group in the parent's create and edit forms, where the record page draws it, instead of below all of the record's fields: + + - A form laid out from the parent's field groups draws the table after the sections of the groups declared before the placing group and before the ones declared after it. + - The form's section bar stops at the table too, between the sections around it. + - A tabbed form gives it a tab of its own at that position, labelled with the group's label. A wizard master-detail form is drawn as the simple form, as before, and places it the same way. + - A form whose sections name no field group, and a child no group places (a form view's own `subforms`), keep the table below the record's fields, as before. + + The table is the same one: its rows still save with the record in one batch, an expanded row's editor opens beside it, and the document totals stay at the foot of the form. No metadata changes. +- 9ed18a5: fix(ui): danger colours render red in both themes, and light danger text clears 4.5:1 + + Clause-②: no + Metadata-protocol: none + + - The grid and list views' export-error line, and the Markdown caution alert's border and title, set their colour to a bare `var(--destructive)`. That variable holds an HSL triplet, not a colour, so the browser dropped the declaration and the text rendered in the inherited colour. The export-error line now uses the `text-destructive` utility and the caution alert reads `hsl(var(--destructive-text, var(--destructive)))`. The Markdown theme's heading anchors, quote and meta tokens and blockquote border and background had the same defect with other theme variables and now wrap them in `hsl()` too. + - The flow preview's invalid-edge stroke and arrowhead paint with the danger text colour, so they stay readable on the dark theme. + - The light theme now sets its own `--destructive-text`, red-700 (`#b91c1c`, `0 73.7% 41.8%`), so `text-destructive` reads at 6.47:1 on white instead of 3.76:1. `--destructive`, the brand red used for button and badge fills, is unchanged. The same value is in the stylesheet that `objectui init` generates. + - A theme's `error` colour applied through the theme engine still sets `--destructive`, and now also derives a danger text colour for each mode from it (same hue, lightness moved until it reads at 4.5:1 on that mode's surfaces), written as `--destructive-text-light` and `--destructive-text-dark`. The shipped stylesheets read those into `--destructive-text` in their light and dark blocks, so a custom red drives danger text and stays readable in both modes. A host stylesheet that overrides `--destructive` by hand should set `--destructive-text` beside it in each mode. +- 9f6f306: fix(console): Hide column in the column-header menu is a list draft, like the eye in View settings + + Clause-②: yes (widening) — one new optional runtime slot `DataTableSchema.onColumnHide(columnKey)` (refused by name on the zod mirror, like `onColumnsReorder`) and one new optional `ObjectGrid` prop `onColumnHide(field)`; nothing removed or renamed + Metadata-protocol: none + + On a Console object list, picking "Hide column" in a column header's menu hid the column inside the table only: nothing above the table heard of it, so the list drew neither Discard nor Save and only a reload brought the column back. The same choice made with the eye in View settings was already a draft. + + The table now reports the hidden column to its host (`DataTableSchema.onColumnHide`, supplied by `ObjectGrid` from its new `onColumnHide` prop), and `ListView` writes it through the same writer as the hide-fields eye: the host hears it on `onHiddenFieldsChange` (the Console holds it in the list's draft, so Discard brings the column back and Save keeps it hidden), and a column the reader added leaves their added fields, as unticking it does. A table with no host handler hides the column in its own state, as before. +- 8c8ff0f: fix(ui): the state-machine chip's dot shows the theme grey when its option has no colour + + Clause-②: no + Metadata-protocol: none + + - In the metadata viewer's state-machine panel, a state whose picklist option declares no `color` showed an empty gap instead of its dot. The fallback read a bare `var(--muted-foreground)`, which holds an HSL triplet rather than a colour, so the browser dropped the declaration. The fallback dot now paints with the `bg-muted-foreground` utility, so it follows the light and dark themes, and a declared option colour reaches the dot as a CSS custom property that a static utility consumes, as the styling rules require. +- dda5e74: fix(components): a docs `type: flow` metadata embed names the flow and its approval steps in the reader's language + + Clause-②: yes (widening) + Metadata-protocol: none + + A package can translate a flow's label (`flows.<flow>.label`) and an approval step's label (`flows.<flow>.approvals.<node_id>.label`). The flow runner and the Studio flow designer already showed both, but the docs viewer's `type: flow` embed (`element:metadata_viewer`) drew the authored text, so a zh-CN reader of a manual saw the English flow name and step names. The embed now reads the same bundle, through the same resolution, in the reader's language, and falls back to the authored text where the bundle carries no key. A decision's branch list names the approval step a branch leads to by the same translated label. + + The spec has no key yet for a start, decision, notify or end node's label, so those steps still show the authored text. + + `@object-ui/i18n` has new public exports for the flow-label resolution (`flowLabelTranslations`, `useFlowLabelTranslations` and the `FlowLabelTranslations` type), moved out of the Studio flow designer and built on the `activeFlowsBundle` reader that package already exports, so the runner, the designer and the docs viewer share one reader of the `flows` group. +- f2a990b: feat(spec): every step a flow drawing shows can be translated, under `flows.<flow>.nodes.<node_id>.label` + + Clause-②: yes (widening: a new translation key `flows.<flow>.nodes.<node_id>.label`; the new exports `FLOW_TECHNICAL_NODE_TYPES` and `isFlowTechnicalNodeType` from `@objectstack/spec/automation`; and `@object-ui/i18n`'s exported `FlowLabelTranslations` type gains the member `screenTitle`, and its `stepLabel` parameter accepts a `config`) + Metadata-protocol: added + Skills-docs: follow-up #36401 + + A package can now translate the label of any flow step, not only a screen's heading and an approval step's label. A manual that embeds a flow (a `type: flow` metadata embed) lists its steps by label, and until now a start, decision, notify or end step had nowhere to put a translation, so a zh-CN reader saw those steps in English beside translated approval steps. + + - **The key.** `flows.<flow>.nodes.<node_id>.label`, keyed by the node's `id`, at any depth. It overlays the node's own `label` and is plain text. A `screen` keeps its `screens.<node_id>.title` and an `approval` its `approvals.<node_id>.label`, so one string keeps one key: `objectstack validate` points a `nodes` key over either at that key, and points a `screens` or `approvals` key over any other node at `nodes.<node_id>.label`. A key over a node the flow does not declare is refused. `nodes` was an unknown-key hint that suggested `screens`; it is now its own group. + - **Start and end steps are translated like any other.** Their labels are the author's words and often name an outcome or a trigger ("Approved", "On Task Created"), so nothing substitutes words of its own for them. + - **Missing translations are reported.** `os lint` and `os i18n check` (`i18n/missing-flow`) now ask for the label of every top-level step the embed draws at its default `detail: business` altitude, except screens and approvals, which they already asked for, and of a folded technical step where a drawn decision's branch list names it as the step the branch leads to (a decision whose branch runs a `script` first). `os i18n extract` scaffolds the keys. An app that ships translated locales gets new findings for its flows until it translates them. + - **The drawings read it.** The docs viewer's `type: flow` embed (`element:metadata_viewer`) and the Studio flow designer's canvas, nested region nodes included, now name each step by its translation in the reader's language, through the one resolution in `@object-ui/i18n`: `stepLabel` reads `approvals.<node_id>.label` for an approval, `screens.<node_id>.title` for a screen with no `config.title`, and `nodes.<node_id>.label` for any other node. A step the package leaves untranslated keeps its authored label. A decision's branch list names the step a branch leads to the same way. + - **A titled screen is named by its heading in the docs embed.** A screen that authors its own `config.title` shows that heading at run time, translated under `screens.<node_id>.title`, so the embed names it by the heading (translated where the bundle carries it) instead of its canvas label, which has no key. A heading with a `{{ }}` hole cannot be filled in a drawing, so such a screen keeps its authored label. `FlowLabelTranslations` gains `screenTitle` for this read. The Studio canvas keeps a titled screen's authored label. + - **One table for what business altitude hides.** `FLOW_TECHNICAL_NODE_TYPES` (and `isFlowTechnicalNodeType`) in `@objectstack/spec/automation` lists the node types `detail: business` folds away (`script`, `http`, `connector_action`, `assignment`, `get_record`, `create_record`, `update_record`, `delete_record`, `boundary_event`). The docs viewer folds steps by it and the coverage check asks for translations by it, so they agree on which steps a reader sees. +- 035a12c: feat(ui): every modal dialog draws one lighter surface, short create and edit dialogs are one narrow column, and a create dialog can stay open for the next record + + Clause-②: yes (widening) + Metadata-protocol: none + + What a user sees: + + - Behind a dialog the page is only slightly dimmed (10% in light mode) and no longer blurred, so it stays readable. The dialog is a white card (the raised grey in dark mode) with a hairline edge and a translucent outer ring, a 12px corner, and anything inside it drawn at the shared 40px control height (`h-10`: inputs, select triggers, default and icon buttons, and any other `h-10` element such as a 40px avatar) one step smaller, 32px from the `sm` breakpoint up; the phone sheet keeps its 44px touch targets. Confirmation dialogs, the required-fields prompt and the record create and edit dialog all share it. + - The create and edit dialog's title is 16px and follows the object's icon, and its padding is 20px. + - A dialog that lays out at most six fields and declares no `columns` (not on the form, not on any section) draws one field per row in the narrow `lg` size (672px); six is the maintainer's choice (ruling of record 7061696632 on objectstack-ai/objectstack#35980). This reverses the at-least-two-columns default such a dialog drew before. Seven fields or more, any declared `columns`, an authored `modalSize` or a maximized dialog lay out as before. + - The console's list 「New」 dialog (and a related list's child create) has a 「Create more」 switch. With it on, a save keeps the dialog open on an empty form with focus on the first field, and the list behind refreshes; with it off, a save closes the dialog and opens the new record as before. The switch is remembered per object in this browser. + - ⌘↵ (Ctrl+Enter on other platforms) saves the create and edit dialog, and the Save button shows the keycaps. A master-detail dialog (a record with line items) takes neither the shortcut nor 「Create more」. + + What a developer sees (`Clause-②: yes (widening)`, additions only): + + - `ModalFormSchema.createMore?: boolean` offers the switch on a `create` dialog that a host mounts itself (the `object-form` renderer's `formType: 'modal'` keeps it off), and `ModalFormSchema.onSuccess` receives a second argument, `{ createMore: true }`, when the dialog stays open. A host that passes neither sees no change. + - New i18n key `form.createMore` in every locale. + - The console's global `[role="dialog"]` corner rule and the blurred overlay on dialogs are gone; the look lives in `@object-ui/components` (`src/lib/dialog-surface.ts`), reached from the `dialog` and `alert-dialog` primitives through declared Shadcn patches. The card carries the `dialog-surface` class, which the console's shared floating-surface shadow skips; a host stylesheet that adds its own shadow to `[role="dialog"]` should skip it too. Popovers and the bottom drawer keep their rounded corners by their own containers; side drawers are unchanged. + + Nothing to migrate. +- 33d0169: feat(ui): the object's colour tile replaces its line icon wherever else the object is named + + Clause-②: yes (widening) — `ConsolePageHeaderProps` gains the optional `iconTile`, and `RecordSearchHit` and `RecordHoverCardObjectDef` the optional `color`; nothing removed or renamed + Metadata-protocol: none + + The tile the navigation already draws for an object (a white glyph on the object's palette colour, gray when it has none) now also names the object in: + + - **List and data pages:** the page bar and the view bar's object name in front of the view switcher; the URL data page's header. + - **The record page and the record drawer:** the record row in front of the record's name. + - **The record page's related lists:** each section's title, with the list's own icon else the related object's, on that object's colour. + - **Search:** the command palette's recent records, record hits and object entries; the search results page (group headings and hit cards); the global search block. + - **Home:** a record row in "Recently accessed". + - **References:** a pointer cell in a grid (`referenceVia`) and the record hover card. + - **Studio:** the data pillar's object list and header, and the interfaces pillar's object entries and header. + + `ConsolePageHeader` takes `iconTile`, an icon that draws its own square, drawn as given in every posture in place of `icon`. `RecordSearchHit.color` carries the object's palette name beside `icon`, and `RecordHoverCardObjectDef` names `color` beside `icon`. `ObjectIconTile`'s glyph keeps its size inside a host row that sizes every nested `svg`. +- 8aed508: Clause-②: yes (widening) + Metadata-protocol: none + Skills-docs: none — no skill teaches the input-method key guard (zero hits for `isImeKey` or `isComposing` under `skills/`); the field behaviour a skill describes is unchanged outside a composition + + An Enter that picks a word in a Chinese, Japanese or Korean input method no longer acts in three more field widgets: a line grid's cell no longer moves to the next line or appends one (its arrows no longer move either), the date picker no longer commits the half-typed date, and the record picker's page-jump box no longer jumps and clears itself. Safari's 229 Enter raised just after the composition ends is treated the same way; the next Enter does what it always did. + + `@object-ui/components` now exports `isImeKey(event)`, the one "does the input method own this key?" predicate. The list grid and every `@object-ui/fields` widget that reads its own keys ask it, so the copy `@object-ui/fields` kept is gone. +- a60740a: fix(components): the record header re-measures its width fold on another record + + Clause-②: no + Metadata-protocol: none + + In a record page's header bar the action row folds by width: while its buttons wrap past one line, the page's own actions fold into the `⋯` one at a time. The lowered budget used to come back only when the bar changed width. Stepping to another record (previous / next, or another record in the drawer) keeps the same row, so after a record with many actions a record with fewer kept the old, lower budget and folded actions that fit. + + The lowered budget now holds only for the record and the action set it was measured on. Another record, or a changed action set, draws the full budget (3, or the page's `maxVisible`) and the next layout measures again, so a row that still does not fit folds as before. Nothing an author writes changes. +- dc10b3b: fix(grid): in a list cell a single click only selects, and the email and phone cells draw no copy button + + Clause-②: no + Metadata-protocol: none + + On a grid with the select-first cell model (the console's list page), a plain click on a link a cell draws used to follow it: an email opened the mail program, a phone number the dialler, a URL a new tab, a lookup or user chip that record's page, and an image thumbnail its lightbox. The cell was not selected, so a reader who meant to select or edit the cell left the list instead. The email and phone cells also drew a copy button beside the value, easy to hit while selecting. + + A plain click on any of these now selects the cell and opens nothing. To open one: Ctrl/Cmd-click it (as before), press the open button the selected cell shows on hover (only on the selected cell, never on the row hover), or press Ctrl/Cmd+Enter on the selected cell. A cell of several chips opens the first one that way. A double-click on the link edits the cell, as on any other cell. The name link is the one exception and opens the record on a single click, as before. The copy buttons are not drawn inside such a grid; Ctrl/Cmd+C copies the selected cell. + + Outside the select-first model nothing changes: the record page, related lists, phone cards, kanban cards and every grid whose host does not turn on `cellSelection` keep their links and copy buttons. + + For renderer authors: a link (`a[href]`) inside a select-first cell is now treated as part of the cell's value. Mark the one link a single click must still follow with `data-opens-on-click`, a non-link control that opens what the value points at with `data-cell-opener`, and a copy control the grid should not draw with `data-cell-copy`. +- dca608a: feat(grid): on the list page a lookup chip opens its record in the side drawer, and a lookup cell has an edit button + + Clause-②: yes (widening) + Metadata-protocol: none + + On the console's list page, a single click on a lookup chip (a record of another object, such as a contact's account) now opens that record in the side drawer over the list. This replaces, for lookup chips on that page, the earlier change in this release where a plain click on a lookup chip only selected its cell. The list stays where it was: closing the drawer leaves its scroll position and the selected cell as they were. The drawer's address carries the record and its object (`?recordId=…&recordObject=…`), so a reload keeps it open and Back closes it, as with the name cell's "Open in side panel" icon. A click beside the chips only selects the cell. A cell of several chips opens the chip that was clicked; Ctrl/Cmd+Enter on the selected cell opens the first one in the drawer; Ctrl/Cmd-click still opens the record's page in a new tab. + + A lookup cell now draws an edit (pencil) button while the pointer is over it and while it is selected. It opens the cell's editor, as a double-click or Enter does, and it is not drawn when the cell cannot be edited (no permission, a read-only field, a locked record). It takes the place of the open button a selected cell shows. + + A chip naming a person (an owner, a creator: a lookup to `sys_user`) keeps the behaviour it had: a single click only selects the cell, and it opens from the open button or Ctrl/Cmd+Enter. Email, phone and URL cells and the name column are unchanged. On a phone every record still opens as its page. + + For hosts: `ListView` and `ObjectGrid` take a new runtime prop, `openReferencedRecord(objectName, recordId)`, that opens such a record in the host's place; `GridCellSelection` gains an optional `referenceCells` member (`isReferenceColumn`, `openRecord`), exported with its type `GridReferenceCells` from `@object-ui/components`. A host that passes neither keeps the previous behaviour, where a chip only selects its cell. `ReferencedRecordLink`'s anchor now carries `data-record-object` and `data-record-id`. +- baf2678: fix(ui): a placed line table's row editor is a form of its own, and a refused line marks its tab + + Clause-②: no + Metadata-protocol: none + + Two fixes to a master-detail entry form whose field group places the line table: + + - Opening a line's row editor no longer draws the editor's form inside the placed table's wrapper form. The markup is valid again, and React no longer logs "form cannot be a descendant of form" in development. The editor's inputs still belong to the editor's own form. + - In a tabbed form, a save the server refuses on a line marks the tab that holds the lines, the way a refused header field marks its own tab. A refusal is on the lines when the server names a line's operation as the failed one, or names a field that only the lines write. The mark clears when the next save gets past validation. +- 13d1e95: feat(ui): in a list cell, a picker opens under the cell, Backspace clears, a refused value stays, and Enter stays on the cell + + Clause-②: yes (widening) + Metadata-protocol: none + + `GridCellFacts` (the select-first grid's per-cell host facts, `@object-ui/components`) gains three optional keys: `editor` (`'below'` draws the cell's editor as a panel under the cell, which keeps showing its value; absent or `'cover'`, the editor stays a layer over the cell), `clearRefusal` (why Backspace or Delete leave the cell as it is) and `validate` (why a committed value is refused). A host that sets none of them gets the editor placement and commits it had, with Backspace now clearing (below). + + In every grid `ObjectGrid` draws with the select-first model (the list page): + + - **Pickers open under the cell.** Single and multi select, status, tags, date, date-time, time, colour, lookup and user cells open their list, calendar or palette as a panel under the cell; the cell keeps its value as drawn (a coloured badge stays coloured) and the row height does not change. On a date the typeable box is the top of the panel and the calendar shows beneath it. Typed input, long text and an address still edit in place. + - **Backspace or Delete clears the selected cell and saves at once.** A required field keeps its value and says it is required (a required rating too, for Backspace, Delete and the 0 key); a read-only cell says why, as before; a checkbox cell is left alone. + - **A value that fails the field's rules is not saved.** The rules are the record form's (required, length, range, email and URL shape), and text a number box cannot read is refused too. The editor stays open with what was typed and says why under it (a number box that already says it cannot read its text is not told twice); correct it and commit again, or press Escape to discard. A click elsewhere does nothing while a refused value is open; a refused value whose cell scrolls out of sight is discarded. + - **A person's face no longer makes its row taller.** A user cell drew a 32 px face, which made its list row 41 px tall against 33 px for a row of text; the face is now 24 px and the row stays 33 px, at rest and while the cell is edited. + - **The selected cell's frame stays under the frozen columns** when the cell scrolls beneath them, and a cell deselected with Escape is left with no focus ring. + - **Enter saves and keeps the same cell selected**, with the focus back on it. It used to save and move the selection one row down. Tab and Shift+Tab still save and move right and left. + + `@object-ui/i18n` adds `table.cellNotNumber` and `table.cellInvalid` in every locale. + + Forms, dialogs and the record page keep their current controls. +- 3ae62ac: feat(ui): one 8px corner for every control, a white content area beside a light grey sidebar, and badges at weight 500 + + Clause-②: no + Metadata-protocol: none + + - **Controls share one corner, 8px.** Buttons, inputs, selects, toolbar controls, menus and tab lists are `rounded-md`, which the console theme now sets to 8px (it was 12px, derived from the 14px card corner). What sits inside one of them, a tab trigger in its list or a menu row, is `rounded-sm`, 6px. Cards keep their 14px corner, and dialogs, popovers and drawers keep theirs. + - **Chips follow.** A lookup chip in a list cell (it was 4px), a person or record chip in a form's lookup field and its selection tray, and the list's Sort, Filter and condition chips (they were pills) take the same 8px corner. Coloured option badges stay pills. + - **The content area is white.** The console's `--background` is white instead of the grouped grey, so a list, a record page, a kanban board and the top bar sit on white. The sidebar is the one light grey surface beside it, with its hairline border; in the dark theme the content area is the darkest step and the sidebar one step lighter. + - **Badges are weight 500.** `Badge` was `font-semibold` (600), outside the console's two text weights; it is `font-medium` (500). This is a declared local patch on the Shadcn primitive (`badge-medium-weight` in `ui/scripts/shadcn-local-patches.mjs`), so it survives a registry sync. +- 6c7c6db: feat(ui): the console's pages set text in two sizes, 14 and 12, and two weights, 400 and 500 + + Clause-②: no + Metadata-protocol: none + + - **Two sizes.** Body text, list cells, field values, inputs, menu items, toolbar controls and buttons are 14px (`text-sm`); field labels, column headers, counts, timestamps, hints and chip text are 12px (`text-xs`). The hard-coded 13px is gone from the console's runtime pages, and the 10px, 11px and other odd sizes there are 12px. The in-cell editor is 14px, like the cell it edits. + - **Two weights.** Record names, tabs, buttons, section titles and column headers are 500 (`font-medium`); body text is 400. Weight 600 and 700 stay only on page and dialog titles 18px and larger. `DropdownMenuLabel` is weight 500 through a declared local patch on the Shadcn primitive (`dropdown-menu-label-medium-weight` in `ui/scripts/shadcn-local-patches.mjs`), so it survives a registry sync. + - **Not changed:** Studio and metadata administration internals, the settings pages, developer tools, phone-only layouts, avatar initials, authored markdown and SDUI heading typography, the docs reader's prose size, and the shape of coloured option badges (still pills). + - A list column with no declared width measures its content, so it grows with the 14px text; a column whose width a view or a user set keeps that width and shows about 8% fewer characters before it truncates. +- 493ad09: fix(record-page): the record header's Edit is an outline button, and the desktop header row is one height, 28 + + Clause-②: no + Metadata-protocol: none + + On a record whose object declares no header action of its own, the host's Edit was drawn as the page's one filled button, 36 high, louder than the record's name, though the record's fields already edit in place. It is now an outline button everywhere in the header row, in the record page and in the record drawer alike. What Edit does when pressed is unchanged. + + - **The page's own actions keep their faces.** An action declaring `variant: 'primary'` is still the filled button; with none, the first page action still is. The record edit state's Save stays filled. + - **One row height.** On desktop every button in the record header row is 28 high: Edit, the page's own actions, the `⋯`, the approval levers a record under approval shows there, and the trailing panel toggles (32 before). `page:header` is a shared block, so a custom page's header actions get 28 too. An action that declares its own `size` keeps it. + - **Phones unchanged.** The phone's bottom action bar still draws Edit filled at 44, and the phone header rows keep 36. +- 04f9861: feat(record-page): a record's comments move out of the 动态 tab into a comment panel of their own on the desktop + + Clause-②: yes (widening) — `@object-ui/plugin-detail` adds exports (`CommentsPanel`, `CommentsButton`, `CommentThread`, `CommentItem`, `CommentComposer`, `CommentHoverActions`, `useRecordComments`, `buildCommentThreads`, `latestRepliers`, `RecordCommentsInPanelContext`) and their types (`CommentsPanelProps`, `CommentsButtonProps`, `RecordCommentThreadProps`, `CommentItemProps`, `CommentItemActions`, `CommentComposerProps`, `CommentHoverActionsProps`, `CommentThreadData`, `RecordCommentsData`), and an optional `reservedWidth` on `useRecordPageTier`. `RichTextCommentInput` (exported) now takes the `Esc` that closes its @ list (`preventDefault` and `stopPropagation`), so nothing round it acts on that key. `RecordActivityTimeline` draws no chip group when it is handed no chips. `@object-ui/components` adds an optional `comments` slot to `RecordTopBar` and `NavigationOverlay`, and the drawer leaves an `Esc` pressed inside a `[data-owns-escape]` region to that region. `@object-ui/i18n` adds five keys to every pack: `detail.closeComments`, `detail.collapseReplies`, `detail.commentActions`, `detail.commentsEmptyHint`, `detail.resolveThread`. Nothing existing is removed or re-typed. + Metadata-protocol: none + Skills-docs: none — no skill under `skills/**` teaches where the console draws a record's comments; `content/docs/frontend/plugins/plugin-detail.mdx` and the plugin-detail README gain the panel in this change. + + On the desktop record page and in the record drawer, the record header gains a comments icon with the number of top-level comments. A press opens the record's comment panel, the next one closes it, and the browser remembers whether it was left open (once for the page, once for the drawer). + + - The panel is 380 px wide: 「评论」 and ✕ at the top, the threads oldest first, the comment box docked at the foot. A thread's replies fold to 「N 条回复」 with the latest repliers' faces and open in place, with a reply box under them; Reply on any comment of a thread opens it with the caret in that box. + - A comment's actions sit in one row at its top right while the pointer is over it, or focus is in it: Reply, an emoji, and More with Edit and Delete on the viewer's own comments. Every write is offered under the same grants as before. + - From a 1280 px window the panel sits beside the record and the record gives way; in a narrower window it is drawn over the record's right edge. In a drawer narrower than 760 px (the default 720 px drawer) it covers the drawer's body; a wider drawer splits. + - Esc in the panel closes it and returns the focus to the comments icon, in a drawer too: the drawer neither closes nor steps back on it. Esc in the panel's @ list closes the list only and keeps the draft. + - While the panel holds the comments, the 动态 tab and panel hold the system entries only: activity and field changes, with no comment box and no All / Activity / Discussion chips; the Changes chip stays where the record shows its field history, and pressed again it goes back to every entry. Their count leaves the comments out. + + Unchanged: a record page authored in full keeps the feed blocks it places (`record:discussion`, `record:activity`) as they were and shows no icon; an object with `enable.feeds: false` shows no icon; the phone keeps the comments in its 动态 tab. +- e605773: feat(components): a `type: flow` metadata embed shows each decision's branches and their conditions + + Clause-②: no + Metadata-protocol: none + + The business view of a `type: flow` metadata embed (ADR-0051) listed the flow's steps and nothing else, so a manual could not point its readers at the diagram for an approval threshold. Under each decision step it now lists the decision's branches: the condition in readable form, such as `Amount > 500,000`, an arrow, and the step the branch leads to. A branch that is taken when no other matches reads `otherwise`. When the flow's start node has a condition, it is shown once above the steps (`Runs when Amount ≥ 100,000 and other conditions`). + + The text comes from the live definition on every render: the edges' `condition` (or a decision's `config.conditions` matched by edge label), the field label from the flow's object, and the amount formatted in the reader's locale, in the field's or the tenant's currency when one is known. A changed threshold shows on the next page load with no manual edit. The embed now makes one more metadata request, for the object the flow runs on. + + The reader understands comparisons of one field of that object with one literal, joined by `&&` and `||`. Presence guards on the compared field (`has(x)`, `x != null`) are left out. Anything else, such as a field compared with another field, `previous.*` or a function call, shows a neutral `condition` marker, never the raw expression. The technical view (`detail: technical`) is unchanged. The six new viewer strings ship in every locale pack. +- 713545f: feat(console): reports and custom pages open with the console page header; the shell's top-right button group is built and placed, off while the top bar stands + + Clause-②: yes (widening) + Metadata-protocol: none + + - **Reports, the report index and custom pages draw the console page header** that lists and dashboards draw: the page's name (and description) on the left, its actions on the right. A report keeps its 「Edit」 (the inspector beside the report) as the header's action. A custom page's name and description move into the header; the page renderer no longer draws them a second time, and a `page:header` the author wrote stays as written, its title one heading level down (`h2`) so the page keeps one `h1`. An interface page swaps its own title row for the header, buttons included. On a phone a custom page keeps the face it had, its floating 「Edit in studio」 pencil included; from the phone breakpoint up the pencil is gone and the top bar's 「Edit app」 opens the same surface. + - **The top-right button group** (`ShellPageActions`, internal to `@object-ui/app-shell`): the comments slot, 「Edit app」 (words beside a non-pencil icon, icon-only below `lg`, the same gate and target as the top bar's pencil; a read-only package gets the eye), the AI assistant and help. The console page header draws it after its actions (so reports, dashboards and custom pages), the list page at the end of its view bar after ⋮, the record page in its navigation row before ✕. **It is off** while the top bar stands, so nothing changes on screen beyond the headers above; `localStorage['os:shell:page-actions'] = 'on'` turns it on for checking. The help menu is now one component the top bar and the group share. + - `@object-ui/components` exports `PageTitleHostContext`, a host switch (never metadata) that says the host draws the page's title and description: the page renderer then draws neither, and an authored titled `page:header` draws its title as an `h2`. Default `false`: every other host is unchanged. +- a2dc858: feat(ui): every menu row is a tile: objects and their views in the object's colour, everything else on a light grey tile + + Clause-②: yes (widening) — `@object-ui/components` adds `NeutralIconTile`, `NeutralIconTileProps` and `NEUTRAL_ICON_TILE_CLASS`; `@object-ui/layout` adds `NAV_KIND_ICON` and `resolveNavKindIcon`; nothing removed or renamed + Metadata-protocol: none + + The sidebar drew an object entry as its object's colour tile and every other entry as a bare line icon, so one column mixed solid squares and outlines. Now every row is a tile of the same size and corners, and colour still says only which object a row opens: + + - **Object entries, and object entries that open one of its views** (a `viewName`, such as "My deals"): the object's tile, as before. + - **Every other entry** (`dashboard`, `report`, `page`, `url`, `component`, `doc`, `action`): a light grey tile with a dark grey glyph, the entry's own `icon`, else its kind's (`NAV_KIND_ICON`: a dashboard, a column chart, a page, an outward arrow, a grid, a book, a bolt). No kind gets a colour of its own. + - **Recent, Favorites and Starred in the sidebar, and Home's "Recently accessed"**: an object, one of its views or one of its records is that object's tile; a dashboard, page or report is the neutral tile. The emoji these rows drew are gone. + - Group headings and separators are unchanged. The phone's app home lists the same menu, so it follows. +- b3bcfef: fix(i18n): the record timeline's events chip reads 事件 / Events, and the Chinese stream says 动态, never 活动 + + Clause-②: no + Metadata-protocol: none + + The record page's 动态 tab drew its chips as 「全部 · 活动 · 讨论 · 变更」, so an app with an object named 活动 (a CRM's meetings and calls) showed 活动 twice on one screen with two meanings, and the English tab Activity held a chip also named Activity. The chips now read 「全部 · 事件 · 讨论 · 变更」 (zh-Hant the same), Events in English, and each other pack's own word for events (Ereignisse, Eventos, Événements, イベント, 이벤트, Eventos, События, الأحداث). What each chip holds is unchanged: 变更 / Changes keeps the audit-sourced field changes, and created, updated, assigned and shared rows stay under the events chip. + + In zh-Hans and zh-Hant the rest of the stream takes the tab's word: the empty state reads 「暂无动态」 (「暫無動態」), the stream title `detail.activity` reads 「动态」 like `detail.timeline`, and the access-denied, load-failed and filter labels say 动态. The English chip's in-code fallback follows the pack, and the tab strip's Chinese token map reads an `Activity` tab as 动态 / 動態, matching `detail.activity`. Values only: no key is added, renamed or removed. +- aad35e6: feat(record-page): the side preview opens 460 wide, puts the record's name first with one labelled action, and lists a child tab one row per record + + Clause-②: yes (widening) — new optional members only: `RecordHeaderBar.preview` and `PageHeaderActionsProps.preview` on `@object-ui/components`, `ObjectGridComponentProps.cardFace` on `@object-ui/plugin-grid`; nothing removed or renamed + Metadata-protocol: none + + The record preview that opens beside a list (and a record page's drawer level) is now a narrow pane: + + - **Width.** It opens 460 px wide (at most 92% of the window). Its left edge drags it from 380 to 900 px. The dragged width is remembered in the browser under one key for every object's preview, not per object. A drawer whose `navigation` authors its width (`navigation.size` other than `auto`, or a `navigation.width`, pixel or percent) does not use that key. The list's preview reads the view's `navigation`, then the object's; a record page's drawer reads only its root record's object's `navigation`. Such a drawer keeps the object's per-object key (`recordOverlayWidthStorageKey`, unchanged), which it shares with that object's calendar, gantt, kanban, tree and grid overlays and a resizable `RecordDetailDrawer`, and opens at the authored width until a width is dragged in that drawer or one of those overlays. For an object that authors no size or width, the console's preview no longer shares a width with that object's calendar, gantt, kanban, tree or grid overlay or its `RecordDetailDrawer`. The width and its key belong to the drawer's root and stay with it: child levels keep the root's width, and in the list a record a lookup chip opens as the root takes the list's width and key (the list object's, not the opened record's). On a record page, a drawer closed and next opened on another object's record opens at that object's width, not the width dragged for the previous one. + - **Header.** The record's name comes first. The row shows at most one labelled action, the page's primary. The host's Edit and every other action go into the `⋯` in their usual order. The primary folds into the `⋯` too while the name would be cut below 16 characters' width. The copy-id icon after the name is gone, and 「Copy record ID」 is in the `⋯` instead. The full name is the name's tooltip. An approval's approve / reject levers and the record page's edit state (Cancel, Save) are drawn as before. A page's own header is unchanged. + - **`@object-ui/components`: every resizable drawer's range.** The range lives in `NavigationOverlay`, so it applies to every drawer opened with a `storageKey`: the calendar, gantt, kanban, tree and grid overlays, a resizable `RecordDetailDrawer`, and the console's preview. The drag range was 360 px to 60% of the window; it is now 380 to 900 px. On a 1920 px window the widest drag drops from 1152 to 900 px. On a 1024 px window a dragged or remembered width can now reach 900 px, where 60% of the window (614 px) capped it before; the drawer still never draws wider than the window less 1rem. A remembered width under 380 px is no longer used: the drawer opens at its host's width. A drawer whose `storageKey` changes while it stays mounted now drops the previous key's width when the new key remembers none, and opens at its host's width. + - **Child tabs.** A child list's tab draws one row per record (its title, one summary line and its status chip), the phone's card rows, instead of a table cut off at the pane's edge. `ObjectGrid` takes a new host prop, `cardFace`, that draws those rows at any window width. +- 4099ef2: fix(list): "Add group field" asks which field, and offers only fields that can group + + Clause-②: yes (widening) — `@object-ui/components`'s `GroupingEditor` gains the optional props `askFieldOnAdd`, `fieldOptionsLoading` and `fieldLabel`, and its `labels` the optional `noFields`; `@object-ui/i18n` gains the key `list.noGroupableFields` in every locale; nothing removed or renamed + Metadata-protocol: none + + On a list, 「添加分组字段」 / "Add group field" used to group at once by the list's first column, usually the record's name, so every record became a group of its own. Now, in the toolbar's Group panel and in the view settings menu's Group level alike: + + - It adds no field by itself and does not group. The field dropdown opens, and the list is grouped once a field is picked there. Closing the dropdown without a pick leaves the list as it was. + - The dropdown lists only the fields that can group: single select or radio (a status is one), tick (boolean or toggle), person, and linked record (lookup, master-detail, tree), each single-valued. Text, number, date and multi-select fields are not offered. The list's columns come first in the reader's column order, then the object's other groupable fields the reader may read, business fields before system ones such as the record owner. Created by and updated by are offered only when the view shows them as a column. + - With no field that can group, the button is drawn disabled and says why: 「没有可以用来分组的字段」 / "No field here can group the list". + - Until the object's field types are read, the button is disabled without a reason. When no definition can be read at all, every column is offered, as before. + - A view already grouped by another kind of field keeps showing that grouping, and its level can still be changed or removed. + - A second level follows the same rule among the fields no level uses yet. + - The grouping is still a part of the list's draft: **Discard** and **Save** appear, and nothing is written. + + `@object-ui/components`: with `askFieldOnAdd`, `GroupingEditor`'s "Add group field" opens a row whose field dropdown is already open and writes the level only on a pick. With no `fieldOptions` it draws the button disabled, explained by `labels.noFields`, or without a reason while `fieldOptionsLoading`. `fieldLabel(field)` labels a level whose field `fieldOptions` does not carry. Without these props the editor behaves as before. +- bb89b2d: feat(app-shell): the record's favorite star sits beside its name, and the header's `⋯` no longer holds "Add to favorites" + + Clause-②: no + Metadata-protocol: none + + The record page draws its favorite star right of the record's name, always visible: hollow until the record is a favorite, filled once it is, one press to toggle with no confirm. The full page, a drawer or split-pane preview, and a phone's record page all draw it, from the same favorite the sidebar's Favorites section reads, so nothing about the stored favorites or that section changes. The header's `⋯` menu drops its "Add to favorites" / "Remove from favorites" entry, so the page keeps one favorites control. On a phone the star keeps a 44px tap target, as the copy-id button beside it does. A print page, which draws no record header and so no star, keeps the entry in its chrome row's `⋯`. The `showStar` refusal in `@objectstack/spec` (the retired `page:header` key) now says what stays true: the console draws the record's star from the host's favorites toggle, never from metadata, so the key switched nothing; it no longer names the `⋯` menu as the favorites entry. +- 740720c: fix(components): the edit form's roll-up subtotal reads the record's currency, as the record page and the form's tax-inclusive total do + + Clause-②: no + Metadata-protocol: none + + - A `summary` field that declares its currency (`currencyConfig`, ADR-0144 D6 as amended) now receives the live form record from the form renderer, the way a `currency` field and a `formula` field already do. A `record`-mode roll-up on the New / Edit form therefore draws in the currency its record's code field holds: a EUR invoice's Subtotal reads `€230.00` instead of a bare `230.00`, and it follows the code the user picks. + - Not changed: a roll-up that declares no currency still reads as a number; the record page, the list cell and the line-item grid already drew the record's currency and draw it as before; no metadata changes. +- 6e643cc: feat(plugin-dashboard): a dashboard or report drill opens a centred dialog over the standard list, and a report's chart marks drill + + Clause-②: yes (widening) — additive members only, among them the new `PageRegionPostureReset` export of `@object-ui/components`; nothing is removed or renamed + Metadata-protocol: none + + Clicking a number on a dashboard (a chart mark, a metric tile, a table cell) or on a dataset report used to open a full-height side drawer whose table listed every field of the object, with no sort, no filter and no word on which conditions selected the records; a row stacked a second record panel on top. The drill now opens a dialog about 70% wide and 65% tall that dims and blurs nothing behind it, and its body is the standard list the object list page draws (`list-view`): the same row height, column-header sort, filter chips, added columns, record count and column calculations. The drill's conditions (the clicked bucket, the widget's filter, the measure's scope) are the list's own chips and can be changed or removed; a condition no chip can say (a relationship path, an `$or`) still filters the list. The default columns are the record's name, the grouped fields and the measured fields. Nothing done in the dialog is saved, and it writes nothing. A record's name opens the record's full page, whose 「N of M」 stepper walks the drill's rows and whose way back is the dashboard or report; no second panel is stacked. 「Open in list」 is unchanged. On a phone the drill keeps the side drawer, with the same list. + + A dataset report's chart marks now drill too: a bar opens the same records as the summary line it stands for. + + Additive members: `DrillNavigationValue.openRecord` and the `DrillRecordOrigin` type (`@object-ui/react`), `DrillDownDrawerProps.defaultColumns` (`@object-ui/plugin-dashboard`), `DatasetDrillArgs.fields` (`@object-ui/plugin-report`), `PageRegionPostureReset` (`@object-ui/components`). A renderer without `@object-ui/plugin-list` registered lists the drilled records in the dashboard's data table. A host that gives no `openRecord` (a page block's metric or pivot) opens the drilled record in a dialog, from either body. + + Inside a page the drill draws the same standard list: the page region's posture (the compact or capped list a page block draws) is cleared for the drill's dialog by the new `PageRegionPostureReset` (`@object-ui/components`), so a page block's metric or pivot drill shows its chips, its record count and its pager, and no 「View all」 link to a list without the drill's condition. A drill whose filter names no condition any read can carry (a string, a number) lists nothing and says so, instead of listing every record. +- bbc7e03: feat(grid): a list cell's right-click menu copies, pastes and clears that cell + + Clause-②: yes (widening) — an optional `cell` member (`copy`, `paste`, `clear`) on the context `data-table` hands a host's `renderRowContextMenu`; five new `table.*` language-pack keys in every locale `@object-ui/i18n` ships (`copyCell`, `pasteCell`, `clearCell`, `pasteNotValue`, `pasteUnavailable`); nothing is removed or renamed + Metadata-protocol: none + + Right-clicking a cell in a list now offers what can be done to that cell, above the row's own items. + + - The menu has two sections. Above a line: **Copy**, **Paste**, **Clear** and, where it was already offered, **Change history**. Below it: the row's items as before (Open, Open in new tab, the row's actions). A right-click off a data cell opens the row's section only. + - **Copy** copies the cell's value, as Ctrl/Cmd+C does. + - **Paste** writes the clipboard's text into the cell and saves it, through the same checks as typing into the cell: text that is not an email address in an email cell, a value over a field's length, an empty required field are refused and the cell says why. If the browser will not let the list read the clipboard, the cell says so and names Ctrl/Cmd+V. Paste is offered on text, numbers, dates and single-choice fields (an option by its value or label); on a record reference, a person, a multi-choice and other types it is unavailable. + - **Clear** empties the cell and saves it, as Backspace does; it is unavailable on a required field. + - On a read-only field, a calculated field, a grid that is not editable or a record the reader may not change, Paste and Clear are unavailable and Copy still works. + - A paste into the selected cell with Ctrl/Cmd+V now goes through the same checks: text the cell's editor would refuse is no longer sent to be saved, and text the column cannot read (letters in a number cell, a name in a lookup cell) says why instead of doing nothing. +- 543585d: feat(record-page): one field's change history, opened in place from the field or from a list cell's context menu + + Clause-②: yes (widening) — three new `detail.*` language-pack keys in every locale `@object-ui/i18n` ships (`fieldHistory`, `fieldHistoryNone`, `fieldHistoryNoneRecent`); new exports from `@object-ui/plugin-detail` (`FieldHistoryButton`, `FieldHistoryCard`, `FieldHistoryPopover`, `useFieldHistory`, `useFieldHistoryOffered`, `fieldHistoryOffered`, the constants `FIELD_HISTORY_PAGE_SIZE`, `FIELD_HISTORY_SCAN_BATCH` and `FIELD_HISTORY_SCAN_BATCHES_PER_LOAD`, and their types); an optional `column` member on the context `data-table` hands a host's `renderRowContextMenu`; `FieldChangeItem` draws no label for `label: ''`; nothing is removed or renamed + Metadata-protocol: none + + A reader can now see one field's past changes on one record without reading the whole activity stream. + + - On the record page, each field of the object has a history button beside its value, shown on hover and focus like the copy button. In a list, right-clicking a cell of a field the object declares adds 「Change history」 to the row's menu. Both open the same small card in place. Neither is offered on a field whose old → new values are not recorded (`fieldHistory: false` on the field, `enable.fieldHistory: false` on the object, a credential field, or a media or JSON-like type that does not opt in), judged by the same `resolveFieldHistory` the audit writer keeps values by. + - The card lists only that field's changes: who, when, and old → new in the reader's words (an option by its label, an empty side as the pack's word for empty), newest first, ten at a time with 「Load more」. + - A field never changed reads 「No changes recorded」 with who created the record and when. + - The changes are the record's activity rows the server already serves, narrowed to the reader: a change of a field the reader may not read is never sent. A field the reader may not read offers no entry point at all. The full audit log is not read. + - The rows are read by record, newest first, fifty at a time, keeping those that changed the field; a query naming the change columns is refused for a reader withheld any field of the object, so the field is never part of the query. Opening the card reads at most four batches, and each 「Load more」 at most four more; when they hold no change of the field and older rows remain, the card reads 「No changes in the recent activity」 and offers 「Load more」 to read on. + + `@objectstack/spec`: the authoring hint for the mistyped field key `tracked` now names what turns one field's change history on or off today (`fieldHistory: false`, `true` for a media or JSON field, `enable.fieldHistory: false` on the object), where it named `trackHistory: true`, which changes nothing for most field types. Wording only; `tracked` stays rejected. +- 1a2a8a9: fix(components): a New Invoice in the home currency fills a picked product's price on its line again + + Clause-②: no + + The currency code picker's trigger now carries the selected code as its `value`, and a changed code bubbles a `change` event from it, as a native select does. The master-detail form reads its header's live values off the header's named elements, and read this one as empty: since the line grid withholds a picked amount from a line whose currency it cannot tell (objectstack#36249), a New Invoice in the home currency left Unit Price empty with the note "no currency is chosen here yet". The grid now reads the header's code once the header has been edited, and reads a picked code when it is picked. A line picked before any header edit still withholds the price and says so. +- 70d07fd: feat: an object arranges its actions per scope (`actionLayout`: pinned buttons and the 「More」 order), and the design mode sets it + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: follow-up #36630 + + A page header draws at most three of its actions as buttons and puts the rest in its 「More」 menu. An object now arranges them itself with the new optional key `actionLayout` on `ObjectSchema` and `ObjectExtensionSchema`: `{ list?: Arm, record?: Arm }`, where `Arm = { pinned: string[], more?: string[] }`. `pinned` names the buttons in the order drawn, at most three (`[]` pins none); `more` orders the 「More」 menu; an action the scope places that neither part names goes to the end of 「More」 in its default order. A pinned action that is hidden leaves its button out, and no other action takes its place. + + - `list` arranges the actions placed at `list_toolbar` and the list page's built-ins `$import` and `$export`. A built-in is only ever pinned: one named in `more` is refused with its reason, since not pinned the list page draws it in its own Import / Export menu. + - `record` arranges the actions placed at `record_header` or `record_more`. It is a scope, not a page: the record page header, the side preview and a phone's bottom action bar all read it. A `page:header` that authors its own `actions` list keeps that list. + - An arm left out (or the key left out) draws that scope exactly as before. + + What each package gains: + + - `@objectstack/spec`: the key and its shape refusals at every door (more than three pinned, a name given twice in one part or in both, a malformed name, a built-in the scope does not have, a built-in in `more`, since a built-in is only ever pinned), each with its reason. New exports `OBJECT_ACTION_LAYOUT_PINNED_LIMIT`, `OBJECT_ACTION_LAYOUT_SCOPES`, `OBJECT_ACTION_LAYOUT_BUILTINS` and the types `ObjectActionLayoutScope`, `ObjectActionLayout`, `ObjectActionLayoutArm`. The object form offers it under Advanced, one JSON row per arm. + - `@objectstack/objectql`: `actionLayout` joins `fieldGroups` and `relatedLists` as a key only the base's paired `.custom` package writes on an `object_extension` (ADR-0146 D10). It is applied last, after every other layer, arm by arm: each arm it writes replaces the served arm for that scope whole, and an arm it leaves out stays. A manifest's `objectExtensions` entry now carries the key to the fold. + - `@objectstack/metadata-protocol`: the one judge refuses `actionLayout` from any other package, naming the action's own `locations` and `order` as the way to place an action the package brings. Each door says it its own way: publish, restore and draft promotion of an `object_extension` answer `VALIDATION_ERROR` / 400; marketplace install refuses the package body with `VALIDATION_ERROR` / 422; `os validate` and `os build` exit non-zero and print the row; the registry fold skips the key and leaves a note. + - `@objectstack/lint`: `validateObjectActionLayout` (`object-action-layout-unknown`, `object-action-layout-not-placed`, at `error`) refuses in `os validate`, `os build` and `os lint` a name, in either part, that is no action of the object or is not placed in the scope its arm arranges. + - `@object-ui/types`: `arrangedHeaderActions(actions, arm, scope)`, the one reader both record headers and the list header apply, and `readActionLayoutArm`. + - The console: both record headers (the default page's and an authored `page:header` with `placedActions: true`) and the list header draw the arrangement. In the design mode, 「Header buttons」 at the end of the page header lists the scope's actions under 「Pinned to header」 and 「Other」 (the 「More」 menu), each dragged into order; a dot moves an action between them, a fourth pin is refused with a toast, the header shows the change at once, and 「Save」 writes only the arms that changed: into the object's own package when it is writable, else into the installed object's customization package as an `object_extension`, through the one writer of an installed object's arrangement (`saveObjectExtensionArrangement`, whose patch type now takes the object-shaped `actionLayout`), which refuses a customization package the server does not list writable. A name the scope no longer offers is listed in the panel as left out. A name the header cannot draw is refused at save with its reason. New `@object-ui/i18n` keys under `designMode.pins`. +- ad50d61: fix(record-page): Esc in the side preview ends an inline edit and keeps the preview open + + Clause-②: no + Metadata-protocol: none + + In a record's side preview (the drawer beside a list, or a record page's drawer), a field clicked into edit no longer loses the whole preview to Esc: + + - **While a field is being edited**, Esc ends the edit and the preview stays open. It does what Esc does on the record's full page: the typed change is discarded without a prompt and nothing is written. The next Esc closes the preview (or, a level down, goes back one level), as before. + - **A popover, select or menu open over the record** still takes Esc first and closes alone; the edit and the preview stay. + - **The full record page is unchanged.** + + For hosts of `NavigationOverlay` (`@object-ui/components`): a drawer now holds itself open on Esc while it draws an element marked `data-owns-pane-escape`, which `InlineEditSaveBar` (`@object-ui/plugin-detail`) carries while the record is being edited. +- d7411fa: feat(console): 「Configure tabs」 on an installed object writes its paired `.custom` package, marks where each tab comes from, and opens the record's 「…」 + + Clause-②: yes (widening) + Metadata-protocol: none + + On the record page of an object of an installed (read-only) package, a workspace administrator who may author metadata now finds 「Configure tabs」 too, where the customization door does not wall them off (the walled `group` / `isolated` postures leave it to the platform operator). Its 「Save」 writes the `relatedLists` of the object extension of the base's paired `.custom` package in the spec's shape (ADR-0146 D10): every shown tab in order, a built-in tab by its bare name, and every hidden related tab written `{ list, hidden: true }`; the pair is created on the first save by the ensure door, as Studio creates it. The extension is written over what the pair stores, with only its `relatedLists` replaced (`fields`, `fieldPatches`, `place` and `fieldGroups` kept), as a draft with the first-write pin, then published; a refused publish discards that draft. The original package is not written. + + On an installed object every tab can be moved: the object's own lists, a list another package brings, and the built-in 附件 / 审批 / 动态. A related tab can be hidden and shown again; a built-in tab cannot be hidden there (the `.custom` list cannot hide it), and an attachments tab the base hides waits in 「Hidden」, from which it can be shown. Each related tab is marked 「Original package」, 「From <package>」 or 「This environment」, read from the child object's package and the relationship field. + + A tab's stored title is kept when the administrator did not rename it, on self-built and installed objects alike: the name the editor shows is the served one, which the read translates for the reader's language. + + The write is one shared helper, `saveObjectExtensionArrangement`, which replaces only the arrangement keys a caller returns (`relatedLists` here; `fieldGroups` for a field-layout editor). + + `page:header`: a host `⋯` entry declaring `leadsMenu: true` is drawn first, ahead of Refresh; an authored action cannot claim the place. The record page's 「Configure tabs」 declares it, so it is the first item of the record's 「…」. + + New language-pack keys under `designMode.recordTabs` (`pairNotWritable`, `builtinMoves`, `sourceBase`, `sourcePackage`, `sourceEnvironment`) in all eleven console locales. +- c6075a7: feat(console): an administrator configures the record page's tabs in place, from the record's 「…」 + + Clause-②: yes (widening) + Metadata-protocol: none + + On the record page of an object whose package is writable (an object of a self-built app), a workspace administrator who may author metadata finds 「Configure tabs」 among the record's own entries in its 「…」 (desktop full page only; never on a phone, in a drawer or a pane, or on a page its author composed). Chosen, the page enters an edit state in place: a bar across the top with 「Configure tabs」, 「Cancel」 and 「Save」, in the design mode's bar's look, and the tab row turns into an editor. The record stays on screen as the preview, in the administrator's default order. + + In the edit state the related tabs are dragged to a new order, hidden into a 「Hidden」 area and shown again from it, and renamed; the attachments tab can be hidden; 审批 and 动态, which the page always draws last, are shown fixed, and so is a list another package brings. 「Adjust field groups」 opens the object in Studio. 「Cancel」 drops the changes and writes nothing; leaving the page with a change held asks first. + + 「Save」 writes the object's `relatedLists` over the object as stored (never as served), as a draft with the first-write pin, and publishes it, so everyone sees the new default order, names and hidden tabs. An object's own `relatedLists` hides a tab by leaving it out; an entry the editor does not arrange (a 审批 / 动态 name, a list it does not offer) is kept. A reader's own dragged order still lays over the new default, and 「Restore default order」 returns them to it. A tab is renamed only in the app's source language, where its shown name is its stored one, the design-mode menu's rule. + + New language-pack keys under `designMode.recordTabs` in all eleven console locales. `RecordPageColumns` takes an optional `tabRowEditor`, drawn in the tab row's place. Objects of installed (read-only) packages are not offered the entry yet. + + `page:header`: a `⋯` entry that finished on the click (it returned no pending promise) now closes the menu, as Refresh does; an entry still running keeps the menu open with its row busy until it settles, as before. +- 1948c5f: feat(components): the record's close button moves to the left of the top bar's navigation row + + Clause-②: yes (widening) + Metadata-protocol: none + + `RecordTopBar` takes a new optional `close` slot, which holds the button that closes the record. The two-row bar draws it as the first control of the navigation row, before `leading`, the ↑ ↓ buttons and the "N of M" counter. The one-row bar (the phone face) still draws it last at the right end, after `frame`. `NavigationOverlay` hands its close button through the new slot, so on the record drawer, the split pane and the maximized pane the close button is now at the top left and the "Open as full page" button stays at the right. The close button keeps its accessible name and its handler, and Escape still closes as before. A host that still passes its close button inside `frame` gets the old far-right placement; to move it, pass it as `close` instead. No metadata key and no i18n string changes. +- 368deee: fix(components): avatar pictures keep their proportions instead of being stretched to the circle + + Clause-②: no + Metadata-protocol: none + + A user photo or organization logo that is not square was squashed or stretched to fit the round avatar, because the shared `AvatarImage` set no `object-fit` and the browser default (`fill`) scales each axis on its own. It showed in the account menu, the members and organizations pages, user and lookup fields, kanban card owners, the history timeline and the chatbot. + + `AvatarImage` now draws its picture with `object-cover`: it fills the circle, keeps its proportions and crops the overflow, as common avatar components do. A caller that wants a logo-style fit still passes `object-contain`, which wins over the default. The comment author avatar and the organization settings logo dropped their local `object-cover`, which the default now covers. +- a68b475: feat(studio): a collapsible left menu of six groups replaces the top pillar nav + + Clause-②: yes (widening) + Metadata-protocol: none + + ADR-0084 (amended) · #36899, part of #36890. + + - **Studio's one navigation is a left menu.** The top bar's Data / Automations / Access / All metadata switcher is gone. Every Studio page (a package's pillars and area, the package-less flows `~org`, and the cross-package leg `~all`) draws the same menu of six groups: Data, UI, Automation, Platform, Access, AI (数据、界面、自动化、平台、访问、AI). Each group lists the metadata types the package holds (the directory's own rule, `scopeDirectoryEntries`), with a type count per group and an item count per type, and a search box that narrows the entries. A type entry opens that type's list in the area; an item of an object, flow or permission set still opens its designer. Four entries are not a type: Organization flows (`~org`, under Automation), Default sharing (the Access pillar's OWD overview, under Access), Diagnostics (under Platform) and Positions and permissions (the environment catalog on `~all`, under Access). + - **It collapses like the app sidebar, under its own cookie.** It is the app sidebar's primitive: the header's toggle hides and shows it, the state survives a reload under `studio_menu_state` (never the app sidebar's `sidebar_state`), and below 768 px it is a drawer. `SidebarProvider` (`@object-ui/components`) takes a new optional `cookieName` prop for that; the default is unchanged. + - **The menu names the `system` group Platform / 平台 and the `security` group Access / 访问**, the amended ADR-0084's group names, through its own `studioMenuGroupLabel`. The shared domain dictionary (`translateMetadataDomain`) is unchanged: Setup's datasource pages and the rest of Studio still say System / 系统 and Security / 安全. + - **`~all` is drawn in the builder's shell.** `/studio/~all/metadata/*` is served by the same route as a package's area, so it has the left menu too; the landing's frame no longer draws it. A `~org` area URL (or `?package=~org`) now lands on the package-less flows instead of being read as a package. + - **「‹ Back to app」 names the current package's app** (decision 5), never a remembered app of another package; a package with no app names the package and goes to the apps home. + - Changes and Publish stay at the right end of the top bar, beside Cancel and Save. +- 0212714: fix(components): a related-list tab badge keeps following its list after a row action + + Clause-②: no + Metadata-protocol: none + + On a record page, after a row action ran in a related list (for example an `update` action such as "Mark done"), every later delete or create in that list left the tab's count badge on its old number until a reload, while the list showed the new one. + + A row action reaches the data-change bus twice, a beat apart: the write's own mutation event, then the related list's refresh. The first change sent a re-count; the second overtook it while it was out. `RelatedCountStore.fetch` then resolved with the overtaken read's number without caching it, and the record page's count reader took "resolved, nothing cached" as a failed read and stopped asking for that count for the rest of the record open. + + `RelatedCountStore.fetch` now settles on a count the store holds: when a change overtakes the read it joined (an invalidation, a newer seeded read, or a rail card's unmount), it takes the count a newer read installed, joins the read now in flight, or reads again. A read that fails without being overtaken still answers `0` with nothing cached, as before. +- c0dd417: fix(components): the phone navigation drawer announces its name in the session's language + + Clause-②: no + Metadata-protocol: none + + Below the mobile breakpoint `Sidebar` opens a drawer whose screen-reader name was the English "Sidebar", with the English description "Displays the mobile sidebar.", in every locale. The drawer is now named with `console.nav.menuLabel` (en "App navigation", zh-Hans "应用导航"), the name the app menu inside it already announces, and it has no description. Nothing visible changes. The edit to the regenerated Shadcn `sidebar.tsx` is declared as the `sidebar-drawer-label-*` patches in `ui/scripts/shadcn-local-patches.mjs`, so a shadcn sync keeps it. +- 517e415: fix(ui): the list footer's record count starts on the list page's one left edge + + Clause-②: no + Metadata-protocol: none + + - The summary row at the foot of a list table led with its record count inside the first column's cell, after the 40px selection cell, so the count sat 52px in while the page bar's icon, the select-all box and every row checkbox sit 16px in. Where the table draws a selection or row-number cell, the summary row's first cell now spans that cell and starts at its 16px inset, so the count lines up with the select-all box, on a list that fits and on one that scrolls sideways (the cell stays frozen with the selection column). The first column's own figure still ends at its column's right edge. +- 378c955: feat(plugin-list): the list's Filter and Sort open the shared field list, and the conditions show as chips under the view bar + + Clause-②: no + Metadata-protocol: none + + The toolbar's Filter opens a searchable field list (the fields the view shows first, a type icon on each), then the values by field type; every pick applies at once. Sort opens the same list with the direction on top. Under the view bar, the condition row shows the sort chips first (click to reverse, drag or Alt+Arrow to reorder, × to remove), then the view's own conditions as locked chips, then the reader's filter chips, 「Add filter」 and 「Reset」, which puts the filter and sort back to the view as saved. A column header click shows up there as a sort chip. The full FilterBuilder and SortBuilder stay one click away, behind 「Advanced filter」 and 「All sort levels」. The FilterBuilder no longer draws its 「Where」 label: `filterBuilder.where` is retired from the locale packs, and `listConditions.sort.advanced` is added. No filter storage format, `uf_*` parameter or server sort changes. +- 56fa31b: fix(ui): a multi-select field's list filter offers 「包含 / 不包含」 instead of operators the server refuses + + Clause-②: no + Metadata-protocol: none + + Filtering a list by a multi-value field (`multiselect`, `checkboxes`, `tags`, or a `select` / `lookup` / `user` with `multiple: true`) now offers contains, does not contain, is empty and is not empty, and the query runs, where it used to offer equals and is any of, which the server answers with `400 INVALID_FILTER`. A structured-JSON field (`json`, `address`, …) offers is empty / is not empty. A saved filter that already holds a refused operator still loads and shows it, so it can be changed. `FilterBuilder` fields accept `multiple`, and `jsonColumnFilterOperators` / `operatorsForField` are exported from `@object-ui/components`. +- 9c5fb3e: fix(components, plugin-list): the sort builder and the phone sort sheet word a number, percent, progress or currency direction as size + + Clause-②: no + Metadata-protocol: none + + A sort level on a numeric field read "A → Z" / "Z → A" in the sort builder (the list's "All sort levels" panel) and in the phone sort sheet's levels, while a date read "Oldest → Newest". Numeric, percent, progress, currency, rating and boolean levels now read "Low → High" / "High → Low" (zh: 「小 → 大」 / 「大 → 小」), date, datetime and time levels read as time, and text keeps the alphabet, on both surfaces. The words come from the `listConditions.sort.*` rows every locale already carries. + + What else a reader sees change: + + - The four `sortBuilder.ascending`, `sortBuilder.descending`, `sortBuilder.oldestFirst` and `sortBuilder.newestFirst` rows are no longer read by either surface; the rows stay in the packs. A host that overrode them to reword a sort direction now overrides `listConditions.sort.alphabet_asc` / `alphabet_desc` / `time_asc` / `time_desc` (and `size_asc` / `size_desc` for numbers) instead. + - Because the words now come from `listConditions.sort.*`, the date and text wording changes in some locales: Japanese and Korean dates read 「古い → 新しい」 / 「오래된 순 → 최신 순」 instead of 「古い順」 / 「오래된 순」, Russian dates read "Старые → Новые" instead of "Сначала старые", and Russian text reads "А → Я" instead of "A → Z". + - Arabic: the `listConditions.sort.alphabet_asc` / `alphabet_desc` pair now reads "A → Z" / "Z → A". A run of two Latin letters stays left to right on a right-to-left page, so the old "A ← Z" showed ascending as Z to A. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [a0b4ecf] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [c3fb37a] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [c9b3f7a] +- Updated dependencies [8e46424] +- Updated dependencies [8896822] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [dc53d4a] +- Updated dependencies [0739dee] +- Updated dependencies [ad15579] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [eed422e] +- Updated dependencies [2df9691] +- Updated dependencies [bfd6b6b] +- Updated dependencies [55020c3] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [99a0e4f] +- Updated dependencies [9f352e8] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [fd471d3] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [7702f09] +- Updated dependencies [05e0eb8] +- Updated dependencies [b863d2b] +- Updated dependencies [c890070] +- Updated dependencies [e75a528] +- Updated dependencies [5bd7257] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [58d00db] +- Updated dependencies [61722e9] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [285ad8d] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [6a35635] +- Updated dependencies [9b3227f] +- Updated dependencies [fe75349] +- Updated dependencies [f4de1de] +- Updated dependencies [dab4712] +- Updated dependencies [141a826] +- Updated dependencies [8145424] +- Updated dependencies [53c9575] +- Updated dependencies [83a79e6] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [ccded86] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [e01b8be] +- Updated dependencies [238661f] +- Updated dependencies [d96c878] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [72d19c4] +- Updated dependencies [b0c624a] +- Updated dependencies [9b6db73] +- Updated dependencies [1e018d6] +- Updated dependencies [6d86b43] +- Updated dependencies [bae933b] +- Updated dependencies [a3a74f2] +- Updated dependencies [f98f18c] +- Updated dependencies [74d3d83] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [598a34d] +- Updated dependencies [0585797] +- Updated dependencies [811858c] +- Updated dependencies [fac1e7d] +- Updated dependencies [4609c48] +- Updated dependencies [8500ee7] +- Updated dependencies [c00be39] +- Updated dependencies [5345905] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [f909734] +- Updated dependencies [cedc094] +- Updated dependencies [c9b0a23] +- Updated dependencies [f51578e] +- Updated dependencies [6b360ab] +- Updated dependencies [78f7160] +- Updated dependencies [bb1c55d] +- Updated dependencies [1d7015a] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [dea68e9] +- Updated dependencies [b113178] +- Updated dependencies [138faaa] +- Updated dependencies [411fe24] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [48c732c] +- Updated dependencies [52fb30c] +- Updated dependencies [8807dcb] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [9ed18a5] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [c261a7c] +- Updated dependencies [76cb366] +- Updated dependencies [32409a9] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [9f6f306] +- Updated dependencies [c757e07] +- Updated dependencies [a5a5312] +- Updated dependencies [c1b35c3] +- Updated dependencies [9a98a46] +- Updated dependencies [27e414b] +- Updated dependencies [eb53d63] +- Updated dependencies [dda5e74] +- Updated dependencies [f2a990b] +- Updated dependencies [035a12c] +- Updated dependencies [33d0169] +- Updated dependencies [a23164e] +- Updated dependencies [f3d0a9f] +- Updated dependencies [8c5a81e] +- Updated dependencies [43580a3] +- Updated dependencies [cc05e60] +- Updated dependencies [13d1e95] +- Updated dependencies [6db1dc2] +- Updated dependencies [eebb893] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [3543b51] +- Updated dependencies [4ab2c82] +- Updated dependencies [04f9861] +- Updated dependencies [c30ce97] +- Updated dependencies [e605773] +- Updated dependencies [0628e08] +- Updated dependencies [cbd582f] +- Updated dependencies [031325d] +- Updated dependencies [1705ec9] +- Updated dependencies [b7fe94a] +- Updated dependencies [a6756a2] +- Updated dependencies [b3bcfef] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [71e02ff] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [5e8e243] +- Updated dependencies [4099ef2] +- Updated dependencies [6a73185] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [6e643cc] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [96b7975] +- Updated dependencies [e8b494a] +- Updated dependencies [bbc7e03] +- Updated dependencies [27895d7] +- Updated dependencies [543585d] +- Updated dependencies [7e89bc6] +- Updated dependencies [70194ff] +- Updated dependencies [42e4096] +- Updated dependencies [a10422d] +- Updated dependencies [f2ef7d8] +- Updated dependencies [7a5ae65] +- Updated dependencies [ff60149] +- Updated dependencies [ee651ce] +- Updated dependencies [dad9b55] +- Updated dependencies [d076975] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [8a741ab] +- Updated dependencies [60e79ed] +- Updated dependencies [3cf6a44] +- Updated dependencies [5fecc22] +- Updated dependencies [595844b] +- Updated dependencies [4f19091] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [9c283a1] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [f26469a] +- Updated dependencies [7501d0c] +- Updated dependencies [4ef1ea9] +- Updated dependencies [41dd132] +- Updated dependencies [45ef94e] +- Updated dependencies [d7411fa] +- Updated dependencies [c6075a7] +- Updated dependencies [cd51dbb] +- Updated dependencies [3f568c1] +- Updated dependencies [573a376] +- Updated dependencies [5c2d5cf] +- Updated dependencies [cbc06ff] +- Updated dependencies [43916f3] +- Updated dependencies [f590f3e] +- Updated dependencies [9fa05c6] +- Updated dependencies [ed0edb1] +- Updated dependencies [a10987a] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [f77d078] +- Updated dependencies [0e83fe0] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [0d6589d] +- Updated dependencies [c54aa57] +- Updated dependencies [53257a5] +- Updated dependencies [8aecf6d] +- Updated dependencies [e0050ba] +- Updated dependencies [14f4d8f] +- Updated dependencies [8ddadc1] +- Updated dependencies [183ed23] +- Updated dependencies [a03bc4e] +- Updated dependencies [4d4ec16] +- Updated dependencies [d763ee7] +- Updated dependencies [8018e00] +- Updated dependencies [844218f] +- Updated dependencies [8cce05b] +- Updated dependencies [0d727b7] +- Updated dependencies [ff0d1f1] +- Updated dependencies [4f7d6f7] +- Updated dependencies [b848b47] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [0819cab] +- Updated dependencies [c8d4b90] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [49c6bf3] +- Updated dependencies [4f9a3f8] +- Updated dependencies [00dd362] +- Updated dependencies [1cda7ea] +- Updated dependencies [bac4864] +- Updated dependencies [8c29b81] +- Updated dependencies [a68b475] +- Updated dependencies [c75453e] +- Updated dependencies [1e96009] +- Updated dependencies [57445a6] +- Updated dependencies [01967c3] +- Updated dependencies [1f3e9f6] +- Updated dependencies [8b1841f] +- Updated dependencies [305fe60] +- Updated dependencies [e91149e] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [6ddb97b] +- Updated dependencies [2af9729] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [6161010] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [3aa008d] +- Updated dependencies [7d3b8d6] +- Updated dependencies [15f8357] +- Updated dependencies [378c955] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [39e9a82] +- Updated dependencies [9c5fb3e] +- Updated dependencies [abb5449] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @object-ui/i18n@18.7.0 + - @object-ui/types@18.7.0 + - @object-ui/core@18.7.0 + - @object-ui/react@18.7.0 + - @objectstack/sdui-parser@18.7.0 + - @object-ui/react-runtime@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/ui/packages/components/package.json b/ui/packages/components/package.json index 1fab225b4e8..0de60af3844 100644 --- a/ui/packages/components/package.json +++ b/ui/packages/components/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/components", - "version": "18.6.0", + "version": "18.7.0", "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 02f4f8f58d4..4b29c884a95 100644 --- a/ui/packages/core/CHANGELOG.md +++ b/ui/packages/core/CHANGELOG.md @@ -1,5 +1,487 @@ # @object-ui/core +## 18.7.0 + +### Minor Changes + +- f98f18c: feat: an object's `userActions.exportCsv: false` hides the console's Export entry + + Clause-②: yes + Metadata-protocol: semantic + + `userActions.exportCsv` on an object now does what the Studio object form says it does. Set to `false`, the console offers no Export entry for downloading that object's data, in any of its formats (CSV, XLSX, JSON): + + - the object grid hides its toolbar Export menu, and the table's own CSV button that `operations.export: true` turns on; + - the list view hides Export in both toolbar forms, the wide toolbar's button and the Display panel's export footer; + - a dataset report hides its Export control when the dataset's base object sets it. + + A view's export of the picture it draws is not covered: a Gantt view's PNG and PDF buttons stay. + + Every surface reads one verdict, the new `isObjectExportOffered(objectSchema, effectiveApiOperations)` from `@object-ui/core`: the authored `exportCsv` over the object's `managedBy` default, ANDed with the caller's effective `export` API operation. Before this change the grid's toolbar menu, the list view and the report read the effective operation but not the object's bit, and the grid's table CSV button read neither half (only `operations.export`), so `exportCsv: false` changed nothing. Export is a read, so the verdict is not a row of `AFFORDANCE_GRANTS` and asks no `can(object, verb)`: the caller's export grant reaches the console through the effective `export` operation, which the server derives from `list` and `allowExport`. + + An object that does not author the key keeps its Export entries, since every `managedBy` bucket still defaults `exportCsv` to `true` (ADR-0103), with one change: the grid's table CSV button (`operations.export: true`) now also follows the effective `export` operation, as the toolbar menu beside it already did. So a viewer whose effective operations exclude `export` no longer sees that button, even on an object that authors nothing. The setting hides the entry and is not a permission: no export request is refused because of it, and who may export is still the permission set's `allowExport`. The report reads the base object's definition through the report's data source, and a report whose source cannot serve one keeps its Export control. + + The spec's `exportCsv` description and the Studio form's help text now say this; the form's English help text bundle in `@objectstack/platform-objects` is regenerated to match, and the translated locales keep their wording. The liveness ledger grades `userActions.exportCsv` `live`, so an authored `exportCsv: true` no longer raises the `liveness-dead-property` warning at `os lint` / `os validate`. Nothing needs migrating. +- 811858c: feat(list): a list's cells are selected by a click and edited by a double-click, Enter or typing, with no inline-edit toggle + + Clause-②: yes (widening) + Metadata-protocol: semantic + Skills-docs: none — `skills/objectstack-ui/rules/list-views.md` already teaches that inline editing is on by default for a user who may update the object, with `userActions: { editInline: false }` as the opt-out, which the list page now does with no toggle; no skill teaches the toggle or a single-click edit. + + **The list page (`ListView`) has no inline-edit mode and no toggle.** Its grid is editable in place wherever the reader may update the object and the view does not declare `userActions.editInline: false`; a view's boolean `inlineEdit` still folds into that switch, so `inlineEdit: false` reads off and `inlineEdit: true` reads on. Before, a view that declared neither opened read-only with an "Edit inline" toggle in the toolbar and in the Display menu, the mode lasted for the session, and a click on a cell edited it. Both toggles are gone, and `ListViewProps.onInlineEditChange` is deprecated and never called; the console stops passing it. + + **The select-first cell model** (`data-table`, behind the new `GridCellSelectionProvider` in `@object-ui/components`; `ObjectGrid` mounts it when its host passes the new `cellSelection` prop, and `ListView` passes it for every `object-grid` view it draws, on the hosts listed below): + + - A click selects a cell (a ring around it) and neither edits it nor opens the record. A link the cell draws (the name, a lookup, a phone or an email) keeps its own click. A touch tap opens the record and never edits in place. + - Double-click, Enter or F2 edits, keeping the value with the caret at its end; typing a character replaces the value with it (a picker or a date opens instead); Backspace or Delete clears the cell and saves at once, and a required field keeps its value and says it is required (objectstack#36023). + - While editing, Enter commits and stays on the cell (objectstack#36023), Tab and Shift+Tab commit and move right and left, Escape cancels and keeps the cell selected; in a multi-line editor Enter is a new line and Ctrl/Cmd+Enter commits. Commits are the grid's staged edits, saved by the row's Save and Save All as before. + - On the selected cell the arrows and Tab move the selection, Space opens the record (a checkbox cell flips and commits instead, as a second click on it does), Ctrl/Cmd+C copies, Ctrl/Cmd+V converts the text to the field's type and commits it, and Escape clears the selection. + - An input method's composition is kept whole: keys pressed while composing, and the 229 Enter Safari raises after it, never commit, cancel or move, and a composition started on a selected cell opens the editor with the composed text. This guard applies to every `data-table` editor. + - A cell that opens no editor says why on the cell: the field is read-only, calculated or not editable in a list, the reader may not edit the field, these records or this record, the view turned editing off, or the record is locked by an approval. The approval lock is read from the approvals service's per-record lock when a cell of the row is selected, through the record page's rule (`resolveApprovalLock`); until it answers, the row's `approval_status` stands in only where the view fetches that column, which a view that authors its columns does only when a column, a row predicate or a grouping names it. + + Every grid a `ListView` draws has this model, because `ListView` passes `cellSelection` to each `object-grid` view: the console's object list pages, interface list pages, the object data page (`/apps/:app/:object/data`), the Studio Data pillar's records artboard, and every `list-view` block, whether an SDUI page node or a `ListView` on a `kind: 'react'` page; a grid no `ListView` draws mounts no provider and keeps its click-to-edit (`singleClickEdit`) and click-to-open behaviour unchanged: an authored `object-grid` node, `ObjectView`'s own grid (the `object-view` block, or a host that passes no `renderListView`), a related list, a dashboard table, the record picker and the designer's grids. + + On every `ListView` grid (the select-first model) the table's trailing edit column, which holds a changed row's Cancel and Save, is drawn only while a row has changes, so the list at rest ends on its last data column. `@object-ui/core` exports `resolveAffordanceGrant`, the grant half of `resolveAffordance`, which the list cell's read-only reason reads. + + New locale keys, in every pack: `table.cellReadOnly` and `grid.readOnlyReason.*` (nine reasons). No key is removed: `list.inlineEditShort` and `list.inlineEditLabel`, the toggle's words, stay in every pack, though the list no longer draws the toggle. + +### Patch Changes + +- 4ffe9d3: feat(actions): an action writes the sentences it declares in the organization's language + + Clause-②: yes (widening: a new optional authorable key `ActionSchema.texts`, and new translation keys) + Metadata-protocol: added + Skills-docs: follow-up owed — skills/objectstack-ui/rules/actions.md, skills/objectstack-i18n/SKILL.md + + A `script` action's `js` body can now write a sentence into a record in the organization's language, the way a hook does: declare it under `texts`, keyed by a snake_case key, and ask for it by key — `texts: { email_subject: { message: 'Email: {{ subject }}', params: ['subject'] } }`, then `await ctx.text('email_subject', { subject })` where the body used to write `'Email: ' + subject`. The answer is in the organization's language, because everyone in the organization reads the record: the Localization setting (`localization.locale`) when somebody set it, else the app's declared `i18n.defaultLocale`. It is never the language of the person who ran the action. The translation is picked first, then its `{{ }}` holes are filled from `params`. The entry is the hook text's, built by the same shared factory. + + - The translation sits beside the action's other copy: `objects.<object>._actions.<action>.texts.<key>.message` for an action bound to an object, `globalActions.<action>.texts.<key>.message` for an object-less one. `os i18n extract` scaffolds the keys and the existing coverage check counts them; `objectstack validate` refuses a translation over a key the action does not declare. + - A missing translation, or no language to pick, answers the declared sentence, and the action goes on. A Localization setting that cannot be read rejects the call. + - Only declared text is translated: a string the body builds itself is written as it is. A key `texts` does not declare is refused when the action is saved if the body asks for it literally (`ctx.text('key')`), otherwise when it runs, as a fault naming the action and the key. + - `texts` is read only for a `type: 'script'` action with a `js` body (an inline `target` function is lowered to one by `os build`); on any other action, or with no body, it is refused at save. A `flow` action's record writes are the flow's own, marked and translated there (`flows.<flow>.records.…`). + - A text with `params` is compiled like a hook's: a hole over another name is refused when the action is saved, and `objectstack validate`, `compile` and the publish gate refuse a hole holding logic, an unknown formatter, an empty hole and `{{ amount | currency }}` with no code. A translation whose holes do not render at run time is dropped for the declared sentence, filled. + - Text is picked when it is written. Records already written are not changed. An action without `texts` runs exactly as before. + + `@object-ui/core` lists `texts` among the spec's declared action keys, so an action carrying them is not reported as having an unknown key; the console reads nothing new, because the body stores the sentence already picked. + + New exports: `@objectstack/spec` adds `ActionTextSchema` and the `ActionText` type (`ui`), `actionTextMessageKey` (`system`), and `ACTION_TEXT_MESSAGE_HOLE_REFUSED`, `actionTextsWithoutRunnableCode`, `undeclaredActionTextKeyAtSave` and `undeclaredActionTextAtRun` (`data`); `@objectstack/runtime` adds none. Nothing that was accepted before is refused. +- 89364b4: feat(spec, core, ui): `{current_iso_week}` defaults a week-keyed filter to the current ISO week + + Clause-②: yes (widening: the closed filter-placeholder vocabulary gains one token) + Metadata-protocol: added + + A dashboard whose rows carry a text week key (`cost_week: '2026-W47'`) could only default its week filter to a fixed week, which went stale the next Monday. Write the placeholder instead and the filter opens on the current week each time: + + ```ts + globalFilters: [ + { field: 'cost_week', label: 'Week', type: 'text', defaultValue: '{current_iso_week}' }, + ], + ``` + + - It resolves to the ISO-8601 week key of today, `YYYY-Www`: Monday-start weeks, week 1 is the week that holds the year's first Thursday, and the year is the ISO week-numbering year, so 2027-01-01 is `2026-W53` and 2025-12-29 is `2026-W01`. "Today" is the day in the workspace time zone, on the server and in the browser alike; the label is the one the analytics week bucket already uses. + - It is a period key, not a date. It lives in its own closed list, `PERIOD_KEY_TOKENS`, beside `DATE_MACRO_TOKENS` and not inside it, so a date filter default and a calendar `initialDate` still refuse it. `classifyFilterToken` answers a new kind, `period-key`, and `isKnownFilterToken` knows it, so lint, flow filter operands and the server resolver accept it wherever a filter placeholder is accepted. A consumer that switches exhaustively on `kind` gets a compile error until it handles the new kind. + - The server resolves it in `resolveFilterTokens`; the browser resolves it in `resolveFilterPlaceholders` and in the dashboard filter defaults (every filter type except `date` and `dateRange`), so the filter box opens showing the resolved key. A literal `2026-W47` default keeps working and stays fixed. + - Every filter and default written before parses and resolves exactly as before. Only the whole value is a placeholder: `'week {current_iso_week}'` is left as written. A near spelling such as `{currentIsoWeek}` is still refused as an unknown token. + - Use it only on a field that stores week keys. On a date, datetime or time field the placeholder is refused (`INVALID_FILTER` / 400), as the literal key is; filter those with the `this_week` preset or `{current_week_start}` / `{current_week_end}`. +- eed422e: fix(core): a relationship-path dashboard drill is sent as one nested-relation condition, so the server joins it in the database instead of the app reading related ids first + + Clause-②: yes (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed or renamed, and nothing stored is rewritten: the narrowed input is the in-memory filter a host hands ValueDataSource at runtime, and the comparand it now refuses, a plain object with no $ key under a scalar operator, is one the spec's own comparand door already refuses and ViewFilterRuleSchema.value cannot hold. No metadata an author can save changes meaning, so there is nothing for objectstack migrate meta to do. --> + + **BREAKING** for a host that filters a `ValueDataSource` (the in-memory `provider: 'value'` source) with a comparison whose comparand is a plain object (prototype `Object.prototype` or `null`) with no `$` key, such as `['account', '!=', { owner: 'u1' }]`, under `!=`, `not_contains` or an ordering operator (`>`, `>=`, `<`, `<=`). + + - FROM: `!=` served every other row (every row but one holding the caller's own object) and `not_contains` every row, and an ordering operator compared each value with the text `[object Object]` and served the string values that happened to sort past it. That holds for an object whose prototype is `Object.prototype`. A `null`-prototype object has no `toString` or `valueOf`, so an ordering operator threw `TypeError: Cannot convert object to primitive value` and `find` rejected; `not_contains` threw as soon as it reached a row holding a string, and served every row when none did. + - TO: the condition is refused by name. It excludes every row and logs the sentence the object form `{ account: { owner: 'u1' } }` already logs. `=` compared by reference, so it matched no row unless a row held the caller's own object (stored through `create` or `update`, which copy shallowly), and that row matched; it matches none now and gains the log line. + - The spec's comparand door already refuses an object comparand under these operators, so the rows served before were a wrong answer. Spell a relation condition only against a server-backed source, whose server joins it; a value source holds flat rows, so filter there on the row's own fields. + + `convertFiltersToAST` now lowers the nested-relation form the spec declares on `FilterCondition` (`{ account: { owner: 'u1' } }`, a plain object with no `$` key beneath a field) to one equality node, `['account', '=', { owner: 'u1' }]`, which the spec's `parseFilterAST` reads back as the same nested condition. It used to refuse that shape as an unknown operator. The condition travels as written, deeper relations included; whether the field is a relationship is judged by the server, which answers `INVALID_FILTER` / 400 for such a condition under a field that stores a scalar or a structured-JSON value, and, under a relationship, for a condition key the related object does not declare, a dotted key, or a relation nested past the hop limit. A map that mixes `$` operators with plain keys is still refused. + + `ValueDataSource` (the in-memory `provider: 'value'` source) does not descend into relations, and it now says so for the lowered node too: a comparison whose comparand is a plain object with no `$` key, such as `['account', '=', { owner: 'u1' }]`, excludes every row and logs the same sentence the object form `{ account: { owner: 'u1' } }` already logged, for `=`, `!=` and every other operator that reads the comparand. Before this, `=` compared the object by reference and matched no row without a word, unless a row held the caller's own object, and `!=` matched every other row. A class instance is not refused as a relation, even one with keys of its own such as a moment, luxon or decimal object: it is a value. An ordering operator compares it through its `valueOf` when that returns a primitive, otherwise as its text; under an equality, membership or text operator it is refused, in a sentence of its own. + + `resolveDatasetDrillFilter` uses it: a dataset dimension whose field is a relationship path (`account.owner`, up to three hops) drills as `{ account: { owner: VALUE } }`, nested one level per hop, instead of reading up to 200 related ids per hop and filtering on `$in` them. No related record is read, nothing is capped, and the `too-many` answer is no longer produced; `DATASET_DRILL_RELATED_ID_CAP` and the `too-many` member of `DatasetDrillResolution` stay exported, marked deprecated. The schema reads that check each hop is a single-valued relationship, the hop limit and the empty-bucket refusal are unchanged. + + One visible consequence: the drawer's "Open in list" escape hatch is not offered for a relationship-path drill, because the list page's `filter[...]` URL dialect has no spelling for a nested condition; the drill drawer itself lists the records. +- 55020c3: fix(form): formula fields are recomputed from the live inputs before the field rules are judged + + Clause-②: yes (widening) — one new member on the `@object-ui/core` package entry, `planObjectFormulas` (with its `ObjectFormulaPlan` type); nothing removed or renamed + Metadata-protocol: none + + A required field whose `visibleWhen` reads a `formula` field was judged on the formula value the form last read, or on nothing on a create. On a create form the field stayed hidden whatever was typed, or, when the formula was not drawn on the form, the rule faulted on the missing key and every submit was refused. On an edit that moved the inputs across the condition, the field stayed hidden while the server required it. In both cases the user could not save. + + The object form renderer and the console's form-view page now compute the object's formula fields over the record being edited, in the platform's read order, with the canonical `@objectstack/formula` engine, and judge `visibleWhen`, `requiredWhen` and `readonlyWhen` over that record. The formulas are computed for the signed-in user as the server computes them: `current_user` (also `user` and `ctx.user`) carries the user's id and positions. A formula that faults the way a read faults (an operator over an empty operand, an undeclared key, a cycle, a scope root the server does not bind for a formula, such as `previous`) reads `null`, and the rule is judged on that `null`. A formula the form cannot compute is one that reads through a reference, calls `label()` or `current_user.can()`, reads `os`, reads the user when nobody is signed in, is served without its expression, or reads such a formula. A field whose `visibleWhen` reads one is shown and keeps its `required` flag, with one console warning, and the form does not refuse the submit for that rule; the server, which judges the write, decides. Computed values are used for the rules only and are never sent in the write. +- 99a0e4f: fix(ui): grouping headers and the filter value picker name a lookup by its target's `nameField`, and the empty group is translated + + Clause-②: yes (widening) + Metadata-protocol: none + + A lookup with no `displayField` is now named by the target object's declared `nameField`, the default the spec states for `displayField` ("the referenced object's name/title"). This is the same title the lookup's grid cell and the record header already show. Before, three places guessed a `name`, `label` or `title` key, and showed the raw record id when the target had none, for example a target titled by an autonumber such as `DEAL-2026-0001`: + + - **Group headers of a list grouped by the lookup**, both server-grouped and client-grouped. + - **Filter builder value picker options** for the lookup, and the chip of the chosen value. + + An explicit `displayField` on the lookup still wins. Grouping and filtering stay keyed by record id, so two records with the same title stay separate groups and separate options. The picker reads the target object's definition once per picker. The ObjectStack adapter serves later reads of it from its metadata cache. + + The group of rows with no value now reads the grid's own empty-value string (`grid.empty`, for example "Empty" in English and "空" in Chinese) instead of the untranslated `(empty)`. It keeps its place in the group order: first when ascending and last when descending. + + `@object-ui/core` adds `referencedRecordTitle(targetDef, record, displayField?)` to its public entry, a new export. It gives the title of a referenced record using the lookup's `displayField`, then the record-title ladder of `getRecordDisplayName`, and returns `undefined` instead of the `Record #<id>` floor. +- 3d6dea2: feat(formula): `addWorkingDays()`, `workingDaysBetween()` and `addWorkingHours()` count with the organization's working calendar (ADR-0157 D4) + + Clause-②: yes (widening) + Metadata-protocol: added — a formula field's or a stored field's `expression` may now call `addWorkingDays(...)`, `workingDaysBetween(...)` and `addWorkingHours(...)` + Skills-docs: updated here — skills/objectstack-formula/SKILL.md teaches the three functions and eval 8 of skills/objectstack-project/evals/project-process.json exercises them (the card's order names both) + + Not released alone: it ships in the same release as the working calendar service and objects (#35355) and the approval escalation's working-time clock (#35357), ADR-0157 D4. + + - **Three formula functions** (`@objectstack/formula`). `addWorkingDays(day, n[, code])` answers the calendar day `n` working days after `day` (before it, for a negative `n`); `day` itself never counts and `0` answers `day`. `workingDaysBetween(start, end[, code])` counts the working days after `start` up to and including `end`, negative when `end` is earlier, and is the inverse of `addWorkingDays`. `addWorkingHours(start, hours[, code])` answers the instant `hours` of working time after `start`, counted as elapsed time in the calendar's time zone (D11); a start outside working time begins at the next working period. All three step over the calendar's weekends and holidays and onto its make-up working days. Without `code` a call counts with the organization's default calendar; `code` names a calendar and is written as a quoted literal. They join the advertised standard library (`CEL_STDLIB_FUNCTIONS`). + - **Where they count** (`@objectstack/objectql`). A `formula` field and a stored field's `expression` count with the record's own organization's calendars, which the engine loads through the calendar service before it evaluates them: only the calendars the expressions name, once per organization per read, from the service's cache. A formula field counts again on its next read after a calendar edit; a stored due time keeps the value of its last write. + - **When the calendar cannot answer** (D8). With no default calendar in the organization, a code the organization has no calendar for, or a count that reaches past the span the calendar is maintained for, the formula reads `null` and the server logs one line naming the object, the field and the reason. A stored field's `expression` stores blank and the write goes through; the blank stays until that record's next write, and a write made while the calendar refuses blanks a value that was valid before. Nothing counts on the weekly pattern or the wall clock instead. + - **No calendar arithmetic as a filter.** A query filter, a sharing rule's condition and every filter compiled from CEL refuse the three functions with a message that prescribes the stored due-time field (D6). + - **Build refusals** (`@objectstack/lint`). `os build` / `os validate` refuse the three functions at every expression site but a formula field's and a stored field's `expression` (validation rules, visibility, action conditions, flow conditions and values, sharing rules, a field's expression `defaultValue` and a seed value), and refuse a calendar code that is not a quoted literal, with a branch between literal calls as the way to pick a calendar per record. + - **Forms** (`@object-ui/core`). A form does not compute a formula that calls one of the three: its calendar is loaded for the server's read, never handed to the form, so the field is unservable there as on the server's write-path check. + - **Teaching** (`@objectstack/skills`). objectstack-formula documents the three functions; the platform catalog moves working-day formulas from Planned into what the platform ships; the project-process eval for business-hours SLAs now expects the functions. +- 285ad8d: fix(core): a chart's compare-to no longer repeats the current week when its filter uses `{current_iso_week}` + + Clause-②: no + Metadata-protocol: none + + `previousPeriod` now compares with last week's ISO key (week 1 steps back to the previous ISO year's W52/W53), and `previousYear` with the key of the same day one year earlier. The trend label reads "vs last week". +- ccded86: fix(core)!: the value data source refuses a plain-object comparand with no `$` key, empty or not, in both filter dialects + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is the row set `ValueDataSource.find` answers, in its object and its AST dialect, for a filter whose comparand the spec's doors already refuse: no stored row, registry key or authored value changes, so there is nothing for a migration to rewrite and no tombstone. --> + + **BREAKING** for `ValueDataSource` (the in-memory `provider: 'value'` data source) given a filter whose comparand is a plain object (prototype `Object.prototype` or `null`) with no `$` key, NON-EMPTY such as `{ owner: { $ne: { id: 'u1' } } }` or EMPTY such as `{ owner: { $ne: {} } }`, as the whole comparand or as a member of an `$in` / `$nin` / `$between` list, in either dialect. + + - FROM: such an object was compared as a value, by reference or as the text `[object Object]`. + - Whole comparand: `$ne` and `$notContains` answered every row; `$gt` / `$gte` answered the rows whose value sorts after `[object Object]` and `$lt` / `$lte` the rows sorting before it; `$eq`, `$in`, `$nin`, `$between`, `$contains`, `$startsWith` and `$endsWith` answered no row, with nothing logged. + - List member: `$nin` answered every row; `$in` answered the rows its other members matched; `$between` read the object as the text `[object Object]` and answered the rows in the text range up to its other endpoint (`[{ id: 'u1' }, 'zzz']` answers a `'zeta'` row). + - The AST dialect answered the same for a list member (`['owner', 'nin', [{ id: 'u1' }]]` every row, `in` and `between` likewise), and for an empty object as the whole comparand (`['owner', '!=', {}]` every row). + - TO: both dialects refuse it, for every operator of the spec's `FILTER_OPERATORS` except the three flag operators (`$null`, `$exists`, `$empty`). The rows are excluded and the reason is logged once. A non-empty object gets `filter condition on field 'owner' carries the non-operator key 'id'; the in-memory matcher does not descend into a nested relation constraint`; an empty one, which has no key to name, gets `filter comparand on field 'owner' is an empty object ({}), which is neither a comparison value nor a nested relation constraint`. A server-backed source already refused these filters with `INVALID_FILTER`: the spec's comparand door (`normalizeFilterComparandTypes`) refuses the object as a scalar operator's comparand and as a list member, and `assertListComparandShapes` refuses a whole object under a list operator. + - A class instance given as a field's whole condition, such as `{ created: someMomentDate }`, is now read as a value, not as an operator map. The whole filter is refused up front in the filter converter's words (`The filter on field 'created' carries a Moment instance (…) in comparand position`, the class name and the value's text), as the zero-key condition `{ created: {} }` is and as the server refuses it. Before, each of its own keys was refused as a nested relation per row, so on its own it answered no row, but inside `$or` the other branches still answered: `{ $or: [{ owner: 'Alpha' }, { created: someMomentDate }] }` answered the `'Alpha'` rows, and now answers none. + + **Not moved.** A scalar, a `Date`, a `{ $field }` reference and a class instance under an operator (a moment or luxon date, a decimal object under `$gt`, compared through its `valueOf`) are still compared. `{ owner: {} }` as a field's WHOLE condition keeps the converter's empty-operator-map refusal. `$empty` keeps its own boolean-flag refusal, `$null` / `$exists` still read their flag's truthiness, and a key outside `FILTER_OPERATORS` keeps the refusal it had. + + The fix for a caller: a filter on a related record's field is not executed by the in-memory source. Filter on a scalar column of the row itself, or compare with a scalar, a `Date` or a `{ $field }` reference. +- c9b0a23: feat(service-storage): rename an attachment through a door by the attachment delete rule, and the Attachments tab names the uploader of other people's files + + Clause-②: yes (widening) + Metadata-protocol: none + + Two additions, no answer narrowed: + + - **The rename door.** `PATCH /api/v1/attachments/:id` with `{ "file_name": "..." }` sets the name one `sys_attachment` row is listed under, by the attachment delete rule: the caller who uploaded it, or a caller the attachment update gate admits as an editor of the record it is attached to. The door reads the row as the caller first, so every attachment read rule applies; the uploader's rename is written on the caller's behalf with no edit grant, as the uploader's removal door does; anyone else's goes through the data engine as the caller, so the object's edit grant and the update gate judge it. It answers `{ id, file_name }` (200), and refuses `UNAUTHENTICATED` (401), `VALIDATION_ERROR` (400: a query parameter, a blank name, or any body key besides `file_name`), `RECORD_NOT_FOUND` (404: an attachment the caller cannot read answers as one that does not exist) and the update gate's `RECORD_NOT_ACCESSIBLE` (403) for a caller who can read the record but not edit it. Only the attachment row's name changes: the stored file, its bytes and the name a download carries are untouched. The package's exports are unchanged; `StorageServicePlugin` mounts the door beside the removal door. + - **The uploader, expanded.** The record page payload's `attachments` part (`POST /api/v1/data/:object/:id/page`) now asks its `sys_attachment` read with `uploaded_by` expanded, as the `activity` part expands its actor, and the Attachments panel's own list read does the same. The expansion is a read of `sys_user` as the caller: a reader who may read the uploader gets that user's row (its name), and a reader who may not keeps the stored id. A consumer of that part that compared `uploaded_by` with a user id now reads `uploaded_by.id` where the reader may read the user. + + The record Attachments tab shows the uploader's name on every row whose uploader the reader may read, and never shows a bare id. Its row menu offers Rename beside Delete, on the reader's own uploads and, to a reader who also holds the edit grant on `sys_attachment`, on every row, opening a name prompt; the new name is the one the list shows after a reload. + + `@object-ui/core`: the affordance-to-grant map gains the `attachmentRename` row (the edit grant on `sys_attachment`), which the panel asks for a row the caller did not upload. +- 6b360ab: fix(core)!: a non-boolean `$null` / `$exists` flag is refused in the filter converter and the value data source, and so are the object comparands the value data source cannot compare + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is what convertFiltersToAST lowers and what ValueDataSource.find answers for filters the spec already refuses (a non-boolean $null / $exists flag, a plain object of another realm, a plain object with a $ key that is not a { $field } reference such as { $foo: 1 }, a class instance under an equality, membership or text operator) or that this in-memory face cannot evaluate (a { $now, addDays } anchor): no stored row, registry key or authored value changes, so there is nothing for a migration to rewrite and no tombstone. --> + + **BREAKING** for `convertFiltersToAST` and `ValueDataSource` (the in-memory `provider: 'value'` data source), for four filter shapes. + + 1. **A `$null` / `$exists` flag that is not a boolean**, such as `{ owner: { $null: 'no' } }`, `{ owner: { $exists: 1 } }` or `{ owner: { $null: { id: 'u1' } } }`. + - FROM: the flag was read for its truthiness. `convertFiltersToAST` lowered `{ owner: { $null: 'no' } }` to `['owner', 'is_null', true]` and `{ owner: { $exists: 'no' } }` to `['owner', 'is_not_null', true]`, so a server-backed source answered the null-ness rows and its own door never saw the flag; the value data source answered the same rows (`'no'`, `1` and an object read as `true`; `0` and `null` as `false`). + - TO: both refuse it, as they already refused a non-boolean `$empty` flag. The converter throws `FilterOperatorError` (`INVALID_FILTER` / 400) with `The '$null' filter operator on field 'owner' takes a boolean flag (true or false); received "no"`, and the value data source excludes every row and logs `filter operator '$null' on field 'owner' takes a boolean flag (true or false); received "no"`. `true` and `false` lower and match exactly as before. The spec's `FilterConditionSchema` and every query face already refused these flags. + - The AST null-ness operators (`is_null`, `is_not_null` and their spellings) carry no flag and are not moved: direction comes from the operator name and the value slot is not read, as the spec's `parseFilterAST` reads it. + 2. **A plain object of another realm** (an iframe, a `vm` context), whose prototype is that realm's `Object.prototype`. + - FROM: `convertFiltersToAST` read it as an operator map, so `{ age: foreignObject }` with `$gte: 18` lowered to `['age', '>=', 18]`, and the value data source answered it with the right rows, the ones with `age >= 18`: that is the answer this change takes away. One with no `$` key lowered to the nested-relation node `['owner', '=', foreignObject]`. In comparand position the value data source compared it as a value: by reference under `$eq` / `=` and as an `$in` member, so no row matched unless a row held the caller's own object (stored through `create` or `update`, which copy shallowly), and that row did; `$ne` / `!=` and `$nin` served every other row; and under an ordering operator it compared as the text `[object Object]`, serving the string values that sort past that text. + - TO: it is a comparand, as the spec's filter walk and the engine's `isNoOperatorObject` read it: the converter refuses it as the field's whole condition in a sentence of its own (`The filter on field 'age' is a plain object from another realm (an iframe, a vm context). Only a plain object of this realm (prototype Object.prototype or null) is read as an operator map or a nested condition here…`), and the value data source refuses it in comparand position under every operator (`filter comparand on field 'owner' is a plain object from another realm, which is neither a comparison value nor filter structure here`). The server refused it already when the object reached it in process; sent as JSON, it arrives as a plain object of the server's realm. + - Also moved, by the same prototype test (the operator-map test no longer takes a second prototype hop): an object whose prototype is a `null`-prototype object, such as `Object.create(Object.create(null))`. FROM: `convertFiltersToAST` read it as an operator map (with no own key it was refused as an empty operator map; with `$` keys it lowered). In comparand position the value data source compared it by reference under `$eq` and as an `$in` member, so no row matched unless a row held the caller's own object, and `$ne` / `!=` and `$nin` served every other row: these are the rows this change takes away. It has no text of its own, so under an ordering operator, `$between`, and a text operator on a row holding a string, the comparison threw `TypeError: Cannot convert object to primitive value` and `find` rejected, unless its prototype defines a `valueOf` or `toString` that returns a primitive, which it then compared through; with no row holding a string, `$contains`, `$startsWith` and `$endsWith` served no row and `$notContains` every row. TO: both faces refuse it as `an object of an unrecognised type`: the converter as the field's whole condition, and the value data source in comparand position under every operator. + 3. **A plain object with a `$` key that is not a `{ $field }` reference**, in comparand position on the value data source, the spec's `{ $now, addDays }` date anchor among them, such as `{ due: { $lt: { $now: true, addDays: 7 } } }`. + - FROM: compared as a value: by reference under `$eq` and as an `$in` member, so no row matched unless a row held the caller's own object (stored through `create` or `update`), and that row did; `$ne` and `$nin` served every other row, and `$notContains` every row; under an ordering operator it compared as the text `[object Object]`, so `$lt` answered the rows sorting before that text. A `null`-prototype one has no text: under an ordering operator, `$between`, and a text operator on a row holding a string, the comparison threw `TypeError: Cannot convert object to primitive value` and `find` rejected. + - TO: refused under every operator that reads a comparand, whole or as a list member, in both dialects. The anchor (by the spec's test: `$now` is `true` or a string) gets `filter comparand on field 'due' is a { $now, addDays } date anchor, which the in-memory matcher does not resolve…`, ending in the remedy `compare with a concrete Date or ISO string here`: the platform resolves it in the compared column's temporal form, and this source has no field types to read a form from, the reason it already refuses a `{ $field, addDays }` offset. Any other one gets `filter comparand on field 'owner' is an object carrying the key '$foo', which is neither a comparison value nor a { $field } reference`, the comparand the spec's door refuses. `convertFiltersToAST` still lowers the anchor verbatim for a server-backed source, which resolves it. + 4. **A class instance** (a moment or luxon date, a decimal object, a `RegExp`, a `Map`) as the comparand of an equality, membership or text operator on the value data source: `$eq`, `$ne`, an `$in` / `$nin` member, `$contains`, `$notContains`, `$startsWith`, `$endsWith`, and their AST spellings. + - FROM: compared by reference or as its text. `$eq` / `=` and `$in` answered no row unless a row held the caller's own instance (stored through `create` or `update`), and that row matched; `$ne` and `$nin` served every other row. `$contains`, `$startsWith` and `$endsWith` matched on the instance's `String()` text and served rows (a `new String('ab')`, a class with a `toString`), and `$notContains` served their complement. + - TO: refused, in both dialects, with `filter comparand on field 'age' is a Amount instance, which the in-memory matcher compares only by order…`. The spec's comparand door refuses it at these operators. + - Not moved: under `$gt` / `$gte` / `$lt` / `$lte` / `$between` it is still compared through its `valueOf` when that returns a primitive; otherwise as its text. `$icontains` keeps its own text-comparand refusal. + + **Not moved.** A scalar, a `Date` and a `{ $field }` reference are compared as before; `$empty` keeps its boolean-flag refusal, with the converter's sentence now built by the same helper as `$null` / `$exists`; a `null`-prototype object of this realm is still an operator map. + + The fix for a caller: write the flag as the boolean itself (`{ owner: { $null: true } }`, `{ owner: { $exists: false } }`); compare with a scalar, a `Date` or a `{ $field }` reference; rebuild a filter object from another realm in this one (`{ ...condition }` per operator map, or `structuredClone(filter)`); filter a relative date on a server-backed source, or compare a value source with a concrete `Date` or ISO string; and convert a class-instance comparand to its primitive (`moment.toDate()`, `decimal.toNumber()`) before filtering. +- 78f7160: fix(core): a date macro inside a longer string is a literal on the client too + + Clause-②: no + Metadata-protocol: none + + `resolveDateMacros` resolves a filter value only when the whole value is one placeholder (`'{today}'`, `'${today}'`, `'{7_days_ago}'`). A value that merely contains one, such as `'from {today} on'`, is now returned as written. Before, the client replaced the macro inside the string while the server's resolver left it literal, so the same filter matched different rows in the console and on the server. This is the reading the spec declares for filter placeholders: a value that merely contains braces is untouched. + + A previous-period comparison (`shiftFilterByCompareTo`) follows the same reading: it renames only whole-value tokens, so the comparison query filters on the same literal as the current one. +- 8807dcb: feat(ui): a record page's related tab is the child object's full list + + Clause-②: yes (widening) — a new export `ListConditionsBlock` (`@object-ui/plugin-list`, the condition row as a host element, not a registered node type) and its `ListConditionsHostProps`; a new slot `RelatedListConditionsSlotContext` and its `RelatedListConditionsProps` (`@object-ui/plugin-detail`), which the record page fills (`@object-ui/app-shell`); new exports `ConditionDiscardButton` and its type `ConditionDiscardButtonProps` (`@object-ui/plugin-list`) and `withHeaderSortPick` (`@object-ui/core`); new i18n keys in every `@object-ui/i18n` locale pack (`listConditions.chips.discard`, `listConditions.chips.discardHint`, `detail.relatedNoMatches`, `detail.deleteRowsTitle`, and the count family `detail.deleteRowsConfirmation` with its plural slots `_zero`, `_one`, `_two`, `_few`, `_many`, `_other` as each pack needs them); nothing removed or renamed + Metadata-protocol: none + + On a record page, a related list opened as its own tab now works like the object's list page: + + - The first row names the child list (its tile and title) on the left and keeps **+ Add** on the right. The **Open in list** button is gone. + - The second row is the list page's own condition row: **Sort** (several levels) and **Filter**, with no view switch, view settings or search. On a narrow tab or in the drawer their labels fold to icons. + - The table is the list page's grid: the column menu, cell editing as on the list page wherever the reader may edit the child object, row selection with the floating bulk bar (bulk delete asks once, deletes the selection in one batch call where the data source has one, and says how many rows went and how many did not), and the footer row, whose calculations cover every matching row, not just the loaded ones. A tab grouped by status draws no footer row. + - Rows load as the page scrolls instead of in pages. + - The tab title still counts every child; the footer counts the rows the filter keeps. + - What the reader changes (sort, filter, footer calculations) lasts while they stay on the record, for that reader only, across its tabs and between its page and its drawer, and is gone after a reload or on another record. **Discard** appears once something changed and puts the tab back; there is no Save. The list page's Discard and this one are one button. + + Upgrade note: the header sort and the column widths and order that an earlier version remembered for a related tab in a reader's record-page preference (`sys_user_preference`) no longer apply: the tab opens in its declared order, and its column widths and order are now kept in the reader's browser, as the list page's are, so they start from the default once. Nothing stored is deleted. The default sort and columns of every related list are unchanged. + + `@object-ui/core` adds `withHeaderSortPick`, the list page's rule for how a header sort joins an existing multi-level sort, now shared with the related tab. `@object-ui/app-shell`'s list Discard is drawn by `ConditionDiscardButton`; it looks and behaves as before. +- 9ed18a5: fix(ui): danger colours render red in both themes, and light danger text clears 4.5:1 + + Clause-②: no + Metadata-protocol: none + + - The grid and list views' export-error line, and the Markdown caution alert's border and title, set their colour to a bare `var(--destructive)`. That variable holds an HSL triplet, not a colour, so the browser dropped the declaration and the text rendered in the inherited colour. The export-error line now uses the `text-destructive` utility and the caution alert reads `hsl(var(--destructive-text, var(--destructive)))`. The Markdown theme's heading anchors, quote and meta tokens and blockquote border and background had the same defect with other theme variables and now wrap them in `hsl()` too. + - The flow preview's invalid-edge stroke and arrowhead paint with the danger text colour, so they stay readable on the dark theme. + - The light theme now sets its own `--destructive-text`, red-700 (`#b91c1c`, `0 73.7% 41.8%`), so `text-destructive` reads at 6.47:1 on white instead of 3.76:1. `--destructive`, the brand red used for button and badge fills, is unchanged. The same value is in the stylesheet that `objectui init` generates. + - A theme's `error` colour applied through the theme engine still sets `--destructive`, and now also derives a danger text colour for each mode from it (same hue, lightness moved until it reads at 4.5:1 on that mode's surfaces), written as `--destructive-text-light` and `--destructive-text-dark`. The shipped stylesheets read those into `--destructive-text` in their light and dark blocks, so a custom red drives danger text and stays readable in both modes. A host stylesheet that overrides `--destructive` by hand should set `--destructive-text` beside it in each mode. +- f3d0a9f: fix(dashboard): a global filter bound to a field holding several values is sent as `$contains`, not `=` / `$in` + + Clause-②: yes (widening) + Metadata-protocol: none + + A dashboard `select` / `lookup` global filter bound to a field that holds several values (`multiple: true` on a select, lookup or user field, or a `multiselect` / `checkboxes` / `tags` field) used to be sent as `field = value`, or `$in` for several values. The server refuses both on such a field: the data query answers `400 INVALID_FILTER`, and the dataset query answers `200` with a count of 0, so the dashboard showed no data. The filter is now sent as `{ field: { $contains: value } }`, and several chosen values as `$or` over one `$contains` each, which the server answers with the matching rows. Single-value fields keep `=` / `$in`. + + To know whether the bound field holds several values, the dashboard reads the field's definition before it sends the widget's query: + + - `@object-ui/types`: `DataSource` has a new optional member, `getDataset(name, { callerPackage })`. It reads a dataset definition and resolves `null` when no such dataset is served; a failed read rejects. + - `@object-ui/data-objectstack`: `ObjectStackAdapter.getDataset` reads `GET /api/v1/meta/dataset/:name`, sending the reader's package as `callerPackage`, and caches the answer like the adapter's other metadata reads. + - `@object-ui/core`: `buildWidgetScopedFilter` takes an optional fifth argument, the operators each bound field takes when it is stored as a JSON column, and lowers a `select` / `lookup` filter on such a field to `$contains`. `boundMemberFilterNames` names the active `select` / `lookup` filters that bind a widget. + - `@object-ui/plugin-dashboard`: `DashboardRenderer` reads a dataset-bound widget's base object through `getDataset`, and a `provider: 'object'` widget's own object, through `getObjectSchema`. While that read is in flight, a widget that a `select` / `lookup` filter with a value binds draws a skeleton and sends no query. The operators come from `jsonColumnFilterOperators`, the helper the list quick filter and the filter builder use. + + A data source without `getDataset`, or a dataset the server does not serve, keeps the `=` / `$in` lowering, and the dashboard logs a console warning that names the filter. +- d12ac84: feat(comments): a member resolves and reopens any thread they can read, and deletes their own comments + + Clause-②: yes (widening) — `@objectstack/plugin-audit`'s `AuditPlugin` mounts two new HTTP routes, `PUT /api/v1/comments/:id/resolution` and `DELETE /api/v1/comments/:id`, and the stamp of who resolved a thread now reads a system write's `provenance.attributedUserId`. `@objectstack/core`'s `OwnRowDeleteDoor` adds an optional member, `refuseRemoval(row, engine, context)`, asked after the owner check. `@object-ui/react`'s `DiscussionContextValue` adds the optional `ownCommentDeletesOnly`; `@object-ui/plugin-detail`'s `RecordCommentsData` adds the optional `ownDeletesOnly`, and `RecordCommentThreadProps['comments']` may carry it; `@object-ui/core`'s affordance-to-grant map adds the row `feedCommentDeleteOwn`. Nothing existing is removed or re-typed. + Metadata-protocol: none + + Two server doors carry the maintainer's comment permission rulings past the platform's row floor (`owner_only_writes`, which lets a rank-and-file member update only the rows they created) and past the delete grant no every-member set may hold (ADR-0090 D5). Neither changes the floor, `sys_comment_moderation` or any permission set, and the data API answers exactly what it answered before. + + - **Resolve and reopen: `PUT /api/v1/comments/:id/resolution`** with the body `{ "resolved": true }` or `{ "resolved": false }` and nothing else. Whoever can read the thread and may post a comment on it may, external members included (ruling record 7063285032, option A: anyone who can see the record, the same gate as posting a comment): the door reads the comment as the caller (a comment they cannot read answers `404 RECORD_NOT_FOUND`, as an unknown id does), refuses a caller who reads comments but may not post one (`403 PERMISSION_DENIED`), refuses a reply (`400 VALIDATION_ERROR`) and then writes `is_resolved` alone, attributed to the caller. `resolved_by` names the caller. It answers `200` with `{ id, is_resolved, resolved_by, resolved_at }`. Any other query parameter or body is `400 VALIDATION_ERROR`; a signed-out request is `401`. + - **Delete your own comment: `DELETE /api/v1/comments/:id`.** It removes a comment the caller wrote (`author_id`), with no delete grant needed, on the platform's shared own-row delete door. Another member's comment is `403 PERMISSION_DENIED` and stays, even for a record editor: moderating someone else's comment stays the data API's, behind the delete grant. A comment that has replies stays too, whoever wrote them, `409 DELETE_RESTRICTED`, because removing it would turn each reply into a thread of its own (ruling record 7069889899: no one deletes or rewrites someone else's comment); its author may still edit its text. It answers `200` with `{ id, deleted: true }`. + - **Unchanged:** comment text stays its author's alone; a member's data-API update of a colleague's comment, `is_resolved` included, and a member's data-API delete are still `403`; administrators keep the data API for resolving, editing and deleting anyone's comment. + + The desktop comment panel follows the doors: + + - ✓ is on every thread, the viewer's and anyone else's, for a viewer holding the `sys_comment` create grant, and writes through the resolution door. It no longer asks the explain engine; that probe now gates only Edit on someone else's comment. + - A viewer without the `sys_comment` delete grant (an ordinary member) is offered Delete on their own comments that have no reply, and it goes through the own-comment delete door; a viewer with the grant deletes through the data API as before, others' comments included where they may edit the record. + + Corrections to two earlier notes of this release, which stay as written: + + - A rank-and-file member now resolves and reopens a colleague's thread through the resolution door; this replaces the #36071 note's line "This is the one widening: an update that changes nothing but `is_resolved` is admitted without the author-or-record-editor rule", because the platform's row floor (`owner_only_writes`) runs first, so through the data API such a member still resolves only the threads they started and an administrator resolves any. + - The desktop comment panel offers ✓ on every thread to a viewer who may post a comment and writes it through the resolution door; this replaces the #36075 note's line "✓ is offered under the `sys_comment` update grant: on a thread the viewer started, and on anyone's only where the explain engine admits …", and its "Unchanged" line's "a deployment without the explain service shows ✓ and Edit on the viewer's own rows only" now holds for Edit alone. +- 8a741ab: feat(console): a dashboard is edited on its own page by the people who may design its package, and every card marks the page filters it does not follow + + Clause-②: yes (widening) — one new exported function (`dashboardFiltersNotApplied` in `@object-ui/core`), two new optional `DashboardRenderer` props (`onWidgetResize`, `onAddFilter`), and new `@object-ui/i18n` keys (`dashboard.inPageEdit.*`, `dashboard.filters.notApplied`, `dashboard.filters.addFilter`); nothing is removed or renamed + Metadata-protocol: none + + A dashboard page draws an **Edit** button for a workspace admin who may author metadata, on a package Studio lists (the gate of the app's Studio entries). Edit opens the dashboard as stored (never the translated copy the page shows) in an edit state: the header says **Editing**, with **Add card**, **Discard** and **Save**; every card draws a dashed outline and can be dragged to move it, resized from its corner by whole grid tracks (or with the arrow keys on the corner handle) and clicked to select it. The panel at the right is Studio's own dashboard panels, as they stand: a selected card's (its data, its "follow page filters" switches, Remove) and otherwise the dashboard's (label, cards, filters, layout). The filter bar's **Add filter** opens the panel's Filters section. Add card appends a card at the end and selects it. + + Save writes where Studio's Customize would and publishes that one item in the same act, so everyone sees the change at once without the app's package being published: into the owning package when it is writable, else into the app's customization package (`<base>.custom`, declaring `overrides: { package, basedOn }`), so an installed app's dashboard is edited too. Opening the edit state writes nothing: the pair is asked of the ensure door, which creates it on first use, at Save only. As with Studio's Customize, an installed app's dashboard is not opened where that door is walled for the caller or the package list gives no installed version to declare the override at. A dashboard with a draft already pending there (a Studio edit not yet published) is not opened for editing, and a save over one writes nothing: that draft is never published on its saver's behalf. Discard drops every change and writes nothing. + + Every card, in every mode, carries a small mark naming the page filters that do not reach it ("Not filtered by Region"), asked of the same binding its query is built from (`dashboardFiltersNotApplied` over `resolveBoundField`): a filter the card opts out of, or one whose `targetWidgets` leaves it out (an explicit string binding wins over `targetWidgets`). A card every filter reaches carries none. +- 49c6bf3: fix(fields): an action's lookup param honours the borrowed field's `allowCreate: false`, and a record created in a filtered picker that fails the filters is not selected + + Clause-②: yes (widening) + Metadata-protocol: none + + - **A field-backed lookup param reads the field's `allowCreate`.** A param written `{ field, objectOverride }` already took the field's `lookupFilters`, `lookupColumns`, `lookupPageSize` and `descriptionField`, but not `allowCreate`. As a result, a field declaring `allowCreate: false` still showed "+ New" in an action's picker. `resolveActionParams` now copies it, app-shell's `paramToField` forwards it to the record-header dialog's picker, and the selection toolbar's dialog carries it through `resolvePromotedBulkParams`. Both the desktop popover and the phone drawer honour it. `@object-ui/core`'s `ActionParamDef` gains the optional `allowCreate` member it travels on. An author who writes `allowCreate` on a raw param is warned by name in development, like the other inherited picker keys: the spec's `ActionParamSchema` does not declare it. + - **A quick-created record is selected only if the picker could have offered it.** The create form accepts whatever the user enters, so the new record can fail the field's `lookupFilters`, for example a `draft` where the field asks for `approved`. The picker used to select it anyway, and the save or action that read the field then refused it. The picker now re-reads the new id through its own filter, the field's `lookupFilters` and `dependsOn` scope combined with the id. If the server does not return the record, it is not selected, and the picker reopens with the line `lookup.createdOutsideFilters` ("The record was created, but it does not match this field's filters, so it cannot be chosen here."), in every shipped locale. If the check itself fails, the record is not selected either, and the line `lookup.createdUnchecked` says the record was created but could not be checked, so the user searches for it instead of creating a duplicate. A picker with no filter selects the new record as before, without the extra read. + - **A create notice no longer hides the candidate list.** A create notice (the two lines above, or a failed inline create) now sits above the list instead of replacing it, so the user can pick an existing record straight away. Closing the picker clears it. Before, a failed inline create hid the list and its create entry until the widget was remounted. +- 6ddb97b: fix(core): a refusal that carries a `message` beside a bare-string `error` code shows the message + + Clause-②: no + Metadata-protocol: none + + `actionErrorDetail` returned a bare-string `error` before it read `message`. Against the REST seam's flat 401 body, `{error: 'UNAUTHENTICATED', code, message}`, every caller showed the user the code `UNAUTHENTICATED` instead of the sentence. Now, when the body has both a non-empty string `error` and a non-empty string `message`, the message is returned. A body with only `{error: 'sentence'}` still returns that sentence, the nested `{error: {message}}` envelope is read as before (still ahead of a top-level `message`), and the fallback is unchanged. +- 3aa008d: fix(gantt): a gantt opens on a host that sets a maximum page size, instead of showing the refusal + + Clause-②: no + Metadata-protocol: none + + The gantt read its whole filtered result set, up to its 10,000-row ceiling, as ONE read of 10,001 rows (the ceiling plus the probe row that makes a cut detectable). A host that sets a maximum page size (`OS_DATA_MAX_PAGE_SIZE`; the hosted plane sets 5,000) refuses any read over it before running the query, so on every such host the gantt drew "Query parameter 'top' asks for 10001 rows; this deployment's maximum page size is 5000…" in place of the chart, for an empty object as much as a full one. + + The gantt now asks no single read for more than 2,001 rows, the one read the calendar, map, tree and timesheet already send. A result set that fits that read is one read, as before. A larger one is walked from the top in steps of that size under a unique order (the authored sort with `id` appended as the tie-breaker) and kept once per row, so a step can neither repeat nor skip a row; the walk stops at the first short answer or one row past the ceiling. The ceiling, the footnote that names a cut, and the rule that an authored `pagination.pageSize` or `limit` never reaches the read are unchanged. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [8b550f8] +- Updated dependencies [c809deb] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [e01b8be] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [0585797] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [9f6f306] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [f3d0a9f] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [4ab2c82] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [bbc7e03] +- Updated dependencies [543585d] +- Updated dependencies [7e89bc6] +- Updated dependencies [70194ff] +- Updated dependencies [f2ef7d8] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [57445a6] +- Updated dependencies [01967c3] +- Updated dependencies [1f3e9f6] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @object-ui/types@18.7.0 + - @objectstack/formula@18.7.0 + ## 18.6.0 ### Minor Changes diff --git a/ui/packages/core/package.json b/ui/packages/core/package.json index 4653342bc96..0dad9ddf40e 100644 --- a/ui/packages/core/package.json +++ b/ui/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/core", - "version": "18.6.0", + "version": "18.7.0", "type": "module", "sideEffects": false, "license": "MIT", diff --git a/ui/packages/create-plugin/CHANGELOG.md b/ui/packages/create-plugin/CHANGELOG.md index 27b480efdde..a5ca3cdbef6 100644 --- a/ui/packages/create-plugin/CHANGELOG.md +++ b/ui/packages/create-plugin/CHANGELOG.md @@ -1,5 +1,9 @@ # @object-ui/create-plugin +## 18.7.0 + +No changes in this release. + ## 18.6.0 No changes in this release. diff --git a/ui/packages/create-plugin/package.json b/ui/packages/create-plugin/package.json index b4118c2f1f3..101384a148f 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": "18.6.0", + "version": "18.7.0", "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 9b52238861c..d52935b027a 100644 --- a/ui/packages/data-objectstack/CHANGELOG.md +++ b/ui/packages/data-objectstack/CHANGELOG.md @@ -1,5 +1,338 @@ # @object-ui/data-objectstack +## 18.7.0 + +### Minor Changes + +- c063734: fix(metadata): a skill the platform registers keeps its own slot beside an app's skill of the same name + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: none — no skills/ page names `_provenance` or its values, and the new value is one no author writes: the artifact door refuses it + + `MetadataProvenanceSchema` (`@objectstack/spec/kernel`) gains `'platform'`: the `_provenance` of a record the platform's own code registers at boot. It is a store-slot marker only, read at the item's own top-level `_provenance` key and nowhere else, and only the metadata service sets it. + + For every type stored per `(package, name)` (`skill`, `agent`, `tool` and the rest of `PACKAGE_SLOTTED_STORE_TYPES`), the platform's built-in record and a package's item of the same name no longer overwrite each other, in memory, in `sys_metadata`, and on a process or cluster peer that reads them back from the rows. + + - `MetadataManager.register(type, name, data, { origin: 'platform' })` marks a record the platform's own code registers: the body is stamped `_provenance: 'platform'` and the record fills the name's bare slot, in memory and in `sys_metadata`. Before, a package-less write under a name one package held was folded into that package's slot as its customization, so the platform's boot registration rewrote the app's skill. + - A package's first item of a name no longer takes over the bare slot when the platform's record is in it; the two stay side by side. For a bundled type (`email_template`) the row judged is the written member's. The environment's own item in the bare slot is still taken over, as before. + - A package-less environment write under a platform name keeps today's rule: it takes the bare slot without the stamp, and the platform's next registration restores its record. + - The readers that rebuild the store from loaders and rows keep both records: the plural read (`loadMany`, `loadManyKeyed`) gives the platform's entry a key of its own, `list` keeps a loader's platform row beside a package's slot and a loader's package item beside a platform slot, and a read naming a package is never answered from the platform's record. + - `MetadataManager.unregister(type, name, { origin: 'platform' })` withdraws the platform's record only, from the registry, every loader (`MetadataLoaderDeleteOptions.platformOnly`) and every cluster peer. A package's item of the name and the environment's own item are never taken, for any type, and nothing is refused however many packages hold the name. Before, a removal naming no package took every slot of a name one package held. On a host that declares a package id, the boot pass leaves the platform's stored record without the host's package, for every type, so the withdrawal takes the registry's copy too. + - `MetadataManager.getPlatformItem(type, name)` reads the platform's record only, never a package's item and never the environment's own. + - No other write carries the platform stamp. `register` without `origin: 'platform'`, `registerInMemory`, `save` and `rollback` store the body without it, and so do the metadata protocol's save door and its restore doors (`rollbackMetaItem` and the restore limb of `revertCommit`); a stored row the boot pass re-registers keeps it only when the row held it as read. `rollback` whose row is the platform's own record is refused (`409 RESOURCE_CONFLICT`, naming the fix), with nothing written. The metadata protocol's two undo writes, of a refused batch publish's landed promotions and of a failed batch row write, put a row back as the same operation found it, byte for byte, so the mark comes back only where the row held it. A body served from a loader other than a `datasource:` one is served without it; `getPublished` serves it on the answer's top level only when the stored item carries it there, and never inside a publish snapshot; and the artifact door refuses an item that carries it, with or without a manifest id (`VALIDATION_ERROR` at `_provenance`, naming the fix). A `_provenance` key nested in the body (an authored `metadata` record, for one) is the author's data: it is kept as written and never read as the mark. A body that names a package is that package's item, whatever `_provenance` it carries. + - `@objectstack/metadata` exports the mark's one definition (`PLATFORM_PROVENANCE`, `carriesPlatformStamp`, `isPlatformOrigin`, `withoutPlatformOrigin`); the artifact door and the metadata protocol's doors read it. + - `@objectstack/metadata-protocol`: the boot census `metadata_sealed_overlay_unserved` no longer names the platform's own row beside a package that ships the name, nor prescribes deleting it. + - Reads naming no package, and every removal and write without the option, keep their rules. + - Public API added on `MetadataManager`: the `origin` option of `MetadataRegisterOptions` and `MetadataUnregisterOptions`, and `getPlatformItem`. The spec's `MetadataWriteOptions` is not widened. + - `@object-ui/data-objectstack`: the layered read's `provenance` is typed from the spec's `MetadataProvenance`, so it accepts `'platform'`. + + Callers that register built-ins at boot pass `{ origin: 'platform' }` to `register` and `unregister` to get this behaviour; without it, a write is treated as before. + +### Patch Changes + +- b2d4355: fix(app-shell, plugin-designer, console): app writes send the app as its author stored it, not as the console's locale serves it + + Clause-②: no + Metadata-protocol: none + + The served app list is translated for the reader's locale, and the metadata save door stores a body verbatim. Four writers seeded a whole-app save from that served list: the Edit app wizard, App management's Disable / Enable / Set default and bulk toggles, the navigation sync that adds or removes an entry when a page, dashboard, report or object is created or deleted, and the Publish button on an unpublished app. In a zh-CN session each of them stored the app's label and every navigation label in Chinese, and readers in every other locale were then served Chinese. Each writer now reads the stored app from the untranslated layers through the new `ObjectStackAdapter.getAuthoredItem(type, name, { packageId })`, and changes only the keys its control owns. The served list is still used to find the app. When the stored app cannot be read, the writer refuses with an error and saves nothing; the Edit app page shows the read error instead of opening the wizard. +- b1eb500: fix(app-shell, data-objectstack, console): view, form, pair-action and report edits start from the stored item, not the translated served one + + Clause-②: no + Metadata-protocol: none + + The served metadata reads are translated for the reader's locale, and the metadata save door stores a body verbatim. Four more writers seeded a whole-item save from a served read, so in a zh-CN session each stored the translations as the item's source text and readers in every other locale were then served Chinese. The view config panel (and its draft-bar resume) seeded its buffer from the served view; the adapter's `updateView`, behind Manage views' Rename, Pin and Set as Default, merged onto the served draft or the served published view; Developer → Public Forms spread the served form view into its Publish and Edit writes and prefilled the thank-you text from it; and Studio's pair actions on an installed app's object buffered the pair's served actions. Each now starts from the untranslated layered read through `authoredBuffer` (the pending draft as stored, else the published item) or, for the live-row writers, `authoredPublished`, and changes only the keys its control owns. A pending draft whose stored copy the layered read does not serve is refused, and so is an item with nothing stored to read: nothing is written from the served copy. The report quick edit now hands its served draft to `authoredBuffer`, so a pending report draft the layers do not serve opens no editor instead of one seeded from the published report. +- f9f45d3: fix(ui): a view a read-only package ships offers no footer calculation menu and no Rename + + Clause-②: no + Metadata-protocol: none + + On a list view that ships inside a read-only package (a code or installed package), an admin was offered the footer's calculation menu and the options menu's Rename; the server refuses both saves ("save it into the customization package"), so the pick was taken back with a toast. Neither is offered there now. A shared view the console saved into the customization package, a stored view bound to no package and the reader's own view keep them. + + The view's name cannot tell these apart, since every stored view is named `object.key`; the package the row was served under does. `listViews()` in `@object-ui/data-objectstack` now carries the row's served `_packageId` on both of its arms (the `config`-flattening arm dropped it). The console reads the server's `writable` verdict for that package from the package list it already holds for the session, the one the app bar's Studio entries read. While that list is unread, or when the read fails or does not name the package, the menu stays offered as before and the server's refusal still applies. +- a5a5312: feat(console): a list's column widths, row height and tab order are kept in this browser only + + Clause-②: no + Metadata-protocol: none + + On a Console object list, the column widths a reader drags, the row height they pick and the order they give the view tabs are now kept in their own browser only, per signed-in user and object (localStorage `list-layout:<user id>:<object>`). Nothing is sent to the server: the Console no longer reads or writes the per-user list preference row `sys_user_preference` `ui.list.<object>`, and its boot read of the reader's preferences no longer asks for that key family. A list opens at once, without waiting for that read. + + - Another browser or device opens the list on its view's own widths, row height and tab order until the reader changes them there. + - Signing out clears these entries with the rest of this browser's Console state, as before. + - With nobody signed in, nothing is kept. + - The record page's "show empty fields" choice (`ui.record.<object>`) is unchanged and still follows the reader. + + Upgrade note: what an earlier Console kept for a reader's lists is not carried over. The `ui.list.<object>` rows are no longer read, so every reader's lists open on their views' own widths, row height and tab order until they change them again. This browser's old copies (`list-state:*`, `list-filters:*` and `viewOrder:*` in localStorage) are removed on the first list the Console opens. The server rows stay where they are, unread; leaving them does no harm. + + `@object-ui/data-objectstack`, `@object-ui/react` and `@objectstack/platform-objects` change only comments and a README example that named the retired key. No metadata key, value or default changes. +- f3d0a9f: fix(dashboard): a global filter bound to a field holding several values is sent as `$contains`, not `=` / `$in` + + Clause-②: yes (widening) + Metadata-protocol: none + + A dashboard `select` / `lookup` global filter bound to a field that holds several values (`multiple: true` on a select, lookup or user field, or a `multiselect` / `checkboxes` / `tags` field) used to be sent as `field = value`, or `$in` for several values. The server refuses both on such a field: the data query answers `400 INVALID_FILTER`, and the dataset query answers `200` with a count of 0, so the dashboard showed no data. The filter is now sent as `{ field: { $contains: value } }`, and several chosen values as `$or` over one `$contains` each, which the server answers with the matching rows. Single-value fields keep `=` / `$in`. + + To know whether the bound field holds several values, the dashboard reads the field's definition before it sends the widget's query: + + - `@object-ui/types`: `DataSource` has a new optional member, `getDataset(name, { callerPackage })`. It reads a dataset definition and resolves `null` when no such dataset is served; a failed read rejects. + - `@object-ui/data-objectstack`: `ObjectStackAdapter.getDataset` reads `GET /api/v1/meta/dataset/:name`, sending the reader's package as `callerPackage`, and caches the answer like the adapter's other metadata reads. + - `@object-ui/core`: `buildWidgetScopedFilter` takes an optional fifth argument, the operators each bound field takes when it is stored as a JSON column, and lowers a `select` / `lookup` filter on such a field to `$contains`. `boundMemberFilterNames` names the active `select` / `lookup` filters that bind a widget. + - `@object-ui/plugin-dashboard`: `DashboardRenderer` reads a dataset-bound widget's base object through `getDataset`, and a `provider: 'object'` widget's own object, through `getObjectSchema`. While that read is in flight, a widget that a `select` / `lookup` filter with a value binds draws a skeleton and sends no query. The operators come from `jsonColumnFilterOperators`, the helper the list quick filter and the filter builder use. + + A data source without `getDataset`, or a dataset the server does not serve, keeps the `=` / `$in` lowering, and the dashboard logs a console warning that names the filter. +- cc05e60: feat(console): Manage views restores the factory version of a customized package view + + Clause-②: yes (widening) + Metadata-protocol: none + + A pin, a rename or a set-default on a view a read-only package ships writes the whole view into the package's customization (`<package>.custom`), and every user of the view then sees that copy. Manage views now marks such a view "customized" and offers "Restore factory version" in its `…` menu. After one confirm, which says every user of the view sees the factory version again, the override is removed from the customization and the list shows the package's own view. A view without a customization has no mark and offers no restore; a refused restore is said with the server's own message. + + - `@object-ui/data-objectstack`: `ObjectStackAdapter.restoreFactoryView(objectName, viewName)` deletes the view's draft, then its row, at the customization the ensure door names for the shipping package (`DELETE /meta/view/NAME?package=PAIR`, the door Studio's "Restore package original" uses). It refuses, sending nothing, a view that is no override of the package it is served under, and throws when the customization held no row of the view. The customization package itself stays. `listViews()` now carries a record's `overrides` declaration onto the flattened row. + - `@object-ui/plugin-view`: `ViewTabItem.customized` and `ManageViewsDialogProps.onRestoreFactory`. + - `@object-ui/i18n`: the mark, the menu entry, the confirm, its result and the failure title, in every locale pack. +- 70f454a: fix(metadata): two Studio Saves over one published item are no longer last-writer-wins + + Clause-②: yes (widening) — two new optional members join what the API accepts and answers: `PublishMetaItemRequestSchema.parentVersion` (the `If-Match` / `If-None-Match: *` pin on `POST /meta/:type/:name/publish`) and `GetMetaItemLayeredResponseSchema.overlayVersion` (served on `GET /meta/:type/:name/layers`); nothing is removed or narrowed, and a publish that names no version behaves as before + Metadata-protocol: added + + A Studio Save writes the item's draft and then publishes that one item, so it leaves no draft behind. Two admins who opened the same object with no pending draft both asserted "no draft" on their draft save, and the later Save published over the earlier one without a word: the published layer served no version a Save could pin. + + - `GET /meta/:type/:name/layers` now answers `overlayVersion`: the version token of the stored active row at the read's address (`?package=`), the same keyed token the plain uncached read serves as `version` and a publish receipt serves as `version`; `null` when no active row is stored there. + - `POST /meta/:type/:name/publish` takes that token as `If-Match` (or `If-None-Match: *`, "no active row here"). A token that is not the current active row's is refused `409 METADATA_CONFLICT` with the current token as `currentVersion`, and nothing is promoted: the draft stays pending. The headers are read as the save door reads them, so `If-Match` beside `If-None-Match`, or an `If-None-Match` other than `*`, is refused `400 VALIDATION_ERROR`. A publish with neither header is unpinned, as before. The pin is checked by the store's own lock on the promoting write, not by a separate earlier read. + - `MetadataClient.publish` (`@object-ui/data-objectstack`) takes `ifMatch` / `ifNoneMatch`, sent as those headers. + - Studio's object page pins its Save's publish to the published row it was loaded at. When another editor published since, the Save shows the reload-or-overwrite dialog the draft conflict shows, worded for a live change: reload takes back the draft the Save wrote and re-reads the live object, overwrite (after a confirmation) publishes over the version the refusal names, and keep editing leaves the edits on the page, unsaved. New locale keys in the studio catalogue (en, zh): `engine.draftConflict.publishedTitle`, `engine.draftConflict.publishedDescription`, `engine.draftConflict.publishedOverwriteTitle`, `engine.draftConflict.publishedOverwriteDescription`. + + The two members enter the authorable-surface ratchet (`api/GetMetaItemLayeredResponse:overlayVersion`, `api/PublishMetaItemRequest:parentVersion`), so `@objectstack/spec` takes `minor`; the other packages stay `patch`. + + Nothing to migrate: a client that sends no version is unaffected. +- 8c29b81: feat(console): the metadata list shows when each item last changed and marks items with unpublished changes + + Clause-②: yes (widening) + Metadata-protocol: none + + The generic metadata list (Setup's catalog lists and Studio's "All metadata" area) gains a 「修改时间」 / "Modified" column, read off the list answer's `changedAt` sibling. Only an item served from a stored row has a time; a code-shipped item shows an empty cell. The sort control gains "Modified (newest first)" and "Modified (oldest first)", which ride the address as `sort=-changed` / `sort=changed`; items without a time sort last either way, and the item page's ‹ › follow the same order. + + Beneath the time, an item with a pending draft on the existing `GET /api/v1/meta/_drafts` ledger is marked 「有未发布的改动」 / "Unpublished changes", including drafts that existed before this change. A draft the AI assistant wrote (any of its recorded changes made by the AI copilot or through the MCP build door, the rule the item page's AI line uses) is marked 「AI 的改动未发布」 / "Unpublished AI changes" instead. A publish removes the mark. + + `MetadataClient.listResponse` now returns the list's `changedAt` beside the items (each entry read with the spec's own rule; an entry that does not parse is dropped, and absence stays absence). `list` is unchanged. + + New locale keys in the studio catalogue (en, zh): `engine.list.sort.changed.asc`, `engine.list.sort.changed.desc`, `engine.list.col.changedAt`, `engine.list.draftMark.human`, `engine.list.draftMark.humanTitle`, `engine.list.draftMark.ai`, `engine.list.draftMark.aiTitle`. +- 1e96009: feat(studio): the generic item page's Save takes effect at once; an AI draft gets the designers' notice and discard + + Clause-②: yes (widening) + Metadata-protocol: none + + Studio's generic item page saves the way the designers do. Save writes the item's draft and then publishes that one item (`POST /meta/:type/:name/publish`, at the same package and bundle member), so the change is live at once and there is no second Publish step. The draft save keeps its version pin and conflict dialog, and the publish is now pinned to the published version the page loaded: when another editor published the item in between, the same dialog asks to reload, overwrite or keep editing. A create publishes right after its first save. The auto-save switch is gone, and edits wait for Save, ⌘S or the destructive-change confirmation. + + A refused publish shows its reason above the editor in the designers' words, with the server's text under Details. Nothing goes live, the draft the Save wrote is taken back, and the edits stay on the page, unsaved. + + A pending draft written by the AI assistant (the copilot or an MCP client) is the version on screen, under the designers' line: saving makes it live too, and "Discard AI changes" drops that one item's draft, asking first when the page holds unsaved edits. A pending draft a person wrote before this change is marked "This item has unpublished changes", with its own Publish and Discard for that item. The header's Publish and discard buttons are gone. + + Leaving the page with unsaved edits still asks first through ×, ‹ ›, the side menu, in-app links, reload and close. The browser's Back is not intercepted. + + `@object-ui/data-objectstack`: the exported `MetadataLayered` type gains an optional `overlayVersion` member (`string | null`), and `MetadataClient.layered()` now forwards the served `overlayVersion` into it. The client used to rebuild its answer field by field and drop it, so a Studio Save's publish was never pinned on a server that serves it. + + Locale keys `engine.edit.unpublishedChanges` and `engine.edit.unpublishedPublishDirty` are new, and `engine.edit.autoSaveOn`, `engine.edit.autoSaveOff` and `engine.edit.autoSavingShortly` are removed (en, zh). The per-browser `metadata-admin:autosave` setting is no longer read. No metadata changes; nothing to migrate. +- ce2645a: fix(data-objectstack): a user-preference save waits for the adapter's in-flight load instead of reading its row again + + Clause-②: no + Metadata-protocol: none + + The user-state adapters (`createObjectStackUserStateAdapter`) load their `sys_user_preference` rows through one shared read and remember each row's id for later writes. A save issued before that read answered (for example the recent-items flush shortly after a page opens) found no remembered id and sent its own `sys_user_preference` read for the same key before writing, one extra request per page open on a slow connection. A save now waits for the adapter's load if one is in flight, then updates the row that load returned. When no load is in flight, or the load failed or found no row, a save behaves as before: it reads its own row, then updates it or creates it, and recovers from a lost create race by reading again and updating. Saves still run one at a time. The key-family adapter (`createObjectStackUserPreferenceFamily`) had the same gap and gets the same wait. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [f5b2eea] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [eed422e] +- Updated dependencies [2df9691] +- Updated dependencies [55020c3] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [99a0e4f] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [285ad8d] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [dab4712] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [ccded86] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [e01b8be] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [0585797] +- Updated dependencies [811858c] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [d9be915] +- Updated dependencies [c9b0a23] +- Updated dependencies [6b360ab] +- Updated dependencies [78f7160] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8807dcb] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [9ed18a5] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [9f6f306] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [f3d0a9f] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [4ab2c82] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [bbc7e03] +- Updated dependencies [543585d] +- Updated dependencies [7e89bc6] +- Updated dependencies [70194ff] +- Updated dependencies [f2ef7d8] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [8a741ab] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [49c6bf3] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [57445a6] +- Updated dependencies [01967c3] +- Updated dependencies [1f3e9f6] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [6ddb97b] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [3aa008d] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @object-ui/types@18.7.0 + - @object-ui/core@18.7.0 + - @objectstack/client@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/ui/packages/data-objectstack/package.json b/ui/packages/data-objectstack/package.json index 63e0025cd82..86a7b252be3 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": "18.6.0", + "version": "18.7.0", "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 75f5db01141..26528dfd627 100644 --- a/ui/packages/fields/CHANGELOG.md +++ b/ui/packages/fields/CHANGELOG.md @@ -1,5 +1,989 @@ # @object-ui/fields +## 18.7.0 + +### Minor Changes + +- c7174c3: fix(record-page): business dates read as dates, Save is the edit state's primary button, a new detail line starts on its defaults, and the tabs follow the header with no blank band + + Clause-②: yes (widening) + Metadata-protocol: semantic + + Four things on the record page. + + **Dates.** A `date` field that declares no `format` read as a relative phrase on the record page ("6 days ago", "Tomorrow") while the list beside it wrote the date ("Nov 13"), so the reader had to work the day out. The record page's field sections and its highlights strip now write the date itself, with its year, as the list's columns do; the relative phrase (an overdue deadline's "Overdue 5d" included) is the date's tooltip, and a deadline past due still reads red. A declared `format`, `'relative'` included, still wins. A `datetime` field already read as an absolute date there (its cell's default face is the compact one, never the relative phrase), and is now pinned to stay so. The record footer's created and modified times keep their relative wording, and card surfaces (kanban, gallery) are unchanged. `@object-ui/fields`' cell props gain `absoluteDate`, read by the `date` cell. + + **Edit-state buttons.** In the record page's edit state, Cancel drew as the filled primary button and Save as an outline one, so the hand fell on the button that throws the edit away. Save is now the one filled button, after Cancel, the order a form's footer uses. `page:header` now makes a host button declaring `variant: 'primary'` the primary over the page's own actions, in the place the host gave it; no other host button declares one, so every other header is unchanged. + + **New detail lines.** A line added to a master-detail table in the record page's edit state started blank, so a required column with a default (a status that defaults to "Pending") read red although the save then stored the default. A new line now starts on the child object's static defaults, the values a create form seeds; a default the server resolves at insert (`NOW()`, a CEL expression) is left to the server. A new line's empty required cell reads red only after a save was refused, with the server's reason listed under the table; a stored line is flagged as before. A line added and never edited, holding only its defaults, is still skipped at save like a blank one; once the user edits a cell of it, it is input and is saved, even when every value they typed equals a default. `LineItemsField` gains `newRowValues` and `newRowRequiredShown`; a line its Add starts on `newRowValues` carries the `UNTOUCHED_NEW_ROW` mark (a symbol key no payload carries) until its first edit, and `isBlankRow` reads that mark. `@object-ui/fields` exports `UNTOUCHED_NEW_ROW` and `isUntouchedNewRow`. A host that passes neither prop sees no change. The save request and its transaction are unchanged. + + **The band above the tabs.** The record page's scroller and its column layout each padded their top by 24px on a desktop, so a 48px empty band stood between the header and the tab row. The scroller now pads only its sides and bottom, and the column layout keeps a 12px top on every width, so the tabs follow the header at the gap the rest of the page uses; on a phone the title block keeps 16px to the tabs. The print chrome and the approval actions bar that render above the columns keep their own top margin, and an authored page the page renderer draws keeps its own top padding. Side padding is unchanged. +- 6db1dc2: feat: the form's line-item table edits people, multi-select, tags, check and rating cells the way the main list does + + Clause-②: yes (widening) + Metadata-protocol: semantic + + `InlineGridColumnSchema.type` (a relationship field's `inlineColumns`, a form view's `subforms[].columns`, and the page blocks that carry the same column) accepts five more cell types, each spelled as its namesake field type: `user` (people), `multiselect`, `tags`, `boolean` (check) and `rating`. The column also takes an optional `max`, the star count of a `rating` cell (default 5). + + In the line-item table: + + - A `user` cell opens the main list's person picker under the cell: a searchable list with recent people and Clear; a pick writes and closes. `multiple` holds several people. + - A `multiselect` cell holds several of its options and a `tags` cell holds free-form tags. Each opens its searchable list under the cell; a click outside or Tab writes what was picked, Esc writes nothing. A list emptied in the cell writes `null`, as a cleared multi-value field stores, so a line whose only value was removed is still a blank line. A `tags` cell takes no `options`. + - A `boolean` cell is a checkbox: a click or Space toggles it and writes `true` / `false`. + - A `rating` cell draws its stars; a click on a star, or a digit key on the cell, sets it, and 0 clears it. + - Read-only and list-mode cells show people by name, a rating as its stars, a multi-select's option labels, and a check cell as the session's yes/no word. + + Visible change on existing forms: a column the table derives from a child field (no `type` written) now follows that field. A `boolean` / `toggle` field becomes a checkbox instead of the yes/no select, and it writes `true` / `false` instead of the strings `'true'` / `'false'` (the server reads both the same). A `rating` field becomes stars instead of a number box. `user`, `multiselect`, `checkboxes` and `tags` fields get their own cells instead of a plain text box that took a typed user id or a single option. A column that writes its `type` is unchanged, a `type: 'select'` column over a boolean field included. Which derived columns are visible by default is unchanged. + + The field-level security scrubber classifies the column's new `max` key as kept (a number, never a field name). +- 8da2b7e: fix(fields): a lookup pick no longer copies an amount into a field in another currency; the field stays empty and the form says why + + Clause-②: yes (narrowing) — a cross-currency price copy that happens today stops and the line is left empty with a stated reason (ruled B); widened: three new `@object-ui/i18n` `lookup.autofill*` keys in every locale pack, new `@object-ui/fields` exports from `lookupAutofill.ts` (`planDeclaredLookupAutofill`, `crossCurrencyRefusal`, `amountCurrencyOf`, `pickedAmountCurrencyOf`, `withheldAutofillMessage`, `withLookupAutofillTargets`, `readLookupAutofillTargets`, `LOOKUP_AUTOFILL_TARGETS_KEY` and their types), an optional second argument on `onSelectRecord`, an optional trailing `currency` parameter on `declaredLookupAutofillPatch` and `lookupAutofillPatch`, and the optional `columnFields` prop on `GridField` + Metadata-protocol: semantic + + <!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed or renamed, and nothing stored is rewritten: what moved is what a pick copies in the browser. The fix for an author is in the body: the price on a line in another currency is entered by hand. --> + + **BREAKING** for forms and line-item grids that relied on a pick copying an amount across currencies. On a EUR invoice, picking a product whose price is in the home currency used to copy the number as euros (a $100 product became a €100 line). Nothing converted it. Now the price is not copied: the cell or field stays empty, and a note under the line (in a grid) or under the lookup (in a form) names the picked amount with its currency and the currency of the field, so the price can be entered by hand. The other fields of the same pick (a description) still fill. + + **The rule.** It applies to the grid's same-named copy (the column key `autofill`), to the grid's declared `lookupAutofill` pairs, and to the record form's declared pairs, on a pick and on a create form's opening fill: + + - an amount is a `currency` field or a `formula` returning `currency`; a `number` carries no currency and copies as before; + - both sides in the home currency (neither declares one) copy as before, also when no home currency is configured; + - otherwise the value copies only when both sides name the same known code: a `fixed` code, the code the record holds, or the code its `master_detail` parent holds (ADR-0144 D2 as amended), with the home currency counting as its configured code; + - a field that follows a record's currency while that record holds none yet is not filled, and the note says no currency is chosen yet. + + Nothing is converted at any rate, and no build-time check is added: the line's currency is known only while the form is open. + + **`@objectstack/spec`.** The describes of `FieldSchema.lookupAutofill` and of the inline grid column key `autofill` state the rule. + + **`@object-ui/fields`.** `planDeclaredLookupAutofill` returns the writes and the withheld values of a pick; `declaredLookupAutofillPatch` and `lookupAutofillPatch` keep returning the writes alone. `LookupField` hands a host that owns the pick (`onSelectRecord`) the referenced object's field map as a second argument. `GridField` takes `columnFields`, the child field behind each currency column, so a `fixed` code or a code on the line decides that column's currency as on the record form. + + **`@object-ui/plugin-form`.** The record form stamps the definitions of a lookup's `lookupAutofill` targets on the lookup's field metadata, each with the name the form shows for it, so the lookup can read each target's currency and names it as the form does. The line-item hosts hand their grid each currency column's child field. + + **`@object-ui/i18n`.** Three new `lookup.autofill*` sentences, in every locale pack. + +### Patch Changes + +- d6d9645: fix(plugin-detail): a long text summary roll-up wraps on the record page, and the summary's read display follows dark mode + + Clause-②: no + Metadata-protocol: none + + A summary (roll-up) field whose value is text read on the record page cut to one line with an ellipsis, the whole value only in a hover tooltip, as a formula did before. The record page's field rows now read a summary through the summary field's own read display, the face the record form draws, so the whole value shows and wraps. A number or money roll-up reads the same text it did. + + That read display used a fixed grey text colour that stayed the same in dark mode. It now uses the theme's foreground colour, so a roll-up reads at full contrast in both themes. + + What does not change: list and grid rows keep the one-line cell with the whole value in its tooltip, and the record page's highlights strip keeps its face. A host that registered its own `summary` face keeps it on the record page. No metadata key, value or default changes. +- 50f85e9: feat(spec): a formula field can return `percent` + + Clause-②: yes (widening) + Metadata-protocol: added + + A ratio formula (budget used, gross margin) can now declare `returnType: 'percent'` and read and display as a `percent` field does, instead of a bare decimal beside the stored percentages. + + - **The value.** A `percent` formula result is read exactly as a `percent` field reads its stored value: a fraction (`0.25` shows `25%`, so the expression divides and does not multiply by 100), unless the formula declares a `max` above 1, then percentage points (`percentScaleOf`). + - **Its places.** `scale` counts the decimal places of the displayed percentage, as on a `percent` field (absent: 0). The engine rounds a fraction result to `scale + 2` places and a whole percentage to `scale`, so `scale: 1` keeps 0.417 (41.7%) instead of rounding it to 0.4. + - **An existing `percent` field computed from its `expression` rounds the same way.** The engine shares one rounding step for computed values, so a stored `percent` field that computes from an `expression` now keeps `scale + 2` places for a fraction (and `scale` for a whole percentage). Before, its computed fraction was rounded to `scale` itself: at `scale: 1`, 0.417 was stored as 0.4 and read 40.0%; it is now stored 0.417 and reads 41.7%. The change applies to the next computed write; rows written earlier are not rewritten. + - **Its face.** `percentDisplay` applies to a `percent` formula too (bar or plain). The formula renderer formats the result with the percent formatter, and the field and object forms offer `percent` as a return type. Editing the expression in the Studio field inspector keeps a declared `percent` (or `currency`) unless the new expression proves text, a boolean or a date. + - **Declared, never inferred.** No CEL type proves a quotient is a percentage, so authoring keeps a declared `percent` where it would otherwise stamp `number`. Readers that switch on `returnType` (display-name eligibility, filter operator and comparand typing) treat `percent` as a number. + + The enum only gains a member: every formula that parsed before parses the same, and nothing stored needs migrating. +- 6f2bd4f: fix(fields): a create form that opens with a lookup value runs that lookup's `lookupAutofill`, and a picker's "+ New" seeds the `dependsOn` parent it filters by + + Clause-②: no + Metadata-protocol: none + + - **Opening value.** A create form can open with a lookup already set: a related list's New links the parent, a URL prefill sets it, or a form view default does. That lookup now fills the targets its `lookupAutofill` declares from that record, the same way a pick does. Example: from an opportunity, Related → Quotes → New opens a quote with Account filled from the opportunity. Only empty targets fill. A value the form opened with is explicit, so `overwrite: true` does not replace it. The fill uses the record the lookup already reads for its label, so no second request is made. The filled values count as opening values: a form nobody has touched closes without the discard prompt. A later pick replaces what the opening fill wrote, as it replaces what an earlier pick wrote. An edit form fills nothing from the stored record. + - **"+ New" in a dependent picker.** When a lookup's picker is filtered by `dependsOn`, its "+ New" now opens the create form with those values already set, under the field name the filter uses (`param`). The new record is then one the picker lists. The one-field inline create, used when no modal host is present, sends the same values. A picker with no `dependsOn` seeds nothing. + - **Hosts.** The form renderer passes a lookup the value it opened with (`openingValue`, create forms only). `onAutofill` now takes `{ opening: true }` for a fill made from that value. The console's `useActionModal` opens an object create form with the `initialValues` the descriptor carries. + + No metadata key is added or changed. +- a9b36ef: fix(fields): the filter-condition builder takes no edit until the object's schema has answered, so a number bound is never saved as text + + Clause-②: no + Metadata-protocol: none + + The criteria builder (the `filter-condition` widget a sharing rule's criteria uses) shows a stored criteria as soon as it opens, but it reads the object's field types from a schema request that answers later. Until that answer arrived, a value box was a plain text box, and a number typed into it was saved as text: `{"amount":{"$gt":"6"}}` instead of `{"amount":{"$gt":6}}`. Once the answer arrived, the box changed to a number box but the text already saved stayed. The server reads such a value as the number it spells, so this changed no rule's matches. It did make the saved document depend on whether the admin typed before or after a network read. + + The builder's controls are now disabled while that request is in flight, and nothing is emitted from them. When the answer arrives they are enabled, and each value box has its column's type. If the request fails, the builder is released with no field types, as before. A host that offers no schema request never holds the builder. The raw-JSON editor is not held. + + No metadata key, value or default changes. A criteria already saved is not rewritten. +- ec24363: fix(fields): the inline line grid draws no blank entry row beside "Add line", and each column header shows its field's help + + Clause-②: no + Metadata-protocol: none + + The inline line grid of a master-detail form always drew an empty line under the lines, directly above the "Add line" button. It had no copy or remove action and was never saved, so users read it as a broken line they could not delete. The grid no longer draws it: a grid with lines shows exactly its lines, and an empty grid says "No items yet — click "Add line" to begin." The keyboard path that line carried stays: "Add line" moves focus into the line it adds, and Enter in the last line adds a line and moves to the same column in it. An empty required grid that the form refused still draws one entry line, so the field's failure stays on the cells a user types into. + + Each column header now shows its field's help as an info icon beside the label. The help appears on hover and on keyboard focus, and it is the icon's accessible name. The text is what the record form shows under the same field: `inlineHelpText`, else `description`, from the child object's definition as the server serves it, so help written by another package's `objectExtensions.fieldPatches` and the reader's language both apply. `GridField` takes the texts as a new `columnHelp` prop, and `columnHelpByField` builds them from a child object's fields. The master-detail form, the line-items panel and the record-body table editor pass them. + + What does not change: what a save sends, the `allowAdd` / `allowDelete` / `maxRows` behaviour, and every metadata key, value and default. A master-detail entry whose relationship and every column type are authored loads no child schema, so its headers show no help, as it has no lookup autofill. +- e01b8be: feat(console): the list page's frame — a 44px page bar, a 40px view bar, a denser grid and per-column totals in the grid's own last row + + Clause-②: no + Metadata-protocol: none + + The object list page is redrawn around two bars and a denser grid (objectstack#35548, the first card of the list-page epic): + + - **Page bar, 44px.** The object's icon in one colour and its name on the left; ⋮ and 「+ 新建」 on the right. The object's description, Import and Favorite moved into ⋮. + - **View bar, 40px.** The view switcher is one trigger on the left, reading the view type's icon, the view name, the record count and a caret (the count beside the name returns, after objectstack#34603 removed it). 「筛选」「排序」「选项」 are text buttons on the right beside the search icon, and open the same panels as before; below `sm` they stay icons. The kanban and every other view type draw the same two bars. An empty condition row under the bar takes no height. + - **Grid.** A 32px header and 33px default rows, 13px on the header, the cells and the bar buttons, faint row lines, no rule after the first column, and the frozen-column shadow only once the grid scrolls sideways. The row ⋮ trigger is 24px so it fits the row. Lookup values read as small chips, money and number columns (a money formula with `returnType: 'currency'` among them) align right with tabular digits, and select labels keep their colour at lower saturation. + - **Totals.** Column summaries are drawn as the table's own last row, each figure under its column (so they line up at any width and are never covered by pinned columns), led by 「计数 N」; the separate footer line and its doubled colon are gone. + + `DataTableSchema` gains one host-only runtime slot, `summaryRow` (`{ lead?, cells }`), which `ObjectGrid` fills; like `rowGroups`, the zod face refuses it by name, so it is not authorable. New locale keys: `list.options`, `grid.summary.countLead`. +- bae933b: fix(record-page): the related tab offers only 「↗」 and 「+ 添加」, and a pick of several is added all or none + + Clause-②: no + Metadata-protocol: none + + The record page's related tab drew a filter box, condition chips, an options menu, an export and its own New, and repeated the row count under the table. It now carries two entries at its right end. 「↗」 opens the child object's list under this record, on an empty list too. 「+ 添加」 is the one add entry, chosen by the relationship when the page authored no `add`: a `lookup` child opens a picker of that object whose first row is New; a `master_detail` child whose rows name a catalog record (one other required lookup) opens a picker of that catalog; one with no catalog opens the new-record form directly. The count shows once, in the tab title. + + A pick of several records is one request to the transactional batch route: every row is added or none is, and the list says why when none was. Before, each pick was its own write, and a failure part way left the earlier rows added. A data source without the batch route offers no picker. + + A child with a status and a deadline that the status settles is grouped by status on the tab: open groups first in the order the status lists them, completed groups last, each collapsible. + + The reader's header sort and column widths on the tab are remembered per list in the record page's existing per-user preferences. + + The list page 「↗」 opens names the record it came from: its condition tag reads the record's name, a breadcrumb leads back to it, 「Reset」 puts that condition back after the reader changed the filters, and New opens the record form linked to it. + + A body table's total under a currency column whose currency does not resolve is drawn as its cells are, an amount with no symbol, instead of being left out (objectstack#35710). Rows that name their own currency are still totalled per currency. +- c00be39: feat(fields): in a list grid's cell editor, select, multi-select, tags, date, time and colour open ready to pick + + Clause-②: yes (widening) + Metadata-protocol: none + + The widget contract `FieldWidgetComponentProps` gains two optional host keys, `inCell` (draw the face for a grid cell's editor) and `onCommit` (the user has finished: write the last `onChange` value and close). `FieldEditWidget` forwards both, and `ObjectGrid`'s cell editor passes them. A host that passes neither renders every widget exactly as before. + + In the cell editor of every grid `ObjectGrid` draws: + + - **Single select and status** show their option list at once, with a search box that filters as you type. The arrow keys move through the list, Enter or a click picks, and the pick is saved; the selection stays on the cell. With nothing picked, Enter commits as before and Escape cancels. + - **Multi-select** (and a select declared `multiple`) is the same list with check marks: each pick toggles, and the edit is saved when you move on. + - **Tags** list this record's tags with check marks; unchecking removes one, and text that matches no tag is added from the list's leading "Add" row (Enter). + - **Date and date-time** open their calendar at once while the typed value stays visible and editable in the text box. The calendar offers Today, Tomorrow, Next week (seven days from today) and Clear. On a date, picking a day or a quick pick saves and closes; on a date-time, a day keeps the calendar open for the time, as in forms. + - **Time** opens the browser's time picker when the editor opens. + - **Colour** shows the hex box first (Enter saves, Escape leaves) and a row of swatches plus the browser's colour picker; a swatch saves and closes. + - A value picked this way hands the keyboard focus back to the selected cell, and in a grid that edits on a single click, the click that picked it no longer opens the editor again. + + `@object-ui/i18n` adds the strings these faces show in every locale: `fields.datePicker.nextWeek`, `fields.datePicker.clearPick`, `fields.options.search`, `fields.options.noMatches`, `fields.tags.add`, `fields.color.swatches`, `fields.color.custom`. + + Forms, dialogs and the record page keep their current controls. +- 1c87956: feat(fields): typed values edit flat in their list cell, a record picker opens its list in place, and a rating is set without an editor + + Clause-②: yes (widening) + Metadata-protocol: none + + In the list grid's cell editor (the layer over the cell, `inCell`): + + - Text, email, phone, URL, number, currency and percent are the cell itself: one row tall, square, with no border, fill or shadow of their own, the layer's 2px frame the only line around them (square and flat even under a host theme that rounds and lifts every dialog with `!important`). The box starts as wide as its column and grows to the right with the text, over the next cells, without moving them. Numbers are right-aligned and raw (`34500.5`, not `34,500.50`); a currency shows its code before the amount; a percent shows its points and a `%`, without the slider. The grid's built-in text and number editors take the same flat look. + - A lookup, master-detail or user cell opens its searchable candidate list at once (recently used first, then results); a pick is the whole edit. Under the list, Browse all records opens the full record picker (classic lookups, gated by `dependsOn` like the list), where a single pick ends the edit too, and Clear is offered while the cell holds a value. + - On a select-first grid a rating opens no editor: a digit key sets that many stars (0 clears, capped at the field's scale), a click on a star of the already selected cell sets it, and Backspace or Delete clears it. `GridCellFacts` gains the optional `stars` fact a host sets for this (`ObjectGrid` sets it for `rating` fields). + - The record pickers' local "recently used" ring is kept per signed-in user as well as per object, so two accounts in one browser no longer share it. Rings stored under the old object-only key are not read, so each user's recents start empty once after the upgrade. + + Forms, dialogs and the record page draw these widgets as before. No i18n key is added. +- 5a68b57: fix(fields): the tags field, the lookup search and the people picker search leave an Enter the input method owns to the input method + + Clause-②: no + Metadata-protocol: none + + A user typing Chinese, Japanese or Korean presses Enter (and, in a tags field, the comma) to pick a word from the input method. Those keys also reached the widget: the tags field added the half-typed pinyin as a tag, and the search box of a lookup or of the people picker took the highlighted entry. The arrow keys that move between the input method's candidates also moved the highlighted row. + + The three widgets now ignore a key pressed while a composition is open, and the Enter Safari raises just after the composition ends (keyCode 229). The next Enter, or comma, does what it always did: it adds the tag or takes the highlighted entry. This applies in the record form and in the list grid's editors alike. + + No metadata key, value or default changes, and nothing is added to the package's exports. +- c261a7c: feat(console): a stage confirm names the flows the move would start, in the list cell and on the record page + + Clause-②: yes (widening) — `@object-ui/plugin-detail` adds the exports `useRecordUpdateStarts`, `StageChangeStarts`, `RECORD_UPDATE_STARTS_PATH` and the type `RecordUpdateStartsAsk`; `@object-ui/fields`' `RequiredFieldsDialog` takes an optional `notice`; `@object-ui/i18n` adds the export `activeFlowsBundle` (with the types `FlowsTranslation` and `TranslationResourceReader`, moved from `@object-ui/app-shell`'s internal `utils/flowsBundle`) and two keys to every pack: `detail.stageChangeStartsHeading`, `detail.stageChangeStartsApproval`. `@object-ui/plugin-grid`'s `StateChangeConfirm` gains an optional `ask`. Nothing existing is removed or re-typed. + Metadata-protocol: none + Skills-docs: none — no skill under `skills/**` teaches the console's stage confirms; `content/docs/frontend/plugins/plugin-grid.mdx` names the list in this change. + + When a stage move would start a flow, its confirm now says so (objectstack#35928, ruling record 7073655354): + + - The list cell's state-machine confirm and the record page's stage confirm (the path's press and the header's stage menu) keep their sentence and add, under it, 「保存后将启动以下流程:」 ("Saving this change starts these flows:") and each flow by its label in the reader's language. A flow that starts an approval is marked 「发起审批」 ("starts an approval"). + - Both confirms ask one read, `POST /api/v1/automation/_record-starts`, through one shared hook, so the two surfaces cannot disagree. The server decides which flows start; nothing is judged in the browser. + - A move that starts nothing shows no list, and a read that fails or is refused leaves the confirm exactly as it was. + - A flow label is translated as the flow runner translates it: the app's `flows` translations, read through `activeFlowsBundle`, which now lives in `@object-ui/i18n` so the confirms' packages can read it; the console's flow runner and designer import it from there. +- 32409a9: fix(form): a new detail line on a master-detail create / edit form starts on the child's defaults, does not read red before a save is tried, and a line added and left untouched is skipped with a notice on the form and the record page + + Clause-②: no + Metadata-protocol: none + + On a parent object's create or edit form, a line added to a detail table started blank, so a required column with a default (a status that defaults to "Pending") read red at once although saving would store the default. The record page's edit state already started its new lines on their defaults; the form now does the same. + + **New lines on the form.** A new line starts on the child object's static defaults, the values a create form of the child seeds, whether it is added with Add or with Enter on the last line. A default the server resolves at insert (`NOW()`, a CEL expression) is left to the server. A new line's empty required cell reads red once a save of the form was tried, not the moment the line appears; a stored line is flagged as before. A line added with Add and then applied from the row editor is the user's input and is saved. + + **A line added and left untouched** (maintainer ruling, card comment 7056413638: 「跳过并提示未保存」). A line Add started on its defaults that nobody edited holds only those defaults. It is still not written, and the save now says so: once the save lands, the form and the record page's edit state show "1 blank line was not saved" (or "N blank lines were not saved"), also when the host supplies its own save confirmation. Such a line never reads red, before or after a refused save, since there is nothing in it to fix; once the user edits any of its cells it is input, saved and flagged like any other new line. On an edit form that stays open after saving, the skipped line leaves with the save, as it does on the record page. A line the user typed into and then cleared is blank and is skipped as before, without the notice. The pack key is `form.lineItems.untouchedNotSaved`, in every built-in locale. + + **Seeding context.** The defaults on both the form and the record page's edit state are now read with the session facts a create form uses: a child field defaulted to the acting user starts on that user, and the organization's currency and time zone seed the fields they seed on a create form. With no known user that field starts empty and the server fills it, as before. +- 9a98a46: feat(list,detail): a change that makes other fields required asks for them in place — the kanban drop's fill-in, now shared by the list cell and the record page + + Clause-②: yes (widening) — `@object-ui/fields` exports `collectRequiredWhenPromptFields`, `RequiredFieldsDialog` and their types (moved from `@object-ui/plugin-kanban`, which never exported them) and the new `requiredWhenPromptReads`; nothing removed or renamed + Metadata-protocol: none + + When a value about to be written makes another field's `requiredWhen` true while that field is still empty, the write is held and one dialog asks for the missing values: + + - **Where:** a list cell in the select-first grid every `ListView` draws, the record page's inline Save, and the kanban drop (as before). + - **What it shows:** the record's name, the change that set it off (read-only), and one row per field to fill, with the editors the record form uses. A value typed there that makes one more field required adds that field; Save waits for it. + - **Save** writes the change and the typed values as ONE update. **Cancel** writes nothing: the list cell keeps its value; on the record page the edit session and its draft stay. + - **A refusal of that update stays in the dialog:** under the field it names, as a new row for another field the reader can fill, or at the dialog's foot. + - **Not asked for**, and written and refused as before: a field that already has a value, is hidden or read-only, that the reader may not write, or that has no in-place editor (a file, rich text, a formula). The record drawer's per-field save does not ask either. + + The pre-evaluation is the one the kanban drop already used (`resolveFieldRuleState`, the evaluator the form and the server share, judged as the engine's transition gate), generalised from one key to any set of changed keys. +- 96b66ca: feat(detail): the record header's stage menu asks for the fields a stage needs through the shared fill-in dialog + + Clause-②: no + Metadata-protocol: none + + The stage menu beside the record's name now opens the same dialog the list cell, the record page's inline Save and the kanban drop open (`RequiredFieldsDialog`, with `collectRequiredWhenPromptFields` judging which fields to ask for), and its own copy of the pre-check and field form is gone: + + - **What it shows:** the record's name and the move (「阶段:赢单」, read-only), then the fields the stage makes required while they are still empty. A stage that needs nothing opens the same dialog as the move's confirmation, with Move focused so Enter confirms. + - **Move** writes the stage and the typed values as ONE update; **Cancel** writes nothing. A value typed there that makes one more field required adds that field, and Move waits for it. + - **A refusal stays in the dialog** and the stage does not move: under the field it names, as a new row for another field the reader can fill, or at the foot (someone else changed the record, which is then re-read; a permission or other refusal as the stage line it was before). + - **Now not asked for, and refused as before:** a field with no in-place editor (rich text, a file, a formula). The menu's old form did not ask whether a field has one; the shared pre-check never offers such a field. + + `record:path`'s stage press keeps its plain confirmation. +- 33d0169: feat(ui): the object's colour tile replaces its line icon wherever else the object is named + + Clause-②: yes (widening) — `ConsolePageHeaderProps` gains the optional `iconTile`, and `RecordSearchHit` and `RecordHoverCardObjectDef` the optional `color`; nothing removed or renamed + Metadata-protocol: none + + The tile the navigation already draws for an object (a white glyph on the object's palette colour, gray when it has none) now also names the object in: + + - **List and data pages:** the page bar and the view bar's object name in front of the view switcher; the URL data page's header. + - **The record page and the record drawer:** the record row in front of the record's name. + - **The record page's related lists:** each section's title, with the list's own icon else the related object's, on that object's colour. + - **Search:** the command palette's recent records, record hits and object entries; the search results page (group headings and hit cards); the global search block. + - **Home:** a record row in "Recently accessed". + - **References:** a pointer cell in a grid (`referenceVia`) and the record hover card. + - **Studio:** the data pillar's object list and header, and the interfaces pillar's object entries and header. + + `ConsolePageHeader` takes `iconTile`, an icon that draws its own square, drawn as given in every posture in place of `icon`. `RecordSearchHit.color` carries the object's palette name beside `icon`, and `RecordHoverCardObjectDef` names `color` beside `icon`. `ObjectIconTile`'s glyph keeps its size inside a host row that sizes every nested `svg`. +- 6aacad9: fix(fields, console): condition editors offer a multiple: true field only what its evaluator answers + + Clause-②: no + Metadata-protocol: none + + A `select`, `lookup` or `user` field declared `multiple: true` holds a list, and the condition editors used to treat it as a single value: they offered Equals and Is any of on it. The engine refuses those operators on such a field with 400 `INVALID_FILTER`, a dataset filter answered them with 0, and a flow edge guard written as `record.attendees == 'u1'` is false for every record. Each editor now passes the field's `multiple` to the shared filter builder, which offers such a field Contains, Does not contain, Is empty and Is not empty, the operators a `multiselect` already got: + + - the criteria editor (`@object-ui/fields` `FilterConditionField`, e.g. a sharing rule's criteria); + - the Studio filter editor for a dataset's scope and measure filters and a field's related-list filter. A stored `$eq` or `$in` on such a field now opens in Source instead of as an Equals row; + - the Studio flow edge rows. On a list-valued field they write Contains as CEL list membership, `record.attendees != null && 'u1' in record.attendees`, and Does not contain as `record.attendees == null || !('u1' in record.attendees)`. A guard spelled that way opens as a row again. + + A single-value field of the same types keeps its operators. The Studio field list now carries the declared `multiple`, so the CEL condition builder also words and writes Is empty on such a field as an empty list, as the spec's 「is empty」 table says. No metadata key, value or default changes. +- 8aed508: Clause-②: yes (widening) + Metadata-protocol: none + Skills-docs: none — no skill teaches the input-method key guard (zero hits for `isImeKey` or `isComposing` under `skills/`); the field behaviour a skill describes is unchanged outside a composition + + An Enter that picks a word in a Chinese, Japanese or Korean input method no longer acts in three more field widgets: a line grid's cell no longer moves to the next line or appends one (its arrows no longer move either), the date picker no longer commits the half-typed date, and the record picker's page-jump box no longer jumps and clears itself. Safari's 229 Enter raised just after the composition ends is treated the same way; the next Enter does what it always did. + + `@object-ui/components` now exports `isImeKey(event)`, the one "does the input method own this key?" predicate. The list grid and every `@object-ui/fields` widget that reads its own keys ask it, so the copy `@object-ui/fields` kept is gone. +- 43580a3: fix(fields): the line grid's column-header help no longer becomes part of every cell's announced column name + + Clause-②: yes (widening) + Metadata-protocol: none + + The widening is additive: the new key `fields.grid.columnHelp` in every locale pack `@object-ui/i18n` publishes through `./locales`, in all eleven locales. + + The info button beside a line grid's column header used the column's help text as its accessible name. The button sits inside the header cell, so the help joined the column header's name, and a screen reader that announces a cell's column read the whole help sentence with every cell of that column. The button is now named by a short "Help" word in the reader's language (`fields.grid.columnHelp`), and the help is its description (`aria-describedby`), read when the button is reached. The column header is named by the field label and that one word. The tooltip on hover and keyboard focus is unchanged, on the editable grid and on the read-only table. + + No metadata key is added or changed. +- dc10b3b: fix(grid): in a list cell a single click only selects, and the email and phone cells draw no copy button + + Clause-②: no + Metadata-protocol: none + + On a grid with the select-first cell model (the console's list page), a plain click on a link a cell draws used to follow it: an email opened the mail program, a phone number the dialler, a URL a new tab, a lookup or user chip that record's page, and an image thumbnail its lightbox. The cell was not selected, so a reader who meant to select or edit the cell left the list instead. The email and phone cells also drew a copy button beside the value, easy to hit while selecting. + + A plain click on any of these now selects the cell and opens nothing. To open one: Ctrl/Cmd-click it (as before), press the open button the selected cell shows on hover (only on the selected cell, never on the row hover), or press Ctrl/Cmd+Enter on the selected cell. A cell of several chips opens the first one that way. A double-click on the link edits the cell, as on any other cell. The name link is the one exception and opens the record on a single click, as before. The copy buttons are not drawn inside such a grid; Ctrl/Cmd+C copies the selected cell. + + Outside the select-first model nothing changes: the record page, related lists, phone cards, kanban cards and every grid whose host does not turn on `cellSelection` keep their links and copy buttons. + + For renderer authors: a link (`a[href]`) inside a select-first cell is now treated as part of the cell's value. Mark the one link a single click must still follow with `data-opens-on-click`, a non-link control that opens what the value points at with `data-cell-opener`, and a copy control the grid should not draw with `data-cell-copy`. +- dca608a: feat(grid): on the list page a lookup chip opens its record in the side drawer, and a lookup cell has an edit button + + Clause-②: yes (widening) + Metadata-protocol: none + + On the console's list page, a single click on a lookup chip (a record of another object, such as a contact's account) now opens that record in the side drawer over the list. This replaces, for lookup chips on that page, the earlier change in this release where a plain click on a lookup chip only selected its cell. The list stays where it was: closing the drawer leaves its scroll position and the selected cell as they were. The drawer's address carries the record and its object (`?recordId=…&recordObject=…`), so a reload keeps it open and Back closes it, as with the name cell's "Open in side panel" icon. A click beside the chips only selects the cell. A cell of several chips opens the chip that was clicked; Ctrl/Cmd+Enter on the selected cell opens the first one in the drawer; Ctrl/Cmd-click still opens the record's page in a new tab. + + A lookup cell now draws an edit (pencil) button while the pointer is over it and while it is selected. It opens the cell's editor, as a double-click or Enter does, and it is not drawn when the cell cannot be edited (no permission, a read-only field, a locked record). It takes the place of the open button a selected cell shows. + + A chip naming a person (an owner, a creator: a lookup to `sys_user`) keeps the behaviour it had: a single click only selects the cell, and it opens from the open button or Ctrl/Cmd+Enter. Email, phone and URL cells and the name column are unchanged. On a phone every record still opens as its page. + + For hosts: `ListView` and `ObjectGrid` take a new runtime prop, `openReferencedRecord(objectName, recordId)`, that opens such a record in the host's place; `GridCellSelection` gains an optional `referenceCells` member (`isReferenceColumn`, `openRecord`), exported with its type `GridReferenceCells` from `@object-ui/components`. A host that passes neither keeps the previous behaviour, where a chip only selects its cell. `ReferencedRecordLink`'s anchor now carries `data-record-object` and `data-record-id`. +- 13d1e95: feat(ui): in a list cell, a picker opens under the cell, Backspace clears, a refused value stays, and Enter stays on the cell + + Clause-②: yes (widening) + Metadata-protocol: none + + `GridCellFacts` (the select-first grid's per-cell host facts, `@object-ui/components`) gains three optional keys: `editor` (`'below'` draws the cell's editor as a panel under the cell, which keeps showing its value; absent or `'cover'`, the editor stays a layer over the cell), `clearRefusal` (why Backspace or Delete leave the cell as it is) and `validate` (why a committed value is refused). A host that sets none of them gets the editor placement and commits it had, with Backspace now clearing (below). + + In every grid `ObjectGrid` draws with the select-first model (the list page): + + - **Pickers open under the cell.** Single and multi select, status, tags, date, date-time, time, colour, lookup and user cells open their list, calendar or palette as a panel under the cell; the cell keeps its value as drawn (a coloured badge stays coloured) and the row height does not change. On a date the typeable box is the top of the panel and the calendar shows beneath it. Typed input, long text and an address still edit in place. + - **Backspace or Delete clears the selected cell and saves at once.** A required field keeps its value and says it is required (a required rating too, for Backspace, Delete and the 0 key); a read-only cell says why, as before; a checkbox cell is left alone. + - **A value that fails the field's rules is not saved.** The rules are the record form's (required, length, range, email and URL shape), and text a number box cannot read is refused too. The editor stays open with what was typed and says why under it (a number box that already says it cannot read its text is not told twice); correct it and commit again, or press Escape to discard. A click elsewhere does nothing while a refused value is open; a refused value whose cell scrolls out of sight is discarded. + - **A person's face no longer makes its row taller.** A user cell drew a 32 px face, which made its list row 41 px tall against 33 px for a row of text; the face is now 24 px and the row stays 33 px, at rest and while the cell is edited. + - **The selected cell's frame stays under the frozen columns** when the cell scrolls beneath them, and a cell deselected with Escape is left with no focus ring. + - **Enter saves and keeps the same cell selected**, with the focus back on it. It used to save and move the selection one row down. Tab and Shift+Tab still save and move right and left. + + `@object-ui/i18n` adds `table.cellNotNumber` and `table.cellInvalid` in every locale. + + Forms, dialogs and the record page keep their current controls. +- 15b7f51: feat(fields): the line-item grid's select and date cells open their panel under the cell, and Esc in a cell puts its line back as it was when the cell was entered + + Clause-②: no + Metadata-protocol: none + + In a form's line-item grid (`GridField`, the master-detail lines): + + - A **select** cell shows its option label; a click, Enter, Space or a typed letter opens a searchable option list under the cell (the letter becomes the search), and a pick writes the value. Esc closes the list and writes nothing. + - A **date** or **date-time** cell keeps the browser's own control, typed into as before, and opens a calendar under the cell when the cell is entered, with Today, Tomorrow, Next week and Clear. A day picked on a date-time keeps its time of day. + - A **text** cell whose text is longer than the column floats right over its neighbours while it has the focus. + - **Esc** in a cell puts the line back as it was when the cell was entered, and no longer reaches a dialog the form is open in, so the dialog and its other lines stay. + - A stored day that does not exist is named at the top of the calendar and in the cell's tooltip instead of a line under the cell, so the row keeps its height. + + Enter still moves to the next line (and adds one on the last line). Nothing a metadata author writes changes. +- c297dff: feat(grid): a markdown, HTML or rich text cell opens a text box in a panel under the cell + + Clause-②: yes (widening) + Metadata-protocol: none + + **The list grid edits the rich-content field types in place** (objectstack#36023). On a select-first grid, selecting a `markdown`, `html` or `richtext` cell and pressing Enter, F2, typing or double-clicking opens the record form's own text box over the stored source in a panel under the cell, at least as wide as the column; the cell keeps showing its value and the row keeps its height. Enter in the panel is a new line; on a select-first grid Ctrl/Cmd+Enter saves and keeps the cell selected, Esc discards, and a click outside saves. Backspace or Delete on the selected cell of a select-first grid clears it as for any other editable cell. On a grid without the select-first cell model (an `ObjectGrid` or `object-grid` mounted without `cellSelection`), one click opens the text box over the cell, not in a panel under it: Enter is a new line, Ctrl/Cmd+Enter does nothing, Esc discards, and a click outside keeps the text as a pending change for the grid's save buttons. Before, these cells opened no editor; on a select-first grid the cell said "This field can't be edited in a list". The related tab on the record page draws the same grid and behaves the same way. + + **Only the grid's cell changes.** The three types stay in `INLINE_EXCLUDED_FIELD_TYPES`, and `hasFieldEditWidget` and `isInlineExcludedFieldType` answer as before, so the record page's field editor, the required-fields dialogs, the kanban and timesheet editors keep them out. `@object-ui/fields` exports `hasInCellPanelEditWidget(type)`, true for the three types, and `FieldEditWidget` draws their editor only when the host asks for the cell face (`inCell`); the editor loads lazily. `html` is edited as text; what the cell then draws goes through the sanitizing HTML renderer, as on every other read surface. +- 1cd4762: Clause-②: yes (widening) + Metadata-protocol: none + + A list cell commit on an object with a `requiredWhen` field the list does not draw no longer reads the record first when the edited column cannot open the fill-in dialog. The pre-read (one `findOne` for the keys the row lacks) is now made only when the column is an operand of an askable field's `requiredWhen`, when such a predicate reads the clock, the acting user or the record as a whole, or when the askable field is also statically `required`. What the user sees is unchanged; commits to other columns save one request sooner. `@object-ui/fields` exports the judgment the grid asks, `requiredWhenPromptAsksOn(objectFields, changedKeys, { fillable })`. +- 9ae874a: fix(fields): a person picked in a list cell shows their name at once, and avatar initials are letters only + + Clause-②: no + Metadata-protocol: none + + A list cell of a `user` field stores the picked person's id, and the save answers the id too, while the cell draws a person from the expanded record a list read brings. So after a pick the cell showed the raw id, marked as an unresolved reference, until the list was read again. The picker now keeps the records a pick hands back in the reference cache the lookup cell already reads (one cache, now in its own module), and the person cell draws a stored id as the person that cache holds for it: the name and face show as soon as the pick commits, while the save is on the wire and after it lands, with no read of the list or of the person. An id nothing on the page holds is still drawn as an unresolved reference, as before. A lookup cell whose column names no display field reads the same entry, so it also shows a picked record's name without reading it again. + + Avatar initials (`getPersonInitials`, the people-field chips, the person picker rows, the comment author avatar) are made of letters only: brackets, punctuation and digits are skipped, so `Alice (Sales)` draws `AS`, never `A(`, and a name with a single letter draws that letter. The person cell and the `avatar` field widget now draw their initials through the same function instead of their own copies, so a single-word name draws its first two letters (`Ada` → `AD`) and a CJK name its given-name characters, as the chips already did. +- 3ae62ac: feat(ui): one 8px corner for every control, a white content area beside a light grey sidebar, and badges at weight 500 + + Clause-②: no + Metadata-protocol: none + + - **Controls share one corner, 8px.** Buttons, inputs, selects, toolbar controls, menus and tab lists are `rounded-md`, which the console theme now sets to 8px (it was 12px, derived from the 14px card corner). What sits inside one of them, a tab trigger in its list or a menu row, is `rounded-sm`, 6px. Cards keep their 14px corner, and dialogs, popovers and drawers keep theirs. + - **Chips follow.** A lookup chip in a list cell (it was 4px), a person or record chip in a form's lookup field and its selection tray, and the list's Sort, Filter and condition chips (they were pills) take the same 8px corner. Coloured option badges stay pills. + - **The content area is white.** The console's `--background` is white instead of the grouped grey, so a list, a record page, a kanban board and the top bar sit on white. The sidebar is the one light grey surface beside it, with its hairline border; in the dark theme the content area is the darkest step and the sidebar one step lighter. + - **Badges are weight 500.** `Badge` was `font-semibold` (600), outside the console's two text weights; it is `font-medium` (500). This is a declared local patch on the Shadcn primitive (`badge-medium-weight` in `ui/scripts/shadcn-local-patches.mjs`), so it survives a registry sync. +- 6c7c6db: feat(ui): the console's pages set text in two sizes, 14 and 12, and two weights, 400 and 500 + + Clause-②: no + Metadata-protocol: none + + - **Two sizes.** Body text, list cells, field values, inputs, menu items, toolbar controls and buttons are 14px (`text-sm`); field labels, column headers, counts, timestamps, hints and chip text are 12px (`text-xs`). The hard-coded 13px is gone from the console's runtime pages, and the 10px, 11px and other odd sizes there are 12px. The in-cell editor is 14px, like the cell it edits. + - **Two weights.** Record names, tabs, buttons, section titles and column headers are 500 (`font-medium`); body text is 400. Weight 600 and 700 stay only on page and dialog titles 18px and larger. `DropdownMenuLabel` is weight 500 through a declared local patch on the Shadcn primitive (`dropdown-menu-label-medium-weight` in `ui/scripts/shadcn-local-patches.mjs`), so it survives a registry sync. + - **Not changed:** Studio and metadata administration internals, the settings pages, developer tools, phone-only layouts, avatar initials, authored markdown and SDUI heading typography, the docs reader's prose size, and the shape of coloured option badges (still pills). + - A list column with no declared width measures its content, so it grows with the 14px text; a column whose width a view or a user set keeps that width and shows about 8% fewer characters before it truncates. +- 3543b51: fix(comments): Reply puts the caret in the reply box, comments show the author's avatar or initials, the mention menu opens at the caret, and a delete says it went through + + Clause-②: yes (widening) + Metadata-protocol: none + + Four small fixes to comments on the record page: + + - **Reply.** Pressing Reply on a comment opened the reply box but left focus on the button, so typing went nowhere (or into the main comment box). The caret now goes into the reply box. On a comment whose replies were collapsed, Reply also expands them first. + - **Author avatar.** A comment by someone without an avatar showed a generic comment icon. Every comment and reply now leads with a 20 px avatar: the author's image, or their initials on the same round disc the people chips draw. + - **Mention menu.** Typing `@` opened the people menu at the top left of the comment box. It now opens under the caret, or above it when the window has no room below. + - **Delete.** Deleting a comment now shows a "Comment deleted" toast (zh: 评论已删除). A refused delete still shows its error, as before. + + Additions, nothing removed or changed in meaning: `@object-ui/plugin-detail` exports `CommentAuthorAvatar` (and its props type), and `ThreadedReplies` takes a new optional `focusReplyOnOpen` prop (default `false`, so a host that always shows the reply box keeps today's focus behaviour). `@object-ui/fields` exports `getPersonInitials`. New locale key `detail.commentDeleted` in all eleven locale packs. +- 0628e08: perf(fields): the line-item grid's body loads on first use, and the console's first load no longer carries it + + Clause-②: yes (widening) + Metadata-protocol: none + + The line-item grid (the `grid` field and the line items of a master-detail form) was the largest field widget in the console's first-load bytes, though only a form with line items draws it. Its body now loads the first time a grid is drawn, or earlier, when a form that draws line items mounts. + + - **The same two components.** `GridField` and `LineItemsField` keep their names and their props. They now render the grid's body once it has loaded; a grid mounted before that shows a small busy placeholder until it arrives. A grid mounted after the body loaded renders it directly, and a grid that showed the placeholder draws the body once it arrives and never remounts it on a later render, so its rows and focused cell stay. + - **One new export, `preloadGridField()`.** It starts loading the body ahead of the first grid. It is safe to call often, its promise settles once the body has loaded, and it never rejects: a failed load is reported by the grid that needs it, through the nearest error boundary. + - **The record forms wait for it.** `MasterDetailForm` and the record page's line-item editor derive a grid's columns from the child object's schema, and now show those columns only once the body has loaded as well, so on a form's first open the grid never shows the placeholder. `LineItemsPanel` starts the load when it mounts. + - **The helpers stay where they were.** `evalArith`, `computeRow`, `lookupAutofillPatch`, `columnHelpByField`, `UNTOUCHED_NEW_ROW`, `isUntouchedNewRow` and the `GridColumn`, `ColumnCurrencies` and `ColumnHelp` types are exported as before and load with the package. + - **The console loads it on demand.** The console's build puts the grid's body in a chunk of its own (`fields-grid`), loaded on demand, so its first load is about 6 KB (gzip) smaller. + - **The liveness ledger points at the helper's new file.** In `@objectstack/spec`, the evidence path for `lookupAutofill` in the field liveness ledger now names `widgets/GridField.ts`, where `lookupAutofillPatch` lives; the verdict does not change. + + A host that renders `GridField` or `LineItemsField` itself and needs the grid in its first render calls `preloadGridField()` earlier and waits for it, as the record forms do. No metadata key, value or default changes. +- a6756a2: feat(console): the record page's field area is one list — one field a row in the side preview, on a phone and in the wide page's pinned left column + + Clause-②: yes (widening) + Metadata-protocol: none + + The synthesized record page's field area (objectstack#36147, ruling on the card 7066516044): + + - **One column at any width.** The drawer (at any width), the split pane, the phone's 「详情」 tab, the wide page's pinned left column and a desktop full page that has other tabs but is not pinned (an opportunity's 详情 tab goes from three columns to one) draw the fields one a row: label left, value right, a hairline between rows. The phone's own grouped-inset face is gone there; it is the same list. A full page whose details are its only face (no other tab, none hidden) keeps laying a group out by width. + - **Group title row.** The title sits left and its chevron at the row's right end, pointing down while the group is folded and up while it is open; the whole row toggles. + - **Referenced records are chips.** A lookup value is drawn as a pill with the referenced object's colour tile (`ObjectSchema.color` / `icon`, objectstack#35985) and the record's whole name, wrapping rather than cut. A click on the chip opens the record; the rest of an editable lookup's row edits it. Everywhere else a reference keeps its link face. + - **Empty fields fold into one row.** Every empty field of every group is folded into the list's one last row (「显示 N 个空字段」), replacing the per-group toggle and the 「N 个空分组」 line on this page. The reader's choice is the per-object record-page preference `showEmptyFields` (objectstack#25883), so it holds for the next record of the object. An authored `hideEmpty` group stays hidden and is not counted. + - **「系统信息」 is the last group,** folded until opened: created by, created on, updated by, updated on (when the record was updated), the owner (when the body does not draw it) and the record ID, one fact a row. On this page it **replaces the one-line meta footer that objectui#12307 introduced**; outside the laid-out record page that line is unchanged. + - **A click edits; no pencil.** A single click on an editable value enters edit (a click on a link, a button or a text selection inside it is not taken); the hover pencil is no longer drawn, and stays in the DOM only as the keyboard's way in (visible on focus). A double click is no longer needed. **A read-only value takes no click any more**: the click-to-copy on read-only rows is removed on this page. For a mouse or a keyboard its copy icon, shown on hover or keyboard focus, stays; a touch screen shows none, and the value is selected by a long press. + - Authored record pages and every other DetailView keep their faces. + + `@object-ui/fields` widens: it exports `ReferenceChipContext` (a boolean React context, default `false`) that switches `LookupCellRenderer`'s reference link to the chip face. + + `@object-ui/i18n` widens: five new keys in every pack, `detail.systemInfo` (系统信息 / System information), `detail.createdTime`, `detail.updatedTime`, `detail.recordNumber` and `detail.clickToEdit`. +- 24366ff: fix(fields): a markdown value that starts with a heading no longer draws at heading size in a list cell + + Clause-②: no + Metadata-protocol: none + + In a grid column (list views and related lists pass `inGridColumn`), the `markdown` cell now draws its value in a cell face: a heading is a bold line at the cell's own text size instead of a heading element, and the body takes the cell's font size and line height. A value such as `# Heading` showed a truncated H1 and grew its row; the row now keeps the height of every other row. The record page and readonly form fields keep the full document face and its heading sizes. Nothing changes in what an author writes, and no export changes. +- f2ef7d8: fix(ui): the kanban card owner, history timeline, user menu and presence stack draw letters-only initials + + Clause-②: yes (widening) + Metadata-protocol: none + + A person whose display name carries punctuation, such as `Alice (Sales)`, now shows `AS` on the kanban card owner's avatar, the history timeline, the user menu and the presence stack, where those four faces drew `A(`. They now use the same rule as the people cell and the avatar widget: initials are made of letters only, a single-word name gives its first two letters (`Admin` → `AD`), a name of three or more words gives its first and last words' first letters (`John Michael Doe` → `JD`), a single CJK word gives its last one or two characters, and a name with no letter gives `?`. The user menu still falls back to the email's first character when there is no name. + + The rule, `getPersonInitials`, is now exported by `@object-ui/types`, the lowest package all of these faces can reach; `@object-ui/fields` re-exports the same function, so its `getPersonInitials` export is unchanged. `@object-ui/auth` now depends on `@object-ui/types`. +- 17dbea4: docs(grid): the rich text cell panel is described for the select-first grid only + + Clause-②: no + Metadata-protocol: none + + The READMEs of `@object-ui/plugin-grid` and `@object-ui/fields` now say that the panel under the cell, with Ctrl/Cmd+Enter and a click outside saving, is the select-first grid's (`cellSelection`). A grid without `cellSelection` opens the text box over the cell, where Ctrl/Cmd+Enter does nothing, Esc discards and a click outside keeps the text as a pending change for the grid's save buttons. Text only; no behaviour changes. +- 4f19091: fix(fields): a lookup pick that keeps an amount says so over a filled field too, a create form's opening fill no longer waits for ever on a parent it cannot read, and a pick that fills a currency code and an amount in it copies both + + Clause-②: no + Metadata-protocol: none + + Three follow-ups to the cross-currency pick rule (a pick copies an amount only into a field in the same currency). Nothing is converted, and no metadata changes. + + - **A pick over a filled amount says why it kept it.** When a pick would replace an amount that already holds a value (a re-pick in a line-item grid, or a declared pair with `overwrite: true`) and the picked amount is in another currency, the earlier value stays and the note now shows there too, ending "Unit Price still holds its earlier value." Before, the note showed only over an empty field, so the earlier product's price sat under the new product with nothing said. The note goes away once somebody edits the field. + - **The opening fill of a create form no longer waits for ever.** A form opened with a lookup already holding a record (a related list's New, a URL prefill) fills its declared targets from it. When an amount there follows the currency of a parent the record names, the fill waited for that parent's read and never ran if the read failed, the data source cannot read single records (`findOne`), or the form names no parent object. Now the wait ends when the read answers, fails or cannot run: the other targets (a description) fill, and the amount is left empty with the note "the currency here could not be read". + - **A pick that fills a code field and its amount together copies both.** An amount that follows the record's own code field (`currencyMode: 'record'`) is now judged against the line or record with the same pick's write to that code field applied, in the line-item grid and in the record form. Picking a product that carries `currency_code: EUR` and a price in it onto a fresh line now fills the code and the price, where the price was withheld with a "no currency is chosen" note beside the code the same pick had just written. + + Also in `@object-ui/fields`: new exports `declaredPickWrites`, `judgePickWrites`, `withheldStillStands` and the type `PickWrite`; `AmountCurrency` gains the kind `unread`, `WithheldAutofill` the reason `targetCurrencyUnread` and the optional `held` (the value a target kept); `amountCurrencyOf` takes an optional third argument, the pick's own writes; `AutofillCurrencyContext.targetCurrency` is handed them as an optional second argument. In `@object-ui/i18n`: two new `lookup.*` sentences, `autofillCurrencyUnread` and `autofillKept`, in every locale pack. In `@object-ui/plugin-form`: the record-form stamp's documentation lists the hosts the rule reaches; no behaviour changes there. +- 9c283a1: feat(console): preview images, PDF, text and CSV in the page from a record's attachments and from a file field + + Clause-②: yes (widening) + Metadata-protocol: none + + A file opens in a dialog in the page instead of leaving it. In a record's attachments, the file's name opens the preview; the download stays in the row's menu. On a file field, a click on the file's link opens the preview; a modified click (new tab, new window) still opens the link as before. + + - **Four views, no new dependency.** Images (PNG, JPEG, GIF, WebP) draw in an image element, and an SVG only ever through an image element, never inlined. A PDF draws in the browser's own viewer in a frame; on a phone it opens in a new tab, which hands it to the system viewer. Plain text draws as text. A CSV draws as a table, read with the same GBK-aware decoder the grid's import wizard uses. + - **Download only.** Word, Excel, PowerPoint, HTML and every other type show "This file type cannot be previewed. Please download it." with a download button. An HTML file is never framed and never drawn as markup. + - **Limits.** Images and PDF up to 20 MB; text and CSV up to 2 MB, showing their first 1000 rows or lines. Past a limit the dialog shows "This file is too large to preview. Please download it." with a download button. + - **Controls.** Previous and next (and the arrow keys) walk a record's attachments; download; open in a new tab. + - **Same door as the download.** The preview reads the same signed link through the same permission check as the download, so a reader the download refuses sees the same refusal in the preview. When the browser cannot read a text or CSV file from the page (a bucket on another origin without the CORS rule the preview needs), the dialog offers the new tab instead. + + New exports from `@object-ui/fields`: `FilePreviewDialog` and its types `FilePreviewDialogProps` and `FilePreviewItem`; `decodeSpreadsheetText` and `parseDelimited`, the delimited-text reader that moved down from `@object-ui/plugin-grid` (which now imports them from `@object-ui/fields`; its own behaviour is unchanged). + + New `@object-ui/i18n` keys in every pack, under `fields.filePreview`: `title`, `previous`, `next`, `download`, `openInNewTab`, `loading`, `tooLarge`, `unsupported`, `denied`, `loadFailed`, `blocked`, `pdfOutside`, `truncatedRows`, `truncatedLines`, `empty`. + + No metadata key, value or default changes. +- 52971ff: fix(fields): a line-item grid whose first load failed loads again on its next mount, with no page reload + + Clause-②: no + Metadata-protocol: none + + The line-item grid's body loads on first use. When that first load failed once (a network blip, a deploy that swapped chunk names) and the host had not preloaded it, the grid showed its error from then on, even after the body was reachable again, until the page was reloaded. `GridField` / `LineItemsField` no longer hold the body in a `React.lazy`, which keeps a failed load for good: each mount that finds the body still loading asks for it once, a failure still reaches the nearest error boundary, and the next mount asks again. The `grid` form-field widget (the registered `field:grid` and `getLazyFieldWidget('grid')`) now resolves to that same face, so it recovers the same way. + + What does not change: a mount after the body has loaded renders it directly, `preloadGridField()` still never rejects, and the props of both names are unchanged. A form drawing a `grid` field shows the grid's own loading placeholder while the body loads. No metadata key, value or default changes. +- 06c3e5a: fix(fields): an html or richtext cell holding a heading keeps the list row one line high + + Clause-②: no + Metadata-protocol: none + + An `html` or `richtext` value that holds a heading drew it as a heading element in a grid cell, at the typography scale's heading size, so the row grew taller than the other rows (45 px against 36 px in Chromium for a stored `<h1>`). In a grid column the cell now draws the value in the same cell face a `markdown` cell uses: every heading level is a bold line at the cell's own text size, and the body takes the cell's font size and line height. What the sanitiser keeps and drops is unchanged. The record page and readonly form fields keep their full-size headings. +- 2da2979: fix(fields): a click in a record form's date box opens the calendar + + Clause-②: no + Metadata-protocol: none + + On a record form, and in the dialogs that reuse the same date and date-time widget, the calendar opened only from the small calendar button at the right of the box; a click in the box itself put a text cursor there and nothing else, and users took the field for broken. A click in the box now opens the same calendar popover. The box keeps the focus, so typing a date still works: the text is read on Enter or when the box loses focus, as before, and Enter also closes the popover. Escape closes it and leaves the focus in the box. Focus that arrives by Tab opens nothing, so tabbing through a form does not pop a calendar at each date field. The calendar button works as before. The box now carries the popover relationship the button carries (`aria-haspopup="dialog"`, `aria-expanded`, `aria-controls`). The grid's in-cell date editor, which already shows the calendar beneath the box, is unchanged, and the value written is unchanged. +- 50bfbb8: fix(fields): a tap anywhere on a lookup picker option selects it, including on a record chip in its preview + + Clause-②: no + Metadata-protocol: none + + A lookup picker's option shows a preview of its other columns under its label. A column that references another record drew a link to that record there (on a record page, its chip), and a tap or a click on it opened that record instead of selecting the option, leaving the edit behind. An email, URL or phone column in the preview did the same with the mail client, the browser or the dialer. + + The preview now draws every column the way the "browse all records" picker table already did: a reference keeps its face, the record page's chip included, without the link, and an email, URL, phone or file column shows its text. A tap or a click anywhere on the option selects it, on a phone and on a desktop. Both picker surfaces now take this rule from the one renderer they share. + + What does not change: the read cells outside the picker (record page fields, list and grid cells) keep their links. No metadata key, value or default changes. +- 3110de5: fix(fields): the line-item grid stores an emptied multi-record lookup cell as `null`, draws a people or lookup column's names with one read, and mutes an empty list in list mode + + Clause-②: no + Metadata-protocol: none + + - **An emptied multi-record lookup cell writes `null`.** Un-picking the last record of a `lookup` column with `multiple: true` wrote an empty list (`[]`) into the line, while an emptied multi-select, tags or people cell writes `null`, the value the field contract stores for a cleared multi-value field. It now writes `null` too, so every emptied multi-value cell in the grid stores the same value and the save's blank-line check reads it as empty. + - **Names are read once per referenced object, not once per line.** Each people cell and lookup cell holding a bare record id read that record on its own to draw its name, so a grid of twenty lines with a people column made twenty reads of `sys_user`, and a lookup column twenty more of its target. The grid now gathers those reads into one read per referenced object (an `$in` on the record ids, up to 50 ids per read), with each id asked for once, in editable, read-only and list mode alike. What each cell draws is unchanged. + - **A stored empty list reads muted in list mode.** A multi-select or tags cell holding `[]` drew the em dash in the normal text colour; it now takes the muted colour, as an empty value already did. + + No metadata key, value or default changes. +- 9f84e5f: fix(fields): a lazily loaded field widget whose chunk failed to load once loads again on its next mount, with no page reload + + Clause-②: no + Metadata-protocol: none + + The date and datetime pickers, the rich-content editor and read face, the filter-condition cell, the image field's crop dialog and every widget reached through `getLazyFieldWidget` or `registerField` were `React.lazy` components. A lazy component keeps its first import outcome, a rejection included, so after one failed chunk load (a deploy that replaced the chunk, a dropped connection) the widget stayed broken until the page was reloaded. They now load through one shared wrapper: loading and loaded behave as before (the host's `Suspense` fallback shows while the chunk loads), a failed load still reaches the nearest error boundary, and the next mount (an error boundary's reset, a reopened form, a revisited page) asks for the chunk again. The mounted widget that saw the failure does not retry by itself, so an unreachable chunk is not requested in a loop. +- 6156fdd: fix(fields): a multi-record lookup column in the line-item grid reads its records, not "undefined", in the read-only table and in list mode + + Clause-②: no + Metadata-protocol: none + + The line-item grid rendered its read-only lookup cell (the read-only table of a read-only record page or print page, and the list form-factor) without the column's `multiple` flag. A multi-record lookup cell's id list was therefore resolved as one id, and the cell printed "undefined". Both read-only sites now pass `multiple` from the column, as the editable cell already did, so the cell shows one badge per related record. Single-record lookup columns are unchanged. +- 115d387: fix(fields): a currency field's symbol no longer covers the first digits of the amount + + Clause-②: no + Metadata-protocol: none + + The edit form's currency input reserved a fixed left inset sized for `$`, and the line-item grid's cell editor did the same. The symbol comes from `Intl` per currency and display locale, so wider symbols (`US$` and `HK$` under zh-CN, `CA$` and `CHF` under en-US) were drawn over the amount: `150000` read as `US$50000`. The input's inset now follows the symbol's rendered width; a `$`-wide symbol keeps exactly the inset it had. +- 47ed85d: fix(fields): a lookup's quick-create and "show all results" stay whole and clickable in a short popover, and its list scrolls inside a dialog + + Clause-②: no + Metadata-protocol: none + + The lookup popover drew its quick-create row and its "show all results" row as the last children of the scrolling option list. The popover is held to the room the browser leaves on the side it opens to, and when that room is shorter than the list the list shrinks, so those two rows were the first thing cut: in a dialog near the bottom of a short window the create row showed only its top edge and could not be clicked. Inside a modal form the list could not be scrolled to it either, because the form dialog's scroll lock cancelled every wheel and touch move on the popover, which is rendered outside the dialog. + + Both rows now sit in a footer pinned under the list, quick-create on the left and "show all results" on the right, and the list is what gives way. The footer shows quick-create only when the field offers it and the user may create the target record, the same rule as before; when there is nothing to create and nothing more to show, no footer is drawn. A search with no match keeps its centred create button. The popover is now modal, its own scroll-lock layer, so its list scrolls by wheel and touch inside a dialog; while it is open the page behind it is hidden from assistive technology and a click outside closes it first, as with the other dropdown menus. The list cell's editor keeps both rows at the end of its list. +- 97e0f93: fix(fields): on a phone a lookup's candidates open in a bottom drawer that scrolls by touch + + Clause-②: no + Metadata-protocol: none + + On a phone a create or edit form fills the screen as a modal dialog, and a lookup's candidate list opened in a small dropdown rendered outside that dialog. The dialog's scroll lock cancelled every touch move on it, so the list could not be scrolled by touch, and with the keyboard up the dropdown flipped above the field and showed only three or four rows. + + Below the phone breakpoint (the width at which the search-first people picker already switches to a sheet) the candidate list now opens in a bottom drawer titled with the field's label: the search box at the top, the candidates scrolling by touch in the middle, and quick-create and "show all results" pinned at the bottom. The drawer follows the on-screen keyboard, and the search box is not focused when it opens, so the keyboard comes up only when the user taps it. Quick-create shows under the same rule as on the desktop: only when the field offers it and the user may create the target record. Picking a candidate fills the field and closes the drawer. The desktop dropdown and the list cell's editor are unchanged. +- 69c3dc4: fix(fields): a dependent lookup filters by its parent's id when the parent arrives populated + + Clause-②: no + Metadata-protocol: none + + A lookup with `dependsOn` naming another lookup now scopes its candidates by that parent's id when the record holds the parent as a populated row, as a record page does. Before, the filter carried the stringified object (`"[object Object]"`), so the picker on a record page — for example a quote's contact, scoped by the quote's account — always answered "No options found". The quick-select list, the full picker, the people picker and the create-new seed all use the same filter, so all four are fixed. A parent held as a bare id is unchanged. +- 62692b7: fix(fields): the people picker's list scrolls by wheel and touch inside a dialog, and in its desktop dialog + + Clause-②: no + Metadata-protocol: none + + A user field's inline people picker could not be scrolled when it was opened inside a dialog form. Two things held it. The dropdown is rendered outside the dialog, so the form dialog's scroll lock cancelled every wheel and touch move over it; the dropdown is now modal, its own scroll-lock layer, as the lookup dropdown already is. Under that, the list area took the full height of its rows instead of the room the dropdown gives it, so the rows past the bottom edge were clipped rather than scrollable, inside a dialog or not; the list now shrinks to that room and scrolls. The same list in the people picker's centred desktop dialog scrolls now too. While the inline dropdown is open, the page behind it is hidden from assistive technology and a click outside closes it first, as with the other dropdown menus. The phone's bottom sheet is unchanged. +- 49c6bf3: fix(fields): an action's lookup param honours the borrowed field's `allowCreate: false`, and a record created in a filtered picker that fails the filters is not selected + + Clause-②: yes (widening) + Metadata-protocol: none + + - **A field-backed lookup param reads the field's `allowCreate`.** A param written `{ field, objectOverride }` already took the field's `lookupFilters`, `lookupColumns`, `lookupPageSize` and `descriptionField`, but not `allowCreate`. As a result, a field declaring `allowCreate: false` still showed "+ New" in an action's picker. `resolveActionParams` now copies it, app-shell's `paramToField` forwards it to the record-header dialog's picker, and the selection toolbar's dialog carries it through `resolvePromotedBulkParams`. Both the desktop popover and the phone drawer honour it. `@object-ui/core`'s `ActionParamDef` gains the optional `allowCreate` member it travels on. An author who writes `allowCreate` on a raw param is warned by name in development, like the other inherited picker keys: the spec's `ActionParamSchema` does not declare it. + - **A quick-created record is selected only if the picker could have offered it.** The create form accepts whatever the user enters, so the new record can fail the field's `lookupFilters`, for example a `draft` where the field asks for `approved`. The picker used to select it anyway, and the save or action that read the field then refused it. The picker now re-reads the new id through its own filter, the field's `lookupFilters` and `dependsOn` scope combined with the id. If the server does not return the record, it is not selected, and the picker reopens with the line `lookup.createdOutsideFilters` ("The record was created, but it does not match this field's filters, so it cannot be chosen here."), in every shipped locale. If the check itself fails, the record is not selected either, and the line `lookup.createdUnchecked` says the record was created but could not be checked, so the user searches for it instead of creating a duplicate. A picker with no filter selects the new record as before, without the extra read. + - **A create notice no longer hides the candidate list.** A create notice (the two lines above, or a failed inline create) now sits above the list instead of replacing it, so the user can pick an existing record straight away. Closing the picker clears it. Before, a failed inline create hid the list and its create entry until the widget was remounted. +- 15d2766: fix(fields): a `lookupAutofill` written by hand on a standalone form node's field is not run + + Clause-②: no (narrowing) + Metadata-protocol: none + + <!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed or renamed, and nothing stored is rewritten: `lookupAutofill` on a form field was never in a declared accept set. What narrows is the runtime behaviour of @object-ui/fields (`readLookupAutofillTargets`, and `LookupField` handed `onAutofill`), whose consumer is code, not metadata an upgrade could rewrite. This body does carry a code-level prescription (the FROM, TO and Fix lines below, written without an arrow), so the gate admits this marker on a detector miss, not on a checked fact: no fact-based category covers a runtime function whose behaviour narrows (`runtime-interface-only` reads exported types, `runtime-export-retired` reads an export that is gone). The vocabulary gap is #37136. --> + + `lookupAutofill` is a fact about the object, and it runs where the object is read: in a record form and in a line-item grid column. A lookup on a standalone `form` node whose field carries `lookupAutofill` written by hand now fills nothing when a record is picked. The lookup itself is still set. Before, such a pick copied values into the other fields without the cross-currency rule, so an amount could be copied into a field in another currency with no note. A development build now warns once, naming the field and saying where the key is honoured. + + Record forms and grid columns behave as before, the cross-currency rule included. The widget recognises a record form by the stamp the record form puts on its lookups (`withLookupAutofillTargets`). That stamp is now written on every lookup that declares pairs, including when no target is a field of the loaded object, and only a stamp the record form issued counts. A `lookupAutofillTargets` key written as data is ignored. + + No metadata key is added or changed. Fix: declare `lookupAutofill` on the object's lookup field and draw the object's form. + + **BREAKING** (`@object-ui/fields`, the `lookup` and `master_detail` widgets): `LookupField` handed an `onAutofill` writer runs its field's `lookupAutofill` pairs only when the record form stamped the field. + + - FROM: a single-value pick, and the opening fill of a create form that opened with the lookup set, filled the declared targets whenever the host handed `onAutofill` (and no `onSelectRecord`) and the field carried `lookupAutofill` pairs. + - TO: it also needs the stamp `withLookupAutofillTargets` issues, which the record form applies to every field it draws. A host that hands `onAutofill` without that stamp, such as a standalone `form` node, sets the lookup and fills nothing, on a pick and on the opening fill alike, and a development build warns once per field. + - Fix: stamp the field through `withLookupAutofillTargets(field, objectFields)` before handing it to the widget, passing the object's field map as the record form does. With no map the stamp names no target, so the pick copies without the cross-currency rule, which is the copy this change stops. Or declare `lookupAutofill` on the object field and draw the object's record form. + + **BREAKING** (`@object-ui/fields`, runtime export): `readLookupAutofillTargets(field)` now answers only for a target map that `withLookupAutofillTargets` issued. + + - FROM: `readLookupAutofillTargets(field)` returned any non-array object found under the field's `lookupAutofillTargets` key. + - TO: it returns only the map `withLookupAutofillTargets` stamped, which is what the record form does. A same-name key written by hand reads `undefined`. `withLookupAutofillTargets` now also stamps a lookup whose pairs name no field of the map it is given, with an empty map. Before, it returned the field unchanged. The map it stamps is frozen, and a field with pairs always comes back as a copy. + - Fix: stamp the field through `withLookupAutofillTargets`, as the record form does. If you need the raw value, read `field.lookupAutofillTargets` directly. +- 706c8c6: fix(plugin-list): a gallery card labels and formats a formula or summary column whose result is a number, an amount or a percentage + + Clause-②: yes + Metadata-protocol: none + + A gallery card, which is also how a phone draws a related list's rows, now gives a `formula` or `summary` column the same treatment as a stored number when its result is a number, an amount or a percentage: the field's label before the value, and the format the related-list table gives the same field. A `returnType: 'currency'` formula reads `Total 12,000.00` on the card, as it does in the table. Before, it read a bare `12,000` beside `Unit price 6,000.00`, so the reader could not tell what the figure was. A summary declaring its `currencyConfig` reads as money in the same way. A formula whose result is text stays unlabeled, as a text field does. + + The card's field builder now hands the cell `returnType` and `currencyConfig`, the two declarations the related-list table's builder already hands it. A plain `currency` field with a fixed `currencyConfig` therefore also shows its own currency on a card instead of the tenant default. + + `@object-ui/fields` exports `resolveFormulaValueType(field, value)`, the rule the formula cell uses to choose how it draws a result. The formula cell now calls it, and so does the card's label decision, so the two cannot disagree. +- b89f1b5: The auto-number field's read display now uses the theme's foreground colour instead of a fixed grey, so it stays readable in dark mode. +- d280de9: docs: stale prose on summary currency, the temporal-comparand door and analytics filters now says what the code does + + Clause-②: no + Metadata-protocol: none + + No accepted value, key or answer moves. Two refusal messages change their words: + + - A `currencyMode: 'dynamic'` summary over a child `currency` field that is neither `dynamic` nor a well-formed `record` / `fixed` (a stored `fixed` field with no `defaultCurrency`, or a `currencyMode` outside the three) is still refused, and the refusal now names what the child lacks: "is a 'currency' field in `fixed` mode with no `defaultCurrency` code (the currency it is fixed to is missing)", or "is a 'currency' field whose `currencyMode` 'X' is none of `dynamic`, `fixed` and `record`". Before, it said only "is a 'currency' field, not a `currency` field in `dynamic` mode". + - The temporal-comparand door's refusal of a comparand no temporal rule reads (`'not-a-date'`, the preset name `'last_30_days'`) now ends "As written it would reach the driver and be compared as text: it may select every row, none or the wrong ones (or raise a database error), an answer indistinguishable from a real one." Before, it said the comparison would "compare false for EVERY row", which was wrong for `$lt` and others that selected every row, for a partial day such as `'2026-06'` that selected a subset, and on PostgreSQL, which raised a database error. Its `having` twin says the same of the groups it would keep, where it said "no group or every group, a 200". + + The upgrade-guide entry `summary-dynamic-currency-rollup-home-amount-judged-as-served` now states the admitted set as both doors enforce it: a `dynamic` summary may roll up any child `currency` field in `dynamic` mode, a stored home amount included. Source comments and published docblocks that said every `{placeholder}` is stepped around by the temporal door now state the per-kind rule: a date macro is stepped around and judged by its year once resolved, a period key and a context token are judged as written, and an unknown or record-context token is left to the resolver. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [a0b4ecf] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [c3fb37a] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [8b550f8] +- Updated dependencies [c809deb] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [c9b3f7a] +- Updated dependencies [8e46424] +- Updated dependencies [8896822] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [dc53d4a] +- Updated dependencies [0739dee] +- Updated dependencies [ad15579] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [eed422e] +- Updated dependencies [2df9691] +- Updated dependencies [bfd6b6b] +- Updated dependencies [55020c3] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [6f2bd4f] +- Updated dependencies [99a0e4f] +- Updated dependencies [9f352e8] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [fd471d3] +- Updated dependencies [1b2cd80] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [7702f09] +- Updated dependencies [05e0eb8] +- Updated dependencies [b863d2b] +- Updated dependencies [c890070] +- Updated dependencies [e75a528] +- Updated dependencies [5bd7257] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [58d00db] +- Updated dependencies [3819afe] +- Updated dependencies [61722e9] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [285ad8d] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [6a35635] +- Updated dependencies [9212119] +- Updated dependencies [cda16d4] +- Updated dependencies [9b3227f] +- Updated dependencies [fe75349] +- Updated dependencies [f4de1de] +- Updated dependencies [dab4712] +- Updated dependencies [141a826] +- Updated dependencies [8145424] +- Updated dependencies [53c9575] +- Updated dependencies [83a79e6] +- Updated dependencies [dda665f] +- Updated dependencies [98b3f87] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [ccded86] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [e01b8be] +- Updated dependencies [238661f] +- Updated dependencies [d96c878] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [72d19c4] +- Updated dependencies [b0c624a] +- Updated dependencies [9b6db73] +- Updated dependencies [1e018d6] +- Updated dependencies [6d86b43] +- Updated dependencies [bae933b] +- Updated dependencies [a3a74f2] +- Updated dependencies [f98f18c] +- Updated dependencies [74d3d83] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [227a16a] +- Updated dependencies [de25d58] +- Updated dependencies [598a34d] +- Updated dependencies [0585797] +- Updated dependencies [811858c] +- Updated dependencies [fac1e7d] +- Updated dependencies [4609c48] +- Updated dependencies [8500ee7] +- Updated dependencies [a6607c7] +- Updated dependencies [c00be39] +- Updated dependencies [1c87956] +- Updated dependencies [5345905] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [f909734] +- Updated dependencies [cedc094] +- Updated dependencies [c9b0a23] +- Updated dependencies [f51578e] +- Updated dependencies [6b360ab] +- Updated dependencies [c7174c3] +- Updated dependencies [78f7160] +- Updated dependencies [bb1c55d] +- Updated dependencies [1d7015a] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [7de1bad] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [dea68e9] +- Updated dependencies [b113178] +- Updated dependencies [138faaa] +- Updated dependencies [411fe24] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [48c732c] +- Updated dependencies [52fb30c] +- Updated dependencies [8807dcb] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [9ed18a5] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [c261a7c] +- Updated dependencies [76cb366] +- Updated dependencies [32409a9] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [9f6f306] +- Updated dependencies [c757e07] +- Updated dependencies [a5a5312] +- Updated dependencies [c1b35c3] +- Updated dependencies [9a98a46] +- Updated dependencies [8c8ff0f] +- Updated dependencies [27e414b] +- Updated dependencies [eb53d63] +- Updated dependencies [dda5e74] +- Updated dependencies [f2a990b] +- Updated dependencies [035a12c] +- Updated dependencies [33d0169] +- Updated dependencies [a23164e] +- Updated dependencies [f3d0a9f] +- Updated dependencies [8aed508] +- Updated dependencies [a60740a] +- Updated dependencies [8c5a81e] +- Updated dependencies [43580a3] +- Updated dependencies [cc05e60] +- Updated dependencies [dc10b3b] +- Updated dependencies [dca608a] +- Updated dependencies [baf2678] +- Updated dependencies [13d1e95] +- Updated dependencies [6db1dc2] +- Updated dependencies [3ae62ac] +- Updated dependencies [6c7c6db] +- Updated dependencies [eebb893] +- Updated dependencies [493ad09] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [3543b51] +- Updated dependencies [4ab2c82] +- Updated dependencies [04f9861] +- Updated dependencies [c30ce97] +- Updated dependencies [e605773] +- Updated dependencies [0628e08] +- Updated dependencies [713545f] +- Updated dependencies [cbd582f] +- Updated dependencies [031325d] +- Updated dependencies [1705ec9] +- Updated dependencies [b7fe94a] +- Updated dependencies [a2dc858] +- Updated dependencies [a6756a2] +- Updated dependencies [b3bcfef] +- Updated dependencies [aad35e6] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [71e02ff] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [5e8e243] +- Updated dependencies [4099ef2] +- Updated dependencies [6a73185] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [740720c] +- Updated dependencies [6e643cc] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [96b7975] +- Updated dependencies [e8b494a] +- Updated dependencies [bbc7e03] +- Updated dependencies [27895d7] +- Updated dependencies [543585d] +- Updated dependencies [7e89bc6] +- Updated dependencies [70194ff] +- Updated dependencies [42e4096] +- Updated dependencies [a10422d] +- Updated dependencies [1a2a8a9] +- Updated dependencies [f2ef7d8] +- Updated dependencies [7a5ae65] +- Updated dependencies [ff60149] +- Updated dependencies [ee651ce] +- Updated dependencies [dad9b55] +- Updated dependencies [d076975] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [8a741ab] +- Updated dependencies [60e79ed] +- Updated dependencies [3cf6a44] +- Updated dependencies [5fecc22] +- Updated dependencies [595844b] +- Updated dependencies [4f19091] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [9c283a1] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [ad50d61] +- Updated dependencies [f26469a] +- Updated dependencies [7501d0c] +- Updated dependencies [4ef1ea9] +- Updated dependencies [41dd132] +- Updated dependencies [45ef94e] +- Updated dependencies [d7411fa] +- Updated dependencies [c6075a7] +- Updated dependencies [cd51dbb] +- Updated dependencies [3f568c1] +- Updated dependencies [573a376] +- Updated dependencies [5c2d5cf] +- Updated dependencies [cbc06ff] +- Updated dependencies [43916f3] +- Updated dependencies [f590f3e] +- Updated dependencies [9fa05c6] +- Updated dependencies [ed0edb1] +- Updated dependencies [a10987a] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [f77d078] +- Updated dependencies [1948c5f] +- Updated dependencies [0e83fe0] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [368deee] +- Updated dependencies [8644ce7] +- Updated dependencies [0d6589d] +- Updated dependencies [c54aa57] +- Updated dependencies [53257a5] +- Updated dependencies [8aecf6d] +- Updated dependencies [e0050ba] +- Updated dependencies [14f4d8f] +- Updated dependencies [8ddadc1] +- Updated dependencies [183ed23] +- Updated dependencies [a03bc4e] +- Updated dependencies [4d4ec16] +- Updated dependencies [d763ee7] +- Updated dependencies [8018e00] +- Updated dependencies [844218f] +- Updated dependencies [8cce05b] +- Updated dependencies [0d727b7] +- Updated dependencies [ff0d1f1] +- Updated dependencies [4f7d6f7] +- Updated dependencies [b848b47] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [0819cab] +- Updated dependencies [c8d4b90] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [49c6bf3] +- Updated dependencies [4f9a3f8] +- Updated dependencies [00dd362] +- Updated dependencies [1cda7ea] +- Updated dependencies [bac4864] +- Updated dependencies [8c29b81] +- Updated dependencies [a68b475] +- Updated dependencies [c75453e] +- Updated dependencies [1e96009] +- Updated dependencies [57445a6] +- Updated dependencies [01967c3] +- Updated dependencies [0212714] +- Updated dependencies [1f3e9f6] +- Updated dependencies [8b1841f] +- Updated dependencies [305fe60] +- Updated dependencies [e91149e] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [c0dd417] +- Updated dependencies [0439a04] +- Updated dependencies [517e415] +- Updated dependencies [f92d271] +- Updated dependencies [6ddb97b] +- Updated dependencies [2af9729] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [6161010] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [3aa008d] +- Updated dependencies [7d3b8d6] +- Updated dependencies [15f8357] +- Updated dependencies [378c955] +- Updated dependencies [56fa31b] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [39e9a82] +- Updated dependencies [9c5fb3e] +- Updated dependencies [abb5449] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @object-ui/i18n@18.7.0 + - @object-ui/types@18.7.0 + - @object-ui/core@18.7.0 + - @objectstack/formula@18.7.0 + - @object-ui/components@18.7.0 + - @object-ui/react@18.7.0 + - @object-ui/mobile@18.7.0 + - @object-ui/permissions@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/ui/packages/fields/package.json b/ui/packages/fields/package.json index 9c4cc3b7e3c..f14ebc06654 100644 --- a/ui/packages/fields/package.json +++ b/ui/packages/fields/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/fields", - "version": "18.6.0", + "version": "18.7.0", "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 4a9560e7d0a..ce25ca61f24 100644 --- a/ui/packages/i18n/CHANGELOG.md +++ b/ui/packages/i18n/CHANGELOG.md @@ -1,5 +1,2304 @@ # @object-ui/i18n +## 18.7.0 + +### Minor Changes + +- 0739dee: fix(objectql)!: a field that is `required` and hidden by its own `visibleWhen` is required only when shown, so one admin setting no longer locks every record outside the condition + + Clause-②: yes (narrowing + widening of the required write contract) — widened: an insert or update whose record a `required` field's own `visibleWhen` cleanly hides no longer needs that field, and an explicit null onto a row already shown and empty is accepted. Narrowed: a write that moves a record INTO the condition while that field is empty is refused; 18.5.0 accepted it. + Metadata-protocol: semantic + + <!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed or renamed, and nothing stored is rewritten: what moved is when the engine enforces required on a field that also declares visibleWhen. The one-line fix for a refused write is in the body: fill the field in the same write that moves the record into the condition. --> + + **BREAKING** for flows, bulk updates, imports and API PATCHes that move existing records into a `required` field's `visibleWhen` condition without filling the field. Such a write is now refused with `required` naming the field (on a bulk update, one such row refuses the batch). Fill the field in the same write. A field with `required` and no `visibleWhen` is unchanged. + + **What changed (ADR-0113 D1 and D5, amended).** A field that declares `required: true` and its own `visibleWhen` used to be enforced on every save. In Studio an administrator can add one in a few clicks, and from then on every record that fails the condition refused every write, even an edit of an unrelated field, naming a field nobody could see. The engine now judges such a field from its visibility on the write: + + - the predicate evaluates cleanly to anything but TRUE on the record (the stored row with the write over it), so FALSE, or `null` such as an unset boolean: the field is not required for that write, so a record outside the condition can be created and edited, and the form's clear-on-hide `null` is accepted; + - the predicate is true: the field is required by the same non-regression rule `requiredWhen` uses, against the prior record, which the engine now reads on update for objects with such a field; + - the predicate cannot be evaluated: it counts as shown, the field stays required exactly as before, and the server logs a warning naming the field and the fault. + + The predicate is evaluated with the acting user bound as `current_user`, so a role-gated field is judged per writer; a system write with no user counts as shown. A `formula` field it reads is computed over the record first, as a read of that record computes it. A formula that faults for a reason a read shares (an empty operand) is judged on the `null` a read serves; a formula whose read value the write path cannot know (it reads through a reference, calls `label()`, calls `can` on a write that picks no permission-gated option and so resolves no permission map, reads `current_user` on a system write with no user, or reads such a formula at any depth) counts as shown; the system-write case is logged as `no-acting-user`, as the direct `current_user` spelling is. Only the field's own `visibleWhen` is read: a field group's `visibleWhen` and form-view predicates are not. + + The refusal for such a field now comes from the rule pass rather than the record walk. A single-fault write gets the same `required` code and sentence; a write with several faults may name fewer of them in one `400`, or answer a dangling reference first, and a `beforeUpdate` hook now runs before the refusal and may fill the field. + + **A formula-driven `visibleWhen` on the form.** The form computes the object's formula fields over the record being edited before it judges the field rules (the form-side recompute in `@object-ui/core`, `@object-ui/components` and `@object-ui/console`), so it shows such a field where the server requires it. A formula the form cannot compute (it reads through a reference, calls `label()` or `can()`, reads `os`, or reads the user when nobody is signed in) leaves the field shown and required, and the server decides on save. + + **`@objectstack/lint`.** Three new warnings at `objectstack validate` and the object save door, on a `required` field with a `visibleWhen`: the predicate reads through a reference field (the server cannot evaluate it, so the field stays required everywhere); the predicate reads a `formula` field (with the counts-as-shown consequence when a formula it reads, at any depth, reads through a reference, calls `label()`, or calls `can`, which a write computes only when it picks a permission-gated option); and `storage.notNull: true` beside the pair (the column still refuses the null on a record outside the condition). + + **`@object-ui/app-shell`.** Studio's field inspector shows the reference-read and formula-read warnings under the Visible-when editor of a required field. + + **`@objectstack/spec`.** The `required` and `visibleWhen` descriptions on `FieldSchema` say how the two combine. +- 61722e9: feat: Change Owner cascade — a relationship declares `transferBehavior: 'cascade'`, and the Change Owner dialog offers it as a tick + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: follow-up #36713 + + A Change Owner can now move related records along with the record, relationship by relationship. + + - **The declaration.** A `lookup` or `master_detail` field takes `transferBehavior: 'none' | 'cascade'`, beside `deleteBehavior` (omitted means `'none'`). `'cascade'` on the child's reference field to a parent says: when the parent's owner changes, the child records that point at it and are owned by the parent's previous owner may move to the new owner too. No other child records move; there is no filter key. + - **Refused where it could never act.** The key is refused on any other field type, `'cascade'` is refused on a reference to a `sys_` object and on a multi-value reference (`multiple: true`), and `'cascade'` is refused on a field of an object that does not offer Change Owner itself: one that is not structurally eligible (no reassignable owner), a `controlled_by_parent` detail (its access already follows its master), or one whose `userActions.transfer` is off. Each refusal names the field and the fix. + - **The request.** `POST /api/v1/data/:object/:id/change-owner` and `POST /api/v1/data/:object/change-owner` take an optional `cascade: [{ object, field }]` naming the relationships to move along (`data.changeOwner` / `data.changeOwnerMany` in `@objectstack/client`). A relationship that does not declare `'cascade'`, or whose child does not offer Change Owner, is refused `400 VALIDATION_ERROR` before anything is written; so is a cascade with a queue target. Each cascaded record is updated as the caller, so it needs the caller's own transfer grant on the child object. Each relationship's outcome in the answer's `cascade[]` lists every record the caller's write refused, with its id, code and sentence: a related record whose `owner_id` is locked on it (read-only, or under a `readonlyWhen` that holds) is refused `FIELD_NOT_ACCESSIBLE` and keeps its owner, as the record itself would be, while the record's own move stands. One call moves at most 500 related records; the records past that limit are counted in `remaining`, still with the previous owner, not listed. When a relationship's records could not be read, its outcome carries `readFailure` and none of them moved. + - **The candidates.** `GET /api/v1/data/:object/change-owner/cascades` (`data.changeOwnerCascades`) lists the relationships declared to an object whose child offers Change Owner. A child whose declared API exposure does not serve `update` is left out, and so is a child of a disabled package. + - **The Studio.** The field form and the object form's field rows offer `transferBehavior` beside `deleteBehavior`, on `lookup` and `master_detail` fields; the row's label and help text ship in the metadata-forms locale packs of `@objectstack/platform-objects`. + - **The dialog.** For a person target, the Change Owner dialog lists those relationships on which the explain engine allows the caller the `transfer` operation, one tick each, sends the ticked ones, and draws each relationship's outcome, every record it did not move included. + + A plain `owner_id` update is unchanged: the declaration is read only by the Change Owner action. +- e6fa510: feat(approvals): an escalation deadline can count working time on an organization's working calendar (`escalation.clock: 'working_time'`) + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: follow-up owed — skills/objectstack-automation/references/state-machines-and-approvals.md + + An approval node's `escalation` gains two optional keys (ADR-0157 D5): + + - **`clock`**: `'wall_clock'` (the default) or `'working_time'`. Under `wall_clock` nothing changes: `timeoutHours` counts elapsed hours from `created_at`, nights, weekends and holidays included, and every request already open keeps its deadline (a stored snapshot carries no `clock`). Under `working_time` the hours count only the working periods of a working calendar (`sys_work_calendar`), skipping its holidays and counting its make-up workdays: a request opened at 17:00 on a Friday with `timeoutHours: 4`, on 09:00-12:00 and 13:00-18:00 periods, escalates at 12:00 on the next working day. + - **`calendar`**: the code of the working calendar to count on. Left out, the request organization's default calendar counts. There is never a fallback to wall-clock hours. + + The approvals sweep and the request read share one deadline function. A `working_time` deadline is counted again on every sweep and every read and is never stored, so a holiday entered after a request opened moves its deadline; an escalation that already fired stays fired (single-shot, ADR-0042). When the calendar cannot count the deadline (no calendar has the code, the organization has no default, or the calendar is not maintained as far as the deadline needs), the request does not escalate, the next sweep tries again, and the request read carries a new additive field, `sla_due_refusal` (`code`, `reason` or `date`, `message`), in place of `sla_due_at`. The approvals inbox shows "Calendar can't compute" with the reason where the SLA countdown sits, in every console language. + + `@objectstack/lint` refuses a `calendar` written beside the wall clock (`approval-escalation-calendar-without-working-time`, error): nothing would read it. Whether the named calendar exists is the organization's runtime data and is never checked at publish. The Studio approval inspector offers the clock and, under working time only, the calendar. + + Not released alone: this ships in the same release as the working-calendar objects and service and the working-day formula functions (ADR-0157 D4). +- bfd1049: fix(core, console): a banned user's hand-over follows each object's Change Owner switch, and the ban dialog says why a record stays + + Clause-②: no + Metadata-protocol: semantic + + An object's Change Owner switch (`userActions.transfer`) now also decides whether the offboarding hand-over (`POST /api/v1/security/users/USER_ID/assigned-work/transfer`) moves the object's `owner_id`, and how the count (`GET /api/v1/security/users/USER_ID/assigned-work`) reports it. The hand-over reads the same resolution the Change Owner action refuses by (`resolveUserActionTransfer`), so the two never disagree: + + - An object that turns the switch off keeps its records' owners where they are. Before, the hand-over moved them. + - A `controlled_by_parent` detail that leaves the switch out keeps its owner (the default is off there), as before. A detail that sets `userActions.transfer: true` now has its owner handed over like any other object. Before, every detail's owner was skipped. + - The object's own user fields (an approver, an assignee) are handed over whatever the switch says. + + A kept owner is still counted. Before, a detail's owner was left out of the count; now its row answers `transferable: false` with `reason: 'transfer_off'`. A multi-valued user field answers `reason: 'multi_valued'`. `reason` is a new optional member of each `objects[]` row in `security.assignedWork.count`'s answer (`UserAssignedWorkSummary` in `@objectstack/client`, `UserAssignedWorkHoldReason` in `@objectstack/core`). It is present exactly when `transferable` is false. + + The ban dialog words each kept row by its reason. A kept owner reads "Not handed over: this object keeps the owner of each record (Change Owner is off for it)." (zh: 不会交接:该对象的记录负责人保持不变(该对象已关闭“更改负责人”)。). A multi-valued row keeps its own sentence ("Lists several people, so it cannot be handed over here."), and a kept owner never shows it. The new `console.assignedWork.ownerKept` key is in all eleven UI locales. + + To keep the old hand-over of an object you switched off, set `userActions.transfer` back on for it. Before this change the switch gated only the Change Owner action; it now gates that action and the hand-over, and nothing else: a plain `owner_id` write (an import, a hook, a `PATCH`) still needs only the transfer grant. +- 8df7bf2: feat(spec): an object's `relatedLists` is its record page's tab list — only the listed related lists show, in order, the attachments, approvals and activity-stream tabs are placed by object name, and an entry can carry its list's title and columns + + Clause-②: yes (widening) + Metadata-protocol: semantic + + A record page's tabs are now declared on the parent object, in one place: + + ```ts + relatedLists: [ + { list: 'quote_line', label: 'Line items', columns: ['product', 'quantity', 'unit_price', 'amount'] }, + 'task', + 'sys_attachment', + 'sys_approval_request', + 'sys_activity', + ], + ``` + + - **No `relatedLists` (or an empty one): nothing changes.** Every related list shows, in the derived order, then attachments, approvals and the activity stream. + - **A declared `relatedLists` now decides which tabs show**, not only their order. A related list no entry names shows no tab; before, it still followed the listed ones. Removing an entry removes its tab. Body tables a field group places in the overview (`fieldGroups[].relatedList`) stay at their group, and the tab such a `master_detail` table also keeps on an undeclared page shows only when an entry names it, and `relatedList: false` on the child's FK still hides a list. + - **This narrows the #35889 note** ("Its tab stays on the tab row too, with its count"): the tab of a `master_detail` child that a field group places in the overview stays only while the parent declares no `relatedLists`; once it declares one, that tab shows only if an entry names the child. + - **The three built-in tabs by object name**: `'sys_attachment'` (attachments; shown only when listed, and still only when the object enables files), `'sys_approval_request'` (approvals; still only on a record with requests, and when unlisted it follows the listed tabs), `'sys_activity'` (the one activity stream; when unlisted it closes the strip). A built-in is written only as its bare name: `{ list: 'sys_attachment', … }` is refused at parse. `'sys_comment'` and `'sys_audit_log'` are parts of the stream, not tabs: `os validate` warns (`related-list-stream-part`) and prescribes `'sys_activity'`. `'sys_attachment'` on an object without files warns (`related-list-attachments-off`). + - **An entry's own title and columns**: `{ list, label?, columns? }` wins over the child FK's `relatedListTitle` / `relatedListColumns`, which keep working unchanged. The columns are child field names, used wherever the list is drawn (its tab, and the body table a field group places); a dotted column (`account.industry`) walks the child's relationships, as `relatedListColumns` does, and a name that resolves to no field of the child is refused (`related-list-column-unknown`) by `os validate`, `os build` and the metadata write door. + + - **The generic object form** (metadata admin) edits `relatedLists` with its own chip input: a bare name and an object entry both show and both survive add and remove (the entry's title and columns beside its name; they are edited in Studio). Its help text states the tab-list meaning in every translated locale. + - **Studio** (object settings, Record page tabs): the editor lists the entries in order, the built-in tabs among them, and offers the built-ins not yet listed (attachments only when the object enables files). A relationship row's edit sets its own title and columns, and clearing both writes the bare name again. The relationships not listed are shown below as having no tab. A move, a removal or an add keeps every entry's object form and every built-in name. + + What to check in an app: an object that already declares `relatedLists` and leaves some related lists out now shows only the listed ones, and shows no attachments tab unless `'sys_attachment'` is listed. List every tab the page should keep, or remove `relatedLists` to show them all. A child list another package adds is hidden too until the parent names it, which a build accepts only when that package is in the parent's stack; letting a package place its own list is a later change. ADR-0087 semantic entry `related-lists-declared-is-tab-list`. +- d33bf5a: feat(spec): an object extension says where the fields, groups and child lists it brings go (`place`), and a child list another package brings is no longer hidden by the parent's `relatedLists` + + Clause-②: yes (widening) + Metadata-protocol: semantic + + An `objectExtensions` entry can now place what it brings on the object it extends: + + ```ts + objectExtensions: [{ + extend: 'account', + fields: { tax_id: { type: 'text', label: 'Tax ID' } }, + place: [ + { field: 'tax_id', group: 'basic', after: 'industry' }, + { group: { key: 'tax', label: 'Tax' }, after: 'basic' }, + { list: 'contract', after: 'opportunity', label: 'Contracts', columns: ['name', 'amount'] }, + ], + }], + ``` + + - **No `place`: nothing moves.** Fields still arrive after the object's own, and an extension that writes no `place` serves exactly what it served before. + - **One merge, every reader.** The registry fold applies the placements once, after every contributor's fields are merged, so the record page, the forms and Studio show one arrangement. Uninstalling or disabling the package takes its items off and leaves the object's own order as it was. + - **Placement arranges what the parent declares.** A list placement applies when the extended object declares `relatedLists`; a group or field placement when it declares `fieldGroups`. On a parent that declares neither, its automatic arrangement stays and nothing is dropped: the list shows in the automatic tab order, and its entry's `label` / `columns` are not applied either (write `relatedListTitle` / `relatedListColumns` on your child object's lookup field to title it on every parent); the field shows among the fields, its `after` / `before` not applied. The boot log names each placement that did not apply, with the object and the package. It is the main channel: `os validate` names it too (`extension-placement-not-applied`, warning) only when the extended object is in the same stack. + - **Anchors and order.** `after` or `before`, not both; neither means the end. An anchor may be an item another placement brings, whatever order the two are written or registered in. An anchor nobody has puts the item at the end of its group, of the groups, or of the tabs (before a trailing approvals / activity-stream run), and `os validate` warns (`extension-placement-anchor-missing`). A list placement's `columns` are fields of the child, checked by `os validate` as a `relatedLists` entry's are (`related-list-column-unknown`). Several packages at one anchor follow ascending `priority`, then package name, so every build gives the same order. When the object itself already names the list or lists the field, its own position wins. + - **An extension places only its own items.** A field outside its own `fields`, a field the extended object declares (also one the extension redeclares to relabel it), a group key the extended object already declares, or a list (placed as a tab or by a group's `relatedList`) that is not a child object of its package pointing at the extended object is refused at parse or at `defineStack`, and skipped by the merge with a warning naming whose item it is, whichever door registered the extension. The extension keys `fieldGroups` and `relatedLists` are refused with a prescription naming `place`. + - **Shipped behaviour change (flips #35897's hiding):** a child list another package brings is no longer hidden by the parent's declared `relatedLists`. Placed, it sits where its package puts it; unplaced, it shows at the end of the tabs. "Another package" means the child and the parent both belong to a package and the two differ; a child of the parent's own package, or one no package owns, is still hidden until an entry names it. This narrows the #35897 note "A child list another package adds is hidden too until the parent names it … letting a package place its own list is a later change": that change is this one. + - **Studio** (object settings, Record page tabs) shows such a list read-only among the unlisted rows with a "from <package>" badge, and the preview draws it where the record page does. + + What to check in an app: on an object that declares `relatedLists`, every installed package's child lists of it now show, at the end of the tabs unless placed; name one in the parent's `relatedLists` to put it elsewhere, or set `relatedList: false` on that package's FK to hide it. Nothing in HotCRM changes meaning today: no module writes `place`, and no object declares `relatedLists`. Most HotCRM objects already declare `fieldGroups`, so a field or group placement there applies as soon as a module writes one; a list placement waits until the parent declares its `relatedLists` (follow-up #35902). ADR-0087 semantic entry `object-extension-place-and-cross-package-lists`; ADR-0146 D10 and ADR-0085 notes. +- f2a990b: feat(spec): every step a flow drawing shows can be translated, under `flows.<flow>.nodes.<node_id>.label` + + Clause-②: yes (widening: a new translation key `flows.<flow>.nodes.<node_id>.label`; the new exports `FLOW_TECHNICAL_NODE_TYPES` and `isFlowTechnicalNodeType` from `@objectstack/spec/automation`; and `@object-ui/i18n`'s exported `FlowLabelTranslations` type gains the member `screenTitle`, and its `stepLabel` parameter accepts a `config`) + Metadata-protocol: added + Skills-docs: follow-up #36401 + + A package can now translate the label of any flow step, not only a screen's heading and an approval step's label. A manual that embeds a flow (a `type: flow` metadata embed) lists its steps by label, and until now a start, decision, notify or end step had nowhere to put a translation, so a zh-CN reader saw those steps in English beside translated approval steps. + + - **The key.** `flows.<flow>.nodes.<node_id>.label`, keyed by the node's `id`, at any depth. It overlays the node's own `label` and is plain text. A `screen` keeps its `screens.<node_id>.title` and an `approval` its `approvals.<node_id>.label`, so one string keeps one key: `objectstack validate` points a `nodes` key over either at that key, and points a `screens` or `approvals` key over any other node at `nodes.<node_id>.label`. A key over a node the flow does not declare is refused. `nodes` was an unknown-key hint that suggested `screens`; it is now its own group. + - **Start and end steps are translated like any other.** Their labels are the author's words and often name an outcome or a trigger ("Approved", "On Task Created"), so nothing substitutes words of its own for them. + - **Missing translations are reported.** `os lint` and `os i18n check` (`i18n/missing-flow`) now ask for the label of every top-level step the embed draws at its default `detail: business` altitude, except screens and approvals, which they already asked for, and of a folded technical step where a drawn decision's branch list names it as the step the branch leads to (a decision whose branch runs a `script` first). `os i18n extract` scaffolds the keys. An app that ships translated locales gets new findings for its flows until it translates them. + - **The drawings read it.** The docs viewer's `type: flow` embed (`element:metadata_viewer`) and the Studio flow designer's canvas, nested region nodes included, now name each step by its translation in the reader's language, through the one resolution in `@object-ui/i18n`: `stepLabel` reads `approvals.<node_id>.label` for an approval, `screens.<node_id>.title` for a screen with no `config.title`, and `nodes.<node_id>.label` for any other node. A step the package leaves untranslated keeps its authored label. A decision's branch list names the step a branch leads to the same way. + - **A titled screen is named by its heading in the docs embed.** A screen that authors its own `config.title` shows that heading at run time, translated under `screens.<node_id>.title`, so the embed names it by the heading (translated where the bundle carries it) instead of its canvas label, which has no key. A heading with a `{{ }}` hole cannot be filled in a drawing, so such a screen keeps its authored label. `FlowLabelTranslations` gains `screenTitle` for this read. The Studio canvas keeps a titled screen's authored label. + - **One table for what business altitude hides.** `FLOW_TECHNICAL_NODE_TYPES` (and `isFlowTechnicalNodeType`) in `@objectstack/spec/automation` lists the node types `detail: business` folds away (`script`, `http`, `connector_action`, `assignment`, `get_record`, `create_record`, `update_record`, `delete_record`, `boundary_event`). The docs viewer folds steps by it and the coverage check asks for translations by it, so they agree on which steps a reader sees. +- a23164e: feat(spec, ui): an object takes a colour from a fixed palette, and its icon is drawn as a white glyph on a square of that colour + + Clause-②: yes (widening) + Metadata-protocol: added + + - **`ObjectSchema.color` (new, optional).** One name from a closed palette of nine: `gray`, `blue`, `teal`, `green`, `amber`, `orange`, `red`, `pink`, `purple` (exported as `OBJECT_COLORS` and the `ObjectColor` type from `@objectstack/spec/data`). No free colour values: `color: '#ff0000'` is refused, and the refusal lists the nine names. An object without a `color` is drawn in the neutral `gray`. Nothing to migrate: every existing object stays valid and simply has no colour. + - **The AI blueprint carries it too.** `BlueprintObjectSchema.color` is the same leaf (required-but-nullable on `SolutionBlueprintStrictSchema`, like `icon`), and its rule asks the model to colour every object and give each object of one solution a different colour while the palette lasts. A producer of the STRICT shape must now send `color` on each object, `null` when it has none; the lenient shape a stored blueprint is read with keeps it optional. + - **`ObjectIconTile` (new, `@object-ui/components`).** Draws an icon name as a white glyph on a rounded square of a palette colour, in four sizes. Each name has a light-theme and a dark-theme value chosen so the white glyph keeps at least 3:1 contrast. `OBJECT_COLOR_TILE_CLASS` and `objectColorOrDefault` are exported with it. + - **Navigation draws objects as tiles.** In the sidebar, the app-home menu and the phone menu, every entry that opens an object is drawn as that object's tile: the entry's own `icon` when it names one, else the object's, on the object's colour. Dashboards, pages and links keep their line icons. `NavigationRenderer` takes a new `resolveTargetColor` resolver (`NavTargetColorResolver`) beside `resolveTargetIcon`; the console answers it from the object metadata it already holds (`useNavTargetColor`). A host that passes no `resolveTargetColor` gets its object entries as gray tiles where it had line icons. + - **The designer picks icon and colour together.** In the object's settings, the icon picker shows the nine colour swatches, and the trigger and every icon in the grid are previewed as the tile they become. The picker elsewhere (pages, apps, navigation entries) is unchanged: only objects carry a colour. + - The other places that draw an object's icon (list and record headers, search, related-record chips, the designer's object lists) switch to the tile in a follow-up release. + + `@objectstack/metadata-core`: the field-level-security reference table classifies the new `color` key as `keep` (a palette name names no field). + + `@objectstack/platform-objects`: the generic object form's metadata-form packs ship the new `color` row's label and help text in all 10 locales. +- 8da2b7e: fix(fields): a lookup pick no longer copies an amount into a field in another currency; the field stays empty and the form says why + + Clause-②: yes (narrowing) — a cross-currency price copy that happens today stops and the line is left empty with a stated reason (ruled B); widened: three new `@object-ui/i18n` `lookup.autofill*` keys in every locale pack, new `@object-ui/fields` exports from `lookupAutofill.ts` (`planDeclaredLookupAutofill`, `crossCurrencyRefusal`, `amountCurrencyOf`, `pickedAmountCurrencyOf`, `withheldAutofillMessage`, `withLookupAutofillTargets`, `readLookupAutofillTargets`, `LOOKUP_AUTOFILL_TARGETS_KEY` and their types), an optional second argument on `onSelectRecord`, an optional trailing `currency` parameter on `declaredLookupAutofillPatch` and `lookupAutofillPatch`, and the optional `columnFields` prop on `GridField` + Metadata-protocol: semantic + + <!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed or renamed, and nothing stored is rewritten: what moved is what a pick copies in the browser. The fix for an author is in the body: the price on a line in another currency is entered by hand. --> + + **BREAKING** for forms and line-item grids that relied on a pick copying an amount across currencies. On a EUR invoice, picking a product whose price is in the home currency used to copy the number as euros (a $100 product became a €100 line). Nothing converted it. Now the price is not copied: the cell or field stays empty, and a note under the line (in a grid) or under the lookup (in a form) names the picked amount with its currency and the currency of the field, so the price can be entered by hand. The other fields of the same pick (a description) still fill. + + **The rule.** It applies to the grid's same-named copy (the column key `autofill`), to the grid's declared `lookupAutofill` pairs, and to the record form's declared pairs, on a pick and on a create form's opening fill: + + - an amount is a `currency` field or a `formula` returning `currency`; a `number` carries no currency and copies as before; + - both sides in the home currency (neither declares one) copy as before, also when no home currency is configured; + - otherwise the value copies only when both sides name the same known code: a `fixed` code, the code the record holds, or the code its `master_detail` parent holds (ADR-0144 D2 as amended), with the home currency counting as its configured code; + - a field that follows a record's currency while that record holds none yet is not filled, and the note says no currency is chosen yet. + + Nothing is converted at any rate, and no build-time check is added: the line's currency is known only while the form is open. + + **`@objectstack/spec`.** The describes of `FieldSchema.lookupAutofill` and of the inline grid column key `autofill` state the rule. + + **`@object-ui/fields`.** `planDeclaredLookupAutofill` returns the writes and the withheld values of a pick; `declaredLookupAutofillPatch` and `lookupAutofillPatch` keep returning the writes alone. `LookupField` hands a host that owns the pick (`onSelectRecord`) the referenced object's field map as a second argument. `GridField` takes `columnFields`, the child field behind each currency column, so a `fixed` code or a code on the line decides that column's currency as on the record form. + + **`@object-ui/plugin-form`.** The record form stamps the definitions of a lookup's `lookupAutofill` targets on the lookup's field metadata, each with the name the form shows for it, so the lookup can read each target's currency and names it as the form does. The line-item hosts hand their grid each currency column's child field. + + **`@object-ui/i18n`.** Three new `lookup.autofill*` sentences, in every locale pack. +- 73f2cf4: feat(kanban): the board's own 视图设置, a lane header 「+」 and 「⋯」, and a lane statistic and card toggles on `KanbanConfig` + + Clause-②: yes (widening) + Metadata-protocol: added + + `KanbanConfigSchema` gains three optional keys, none with a default; a view that declares none of them renders as before: + + - `summary` — a lane statistic drawn at the foot of each lane (`KanbanLaneSummary`): `{ type: 'count' }`, or `{ type: 'sum', field }` of a number field over the cards the lane has loaded, not every record of the lane; `{ type: 'none' }` shows nothing. It takes precedence over `summarizeField`. A sum over a lane holding more cards than were loaded says so (「仅已加载的卡片」). The whole-lane sum, and average, minimum and maximum, wait for a server lane read (#36520). + - `showFieldLabels` — absent means `true`: a card names each field beside its value; `false` draws the values alone. + - `hideEmptyFields` — absent means `true`: a card leaves out an empty field; `false` keeps its line. + + On a board, the view settings show the lane field, which lanes show and in what order, the card fields (order, hide, add), the two card toggles and the lane-foot statistic, in place of the table's columns, group, row height and row colour. Each change applies at once and is held as the list's draft until Save. Each lane header gets 「+」 (a new record with the lane prefilled; an empty lane also gets a 「+ New」 row) and 「⋯」 (collapse, kept in this browser; hide). Hiding a lane moves its cards into 「未分类」, as `kanban.lanes` (#28211) always has, and the menu and the lanes list say so. The lane field picker offers select and radio fields; collapse is kept per reader, object and view. The Console now relays the view's `kanban.lanes`, which it used to drop, and both producers of the board node (`ListView` and `ObjectView#generateViewSchema`) relay the three new keys. `ObjectKanban` takes the host's `laneMenu` request (`KanbanLaneMenuRequest`). `@objectstack/lint` walks `kanban.summary.field` and refuses a `sum` over a field that is no number, a yes / no field included (`list-view-summary-field-type-refused`). Saving a board whose view declares no `kanban` block stores the lane field the board draws with the changed keys. +- 8f141a2: feat(kanban): a lane's sum, average, minimum and maximum cover every record of the lane, computed in the query + + Clause-②: yes + Metadata-protocol: semantic + Skills-docs: follow-up #36422 (skills/objectstack-ui/rules/list-views.md teaches the board lane summary, now including avg / min / max) + + A stored `kanban.summary` of type `sum` now totals every record in the lane (computed in the query) instead of the loaded cards; where the board cannot ask the server, no figure is drawn. + + A board's lane foot statistic, `kanban.summary`, now takes `{ type: 'avg' | 'min' | 'max', field }` beside `none`, `count` and `sum`, and every one of `sum`, `avg`, `min` and `max` covers all of the lane's records: + + - **One grouped aggregate, no fetch-then-add.** The board asks ONE aggregate over its own query — its filter and its host's search, grouped by the lane field — through the data door a grouped list view's headers already ride (`DataSource.queryGroupHeaders`, `POST /data/:object/query`). A lane longer than its page (50 records) shows the whole lane's figure; the "loaded cards" label is gone. Records with no lane value, and records in a value that is no lane, are folded into the trailing "Uncategorized" lane. A lane with no record shows `0` for a sum and no figure for the other three; a lane that holds records but that the answer has no group for (the door can cut the group rows under a deployment's default page size) shows no figure rather than `0`. A whole answer needs the door to hand back that the rows were cut: follow-up #36870. + - **Under the reader's permissions.** The platform runs the aggregate with the reader's row filter, and refuses an aggregate over a field the reader may not read; the board asks nothing for such a field, and a refused read draws no figure. + - **No figure rather than a partial one.** A data source without `queryGroupHeaders`, or a filter the read cannot repeat, draws no `sum` / `avg` / `min` / `max` figure. Over cards a host hands to the board, a `sum` is still added up on the board and the other three draw nothing. Known gap, follow-up #36871: the list view hands a board whose lanes it cannot know before the query (lanes over a lookup field, a view with grouping) its fetched page, so there `sum` totals that page, unmarked. + - **`@objectstack/lint`** judges `avg`, `min` and `max` the way it judges `sum` (`list-view-summary-field-type-refused`): the aggregate × field-type table's row for that function over the field's declaration, less the boolean class, which it now reads from the spec (`BOOLEAN_VALUE_TYPES`) instead of listing `boolean` and `toggle` itself. The list view's lane-statistic picker reads the same class, and now offers and names `avg` (Average), `min` (Minimum) and `max` (Maximum) over the number fields it offers for `sum`; the locale packs carry the three names and drop the retired loaded-cards label. + + A stored `sum` keeps its key and its field; what it draws is now the whole lane's total where it drew a total over the loaded cards before, and no figure over a data source that cannot answer the lane read. +- fed637c: feat(i18n): a flow screen with its own heading gets a translatable step name, `flows.FLOW.nodes.NODE_ID.label` + + Clause-②: yes (widening) + Metadata-protocol: added + + A screen node that sets its own `config.title` has a heading and a separate canvas label. Until now only the heading could be translated (`flows.FLOW.screens.NODE_ID.title`), so the label stayed in the authoring language. The docs flow embed and the Studio flow designer both draw that label. + + - **New key accepted.** `objectstack validate` now accepts `flows.FLOW.nodes.NODE_ID.label` over a screen whose `config.title` is a non-empty string. A screen with no `config.title` is still refused there and pointed at `screens.NODE_ID.title`, because its heading is its label and one string keeps one key. An `approval` node is still pointed at `approvals.NODE_ID.label`. + - **Docs embed.** The `type: flow` embed (`element:metadata_viewer`) names a titled screen by its heading, translated where the bundle has the heading. When the heading holds a `{{ }}` hole, which a drawing cannot fill, the embed now names the screen by the new key, and falls back to the authored label only if the key is missing. + - **Studio designer.** The canvas draws a titled screen's label from the new key. + - **Untitled screen with a hole.** If a translated `screens.NODE_ID.title` contains a `{{ }}` hole, the embed and the canvas now draw the authored label rather than the raw template. + - **Coverage.** `os lint`'s i18n coverage and `os i18n extract` ask for the new key on a top-level screen whose authored heading holds a `{{ }}` hole. These are the screens the embed draws by their label. + - **One branch rule.** `@objectstack/spec/automation` exports `flowDecisionEdgeBranch`, `FlowDecisionEdgeBranch` and `FLOW_DECISION_DEFAULT_BRANCH_LABEL`. They decide which out-edges of a decision a drawing lists as branches. The docs embed's branch list and the i18n walk's folded branch targets both read them, so the two can no longer disagree. + + Nothing to migrate. A bundle that does not use the new key keeps working. +- 129e637: feat(i18n): console flow labels follow the server's declared fallback chain + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: none — the new member is a response field the console reads, not something a metadata author writes; no skills/ page teaches `GET /i18n/locales` or how the console resolves flow labels + + - **`GET /api/v1/i18n/locales` names the declared fallback chain.** `GetLocalesResponseSchema` (`@objectstack/spec/api`) gains an optional `fallbackChain: string[]`, and the runtime's `/i18n` domain fills it from the i18n service's `getFallbackLocale()` (the stack's `i18n.fallbackLocale`, else its `defaultLocale`), the same accessor the server's metadata translations hand the spec resolvers as `ResolveOptions.fallbackChain`. A service that declares no fallback (no accessor, or an empty answer, such as the core in-memory provider) serves no member. Nothing existing changes meaning. + - **The console loads the fallback locale's flow translations.** The console's language loader reads the chain and `sourceLocale` beside the active language's bundle and, unless the language is the authored one, fetches each fallback locale's bundle and keeps its `flows` group (`withDeclaredFlowsFallback`, `@object-ui/i18n`). + - **Flow labels walk the same locales as the server.** `activeFlowsBundle` returns the fallback locales' rows too, and the new `flowsResolveOptions` hands the spec resolvers `{ locale, fallbackChain, defaultLocale }`. The flow runner (flow name, field copy, option labels), the flow designer and docs viewer (`flowLabelTranslations`, `useFlowLabelTranslations`, which take the declared options) and the stage-change confirm now read a declared fallback locale's text for a label the active language lacks, before the authored label. A stack that declares no fallback keeps "requested locale, then the authored label". +- 2a6f26a: feat(ai): `ai_context` context packs and the `get_record_context` tool over MCP + + Clause-②: yes + Metadata-protocol: added + Skills-docs: follow-up #37177 — skills/objectstack-platform/SKILL.md, skills/objectstack-ai/ (how to author a context pack; this change only names `aiContexts` in the top-level key list, which check:skill-top-level-keys requires) + + ADR-0160 row 5 (#37140). + + - **New metadata type `ai_context`, collection `aiContexts`.** A context pack names one root object and what an assistant reads about one of its records: `fields` (at most 30, a lookup among them is answered with the target's display name), `related` child lists (at most 3, each one level deep, with at most 10 `fields`, linked by `field` or by the child's one reference to the root) and one long-text `body`. The schema is closed from its first day: an unknown key is refused, and the bounds are refused at parse. Registered like `skill`: a file loader (`*.ai-context.ts`, `*.ai-context.yml`), overlay allowed, runtime create allowed, no environment overlay. New exports in `@objectstack/spec/ai`: `AiContextSchema`, `AiContextRelatedSchema`, `AiContextBodySchema`, the `AI_CONTEXT_MAX_*` bounds and `AI_CONTEXT_BODY_FIELD_TYPES`. + - **`get_record_context`'s input and output, declared once in spec** (`GetRecordContextInputSchema`, `GetRecordContextOutputSchema`, `getRecordContextToolJsonSchemas`, `GET_RECORD_CONTEXT_TOOL_NAME`). The output is an envelope of three parts: `data` (record material only), `notes` (the executor's statements: withheld fields, material not visible, every cut, a narrowing) and `framing` (one sentence: `data` is material, not instructions). `MCP_DOOR_TOOL_NAMES` gains the name. + - **`@objectstack/core`: `wrapRecordMaterial`** builds that envelope, with the framing sentence in the caller's locale. + - **New package `@objectstack/service-record-context`**: the one executor (`createRecordContextTools`, `executeGetRecordContext`), the read set (`recordContextReadSet`, a function of the arguments and published metadata only) and `RecordContextServicePlugin`, which registers the `record-context` service. Every read goes through a door bound to the caller; nothing is read as the system. Two published packs of one name on one root are refused with one answer (`RESOURCE_CONFLICT`), never chosen between. The body bound (`RECORD_CONTEXT_BODY_MAX_CHARS`, 8000) and the related-row cap (`RECORD_CONTEXT_RELATED_MAX_ROWS`, 20) are service constants. + - **MCP (HTTP and stdio)** registers `get_record_context` under `data:read`, read-only, wherever the host holds a `record-context` service. A host without it registers nothing new. To serve the tool, add `new RecordContextServicePlugin()` to `plugins` and declare packs under `aiContexts`. + - **`@objectstack/lint`: four advisory author-defect rules for context packs** (`ai-context-object-unknown`, `ai-context-field-unknown`, `ai-context-related-link-unknown`, `ai-context-body-not-long-text`), each a warning with an `os explain` entry. `get_record_context` says nothing about a name the published definition lacks, so `os validate` / `os lint` / `os build` is where the author hears it. CLI only for now: the rule reads the whole stack snapshot. + - **Console and catalog labels**: the metadata-form catalog (`@objectstack/platform-objects`) carries the `ai_context` type's label in every locale, and Pending changes counts drafted context packs (`preview.changes.typeCount.ai_context`). + +### Patch Changes + +- a0b4ecf: fix(console): creating a package answers with a toast naming the new package + + Clause-②: no + Metadata-protocol: none + + Creating a package (Studio's *New app*, the Studio package switcher's *New package*, and the Packages page) closed the dialog and moved on with nothing on screen saying the write landed. The create dialog now shows a success toast naming the new package by its display name: "Created package “NAME”." (zh: 已创建软件包「NAME」。). A refused create shows no toast and keeps its message in the dialog, as before; saving an edit is unchanged. + + New locale key: `engine.packages.create.created` in the studio catalogue (en, zh). No props or exports change. + + Revoke on a granted suggested binding in Studio Access already answers with its toast ("“SET” is no longer granted by default."); a new pin on the Studio mount holds it. +- 1c05546: feat(plugin-grid): an aggregate bulk action that resolves with a `BulkActionResult` is reported per row: the rows it moved, the rows it refused with its own reasons, and the rows it did not confirm + + Clause-②: yes + Metadata-protocol: none + + The grid's bulk executor now reads the resolve value of an `execution: 'aggregate'` bulk handler. When it is a `BulkActionResult` (`{ succeeded: string[], failed: { id, message }[] }`, `BulkActionResultSchema` in `@objectstack/spec/ui`), the result panel shows how many selected rows were moved, lists each refused row under its record with the handler's `message` (and in the error CSV), and lists every selected row the result names in neither list as "not confirmed", never as succeeded. Ids are read against the dispatched `params._selectedIds`: an id outside the selection is dropped, a duplicate counts once, an id in both lists counts as failed, and when one id is in `failed` twice the first entry's message wins. A rejection is unchanged: it stays one outcome for the whole selection. + + A handler that partly succeeds no longer has to reject to avoid being reported as full success: resolve with the per-row answer instead. The `[PLANNED — not enforced]` marker is removed from `BulkActionResultSchema`'s description and its reference page, and the "all-or-nothing" wording is removed from the `bulkActionDefs` description (`@objectstack/spec`) and the `BulkActionDef.execution` TSDoc (`@object-ui/types`). + + **Declared behaviour change.** An existing aggregate handler whose own return value carries a top-level `succeeded` or `failed` member in another form (for example counts, `{ succeeded: 2, failed: 1 }`, or only one of the two lists) was reported as full success and is now reported as "unreadable": the panel says the action finished but its result could not be read, prints no per-row count, and the grid re-reads its rows when the dialog closes. To keep the success report, return a value with neither member (a summary under another name), or return both lists in the `BulkActionResult` shape. A handler that returns nothing, or a value with neither member, keeps today's report. + + The widening is additive: three new keys in every locale pack `@object-ui/i18n` publishes (`grid.bulk.resultNotConfirmed`, `grid.bulk.notConfirmedRecords`, `grid.bulk.aggregateUnreadable`). No metadata key, value or default changes. +- c3fb37a: fix(plugin-chatbot): a file over the chat composer's size limit is named to the user with the limit, instead of only reaching `console.warn` + + Clause-②: yes (widening) + Metadata-protocol: none + + The two widenings are additive: the new key `chatbot.composer.fileTooLarge` in every locale pack `@object-ui/i18n` publishes through `./locales`, and the optional `files` field on the `onError` argument of `PromptInputProps`, exported as `AIElements` from `@object-ui/plugin-chatbot`. + + A file picked, pasted or dropped into the chat composer that is larger than `maxFileSize` (10 MB by default) used to vanish: it did not attach and nothing told the user why. `ChatbotEnhanced` now shows a notice above the composer naming every refused file and the limit, in the user's language (new pack key `chatbot.composer.fileTooLarge`, in all eleven locales). The notice closes with its close button or on the next send, and a later refusal replaces it. + + The vendored `PromptInput` now reports every over-size file of a pick through `onError` with `code: 'max_file_size'` and the refused files in the new optional `files` field. Before, it reported only a pick where every file was over the limit; a pick that mixed sizes attached the small files and dropped the large ones with no report. An `onError` handler that ignores `files` sees one more call, for a mixed pick, with the same `code`. +- c9b3f7a: feat(account): a Notification Settings page where each person chooses their own notification topics, channels, digest and quiet hours + + Clause-②: yes + Metadata-protocol: none + + The Account app has a new **Notification Settings** page, under Inbox and only when the messaging service runs. It shows one row per notification topic and one column per channel. Each cell shows whether that notification reaches you on that channel, and where the answer comes from: your own setting, your organization's default, the built-in default, or a mandatory topic. Mandatory topics are always delivered and cannot be switched off. A channel the deployment cannot send on yet says so in its column header. Above the matrix you can set your digest and your quiet hours. + + - **The read: `GET /api/v1/messaging/me/preferences`.** This new door answers the signed-in person's *effective* preferences. The server computes them with the same resolver `emit` uses to filter (`PreferenceResolver.effectiveFor`), so the page shows what is actually sent and computes nothing itself. The door takes no parameters and answers only about the caller: there is no `user` parameter, and any parameter is refused `VALIDATION_ERROR` / `400`. It keeps the posture of `GET /api/v1/messaging/preference-options`: + - an anonymous caller gets `401`; + - a held sign-in gets `403`; + - a source it cannot read is `500` / `INTERNAL_ERROR`, never a partial or "everything on" answer. + + The door reads only what the answer needs: the caller's own rows and the organization's default rows, each by equality on `user_id` within the caller's organization. A read that comes back with more rows than its cap is a fault (`500`), never a page. + + The organization's defaults appear only as `source: 'default'` on the caller's own cells. No other person's row, and no row id except the caller's own, is ever answered. + - **The writes: your own `sys_notification_preference` rows, through the data door, as you.** `member_default`, the baseline set every signed-in person resolves (external members excepted), now carries a grant of read, create and edit on the object, with no delete. Two row policies come with it: + - `sys_notification_preference_self` binds every principal that holds the grant. Its row scope is `user_id == current_user.id`, and its write check is the same expression, so the row as written must still be your own. + - `sys_notification_preference_org_admin` widens organization owners and administrators back to every row of their organization. Its write check is `topic != null`, which holds on every row being created because `topic` is required with a default. If `topic` ever becomes optional, an administrator's create is refused, never widened. + + An ordinary member or a delegated administrator lists only their own rows. Their create with `user_id` omitted, empty or naming another person is refused `403` / `PERMISSION_DENIED`, as is moving their own row to another person or to the organization default. + - **Owners and administrators are unchanged.** They still list every row, create and edit the organization default, create and edit another person's row, and delete in the Setup grid. + - **App-authored grants are narrowed too.** `sys_notification_preference_self` carries no `positions` domain, so it binds every principal that holds a grant on this object, including through an app's own permission set. A role other than organization owner or administrator that an app grants this object reads and writes only its own rows, unless the app declares its own widening policy for that role. + + There is no "reset to the organization's default" button, because that needs a delete, which members are not granted. Changing your digest or quiet hours saves your own general setting, and the page says so beside the control. From then on, that setting applies in place of the organization's defaults to every topic and channel you have not set yourself. +- 8896822: Clause-②: no + Metadata-protocol: none + + feat(app-shell): connect your Slack account on the notification settings page, and an admin Slack page in Setup + + The console side of Slack direct-message delivery (step 3 of the Slack DM work; the server doors shipped with `@objectstack/service-messaging`'s Slack link routes). + + - **Notification Settings: your Slack link.** Where the preference door lists the `slack` channel (only on a deployment that composes connector-slack), the page shows a Slack section. Without an install, or with an install whose token Slack refused, it says so and offers nothing. Otherwise **Connect Slack** asks `POST /api/v1/messaging/me/slack-link/proposal`; the page shows what the door answers: that a Slack user with your verified email was found (never whom), with **Confirm** (`…/confirm`) and **Cancel** (`DELETE /api/v1/messaging/me/slack-link`); or, when nothing was proposed, a sentence naming every reason the door does not tell apart (no verified email, no Slack user with it, or that Slack user linked to someone else). A confirmed link shows the Slack user and **Disconnect**. A refusal is shown in the server's own words (its `userMessage` when it carries one), and the section then reads the door again. + - **Setup's Slack page** (component `messaging:slack`, `/apps/setup/component/messaging/slack`): for an organization administrator holding `setup.write`, the capability the doors ask; anyone else sees what is needed and no door is read. It installs or sets again the organization's bot token (`PUT /api/v1/messaging/slack/account`) through a password input that always starts empty, removes the install after a confirm that says every linked person is told, and lists every link as served (person, Slack user once confirmed, when) with a confirmed **Remove** per link. When the list reaches the 10,000 links the server answers, the page says it may be incomplete. + - Every new sentence is in all eleven built-in locales (`slackLink`, `slackSetup`). +- dc53d4a: fix(app-shell): Studio's "Explain access" says why Explain and Pick are disabled, on hover, on keyboard focus and to assistive technology + + Clause-②: no + Metadata-protocol: none + + With no object chosen, the Explain button and the record Pick button were bare disabled buttons: no tooltip on hover, skipped by Tab, and nothing in the accessibility tree (Pick's only title was its own label, "Pick"). Both now sit in the shared `DisabledControlReason` wrapper the Studio form designer, create dialog and metadata Save already use: a focusable wrapper that opens a tooltip with the reason "Choose an object first", and both the wrapper and the button point `aria-describedby` at it. Each button keeps its own name; once an object is chosen both are plain enabled buttons, and a running Explain gives no reason because its label already says "Explaining…". The new string is in the Studio namespace catalogues (`en`, `zh`) of `@object-ui/i18n`. +- ad15579: fix(plugin-dashboard): the dashboard table widget no longer offers an "Export CSV" download + + Clause-②: no + Metadata-protocol: none + + The dataset table and cross-tab widgets drew a download button that built a CSV in the browser. That file skipped the export grant and the export audit entry that list export enforces. The button, its CSV helpers and the `dashboard.exportCsv` label in every locale pack are removed. To take rows out, use list export, which checks the export grant and writes the audit entry. Report exports are unchanged. +- bfd6b6b: fix(i18n): an approval rejection reads 驳回 in Chinese, on the runtime surfaces and in the designer's approval panel + + Clause-②: no + Metadata-protocol: none + + In Chinese, the approval runtime now names the reject decision 驳回 (zh-Hant 駁回), the word the flow designer gives the approval branch and the server notifications already use. Before, the designer's branch said 驳回 while its approval-node help and the approver's buttons said 拒绝 for the same decision. + + - `@object-ui/i18n`: the `approvalsInbox` strings in zh-Hans and zh-Hant: the inbox and record-bar buttons, the bulk and single confirm dialogs, the toasts, the status chip (已拒绝 → 已驳回), the history row, the keyboard hint and the send-back limit notice. + - `@objectstack/plugin-approvals`: the zh-CN labels of `sys_approval_request` (the `approval_reject` lever, its confirm question and success toast, the `rejected` status) and of the `reject` row of `sys_approval_action`; the zh-Hant bundle already said 駁回. The email action-link confirm and result pages read 驳回. + - `@object-ui/app-shell`: the approval node's zh panel in the flow designer: the multi-approver help, the status-mirror help, the escalation help and its `auto_reject` option label (自动拒绝 → 自动驳回; the stored `auto_reject` value is unchanged), and the revision-limit help. Its branch label and Problems hint already said 驳回; a zh-Hant session draws the same Simplified table. + + 拒绝 stays where it means access denial or declining an invitation, in the AI tool approvals, and in the designer's end-node refused outcome and its API-key, bulk-update and audit-outcome refusals. Display text only: the stored `rejected` status and the `reject` action key are unchanged, and English and the other languages are untouched. +- 9f352e8: feat(studio): the main area adapts when the Studio right slot opens: narrow left rails, a four-column permission matrix, a Records grid that shows its scrollbar, and a resizable right slot + + Clause-②: no + Metadata-protocol: none + + - **Left rails narrow.** While the right slot shows beside the Studio pillars and the middle region they leave, list and content together, is under 900 px, the Data, Automations, Interfaces and Access lists draw 52 px wide: each row shows the first character of its name, with the full name on hover. The 「»」 button at the top shows the whole list over the content until a row is picked, Escape or a click outside. Closing the slot or a wider window brings the full list back. Phones are unchanged. + - **Permission matrix (Access pillar, Objects tab).** When the matrix's pane is narrower than 1000 px, each object row keeps Create / Read / Edit / Delete as flat checkboxes. Export, Transfer, View all, Modify all and the read and write scopes move behind the row's "More permissions" button, which shows how many of those six are on ("2 on" / 「已开 2 项」) and opens them in a row beneath. The "All · Read only · None · Read & write" strip folds into one "Bulk" menu with the same four actions. At 1000 px and wider the matrix is the full flat grid it was. The folded controls are the same checkboxes and pickers as the flat columns, so a read-only set locks them the same way. The width rule is a CSS container query on the matrix pane, so it follows the right slot opening, closing or being dragged wider. Setup's permission set page draws a different table and does not fold. + - **Records tab (Data pillar).** The grid's horizontal scrollbar is drawn at rest instead of only under the pointer, so a pane the right slot narrows still shows there are more columns. Selecting a field by its column header, or from the field list, scrolls that column into view, clear of the frozen name column. Column widths, the frozen name column and the 400 px ceiling of a long text column are the runtime grid's, unchanged. + - **Right slot width.** The slot is resized from its left edge within 320–560 px, and the properties pane and the AI copilot each remember their own width in the browser (360 px and 420 px by default). A width both panes shared before this release is not carried over: each pane starts from its default once. The in-place widen of the copilot and the phone overlay keep their own widths. + - New `studio` namespace strings, in en and zh: `engine.studio.rail.expand`, `engine.studio.rail.collapse`, `perm.more.col` and `perm.more.count`. +- fd471d3: fix(messaging): a member's own "no digest" or "no quiet hours" now beats the organization's default + + Clause-②: no + Metadata-protocol: none + + A member who chooses no digest, or clears their quiet hours, now keeps that choice even when the organization's default sets a digest or quiet hours. The organization's default is a default, not a floor. Before this release the member still got the organization's digest and quiet hours. + + - **Three states per field.** A notification preference's `digest` and `quiet_hours` are each one of: not set (empty), explicitly off, or a value. The most specific preference that sets the field decides it. A preference that leaves a field empty decides nothing for that field, so it keeps following the next preference: the default for all users, then none. Explicit off is `none` for the digest and `{ "off": true }` for quiet hours. An organization default that is explicitly off is the same as no default. After an explicit "no quiet hours", the member's digest still lands at midnight in the time zone of the organization's quiet-hours window (the next preference that holds one), or UTC when none does. + - **`digest` has no default value any more.** A preference created without a digest stores it empty, so it follows the organization's default. On a database created by an earlier release, the `digest` column still carries the old database default `none`. The messaging service writes an explicit empty digest on every insert that leaves it out, so the database default never applies. A write that skips the platform's engine (raw SQL, a bulk load straight into the table) still stores `none` on such a database. That stored `none` now means "no digest". + - **Stored rows keep their meaning.** On the first start of this release, every stored `digest = 'none'` is rewritten to empty, in every organization, once. The pass is recorded in `sys_migration` (`messaging-preference-digest-none-unset`) and never runs again, so a `none` chosen after the upgrade is kept. A stored `none` never took effect before, so no one's digest changes at upgrade. If you picked "none" by hand in Setup > Notification Preferences to opt out, pick it again after upgrading. + - **The Notification Settings page offers the opt-out.** "No digest" is always offered and saves `none`. Clearing the quiet-hours window and saving stores `{ "off": true }`. The two notes saying these choices were not offered are gone, in all 11 languages. +- 6ffa816: feat(i18n): a count family for capability drafts in the pending-changes summary + + Clause-②: no + Metadata-protocol: none + + Every locale pack adds `preview.changes.typeCount.capability` (and its plural forms), so the console's pending-changes summary reads "2 capabilities" (`能力 2` in Chinese) instead of the raw type name when a publish carries capability drafts. +- 7702f09: fix(lint, studio): warn about a required field's `visibleWhen` formula read only when the form cannot compute the formula + + Clause-②: no + Metadata-protocol: none + + A `required` field whose `visibleWhen` reads a `formula` field used to draw a warning from `os validate` (and the object save door) and an advisory in Studio's field inspector for every formula it read. The form now computes the object's formulas over the record being edited, so for a formula it can compute the form and the server judge the same value, and that warning named no real problem. Both now fire only for a formula the form cannot compute: + + - **The server cannot compute it either.** The formula reads through a reference, calls `label()` or `current_user.can()`, or reads such a formula. The server counts the field as shown, so it stays required on every record. Same verdict as before, now stated on its own. + - **Only the form cannot compute it.** The formula reads `os`, or reads such a formula. The server computes it and can waive the field where the form still shows it and keeps it required. Before this change such a formula drew only the generic warning, which said the form computes it. + + Either message now says that the form's half holds for a form that computes the object's formulas. A form check that computes none judges the value it last read, and can hide the field or not ask for it. + + A formula that reads the acting user draws nothing, as before. Both sides compute it for a signed-in writer. + + Studio catalogue (en, zh): `designer.field.requiredVisibleWhenFormula` is removed. `designer.field.requiredVisibleWhenFormulaUnservable` is now a full sentence on its own. `designer.field.requiredVisibleWhenFormulaFormOnly` is new. The lint rule's location and severity (warning) are unchanged. No props or exports change. +- 05e0eb8: fix(console): Notification Settings is read-only, with its reason, for a caller who cannot change their notification preferences + + Clause-②: no + Metadata-protocol: none + + An external member (the `org_external` identity, `external_default` permission set) could open the Account app's Notification Settings page and was shown every switch, the digest choice and the quiet hours as editable, yet each change answered `403`: that set grants no create or edit on `sys_notification_preference`. The page now reads the caller's own grant on that object from the console's permission answer (`/me/permissions`, through `usePermissions()`), and when the caller holds neither a create nor an edit grant it draws the same settings read-only: every control disabled, one visible line saying why (`notificationSettings.readOnly`, in every built-in locale), named by each disabled control as its accessible description, and no write sent. + + What does not change: a member and an organization administrator see and use the page as before. With no permission answer mounted, the page stays writable and the server's refusal decides, as every other console grant read does. No metadata key, value, default or permission changes; the server's refusal is unchanged. +- c890070: feat(console): the Studio landing opens package management in one click + + Clause-②: no + Metadata-protocol: none + + Studio's landing (the App Builder home at `/_console/studio`) is now the visible door to package management. Every package card carries **Manage**, which opens the same detail sheet as the top-bar package switcher's "Package info & settings": Disable where the server says the package can be switched off (a module of an installed app, or your own app), Enable on a disabled package, and export. The title row gains an **All packages** link to the unfiltered Packages page. Before, the only way in from a menu was to open a package, open the package switcher and pick its last entry, so admins of code-loaded modules looked for Disable and did not find it. +- 58d00db: fix(console): the About dialog names the ObjectStack version first, then the console build + + Clause-②: no + Metadata-protocol: none + + Help → About showed one row, the console build (a git short sha), and nowhere the ObjectStack version. The dialog now opens on an **ObjectStack version** row filled with exactly the `version` the server's discovery document answers (an operator's `OS_RUNTIME_VERSION` stamp where one is set), read through the shell's adapter from the discovery document the console already holds, so opening it sends no new request. **Console build** stays as the second row, so a deployment can still be traced to a commit. While the read is in flight the version row says it is loading; when discovery cannot be read or names no version, it says so in words ("Unknown version (the server did not report one)"), never an empty field. + + New locale keys `help.aboutVersion` and `help.aboutVersionUnknown` in all eleven packs, and `help.aboutDescription` now names both rows. No props or exports change. +- 6a35635: feat(console): Change Owner on the record page, in a list's selection bar, and beside the read-only owner of the edit form + + Clause-②: yes (widening) + Metadata-protocol: none + + A record whose object offers Change Owner now shows a **Change Owner** action in its page header. The action appears only where three things hold: the object can have its owner changed (it has a per-person owner that is not pinned read-only), the object's `userActions.transfer` switch is on, and the server's explain engine allows this user to transfer this record. A `controlled_by_parent` detail offers the action only once its author turns the switch on. Objects with `ownership: 'none'`, `managedBy` objects and `sys_*` objects never offer it, even to a platform admin. + + The action opens one dialog. You pick the new owner under the object's own label for its owner field. Where the object has an ownership queue, you can pick a queue instead. You can also ask that the new owner be notified. The dialog sends the change through `data.changeOwner` for one record and `data.changeOwnerMany` for several. Picking the record's current owner is refused in the dialog with the reason shown. A bulk change ends with a report: how many records moved, how many already had that owner, how many did not move, and each row that did not move with the server's own reason. + + A list's selection bar offers **Change Owner** for the selected rows, where the object's switch is on and the explain engine allows this user to transfer the object's records (one question per object, not per row, asked once a selection is open rather than when the list opens). The rows of such an object take a selection even when the user has no bulk Delete and the view authors no bulk actions, so the entry can be reached at all; where the verdict refuses, the bar draws no Change Owner. The server judges every row again. Rows that the switch's `visibleWhen` excludes are left out of the request, and the dialog says how many were left out. + + The Console's edit form now shows the owner, read-only, above the form's fields, with Change Owner beside it when it is offered. The owner field is still not part of what the form saves. Forms embedded outside the Console are unchanged: the owner line appears only where a host mounts `FormOwnerLineContext` (exported from `@object-ui/plugin-form` and `@object-ui/plugin-form/core`). + + New public surface, all additive: + + - `@object-ui/plugin-grid`: `ObjectGrid` takes two new optional props, `onBulkChangeOwner` (wiring it makes the rows selectable and adds the entry) and `bulkChangeOwnerOffered` (`false` holds the entry back while the rows stay selectable); the package exports the action name `CHANGE_OWNER_BULK_ACTION`. + - `@object-ui/plugin-list`: `ListView` takes and forwards both props. + - `@object-ui/plugin-form`: new exports `FormOwnerLine`, `FormOwnerLineProps`, `FormOwnerLineContext`, `FormOwnerActionTarget` and `FormOwnerLineHost`; `@object-ui/plugin-form/core` exports `FormOwnerLineContext`, `FormOwnerActionTarget` and `FormOwnerLineHost`. + - `@object-ui/plugin-detail`: `RecordOperation` gains `'transfer'`, so `useRecordVerdict` and `seedRecordVerdict` accept it. + - `@object-ui/i18n`: every console locale gains `grid.changeOwner` and the `console.changeOwner.*` block. +- 9b3227f: fix(console): the first-run checklist on Home counts its done rows the way its progress line does, names the Setup app in the reader's language, and folds to one line when two rows or fewer are left + + Clause-②: yes (widening) — @object-ui/i18n adds console.firstRunChecklist.showDoneSplit; nothing removed + Metadata-protocol: none + + The progress line counts the required rows alone, while the control that unfolds the done rows counted every done row, optional ones included, so a managed environment could read "6 of 7 done" above "Show completed (8)". Once an optional row is done the control now names the two counts apart ("Show completed (6 required · 2 optional)"); with no optional row done it reads as before. + + The checklist's description, the built-in AI row's done line and the Connect an AI assistant row's line named "Setup" in English in every language; they now use the Setup app's own label in each pack (for example 系统设置, 系統設定, セットアップ, Configuración). English and German keep "Setup", which is their label. + + Above the page, once two rows or fewer are left to do, the card folds to one line: its title, its progress, each row left by its title and a Set button, and the close button. A language, timezone or currency row's Set opens the full card with that row's editor, and the card folds back once the editor closes; every other row's Set opens the page its row links to. The phone placement after the apps keeps its own fold. No row, completion rule or setting write changes. + + New locale key: `console.firstRunChecklist.showDoneSplit`, in all eleven packs. +- fe75349: fix(approvals): the approval timeline names an unstaffed position by its label, and the platform's own rows read as the system's + + Clause-②: yes (widening) — @objectstack/plugin-approvals adds the optional `ApprovalServiceOptions.positionLabelSource`; @object-ui/i18n adds approvalsInbox.systemActor and approvalsInbox.actSystemNote; nothing removed + Metadata-protocol: none + + When a request goes to the organization's administrators because a position on its approver list has no holder, its timeline note named the position by its machine name ("岗位「crm_sales_manager」无人任职"). The note a reader is served now names it by its label: the reader's language pack (`positions.<name>.label`) first, else the position's declared `label`, else the name as before ("岗位「销售经理」无人任职"). The English the row stores for audit keeps the name. + + On the timeline, a row no person took read its actor as "—", and the routing, submitter-exclusion and no-approver notes read as "Commented". A row with no actor now reads its actor as "System", and a `comment` row with no actor reads as "System note". A person's comment keeps "Commented" and its author. + + New locale keys: `approvalsInbox.systemActor` and `approvalsInbox.actSystemNote`, in all eleven packs. +- dab4712: feat(console): the 「All documentation」 page has the console's top bar, groups its books by app, and searches every article + + Clause-②: yes (widening) — @objectstack/client `meta.getItems` takes an optional `include` (`'content' | 'grants'`, sent as `?include=`) and exports its options type `MetaItemsListOptions`; @object-ui/i18n adds nine help.* keys (two of them plural, with their per-locale forms); nothing removed + Metadata-protocol: none + + - **The console's top bar on every portal page.** `/docs`, a book (`/docs/<book>`) and an article (`/docs/<book>/<article>`) are drawn in Home's frame, whose bar reads 「<product> / Documentation」 (the crumb links to the portal's index) and carries the search, the inbox, the assistant and the avatar menu, so the reader can go back to any app. The portal's own 「Documentation / <title>」 strip is gone. + - **Books grouped by app.** The page lists each app's books under the app's name, as the launcher names it: a book goes under the first app whose navigation links to it (a module's navigation contributions included), else under its package's app; books no app carries are listed last under 「Other documentation」. No card shows a package id; a package's docs with no authored book are named by their app. A platform package's books (`com.objectstack.*`, such as Setup's) are listed only under an app in the member's list that carries them, never under 「Other documentation」, so they are not listed for a member whose app list has no such app. This is what the page lists, not who may read a doc: the server's audience gate decides that, as before. + - **The subtitle and the counts read the session language** (「9 篇」, not 「9 articles」). + - **「Search all documentation」.** A search field on the page searches every listed article's title, summary and body, and lists the matches with the words marked in context; each opens the article in its own book. The bodies are asked once, the first time the reader searches (`GET /meta/doc?include=content`, through the same audience gate as the list). The query stays in the URL (`?q=`). + - **A hand-typed article URL whose book does not hold the article** (`/docs/<book A>/<article of book B>`) now opens the article in its own book; with no book that holds it, the article draws no previous/next pager instead of showing both ends at once. Inside an app, an article whose book is in no package now keeps its 「← Back to <app>」 link. + + `@objectstack/client`: `client.meta.getItems(type, { include })` and the environment-scoped `meta.getItems` send `?include=`; leaving it out sends nothing, as before. `@object-ui/app-shell`: `AppHeader` takes a `docs` variant and `DefaultHomeLayout` a `variant` prop for it. +- 141a826: feat(console): an app's docs page has one navigation — the docs column — with the path to its book and the previous and next article + + Clause-②: yes (widening) — @object-ui/plugin-markdown exports MermaidEnlargeContext and MermaidEnlargeText; @object-ui/i18n adds 12 help.* keys; nothing removed + Metadata-protocol: none + + Inside an app, the documentation pages (`/apps/<app>/docs/…`) no longer draw the app menu beside the docs: the left column is the docs' own, with 「← Back to <app>」 at its top, a title filter, every book of the app's package (the current book open, the others folded, each with its article count; long titles wrap instead of truncating) and 「All documentation →」 at its foot. Every other docs page inside an app (the app's docs index, a book with no articles, a book or doc not found) carries the same 「← Back to <app>」 at its top. The app bar stays, and reads 「<app> / Documentation」; the separate 「Documentation / <title>」 bar under it is gone, and the path above the article names the book (Documentation › <book>). 「On this page」 marks the section being read as the page scrolls, and the article ends with its book's previous and next article. The article column is 720 px wide at 15 px, and a diagram carries an 「Enlarge」 control that opens it full size. + + `@object-ui/plugin-markdown` adds `MermaidEnlargeContext`: a host that provides its words gets the enlarge control on every rendered diagram; with no provider a diagram renders exactly as before. `@object-ui/app-shell` exports `matchAppBySegment` and `useServedAppLabel`, and `isAppDocsPath` beside `isRecordPagePath` from its `ConsoleLayout` module. New `help.*` keys in every shipped locale. No doc content, doc metadata, route or API changes. +- 8145424: feat(i18n): the sign-in page and the in-app language menu offer one list, every interface language + + Clause-②: yes (widening) — @object-ui/i18n adds `appContentLanguages` to the i18n context and the locale key `console.localeSwitcher.appContentDefault` in all eleven packs; `offerableLanguages` is never `null` any more; nothing removed + Metadata-protocol: none + + The in-app language menu used to list only the languages the app declares (four on HotCRM), while the sign-in page, which has no session to ask the app with, listed all eleven interface languages. A language picked on the sign-in page (German, Korean) was then missing from the menu after sign-in. + + Both now list all eleven, as does the profile page's language card. A language the app's own content is not translated into stays selectable: the interface shows in it, and object, field and view names show in the deployment's default language. The menu row of such a language carries one muted line, "App content shows in the default language", and the profile card shows the same line under the picker when one is chosen. The sign-in page marks nothing, because nothing has been read about the app there. + + `offerableLanguages` on `useObjectTranslation()` is now every platform locale table language whatever the app ships. The app's list (`loadLocales`) feeds the new `appContentLanguages`: the table languages it covers, or `null` when not known (in flight, signed out, failed, or naming no table language). `GET /api/v1/i18n/locales` is unchanged and no language pack is added. The organization's default-language setting keeps the app's declared list. +- 83a79e6: fix(app-shell, plugin-chatbot): the AI panel in an app has one title row, and its composer reads cleanly + + Clause-②: no + Metadata-protocol: none + + The console's AI drawer title bar is one row: History, a 「···」 menu and a 「×」 Close. The menu holds the AI usage reading (with its upgrade or top-up entry when the pool runs low), Share, Expand / Restore side panel, and the Build Doctor. The Build Doctor is listed only for a user who may build (`manage_metadata`, the reading that already decides who gets the build composer). While the usage pool is running low or full, the 「···」 trigger carries a marker. The close button is the drawer 「×」, named Close, in both the side panel and the full window; closing still keeps the conversation for the next open. The phone sheet gets the same menu, without Expand. + + The pane row under the title keeps the agent label and the app chip, but no longer draws Share or the Build Doctor in the drawer. `ChatPane` gains `actionsInHost` for a host that offers them itself. The full-page chat and the Studio copilot are unchanged. + + In the composer: + + - the 「正在看」 chip sits on the input's top edge, inside its frame; + - the closed model picker shows the model's label alone, truncated, with the full label on its title (no provider, no `×N`). The list rows keep both; + - the 「↵ 发送 · Shift+↵ 换行」 hint stays on one line; + - the 「+」 attachment button and its menu item are named "Add attachment" (「添加附件」). + + An answer table's copy and download tools are named in the reader's language (「复制表格」, 「下载表格」 and their format variants) instead of streamdown's English defaults. + + New locale keys, in every pack: `console.ai.dock.close`, `console.ai.dock.more`, `chatbot.composer.addAttachment`, `chatbot.answer.copyTable`, `copyTableAsMarkdown`, `copyTableAsCsv`, `copyTableAsTsv`, `downloadTable`, `downloadTableAsCsv`, `downloadTableAsMarkdown`. The drawer no longer reads `console.ai.dock.collapse`. +- e01b8be: feat(console): the list page's frame — a 44px page bar, a 40px view bar, a denser grid and per-column totals in the grid's own last row + + Clause-②: no + Metadata-protocol: none + + The object list page is redrawn around two bars and a denser grid (objectstack#35548, the first card of the list-page epic): + + - **Page bar, 44px.** The object's icon in one colour and its name on the left; ⋮ and 「+ 新建」 on the right. The object's description, Import and Favorite moved into ⋮. + - **View bar, 40px.** The view switcher is one trigger on the left, reading the view type's icon, the view name, the record count and a caret (the count beside the name returns, after objectstack#34603 removed it). 「筛选」「排序」「选项」 are text buttons on the right beside the search icon, and open the same panels as before; below `sm` they stay icons. The kanban and every other view type draw the same two bars. An empty condition row under the bar takes no height. + - **Grid.** A 32px header and 33px default rows, 13px on the header, the cells and the bar buttons, faint row lines, no rule after the first column, and the frozen-column shadow only once the grid scrolls sideways. The row ⋮ trigger is 24px so it fits the row. Lookup values read as small chips, money and number columns (a money formula with `returnType: 'currency'` among them) align right with tabular digits, and select labels keep their colour at lower saturation. + - **Totals.** Column summaries are drawn as the table's own last row, each figure under its column (so they line up at any width and are never covered by pinned columns), led by 「计数 N」; the separate footer line and its doubled colon are gone. + + `DataTableSchema` gains one host-only runtime slot, `summaryRow` (`{ lead?, cells }`), which `ObjectGrid` fills; like `rowGroups`, the zod face refuses it by name, so it is not authorable. New locale keys: `list.options`, `grid.summary.countLead`. +- 238661f: feat(list): the list's options panel is a menu of second levels, and the view dropdown creates a view in place + + Clause-②: no + Metadata-protocol: none + + **The options panel (选项) is a menu.** Each row names a setting on the left and shows its current value on the right, and opens a second level: the view name, Layout, Fields (「已显示 N 个」), Grouping, Row color, Row height (紧凑 / 标准 / 宽松), and More (how records open, row numbers, inline edit). On a phone a Sort row is added, as before. The Layout level lists every layout the view offers as one choice each, at any count. The Fields level is the list's shared field list (the one 筛选 and 排序 open), as the view's field manager: a search box on top; the shown fields are listed in their order, can be dragged (or moved with the arrow keys) and hidden by their eye, and the hidden fields sit below, where one click shows a field again or adds a readable field the view does not list. Only fields the reader may read are offered. The footer reads 「恢复默认」 and 「刷新」, and — on one of the reader's own views that differs from what it stores — 「保存」 beside 「恢复默认」, which writes the list on screen into that view (as the 「已个性化」 marker's 保存 does); in the console 「恢复默认」 is the marker's reset, dimmed while there is nothing to restore. The view name at the top is renamed in place by the view's owner, or by an admin on a saved shared view; opening the menu does not put the cursor in it. Fields reorders the grid's columns through the same state a header drag writes, and Row height on a gallery picks its card size by name; every icon button has a name; the developer note under Open records is gone. These settings stay the reader's own preference, stored as before. + + **The view dropdown** keeps its search and lists one row per view, led by its type's icon, with the reader's own views (我的视图) and the shared views in groups of their own; a long name wraps instead of being cut. 「添加视图」 at the bottom turns the dropdown into a create card (the separate 「另存为我的视图」 entry and its name dialog are folded into it; the full Create View dialog stays reachable from 「管理视图」): a name, the view type (with icons), the one field the type needs (kanban: the group field; calendar: the date field), 「包含当前的筛选和排序」 while the list holds unsaved conditions (on by default), and — for a reader who may create shared views — a personal / shared switch. The one field a type needs defaults to one the list shows (a kanban groups by 阶段 on a list that shows it, not by a hidden status-like field). 「创建」 creates one of the reader's own views by default and opens it; a shared view goes through the existing draft-and-publish door unchanged. No machine name is asked for: a unique one is generated from the name. A kanban or gallery created this way lists the view's columns as its card fields, as the add-view door does. + + The fields count label (`list.optionsMenu.fieldsShown`) is a count family in every pack. Keys no surface reads any more are dropped from every pack: `list.recordOpenNote`, `list.recordOpenDeclaredPage`, `view.switcher.all` and `view.switcher.saveAsMyView`. +- d96c878: feat(list): the object list page has no Actions column; a selection swaps the page bar, and a list with no declared pagination loads as it scrolls + + Clause-②: no + Metadata-protocol: none + + - **No Actions column on the list page.** The list's rows carry no control: no Actions column and no "⋮" at the row end, on hover or at rest. A row's actions are reached by selecting it or by right-clicking it. Grids outside a list page (related lists, page blocks, the record drawer) keep their Actions column and their bottom bulk bar. + - **Selection in the page bar.** Ticking rows swaps the page bar to 「对象名 / 已选 N 条」, Cancel, and the actions for what is selected: one record shows its own row actions, two or more show the bulk actions. The first two are buttons (in the order the actions are declared, by their `order`), the rest are behind "⋮", and Delete is never a button. Cancel, or clearing the selection, brings the page bar back. The bottom bulk bar no longer floats over the list on the list page. + - **Context menu.** In a row's menu (its context menu, and the "⋮" where one is still drawn) Delete is the last item, after a separator, in the danger colour; a selection's menu closes with its destructive actions the same way. + - **Checkboxes.** The whole leading cell toggles a row, and Shift extends the selection over the rows between the last toggled row and this one. + - **Scroll loading.** A grid list view that declares no `pagination` draws no pager: it loads 50 rows and the next 50 as the list nears its end, and shows the match total beside the view name. With every loaded row ticked, the page bar offers 「选择全部 M 条」 (capped at 5000 as before). Opening a record on its own page and coming back returns to the same place in the list. A view that declares `pagination` keeps its pager. Footer totals are still computed by the server over every matching record. +- b0c624a: feat(record-page): one tab per related list, and an Overview rail that sums up the other tabs + + Clause-②: no + Metadata-protocol: none + + The record page's tab row and its right column are redrawn (supersedes objectstack#28469): + + - **Tabs.** Overview, then one tab per related list in its order, then Attachments, Approvals and Activity last. Every tab is there at first paint and none moves when the counts land. A list with no records keeps its place, greyed, with no number. The width is the row's only fold: the tabs that do not fit go into 「更多 N ▾」, whose items keep their counts. Approvals carries a dot while a request waits, not a count. A tab that merges several tables (only an explicit page can write one) carries no count. + - **Overview.** The stage path and the key fields sit across the whole width on Overview only; every other tab draws its block in full in their place. + - **Right rail.** On Overview, the right column sums up the other tabs, in this order: Approvals, Attachments, Recent activity, then 「其他相关」 with a card for each related list that has records. Each card has a title (which opens its tab), a grey count and at most three rows. A card with nothing to show is not drawn, and there is no 「还有 N 个空关联」 line. Nothing in the rail is editable. A rail with no cards folds away. A drawer draws no rail and no right-column switch. The rail's rows come from the page's one read: it reads nothing more. + - **No band at the foot.** A page drawn as written that places no approvals or attachments panel gets them as tabs of its first tab strip, not as bands under the page. The header's approval tag opens the Approvals tab. + - **One approval band.** A page drawn as written whose details are split into several `record:details` nodes draws the record's approval band once, on the first body that reaches it, recall included. + + - **Reader arrangement leaves with the cards.** The related cards' ⠿ handle, ⌥↑ / ⌥↓ and 「隐藏」 are gone with the cards, so a reader can no longer reorder or hide a related list on the page. An order or hides already stored still apply, and 「恢复默认顺序」 / 「显示」 still undo them. + - **`?tab=related` is retired.** The single 「Related」 tab is gone, so a saved link carrying `?tab=related` opens Overview. + + `@object-ui/plugin-detail` adds `ApprovalBandOnceScope`. `@object-ui/i18n` adds the 「更多 N」 trigger and the rail's labels in every pack. Nothing an app authors changes. +- 1e018d6: feat: edit a record and its line tables together, and lock a record's lines while an approval locks the record + + Clause-②: no + Metadata-protocol: none + + **A locked record's lines are locked too.** While a record is held by an approval that locks it, writes to its master-detail child rows are refused with `RECORD_LOCKED` (409), the same answer a write to the record itself gets: inserting a row under it, updating or deleting one of its rows, and moving a row into it or out of it (both ends of a reparent are checked). A multi-row write that touches any such row is refused as a whole, and a row whose parent cannot be read is refused when the parent object has a locking approval the writer's run does not own. The approval's own exemptions carry over: system writes and the flow run that opened the approval still write. The refusal names the record by its object's label ("This Opportunity is locked while an approval is in progress, …"). Lookup children are not affected. `@objectstack/plugin-approvals` binds the new `bindDetailRowLockHook` beside the record lock it already binds. + + **`@object-ui/plugin-form` exports the record-page body-table editor.** `RecordBodyTableEditor` draws a master-detail body table as editable lines (the `LineItemsField` grid, with the child columns, field permissions and add / remove rules the master-detail form uses) for a host's edit session (`RecordEditSessionContext`). `buildRecordEditBatch` folds a record's field changes and every table's lines into one batch (the `buildMasterDetailEditBatch` diff, table by table), and `attributeRecordEditRefusal` places a refused batch's reasons on the record's field or on the line whose write carried the refused field. + + **`@object-ui/i18n`** adds `detail.bodyTableRow`, `detail.bodyTablesReadOnlyBulk` and `detail.discardInlineEditsMessage` to every built-in pack. + + **`@object-ui/plugin-detail`** exports `RecordBodyTableEditorSlotContext`: while a host provides it, a `record:related_list` whose relationship id (`CHILD_OBJECT.FK_FIELD`) is in the slot's set draws the host's element in its place instead of the read-only list. The record page's edit state draws its body-table editors through it; no new node type is registered. + + In the console, Edit on a record page that draws master-detail body tables now opens the page's edit state: the fields become inputs, the body tables editable lines, and one Save writes all of it in one batch. Per-field inline edit stays on every record page, those included, and saves the record alone through its save bar. One mode runs at a time: the edit state offers no per-field inline edit, and pressing Edit while inline changes are unsaved first asks whether to discard them. +- 6d86b43: fix(studio): Customize is offered only on a list view the read-only base ships + + Clause-②: yes (widening) + Metadata-protocol: none + + On a read-only base, an object's page in Studio lists every list view of the object, including views created in the app (the console's New view) and views the customization package adds. Customize declares an override of the base's view, and the server refuses that declaration for a view the base does not ship, so the first saved edit of such a view answered 403 ("declares an override of …, which ships no view named …"). Studio now reads whether the base ships the view from the layered read at the base (its code layer) and offers Customize only then. A view created in the app is read-only in Studio, and its panel says it is edited in the app, from Manage views › Edit view config; a view the base serves nothing of says the base does not ship it. Two new Studio strings carry those sentences, in English and Chinese. +- a3a74f2: feat(record-page): dense field rows, one-line activity entries grouped by day, and one row per attachment + + Clause-②: no + Metadata-protocol: none + + The record page now fits more on one screen: fields read as one row each with the label on the left, the activity feed shows one line per entry under a day heading with a one-line comment box, and each attachment is one file row with its actions in a ⋮ menu. + + New locale keys in every pack: `detail.streamToday`, `detail.streamYesterday`, `detail.viewApproval`, `detail.replyToComment`, `detail.attachmentsDropHint`, `detail.attachmentsChooseFile`, `detail.attachmentActions`. `RecordActivityTimeline` takes an optional `onViewApprovals`; `RichTextCommentInput` takes an optional `compact`; `CommentBody` takes an optional `controlsClassName`. No metadata key, value or default changes. +- 74d3d83: fix(console): a view added in an app is saved into that app, so its draft preview bar counts and publishes it + + Clause-②: yes (widening) — one new published language-pack key, view.savedOutsideApp, in all eleven packs (the fallback notice the maintainer's ruling 7024102451 names) + Metadata-protocol: none + + Add new view and Save as view used to save the new view's draft naming no package. The app's draft preview bar counts only the app's package and its customization package, so right after the create it said "no unpublished changes" while the draft was pending, and its Publish left the new view unpublished. A view created inside an app is now saved into the app: into the app's own package when that package is writable, else into its customization package (`BASE.custom`), which is created on first use. The bar counts the view at once, its Publish publishes it, and the view travels with the app's customization. Editing, discarding and publishing the view afterwards reach that same draft. Views saved without a package before this change keep their address. When the customization package cannot be used (an isolated multi-tenant deployment refuses a tenant administrator), the view is saved without a package as before, and a notice says that this app's draft bar does not count it and that it is published from Home. Reports, dashboards and pages are created as before. +- 598a34d: Clause-②: no + Metadata-protocol: none + + fix(list): the list page lines up on one 16px left edge; the checkbox column is 40px at any width; no row numbers + + The list page drew five different left edges, and on a list with more columns than fit, the selection column was squeezed to the checkbox's own 16px, flush against the left of the page. Now the page bar's object icon, the view bar's view icon, the header's select-all box, every row's checkbox and the footer's record count all start 16px in, and the selection column is 40px (16px in, the 16px box, 8px before the first column) on a list that scrolls sideways, on one that fits, and after scrolling sideways and back. The view bar's last text trigger ends 16px in, where the page bar's button ends. + + The grid no longer draws row numbers unless a host asks for them (`showRowNumbers`): each row's leading cell is its checkbox, shown at rest rather than on hover. This applies to every grid, the list page, related lists and the designers' grids among them. The list page's Options menu no longer offers a 行号 (Row numbers) switch, the 「已个性化」 (Personalized) marker no longer names row numbers, and `ListView` drops its `defaultRowNumbers` host prop; the `list.rowNumbers` and `console.objectView.personalizedParts.rowNumbers` keys leave every language pack. + + A non-selectable grid with a row click drew a hover 「打开 ›」 (Open) button in its row-number cell; with row numbers off by default that button now appears only where a host opts into row numbers. Clicking the row, and Cmd/Ctrl-clicking it, still open the record. + + Removed from `@object-ui/plugin-list`'s exports: + - `ListViewProps.defaultRowNumbers`: `<ListView defaultRowNumbers={…}>` → delete the prop. Row numbers are off by default; a grid host that wants them passes `showRowNumbers` to `ObjectGrid`. + - `'rowNumbers'` in `ListPersonalizationPart`: an `onPersonalizationChange` handler or a label map keyed on it → drop that entry; the list no longer reports it. A grid whose authored columns all fail to resolve now says it renders "NO data columns" in its console diagnostic, since it no longer draws a row-number column. +- 811858c: feat(list): a list's cells are selected by a click and edited by a double-click, Enter or typing, with no inline-edit toggle + + Clause-②: yes (widening) + Metadata-protocol: semantic + Skills-docs: none — `skills/objectstack-ui/rules/list-views.md` already teaches that inline editing is on by default for a user who may update the object, with `userActions: { editInline: false }` as the opt-out, which the list page now does with no toggle; no skill teaches the toggle or a single-click edit. + + **The list page (`ListView`) has no inline-edit mode and no toggle.** Its grid is editable in place wherever the reader may update the object and the view does not declare `userActions.editInline: false`; a view's boolean `inlineEdit` still folds into that switch, so `inlineEdit: false` reads off and `inlineEdit: true` reads on. Before, a view that declared neither opened read-only with an "Edit inline" toggle in the toolbar and in the Display menu, the mode lasted for the session, and a click on a cell edited it. Both toggles are gone, and `ListViewProps.onInlineEditChange` is deprecated and never called; the console stops passing it. + + **The select-first cell model** (`data-table`, behind the new `GridCellSelectionProvider` in `@object-ui/components`; `ObjectGrid` mounts it when its host passes the new `cellSelection` prop, and `ListView` passes it for every `object-grid` view it draws, on the hosts listed below): + + - A click selects a cell (a ring around it) and neither edits it nor opens the record. A link the cell draws (the name, a lookup, a phone or an email) keeps its own click. A touch tap opens the record and never edits in place. + - Double-click, Enter or F2 edits, keeping the value with the caret at its end; typing a character replaces the value with it (a picker or a date opens instead); Backspace or Delete clears the cell and saves at once, and a required field keeps its value and says it is required (objectstack#36023). + - While editing, Enter commits and stays on the cell (objectstack#36023), Tab and Shift+Tab commit and move right and left, Escape cancels and keeps the cell selected; in a multi-line editor Enter is a new line and Ctrl/Cmd+Enter commits. Commits are the grid's staged edits, saved by the row's Save and Save All as before. + - On the selected cell the arrows and Tab move the selection, Space opens the record (a checkbox cell flips and commits instead, as a second click on it does), Ctrl/Cmd+C copies, Ctrl/Cmd+V converts the text to the field's type and commits it, and Escape clears the selection. + - An input method's composition is kept whole: keys pressed while composing, and the 229 Enter Safari raises after it, never commit, cancel or move, and a composition started on a selected cell opens the editor with the composed text. This guard applies to every `data-table` editor. + - A cell that opens no editor says why on the cell: the field is read-only, calculated or not editable in a list, the reader may not edit the field, these records or this record, the view turned editing off, or the record is locked by an approval. The approval lock is read from the approvals service's per-record lock when a cell of the row is selected, through the record page's rule (`resolveApprovalLock`); until it answers, the row's `approval_status` stands in only where the view fetches that column, which a view that authors its columns does only when a column, a row predicate or a grouping names it. + + Every grid a `ListView` draws has this model, because `ListView` passes `cellSelection` to each `object-grid` view: the console's object list pages, interface list pages, the object data page (`/apps/:app/:object/data`), the Studio Data pillar's records artboard, and every `list-view` block, whether an SDUI page node or a `ListView` on a `kind: 'react'` page; a grid no `ListView` draws mounts no provider and keeps its click-to-edit (`singleClickEdit`) and click-to-open behaviour unchanged: an authored `object-grid` node, `ObjectView`'s own grid (the `object-view` block, or a host that passes no `renderListView`), a related list, a dashboard table, the record picker and the designer's grids. + + On every `ListView` grid (the select-first model) the table's trailing edit column, which holds a changed row's Cancel and Save, is drawn only while a row has changes, so the list at rest ends on its last data column. `@object-ui/core` exports `resolveAffordanceGrant`, the grant half of `resolveAffordance`, which the list cell's read-only reason reads. + + New locale keys, in every pack: `table.cellReadOnly` and `grid.readOnlyReason.*` (nine reasons). No key is removed: `list.inlineEditShort` and `list.inlineEditLabel`, the toggle's words, stay in every pack, though the list no longer draws the toggle. +- fac1e7d: feat(list): a list cell saves the moment it is committed, and Space types into the selected cell + + Clause-②: yes (widening) — new members on the `@object-ui/react` package entry: `createOwnWrites`, `OwnWritesContext`, `useOwnWrites` and the `OwnWrites` type, and an optional third parameter on `useDataInvalidation`; three new `table.*` keys in every `@object-ui/i18n` locale (`cellSaving`, `cellSaved`, `openRecordToFinish`); nothing removed or renamed + Metadata-protocol: none + + In a grid that mounts `GridCellSelection` (the select-first grid every `ListView` draws), a committed cell edit is now saved at once, as one update for that record: + + - **No save bar, no row Save/Cancel column, no amber row.** The cell shows a small spinner while the save runs and a check mark once it landed. + - **Only that row is redrawn**, from the record the write answered with, so a value a server hook rewrote shows as stored. The list is not read again, though the write is still announced to every other reader (the record's detail pane, related lists, counts): the grid holds the record in the list's `OwnWritesContext` registry for the length of its write, and `ListView` lets that one write go by. So a row whose new value would sort it elsewhere stays where it is until the next load (refresh, sort, filter or page change). The counts on group headers, read with the rows, follow on the next load too; the footer's whole-set summary is its own reader and still refreshes on the write. + - **A refused save keeps the typed value** and shows the server's reason on the cell. Esc puts the stored value back. Later edits on the same row are sent together with the refused one as one update. When the reason names a field the list does not show (a rule that needs another field), the notice offers to open the record. + - **The 409 conflict dialog is unchanged.** The next save on a row sends the version the previous save answered. + - **Space** on a selected cell now types a space and opens its editor, as any other key does. A two-state (boolean) cell still flips. The record opens from the title link or a touch tap; the "Space opens the record" key added in #35747 is gone, so a master-detail page opens its pane only that way too. + + `@object-ui/react` adds that registry: `createOwnWrites()`, `OwnWritesContext` / `useOwnWrites()`, and `useDataInvalidation(objectName, recordId, ownWrites)`, which skips a change naming a held record. + + Grids without `GridCellSelection` keep the staged save bar and its batch save unchanged. + + New `table.*` strings in every locale: `cellSaving`, `cellSaved`, `openRecordToFinish`. +- 8500ee7: feat(list): confirm a state-machine move before a list cell saves it; the drawer's save bar says when the record changed elsewhere + + Clause-②: yes (widening) — `GridCellSelection` in `@object-ui/components` takes an optional `confirmCommit(row, columnKey, value)` member; nothing removed or renamed + Metadata-protocol: none + + In a grid that mounts `GridCellSelection` (the select-first grid every `ListView` draws): + + - **A move of a state-machine field asks first.** When an active `state_machine` validation rule of the object governs the field on update, a new value committed into its cell (picked in the editor, or pasted) opens a confirm naming the field and both values and saying saving may trigger related automation. Cancel writes nothing and the cell keeps what it showed; Change saves the value as any commit is saved. Focus goes back to the cell either way. + - **The generic seam:** `GridCellSelection.confirmCommit` is asked before a value that changes what a cell shows is staged or saved. A promise holds the write until it settles (`true` writes, `false` or a rejection writes nothing); `null` or `undefined` means no question, as before. + + On a record page or in a record drawer, `InlineEditSaveBar` now says so when the record is read again at another version while an inline edit session is open (a list cell beside the drawer saved it, say). The draft stays as typed, and Save writes it over the version now read, as it did before; only the note is new. +- c00be39: feat(fields): in a list grid's cell editor, select, multi-select, tags, date, time and colour open ready to pick + + Clause-②: yes (widening) + Metadata-protocol: none + + The widget contract `FieldWidgetComponentProps` gains two optional host keys, `inCell` (draw the face for a grid cell's editor) and `onCommit` (the user has finished: write the last `onChange` value and close). `FieldEditWidget` forwards both, and `ObjectGrid`'s cell editor passes them. A host that passes neither renders every widget exactly as before. + + In the cell editor of every grid `ObjectGrid` draws: + + - **Single select and status** show their option list at once, with a search box that filters as you type. The arrow keys move through the list, Enter or a click picks, and the pick is saved; the selection stays on the cell. With nothing picked, Enter commits as before and Escape cancels. + - **Multi-select** (and a select declared `multiple`) is the same list with check marks: each pick toggles, and the edit is saved when you move on. + - **Tags** list this record's tags with check marks; unchecking removes one, and text that matches no tag is added from the list's leading "Add" row (Enter). + - **Date and date-time** open their calendar at once while the typed value stays visible and editable in the text box. The calendar offers Today, Tomorrow, Next week (seven days from today) and Clear. On a date, picking a day or a quick pick saves and closes; on a date-time, a day keeps the calendar open for the time, as in forms. + - **Time** opens the browser's time picker when the editor opens. + - **Colour** shows the hex box first (Enter saves, Escape leaves) and a row of swatches plus the browser's colour picker; a swatch saves and closes. + - A value picked this way hands the keyboard focus back to the selected cell, and in a grid that edits on a single click, the click that picked it no longer opens the editor again. + + `@object-ui/i18n` adds the strings these faces show in every locale: `fields.datePicker.nextWeek`, `fields.datePicker.clearPick`, `fields.options.search`, `fields.options.noMatches`, `fields.tags.add`, `fields.color.swatches`, `fields.color.custom`. + + Forms, dialogs and the record page keep their current controls. +- 5345905: feat(components): in a list's grid a read-only cell says it is read-only, a cell save is said in one live region, and a touch never edits a cell in place + + Clause-②: yes (widening) + Metadata-protocol: none + + The widening is additive: the new key `table.cellSavedAnnouncement` in every locale pack `@object-ui/i18n` publishes through `./locales`. + + - **Read-only cells.** When the data table is a grid (`role="grid"`: a list page with the select-first cell model, or `keyboardNavigation`), a cell that opens no editor carries `aria-readonly="true"`, and so does the focus inside the selected cell, so a screen reader says "read only" on the cell it moves to. The selected cell adds the host's own facts (`GridCellSelection.describeCell`), asked as it becomes selected and again only when the row is re-read or the host hands a new value, never on each render; the rest read the table's own (`editable`, the column, the row). A plain table carries no `aria-readonly`. In a list, an approval lock or an update verdict that answers after the cell was selected is said on that cell at once, without the reader moving: the lock read re-renders the grid when it answers, and the grid hands the table a new value only when what its cell facts read changed. + - **Save results.** A table that saves each cell (`GridCellSelection` with `onRowSave`) draws one visually hidden polite live region for its whole life and says each saved cell there, by column name ("Saved: Amount"; new pack key `table.cellSavedAnnouncement`, in all eleven locales). Cells saved together are joined in the locale's list punctuation (`validation.formInvalidJoiner`: `、` in ja and zh); a column with no header is never named by its key (the region says "Saved"). A refused save is said once, by the cell's existing alert. The cell's saving/saved mark is no longer a live region of its own (it was mounted with its words and announced unreliably); it stays a named image. + - **Touch.** A tap on a cell that is not selected never edits in place: a lookup cell's edit button is not drawn for a finger, and a tap that lands on one drawn earlier for a mouse does nothing (the row ignores a click on a button). A tap elsewhere on the cell still opens the record, which is where a touch edits. A later click on the button with no pointer of its own (assistive tech) edits as before. +- af566c2: feat(spec): `count_true` / `count_false` column summaries — a boolean column's Yes and No counts in the list footer and group headers + + Clause-②: yes (widening) + Metadata-protocol: added + + `ListColumn.summary` accepts two more members, `count_true` and `count_false`: the number of rows whose boolean (or toggle) cell is true, and the number whose cell is false. A cell with no value is neither; it stays `count_empty`'s, so `count_true + count_false = count_filled`. + + Both are answered on the server with no new aggregation function: booleans aggregate as numbers on every backend, so `count_true` is `SUM(field)` and `count_false` is `COUNT(field) − SUM(field)`, read off the group header row (or the footer's whole-set row) by `deriveColumnSummary`. `COLUMN_SUMMARY_AGGREGATION`'s derived rows now carry `reads`, every node the member reads (`from` is its first); `columnSummaryNodeFunctions(mapping)` is the one reading of a row's nodes, which the group header compiler, the footer's whole-set query and the lint now share. `COLUMN_SUMMARY_FIELD_TYPES` / `isColumnSummaryCompatibleWithFieldType` say the two members apply to `boolean` and `toggle` only. + + `@objectstack/lint` refuses `count_true` / `count_false` over any other field type under `list-view-summary-field-type-refused` (an error, so `os validate` and the save door fail): over a number the same `SUM(field)` is a total, and the footer would print it as a count. + + `@object-ui/plugin-grid`'s footer menu offers Count of Yes and Count of No first on a boolean or toggle column, and only there; the footer draws them as `Yes 12` / `No 3`, from the whole matched set when the server answers it and from the page, labelled as the page's, when it does not. `@object-ui/i18n` adds the `grid.summary` keys `countTrue`, `countFalse`, `menuCountTrue` and `menuCountFalse` in every pack. +- f909734: feat(ui): a resident footer row on list tables, where a reader who may change the view picks each column's calculation + + Clause-②: yes (widening) + Metadata-protocol: none + + A list's table view now always ends in one footer row, aligned with the columns and held at the bottom of the table: the record count in its first cell, and under each column its calculation, if any, written as the calculation's name in the secondary text colour and the figure in the normal one, with a space and no colon (`Sum ¥1,234,500`). A `min` / `max` over a date reads Earliest / Latest. The list's own "N records" line at the foot of the page is gone from a table that draws this row; the data-cap notice stays there. A grouped table, the phone's card list and every other view type are unchanged. + + A reader who may change the open view clicks a cell to pick the column's calculation from one menu that lists what the field type allows (sum and average on numbers and amounts, earliest and latest on dates, the counts on any field), the current one ticked and None last. The console saves it as the column's `summary` on the view, and nothing else of the reader's layout. On a personal view it is saved at once and stays drawn. On a shared view the console saved, a reader who may edit it saves it as a draft through the view settings' own save: the draft save reloads the list, which then draws the published view again, so the pick shows for a moment and is drawn again, for every reader, once the draft is published. Until #35932, each pick's draft is built on the published view, so a second pick before Publish replaces the first in the draft: only the latest pick is published. The menu is offered on the columns the view itself declares; a column the reader added for themselves and a view that declares no columns draw the figures with no menu. A pick that is not saved is taken back, with the refusal said (a view a read-only package ships is refused this way: its changes go to the package's customization). A reader who may not change the view sees the figures and no menu. + + New host props, all optional and never authored metadata: `ObjectGrid` takes `residentSummaryRow`, `onColumnSummaryPick(field, summary)` (answer `false` to have the pick taken back), `summaryPickFields` and `onResidentSummaryRowChange(drawn)`; `ListView` takes `onColumnSummaryPick` and `columnSummaryPickFields`. `ColumnSummaryResult` gains `name` and `text`, the two halves of its `label`. `@object-ui/i18n` adds the `grid.summary` keys `earliest`, `latest`, `pageName`, `calculate`, `none`, `menuPercentEmpty` and `menuPercentFilled` in every pack. +- c9b0a23: feat(service-storage): rename an attachment through a door by the attachment delete rule, and the Attachments tab names the uploader of other people's files + + Clause-②: yes (widening) + Metadata-protocol: none + + Two additions, no answer narrowed: + + - **The rename door.** `PATCH /api/v1/attachments/:id` with `{ "file_name": "..." }` sets the name one `sys_attachment` row is listed under, by the attachment delete rule: the caller who uploaded it, or a caller the attachment update gate admits as an editor of the record it is attached to. The door reads the row as the caller first, so every attachment read rule applies; the uploader's rename is written on the caller's behalf with no edit grant, as the uploader's removal door does; anyone else's goes through the data engine as the caller, so the object's edit grant and the update gate judge it. It answers `{ id, file_name }` (200), and refuses `UNAUTHENTICATED` (401), `VALIDATION_ERROR` (400: a query parameter, a blank name, or any body key besides `file_name`), `RECORD_NOT_FOUND` (404: an attachment the caller cannot read answers as one that does not exist) and the update gate's `RECORD_NOT_ACCESSIBLE` (403) for a caller who can read the record but not edit it. Only the attachment row's name changes: the stored file, its bytes and the name a download carries are untouched. The package's exports are unchanged; `StorageServicePlugin` mounts the door beside the removal door. + - **The uploader, expanded.** The record page payload's `attachments` part (`POST /api/v1/data/:object/:id/page`) now asks its `sys_attachment` read with `uploaded_by` expanded, as the `activity` part expands its actor, and the Attachments panel's own list read does the same. The expansion is a read of `sys_user` as the caller: a reader who may read the uploader gets that user's row (its name), and a reader who may not keeps the stored id. A consumer of that part that compared `uploaded_by` with a user id now reads `uploaded_by.id` where the reader may read the user. + + The record Attachments tab shows the uploader's name on every row whose uploader the reader may read, and never shows a bare id. Its row menu offers Rename beside Delete, on the reader's own uploads and, to a reader who also holds the edit grant on `sys_attachment`, on every row, opening a name prompt; the new name is the one the list shows after a reload. + + `@object-ui/core`: the affordance-to-grant map gains the `attachmentRename` row (the edit grant on `sys_attachment`), which the panel asks for a row the caller did not upload. +- f51578e: fix(app-shell): a decided approval step shows its step and decision in "Approval progress" instead of an empty card + + Clause-②: no + Metadata-protocol: none + + On an approval request's page, a request decided at the first step of its flow, or decided in a one-step flow, showed an "Approval progress" card with nothing in it: the step line drew only from two steps up, a single-approver step has no tally, and nobody is pending any more. The step line now draws a decided request's route even when it is a single step, and marks the request's own step with its decision (Approved, Rejected, Returned for revision, Recalled or Cancelled) instead of drawing a rejected, returned, recalled or cancelled step as the step in progress. A pending request still needs two steps for a line, as before. A progress card with nothing to draw (no line, no tally, nobody pending) is no longer drawn at all. + + New locale key: `approvalsInbox.statusCancelled` in every ui language pack. Inside `@object-ui/app-shell`, `ApprovalStepLine` gains an optional `decided` prop and its module exports a new `stepLineDraws` helper; neither is exported from the package entry, so the package's public exports are unchanged. No metadata changes. +- 1d7015a: feat(record-page): a related list's tab moves left or right and hides, and 「更多」 restores the default order + + Clause-②: no + Metadata-protocol: none + + **Reader arrangement is back.** The related cards' ⠿ handle, ⌥↑ / ⌥↓ and 「隐藏」 left the page with objectstack#35595, and with them the reader's way to reorder or hide a related list. This note supersedes the "Reader arrangement leaves with the cards" bullet of that release's note: 「左移」, 「右移」 and 「隐藏」 now sit on each related tab's own menu, 「恢复默认顺序」 sits in 「更多」 (in a drawer and an embedded pane too), and an arrangement already stored keeps applying. + + - **A related list's tab is its menu.** Open a list's tab and click it again (or press Enter, Space or ↓ on it): 「左移」 and 「右移」 move it one place among the related lists, and 「隐藏」 takes it off the row into 「更多」's hidden lists and returns to Overview. The open tab draws a ▾ to say so. + - **「更多」 restores the default.** While the order or the hidden set is not the default, 「更多」 ends with 「恢复默认顺序」: the default order with every list shown. It is in a drawer and an embedded pane too, which have no rail. + - **Fixed tabs.** Overview, Attachments, Approvals and Activity have no menu and never move. + - **One stored arrangement.** The tabs write the same per-reader, per-object arrangement the related cards wrote, so an order or hides already stored keep working, and the rail's 「已隐藏 N · 显示」 and 「恢复默认顺序」 still undo them. + + `@object-ui/i18n` adds `detail.recordTabMoveBefore` / `detail.recordTabMoveAfter` (左移 / 右移) in every pack. `@object-ui/plugin-detail` removes the unused `RelatedCardStack` and `useRelatedArrangement` modules (not exported from the package). Nothing an app authors changes. +- 40e22f1: fix(approvals, list): a list cell no longer opens an editor before it knows the record's approval lock, and the list reads the locks of a page in one request + + Clause-②: yes (widening) + Metadata-protocol: none + + **What a list user sees.** On a list that edits in place, a double-click, Enter, F2 or a typed key on a cell whose record's approval lock or edit permission is still being read no longer opens an editor that the server would then refuse on save. The cell says "Checking whether this record can be edited…", and when the answer arrives the same edit goes ahead by itself (with the typed key), or the cell says why it does not: the record is locked while it is in approval, or the reader has no permission to edit it. Selecting another cell in the meantime drops the wait. Moving the selection with the arrow keys no longer sends a lock request per row: the first cell selected on a page asks the locks of every row on it at once. + + **New route.** `POST /api/v1/approvals/records/:object/locks` with the body `{ "recordIds": ["<id>", ...] }` (at least one id, at most `APPROVAL_RECORD_LOCKS_MAX_RECORD_IDS`, 200) answers `{ success: true, data: { records: [{ recordId, locked }] } }`, one entry per id in order. `locked` is what `GET /api/v1/approvals/records/:object/:recordId/lock` answers for that id, and `null` where that route answers 404: a record the caller cannot read and one that does not exist answer alike. Any other body (a key other than `recordIds`, an empty list, a non-string or blank id, more ids than the cap) and any query parameter are refused whole with `400 VALIDATION_ERROR`, never trimmed. A deployment whose approvals service does not implement the read answers `501`. + + **Contract and SDK.** `IApprovalService` gains the optional member `getRecordLocks(object, recordIds, context)`, entry `i` answering `recordIds[i]` exactly as `getRecordLock` does; the approvals plugin implements it in two reads whatever the page size (the caller's read of the ids, then one pending-request lookup judged by the record-lock hook's own judgement). `@objectstack/spec/contracts` exports `APPROVAL_RECORD_LOCKS_MAX_RECORD_IDS`. `@objectstack/client` gains `client.approvals.getRecordLocks(object, recordIds)`. + + **Components.** `GridCellFacts` (the select-first table's per-cell facts) gains the optional `checking: { text, settled }`: while present, an edit asked on the cell shows `text` and is asked again when `settled` settles; a toggle, paste or clear shows `text` and writes nothing. A host that sets no `checking` sees no change. +- d6be99d: feat(console)!: an object's list opens a record one way — the name opens the page, the hover icon opens the side panel; `navigation.mode` is deprecated + + Clause-②: yes (narrowing) + Metadata-protocol: semantic + + <!-- adr-0087: not-required (runtime-export-retired @object-ui/components#NavigationOverlayProps.maximizable, @object-ui/plugin-list#ListViewProps.recordOpen) the retired operands are a prop of the drawer component and a host prop of the list, in published ui package entries; no packages/spec schema, no registered node type, no ADR-0087 conversion surface and no stored shape names them, so there is nothing for `objectstack migrate meta` to rewrite --> + + **BREAKING** for a host that passed `NavigationOverlay` its `maximizable` prop or passed `ListView` a `recordOpen` choice. The maintainer ruled one way to open a record from an object's list, with no setting (「这样就不需要任何设置」), and deprecated `navigation.mode` (「废弃」). + + On a Console object list the record's name now opens the full record page, and the icon shown beside the name while the row is hovered (「在侧边打开」 / "Open in side panel") opens the record in the drawer over the list. There is no setting to choose between them: the Display menu's 「打开记录:抽屉 / 整页」 section and the browser-kept preference behind it are gone. A touch screen has no hover, so there the name opens the page. A ⌘/Ctrl or middle click on the name still opens the page in a new tab. + + The drawer is a card floating 8 px clear of the window's top, right and bottom edges, rounded and shadowed. Its full-width "maximize in place" state is gone (a reload lost it, and the full page is the wide face): the bar's one ⤢ opens the full page. The page's 「收为抽屉」 / "Collapse to drawer" hop is gone with it. + + A page the list opens remembers the list in its history entry (`location.state.from`): the list's URL (view, filters, sort, search, grouping, page), its view's name, the rows it showed and, new here, the count its query matched (`total`). A reload of the tab keeps it, and going back to that URL restores the list's scroll position. A page opened any other way carries none. + + `navigation.mode` (`NavigationConfigSchema.mode`) is deprecated on an object's list (`@deprecated`, `[DEPRECATED]` describe; ADR-0087 D3 semantic entry `navigation-mode-record-open-deprecated`). The key stays in the shape and every value still parses, so existing metadata loads. On an object's list (a list view, an object's `listViews`) `drawer`, `page` and `new_window` change nothing: a view that declares one behaves as a view that declares nothing. `none` keeps "rows open nothing", because a read-only list that started opening records would be a regression nobody chose; prefer `navigation: { preventNavigation: true }`. `navigation.openNewTab: true` stays live: on an object's list the record's name then opens the full page in a new tab, and the list stays. A page's blocks that carry `navigation` (a list block, the timeline, an embedded view) still honour `drawer`, `page` and `new_window` as before: keep the key there. + + The i18n keys `list.recordOpen`, `list.recordOpenDrawer`, `list.recordOpenPage`, `list.optionsMenu.recordOpenAlwaysPage`, `detail.collapseToDrawer` and `console.objectView.openAsPage` are removed from every pack, and `console.objectView.openInSidePanel` is added. + + What leaves, and what to write instead: + + - FROM `NavigationOverlayProps.maximizable` TO nothing, in the components package: the drawer has no full-width state. Fix: delete `maximizable`; the drawer's ⤢ opens the full page. + - FROM `ListViewProps.recordOpen` TO nothing, in the list plugin: the Display menu has no Open records section. Fix: delete `recordOpen`; the list opens a record one way. +- 0a1b69c: feat(approvals): a decided request's step line says where the record's approval went next: on to a later step, or ended + + Clause-②: yes + Metadata-protocol: none + + The single approval request read (`GET /api/v1/approvals/requests/ID`) serves one more fact on a decided request's own route: `flow_route.outcome`, beside `ahead: 'decided'`. Before, a decided route stopped at the request's own step, so an approver reopening a request they had decided could not tell whether the record's approval went on to a later step or ended. + + - `outcome.step` is the run's latest request when it is a later one than this request (a request of the same flow run opened after it, on any node, a later round of the same node included; a pending one wins over a decided one). It is absent when no later request was opened in that run; a request a child run opened is not among them. + - `outcome.status` is that latest request's status, or this request's own when `step` is absent. `pending` with a `step` means the approval went on to that step and waits on its decision. + - `outcome.ended` is `true` only when the record's approval is known to have stopped: the request's run is a root run (not a `subflow` body or a `map` item, whose end is not the approval's), the flow body the run ran holds no `subflow` or `map` node anywhere, regions included (a child run files its requests under its own run, so this run's requests cannot show what it decided, before or after this request), and the run reports it stopped for good, with the same terminal set the dead-run sweep uses. The body the run ran is known only when the body armed now is the flow's newest registration and was registered before the run started, so a flow edited, rolled back or re-registered after a run started is never judged by its current body for that run. `false` means not known to have stopped: the run goes on, is a child run, ran a body that can start a child run, ran a body that is not known, cannot be read, or was opened before this release (the approval node now records on each new request whether its run is a root run). + + `outcome` is absent when nothing past the request is known: no later request was opened and the approval is not known to have ended, or several later requests are pending at once (parallel steps). A pending request's route never carries it. It is served to every reader of the request and says only where the same approval went: the later step's node id and label and that request's status, never the later request's id, approvers, comments or field values. The `ApprovalRequestRow.flow_route` contract type in `@objectstack/spec/contracts` gains the optional member, and `routeOutcome` in `@objectstack/plugin-approvals` is the rule. + + The approval request page (`@object-ui/app-shell`) draws one line under the decided step: "Went on to STEP, waiting for a decision", "Went on to STEP: DECISION", "Went on to STEP, then ended: DECISION", or "The approval ended here". No line is drawn when no outcome is served. `@object-ui/i18n` carries the four new `approvalsInbox` rows in every built-in locale, and the console's request type (`@object-ui/console`) mirrors the new member. + + Nothing to migrate: a caller that does not read `outcome` is unaffected. +- dea68e9: fix(plugin-list): a list's column header opens a menu and keeps a multi-level sort; a sort chip opens the sort panel + + Clause-②: yes (widening) + Metadata-protocol: none + + On a list page (the grid `ListView` draws), a click on a column header no longer sorts at once. It opens the column menu: sort ascending, sort descending, hide the column (a column that does not sort offers hide alone). Enter, Space or ArrowDown on the focused header opens the same menu, the arrows move through it, Enter chooses, and Esc shuts it without touching the sort. With no sort or a single level, the column picked in the menu replaces the sort; with two levels or more it becomes the first level, the other levels keep their order after it, and a column already in the sort moves up with the picked direction. No level is dropped. The ↑1 / ↓2 marks on the headers are unchanged. + + A sort chip under the view bar no longer reverses its direction on a click: it opens every sort level in one panel. Each level row in the sort builder now has a handle; dragging it, or ArrowUp / ArrowDown on the focused handle, reorders the levels. + + New public surface, all additive: `GridHeaderMenuProvider` and `useGridHeaderMenu` from `@object-ui/components` (a host opts a data-table into the header menu; without it a header click sorts as before, so related lists, dashboard tables and every other host keep click-to-sort); the `headerMenu` runtime prop on `ObjectGrid`; and the `sortBuilder.reorder` key in every `@object-ui/i18n` locale. The column menu itself is now a menu (`role="menu"` entries, keyboard reachable) wherever it opens, including a right-click on a header and the design host's caret. +- b113178: feat(list): the list page's toolbar is two rows: 「Object / View ▾ · View settings … Search · New · ⋮」 and a resident condition row + + Clause-②: yes (widening) + Metadata-protocol: none + + The console's object list drew three rows above the table: the object's name with ⋮ More and New, the view bar with Filter N, Sort N, Options and search, and a condition row that appeared only once a sort or filter was set. It now draws two: + + - The view bar starts with the object's icon and name, 「/」 and the view switcher, then 「View settings」. Its right end is the search, the page's toolbar actions, New, and ⋮ More last at the right edge. While rows are selected the right end shows what the selection offers, and ⋮ More keeps its place and its icon (⋮, also in the selection face). + - The Filter N and Sort N buttons are gone from the bar. The condition row is always there: with nothing set it shows dashed 「Sort」 and 「Filter」 buttons; a sort of any number of levels is one chip, 「Sorted by X」 with 「+N」 for the further levels, which opens the sort panel; each filter is its own chip with ×, followed by 「+」. The row's right end is 「Personalized」 and 「Reset」 while the list differs from its view. The table no longer moves down when the first condition is set. + - 「Options」 is renamed 「View settings」 and sits beside the view name. Its first level shows the content itself: the view's name, the shown columns (drag to reorder, the eye to hide) and 「+ Add column」, then Layout, Group, Row height and Row color where offered, and Save, Restore defaults and export in its footer. The More level and its inline edit switch, and Refresh, are gone. + - As the list narrows, 「View settings」 folds to its icon first, then the word 「Personalized」 goes, then 「Reset」 folds to its icon. The condition row stays one line and scrolls sideways. + + For hosts of `ListView`: two optional host props, `toolbarTrailing(tools)` (the bar's right end, given the list's search) and `conditionRowEnd` (the condition row's right end, drawn in place of the row's own Reset). A host that passes neither gets the search alone at the bar's end and the row's own Reset. +- 138faaa: feat(app-shell): on a phone, sign-in lands in an app whose home is its whole menu, and the bottom bar is fixed to Home, Notifications, Approvals and search + + Clause-②: no + Metadata-protocol: none + + Phone width only (below 768 px). Desktop and tablet widths do not change. + + - **Where sign-in lands.** A phone opens the app the person used last. The app the product marks as default is used only when there is no record yet, for example on a first sign-in. With one app it opens that app; with several and neither, it opens the app list. The last app is kept per person with their other console preferences (the `ui.app.last` key), so it follows them across devices. It is read in the same request as those preferences, not in a new one. A desktop still lands on the declared default first, as before. + - **The app's home is its whole menu.** On a phone, `/apps/SEGMENT` shows the app's menu with its groups, order and icons, one row per entry. It no longer redirects to the first entry. This is the sidebar's own menu drawn in a second place, so it cannot list an entry the sidebar hides. 「‹」 on a page one level down goes back to it, and the page comes back scrolled as it was left. An app that shows the member no entry still says so. + - **App switcher.** The app pill at the top left opens a bottom sheet: 「Current app」 with a check, then 「Other apps」 with Setup last, and a search box at the bottom. On a phone, `/home` is that same list as a page. + - **Bottom bar.** The bar has three fixed cells, Home, Notifications and Approvals, and a round search button. They do not change with the app and cannot be configured. Home opens the app's home. Notifications and Approvals open the pages the bell opens, with the bell's two counts as badges. Search opens the command palette. The bar shows only on those three pages; a list, a record, a form or any deeper page has the screen to itself. The bar no longer holds menu entries, a 「More」 cell or pinned entries (objectstack#34594). Pins already stored are ignored, and the drawer's menu search and pin hint are gone. The drawer still opens with a swipe in from the left edge. +- 411fe24: feat(list): a phone's object list gets its own top row, one row of pills, and bottom-sheet sort, filter and view panels that apply on 「✓」 + + Clause-②: yes (widening) + Metadata-protocol: none + + At phone width (below `sm`) the console's object list changes its containers, not its content: + + - The app bar's row becomes the page's own: 「‹」, the object's icon and name, and 「⋮ More」 at the right. The app pill, the page title, the search, the bell and the avatar are not drawn while the list is on screen (the phone has them in the bottom bar and on the app's home). 「⋮ More」 offers 「Select」 (only on a card list whose rows take more than one tick), the object's description, Import and the favorite. + - Below it, one row of pills: the view switcher, Sort and Filter with a count of what is in force, and Search, which expands into a field in place. There is no condition row on a phone. + - Sort, Filter, the view switcher and View settings open as bottom sheets. The sort and filter sheets edit a copy: 「✓」 applies it through the same write the desktop chips use, 「×」 drops it. The sort sheet lists each level on two lines (field over direction) with a handle a finger can drag (or ArrowUp / ArrowDown moves), a ⋯ menu per level (change field, direction, remove) and 「Add sort」. The filter sheet lists the conditions, each with a ⋯ menu (edit, remove), and shows a sentence and 「Add filter」 when there are none. A view whose filter is an 「or」 group says it uses an advanced filter and is changed on a computer. View settings keeps its desktop content and applies as before. 「✓」 on an untouched copy writes nothing. While the on-screen keyboard is up, a sheet stands on it (it reads `visualViewport`), so its 「✓」 and the focused field stay in view. + - A long press on a card starts selecting with that card ticked, as 「Select」 in 「⋮ More」 does with none; a tap then ticks or unticks a card, and unticking the last ends it. The selection shows in the list's floating selection bar, which after 「Select」 reads 「0 selected ×」 until a card is ticked. The 「+」 create button is not drawn while selecting. A card is also a keyboard control: Enter opens it, and while selecting Enter or Space toggles it. + + New exports and props: + + - `@object-ui/plugin-list`: `PhonePanelSheet`, `useListPhonePanels`, `PHONE_CHIP`, `PHONE_CHIP_ACTIVE` and the types `PhonePanelSheetProps`, `ListPhonePanels`. + - `@object-ui/plugin-grid`: `requestListSelection`, `useListPageSelecting` and `useListPageSelectable` (would 「Select」 open a selection in this page's list); `BulkActionBar` takes `open` (show 「0 selected ×」 with no actions while a host's selection is open and empty). + + `@object-ui/app-shell` changes no public export: the page's top row is an internal store (`PhonePageBarProvider`, mounted by `ConsoleLayout`). +- 48c732c: feat(console): on a wide full record page the details are pinned in a left column and the other tabs sit beside them; the right summary rail is retired + + Clause-②: yes (widening) + Metadata-protocol: none + + The synthesized record page (objectstack#35890, ruling on the card 7064066204): + + - **Pinned details.** A full page whose content fits a 320 px details column, a 24 px gap and 400 px of tabs pins the record's details in a left column and draws the other tabs (related lists, Attachments, Approvals, 动态) beside them, opening on the first. The column is 400 px wide and narrows toward 320 px on a tight page; its edge is a separator the reader drags, or moves with ←/→ (Home/End for the ends). The dragged width is kept per object in the console's workspace preference store (`record.columns.details-width`, this browser). Each column scrolls on its own. A page with no other tab draws the details across the page with no tab row; a page whose details hold a related table among the fields (objectstack#35889) is not pinned and keeps its one-column tab row. Narrowing out of the pinned layout keeps the tab that was shown, writing it to the address with `replace`. + - **The right rail is retired** at every width, with its ⊟ switch and `⌘⇧,` shortcut and the `record.columns.related` preference (an old stored choice is no longer read). Its cards (approval, attachments, recent activity, other related) are the tabs they summarised. A list the reader hid still opens, from its item in 「更多」 or from an address that names it (`?related=`). + - **「详情」.** The first tab is named Details (详情) in every locale. + - **「审批中 · 当前步骤」.** For everyone but the approver, the header's in-approval tag names the step the request waits at, when it has one. + - **Drawer, split pane and phone** keep their one-column tab row and never pin. What reaches them: the rail is gone there too, and the first tab reads 「详情」 / Details. Authored pages are untouched. + + `RecordPageColumns` gains the optional `fullPage`, `detailsWidth`, `onDetailsWidthChange` and `onShownTabChange` props, and `onEnlargeRelated` an optional `{ replace }`; `rightColumn` and `rail` are kept as deprecated props that do nothing. `@object-ui/plugin-detail` exports `RECORD_PAGE_DETAILS_WIDTH`, `RECORD_PAGE_PIN_MIN_WIDTH` and `recordPagePinsDetails`; `recordPageTierHasRightColumn` stays exported, answering as before, and is now `@deprecated` (no tier draws a right rail). + + `@object-ui/i18n` widens: two new keys in every pack, `detail.approvalPendingStep` (`In approval · {{step}}`) and `detail.detailsColumnResize` (the separator's name), and `detail.recordTabOverview` changes its text from 概览 / Overview to 详情 / Details. Every key the rail read (`detail.relatedColumn`, `detail.relatedHiddenCount` and its plural forms, `detail.relatedShowHidden`, the six `detail.summary*` keys and `shortcuts.toggleRelated`) stay in every pack, unread, so a host that reads them keeps its text; retiring them is a separate change. +- 52fb30c: feat(plugin-detail): the default record page draws no stage bar and no key-field strip; the stage moves from the header's status tag + + Clause-②: yes (widening) + Metadata-protocol: semantic + + The default record page (`buildDefaultPageSchema`) no longer emits `record:highlights` or `record:path`. The stage is the status tag beside the record's name: a reader who may edit the stage field sees it with an arrow and opens a menu listing every stage in order, the current one checked; a stage the field's blocking `state_machine` cannot reach is disabled with its reason under the name. Picking a stage confirms, and a stage that makes other fields required (their `requiredWhen` holds once the record stands on it, such as a loss reason on a lost stage) asks for exactly those fields in the same dialog and writes them with the move. A refusal stays in the dialog, beside the field it names, and the stage does not move. A reader who may not edit the field, an approval lock or an open draft leaves the plain tag. A plain status field (no stage role) is read and moved the same way. + + The details body now draws every field its groups hold: the highlight fields and the stage field are no longer taken out of their groups, so a record reads in the same groups and order in view and in edit (objectstack#35849). `highlightFields` itself is unchanged and still drives the hover card, a related list's default columns and the record picker; nothing is picked when an object declares none. + + `buildDefaultHighlights` and both blocks are kept: an authored page, or a slotted page's `highlights` slot, still places a strip and a path where it wants them. + + - `@object-ui/components`: `RecordHeaderState` gains an optional `stage` renderer (with the exported `RecordHeaderStageParts`), which the header calls with the stage tag it would draw. Without a host bar (a phone) the header now draws the stage tag in the row under the record's name, beside the state's tags; before, a phone showed no stage at all. + - `@object-ui/plugin-detail`: exports `RecordStageMenu`, the menu a host hands the header as `RecordHeaderState.stage`. Its fields-a-stage-needs dialog comes from the package-internal `useStageChange` (`record:path` keeps its plain confirmation). + - `@object-ui/plugin-detail`: `BuildPageOptions.highlightFields`, `.statusField` and `.stages` are still accepted by `buildDefaultPageSchema` and `buildDefaultTabs` but no longer do anything there, since the default page draws no strip and no stage bar; `buildDefaultHighlights` still reads them. Retiring them is objectstack#35943. + - `@object-ui/i18n`: four `detail.stageMenu*` strings in every locale. + - `@objectstack/lint`: `field-group-shadowed` no longer counts the highlight strip as hiding fields from the detail body, since the default record page leaves them in their groups; a group whose only visible member is the record title still warns. +- 8807dcb: feat(ui): a record page's related tab is the child object's full list + + Clause-②: yes (widening) — a new export `ListConditionsBlock` (`@object-ui/plugin-list`, the condition row as a host element, not a registered node type) and its `ListConditionsHostProps`; a new slot `RelatedListConditionsSlotContext` and its `RelatedListConditionsProps` (`@object-ui/plugin-detail`), which the record page fills (`@object-ui/app-shell`); new exports `ConditionDiscardButton` and its type `ConditionDiscardButtonProps` (`@object-ui/plugin-list`) and `withHeaderSortPick` (`@object-ui/core`); new i18n keys in every `@object-ui/i18n` locale pack (`listConditions.chips.discard`, `listConditions.chips.discardHint`, `detail.relatedNoMatches`, `detail.deleteRowsTitle`, and the count family `detail.deleteRowsConfirmation` with its plural slots `_zero`, `_one`, `_two`, `_few`, `_many`, `_other` as each pack needs them); nothing removed or renamed + Metadata-protocol: none + + On a record page, a related list opened as its own tab now works like the object's list page: + + - The first row names the child list (its tile and title) on the left and keeps **+ Add** on the right. The **Open in list** button is gone. + - The second row is the list page's own condition row: **Sort** (several levels) and **Filter**, with no view switch, view settings or search. On a narrow tab or in the drawer their labels fold to icons. + - The table is the list page's grid: the column menu, cell editing as on the list page wherever the reader may edit the child object, row selection with the floating bulk bar (bulk delete asks once, deletes the selection in one batch call where the data source has one, and says how many rows went and how many did not), and the footer row, whose calculations cover every matching row, not just the loaded ones. A tab grouped by status draws no footer row. + - Rows load as the page scrolls instead of in pages. + - The tab title still counts every child; the footer counts the rows the filter keeps. + - What the reader changes (sort, filter, footer calculations) lasts while they stay on the record, for that reader only, across its tabs and between its page and its drawer, and is gone after a reload or on another record. **Discard** appears once something changed and puts the tab back; there is no Save. The list page's Discard and this one are one button. + + Upgrade note: the header sort and the column widths and order that an earlier version remembered for a related tab in a reader's record-page preference (`sys_user_preference`) no longer apply: the tab opens in its declared order, and its column widths and order are now kept in the reader's browser, as the list page's are, so they start from the default once. Nothing stored is deleted. The default sort and columns of every related list are unchanged. + + `@object-ui/core` adds `withHeaderSortPick`, the list page's rule for how a header sort joins an existing multi-level sort, now shared with the related tab. `@object-ui/app-shell`'s list Discard is drawn by `ConditionDiscardButton`; it looks and behaves as before. +- c261a7c: feat(console): a stage confirm names the flows the move would start, in the list cell and on the record page + + Clause-②: yes (widening) — `@object-ui/plugin-detail` adds the exports `useRecordUpdateStarts`, `StageChangeStarts`, `RECORD_UPDATE_STARTS_PATH` and the type `RecordUpdateStartsAsk`; `@object-ui/fields`' `RequiredFieldsDialog` takes an optional `notice`; `@object-ui/i18n` adds the export `activeFlowsBundle` (with the types `FlowsTranslation` and `TranslationResourceReader`, moved from `@object-ui/app-shell`'s internal `utils/flowsBundle`) and two keys to every pack: `detail.stageChangeStartsHeading`, `detail.stageChangeStartsApproval`. `@object-ui/plugin-grid`'s `StateChangeConfirm` gains an optional `ask`. Nothing existing is removed or re-typed. + Metadata-protocol: none + Skills-docs: none — no skill under `skills/**` teaches the console's stage confirms; `content/docs/frontend/plugins/plugin-grid.mdx` names the list in this change. + + When a stage move would start a flow, its confirm now says so (objectstack#35928, ruling record 7073655354): + + - The list cell's state-machine confirm and the record page's stage confirm (the path's press and the header's stage menu) keep their sentence and add, under it, 「保存后将启动以下流程:」 ("Saving this change starts these flows:") and each flow by its label in the reader's language. A flow that starts an approval is marked 「发起审批」 ("starts an approval"). + - Both confirms ask one read, `POST /api/v1/automation/_record-starts`, through one shared hook, so the two surfaces cannot disagree. The server decides which flows start; nothing is judged in the browser. + - A move that starts nothing shows no list, and a read that fails or is refused leaves the confirm exactly as it was. + - A flow label is translated as the flow runner translates it: the app's `flows` translations, read through `activeFlowsBundle`, which now lives in `@object-ui/i18n` so the confirms' packages can read it; the console's flow runner and designer import it from there. +- 76cb366: fix(console): Studio's kanban card "Click to open" offers only Default and "Don't open" + + Clause-②: no + Metadata-protocol: none + + On an object's list the record name opens the full page and the hover icon opens the side panel, so `navigation.mode` `drawer`, `page` and `new_window` parse there and change nothing; only `none` still counts. The kanban card section of Studio's list-view inspector offered all four. It now offers Default (no key) and "Don't open" (`none`). A view that already stores `drawer`, `page` or `new_window` shows that value flagged "(deprecated)" in the select, and picking Default removes the key. Opening such a view writes nothing. The spec is unchanged, and page blocks that carry `navigation` keep every mode. + + The studio catalogue drops the three labels nothing reads any more: `engine.studio.inspector.listView.kanbanCard.mode.drawer`, `.mode.page` and `.mode.newWindow`. +- 32409a9: fix(form): a new detail line on a master-detail create / edit form starts on the child's defaults, does not read red before a save is tried, and a line added and left untouched is skipped with a notice on the form and the record page + + Clause-②: no + Metadata-protocol: none + + On a parent object's create or edit form, a line added to a detail table started blank, so a required column with a default (a status that defaults to "Pending") read red at once although saving would store the default. The record page's edit state already started its new lines on their defaults; the form now does the same. + + **New lines on the form.** A new line starts on the child object's static defaults, the values a create form of the child seeds, whether it is added with Add or with Enter on the last line. A default the server resolves at insert (`NOW()`, a CEL expression) is left to the server. A new line's empty required cell reads red once a save of the form was tried, not the moment the line appears; a stored line is flagged as before. A line added with Add and then applied from the row editor is the user's input and is saved. + + **A line added and left untouched** (maintainer ruling, card comment 7056413638: 「跳过并提示未保存」). A line Add started on its defaults that nobody edited holds only those defaults. It is still not written, and the save now says so: once the save lands, the form and the record page's edit state show "1 blank line was not saved" (or "N blank lines were not saved"), also when the host supplies its own save confirmation. Such a line never reads red, before or after a refused save, since there is nothing in it to fix; once the user edits any of its cells it is input, saved and flagged like any other new line. On an edit form that stays open after saving, the skipped line leaves with the save, as it does on the record page. A line the user typed into and then cleared is blank and is skipped as before, without the notice. The pack key is `form.lineItems.untouchedNotSaved`, in every built-in locale. + + **Seeding context.** The defaults on both the form and the record page's edit state are now read with the session facts a create form uses: a child field defaulted to the acting user starts on that user, and the organization's currency and time zone seed the fields they seed on a create form. With no known user that field starts empty and the server fills it, as before. +- f548bdc: fix: descriptions and help text no longer say the default record page draws a key-field strip or a stage path + + Clause-②: no + Metadata-protocol: none + + The default record page draws no key-field strip and no stage path: the stage is the status tag beside the record name. These texts said otherwise and now say what each key drives: + + - `@objectstack/spec`: the `highlightFields` describe ("Drives default list and related-list columns, cards, hover cards, previews and the record picker; the default record page draws no strip from it") and its Studio help text. The `stageField` and `RECORD_HIGHLIGHTS_MAX` doc comments say the header's status tag reads the stage and the count cuts only a strip a page places in its `highlights` slot. The upgrade-guide entry `field-group-shadowed-six-highlights` no longer tells authors to move highlights: the warning now judges the record title alone, and no action is owed. + - `@objectstack/platform-objects`: the `highlightFields` help text in every metadata-form locale. + - `@objectstack/lint`: the `os explain` text of `object-field-ref-unknown` and `semantic-role-field-unprovisioned` names the hover card and the record picker in place of the strip. + - `@object-ui/plugin-detail`: the `record:details` `hideFields` description no longer says the default page fills it. The key is still accepted. + - `@object-ui/i18n`: Studio's lifecycle-field help (`stageField`, and its "None" choice) talks about the status tag, not a progress bar. + - `@object-ui/types`: the page `highlights` slot doc says it places a strip the synthesized default does not draw. + - `@object-ui/app-shell`: on a phone the default record page no longer hands the synthesizer a highlight list it never read. The page looks the same, and the subtitle under the record name is unchanged. +- c757e07: feat(console): a change on a list is a draft, with Discard and Save + + Clause-②: yes (widening) — new `console.objectView.draft.*` keys in every `@object-ui/i18n` locale pack (`discard`, `discardTitle`, `save`, `heading`, `partSeparator`, `saveToView`, `saveAsMyView`, `copyName`, `saved`); nothing removed or renamed + Metadata-protocol: none + + On a Console object list, a header sort, a filter change, grouping, the search, Hide Fields, an added field and a column drag apply at once and are now a draft: they are kept nowhere. They used to be saved at once into the reader's own list preference (`sys_user_preference`, key `ui.list.<object>`) and followed them to every device. + + - While the list holds a draft, **Discard** and **Save** sit at the end of the condition row, where the 「Personalized · Reset to view」 marker was. On a narrow list or a phone they fold into one **Save** whose menu also holds Discard. + - **Save** names what is unsaved and offers **Save to this view** (on a view of the reader's own) and **Save as my view**, which asks a name first (the view's name with "copy"), saves the draft as a new view of the reader's own and opens it. Either says "Saved", and the buttons go while the conditions stay. + - **Discard** puts the list back as its view declares it and removes the list's `uf_*` parameters from the address bar. + - Where the reader may not save (no personal view can be created or updated), both faces are Discard alone. + - The draft survives opening a record (as a page or in the side panel) and coming back. Opening another view or object, or reloading the list's page, drops it. A reload of another page does not drop the state an in-app link to a list carries. + - Column widths, the row height and the views' order are not a draft. They are still remembered for the reader in the same `ui.list.<object>` row. + + Upgrade note: a sort, filter, search, column order, hidden column or added column that an earlier Console stored in a reader's `ui.list.<object>` row no longer applies; the list opens as its view declares it. Nothing stored is deleted by this change; a later column-width change rewrites that row's column state with the widths alone. A reader who wants such a list kept saves it as a view of their own. + + Saving into a shared view, and saving the Display panel's layout and row colour, are not offered yet. `@object-ui/plugin-list` changes only its README, which now describes added fields as part of the draft. No metadata key, value or default changes. +- c1b35c3: feat(console): Save to this view on a shared view asks once, then saves and publishes it; the layout and row colour are part of a list's draft + + Clause-②: yes (widening) — new `console.objectView.draft.*` keys in every `@object-ui/i18n` locale pack (`saveToViewConfirmTitle`, `saveToViewConfirm`, `saveToViewConfirmButton`, `savedForEveryone`, `pendingDraft`); `@object-ui/plugin-list` `ListView` gains the optional host prop `onRowColorChange` and two optional `viewDefaults` members, `viewType` and `rowColor`; nothing removed or renamed + Metadata-protocol: none + + On a Console object list, **Save to this view** is now offered on a shared view to a reader who may edit it (an administrator, on a stored view whose package takes saves). It asks once ("everyone who uses this view will see these changes"), then saves the view and publishes it in the same step, so other readers see it on their next read, and says "Saved, visible to everyone". The options menu's Save does the same. + + - When the view already has unpublished changes (a draft saved from the view settings, by anyone), nothing is written: the Console says so and points to the view settings to publish or discard that draft first. The draft write is sent with the first-write pin (`If-None-Match: *`), so the server refuses it when a draft is pending; that draft is never published on someone else's behalf. A publish the server refuses discards the draft the save wrote. + - The reader's row height and column widths are never written into a shared view: it keeps its own. + - The Display panel's layout and row colour are part of the list's draft: they survive opening a record and coming back, and both Save to this view and Save as my view keep them (a layout switch retypes the saved view). Discard puts back the view's own. + + `@object-ui/plugin-list`: `ListView` reports a pick in its row colour panel through the new optional host prop `onRowColorChange` (the rule in force, or `null` for none), never at mount or for a reset. A host that lays the reader's layout or row colour into `schema` passes the view's own in `viewDefaults.viewType` / `viewDefaults.rowColor`, and the `layout` / `rowColor` parts and the Display count are judged against them; each is read only when its key is present. Without them nothing changes. + + No metadata key, value or default changes. The view settings panel and the footer calculation still save a shared view as a draft that the view settings publish. +- 9a98a46: feat(list,detail): a change that makes other fields required asks for them in place — the kanban drop's fill-in, now shared by the list cell and the record page + + Clause-②: yes (widening) — `@object-ui/fields` exports `collectRequiredWhenPromptFields`, `RequiredFieldsDialog` and their types (moved from `@object-ui/plugin-kanban`, which never exported them) and the new `requiredWhenPromptReads`; nothing removed or renamed + Metadata-protocol: none + + When a value about to be written makes another field's `requiredWhen` true while that field is still empty, the write is held and one dialog asks for the missing values: + + - **Where:** a list cell in the select-first grid every `ListView` draws, the record page's inline Save, and the kanban drop (as before). + - **What it shows:** the record's name, the change that set it off (read-only), and one row per field to fill, with the editors the record form uses. A value typed there that makes one more field required adds that field; Save waits for it. + - **Save** writes the change and the typed values as ONE update. **Cancel** writes nothing: the list cell keeps its value; on the record page the edit session and its draft stay. + - **A refusal of that update stays in the dialog:** under the field it names, as a new row for another field the reader can fill, or at the dialog's foot. + - **Not asked for**, and written and refused as before: a field that already has a value, is hidden or read-only, that the reader may not write, or that has no in-place editor (a file, rich text, a formula). The record drawer's per-field save does not ask either. + + The pre-evaluation is the one the kanban drop already used (`resolveFieldRuleState`, the evaluator the form and the server share, judged as the engine's transition gate), generalised from one key to any set of changed keys. +- 27e414b: fix(ui): a view a read-only package ships hides only Delete in Manage views and opens its view panel read-only + + Clause-②: yes (widening) + Metadata-protocol: none + + This applies to a list view that ships inside a read-only package (a code or installed package). The console no longer offers that view the two writes the server refuses: + + - Manage views hides Delete on its row. + - The row's configuration entry reads "View config". It opens the admin's view panel read-only: the configuration is shown read-only, no edit reaches the list, and there is nothing to save. The panel has no Save, no draft bar to publish or discard, and only Close. + + Rename, pin and set as default stay offered. They land in that package's customization (the console creates it on first use), so no lock icon is drawn on the row. The list's options menu offers Rename on such a view again. A shared view the console saved into the customization package, and the reader's own view, are unchanged. The toolbar's personal list changes keep saving to the reader's preferences. + + `@object-ui/plugin-view`: `ViewTabItem` gains an optional `definitionReadonly` field. When it is `true`, `ManageViewsDialog` hides Delete and labels the configuration entry "View config" (`view.showViewConfig`, a new key in every locale of `@object-ui/i18n`). Rename, pin, set as default and the configuration entry stay. `readonly` still wins when both are set. Without the field a row behaves as before. `ViewTabBar` does not read it. + + The read-only verdict is the one the footer calculation menu already uses. The console takes the package the view row was served under and reads the server's `writable` verdict for it from the package list it holds for the session. While that list is unread, or when the read fails or does not name the package, everything stays offered as before and the server's refusal still applies. The view panel reads the same answer that drew the Manage views row, so a row's "View config" never opens an editable panel. If the answer arrives after the admin has started editing, the panel turns read-only and discards the edit: the list's preview goes back to the stored view. +- eb53d63: fix(studio): the key-fields editor no longer previews a record-page strip + + Clause-②: no + Metadata-protocol: none + + The default record page draws no key-field strip, so Studio's object settings + stop drawing a "Highlight strip preview" under the `highlightFields` list. The + ordered rows stay: order still decides which fields each surface takes. The + `engine.studio.settings.highlightPreview` catalogue key leaves the studio + namespace (English and Chinese). +- dda5e74: fix(components): a docs `type: flow` metadata embed names the flow and its approval steps in the reader's language + + Clause-②: yes (widening) + Metadata-protocol: none + + A package can translate a flow's label (`flows.<flow>.label`) and an approval step's label (`flows.<flow>.approvals.<node_id>.label`). The flow runner and the Studio flow designer already showed both, but the docs viewer's `type: flow` embed (`element:metadata_viewer`) drew the authored text, so a zh-CN reader of a manual saw the English flow name and step names. The embed now reads the same bundle, through the same resolution, in the reader's language, and falls back to the authored text where the bundle carries no key. A decision's branch list names the approval step a branch leads to by the same translated label. + + The spec has no key yet for a start, decision, notify or end node's label, so those steps still show the authored text. + + `@object-ui/i18n` has new public exports for the flow-label resolution (`flowLabelTranslations`, `useFlowLabelTranslations` and the `FlowLabelTranslations` type), moved out of the Studio flow designer and built on the `activeFlowsBundle` reader that package already exports, so the runner, the designer and the docs viewer share one reader of the `flows` group. +- 035a12c: feat(ui): every modal dialog draws one lighter surface, short create and edit dialogs are one narrow column, and a create dialog can stay open for the next record + + Clause-②: yes (widening) + Metadata-protocol: none + + What a user sees: + + - Behind a dialog the page is only slightly dimmed (10% in light mode) and no longer blurred, so it stays readable. The dialog is a white card (the raised grey in dark mode) with a hairline edge and a translucent outer ring, a 12px corner, and anything inside it drawn at the shared 40px control height (`h-10`: inputs, select triggers, default and icon buttons, and any other `h-10` element such as a 40px avatar) one step smaller, 32px from the `sm` breakpoint up; the phone sheet keeps its 44px touch targets. Confirmation dialogs, the required-fields prompt and the record create and edit dialog all share it. + - The create and edit dialog's title is 16px and follows the object's icon, and its padding is 20px. + - A dialog that lays out at most six fields and declares no `columns` (not on the form, not on any section) draws one field per row in the narrow `lg` size (672px); six is the maintainer's choice (ruling of record 7061696632 on objectstack-ai/objectstack#35980). This reverses the at-least-two-columns default such a dialog drew before. Seven fields or more, any declared `columns`, an authored `modalSize` or a maximized dialog lay out as before. + - The console's list 「New」 dialog (and a related list's child create) has a 「Create more」 switch. With it on, a save keeps the dialog open on an empty form with focus on the first field, and the list behind refreshes; with it off, a save closes the dialog and opens the new record as before. The switch is remembered per object in this browser. + - ⌘↵ (Ctrl+Enter on other platforms) saves the create and edit dialog, and the Save button shows the keycaps. A master-detail dialog (a record with line items) takes neither the shortcut nor 「Create more」. + + What a developer sees (`Clause-②: yes (widening)`, additions only): + + - `ModalFormSchema.createMore?: boolean` offers the switch on a `create` dialog that a host mounts itself (the `object-form` renderer's `formType: 'modal'` keeps it off), and `ModalFormSchema.onSuccess` receives a second argument, `{ createMore: true }`, when the dialog stays open. A host that passes neither sees no change. + - New i18n key `form.createMore` in every locale. + - The console's global `[role="dialog"]` corner rule and the blurred overlay on dialogs are gone; the look lives in `@object-ui/components` (`src/lib/dialog-surface.ts`), reached from the `dialog` and `alert-dialog` primitives through declared Shadcn patches. The card carries the `dialog-surface` class, which the console's shared floating-surface shadow skips; a host stylesheet that adds its own shadow to `[role="dialog"]` should skip it too. Popovers and the bottom drawer keep their rounded corners by their own containers; side drawers are unchanged. + + Nothing to migrate. +- 43580a3: fix(fields): the line grid's column-header help no longer becomes part of every cell's announced column name + + Clause-②: yes (widening) + Metadata-protocol: none + + The widening is additive: the new key `fields.grid.columnHelp` in every locale pack `@object-ui/i18n` publishes through `./locales`, in all eleven locales. + + The info button beside a line grid's column header used the column's help text as its accessible name. The button sits inside the header cell, so the help joined the column header's name, and a screen reader that announces a cell's column read the whole help sentence with every cell of that column. The button is now named by a short "Help" word in the reader's language (`fields.grid.columnHelp`), and the help is its description (`aria-describedby`), read when the button is reached. The column header is named by the field label and that one word. The tooltip on hover and keyboard focus is unchanged, on the editable grid and on the read-only table. + + No metadata key is added or changed. +- cc05e60: feat(console): Manage views restores the factory version of a customized package view + + Clause-②: yes (widening) + Metadata-protocol: none + + A pin, a rename or a set-default on a view a read-only package ships writes the whole view into the package's customization (`<package>.custom`), and every user of the view then sees that copy. Manage views now marks such a view "customized" and offers "Restore factory version" in its `…` menu. After one confirm, which says every user of the view sees the factory version again, the override is removed from the customization and the list shows the package's own view. A view without a customization has no mark and offers no restore; a refused restore is said with the server's own message. + + - `@object-ui/data-objectstack`: `ObjectStackAdapter.restoreFactoryView(objectName, viewName)` deletes the view's draft, then its row, at the customization the ensure door names for the shipping package (`DELETE /meta/view/NAME?package=PAIR`, the door Studio's "Restore package original" uses). It refuses, sending nothing, a view that is no override of the package it is served under, and throws when the customization held no row of the view. The customization package itself stays. `listViews()` now carries a record's `overrides` declaration onto the flattened row. + - `@object-ui/plugin-view`: `ViewTabItem.customized` and `ManageViewsDialogProps.onRestoreFactory`. + - `@object-ui/i18n`: the mark, the menu entry, the confirm, its result and the failure title, in every locale pack. +- 13d1e95: feat(ui): in a list cell, a picker opens under the cell, Backspace clears, a refused value stays, and Enter stays on the cell + + Clause-②: yes (widening) + Metadata-protocol: none + + `GridCellFacts` (the select-first grid's per-cell host facts, `@object-ui/components`) gains three optional keys: `editor` (`'below'` draws the cell's editor as a panel under the cell, which keeps showing its value; absent or `'cover'`, the editor stays a layer over the cell), `clearRefusal` (why Backspace or Delete leave the cell as it is) and `validate` (why a committed value is refused). A host that sets none of them gets the editor placement and commits it had, with Backspace now clearing (below). + + In every grid `ObjectGrid` draws with the select-first model (the list page): + + - **Pickers open under the cell.** Single and multi select, status, tags, date, date-time, time, colour, lookup and user cells open their list, calendar or palette as a panel under the cell; the cell keeps its value as drawn (a coloured badge stays coloured) and the row height does not change. On a date the typeable box is the top of the panel and the calendar shows beneath it. Typed input, long text and an address still edit in place. + - **Backspace or Delete clears the selected cell and saves at once.** A required field keeps its value and says it is required (a required rating too, for Backspace, Delete and the 0 key); a read-only cell says why, as before; a checkbox cell is left alone. + - **A value that fails the field's rules is not saved.** The rules are the record form's (required, length, range, email and URL shape), and text a number box cannot read is refused too. The editor stays open with what was typed and says why under it (a number box that already says it cannot read its text is not told twice); correct it and commit again, or press Escape to discard. A click elsewhere does nothing while a refused value is open; a refused value whose cell scrolls out of sight is discarded. + - **A person's face no longer makes its row taller.** A user cell drew a 32 px face, which made its list row 41 px tall against 33 px for a row of text; the face is now 24 px and the row stays 33 px, at rest and while the cell is edited. + - **The selected cell's frame stays under the frozen columns** when the cell scrolls beneath them, and a cell deselected with Escape is left with no focus ring. + - **Enter saves and keeps the same cell selected**, with the focus back on it. It used to save and move the selection one row down. Tab and Shift+Tab still save and move right and left. + + `@object-ui/i18n` adds `table.cellNotNumber` and `table.cellInvalid` in every locale. + + Forms, dialogs and the record page keep their current controls. +- eebb893: feat(plugin-grid): a list draws a line between columns, its default rows and header are 36px tall, and the footer shows 「+ Add calculation」 at rest + + Clause-②: no + Metadata-protocol: none + + - A line of the same colour and weight as the row lines now runs between columns in the header, the rows and the footer row, with none after the last cell. The last frozen column keeps its scroll shadow on top of its line. + - The default row height (`compact`, the density a view without `rowHeight` gets, shown as Compact in the row-height menu) is 36px instead of 32px, and the header is 36px too. The Standard and Spacious densities are unchanged. + - In a list whose reader may change the view, every footer cell without a calculation shows a faint 「+ Add calculation」 at all times instead of only on hover. A reader who may not change the view still sees only the calculations already set. The `grid.summary.calculate` text changes in every language pack to match. +- 3543b51: fix(comments): Reply puts the caret in the reply box, comments show the author's avatar or initials, the mention menu opens at the caret, and a delete says it went through + + Clause-②: yes (widening) + Metadata-protocol: none + + Four small fixes to comments on the record page: + + - **Reply.** Pressing Reply on a comment opened the reply box but left focus on the button, so typing went nowhere (or into the main comment box). The caret now goes into the reply box. On a comment whose replies were collapsed, Reply also expands them first. + - **Author avatar.** A comment by someone without an avatar showed a generic comment icon. Every comment and reply now leads with a 20 px avatar: the author's image, or their initials on the same round disc the people chips draw. + - **Mention menu.** Typing `@` opened the people menu at the top left of the comment box. It now opens under the caret, or above it when the window has no room below. + - **Delete.** Deleting a comment now shows a "Comment deleted" toast (zh: 评论已删除). A refused delete still shows its error, as before. + + Additions, nothing removed or changed in meaning: `@object-ui/plugin-detail` exports `CommentAuthorAvatar` (and its props type), and `ThreadedReplies` takes a new optional `focusReplyOnOpen` prop (default `false`, so a host that always shows the reply box keeps today's focus behaviour). `@object-ui/fields` exports `getPersonInitials`. New locale key `detail.commentDeleted` in all eleven locale packs. +- 4ab2c82: feat(record-page): the desktop comment panel resolves and reopens threads, filters them, counts the unresolved ones, and offers Edit and Delete on other people's comments only where the server admits them + + Clause-②: yes (widening) — `@object-ui/react`'s `DiscussionContextValue` adds three optional members: `onResolveComment(itemId, resolved)`, `moderatesComments` and `updatesOthersComments`. `@object-ui/types`' `FeedItem` adds five optional members: `resolved`, `resolvedById`, `resolvedByName`, `resolvedAt`, `mentionsViewer`. `@object-ui/plugin-detail` adds exports `useRecordVerdict` (the three-state verdict `useRecordEditable` fails open on; a definite allow is the explain answer's `allowed` together with its `record.visible`, as the server admits a by-id write, so `useRecordEditable` reads as before except that an answer whose `allowed` is false beside a visible record, such as an on-behalf-of session whose delegator is gone, now reads not editable), `threadResolvable`, `threadResolved`, `threadInvolvesViewer`, `filterCommentThreads`, `unresolvedThreadCount`, `DEFAULT_COMMENT_THREAD_FILTER` and the type `CommentThreadFilter`; `RecordCommentsData` adds `resolvable`, `onResolveComment`, `moderates` and `updatesOthers`, and its `count` is now the unresolved threads; `CommentItemActions` adds `onResolve` and `resolved`; `CommentHoverActionsProps` adds `resolved`; `RecordCommentThreadProps['comments']` may carry `onResolveComment`, `moderates` and `updatesOthers`. `@object-ui/i18n` adds ten keys to every pack: `detail.reopenThread`, `detail.threadResolved`, `detail.threadResolvedBy`, `detail.filterComments`, `detail.showResolvedComments`, `detail.commentsInvolvingMe`, `detail.noUnresolvedComments`, `detail.noCommentsInvolvingMe`, `detail.showAllComments`, `detail.commentResolveFailed`. Nothing existing is removed or re-typed. + Metadata-protocol: none + Skills-docs: none — no skill under `skills/**` teaches the console's comment panel; `content/docs/frontend/plugins/plugin-detail.mdx` and the plugin-detail README gain resolved threads, the filter and the moderator's Edit and Delete in this change. + + The desktop record page's comment panel (objectstack#36075) gains the resolved threads #36071 stores: + + - ✓ in a thread's first comment's action row marks the thread resolved: it leaves the list and the comments icon's number, now the unresolved threads, drops by one. ✓ is offered under the `sys_comment` update grant: on a thread the viewer started, and on anyone's only where the explain engine admits the viewer's update of a comment they did not write. Today the platform's row floor admits that for administrators, not for rank-and-file members, so a member resolves only the threads they started until the server carries ruling 7063285032 (any reader of the record may resolve) past that floor. + - The filter menu at the panel's top right holds 「显示已解决」, which shows resolved threads marked 「已由 X 解决」 (their ✓ reopens them), and 「只看我参与的」, the threads the viewer started, replied in or is mentioned in. The filter is not stored. With every thread resolved, the panel says so and offers to show them all. + - A reply into a resolved thread shows the thread reopened, as the platform stores it. + - The resolver is named from the people the page already knows (the viewer and the discussion's authors); any other resolver is named by one `sys_user` read of exactly those ids, after the discussion is drawn. Where that read is refused, the mark reads 「已解决」. + - Edit and Delete under More are offered on other members' comments to a viewer the explain engine admits to update the record by id, the server's rule for moderating someone else's comment; Edit also needs the explain engine to admit their update of a comment they did not write (the row floor above). Both are asked only on a definite allow: pending, a refusal, an error or a deployment without the explain service offers them on the viewer's own comments alone. Their own comments keep them as before. + + Unchanged: no server permission changes (a deployment without the explain service shows ✓ and Edit on the viewer's own rows only, administrators included); a deployment whose comment rows carry no `is_resolved` shows no ✓ and no filter, and the icon counts every thread; hand-written record pages and the phone keep their feed as before. +- 04f9861: feat(record-page): a record's comments move out of the 动态 tab into a comment panel of their own on the desktop + + Clause-②: yes (widening) — `@object-ui/plugin-detail` adds exports (`CommentsPanel`, `CommentsButton`, `CommentThread`, `CommentItem`, `CommentComposer`, `CommentHoverActions`, `useRecordComments`, `buildCommentThreads`, `latestRepliers`, `RecordCommentsInPanelContext`) and their types (`CommentsPanelProps`, `CommentsButtonProps`, `RecordCommentThreadProps`, `CommentItemProps`, `CommentItemActions`, `CommentComposerProps`, `CommentHoverActionsProps`, `CommentThreadData`, `RecordCommentsData`), and an optional `reservedWidth` on `useRecordPageTier`. `RichTextCommentInput` (exported) now takes the `Esc` that closes its @ list (`preventDefault` and `stopPropagation`), so nothing round it acts on that key. `RecordActivityTimeline` draws no chip group when it is handed no chips. `@object-ui/components` adds an optional `comments` slot to `RecordTopBar` and `NavigationOverlay`, and the drawer leaves an `Esc` pressed inside a `[data-owns-escape]` region to that region. `@object-ui/i18n` adds five keys to every pack: `detail.closeComments`, `detail.collapseReplies`, `detail.commentActions`, `detail.commentsEmptyHint`, `detail.resolveThread`. Nothing existing is removed or re-typed. + Metadata-protocol: none + Skills-docs: none — no skill under `skills/**` teaches where the console draws a record's comments; `content/docs/frontend/plugins/plugin-detail.mdx` and the plugin-detail README gain the panel in this change. + + On the desktop record page and in the record drawer, the record header gains a comments icon with the number of top-level comments. A press opens the record's comment panel, the next one closes it, and the browser remembers whether it was left open (once for the page, once for the drawer). + + - The panel is 380 px wide: 「评论」 and ✕ at the top, the threads oldest first, the comment box docked at the foot. A thread's replies fold to 「N 条回复」 with the latest repliers' faces and open in place, with a reply box under them; Reply on any comment of a thread opens it with the caret in that box. + - A comment's actions sit in one row at its top right while the pointer is over it, or focus is in it: Reply, an emoji, and More with Edit and Delete on the viewer's own comments. Every write is offered under the same grants as before. + - From a 1280 px window the panel sits beside the record and the record gives way; in a narrower window it is drawn over the record's right edge. In a drawer narrower than 760 px (the default 720 px drawer) it covers the drawer's body; a wider drawer splits. + - Esc in the panel closes it and returns the focus to the comments icon, in a drawer too: the drawer neither closes nor steps back on it. Esc in the panel's @ list closes the list only and keeps the draft. + - While the panel holds the comments, the 动态 tab and panel hold the system entries only: activity and field changes, with no comment box and no All / Activity / Discussion chips; the Changes chip stays where the record shows its field history, and pressed again it goes back to every entry. Their count leaves the comments out. + + Unchanged: a record page authored in full keeps the feed blocks it places (`record:discussion`, `record:activity`) as they were and shows no icon; an object with `enable.feeds: false` shows no icon; the phone keeps the comments in its 动态 tab. +- c30ce97: feat(record-page): on a phone, the record's comments open as a page of their own: the threads first, a thread's replies inside it, the comment box docked at the foot, and a long press for a comment's actions + + Clause-②: yes (widening) — `@object-ui/plugin-detail` adds the export `CommentsPage` and its type `CommentsPageProps`; `CommentThread` takes a third `mode`, `'page'`, and optional `itemInteraction`, `heldId` and `onHeldActions`; `CommentItem` an optional `interactionProps`; `CommentComposer` and `RichTextCommentInput` (exported) an optional `layout` (`'default' | 'phone'`). `@object-ui/app-shell` reserves the console URL parameter `comments` (`RECORD_COMMENTS_PARAM`, in `RESERVED_URL_PARAMS`). `@object-ui/i18n` adds four keys to every pack: `detail.addReactionEmoji`, `detail.commentThread`, `detail.formatBold`, `detail.formatItalic` (the toolbar's names without their shortcut). Nothing existing is removed or re-typed; the desktop's panel, toolbar and labels are unchanged. + Metadata-protocol: none + Skills-docs: none — no skill under `skills/**` teaches where the console draws a record's comments; `content/docs/frontend/plugins/plugin-detail.mdx` and the plugin-detail README gain the phone's page in this change. + + On a phone the record page's top bar gains the comments icon, with the number of unresolved threads. A press opens the record's comments as a page over the record, which stays where it was under it; 「‹」 and the browser's Back return to it. + + - The page lists each thread's first comment with 「N 条回复」 under it; a tap opens the thread, the comment first and its replies after it. 「‹ 评论」 returns to the list. + - The comment box is docked at the foot of the screen and stands on the keyboard while it is up. One line until tapped; then a row under the text holds mention, bold, italic, list and code, and send at the right end. In the list it writes a comment, in a thread a reply. No 「Ctrl+Enter」 hint. + - A long press on a comment (or its context menu) raises a sheet from the bottom: six reactions, 「标记已解决」 on a thread's first comment, 「编辑」 and 「删除」 (red, confirmed first), each offered exactly where the desktop's hover row offers it. + - The filter at the top right is the desktop's: 「显示已解决」 and 「只看我参与的」. + - The 动态 tab holds the system entries alone, as on the desktop. On a phone the comments live on this page: this replaces the lines of the two objectstack#36075 entries (the record comment panel, and resolved threads) that said the phone keeps the comments in its 动态 tab, or keeps its feed as before. + - The page is in the URL (`?comments=` for the list, `?comments=<id>` for a thread), so a link or a reload opens it where it was. + + Unchanged: the desktop; who may write, resolve, edit or delete a comment (the phone offers each exactly where the desktop does); a record page authored in full and an object with `enable.feeds: false` show no icon. +- e605773: feat(components): a `type: flow` metadata embed shows each decision's branches and their conditions + + Clause-②: no + Metadata-protocol: none + + The business view of a `type: flow` metadata embed (ADR-0051) listed the flow's steps and nothing else, so a manual could not point its readers at the diagram for an approval threshold. Under each decision step it now lists the decision's branches: the condition in readable form, such as `Amount > 500,000`, an arrow, and the step the branch leads to. A branch that is taken when no other matches reads `otherwise`. When the flow's start node has a condition, it is shown once above the steps (`Runs when Amount ≥ 100,000 and other conditions`). + + The text comes from the live definition on every render: the edges' `condition` (or a decision's `config.conditions` matched by edge label), the field label from the flow's object, and the amount formatted in the reader's locale, in the field's or the tenant's currency when one is known. A changed threshold shows on the next page load with no manual edit. The embed now makes one more metadata request, for the object the flow runs on. + + The reader understands comparisons of one field of that object with one literal, joined by `&&` and `||`. Presence guards on the compared field (`has(x)`, `x != null`) are left out. Anything else, such as a field compared with another field, `previous.*` or a function call, shows a neutral `condition` marker, never the raw expression. The technical view (`detail: technical`) is unchanged. The six new viewer strings ship in every locale pack. +- cbd582f: feat(app-shell): from 768 px up an app draws no top bar; what it carried moves to the sidebar and the content area + + Clause-②: no + Metadata-protocol: none + + Part of objectstack#36112 (epic #36107). An app page from 768 px up now starts at the window's top: + + - **Sidebar head.** The first row is the app's glyph and name, which open a menu that only switches apps (the viewer's apps with the current one checked, Setup among them for the viewers the server serves it to, a search field past eight apps, and 「Add app」 for a workspace admin who may author: build with AI or in Studio, start from a template, the marketplace), with the collapse button beside it. The second row is search (`⌘K`) and the notification bell. + - **Sidebar foot.** The account menu: avatar, name and, in a walled organization, the organization's name; the same entries the avatar menu had (profile, connect an AI assistant, organizations, hidden apps, theme, language, notifications, log out), plus the stage chip on a preview or beta deployment. + - **Content area.** The impersonation, read-rate and storage banners and a lost-connection notice sit at the top of the content, its width. + - **Page header.** While the sidebar is collapsed the page header draws the expand button first; a route with no shell header gets it at the content's top-left corner. The page's button group (#36111) is always on; the `os:shell:page-actions` storage switch is gone. + - `⌘⇧H` goes home from any app page at every width (the app layout installs it, not the bar). + + Unchanged: a phone keeps its top bar and bottom bar; an app's docs pages, which mount no sidebar, keep the bar at every width; `/home`, the organization pages and Studio keep their bar; the sidebar's fold below 1416 px and its keep-open choice are as before. + + New strings in all 11 locales: `sidebar.collapse`, `sidebar.expand`, `layout.appSwitcher.addApp`. +- 031325d: feat(console): the sidebar's docking model — 1280 px starts expanded, the expand/collapse button is the one control, and Recent lists this app's items + + Clause-②: no + Metadata-protocol: none + + - **Which state a window starts in.** From 768 px up, a browser with no choice kept starts with the sidebar expanded on a window 1280 px wide and up, and collapsed from 768 to 1279 px. The threshold was 1416 px, and below it the sidebar folded on its own. `CONSOLE_SIDEBAR_RAIL_BELOW_WIDTH` is now 1280 (one constant). + - **The reader's choice wins, on each side.** The sidebar's collapse button and, while it is collapsed, the page header's expand button are the one control, and this browser keeps each press: a wide-window choice and a narrow-window choice, kept apart as before. The expand button now docks the sidebar beside the page; before, it floated the menu over the page. Resting the pointer on the window's left edge and ⌘B still float the menu over a collapsed sidebar without changing the choice. Phone widths are unchanged, and the sidebar stays 256 px wide. + - **"Keep sidebar open" is gone.** Its stored choice (the workspace preference `console.sidebar.keepOpen`) is now the narrow-window choice, so a reader who kept the sidebar open starts expanded on a narrow window. Nothing to migrate. + - **Upgrade change.** On a 1280 to 1415 px window, a reader who never kept the sidebar open now starts with it expanded (it folded before), unless they collapsed it on a wide window. The accepted cost: on a 1280 px window with the sidebar expanded, the list beside an open record drawer is 304 px wide (560 before), and on 1280 to 1415 px, opening the record page's comment panel moves its fields back to the tab row; collapsing the sidebar gives the width back. + - **Recent is this app's.** From 768 px up, the sidebar's Recent group lists only the items opened in the current app. Home's "Recently accessed" and the phone drawer still list every app's. + + `@object-ui/i18n`: the `sidebar.keepOpen` key, which no surface reads any more, is dropped from all eleven packs (zh-Hant regenerated). +- 1705ec9: feat(console): the list page's top reads the object's row, the view bar, then the condition row; 「Import / Export」 and 「New Account」 end the view bar + + Clause-②: yes (widening): `@object-ui/plugin-list` exports `ListExportDoor` and `ListToolbarTrailingState` and calls `toolbarTrailing` with a second argument; `@object-ui/i18n` adds `console.objectView.newObject` and `console.objectView.importExport` + Metadata-protocol: none + + An object's list page draws three rows above its table again: + + - **The object's row** — the console `PageHeader` in its list posture: the object's icon and plural name, ended by the shell's top-right button group where the shell turns it on. It carries none of the page's acts. + - **The view bar** — the view switcher and 视图设置 on the left; the search, 「Import / Export」, the authored list toolbar actions, 「New Account」 and ⋮ More on the right. The view bar no longer leads with the object's name. + - **The condition row** — the sort and filter chips, and Discard / Save while the list holds a draft, as before. + + 「Import / Export」 holds Import and one entry per export format the reader may use. ⋮ More keeps the object's description and the favorites entry; Import is no longer in it. While the list is narrower than 896px, 「Import / Export」 folds into ⋮ More; below 768px the search keeps its icon alone, without the active keyword. The 视图设置 panel keeps its export entries. The create button names what it creates (`console.objectView.newObject`, 「New {{object}}」, in every locale). A phone's list header is unchanged. + + `@object-ui/plugin-list`: `ListView`'s `toolbarTrailing` host prop is now called with a second argument, `ListToolbarTrailingState`, whose `export` is the list's export door (`ListExportDoor`: the formats, `run`, `busy`, `error`), absent where the list offers no export. Both types are exported. A host that reads only the first argument is unchanged. +- a6756a2: feat(console): the record page's field area is one list — one field a row in the side preview, on a phone and in the wide page's pinned left column + + Clause-②: yes (widening) + Metadata-protocol: none + + The synthesized record page's field area (objectstack#36147, ruling on the card 7066516044): + + - **One column at any width.** The drawer (at any width), the split pane, the phone's 「详情」 tab, the wide page's pinned left column and a desktop full page that has other tabs but is not pinned (an opportunity's 详情 tab goes from three columns to one) draw the fields one a row: label left, value right, a hairline between rows. The phone's own grouped-inset face is gone there; it is the same list. A full page whose details are its only face (no other tab, none hidden) keeps laying a group out by width. + - **Group title row.** The title sits left and its chevron at the row's right end, pointing down while the group is folded and up while it is open; the whole row toggles. + - **Referenced records are chips.** A lookup value is drawn as a pill with the referenced object's colour tile (`ObjectSchema.color` / `icon`, objectstack#35985) and the record's whole name, wrapping rather than cut. A click on the chip opens the record; the rest of an editable lookup's row edits it. Everywhere else a reference keeps its link face. + - **Empty fields fold into one row.** Every empty field of every group is folded into the list's one last row (「显示 N 个空字段」), replacing the per-group toggle and the 「N 个空分组」 line on this page. The reader's choice is the per-object record-page preference `showEmptyFields` (objectstack#25883), so it holds for the next record of the object. An authored `hideEmpty` group stays hidden and is not counted. + - **「系统信息」 is the last group,** folded until opened: created by, created on, updated by, updated on (when the record was updated), the owner (when the body does not draw it) and the record ID, one fact a row. On this page it **replaces the one-line meta footer that objectui#12307 introduced**; outside the laid-out record page that line is unchanged. + - **A click edits; no pencil.** A single click on an editable value enters edit (a click on a link, a button or a text selection inside it is not taken); the hover pencil is no longer drawn, and stays in the DOM only as the keyboard's way in (visible on focus). A double click is no longer needed. **A read-only value takes no click any more**: the click-to-copy on read-only rows is removed on this page. For a mouse or a keyboard its copy icon, shown on hover or keyboard focus, stays; a touch screen shows none, and the value is selected by a long press. + - Authored record pages and every other DetailView keep their faces. + + `@object-ui/fields` widens: it exports `ReferenceChipContext` (a boolean React context, default `false`) that switches `LookupCellRenderer`'s reference link to the chip face. + + `@object-ui/i18n` widens: five new keys in every pack, `detail.systemInfo` (系统信息 / System information), `detail.createdTime`, `detail.updatedTime`, `detail.recordNumber` and `detail.clickToEdit`. +- b3bcfef: fix(i18n): the record timeline's events chip reads 事件 / Events, and the Chinese stream says 动态, never 活动 + + Clause-②: no + Metadata-protocol: none + + The record page's 动态 tab drew its chips as 「全部 · 活动 · 讨论 · 变更」, so an app with an object named 活动 (a CRM's meetings and calls) showed 活动 twice on one screen with two meanings, and the English tab Activity held a chip also named Activity. The chips now read 「全部 · 事件 · 讨论 · 变更」 (zh-Hant the same), Events in English, and each other pack's own word for events (Ereignisse, Eventos, Événements, イベント, 이벤트, Eventos, События, الأحداث). What each chip holds is unchanged: 变更 / Changes keeps the audit-sourced field changes, and created, updated, assigned and shared rows stay under the events chip. + + In zh-Hans and zh-Hant the rest of the stream takes the tab's word: the empty state reads 「暂无动态」 (「暫無動態」), the stream title `detail.activity` reads 「动态」 like `detail.timeline`, and the access-denied, load-failed and filter labels say 动态. The English chip's in-code fallback follows the pack, and the tab strip's Chinese token map reads an `Activity` tab as 动态 / 動態, matching `detail.activity`. Values only: no key is added, renamed or removed. +- 71e02ff: fix(studio): the CEL condition builder offers membership, not equals, on a list field + + Clause-②: no + Metadata-protocol: none + + On a field that holds a list (a `multiselect`, `checkboxes` or `tags` field, or a `select` / `lookup` / `user` field declared `multiple: true`), Studio's condition builder (hook, validation-rule, action-visibility, page-block and flow entry conditions) offered equals / not equals and the ordering operators. CEL compares the whole list with one value there, so `record.labels == 'frontend'` was false for every record (and `!=` true for every record), and the author got no signal. + + Such a field is now offered what the list toolbar's filter builder offers it: contains, does not contain, is empty and is not empty. Contains writes `S != null && V in S` and does not contain writes `S == null || !(V in S)`, the same spelling a flow edge's condition rows write; both are null-safe. A row moved onto a list field leaves equals for contains, and a row moved off one leaves membership for equals. A stored condition that compares a list field with `==` / `!=` now opens in the expression editor exactly as stored, never rewritten. A single-value field is offered what it was before. + + New locale key: `engine.inspector.condition.op.notContains` in the studio catalogue (en, zh). No props or exports change. +- 5e8e243: feat(console): a footer calculation is a part of the list's draft; a refused save of a package's view says why in the reader's words + + Clause-②: yes (widening) — new keys in every `@object-ui/i18n` locale pack: `console.objectView.personalizedParts.summaries` and `console.objectView.saveRefused.packaged`; nothing removed or renamed + Metadata-protocol: none + + On a Console object list, picking, changing or removing a column's footer calculation (「+ 添加统计」) applies at once and writes nothing. It used to be saved at once: on the reader's own view straight into it, on a shared view as a draft of the view (`PUT /api/v1/meta/view/<name>?mode=draft`), which the server refuses on a view an app package ships. + + - The calculation is a part of the list's draft, like the sort and the filter: **Discard** and **Save** appear, Save's menu names it (「统计」), and Discard takes it off. The draft lives as long as the others: kept on opening a record and coming back, dropped on another view, object or a reload. + - **Save to this view** (on the reader's own view, or on a shared view an admin may edit) and **Save as my view** store it on the columns the saved view keeps. + - **Save to this view** on a shared view is offered only once the Console has read that the view's package takes saves: not while that read is in flight (on a slow start the list draws seconds before it lands) nor for a package it lists read-only. A failed read, or a package the list leaves out, still offers it as before. + - On a view the reader cannot change in place (one an app package ships, or a shared view of a reader who is no admin), the pick goes into the draft too and Save offers **Save as my view** alone. + - The menu is offered on every column the saved view would carry: the columns the list draws and the fields the reader added. + - When the server refuses to save a view an app package ships (`NOT_OVERRIDABLE`), the toast says in the reader's language that the view comes with an app package, cannot be changed directly and can be saved as the reader's own view. The server's text goes to the console only. Every other refusal is said as before. +- 4099ef2: fix(list): "Add group field" asks which field, and offers only fields that can group + + Clause-②: yes (widening) — `@object-ui/components`'s `GroupingEditor` gains the optional props `askFieldOnAdd`, `fieldOptionsLoading` and `fieldLabel`, and its `labels` the optional `noFields`; `@object-ui/i18n` gains the key `list.noGroupableFields` in every locale; nothing removed or renamed + Metadata-protocol: none + + On a list, 「添加分组字段」 / "Add group field" used to group at once by the list's first column, usually the record's name, so every record became a group of its own. Now, in the toolbar's Group panel and in the view settings menu's Group level alike: + + - It adds no field by itself and does not group. The field dropdown opens, and the list is grouped once a field is picked there. Closing the dropdown without a pick leaves the list as it was. + - The dropdown lists only the fields that can group: single select or radio (a status is one), tick (boolean or toggle), person, and linked record (lookup, master-detail, tree), each single-valued. Text, number, date and multi-select fields are not offered. The list's columns come first in the reader's column order, then the object's other groupable fields the reader may read, business fields before system ones such as the record owner. Created by and updated by are offered only when the view shows them as a column. + - With no field that can group, the button is drawn disabled and says why: 「没有可以用来分组的字段」 / "No field here can group the list". + - Until the object's field types are read, the button is disabled without a reason. When no definition can be read at all, every column is offered, as before. + - A view already grouped by another kind of field keeps showing that grouping, and its level can still be changed or removed. + - A second level follows the same rule among the fields no level uses yet. + - The grouping is still a part of the list's draft: **Discard** and **Save** appear, and nothing is written. + + `@object-ui/components`: with `askFieldOnAdd`, `GroupingEditor`'s "Add group field" opens a row whose field dropdown is already open and writes the level only on a pick. With no `fieldOptions` it draws the button disabled, explained by `labels.noFields`, or without a reason while `fieldOptionsLoading`. `fieldLabel(field)` labels a level whose field `fieldOptions` does not carry. Without these props the editor behaves as before. +- 6a73185: feat(console): the left sidebar resizes by its right edge, the collapsed sidebar floats as a card, and a menu opened from the float no longer leaves it folded with the menu cut off + + Clause-②: yes (widening) — one new `@object-ui/i18n` key (`sidebar.resize`) in all 11 locales; no spec, schema, server or published export change + Metadata-protocol: none + + - **Resize** (`@object-ui/app-shell`): from 768 px up, the docked sidebar's right edge drags it between 200 and 350 px; a double-click comes back to 256; ← → move it 16 px, Home and End to either end. The width is kept in this browser (`console.sidebar.width`) and the menu floating over a collapsed sidebar takes it too. A phone's drawer keeps its own width. + - **The float is a card:** 8 px off the window's left, top and bottom edges, with rounded corners, a border and a shadow; the page under it is not dimmed or moved. Resting the pointer at the window's left edge still floats it and moving away still folds it. + - **A menu opened from the float keeps it out:** pressing the app name (or the account, or an entry's `…`) while the float was still sliding in under the pointer opened the menu and folded the float a moment later, leaving the menu cut off at the window's left edge. A press in the float now stops the fold's clock, and the fold does not happen while a menu or dialog is open, or while the pointer is on the float. +- 96b7975: feat(console): the empty ⌘K palette leads with a "Current page" group: the page's favorites entry + + Clause-②: yes (widening) — one new published language-pack key, in all eleven packs: console.commandPalette.currentPage + Metadata-protocol: none + + Opened with nothing typed, the command palette inside an app now starts with a "Current page" group, above the recently viewed records, when the page behind it is an object's list or a record page: + + - **On an object's list** (`/apps/APP/OBJECT`, or one of its views): "Add to favorites" (or "Remove from favorites"), the list's own favorites entry from its ⋮ More menu. It pins the app's navigation entry for the list where the app has one, and keeps an object favorite otherwise, exactly as that menu does. + - **On a record page**: the record's star — the same `record` favorite the star beside the record's name toggles, named by the title the record was last visited under. + + The row is first, so Enter on the empty palette now runs it; the footer says so ("Add to favorites ↵" / "Remove from favorites ↵", the menu's own words). Typing takes the group away. On every other page (an app's landing, a dashboard, the search page, a create form) the palette is unchanged. Which records the palette searches and how it ranks them, the full search page, and the phone's search are unchanged. + + New locale key, in every pack: `console.commandPalette.currentPage`. No props or package exports change. +- e8b494a: feat(console): the ⌘K palette previews the record it is on, creates a record from what you typed, finds "New OBJECT", and says what Enter does + + Clause-②: yes (widening) — eight new published language-pack keys, in all eleven packs: console.commandPalette.create, createAs, previewEmpty, enterOpenRecord, enterCreate, enterSwitchApp, enterApplyTheme, enterOpen + Metadata-protocol: none + + The command palette inside an app gains four things; which records it searches, and how it ranks them, are unchanged. + + - **Record preview.** While the query finds records, the palette widens and shows the selected hit on the right, read-only: the object's label, the record's title and the object's declared key fields (`highlightFields`), drawn the way the record pointer card draws a record (field-level security applied; an object that declares no key fields shows its title alone). Arrow keys move the preview with the selection; the record is read once the selection rests for 150 ms. A palette narrower than 45rem (720px) shows the results alone. + - **Create "words" as OBJECT.** Once something is typed, the end of the list offers to create a record of up to three of the app's objects, the object of the page the palette was opened on first, with the typed words in the object's title field: Enter opens that object's create page (`/apps/APP/OBJECT/new`) with the field filled. An object is offered only where its list offers New (the same verdict: CRUD bucket, `userActions.create`, effective API operations, the create grant, and the create action's `visibleWhen` / `disabledWhen`), and only when its title field is a text field the member may write on create. + - **New OBJECT.** Typing "new", "create" or an object's name finds a "New OBJECT" entry for each such object, which opens its empty create page. + - **Enter hint.** A footer names what Enter does to the selected entry: Open record, Create, Switch app, Apply theme or Open. + + New locale keys, in every pack: `console.commandPalette.create`, `createAs`, `previewEmpty`, `enterOpenRecord`, `enterCreate`, `enterSwitchApp`, `enterApplyTheme`, `enterOpen`. No props or package exports change. +- bbc7e03: feat(grid): a list cell's right-click menu copies, pastes and clears that cell + + Clause-②: yes (widening) — an optional `cell` member (`copy`, `paste`, `clear`) on the context `data-table` hands a host's `renderRowContextMenu`; five new `table.*` language-pack keys in every locale `@object-ui/i18n` ships (`copyCell`, `pasteCell`, `clearCell`, `pasteNotValue`, `pasteUnavailable`); nothing is removed or renamed + Metadata-protocol: none + + Right-clicking a cell in a list now offers what can be done to that cell, above the row's own items. + + - The menu has two sections. Above a line: **Copy**, **Paste**, **Clear** and, where it was already offered, **Change history**. Below it: the row's items as before (Open, Open in new tab, the row's actions). A right-click off a data cell opens the row's section only. + - **Copy** copies the cell's value, as Ctrl/Cmd+C does. + - **Paste** writes the clipboard's text into the cell and saves it, through the same checks as typing into the cell: text that is not an email address in an email cell, a value over a field's length, an empty required field are refused and the cell says why. If the browser will not let the list read the clipboard, the cell says so and names Ctrl/Cmd+V. Paste is offered on text, numbers, dates and single-choice fields (an option by its value or label); on a record reference, a person, a multi-choice and other types it is unavailable. + - **Clear** empties the cell and saves it, as Backspace does; it is unavailable on a required field. + - On a read-only field, a calculated field, a grid that is not editable or a record the reader may not change, Paste and Clear are unavailable and Copy still works. + - A paste into the selected cell with Ctrl/Cmd+V now goes through the same checks: text the cell's editor would refuse is no longer sent to be saved, and text the column cannot read (letters in a number cell, a name in a lookup cell) says why instead of doing nothing. +- 27895d7: feat(record-page): each changed field is its own line under an activity entry, `Label: old → new` + + Clause-②: yes (widening) — four new `detail.*` language-pack keys in every locale `@object-ui/i18n` ships (`fieldChangeLabel`, `fieldChangeEmpty`, `fieldChangeExpand`, `fieldChangeCollapse`), and six new optional props on the exported `FieldChangeItem` (`label`, `oldText` / `newText`, `emptyLabel`, `expandLabel` / `collapseLabel`); nothing is removed or renamed + Metadata-protocol: none + + The record page's activity named a saved change by its fields only (「更新了 客户备注」), or carried every value on one cut line. An activity entry now reads as the fields it changed, with one line per changed field under it: `Customer notes: Old words → New words`. A save that changed the phone and the email is one entry with two lines. + + - The values come from the field-change code the server already serves on each `sys_activity` row (`metadata.summary_message`), narrowed per reader by plugin-audit: a field the reader may not read has no change in it, so it draws no line. Nothing new is read, and nothing is filtered in the browser. + - An empty side reads as the language pack's word for empty (`Empty`, `空`), never the stored `∅`. + - A select side reads as the field's option label in the reader's language; a lookup or user side reads as the record's name the server served; a yes/no reads as the pack's Yes / No. + - Each side is cut to its line. A side that does not fit, or holds more than one line, offers a control that shows both sides in full and one that cuts them again. + - An audit-log entry (objects with `enable.trackHistory`) draws its changes the same way, and an activity row paired with its audit entry keeps its own summary with the audit's lines under it. The record's creation is unchanged: one row with its values beside the summary. + - The compact one-line text of a change (the activity panel's peek rows) now reads `Label: old → new` with the same words, where it read `Label old → new` with `—` for empty. + + What does not change: which entries the activity shows, how consecutive edits by one person on one day fold into one row, the activity filters, and no metadata key, value or default. +- 543585d: feat(record-page): one field's change history, opened in place from the field or from a list cell's context menu + + Clause-②: yes (widening) — three new `detail.*` language-pack keys in every locale `@object-ui/i18n` ships (`fieldHistory`, `fieldHistoryNone`, `fieldHistoryNoneRecent`); new exports from `@object-ui/plugin-detail` (`FieldHistoryButton`, `FieldHistoryCard`, `FieldHistoryPopover`, `useFieldHistory`, `useFieldHistoryOffered`, `fieldHistoryOffered`, the constants `FIELD_HISTORY_PAGE_SIZE`, `FIELD_HISTORY_SCAN_BATCH` and `FIELD_HISTORY_SCAN_BATCHES_PER_LOAD`, and their types); an optional `column` member on the context `data-table` hands a host's `renderRowContextMenu`; `FieldChangeItem` draws no label for `label: ''`; nothing is removed or renamed + Metadata-protocol: none + + A reader can now see one field's past changes on one record without reading the whole activity stream. + + - On the record page, each field of the object has a history button beside its value, shown on hover and focus like the copy button. In a list, right-clicking a cell of a field the object declares adds 「Change history」 to the row's menu. Both open the same small card in place. Neither is offered on a field whose old → new values are not recorded (`fieldHistory: false` on the field, `enable.fieldHistory: false` on the object, a credential field, or a media or JSON-like type that does not opt in), judged by the same `resolveFieldHistory` the audit writer keeps values by. + - The card lists only that field's changes: who, when, and old → new in the reader's words (an option by its label, an empty side as the pack's word for empty), newest first, ten at a time with 「Load more」. + - A field never changed reads 「No changes recorded」 with who created the record and when. + - The changes are the record's activity rows the server already serves, narrowed to the reader: a change of a field the reader may not read is never sent. A field the reader may not read offers no entry point at all. The full audit log is not read. + - The rows are read by record, newest first, fifty at a time, keeping those that changed the field; a query naming the change columns is refused for a reader withheld any field of the object, so the field is never part of the query. Opening the card reads at most four batches, and each 「Load more」 at most four more; when they hold no change of the field and older rows remain, the card reads 「No changes in the recent activity」 and offers 「Load more」 to read on. + + `@objectstack/spec`: the authoring hint for the mistyped field key `tracked` now names what turns one field's change history on or off today (`fieldHistory: false`, `true` for a media or JSON field, `enable.fieldHistory: false` on the object), where it named `trackHistory: true`, which changes nothing for most field types. Wording only; `tracked` stays rejected. +- 7e89bc6: feat(studio): the field inspector, the field designer and the object's settings write Field change values instead of Track history + + Clause-②: yes (widening) + Metadata-protocol: none + + Old → new values show on the record activity by default, and an object or a single field can turn them off. The Studio now writes that setting where an author looks for it: + + - **Field inspector.** The "Track history" box is gone. In its place, "Field change values" offers Default, On and Off. Default leaves the field's `fieldHistory` unset and names what it means for this field on this object: "Default (On)" for most types, "Default (Off)" for a media, JSON or credential field, and "Default (Off)" for every field when the object turns values off, with a note saying so. On and Off write `fieldHistory: true` and `false`; choosing Default after Off removes the key. A stored `trackHistory` is kept as it is and never written. + - **Field designer** (`@object-ui/plugin-designer`). The drawer's "Track History" switch, which wrote `trackHistory: false` on every save, is replaced by "Field Change Values" with the same three choices: Default (named "Default (On)" or "Default (Off)" for the type in the drawer, and it follows a type change), On, Off. A stored `trackHistory` is carried through an edit and never written. `DesignerFieldDefinition` (`@object-ui/types`, with its zod mirror) gains an optional `fieldHistory`, and both designer save paths (`MetadataFieldsPage`, `MetadataService.saveFields`) carry it; Default sends no key, which removes a stored one. + - **Object settings.** The Features card gains "Field change values" (`enable.fieldHistory`). Unticking it writes `false`; ticking it again removes the key rather than writing `true`, since unset already means on. Sibling `enable` keys are kept. + + The inspector and the metadata form's Field History control share one module for the three choices, what each writes and their wording; the field designer cannot import it (the app shell depends on the designer) and shares the rule itself, `resolveFieldHistory` from `@objectstack/spec/data`. New Studio strings `designer.field.fieldHistory`, `designer.field.fieldHistoryObjectOff`, `engine.studio.settings.capFieldHistory` and `engine.studio.settings.capFieldHistoryDesc` (en, zh); `designer.field.trackHistory` is removed with the box it labelled. In the language packs, `appDesigner.fieldDesigner.trackHistory` is replaced by `appDesigner.fieldDesigner.fieldHistory`, `fieldHistoryDefault`, `fieldHistoryOn` and `fieldHistoryOff`, in all eleven locales. +- 42e4096: feat(console): on the record page's field list an empty field you can edit reads 「设置{字段名}」 and one click fills it in; an editable value offers the copy icon too + + Clause-②: yes (widening) + Metadata-protocol: none + + The synthesized record page's field area (the side preview, the phone's 「详情」 tab, the wide page's pinned left column and a full page alone): + + - **Empty editable fields read 「设置」 plus their label.** An empty value the reader can edit is drawn as light text, 「设置」 plus the field's label (`Set Phone` in English), and a single click on it opens the field's editor, as a click on any editable value already does. A read-only field, a field the caller may not write and a record that is not inline-editable keep the shared 「—」 placeholder. Empty fields still fold into the list's one 「显示 N 个空字段」 row; shown, they read 「设置…」 instead of 「—」. + - **An editable value can be copied without editing.** Its copy icon is drawn on hover or keyboard focus at the value's right, as a read-only value's is; it copies the value and does not enter edit. A touch screen draws none, as before for read-only values. The keyboard's way into edit (the pencil, drawn on focus only) is unchanged. + - Authored record pages and every other DetailView keep their faces: an empty field there reads 「—」 and an editable row keeps its double-click and pencil. + + `@object-ui/i18n` widens: one new key in every pack, `detail.setField` (`Set {{field}}` / `设置{{field}}`). +- ff60149: feat(console): 「Edit app」 turns on a design mode in the running app instead of opening Studio + + Clause-②: yes (widening) + Metadata-protocol: none + + An administrator who may design the app (a workspace admin holding `manage_metadata`, on a writable package: the gate 「Edit app」 always had) now presses 「Edit app」 in the page header to turn on the app's design mode, in place. A bar across the top of the window says 「Design mode」 and offers 「Cancel」 and 「Save」, and nothing else. The mode stays on from page to page of the app and goes off when the app changes; it is never on a phone. While it is on, the sidebar shows the app's own menu without the person's Favorites. + + The mode is the extension point the next design-mode surfaces (menu editing, the page header's pinned actions) stage their changes through: 「Save」 writes every staged change and leaves the mode, 「Cancel」 drops them all. 「Save」 is off while nothing is staged. While a change is staged, closing or reloading the tab, a link out of the app and the app switcher ask first; a link to another page of the app does not. This release stages nothing yet. + + A read-only package's app keeps its 「Open APP in Studio」 entry unchanged. New `@object-ui/i18n` keys: `designMode.title`, `designMode.leaveUnsaved`, `designMode.saveFailed`. +- ee651ce: feat(console): the app's menu is edited in the design mode, and an installed app enters it too + + Clause-②: yes (widening) + Metadata-protocol: none + + While the design mode is on, the sidebar draws the app's menu with its editor. Each group, and the menu's top level, ends with 「Add menu item」: it holds a dashed row 「Choose a menu item…」 where the entry will go and opens a picker that searches the app's existing objects, views, dashboards, reports and pages (and takes a link), offering only what is not in the menu yet. Each entry has a 「⋮」 menu (move up, move down, move to a group, add an item before or after it, rename and icon, remove from the menu) and can be dragged to another place or group. Removing takes the entry off the menu only; the picker offers it again. + + The edits are staged with the mode: 「Save」 writes the app with its new menu where Studio's menu editing writes it (the app's package when it is writable, else its customization package, declaring the override at the package's version) and publishes it, so every member sees it; 「Cancel」 drops them. A draft of the app already pending (in Studio) is not overwritten: the save says so and keeps the mode on. The save is composed from the app as stored, never as served: the menu a member is shown is translated into their language and pruned of what they may not open, so the edits are replayed by entry id on the stored menu, and every entry they did not touch is written back as it was. Renaming an entry is offered in the deployment's default language only, and only while the entry shows its stored name; in any other language the name field is closed and says that menu names are changed in the app's source language. Adding, moving and the icon stay open in every language. An entry another package puts into the menu (its `navigationContributions`) is not in the app's stored menu, so its 「⋮」 says it is changed in that package, and it is not moved, renamed or removed here. Such entries are added after the app's own entries when the app is served, so, once the editor has read the app's stored menu, an entry added or moved to the end of a group the app itself holds is drawn before them, where everyone will see it. A group another package adds, and the moment before that read lands, are not handled this way yet. + + 「Edit app」 now enters the mode on an installed (read-only) app as well, where the customization door takes the caller; where it is walled off (a walled deployment, not the platform operator) the eye into Studio stays. An app whose menu is split in areas keeps its menu unedited in the mode. New `@object-ui/i18n` keys under `designMode.menu`. +- dad9b55: feat(console): a new dashboard is created from the design mode's 「Add menu item」 and opens for editing + + Clause-②: yes (widening) + Metadata-protocol: none + + In the design mode's 「Add menu item」 picker, the 「Dashboards」 list now starts with 「New dashboard…」, above the existing dashboards that are not in the menu yet. It asks for a name only. 「Create」 creates the dashboard, empty, in the package the menu is saved to (the app's package when it is writable, else its customization package), publishes it, puts its entry in the place the editor held for it, and saves the menu with every other change staged in the mode; the mode is then left and the new dashboard opens in its page's edit state. A dashboard with no cards yet now says so on its page (「No cards yet」) instead of drawing a blank canvas, so members see an empty dashboard, not an error. 「Cancel」 writes nothing and leaves nothing in the menu. Where the menu cannot be saved (the app's package is not listed, an installed app states no version, or its customization package cannot be had or written) nothing is created. When the menu save is refused after the dashboard was created, the dashboard is removed again, the mode stays on and the reason is said. The machine name is generated from the name (a Chinese name through its pinyin), unused by any dashboard. A report cannot be created this way yet: a report needs a dataset and measures before it can be published. New `@object-ui/i18n` keys under `designMode.menu` and `dashboard.noCards`. +- d076975: feat(console): a new report is built from the design mode's 「Add menu item」 and lands in the place held for it + + Clause-②: yes (widening) — new `@object-ui/i18n` keys (`designMode.menu.newReport`, `designMode.menu.newReportLeft`, `report.builder.addsToMenu`) in all 11 locales; no package export, spec or schema change + Metadata-protocol: none + + In the design mode's 「Add menu item」 picker, the 「Reports」 list now starts with 「New report…」. A report needs a data source and a measure before it can be published, so it is not created from a name: the place stays held in the menu (「New report…」) and the report builder opens at the app's `reports/new`, saying that saving adds the report to the menu. The builder's Save creates and publishes the report in the package the menu is saved to (the app's package when it is writable, else its customization package), puts its entry in the held place, and saves the menu with every other change staged in the mode; the mode is then left and the report's page opens. When the menu save is refused the report is removed again, the mode and the held place stay, and the builder stays open with the reason. The builder's Close, or leaving the builder any other way, drops the held place and writes nothing. Opened outside the design mode, `reports/new` saves on its own as before. +- 70d07fd: feat: an object arranges its actions per scope (`actionLayout`: pinned buttons and the 「More」 order), and the design mode sets it + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: follow-up #36630 + + A page header draws at most three of its actions as buttons and puts the rest in its 「More」 menu. An object now arranges them itself with the new optional key `actionLayout` on `ObjectSchema` and `ObjectExtensionSchema`: `{ list?: Arm, record?: Arm }`, where `Arm = { pinned: string[], more?: string[] }`. `pinned` names the buttons in the order drawn, at most three (`[]` pins none); `more` orders the 「More」 menu; an action the scope places that neither part names goes to the end of 「More」 in its default order. A pinned action that is hidden leaves its button out, and no other action takes its place. + + - `list` arranges the actions placed at `list_toolbar` and the list page's built-ins `$import` and `$export`. A built-in is only ever pinned: one named in `more` is refused with its reason, since not pinned the list page draws it in its own Import / Export menu. + - `record` arranges the actions placed at `record_header` or `record_more`. It is a scope, not a page: the record page header, the side preview and a phone's bottom action bar all read it. A `page:header` that authors its own `actions` list keeps that list. + - An arm left out (or the key left out) draws that scope exactly as before. + + What each package gains: + + - `@objectstack/spec`: the key and its shape refusals at every door (more than three pinned, a name given twice in one part or in both, a malformed name, a built-in the scope does not have, a built-in in `more`, since a built-in is only ever pinned), each with its reason. New exports `OBJECT_ACTION_LAYOUT_PINNED_LIMIT`, `OBJECT_ACTION_LAYOUT_SCOPES`, `OBJECT_ACTION_LAYOUT_BUILTINS` and the types `ObjectActionLayoutScope`, `ObjectActionLayout`, `ObjectActionLayoutArm`. The object form offers it under Advanced, one JSON row per arm. + - `@objectstack/objectql`: `actionLayout` joins `fieldGroups` and `relatedLists` as a key only the base's paired `.custom` package writes on an `object_extension` (ADR-0146 D10). It is applied last, after every other layer, arm by arm: each arm it writes replaces the served arm for that scope whole, and an arm it leaves out stays. A manifest's `objectExtensions` entry now carries the key to the fold. + - `@objectstack/metadata-protocol`: the one judge refuses `actionLayout` from any other package, naming the action's own `locations` and `order` as the way to place an action the package brings. Each door says it its own way: publish, restore and draft promotion of an `object_extension` answer `VALIDATION_ERROR` / 400; marketplace install refuses the package body with `VALIDATION_ERROR` / 422; `os validate` and `os build` exit non-zero and print the row; the registry fold skips the key and leaves a note. + - `@objectstack/lint`: `validateObjectActionLayout` (`object-action-layout-unknown`, `object-action-layout-not-placed`, at `error`) refuses in `os validate`, `os build` and `os lint` a name, in either part, that is no action of the object or is not placed in the scope its arm arranges. + - `@object-ui/types`: `arrangedHeaderActions(actions, arm, scope)`, the one reader both record headers and the list header apply, and `readActionLayoutArm`. + - The console: both record headers (the default page's and an authored `page:header` with `placedActions: true`) and the list header draw the arrangement. In the design mode, 「Header buttons」 at the end of the page header lists the scope's actions under 「Pinned to header」 and 「Other」 (the 「More」 menu), each dragged into order; a dot moves an action between them, a fourth pin is refused with a toast, the header shows the change at once, and 「Save」 writes only the arms that changed: into the object's own package when it is writable, else into the installed object's customization package as an `object_extension`, through the one writer of an installed object's arrangement (`saveObjectExtensionArrangement`, whose patch type now takes the object-shaped `actionLayout`), which refuses a customization package the server does not list writable. A name the scope no longer offers is listed in the panel as left out. A name the header cannot draw is refused at save with its reason. New `@object-ui/i18n` keys under `designMode.pins`. +- 8a741ab: feat(console): a dashboard is edited on its own page by the people who may design its package, and every card marks the page filters it does not follow + + Clause-②: yes (widening) — one new exported function (`dashboardFiltersNotApplied` in `@object-ui/core`), two new optional `DashboardRenderer` props (`onWidgetResize`, `onAddFilter`), and new `@object-ui/i18n` keys (`dashboard.inPageEdit.*`, `dashboard.filters.notApplied`, `dashboard.filters.addFilter`); nothing is removed or renamed + Metadata-protocol: none + + A dashboard page draws an **Edit** button for a workspace admin who may author metadata, on a package Studio lists (the gate of the app's Studio entries). Edit opens the dashboard as stored (never the translated copy the page shows) in an edit state: the header says **Editing**, with **Add card**, **Discard** and **Save**; every card draws a dashed outline and can be dragged to move it, resized from its corner by whole grid tracks (or with the arrow keys on the corner handle) and clicked to select it. The panel at the right is Studio's own dashboard panels, as they stand: a selected card's (its data, its "follow page filters" switches, Remove) and otherwise the dashboard's (label, cards, filters, layout). The filter bar's **Add filter** opens the panel's Filters section. Add card appends a card at the end and selects it. + + Save writes where Studio's Customize would and publishes that one item in the same act, so everyone sees the change at once without the app's package being published: into the owning package when it is writable, else into the app's customization package (`<base>.custom`, declaring `overrides: { package, basedOn }`), so an installed app's dashboard is edited too. Opening the edit state writes nothing: the pair is asked of the ensure door, which creates it on first use, at Save only. As with Studio's Customize, an installed app's dashboard is not opened where that door is walled for the caller or the package list gives no installed version to declare the override at. A dashboard with a draft already pending there (a Studio edit not yet published) is not opened for editing, and a save over one writes nothing: that draft is never published on its saver's behalf. Discard drops every change and writes nothing. + + Every card, in every mode, carries a small mark naming the page filters that do not reach it ("Not filtered by Region"), asked of the same binding its query is built from (`dashboardFiltersNotApplied` over `resolveBoundField`): a filter the card opts out of, or one whose `targetWidgets` leaves it out (an explicit string binding wins over `targetWidgets`). A card every filter reaches carries none. +- 60e79ed: feat(app-shell): the report and dashboard-widget panels speak business wording, and opening the report editor keeps the page in the session's language + + Clause-②: yes (widening) — the report and widget panels accept an edit of a translated name or title in the session's language, stored as the inline locale map `{ default: SOURCE, LANG: EDIT }` the spec's `I18nLabel` already allows; nothing is removed or renamed + Metadata-protocol: semantic — `translateReport` and `translateDashboard` now treat a report `label`/`description` or a widget `title` as changed when its inline locale-map entry for the requested locale (the entry the panel writes: exact tag, then the locale's own script, else base tag or a sibling region; never `default`) differs from the packaged base's own, so the base's translation no longer replaces it; a translation the paired `.custom` package ships still answers first (ruling record 6631250894), and with none the entry is served; dataset members (`translateDataset`, ADR-0149) are unchanged + + The report editor beside a report (runtime 「编辑」 and Studio) and the dashboard widget property bar (Studio, and the dashboard page's edit state) now name things the way a business reader does: + + - Fields, measures and data sources show their labels in the current language; the machine name is on hover only (`title`), never printed. A measure reads `LABEL · AGGREGATE` with the aggregate in words (「金额 · 合计」, "Amount · Sum"). + - 「行(维度)」「维度」 read 「分组」, 「值(度量)」 reads 「指标」, 「数据集」 reads 「数据来源」 (its label alone, no `(name)` and no description), and the filter-binding section reads 「跟着页面顶部的筛选变」 with each filter by its name (「时间」 for the date range, the dimension's label for a filter with none). + - The chart-type list is Chinese names with their icons (柱状图, 折线图, …), not `bar`. + - The line under the data source is plain words: 「报表从这里取数;每个人只能看到自己有权限的记录。」 — no 「受治理」 or 「RLS」. + - The report form rows below the curated fields (section headings and hints in zh-CN) use the same wording. + + The report's name box and a widget's title box show the served (current-language) text while it is untouched, and an edit lands in the session language only: a plain-string source shown translated becomes `{ default: SOURCE, LANG: EDIT }`, so every other language reads exactly what it read before. For a report or dashboard installed from a package (one with a packaged base), the server serves that entry ahead of the package's translation (a translation the paired customization package ships still comes first), so the edit is what the page shows after save. A report with no packaged base keeps the bundle first: where the bundle has an entry for that language, the stored edit does not show. + + Fixed: opening the report editor no longer turns the page heading and subtitle from the served 「各阶段商机」 to the English source. The page draws the served text for every translated key the edit has not touched. + + This supersedes objectui#11161's `LABEL (name)` and objectui#12303's trailing machine name on these two panels only; other dataset pickers are unchanged. +- 3cf6a44: feat(console): the report builder — one page to build a new report or edit an existing one, with the report drawn live on the left and five settings on the right + + Clause-②: yes (widening) — new public exports from `@object-ui/plugin-report` (`ReportBuilder` and its model types), a new optional `foldTableUnderChart` prop on `DatasetReportRenderer`, and new `@object-ui/i18n` keys (`report.builder.*`, `report.computedValues`) in all 11 locales; no spec or schema change + Metadata-protocol: none + + - **The builder** (`ReportBuilder`, `@object-ui/plugin-report`): the report previewed on the left; report type, data source, measure, grouping and chart on the right. Every pick rewrites the report and the preview draws it again; there is no Generate button. Picking a data source draws a single number at once (the dataset's count measure, no grouping). While a required piece is missing, the preview says what it is where the chart would be (「Choose a data source」, 「Choose a field to group by」) and that setting's picker opens by itself. A second grouping layer splits a bar or line chart; the chart's own switches are Show values and a target line. Grouping by a date adds the report's period chip. The report's table folds under the chart as 「Computed values」. + - **The doors** (`@object-ui/app-shell`): the report page's 「Edit」 opens the builder for a dataset-bound report (a joined report, a pre-dataset report, and a dataset report with a cross-tab, a saved filter or several values keep the inspector panel), and the app's `reports/new` address opens it on a new report, created under a name no served report holds. Admin only. + - **Save is seen by everyone at once:** the report is written and published in the same press, for the builder and the inspector panel alike. Over any pending draft nothing is written and the builder says so; the draft bar above the preview publishes or discards it. +- 5fecc22: feat(console): Change Owner's queue picker searches the server, so a queue past the first 200 can be found and picked; a non-grid list says bulk Change Owner is in the grid + + Clause-②: no + Metadata-protocol: none + + The Change Owner dialog's queue target used to read `sys_queue` once, capped at 200 rows, into a plain dropdown with no search, so an organization with more queues could not pick the rest. It now picks the queue the way the person tab picks a person: with the shared lookup picker over `sys_queue`, which reads one page at a time when it is opened and sends the typed term to the server as its search. The picker shows the queue's label and sends its `name`, which is what the Change Owner endpoint's `queue` takes. Nothing the endpoint accepts changes. + + Bulk Change Owner lives in the grid's selection bar, and kanban, calendar, gallery, timeline, gantt, map and tree layouts select no rows. On those layouts, a reader the grid would offer bulk Change Owner to (the object offers the action and the object-level transfer verdict allows it) now sees one muted line above the list: "To change the owner of several records at once, switch to a grid view." The list view's `onBulkChangeOwner` documentation says the same. + + `@object-ui/i18n`: adds `console.changeOwner.gridOnly` to every locale pack and removes the four keys the old queue dropdown read and nothing reads any more: `console.changeOwner.noClient`, `console.changeOwner.queuesLoading`, `console.changeOwner.queuesFailed` and `console.changeOwner.noQueues`. +- 4f19091: fix(fields): a lookup pick that keeps an amount says so over a filled field too, a create form's opening fill no longer waits for ever on a parent it cannot read, and a pick that fills a currency code and an amount in it copies both + + Clause-②: no + Metadata-protocol: none + + Three follow-ups to the cross-currency pick rule (a pick copies an amount only into a field in the same currency). Nothing is converted, and no metadata changes. + + - **A pick over a filled amount says why it kept it.** When a pick would replace an amount that already holds a value (a re-pick in a line-item grid, or a declared pair with `overwrite: true`) and the picked amount is in another currency, the earlier value stays and the note now shows there too, ending "Unit Price still holds its earlier value." Before, the note showed only over an empty field, so the earlier product's price sat under the new product with nothing said. The note goes away once somebody edits the field. + - **The opening fill of a create form no longer waits for ever.** A form opened with a lookup already holding a record (a related list's New, a URL prefill) fills its declared targets from it. When an amount there follows the currency of a parent the record names, the fill waited for that parent's read and never ran if the read failed, the data source cannot read single records (`findOne`), or the form names no parent object. Now the wait ends when the read answers, fails or cannot run: the other targets (a description) fill, and the amount is left empty with the note "the currency here could not be read". + - **A pick that fills a code field and its amount together copies both.** An amount that follows the record's own code field (`currencyMode: 'record'`) is now judged against the line or record with the same pick's write to that code field applied, in the line-item grid and in the record form. Picking a product that carries `currency_code: EUR` and a price in it onto a fresh line now fills the code and the price, where the price was withheld with a "no currency is chosen" note beside the code the same pick had just written. + + Also in `@object-ui/fields`: new exports `declaredPickWrites`, `judgePickWrites`, `withheldStillStands` and the type `PickWrite`; `AmountCurrency` gains the kind `unread`, `WithheldAutofill` the reason `targetCurrencyUnread` and the optional `held` (the value a target kept); `amountCurrencyOf` takes an optional third argument, the pick's own writes; `AutofillCurrencyContext.targetCurrency` is handed them as an optional second argument. In `@object-ui/i18n`: two new `lookup.*` sentences, `autofillCurrencyUnread` and `autofillKept`, in every locale pack. In `@object-ui/plugin-form`: the record-form stamp's documentation lists the hosts the rule reaches; no behaviour changes there. +- 3b58921: feat(console): record create and edit stop loading internal forms; a field's Show on create switch + + Clause-②: no (narrowing) + Metadata-protocol: semantic + + <!-- adr-0087: registered internal-record-forms-not-loaded --> + + The Console's record create and edit surfaces no longer load an object's internal form view. The create dialog, the edit dialog, the full-page create and edit (`/new`, `/record/:id/edit`) and a create or edit an action opens now lay the record out by the object's field groups (`fieldGroups`) and follow the rules on its fields (`visibleWhen`, `readonlyWhen`, `requiredWhen`, `required`). What used to steer those surfaces and now steers nothing: the default form view (`form`, `formViews.default`), the `create` form view, and on them `sections`, the `tabbed` and `wizard` layouts, `defaultTab`, `tabPosition`, `subforms`, `modalSize`, `buttons`, `layout` and `defaults`. A master-detail sub-table still comes from `fieldGroups[].relatedList`, and a flow screen reads its sub-table settings from there too. + + An app that still declares an internal form installs and runs as before; the definition is inert. A public form (`sharing.enabled: true`) keeps loading at its own link by its own definition, and a named form an action of type `form` opens is unchanged. + + `showOnCreate` is now live: a field with `showOnCreate: false` is left out of every create surface and stays on edit, the record page and lists. The field form (`field.form.ts`) and the Studio field inspector offer it as "Show on create", on by default; a required field keeps it on. + + `@objectstack/lint` adds the advisory rule `form-view-internal-not-loaded`: a warning, never an error, on each internal create or edit form an app declares (a container's `form`, `formViews.create`, `formViews.default`, and a stored form view that is the default or named `OBJECT.create`), and on no public or named form. + + Studio: the Data pillar's Form tab always lays out the object's field groups, and the Interfaces rail no longer lists internal forms; public forms and named forms stay listed. + + An app that relied on its internal form for create defaults should move them to each field's `defaultValue`; sections move to `fieldGroups`, and required or conditional rules move onto the fields. + + The upgrade guide carries this as the protocol-18 semantic entry `internal-record-forms-not-loaded`. +- 9c283a1: feat(console): preview images, PDF, text and CSV in the page from a record's attachments and from a file field + + Clause-②: yes (widening) + Metadata-protocol: none + + A file opens in a dialog in the page instead of leaving it. In a record's attachments, the file's name opens the preview; the download stays in the row's menu. On a file field, a click on the file's link opens the preview; a modified click (new tab, new window) still opens the link as before. + + - **Four views, no new dependency.** Images (PNG, JPEG, GIF, WebP) draw in an image element, and an SVG only ever through an image element, never inlined. A PDF draws in the browser's own viewer in a frame; on a phone it opens in a new tab, which hands it to the system viewer. Plain text draws as text. A CSV draws as a table, read with the same GBK-aware decoder the grid's import wizard uses. + - **Download only.** Word, Excel, PowerPoint, HTML and every other type show "This file type cannot be previewed. Please download it." with a download button. An HTML file is never framed and never drawn as markup. + - **Limits.** Images and PDF up to 20 MB; text and CSV up to 2 MB, showing their first 1000 rows or lines. Past a limit the dialog shows "This file is too large to preview. Please download it." with a download button. + - **Controls.** Previous and next (and the arrow keys) walk a record's attachments; download; open in a new tab. + - **Same door as the download.** The preview reads the same signed link through the same permission check as the download, so a reader the download refuses sees the same refusal in the preview. When the browser cannot read a text or CSV file from the page (a bucket on another origin without the CORS rule the preview needs), the dialog offers the new tab instead. + + New exports from `@object-ui/fields`: `FilePreviewDialog` and its types `FilePreviewDialogProps` and `FilePreviewItem`; `decodeSpreadsheetText` and `parseDelimited`, the delimited-text reader that moved down from `@object-ui/plugin-grid` (which now imports them from `@object-ui/fields`; its own behaviour is unchanged). + + New `@object-ui/i18n` keys in every pack, under `fields.filePreview`: `title`, `previous`, `next`, `download`, `openInNewTab`, `loading`, `tooLarge`, `unsupported`, `denied`, `loadFailed`, `blocked`, `pdfOutside`, `truncatedRows`, `truncatedLines`, `empty`. + + No metadata key, value or default changes. +- c45dd80: feat(setup): Setup → Configuration → Public forms lists every public form of the environment and switches it on or off + + Clause-②: yes (widening) — a new Setup navigation id `nav_public_forms`, a new component id `forms:public-forms`, new language-pack keys (the `publicFormsSetup` block and the nav label) in every shipped locale, and `anonymousFormIntakeWithdrawnIn` newly exported from `@objectstack/spec/ui` (moved from `@objectstack/metadata-core`, which re-exports the same binding) + Metadata-protocol: none + + A system administrator (`manage_platform_settings`, the capability the Setup entry asks) now has one page for the operations side of public forms. It lists every public form of the environment: its name, the object a submission creates a record of, its address, and whether it is on. Per row: switch it on or off, copy its address, or open it in a new tab. A form is designed (created, deleted, its fields and title changed) in Studio, not here. + + - **Which forms are listed.** A form view whose `sharing` opens it to anonymous intake once switched on (`allowAnonymous: true` and a `publicLink`), read by the same rule the anonymous form routes use (`anonymousFormIntakeCandidates`). A switched-off form stays listed and can be switched back on. A form with no public address or no anonymous access is an internal form and is not listed. The list is the effective one (`GET /meta/view`), so an installed app's form switched off in this environment lists as off. + - **Where a switch is saved.** The switch is the form's `sharing.enabled`, saved and published at once. A form of a writable package is saved in that package. A form of an installed (read-only) app is saved as this environment's customization, an override in the app's `.custom` package (ADR-0146), never an edit of the app's own package, so the app upgrades as before. Switching such a form back on removes the override when it held nothing but the switch, so the app's own form is served again; an override that also carries design changes keeps them, with the switch on. + - **A form its installed app ships switched off** (its address kept, `enabled` or `allowAnonymous` set to `false`, or `enabled` omitted, which the stack schema reads as `false`) stays closed whatever the environment saves: the anonymous routes treat the app's own document as a withdrawal that no override re-opens. The page judges this with the routes' own function, `anonymousFormIntakeWithdrawnIn`, now declared in `@objectstack/spec/ui` beside the rest of the intake rule; `@objectstack/metadata-core` re-exports the same binding, so the server's import is unchanged. The page lists such a form as "Off (switched off by its app)" with its switch disabled, also when an override already switches it on, and a switch-on writes nothing and says the app ships it switched off. A form whose app's document cannot be read is shown as status unknown, never as on. + - **After an app upgrade**, switching back on an override taken from an earlier version restores the app's own form when the form is otherwise unchanged. When it is not, the override is kept with the switch on and the page says the form stays on the app's earlier version, which Studio's "Restore package original" undoes. + - A switch over a draft already pending where it would save writes nothing and says so: that draft is its saver's and is never published on their behalf. + - A switch writes the form's metadata, which the server lets only a `manage_metadata` holder do. Without it the page still lists the forms but disables the switches and says why. A refused switch, and a list read that fails, are told in business words, never the server's raw message. + - A switched-off form keeps answering as it does today: `404 FORM_NOT_FOUND` at its address. No route, error code or stored key is added. + + New Setup navigation entry `nav_public_forms` in `group_configuration` (label "Public Forms", in every shipped locale) opening the component `forms:public-forms`; the Setup navigation now carries 35 entries. New locale block `publicFormsSetup` in every console locale. Not shown: when a form last took a submission, since a submission is an ordinary record of the form's object and records no form. +- f26469a: fix(app-shell): the report name box and the dashboard card title box say when readers are served a translation instead of the saved text + + Clause-②: no + Metadata-protocol: none + + The report panel (the report page's Edit panel and Studio) and the dashboard card panel (the dashboard page's edit panel and Studio) write a name or title typed in the session language as that language's entry, `{ default: SOURCE, LANG: EDIT }`. The server does not always serve that entry: with no packaged base (an item built in the environment) a translation the environment keeps for that language answers first, and on an installed item a translation the paired `.custom` package ships answers first (ruling record 6631250894's order, unchanged). The box then showed the translation again after Save, with nothing saying why. + + A note under the box now says so before Save, from the served text paired with the published one: + + - the published name already has its own entry for this language and readers are served another text: the note names that text and says a translation comes ahead of the text saved here, shown before any edit; + - the published name has no entry for this language, readers are served a translation of it, and the box holds an edit: the note names the translation and says readers keep seeing it after Save if it is kept in the environment's own translations or in the customization package. + + Both name where to change it: Studio › All metadata › Translation. Save writes no translation row: the console cannot read which translation row answers. + + New locale keys: `engine.inspector.servedLabel.kept` and `engine.inspector.servedLabel.ifKept` in the studio catalogue (en, zh). No props or exports change. +- 7501d0c: feat(studio): the Field History setting offers Default, On and Off, and Default says what it resolves to + + Clause-②: yes (widening) + Metadata-protocol: none + + The Field History setting on the field form, on each row of the object form's field list, and in the object's capabilities is now a three-way choice instead of a switch. Default leaves the setting unset, so the field (or object) follows the platform, and it names what that means for the row: "Default (On)" for most field types, "Default (Off)" for a media or JSON field unless the field opts in with Track History, and for a credential field always. On and Off write `true` and `false` as before. A setting turned off can now be returned to Default, which removes the key. + + `@objectstack/spec/data` exports `resolveFieldHistory(field, object)` and `FIELD_HISTORY_DEFAULT_OFF_TYPES`: whether a changed field's old → new values show on the activity timeline, and the types that are off by default. The activity writer in `@objectstack/plugin-audit` now asks this predicate instead of its own copy of the type list, so the default the form shows and what the writer keeps cannot disagree. Behaviour of the writer is unchanged. +- 4ef1ea9: feat(console): the sidebar's object entry offers Object settings in place of Design, and dashboard and page entries no longer offer Design + + Clause-②: no + Metadata-protocol: none + + A sidebar entry's ⋯ menu used to offer Design for an object, a dashboard or a page entry, and only on an app whose package Studio lists as writable. An object entry, and an object favorite, now offer Object settings instead, which opens the object in Studio's Data surface, where its fields are. It is offered to a workspace admin who may author metadata on an app built here and on an installed app alike; an installed app's package opens in Studio's browse-only posture. A dashboard, page or report entry offers no Studio entry any more: each is edited on its own page. Object settings asks first when the page on screen holds unsaved edits, as Design did. + + The list header's folded ⋯ menu, drawn when the header is too narrow for its actions, leads with the same Object settings entry under the same rule. + + The `console.nav.design` translation key is replaced by `console.nav.objectSettings` in every locale pack. +- d7411fa: feat(console): 「Configure tabs」 on an installed object writes its paired `.custom` package, marks where each tab comes from, and opens the record's 「…」 + + Clause-②: yes (widening) + Metadata-protocol: none + + On the record page of an object of an installed (read-only) package, a workspace administrator who may author metadata now finds 「Configure tabs」 too, where the customization door does not wall them off (the walled `group` / `isolated` postures leave it to the platform operator). Its 「Save」 writes the `relatedLists` of the object extension of the base's paired `.custom` package in the spec's shape (ADR-0146 D10): every shown tab in order, a built-in tab by its bare name, and every hidden related tab written `{ list, hidden: true }`; the pair is created on the first save by the ensure door, as Studio creates it. The extension is written over what the pair stores, with only its `relatedLists` replaced (`fields`, `fieldPatches`, `place` and `fieldGroups` kept), as a draft with the first-write pin, then published; a refused publish discards that draft. The original package is not written. + + On an installed object every tab can be moved: the object's own lists, a list another package brings, and the built-in 附件 / 审批 / 动态. A related tab can be hidden and shown again; a built-in tab cannot be hidden there (the `.custom` list cannot hide it), and an attachments tab the base hides waits in 「Hidden」, from which it can be shown. Each related tab is marked 「Original package」, 「From <package>」 or 「This environment」, read from the child object's package and the relationship field. + + A tab's stored title is kept when the administrator did not rename it, on self-built and installed objects alike: the name the editor shows is the served one, which the read translates for the reader's language. + + The write is one shared helper, `saveObjectExtensionArrangement`, which replaces only the arrangement keys a caller returns (`relatedLists` here; `fieldGroups` for a field-layout editor). + + `page:header`: a host `⋯` entry declaring `leadsMenu: true` is drawn first, ahead of Refresh; an authored action cannot claim the place. The record page's 「Configure tabs」 declares it, so it is the first item of the record's 「…」. + + New language-pack keys under `designMode.recordTabs` (`pairNotWritable`, `builtinMoves`, `sourceBase`, `sourcePackage`, `sourceEnvironment`) in all eleven console locales. +- c6075a7: feat(console): an administrator configures the record page's tabs in place, from the record's 「…」 + + Clause-②: yes (widening) + Metadata-protocol: none + + On the record page of an object whose package is writable (an object of a self-built app), a workspace administrator who may author metadata finds 「Configure tabs」 among the record's own entries in its 「…」 (desktop full page only; never on a phone, in a drawer or a pane, or on a page its author composed). Chosen, the page enters an edit state in place: a bar across the top with 「Configure tabs」, 「Cancel」 and 「Save」, in the design mode's bar's look, and the tab row turns into an editor. The record stays on screen as the preview, in the administrator's default order. + + In the edit state the related tabs are dragged to a new order, hidden into a 「Hidden」 area and shown again from it, and renamed; the attachments tab can be hidden; 审批 and 动态, which the page always draws last, are shown fixed, and so is a list another package brings. 「Adjust field groups」 opens the object in Studio. 「Cancel」 drops the changes and writes nothing; leaving the page with a change held asks first. + + 「Save」 writes the object's `relatedLists` over the object as stored (never as served), as a draft with the first-write pin, and publishes it, so everyone sees the new default order, names and hidden tabs. An object's own `relatedLists` hides a tab by leaving it out; an entry the editor does not arrange (a 审批 / 动态 name, a list it does not offer) is kept. A reader's own dragged order still lays over the new default, and 「Restore default order」 returns them to it. A tab is renamed only in the app's source language, where its shown name is its stored one, the design-mode menu's rule. + + New language-pack keys under `designMode.recordTabs` in all eleven console locales. `RecordPageColumns` takes an optional `tabRowEditor`, drawn in the tab row's place. Objects of installed (read-only) packages are not offered the entry yet. + + `page:header`: a `⋯` entry that finished on the click (it returned no pending promise) now closes the menu, as Refresh does; an entry still running keeps the menu open with its row busy until it settles, as before. +- cd51dbb: feat(studio): the top bar's left end reads 「‹ Back to app」, the app's name and "Studio"; the Studio-home button, the package switcher and Open app are gone + + Clause-②: no + Metadata-protocol: none + + Studio's top bar now starts with one way out: 「‹ Back to app · APP · Studio」. Entered from an app, the link names that app and returns to the page the author came from, its query included. Opened directly (a Studio address in a new tab, a reload), it names the package's published app and lands on its first screen; with several apps, the first. A package with no published app (none yet, or only a draft) and the organization flows scope read 「‹ Back to app」 with no name and go to the console's landing. Leaving with unsaved work in a pillar asks first, as every other header departure does. + + The home icon, the package switcher and the top-right Open app button are removed. Another package is opened from the app, or from the Studio landing, whose cards also carry package management and New package. + + New studio catalogue keys (en, zh): `engine.studio.backToApp`, `engine.studio.backToAppTitle`, `engine.studio.backToAppTitleNoApp`, `engine.studio.mark`. Removed with the Open app button: `engine.studio.openApp`, `engine.studio.openAppTitle`, `engine.studio.openAppPick`. `engine.studio.app.willOpenAfterPublish` now names 「Back to app」. No props or exports of the published packages change. +- 3f568c1: fix(studio): Studio's Interfaces column is retired; its old links land on the Studio home and its Changes links open from the Data pillar + + Clause-②: no + Metadata-protocol: none + + objectstack#36502. Menus, header actions, list views, dashboards, reports and record pages are designed in the running app. Studio keeps Data, Automations, Access and All metadata, and every view, dashboard, report and page stays readable and editable as metadata on its All-metadata item page. No metadata type, key or stored shape changes. + + - **Old links still open.** `/studio/<package>/interfaces`, with or without a `?surface=` deep link, lands on the package's Data pillar and says once, there, "Interface edits have moved into the app" (「界面的修改已经搬到应用里」) with a link back to the app. A `?changes=review` request travels with it. + - **`@objectstack/runtime`, `@objectstack/cli`.** The review link the MCP authoring tools and `os meta register --draft` print is `/studio/<package>/data?changes=review` (it was `/studio/<package>/interfaces?changes=review`, which still works through the redirect). + - **`@object-ui/i18n`.** Adds `engine.studio.interfacesRetired.sentence`, `.backToApp` and `.dismiss` (en, zh). + - **`@object-ui/plugin-chatbot`.** The `onDesignBuiltApp` doc example names the Data route. + - The console's "Edit in Studio" links for a dashboard, page, report or view open its All-metadata item page. + - **Customize moves with them.** On a read-only base, a view, dashboard, report or page is customized on its All-metadata item page, in the type's designer, into the base's pair (`<base>.custom`), with the override mark and "Restore package original" as before. It was the Interfaces column's header. +- 573a376: feat(i18n): `GET /i18n/locales` names the source locale, and a design-mode menu rename outside it is stored as that language's translation + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: follow-up owed — skills/objectstack-i18n/SKILL.md + + - **`GET /api/v1/i18n/locales` names the source locale.** The body gains an optional `sourceLocale` (`GetLocalesResponseSchema.sourceLocale`): the language the app's own text, a plain-string `label`, is written in. It is the declared `i18n.sourceLocale`, else the default locale, the same rule the metadata translators use. It differs from the `isDefault` locale on an app written in one language that defaults its users to another. It is absent only when the server knows neither. Nothing that parsed before stops parsing. + - **A menu rename in design mode is stored where the reader's language reads it.** The name field of 「Rename and icon」 is now open in every language. A name typed in the source language, over an entry shown by its stored label, is still written to the stored label. Any other name is written as that language's translation of the entry: a name typed in another language, or one typed in the source language over a translation the reader was shown. The stored label stays unchanged, so every other language keeps its name. The rename says so when the new name will be a translation ("The new name is shown in LANGUAGE. The app's other languages keep their names."). + - **Where the translation goes.** It is written to the `translation` item `APP_menu_LOCALE` (for example `crm_menu_zh_cn`), at `apps.APP.navigation.ID.label`, the key app navigation is translated by. It goes into the package the menu is written to: the app's own package when that is writable, else its customization package, whose own translations are read first (ADR-0146 D2). Like the menu, it is saved as a draft with the first-write pin and published at once. A pending draft of it is refused and the reason is shown. A translation-only rename writes the translation and leaves the app alone. + - **A link added in another language** is stored without a name, and the name typed for it becomes that language's translation. The source language names it when someone sets a name there. Until then, a reader in the source language sees the link's URL, as for any link with no label. + - Before this change, the console allowed a rename only when the reader was in the deployment's default language. The default language could differ from the source language, and a rename there was written to the stored label for every language. +- 5c2d5cf: feat(studio): the object page's 「表单」 tab is now 「字段布局」 (Field layout), edits the object's field groups only, and arranges an installed object into its paired `.custom` package + + Clause-②: no + Metadata-protocol: none + + The Studio object page's Form tab is renamed 「字段布局」 / Field layout, and says in one sentence where its groups and order are used: the record page, the right-side preview, and the create and edit dialogs. It reads and writes the object's field groups and nothing else; no form view is read or written there. + + Group membership and order are saved in each group's own `fields` list. An object still written with a `group` on each field shows its groups as before, and its first save from the tab converts it to the lists, with nothing on the canvas moving. + + On an object of an installed (read-only) package the tab is no longer read-only where the customization door is open: adding, renaming, deleting and reordering groups, dragging fields (a field another package brings included) and the group settings all edit the object extension of the base's paired `.custom` package, as the whole `fieldGroups` arrangement (every group listing its members), saved and published by the top bar's Save with the rest of that extension. The original package is not written. A field or group `place` entry of that extension, which a written arrangement replaces, is taken off on save; a tab placement stays. Each field card of an installed object is marked 「原始包」 / Original package, 「本环境」 / This environment, or with the package that contributes it. Where the door is walled the tab stays read-only, as before. + + New Studio strings: `engine.studio.data.form.usedOn` and `engine.studio.designer.source.{base,baseTitle,environment,environmentTitle}` (en, zh); `engine.studio.data.form.layoutSource.*` is removed with the chip it labelled. +- 43916f3: fix(plugin-list): a list's locked chip for a condition on a related record's field names the field and the value, instead of reading `[object Object]` + + Clause-②: no + Metadata-protocol: none + + A view filter that compares one field of a related record, the nested-relation form `{ crm_account: { industry: 'technology' } }`, now reads as one locked chip on the path `crm_account.industry`: 「Account › Industry: Technology」. The form is read as written and as lowered to `['crm_account', '=', { industry: 'technology' }]`, the shape a dashboard or report drill on a relationship-path dimension hands its list. Before, that chip read the lookup's label and `[object Object]`. + + - The lookup's name is its label in the list's own field list. The related field's name and its option labels come from the related object's definition, translated as the list translates its own fields (`fields.<object>.<field>`, `fieldOptions.<object>.<field>.<value>`). Where a label is missing, the raw name shows. + - The row reads the related object's definition once per related object, only while such a chip is shown, through the host's data source. + - A nested condition the chip cannot say as one equality (several fields, an operator, a deeper relation) reads as the view's own condition (「View filter」), never as `[object Object]`. + - Every console locale gains `listConditions.chips.relationPath`. + + The chip stays locked: the list cannot edit a related-record condition. +- f590f3e: feat(studio): hooks, an installed app's added actions and flows save with the top bar, and a Save is live at once + + Clause-②: no + Metadata-protocol: none + + The Studio's hooks, the actions an installed app's object gains in its `.custom` package and flows no longer autosave a draft 1.5 s after each edit. Edits stay on the page until the author presses Save in the top bar; Cancel puts them back as the server holds them. Save writes each edited item's draft and then publishes that one item at the package it was written to, so the change is live at once. A new hook or an added action is written only by Save, and a removed added action is deleted by Save. + + A flow's on/off switch needs no Save: a flip writes the stored flow with the new status and publishes it at once, leaving any unsaved canvas edit on the page for Save. A new flow is published as it is created, switched off, so switching it on makes it live straight away. The inspector footers and the Studio landing say that Save makes a change live; permission sets follow in a separate change. +- 9fa05c6: feat(studio): every human editor in Studio saves live; an item's unpublished AI changes can be dropped on its page + + Clause-②: no + Metadata-protocol: none + + Every editor a person uses in Studio's object, automation and access pages now saves with the top bar's Save and Cancel, and a Save is live at once: an object's fields, field layout, validation rules, actions, settings and hooks, flows, and now permission sets and the Access pillar's record-sharing overview, which no longer has a Save of its own. A permission set no longer autosaves a draft 1.5 s after each edit, and the access banners say that Save makes a change live. Creating an object, a flow or a permission set makes it live at once too, so those create dialogs say Create instead of Save as draft; apps, pages, dashboards, reports and datasets are still created as drafts. + + Changes and Publish are left for the AI assistant's drafts. When an object or a flow holds an unpublished draft the assistant wrote, its page says that saving makes those changes live too and offers to discard them: that one item's draft is dropped, the page goes back to the live version, and Changes counts one item fewer. Unsaved edits on the page go with the discard, after a confirm. +- ed0edb1: feat(studio): the object page saves with Cancel and Save in the top bar, and a Save is live at once + + Clause-②: no + Metadata-protocol: none + + Studio's object page (fields, validation rules, actions, settings and field groups) no longer autosaves a draft 1.5 s after each edit. Edits stay on the page until the author presses Save, which sits at the right of the Studio top bar where Publish was; Cancel beside it puts the page back as the server holds it. Save writes the object's draft and then publishes that one object at the package it was written to, so the change is live at once. An installed app's object takes its edits into the paired `.custom` package and publishes them there. + + Changes and Publish are drawn only while drafts are pending (a copilot's, or another editor's), and a publish waits while the page holds edits Save has not sent. A Save refused by the server keeps the edits on the page with the reason, and its toast names each refused item with its reason and lists the items that were saved. Removing or retyping a published field asks first. Save waits out the expression checks of the last keystroke, so a formula or rule guard that does not parse is never sent. Leaving the page, or opening another object, with unsaved edits asks, as every departure does. + + Hooks, flows and permission sets moved to the same Save in later changes; list views and navigation keep their draft autosave for now. +- a10987a: feat(studio): the object Settings tab speaks business language, shows each setting's key as small print, and puts the developer options last + + Clause-②: no + Metadata-protocol: none + + Studio's object Settings tab is now in two parts. The business settings come first: label, plural label, icon and colour, description, who can see which records, the record name field, the stage field, the highlight fields, the record page tabs and the features. A "Developer options" section comes last, expanded and with no switch. It holds the internal name (read-only once the object exists), who can open the object by default, and the extra permissions it requires. + + Titles and descriptions no longer show ADR numbers, internal rule codes or key names in parentheses. The metadata key each setting writes (`nameField`, `sharingModel`, `enable.clone`, `access.default`, `requiredPermissions`, …) is shown as small monospace text beside the setting's title. One click selects the whole key for copying. The key sits outside the control's label, so selecting it neither opens a picker nor flips a switch. + + Three descriptions are rewritten so that someone who does not know the platform's internals can follow them: the internal name, the default access ("Standard — anyone with access to all objects" / "Restricted — only people granted this object by name") and the extra required permissions. The English and Chinese texts are both updated; every other language falls back to English for these strings, as before. + + What each setting means and what it saves are unchanged. + + For hosts of the object default inspector: `MetadataDefaultInspectorProps` gains an optional `split` (`{ part: 'business' | 'developer'; renderKey? }`). Only the object inspector reads it. Without it the inspector draws its whole panel, as before. The reworded object-inspector strings also show wherever that inspector is mounted. +- d24e4ab: feat: the controlled-by-parent master refusal carries a machine-readable code, and the Studio settings tab words it for the author in en and zh + + Clause-②: yes + Metadata-protocol: none + + `@objectstack/spec` — the refusal of a `sharingModel: 'controlled_by_parent'` object that does not derive exactly one writable master now stamps its parse issue with `params: { code: 'CONTROLLED_BY_PARENT_MASTER_INVALID', shape }`, at both raise sites: `ObjectSchema`'s refinement and `defineStack`'s extension-merge gate. `shape` is the refusal's existing `ControlledByParentMasterShape` (`several-required-masters`, `several-masters`, `master-not-required`, `required-lookup-only`, `no-master`, `master-not-writable`). The code is exported as `CONTROLLED_BY_PARENT_MASTER_INVALID` from `@objectstack/spec/data`, with the `ControlledByParentMasterIssueParams` type, and is registered in `ERROR_CODE_LEDGER` under `@objectstack/spec`. Which objects are refused, and where, is unchanged. + + The refusal's English message no longer cites an ADR section: each of its three arms read `ADR-0055 §1: since @objectstack/spec 18, …` and now reads `Since @objectstack/spec 18, …`. The rest of each message, including the fix it prescribes, is unchanged. A script that matched `ADR-0055 §1:` in this message should match `params.code` on the zod issue instead, where it can see the issue: an `ObjectSchema` / `ObjectStackDefinitionSchema` `safeParse`, or the `issues` of `defineStack`'s `STACK_SCHEMA_INVALID` refusal. The metadata save door's `422 INVALID_METADATA` does not carry the code: its `issues[]` entries keep `path`, `message` and zod's issue code (`custom`) only, so a reader there still has only the message. + + `@object-ui/app-shell` / `@object-ui/i18n` — the Studio object settings tab no longer shows the spec's English message verbatim when "Follows its parent record" cannot be saved. It reads the code and shape off the save door's own parse and shows one sentence per shape from the `studio` namespace (`engine.studio.settings.cbpRefusal*`, en and zh), naming the fields to change by their labels. A refusal without the code, or with a shape that has no sentence, still shows the spec's message. +- f77d078: fix(console): the design mode's menu save refuses an unreadable stored app, pins its publish, and keeps own entries out of another package's group + + Clause-②: no + Metadata-protocol: none + + The menu editor of the console's design mode, and its 「Save」, are hardened in eight places: + + - Two id-less menu entries of one group with the same type and target (two separators, say) are matched to their own served copies: an entry the reader was not shown (other `requiredPermissions`) no longer takes the key of the one shown, so removing the shown entry removes it, not the hidden twin. Twins equal in every key are matched by their place. + - A stored read that holds no app (the layered read answers a 404 as an empty view) refuses the save, and the bar says why, instead of writing an app of the menu additions alone. On entry such a read no longer marks every entry as another package's. + - The publish is pinned to the published row the save was composed over (the `/layers` read's `overlayVersion`, sent as `If-Match`, or `If-None-Match: *` where no row is stored), read at the address the publish writes. A publish somebody lands in between is refused, the draft is discarded and the bar says so; saving again applies the edits over it. A server that serves no `overlayVersion` is published unpinned, as before. + - A group another package contributes is not offered by 「Move to group」, has no 「Add menu item」, takes no drop, and offers no 「Add an item before / after」 on its entries. + - An entry added at a group's end while the stored read is still pending is drawn before another package's entries once the read lands, where the save puts it. + - Space starts a keyboard move and Enter opens the entry's page; the editor's help line and its screen-reader instructions say so. + - A drop outside the menu moves nothing. + - The click that ends a pointer drag opens nothing however long the button was held after an Escape, and no click opens a link while a keyboard move is held. + + `AppMenuSaveTexts` gains two optional sentences, `storedUnread` and `publishedMoved`; a caller that states neither is told the package sentence for the first and the server's refusal for the second. Nothing to migrate. +- 0e83fe0: fix(studio): a state-machine row in the validations panel can say its state may be cleared, and editing the row keeps that + + Clause-②: no + Metadata-protocol: none + + A `state_machine` rule judges a clear of its field (`null` or `''`) as a transition to `''`, allowed only from a state that lists `''` among its targets. The Studio validations panel parsed a row's next states with the empty entries dropped, so an admin could not make a state clearable from Studio, and editing a row that already listed `''` silently removed it, after which users who cleared the field were refused again. + + Each transition row now has a "May be cleared" checkbox that adds or removes the `''` target. The "Next states" box shows and edits the named targets only, and an edit to it keeps an existing `''` (written as the row's last target), so a rule with `paused: ['open', '']` is written back unchanged. Nothing changes in what the server accepts or how it judges a transition. +- 70f454a: fix(metadata): two Studio Saves over one published item are no longer last-writer-wins + + Clause-②: yes (widening) — two new optional members join what the API accepts and answers: `PublishMetaItemRequestSchema.parentVersion` (the `If-Match` / `If-None-Match: *` pin on `POST /meta/:type/:name/publish`) and `GetMetaItemLayeredResponseSchema.overlayVersion` (served on `GET /meta/:type/:name/layers`); nothing is removed or narrowed, and a publish that names no version behaves as before + Metadata-protocol: added + + A Studio Save writes the item's draft and then publishes that one item, so it leaves no draft behind. Two admins who opened the same object with no pending draft both asserted "no draft" on their draft save, and the later Save published over the earlier one without a word: the published layer served no version a Save could pin. + + - `GET /meta/:type/:name/layers` now answers `overlayVersion`: the version token of the stored active row at the read's address (`?package=`), the same keyed token the plain uncached read serves as `version` and a publish receipt serves as `version`; `null` when no active row is stored there. + - `POST /meta/:type/:name/publish` takes that token as `If-Match` (or `If-None-Match: *`, "no active row here"). A token that is not the current active row's is refused `409 METADATA_CONFLICT` with the current token as `currentVersion`, and nothing is promoted: the draft stays pending. The headers are read as the save door reads them, so `If-Match` beside `If-None-Match`, or an `If-None-Match` other than `*`, is refused `400 VALIDATION_ERROR`. A publish with neither header is unpinned, as before. The pin is checked by the store's own lock on the promoting write, not by a separate earlier read. + - `MetadataClient.publish` (`@object-ui/data-objectstack`) takes `ifMatch` / `ifNoneMatch`, sent as those headers. + - Studio's object page pins its Save's publish to the published row it was loaded at. When another editor published since, the Save shows the reload-or-overwrite dialog the draft conflict shows, worded for a live change: reload takes back the draft the Save wrote and re-reads the live object, overwrite (after a confirmation) publishes over the version the refusal names, and keep editing leaves the edits on the page, unsaved. New locale keys in the studio catalogue (en, zh): `engine.draftConflict.publishedTitle`, `engine.draftConflict.publishedDescription`, `engine.draftConflict.publishedOverwriteTitle`, `engine.draftConflict.publishedOverwriteDescription`. + + The two members enter the authorable-surface ratchet (`api/GetMetaItemLayeredResponse:overlayVersion`, `api/PublishMetaItemRequest:parentVersion`), so `@objectstack/spec` takes `minor`; the other packages stay `patch`. + + Nothing to migrate: a client that sends no version is unaffected. +- 0d6589d: Clause-②: no + Metadata-protocol: none + + The console now reads a drawn flow's approval step label (`flows.FLOW.approvals.NODE_ID.label`) through the spec's `resolveFlowApprovalStepLabel`, the resolver the server's approval reader uses, with the same resolve options it hands `translateFlow` for the flow's own label. A locale tag spelled in another case (`zh-cn` against a `zh-CN` bundle) now finds the approval label as it already found the flow label, and a locale missing the entry still answers nothing, so the drawing keeps the authored label. +- c54aa57: feat(console): the report builder adds 「+ Filter」 under the data source — a report filter on the bound dataset, drawn into the preview at once and kept on Save + + Clause-②: yes (widening) — a new optional `filter` slot on `ReportBuilder` (`@object-ui/plugin-report`), two exports from `@object-ui/plugin-list` (`conditionCandidatesOf`, `conditionOptionsOf`, and the `ConditionCandidateField` type), and four new `@object-ui/i18n` keys (`report.builder.source.addFilter`, `filterAdvanced`, `filterLoading`, `filterNoFields`) in all 11 locales; no spec, schema or server change + Metadata-protocol: none + + - **The filter** (`@object-ui/app-shell`): under the data source, 「+ Filter」 opens the same condition editor the dataset designer uses, over the fields of the dataset's object (their translated labels, a select's options, a lookup's record picker; hidden fields are not offered). Each condition is written into the report's `runtimeFilter`, the preview redraws with it at once, and Save keeps it; removing the last condition removes the key. Switching the data source clears the filter. + - **The fields offered** leave out virtual (formula) fields: the dataset door refuses a filter on one, so a report filtered on it could be saved and then fail for every viewer. + - **A filter with `$and` beside other conditions** (`{ $and: [...], amount: {...} }`, or with `$not`) is no longer read as editable rows by the shared filter bridge, so neither the report builder nor the dataset designer opens it where the next edit would drop the conditions beside the `$and`; it keeps the panel / source editor, unchanged. + - **Which reports open in the builder:** a dataset report with a saved filter now opens in the builder when its filter is one the builder can edit (field conditions joined by AND); a filter it cannot edit (an OR, a nested group, two operators on one field) keeps the report inspector panel, as before. A filter that turns out not to be editable once the fields are read is shown as kept and saved unchanged. +- 53257a5: feat(report): 「Compare with previous period」 beside a report's period chip — the chart draws the earlier window beside the current one + + Clause-②: yes (widening) — one new `@object-ui/i18n` key, `report.dateRange.comparePrevious`, in all 11 locales; no export, spec key, schema or server change + Metadata-protocol: none + + - **The switch**: a report that declares `dateRange` now shows 「Compare with previous period」 next to its period chip when its chart can draw a comparison: bar, column, horizontal bar, line or area over a category axis, or a single number. It is not offered on a `seriesBy` split, nor on a chart whose x axis is the window's own date dimension, where the earlier window's date buckets would not line up with the current ones. Like the period pick it is the viewer's and is not saved into the report. It is off, and cannot be turned on, while the period is All time or a custom range missing an end. + - **What it asks for**: the chart's dataset query carries the contract's `compareTo: { kind: 'previousPeriod', dimension }`, on the same dimension and window the period chip already sends. The chart is compared with the same-length window just before the current one (the contract's `previousPeriod`). The table beside the chart is not asked for a comparison. + - **What it draws**: a bar or line chart gets one more series, the measure's earlier window, labelled 「<measure> · vs previous period」 and drawn muted by the chart's existing `comparison` styling; a single number shows the previous period's value and the change in percent under it. A click on an earlier-window mark opens no record list, the dashboard's rule for the same series. A comparison the server refuses is shown where the chart was, instead of the chart disappearing. +- e0050ba: fix(console): report editing is its own entry, and report and dashboard editing exclude the design mode both ways + + Clause-②: no + Metadata-protocol: none + + The console's design mode no longer hosts the report builder, so the screen shows one Save/Cancel set at a time: + + - The design mode's 「Add menu item → Reports」 lists only reports that exist; its 「New report…」 row is gone, with the hand-off that let the builder save into the menu. A new report is made from the reports index, then linked from the design mode. + - The reports index offers 「New report」 in its header, opening the report builder. It is offered to workspace admins, as the builder is, and not while the design mode is on. + - While the design mode is on, a dashboard's and a report's own 「Edit」 are not offered. + - While a dashboard or report editor is open, 「Design layout」 refuses with a prompt to save or cancel those changes first, so the design mode's 「Cancel」 can no longer end the mode under an editor left open. + - The report builder's own address reached with the design mode already on (the browser's Back) shows a prompt to finish designing the layout instead of the builder; the builder opens there once the mode is saved or cancelled. + + The design mode's 「New dashboard…」 is unchanged. In `@object-ui/i18n`, `designMode.menu.newReport`, `designMode.menu.newReportLeft` and `report.builder.addsToMenu` are removed from every pack, and `designMode.editorOpen`, `console.reportIndex.newReport`, `report.builder.designModeOnTitle` and `report.builder.designModeOn` are added. Nothing to migrate. +- 14f4d8f: feat(app-shell): Notification Settings offers "Follow organization setting" for digest and quiet hours + + Clause-②: no + Metadata-protocol: none + + Once a member has saved a digest or quiet hours of their own, the Notification Settings page now offers a "Follow organization setting" action beside each one. It empties that field on the member's own general preference (the same empty the Setup grid writes), so the organization's default decides again, including any later change to it. The page then shows the value in force as the organization default. The action appears only where the field is the member's own choice; where there is nothing to clear, it is not drawn. + + The member's own general preference itself stays, and so does its on/off; per-topic and per-channel choices are not reset by this action. + + New strings `notificationSettings.followOrganization` and `notificationSettings.followOrganizationFor` in all eleven built-in locales. +- 183ed23: fix(console): saving a report an installed app ships, from the report builder, writes the app's `.custom` customization package instead of failing with 403 + + Clause-②: no + Metadata-protocol: none + + The report builder (and the report inspector panel beside a joined or pre-dataset report) wrote every save naming no package, so an edit to a report a read-only package ships addressed that package and the metadata write door refused it: the admin's change was lost at Save. The save now lands where the in-page dashboard editor's does (ADR-0146 D2, D3, D11): in the package the report is served from when that package is writable, else in the app's customization package `<base>.custom`, which the ensure door creates on the first save, with the report declaring the override of its base (`overrides: { package, basedOn }`), as Studio's Customize writes it. The editor's buffer is still the layered authored read at the package the report is served from, and Save still writes and publishes in one press. + + Where such a save could not land, the editor is not opened and says why, in Studio's own sentences: the ensure door is walled for this caller, the package list names no installed version to declare the override at, or a draft of the report is already pending in the customization package (the in-page dashboard editor refuses that at open too). A report whose package is not listed, or whose package list cannot be read, is refused in its own sentence with the reason under it; a report of a writable package opened in the builder before this change even when the list could not be read. A report that names no package is saved as before. Two new Studio sentences carry those refusals in English and Chinese. +- 4d4ec16: feat(console): from 768 px up a sign-in lands in the last-used app, and the platform home page retires + + Clause-②: yes (widening) + Metadata-protocol: none + + From 768 px up there is no platform home page any more. A sign-in, the SSO round trip and the old `/home` address all land the person in an app their permission sets show, in this order: the app they last had open, while it is still there for them; else the app the product declares `isDefault`; else the first app somebody put into the environment (never Setup or Studio). + + - A person with no such app at all stays on `/home`, which now draws only the no-apps empty state: 「No applications yet」, and for a viewer who may add an app the same doors the sidebar's 「Add app」 offers (build with AI, start from a template, the app marketplace). An administrator's first-run checklist stays above it. + - An administrator's first-run checklist, while it has open items, moves to the top of the Setup app's first page (the page Setup opens on). It is drawn from 768 px up only, and a phone is unchanged. + - `@object-ui/app-shell` exports `SetupFirstPageSlotProvider`, through which a host puts its element above the Setup app's first page. + - The console's Home affordances (⌘⇧H, the way back from a missing app, Studio's way out) go where the landing goes. Where the chrome cannot yet tell which apps a permission set hides (Studio, the AI pages, or before that answer arrives) they point at `/home`, which resolves the landing itself. + - The SSO sign-in's callback is the console root instead of `/home`, so it lands the same way. + - A phone is unchanged: it still lands in the last app first, and `/home` is still its app list. + - `@object-ui/app-shell` exports `resolveDesktopHomePath(apps, lastApp)`, the desktop's Home. + - `RedirectWithSplash` takes an optional `state`, so the hops from `/` and `/home` into the landing app keep what the visit carried (an old `/ai` address's Builder handoff). + - Every console locale gains `home.noAppsAddDescription`. +- d763ee7: fix(console): a record page's tabs are arranged in the design mode, under its one bar; a list's draft actions read Reset / Update view + + Clause-②: no + Metadata-protocol: none + + The design mode and the record page's 「Configure tabs」 each drew a purple bar with its own Cancel and Save, and the two stacked when both were open. A list's draft actions (Discard / Save) showed under the design mode's bar as a second page save. Following Twenty's grouping (the maintainer's ruling 「照 Twenty 归类」): + + - The record page's tabs are part of the design mode. While the mode is on, the tab row of a record's desktop full page is the tabs editor in place, for an administrator who may arrange that object's tabs (the same gates as before: a workspace administrator who may author metadata, the desktop full page, not a drawer or pane, not an authored page, and the customization-door wall on an installed object). The draft is staged with the mode's other changes (the app menu, the header buttons): the mode's Save writes it with them, to the object's own package (`relatedLists`, published) or, on an installed object, to the base's paired `.custom` object extension, as before; the mode's Cancel drops it. The draft stays staged while the administrator moves to another page of the app. The record's ⋯ no longer offers 「Configure tabs」, and the separate 「Configure tabs」 bar is gone. A failed save says so through the mode's own message and keeps the draft staged. + - A list's draft actions are the view's own, as Twenty's 「Reset / Update view」: they now read 「重置 / 更新视图」 (en: Reset / Update view; every bundled language pack is updated), and they stay drawn and live while the design mode is on. The Update view menu keeps 「Save to this view」 and 「Save as my view」. Where the open view cannot take the change (a view a read-only package ships, or a reader who may not write it), the button reads 「另存为我的视图」 (Save as my view), the one save its menu holds; on the phone's chip row it reads 「保存」 (Save) there, so the view switcher beside it keeps its name. + + Locale values changed in `@object-ui/i18n` (no key added or removed): `console.objectView.draft.discard` and `console.objectView.draft.save`, in all eleven bundled packs. No props or package exports change. While a record's own edit state is open, its tab row is not the tabs editor. +- 8018e00: feat(console): the first-run checklist asks for the organization's basics in one form, leaves the rest optional, and follows the administrator as a 「Get started n/m」 pill in the sidebar + + Clause-②: yes (widening) + Metadata-protocol: none + + The administrator's first-run checklist had five setup rows that each saved on their own (the organization's name, language and country, timezone, currency) and counted every row, so it only went away once mail, invitations and AI were set up too. Following the maintainer's ruling on objectstack#36739: + + - **One form, one save.** A single 「Organization basics」 row opens one form with the organization's name, default language, country, timezone and currency. Values the server does not hold yet are suggested from the browser, and a setting with neither a value nor a suggestion must be filled in like the name; nothing is written until Save, which renames the organization (when the name changed) and writes the four settings in one call. A refused rename or a refused setting shows on its field, as before. The row is done once the organization has a real name and all four settings are set. + - **Only the basics are required.** Mail, invitations, the built-in AI provider and connecting an outside assistant become optional rows (marked 「Optional」); they still tick themselves when the server says they are done. On the hosted profile, 「Put in your first app」 stays required. The checklist is complete, and stands aside on Home, once the required rows are done; its progress (n/m) still counts every row. + - **A pill in every app.** For the administrator only, a 「Get started n/m」 pill sits at the bottom of every app's sidebar (on the folded icon rail it keeps its icon, with the count in its accessible name and tooltip). A press opens the checklist in place in a popover; the popover's X only closes it, and 「Hide on this device」 under the list hides the pill and Home's card. On a phone, which has no resident sidebar, the pill sits after the app's menu on the app's home page. It disappears once the required rows are done, or once the administrator hides it on this device. + - **Setup's first page keeps the full list**, done rows included, even after the checklist is complete or hidden; a completed list folds to one line with 「Show list」. + + `@object-ui/app-shell` exports a product-neutral `SidebarFooterSlotProvider` (with its `SidebarFooterSlot` and `SidebarFooterSlotPlace` types; places `'sidebar' | 'phoneAppHome'`) that the console fills; the shell names no checklist. `@object-ui/i18n` replaces the per-setting checklist strings in all eleven packs. Added under `console.firstRunChecklist`: `showList`, `hideHere`, `organizationBasics.{title,todo,name,nameRequired,prefilled,save,saved}`, `pill.{label,count,aria}`. Removed from `console.firstRunChecklist` (no reader is left in the console; a consumer that indexed them reads the new keys instead): `showDoneSplit`, `confirm`, `prefilled`, `organizationName.{title,todo,action}`, `languageCountry.{title,todo,saved}`, `timezone.{title,todo,saved}`, `currency.{title,todo,saved}`. +- 844218f: feat(console): the bell opens a full-page inbox from 768 px up + + Clause-②: yes (widening) + Metadata-protocol: none + + From 768 px up, the sidebar's bell no longer opens the right-hand panel: it opens the inbox page at `/apps/APP/inbox` (`/inbox/approvals`, `/inbox/activity`, with `?item=ID` for the selected row), inside the current app's shell, so it can be bookmarked and the browser's Back leaves it. A list on the left, the selected item on the right: + + - **Approvals** — the request's own page, embedded: its fields, approval progress, the applicant's note and the request's declared decision actions, with the same visibility rules and parameter dialogs. A decision moves the selection to the next request and the badge drops with it. + - **Notifications** — the record the notification is about, embedded (its comments stay on the record's full page, one «Open full record» away); opening a notification marks it read, while the row the page shows on arrival stays unread until it is opened. Repeats stay coalesced into one row by topic and title, with every occurrence listed on the right. «Unread only», «Mark all read», and «Load earlier notifications» page beyond the 20 rows the bell badges from. + - **Activity** — the record each activity row happened on. + + J / K move through the list. The inbox links a linkless arrival toast and Home's notifications column used (`sys_inbox_message?view=mine`) now open this page. The zh-Hans name of the surface is 收件箱. The phone keeps its panel, and the `global:notifications` page block keeps the panel at every width. The data, the coalescing rule, the badge count and the decision actions are unchanged. +- 8cce05b: fix(studio): a flow just created in Studio reads 「已停用」 in its header, and the create toast says it is switched off + + Clause-②: no + Metadata-protocol: none + + Creating a flow in Studio publishes it at once, born switched off. The header's Status pill then read 「未发布草稿」 (Unpublished draft): it reads the engine's `/automation/_status` rows, and the create never asked for them again, so the snapshot taken before the flow existed had no row for it, which reads as never published. The create now re-reads the engine status after its publish, as Save and the on/off switch already do, so the header says 「已停用」 (Switched off) right after creation. + + The create toast had reused the Save toast, 「已保存并生效:{items}」, which promises a run the new flow will not do. It now has its own key, `engine.studio.auto.createdOff`: 「已创建:{name}(已停用,启用后才会运行)」 / "Created: {name} (switched off; it runs once you switch it on)". + + The Data pillar's first-object hint no longer ends 「…最后一次发布。」 ("publish once at the end"): objects are live on Save, and it now says each Save takes effect at once. +- 0d727b7: fix(studio): 「新建自己的应用」 on the Studio landing ends with an app, a new object joins that app's menu, and an empty menu is not blamed on access + + Clause-②: yes (widening) — new keys in the published `@object-ui/i18n` packs: the studio namespace (`engine.studio.newApp.*`, `engine.studio.data.appMenu.*`) and all 11 app-shell locale packs (`empty.appMenuEmpty`, `empty.appMenuEmptyDescription`, `empty.openInStudio`). Additive only; nothing is removed or renamed. + Metadata-protocol: none + + The landing's "New app of your own" card opened the create-package dialog unchanged: it created a package and no app, and the author then had to find "Create app" in the top bar, which saved a draft that opened only after a package publish. The card now opens one "New app" dialog, worded for an app throughout (in Chinese it says 「应用」, never 「软件包」), and one confirm creates the package and its app. The app is written and published at once, like every other item a person creates in Studio, so it opens as soon as the dialog closes. A free app name (the package's namespace, else `NAMESPACE_app`) is checked before anything is written, so a taken name refuses the confirm and writes nothing. + + The Studio top bar's left end named an app only when there was one to go back to. A package with no app read "Back to app · Studio" and did not say which package was open; it now shows the package's name in that place. + + The top bar's own "Create app" button and the package dialog on the Packages page are unchanged. + + A new app's menu started empty, and nothing ever filled it: an object created later in Studio did not appear in the app, which opened on an empty screen. Studio's "New object" now adds the new object to the menu of its package's app once the object is live, when the package has exactly one app and no menu entry already opens the object. The entry is written through the design mode's menu save (a draft, then the app's publish), so a draft somebody left pending on the app is refused rather than overwritten. A refused menu save, or a failed read of the package's apps, keeps the object and says so in a warning; the menu can be edited in design mode. With several apps, which menu gets the object stays the author's choice in design mode. + + An app whose menu is empty, as stored, told an administrator to grant access in Setup. For a person who can grant access and author the app (`manage_metadata`), the screen now reads the app's stored menu: when it is empty there too, it says the app has nothing in its menu yet and opens the app's package in Studio. A stored menu with entries this person is not shown, an administrator who cannot author (the stored menu is served to them pruned, and Studio would refuse them), or a failed read keeps the access answer. +- ff0d1f1: fix(console): the app-name menu offers 「Design layout」 for the design mode and 「Edit app」 for Studio + + Clause-②: yes (widening) + Metadata-protocol: none + + The app-name menu's 「Edit app」 entered the design mode, which edits only the app's layout (its menu, header pins and page arrangement), and no desktop surface opened the app itself in Studio. The menu now has two entries under the list of apps, in one group with 「Add app」: + + - 「Design layout」 (zh 「设计布局」) turns the design mode on, on the same condition as before. The mode's bar now reads 「Design layout」 too, and so do the strings that name the mode (the leave prompt, the menu editor's notes). + - 「Edit app」 (zh 「编辑应用」) opens this app's package in Studio, on the app switcher's Studio target: an object page opens that object in the Data pillar, a dashboard, page or report its design surface. An installed (read-only) package's app reads 「View in Studio」 (zh 「在 Studio 中查看」) behind an eye instead, and opens Studio's browse-only posture. It is offered on the Studio entry's own condition: a workspace admin holding `manage_metadata`, on an app whose package Studio lists (the console's own Setup, Studio and Account apps get none). + + Two locale keys are added in every built-in pack, `topbar.designLayout` and `topbar.viewInStudio`; `topbar.editApp` keeps its words and now names the Studio entry wherever it is drawn. +- 4f7d6f7: fix(console): the Change Owner dialog's queue target offers the queues an installed app declares, not only the organization's `sys_queue` rows + + Clause-②: no + Metadata-protocol: none + + A queue can live in two places (ADR-0142 D1): a `sys_queue` row the organization authored, or a `queue` item an installed package declares. The Change Owner dialog's queue target searched `sys_queue` alone, so a declared queue could be named everywhere else (sharing-rule recipients, flow approvers) but never picked as a record's new owner. The queue target now lists the declared queues as their own choices under the `sys_queue` lookup, built by `mergeQueueCandidates`, the merge the other queue pickers use. The server resolves a queue name registry-first, so when a `sys_queue` row shares a declared queue's name, the declared queue is the one offered and the lookup leaves that row out. Either choice sends the queue's name, as before. The `sys_queue` lookup keeps its server search and paging; a declared read that fails offers no declared queue and leaves the lookup working. + + `@object-ui/i18n` adds one key, `console.changeOwner.declaredQueues`, in every locale pack. +- b848b47: fix(i18n): a flow's node and screen step labels match the session's locale tag the way the flow label does + + Clause-②: no + Metadata-protocol: none + + The flow designer and the docs viewer's flow drawing read a node's translated label (`flows.FLOW.nodes.NODE_ID.label`) and an untitled screen's translated title (`flows.FLOW.screens.NODE_ID.title`) by the exact language key, so a `zh-cn` session missed a bundle keyed `zh-CN` and showed the authored text. They now pick the bundle row with the spec's `resolveBundleLocale`, the locale matching `translateFlow` and `resolveFlowApprovalStepLabel` already use for the flow label and an approval step's label. One locale, no fallback chain. +- 0819cab: fix(console): a screen-flow step the run already left is never submitted again + + Clause-②: no + Metadata-protocol: none + + The console's screen-flow dialog no longer resends a step after the run has moved on. Before, a resume could finish on the server while its answer was lost on the way back: a gateway timed out, or the connection dropped. The dialog then kept the step with Next still active. The next press sent that step's values to the screen the run was now on, and the user saw the engine's English refusal, which names the fields. A two-step quote wizard showed this failure after the quote had already been created. + + Before it offers a retry, the dialog now reads the run's paused screen again (`GET /api/v1/automation/FLOW/runs/RUN/screen`). This happens when no answer arrives, and on every failure the dialog would treat as retryable: + + - If the run waits on another screen, the dialog shows that screen with a plain notice: "Your previous submission went through. The flow has moved on to this step." + - If the run waits on no screen (`404`), Next is withdrawn and a plain notice asks the user to check the record before trying again. + - If the run still waits on the same screen, or the read gives no usable answer, the retry and the refusal's sentence stay as before. + + Both notices come from the console catalog (`flowRunner.alreadySubmitted` and `flowRunner.noLongerWaiting`) in every shipped locale. The engine's refusal is unchanged. Nothing to migrate. +- c8d4b90: feat(console): Setup gets one Packages entry, the package list's administration face; the Installed Apps entry retires + + Clause-②: no + Metadata-protocol: none + + The maintainer's ruling on objectstack#36834 amends ruling 甲 of #25098: Setup lists what is installed, with the administration actions only, and the marketplace-only "Installed Apps" entry merges into it. + + - **Setup → Apps → Packages (`nav_packages`).** `@objectstack/platform-objects` contributes one entry to Setup's `group_apps`, gated on `manage_platform_settings` like Setup's other administration entries. It opens the console's `developer:packages` page with `params: { face: 'admin' }`, so the URL carries `?face=admin`. Its label is translated in every locale the Setup bundle carries. + - **The page's administration face.** With `?face=admin`, the Packages page lists every package of every source, with modules folded under their app. It shows the Name, Version, Status, Source and Update columns, plus a Source filter (All, Code, Marketplace, Authored) that writes `?source=`. Its only header action is New Package, and a package created there opens in Studio, on the address the Studio landing's package card opens. The detail sheet offers View info, Disable / Enable and Delete (keeping the choice to keep the data), plus "Open in Studio" on an authored package. Import, Edit, Publish, Revert, Export, Duplicate, Adopt loose items and the pending changes' Publish and Discard are not offered there. An unknown or repeated `face` value is refused by name. With no `face`, the page is unchanged: Studio's "All packages" link and each package card's Manage keep every action. + - **Installed Apps retires.** `MARKETPLACE_INSTALLED_UI_BUNDLE` (`@objectstack/cloud-connection`) no longer carries `nav_marketplace_installed`. The bundle stays exported under its id, with an empty `navigationContributions`, so a host that imports and registers it keeps working. The entry's labels are removed from the Setup translation bundle, and its id joins the dead-key tombstone. A bookmarked `/apps/setup/component/developer/packages?source=marketplace`, which the marketplace page's "Installed" button also opens, still shows the list filtered to marketplace installs, on the administration face. +- 76eea0f: fix(hosted): printing a record works on a kernel with no `http.server` (a hosted tenant kernel), and an api action whose service is absent shows a readable, localized line instead of the route text + + Clause-②: yes (widening) + Metadata-protocol: none + + `POST /api/v1/print/records` (service-print) was mounted only on the kernel's `http.server`. A hosted tenant kernel owns no socket and registers no `http.server`, so the host's `createHonoApp` catch-all, and the `/actions` door's in-process forward of a `type: 'api'` action, handed the request to the runtime dispatcher, which had no domain for it and answered `404 ROUTE_NOT_FOUND`. A hosted HotCRM's Print Quote showed its user `Route Not Found: /print/records`. + + - `@objectstack/spec/contracts` declares `IPrintDoorService` (one optional, transport-neutral member, `handlePrintDoor(request: Request): Promise<Response>`). A service without the member still satisfies it. + - `PrintServicePlugin`'s `print` service gains `handlePrintDoor`, which runs the same registration the `http.server` mount runs, on a private route table that never listens (`createDoorTableMember`), so every answer is the mount's own. The `http.server` mount is unchanged, and no path is mounted twice. `@objectstack/service-print` now depends on `@objectstack/plugin-hono-server` at runtime. + - The runtime dispatcher gains a `/print` domain that claims exactly `POST /print/records` and forwards the request, body unread, to the REQUEST kernel's member (never the host kernel's scoped fallback). Every other shape under `/print` keeps the dispatcher's `404 ROUTE_NOT_FOUND`. With no `print` slot, or one without the member, the door answers `501 NOT_IMPLEMENTED` naming `@objectstack/service-print`. The door stays behind the dispatcher's authentication and project-membership gates. + - The console shows a `type: 'api'` action's `501 NOT_IMPLEMENTED` refusal (the service behind its target is not composed in this environment) as the new `actions.serviceUnavailable` line in the user's language (zh-CN: 「此操作所需的服务在当前环境未启用,请联系管理员。」) instead of the server's operator text. A producer-marked `userMessage` still wins. A `503 SERVICE_UNAVAILABLE` (a transient outage) and a route miss (`ROUTE_NOT_FOUND`, `ENDPOINT_NOT_FOUND`, for example a misspelled `target`) keep the server's own sentence. +- 49c6bf3: fix(fields): an action's lookup param honours the borrowed field's `allowCreate: false`, and a record created in a filtered picker that fails the filters is not selected + + Clause-②: yes (widening) + Metadata-protocol: none + + - **A field-backed lookup param reads the field's `allowCreate`.** A param written `{ field, objectOverride }` already took the field's `lookupFilters`, `lookupColumns`, `lookupPageSize` and `descriptionField`, but not `allowCreate`. As a result, a field declaring `allowCreate: false` still showed "+ New" in an action's picker. `resolveActionParams` now copies it, app-shell's `paramToField` forwards it to the record-header dialog's picker, and the selection toolbar's dialog carries it through `resolvePromotedBulkParams`. Both the desktop popover and the phone drawer honour it. `@object-ui/core`'s `ActionParamDef` gains the optional `allowCreate` member it travels on. An author who writes `allowCreate` on a raw param is warned by name in development, like the other inherited picker keys: the spec's `ActionParamSchema` does not declare it. + - **A quick-created record is selected only if the picker could have offered it.** The create form accepts whatever the user enters, so the new record can fail the field's `lookupFilters`, for example a `draft` where the field asks for `approved`. The picker used to select it anyway, and the save or action that read the field then refused it. The picker now re-reads the new id through its own filter, the field's `lookupFilters` and `dependsOn` scope combined with the id. If the server does not return the record, it is not selected, and the picker reopens with the line `lookup.createdOutsideFilters` ("The record was created, but it does not match this field's filters, so it cannot be chosen here."), in every shipped locale. If the check itself fails, the record is not selected either, and the line `lookup.createdUnchecked` says the record was created but could not be checked, so the user searches for it instead of creating a duplicate. A picker with no filter selects the new record as before, without the extra read. + - **A create notice no longer hides the candidate list.** A create notice (the two lines above, or a failed inline create) now sits above the list instead of replacing it, so the user can pick an existing record straight away. Closing the picker clears it. Before, a failed inline create hid the list and its create entry until the widget was remounted. +- 00dd362: feat(console): the strings of the one Studio detail header (close, previous, next, position, package, more) + + Clause-②: no + Metadata-protocol: none + + The `studio` namespace gains the `engine.studio.detailHeader.*` keys in English and Chinese, for the header every full-screen Studio detail will share: × back to the list, ‹ › with the item's position in the list, the source package chip and the ⋯ menu. The header itself lives in the private console shell and no page shows it yet. +- bac4864: feat(console): the metadata list keeps its search, filters, sort and scroll position across a trip to an item and back + + Clause-②: no + Metadata-protocol: none + + The generic metadata list (Setup's catalog lists and Studio's "All metadata" area) held its search text, its source filter, "only customizations" and the activation status filter in component state, so opening an item and coming back, or refreshing the page, reset all of them. They now live in the list's address as page-scoped params: `q` (search), `source` (`artifact` / `runtime`), `customized=1`, `status` (`active` / `inactive`) and the new `sort`. A value at its default is left out, so an untouched list keeps its clean address, and every change replaces the history entry instead of adding one, so Back leaves the list rather than paging through keystrokes. The `package` and `scope` params keep their meaning. + + The list gains a sort control: by API name or by label, each way. The default is by API name, A to Z; before this change the list kept the server's order. + + Each row link now carries the list's non-default params to the item page, and the scroll position of the list is restored when the same list address is shown again in the same tab (Back, or a link to the list with the same params). + + New module `metadataListState.ts` beside the page holds the codec, the list's filter and sort (`applyListState`) and `orderedListNames`; the new `useListOrderedNames(type)` hook gives an item page the names of its list in that order, read from its own address — every item of the scope by API name when the address carries no list context. Neither is exported from the package root. + + New locale keys in the studio catalogue (en, zh): `engine.list.sort`, `engine.list.sort.name.asc`, `engine.list.sort.name.desc`, `engine.list.sort.label.asc`, `engine.list.sort.label.desc`. +- 8c29b81: feat(console): the metadata list shows when each item last changed and marks items with unpublished changes + + Clause-②: yes (widening) + Metadata-protocol: none + + The generic metadata list (Setup's catalog lists and Studio's "All metadata" area) gains a 「修改时间」 / "Modified" column, read off the list answer's `changedAt` sibling. Only an item served from a stored row has a time; a code-shipped item shows an empty cell. The sort control gains "Modified (newest first)" and "Modified (oldest first)", which ride the address as `sort=-changed` / `sort=changed`; items without a time sort last either way, and the item page's ‹ › follow the same order. + + Beneath the time, an item with a pending draft on the existing `GET /api/v1/meta/_drafts` ledger is marked 「有未发布的改动」 / "Unpublished changes", including drafts that existed before this change. A draft the AI assistant wrote (any of its recorded changes made by the AI copilot or through the MCP build door, the rule the item page's AI line uses) is marked 「AI 的改动未发布」 / "Unpublished AI changes" instead. A publish removes the mark. + + `MetadataClient.listResponse` now returns the list's `changedAt` beside the items (each entry read with the spec's own rule; an entry that does not parse is dropped, and absence stays absence). `list` is unchanged. + + New locale keys in the studio catalogue (en, zh): `engine.list.sort.changed.asc`, `engine.list.sort.changed.desc`, `engine.list.col.changedAt`, `engine.list.draftMark.human`, `engine.list.draftMark.humanTitle`, `engine.list.draftMark.ai`, `engine.list.draftMark.aiTitle`. +- a68b475: feat(studio): a collapsible left menu of six groups replaces the top pillar nav + + Clause-②: yes (widening) + Metadata-protocol: none + + ADR-0084 (amended) · #36899, part of #36890. + + - **Studio's one navigation is a left menu.** The top bar's Data / Automations / Access / All metadata switcher is gone. Every Studio page (a package's pillars and area, the package-less flows `~org`, and the cross-package leg `~all`) draws the same menu of six groups: Data, UI, Automation, Platform, Access, AI (数据、界面、自动化、平台、访问、AI). Each group lists the metadata types the package holds (the directory's own rule, `scopeDirectoryEntries`), with a type count per group and an item count per type, and a search box that narrows the entries. A type entry opens that type's list in the area; an item of an object, flow or permission set still opens its designer. Four entries are not a type: Organization flows (`~org`, under Automation), Default sharing (the Access pillar's OWD overview, under Access), Diagnostics (under Platform) and Positions and permissions (the environment catalog on `~all`, under Access). + - **It collapses like the app sidebar, under its own cookie.** It is the app sidebar's primitive: the header's toggle hides and shows it, the state survives a reload under `studio_menu_state` (never the app sidebar's `sidebar_state`), and below 768 px it is a drawer. `SidebarProvider` (`@object-ui/components`) takes a new optional `cookieName` prop for that; the default is unchanged. + - **The menu names the `system` group Platform / 平台 and the `security` group Access / 访问**, the amended ADR-0084's group names, through its own `studioMenuGroupLabel`. The shared domain dictionary (`translateMetadataDomain`) is unchanged: Setup's datasource pages and the rest of Studio still say System / 系统 and Security / 安全. + - **`~all` is drawn in the builder's shell.** `/studio/~all/metadata/*` is served by the same route as a package's area, so it has the left menu too; the landing's frame no longer draws it. A `~org` area URL (or `?package=~org`) now lands on the package-less flows instead of being read as a package. + - **「‹ Back to app」 names the current package's app** (decision 5), never a remembered app of another package; a package with no app names the package and goes to the apps home. + - Changes and Publish stay at the right end of the top bar, beside Cancel and Save. +- c75453e: feat(studio): a metadata item fills the content pane under one detail header, and its tools are tabs instead of side sheets + + Clause-②: no + Metadata-protocol: none + + Studio's generic item page and the form editor of an email template or a translation now draw the shared Studio detail header: × back to the type's list (its search, filters, sort and package scope kept), ‹ › to the previous and next item in the list's order with "index / total", the type and source package as chips, and the page's actions at the right. Both × and ‹ › ask first when the page holds unsaved edits; the browser's Back is not intercepted. + + The six side sheets of the generic item page are tabs of the page: Details, Preview (a type with an editing canvas), Related (a type with anchors), Referenced by, History (the versions with rollback, and the audit log read inside it; shown to a caller who may read the authoring trail) and Source (the JSON source, and the layered comparison read inside it, for read-only callers too). The open tab is in the address as `?tab=`; the values the sheets wrote still open the same place (`?tab=layers` opens Source on the layers, `?tab=audit` opens History on the audit log). The draft review is a status chip in the header while a draft is pending, and `?review=1` still opens it. + + On a type with a canvas the page opens on Preview; Details shows the whole item's form. Both edit one draft, and one Save (the header's button, ⌘S or autosave) saves it whichever tab is open, so a tab switch keeps every unsaved edit. + + The address `/studio/PACKAGE/metadata/TYPE/NAME/history` opens the item on its History tab; the permission set, whose item page is its own matrix editor, and an item a pillar's designer opens (a flow, an object) keep the standalone history page there. + + New in `@object-ui/app-shell`: `item-tools/ItemToolTabs.tsx` (the tab strip, the address helpers and the References, History and Source panels, for the designers to mount) and `metadata-admin/ResourceDetailHeader.tsx`. New locale keys `engine.studio.itemTabs.*` in the studio catalogue (en, zh). No metadata changes; nothing to migrate. +- 1e96009: feat(studio): the generic item page's Save takes effect at once; an AI draft gets the designers' notice and discard + + Clause-②: yes (widening) + Metadata-protocol: none + + Studio's generic item page saves the way the designers do. Save writes the item's draft and then publishes that one item (`POST /meta/:type/:name/publish`, at the same package and bundle member), so the change is live at once and there is no second Publish step. The draft save keeps its version pin and conflict dialog, and the publish is now pinned to the published version the page loaded: when another editor published the item in between, the same dialog asks to reload, overwrite or keep editing. A create publishes right after its first save. The auto-save switch is gone, and edits wait for Save, ⌘S or the destructive-change confirmation. + + A refused publish shows its reason above the editor in the designers' words, with the server's text under Details. Nothing goes live, the draft the Save wrote is taken back, and the edits stay on the page, unsaved. + + A pending draft written by the AI assistant (the copilot or an MCP client) is the version on screen, under the designers' line: saving makes it live too, and "Discard AI changes" drops that one item's draft, asking first when the page holds unsaved edits. A pending draft a person wrote before this change is marked "This item has unpublished changes", with its own Publish and Discard for that item. The header's Publish and discard buttons are gone. + + Leaving the page with unsaved edits still asks first through ×, ‹ ›, the side menu, in-app links, reload and close. The browser's Back is not intercepted. + + `@object-ui/data-objectstack`: the exported `MetadataLayered` type gains an optional `overlayVersion` member (`string | null`), and `MetadataClient.layered()` now forwards the served `overlayVersion` into it. The client used to rebuild its answer field by field and drop it, so a Studio Save's publish was never pinned on a server that serves it. + + Locale keys `engine.edit.unpublishedChanges` and `engine.edit.unpublishedPublishDirty` are new, and `engine.edit.autoSaveOn`, `engine.edit.autoSaveOff` and `engine.edit.autoSavingShortly` are removed (en, zh). The per-browser `metadata-admin:autosave` setting is no longer read. No metadata changes; nothing to migrate. +- 57445a6: fix(console): a per-record bulk flow action counts a refused record as refused, with its own message, and stacks no refusal notice + + Clause-②: yes (seat ruling: the published `@object-ui/types` `ActionResult` gains a member; L1-a owes a lane-keep L2 review) + Metadata-protocol: none + + The published `@object-ui/types` adds two optional members, `ActionResult.refusal` and `ActionContext.reportsRefusal`. Nothing existing is narrowed. + + A list view's selection bar can run a `type: 'flow'` action once per selected record. A run that ended on an `end` node with `outcome: 'refused'` answers `200` with `status: "refused"` and a `refusalMessage`. Before this change the bulk result counted such a record as succeeded ("Succeeded 3 / 3"), and one refusal dialog opened on top of the result showing a single record's message, so the other refused records' reasons were lost. + + - The result now counts refused records apart: "Succeeded 1 / 3 · Refused 2". Each refused record is listed with the sentence the flow wrote for it. A refused record has no Retry and is not written to the error CSV: re-running it would get the same answer. When a failed record is retried and the action refuses it, it moves to the refused list. + - No refusal dialog opens during a bulk run. The same action launched from a row menu still opens its Close-only refusal notice, unchanged. + - `ActionResult.refusal` (`{ message }`) is set by the console's flow launch on a run that ended `refused`, beside `success: true` and `handedOff: true`. A caller that counts outcomes reads it as refused, never as done. + - `ActionContext.reportsRefusal` is passed for one dispatch through `ActionRunner.execute`'s `callContext`. A caller that lists refusals itself sets it, and the console's flow handler then opens no notice of its own. +- 1f3e9f6: fix(console): a per-record bulk flow action counts a record whose run paused at a screen as waiting for input, and every paused record's screen opens in turn + + Clause-②: yes + Metadata-protocol: none + + The published `@object-ui/types` adds one optional member, `ActionResult.paused`. Nothing existing is narrowed. + + A list view's selection bar can run a `type: 'flow'` action once per selected record. A run that reaches a `screen` node pauses and waits for input. Before this change the bulk result counted such a record as succeeded ("Succeeded 3 / 3"), and the console held one paused run at a time: each paused record replaced the previous one, so only the last record's screen opened and the other records' runs waited at screens nobody could reach. + + - The result now counts paused records apart: "Succeeded 1 / 3 · Waiting for input 2". Each waiting record is listed by name, under a line saying its screen opens next. A waiting record has no Retry and is not written to the error CSV: a re-run would start a second run. When a failed record is retried and its run pauses, it moves to the waiting list. + - The console now queues paused runs. Its flow runner shows the first paused record's screen, and closing or completing it shows the next one, until none is left. This holds for the console's list runtime and for a list on a record page. + - `ActionResult.paused` (`{ runId }`) is set by the console's flow launch on a run that paused at a screen, beside `success: true` and `handedOff: true`. A caller that counts outcomes reads it as waiting, never as done. +- 305fe60: fix(i18n): the full search page names component, doc and link results in every language + + Clause-②: no + Metadata-protocol: none + + The console's full search page (opened from the command palette's "Open Full Search Page") titles each result group and badges each result by the navigation item's type. Component items, doc items and link items printed raw keys (`search.typeComponents`, `search.badgeDoc`, `search.typeUrls`, …) because no locale pack defined them, English included. Every shipped console locale pack now carries a heading and a badge for the three types, and the search placeholder and its accessible label also name components and docs. A new test in `@object-ui/app-shell` renders the page with one navigation item of every spec type and fails when any heading or badge key the page asks for is missing from a pack. +- e91149e: fix(console): the profile Language card says it is the same setting as the globe menu + + Clause-②: no + Metadata-protocol: none + + The Language card on the profile page described itself as the language for notifications and messages only, and said the interface language was chosen separately from the globe menu. Both controls write the same `sys_user.locale` column and the console applies it as the interface language, so saving the card switched the whole console. The card's description (`profile.language.description`, in all ten built-in packs and in the console's own fallback text) now says it is one setting for the interface and for what is sent to the user, the same one as the globe menu. The zh-Hans text uses full-width punctuation. Nothing to migrate. +- 06c1f54: feat(console): a chat conversation can be pinned to one record — sent as `context.focus` on every turn, shown as a chip in the composer, kept across navigation — where the agent declares `capabilities.focus` + + Clause-②: yes + Metadata-protocol: added + + **Contract (`@objectstack/spec`).** `ToolExecutionContext` gains `focus?: { object: string; id: string }[]`, beside `surfaceContext`: the record(s) the conversation is pinned to, as the client reports them on every turn. Client-reported and advisory, never an access decision; a consumer re-reads the record as the caller. At most one entry in phase 1. The agent catalog row (`AiAgentCapabilitiesSchema`, `GET /api/v1/ai/agents`) gains an optional `capabilities.focus: boolean`: an agent that honours the focus says so, and an absent flag reads as false. Both are additions; nothing is removed or renamed, and every catalog row served before the flag still parses. + + **Console (`@object-ui/app-shell`, `@object-ui/plugin-chatbot`, `@object-ui/i18n`).** Where the agent the chat runs declares `capabilities.focus: true`: + + - The composer's page chip is drawn in the row above the input (where the drafts line sits) instead of on the input's top edge, and carries a pin when the page shows one record (a record page, or a record open in a list's drawer). Pinning makes every later turn send `context.focus: [{ object, id }]`, the first turn of a new conversation included, until the user removes it with the chip's remove control. + - The pinned record's chip replaces the page chip and names the record by its display name, read in the browser as the user; a record the user cannot read keeps its `object · id` pair. + - Opening another record while one is pinned asks once whether to ask about that one instead; a decline is remembered for the conversation. + - The focus belongs to the conversation: it never changes which conversation the drawer shows, and it is restored when that conversation is shown again in the same tab. + - `setChatFocus({ object, id })` (exported from `@object-ui/app-shell`) is the setter every entry point pins through. + + Where the agent does not declare the flag — every server today — nothing changes: no pin, no chip, no `focus` key in the request, and the page chip stays where it was. `AgentCapabilities` in `@object-ui/plugin-chatbot` gains `focus`, read from the catalog; unlike the build-era capabilities it has no name-based fallback for older servers. New locale keys `console.ai.focus.pin`, `.pinned`, `.remove`, `.switchPrompt`, `.switchAccept` and `.switchDecline`, in every pack. +- 2af9729: fix(studio): one name per group: the directory and a type page's badge say Platform / Access, like the menu + + Clause-②: no + Metadata-protocol: none + + ADR-0084 (amended) · part of the Studio redesign follow-ups. + + - **The shared domain dictionary (`translateMetadataDomain`) names the `system` group Platform / 平台 and the `security` group Access / 访问**, the amended ADR-0084's group names. It used to say System / 系统 and Security / 安全 while the Studio left menu said Platform / Access. + - **Every place a group is named now reads that one dictionary:** the Studio left menu (`studioMenuGroupLabel` reads it instead of its own two keys), the All metadata directory's group headings and domain chips, and the domain badge on a type or item page (`PageShell`). Setup's datasource pages draw the same badge, so a datasource reads Platform / 平台 there too, the group ADR-0084 puts it in. + - The menu-only keys `engine.studio.menu.groupSystem` and `engine.studio.menu.groupSecurity` are removed from the `studio` namespace (en and zh); nothing reads them any more. +- 6161010: fix(console): on a desktop the ⌘⇧H row names the app start page it opens, not the retired home page + + Clause-②: no + Metadata-protocol: none + + From 768 px up the platform home page is retired: `⌘⇧H` / `Ctrl+Shift+H` (unchanged) opens where `/` lands, the last-used app's start page. The keyboard-shortcuts dialog and the app pill's menu still called that 「Back to home」. On a desktop both now read 「Back to app start page」 (zh: 返回应用起始页), one wording for the one destination; the pill's row keeps its `⌘⇧H` keycaps. A phone, whose Home is still its app list, keeps 「Back to home」 in the dialog. + + Locale value change, no new key: `layout.appSwitcher.backToHome` in every built-in locale. No props or exports change. +- 7d3b8d6: feat(i18n): the `listConditions` namespace carries the words of the field manager + + Clause-②: no + Metadata-protocol: none + + Every pack gains six `listConditions.fieldList.*` keys for managing a view's fields in the shared field list: the fields not in the view yet, add, show, hide and move a field, and the reorder hint. Nothing reads them yet; the list's Options → Fields panel starts using them in a later release. No existing key changes. +- 15f8357: feat(i18n): the locale packs carry the `listConditions` namespace for the list's coming filter and sort controls + + Clause-②: no + Metadata-protocol: none + + Every pack gains `listConditions.*`: the words of the shared field list (search, the fields the view shows and the hidden ones), the quick filter's values and operators, the sort directions worded by field type (time, size, the alphabet) and the condition row under the view bar (add filter, reset, a locked chip's note). Nothing reads them yet; the list's filter and sort panels start using them in a later release. No existing key changes. +- 378c955: feat(plugin-list): the list's Filter and Sort open the shared field list, and the conditions show as chips under the view bar + + Clause-②: no + Metadata-protocol: none + + The toolbar's Filter opens a searchable field list (the fields the view shows first, a type icon on each), then the values by field type; every pick applies at once. Sort opens the same list with the direction on top. Under the view bar, the condition row shows the sort chips first (click to reverse, drag or Alt+Arrow to reorder, × to remove), then the view's own conditions as locked chips, then the reader's filter chips, 「Add filter」 and 「Reset」, which puts the filter and sort back to the view as saved. A column header click shows up there as a sort chip. The full FilterBuilder and SortBuilder stay one click away, behind 「Advanced filter」 and 「All sort levels」. The FilterBuilder no longer draws its 「Where」 label: `filterBuilder.where` is retired from the locale packs, and `listConditions.sort.advanced` is added. No filter storage format, `uf_*` parameter or server sort changes. +- 39e9a82: Clause-②: yes (widening) + Metadata-protocol: none + + A shared list view is offered only to an administrator who may write one, and it is shared at once. Add view offers Shared only to an administrator whose session holds `manage_metadata`, the capability the shared view's write door asks; an organization administrator without it is no longer offered a Shared choice the server answers `403`. A view created Shared is saved and published in one act, so everyone sees it on their next read instead of waiting behind a draft; a refused save publishes nothing. A reader who opens a view the server says no longer exists is told so once, and the list shows its default view. Two new `@object-ui/i18n` keys under `view.switcher` carry the notices in every locale. +- 9c5fb3e: fix(components, plugin-list): the sort builder and the phone sort sheet word a number, percent, progress or currency direction as size + + Clause-②: no + Metadata-protocol: none + + A sort level on a numeric field read "A → Z" / "Z → A" in the sort builder (the list's "All sort levels" panel) and in the phone sort sheet's levels, while a date read "Oldest → Newest". Numeric, percent, progress, currency, rating and boolean levels now read "Low → High" / "High → Low" (zh: 「小 → 大」 / 「大 → 小」), date, datetime and time levels read as time, and text keeps the alphabet, on both surfaces. The words come from the `listConditions.sort.*` rows every locale already carries. + + What else a reader sees change: + + - The four `sortBuilder.ascending`, `sortBuilder.descending`, `sortBuilder.oldestFirst` and `sortBuilder.newestFirst` rows are no longer read by either surface; the rows stay in the packs. A host that overrode them to reword a sort direction now overrides `listConditions.sort.alphabet_asc` / `alphabet_desc` / `time_asc` / `time_desc` (and `size_asc` / `size_desc` for numbers) instead. + - Because the words now come from `listConditions.sort.*`, the date and text wording changes in some locales: Japanese and Korean dates read 「古い → 新しい」 / 「오래된 순 → 최신 순」 instead of 「古い順」 / 「오래된 순」, Russian dates read "Старые → Новые" instead of "Сначала старые", and Russian text reads "А → Я" instead of "A → Z". + - Arabic: the `listConditions.sort.alphabet_asc` / `alphabet_desc` pair now reads "A → Z" / "Z → A". A run of two Latin letters stays left to right on a right-to-left page, so the old "A ← Z" showed ascending as Z to A. +- abb5449: fix(studio): the author panels speak the author's words, and the zh pack names `label` 显示名 + + Clause-②: no + Metadata-protocol: none + + - A Lookup's related-object picker shows the placeholder 「选择对象…」 / "Select object…" (not `object_name`), in prose type, with a chevron; the roll-up child-object picker takes the same placeholder. The "every record is selectable" hint and the related-list help name the target by its label, and neither is drawn before a target is set. + - The post-save advisory toast shows the producer's sentence alone when the finding carries one; the rule id and locator stay on the developer face (a finding with no sentence). + - The Notify node's rows are rewritten in the author's words in en and zh: no key aliases, no literal defaults, no `info | warning | critical`; the topic row reads "Category" (zh 「通知类别」) and the severity options read 一般 / 警告 / 紧急 in zh. + - The object Settings tab keeps each metadata key off the panel at rest: the key is the setting title's hover text. The object inspector's `split.renderKey` is replaced by `split.keysOnHover`. + - The Studio zh pack names an item's `label` 显示名 throughout, where it said 标签 or 显示名称 (the add-field hints included). +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [eed422e] +- Updated dependencies [2df9691] +- Updated dependencies [55020c3] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [99a0e4f] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [285ad8d] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [ccded86] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [811858c] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [c9b0a23] +- Updated dependencies [6b360ab] +- Updated dependencies [78f7160] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8807dcb] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [9ed18a5] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [f3d0a9f] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [8a741ab] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [49c6bf3] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [6ddb97b] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [3aa008d] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @object-ui/core@18.7.0 + ## 18.6.0 ### Minor Changes diff --git a/ui/packages/i18n/package.json b/ui/packages/i18n/package.json index 7ecbe9783f8..e48888b929b 100644 --- a/ui/packages/i18n/package.json +++ b/ui/packages/i18n/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/i18n", - "version": "18.6.0", + "version": "18.7.0", "type": "module", "sideEffects": false, "license": "MIT", diff --git a/ui/packages/layout/CHANGELOG.md b/ui/packages/layout/CHANGELOG.md index 1f2db0f1f5f..37d2e694297 100644 --- a/ui/packages/layout/CHANGELOG.md +++ b/ui/packages/layout/CHANGELOG.md @@ -1,5 +1,291 @@ # @object-ui/layout +## 18.7.0 + +### Minor Changes + +- a23164e: feat(spec, ui): an object takes a colour from a fixed palette, and its icon is drawn as a white glyph on a square of that colour + + Clause-②: yes (widening) + Metadata-protocol: added + + - **`ObjectSchema.color` (new, optional).** One name from a closed palette of nine: `gray`, `blue`, `teal`, `green`, `amber`, `orange`, `red`, `pink`, `purple` (exported as `OBJECT_COLORS` and the `ObjectColor` type from `@objectstack/spec/data`). No free colour values: `color: '#ff0000'` is refused, and the refusal lists the nine names. An object without a `color` is drawn in the neutral `gray`. Nothing to migrate: every existing object stays valid and simply has no colour. + - **The AI blueprint carries it too.** `BlueprintObjectSchema.color` is the same leaf (required-but-nullable on `SolutionBlueprintStrictSchema`, like `icon`), and its rule asks the model to colour every object and give each object of one solution a different colour while the palette lasts. A producer of the STRICT shape must now send `color` on each object, `null` when it has none; the lenient shape a stored blueprint is read with keeps it optional. + - **`ObjectIconTile` (new, `@object-ui/components`).** Draws an icon name as a white glyph on a rounded square of a palette colour, in four sizes. Each name has a light-theme and a dark-theme value chosen so the white glyph keeps at least 3:1 contrast. `OBJECT_COLOR_TILE_CLASS` and `objectColorOrDefault` are exported with it. + - **Navigation draws objects as tiles.** In the sidebar, the app-home menu and the phone menu, every entry that opens an object is drawn as that object's tile: the entry's own `icon` when it names one, else the object's, on the object's colour. Dashboards, pages and links keep their line icons. `NavigationRenderer` takes a new `resolveTargetColor` resolver (`NavTargetColorResolver`) beside `resolveTargetIcon`; the console answers it from the object metadata it already holds (`useNavTargetColor`). A host that passes no `resolveTargetColor` gets its object entries as gray tiles where it had line icons. + - **The designer picks icon and colour together.** In the object's settings, the icon picker shows the nine colour swatches, and the trigger and every icon in the grid are previewed as the tile they become. The picker elsewhere (pages, apps, navigation entries) is unchanged: only objects carry a colour. + - The other places that draw an object's icon (list and record headers, search, related-record chips, the designer's object lists) switch to the tile in a follow-up release. + + `@objectstack/metadata-core`: the field-level-security reference table classifies the new `color` key as `keep` (a palette name names no field). + + `@objectstack/platform-objects`: the generic object form's metadata-form packs ship the new `color` row's label and help text in all 10 locales. + +### Patch Changes + +- a2dc858: feat(ui): every menu row is a tile: objects and their views in the object's colour, everything else on a light grey tile + + Clause-②: yes (widening) — `@object-ui/components` adds `NeutralIconTile`, `NeutralIconTileProps` and `NEUTRAL_ICON_TILE_CLASS`; `@object-ui/layout` adds `NAV_KIND_ICON` and `resolveNavKindIcon`; nothing removed or renamed + Metadata-protocol: none + + The sidebar drew an object entry as its object's colour tile and every other entry as a bare line icon, so one column mixed solid squares and outlines. Now every row is a tile of the same size and corners, and colour still says only which object a row opens: + + - **Object entries, and object entries that open one of its views** (a `viewName`, such as "My deals"): the object's tile, as before. + - **Every other entry** (`dashboard`, `report`, `page`, `url`, `component`, `doc`, `action`): a light grey tile with a dark grey glyph, the entry's own `icon`, else its kind's (`NAV_KIND_ICON`: a dashboard, a column chart, a page, an outward arrow, a grid, a book, a bolt). No kind gets a colour of its own. + - **Recent, Favorites and Starred in the sidebar, and Home's "Recently accessed"**: an object, one of its views or one of its records is that object's tile; a dashboard, page or report is the neutral tile. The emoji these rows drew are gone. + - Group headings and separators are unchanged. The phone's app home lists the same menu, so it follows. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [eed422e] +- Updated dependencies [2df9691] +- Updated dependencies [55020c3] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [6f2bd4f] +- Updated dependencies [99a0e4f] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [1b2cd80] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5bd7257] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [3819afe] +- Updated dependencies [61722e9] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [285ad8d] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [9212119] +- Updated dependencies [cda16d4] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [dda665f] +- Updated dependencies [98b3f87] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [ccded86] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [e01b8be] +- Updated dependencies [d96c878] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [72d19c4] +- Updated dependencies [b0c624a] +- Updated dependencies [9b6db73] +- Updated dependencies [bae933b] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [227a16a] +- Updated dependencies [de25d58] +- Updated dependencies [598a34d] +- Updated dependencies [0585797] +- Updated dependencies [811858c] +- Updated dependencies [fac1e7d] +- Updated dependencies [4609c48] +- Updated dependencies [8500ee7] +- Updated dependencies [a6607c7] +- Updated dependencies [c00be39] +- Updated dependencies [1c87956] +- Updated dependencies [5345905] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [c9b0a23] +- Updated dependencies [6b360ab] +- Updated dependencies [c7174c3] +- Updated dependencies [78f7160] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [7de1bad] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [dea68e9] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [52fb30c] +- Updated dependencies [8807dcb] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [9ed18a5] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [9f6f306] +- Updated dependencies [a5a5312] +- Updated dependencies [8c8ff0f] +- Updated dependencies [dda5e74] +- Updated dependencies [f2a990b] +- Updated dependencies [035a12c] +- Updated dependencies [33d0169] +- Updated dependencies [a23164e] +- Updated dependencies [f3d0a9f] +- Updated dependencies [8aed508] +- Updated dependencies [a60740a] +- Updated dependencies [8c5a81e] +- Updated dependencies [dc10b3b] +- Updated dependencies [dca608a] +- Updated dependencies [baf2678] +- Updated dependencies [13d1e95] +- Updated dependencies [6db1dc2] +- Updated dependencies [3ae62ac] +- Updated dependencies [6c7c6db] +- Updated dependencies [493ad09] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [4ab2c82] +- Updated dependencies [04f9861] +- Updated dependencies [e605773] +- Updated dependencies [0628e08] +- Updated dependencies [713545f] +- Updated dependencies [b7fe94a] +- Updated dependencies [a2dc858] +- Updated dependencies [b3bcfef] +- Updated dependencies [aad35e6] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [4099ef2] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [740720c] +- Updated dependencies [6e643cc] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [bbc7e03] +- Updated dependencies [543585d] +- Updated dependencies [7e89bc6] +- Updated dependencies [70194ff] +- Updated dependencies [a10422d] +- Updated dependencies [1a2a8a9] +- Updated dependencies [f2ef7d8] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [8a741ab] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [ad50d61] +- Updated dependencies [7501d0c] +- Updated dependencies [41dd132] +- Updated dependencies [45ef94e] +- Updated dependencies [d7411fa] +- Updated dependencies [c6075a7] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [1948c5f] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [368deee] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [49c6bf3] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [a68b475] +- Updated dependencies [57445a6] +- Updated dependencies [01967c3] +- Updated dependencies [0212714] +- Updated dependencies [1f3e9f6] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [c0dd417] +- Updated dependencies [0439a04] +- Updated dependencies [517e415] +- Updated dependencies [f92d271] +- Updated dependencies [6ddb97b] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [3aa008d] +- Updated dependencies [378c955] +- Updated dependencies [56fa31b] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [9c5fb3e] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @object-ui/types@18.7.0 + - @object-ui/core@18.7.0 + - @object-ui/components@18.7.0 + - @object-ui/react@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/ui/packages/layout/package.json b/ui/packages/layout/package.json index 4536fd4ba2b..fc88ecd0178 100644 --- a/ui/packages/layout/package.json +++ b/ui/packages/layout/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/layout", - "version": "18.6.0", + "version": "18.7.0", "type": "module", "sideEffects": [ "./dist/index.js", diff --git a/ui/packages/mobile/CHANGELOG.md b/ui/packages/mobile/CHANGELOG.md index 54c9d515e60..f1e50db075c 100644 --- a/ui/packages/mobile/CHANGELOG.md +++ b/ui/packages/mobile/CHANGELOG.md @@ -1,5 +1,29 @@ # @object-ui/mobile +## 18.7.0 + +### Patch Changes + +- Updated dependencies [1c05546] +- Updated dependencies [2df9691] +- Updated dependencies [e01b8be] +- Updated dependencies [0585797] +- Updated dependencies [f548bdc] +- Updated dependencies [9f6f306] +- Updated dependencies [f3d0a9f] +- Updated dependencies [6db1dc2] +- Updated dependencies [4ab2c82] +- Updated dependencies [f3a8a13] +- Updated dependencies [bbc7e03] +- Updated dependencies [543585d] +- Updated dependencies [7e89bc6] +- Updated dependencies [f2ef7d8] +- Updated dependencies [70d07fd] +- Updated dependencies [7a7ab47] +- Updated dependencies [57445a6] +- Updated dependencies [1f3e9f6] + - @object-ui/types@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/ui/packages/mobile/package.json b/ui/packages/mobile/package.json index 49b8aa601cf..d8551677d16 100644 --- a/ui/packages/mobile/package.json +++ b/ui/packages/mobile/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/mobile", - "version": "18.6.0", + "version": "18.7.0", "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 940e1a6099c..fd2fe48987d 100644 --- a/ui/packages/permissions/CHANGELOG.md +++ b/ui/packages/permissions/CHANGELOG.md @@ -1,5 +1,179 @@ # @object-ui/permissions +## 18.7.0 + +### Patch Changes + +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [e01b8be] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [0585797] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [9f6f306] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [f3d0a9f] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [4ab2c82] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [bbc7e03] +- Updated dependencies [543585d] +- Updated dependencies [7e89bc6] +- Updated dependencies [70194ff] +- Updated dependencies [f2ef7d8] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [57445a6] +- Updated dependencies [01967c3] +- Updated dependencies [1f3e9f6] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @object-ui/types@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/ui/packages/permissions/package.json b/ui/packages/permissions/package.json index 5c8b4276407..a481f5fb54f 100644 --- a/ui/packages/permissions/package.json +++ b/ui/packages/permissions/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/permissions", - "version": "18.6.0", + "version": "18.7.0", "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 2f147bd263c..80db7d1a1df 100644 --- a/ui/packages/plugin-calendar/CHANGELOG.md +++ b/ui/packages/plugin-calendar/CHANGELOG.md @@ -1,5 +1,303 @@ # @object-ui/plugin-calendar +## 18.7.0 + +### Patch Changes + +- be91bfc: fix(ui): the kanban, calendar, timeline and map views draw the no-access state for a refused read, not the raw error + + Clause-②: no + Metadata-protocol: none + + A reader who may open a page but is not granted the records its kanban board, calendar, timeline or map reads saw the transport's own string where the view would be, untranslated (for example `Error loading kanban data: ApiDataSource: HTTP 403 Forbidden — {…}`). Each of the four views now classifies a failed load with the shared load-error verdict the list page, the related list and the Gantt chart use, and for a permission refusal (a 403, or a `PERMISSION_DENIED` / `FORBIDDEN` code) draws the calm no-access state those surfaces draw: a neutral status panel with the shared `list.loadErrorForbiddenTitle` / `list.loadErrorForbiddenMessage` sentence in the reader's language, and none of the server's text. Every other failure (a 500, a dropped connection) keeps each view's existing error screen. The map's tile-style failure is not a data load and is unchanged. +- Updated dependencies [2b57044] +- Updated dependencies [a0b4ecf] +- Updated dependencies [ee5fdc8] +- Updated dependencies [d6d9645] +- Updated dependencies [1c05546] +- Updated dependencies [4ffe9d3] +- Updated dependencies [c3fb37a] +- Updated dependencies [c9b3f7a] +- Updated dependencies [8896822] +- Updated dependencies [dc53d4a] +- Updated dependencies [0739dee] +- Updated dependencies [ad15579] +- Updated dependencies [89364b4] +- Updated dependencies [eed422e] +- Updated dependencies [2df9691] +- Updated dependencies [bfd6b6b] +- Updated dependencies [55020c3] +- Updated dependencies [6f2bd4f] +- Updated dependencies [99a0e4f] +- Updated dependencies [9f352e8] +- Updated dependencies [fd471d3] +- Updated dependencies [1b2cd80] +- Updated dependencies [6ffa816] +- Updated dependencies [f2078e3] +- Updated dependencies [7702f09] +- Updated dependencies [05e0eb8] +- Updated dependencies [c890070] +- Updated dependencies [5bd7257] +- Updated dependencies [5dd856f] +- Updated dependencies [34308dc] +- Updated dependencies [eb1f85d] +- Updated dependencies [58d00db] +- Updated dependencies [3819afe] +- Updated dependencies [a5ddeb6] +- Updated dependencies [61722e9] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [285ad8d] +- Updated dependencies [bfd1049] +- Updated dependencies [6a35635] +- Updated dependencies [9212119] +- Updated dependencies [cda16d4] +- Updated dependencies [9b3227f] +- Updated dependencies [fe75349] +- Updated dependencies [dab4712] +- Updated dependencies [141a826] +- Updated dependencies [8145424] +- Updated dependencies [b65488a] +- Updated dependencies [83a79e6] +- Updated dependencies [dda665f] +- Updated dependencies [98b3f87] +- Updated dependencies [46ad134] +- Updated dependencies [ccded86] +- Updated dependencies [e01b8be] +- Updated dependencies [238661f] +- Updated dependencies [d96c878] +- Updated dependencies [72d19c4] +- Updated dependencies [b0c624a] +- Updated dependencies [9b6db73] +- Updated dependencies [1e018d6] +- Updated dependencies [6d86b43] +- Updated dependencies [bae933b] +- Updated dependencies [a3a74f2] +- Updated dependencies [f98f18c] +- Updated dependencies [74d3d83] +- Updated dependencies [227a16a] +- Updated dependencies [598a34d] +- Updated dependencies [0585797] +- Updated dependencies [811858c] +- Updated dependencies [fac1e7d] +- Updated dependencies [4609c48] +- Updated dependencies [8500ee7] +- Updated dependencies [a6607c7] +- Updated dependencies [c00be39] +- Updated dependencies [1c87956] +- Updated dependencies [5345905] +- Updated dependencies [af566c2] +- Updated dependencies [f909734] +- Updated dependencies [a03c3d4] +- Updated dependencies [c9b0a23] +- Updated dependencies [a8126d2] +- Updated dependencies [f51578e] +- Updated dependencies [65fddc8] +- Updated dependencies [6b360ab] +- Updated dependencies [d19d875] +- Updated dependencies [c7174c3] +- Updated dependencies [78f7160] +- Updated dependencies [1d7015a] +- Updated dependencies [9972432] +- Updated dependencies [40e22f1] +- Updated dependencies [fddb9cb] +- Updated dependencies [647eb92] +- Updated dependencies [7de1bad] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [dea68e9] +- Updated dependencies [b113178] +- Updated dependencies [138faaa] +- Updated dependencies [411fe24] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [48c732c] +- Updated dependencies [52fb30c] +- Updated dependencies [8807dcb] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [9ed18a5] +- Updated dependencies [c261a7c] +- Updated dependencies [76cb366] +- Updated dependencies [32409a9] +- Updated dependencies [cf45e4f] +- Updated dependencies [f548bdc] +- Updated dependencies [9f6f306] +- Updated dependencies [c757e07] +- Updated dependencies [a5a5312] +- Updated dependencies [c1b35c3] +- Updated dependencies [9a98a46] +- Updated dependencies [96b66ca] +- Updated dependencies [8c8ff0f] +- Updated dependencies [27e414b] +- Updated dependencies [eb53d63] +- Updated dependencies [dda5e74] +- Updated dependencies [f2a990b] +- Updated dependencies [035a12c] +- Updated dependencies [33d0169] +- Updated dependencies [a23164e] +- Updated dependencies [f3d0a9f] +- Updated dependencies [0d0ed81] +- Updated dependencies [8aed508] +- Updated dependencies [a60740a] +- Updated dependencies [43580a3] +- Updated dependencies [cc05e60] +- Updated dependencies [dc10b3b] +- Updated dependencies [dca608a] +- Updated dependencies [baf2678] +- Updated dependencies [13d1e95] +- Updated dependencies [3f7fdd0] +- Updated dependencies [6db1dc2] +- Updated dependencies [3ae62ac] +- Updated dependencies [6c7c6db] +- Updated dependencies [eebb893] +- Updated dependencies [493ad09] +- Updated dependencies [3543b51] +- Updated dependencies [4ab2c82] +- Updated dependencies [04f9861] +- Updated dependencies [c30ce97] +- Updated dependencies [28749e3] +- Updated dependencies [e605773] +- Updated dependencies [713545f] +- Updated dependencies [cbd582f] +- Updated dependencies [031325d] +- Updated dependencies [1705ec9] +- Updated dependencies [a2dc858] +- Updated dependencies [a6756a2] +- Updated dependencies [b3bcfef] +- Updated dependencies [aad35e6] +- Updated dependencies [0b2118f] +- Updated dependencies [71e02ff] +- Updated dependencies [d12ac84] +- Updated dependencies [28ba01f] +- Updated dependencies [5e8e243] +- Updated dependencies [4099ef2] +- Updated dependencies [8466fca] +- Updated dependencies [e3054b4] +- Updated dependencies [6a73185] +- Updated dependencies [0d2bb8d] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [740720c] +- Updated dependencies [6e643cc] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [96b7975] +- Updated dependencies [e8b494a] +- Updated dependencies [bbc7e03] +- Updated dependencies [27895d7] +- Updated dependencies [543585d] +- Updated dependencies [7e89bc6] +- Updated dependencies [42e4096] +- Updated dependencies [a10422d] +- Updated dependencies [dcc9b07] +- Updated dependencies [1a2a8a9] +- Updated dependencies [f2ef7d8] +- Updated dependencies [ff60149] +- Updated dependencies [ee651ce] +- Updated dependencies [dad9b55] +- Updated dependencies [d076975] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [8a741ab] +- Updated dependencies [60e79ed] +- Updated dependencies [3cf6a44] +- Updated dependencies [5fecc22] +- Updated dependencies [53733c1] +- Updated dependencies [4f19091] +- Updated dependencies [3b58921] +- Updated dependencies [9c283a1] +- Updated dependencies [c45dd80] +- Updated dependencies [e4e3bcf] +- Updated dependencies [ad50d61] +- Updated dependencies [87c7bba] +- Updated dependencies [f26469a] +- Updated dependencies [7501d0c] +- Updated dependencies [4ef1ea9] +- Updated dependencies [cb909d7] +- Updated dependencies [41dd132] +- Updated dependencies [45ef94e] +- Updated dependencies [d7411fa] +- Updated dependencies [c6075a7] +- Updated dependencies [cd51dbb] +- Updated dependencies [3f568c1] +- Updated dependencies [573a376] +- Updated dependencies [5c2d5cf] +- Updated dependencies [43916f3] +- Updated dependencies [f590f3e] +- Updated dependencies [9fa05c6] +- Updated dependencies [ed0edb1] +- Updated dependencies [a10987a] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [fed637c] +- Updated dependencies [f77d078] +- Updated dependencies [1948c5f] +- Updated dependencies [0e83fe0] +- Updated dependencies [7a7ab47] +- Updated dependencies [70f454a] +- Updated dependencies [368deee] +- Updated dependencies [0d6589d] +- Updated dependencies [c54aa57] +- Updated dependencies [53257a5] +- Updated dependencies [03cb550] +- Updated dependencies [e0050ba] +- Updated dependencies [2f8e8ba] +- Updated dependencies [14f4d8f] +- Updated dependencies [fa23941] +- Updated dependencies [183ed23] +- Updated dependencies [4d4ec16] +- Updated dependencies [d763ee7] +- Updated dependencies [8018e00] +- Updated dependencies [844218f] +- Updated dependencies [8cce05b] +- Updated dependencies [0d727b7] +- Updated dependencies [ff0d1f1] +- Updated dependencies [4f7d6f7] +- Updated dependencies [b848b47] +- Updated dependencies [129e637] +- Updated dependencies [0819cab] +- Updated dependencies [c8d4b90] +- Updated dependencies [76eea0f] +- Updated dependencies [b3d953e] +- Updated dependencies [49c6bf3] +- Updated dependencies [00dd362] +- Updated dependencies [bac4864] +- Updated dependencies [8c29b81] +- Updated dependencies [a68b475] +- Updated dependencies [c75453e] +- Updated dependencies [1e96009] +- Updated dependencies [57445a6] +- Updated dependencies [0212714] +- Updated dependencies [1f3e9f6] +- Updated dependencies [305fe60] +- Updated dependencies [e91149e] +- Updated dependencies [06c1f54] +- Updated dependencies [c0dd417] +- Updated dependencies [517e415] +- Updated dependencies [6ddb97b] +- Updated dependencies [2af9729] +- Updated dependencies [2a6f26a] +- Updated dependencies [6161010] +- Updated dependencies [3aa008d] +- Updated dependencies [7d3b8d6] +- Updated dependencies [15f8357] +- Updated dependencies [378c955] +- Updated dependencies [56fa31b] +- Updated dependencies [39e9a82] +- Updated dependencies [9c5fb3e] +- Updated dependencies [abb5449] + - @object-ui/plugin-detail@18.7.0 + - @object-ui/i18n@18.7.0 + - @object-ui/types@18.7.0 + - @object-ui/core@18.7.0 + - @object-ui/components@18.7.0 + - @object-ui/react@18.7.0 + - @object-ui/mobile@18.7.0 + - @object-ui/permissions@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/ui/packages/plugin-calendar/package.json b/ui/packages/plugin-calendar/package.json index 6030e37f7df..4292efdbaac 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": "18.6.0", + "version": "18.7.0", "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 ae3844ba03e..8007e7bb164 100644 --- a/ui/packages/plugin-charts/CHANGELOG.md +++ b/ui/packages/plugin-charts/CHANGELOG.md @@ -1,5 +1,263 @@ # @object-ui/plugin-charts +## 18.7.0 + +### Patch Changes + +- 293c005: fix(plugin-report): a report chart's value axis reads a percent measure in percent, and two value-axis ticks never share a label + + Clause-②: no + Metadata-protocol: none + + - **A report chart over a percent measure labels its value axis in percent.** A dataset measure with a percent `format` (`'0.0%'`) charted in a report drew its value axis in raw fractions (`0`, `0.1`, `0.2`, `0.3`) while the table beside it printed `33.3%`. The report now hands the measure's pattern to the chart as its value-axis `format`, so the axis reads `0.0%` … `34.0%`. This applies to a percent pattern on a measure stored as a 0–1 fraction, which is the table's reading of such a pattern. A measure already in percentage points (`percentScale: 'whole'`), a currency measure, and a plain numeral pattern keep the chart's default axis: the chart's axis `format` cannot say what the table prints for the first two, and a fixed-width numeral pattern (`'0,0.00'`) would outgrow the axis band where the compact default reads the same number. + - **Two ticks on a value axis never share a label.** With no axis `format`, the value axis printed at most one fraction digit, so the ticks of a small domain collapsed: a 0–⅓ axis read `0, 0.1, 0.2, 0.3, 0.3`. Each value axis now prints its ticks to the decimal place its tick step needs (`0, 0.085, 0.17, 0.255, 0.34`), in compact notation as before. A declared axis `format` keeps its own places unless they are too coarse for the step, in which case the ticks gain the places the step needs (`'0%'` over a 0.85-point step reads `0.85%`, not two `3%` ticks). Data labels follow their value axis, as they already did. + + Nothing to migrate: no metadata key changes and no export changes. +- Updated dependencies [a0b4ecf] +- Updated dependencies [1c05546] +- Updated dependencies [4ffe9d3] +- Updated dependencies [c3fb37a] +- Updated dependencies [c9b3f7a] +- Updated dependencies [8896822] +- Updated dependencies [dc53d4a] +- Updated dependencies [0739dee] +- Updated dependencies [ad15579] +- Updated dependencies [89364b4] +- Updated dependencies [eed422e] +- Updated dependencies [2df9691] +- Updated dependencies [bfd6b6b] +- Updated dependencies [55020c3] +- Updated dependencies [6f2bd4f] +- Updated dependencies [99a0e4f] +- Updated dependencies [9f352e8] +- Updated dependencies [fd471d3] +- Updated dependencies [1b2cd80] +- Updated dependencies [6ffa816] +- Updated dependencies [7702f09] +- Updated dependencies [05e0eb8] +- Updated dependencies [c890070] +- Updated dependencies [5bd7257] +- Updated dependencies [58d00db] +- Updated dependencies [3819afe] +- Updated dependencies [61722e9] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [285ad8d] +- Updated dependencies [bfd1049] +- Updated dependencies [6a35635] +- Updated dependencies [9212119] +- Updated dependencies [cda16d4] +- Updated dependencies [9b3227f] +- Updated dependencies [fe75349] +- Updated dependencies [dab4712] +- Updated dependencies [141a826] +- Updated dependencies [8145424] +- Updated dependencies [83a79e6] +- Updated dependencies [dda665f] +- Updated dependencies [98b3f87] +- Updated dependencies [ccded86] +- Updated dependencies [e01b8be] +- Updated dependencies [238661f] +- Updated dependencies [d96c878] +- Updated dependencies [72d19c4] +- Updated dependencies [b0c624a] +- Updated dependencies [1e018d6] +- Updated dependencies [6d86b43] +- Updated dependencies [bae933b] +- Updated dependencies [a3a74f2] +- Updated dependencies [f98f18c] +- Updated dependencies [74d3d83] +- Updated dependencies [227a16a] +- Updated dependencies [598a34d] +- Updated dependencies [0585797] +- Updated dependencies [811858c] +- Updated dependencies [fac1e7d] +- Updated dependencies [4609c48] +- Updated dependencies [8500ee7] +- Updated dependencies [a6607c7] +- Updated dependencies [c00be39] +- Updated dependencies [1c87956] +- Updated dependencies [5345905] +- Updated dependencies [af566c2] +- Updated dependencies [f909734] +- Updated dependencies [c9b0a23] +- Updated dependencies [f51578e] +- Updated dependencies [6b360ab] +- Updated dependencies [c7174c3] +- Updated dependencies [78f7160] +- Updated dependencies [1d7015a] +- Updated dependencies [40e22f1] +- Updated dependencies [7de1bad] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [dea68e9] +- Updated dependencies [b113178] +- Updated dependencies [138faaa] +- Updated dependencies [411fe24] +- Updated dependencies [6b51822] +- Updated dependencies [48c732c] +- Updated dependencies [52fb30c] +- Updated dependencies [8807dcb] +- Updated dependencies [8df7bf2] +- Updated dependencies [d33bf5a] +- Updated dependencies [9ed18a5] +- Updated dependencies [c261a7c] +- Updated dependencies [76cb366] +- Updated dependencies [32409a9] +- Updated dependencies [f548bdc] +- Updated dependencies [9f6f306] +- Updated dependencies [c757e07] +- Updated dependencies [a5a5312] +- Updated dependencies [c1b35c3] +- Updated dependencies [9a98a46] +- Updated dependencies [8c8ff0f] +- Updated dependencies [27e414b] +- Updated dependencies [eb53d63] +- Updated dependencies [dda5e74] +- Updated dependencies [f2a990b] +- Updated dependencies [035a12c] +- Updated dependencies [33d0169] +- Updated dependencies [a23164e] +- Updated dependencies [f3d0a9f] +- Updated dependencies [8aed508] +- Updated dependencies [a60740a] +- Updated dependencies [43580a3] +- Updated dependencies [cc05e60] +- Updated dependencies [dc10b3b] +- Updated dependencies [dca608a] +- Updated dependencies [baf2678] +- Updated dependencies [13d1e95] +- Updated dependencies [6db1dc2] +- Updated dependencies [3ae62ac] +- Updated dependencies [6c7c6db] +- Updated dependencies [eebb893] +- Updated dependencies [493ad09] +- Updated dependencies [3543b51] +- Updated dependencies [4ab2c82] +- Updated dependencies [04f9861] +- Updated dependencies [c30ce97] +- Updated dependencies [e605773] +- Updated dependencies [713545f] +- Updated dependencies [cbd582f] +- Updated dependencies [031325d] +- Updated dependencies [1705ec9] +- Updated dependencies [a2dc858] +- Updated dependencies [a6756a2] +- Updated dependencies [b3bcfef] +- Updated dependencies [aad35e6] +- Updated dependencies [0b2118f] +- Updated dependencies [71e02ff] +- Updated dependencies [d12ac84] +- Updated dependencies [5e8e243] +- Updated dependencies [4099ef2] +- Updated dependencies [6a73185] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [740720c] +- Updated dependencies [6e643cc] +- Updated dependencies [f3a8a13] +- Updated dependencies [96b7975] +- Updated dependencies [e8b494a] +- Updated dependencies [bbc7e03] +- Updated dependencies [27895d7] +- Updated dependencies [543585d] +- Updated dependencies [7e89bc6] +- Updated dependencies [42e4096] +- Updated dependencies [a10422d] +- Updated dependencies [1a2a8a9] +- Updated dependencies [f2ef7d8] +- Updated dependencies [ff60149] +- Updated dependencies [ee651ce] +- Updated dependencies [dad9b55] +- Updated dependencies [d076975] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [8a741ab] +- Updated dependencies [60e79ed] +- Updated dependencies [3cf6a44] +- Updated dependencies [5fecc22] +- Updated dependencies [4f19091] +- Updated dependencies [3b58921] +- Updated dependencies [9c283a1] +- Updated dependencies [c45dd80] +- Updated dependencies [ad50d61] +- Updated dependencies [f26469a] +- Updated dependencies [7501d0c] +- Updated dependencies [4ef1ea9] +- Updated dependencies [41dd132] +- Updated dependencies [d7411fa] +- Updated dependencies [c6075a7] +- Updated dependencies [cd51dbb] +- Updated dependencies [3f568c1] +- Updated dependencies [573a376] +- Updated dependencies [5c2d5cf] +- Updated dependencies [43916f3] +- Updated dependencies [f590f3e] +- Updated dependencies [9fa05c6] +- Updated dependencies [ed0edb1] +- Updated dependencies [a10987a] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [fed637c] +- Updated dependencies [f77d078] +- Updated dependencies [1948c5f] +- Updated dependencies [0e83fe0] +- Updated dependencies [7a7ab47] +- Updated dependencies [70f454a] +- Updated dependencies [368deee] +- Updated dependencies [0d6589d] +- Updated dependencies [c54aa57] +- Updated dependencies [53257a5] +- Updated dependencies [e0050ba] +- Updated dependencies [14f4d8f] +- Updated dependencies [183ed23] +- Updated dependencies [4d4ec16] +- Updated dependencies [d763ee7] +- Updated dependencies [8018e00] +- Updated dependencies [844218f] +- Updated dependencies [8cce05b] +- Updated dependencies [0d727b7] +- Updated dependencies [ff0d1f1] +- Updated dependencies [4f7d6f7] +- Updated dependencies [b848b47] +- Updated dependencies [129e637] +- Updated dependencies [0819cab] +- Updated dependencies [c8d4b90] +- Updated dependencies [76eea0f] +- Updated dependencies [49c6bf3] +- Updated dependencies [00dd362] +- Updated dependencies [bac4864] +- Updated dependencies [8c29b81] +- Updated dependencies [a68b475] +- Updated dependencies [c75453e] +- Updated dependencies [1e96009] +- Updated dependencies [57445a6] +- Updated dependencies [0212714] +- Updated dependencies [1f3e9f6] +- Updated dependencies [305fe60] +- Updated dependencies [e91149e] +- Updated dependencies [06c1f54] +- Updated dependencies [c0dd417] +- Updated dependencies [517e415] +- Updated dependencies [6ddb97b] +- Updated dependencies [2af9729] +- Updated dependencies [2a6f26a] +- Updated dependencies [6161010] +- Updated dependencies [3aa008d] +- Updated dependencies [7d3b8d6] +- Updated dependencies [15f8357] +- Updated dependencies [378c955] +- Updated dependencies [56fa31b] +- Updated dependencies [39e9a82] +- Updated dependencies [9c5fb3e] +- Updated dependencies [abb5449] + - @object-ui/i18n@18.7.0 + - @object-ui/types@18.7.0 + - @object-ui/core@18.7.0 + - @object-ui/components@18.7.0 + - @object-ui/react@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/ui/packages/plugin-charts/package.json b/ui/packages/plugin-charts/package.json index c55e1d9568d..3f852b0d9cd 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": "18.6.0", + "version": "18.7.0", "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 8a23b9dc253..8317e80875a 100644 --- a/ui/packages/plugin-chatbot/CHANGELOG.md +++ b/ui/packages/plugin-chatbot/CHANGELOG.md @@ -1,5 +1,459 @@ # @object-ui/plugin-chatbot +## 18.7.0 + +### Patch Changes + +- c3fb37a: fix(plugin-chatbot): a file over the chat composer's size limit is named to the user with the limit, instead of only reaching `console.warn` + + Clause-②: yes (widening) + Metadata-protocol: none + + The two widenings are additive: the new key `chatbot.composer.fileTooLarge` in every locale pack `@object-ui/i18n` publishes through `./locales`, and the optional `files` field on the `onError` argument of `PromptInputProps`, exported as `AIElements` from `@object-ui/plugin-chatbot`. + + A file picked, pasted or dropped into the chat composer that is larger than `maxFileSize` (10 MB by default) used to vanish: it did not attach and nothing told the user why. `ChatbotEnhanced` now shows a notice above the composer naming every refused file and the limit, in the user's language (new pack key `chatbot.composer.fileTooLarge`, in all eleven locales). The notice closes with its close button or on the next send, and a later refusal replaces it. + + The vendored `PromptInput` now reports every over-size file of a pick through `onError` with `code: 'max_file_size'` and the refused files in the new optional `files` field. Before, it reported only a pick where every file was over the limit; a pick that mixed sizes attached the small files and dropped the large ones with no report. An `onError` handler that ignores `files` sees one more call, for a mixed pick, with the same `code`. +- 16d3abc: fix(plugin-chatbot): the chat composer's accept list reads the HTML `accept` grammar, so a picked CSV, PDF or spreadsheet attaches, and a file of a refused type is named to the user + + Clause-②: no + Metadata-protocol: none + + The vendored `PromptInput` compared every `accept` token with the file's MIME type, so the extension tokens of `ChatbotEnhanced`'s default list (`.pdf`, `.csv`, `.xlsx`, …) never matched: a picked CSV or PDF did not attach, and the refusal reached only `console.warn`. A token is now read the way the file picker reads it: `.ext` matches the end of the file name, `type/*` matches the MIME prefix, any other token matches the MIME type exactly, all case-insensitive. + + A file that still fails is shown to the user: `ChatbotEnhanced` names it, with the accepted list, in the same notice above the composer that names an over-size file, in the user's language (the existing pack sentence `fields.file.typeNotAccepted`; no new key). When one pick refuses files for type and for size, the notice names both. + + `PromptInput` now reports every type-refused file of a pick through `onError` with `code: 'accept'` and the refused files in `files`. Before, it reported only a pick where every file was refused, without `files`; a pick that mixed types attached the matching files and dropped the rest with no report. An `onError` handler that ignores `files` sees one more call, for a mixed pick, with the same `code`. +- 83a79e6: fix(app-shell, plugin-chatbot): the AI panel in an app has one title row, and its composer reads cleanly + + Clause-②: no + Metadata-protocol: none + + The console's AI drawer title bar is one row: History, a 「···」 menu and a 「×」 Close. The menu holds the AI usage reading (with its upgrade or top-up entry when the pool runs low), Share, Expand / Restore side panel, and the Build Doctor. The Build Doctor is listed only for a user who may build (`manage_metadata`, the reading that already decides who gets the build composer). While the usage pool is running low or full, the 「···」 trigger carries a marker. The close button is the drawer 「×」, named Close, in both the side panel and the full window; closing still keeps the conversation for the next open. The phone sheet gets the same menu, without Expand. + + The pane row under the title keeps the agent label and the app chip, but no longer draws Share or the Build Doctor in the drawer. `ChatPane` gains `actionsInHost` for a host that offers them itself. The full-page chat and the Studio copilot are unchanged. + + In the composer: + + - the 「正在看」 chip sits on the input's top edge, inside its frame; + - the closed model picker shows the model's label alone, truncated, with the full label on its title (no provider, no `×N`). The list rows keep both; + - the 「↵ 发送 · Shift+↵ 换行」 hint stays on one line; + - the 「+」 attachment button and its menu item are named "Add attachment" (「添加附件」). + + An answer table's copy and download tools are named in the reader's language (「复制表格」, 「下载表格」 and their format variants) instead of streamdown's English defaults. + + New locale keys, in every pack: `console.ai.dock.close`, `console.ai.dock.more`, `chatbot.composer.addAttachment`, `chatbot.answer.copyTable`, `copyTableAsMarkdown`, `copyTableAsCsv`, `copyTableAsTsv`, `downloadTable`, `downloadTableAsCsv`, `downloadTableAsMarkdown`. The drawer no longer reads `console.ai.dock.collapse`. +- 94fb8db: fix(plugin-chatbot): the AI approvals inbox is usable on a phone + + Clause-②: no + Metadata-protocol: none + + At phone width the AI approvals inbox drew its desktop table, whose fixed columns are far wider than the screen: Approve, Reject and View sat off-screen in a sideways scroller, and the first thing a row said was the internal tool name. Below the `md` breakpoint each pending action is now a stacked card that leads with the action, shows the object, the tool name and the time as its second line, and keeps Approve, Reject and View inside the card on 44 px buttons that wrap. From `md` up the table is unchanged. + + The detail drawer takes the full width below `sm` (it was three quarters of the screen, and its Reject button ran past the right edge at 390 px), its decision buttons wrap instead of overflowing, and a long action or tool name in its title wraps instead of pushing the drawer sideways. From `sm` up it keeps its 560 px cap. + + No props, exports or locale keys change; the component needs nothing from its host for this. +- 3f568c1: fix(studio): Studio's Interfaces column is retired; its old links land on the Studio home and its Changes links open from the Data pillar + + Clause-②: no + Metadata-protocol: none + + objectstack#36502. Menus, header actions, list views, dashboards, reports and record pages are designed in the running app. Studio keeps Data, Automations, Access and All metadata, and every view, dashboard, report and page stays readable and editable as metadata on its All-metadata item page. No metadata type, key or stored shape changes. + + - **Old links still open.** `/studio/<package>/interfaces`, with or without a `?surface=` deep link, lands on the package's Data pillar and says once, there, "Interface edits have moved into the app" (「界面的修改已经搬到应用里」) with a link back to the app. A `?changes=review` request travels with it. + - **`@objectstack/runtime`, `@objectstack/cli`.** The review link the MCP authoring tools and `os meta register --draft` print is `/studio/<package>/data?changes=review` (it was `/studio/<package>/interfaces?changes=review`, which still works through the redirect). + - **`@object-ui/i18n`.** Adds `engine.studio.interfacesRetired.sentence`, `.backToApp` and `.dismiss` (en, zh). + - **`@object-ui/plugin-chatbot`.** The `onDesignBuiltApp` doc example names the Data route. + - The console's "Edit in Studio" links for a dashboard, page, report or view open its All-metadata item page. + - **Customize moves with them.** On a read-only base, a view, dashboard, report or page is customized on its All-metadata item page, in the type's designer, into the base's pair (`<base>.custom`), with the override mark and "Restore package original" as before. It was the Interfaces column's header. +- 23d61fa: fix(plugin-markdown): bold that ends in full-width punctuation renders bold before a CJK letter + + Clause-②: no + Metadata-protocol: none + + The markdown renderer the console's manual reader uses (`@object-ui/plugin-markdown`) left a `**bold**` run as literal asterisks when the run ended in full-width punctuation and a CJK letter followed it, as in `**解决耗时(小时)**会被清空`, `**每个项目一张报销单。**每个项目` or `**它跳过和拒绝什么:**已经`. CommonMark counts full-width punctuation as punctuation, so such a closer is not right-flanking; a Chinese or Japanese sentence puts no space there. + + The renderer now runs `remark-cjk-friendly` (its `parseOnly` entry, a new MIT dependency at `^2.3.4`) ahead of remark-gfm, the rule the chat surface already runs. It reads a CJK character beside a `**` run the way it reads the whitespace an English sentence would have there. ASCII emphasis, code spans, backslash escapes, GFM tables and GitHub-style alerts render as before, and the output still passes the same sanitize schema. + + `@object-ui/plugin-chatbot` changes a comment only: its CJK rule now names the renderer's copy, since neither package depends on the other and each imports the plugin itself. No props or exports change in either package; nothing to migrate. +- 06c1f54: feat(console): a chat conversation can be pinned to one record — sent as `context.focus` on every turn, shown as a chip in the composer, kept across navigation — where the agent declares `capabilities.focus` + + Clause-②: yes + Metadata-protocol: added + + **Contract (`@objectstack/spec`).** `ToolExecutionContext` gains `focus?: { object: string; id: string }[]`, beside `surfaceContext`: the record(s) the conversation is pinned to, as the client reports them on every turn. Client-reported and advisory, never an access decision; a consumer re-reads the record as the caller. At most one entry in phase 1. The agent catalog row (`AiAgentCapabilitiesSchema`, `GET /api/v1/ai/agents`) gains an optional `capabilities.focus: boolean`: an agent that honours the focus says so, and an absent flag reads as false. Both are additions; nothing is removed or renamed, and every catalog row served before the flag still parses. + + **Console (`@object-ui/app-shell`, `@object-ui/plugin-chatbot`, `@object-ui/i18n`).** Where the agent the chat runs declares `capabilities.focus: true`: + + - The composer's page chip is drawn in the row above the input (where the drafts line sits) instead of on the input's top edge, and carries a pin when the page shows one record (a record page, or a record open in a list's drawer). Pinning makes every later turn send `context.focus: [{ object, id }]`, the first turn of a new conversation included, until the user removes it with the chip's remove control. + - The pinned record's chip replaces the page chip and names the record by its display name, read in the browser as the user; a record the user cannot read keeps its `object · id` pair. + - Opening another record while one is pinned asks once whether to ask about that one instead; a decline is remembered for the conversation. + - The focus belongs to the conversation: it never changes which conversation the drawer shows, and it is restored when that conversation is shown again in the same tab. + - `setChatFocus({ object, id })` (exported from `@object-ui/app-shell`) is the setter every entry point pins through. + + Where the agent does not declare the flag — every server today — nothing changes: no pin, no chip, no `focus` key in the request, and the page chip stays where it was. `AgentCapabilities` in `@object-ui/plugin-chatbot` gains `focus`, read from the catalog; unlike the build-era capabilities it has no name-based fallback for older servers. New locale keys `console.ai.focus.pin`, `.pinned`, `.remove`, `.switchPrompt`, `.switchAccept` and `.switchDecline`, in every pack. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [a0b4ecf] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [c3fb37a] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [c9b3f7a] +- Updated dependencies [8e46424] +- Updated dependencies [8896822] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [dc53d4a] +- Updated dependencies [0739dee] +- Updated dependencies [ad15579] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [eed422e] +- Updated dependencies [2df9691] +- Updated dependencies [bfd6b6b] +- Updated dependencies [55020c3] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [6f2bd4f] +- Updated dependencies [99a0e4f] +- Updated dependencies [9f352e8] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [fd471d3] +- Updated dependencies [1b2cd80] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [7702f09] +- Updated dependencies [05e0eb8] +- Updated dependencies [b863d2b] +- Updated dependencies [c890070] +- Updated dependencies [e75a528] +- Updated dependencies [5bd7257] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [58d00db] +- Updated dependencies [3819afe] +- Updated dependencies [61722e9] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [285ad8d] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [6a35635] +- Updated dependencies [9212119] +- Updated dependencies [cda16d4] +- Updated dependencies [9b3227f] +- Updated dependencies [fe75349] +- Updated dependencies [f4de1de] +- Updated dependencies [dab4712] +- Updated dependencies [141a826] +- Updated dependencies [8145424] +- Updated dependencies [53c9575] +- Updated dependencies [83a79e6] +- Updated dependencies [dda665f] +- Updated dependencies [98b3f87] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [ccded86] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [e01b8be] +- Updated dependencies [238661f] +- Updated dependencies [d96c878] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [72d19c4] +- Updated dependencies [b0c624a] +- Updated dependencies [9b6db73] +- Updated dependencies [1e018d6] +- Updated dependencies [6d86b43] +- Updated dependencies [bae933b] +- Updated dependencies [a3a74f2] +- Updated dependencies [f98f18c] +- Updated dependencies [74d3d83] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [227a16a] +- Updated dependencies [de25d58] +- Updated dependencies [598a34d] +- Updated dependencies [0585797] +- Updated dependencies [811858c] +- Updated dependencies [fac1e7d] +- Updated dependencies [4609c48] +- Updated dependencies [8500ee7] +- Updated dependencies [a6607c7] +- Updated dependencies [c00be39] +- Updated dependencies [1c87956] +- Updated dependencies [5345905] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [f909734] +- Updated dependencies [cedc094] +- Updated dependencies [c9b0a23] +- Updated dependencies [f51578e] +- Updated dependencies [6b360ab] +- Updated dependencies [c7174c3] +- Updated dependencies [78f7160] +- Updated dependencies [bb1c55d] +- Updated dependencies [1d7015a] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [7de1bad] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [dea68e9] +- Updated dependencies [b113178] +- Updated dependencies [138faaa] +- Updated dependencies [411fe24] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [48c732c] +- Updated dependencies [52fb30c] +- Updated dependencies [8807dcb] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [9ed18a5] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [c261a7c] +- Updated dependencies [76cb366] +- Updated dependencies [32409a9] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [9f6f306] +- Updated dependencies [c757e07] +- Updated dependencies [a5a5312] +- Updated dependencies [c1b35c3] +- Updated dependencies [9a98a46] +- Updated dependencies [8c8ff0f] +- Updated dependencies [27e414b] +- Updated dependencies [eb53d63] +- Updated dependencies [dda5e74] +- Updated dependencies [f2a990b] +- Updated dependencies [035a12c] +- Updated dependencies [33d0169] +- Updated dependencies [a23164e] +- Updated dependencies [f3d0a9f] +- Updated dependencies [8aed508] +- Updated dependencies [a60740a] +- Updated dependencies [8c5a81e] +- Updated dependencies [43580a3] +- Updated dependencies [cc05e60] +- Updated dependencies [dc10b3b] +- Updated dependencies [dca608a] +- Updated dependencies [baf2678] +- Updated dependencies [13d1e95] +- Updated dependencies [6db1dc2] +- Updated dependencies [3ae62ac] +- Updated dependencies [6c7c6db] +- Updated dependencies [eebb893] +- Updated dependencies [493ad09] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [3543b51] +- Updated dependencies [4ab2c82] +- Updated dependencies [04f9861] +- Updated dependencies [c30ce97] +- Updated dependencies [e605773] +- Updated dependencies [0628e08] +- Updated dependencies [713545f] +- Updated dependencies [cbd582f] +- Updated dependencies [031325d] +- Updated dependencies [1705ec9] +- Updated dependencies [b7fe94a] +- Updated dependencies [a2dc858] +- Updated dependencies [a6756a2] +- Updated dependencies [b3bcfef] +- Updated dependencies [aad35e6] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [71e02ff] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [5e8e243] +- Updated dependencies [4099ef2] +- Updated dependencies [6a73185] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [740720c] +- Updated dependencies [6e643cc] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [96b7975] +- Updated dependencies [e8b494a] +- Updated dependencies [bbc7e03] +- Updated dependencies [27895d7] +- Updated dependencies [543585d] +- Updated dependencies [7e89bc6] +- Updated dependencies [70194ff] +- Updated dependencies [42e4096] +- Updated dependencies [a10422d] +- Updated dependencies [1a2a8a9] +- Updated dependencies [f2ef7d8] +- Updated dependencies [7a5ae65] +- Updated dependencies [ff60149] +- Updated dependencies [ee651ce] +- Updated dependencies [dad9b55] +- Updated dependencies [d076975] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [8a741ab] +- Updated dependencies [60e79ed] +- Updated dependencies [3cf6a44] +- Updated dependencies [5fecc22] +- Updated dependencies [595844b] +- Updated dependencies [4f19091] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [9c283a1] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [ad50d61] +- Updated dependencies [f26469a] +- Updated dependencies [7501d0c] +- Updated dependencies [4ef1ea9] +- Updated dependencies [41dd132] +- Updated dependencies [45ef94e] +- Updated dependencies [d7411fa] +- Updated dependencies [c6075a7] +- Updated dependencies [cd51dbb] +- Updated dependencies [3f568c1] +- Updated dependencies [573a376] +- Updated dependencies [5c2d5cf] +- Updated dependencies [cbc06ff] +- Updated dependencies [43916f3] +- Updated dependencies [f590f3e] +- Updated dependencies [9fa05c6] +- Updated dependencies [ed0edb1] +- Updated dependencies [a10987a] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [f77d078] +- Updated dependencies [1948c5f] +- Updated dependencies [0e83fe0] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [368deee] +- Updated dependencies [8644ce7] +- Updated dependencies [0d6589d] +- Updated dependencies [c54aa57] +- Updated dependencies [53257a5] +- Updated dependencies [8aecf6d] +- Updated dependencies [e0050ba] +- Updated dependencies [14f4d8f] +- Updated dependencies [8ddadc1] +- Updated dependencies [183ed23] +- Updated dependencies [a03bc4e] +- Updated dependencies [4d4ec16] +- Updated dependencies [d763ee7] +- Updated dependencies [8018e00] +- Updated dependencies [844218f] +- Updated dependencies [8cce05b] +- Updated dependencies [0d727b7] +- Updated dependencies [ff0d1f1] +- Updated dependencies [4f7d6f7] +- Updated dependencies [b848b47] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [0819cab] +- Updated dependencies [c8d4b90] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [49c6bf3] +- Updated dependencies [4f9a3f8] +- Updated dependencies [00dd362] +- Updated dependencies [1cda7ea] +- Updated dependencies [bac4864] +- Updated dependencies [8c29b81] +- Updated dependencies [a68b475] +- Updated dependencies [c75453e] +- Updated dependencies [1e96009] +- Updated dependencies [57445a6] +- Updated dependencies [01967c3] +- Updated dependencies [0212714] +- Updated dependencies [1f3e9f6] +- Updated dependencies [8b1841f] +- Updated dependencies [305fe60] +- Updated dependencies [e91149e] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [c0dd417] +- Updated dependencies [0439a04] +- Updated dependencies [517e415] +- Updated dependencies [f92d271] +- Updated dependencies [6ddb97b] +- Updated dependencies [2af9729] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [6161010] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [3aa008d] +- Updated dependencies [7d3b8d6] +- Updated dependencies [15f8357] +- Updated dependencies [378c955] +- Updated dependencies [56fa31b] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [39e9a82] +- Updated dependencies [9c5fb3e] +- Updated dependencies [abb5449] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @object-ui/i18n@18.7.0 + - @object-ui/types@18.7.0 + - @object-ui/core@18.7.0 + - @object-ui/components@18.7.0 + - @object-ui/react@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/ui/packages/plugin-chatbot/package.json b/ui/packages/plugin-chatbot/package.json index 046a5b44221..d5bc8109151 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": "18.6.0", + "version": "18.7.0", "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 9ee4409ecab..199c1e245e0 100644 --- a/ui/packages/plugin-dashboard/CHANGELOG.md +++ b/ui/packages/plugin-dashboard/CHANGELOG.md @@ -1,5 +1,467 @@ # @object-ui/plugin-dashboard +## 18.7.0 + +### Patch Changes + +- 7f4970a: fix(plugin-dashboard): a compare widget dated on a related record's field is served through the dataset's declared date dimension over that path + + Clause-②: no + Metadata-protocol: none + + A dataset-bound compare widget (`compareTo`) sends its date window to the dataset query under the filtered field's name. The dataset query answers only declared dimensions, and a dimension name has no dot, so a window on a related record's field, such as `account.founded_at`, was refused with `400 INVALID_FIELD`. + + When such a key is in the window, the widget now reads the dataset definition and sends the window under the one declared dimension with `type: 'date'` and `field` equal to that path (for example `{ name: 'account_founded', field: 'account.founded_at', type: 'date' }`). A `compareTo.dimension` that names the window by the path or by that declared name is sent as the declared name. When no declared date dimension covers the path, or two or more do, the key is sent as authored and the dataset query still refuses it. Keys that can be dimension names, such as `close_date`, are never renamed, and widgets whose window has no such key read nothing extra. + + To serve a compare widget dated on a related record's field, declare one date dimension over that path on the dataset. + + The dataset query's `400 INVALID_FIELD` refusal for a comparison-window date key that cannot be a dimension name no longer says the comparison cannot run unless the date field is a field of the dataset's own object; it names the remedy that exists: declare one date dimension over that field (`type: 'date'`, `field` set to it, any snake_case name, the relationship in the dataset's `include`) and name it in `timeDimensions`, which a dashboard compare widget then does itself. The refusal's code, status and when it fires are unchanged. +- ad15579: fix(plugin-dashboard): the dashboard table widget no longer offers an "Export CSV" download + + Clause-②: no + Metadata-protocol: none + + The dataset table and cross-tab widgets drew a download button that built a CSV in the browser. That file skipped the export grant and the export audit entry that list export enforces. The button, its CSV helpers and the `dashboard.exportCsv` label in every locale pack are removed. To take rows out, use list export, which checks the export grant and writes the audit entry. Report exports are unchanged. +- f3d0a9f: fix(dashboard): a global filter bound to a field holding several values is sent as `$contains`, not `=` / `$in` + + Clause-②: yes (widening) + Metadata-protocol: none + + A dashboard `select` / `lookup` global filter bound to a field that holds several values (`multiple: true` on a select, lookup or user field, or a `multiselect` / `checkboxes` / `tags` field) used to be sent as `field = value`, or `$in` for several values. The server refuses both on such a field: the data query answers `400 INVALID_FILTER`, and the dataset query answers `200` with a count of 0, so the dashboard showed no data. The filter is now sent as `{ field: { $contains: value } }`, and several chosen values as `$or` over one `$contains` each, which the server answers with the matching rows. Single-value fields keep `=` / `$in`. + + To know whether the bound field holds several values, the dashboard reads the field's definition before it sends the widget's query: + + - `@object-ui/types`: `DataSource` has a new optional member, `getDataset(name, { callerPackage })`. It reads a dataset definition and resolves `null` when no such dataset is served; a failed read rejects. + - `@object-ui/data-objectstack`: `ObjectStackAdapter.getDataset` reads `GET /api/v1/meta/dataset/:name`, sending the reader's package as `callerPackage`, and caches the answer like the adapter's other metadata reads. + - `@object-ui/core`: `buildWidgetScopedFilter` takes an optional fifth argument, the operators each bound field takes when it is stored as a JSON column, and lowers a `select` / `lookup` filter on such a field to `$contains`. `boundMemberFilterNames` names the active `select` / `lookup` filters that bind a widget. + - `@object-ui/plugin-dashboard`: `DashboardRenderer` reads a dataset-bound widget's base object through `getDataset`, and a `provider: 'object'` widget's own object, through `getObjectSchema`. While that read is in flight, a widget that a `select` / `lookup` filter with a value binds draws a skeleton and sends no query. The operators come from `jsonColumnFilterOperators`, the helper the list quick filter and the filter builder use. + + A data source without `getDataset`, or a dataset the server does not serve, keeps the `=` / `$in` lowering, and the dashboard logs a console warning that names the filter. +- 6e643cc: feat(plugin-dashboard): a dashboard or report drill opens a centred dialog over the standard list, and a report's chart marks drill + + Clause-②: yes (widening) — additive members only, among them the new `PageRegionPostureReset` export of `@object-ui/components`; nothing is removed or renamed + Metadata-protocol: none + + Clicking a number on a dashboard (a chart mark, a metric tile, a table cell) or on a dataset report used to open a full-height side drawer whose table listed every field of the object, with no sort, no filter and no word on which conditions selected the records; a row stacked a second record panel on top. The drill now opens a dialog about 70% wide and 65% tall that dims and blurs nothing behind it, and its body is the standard list the object list page draws (`list-view`): the same row height, column-header sort, filter chips, added columns, record count and column calculations. The drill's conditions (the clicked bucket, the widget's filter, the measure's scope) are the list's own chips and can be changed or removed; a condition no chip can say (a relationship path, an `$or`) still filters the list. The default columns are the record's name, the grouped fields and the measured fields. Nothing done in the dialog is saved, and it writes nothing. A record's name opens the record's full page, whose 「N of M」 stepper walks the drill's rows and whose way back is the dashboard or report; no second panel is stacked. 「Open in list」 is unchanged. On a phone the drill keeps the side drawer, with the same list. + + A dataset report's chart marks now drill too: a bar opens the same records as the summary line it stands for. + + Additive members: `DrillNavigationValue.openRecord` and the `DrillRecordOrigin` type (`@object-ui/react`), `DrillDownDrawerProps.defaultColumns` (`@object-ui/plugin-dashboard`), `DatasetDrillArgs.fields` (`@object-ui/plugin-report`), `PageRegionPostureReset` (`@object-ui/components`). A renderer without `@object-ui/plugin-list` registered lists the drilled records in the dashboard's data table. A host that gives no `openRecord` (a page block's metric or pivot) opens the drilled record in a dialog, from either body. + + Inside a page the drill draws the same standard list: the page region's posture (the compact or capped list a page block draws) is cleared for the drill's dialog by the new `PageRegionPostureReset` (`@object-ui/components`), so a page block's metric or pivot drill shows its chips, its record count and its pager, and no 「View all」 link to a list without the drill's condition. A drill whose filter names no condition any read can carry (a string, a number) lists nothing and says so, instead of listing every record. +- 8a741ab: feat(console): a dashboard is edited on its own page by the people who may design its package, and every card marks the page filters it does not follow + + Clause-②: yes (widening) — one new exported function (`dashboardFiltersNotApplied` in `@object-ui/core`), two new optional `DashboardRenderer` props (`onWidgetResize`, `onAddFilter`), and new `@object-ui/i18n` keys (`dashboard.inPageEdit.*`, `dashboard.filters.notApplied`, `dashboard.filters.addFilter`); nothing is removed or renamed + Metadata-protocol: none + + A dashboard page draws an **Edit** button for a workspace admin who may author metadata, on a package Studio lists (the gate of the app's Studio entries). Edit opens the dashboard as stored (never the translated copy the page shows) in an edit state: the header says **Editing**, with **Add card**, **Discard** and **Save**; every card draws a dashed outline and can be dragged to move it, resized from its corner by whole grid tracks (or with the arrow keys on the corner handle) and clicked to select it. The panel at the right is Studio's own dashboard panels, as they stand: a selected card's (its data, its "follow page filters" switches, Remove) and otherwise the dashboard's (label, cards, filters, layout). The filter bar's **Add filter** opens the panel's Filters section. Add card appends a card at the end and selects it. + + Save writes where Studio's Customize would and publishes that one item in the same act, so everyone sees the change at once without the app's package being published: into the owning package when it is writable, else into the app's customization package (`<base>.custom`, declaring `overrides: { package, basedOn }`), so an installed app's dashboard is edited too. Opening the edit state writes nothing: the pair is asked of the ensure door, which creates it on first use, at Save only. As with Studio's Customize, an installed app's dashboard is not opened where that door is walled for the caller or the package list gives no installed version to declare the override at. A dashboard with a draft already pending there (a Studio edit not yet published) is not opened for editing, and a save over one writes nothing: that draft is never published on its saver's behalf. Discard drops every change and writes nothing. + + Every card, in every mode, carries a small mark naming the page filters that do not reach it ("Not filtered by Region"), asked of the same binding its query is built from (`dashboardFiltersNotApplied` over `resolveBoundField`): a filter the card opts out of, or one whose `targetWidgets` leaves it out (an explicit string binding wins over `targetWidgets`). A card every filter reaches carries none. +- 4034a6d: fix(plugin-dashboard): a record opened from a drill counts and steps through the drill's whole result + + Clause-②: yes (widening) — one additive member, `ListViewProps.onFindParamsChange` (`@object-ui/plugin-list`); nothing is removed or renamed + Metadata-protocol: none + + A record opened from a dashboard or report drill showed 「1 of N」 and stepped ↑ ↓ only over the rows the drill's list had drawn on its page, so a drill that matched 40 records and drew 20 let the reader walk 20. The `list-view` page block handed its own `onTotalChange` (the tab badge's count) to the list after the host's, so the drill never heard the count; it now hands the count to both. The list now also reports the query behind the rows it draws (`onFindParamsChange`, a host prop answered where `onRowsChange` answers with rows), and the drill re-issues that query for record ids alone, with the same filter, sort and search, when the count exceeds the rows drawn or the rows drawn are a later page. The record page is handed every record the drill matched, in the drill list's order, up to 1,000, and the count it matched, so its counter says where the record sits in the whole drill and ↑ ↓ walk all of it. A read that fails, a record past the first 1,000, or a result that changed under the list keeps the rows drawn as the step set, as before. +- 896bfc4: fix(plugin-dashboard): a dashboard that declares `gap: 0` is drawn with no gap + + Clause-②: no + Metadata-protocol: none + + The dashboard renderer read the declared `gap` as `schema.gap || 4`, so a declared `gap: 0`, which the spec admits (`min(0)`), fell through to the default and widgets an author wanted flush were drawn 1rem apart. It now reads `schema.gap ?? 4`: only an absent `gap` takes the default of 4 (1rem), and a declared zero draws the grid with no gap. The design-mode resize handle, which measures a span from the same gap, uses the declared zero too. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [a0b4ecf] +- Updated dependencies [d6d9645] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [c3fb37a] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [c9b3f7a] +- Updated dependencies [8e46424] +- Updated dependencies [8896822] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [dc53d4a] +- Updated dependencies [0739dee] +- Updated dependencies [ad15579] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [eed422e] +- Updated dependencies [2df9691] +- Updated dependencies [bfd6b6b] +- Updated dependencies [55020c3] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [6f2bd4f] +- Updated dependencies [99a0e4f] +- Updated dependencies [a9b36ef] +- Updated dependencies [9f352e8] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [fd471d3] +- Updated dependencies [1b2cd80] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [7702f09] +- Updated dependencies [05e0eb8] +- Updated dependencies [b863d2b] +- Updated dependencies [c890070] +- Updated dependencies [e75a528] +- Updated dependencies [5bd7257] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [58d00db] +- Updated dependencies [3819afe] +- Updated dependencies [61722e9] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [285ad8d] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [6a35635] +- Updated dependencies [9212119] +- Updated dependencies [cda16d4] +- Updated dependencies [9b3227f] +- Updated dependencies [fe75349] +- Updated dependencies [f4de1de] +- Updated dependencies [dab4712] +- Updated dependencies [141a826] +- Updated dependencies [8145424] +- Updated dependencies [53c9575] +- Updated dependencies [83a79e6] +- Updated dependencies [dda665f] +- Updated dependencies [98b3f87] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [ccded86] +- Updated dependencies [f7b172f] +- Updated dependencies [ec24363] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [e01b8be] +- Updated dependencies [238661f] +- Updated dependencies [d96c878] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [72d19c4] +- Updated dependencies [b0c624a] +- Updated dependencies [9b6db73] +- Updated dependencies [1e018d6] +- Updated dependencies [6d86b43] +- Updated dependencies [bae933b] +- Updated dependencies [a3a74f2] +- Updated dependencies [f98f18c] +- Updated dependencies [74d3d83] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [227a16a] +- Updated dependencies [de25d58] +- Updated dependencies [598a34d] +- Updated dependencies [0585797] +- Updated dependencies [811858c] +- Updated dependencies [fac1e7d] +- Updated dependencies [4609c48] +- Updated dependencies [8500ee7] +- Updated dependencies [a6607c7] +- Updated dependencies [c00be39] +- Updated dependencies [1c87956] +- Updated dependencies [5345905] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [f909734] +- Updated dependencies [cedc094] +- Updated dependencies [c9b0a23] +- Updated dependencies [f51578e] +- Updated dependencies [6b360ab] +- Updated dependencies [c7174c3] +- Updated dependencies [78f7160] +- Updated dependencies [bb1c55d] +- Updated dependencies [1d7015a] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [5a68b57] +- Updated dependencies [7de1bad] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [dea68e9] +- Updated dependencies [b113178] +- Updated dependencies [138faaa] +- Updated dependencies [411fe24] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [48c732c] +- Updated dependencies [52fb30c] +- Updated dependencies [8807dcb] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [9ed18a5] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [c261a7c] +- Updated dependencies [76cb366] +- Updated dependencies [32409a9] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [9f6f306] +- Updated dependencies [c757e07] +- Updated dependencies [a5a5312] +- Updated dependencies [c1b35c3] +- Updated dependencies [9a98a46] +- Updated dependencies [96b66ca] +- Updated dependencies [8c8ff0f] +- Updated dependencies [27e414b] +- Updated dependencies [eb53d63] +- Updated dependencies [dda5e74] +- Updated dependencies [f2a990b] +- Updated dependencies [035a12c] +- Updated dependencies [33d0169] +- Updated dependencies [a23164e] +- Updated dependencies [f3d0a9f] +- Updated dependencies [6aacad9] +- Updated dependencies [8aed508] +- Updated dependencies [a60740a] +- Updated dependencies [8c5a81e] +- Updated dependencies [43580a3] +- Updated dependencies [cc05e60] +- Updated dependencies [dc10b3b] +- Updated dependencies [dca608a] +- Updated dependencies [baf2678] +- Updated dependencies [13d1e95] +- Updated dependencies [15b7f51] +- Updated dependencies [c297dff] +- Updated dependencies [1cd4762] +- Updated dependencies [6db1dc2] +- Updated dependencies [9ae874a] +- Updated dependencies [3ae62ac] +- Updated dependencies [6c7c6db] +- Updated dependencies [eebb893] +- Updated dependencies [493ad09] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [3543b51] +- Updated dependencies [4ab2c82] +- Updated dependencies [04f9861] +- Updated dependencies [c30ce97] +- Updated dependencies [e605773] +- Updated dependencies [0628e08] +- Updated dependencies [713545f] +- Updated dependencies [cbd582f] +- Updated dependencies [031325d] +- Updated dependencies [1705ec9] +- Updated dependencies [b7fe94a] +- Updated dependencies [a2dc858] +- Updated dependencies [a6756a2] +- Updated dependencies [b3bcfef] +- Updated dependencies [aad35e6] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [71e02ff] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [5e8e243] +- Updated dependencies [4099ef2] +- Updated dependencies [6a73185] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [740720c] +- Updated dependencies [6e643cc] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [96b7975] +- Updated dependencies [e8b494a] +- Updated dependencies [bbc7e03] +- Updated dependencies [27895d7] +- Updated dependencies [543585d] +- Updated dependencies [7e89bc6] +- Updated dependencies [70194ff] +- Updated dependencies [42e4096] +- Updated dependencies [a10422d] +- Updated dependencies [1a2a8a9] +- Updated dependencies [24366ff] +- Updated dependencies [f2ef7d8] +- Updated dependencies [7a5ae65] +- Updated dependencies [17dbea4] +- Updated dependencies [ff60149] +- Updated dependencies [ee651ce] +- Updated dependencies [dad9b55] +- Updated dependencies [d076975] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [8a741ab] +- Updated dependencies [60e79ed] +- Updated dependencies [3cf6a44] +- Updated dependencies [5fecc22] +- Updated dependencies [595844b] +- Updated dependencies [4f19091] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [9c283a1] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [52971ff] +- Updated dependencies [06c3e5a] +- Updated dependencies [2da2979] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [ad50d61] +- Updated dependencies [50bfbb8] +- Updated dependencies [f26469a] +- Updated dependencies [7501d0c] +- Updated dependencies [4ef1ea9] +- Updated dependencies [41dd132] +- Updated dependencies [45ef94e] +- Updated dependencies [d7411fa] +- Updated dependencies [c6075a7] +- Updated dependencies [cd51dbb] +- Updated dependencies [3f568c1] +- Updated dependencies [573a376] +- Updated dependencies [5c2d5cf] +- Updated dependencies [cbc06ff] +- Updated dependencies [43916f3] +- Updated dependencies [f590f3e] +- Updated dependencies [9fa05c6] +- Updated dependencies [ed0edb1] +- Updated dependencies [a10987a] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [f77d078] +- Updated dependencies [3110de5] +- Updated dependencies [1948c5f] +- Updated dependencies [0e83fe0] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [9f84e5f] +- Updated dependencies [368deee] +- Updated dependencies [6156fdd] +- Updated dependencies [8644ce7] +- Updated dependencies [0d6589d] +- Updated dependencies [c54aa57] +- Updated dependencies [53257a5] +- Updated dependencies [8aecf6d] +- Updated dependencies [115d387] +- Updated dependencies [e0050ba] +- Updated dependencies [14f4d8f] +- Updated dependencies [8ddadc1] +- Updated dependencies [183ed23] +- Updated dependencies [a03bc4e] +- Updated dependencies [4d4ec16] +- Updated dependencies [d763ee7] +- Updated dependencies [8018e00] +- Updated dependencies [844218f] +- Updated dependencies [8cce05b] +- Updated dependencies [0d727b7] +- Updated dependencies [ff0d1f1] +- Updated dependencies [4f7d6f7] +- Updated dependencies [b848b47] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [47ed85d] +- Updated dependencies [0819cab] +- Updated dependencies [97e0f93] +- Updated dependencies [c8d4b90] +- Updated dependencies [00aa574] +- Updated dependencies [69c3dc4] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [62692b7] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [49c6bf3] +- Updated dependencies [4f9a3f8] +- Updated dependencies [00dd362] +- Updated dependencies [1cda7ea] +- Updated dependencies [bac4864] +- Updated dependencies [8c29b81] +- Updated dependencies [a68b475] +- Updated dependencies [c75453e] +- Updated dependencies [1e96009] +- Updated dependencies [57445a6] +- Updated dependencies [01967c3] +- Updated dependencies [0212714] +- Updated dependencies [15d2766] +- Updated dependencies [1f3e9f6] +- Updated dependencies [8b1841f] +- Updated dependencies [305fe60] +- Updated dependencies [e91149e] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [706c8c6] +- Updated dependencies [c063734] +- Updated dependencies [c0dd417] +- Updated dependencies [0439a04] +- Updated dependencies [517e415] +- Updated dependencies [f92d271] +- Updated dependencies [6ddb97b] +- Updated dependencies [2af9729] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [6161010] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [b89f1b5] +- Updated dependencies [372ce7c] +- Updated dependencies [3aa008d] +- Updated dependencies [7d3b8d6] +- Updated dependencies [15f8357] +- Updated dependencies [378c955] +- Updated dependencies [56fa31b] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [39e9a82] +- Updated dependencies [9c5fb3e] +- Updated dependencies [abb5449] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @object-ui/i18n@18.7.0 + - @object-ui/fields@18.7.0 + - @object-ui/types@18.7.0 + - @object-ui/core@18.7.0 + - @object-ui/components@18.7.0 + - @object-ui/react@18.7.0 + - @object-ui/permissions@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/ui/packages/plugin-dashboard/package.json b/ui/packages/plugin-dashboard/package.json index 8250e80b086..5b9fccbc15e 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": "18.6.0", + "version": "18.7.0", "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 9af51ec5462..ef5134bea4d 100644 --- a/ui/packages/plugin-designer/CHANGELOG.md +++ b/ui/packages/plugin-designer/CHANGELOG.md @@ -1,5 +1,431 @@ # @object-ui/plugin-designer +## 18.7.0 + +### Patch Changes + +- b2d4355: fix(app-shell, plugin-designer, console): app writes send the app as its author stored it, not as the console's locale serves it + + Clause-②: no + Metadata-protocol: none + + The served app list is translated for the reader's locale, and the metadata save door stores a body verbatim. Four writers seeded a whole-app save from that served list: the Edit app wizard, App management's Disable / Enable / Set default and bulk toggles, the navigation sync that adds or removes an entry when a page, dashboard, report or object is created or deleted, and the Publish button on an unpublished app. In a zh-CN session each of them stored the app's label and every navigation label in Chinese, and readers in every other locale were then served Chinese. Each writer now reads the stored app from the untranslated layers through the new `ObjectStackAdapter.getAuthoredItem(type, name, { packageId })`, and changes only the keys its control owns. The served list is still used to find the app. When the stored app cannot be read, the writer refuses with an error and saves nothing; the Edit app page shows the read error instead of opening the wizard. +- 17ceb2d: fix(plugin-designer): the app wizard decides a generated navigation entry's plural label from the object as authored, not as the console's locale serves it + + Clause-②: yes (widening) + Metadata-protocol: none + + When the Create app or Edit app wizard leaves the Objects step, it generates one navigation entry for each newly selected object. The entry carries no label unless the object declares a plural label that differs from its label and its name. That decision, and the text it stored, came from the served object list, which is translated for the reader's locale. So a zh-CN session stored the translated plural, such as `项目列表`, as the app's source text, readers in every other locale were served it, and whether a label was stored at all depended on the editor's language. The wizard now reads each newly selected object from the untranslated layers through `ObjectStackAdapter.getAuthoredItem('object', name, { packageId })`, at the package the served object came from, and decides and stores the authored plural label (`Projects`). The Next button waits for these reads, and the step buttons and the object selection are disabled until they settle, so the selection cannot change under them. If an object's stored definition cannot be read, its entry carries no label and inherits the object's label at render time; it never falls back to the served text. To show the plural in another locale, translate the entry under `apps.<app>.navigation.<object>.label`. Entries already stored are not rewritten. + + `AppCreationWizardProps` gains the optional `readAuthoredObject(objectName)` prop, which `CreateAppPage` and `EditAppPage` now pass. A host that renders `AppCreationWizard` without it gets entries with no label: they inherit the object's label at render time. +- 2fea6d2: fix(plugin-designer, app-shell): a packaged app is saved at its package, not at the package-less address + + Clause-②: no + Metadata-protocol: none + + The Edit app wizard read a packaged app at its package but saved it with no package, and the navigation sync that adds or removes an entry when a page or dashboard is created or deleted read and saved every app with no package. Both now read and save an app a package owns with `{ packageId }` (sent as `?package=`), the row the console serves, the way App management already saves it. An app no package owns, including one served with the `sys_metadata` sentinel, keeps the package-less address. A managed package's sealed app is still refused by the server at either address, and the navigation sync still skips it. +- 7e89bc6: feat(studio): the field inspector, the field designer and the object's settings write Field change values instead of Track history + + Clause-②: yes (widening) + Metadata-protocol: none + + Old → new values show on the record activity by default, and an object or a single field can turn them off. The Studio now writes that setting where an author looks for it: + + - **Field inspector.** The "Track history" box is gone. In its place, "Field change values" offers Default, On and Off. Default leaves the field's `fieldHistory` unset and names what it means for this field on this object: "Default (On)" for most types, "Default (Off)" for a media, JSON or credential field, and "Default (Off)" for every field when the object turns values off, with a note saying so. On and Off write `fieldHistory: true` and `false`; choosing Default after Off removes the key. A stored `trackHistory` is kept as it is and never written. + - **Field designer** (`@object-ui/plugin-designer`). The drawer's "Track History" switch, which wrote `trackHistory: false` on every save, is replaced by "Field Change Values" with the same three choices: Default (named "Default (On)" or "Default (Off)" for the type in the drawer, and it follows a type change), On, Off. A stored `trackHistory` is carried through an edit and never written. `DesignerFieldDefinition` (`@object-ui/types`, with its zod mirror) gains an optional `fieldHistory`, and both designer save paths (`MetadataFieldsPage`, `MetadataService.saveFields`) carry it; Default sends no key, which removes a stored one. + - **Object settings.** The Features card gains "Field change values" (`enable.fieldHistory`). Unticking it writes `false`; ticking it again removes the key rather than writing `true`, since unset already means on. Sibling `enable` keys are kept. + + The inspector and the metadata form's Field History control share one module for the three choices, what each writes and their wording; the field designer cannot import it (the app shell depends on the designer) and shares the rule itself, `resolveFieldHistory` from `@objectstack/spec/data`. New Studio strings `designer.field.fieldHistory`, `designer.field.fieldHistoryObjectOff`, `engine.studio.settings.capFieldHistory` and `engine.studio.settings.capFieldHistoryDesc` (en, zh); `designer.field.trackHistory` is removed with the box it labelled. In the language packs, `appDesigner.fieldDesigner.trackHistory` is replaced by `appDesigner.fieldDesigner.fieldHistory`, `fieldHistoryDefault`, `fieldHistoryOn` and `fieldHistoryOff`, in all eleven locales. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [a0b4ecf] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [c3fb37a] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [c9b3f7a] +- Updated dependencies [8e46424] +- Updated dependencies [8896822] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [dc53d4a] +- Updated dependencies [0739dee] +- Updated dependencies [ad15579] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [eed422e] +- Updated dependencies [2df9691] +- Updated dependencies [bfd6b6b] +- Updated dependencies [55020c3] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [6f2bd4f] +- Updated dependencies [99a0e4f] +- Updated dependencies [b2d4355] +- Updated dependencies [b1eb500] +- Updated dependencies [9f352e8] +- Updated dependencies [3446f23] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [fd471d3] +- Updated dependencies [1b2cd80] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [1aac465] +- Updated dependencies [7702f09] +- Updated dependencies [05e0eb8] +- Updated dependencies [b863d2b] +- Updated dependencies [c890070] +- Updated dependencies [e75a528] +- Updated dependencies [5bd7257] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [58d00db] +- Updated dependencies [3819afe] +- Updated dependencies [61722e9] +- Updated dependencies [0ce2598] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [285ad8d] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [6a35635] +- Updated dependencies [9212119] +- Updated dependencies [cda16d4] +- Updated dependencies [9b3227f] +- Updated dependencies [fe75349] +- Updated dependencies [f4de1de] +- Updated dependencies [dab4712] +- Updated dependencies [141a826] +- Updated dependencies [8145424] +- Updated dependencies [53c9575] +- Updated dependencies [83a79e6] +- Updated dependencies [dda665f] +- Updated dependencies [98b3f87] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [ccded86] +- Updated dependencies [f7b172f] +- Updated dependencies [ec24363] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [e01b8be] +- Updated dependencies [238661f] +- Updated dependencies [d96c878] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [72d19c4] +- Updated dependencies [b0c624a] +- Updated dependencies [9b6db73] +- Updated dependencies [1e018d6] +- Updated dependencies [6d86b43] +- Updated dependencies [bae933b] +- Updated dependencies [a3a74f2] +- Updated dependencies [f98f18c] +- Updated dependencies [74d3d83] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [227a16a] +- Updated dependencies [de25d58] +- Updated dependencies [598a34d] +- Updated dependencies [0585797] +- Updated dependencies [811858c] +- Updated dependencies [fac1e7d] +- Updated dependencies [4609c48] +- Updated dependencies [8500ee7] +- Updated dependencies [a6607c7] +- Updated dependencies [c00be39] +- Updated dependencies [1c87956] +- Updated dependencies [d8b15b5] +- Updated dependencies [5345905] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [f909734] +- Updated dependencies [cedc094] +- Updated dependencies [c9b0a23] +- Updated dependencies [f51578e] +- Updated dependencies [65fddc8] +- Updated dependencies [6b360ab] +- Updated dependencies [c7174c3] +- Updated dependencies [78f7160] +- Updated dependencies [bb1c55d] +- Updated dependencies [1d7015a] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [7de1bad] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [dea68e9] +- Updated dependencies [b113178] +- Updated dependencies [138faaa] +- Updated dependencies [411fe24] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [48c732c] +- Updated dependencies [52fb30c] +- Updated dependencies [8807dcb] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [9ed18a5] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [c261a7c] +- Updated dependencies [f9f45d3] +- Updated dependencies [76cb366] +- Updated dependencies [32409a9] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [9f6f306] +- Updated dependencies [c757e07] +- Updated dependencies [a5a5312] +- Updated dependencies [c1b35c3] +- Updated dependencies [9a98a46] +- Updated dependencies [8c8ff0f] +- Updated dependencies [27e414b] +- Updated dependencies [eb53d63] +- Updated dependencies [dda5e74] +- Updated dependencies [f2a990b] +- Updated dependencies [035a12c] +- Updated dependencies [33d0169] +- Updated dependencies [a23164e] +- Updated dependencies [f3d0a9f] +- Updated dependencies [8aed508] +- Updated dependencies [a60740a] +- Updated dependencies [1647fb3] +- Updated dependencies [8c5a81e] +- Updated dependencies [43580a3] +- Updated dependencies [cc05e60] +- Updated dependencies [dc10b3b] +- Updated dependencies [dca608a] +- Updated dependencies [baf2678] +- Updated dependencies [13d1e95] +- Updated dependencies [c297dff] +- Updated dependencies [1cd4762] +- Updated dependencies [6db1dc2] +- Updated dependencies [729b642] +- Updated dependencies [3ae62ac] +- Updated dependencies [6c7c6db] +- Updated dependencies [eebb893] +- Updated dependencies [493ad09] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [3543b51] +- Updated dependencies [4ab2c82] +- Updated dependencies [04f9861] +- Updated dependencies [c30ce97] +- Updated dependencies [b57f778] +- Updated dependencies [e605773] +- Updated dependencies [0628e08] +- Updated dependencies [370e14d] +- Updated dependencies [713545f] +- Updated dependencies [cbd582f] +- Updated dependencies [031325d] +- Updated dependencies [1705ec9] +- Updated dependencies [b7fe94a] +- Updated dependencies [a2dc858] +- Updated dependencies [a6756a2] +- Updated dependencies [b3bcfef] +- Updated dependencies [aad35e6] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [71e02ff] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [5e8e243] +- Updated dependencies [4099ef2] +- Updated dependencies [6a73185] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [740720c] +- Updated dependencies [6e643cc] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [a09816d] +- Updated dependencies [96b7975] +- Updated dependencies [e8b494a] +- Updated dependencies [bbc7e03] +- Updated dependencies [27895d7] +- Updated dependencies [543585d] +- Updated dependencies [7e89bc6] +- Updated dependencies [70194ff] +- Updated dependencies [42e4096] +- Updated dependencies [a10422d] +- Updated dependencies [85a9954] +- Updated dependencies [1a2a8a9] +- Updated dependencies [f2ef7d8] +- Updated dependencies [7a5ae65] +- Updated dependencies [17dbea4] +- Updated dependencies [ff60149] +- Updated dependencies [ee651ce] +- Updated dependencies [dad9b55] +- Updated dependencies [d076975] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [8a741ab] +- Updated dependencies [60e79ed] +- Updated dependencies [3cf6a44] +- Updated dependencies [5fecc22] +- Updated dependencies [595844b] +- Updated dependencies [2c5b90d] +- Updated dependencies [4f19091] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [9c283a1] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [ad50d61] +- Updated dependencies [f26469a] +- Updated dependencies [7501d0c] +- Updated dependencies [4ef1ea9] +- Updated dependencies [9849846] +- Updated dependencies [41dd132] +- Updated dependencies [45ef94e] +- Updated dependencies [d7411fa] +- Updated dependencies [c6075a7] +- Updated dependencies [cd51dbb] +- Updated dependencies [3f568c1] +- Updated dependencies [573a376] +- Updated dependencies [5c2d5cf] +- Updated dependencies [cbc06ff] +- Updated dependencies [43916f3] +- Updated dependencies [f590f3e] +- Updated dependencies [9fa05c6] +- Updated dependencies [ed0edb1] +- Updated dependencies [a10987a] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [f77d078] +- Updated dependencies [1948c5f] +- Updated dependencies [0e83fe0] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [368deee] +- Updated dependencies [8644ce7] +- Updated dependencies [0d6589d] +- Updated dependencies [c54aa57] +- Updated dependencies [53257a5] +- Updated dependencies [8aecf6d] +- Updated dependencies [e0050ba] +- Updated dependencies [14f4d8f] +- Updated dependencies [8ddadc1] +- Updated dependencies [183ed23] +- Updated dependencies [a03bc4e] +- Updated dependencies [4d4ec16] +- Updated dependencies [d763ee7] +- Updated dependencies [8018e00] +- Updated dependencies [844218f] +- Updated dependencies [8cce05b] +- Updated dependencies [0d727b7] +- Updated dependencies [ff0d1f1] +- Updated dependencies [4f7d6f7] +- Updated dependencies [b848b47] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [0819cab] +- Updated dependencies [c8d4b90] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [49c6bf3] +- Updated dependencies [4f9a3f8] +- Updated dependencies [00dd362] +- Updated dependencies [1cda7ea] +- Updated dependencies [bac4864] +- Updated dependencies [c48f06c] +- Updated dependencies [8c29b81] +- Updated dependencies [a68b475] +- Updated dependencies [c75453e] +- Updated dependencies [1e96009] +- Updated dependencies [6cfd04d] +- Updated dependencies [57445a6] +- Updated dependencies [01967c3] +- Updated dependencies [0212714] +- Updated dependencies [1f3e9f6] +- Updated dependencies [8b1841f] +- Updated dependencies [305fe60] +- Updated dependencies [e91149e] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [ebb4713] +- Updated dependencies [c063734] +- Updated dependencies [c0dd417] +- Updated dependencies [0439a04] +- Updated dependencies [517e415] +- Updated dependencies [f92d271] +- Updated dependencies [6ddb97b] +- Updated dependencies [2af9729] +- Updated dependencies [3d4f423] +- Updated dependencies [ce2645a] +- Updated dependencies [2a6f26a] +- Updated dependencies [6161010] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [3aa008d] +- Updated dependencies [7d3b8d6] +- Updated dependencies [15f8357] +- Updated dependencies [378c955] +- Updated dependencies [56fa31b] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [39e9a82] +- Updated dependencies [9c5fb3e] +- Updated dependencies [abb5449] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @object-ui/i18n@18.7.0 + - @object-ui/plugin-grid@18.7.0 + - @object-ui/types@18.7.0 + - @object-ui/core@18.7.0 + - @object-ui/components@18.7.0 + - @object-ui/data-objectstack@18.7.0 + - @object-ui/plugin-form@18.7.0 + - @object-ui/react@18.7.0 + - @object-ui/layout@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/ui/packages/plugin-designer/package.json b/ui/packages/plugin-designer/package.json index 329cb7a7638..e96faabd57f 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": "18.6.0", + "version": "18.7.0", "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 28f4d986068..d119771ba3c 100644 --- a/ui/packages/plugin-detail/CHANGELOG.md +++ b/ui/packages/plugin-detail/CHANGELOG.md @@ -1,5 +1,1364 @@ # @object-ui/plugin-detail +## 18.7.0 + +### Minor Changes + +- 5dd856f: fix(lint): `field-group-shadowed` judges the six highlights the record page draws, from one shared constant + + Clause-②: yes (narrowing) + Metadata-protocol: narrowed + + The default record page draws the first six of an object's `highlightFields` (after the title field leaves the list) in its header strip and leaves those fields out of the Details body. The `field-group-shadowed` warning judged only the first four, so a field group whose only member sat fifth or sixth in `highlightFields` was empty on the record page and passed `os lint --strict`. It now judges the same six, and its hint says "first 6 highlightFields". + + What was accepted before and is warned now: an object whose field group is emptied by its fifth or sixth highlight. Fix it as the hint says: keep a member of that group out of the first six highlights, or drop the group. A list the old count warned is still warned: six hoisted fields include the first four, so no list that passed only under six is refused. + + New export: `@objectstack/spec/ui` adds `RECORD_HIGHLIGHTS_MAX` (6), the count both the lint and `@object-ui/plugin-detail`'s record page synthesizer read. `@object-ui/plugin-detail` now takes its own `RECORD_HIGHLIGHTS_MAX` from there; the value and the page are unchanged. + + <!-- adr-0087: registered field-group-shadowed-six-highlights --> +- 9b6db73: feat(spec, ui): a master_detail child is a table in the record overview by default + + Clause-②: yes (widening: a master_detail FK with no `relatedList` now reads as `'primary'`) + Metadata-protocol: semantic + + A `master_detail` child used to be a side list unless it also declared `inlineEdit`. Now the relation type decides: a `master_detail` FK that declares no `relatedList` is a body table in the parent's record overview. `inlineEdit` is no longer needed for that; it stays what it was, the write side (whether the edit form inlines the child as line items). + + - `relatedList: false` hides the list, `relatedList: true` keeps it a side list (a card in the related column, a tab on the tab row), `relatedList: 'primary'` is unchanged. A `lookup` FK with no `relatedList` stays a side list. + - `isBodyTableRelationship` is still the one judgement. The field-group placement check at `defineStack` and at the publish door follows it, so a field group may now name a plain `master_detail` child to position its table. Studio reads a plain `master_detail` FK as "primary" and writes an explicit `true` when you pick "Show". + - Placement: the body tables of a synthesized page are drawn in the overview's left column above the field sections (under the stage bar and key fields), in the parent's `relatedLists` order. A field group that names one still positions it. They never get a tab or a related-column card. The drawer uses the same page. + - An empty body table draws its column headers and one empty row holding the empty sentence and a New button. + - The table shows 10 rows by default (the page can set its own page size). "Show all N" expands it in place, and ↗ opens the child list filtered to the parent. + - Totals come from the server: the parent's `summary` field over the same child rows when there is one, otherwise a sum aggregate over every child row of this parent (the existing data query, no new endpoint). They are drawn in the table's summary row. The old "this page" sum of the shown rows is gone; a data source with no `aggregate` draws no total. + - A `master_detail` related list placed on an authored record page gets the same body-table treatment (the totals and the empty row). + + To keep an existing `master_detail` child as a side list, write `relatedList: true` on its FK. +- c7174c3: fix(record-page): business dates read as dates, Save is the edit state's primary button, a new detail line starts on its defaults, and the tabs follow the header with no blank band + + Clause-②: yes (widening) + Metadata-protocol: semantic + + Four things on the record page. + + **Dates.** A `date` field that declares no `format` read as a relative phrase on the record page ("6 days ago", "Tomorrow") while the list beside it wrote the date ("Nov 13"), so the reader had to work the day out. The record page's field sections and its highlights strip now write the date itself, with its year, as the list's columns do; the relative phrase (an overdue deadline's "Overdue 5d" included) is the date's tooltip, and a deadline past due still reads red. A declared `format`, `'relative'` included, still wins. A `datetime` field already read as an absolute date there (its cell's default face is the compact one, never the relative phrase), and is now pinned to stay so. The record footer's created and modified times keep their relative wording, and card surfaces (kanban, gallery) are unchanged. `@object-ui/fields`' cell props gain `absoluteDate`, read by the `date` cell. + + **Edit-state buttons.** In the record page's edit state, Cancel drew as the filled primary button and Save as an outline one, so the hand fell on the button that throws the edit away. Save is now the one filled button, after Cancel, the order a form's footer uses. `page:header` now makes a host button declaring `variant: 'primary'` the primary over the page's own actions, in the place the host gave it; no other host button declares one, so every other header is unchanged. + + **New detail lines.** A line added to a master-detail table in the record page's edit state started blank, so a required column with a default (a status that defaults to "Pending") read red although the save then stored the default. A new line now starts on the child object's static defaults, the values a create form seeds; a default the server resolves at insert (`NOW()`, a CEL expression) is left to the server. A new line's empty required cell reads red only after a save was refused, with the server's reason listed under the table; a stored line is flagged as before. A line added and never edited, holding only its defaults, is still skipped at save like a blank one; once the user edits a cell of it, it is input and is saved, even when every value they typed equals a default. `LineItemsField` gains `newRowValues` and `newRowRequiredShown`; a line its Add starts on `newRowValues` carries the `UNTOUCHED_NEW_ROW` mark (a symbol key no payload carries) until its first edit, and `isBlankRow` reads that mark. `@object-ui/fields` exports `UNTOUCHED_NEW_ROW` and `isUntouchedNewRow`. A host that passes neither prop sees no change. The save request and its transaction are unchanged. + + **The band above the tabs.** The record page's scroller and its column layout each padded their top by 24px on a desktop, so a 48px empty band stood between the header and the tab row. The scroller now pads only its sides and bottom, and the column layout keeps a 12px top on every width, so the tabs follow the header at the gap the rest of the page uses; on a phone the title block keeps 16px to the tabs. The print chrome and the approval actions bar that render above the columns keep their own top margin, and an authored page the page renderer draws keeps its own top padding. Side padding is unchanged. +- f3c9d42: feat(spec, ui): a master_detail child is a tab by default; a field group puts it in the overview and the form + + Clause-②: yes (widening: `@objectstack/spec/data` exports `isGroupPlaceableRelationship`, `fieldGroupsPlaceRelationship` and the `BodyTableContext` type, and `isBodyTableRelationship` takes an optional second argument) + Metadata-protocol: semantic + + A `master_detail` FK that declares no `relatedList` used to put its child list into the parent record's overview as a table (since #35597). Now it is a tab of the record page with its count, like any other related list, `inlineEdit` or not. It goes into the overview only where a field group of the PARENT names it (`fieldGroups[].relatedList`). + + - Placed by a group, the child's table is drawn at that group's position in the overview, the parent's create and edit forms inline it, and the record page's Edit saves the record fields and the rows in one save. Its tab stays on the tab row too, with its count. + - `relatedList: 'primary'` on the FK is unchanged on the record page: a body table with no group, and no tab of its own whether or not a group positions it. Its forms follow ruling B like every other child: a field group naming it inlines it in the parent's create and edit forms, `inlineEdit` or not, and with no group naming it the forms do not inline it, even with `inlineEdit`. `relatedList: true` keeps a tab that no group may place, and `false` hides the list. + - A field group may name exactly what it could name before: a plain `master_detail` child or a `'primary'` one. `isGroupPlaceableRelationship` is that test; `isBodyTableRelationship(field, { placedByGroup })` is still the one body-table judgement. + - `inlineEdit` on the FK no longer inlines a child in the parent's form by itself (maintainer ruling B: only the field group decides). It now only picks the form factor of a child a group places: `'grid'`, `'form'`, or `true` / absent for the shape-picked default. A child with `inlineEdit` that no group names is a tab and is not in the form. + - `os lint`: `relationship/line-items-inline-edit` now suggests a field group on the parent (with its required `label`) instead of `inlineEdit: true`, and only for a FK a group may place; `relationship/association-inline-edit` and `relationship/inline-edit-needs-bulk` judge the children a parent group places; the field-consumer rule credits a child's inline grid columns only when a parent group places it. + - The showcase invoice and expense report, and the CRM opportunity, gain a field group naming their lines, so their forms and record pages keep the line table. + - In the entry form a placed table sits at its group's place too: between the sections of the groups around it, or in a tab of its own (labelled with the group) in a tabbed form. A form whose sections name no field group keeps it below the record's fields. + - Studio's field-group picker offers the same children as before. The relationship field inspector reads a plain `master_detail` FK as "Show", and "Show" leaves the key absent so a group can still place it. + + To keep a master-detail child's table in the overview and its rows in the form (including a child that set `inlineEdit`), add a field group to the parent that names it, in the place the table should sit: + + ```ts + fieldGroups: [ + { key: 'basic', label: 'Basic information' }, + { key: 'lines', label: 'Lines', relatedList: 'order_line' }, // or 'order_line.order' for one FK + { key: 'terms', label: 'Terms' }, + ], + ``` + + Such a group holds no fields. Or write `relatedList: 'primary'` on the child's FK to keep it in the overview with no group. A group may name only a list it can place: for an `inlineEdit` child on a `lookup` FK, or on a FK declaring `relatedList: true`, also write `relatedList: 'primary'` on the FK (a `master_detail` FK may instead drop `relatedList: true`). A form view that declares its own subforms still inlines what it declares. +- 52fb30c: feat(plugin-detail): the default record page draws no stage bar and no key-field strip; the stage moves from the header's status tag + + Clause-②: yes (widening) + Metadata-protocol: semantic + + The default record page (`buildDefaultPageSchema`) no longer emits `record:highlights` or `record:path`. The stage is the status tag beside the record's name: a reader who may edit the stage field sees it with an arrow and opens a menu listing every stage in order, the current one checked; a stage the field's blocking `state_machine` cannot reach is disabled with its reason under the name. Picking a stage confirms, and a stage that makes other fields required (their `requiredWhen` holds once the record stands on it, such as a loss reason on a lost stage) asks for exactly those fields in the same dialog and writes them with the move. A refusal stays in the dialog, beside the field it names, and the stage does not move. A reader who may not edit the field, an approval lock or an open draft leaves the plain tag. A plain status field (no stage role) is read and moved the same way. + + The details body now draws every field its groups hold: the highlight fields and the stage field are no longer taken out of their groups, so a record reads in the same groups and order in view and in edit (objectstack#35849). `highlightFields` itself is unchanged and still drives the hover card, a related list's default columns and the record picker; nothing is picked when an object declares none. + + `buildDefaultHighlights` and both blocks are kept: an authored page, or a slotted page's `highlights` slot, still places a strip and a path where it wants them. + + - `@object-ui/components`: `RecordHeaderState` gains an optional `stage` renderer (with the exported `RecordHeaderStageParts`), which the header calls with the stage tag it would draw. Without a host bar (a phone) the header now draws the stage tag in the row under the record's name, beside the state's tags; before, a phone showed no stage at all. + - `@object-ui/plugin-detail`: exports `RecordStageMenu`, the menu a host hands the header as `RecordHeaderState.stage`. Its fields-a-stage-needs dialog comes from the package-internal `useStageChange` (`record:path` keeps its plain confirmation). + - `@object-ui/plugin-detail`: `BuildPageOptions.highlightFields`, `.statusField` and `.stages` are still accepted by `buildDefaultPageSchema` and `buildDefaultTabs` but no longer do anything there, since the default page draws no strip and no stage bar; `buildDefaultHighlights` still reads them. Retiring them is objectstack#35943. + - `@object-ui/i18n`: four `detail.stageMenu*` strings in every locale. + - `@objectstack/lint`: `field-group-shadowed` no longer counts the highlight strip as hiding fields from the detail body, since the default record page leaves them in their groups; a group whose only visible member is the record title still warns. +- 8df7bf2: feat(spec): an object's `relatedLists` is its record page's tab list — only the listed related lists show, in order, the attachments, approvals and activity-stream tabs are placed by object name, and an entry can carry its list's title and columns + + Clause-②: yes (widening) + Metadata-protocol: semantic + + A record page's tabs are now declared on the parent object, in one place: + + ```ts + relatedLists: [ + { list: 'quote_line', label: 'Line items', columns: ['product', 'quantity', 'unit_price', 'amount'] }, + 'task', + 'sys_attachment', + 'sys_approval_request', + 'sys_activity', + ], + ``` + + - **No `relatedLists` (or an empty one): nothing changes.** Every related list shows, in the derived order, then attachments, approvals and the activity stream. + - **A declared `relatedLists` now decides which tabs show**, not only their order. A related list no entry names shows no tab; before, it still followed the listed ones. Removing an entry removes its tab. Body tables a field group places in the overview (`fieldGroups[].relatedList`) stay at their group, and the tab such a `master_detail` table also keeps on an undeclared page shows only when an entry names it, and `relatedList: false` on the child's FK still hides a list. + - **This narrows the #35889 note** ("Its tab stays on the tab row too, with its count"): the tab of a `master_detail` child that a field group places in the overview stays only while the parent declares no `relatedLists`; once it declares one, that tab shows only if an entry names the child. + - **The three built-in tabs by object name**: `'sys_attachment'` (attachments; shown only when listed, and still only when the object enables files), `'sys_approval_request'` (approvals; still only on a record with requests, and when unlisted it follows the listed tabs), `'sys_activity'` (the one activity stream; when unlisted it closes the strip). A built-in is written only as its bare name: `{ list: 'sys_attachment', … }` is refused at parse. `'sys_comment'` and `'sys_audit_log'` are parts of the stream, not tabs: `os validate` warns (`related-list-stream-part`) and prescribes `'sys_activity'`. `'sys_attachment'` on an object without files warns (`related-list-attachments-off`). + - **An entry's own title and columns**: `{ list, label?, columns? }` wins over the child FK's `relatedListTitle` / `relatedListColumns`, which keep working unchanged. The columns are child field names, used wherever the list is drawn (its tab, and the body table a field group places); a dotted column (`account.industry`) walks the child's relationships, as `relatedListColumns` does, and a name that resolves to no field of the child is refused (`related-list-column-unknown`) by `os validate`, `os build` and the metadata write door. + + - **The generic object form** (metadata admin) edits `relatedLists` with its own chip input: a bare name and an object entry both show and both survive add and remove (the entry's title and columns beside its name; they are edited in Studio). Its help text states the tab-list meaning in every translated locale. + - **Studio** (object settings, Record page tabs): the editor lists the entries in order, the built-in tabs among them, and offers the built-ins not yet listed (attachments only when the object enables files). A relationship row's edit sets its own title and columns, and clearing both writes the bare name again. The relationships not listed are shown below as having no tab. A move, a removal or an add keeps every entry's object form and every built-in name. + + What to check in an app: an object that already declares `relatedLists` and leaves some related lists out now shows only the listed ones, and shows no attachments tab unless `'sys_attachment'` is listed. List every tab the page should keep, or remove `relatedLists` to show them all. A child list another package adds is hidden too until the parent names it, which a build accepts only when that package is in the parent's stack; letting a package place its own list is a later change. ADR-0087 semantic entry `related-lists-declared-is-tab-list`. +- 170ca48: feat(spec): a field group lists its own members and their order (`fieldGroups[].fields`) + + Clause-②: yes (widening) + Metadata-protocol: added + + A field group may now list which fields it shows and in what order: + + ```ts + fieldGroups: [ + { key: 'basic', label: 'Basic', fields: ['account', 'name', 'valid_until'] }, + { key: 'terms', label: 'Terms', fields: ['terms'] }, + ] + ``` + + The record page, the create and edit forms and the drawer show the group's fields in the list's order, whatever order the object's `fields` declares them in, so a group can be reordered without moving any field (and without changing a list view's default column order). + + Nothing changes for an object that writes no `fields` on its groups: a group without the list still holds the fields whose `group` names it, in field declaration order. `Field.group` is the older spelling and is still read; it is not deprecated for removal. + + The two spellings must agree. The object parse refuses a field one group lists while its own `group` names another declared group (reported at both places; a `group` naming no declared key is not another group, so the list wins), a field two groups list, a name one list repeats, and `fields` on a group that places a related list (`relatedList`). A field whose `group` names a listing group that leaves it out is shown after the listed fields, never dropped. A listed name the object does not declare is skipped, so removing a field never makes the object unparseable; `os lint` warns about it (`field-group-member-unknown`). + + New export: `readFieldGroupMembership` (`@objectstack/spec/data`), the membership `deriveFieldGroupLayout` places sections from, for editors that also show hidden fields. + + Studio: dragging a field inside a group, or into another group, now writes those groups' `fields` lists and leaves the object's field declaration order alone. Only the ungrouped bucket, which has no list, still reorders by declaration order. Moving a field to another group from the field inspector does the same once a list is involved. + + Field-level security: the object document served to a caller who cannot read some fields keeps each group's `fields` list, with the hidden names filtered out and the rest in order, so the record page and forms keep the layout for that caller. +- d33bf5a: feat(spec): an object extension says where the fields, groups and child lists it brings go (`place`), and a child list another package brings is no longer hidden by the parent's `relatedLists` + + Clause-②: yes (widening) + Metadata-protocol: semantic + + An `objectExtensions` entry can now place what it brings on the object it extends: + + ```ts + objectExtensions: [{ + extend: 'account', + fields: { tax_id: { type: 'text', label: 'Tax ID' } }, + place: [ + { field: 'tax_id', group: 'basic', after: 'industry' }, + { group: { key: 'tax', label: 'Tax' }, after: 'basic' }, + { list: 'contract', after: 'opportunity', label: 'Contracts', columns: ['name', 'amount'] }, + ], + }], + ``` + + - **No `place`: nothing moves.** Fields still arrive after the object's own, and an extension that writes no `place` serves exactly what it served before. + - **One merge, every reader.** The registry fold applies the placements once, after every contributor's fields are merged, so the record page, the forms and Studio show one arrangement. Uninstalling or disabling the package takes its items off and leaves the object's own order as it was. + - **Placement arranges what the parent declares.** A list placement applies when the extended object declares `relatedLists`; a group or field placement when it declares `fieldGroups`. On a parent that declares neither, its automatic arrangement stays and nothing is dropped: the list shows in the automatic tab order, and its entry's `label` / `columns` are not applied either (write `relatedListTitle` / `relatedListColumns` on your child object's lookup field to title it on every parent); the field shows among the fields, its `after` / `before` not applied. The boot log names each placement that did not apply, with the object and the package. It is the main channel: `os validate` names it too (`extension-placement-not-applied`, warning) only when the extended object is in the same stack. + - **Anchors and order.** `after` or `before`, not both; neither means the end. An anchor may be an item another placement brings, whatever order the two are written or registered in. An anchor nobody has puts the item at the end of its group, of the groups, or of the tabs (before a trailing approvals / activity-stream run), and `os validate` warns (`extension-placement-anchor-missing`). A list placement's `columns` are fields of the child, checked by `os validate` as a `relatedLists` entry's are (`related-list-column-unknown`). Several packages at one anchor follow ascending `priority`, then package name, so every build gives the same order. When the object itself already names the list or lists the field, its own position wins. + - **An extension places only its own items.** A field outside its own `fields`, a field the extended object declares (also one the extension redeclares to relabel it), a group key the extended object already declares, or a list (placed as a tab or by a group's `relatedList`) that is not a child object of its package pointing at the extended object is refused at parse or at `defineStack`, and skipped by the merge with a warning naming whose item it is, whichever door registered the extension. The extension keys `fieldGroups` and `relatedLists` are refused with a prescription naming `place`. + - **Shipped behaviour change (flips #35897's hiding):** a child list another package brings is no longer hidden by the parent's declared `relatedLists`. Placed, it sits where its package puts it; unplaced, it shows at the end of the tabs. "Another package" means the child and the parent both belong to a package and the two differ; a child of the parent's own package, or one no package owns, is still hidden until an entry names it. This narrows the #35897 note "A child list another package adds is hidden too until the parent names it … letting a package place its own list is a later change": that change is this one. + - **Studio** (object settings, Record page tabs) shows such a list read-only among the unlisted rows with a "from <package>" badge, and the preview draws it where the record page does. + + What to check in an app: on an object that declares `relatedLists`, every installed package's child lists of it now show, at the end of the tabs unless placed; name one in the parent's `relatedLists` to put it elsewhere, or set `relatedList: false` on that package's FK to hide it. Nothing in HotCRM changes meaning today: no module writes `place`, and no object declares `relatedLists`. Most HotCRM objects already declare `fieldGroups`, so a field or group placement there applies as soon as a module writes one; a list placement waits until the parent declares its `relatedLists` (follow-up #35902). ADR-0087 semantic entry `object-extension-place-and-cross-package-lists`; ADR-0146 D10 and ADR-0085 notes. +- 9742142: feat(plugin-detail): on the synthesized record page every titled field group folds, open by default + + Clause-②: no + Metadata-protocol: semantic + + On the synthesized (default) record page every field group that has a title now draws the right-hand chevron and folds from its whole title row, whatever its `collapse` says. This holds in the side preview, on the phone's 「详情」 tab, in the wide page's pinned left column and on the full page. Folding a group there is something the reader does. `collapse` still sets the first state: `'collapsed'` starts closed, `'none'` and `'expanded'` start open. 系统信息 still starts closed. + + Unchanged: + + - Forms and the designer preview: `'none'` still means always open, with no toggle. + - The untitled field bucket has no toggle. + - A print page draws every group open. + - An authored record page keeps its own faces. + - The fold state lasts while the record stays open. It is not saved. + + `@objectstack/spec`: the `ObjectFieldGroupSchema.collapse` description, the refusal guidance for a stray `expanded` key and the object form's Collapse help text now say that the default record page lets the reader fold every titled group; the form's "None" option reads "always open on the entry form, no toggle". The enum, its default and what it accepts are unchanged. + + `@objectstack/platform-objects`: the object form's Collapse help text in every metadata-form catalog follows the new wording (English regenerated, the ten translated catalogs re-translated). + + What to check in an app: an object that used `collapse: 'none'` to keep a group's heading from folding on the record page now shows a chevron there. The setting still keeps the group always open on forms. +- 45ef94e: feat(spec): a base's paired `.custom` package declares an installed object's whole field-group and tab arrangement (`fieldGroups`, `relatedLists` on its object extension) + + Clause-②: yes (widening) + Metadata-protocol: added + + The record page is arranged in three layers. The package that owns an object declares its `fieldGroups` and `relatedLists`; a package that extends it places what it brings with `place`; and now the environment, in the base's paired `.custom` package, may declare the whole arrangement over both: + + ```ts + objectExtensions: [{ + extend: 'crm_lead', + fields: { region__c: { type: 'text', label: 'Region' } }, + // The whole field arrangement: the two groups swapped, `status` moved. + fieldGroups: [ + { key: 'contact', label: 'Contact', fields: ['email', 'phone', 'status'] }, + { key: 'basic', label: 'Basics', fields: ['name', 'company', 'region__c'] }, + ], + // The whole tab list: events before tasks, the notes tab hidden. + relatedLists: ['crm_event', 'crm_task', { list: 'crm_note', hidden: true }], + }], + ``` + + - **Two new keys on an object extension, written only by a `.custom` package.** `fieldGroups` takes the shape an object's `fieldGroups` takes and may list any field the object has, whoever declares it; a group's `relatedList` may place any body table. `relatedLists` takes an object's entry shape (a bare name, the three built-in tab names, or `{ list, label?, columns? }`) plus `hidden`. + - **Each key replaces, whole.** The registry applies it last: the owner's arrangement, then every extension's `place`, then the `.custom` key in place of the result. Nothing is merged entry by entry. A key the extension does not write keeps the owner's arrangement with the placements, so writing only `relatedLists` leaves the field groups as they were. + - **A field the arrangement does not list is not dropped.** It shows after the last group, whichever group its owner or another extension had put it in. A group that lists `fields` shows exactly its list. + - **A tab the arrangement does not name still shows, after the listed ones.** This is the reverse of an object's own `relatedLists`, where leaving a list out hides it. Hiding is written: `{ list: 'crm_note', hidden: true }` hides that list's tab, whichever package brings it. `hidden` is accepted only here; an object's own `relatedLists` refuses it and says where it belongs. A list the owner hides by leaving it out of its own `relatedLists` stays hidden until the arrangement names it. The built-in tabs keep their own rules and are not hidden here. + - **A package that is not a `.custom` package writing either key is refused**, once at each door: saving or publishing the extension, `os validate` and `os build`, and installing the package (`VALIDATION_ERROR`; 400 at save and publish, 422 at install). Each refusal names the key, the object and the package and prescribes `place`. An extension that reaches the registry past those doors is not applied, and the boot log says so. Within one extension, a `place` entry beside the arrangement key that would replace it is refused at parse. + - **Only the object's own pair is served.** The pair is the `.custom` package of the App the object belongs to: for an object a module of an App owns, the App's pair. A `.custom` package an earlier version created for the module itself is still read while it is installed; where both write a key, the App's pair is served. The choice is by role, never by load order. What any other `.custom` package writes under these keys is not refused at the doors; the registry does not apply it, alone or beside the pair, and the boot log names the package and the object. + - **One merge, every reader.** The record page, the forms, the preview and Studio read the served object, so they show one arrangement. Removing a key, or uninstalling or disabling the `.custom` package, serves the owner's arrangement with the placements again. + - **Served reads say what the reader cannot derive.** Where a `.custom` package writes `relatedLists`, the served object carries the read decoration `_relatedListsArrangement` (`{ packageId, hidden, unlisted }`): the lists the environment hides, and whether an unlisted list shows. The record page's tab reader and the default page synthesis read it; with no decoration served they answer exactly as before. A reader's own tab order (kept per user) is still laid over this list, and a tab the environment hides is not offered to them. + - **A group the arrangement brings is a translation anchor.** `os validate`'s translation-reference rule reads an extension's `fieldGroups` too, so a bundle's `_sections` key for a group the `.custom` arrangement declares is not reported as naming nothing. + - **`hidden` on a field is not a display property a `fieldPatches` entry may set.** A hidden field is also left out of the search index and out of a form's required check, so the display whitelist is not widened. To keep a vendor field off the record page and the forms, list it in a group whose `visibleWhen` is false. That is presentation only, not access control: the field stays readable and writable through the API. Do not use it for a `required` field that has no default: the create form no longer shows the field while the save still requires it, so the form cannot be submitted. + + What to check in an app: nothing changes until a `.custom` package writes one of the two keys. A package other than a `.custom` one that wrote `fieldGroups` or `relatedLists` on an extension was refused at parse. It is now refused by the save, publish, install, `os validate` and `os build` doors, with the same prescription. Where none of those doors judges it (for example a code-defined stack that boots without `os validate` or `os build`, or a stack that names no package id), the key is not applied and the boot log names it, where the parse refused it before. +- 7a7ab47: fix(record-page): a field group whose fields are all empty is counted and revealed by "Show N empty fields" + + Clause-②: no + Metadata-protocol: semantic + + On an object's default record page, a field group the object declares (`fieldGroups`) no longer disappears for good when every one of its fields is empty. Before, read mode drew nothing for such a group, the field list's closing "Show N empty fields" row left its fields out of the count, and pressing the row did not draw them; they appeared only in edit mode. Now the row counts them, and pressing it draws the group in its place, heading and fields. With the row not pressed the page looks as before: an all-empty group draws nothing, not even its heading. + + What changed is the meaning of a `record:details` section's `hideEmpty` in read mode: it now hides an all-empty section only while the reader hides empty fields. This holds for an authored `hideEmpty: true` and for the renderer default (an omitted `hideEmpty`), which the default page's declared groups carry. When the reader shows empty fields, through the field list's row or the per-object choice a section's own "Show N empty fields" toggle writes, the section draws like any kept all-empty section. A print page has no toggle and keeps the section hidden. Edit mode is unchanged and still draws every field as an input. A group with at least one value draws exactly as before. An authored `hideEmpty: true` on a `detail-view` section gives way to the reader in the same way: it draws once the reader's remembered per-object choice is to show empty fields. Outside the field list, with no remembered choice (no host preference store, or no object name), the section stays hidden as before. This supersedes the line in the pending `36147-record-field-list` changeset that says an authored `hideEmpty` group "stays hidden and is not counted": on the record page's field list such a group is now counted by the one "Show N empty fields" row and drawn when the reader shows empty fields. + + The accepted keys and values are unchanged: `hideEmpty` is still an optional boolean. Its `describe()` in `@objectstack/spec`, the `DetailViewSection` and `record:details` section docs and the `views.zod` describe in `@object-ui/types`, and the `record:details` and `detail-section` input descriptions in `@object-ui/plugin-detail` state the new reading. +- 129e637: feat(i18n): console flow labels follow the server's declared fallback chain + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: none — the new member is a response field the console reads, not something a metadata author writes; no skills/ page teaches `GET /i18n/locales` or how the console resolves flow labels + + - **`GET /api/v1/i18n/locales` names the declared fallback chain.** `GetLocalesResponseSchema` (`@objectstack/spec/api`) gains an optional `fallbackChain: string[]`, and the runtime's `/i18n` domain fills it from the i18n service's `getFallbackLocale()` (the stack's `i18n.fallbackLocale`, else its `defaultLocale`), the same accessor the server's metadata translations hand the spec resolvers as `ResolveOptions.fallbackChain`. A service that declares no fallback (no accessor, or an empty answer, such as the core in-memory provider) serves no member. Nothing existing changes meaning. + - **The console loads the fallback locale's flow translations.** The console's language loader reads the chain and `sourceLocale` beside the active language's bundle and, unless the language is the authored one, fetches each fallback locale's bundle and keeps its `flows` group (`withDeclaredFlowsFallback`, `@object-ui/i18n`). + - **Flow labels walk the same locales as the server.** `activeFlowsBundle` returns the fallback locales' rows too, and the new `flowsResolveOptions` hands the spec resolvers `{ locale, fallbackChain, defaultLocale }`. The flow runner (flow name, field copy, option labels), the flow designer and docs viewer (`flowLabelTranslations`, `useFlowLabelTranslations`, which take the declared options) and the stage-change confirm now read a declared fallback locale's text for a label the active language lacks, before the authored label. A stack that declares no fallback keeps "requested locale, then the authored label". + +### Patch Changes + +- 2b57044: perf(console): the first load stops downloading the grid and detail packages; `@object-ui/plugin-detail/core` publishes the detail helpers without registering anything + + Clause-②: yes (widening) — one new published `exports` subpath, `@object-ui/plugin-detail/core`, joins what the package accepts; nothing is removed or renamed, and the package root exports the same names as before + Metadata-protocol: none + + `@object-ui/plugin-detail` registers its detail and record-page renderers with `ComponentRegistry` when its root entry is evaluated, and the root reaches every detail surface (and, in the console's build, the grid it draws with). A host that imported one pure helper from the root therefore kept the whole package. The package now publishes a `/core` subpath that registers nothing: `isRefusedFeedRead`, `relatedListEntryNames`, `RELATED_ARRANGEMENT_RECORD_VERSION`, `relatedArrangementFromRecord`, `relatedArrangementToRecord`, `deriveFieldGroupDetailSections`, `deriveHighlightFields`, `resolveDetailSections`, `isWideFieldType`, `prefetchRelatedCounts`, `relatedCountTargetsIn`, `COMPACT_RELATED_ROWS`, `normalizeRelatedListSort`, `seedQueueClaimDecision`, `seedRecordFieldAccess`, `seedRecordVerdict`, and the type `RelatedArrangement`. + + The same names stay exported from the package root, unchanged; nothing to migrate. The subpath ships ESM only (`import`), as the other `/core` subpaths do. The package's ESM build now emits one file per source module (`dist/index.js`, `dist/core.js` and the modules they import), so the record-page caches a `/core` seed writes are the ones the root's hooks read; the UMD build (`dist/index.umd.cjs`) is unchanged. + + The console (`@object-ui/console`, and the shell it draws, `@object-ui/app-shell`) takes these helpers from the subpath, draws the record pointer card's key fields and the approval decision's child tables through `lazy()`, loads the dev-only row-actions page lazily, and registers the tags the grid and detail packages register (`object-grid`, `view:grid`, `detail-view`, `detail-section`, `view:detail`, and the eleven `record:` blocks `details`, `related_list`, `highlights`, `activity`, `chatter`, `discussion`, `path`, `quick_actions`, `history`, `reference_rail`, `alert`) as lazy stubs with the namespaces those registrations declare. Neither package is downloaded on the first load any more; the list and record routes load them with their own route chunks, and any other surface loads them, and registers once, the first time it draws a grid or a detail block. What every page draws is unchanged. +- ee5fdc8: fix(record-page): an authored record page's feed panels show the record's field history, and offer Field Changes + + Clause-②: no + Metadata-protocol: none + + On an authored (assigned) record page, a `record:discussion`, `record:chatter` or `record:activity` panel never showed who changed which field from what to what, never offered the Field Changes filter, and an authored `filterMode: 'changes_only'` silently opened on All Activity. The record page read the audit log only for the page it synthesizes. + + Now, on an object with `enable.trackHistory`, the record page reads the record's field history (the newest 50 audit entries, plus one user-name lookup) while one of those panels is on screen, at open or when its tab opens; a page with no such panel on screen, or an object without `trackHistory`, reads nothing more. The panel merges the field changes into its feed the way the default page's activity stream does: an update that wrote both an activity row and an audit entry is one row, now showing its before and after values; a change with no activity row is its own row; and an `updated` activity row with no audit entry steps aside, as on the stream. Field Changes is offered, and an authored `changes_only` holds those changes, exactly when the reader's audit read answered: a reader the server refuses the audit log to is offered no Field Changes, as before. A panel authored with `unifiedTimeline: false` shows no field changes and offers no Field Changes. + + Visible change on existing authored pages: on a `trackHistory` object, a feed panel's All Activity now includes the field changes with their before and after values, and its filter gains Field Changes. The default record page is unchanged. `@object-ui/plugin-detail` adds `mergeFieldHistoryIntoFeed` to its `recordTimelineStream` module (not re-exported from the package entry); no locale keys, props or entry exports change. +- d6d9645: fix(plugin-detail): a long text summary roll-up wraps on the record page, and the summary's read display follows dark mode + + Clause-②: no + Metadata-protocol: none + + A summary (roll-up) field whose value is text read on the record page cut to one line with an ellipsis, the whole value only in a hover tooltip, as a formula did before. The record page's field rows now read a summary through the summary field's own read display, the face the record form draws, so the whole value shows and wraps. A number or money roll-up reads the same text it did. + + That read display used a fixed grey text colour that stayed the same in dark mode. It now uses the theme's foreground colour, so a roll-up reads at full contrast in both themes. + + What does not change: list and grid rows keep the one-line cell with the whole value in its tooltip, and the record page's highlights strip keeps its face. A host that registered its own `summary` face keeps it on the record page. No metadata key, value or default changes. +- 2df9691: fix(plugin-detail): an authored record page folds its all-empty field groups into one closing line, as the default page does + + Clause-②: no + Metadata-protocol: none + + On a record page you author, the details body (`record:details`) used to draw every field group the page keeps with `hideEmpty: false` as its own bordered card, even when every field in it was empty: a card holding nothing but its heading and one "Show N empty fields" row. A new opportunity on such a page showed two of these, one per empty group. + + Now every `record:details` body does what the default record page already did. The groups whose fields are all empty leave their places, and the body ends in one quiet line that names them, for example "Deal Narrative · Notes & Next Steps · 2 empty sections · Expand". Expanding the line draws each group in its own place, as its heading plus its "Show N empty fields" row, and from there the fields can be shown and edited in place. "Collapse" folds them back. + + What does not change: + + - A group with at least one value draws as before, its own "Show N empty fields" row included. + - `hideEmpty` keeps its default. An omitted key still hides an all-empty group outright, and such a group is not named in the line. + - Edit mode draws every group with every field as an input, and a print page prints every row. + - A standalone `detail-view` keeps one section per group, and still folds a body whose groups are all empty into one "Show N empty fields" row. + + No metadata key, value or default changes. The `@objectstack/spec` `describe()` of `record:details` `sections[].hideEmpty`, the `@object-ui/types` docs and the component manifest now describe the closing line. +- f2078e3: fix(plugin-detail): a record page's empty-sections line follows the reader's remembered "show empty fields" choice + + Clause-②: no + Metadata-protocol: none + + A reader who chose "show empty fields" for an object found the record page's closing empty-sections line ("Deal Narrative · Notes & Next Steps · 2 empty sections · Expand") folded again on every visit, on the default record page and on an authored one alike, and expanding the line was forgotten as soon as the page closed. + + The line now reads and writes the same remembered choice each section's own "Show N empty fields" row already uses, kept per user and object. With "show empty fields" remembered, the line opens on its own, on both page kinds. Expanding or collapsing the line is that choice: it is remembered for every record of the object, after a reload and on another device, and it also opens or folds each section's own empty fields, since it is one choice. + + What does not change: with no signed-in user or no host preference store, the line keeps its own state, forgotten when the page closes, as before. Edit mode and a print page still draw every section. No metadata key, value or default changes. +- 34308dc: fix(plugin-detail): the record page draws its approval band once when the details are split around a body table + + Clause-②: no + Metadata-protocol: none + + The synthesized default record page splits its details around a body table (a `relatedList: 'primary'` list, such as a quote's or an opportunity's line items): one `record:details` part per run of sections. Each part mounted its own `DetailView`, and each drew the record's approval band, so an approval-locked record showed "Locked for approval" twice, above the table and again above the next section. The laid-out page now has the first details part alone draw the band, above the table. An authored page's details body, a standalone `DetailView` and the record drawer are unchanged, and so is the lock rule: an approval node with `lockRecord: false` still reads as an editable approval. +- eb1f85d: fix(plugin-detail): a record page's compact related card labels its rows from the list's columns when those columns leave the child's name out + + Clause-②: no + Metadata-protocol: none + + A compact related card in the record page's right column labelled every row by the child's record title, so a line item named by a stored copy of its product's title read the product page's own name on every row, even when the relationship declared the columns that tell the lines apart (`relatedListColumns: [opportunity, quantity, ...]`). When the related list declares columns and they leave the child's name field out, the compact row is now labelled from the first of those columns that is a lookup to another record, the principal may read and the block does not redact; the card still asks the server for that one column and nothing more. A list with no declared columns, columns that include the name, no readable lookup among them, or a template title (`titleFormat`) keeps the record title, and a child named by the key back to the page keeps the rule it had. +- a5ddeb6: fix(plugin-detail): a record page no longer draws a field whose own `visibleWhen` is false for the record + + Clause-②: no + Metadata-protocol: none + + `record:details` now honours a field's object-level `visibleWhen` (`Field.visibleWhen`: "field is shown only when TRUE") on every field it draws, the way the edit form does. The synthesized default record page used to draw such a field, label and value, on every record, so the page and the form disagreed about the same record. It applies to every body `record:details` draws: a `{ group }` reference, an enumerated section (the default page's ungrouped bucket, its split for an object with no `fieldGroups`, or an authored page's section) and a flat `fields` list. + + The verdict is the form's own: the same evaluator call (`resolveFieldRuleState`), over the record the page shows (bound as `record` and as `previous`) and the host predicate scope (`current_user`). A field predicate that cannot be evaluated still shows the field and warns once in the console, as on the form (ADR-0137 D3). That is the opposite of a field GROUP's `visibleWhen`, which hides the group on a fault. A section whose every field is hidden this way draws no heading. Display only: the record API still returns the field. +- 6a35635: feat(console): Change Owner on the record page, in a list's selection bar, and beside the read-only owner of the edit form + + Clause-②: yes (widening) + Metadata-protocol: none + + A record whose object offers Change Owner now shows a **Change Owner** action in its page header. The action appears only where three things hold: the object can have its owner changed (it has a per-person owner that is not pinned read-only), the object's `userActions.transfer` switch is on, and the server's explain engine allows this user to transfer this record. A `controlled_by_parent` detail offers the action only once its author turns the switch on. Objects with `ownership: 'none'`, `managedBy` objects and `sys_*` objects never offer it, even to a platform admin. + + The action opens one dialog. You pick the new owner under the object's own label for its owner field. Where the object has an ownership queue, you can pick a queue instead. You can also ask that the new owner be notified. The dialog sends the change through `data.changeOwner` for one record and `data.changeOwnerMany` for several. Picking the record's current owner is refused in the dialog with the reason shown. A bulk change ends with a report: how many records moved, how many already had that owner, how many did not move, and each row that did not move with the server's own reason. + + A list's selection bar offers **Change Owner** for the selected rows, where the object's switch is on and the explain engine allows this user to transfer the object's records (one question per object, not per row, asked once a selection is open rather than when the list opens). The rows of such an object take a selection even when the user has no bulk Delete and the view authors no bulk actions, so the entry can be reached at all; where the verdict refuses, the bar draws no Change Owner. The server judges every row again. Rows that the switch's `visibleWhen` excludes are left out of the request, and the dialog says how many were left out. + + The Console's edit form now shows the owner, read-only, above the form's fields, with Change Owner beside it when it is offered. The owner field is still not part of what the form saves. Forms embedded outside the Console are unchanged: the owner line appears only where a host mounts `FormOwnerLineContext` (exported from `@object-ui/plugin-form` and `@object-ui/plugin-form/core`). + + New public surface, all additive: + + - `@object-ui/plugin-grid`: `ObjectGrid` takes two new optional props, `onBulkChangeOwner` (wiring it makes the rows selectable and adds the entry) and `bulkChangeOwnerOffered` (`false` holds the entry back while the rows stay selectable); the package exports the action name `CHANGE_OWNER_BULK_ACTION`. + - `@object-ui/plugin-list`: `ListView` takes and forwards both props. + - `@object-ui/plugin-form`: new exports `FormOwnerLine`, `FormOwnerLineProps`, `FormOwnerLineContext`, `FormOwnerActionTarget` and `FormOwnerLineHost`; `@object-ui/plugin-form/core` exports `FormOwnerLineContext`, `FormOwnerActionTarget` and `FormOwnerLineHost`. + - `@object-ui/plugin-detail`: `RecordOperation` gains `'transfer'`, so `useRecordVerdict` and `seedRecordVerdict` accept it. + - `@object-ui/i18n`: every console locale gains `grid.changeOwner` and the `console.changeOwner.*` block. +- b65488a: fix(plugin-detail): the highlights strip, the detail view and the record drawer no longer draw a field whose own `visibleWhen` is false for the record + + Clause-②: no + Metadata-protocol: none + + A field's object-level `visibleWhen` (`Field.visibleWhen`: "field is shown only when TRUE") now hides it on every record surface that draws fields, not only on the `record:details` body: the header highlights strip (`record:highlights`, and the strip a `detail-view` draws from `highlightFields`), the `detail-view` node's body and its header summary chips, and the record drawer that list, kanban, calendar, gantt and the other views open. Before, these surfaces drew such a field, label and value, on every record, so they disagreed with the edit form and the details body about the same record. + + Every surface calls the one implementation the details body uses, so the verdict is the form's own (`resolveFieldRuleState`), over the record shown (bound as `record` and as `previous`) and the host predicate scope (`current_user`). A predicate that cannot be evaluated still shows the field and warns once, as on the form (ADR-0137 D3). The verdict is the saved record's: an inline edit reveals a gated field after save. Display only: the record API still returns the field. +- 46ad134: fix(plugin-detail): a laid-out record page whose first details block draws no body still shows the approval band + + Clause-②: no + Metadata-protocol: none + + The laid-out record page draws the record's approval band ("Locked for approval" / "In approval · editable", with its recall lever and tally) once per page. It used to give the band to the first `record:details` node of the details column and tell every later one not to draw it, so on a slotted page whose `details` slot puts first a `record:details` the reader may not see (its `requiredPermissions` withheld) or one that draws its own header (`showHeader: true`), a locked record showed no band at all. The details column now draws the band by the first details body that reaches its place, the rule a page drawn as written already follows: the next part draws it. Every other page reads as before, the band stays above a body table, and whether the band reads locked or editable (a `lockRecord: false` approval node) is unchanged. +- 72d19c4: feat(record-page): the record's header is one row with one button group + + Clause-②: no + Metadata-protocol: none + + A record page used to stack its top bar, the record's header row under it and, while an approval was pending, a band of decision buttons above the body. They are now one 44px row: + + - **Full page.** The object icon and name, `/`, the record's name, its stage tag and an approval tag on the left; the record counter and prev/next, a divider and the record's ONE button group on the right. + - **Drawer.** The record's icon, name, stage tag and approval tag, then the button group, 整页打开 and 关闭. The drawer's bar draws no object name, counter or prev/next once the record's header holds it. + - **One button group, by the approval's state.** Normal: Edit, the record's one primary action and ⋯. Pending on the viewer: 通过 (the only filled button), 驳回, and ⋮ with the other approval levers, a separator and the record's actions. The viewer's own submission pending: 撤回, 催办 and the same ⋮. An administrator who holds only the override keeps the marked override menu ahead of the group. On a phone the bottom bar draws the same group, with 通过 the only filled button. + - **Approval tag.** 「待你审批」, 「审批中」, 「已退回修改」 or 「已驳回」 beside the record's name; it opens the approval's detail, today the approvals panel on the page. + - **Locks.** A record an approval locks draws no Edit and no 「审批中已锁定」 badge in the body; the approval tag says why (its tooltip names the lock). A lock from the record's state keeps Edit drawn and disabled, with its lock tag beside the record's name. + - **Reject asks for a reason.** The record page's reject dialog requires its comment. The declaration and the approvals list are unchanged. + + A record page whose layout has no `page:header` keeps the decision band above its body, since no header draws the group there. The request page's `ApprovalDecisionPanel` band is unchanged. + + `@object-ui/components` adds `RecordHeaderBarContext` (the slots a host's bar offers the record's header) and `RecordHeaderStateContext` (the tags and the button group a host's record state hands it); `RecordTopBar` and `NavigationOverlay` take an `actionSlotRef`, and `NavigationOverlay` a `stepperHidden`. `PageHeaderActions` takes a `defaultMaxVisible`. `@object-ui/react`'s `InlineEditProvider` takes `approvalTagDrawnByHost`, and `DetailView`'s approval band then draws no badge for an approval lock (the tally stays). Nothing an app authors changes. +- b0c624a: feat(record-page): one tab per related list, and an Overview rail that sums up the other tabs + + Clause-②: no + Metadata-protocol: none + + The record page's tab row and its right column are redrawn (supersedes objectstack#28469): + + - **Tabs.** Overview, then one tab per related list in its order, then Attachments, Approvals and Activity last. Every tab is there at first paint and none moves when the counts land. A list with no records keeps its place, greyed, with no number. The width is the row's only fold: the tabs that do not fit go into 「更多 N ▾」, whose items keep their counts. Approvals carries a dot while a request waits, not a count. A tab that merges several tables (only an explicit page can write one) carries no count. + - **Overview.** The stage path and the key fields sit across the whole width on Overview only; every other tab draws its block in full in their place. + - **Right rail.** On Overview, the right column sums up the other tabs, in this order: Approvals, Attachments, Recent activity, then 「其他相关」 with a card for each related list that has records. Each card has a title (which opens its tab), a grey count and at most three rows. A card with nothing to show is not drawn, and there is no 「还有 N 个空关联」 line. Nothing in the rail is editable. A rail with no cards folds away. A drawer draws no rail and no right-column switch. The rail's rows come from the page's one read: it reads nothing more. + - **No band at the foot.** A page drawn as written that places no approvals or attachments panel gets them as tabs of its first tab strip, not as bands under the page. The header's approval tag opens the Approvals tab. + - **One approval band.** A page drawn as written whose details are split into several `record:details` nodes draws the record's approval band once, on the first body that reaches it, recall included. + + - **Reader arrangement leaves with the cards.** The related cards' ⠿ handle, ⌥↑ / ⌥↓ and 「隐藏」 are gone with the cards, so a reader can no longer reorder or hide a related list on the page. An order or hides already stored still apply, and 「恢复默认顺序」 / 「显示」 still undo them. + - **`?tab=related` is retired.** The single 「Related」 tab is gone, so a saved link carrying `?tab=related` opens Overview. + + `@object-ui/plugin-detail` adds `ApprovalBandOnceScope`. `@object-ui/i18n` adds the 「更多 N」 trigger and the rail's labels in every pack. Nothing an app authors changes. +- 1e018d6: feat: edit a record and its line tables together, and lock a record's lines while an approval locks the record + + Clause-②: no + Metadata-protocol: none + + **A locked record's lines are locked too.** While a record is held by an approval that locks it, writes to its master-detail child rows are refused with `RECORD_LOCKED` (409), the same answer a write to the record itself gets: inserting a row under it, updating or deleting one of its rows, and moving a row into it or out of it (both ends of a reparent are checked). A multi-row write that touches any such row is refused as a whole, and a row whose parent cannot be read is refused when the parent object has a locking approval the writer's run does not own. The approval's own exemptions carry over: system writes and the flow run that opened the approval still write. The refusal names the record by its object's label ("This Opportunity is locked while an approval is in progress, …"). Lookup children are not affected. `@objectstack/plugin-approvals` binds the new `bindDetailRowLockHook` beside the record lock it already binds. + + **`@object-ui/plugin-form` exports the record-page body-table editor.** `RecordBodyTableEditor` draws a master-detail body table as editable lines (the `LineItemsField` grid, with the child columns, field permissions and add / remove rules the master-detail form uses) for a host's edit session (`RecordEditSessionContext`). `buildRecordEditBatch` folds a record's field changes and every table's lines into one batch (the `buildMasterDetailEditBatch` diff, table by table), and `attributeRecordEditRefusal` places a refused batch's reasons on the record's field or on the line whose write carried the refused field. + + **`@object-ui/i18n`** adds `detail.bodyTableRow`, `detail.bodyTablesReadOnlyBulk` and `detail.discardInlineEditsMessage` to every built-in pack. + + **`@object-ui/plugin-detail`** exports `RecordBodyTableEditorSlotContext`: while a host provides it, a `record:related_list` whose relationship id (`CHILD_OBJECT.FK_FIELD`) is in the slot's set draws the host's element in its place instead of the read-only list. The record page's edit state draws its body-table editors through it; no new node type is registered. + + In the console, Edit on a record page that draws master-detail body tables now opens the page's edit state: the fields become inputs, the body tables editable lines, and one Save writes all of it in one batch. Per-field inline edit stays on every record page, those included, and saves the record alone through its save bar. One mode runs at a time: the edit state offers no per-field inline edit, and pressing Edit while inline changes are unsaved first asks whether to discard them. +- bae933b: fix(record-page): the related tab offers only 「↗」 and 「+ 添加」, and a pick of several is added all or none + + Clause-②: no + Metadata-protocol: none + + The record page's related tab drew a filter box, condition chips, an options menu, an export and its own New, and repeated the row count under the table. It now carries two entries at its right end. 「↗」 opens the child object's list under this record, on an empty list too. 「+ 添加」 is the one add entry, chosen by the relationship when the page authored no `add`: a `lookup` child opens a picker of that object whose first row is New; a `master_detail` child whose rows name a catalog record (one other required lookup) opens a picker of that catalog; one with no catalog opens the new-record form directly. The count shows once, in the tab title. + + A pick of several records is one request to the transactional batch route: every row is added or none is, and the list says why when none was. Before, each pick was its own write, and a failure part way left the earlier rows added. A data source without the batch route offers no picker. + + A child with a status and a deadline that the status settles is grouped by status on the tab: open groups first in the order the status lists them, completed groups last, each collapsible. + + The reader's header sort and column widths on the tab are remembered per list in the record page's existing per-user preferences. + + The list page 「↗」 opens names the record it came from: its condition tag reads the record's name, a breadcrumb leads back to it, 「Reset」 puts that condition back after the reader changed the filters, and New opens the record form linked to it. + + A body table's total under a currency column whose currency does not resolve is drawn as its cells are, an amount with no symbol, instead of being left out (objectstack#35710). Rows that name their own currency are still totalled per currency. +- a3a74f2: feat(record-page): dense field rows, one-line activity entries grouped by day, and one row per attachment + + Clause-②: no + Metadata-protocol: none + + The record page now fits more on one screen: fields read as one row each with the label on the left, the activity feed shows one line per entry under a day heading with a one-line comment box, and each attachment is one file row with its actions in a ⋮ menu. + + New locale keys in every pack: `detail.streamToday`, `detail.streamYesterday`, `detail.viewApproval`, `detail.replyToComment`, `detail.attachmentsDropHint`, `detail.attachmentsChooseFile`, `detail.attachmentActions`. `RecordActivityTimeline` takes an optional `onViewApprovals`; `RichTextCommentInput` takes an optional `compact`; `CommentBody` takes an optional `controlsClassName`. No metadata key, value or default changes. +- 8500ee7: feat(list): confirm a state-machine move before a list cell saves it; the drawer's save bar says when the record changed elsewhere + + Clause-②: yes (widening) — `GridCellSelection` in `@object-ui/components` takes an optional `confirmCommit(row, columnKey, value)` member; nothing removed or renamed + Metadata-protocol: none + + In a grid that mounts `GridCellSelection` (the select-first grid every `ListView` draws): + + - **A move of a state-machine field asks first.** When an active `state_machine` validation rule of the object governs the field on update, a new value committed into its cell (picked in the editor, or pasted) opens a confirm naming the field and both values and saying saving may trigger related automation. Cancel writes nothing and the cell keeps what it showed; Change saves the value as any commit is saved. Focus goes back to the cell either way. + - **The generic seam:** `GridCellSelection.confirmCommit` is asked before a value that changes what a cell shows is staged or saved. A promise holds the write until it settles (`true` writes, `false` or a rejection writes nothing); `null` or `undefined` means no question, as before. + + On a record page or in a record drawer, `InlineEditSaveBar` now says so when the record is read again at another version while an inline edit session is open (a list cell beside the drawer saved it, say). The draft stays as typed, and Save writes it over the version now read, as it did before; only the note is new. +- a03c3d4: feat(plugin-approvals): a record's activity shows its approval steps, to the users who can read its approvals + + Clause-②: no + Metadata-protocol: none + + A record under approval used to show no approval in its activity: nothing wrote an activity entry for an approval step, so the activity stream's one-line approval entry was reachable only from items a host supplied by hand. + + - **One activity entry per approval step.** plugin-approvals now appends one `sys_activity` entry for each step it records in its decision log, about the record the request governs: submitted, approved (`Approved · Manager review`, the step's label after the dot), rejected (`Rejected · Manager review`), sent back for revision (`Sent back for revision · Manager review`), resubmitted, recalled, and cancelled (the record was deleted). Other actions (a reminder, a reassignment, a thread comment, …) write none, and an object that sets `enable.activities: false` gets none, as the CRUD mirror writes none for it. The entry carries no decision comment. It follows ADR-0052 §5, so no published vocabulary changes: `type` is the built-in `system`, the domain kind is `metadata.kind: 'approval'` (with the step's action, its label and the flow and step names beside it), and `source_object` / `source_id` name the request. A deployment without plugin-audit has no `sys_activity` and gets no entries. + - **Each entry reads in the reader's language.** The stored `summary` is the English line from plugin-approvals' own catalog (`approvalActivity*` messages, shipped in all eleven of its locales). A read that carries a locale is served the line re-composed in that locale, and the step's label is read from the app's language pack (`flows.<flow>.approvals.<node_id>.label`) the way the approvals tab reads it, else the stored label: a zh-CN reader sees `已批准 · 经理审批`. A system read, or a read with no locale, gets the stored English line. A failed append never fails the approval step; it is logged once at `error`. + - **Only the users who can read the record's approvals read those entries.** A read of `sys_activity` keeps an approval entry only when the approvals service would serve the caller its request: a participant (submitter, current or past approver), the override actor, or a reader of the record where the object opts into `enable.approvalsVisibleToReaders`. Every other entry is served as before, and plugin-audit's rule that the record must be readable still applies. The record page's activity count and its rows agree. + - **The stream draws each entry as the approval line, and 「看审批」 opens the approvals.** The console reads an activity row with `type: 'system'`, `metadata.kind: 'approval'` and a `sys_approval_request` source as the `approval` feed kind (`APPROVAL_ACTIVITY_FEED_TYPE`, exported from `@object-ui/plugin-detail`), so `approval` now counts as produced. The record page supplies the new `RecordViewApprovalsContext`, and the approval line's 「看审批」 opens the record's 审批 tab, the same place the approval tag in the header opens; with no approvals the reader is served, the line has no link. The entry keeps `sys_activity`'s own lifecycle (reaped after 14 days); the 审批 tab keeps the full history. +- a8126d2: feat(rest): a refused cross-object batch names the operation that caused it, and a related list's multi-pick add names that record + + Clause-②: yes (widening) + Metadata-protocol: none + + `POST {basePath}/batch` (the cross-object transactional batch) now adds `failedOperation: { index, object }` to its refusal body when one operation is the cause: `index` is that operation's position in the request's `operations`, and `object` is the object it named. It rides beside the existing `error`, `code` and `userMessage`. It is present when an `update` or `delete` op is refused up front for naming no row (`400 VALIDATION_FAILED`), and when an op fails while the transaction runs (for example `404 RECORD_NOT_FOUND`, a `400 VALIDATION_FAILED` validation refusal, `400 BATCH_UNRESOLVED_REF`, `409 RESOURCE_CONFLICT`). It is absent when the request as a whole is refused (schema, `atomic: false`, size, no transaction), on the per-object API exposure and API-key management refusals, which are judged once per object and action, and on a failure after the last op ran. + + The key is additive. The success body does not change, and the batch stays all or nothing: a refused batch writes no row. Through `@objectstack/client` the key reaches `err.details.failedOperation`, because the client hands a flat refusal body with no `details` of its own over as `err.details`. A refusal that carries its own `details` (a package-scoped `409 RESOURCE_CONFLICT` with `details.candidates`) still carries the key on the body, but the client exposes only its `details` there. + + The related list's "Add" picker (`@object-ui/plugin-detail`) uses it: when a multi-pick add is refused for one picked record, the inline error names that record by the label the picker shows, followed by the server's reason. A refusal without an index inside the operations sent shows the server's reason alone, as before. +- 65fddc8: fix: a `percent` or `currency` formula is a KPI chip on the record header; the lint prescription names all six return types + + Clause-②: no + Metadata-protocol: none + + A `formula` field whose `returnType` is `percent` drew percentages in its list cells, and the record header strip drew it without the figure typography a `percent` field's chip has. The strip now reads a formula's declared `returnType` before it picks its face, for the two return types the spec reads as a field type, `percent` and `currency`. Both are KPI chips on the header strip. A formula of any other return type chips as before. + + The grid's footer formatting reads the same two return types, so a browser-computed footer over a `percent` formula reads `Sum: 75%` rather than `Sum: 0.75`, and over a `currency` formula reads as money. That is not a supported authoring shape: a `sum`, `avg`, `min` or `max` column summary over a `formula` field is refused at authoring by `list-view-summary-field-type-refused`, whatever its `returnType`, because a formula is computed on read and stored in no column, and the whole-set footer query answers `400 INVALID_FIELD`. The formatting reaches only an ungrouped, one-page footer the browser computes over a declaration `os validate` refuses. To total a formula's value, make it a stored field of its own, of the formula's `returnType` and carrying the same `expression`, which the engine computes and stores on every write, and summarise that field. + + `os explain dimension-virtual-field-refused` told the author to make a stored copy "of the formula's `returnType` (`number`, `text`, `boolean`, `date` or `currency`)", which named no type for a `percent` formula. It now lists all six, and a test holds the list to the spec's own `returnType` enum. +- d19d875: fix(plugin-detail): the record page Overview draws the record's own field groups first and its master-detail tables under them, at the list's dense row height, never with a half-cut column + + Clause-②: no + Metadata-protocol: none + + - **Order.** On the default record page's Overview, a master-detail (body) table now follows the field sections the page draws open, instead of leading them: stage bar and key fields (the strip across the top), then the record's field groups, then its body tables. An object with no stage bar and no key fields opens on its own fields. A field group whose `relatedList` names a body table still places it at that group's position. Sections drawn closed (a field group with `collapse: 'collapsed'`, or a `collapsible` section that is `defaultCollapsed`) that trail the last open one follow the tables; a closed section between open ones keeps its declared place. With every section closed, the tables follow them all. + - **Density.** A body table's data rows are 33px (a 32px cell over the row line) under a 32px header, the measures of a list's compact rows (`BODY_TABLE_DENSITY`). + - **Width.** A body table draws the leading columns, in their order, that fit whole in the details column, and offers the rest behind its labelled ⤢ "All columns" button; it no longer scrolls sideways with a column cut at the right edge. Only a table whose first column alone is wider than the column still scrolls, with that column pinned. +- 1d7015a: feat(record-page): a related list's tab moves left or right and hides, and 「更多」 restores the default order + + Clause-②: no + Metadata-protocol: none + + **Reader arrangement is back.** The related cards' ⠿ handle, ⌥↑ / ⌥↓ and 「隐藏」 left the page with objectstack#35595, and with them the reader's way to reorder or hide a related list. This note supersedes the "Reader arrangement leaves with the cards" bullet of that release's note: 「左移」, 「右移」 and 「隐藏」 now sit on each related tab's own menu, 「恢复默认顺序」 sits in 「更多」 (in a drawer and an embedded pane too), and an arrangement already stored keeps applying. + + - **A related list's tab is its menu.** Open a list's tab and click it again (or press Enter, Space or ↓ on it): 「左移」 and 「右移」 move it one place among the related lists, and 「隐藏」 takes it off the row into 「更多」's hidden lists and returns to Overview. The open tab draws a ▾ to say so. + - **「更多」 restores the default.** While the order or the hidden set is not the default, 「更多」 ends with 「恢复默认顺序」: the default order with every list shown. It is in a drawer and an embedded pane too, which have no rail. + - **Fixed tabs.** Overview, Attachments, Approvals and Activity have no menu and never move. + - **One stored arrangement.** The tabs write the same per-reader, per-object arrangement the related cards wrote, so an order or hides already stored keep working, and the rail's 「已隐藏 N · 显示」 and 「恢复默认顺序」 still undo them. + + `@object-ui/i18n` adds `detail.recordTabMoveBefore` / `detail.recordTabMoveAfter` (左移 / 右移) in every pack. `@object-ui/plugin-detail` removes the unused `RelatedCardStack` and `useRelatedArrangement` modules (not exported from the package). Nothing an app authors changes. +- 9972432: fix(record-page): the 动态 tab's Changes chip no longer counts the record's creation as one more edit + + Clause-②: no + Metadata-protocol: none + + On a record of a history-tracked object that one person created and then edited on the same day, the Changes (变更) chip folded the creation's own audit entry into the run of edits: the fold said "4 updates" for three edits, and its first "edit" was the creation drawn as field changes from empty values. The All view of the same stream was right (the edits plus one Created row). + + Now the creation's audit entry never joins a fold of field changes, under All and Changes alike: the Changes chip folds the edits alone and shows the creation once, as its own row. No props, locale keys or entry exports change; `isRecordCreationEntry` is added to the `recordTimelineStream` module (not re-exported from the package entry). +- fddb9cb: fix(plugin-detail): the record header summary chip reads a formula by its declared return type + + Clause-②: no + Metadata-protocol: none + + A `summaryFields` chip beside a record's title over a `formula` field printed the raw value, because the chip picked its formatting from the field type `formula`: a percent formula read `0.25` where its list cell and highlight chip read `25%`, a currency formula read a bare `1250`, and a date formula read its ISO text. The chip now draws a formula whose `returnType` is `percent`, `currency` or `date` as a field of that type: a percent at the formula's own `scale` and `max`, an amount in its own `currencyConfig` currency (the tenant currency when it declares none), a date as a localized date. A `number`, `text` or `boolean` formula reads as before. The highlights strip and the chip now ask one helper which field type a formula reads as. +- 647eb92: fix(plugin-detail): a record Overview body table keeps the totals of the summed columns it leaves out for width + + Clause-②: no + Metadata-protocol: none + + On the record page's Overview, a master-detail body table draws only the leading columns that fit whole and leaves the rest behind 「全部列」 / All columns. A summed column left out that way also lost its total, so an amount such as a line total vanished from the Overview only because its column did not fit. The table now draws a line under itself with the total of every summed column it left out, each labelled with the column's name and formatted as that column's own total is (the page record's currency for a line amount that follows its parent). The drawn columns keep their totals in the table's last row, unchanged; when every summed column is left out, that row (which would read 「合计」 over empty cells) is not drawn and the line carries the totals. A table that leaves no summed column out shows no added line. No string is added: the line reuses the existing `form.masterDetail.total` label and the columns' own names. +- 48c732c: feat(console): on a wide full record page the details are pinned in a left column and the other tabs sit beside them; the right summary rail is retired + + Clause-②: yes (widening) + Metadata-protocol: none + + The synthesized record page (objectstack#35890, ruling on the card 7064066204): + + - **Pinned details.** A full page whose content fits a 320 px details column, a 24 px gap and 400 px of tabs pins the record's details in a left column and draws the other tabs (related lists, Attachments, Approvals, 动态) beside them, opening on the first. The column is 400 px wide and narrows toward 320 px on a tight page; its edge is a separator the reader drags, or moves with ←/→ (Home/End for the ends). The dragged width is kept per object in the console's workspace preference store (`record.columns.details-width`, this browser). Each column scrolls on its own. A page with no other tab draws the details across the page with no tab row; a page whose details hold a related table among the fields (objectstack#35889) is not pinned and keeps its one-column tab row. Narrowing out of the pinned layout keeps the tab that was shown, writing it to the address with `replace`. + - **The right rail is retired** at every width, with its ⊟ switch and `⌘⇧,` shortcut and the `record.columns.related` preference (an old stored choice is no longer read). Its cards (approval, attachments, recent activity, other related) are the tabs they summarised. A list the reader hid still opens, from its item in 「更多」 or from an address that names it (`?related=`). + - **「详情」.** The first tab is named Details (详情) in every locale. + - **「审批中 · 当前步骤」.** For everyone but the approver, the header's in-approval tag names the step the request waits at, when it has one. + - **Drawer, split pane and phone** keep their one-column tab row and never pin. What reaches them: the rail is gone there too, and the first tab reads 「详情」 / Details. Authored pages are untouched. + + `RecordPageColumns` gains the optional `fullPage`, `detailsWidth`, `onDetailsWidthChange` and `onShownTabChange` props, and `onEnlargeRelated` an optional `{ replace }`; `rightColumn` and `rail` are kept as deprecated props that do nothing. `@object-ui/plugin-detail` exports `RECORD_PAGE_DETAILS_WIDTH`, `RECORD_PAGE_PIN_MIN_WIDTH` and `recordPagePinsDetails`; `recordPageTierHasRightColumn` stays exported, answering as before, and is now `@deprecated` (no tier draws a right rail). + + `@object-ui/i18n` widens: two new keys in every pack, `detail.approvalPendingStep` (`In approval · {{step}}`) and `detail.detailsColumnResize` (the separator's name), and `detail.recordTabOverview` changes its text from 概览 / Overview to 详情 / Details. Every key the rail read (`detail.relatedColumn`, `detail.relatedHiddenCount` and its plural forms, `detail.relatedShowHidden`, the six `detail.summary*` keys and `shortcuts.toggleRelated`) stay in every pack, unread, so a host that reads them keeps its text; retiring them is a separate change. +- 8807dcb: feat(ui): a record page's related tab is the child object's full list + + Clause-②: yes (widening) — a new export `ListConditionsBlock` (`@object-ui/plugin-list`, the condition row as a host element, not a registered node type) and its `ListConditionsHostProps`; a new slot `RelatedListConditionsSlotContext` and its `RelatedListConditionsProps` (`@object-ui/plugin-detail`), which the record page fills (`@object-ui/app-shell`); new exports `ConditionDiscardButton` and its type `ConditionDiscardButtonProps` (`@object-ui/plugin-list`) and `withHeaderSortPick` (`@object-ui/core`); new i18n keys in every `@object-ui/i18n` locale pack (`listConditions.chips.discard`, `listConditions.chips.discardHint`, `detail.relatedNoMatches`, `detail.deleteRowsTitle`, and the count family `detail.deleteRowsConfirmation` with its plural slots `_zero`, `_one`, `_two`, `_few`, `_many`, `_other` as each pack needs them); nothing removed or renamed + Metadata-protocol: none + + On a record page, a related list opened as its own tab now works like the object's list page: + + - The first row names the child list (its tile and title) on the left and keeps **+ Add** on the right. The **Open in list** button is gone. + - The second row is the list page's own condition row: **Sort** (several levels) and **Filter**, with no view switch, view settings or search. On a narrow tab or in the drawer their labels fold to icons. + - The table is the list page's grid: the column menu, cell editing as on the list page wherever the reader may edit the child object, row selection with the floating bulk bar (bulk delete asks once, deletes the selection in one batch call where the data source has one, and says how many rows went and how many did not), and the footer row, whose calculations cover every matching row, not just the loaded ones. A tab grouped by status draws no footer row. + - Rows load as the page scrolls instead of in pages. + - The tab title still counts every child; the footer counts the rows the filter keeps. + - What the reader changes (sort, filter, footer calculations) lasts while they stay on the record, for that reader only, across its tabs and between its page and its drawer, and is gone after a reload or on another record. **Discard** appears once something changed and puts the tab back; there is no Save. The list page's Discard and this one are one button. + + Upgrade note: the header sort and the column widths and order that an earlier version remembered for a related tab in a reader's record-page preference (`sys_user_preference`) no longer apply: the tab opens in its declared order, and its column widths and order are now kept in the reader's browser, as the list page's are, so they start from the default once. Nothing stored is deleted. The default sort and columns of every related list are unchanged. + + `@object-ui/core` adds `withHeaderSortPick`, the list page's rule for how a header sort joins an existing multi-level sort, now shared with the related tab. `@object-ui/app-shell`'s list Discard is drawn by `ConditionDiscardButton`; it looks and behaves as before. +- c261a7c: feat(console): a stage confirm names the flows the move would start, in the list cell and on the record page + + Clause-②: yes (widening) — `@object-ui/plugin-detail` adds the exports `useRecordUpdateStarts`, `StageChangeStarts`, `RECORD_UPDATE_STARTS_PATH` and the type `RecordUpdateStartsAsk`; `@object-ui/fields`' `RequiredFieldsDialog` takes an optional `notice`; `@object-ui/i18n` adds the export `activeFlowsBundle` (with the types `FlowsTranslation` and `TranslationResourceReader`, moved from `@object-ui/app-shell`'s internal `utils/flowsBundle`) and two keys to every pack: `detail.stageChangeStartsHeading`, `detail.stageChangeStartsApproval`. `@object-ui/plugin-grid`'s `StateChangeConfirm` gains an optional `ask`. Nothing existing is removed or re-typed. + Metadata-protocol: none + Skills-docs: none — no skill under `skills/**` teaches the console's stage confirms; `content/docs/frontend/plugins/plugin-grid.mdx` names the list in this change. + + When a stage move would start a flow, its confirm now says so (objectstack#35928, ruling record 7073655354): + + - The list cell's state-machine confirm and the record page's stage confirm (the path's press and the header's stage menu) keep their sentence and add, under it, 「保存后将启动以下流程:」 ("Saving this change starts these flows:") and each flow by its label in the reader's language. A flow that starts an approval is marked 「发起审批」 ("starts an approval"). + - Both confirms ask one read, `POST /api/v1/automation/_record-starts`, through one shared hook, so the two surfaces cannot disagree. The server decides which flows start; nothing is judged in the browser. + - A move that starts nothing shows no list, and a read that fails or is refused leaves the confirm exactly as it was. + - A flow label is translated as the flow runner translates it: the app's `flows` translations, read through `activeFlowsBundle`, which now lives in `@object-ui/i18n` so the confirms' packages can read it; the console's flow runner and designer import it from there. +- cf45e4f: fix(plugin-detail): the record page names the owner once when a details section already shows the owner field + + Clause-②: no + Metadata-protocol: none + + On the default record page, the meta line at the foot of the details column (created · updated · owner · id) always named the record's owner, and a details section usually showed the `owner_id` field as well: in a declared field group, in the "Other" group that collects fields no declared group takes, or in the derived section of an object that declares no groups. So the owner was shown twice. The meta line already left the owner out when the highlight strip showed it, and the default page no longer draws a strip, so that rule never applied. + + The meta line now also leaves the owner out when a details section of the page's own record draws the `owner_id` row. The owner then shows once, as the section's field, where it can also be changed. The sections report the rows they actually draw, so the owner stays on the meta line whenever no section draws it: the field is hidden, the reader may not read it, a `visibleWhen` hides it or its group, or its section is collapsed. When a collapsed section holding it is opened, the owner moves from the meta line to that section. The field groups are drawn as declared. The highlight strip rule is unchanged. + + This changes the laid-out default record page, the one `RecordPageColumns` draws. A default page whose tab strip cannot be laid out keeps the strip-only rule. No metadata key, value or default changes, and no prop, export or locale key is added. +- f548bdc: fix: descriptions and help text no longer say the default record page draws a key-field strip or a stage path + + Clause-②: no + Metadata-protocol: none + + The default record page draws no key-field strip and no stage path: the stage is the status tag beside the record name. These texts said otherwise and now say what each key drives: + + - `@objectstack/spec`: the `highlightFields` describe ("Drives default list and related-list columns, cards, hover cards, previews and the record picker; the default record page draws no strip from it") and its Studio help text. The `stageField` and `RECORD_HIGHLIGHTS_MAX` doc comments say the header's status tag reads the stage and the count cuts only a strip a page places in its `highlights` slot. The upgrade-guide entry `field-group-shadowed-six-highlights` no longer tells authors to move highlights: the warning now judges the record title alone, and no action is owed. + - `@objectstack/platform-objects`: the `highlightFields` help text in every metadata-form locale. + - `@objectstack/lint`: the `os explain` text of `object-field-ref-unknown` and `semantic-role-field-unprovisioned` names the hover card and the record picker in place of the strip. + - `@object-ui/plugin-detail`: the `record:details` `hideFields` description no longer says the default page fills it. The key is still accepted. + - `@object-ui/i18n`: Studio's lifecycle-field help (`stageField`, and its "None" choice) talks about the status tag, not a progress bar. + - `@object-ui/types`: the page `highlights` slot doc says it places a strip the synthesized default does not draw. + - `@object-ui/app-shell`: on a phone the default record page no longer hands the synthesizer a highlight list it never read. The page looks the same, and the subtitle under the record name is unchanged. +- 9a98a46: feat(list,detail): a change that makes other fields required asks for them in place — the kanban drop's fill-in, now shared by the list cell and the record page + + Clause-②: yes (widening) — `@object-ui/fields` exports `collectRequiredWhenPromptFields`, `RequiredFieldsDialog` and their types (moved from `@object-ui/plugin-kanban`, which never exported them) and the new `requiredWhenPromptReads`; nothing removed or renamed + Metadata-protocol: none + + When a value about to be written makes another field's `requiredWhen` true while that field is still empty, the write is held and one dialog asks for the missing values: + + - **Where:** a list cell in the select-first grid every `ListView` draws, the record page's inline Save, and the kanban drop (as before). + - **What it shows:** the record's name, the change that set it off (read-only), and one row per field to fill, with the editors the record form uses. A value typed there that makes one more field required adds that field; Save waits for it. + - **Save** writes the change and the typed values as ONE update. **Cancel** writes nothing: the list cell keeps its value; on the record page the edit session and its draft stay. + - **A refusal of that update stays in the dialog:** under the field it names, as a new row for another field the reader can fill, or at the dialog's foot. + - **Not asked for**, and written and refused as before: a field that already has a value, is hidden or read-only, that the reader may not write, or that has no in-place editor (a file, rich text, a formula). The record drawer's per-field save does not ask either. + + The pre-evaluation is the one the kanban drop already used (`resolveFieldRuleState`, the evaluator the form and the server share, judged as the engine's transition gate), generalised from one key to any set of changed keys. +- 96b66ca: feat(detail): the record header's stage menu asks for the fields a stage needs through the shared fill-in dialog + + Clause-②: no + Metadata-protocol: none + + The stage menu beside the record's name now opens the same dialog the list cell, the record page's inline Save and the kanban drop open (`RequiredFieldsDialog`, with `collectRequiredWhenPromptFields` judging which fields to ask for), and its own copy of the pre-check and field form is gone: + + - **What it shows:** the record's name and the move (「阶段:赢单」, read-only), then the fields the stage makes required while they are still empty. A stage that needs nothing opens the same dialog as the move's confirmation, with Move focused so Enter confirms. + - **Move** writes the stage and the typed values as ONE update; **Cancel** writes nothing. A value typed there that makes one more field required adds that field, and Move waits for it. + - **A refusal stays in the dialog** and the stage does not move: under the field it names, as a new row for another field the reader can fill, or at the foot (someone else changed the record, which is then re-read; a permission or other refusal as the stage line it was before). + - **Now not asked for, and refused as before:** a field with no in-place editor (rich text, a file, a formula). The menu's old form did not ask whether a field has one; the shared pre-check never offers such a field. + + `record:path`'s stage press keeps its plain confirmation. +- 33d0169: feat(ui): the object's colour tile replaces its line icon wherever else the object is named + + Clause-②: yes (widening) — `ConsolePageHeaderProps` gains the optional `iconTile`, and `RecordSearchHit` and `RecordHoverCardObjectDef` the optional `color`; nothing removed or renamed + Metadata-protocol: none + + The tile the navigation already draws for an object (a white glyph on the object's palette colour, gray when it has none) now also names the object in: + + - **List and data pages:** the page bar and the view bar's object name in front of the view switcher; the URL data page's header. + - **The record page and the record drawer:** the record row in front of the record's name. + - **The record page's related lists:** each section's title, with the list's own icon else the related object's, on that object's colour. + - **Search:** the command palette's recent records, record hits and object entries; the search results page (group headings and hit cards); the global search block. + - **Home:** a record row in "Recently accessed". + - **References:** a pointer cell in a grid (`referenceVia`) and the record hover card. + - **Studio:** the data pillar's object list and header, and the interfaces pillar's object entries and header. + + `ConsolePageHeader` takes `iconTile`, an icon that draws its own square, drawn as given in every posture in place of `icon`. `RecordSearchHit.color` carries the object's palette name beside `icon`, and `RecordHoverCardObjectDef` names `color` beside `icon`. `ObjectIconTile`'s glyph keeps its size inside a host row that sizes every nested `svg`. +- 0d0ed81: fix(plugin-detail): the record drawer's per-field save asks for the fields a change makes required + + Clause-②: no + Metadata-protocol: none + + In the record overlay (`RecordDetailPanel`, and `RecordDetailDrawer` around it), a change that made another field required (`requiredWhen`) while that field was empty went straight to the host's `onFieldSave` and came back refused by the server. The overlay now asks first, in the same fill-in dialog the record page, the list cell and the kanban open: Save writes the change and the typed values in one update guarded with `If-Match` at the version the edit began on, Cancel writes nothing and keeps the edit. A change that makes nothing required still saves at once through `onFieldSave`. + + The ask needs one write to put the values in, so `InlineEditSaveBar` asks in its callback mode only when it is also given `dataSource`, `objectName`, `recordId` and `data`; `RecordDetailPanel` now passes them, with a record context naming the object's fields. That one write goes through the data source, not through `onFieldSave`; a host that patches its own list in `onFieldSave` sees it through the data source's mutation event. Without a data source the overlay saves field by field as before. +- 3f7fdd0: fix(plugin-detail): after a 409, the stage menu's dialog asks for what the re-read record needs + + Clause-②: no + Metadata-protocol: none + + The record header's stage menu opens a dialog that asks for the fields a stage makes required. When the move came back 409 (someone else changed the record), the dialog re-read the record but kept the list of fields it chose when the stage was picked. If the other writer had just filled one of those fields, the reader's next Move wrote the reader's value over it. + + The dialog now judges the fields against the record as it stands, so the list follows the re-read row when it lands. A field another writer filled in the meantime leaves the dialog and is not sent with the move, and a value the reader typed for it no longer asks for the fields it would have made required in turn. When nothing is left to fill in, the dialog shows the record, the stage and the Move button. A 409 that filled nothing keeps the list and the typed values as before. +- 6c7c6db: feat(ui): the console's pages set text in two sizes, 14 and 12, and two weights, 400 and 500 + + Clause-②: no + Metadata-protocol: none + + - **Two sizes.** Body text, list cells, field values, inputs, menu items, toolbar controls and buttons are 14px (`text-sm`); field labels, column headers, counts, timestamps, hints and chip text are 12px (`text-xs`). The hard-coded 13px is gone from the console's runtime pages, and the 10px, 11px and other odd sizes there are 12px. The in-cell editor is 14px, like the cell it edits. + - **Two weights.** Record names, tabs, buttons, section titles and column headers are 500 (`font-medium`); body text is 400. Weight 600 and 700 stay only on page and dialog titles 18px and larger. `DropdownMenuLabel` is weight 500 through a declared local patch on the Shadcn primitive (`dropdown-menu-label-medium-weight` in `ui/scripts/shadcn-local-patches.mjs`), so it survives a registry sync. + - **Not changed:** Studio and metadata administration internals, the settings pages, developer tools, phone-only layouts, avatar initials, authored markdown and SDUI heading typography, the docs reader's prose size, and the shape of coloured option badges (still pills). + - A list column with no declared width measures its content, so it grows with the 14px text; a column whose width a view or a user set keeps that width and shows about 8% fewer characters before it truncates. +- 3543b51: fix(comments): Reply puts the caret in the reply box, comments show the author's avatar or initials, the mention menu opens at the caret, and a delete says it went through + + Clause-②: yes (widening) + Metadata-protocol: none + + Four small fixes to comments on the record page: + + - **Reply.** Pressing Reply on a comment opened the reply box but left focus on the button, so typing went nowhere (or into the main comment box). The caret now goes into the reply box. On a comment whose replies were collapsed, Reply also expands them first. + - **Author avatar.** A comment by someone without an avatar showed a generic comment icon. Every comment and reply now leads with a 20 px avatar: the author's image, or their initials on the same round disc the people chips draw. + - **Mention menu.** Typing `@` opened the people menu at the top left of the comment box. It now opens under the caret, or above it when the window has no room below. + - **Delete.** Deleting a comment now shows a "Comment deleted" toast (zh: 评论已删除). A refused delete still shows its error, as before. + + Additions, nothing removed or changed in meaning: `@object-ui/plugin-detail` exports `CommentAuthorAvatar` (and its props type), and `ThreadedReplies` takes a new optional `focusReplyOnOpen` prop (default `false`, so a host that always shows the reply box keeps today's focus behaviour). `@object-ui/fields` exports `getPersonInitials`. New locale key `detail.commentDeleted` in all eleven locale packs. +- 4ab2c82: feat(record-page): the desktop comment panel resolves and reopens threads, filters them, counts the unresolved ones, and offers Edit and Delete on other people's comments only where the server admits them + + Clause-②: yes (widening) — `@object-ui/react`'s `DiscussionContextValue` adds three optional members: `onResolveComment(itemId, resolved)`, `moderatesComments` and `updatesOthersComments`. `@object-ui/types`' `FeedItem` adds five optional members: `resolved`, `resolvedById`, `resolvedByName`, `resolvedAt`, `mentionsViewer`. `@object-ui/plugin-detail` adds exports `useRecordVerdict` (the three-state verdict `useRecordEditable` fails open on; a definite allow is the explain answer's `allowed` together with its `record.visible`, as the server admits a by-id write, so `useRecordEditable` reads as before except that an answer whose `allowed` is false beside a visible record, such as an on-behalf-of session whose delegator is gone, now reads not editable), `threadResolvable`, `threadResolved`, `threadInvolvesViewer`, `filterCommentThreads`, `unresolvedThreadCount`, `DEFAULT_COMMENT_THREAD_FILTER` and the type `CommentThreadFilter`; `RecordCommentsData` adds `resolvable`, `onResolveComment`, `moderates` and `updatesOthers`, and its `count` is now the unresolved threads; `CommentItemActions` adds `onResolve` and `resolved`; `CommentHoverActionsProps` adds `resolved`; `RecordCommentThreadProps['comments']` may carry `onResolveComment`, `moderates` and `updatesOthers`. `@object-ui/i18n` adds ten keys to every pack: `detail.reopenThread`, `detail.threadResolved`, `detail.threadResolvedBy`, `detail.filterComments`, `detail.showResolvedComments`, `detail.commentsInvolvingMe`, `detail.noUnresolvedComments`, `detail.noCommentsInvolvingMe`, `detail.showAllComments`, `detail.commentResolveFailed`. Nothing existing is removed or re-typed. + Metadata-protocol: none + Skills-docs: none — no skill under `skills/**` teaches the console's comment panel; `content/docs/frontend/plugins/plugin-detail.mdx` and the plugin-detail README gain resolved threads, the filter and the moderator's Edit and Delete in this change. + + The desktop record page's comment panel (objectstack#36075) gains the resolved threads #36071 stores: + + - ✓ in a thread's first comment's action row marks the thread resolved: it leaves the list and the comments icon's number, now the unresolved threads, drops by one. ✓ is offered under the `sys_comment` update grant: on a thread the viewer started, and on anyone's only where the explain engine admits the viewer's update of a comment they did not write. Today the platform's row floor admits that for administrators, not for rank-and-file members, so a member resolves only the threads they started until the server carries ruling 7063285032 (any reader of the record may resolve) past that floor. + - The filter menu at the panel's top right holds 「显示已解决」, which shows resolved threads marked 「已由 X 解决」 (their ✓ reopens them), and 「只看我参与的」, the threads the viewer started, replied in or is mentioned in. The filter is not stored. With every thread resolved, the panel says so and offers to show them all. + - A reply into a resolved thread shows the thread reopened, as the platform stores it. + - The resolver is named from the people the page already knows (the viewer and the discussion's authors); any other resolver is named by one `sys_user` read of exactly those ids, after the discussion is drawn. Where that read is refused, the mark reads 「已解决」. + - Edit and Delete under More are offered on other members' comments to a viewer the explain engine admits to update the record by id, the server's rule for moderating someone else's comment; Edit also needs the explain engine to admit their update of a comment they did not write (the row floor above). Both are asked only on a definite allow: pending, a refusal, an error or a deployment without the explain service offers them on the viewer's own comments alone. Their own comments keep them as before. + + Unchanged: no server permission changes (a deployment without the explain service shows ✓ and Edit on the viewer's own rows only, administrators included); a deployment whose comment rows carry no `is_resolved` shows no ✓ and no filter, and the icon counts every thread; hand-written record pages and the phone keep their feed as before. +- 04f9861: feat(record-page): a record's comments move out of the 动态 tab into a comment panel of their own on the desktop + + Clause-②: yes (widening) — `@object-ui/plugin-detail` adds exports (`CommentsPanel`, `CommentsButton`, `CommentThread`, `CommentItem`, `CommentComposer`, `CommentHoverActions`, `useRecordComments`, `buildCommentThreads`, `latestRepliers`, `RecordCommentsInPanelContext`) and their types (`CommentsPanelProps`, `CommentsButtonProps`, `RecordCommentThreadProps`, `CommentItemProps`, `CommentItemActions`, `CommentComposerProps`, `CommentHoverActionsProps`, `CommentThreadData`, `RecordCommentsData`), and an optional `reservedWidth` on `useRecordPageTier`. `RichTextCommentInput` (exported) now takes the `Esc` that closes its @ list (`preventDefault` and `stopPropagation`), so nothing round it acts on that key. `RecordActivityTimeline` draws no chip group when it is handed no chips. `@object-ui/components` adds an optional `comments` slot to `RecordTopBar` and `NavigationOverlay`, and the drawer leaves an `Esc` pressed inside a `[data-owns-escape]` region to that region. `@object-ui/i18n` adds five keys to every pack: `detail.closeComments`, `detail.collapseReplies`, `detail.commentActions`, `detail.commentsEmptyHint`, `detail.resolveThread`. Nothing existing is removed or re-typed. + Metadata-protocol: none + Skills-docs: none — no skill under `skills/**` teaches where the console draws a record's comments; `content/docs/frontend/plugins/plugin-detail.mdx` and the plugin-detail README gain the panel in this change. + + On the desktop record page and in the record drawer, the record header gains a comments icon with the number of top-level comments. A press opens the record's comment panel, the next one closes it, and the browser remembers whether it was left open (once for the page, once for the drawer). + + - The panel is 380 px wide: 「评论」 and ✕ at the top, the threads oldest first, the comment box docked at the foot. A thread's replies fold to 「N 条回复」 with the latest repliers' faces and open in place, with a reply box under them; Reply on any comment of a thread opens it with the caret in that box. + - A comment's actions sit in one row at its top right while the pointer is over it, or focus is in it: Reply, an emoji, and More with Edit and Delete on the viewer's own comments. Every write is offered under the same grants as before. + - From a 1280 px window the panel sits beside the record and the record gives way; in a narrower window it is drawn over the record's right edge. In a drawer narrower than 760 px (the default 720 px drawer) it covers the drawer's body; a wider drawer splits. + - Esc in the panel closes it and returns the focus to the comments icon, in a drawer too: the drawer neither closes nor steps back on it. Esc in the panel's @ list closes the list only and keeps the draft. + - While the panel holds the comments, the 动态 tab and panel hold the system entries only: activity and field changes, with no comment box and no All / Activity / Discussion chips; the Changes chip stays where the record shows its field history, and pressed again it goes back to every entry. Their count leaves the comments out. + + Unchanged: a record page authored in full keeps the feed blocks it places (`record:discussion`, `record:activity`) as they were and shows no icon; an object with `enable.feeds: false` shows no icon; the phone keeps the comments in its 动态 tab. +- c30ce97: feat(record-page): on a phone, the record's comments open as a page of their own: the threads first, a thread's replies inside it, the comment box docked at the foot, and a long press for a comment's actions + + Clause-②: yes (widening) — `@object-ui/plugin-detail` adds the export `CommentsPage` and its type `CommentsPageProps`; `CommentThread` takes a third `mode`, `'page'`, and optional `itemInteraction`, `heldId` and `onHeldActions`; `CommentItem` an optional `interactionProps`; `CommentComposer` and `RichTextCommentInput` (exported) an optional `layout` (`'default' | 'phone'`). `@object-ui/app-shell` reserves the console URL parameter `comments` (`RECORD_COMMENTS_PARAM`, in `RESERVED_URL_PARAMS`). `@object-ui/i18n` adds four keys to every pack: `detail.addReactionEmoji`, `detail.commentThread`, `detail.formatBold`, `detail.formatItalic` (the toolbar's names without their shortcut). Nothing existing is removed or re-typed; the desktop's panel, toolbar and labels are unchanged. + Metadata-protocol: none + Skills-docs: none — no skill under `skills/**` teaches where the console draws a record's comments; `content/docs/frontend/plugins/plugin-detail.mdx` and the plugin-detail README gain the phone's page in this change. + + On a phone the record page's top bar gains the comments icon, with the number of unresolved threads. A press opens the record's comments as a page over the record, which stays where it was under it; 「‹」 and the browser's Back return to it. + + - The page lists each thread's first comment with 「N 条回复」 under it; a tap opens the thread, the comment first and its replies after it. 「‹ 评论」 returns to the list. + - The comment box is docked at the foot of the screen and stands on the keyboard while it is up. One line until tapped; then a row under the text holds mention, bold, italic, list and code, and send at the right end. In the list it writes a comment, in a thread a reply. No 「Ctrl+Enter」 hint. + - A long press on a comment (or its context menu) raises a sheet from the bottom: six reactions, 「标记已解决」 on a thread's first comment, 「编辑」 and 「删除」 (red, confirmed first), each offered exactly where the desktop's hover row offers it. + - The filter at the top right is the desktop's: 「显示已解决」 and 「只看我参与的」. + - The 动态 tab holds the system entries alone, as on the desktop. On a phone the comments live on this page: this replaces the lines of the two objectstack#36075 entries (the record comment panel, and resolved threads) that said the phone keeps the comments in its 动态 tab, or keeps its feed as before. + - The page is in the URL (`?comments=` for the list, `?comments=<id>` for a thread), so a link or a reload opens it where it was. + + Unchanged: the desktop; who may write, resolve, edit or delete a comment (the phone offers each exactly where the desktop does); a record page authored in full and an object with `enable.feeds: false` show no icon. +- 28749e3: fix(plugin-detail): the record header's summary chip honours `percentDisplay: 'plain'` + + Clause-②: no + Metadata-protocol: none + + The `summaryFields` chip beside the record title drew its progress bar for every `percent` field and every `formula` whose `returnType` is `percent`, even when the field declares `percentDisplay: 'plain'` — the face `@objectstack/spec` describes as "the percentage as text alone, with no bar", which the list cell already honoured. The chip now reads `percentDisplay` off the same merged field it reads `scale` and `max` from (the view's entry over the object schema): `plain` shows the percentage text alone, while an absent `percentDisplay` or `bar` keeps the bar. The text, its accessible name and the stored value are unchanged. +- a6756a2: feat(console): the record page's field area is one list — one field a row in the side preview, on a phone and in the wide page's pinned left column + + Clause-②: yes (widening) + Metadata-protocol: none + + The synthesized record page's field area (objectstack#36147, ruling on the card 7066516044): + + - **One column at any width.** The drawer (at any width), the split pane, the phone's 「详情」 tab, the wide page's pinned left column and a desktop full page that has other tabs but is not pinned (an opportunity's 详情 tab goes from three columns to one) draw the fields one a row: label left, value right, a hairline between rows. The phone's own grouped-inset face is gone there; it is the same list. A full page whose details are its only face (no other tab, none hidden) keeps laying a group out by width. + - **Group title row.** The title sits left and its chevron at the row's right end, pointing down while the group is folded and up while it is open; the whole row toggles. + - **Referenced records are chips.** A lookup value is drawn as a pill with the referenced object's colour tile (`ObjectSchema.color` / `icon`, objectstack#35985) and the record's whole name, wrapping rather than cut. A click on the chip opens the record; the rest of an editable lookup's row edits it. Everywhere else a reference keeps its link face. + - **Empty fields fold into one row.** Every empty field of every group is folded into the list's one last row (「显示 N 个空字段」), replacing the per-group toggle and the 「N 个空分组」 line on this page. The reader's choice is the per-object record-page preference `showEmptyFields` (objectstack#25883), so it holds for the next record of the object. An authored `hideEmpty` group stays hidden and is not counted. + - **「系统信息」 is the last group,** folded until opened: created by, created on, updated by, updated on (when the record was updated), the owner (when the body does not draw it) and the record ID, one fact a row. On this page it **replaces the one-line meta footer that objectui#12307 introduced**; outside the laid-out record page that line is unchanged. + - **A click edits; no pencil.** A single click on an editable value enters edit (a click on a link, a button or a text selection inside it is not taken); the hover pencil is no longer drawn, and stays in the DOM only as the keyboard's way in (visible on focus). A double click is no longer needed. **A read-only value takes no click any more**: the click-to-copy on read-only rows is removed on this page. For a mouse or a keyboard its copy icon, shown on hover or keyboard focus, stays; a touch screen shows none, and the value is selected by a long press. + - Authored record pages and every other DetailView keep their faces. + + `@object-ui/fields` widens: it exports `ReferenceChipContext` (a boolean React context, default `false`) that switches `LookupCellRenderer`'s reference link to the chip face. + + `@object-ui/i18n` widens: five new keys in every pack, `detail.systemInfo` (系统信息 / System information), `detail.createdTime`, `detail.updatedTime`, `detail.recordNumber` and `detail.clickToEdit`. +- b3bcfef: fix(i18n): the record timeline's events chip reads 事件 / Events, and the Chinese stream says 动态, never 活动 + + Clause-②: no + Metadata-protocol: none + + The record page's 动态 tab drew its chips as 「全部 · 活动 · 讨论 · 变更」, so an app with an object named 活动 (a CRM's meetings and calls) showed 活动 twice on one screen with two meanings, and the English tab Activity held a chip also named Activity. The chips now read 「全部 · 事件 · 讨论 · 变更」 (zh-Hant the same), Events in English, and each other pack's own word for events (Ereignisse, Eventos, Événements, イベント, 이벤트, Eventos, События, الأحداث). What each chip holds is unchanged: 变更 / Changes keeps the audit-sourced field changes, and created, updated, assigned and shared rows stay under the events chip. + + In zh-Hans and zh-Hant the rest of the stream takes the tab's word: the empty state reads 「暂无动态」 (「暫無動態」), the stream title `detail.activity` reads 「动态」 like `detail.timeline`, and the access-denied, load-failed and filter labels say 动态. The English chip's in-code fallback follows the pack, and the tab strip's Chinese token map reads an `Activity` tab as 动态 / 動態, matching `detail.activity`. Values only: no key is added, renamed or removed. +- aad35e6: feat(record-page): the side preview opens 460 wide, puts the record's name first with one labelled action, and lists a child tab one row per record + + Clause-②: yes (widening) — new optional members only: `RecordHeaderBar.preview` and `PageHeaderActionsProps.preview` on `@object-ui/components`, `ObjectGridComponentProps.cardFace` on `@object-ui/plugin-grid`; nothing removed or renamed + Metadata-protocol: none + + The record preview that opens beside a list (and a record page's drawer level) is now a narrow pane: + + - **Width.** It opens 460 px wide (at most 92% of the window). Its left edge drags it from 380 to 900 px. The dragged width is remembered in the browser under one key for every object's preview, not per object. A drawer whose `navigation` authors its width (`navigation.size` other than `auto`, or a `navigation.width`, pixel or percent) does not use that key. The list's preview reads the view's `navigation`, then the object's; a record page's drawer reads only its root record's object's `navigation`. Such a drawer keeps the object's per-object key (`recordOverlayWidthStorageKey`, unchanged), which it shares with that object's calendar, gantt, kanban, tree and grid overlays and a resizable `RecordDetailDrawer`, and opens at the authored width until a width is dragged in that drawer or one of those overlays. For an object that authors no size or width, the console's preview no longer shares a width with that object's calendar, gantt, kanban, tree or grid overlay or its `RecordDetailDrawer`. The width and its key belong to the drawer's root and stay with it: child levels keep the root's width, and in the list a record a lookup chip opens as the root takes the list's width and key (the list object's, not the opened record's). On a record page, a drawer closed and next opened on another object's record opens at that object's width, not the width dragged for the previous one. + - **Header.** The record's name comes first. The row shows at most one labelled action, the page's primary. The host's Edit and every other action go into the `⋯` in their usual order. The primary folds into the `⋯` too while the name would be cut below 16 characters' width. The copy-id icon after the name is gone, and 「Copy record ID」 is in the `⋯` instead. The full name is the name's tooltip. An approval's approve / reject levers and the record page's edit state (Cancel, Save) are drawn as before. A page's own header is unchanged. + - **`@object-ui/components`: every resizable drawer's range.** The range lives in `NavigationOverlay`, so it applies to every drawer opened with a `storageKey`: the calendar, gantt, kanban, tree and grid overlays, a resizable `RecordDetailDrawer`, and the console's preview. The drag range was 360 px to 60% of the window; it is now 380 to 900 px. On a 1920 px window the widest drag drops from 1152 to 900 px. On a 1024 px window a dragged or remembered width can now reach 900 px, where 60% of the window (614 px) capped it before; the drawer still never draws wider than the window less 1rem. A remembered width under 380 px is no longer used: the drawer opens at its host's width. A drawer whose `storageKey` changes while it stays mounted now drops the previous key's width when the new key remembers none, and opens at its host's width. + - **Child tabs.** A child list's tab draws one row per record (its title, one summary line and its status chip), the phone's card rows, instead of a table cut off at the pane's edge. `ObjectGrid` takes a new host prop, `cardFace`, that draws those rows at any window width. +- d12ac84: feat(comments): a member resolves and reopens any thread they can read, and deletes their own comments + + Clause-②: yes (widening) — `@objectstack/plugin-audit`'s `AuditPlugin` mounts two new HTTP routes, `PUT /api/v1/comments/:id/resolution` and `DELETE /api/v1/comments/:id`, and the stamp of who resolved a thread now reads a system write's `provenance.attributedUserId`. `@objectstack/core`'s `OwnRowDeleteDoor` adds an optional member, `refuseRemoval(row, engine, context)`, asked after the owner check. `@object-ui/react`'s `DiscussionContextValue` adds the optional `ownCommentDeletesOnly`; `@object-ui/plugin-detail`'s `RecordCommentsData` adds the optional `ownDeletesOnly`, and `RecordCommentThreadProps['comments']` may carry it; `@object-ui/core`'s affordance-to-grant map adds the row `feedCommentDeleteOwn`. Nothing existing is removed or re-typed. + Metadata-protocol: none + + Two server doors carry the maintainer's comment permission rulings past the platform's row floor (`owner_only_writes`, which lets a rank-and-file member update only the rows they created) and past the delete grant no every-member set may hold (ADR-0090 D5). Neither changes the floor, `sys_comment_moderation` or any permission set, and the data API answers exactly what it answered before. + + - **Resolve and reopen: `PUT /api/v1/comments/:id/resolution`** with the body `{ "resolved": true }` or `{ "resolved": false }` and nothing else. Whoever can read the thread and may post a comment on it may, external members included (ruling record 7063285032, option A: anyone who can see the record, the same gate as posting a comment): the door reads the comment as the caller (a comment they cannot read answers `404 RECORD_NOT_FOUND`, as an unknown id does), refuses a caller who reads comments but may not post one (`403 PERMISSION_DENIED`), refuses a reply (`400 VALIDATION_ERROR`) and then writes `is_resolved` alone, attributed to the caller. `resolved_by` names the caller. It answers `200` with `{ id, is_resolved, resolved_by, resolved_at }`. Any other query parameter or body is `400 VALIDATION_ERROR`; a signed-out request is `401`. + - **Delete your own comment: `DELETE /api/v1/comments/:id`.** It removes a comment the caller wrote (`author_id`), with no delete grant needed, on the platform's shared own-row delete door. Another member's comment is `403 PERMISSION_DENIED` and stays, even for a record editor: moderating someone else's comment stays the data API's, behind the delete grant. A comment that has replies stays too, whoever wrote them, `409 DELETE_RESTRICTED`, because removing it would turn each reply into a thread of its own (ruling record 7069889899: no one deletes or rewrites someone else's comment); its author may still edit its text. It answers `200` with `{ id, deleted: true }`. + - **Unchanged:** comment text stays its author's alone; a member's data-API update of a colleague's comment, `is_resolved` included, and a member's data-API delete are still `403`; administrators keep the data API for resolving, editing and deleting anyone's comment. + + The desktop comment panel follows the doors: + + - ✓ is on every thread, the viewer's and anyone else's, for a viewer holding the `sys_comment` create grant, and writes through the resolution door. It no longer asks the explain engine; that probe now gates only Edit on someone else's comment. + - A viewer without the `sys_comment` delete grant (an ordinary member) is offered Delete on their own comments that have no reply, and it goes through the own-comment delete door; a viewer with the grant deletes through the data API as before, others' comments included where they may edit the record. + + Corrections to two earlier notes of this release, which stay as written: + + - A rank-and-file member now resolves and reopens a colleague's thread through the resolution door; this replaces the #36071 note's line "This is the one widening: an update that changes nothing but `is_resolved` is admitted without the author-or-record-editor rule", because the platform's row floor (`owner_only_writes`) runs first, so through the data API such a member still resolves only the threads they started and an administrator resolves any. + - The desktop comment panel offers ✓ on every thread to a viewer who may post a comment and writes it through the resolution door; this replaces the #36075 note's line "✓ is offered under the `sys_comment` update grant: on a thread the viewer started, and on anyone's only where the explain engine admits …", and its "Unchanged" line's "a deployment without the explain service shows ✓ and Edit on the viewer's own rows only" now holds for Edit alone. +- 28ba01f: fix(plugin-detail): a slotted page's record:chatter on the 动态 tab lists the system history alone while the comment panel holds the comments + + Clause-②: no + Metadata-protocol: none + + - A page whose `discussion` slot holds `record:chatter` or `record:discussion` draws that block on the record page's 动态 tab. While the comment panel is offered beside the record, on the page or in the drawer (objectstack#36075), the block now draws the system entries alone, as the platform's own 动态 stream does there: no comment and no reply, no comment box, no Comments-only filter, a count without the comments, the 动态 heading instead of 「讨论」, and the activity empty line instead of 「暂无评论」. A refused or failed comment read is the panel's to report, not this block's. + - Not changed: the platform's own 动态 stream, the 动态 tab's label, a page an author composed whole, and the phone while it has no comment surface. +- 8466fca: feat(record-page): the side preview drops the comments icon and the comment panel; a record's comments are on its full page + + Clause-②: no + Metadata-protocol: none + + A record opened in the side preview (the drawer or pane a list opens, and the drawer a record page opens over itself) no longer shows the comments icon in its header, and no comment panel can be opened anywhere in it. Its 动态 tab keeps the system entries alone, with no comment and no comment box, so the preview shows no comments at all. To read or write a comment, open the record as a full page from the preview header; the full page's comments icon, panel and comment box are unchanged, and so is the phone's comment page. + + This replaces the lines of the objectstack#36075 record-comment-panel entry that put the icon and the panel in the record drawer: there is no drawer placement any more (no cover of the drawer body under 760 px, no split above it), and the browser keeps one open-or-closed choice, the record page's. No props, exports or metadata change. + + The `@object-ui/plugin-detail` README and the docs of `RecordCommentsInPanelContext` now describe the preview case; no code changes there. +- e3054b4: feat(console): a double-click on the record page's details divider resets the left column to its default width + + Clause-②: no — no public type or accept set; one interaction on an existing control + Metadata-protocol: none + + On a wide full record page the details are pinned to a left column, with a divider between them and the tabs that can be dragged or moved with the arrow keys, and the width is kept per reader and per object. A double-click on that divider now puts the column back to its default of 400 px and keeps that width, so the next record of the same object opens at the default too. A drag the double-click interrupts ends with it. The limits, the keyboard moves and the comment panel are unchanged. +- 0d2bb8d: fix(console): while a record loads, the record drawer's title shows a placeholder instead of the record's internal id, and a related list's count badge waits for its count instead of showing 0 + + Clause-②: no + Metadata-protocol: none + + On a slow network the record drawer named the record `#8e25d44e…` until its read landed, and every related list's header read 「0」 before its rows arrived — a false "no related records". The drawer's record row now draws a placeholder until the record reports its name (a loaded record with nothing to be named by still shows its short id, and a read that ends without a record — not found, refused, failed — names the object instead), and a related list or compact related card draws no count until its count is known; a list whose read really comes back empty still shows 0. +- 27895d7: feat(record-page): each changed field is its own line under an activity entry, `Label: old → new` + + Clause-②: yes (widening) — four new `detail.*` language-pack keys in every locale `@object-ui/i18n` ships (`fieldChangeLabel`, `fieldChangeEmpty`, `fieldChangeExpand`, `fieldChangeCollapse`), and six new optional props on the exported `FieldChangeItem` (`label`, `oldText` / `newText`, `emptyLabel`, `expandLabel` / `collapseLabel`); nothing is removed or renamed + Metadata-protocol: none + + The record page's activity named a saved change by its fields only (「更新了 客户备注」), or carried every value on one cut line. An activity entry now reads as the fields it changed, with one line per changed field under it: `Customer notes: Old words → New words`. A save that changed the phone and the email is one entry with two lines. + + - The values come from the field-change code the server already serves on each `sys_activity` row (`metadata.summary_message`), narrowed per reader by plugin-audit: a field the reader may not read has no change in it, so it draws no line. Nothing new is read, and nothing is filtered in the browser. + - An empty side reads as the language pack's word for empty (`Empty`, `空`), never the stored `∅`. + - A select side reads as the field's option label in the reader's language; a lookup or user side reads as the record's name the server served; a yes/no reads as the pack's Yes / No. + - Each side is cut to its line. A side that does not fit, or holds more than one line, offers a control that shows both sides in full and one that cuts them again. + - An audit-log entry (objects with `enable.trackHistory`) draws its changes the same way, and an activity row paired with its audit entry keeps its own summary with the audit's lines under it. The record's creation is unchanged: one row with its values beside the summary. + - The compact one-line text of a change (the activity panel's peek rows) now reads `Label: old → new` with the same words, where it read `Label old → new` with `—` for empty. + + What does not change: which entries the activity shows, how consecutive edits by one person on one day fold into one row, the activity filters, and no metadata key, value or default. +- 543585d: feat(record-page): one field's change history, opened in place from the field or from a list cell's context menu + + Clause-②: yes (widening) — three new `detail.*` language-pack keys in every locale `@object-ui/i18n` ships (`fieldHistory`, `fieldHistoryNone`, `fieldHistoryNoneRecent`); new exports from `@object-ui/plugin-detail` (`FieldHistoryButton`, `FieldHistoryCard`, `FieldHistoryPopover`, `useFieldHistory`, `useFieldHistoryOffered`, `fieldHistoryOffered`, the constants `FIELD_HISTORY_PAGE_SIZE`, `FIELD_HISTORY_SCAN_BATCH` and `FIELD_HISTORY_SCAN_BATCHES_PER_LOAD`, and their types); an optional `column` member on the context `data-table` hands a host's `renderRowContextMenu`; `FieldChangeItem` draws no label for `label: ''`; nothing is removed or renamed + Metadata-protocol: none + + A reader can now see one field's past changes on one record without reading the whole activity stream. + + - On the record page, each field of the object has a history button beside its value, shown on hover and focus like the copy button. In a list, right-clicking a cell of a field the object declares adds 「Change history」 to the row's menu. Both open the same small card in place. Neither is offered on a field whose old → new values are not recorded (`fieldHistory: false` on the field, `enable.fieldHistory: false` on the object, a credential field, or a media or JSON-like type that does not opt in), judged by the same `resolveFieldHistory` the audit writer keeps values by. + - The card lists only that field's changes: who, when, and old → new in the reader's words (an option by its label, an empty side as the pack's word for empty), newest first, ten at a time with 「Load more」. + - A field never changed reads 「No changes recorded」 with who created the record and when. + - The changes are the record's activity rows the server already serves, narrowed to the reader: a change of a field the reader may not read is never sent. A field the reader may not read offers no entry point at all. The full audit log is not read. + - The rows are read by record, newest first, fifty at a time, keeping those that changed the field; a query naming the change columns is refused for a reader withheld any field of the object, so the field is never part of the query. Opening the card reads at most four batches, and each 「Load more」 at most four more; when they hold no change of the field and older rows remain, the card reads 「No changes in the recent activity」 and offers 「Load more」 to read on. + + `@objectstack/spec`: the authoring hint for the mistyped field key `tracked` now names what turns one field's change history on or off today (`fieldHistory: false`, `true` for a media or JSON field, `enable.fieldHistory: false` on the object), where it named `trackHistory: true`, which changes nothing for most field types. Wording only; `tracked` stays rejected. +- 42e4096: feat(console): on the record page's field list an empty field you can edit reads 「设置{字段名}」 and one click fills it in; an editable value offers the copy icon too + + Clause-②: yes (widening) + Metadata-protocol: none + + The synthesized record page's field area (the side preview, the phone's 「详情」 tab, the wide page's pinned left column and a full page alone): + + - **Empty editable fields read 「设置」 plus their label.** An empty value the reader can edit is drawn as light text, 「设置」 plus the field's label (`Set Phone` in English), and a single click on it opens the field's editor, as a click on any editable value already does. A read-only field, a field the caller may not write and a record that is not inline-editable keep the shared 「—」 placeholder. Empty fields still fold into the list's one 「显示 N 个空字段」 row; shown, they read 「设置…」 instead of 「—」. + - **An editable value can be copied without editing.** Its copy icon is drawn on hover or keyboard focus at the value's right, as a read-only value's is; it copies the value and does not enter edit. A touch screen draws none, as before for read-only values. The keyboard's way into edit (the pencil, drawn on focus only) is unchanged. + - Authored record pages and every other DetailView keep their faces: an empty field there reads 「—」 and an editable row keeps its double-click and pencil. + + `@object-ui/i18n` widens: one new key in every pack, `detail.setField` (`Set {{field}}` / `设置{{field}}`). +- a10422d: fix(console): a stage move refused with a 409 in a record drawer re-reads the record, so the next Move sends the stored version + + Clause-②: yes (widening) — `RecordContextValue` (and so `RecordContextProviderProps`) gains one optional member, `reread`; nothing is removed or renamed, and `refresh` keeps its type + Metadata-protocol: none + + The record header's stage menu also draws in a record drawer (the list's drawer, and the drawer a record page opens over itself). Its save path answered a `409 CONCURRENT_UPDATE` by calling the record context's `refresh`, which the record view leaves out in a drawer so the header draws no Refresh entry there. In a drawer the record was therefore never read again: the dialog kept the old row, and a second Move sent the same stale version and was refused again. + + `RecordContextValue` now keeps the two apart. `refresh` stays the host's opt-in to the header's Refresh entry and is still left out in a drawer. The new `reread` reads the record again with no affordance of its own; the record view provides it on the page and in a drawer alike, and the stage menu and `record:path`'s stage press call it after a move and after a 409. On the record page nothing changes: `reread` publishes the same `'*'` notice the Refresh entry does. + + A host that mounts `RecordContextProvider` with only `refresh` keeps its behaviour: the stage surfaces call `reread` when the host provides it and `refresh` otherwise. Nothing to migrate; a host that wants the re-read without the Refresh entry passes `reread` alone. +- dcc9b07: fix(plugin-detail): the record overlay names a field by its label in save refusals and conflict rows + + Clause-②: no + Metadata-protocol: none + + In the record overlay (`RecordDetailPanel`, the quick look of kanban, calendar, gantt and tree), a refused save and a conflict dialog's rows named a field by its machine name (`loss_reason`), because the overlay hands `InlineEditSaveBar` no `fieldLabelFor`. The bar now names a field by one rule wherever it names one — the refusal summary, the conflict rows and the fill-in dialog: the host's `fieldLabelFor` when it gives a label, otherwise the field's translated label from the record context's object, then its declared label, and only then its name. A field that declares no label still reads by its name, and the record page, which passes `fieldLabelFor`, reads as before. + + A refusal that names a field the object declares with a label is now presented as that field's, labelled, even when the record does not carry the field, as on the record page. +- f2ef7d8: fix(ui): the kanban card owner, history timeline, user menu and presence stack draw letters-only initials + + Clause-②: yes (widening) + Metadata-protocol: none + + A person whose display name carries punctuation, such as `Alice (Sales)`, now shows `AS` on the kanban card owner's avatar, the history timeline, the user menu and the presence stack, where those four faces drew `A(`. They now use the same rule as the people cell and the avatar widget: initials are made of letters only, a single-word name gives its first two letters (`Admin` → `AD`), a name of three or more words gives its first and last words' first letters (`John Michael Doe` → `JD`), a single CJK word gives its last one or two characters, and a name with no letter gives `?`. The user menu still falls back to the email's first character when there is no name. + + The rule, `getPersonInitials`, is now exported by `@object-ui/types`, the lowest package all of these faces can reach; `@object-ui/fields` re-exports the same function, so its `getPersonInitials` export is unchanged. `@object-ui/auth` now depends on `@object-ui/types`. +- 53733c1: fix: a comment notification opens the record with its comments at that comment + + Clause-②: no + Metadata-protocol: none + + Opening an @mention or reply notification used to land on the record page with the comments closed (or, on a phone, with no comments page), so the reader had to find the comment they were told about. + + - **`@objectstack/plugin-audit`**: the `collab.mention` and `collab.reply` inbox notices now link `/{object}/{id}?comments={rootCommentId}`, plus `&comment={commentId}` when the comment is a reply. A reply's thread is found from `parent_id`; a mention inside a reply links that reply's thread. The mention and reply e-mails carry the same link. Notices already in an inbox keep their old record link: nothing is backfilled. Other notifications are unchanged. + - **`@object-ui/plugin-detail`**: `CommentsPanel` takes `focusThreadId` / `focusCommentId`. With them, it shows that thread even when the filter hides it, opens its replies, marks the comment and scrolls the list to it. `CommentsPage` takes `focusCommentId`, and the thread opens scrolled to that comment, marked. `CommentThread` takes `openSignal` / `targetId`, and `CommentItem` takes `targeted`. + - The Console's record page reads the link: on desktop, `?comments=` (a thread id) opens the comment panel at that thread without changing the stored open or closed choice, and closing the panel drops the link. On a phone, the existing `?comments=` page opens the thread scrolled to `?comment=`. +- e4e3bcf: fix(plugin-detail): a long record name no longer runs under the centred title on the phone comment page + + Clause-②: no + Metadata-protocol: none + + On a phone, the comment page's top bar names the record beside the back arrow and centres 「评论」 (Comments). A record name too long for the left column ran past it and under the centred title, so neither could be read. The back button is now held inside its column, so a long name truncates with an ellipsis and the centred title stays whole; a short name renders as before. +- ad50d61: fix(record-page): Esc in the side preview ends an inline edit and keeps the preview open + + Clause-②: no + Metadata-protocol: none + + In a record's side preview (the drawer beside a list, or a record page's drawer), a field clicked into edit no longer loses the whole preview to Esc: + + - **While a field is being edited**, Esc ends the edit and the preview stays open. It does what Esc does on the record's full page: the typed change is discarded without a prompt and nothing is written. The next Esc closes the preview (or, a level down, goes back one level), as before. + - **A popover, select or menu open over the record** still takes Esc first and closes alone; the edit and the preview stay. + - **The full record page is unchanged.** + + For hosts of `NavigationOverlay` (`@object-ui/components`): a drawer now holds itself open on Esc while it draws an element marked `data-owns-pane-escape`, which `InlineEditSaveBar` (`@object-ui/plugin-detail`) carries while the record is being edited. +- 87c7bba: feat(plugin-detail): on the record page a click on a field's value edits that field alone and saves it when you move on + + Clause-②: no + Metadata-protocol: none + + On the default record page's field list (the full page, the side preview, a phone and the wide page's pinned column), a click on an editable value no longer turns the whole record into a form with a Save / Cancel bar. Only that value becomes an editor, drawn over it, so the other fields and the page stay as they are, and no bar appears: + + - A typed value (text, number, amount, percent, email, phone, URL) saves on Enter or a click elsewhere; Esc discards it and writes nothing. + - A multi-line text saves on Ctrl/Cmd+Enter or a click elsewhere; Enter starts a new line. + - A single select, a date, a record or a person opens its panel at once and saves on the pick; a multi-select saves when you move on. These are the list cell's editors (`FieldEditWidget` with `inCell`). + - A check flips and saves on the click. + - An unchanged value writes nothing. + + The write is the one the save bar makes: one guarded update carrying that field only, then the record is read again, so the fields whose visibility, read-only state or requirement depend on it are judged anew. A refused save keeps the editor open with the typed value and the server's reason under the field; a conflicting change opens the same reload / overwrite dialog, and a value that makes other fields required asks for them first. Esc in the editor inside the side preview cancels the edit and leaves the preview open. + + Unchanged: the header's Edit (the whole record as a form with its Save and Cancel), the list's cell editing, and pages an author laid out (a double-click or the pencil there). `InlineEditSaveBar` gains `face="field"` (no bar, its dialogs only) and `saveRef` (its save, for that host to call); the default stays the bar. +- cb909d7: docs(plugin-detail): the README's record-page section describes the count-first related tabs and the width layout as they are, and the Reference Rail section no longer names a right column + + Clause-②: no + Metadata-protocol: none +- c6075a7: feat(console): an administrator configures the record page's tabs in place, from the record's 「…」 + + Clause-②: yes (widening) + Metadata-protocol: none + + On the record page of an object whose package is writable (an object of a self-built app), a workspace administrator who may author metadata finds 「Configure tabs」 among the record's own entries in its 「…」 (desktop full page only; never on a phone, in a drawer or a pane, or on a page its author composed). Chosen, the page enters an edit state in place: a bar across the top with 「Configure tabs」, 「Cancel」 and 「Save」, in the design mode's bar's look, and the tab row turns into an editor. The record stays on screen as the preview, in the administrator's default order. + + In the edit state the related tabs are dragged to a new order, hidden into a 「Hidden」 area and shown again from it, and renamed; the attachments tab can be hidden; 审批 and 动态, which the page always draws last, are shown fixed, and so is a list another package brings. 「Adjust field groups」 opens the object in Studio. 「Cancel」 drops the changes and writes nothing; leaving the page with a change held asks first. + + 「Save」 writes the object's `relatedLists` over the object as stored (never as served), as a draft with the first-write pin, and publishes it, so everyone sees the new default order, names and hidden tabs. An object's own `relatedLists` hides a tab by leaving it out; an entry the editor does not arrange (a 审批 / 动态 name, a list it does not offer) is kept. A reader's own dragged order still lays over the new default, and 「Restore default order」 returns them to it. A tab is renamed only in the app's source language, where its shown name is its stored one, the design-mode menu's rule. + + New language-pack keys under `designMode.recordTabs` in all eleven console locales. `RecordPageColumns` takes an optional `tabRowEditor`, drawn in the tab row's place. Objects of installed (read-only) packages are not offered the entry yet. + + `page:header`: a `⋯` entry that finished on the click (it returned no pending promise) now closes the menu, as Refresh does; an entry still running keeps the menu open with its row busy until it settles, as before. +- 368deee: fix(components): avatar pictures keep their proportions instead of being stretched to the circle + + Clause-②: no + Metadata-protocol: none + + A user photo or organization logo that is not square was squashed or stretched to fit the round avatar, because the shared `AvatarImage` set no `object-fit` and the browser default (`fill`) scales each axis on its own. It showed in the account menu, the members and organizations pages, user and lookup fields, kanban card owners, the history timeline and the chatbot. + + `AvatarImage` now draws its picture with `object-cover`: it fills the circle, keeps its proportions and crops the overflow, as common avatar components do. A caller that wants a logo-style fit still passes `object-contain`, which wins over the default. The comment author avatar and the organization settings logo dropped their local `object-cover`, which the default now covers. +- 03cb550: fix(plugin-detail): a related tab's 「+ 添加」 no longer reads a row's own party as its source catalog + + Clause-②: no + Metadata-protocol: none + + On a record page's related tab, a `master_detail` child whose one other required lookup was not a catalog opened a picker of that lookup's object anyway. An account's 合同 (contracts) tab listed every account's contacts, unfiltered, because a contract requires its primary contact; a pick would have created a contract from a contact. + + A required lookup now counts as the child's source catalog only when a pick makes a whole row: + + - its candidates are the same for every row — no `dependsOn` and no `lookupFilters` comparand reading `$record` (a contact scoped to the contract's account is a party of that contract, not a catalog); + - every other required field of the child is filled without a person: a non-null `defaultValue`, a select option marked `default`, `readonly`, or a computed type (formula, summary, rollup, autonumber). + + Otherwise 「+ 添加」 creates a new row directly, as on a master-detail tab with no catalog. A line under a header whose product is required and whose quantity defaults (quote and opportunity lines) keeps its product picker. +- 2f8e8ba: fix(record-page): the default record page draws no empty 动态 (Activity stream) tab when the object switches off all three of its sources + + Clause-②: no + Metadata-protocol: none + + The activity stream merges three sources, each switched by the object: the discussion (`enable.feeds`), activities (`enable.activities`) and field changes (`enable.trackHistory`). An object that turned off all three still showed a 动态 tab on every record page, with nothing in it. The synthesized default page now leaves that tab out, the same way the Attachments tab follows `enable.files`: with `enable: { feeds: false, activities: false }` and `trackHistory` not `true`, `buildDefaultPageSchema` / `buildDefaultTabs` emit no stream tab and no `record:activity` node, and the wide layout draws no 动态 column. With any one source on, the tab is drawn as before. A `relatedLists` entry `'sys_activity'` on such an object does not bring the tab back. An authored page, or an authored `discussion` slot, still draws what its author placed. The Approvals tab is unchanged: it is drawn only when the record has approval requests. +- fa23941: fix(plugin-detail): a related tab's 「+ 添加」 picker keeps to the parent's own records and names them by their name field + + Clause-②: no + Metadata-protocol: none + + On a record page's related tab whose child is linked by a plain `lookup`, the derived 「+ 添加」 picker listed the unlinked children of every parent's scope. An opportunity's 合同 (contracts) tab listed unlinked contracts of every account, although a contract's opportunity lookup `dependsOn` the contract's account; a pick linked another customer's contract to the opportunity. The picker now applies that lookup's `dependsOn` from the parent record: each named child field must equal the parent's value (here, only contracts of the opportunity's own account). When the parent has no value for it, or the lookup's `lookupFilters` compare with `$record`, the tab offers no picker and 「+ 添加」 creates a record directly. + + The picker's label column is the picked object's name field (its declared `nameField`, else the derived title field) when the add names no `labelField`, under that field's label. It was a hard-coded `name`: on contracts, whose name field is `contract_number`, the first column was an empty 「NAME」. +- b3d953e: fix(record-page): a refused delete from a related list says it was refused + + Clause-②: no + Metadata-protocol: none + + Deleting a row from a record page's related list when the server refused the delete (a hook, or a record lock answering `409 RECORD_LOCKED`) showed nothing: the confirm dialog closed, the row stayed, and the refusal reached only the browser console. The list now shows the toast the object's list page shows for the same refusal: "Failed to delete LABEL", described by the refusal's `userMessage` when the server marked one, the read-only sentence for an external data source, and otherwise the server's own sentence. The row stays in the list and the dialog closes, as before. A delete that succeeds is unchanged. No props, exports or locale keys change. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [a0b4ecf] +- Updated dependencies [d6d9645] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [c3fb37a] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [c9b3f7a] +- Updated dependencies [8e46424] +- Updated dependencies [8896822] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [dc53d4a] +- Updated dependencies [0739dee] +- Updated dependencies [ad15579] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [eed422e] +- Updated dependencies [2df9691] +- Updated dependencies [bfd6b6b] +- Updated dependencies [55020c3] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [6f2bd4f] +- Updated dependencies [99a0e4f] +- Updated dependencies [a9b36ef] +- Updated dependencies [9f352e8] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [fd471d3] +- Updated dependencies [1b2cd80] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [7702f09] +- Updated dependencies [05e0eb8] +- Updated dependencies [b863d2b] +- Updated dependencies [c890070] +- Updated dependencies [e75a528] +- Updated dependencies [5bd7257] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [58d00db] +- Updated dependencies [3819afe] +- Updated dependencies [61722e9] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [285ad8d] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [6a35635] +- Updated dependencies [9212119] +- Updated dependencies [cda16d4] +- Updated dependencies [9b3227f] +- Updated dependencies [fe75349] +- Updated dependencies [f4de1de] +- Updated dependencies [dab4712] +- Updated dependencies [141a826] +- Updated dependencies [8145424] +- Updated dependencies [53c9575] +- Updated dependencies [83a79e6] +- Updated dependencies [dda665f] +- Updated dependencies [98b3f87] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [ccded86] +- Updated dependencies [f7b172f] +- Updated dependencies [ec24363] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [e01b8be] +- Updated dependencies [238661f] +- Updated dependencies [d96c878] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [72d19c4] +- Updated dependencies [b0c624a] +- Updated dependencies [9b6db73] +- Updated dependencies [1e018d6] +- Updated dependencies [6d86b43] +- Updated dependencies [bae933b] +- Updated dependencies [a3a74f2] +- Updated dependencies [f98f18c] +- Updated dependencies [74d3d83] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [227a16a] +- Updated dependencies [de25d58] +- Updated dependencies [598a34d] +- Updated dependencies [0585797] +- Updated dependencies [811858c] +- Updated dependencies [fac1e7d] +- Updated dependencies [4609c48] +- Updated dependencies [8500ee7] +- Updated dependencies [a6607c7] +- Updated dependencies [c00be39] +- Updated dependencies [1c87956] +- Updated dependencies [5345905] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [f909734] +- Updated dependencies [cedc094] +- Updated dependencies [c9b0a23] +- Updated dependencies [f51578e] +- Updated dependencies [6b360ab] +- Updated dependencies [c7174c3] +- Updated dependencies [78f7160] +- Updated dependencies [bb1c55d] +- Updated dependencies [1d7015a] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [5a68b57] +- Updated dependencies [7de1bad] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [dea68e9] +- Updated dependencies [b113178] +- Updated dependencies [138faaa] +- Updated dependencies [411fe24] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [48c732c] +- Updated dependencies [52fb30c] +- Updated dependencies [8807dcb] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [9ed18a5] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [c261a7c] +- Updated dependencies [76cb366] +- Updated dependencies [32409a9] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [9f6f306] +- Updated dependencies [c757e07] +- Updated dependencies [a5a5312] +- Updated dependencies [c1b35c3] +- Updated dependencies [9a98a46] +- Updated dependencies [96b66ca] +- Updated dependencies [8c8ff0f] +- Updated dependencies [27e414b] +- Updated dependencies [eb53d63] +- Updated dependencies [dda5e74] +- Updated dependencies [f2a990b] +- Updated dependencies [035a12c] +- Updated dependencies [33d0169] +- Updated dependencies [a23164e] +- Updated dependencies [f3d0a9f] +- Updated dependencies [6aacad9] +- Updated dependencies [8aed508] +- Updated dependencies [a60740a] +- Updated dependencies [8c5a81e] +- Updated dependencies [43580a3] +- Updated dependencies [cc05e60] +- Updated dependencies [dc10b3b] +- Updated dependencies [dca608a] +- Updated dependencies [baf2678] +- Updated dependencies [13d1e95] +- Updated dependencies [15b7f51] +- Updated dependencies [c297dff] +- Updated dependencies [1cd4762] +- Updated dependencies [6db1dc2] +- Updated dependencies [9ae874a] +- Updated dependencies [3ae62ac] +- Updated dependencies [6c7c6db] +- Updated dependencies [eebb893] +- Updated dependencies [493ad09] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [3543b51] +- Updated dependencies [4ab2c82] +- Updated dependencies [04f9861] +- Updated dependencies [c30ce97] +- Updated dependencies [e605773] +- Updated dependencies [0628e08] +- Updated dependencies [713545f] +- Updated dependencies [cbd582f] +- Updated dependencies [031325d] +- Updated dependencies [1705ec9] +- Updated dependencies [b7fe94a] +- Updated dependencies [a2dc858] +- Updated dependencies [a6756a2] +- Updated dependencies [b3bcfef] +- Updated dependencies [aad35e6] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [71e02ff] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [5e8e243] +- Updated dependencies [4099ef2] +- Updated dependencies [6a73185] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [740720c] +- Updated dependencies [6e643cc] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [96b7975] +- Updated dependencies [e8b494a] +- Updated dependencies [bbc7e03] +- Updated dependencies [27895d7] +- Updated dependencies [543585d] +- Updated dependencies [7e89bc6] +- Updated dependencies [70194ff] +- Updated dependencies [42e4096] +- Updated dependencies [a10422d] +- Updated dependencies [1a2a8a9] +- Updated dependencies [24366ff] +- Updated dependencies [f2ef7d8] +- Updated dependencies [7a5ae65] +- Updated dependencies [17dbea4] +- Updated dependencies [ff60149] +- Updated dependencies [ee651ce] +- Updated dependencies [dad9b55] +- Updated dependencies [d076975] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [8a741ab] +- Updated dependencies [60e79ed] +- Updated dependencies [3cf6a44] +- Updated dependencies [5fecc22] +- Updated dependencies [595844b] +- Updated dependencies [4f19091] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [9c283a1] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [52971ff] +- Updated dependencies [06c3e5a] +- Updated dependencies [2da2979] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [ad50d61] +- Updated dependencies [50bfbb8] +- Updated dependencies [f26469a] +- Updated dependencies [7501d0c] +- Updated dependencies [4ef1ea9] +- Updated dependencies [41dd132] +- Updated dependencies [45ef94e] +- Updated dependencies [d7411fa] +- Updated dependencies [c6075a7] +- Updated dependencies [cd51dbb] +- Updated dependencies [3f568c1] +- Updated dependencies [573a376] +- Updated dependencies [5c2d5cf] +- Updated dependencies [cbc06ff] +- Updated dependencies [43916f3] +- Updated dependencies [f590f3e] +- Updated dependencies [9fa05c6] +- Updated dependencies [ed0edb1] +- Updated dependencies [a10987a] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [f77d078] +- Updated dependencies [3110de5] +- Updated dependencies [1948c5f] +- Updated dependencies [0e83fe0] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [9f84e5f] +- Updated dependencies [368deee] +- Updated dependencies [6156fdd] +- Updated dependencies [8644ce7] +- Updated dependencies [0d6589d] +- Updated dependencies [c54aa57] +- Updated dependencies [53257a5] +- Updated dependencies [8aecf6d] +- Updated dependencies [115d387] +- Updated dependencies [e0050ba] +- Updated dependencies [14f4d8f] +- Updated dependencies [8ddadc1] +- Updated dependencies [183ed23] +- Updated dependencies [a03bc4e] +- Updated dependencies [4d4ec16] +- Updated dependencies [d763ee7] +- Updated dependencies [8018e00] +- Updated dependencies [844218f] +- Updated dependencies [8cce05b] +- Updated dependencies [0d727b7] +- Updated dependencies [ff0d1f1] +- Updated dependencies [4f7d6f7] +- Updated dependencies [b848b47] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [47ed85d] +- Updated dependencies [0819cab] +- Updated dependencies [97e0f93] +- Updated dependencies [c8d4b90] +- Updated dependencies [00aa574] +- Updated dependencies [69c3dc4] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [62692b7] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [49c6bf3] +- Updated dependencies [4f9a3f8] +- Updated dependencies [00dd362] +- Updated dependencies [1cda7ea] +- Updated dependencies [bac4864] +- Updated dependencies [8c29b81] +- Updated dependencies [a68b475] +- Updated dependencies [c75453e] +- Updated dependencies [1e96009] +- Updated dependencies [57445a6] +- Updated dependencies [01967c3] +- Updated dependencies [0212714] +- Updated dependencies [15d2766] +- Updated dependencies [1f3e9f6] +- Updated dependencies [8b1841f] +- Updated dependencies [305fe60] +- Updated dependencies [e91149e] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [706c8c6] +- Updated dependencies [c063734] +- Updated dependencies [c0dd417] +- Updated dependencies [0439a04] +- Updated dependencies [517e415] +- Updated dependencies [f92d271] +- Updated dependencies [6ddb97b] +- Updated dependencies [2af9729] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [6161010] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [b89f1b5] +- Updated dependencies [372ce7c] +- Updated dependencies [3aa008d] +- Updated dependencies [7d3b8d6] +- Updated dependencies [15f8357] +- Updated dependencies [378c955] +- Updated dependencies [56fa31b] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [39e9a82] +- Updated dependencies [9c5fb3e] +- Updated dependencies [abb5449] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @object-ui/i18n@18.7.0 + - @object-ui/fields@18.7.0 + - @object-ui/types@18.7.0 + - @object-ui/core@18.7.0 + - @object-ui/components@18.7.0 + - @object-ui/react@18.7.0 + - @object-ui/permissions@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/ui/packages/plugin-detail/package.json b/ui/packages/plugin-detail/package.json index b759d9f4298..c913bdab398 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": "18.6.0", + "version": "18.7.0", "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 87a3ae3f9df..8493b0d92ed 100644 --- a/ui/packages/plugin-editor/CHANGELOG.md +++ b/ui/packages/plugin-editor/CHANGELOG.md @@ -1,5 +1,117 @@ # @object-ui/plugin-editor +## 18.7.0 + +### Patch Changes + +- Updated dependencies [1c05546] +- Updated dependencies [4ffe9d3] +- Updated dependencies [89364b4] +- Updated dependencies [eed422e] +- Updated dependencies [2df9691] +- Updated dependencies [55020c3] +- Updated dependencies [6f2bd4f] +- Updated dependencies [99a0e4f] +- Updated dependencies [1b2cd80] +- Updated dependencies [3819afe] +- Updated dependencies [3d6dea2] +- Updated dependencies [285ad8d] +- Updated dependencies [9212119] +- Updated dependencies [cda16d4] +- Updated dependencies [dda665f] +- Updated dependencies [98b3f87] +- Updated dependencies [ccded86] +- Updated dependencies [e01b8be] +- Updated dependencies [d96c878] +- Updated dependencies [72d19c4] +- Updated dependencies [b0c624a] +- Updated dependencies [f98f18c] +- Updated dependencies [227a16a] +- Updated dependencies [598a34d] +- Updated dependencies [0585797] +- Updated dependencies [811858c] +- Updated dependencies [fac1e7d] +- Updated dependencies [8500ee7] +- Updated dependencies [a6607c7] +- Updated dependencies [c00be39] +- Updated dependencies [1c87956] +- Updated dependencies [5345905] +- Updated dependencies [c9b0a23] +- Updated dependencies [6b360ab] +- Updated dependencies [c7174c3] +- Updated dependencies [78f7160] +- Updated dependencies [40e22f1] +- Updated dependencies [7de1bad] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [dea68e9] +- Updated dependencies [6b51822] +- Updated dependencies [52fb30c] +- Updated dependencies [8807dcb] +- Updated dependencies [9ed18a5] +- Updated dependencies [f548bdc] +- Updated dependencies [9f6f306] +- Updated dependencies [8c8ff0f] +- Updated dependencies [dda5e74] +- Updated dependencies [f2a990b] +- Updated dependencies [035a12c] +- Updated dependencies [33d0169] +- Updated dependencies [a23164e] +- Updated dependencies [f3d0a9f] +- Updated dependencies [8aed508] +- Updated dependencies [a60740a] +- Updated dependencies [dc10b3b] +- Updated dependencies [dca608a] +- Updated dependencies [baf2678] +- Updated dependencies [13d1e95] +- Updated dependencies [6db1dc2] +- Updated dependencies [3ae62ac] +- Updated dependencies [6c7c6db] +- Updated dependencies [493ad09] +- Updated dependencies [4ab2c82] +- Updated dependencies [04f9861] +- Updated dependencies [e605773] +- Updated dependencies [713545f] +- Updated dependencies [a2dc858] +- Updated dependencies [b3bcfef] +- Updated dependencies [aad35e6] +- Updated dependencies [0b2118f] +- Updated dependencies [d12ac84] +- Updated dependencies [4099ef2] +- Updated dependencies [bb89b2d] +- Updated dependencies [740720c] +- Updated dependencies [6e643cc] +- Updated dependencies [f3a8a13] +- Updated dependencies [bbc7e03] +- Updated dependencies [543585d] +- Updated dependencies [7e89bc6] +- Updated dependencies [1a2a8a9] +- Updated dependencies [f2ef7d8] +- Updated dependencies [70d07fd] +- Updated dependencies [8a741ab] +- Updated dependencies [ad50d61] +- Updated dependencies [d7411fa] +- Updated dependencies [c6075a7] +- Updated dependencies [fed637c] +- Updated dependencies [1948c5f] +- Updated dependencies [7a7ab47] +- Updated dependencies [368deee] +- Updated dependencies [49c6bf3] +- Updated dependencies [a68b475] +- Updated dependencies [57445a6] +- Updated dependencies [0212714] +- Updated dependencies [1f3e9f6] +- Updated dependencies [c0dd417] +- Updated dependencies [517e415] +- Updated dependencies [6ddb97b] +- Updated dependencies [3aa008d] +- Updated dependencies [378c955] +- Updated dependencies [56fa31b] +- Updated dependencies [9c5fb3e] + - @object-ui/types@18.7.0 + - @object-ui/core@18.7.0 + - @object-ui/components@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/ui/packages/plugin-editor/package.json b/ui/packages/plugin-editor/package.json index ccec680df34..ad95205b872 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": "18.6.0", + "version": "18.7.0", "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 d40f15bc53a..c649aaebd0b 100644 --- a/ui/packages/plugin-form/CHANGELOG.md +++ b/ui/packages/plugin-form/CHANGELOG.md @@ -1,5 +1,639 @@ # @object-ui/plugin-form +## 18.7.0 + +### Minor Changes + +- c7174c3: fix(record-page): business dates read as dates, Save is the edit state's primary button, a new detail line starts on its defaults, and the tabs follow the header with no blank band + + Clause-②: yes (widening) + Metadata-protocol: semantic + + Four things on the record page. + + **Dates.** A `date` field that declares no `format` read as a relative phrase on the record page ("6 days ago", "Tomorrow") while the list beside it wrote the date ("Nov 13"), so the reader had to work the day out. The record page's field sections and its highlights strip now write the date itself, with its year, as the list's columns do; the relative phrase (an overdue deadline's "Overdue 5d" included) is the date's tooltip, and a deadline past due still reads red. A declared `format`, `'relative'` included, still wins. A `datetime` field already read as an absolute date there (its cell's default face is the compact one, never the relative phrase), and is now pinned to stay so. The record footer's created and modified times keep their relative wording, and card surfaces (kanban, gallery) are unchanged. `@object-ui/fields`' cell props gain `absoluteDate`, read by the `date` cell. + + **Edit-state buttons.** In the record page's edit state, Cancel drew as the filled primary button and Save as an outline one, so the hand fell on the button that throws the edit away. Save is now the one filled button, after Cancel, the order a form's footer uses. `page:header` now makes a host button declaring `variant: 'primary'` the primary over the page's own actions, in the place the host gave it; no other host button declares one, so every other header is unchanged. + + **New detail lines.** A line added to a master-detail table in the record page's edit state started blank, so a required column with a default (a status that defaults to "Pending") read red although the save then stored the default. A new line now starts on the child object's static defaults, the values a create form seeds; a default the server resolves at insert (`NOW()`, a CEL expression) is left to the server. A new line's empty required cell reads red only after a save was refused, with the server's reason listed under the table; a stored line is flagged as before. A line added and never edited, holding only its defaults, is still skipped at save like a blank one; once the user edits a cell of it, it is input and is saved, even when every value they typed equals a default. `LineItemsField` gains `newRowValues` and `newRowRequiredShown`; a line its Add starts on `newRowValues` carries the `UNTOUCHED_NEW_ROW` mark (a symbol key no payload carries) until its first edit, and `isBlankRow` reads that mark. `@object-ui/fields` exports `UNTOUCHED_NEW_ROW` and `isUntouchedNewRow`. A host that passes neither prop sees no change. The save request and its transaction are unchanged. + + **The band above the tabs.** The record page's scroller and its column layout each padded their top by 24px on a desktop, so a 48px empty band stood between the header and the tab row. The scroller now pads only its sides and bottom, and the column layout keeps a 12px top on every width, so the tabs follow the header at the gap the rest of the page uses; on a phone the title block keeps 16px to the tabs. The print chrome and the approval actions bar that render above the columns keep their own top margin, and an authored page the page renderer draws keeps its own top padding. Side padding is unchanged. +- 6db1dc2: feat: the form's line-item table edits people, multi-select, tags, check and rating cells the way the main list does + + Clause-②: yes (widening) + Metadata-protocol: semantic + + `InlineGridColumnSchema.type` (a relationship field's `inlineColumns`, a form view's `subforms[].columns`, and the page blocks that carry the same column) accepts five more cell types, each spelled as its namesake field type: `user` (people), `multiselect`, `tags`, `boolean` (check) and `rating`. The column also takes an optional `max`, the star count of a `rating` cell (default 5). + + In the line-item table: + + - A `user` cell opens the main list's person picker under the cell: a searchable list with recent people and Clear; a pick writes and closes. `multiple` holds several people. + - A `multiselect` cell holds several of its options and a `tags` cell holds free-form tags. Each opens its searchable list under the cell; a click outside or Tab writes what was picked, Esc writes nothing. A list emptied in the cell writes `null`, as a cleared multi-value field stores, so a line whose only value was removed is still a blank line. A `tags` cell takes no `options`. + - A `boolean` cell is a checkbox: a click or Space toggles it and writes `true` / `false`. + - A `rating` cell draws its stars; a click on a star, or a digit key on the cell, sets it, and 0 clears it. + - Read-only and list-mode cells show people by name, a rating as its stars, a multi-select's option labels, and a check cell as the session's yes/no word. + + Visible change on existing forms: a column the table derives from a child field (no `type` written) now follows that field. A `boolean` / `toggle` field becomes a checkbox instead of the yes/no select, and it writes `true` / `false` instead of the strings `'true'` / `'false'` (the server reads both the same). A `rating` field becomes stars instead of a number box. `user`, `multiselect`, `checkboxes` and `tags` fields get their own cells instead of a plain text box that took a typed user id or a single option. A column that writes its `type` is unchanged, a `type: 'select'` column over a boolean field included. Which derived columns are visible by default is unchanged. + + The field-level security scrubber classifies the column's new `max` key as kept (a number, never a field name). +- 8da2b7e: fix(fields): a lookup pick no longer copies an amount into a field in another currency; the field stays empty and the form says why + + Clause-②: yes (narrowing) — a cross-currency price copy that happens today stops and the line is left empty with a stated reason (ruled B); widened: three new `@object-ui/i18n` `lookup.autofill*` keys in every locale pack, new `@object-ui/fields` exports from `lookupAutofill.ts` (`planDeclaredLookupAutofill`, `crossCurrencyRefusal`, `amountCurrencyOf`, `pickedAmountCurrencyOf`, `withheldAutofillMessage`, `withLookupAutofillTargets`, `readLookupAutofillTargets`, `LOOKUP_AUTOFILL_TARGETS_KEY` and their types), an optional second argument on `onSelectRecord`, an optional trailing `currency` parameter on `declaredLookupAutofillPatch` and `lookupAutofillPatch`, and the optional `columnFields` prop on `GridField` + Metadata-protocol: semantic + + <!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed or renamed, and nothing stored is rewritten: what moved is what a pick copies in the browser. The fix for an author is in the body: the price on a line in another currency is entered by hand. --> + + **BREAKING** for forms and line-item grids that relied on a pick copying an amount across currencies. On a EUR invoice, picking a product whose price is in the home currency used to copy the number as euros (a $100 product became a €100 line). Nothing converted it. Now the price is not copied: the cell or field stays empty, and a note under the line (in a grid) or under the lookup (in a form) names the picked amount with its currency and the currency of the field, so the price can be entered by hand. The other fields of the same pick (a description) still fill. + + **The rule.** It applies to the grid's same-named copy (the column key `autofill`), to the grid's declared `lookupAutofill` pairs, and to the record form's declared pairs, on a pick and on a create form's opening fill: + + - an amount is a `currency` field or a `formula` returning `currency`; a `number` carries no currency and copies as before; + - both sides in the home currency (neither declares one) copy as before, also when no home currency is configured; + - otherwise the value copies only when both sides name the same known code: a `fixed` code, the code the record holds, or the code its `master_detail` parent holds (ADR-0144 D2 as amended), with the home currency counting as its configured code; + - a field that follows a record's currency while that record holds none yet is not filled, and the note says no currency is chosen yet. + + Nothing is converted at any rate, and no build-time check is added: the line's currency is known only while the form is open. + + **`@objectstack/spec`.** The describes of `FieldSchema.lookupAutofill` and of the inline grid column key `autofill` state the rule. + + **`@object-ui/fields`.** `planDeclaredLookupAutofill` returns the writes and the withheld values of a pick; `declaredLookupAutofillPatch` and `lookupAutofillPatch` keep returning the writes alone. `LookupField` hands a host that owns the pick (`onSelectRecord`) the referenced object's field map as a second argument. `GridField` takes `columnFields`, the child field behind each currency column, so a `fixed` code or a code on the line decides that column's currency as on the record form. + + **`@object-ui/plugin-form`.** The record form stamps the definitions of a lookup's `lookupAutofill` targets on the lookup's field metadata, each with the name the form shows for it, so the lookup can read each target's currency and names it as the form does. The line-item hosts hand their grid each currency column's child field. + + **`@object-ui/i18n`.** Three new `lookup.autofill*` sentences, in every locale pack. + +### Patch Changes + +- 3446f23: fix(plugin-form): a section navigation jump in a grouped record dialog scrolls only the form, so the dialog keeps its title, navigation and footer in place + + Clause-②: no + Metadata-protocol: none + + In a record dialog with grouped sections, clicking the navigation entry of a short last section used to scroll the dialog box itself: the title and the section navigation moved out of the top of the dialog, a blank area opened below the footer, and nothing could scroll it back, so the user had to close the dialog and lose what they had typed. Two things made that possible, and both are fixed: + + - The jump scrolled the section heading with an element `scrollIntoView`, which also scrolls every scrollable ancestor, the dialog's clipped (`overflow: hidden`) box included. It now scrolls only the heading's own scroller (the form's body, or the window for a full-page form) with `scrollTo`, keeping the heading's scroll margin. + - The dialog's form body is now `relative`, so the hidden native inputs a checkbox or a select mounts beside its control are clipped by the form body and scroll with it, instead of overflowing the dialog box. + + The highlight rule, section folding and the required-field counts are unchanged. Nothing to migrate. +- 1aac465: fix(plugin-form): the wizard's final-submit gate judges a `visibleWhen` that reads a formula on the computed value + + Clause-②: no + Metadata-protocol: none + + `WizardForm` re-checks every declared field when it submits, including the fields on steps the user skipped. The simple form's mobile stepper submits through the same check. That check now computes the object's `formula` fields over the record being written before it judges field rules, the same way the form renderer does (`planObjectFormulas`, ADR-0113). Before, it used the formula value from the last read. So after an edit that moved a required field out of its `visibleWhen`, the wizard still demanded the field even though the server does not require it. After an edit that moved the field into its `visibleWhen`, the wizard sent the save without the field and the server refused it. + + The `visibleWhen` of a field that reads a formula the form cannot compute is handled as the step forms handle it: the field counts as shown and keeps its `required` flag. The plan is built from the object schema the wizard already reads. When that read fails, or no data source is given, the gate judges the record as it holds it, as before. +- df81f4c: feat: working calendars in Setup — `sys_work_calendar` and `sys_work_calendar_exception` (ADR-0157, part two of two) + + Clause-②: yes (widening) + Metadata-protocol: added + + Not released alone; pair #35641/#35642. The first half, #35641 (the calendar service and its arithmetic), is merged; this half ships in the same release as it, with the working-day formula functions (#35356) and the approval escalation's working-time clock (#35357), ADR-0157 D4. + + - **Two platform objects** (`@objectstack/platform-objects`). `sys_work_calendar` holds a calendar's `code` (unique per organization, snake_case), `name`, required IANA `timezone`, `is_default` (one per organization), the required `maintained_from` .. `maintained_through` span its holidays are entered for, and one period column per weekday (`monday_periods` … `sunday_periods`, `HH:mm-HH:mm` periods separated by commas, blank for a day off). `sys_work_calendar_exception` holds dated overrides: `calendar`, `date`, `kind` (`off`, no periods; `on`, that date's full periods), `periods` and `note`, one row per calendar and date. Both are organization data an administrator keeps, audited, like `sys_exchange_rate`; a package may seed rows under the existing seed contract and name a calendar by code. Their names join the platform object name list (`@objectstack/spec`). + - **Setup.** Two entries under Exchange Rates: Working Calendars (with a Needs Maintenance list of every calendar whose maintained span ends within 60 days) and Calendar Exceptions, whose list page imports a year of holidays from a file; the `calendar` column names a calendar by its code or name. Labels and help text ship in all eleven locales. + - **Time zone on create** (`@object-ui/plugin-form`, ADR-0157 D7). A create form opens a required time-zone field that declares no default (`valueDomain: 'iana_time_zone'`) on the organization's time zone, as it opens a record-currency field on the organization's currency; the user can change it. A create that leaves the calendar's `timezone` out takes the same zone on the server. An optional time-zone field, where blank means "take the parent's", is not prefilled. + - **Refusal wording** (`@objectstack/objectql`). The refusal of a create that marks a calendar the default in another organization no longer assumes the writer is working in an organization. + - **A calendar stays in its organization** (`@objectstack/objectql`). An update that changes the organization of a calendar or of an exception date is refused with `400 VALIDATION_FAILED` on `organization_id` (`invalid_value`), before any read and for every writer, system writes included. To have a calendar in another organization, create it there. An edit that leaves `organization_id` out or repeats the stored one is judged as before; a predicate update is judged row by row, and one matched row whose organization would change refuses it. + - **An exception date names a calendar of its own organization** (`@objectstack/objectql`). On a create, and on an update that carries `calendar`, the calendar is read by id in the exception's organization; when it is not there, the write is refused with `400 VALIDATION_FAILED` on `calendar` (`invalid_value`). A calendar of another organization and an id that names no calendar get the same refusal, word for word. The import door is judged the same way, row by row. + - **Organization ownership** (`@objectstack/cli`). Both objects are organization-owned; an exception reaches its organization through its calendar. +- 6a35635: feat(console): Change Owner on the record page, in a list's selection bar, and beside the read-only owner of the edit form + + Clause-②: yes (widening) + Metadata-protocol: none + + A record whose object offers Change Owner now shows a **Change Owner** action in its page header. The action appears only where three things hold: the object can have its owner changed (it has a per-person owner that is not pinned read-only), the object's `userActions.transfer` switch is on, and the server's explain engine allows this user to transfer this record. A `controlled_by_parent` detail offers the action only once its author turns the switch on. Objects with `ownership: 'none'`, `managedBy` objects and `sys_*` objects never offer it, even to a platform admin. + + The action opens one dialog. You pick the new owner under the object's own label for its owner field. Where the object has an ownership queue, you can pick a queue instead. You can also ask that the new owner be notified. The dialog sends the change through `data.changeOwner` for one record and `data.changeOwnerMany` for several. Picking the record's current owner is refused in the dialog with the reason shown. A bulk change ends with a report: how many records moved, how many already had that owner, how many did not move, and each row that did not move with the server's own reason. + + A list's selection bar offers **Change Owner** for the selected rows, where the object's switch is on and the explain engine allows this user to transfer the object's records (one question per object, not per row, asked once a selection is open rather than when the list opens). The rows of such an object take a selection even when the user has no bulk Delete and the view authors no bulk actions, so the entry can be reached at all; where the verdict refuses, the bar draws no Change Owner. The server judges every row again. Rows that the switch's `visibleWhen` excludes are left out of the request, and the dialog says how many were left out. + + The Console's edit form now shows the owner, read-only, above the form's fields, with Change Owner beside it when it is offered. The owner field is still not part of what the form saves. Forms embedded outside the Console are unchanged: the owner line appears only where a host mounts `FormOwnerLineContext` (exported from `@object-ui/plugin-form` and `@object-ui/plugin-form/core`). + + New public surface, all additive: + + - `@object-ui/plugin-grid`: `ObjectGrid` takes two new optional props, `onBulkChangeOwner` (wiring it makes the rows selectable and adds the entry) and `bulkChangeOwnerOffered` (`false` holds the entry back while the rows stay selectable); the package exports the action name `CHANGE_OWNER_BULK_ACTION`. + - `@object-ui/plugin-list`: `ListView` takes and forwards both props. + - `@object-ui/plugin-form`: new exports `FormOwnerLine`, `FormOwnerLineProps`, `FormOwnerLineContext`, `FormOwnerActionTarget` and `FormOwnerLineHost`; `@object-ui/plugin-form/core` exports `FormOwnerLineContext`, `FormOwnerActionTarget` and `FormOwnerLineHost`. + - `@object-ui/plugin-detail`: `RecordOperation` gains `'transfer'`, so `useRecordVerdict` and `seedRecordVerdict` accept it. + - `@object-ui/i18n`: every console locale gains `grid.changeOwner` and the `console.changeOwner.*` block. +- 98b3f87: fix(plugin-form): a grouped record dialog's section bar is a jump bar, not tabs: it is hidden when the sections fit, and a click marks the section it jumped to + + Clause-②: no + Metadata-protocol: none + + A create or edit dialog for an object with field groups and no authored form layout draws every group stacked, with a row of group names above them. That row is a jump bar: a click scrolls the form to the group. It was drawn as underlined tabs, so users expected a click to switch the content, and when every group fit the dialog a click had nothing to scroll and only the highlight moved, which looked like tabs that do not work. + + - The bar is drawn as jump links (a `#` glyph and a pill per group), not as underlined tabs. + - The bar is hidden while every group fits the dialog body, and comes back when the content outgrows it (a group unfolding, a field appearing, a smaller window). The dialog header keeps its separator when the bar is hidden. + - A click marks the heading of the group it jumped to for a moment, so a jump to a group already in view still shows where it went. + + The same rules apply to the full-page form's section bar. An authored `tabbed` layout keeps its tab strip, which switches the content as before; collapsed groups, the highlight rule and the error counts are unchanged. Nothing to migrate. +- ec24363: fix(fields): the inline line grid draws no blank entry row beside "Add line", and each column header shows its field's help + + Clause-②: no + Metadata-protocol: none + + The inline line grid of a master-detail form always drew an empty line under the lines, directly above the "Add line" button. It had no copy or remove action and was never saved, so users read it as a broken line they could not delete. The grid no longer draws it: a grid with lines shows exactly its lines, and an empty grid says "No items yet — click "Add line" to begin." The keyboard path that line carried stays: "Add line" moves focus into the line it adds, and Enter in the last line adds a line and moves to the same column in it. An empty required grid that the form refused still draws one entry line, so the field's failure stays on the cells a user types into. + + Each column header now shows its field's help as an info icon beside the label. The help appears on hover and on keyboard focus, and it is the icon's accessible name. The text is what the record form shows under the same field: `inlineHelpText`, else `description`, from the child object's definition as the server serves it, so help written by another package's `objectExtensions.fieldPatches` and the reader's language both apply. `GridField` takes the texts as a new `columnHelp` prop, and `columnHelpByField` builds them from a child object's fields. The master-detail form, the line-items panel and the record-body table editor pass them. + + What does not change: what a save sends, the `allowAdd` / `allowDelete` / `maxRows` behaviour, and every metadata key, value and default. A master-detail entry whose relationship and every column type are authored loads no child schema, so its headers show no help, as it has no lookup autofill. +- 1e018d6: feat: edit a record and its line tables together, and lock a record's lines while an approval locks the record + + Clause-②: no + Metadata-protocol: none + + **A locked record's lines are locked too.** While a record is held by an approval that locks it, writes to its master-detail child rows are refused with `RECORD_LOCKED` (409), the same answer a write to the record itself gets: inserting a row under it, updating or deleting one of its rows, and moving a row into it or out of it (both ends of a reparent are checked). A multi-row write that touches any such row is refused as a whole, and a row whose parent cannot be read is refused when the parent object has a locking approval the writer's run does not own. The approval's own exemptions carry over: system writes and the flow run that opened the approval still write. The refusal names the record by its object's label ("This Opportunity is locked while an approval is in progress, …"). Lookup children are not affected. `@objectstack/plugin-approvals` binds the new `bindDetailRowLockHook` beside the record lock it already binds. + + **`@object-ui/plugin-form` exports the record-page body-table editor.** `RecordBodyTableEditor` draws a master-detail body table as editable lines (the `LineItemsField` grid, with the child columns, field permissions and add / remove rules the master-detail form uses) for a host's edit session (`RecordEditSessionContext`). `buildRecordEditBatch` folds a record's field changes and every table's lines into one batch (the `buildMasterDetailEditBatch` diff, table by table), and `attributeRecordEditRefusal` places a refused batch's reasons on the record's field or on the line whose write carried the refused field. + + **`@object-ui/i18n`** adds `detail.bodyTableRow`, `detail.bodyTablesReadOnlyBulk` and `detail.discardInlineEditsMessage` to every built-in pack. + + **`@object-ui/plugin-detail`** exports `RecordBodyTableEditorSlotContext`: while a host provides it, a `record:related_list` whose relationship id (`CHILD_OBJECT.FK_FIELD`) is in the slot's set draws the host's element in its place instead of the read-only list. The record page's edit state draws its body-table editors through it; no new node type is registered. + + In the console, Edit on a record page that draws master-detail body tables now opens the page's edit state: the fields become inputs, the body tables editable lines, and one Save writes all of it in one batch. Per-field inline edit stays on every record page, those included, and saves the record alone through its save bar. One mode runs at a time: the edit state offers no per-field inline edit, and pressing Edit while inline changes are unsaved first asks whether to discard them. +- 6b51822: fix(ui): the entry form draws a group-placed master-detail table at its field group + + Clause-②: no + Metadata-protocol: none + + A master-detail child that a field group of the parent places (`fieldGroups[].relatedList`) is now drawn at that group in the parent's create and edit forms, where the record page draws it, instead of below all of the record's fields: + + - A form laid out from the parent's field groups draws the table after the sections of the groups declared before the placing group and before the ones declared after it. + - The form's section bar stops at the table too, between the sections around it. + - A tabbed form gives it a tab of its own at that position, labelled with the group's label. A wizard master-detail form is drawn as the simple form, as before, and places it the same way. + - A form whose sections name no field group, and a child no group places (a form view's own `subforms`), keep the table below the record's fields, as before. + + The table is the same one: its rows still save with the record in one batch, an expanded row's editor opens beside it, and the document totals stay at the foot of the form. No metadata changes. +- 32409a9: fix(form): a new detail line on a master-detail create / edit form starts on the child's defaults, does not read red before a save is tried, and a line added and left untouched is skipped with a notice on the form and the record page + + Clause-②: no + Metadata-protocol: none + + On a parent object's create or edit form, a line added to a detail table started blank, so a required column with a default (a status that defaults to "Pending") read red at once although saving would store the default. The record page's edit state already started its new lines on their defaults; the form now does the same. + + **New lines on the form.** A new line starts on the child object's static defaults, the values a create form of the child seeds, whether it is added with Add or with Enter on the last line. A default the server resolves at insert (`NOW()`, a CEL expression) is left to the server. A new line's empty required cell reads red once a save of the form was tried, not the moment the line appears; a stored line is flagged as before. A line added with Add and then applied from the row editor is the user's input and is saved. + + **A line added and left untouched** (maintainer ruling, card comment 7056413638: 「跳过并提示未保存」). A line Add started on its defaults that nobody edited holds only those defaults. It is still not written, and the save now says so: once the save lands, the form and the record page's edit state show "1 blank line was not saved" (or "N blank lines were not saved"), also when the host supplies its own save confirmation. Such a line never reads red, before or after a refused save, since there is nothing in it to fix; once the user edits any of its cells it is input, saved and flagged like any other new line. On an edit form that stays open after saving, the skipped line leaves with the save, as it does on the record page. A line the user typed into and then cleared is blank and is skipped as before, without the notice. The pack key is `form.lineItems.untouchedNotSaved`, in every built-in locale. + + **Seeding context.** The defaults on both the form and the record page's edit state are now read with the session facts a create form uses: a child field defaulted to the acting user starts on that user, and the organization's currency and time zone seed the fields they seed on a create form. With no known user that field starts empty and the server fills it, as before. +- 035a12c: feat(ui): every modal dialog draws one lighter surface, short create and edit dialogs are one narrow column, and a create dialog can stay open for the next record + + Clause-②: yes (widening) + Metadata-protocol: none + + What a user sees: + + - Behind a dialog the page is only slightly dimmed (10% in light mode) and no longer blurred, so it stays readable. The dialog is a white card (the raised grey in dark mode) with a hairline edge and a translucent outer ring, a 12px corner, and anything inside it drawn at the shared 40px control height (`h-10`: inputs, select triggers, default and icon buttons, and any other `h-10` element such as a 40px avatar) one step smaller, 32px from the `sm` breakpoint up; the phone sheet keeps its 44px touch targets. Confirmation dialogs, the required-fields prompt and the record create and edit dialog all share it. + - The create and edit dialog's title is 16px and follows the object's icon, and its padding is 20px. + - A dialog that lays out at most six fields and declares no `columns` (not on the form, not on any section) draws one field per row in the narrow `lg` size (672px); six is the maintainer's choice (ruling of record 7061696632 on objectstack-ai/objectstack#35980). This reverses the at-least-two-columns default such a dialog drew before. Seven fields or more, any declared `columns`, an authored `modalSize` or a maximized dialog lay out as before. + - The console's list 「New」 dialog (and a related list's child create) has a 「Create more」 switch. With it on, a save keeps the dialog open on an empty form with focus on the first field, and the list behind refreshes; with it off, a save closes the dialog and opens the new record as before. The switch is remembered per object in this browser. + - ⌘↵ (Ctrl+Enter on other platforms) saves the create and edit dialog, and the Save button shows the keycaps. A master-detail dialog (a record with line items) takes neither the shortcut nor 「Create more」. + + What a developer sees (`Clause-②: yes (widening)`, additions only): + + - `ModalFormSchema.createMore?: boolean` offers the switch on a `create` dialog that a host mounts itself (the `object-form` renderer's `formType: 'modal'` keeps it off), and `ModalFormSchema.onSuccess` receives a second argument, `{ createMore: true }`, when the dialog stays open. A host that passes neither sees no change. + - New i18n key `form.createMore` in every locale. + - The console's global `[role="dialog"]` corner rule and the blurred overlay on dialogs are gone; the look lives in `@object-ui/components` (`src/lib/dialog-surface.ts`), reached from the `dialog` and `alert-dialog` primitives through declared Shadcn patches. The card carries the `dialog-surface` class, which the console's shared floating-surface shadow skips; a host stylesheet that adds its own shadow to `[role="dialog"]` should skip it too. Popovers and the bottom drawer keep their rounded corners by their own containers; side drawers are unchanged. + + Nothing to migrate. +- baf2678: fix(ui): a placed line table's row editor is a form of its own, and a refused line marks its tab + + Clause-②: no + Metadata-protocol: none + + Two fixes to a master-detail entry form whose field group places the line table: + + - Opening a line's row editor no longer draws the editor's form inside the placed table's wrapper form. The markup is valid again, and React no longer logs "form cannot be a descendant of form" in development. The editor's inputs still belong to the editor's own form. + - In a tabbed form, a save the server refuses on a line marks the tab that holds the lines, the way a refused header field marks its own tab. A refusal is on the lines when the server names a line's operation as the failed one, or names a field that only the lines write. The mark clears when the next save gets past validation. +- 6c7c6db: feat(ui): the console's pages set text in two sizes, 14 and 12, and two weights, 400 and 500 + + Clause-②: no + Metadata-protocol: none + + - **Two sizes.** Body text, list cells, field values, inputs, menu items, toolbar controls and buttons are 14px (`text-sm`); field labels, column headers, counts, timestamps, hints and chip text are 12px (`text-xs`). The hard-coded 13px is gone from the console's runtime pages, and the 10px, 11px and other odd sizes there are 12px. The in-cell editor is 14px, like the cell it edits. + - **Two weights.** Record names, tabs, buttons, section titles and column headers are 500 (`font-medium`); body text is 400. Weight 600 and 700 stay only on page and dialog titles 18px and larger. `DropdownMenuLabel` is weight 500 through a declared local patch on the Shadcn primitive (`dropdown-menu-label-medium-weight` in `ui/scripts/shadcn-local-patches.mjs`), so it survives a registry sync. + - **Not changed:** Studio and metadata administration internals, the settings pages, developer tools, phone-only layouts, avatar initials, authored markdown and SDUI heading typography, the docs reader's prose size, and the shape of coloured option badges (still pills). + - A list column with no declared width measures its content, so it grows with the 14px text; a column whose width a view or a user set keeps that width and shows about 8% fewer characters before it truncates. +- 0628e08: perf(fields): the line-item grid's body loads on first use, and the console's first load no longer carries it + + Clause-②: yes (widening) + Metadata-protocol: none + + The line-item grid (the `grid` field and the line items of a master-detail form) was the largest field widget in the console's first-load bytes, though only a form with line items draws it. Its body now loads the first time a grid is drawn, or earlier, when a form that draws line items mounts. + + - **The same two components.** `GridField` and `LineItemsField` keep their names and their props. They now render the grid's body once it has loaded; a grid mounted before that shows a small busy placeholder until it arrives. A grid mounted after the body loaded renders it directly, and a grid that showed the placeholder draws the body once it arrives and never remounts it on a later render, so its rows and focused cell stay. + - **One new export, `preloadGridField()`.** It starts loading the body ahead of the first grid. It is safe to call often, its promise settles once the body has loaded, and it never rejects: a failed load is reported by the grid that needs it, through the nearest error boundary. + - **The record forms wait for it.** `MasterDetailForm` and the record page's line-item editor derive a grid's columns from the child object's schema, and now show those columns only once the body has loaded as well, so on a form's first open the grid never shows the placeholder. `LineItemsPanel` starts the load when it mounts. + - **The helpers stay where they were.** `evalArith`, `computeRow`, `lookupAutofillPatch`, `columnHelpByField`, `UNTOUCHED_NEW_ROW`, `isUntouchedNewRow` and the `GridColumn`, `ColumnCurrencies` and `ColumnHelp` types are exported as before and load with the package. + - **The console loads it on demand.** The console's build puts the grid's body in a chunk of its own (`fields-grid`), loaded on demand, so its first load is about 6 KB (gzip) smaller. + - **The liveness ledger points at the helper's new file.** In `@objectstack/spec`, the evidence path for `lookupAutofill` in the field liveness ledger now names `widgets/GridField.ts`, where `lookupAutofillPatch` lives; the verdict does not change. + + A host that renders `GridField` or `LineItemsField` itself and needs the grid in its first render calls `preloadGridField()` earlier and waits for it, as the record forms do. No metadata key, value or default changes. +- 4f19091: fix(fields): a lookup pick that keeps an amount says so over a filled field too, a create form's opening fill no longer waits for ever on a parent it cannot read, and a pick that fills a currency code and an amount in it copies both + + Clause-②: no + Metadata-protocol: none + + Three follow-ups to the cross-currency pick rule (a pick copies an amount only into a field in the same currency). Nothing is converted, and no metadata changes. + + - **A pick over a filled amount says why it kept it.** When a pick would replace an amount that already holds a value (a re-pick in a line-item grid, or a declared pair with `overwrite: true`) and the picked amount is in another currency, the earlier value stays and the note now shows there too, ending "Unit Price still holds its earlier value." Before, the note showed only over an empty field, so the earlier product's price sat under the new product with nothing said. The note goes away once somebody edits the field. + - **The opening fill of a create form no longer waits for ever.** A form opened with a lookup already holding a record (a related list's New, a URL prefill) fills its declared targets from it. When an amount there follows the currency of a parent the record names, the fill waited for that parent's read and never ran if the read failed, the data source cannot read single records (`findOne`), or the form names no parent object. Now the wait ends when the read answers, fails or cannot run: the other targets (a description) fill, and the amount is left empty with the note "the currency here could not be read". + - **A pick that fills a code field and its amount together copies both.** An amount that follows the record's own code field (`currencyMode: 'record'`) is now judged against the line or record with the same pick's write to that code field applied, in the line-item grid and in the record form. Picking a product that carries `currency_code: EUR` and a price in it onto a fresh line now fills the code and the price, where the price was withheld with a "no currency is chosen" note beside the code the same pick had just written. + + Also in `@object-ui/fields`: new exports `declaredPickWrites`, `judgePickWrites`, `withheldStillStands` and the type `PickWrite`; `AmountCurrency` gains the kind `unread`, `WithheldAutofill` the reason `targetCurrencyUnread` and the optional `held` (the value a target kept); `amountCurrencyOf` takes an optional third argument, the pick's own writes; `AutofillCurrencyContext.targetCurrency` is handed them as an optional second argument. In `@object-ui/i18n`: two new `lookup.*` sentences, `autofillCurrencyUnread` and `autofillKept`, in every locale pack. In `@object-ui/plugin-form`: the record-form stamp's documentation lists the hosts the rule reaches; no behaviour changes there. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [a0b4ecf] +- Updated dependencies [d6d9645] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [c3fb37a] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [c9b3f7a] +- Updated dependencies [8e46424] +- Updated dependencies [8896822] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [dc53d4a] +- Updated dependencies [0739dee] +- Updated dependencies [ad15579] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [eed422e] +- Updated dependencies [2df9691] +- Updated dependencies [bfd6b6b] +- Updated dependencies [55020c3] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [6f2bd4f] +- Updated dependencies [99a0e4f] +- Updated dependencies [a9b36ef] +- Updated dependencies [9f352e8] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [fd471d3] +- Updated dependencies [1b2cd80] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [7702f09] +- Updated dependencies [05e0eb8] +- Updated dependencies [b863d2b] +- Updated dependencies [c890070] +- Updated dependencies [e75a528] +- Updated dependencies [5bd7257] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [58d00db] +- Updated dependencies [3819afe] +- Updated dependencies [61722e9] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [285ad8d] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [6a35635] +- Updated dependencies [9212119] +- Updated dependencies [cda16d4] +- Updated dependencies [9b3227f] +- Updated dependencies [fe75349] +- Updated dependencies [f4de1de] +- Updated dependencies [dab4712] +- Updated dependencies [141a826] +- Updated dependencies [8145424] +- Updated dependencies [53c9575] +- Updated dependencies [83a79e6] +- Updated dependencies [dda665f] +- Updated dependencies [98b3f87] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [ccded86] +- Updated dependencies [f7b172f] +- Updated dependencies [ec24363] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [e01b8be] +- Updated dependencies [238661f] +- Updated dependencies [d96c878] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [72d19c4] +- Updated dependencies [b0c624a] +- Updated dependencies [9b6db73] +- Updated dependencies [1e018d6] +- Updated dependencies [6d86b43] +- Updated dependencies [bae933b] +- Updated dependencies [a3a74f2] +- Updated dependencies [f98f18c] +- Updated dependencies [74d3d83] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [227a16a] +- Updated dependencies [de25d58] +- Updated dependencies [598a34d] +- Updated dependencies [0585797] +- Updated dependencies [811858c] +- Updated dependencies [fac1e7d] +- Updated dependencies [4609c48] +- Updated dependencies [8500ee7] +- Updated dependencies [a6607c7] +- Updated dependencies [c00be39] +- Updated dependencies [1c87956] +- Updated dependencies [5345905] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [f909734] +- Updated dependencies [cedc094] +- Updated dependencies [c9b0a23] +- Updated dependencies [f51578e] +- Updated dependencies [6b360ab] +- Updated dependencies [c7174c3] +- Updated dependencies [78f7160] +- Updated dependencies [bb1c55d] +- Updated dependencies [1d7015a] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [5a68b57] +- Updated dependencies [7de1bad] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [dea68e9] +- Updated dependencies [b113178] +- Updated dependencies [138faaa] +- Updated dependencies [411fe24] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [48c732c] +- Updated dependencies [52fb30c] +- Updated dependencies [8807dcb] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [9ed18a5] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [c261a7c] +- Updated dependencies [76cb366] +- Updated dependencies [32409a9] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [9f6f306] +- Updated dependencies [c757e07] +- Updated dependencies [a5a5312] +- Updated dependencies [c1b35c3] +- Updated dependencies [9a98a46] +- Updated dependencies [96b66ca] +- Updated dependencies [8c8ff0f] +- Updated dependencies [27e414b] +- Updated dependencies [eb53d63] +- Updated dependencies [dda5e74] +- Updated dependencies [f2a990b] +- Updated dependencies [035a12c] +- Updated dependencies [33d0169] +- Updated dependencies [a23164e] +- Updated dependencies [f3d0a9f] +- Updated dependencies [6aacad9] +- Updated dependencies [8aed508] +- Updated dependencies [a60740a] +- Updated dependencies [8c5a81e] +- Updated dependencies [43580a3] +- Updated dependencies [cc05e60] +- Updated dependencies [dc10b3b] +- Updated dependencies [dca608a] +- Updated dependencies [baf2678] +- Updated dependencies [13d1e95] +- Updated dependencies [15b7f51] +- Updated dependencies [c297dff] +- Updated dependencies [1cd4762] +- Updated dependencies [6db1dc2] +- Updated dependencies [9ae874a] +- Updated dependencies [3ae62ac] +- Updated dependencies [6c7c6db] +- Updated dependencies [eebb893] +- Updated dependencies [493ad09] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [3543b51] +- Updated dependencies [4ab2c82] +- Updated dependencies [04f9861] +- Updated dependencies [c30ce97] +- Updated dependencies [e605773] +- Updated dependencies [0628e08] +- Updated dependencies [713545f] +- Updated dependencies [cbd582f] +- Updated dependencies [031325d] +- Updated dependencies [1705ec9] +- Updated dependencies [b7fe94a] +- Updated dependencies [a2dc858] +- Updated dependencies [a6756a2] +- Updated dependencies [b3bcfef] +- Updated dependencies [aad35e6] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [71e02ff] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [5e8e243] +- Updated dependencies [4099ef2] +- Updated dependencies [6a73185] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [740720c] +- Updated dependencies [6e643cc] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [96b7975] +- Updated dependencies [e8b494a] +- Updated dependencies [bbc7e03] +- Updated dependencies [27895d7] +- Updated dependencies [543585d] +- Updated dependencies [7e89bc6] +- Updated dependencies [70194ff] +- Updated dependencies [42e4096] +- Updated dependencies [a10422d] +- Updated dependencies [1a2a8a9] +- Updated dependencies [24366ff] +- Updated dependencies [f2ef7d8] +- Updated dependencies [7a5ae65] +- Updated dependencies [17dbea4] +- Updated dependencies [ff60149] +- Updated dependencies [ee651ce] +- Updated dependencies [dad9b55] +- Updated dependencies [d076975] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [8a741ab] +- Updated dependencies [60e79ed] +- Updated dependencies [3cf6a44] +- Updated dependencies [5fecc22] +- Updated dependencies [595844b] +- Updated dependencies [4f19091] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [9c283a1] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [52971ff] +- Updated dependencies [06c3e5a] +- Updated dependencies [2da2979] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [ad50d61] +- Updated dependencies [50bfbb8] +- Updated dependencies [f26469a] +- Updated dependencies [7501d0c] +- Updated dependencies [4ef1ea9] +- Updated dependencies [41dd132] +- Updated dependencies [45ef94e] +- Updated dependencies [d7411fa] +- Updated dependencies [c6075a7] +- Updated dependencies [cd51dbb] +- Updated dependencies [3f568c1] +- Updated dependencies [573a376] +- Updated dependencies [5c2d5cf] +- Updated dependencies [cbc06ff] +- Updated dependencies [43916f3] +- Updated dependencies [f590f3e] +- Updated dependencies [9fa05c6] +- Updated dependencies [ed0edb1] +- Updated dependencies [a10987a] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [f77d078] +- Updated dependencies [3110de5] +- Updated dependencies [1948c5f] +- Updated dependencies [0e83fe0] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [9f84e5f] +- Updated dependencies [368deee] +- Updated dependencies [6156fdd] +- Updated dependencies [8644ce7] +- Updated dependencies [0d6589d] +- Updated dependencies [c54aa57] +- Updated dependencies [53257a5] +- Updated dependencies [8aecf6d] +- Updated dependencies [115d387] +- Updated dependencies [e0050ba] +- Updated dependencies [14f4d8f] +- Updated dependencies [8ddadc1] +- Updated dependencies [183ed23] +- Updated dependencies [a03bc4e] +- Updated dependencies [4d4ec16] +- Updated dependencies [d763ee7] +- Updated dependencies [8018e00] +- Updated dependencies [844218f] +- Updated dependencies [8cce05b] +- Updated dependencies [0d727b7] +- Updated dependencies [ff0d1f1] +- Updated dependencies [4f7d6f7] +- Updated dependencies [b848b47] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [47ed85d] +- Updated dependencies [0819cab] +- Updated dependencies [97e0f93] +- Updated dependencies [c8d4b90] +- Updated dependencies [00aa574] +- Updated dependencies [69c3dc4] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [62692b7] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [49c6bf3] +- Updated dependencies [4f9a3f8] +- Updated dependencies [00dd362] +- Updated dependencies [1cda7ea] +- Updated dependencies [bac4864] +- Updated dependencies [8c29b81] +- Updated dependencies [a68b475] +- Updated dependencies [c75453e] +- Updated dependencies [1e96009] +- Updated dependencies [57445a6] +- Updated dependencies [01967c3] +- Updated dependencies [0212714] +- Updated dependencies [15d2766] +- Updated dependencies [1f3e9f6] +- Updated dependencies [8b1841f] +- Updated dependencies [305fe60] +- Updated dependencies [e91149e] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [706c8c6] +- Updated dependencies [c063734] +- Updated dependencies [c0dd417] +- Updated dependencies [0439a04] +- Updated dependencies [517e415] +- Updated dependencies [f92d271] +- Updated dependencies [6ddb97b] +- Updated dependencies [2af9729] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [6161010] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [b89f1b5] +- Updated dependencies [372ce7c] +- Updated dependencies [3aa008d] +- Updated dependencies [7d3b8d6] +- Updated dependencies [15f8357] +- Updated dependencies [378c955] +- Updated dependencies [56fa31b] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [39e9a82] +- Updated dependencies [9c5fb3e] +- Updated dependencies [abb5449] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @object-ui/i18n@18.7.0 + - @object-ui/fields@18.7.0 + - @object-ui/types@18.7.0 + - @object-ui/core@18.7.0 + - @object-ui/components@18.7.0 + - @object-ui/react@18.7.0 + - @object-ui/permissions@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/ui/packages/plugin-form/package.json b/ui/packages/plugin-form/package.json index 6efc9f9ecc6..18ffb0a7989 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": "18.6.0", + "version": "18.7.0", "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 16a35724877..19459403f5a 100644 --- a/ui/packages/plugin-gantt/CHANGELOG.md +++ b/ui/packages/plugin-gantt/CHANGELOG.md @@ -1,5 +1,453 @@ # @object-ui/plugin-gantt +## 18.7.0 + +### Patch Changes + +- c2922e4: fix(plugin-gantt): a refused task read draws the no-access state, not the raw error + + Clause-②: no + Metadata-protocol: none + + A reader who may open a record but is not granted the records its Gantt chart reads (for example a project page whose task object the role cannot read) saw the transport's own string where the chart would be, untranslated: `Error: ApiDataSource: HTTP 403 Forbidden — {…}`. The chart now classifies a failed load with the shared load-error verdict the list page and the related list use, and for a permission refusal (a 403, or a `PERMISSION_DENIED` / `FORBIDDEN` code) draws the calm no-access state those surfaces draw: a neutral status panel with the shared `list.loadErrorForbiddenTitle` / `list.loadErrorForbiddenMessage` sentence in the reader's language, and none of the server's text. Every other failure (a 500, a dropped connection) keeps the existing error screen. +- 227a16a: fix(ui): danger text is readable in dark theme + + Clause-②: no + Metadata-protocol: none + + In dark theme, `text-destructive` (a menu's Delete, error messages, danger links) used the deep red that is the fill of red buttons, about 1.6:1 on a dark menu. Text utilities now read their own token: each shipped `@theme` maps `--text-color-destructive` to `--destructive-text`, which only `.dark` defines (a brighter red that clears 4.5:1 on every dark surface). Light theme leaves it unset and falls back to `--destructive`, so it is unchanged; `bg-`, `border-` and `ring-destructive` and red buttons keep `--destructive`. New apps from `objectui init` carry the same split, and the Gantt resource view's over-capacity label reads the text token. A host that overrides `--destructive` for its own dark theme can set `--destructive-text` beside it. +- 3aa008d: fix(gantt): a gantt opens on a host that sets a maximum page size, instead of showing the refusal + + Clause-②: no + Metadata-protocol: none + + The gantt read its whole filtered result set, up to its 10,000-row ceiling, as ONE read of 10,001 rows (the ceiling plus the probe row that makes a cut detectable). A host that sets a maximum page size (`OS_DATA_MAX_PAGE_SIZE`; the hosted plane sets 5,000) refuses any read over it before running the query, so on every such host the gantt drew "Query parameter 'top' asks for 10001 rows; this deployment's maximum page size is 5000…" in place of the chart, for an empty object as much as a full one. + + The gantt now asks no single read for more than 2,001 rows, the one read the calendar, map, tree and timesheet already send. A result set that fits that read is one read, as before. A larger one is walked from the top in steps of that size under a unique order (the authored sort with `id` appended as the tie-breaker) and kept once per row, so a step can neither repeat nor skip a row; the walk stops at the first short answer or one row past the ceiling. The ceiling, the footnote that names a cut, and the rule that an authored `pagination.pageSize` or `limit` never reaches the read are unchanged. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [2b57044] +- Updated dependencies [52a2398] +- Updated dependencies [a0b4ecf] +- Updated dependencies [ee5fdc8] +- Updated dependencies [d6d9645] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [c3fb37a] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [c9b3f7a] +- Updated dependencies [8e46424] +- Updated dependencies [8896822] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [dc53d4a] +- Updated dependencies [0739dee] +- Updated dependencies [ad15579] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [eed422e] +- Updated dependencies [2df9691] +- Updated dependencies [bfd6b6b] +- Updated dependencies [55020c3] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [6f2bd4f] +- Updated dependencies [99a0e4f] +- Updated dependencies [a9b36ef] +- Updated dependencies [9f352e8] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [fd471d3] +- Updated dependencies [1b2cd80] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [f2078e3] +- Updated dependencies [7702f09] +- Updated dependencies [05e0eb8] +- Updated dependencies [b863d2b] +- Updated dependencies [c890070] +- Updated dependencies [e75a528] +- Updated dependencies [5bd7257] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [34308dc] +- Updated dependencies [eb1f85d] +- Updated dependencies [58d00db] +- Updated dependencies [3819afe] +- Updated dependencies [a5ddeb6] +- Updated dependencies [61722e9] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [285ad8d] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [6a35635] +- Updated dependencies [9212119] +- Updated dependencies [cda16d4] +- Updated dependencies [9b3227f] +- Updated dependencies [fe75349] +- Updated dependencies [f4de1de] +- Updated dependencies [dab4712] +- Updated dependencies [141a826] +- Updated dependencies [8145424] +- Updated dependencies [b65488a] +- Updated dependencies [53c9575] +- Updated dependencies [83a79e6] +- Updated dependencies [dda665f] +- Updated dependencies [98b3f87] +- Updated dependencies [46ad134] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [ccded86] +- Updated dependencies [f7b172f] +- Updated dependencies [ec24363] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [e01b8be] +- Updated dependencies [238661f] +- Updated dependencies [d96c878] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [72d19c4] +- Updated dependencies [b0c624a] +- Updated dependencies [9b6db73] +- Updated dependencies [1e018d6] +- Updated dependencies [6d86b43] +- Updated dependencies [bae933b] +- Updated dependencies [a3a74f2] +- Updated dependencies [f98f18c] +- Updated dependencies [74d3d83] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [227a16a] +- Updated dependencies [de25d58] +- Updated dependencies [598a34d] +- Updated dependencies [0585797] +- Updated dependencies [811858c] +- Updated dependencies [fac1e7d] +- Updated dependencies [4609c48] +- Updated dependencies [8500ee7] +- Updated dependencies [a6607c7] +- Updated dependencies [c00be39] +- Updated dependencies [1c87956] +- Updated dependencies [5345905] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [f909734] +- Updated dependencies [cedc094] +- Updated dependencies [a03c3d4] +- Updated dependencies [c9b0a23] +- Updated dependencies [a8126d2] +- Updated dependencies [f51578e] +- Updated dependencies [65fddc8] +- Updated dependencies [6b360ab] +- Updated dependencies [d19d875] +- Updated dependencies [c7174c3] +- Updated dependencies [78f7160] +- Updated dependencies [bb1c55d] +- Updated dependencies [1d7015a] +- Updated dependencies [d7c257e] +- Updated dependencies [9972432] +- Updated dependencies [40e22f1] +- Updated dependencies [5a68b57] +- Updated dependencies [fddb9cb] +- Updated dependencies [647eb92] +- Updated dependencies [7de1bad] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [dea68e9] +- Updated dependencies [b113178] +- Updated dependencies [138faaa] +- Updated dependencies [411fe24] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [48c732c] +- Updated dependencies [52fb30c] +- Updated dependencies [8807dcb] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [9ed18a5] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [c261a7c] +- Updated dependencies [76cb366] +- Updated dependencies [32409a9] +- Updated dependencies [cf45e4f] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [9f6f306] +- Updated dependencies [c757e07] +- Updated dependencies [a5a5312] +- Updated dependencies [c1b35c3] +- Updated dependencies [9a98a46] +- Updated dependencies [96b66ca] +- Updated dependencies [8c8ff0f] +- Updated dependencies [27e414b] +- Updated dependencies [eb53d63] +- Updated dependencies [dda5e74] +- Updated dependencies [f2a990b] +- Updated dependencies [035a12c] +- Updated dependencies [33d0169] +- Updated dependencies [a23164e] +- Updated dependencies [f3d0a9f] +- Updated dependencies [6aacad9] +- Updated dependencies [0d0ed81] +- Updated dependencies [8aed508] +- Updated dependencies [a60740a] +- Updated dependencies [8c5a81e] +- Updated dependencies [43580a3] +- Updated dependencies [cc05e60] +- Updated dependencies [dc10b3b] +- Updated dependencies [dca608a] +- Updated dependencies [baf2678] +- Updated dependencies [13d1e95] +- Updated dependencies [15b7f51] +- Updated dependencies [c297dff] +- Updated dependencies [1cd4762] +- Updated dependencies [3f7fdd0] +- Updated dependencies [6db1dc2] +- Updated dependencies [9ae874a] +- Updated dependencies [3ae62ac] +- Updated dependencies [6c7c6db] +- Updated dependencies [eebb893] +- Updated dependencies [493ad09] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [3543b51] +- Updated dependencies [4ab2c82] +- Updated dependencies [04f9861] +- Updated dependencies [c30ce97] +- Updated dependencies [28749e3] +- Updated dependencies [e605773] +- Updated dependencies [0628e08] +- Updated dependencies [713545f] +- Updated dependencies [cbd582f] +- Updated dependencies [031325d] +- Updated dependencies [1705ec9] +- Updated dependencies [b7fe94a] +- Updated dependencies [a2dc858] +- Updated dependencies [a6756a2] +- Updated dependencies [b3bcfef] +- Updated dependencies [aad35e6] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [71e02ff] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [28ba01f] +- Updated dependencies [5e8e243] +- Updated dependencies [4099ef2] +- Updated dependencies [8466fca] +- Updated dependencies [e3054b4] +- Updated dependencies [6a73185] +- Updated dependencies [0d2bb8d] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [740720c] +- Updated dependencies [6e643cc] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [96b7975] +- Updated dependencies [e8b494a] +- Updated dependencies [bbc7e03] +- Updated dependencies [27895d7] +- Updated dependencies [543585d] +- Updated dependencies [7e89bc6] +- Updated dependencies [70194ff] +- Updated dependencies [42e4096] +- Updated dependencies [a10422d] +- Updated dependencies [dcc9b07] +- Updated dependencies [1a2a8a9] +- Updated dependencies [24366ff] +- Updated dependencies [f2ef7d8] +- Updated dependencies [7a5ae65] +- Updated dependencies [17dbea4] +- Updated dependencies [ff60149] +- Updated dependencies [ee651ce] +- Updated dependencies [dad9b55] +- Updated dependencies [d076975] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [8a741ab] +- Updated dependencies [60e79ed] +- Updated dependencies [3cf6a44] +- Updated dependencies [5fecc22] +- Updated dependencies [595844b] +- Updated dependencies [53733c1] +- Updated dependencies [4f19091] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [9c283a1] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [52971ff] +- Updated dependencies [06c3e5a] +- Updated dependencies [2da2979] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [e4e3bcf] +- Updated dependencies [ad50d61] +- Updated dependencies [87c7bba] +- Updated dependencies [50bfbb8] +- Updated dependencies [f26469a] +- Updated dependencies [7501d0c] +- Updated dependencies [4ef1ea9] +- Updated dependencies [cb909d7] +- Updated dependencies [41dd132] +- Updated dependencies [45ef94e] +- Updated dependencies [d7411fa] +- Updated dependencies [c6075a7] +- Updated dependencies [cd51dbb] +- Updated dependencies [3f568c1] +- Updated dependencies [573a376] +- Updated dependencies [5c2d5cf] +- Updated dependencies [cbc06ff] +- Updated dependencies [43916f3] +- Updated dependencies [f590f3e] +- Updated dependencies [9fa05c6] +- Updated dependencies [ed0edb1] +- Updated dependencies [a10987a] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [f77d078] +- Updated dependencies [3110de5] +- Updated dependencies [1948c5f] +- Updated dependencies [0e83fe0] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [9f84e5f] +- Updated dependencies [368deee] +- Updated dependencies [6156fdd] +- Updated dependencies [8644ce7] +- Updated dependencies [0d6589d] +- Updated dependencies [c54aa57] +- Updated dependencies [53257a5] +- Updated dependencies [8aecf6d] +- Updated dependencies [03cb550] +- Updated dependencies [115d387] +- Updated dependencies [e0050ba] +- Updated dependencies [2f8e8ba] +- Updated dependencies [14f4d8f] +- Updated dependencies [fa23941] +- Updated dependencies [8ddadc1] +- Updated dependencies [183ed23] +- Updated dependencies [a03bc4e] +- Updated dependencies [4d4ec16] +- Updated dependencies [d763ee7] +- Updated dependencies [8018e00] +- Updated dependencies [844218f] +- Updated dependencies [8cce05b] +- Updated dependencies [0d727b7] +- Updated dependencies [ff0d1f1] +- Updated dependencies [4f7d6f7] +- Updated dependencies [b848b47] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [47ed85d] +- Updated dependencies [0819cab] +- Updated dependencies [97e0f93] +- Updated dependencies [c8d4b90] +- Updated dependencies [00aa574] +- Updated dependencies [69c3dc4] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [b3d953e] +- Updated dependencies [62692b7] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [49c6bf3] +- Updated dependencies [4f9a3f8] +- Updated dependencies [00dd362] +- Updated dependencies [1cda7ea] +- Updated dependencies [bac4864] +- Updated dependencies [8c29b81] +- Updated dependencies [a68b475] +- Updated dependencies [c75453e] +- Updated dependencies [1e96009] +- Updated dependencies [57445a6] +- Updated dependencies [01967c3] +- Updated dependencies [0212714] +- Updated dependencies [15d2766] +- Updated dependencies [1f3e9f6] +- Updated dependencies [8b1841f] +- Updated dependencies [305fe60] +- Updated dependencies [e91149e] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [706c8c6] +- Updated dependencies [c063734] +- Updated dependencies [c0dd417] +- Updated dependencies [0439a04] +- Updated dependencies [517e415] +- Updated dependencies [f92d271] +- Updated dependencies [6ddb97b] +- Updated dependencies [2af9729] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [6161010] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [b89f1b5] +- Updated dependencies [372ce7c] +- Updated dependencies [3aa008d] +- Updated dependencies [7d3b8d6] +- Updated dependencies [15f8357] +- Updated dependencies [378c955] +- Updated dependencies [56fa31b] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [39e9a82] +- Updated dependencies [9c5fb3e] +- Updated dependencies [abb5449] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @object-ui/plugin-detail@18.7.0 + - @object-ui/i18n@18.7.0 + - @object-ui/fields@18.7.0 + - @object-ui/types@18.7.0 + - @object-ui/core@18.7.0 + - @object-ui/components@18.7.0 + - @object-ui/react@18.7.0 + - @object-ui/permissions@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/ui/packages/plugin-gantt/package.json b/ui/packages/plugin-gantt/package.json index 0647a93a967..ec9b6c1e44e 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": "18.6.0", + "version": "18.7.0", "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 86c72f5a745..e746fc6db7d 100644 --- a/ui/packages/plugin-grid/CHANGELOG.md +++ b/ui/packages/plugin-grid/CHANGELOG.md @@ -1,5 +1,1129 @@ # @object-ui/plugin-grid +## 18.7.0 + +### Minor Changes + +- f98f18c: feat: an object's `userActions.exportCsv: false` hides the console's Export entry + + Clause-②: yes + Metadata-protocol: semantic + + `userActions.exportCsv` on an object now does what the Studio object form says it does. Set to `false`, the console offers no Export entry for downloading that object's data, in any of its formats (CSV, XLSX, JSON): + + - the object grid hides its toolbar Export menu, and the table's own CSV button that `operations.export: true` turns on; + - the list view hides Export in both toolbar forms, the wide toolbar's button and the Display panel's export footer; + - a dataset report hides its Export control when the dataset's base object sets it. + + A view's export of the picture it draws is not covered: a Gantt view's PNG and PDF buttons stay. + + Every surface reads one verdict, the new `isObjectExportOffered(objectSchema, effectiveApiOperations)` from `@object-ui/core`: the authored `exportCsv` over the object's `managedBy` default, ANDed with the caller's effective `export` API operation. Before this change the grid's toolbar menu, the list view and the report read the effective operation but not the object's bit, and the grid's table CSV button read neither half (only `operations.export`), so `exportCsv: false` changed nothing. Export is a read, so the verdict is not a row of `AFFORDANCE_GRANTS` and asks no `can(object, verb)`: the caller's export grant reaches the console through the effective `export` operation, which the server derives from `list` and `allowExport`. + + An object that does not author the key keeps its Export entries, since every `managedBy` bucket still defaults `exportCsv` to `true` (ADR-0103), with one change: the grid's table CSV button (`operations.export: true`) now also follows the effective `export` operation, as the toolbar menu beside it already did. So a viewer whose effective operations exclude `export` no longer sees that button, even on an object that authors nothing. The setting hides the entry and is not a permission: no export request is refused because of it, and who may export is still the permission set's `allowExport`. The report reads the base object's definition through the report's data source, and a report whose source cannot serve one keeps its Export control. + + The spec's `exportCsv` description and the Studio form's help text now say this; the form's English help text bundle in `@objectstack/platform-objects` is regenerated to match, and the translated locales keep their wording. The liveness ledger grades `userActions.exportCsv` `live`, so an authored `exportCsv: true` no longer raises the `liveness-dead-property` warning at `os lint` / `os validate`. Nothing needs migrating. +- 811858c: feat(list): a list's cells are selected by a click and edited by a double-click, Enter or typing, with no inline-edit toggle + + Clause-②: yes (widening) + Metadata-protocol: semantic + Skills-docs: none — `skills/objectstack-ui/rules/list-views.md` already teaches that inline editing is on by default for a user who may update the object, with `userActions: { editInline: false }` as the opt-out, which the list page now does with no toggle; no skill teaches the toggle or a single-click edit. + + **The list page (`ListView`) has no inline-edit mode and no toggle.** Its grid is editable in place wherever the reader may update the object and the view does not declare `userActions.editInline: false`; a view's boolean `inlineEdit` still folds into that switch, so `inlineEdit: false` reads off and `inlineEdit: true` reads on. Before, a view that declared neither opened read-only with an "Edit inline" toggle in the toolbar and in the Display menu, the mode lasted for the session, and a click on a cell edited it. Both toggles are gone, and `ListViewProps.onInlineEditChange` is deprecated and never called; the console stops passing it. + + **The select-first cell model** (`data-table`, behind the new `GridCellSelectionProvider` in `@object-ui/components`; `ObjectGrid` mounts it when its host passes the new `cellSelection` prop, and `ListView` passes it for every `object-grid` view it draws, on the hosts listed below): + + - A click selects a cell (a ring around it) and neither edits it nor opens the record. A link the cell draws (the name, a lookup, a phone or an email) keeps its own click. A touch tap opens the record and never edits in place. + - Double-click, Enter or F2 edits, keeping the value with the caret at its end; typing a character replaces the value with it (a picker or a date opens instead); Backspace or Delete clears the cell and saves at once, and a required field keeps its value and says it is required (objectstack#36023). + - While editing, Enter commits and stays on the cell (objectstack#36023), Tab and Shift+Tab commit and move right and left, Escape cancels and keeps the cell selected; in a multi-line editor Enter is a new line and Ctrl/Cmd+Enter commits. Commits are the grid's staged edits, saved by the row's Save and Save All as before. + - On the selected cell the arrows and Tab move the selection, Space opens the record (a checkbox cell flips and commits instead, as a second click on it does), Ctrl/Cmd+C copies, Ctrl/Cmd+V converts the text to the field's type and commits it, and Escape clears the selection. + - An input method's composition is kept whole: keys pressed while composing, and the 229 Enter Safari raises after it, never commit, cancel or move, and a composition started on a selected cell opens the editor with the composed text. This guard applies to every `data-table` editor. + - A cell that opens no editor says why on the cell: the field is read-only, calculated or not editable in a list, the reader may not edit the field, these records or this record, the view turned editing off, or the record is locked by an approval. The approval lock is read from the approvals service's per-record lock when a cell of the row is selected, through the record page's rule (`resolveApprovalLock`); until it answers, the row's `approval_status` stands in only where the view fetches that column, which a view that authors its columns does only when a column, a row predicate or a grouping names it. + + Every grid a `ListView` draws has this model, because `ListView` passes `cellSelection` to each `object-grid` view: the console's object list pages, interface list pages, the object data page (`/apps/:app/:object/data`), the Studio Data pillar's records artboard, and every `list-view` block, whether an SDUI page node or a `ListView` on a `kind: 'react'` page; a grid no `ListView` draws mounts no provider and keeps its click-to-edit (`singleClickEdit`) and click-to-open behaviour unchanged: an authored `object-grid` node, `ObjectView`'s own grid (the `object-view` block, or a host that passes no `renderListView`), a related list, a dashboard table, the record picker and the designer's grids. + + On every `ListView` grid (the select-first model) the table's trailing edit column, which holds a changed row's Cancel and Save, is drawn only while a row has changes, so the list at rest ends on its last data column. `@object-ui/core` exports `resolveAffordanceGrant`, the grant half of `resolveAffordance`, which the list cell's read-only reason reads. + + New locale keys, in every pack: `table.cellReadOnly` and `grid.readOnlyReason.*` (nine reasons). No key is removed: `list.inlineEditShort` and `list.inlineEditLabel`, the toggle's words, stay in every pack, though the list no longer draws the toggle. +- f3a8a13: feat(spec,ui)!: every grid that renders editable selects a cell first and saves each cell on its own, and `object-grid`'s `singleClickEdit` is retired + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + + <!-- adr-0087: registered object-grid-single-click-edit-removed, object-grid-single-click-edit-retired --> + + **BREAKING** accept-set narrowing on the `object-grid` page block (`@objectstack/spec`, `ComponentPropsMap['object-grid'].singleClickEdit`) and on `@object-ui/types` (`ObjectGridSchema.singleClickEdit`, and the `object-view` `table` slot that relayed it), with the grids following it in the same release. + + - **Now.** A grid that renders editable (`editable` set and the viewer allowed to edit the object) uses the list page's select-first cell model wherever it is drawn: the grid an `object-view` draws itself (the Studio's view preview, a page that places an `object-view`) and an authored `object-grid` node. A click selects a cell; double-click, Enter, F2 or typing opens its editor; Esc cancels; and each committed cell is saved at once as one update for its record. The pending-changes bar, its "Save All" and "Cancel All" buttons and the per-row save column are no longer drawn there. On a touch screen a tap on these grids opens the record, and a touch never edits a cell in place. + - **Unchanged.** A grid that renders read-only keeps its click-to-open row. Neither `editable` nor a view's `inlineEdit` can open editing that the object or the reader's `update` grant refuses, and a refused cell now says why when it is asked to edit, as on the list page. A React host that draws `ObjectGrid` itself can still pass `cellSelection={false}` to keep the staged model with its Save All bar. + - **`keyboardNavigation` narrowed to what is enforced.** On a grid that renders editable the arrow-key navigation is always on, because the selection moves with those keys; `false` no longer turns it off there. On a read-only grid `true` still turns it on. + + | FROM | TO | + |:--|:--| + | `object-grid` `properties.singleClickEdit: true` (or absent: the old default) | delete the key; a click selects the cell and double-click, Enter, F2 or typing opens its editor | + | `object-grid` `properties.singleClickEdit: false` | delete the key; double-click still opens the editor | + | `object-view` `table.singleClickEdit` | delete the key | + | a React host passing `ObjectGrid` `onBatchSave` alone (no `onRowSave`, no `cellSelection`) on an editable grid: "Save All" called it | each cell now saves through `onRowSave`, or through the grid's own `dataSource.update` when there is none, and `onBatchSave` is never called. Pass `onRowSave` to own the write per cell, or pass `cellSelection={false}` to keep the staged model, where `onBatchSave` is still called. The prop is marked `@deprecated` | + + The one-line fix: delete `singleClickEdit` wherever it is written; `os migrate meta --from 17 --write` deletes it from page sources. Writing it after upgrade fails `tsc` (the input type is `never`) and fails the parse with that prescription. + + The retirement kit: + + - **`@objectstack/spec`**: `singleClickEdit` is a `retiredKey()` tombstone on `ObjectGridPropsSchema`, registered in `RETIRED_KEYS_BY_MAJOR[18]` as `ui/ObjectGridProps:singleClickEdit`. The D2 conversion `object-grid-single-click-edit-removed` deletes it from `object-grid` components (top-level regions, nested `children` and named slots), whatever its value, and the D3 entry `object-grid-single-click-edit-retired` names what the upgrade still owes: help text and tests that describe the old gestures. `keyboardNavigation`'s describe says what is enforced. The liveness ledger records the retirement and the narrowed read. + - **`@object-ui/types`**: `ObjectGridSchema.singleClickEdit` is `?: never` with a `retirementTombstone()` twin, and the `object-view` `table` slot inherits it. `DataTableSchema.singleClickEdit`, a flag a host sets in code, is unchanged. + - **`@object-ui/plugin-grid`**: `ObjectGrid` turns the select-first model on wherever the grid renders editable (a host's `cellSelection` still wins), and no longer reads `singleClickEdit`. The `object-grid` inputs no longer list it. `ObjectGridComponentProps.onBatchSave` is `@deprecated`: it is called only under the staged model. + - **`@object-ui/plugin-view`**: `table.singleClickEdit` is no longer relayed to the grid. + +### Patch Changes + +- 1c05546: feat(plugin-grid): an aggregate bulk action that resolves with a `BulkActionResult` is reported per row: the rows it moved, the rows it refused with its own reasons, and the rows it did not confirm + + Clause-②: yes + Metadata-protocol: none + + The grid's bulk executor now reads the resolve value of an `execution: 'aggregate'` bulk handler. When it is a `BulkActionResult` (`{ succeeded: string[], failed: { id, message }[] }`, `BulkActionResultSchema` in `@objectstack/spec/ui`), the result panel shows how many selected rows were moved, lists each refused row under its record with the handler's `message` (and in the error CSV), and lists every selected row the result names in neither list as "not confirmed", never as succeeded. Ids are read against the dispatched `params._selectedIds`: an id outside the selection is dropped, a duplicate counts once, an id in both lists counts as failed, and when one id is in `failed` twice the first entry's message wins. A rejection is unchanged: it stays one outcome for the whole selection. + + A handler that partly succeeds no longer has to reject to avoid being reported as full success: resolve with the per-row answer instead. The `[PLANNED — not enforced]` marker is removed from `BulkActionResultSchema`'s description and its reference page, and the "all-or-nothing" wording is removed from the `bulkActionDefs` description (`@objectstack/spec`) and the `BulkActionDef.execution` TSDoc (`@object-ui/types`). + + **Declared behaviour change.** An existing aggregate handler whose own return value carries a top-level `succeeded` or `failed` member in another form (for example counts, `{ succeeded: 2, failed: 1 }`, or only one of the two lists) was reported as full success and is now reported as "unreadable": the panel says the action finished but its result could not be read, prints no per-row count, and the grid re-reads its rows when the dialog closes. To keep the success report, return a value with neither member (a summary under another name), or return both lists in the `BulkActionResult` shape. A handler that returns nothing, or a value with neither member, keeps today's report. + + The widening is additive: three new keys in every locale pack `@object-ui/i18n` publishes (`grid.bulk.resultNotConfirmed`, `grid.bulk.notConfirmedRecords`, `grid.bulk.aggregateUnreadable`). No metadata key, value or default changes. +- 99a0e4f: fix(ui): grouping headers and the filter value picker name a lookup by its target's `nameField`, and the empty group is translated + + Clause-②: yes (widening) + Metadata-protocol: none + + A lookup with no `displayField` is now named by the target object's declared `nameField`, the default the spec states for `displayField` ("the referenced object's name/title"). This is the same title the lookup's grid cell and the record header already show. Before, three places guessed a `name`, `label` or `title` key, and showed the raw record id when the target had none, for example a target titled by an autonumber such as `DEAL-2026-0001`: + + - **Group headers of a list grouped by the lookup**, both server-grouped and client-grouped. + - **Filter builder value picker options** for the lookup, and the chip of the chosen value. + + An explicit `displayField` on the lookup still wins. Grouping and filtering stay keyed by record id, so two records with the same title stay separate groups and separate options. The picker reads the target object's definition once per picker. The ObjectStack adapter serves later reads of it from its metadata cache. + + The group of rows with no value now reads the grid's own empty-value string (`grid.empty`, for example "Empty" in English and "空" in Chinese) instead of the untranslated `(empty)`. It keeps its place in the group order: first when ascending and last when descending. + + `@object-ui/core` adds `referencedRecordTitle(targetDef, record, displayField?)` to its public entry, a new export. It gives the title of a referenced record using the lookup's `displayField`, then the record-title ladder of `getRecordDisplayName`, and returns `undefined` instead of the `Record #<id>` floor. +- 0ce2598: fix(plugin-grid): a grid row's Edit or Delete greyed by `userActions.*.disabledWhen` says why + + Clause-②: no + Metadata-protocol: none + + When an object's `userActions.edit.disabledWhen` (or `delete.disabledWhen`) held on a row, the list grid's row menu greyed Edit (or Delete) and said nothing about why. The item now gives the generic reason the record page and the data-table row give for the same verdict ("Not available for this record", in every shipped language) as a visible second line under its label and as its accessible description; its accessible name stays the label. An item that is on, with no predicate or with a predicate that does not hold, gives no reason, as before; neither does an item greyed only while its record-grained permission verdict is still loading. +- 6a35635: feat(console): Change Owner on the record page, in a list's selection bar, and beside the read-only owner of the edit form + + Clause-②: yes (widening) + Metadata-protocol: none + + A record whose object offers Change Owner now shows a **Change Owner** action in its page header. The action appears only where three things hold: the object can have its owner changed (it has a per-person owner that is not pinned read-only), the object's `userActions.transfer` switch is on, and the server's explain engine allows this user to transfer this record. A `controlled_by_parent` detail offers the action only once its author turns the switch on. Objects with `ownership: 'none'`, `managedBy` objects and `sys_*` objects never offer it, even to a platform admin. + + The action opens one dialog. You pick the new owner under the object's own label for its owner field. Where the object has an ownership queue, you can pick a queue instead. You can also ask that the new owner be notified. The dialog sends the change through `data.changeOwner` for one record and `data.changeOwnerMany` for several. Picking the record's current owner is refused in the dialog with the reason shown. A bulk change ends with a report: how many records moved, how many already had that owner, how many did not move, and each row that did not move with the server's own reason. + + A list's selection bar offers **Change Owner** for the selected rows, where the object's switch is on and the explain engine allows this user to transfer the object's records (one question per object, not per row, asked once a selection is open rather than when the list opens). The rows of such an object take a selection even when the user has no bulk Delete and the view authors no bulk actions, so the entry can be reached at all; where the verdict refuses, the bar draws no Change Owner. The server judges every row again. Rows that the switch's `visibleWhen` excludes are left out of the request, and the dialog says how many were left out. + + The Console's edit form now shows the owner, read-only, above the form's fields, with Change Owner beside it when it is offered. The owner field is still not part of what the form saves. Forms embedded outside the Console are unchanged: the owner line appears only where a host mounts `FormOwnerLineContext` (exported from `@object-ui/plugin-form` and `@object-ui/plugin-form/core`). + + New public surface, all additive: + + - `@object-ui/plugin-grid`: `ObjectGrid` takes two new optional props, `onBulkChangeOwner` (wiring it makes the rows selectable and adds the entry) and `bulkChangeOwnerOffered` (`false` holds the entry back while the rows stay selectable); the package exports the action name `CHANGE_OWNER_BULK_ACTION`. + - `@object-ui/plugin-list`: `ListView` takes and forwards both props. + - `@object-ui/plugin-form`: new exports `FormOwnerLine`, `FormOwnerLineProps`, `FormOwnerLineContext`, `FormOwnerActionTarget` and `FormOwnerLineHost`; `@object-ui/plugin-form/core` exports `FormOwnerLineContext`, `FormOwnerActionTarget` and `FormOwnerLineHost`. + - `@object-ui/plugin-detail`: `RecordOperation` gains `'transfer'`, so `useRecordVerdict` and `seedRecordVerdict` accept it. + - `@object-ui/i18n`: every console locale gains `grid.changeOwner` and the `console.changeOwner.*` block. +- dda665f: fix(grid): a list in a narrowed main area keeps every data cell clear of its fixed columns, shows its horizontal scrollbar, and draws a short header + + Clause-②: no + Metadata-protocol: none + + - **Row actions column.** While a list's table is wider than its box (the AI panel docked, a small window, the record drawer open), the row actions column (the row's "⋮") is drawn right after the frozen name column and frozen with it, instead of pinned to the right edge, where it covered the data column reaching that edge (an amount cut to 「¥94,0」). Every data column then scrolls sideways under the frozen columns, and none is covered at rest. Once the box is wide enough for the whole table again, the column goes back to the right edge, so a list that fits looks as before. Inline primary row actions still fold into the "⋮" menu first, as before. Columns an author pinned to the right stay where the author put them; the grouped list is unchanged. + - **Horizontal scrollbar.** A table wider than its box draws its scrollbar at rest instead of only while the pointer is over it, so columns out of view are announced. A table that fits keeps the scrollbar that shows on hover. + - **List header.** While the list page's header is narrower than 768 px, it draws no description, and Import moves into the 「⋯」 menu beside New. A wider header is unchanged. This is opt-in: the console `PageHeader` gains `compactBelow` (a width in px; below it the one-row header drops its description and draws its folded actions), which only the list page passes, so other pages that use `PageHeader` are unchanged. Setup's two-line header ignores it. + - No column is hidden and no column configuration changes. +- e01b8be: feat(console): the list page's frame — a 44px page bar, a 40px view bar, a denser grid and per-column totals in the grid's own last row + + Clause-②: no + Metadata-protocol: none + + The object list page is redrawn around two bars and a denser grid (objectstack#35548, the first card of the list-page epic): + + - **Page bar, 44px.** The object's icon in one colour and its name on the left; ⋮ and 「+ 新建」 on the right. The object's description, Import and Favorite moved into ⋮. + - **View bar, 40px.** The view switcher is one trigger on the left, reading the view type's icon, the view name, the record count and a caret (the count beside the name returns, after objectstack#34603 removed it). 「筛选」「排序」「选项」 are text buttons on the right beside the search icon, and open the same panels as before; below `sm` they stay icons. The kanban and every other view type draw the same two bars. An empty condition row under the bar takes no height. + - **Grid.** A 32px header and 33px default rows, 13px on the header, the cells and the bar buttons, faint row lines, no rule after the first column, and the frozen-column shadow only once the grid scrolls sideways. The row ⋮ trigger is 24px so it fits the row. Lookup values read as small chips, money and number columns (a money formula with `returnType: 'currency'` among them) align right with tabular digits, and select labels keep their colour at lower saturation. + - **Totals.** Column summaries are drawn as the table's own last row, each figure under its column (so they line up at any width and are never covered by pinned columns), led by 「计数 N」; the separate footer line and its doubled colon are gone. + + `DataTableSchema` gains one host-only runtime slot, `summaryRow` (`{ lead?, cells }`), which `ObjectGrid` fills; like `rowGroups`, the zod face refuses it by name, so it is not authorable. New locale keys: `list.options`, `grid.summary.countLead`. +- d96c878: feat(list): the object list page has no Actions column; a selection swaps the page bar, and a list with no declared pagination loads as it scrolls + + Clause-②: no + Metadata-protocol: none + + - **No Actions column on the list page.** The list's rows carry no control: no Actions column and no "⋮" at the row end, on hover or at rest. A row's actions are reached by selecting it or by right-clicking it. Grids outside a list page (related lists, page blocks, the record drawer) keep their Actions column and their bottom bulk bar. + - **Selection in the page bar.** Ticking rows swaps the page bar to 「对象名 / 已选 N 条」, Cancel, and the actions for what is selected: one record shows its own row actions, two or more show the bulk actions. The first two are buttons (in the order the actions are declared, by their `order`), the rest are behind "⋮", and Delete is never a button. Cancel, or clearing the selection, brings the page bar back. The bottom bulk bar no longer floats over the list on the list page. + - **Context menu.** In a row's menu (its context menu, and the "⋮" where one is still drawn) Delete is the last item, after a separator, in the danger colour; a selection's menu closes with its destructive actions the same way. + - **Checkboxes.** The whole leading cell toggles a row, and Shift extends the selection over the rows between the last toggled row and this one. + - **Scroll loading.** A grid list view that declares no `pagination` draws no pager: it loads 50 rows and the next 50 as the list nears its end, and shows the match total beside the view name. With every loaded row ticked, the page bar offers 「选择全部 M 条」 (capped at 5000 as before). Opening a record on its own page and coming back returns to the same place in the list. A view that declares `pagination` keeps its pager. Footer totals are still computed by the server over every matching record. +- 598a34d: Clause-②: no + Metadata-protocol: none + + fix(list): the list page lines up on one 16px left edge; the checkbox column is 40px at any width; no row numbers + + The list page drew five different left edges, and on a list with more columns than fit, the selection column was squeezed to the checkbox's own 16px, flush against the left of the page. Now the page bar's object icon, the view bar's view icon, the header's select-all box, every row's checkbox and the footer's record count all start 16px in, and the selection column is 40px (16px in, the 16px box, 8px before the first column) on a list that scrolls sideways, on one that fits, and after scrolling sideways and back. The view bar's last text trigger ends 16px in, where the page bar's button ends. + + The grid no longer draws row numbers unless a host asks for them (`showRowNumbers`): each row's leading cell is its checkbox, shown at rest rather than on hover. This applies to every grid, the list page, related lists and the designers' grids among them. The list page's Options menu no longer offers a 行号 (Row numbers) switch, the 「已个性化」 (Personalized) marker no longer names row numbers, and `ListView` drops its `defaultRowNumbers` host prop; the `list.rowNumbers` and `console.objectView.personalizedParts.rowNumbers` keys leave every language pack. + + A non-selectable grid with a row click drew a hover 「打开 ›」 (Open) button in its row-number cell; with row numbers off by default that button now appears only where a host opts into row numbers. Clicking the row, and Cmd/Ctrl-clicking it, still open the record. + + Removed from `@object-ui/plugin-list`'s exports: + - `ListViewProps.defaultRowNumbers`: `<ListView defaultRowNumbers={…}>` → delete the prop. Row numbers are off by default; a grid host that wants them passes `showRowNumbers` to `ObjectGrid`. + - `'rowNumbers'` in `ListPersonalizationPart`: an `onPersonalizationChange` handler or a label map keyed on it → drop that entry; the list no longer reports it. A grid whose authored columns all fail to resolve now says it renders "NO data columns" in its console diagnostic, since it no longer draws a row-number column. +- 0585797: feat(plugin-grid): selected rows get one small bar floating at the bottom centre of the list + + Clause-②: yes (widening) + Metadata-protocol: none + + Selecting rows in a grid now shows one bar floating at the bottom centre of the list area: 「已选 N 条」 and ×, up to three labelled actions, and the rest under 「更多」. When the selection offers no more than three actions they are all buttons, so a lone Delete is a button; over three, Delete goes behind 「更多」 with the rest. The bar sits above the footer calc row, the list keeps room after its last row so that row scrolls fully clear of the bar, and when every loaded row is selected and more match, the bar offers 「选择全部 N 条」. × or Esc clears the selection; Esc that belongs to a field, or to another open menu or dialog, does not. + + The same bar serves the object list page, a record's child-table tabs, the side record and embedded tables. The old bottom strip and the list page's 「已选」 face in the view bar are both retired, so the top of the list page no longer changes when rows are selected. On the list page, where rows draw no actions of their own, one selected record offers that record's actions; elsewhere the bar offers the bulk actions at any count. A narrow list gives actions back to 「更多」 until the bar fits on one line. + + - `@object-ui/plugin-grid`: `BulkActionBar` is redrawn as the floating bar; its props gain `singleRowMenu`. `useListPageScope(scope)` replaces the unpublished `useListPageBarHost`. + - `@object-ui/types` / `@object-ui/components`: `DataTableSchema.floatingBar` is a runtime slot (refused by the zod twin like the other runtime slots). The table floats it over its scroll box, above its summary row, with room after its last row. + - `@object-ui/app-shell`: the list page header and the view bar no longer swap to a selection face. + + This supersedes the selection behaviour in the list-page entry of this release (no Actions column on the list page): the selection is no longer shown in the page bar, up to three actions are buttons and a lone Delete is one, and grids outside a list page no longer draw a bottom bulk bar. +- fac1e7d: feat(list): a list cell saves the moment it is committed, and Space types into the selected cell + + Clause-②: yes (widening) — new members on the `@object-ui/react` package entry: `createOwnWrites`, `OwnWritesContext`, `useOwnWrites` and the `OwnWrites` type, and an optional third parameter on `useDataInvalidation`; three new `table.*` keys in every `@object-ui/i18n` locale (`cellSaving`, `cellSaved`, `openRecordToFinish`); nothing removed or renamed + Metadata-protocol: none + + In a grid that mounts `GridCellSelection` (the select-first grid every `ListView` draws), a committed cell edit is now saved at once, as one update for that record: + + - **No save bar, no row Save/Cancel column, no amber row.** The cell shows a small spinner while the save runs and a check mark once it landed. + - **Only that row is redrawn**, from the record the write answered with, so a value a server hook rewrote shows as stored. The list is not read again, though the write is still announced to every other reader (the record's detail pane, related lists, counts): the grid holds the record in the list's `OwnWritesContext` registry for the length of its write, and `ListView` lets that one write go by. So a row whose new value would sort it elsewhere stays where it is until the next load (refresh, sort, filter or page change). The counts on group headers, read with the rows, follow on the next load too; the footer's whole-set summary is its own reader and still refreshes on the write. + - **A refused save keeps the typed value** and shows the server's reason on the cell. Esc puts the stored value back. Later edits on the same row are sent together with the refused one as one update. When the reason names a field the list does not show (a rule that needs another field), the notice offers to open the record. + - **The 409 conflict dialog is unchanged.** The next save on a row sends the version the previous save answered. + - **Space** on a selected cell now types a space and opens its editor, as any other key does. A two-state (boolean) cell still flips. The record opens from the title link or a touch tap; the "Space opens the record" key added in #35747 is gone, so a master-detail page opens its pane only that way too. + + `@object-ui/react` adds that registry: `createOwnWrites()`, `OwnWritesContext` / `useOwnWrites()`, and `useDataInvalidation(objectName, recordId, ownWrites)`, which skips a change naming a held record. + + Grids without `GridCellSelection` keep the staged save bar and its batch save unchanged. + + New `table.*` strings in every locale: `cellSaving`, `cellSaved`, `openRecordToFinish`. +- 4609c48: feat(list): undo a list cell save from its toast or with Ctrl+Z + + Clause-②: yes (widening) — `toastRecordSave` in `@object-ui/react` takes an optional fourth argument, an `action` button the toast carries (new exported type `RecordSaveToastAction`), and `RecordSaveSink`'s options accept that `action`; nothing removed or renamed + Metadata-protocol: none + + In a grid that mounts `GridCellSelection` (the select-first grid every `ListView` draws), a landed cell save can be taken back: + + - **The save toast has an Undo button**, and **Ctrl+Z** (Cmd+Z on macOS) on a cell of the grid undoes the newest save, then the one before it. Each save is taken back once. + - **An undo is a new update, not a local rollback.** It writes the value each saved field held before the save (a relation as its stored id), with the version this grid's own newest write of the record answered as `If-Match`, so a change someone else made since answers 409 and opens the same conflict dialog as a save instead of being overwritten. A refused or cancelled undo is used up; the next Ctrl+Z undoes the save before it. The server's history records the save and its undo as two changes. Only the row is redrawn, as for a save. + - Inside an open editor Ctrl+Z stays the editor's own text undo. On a cell, the grid's key is handled by the grid alone: the console's shared Ctrl+Z undo stack is not popped by it. + - A save of a field the row did not read offers no Undo, rather than a partial one. + + A grid without `GridCellSelection` (a related list in a record drawer, for one) now re-reads on every write of its object again, including a write the list around it draws itself: before, it skipped the writes that list held while they ran. +- 8500ee7: feat(list): confirm a state-machine move before a list cell saves it; the drawer's save bar says when the record changed elsewhere + + Clause-②: yes (widening) — `GridCellSelection` in `@object-ui/components` takes an optional `confirmCommit(row, columnKey, value)` member; nothing removed or renamed + Metadata-protocol: none + + In a grid that mounts `GridCellSelection` (the select-first grid every `ListView` draws): + + - **A move of a state-machine field asks first.** When an active `state_machine` validation rule of the object governs the field on update, a new value committed into its cell (picked in the editor, or pasted) opens a confirm naming the field and both values and saying saving may trigger related automation. Cancel writes nothing and the cell keeps what it showed; Change saves the value as any commit is saved. Focus goes back to the cell either way. + - **The generic seam:** `GridCellSelection.confirmCommit` is asked before a value that changes what a cell shows is staged or saved. A promise holds the write until it settles (`true` writes, `false` or a rejection writes nothing); `null` or `undefined` means no question, as before. + + On a record page or in a record drawer, `InlineEditSaveBar` now says so when the record is read again at another version while an inline edit session is open (a list cell beside the drawer saved it, say). The draft stays as typed, and Save writes it over the version now read, as it did before; only the note is new. +- a6607c7: feat(grid): the inline cell editor floats over its cell, so the row keeps its height; a selected cell that is cut off shows its whole value + + Clause-②: no + Metadata-protocol: none + + In `data-table` (and so in every grid `ObjectGrid` draws): + + - **The editor draws on a layer over the cell** instead of inside it. The layer's top-left corner sits on the cell's, it is at least as wide as the column and grows wider or taller where the editor needs it (an address form, a record picker, a multi-line text), and neither the row's height nor any column's width changes. Near the bottom of the window it opens upward, near the right edge it shifts left, and its height is capped at the space left, scrolling inside. A cell partly hidden behind a frozen column, a right-pinned column or the sticky header is scrolled clear first; scrolling the cell out of sight commits the edit, as a click outside does. The layer stays inside the cell's DOM, so click-outside, Escape, Enter / Tab and focus behave as before. Tab inside the layer goes where it went before: the select-first grid commits and moves, other grids let the browser move focus. + - **`ObjectGrid` sizes the layer per field type**: an address or location starts 22rem wide, a multi-line text, markdown, code or JSON 20rem, a lookup, master-detail or user 18rem, a multi-select, tags or checkboxes 16rem, a date, date-time, phone, URL, email or currency 14rem, anything else 10rem; never narrower than its cell. + - **On the select-first grid** (the list page), a selected cell whose value the column cuts off shows it in full on a layer over the cell, wrapped and scrolling past a few lines. Escape, an arrow key or a click elsewhere closes it; Enter or a double-click turns it into the editor in the same place and at least the same size. Enter on a checkbox cell flips it, as Space and a second click already did, instead of opening an editor. +- c00be39: feat(fields): in a list grid's cell editor, select, multi-select, tags, date, time and colour open ready to pick + + Clause-②: yes (widening) + Metadata-protocol: none + + The widget contract `FieldWidgetComponentProps` gains two optional host keys, `inCell` (draw the face for a grid cell's editor) and `onCommit` (the user has finished: write the last `onChange` value and close). `FieldEditWidget` forwards both, and `ObjectGrid`'s cell editor passes them. A host that passes neither renders every widget exactly as before. + + In the cell editor of every grid `ObjectGrid` draws: + + - **Single select and status** show their option list at once, with a search box that filters as you type. The arrow keys move through the list, Enter or a click picks, and the pick is saved; the selection stays on the cell. With nothing picked, Enter commits as before and Escape cancels. + - **Multi-select** (and a select declared `multiple`) is the same list with check marks: each pick toggles, and the edit is saved when you move on. + - **Tags** list this record's tags with check marks; unchecking removes one, and text that matches no tag is added from the list's leading "Add" row (Enter). + - **Date and date-time** open their calendar at once while the typed value stays visible and editable in the text box. The calendar offers Today, Tomorrow, Next week (seven days from today) and Clear. On a date, picking a day or a quick pick saves and closes; on a date-time, a day keeps the calendar open for the time, as in forms. + - **Time** opens the browser's time picker when the editor opens. + - **Colour** shows the hex box first (Enter saves, Escape leaves) and a row of swatches plus the browser's colour picker; a swatch saves and closes. + - A value picked this way hands the keyboard focus back to the selected cell, and in a grid that edits on a single click, the click that picked it no longer opens the editor again. + + `@object-ui/i18n` adds the strings these faces show in every locale: `fields.datePicker.nextWeek`, `fields.datePicker.clearPick`, `fields.options.search`, `fields.options.noMatches`, `fields.tags.add`, `fields.color.swatches`, `fields.color.custom`. + + Forms, dialogs and the record page keep their current controls. +- 1c87956: feat(fields): typed values edit flat in their list cell, a record picker opens its list in place, and a rating is set without an editor + + Clause-②: yes (widening) + Metadata-protocol: none + + In the list grid's cell editor (the layer over the cell, `inCell`): + + - Text, email, phone, URL, number, currency and percent are the cell itself: one row tall, square, with no border, fill or shadow of their own, the layer's 2px frame the only line around them (square and flat even under a host theme that rounds and lifts every dialog with `!important`). The box starts as wide as its column and grows to the right with the text, over the next cells, without moving them. Numbers are right-aligned and raw (`34500.5`, not `34,500.50`); a currency shows its code before the amount; a percent shows its points and a `%`, without the slider. The grid's built-in text and number editors take the same flat look. + - A lookup, master-detail or user cell opens its searchable candidate list at once (recently used first, then results); a pick is the whole edit. Under the list, Browse all records opens the full record picker (classic lookups, gated by `dependsOn` like the list), where a single pick ends the edit too, and Clear is offered while the cell holds a value. + - On a select-first grid a rating opens no editor: a digit key sets that many stars (0 clears, capped at the field's scale), a click on a star of the already selected cell sets it, and Backspace or Delete clears it. `GridCellFacts` gains the optional `stars` fact a host sets for this (`ObjectGrid` sets it for `rating` fields). + - The record pickers' local "recently used" ring is kept per signed-in user as well as per object, so two accounts in one browser no longer share it. Rings stored under the old object-only key are not read, so each user's recents start empty once after the upgrade. + + Forms, dialogs and the record page draw these widgets as before. No i18n key is added. +- d8b15b5: fix(grid): after a cell save in a list that selects a cell first, a grouped row moves to its new group once the user leaves the row, and group subtotals and the footer total follow the save + + Clause-②: no + Metadata-protocol: none + + A list that selects a cell first (the list page) saves each cell and redraws only that row. Until now the groups and the footer did not follow that save: + + - **A changed group field.** The row stays where it is while the user is still on it. Once a cell of another row is selected, the row shows in its new group, and both groups' counts and subtotals are correct. A grid grouped on the server reads its group headers and the open groups' rows again at that moment. A grid that groups the rows it was handed puts the saved row in its new group. + - **Any other field.** The group subtotals include the saved value straight away. A grid grouped on the server reads its group headers again and reads no row. A grid that groups the rows it was handed recounts them. + - **The footer total.** A flat grid whose rows are the whole set totals the saved value straight away. A grid paged on the server already read its whole-set figures again after a write, and still does. + + A grid that is not select-first still reads everything again after each save, as before. +- 5345905: feat(components): in a list's grid a read-only cell says it is read-only, a cell save is said in one live region, and a touch never edits a cell in place + + Clause-②: yes (widening) + Metadata-protocol: none + + The widening is additive: the new key `table.cellSavedAnnouncement` in every locale pack `@object-ui/i18n` publishes through `./locales`. + + - **Read-only cells.** When the data table is a grid (`role="grid"`: a list page with the select-first cell model, or `keyboardNavigation`), a cell that opens no editor carries `aria-readonly="true"`, and so does the focus inside the selected cell, so a screen reader says "read only" on the cell it moves to. The selected cell adds the host's own facts (`GridCellSelection.describeCell`), asked as it becomes selected and again only when the row is re-read or the host hands a new value, never on each render; the rest read the table's own (`editable`, the column, the row). A plain table carries no `aria-readonly`. In a list, an approval lock or an update verdict that answers after the cell was selected is said on that cell at once, without the reader moving: the lock read re-renders the grid when it answers, and the grid hands the table a new value only when what its cell facts read changed. + - **Save results.** A table that saves each cell (`GridCellSelection` with `onRowSave`) draws one visually hidden polite live region for its whole life and says each saved cell there, by column name ("Saved: Amount"; new pack key `table.cellSavedAnnouncement`, in all eleven locales). Cells saved together are joined in the locale's list punctuation (`validation.formInvalidJoiner`: `、` in ja and zh); a column with no header is never named by its key (the region says "Saved"). A refused save is said once, by the cell's existing alert. The cell's saving/saved mark is no longer a live region of its own (it was mounted with its words and announced unreliably); it stays a named image. + - **Touch.** A tap on a cell that is not selected never edits in place: a lookup cell's edit button is not drawn for a finger, and a tap that lands on one drawn earlier for a mouse does nothing (the row ignores a click on a button). A tap elsewhere on the cell still opens the record, which is where a touch edits. A later click on the button with no pointer of its own (assistive tech) edits as before. +- af566c2: feat(spec): `count_true` / `count_false` column summaries — a boolean column's Yes and No counts in the list footer and group headers + + Clause-②: yes (widening) + Metadata-protocol: added + + `ListColumn.summary` accepts two more members, `count_true` and `count_false`: the number of rows whose boolean (or toggle) cell is true, and the number whose cell is false. A cell with no value is neither; it stays `count_empty`'s, so `count_true + count_false = count_filled`. + + Both are answered on the server with no new aggregation function: booleans aggregate as numbers on every backend, so `count_true` is `SUM(field)` and `count_false` is `COUNT(field) − SUM(field)`, read off the group header row (or the footer's whole-set row) by `deriveColumnSummary`. `COLUMN_SUMMARY_AGGREGATION`'s derived rows now carry `reads`, every node the member reads (`from` is its first); `columnSummaryNodeFunctions(mapping)` is the one reading of a row's nodes, which the group header compiler, the footer's whole-set query and the lint now share. `COLUMN_SUMMARY_FIELD_TYPES` / `isColumnSummaryCompatibleWithFieldType` say the two members apply to `boolean` and `toggle` only. + + `@objectstack/lint` refuses `count_true` / `count_false` over any other field type under `list-view-summary-field-type-refused` (an error, so `os validate` and the save door fail): over a number the same `SUM(field)` is a total, and the footer would print it as a count. + + `@object-ui/plugin-grid`'s footer menu offers Count of Yes and Count of No first on a boolean or toggle column, and only there; the footer draws them as `Yes 12` / `No 3`, from the whole matched set when the server answers it and from the page, labelled as the page's, when it does not. `@object-ui/i18n` adds the `grid.summary` keys `countTrue`, `countFalse`, `menuCountTrue` and `menuCountFalse` in every pack. +- f909734: feat(ui): a resident footer row on list tables, where a reader who may change the view picks each column's calculation + + Clause-②: yes (widening) + Metadata-protocol: none + + A list's table view now always ends in one footer row, aligned with the columns and held at the bottom of the table: the record count in its first cell, and under each column its calculation, if any, written as the calculation's name in the secondary text colour and the figure in the normal one, with a space and no colon (`Sum ¥1,234,500`). A `min` / `max` over a date reads Earliest / Latest. The list's own "N records" line at the foot of the page is gone from a table that draws this row; the data-cap notice stays there. A grouped table, the phone's card list and every other view type are unchanged. + + A reader who may change the open view clicks a cell to pick the column's calculation from one menu that lists what the field type allows (sum and average on numbers and amounts, earliest and latest on dates, the counts on any field), the current one ticked and None last. The console saves it as the column's `summary` on the view, and nothing else of the reader's layout. On a personal view it is saved at once and stays drawn. On a shared view the console saved, a reader who may edit it saves it as a draft through the view settings' own save: the draft save reloads the list, which then draws the published view again, so the pick shows for a moment and is drawn again, for every reader, once the draft is published. Until #35932, each pick's draft is built on the published view, so a second pick before Publish replaces the first in the draft: only the latest pick is published. The menu is offered on the columns the view itself declares; a column the reader added for themselves and a view that declares no columns draw the figures with no menu. A pick that is not saved is taken back, with the refusal said (a view a read-only package ships is refused this way: its changes go to the package's customization). A reader who may not change the view sees the figures and no menu. + + New host props, all optional and never authored metadata: `ObjectGrid` takes `residentSummaryRow`, `onColumnSummaryPick(field, summary)` (answer `false` to have the pick taken back), `summaryPickFields` and `onResidentSummaryRowChange(drawn)`; `ListView` takes `onColumnSummaryPick` and `columnSummaryPickFields`. `ColumnSummaryResult` gains `name` and `text`, the two halves of its `label`. `@object-ui/i18n` adds the `grid.summary` keys `earliest`, `latest`, `pageName`, `calculate`, `none`, `menuPercentEmpty` and `menuPercentFilled` in every pack. +- 65fddc8: fix: a `percent` or `currency` formula is a KPI chip on the record header; the lint prescription names all six return types + + Clause-②: no + Metadata-protocol: none + + A `formula` field whose `returnType` is `percent` drew percentages in its list cells, and the record header strip drew it without the figure typography a `percent` field's chip has. The strip now reads a formula's declared `returnType` before it picks its face, for the two return types the spec reads as a field type, `percent` and `currency`. Both are KPI chips on the header strip. A formula of any other return type chips as before. + + The grid's footer formatting reads the same two return types, so a browser-computed footer over a `percent` formula reads `Sum: 75%` rather than `Sum: 0.75`, and over a `currency` formula reads as money. That is not a supported authoring shape: a `sum`, `avg`, `min` or `max` column summary over a `formula` field is refused at authoring by `list-view-summary-field-type-refused`, whatever its `returnType`, because a formula is computed on read and stored in no column, and the whole-set footer query answers `400 INVALID_FIELD`. The formatting reaches only an ungrouped, one-page footer the browser computes over a declaration `os validate` refuses. To total a formula's value, make it a stored field of its own, of the formula's `returnType` and carrying the same `expression`, which the engine computes and stores on every write, and summarise that field. + + `os explain dimension-virtual-field-refused` told the author to make a stored copy "of the formula's `returnType` (`number`, `text`, `boolean`, `date` or `currency`)", which named no type for a `percent` formula. It now lists all six, and a test holds the list to the spec's own `returnType` enum. +- 40e22f1: fix(approvals, list): a list cell no longer opens an editor before it knows the record's approval lock, and the list reads the locks of a page in one request + + Clause-②: yes (widening) + Metadata-protocol: none + + **What a list user sees.** On a list that edits in place, a double-click, Enter, F2 or a typed key on a cell whose record's approval lock or edit permission is still being read no longer opens an editor that the server would then refuse on save. The cell says "Checking whether this record can be edited…", and when the answer arrives the same edit goes ahead by itself (with the typed key), or the cell says why it does not: the record is locked while it is in approval, or the reader has no permission to edit it. Selecting another cell in the meantime drops the wait. Moving the selection with the arrow keys no longer sends a lock request per row: the first cell selected on a page asks the locks of every row on it at once. + + **New route.** `POST /api/v1/approvals/records/:object/locks` with the body `{ "recordIds": ["<id>", ...] }` (at least one id, at most `APPROVAL_RECORD_LOCKS_MAX_RECORD_IDS`, 200) answers `{ success: true, data: { records: [{ recordId, locked }] } }`, one entry per id in order. `locked` is what `GET /api/v1/approvals/records/:object/:recordId/lock` answers for that id, and `null` where that route answers 404: a record the caller cannot read and one that does not exist answer alike. Any other body (a key other than `recordIds`, an empty list, a non-string or blank id, more ids than the cap) and any query parameter are refused whole with `400 VALIDATION_ERROR`, never trimmed. A deployment whose approvals service does not implement the read answers `501`. + + **Contract and SDK.** `IApprovalService` gains the optional member `getRecordLocks(object, recordIds, context)`, entry `i` answering `recordIds[i]` exactly as `getRecordLock` does; the approvals plugin implements it in two reads whatever the page size (the caller's read of the ids, then one pending-request lookup judged by the record-lock hook's own judgement). `@objectstack/spec/contracts` exports `APPROVAL_RECORD_LOCKS_MAX_RECORD_IDS`. `@objectstack/client` gains `client.approvals.getRecordLocks(object, recordIds)`. + + **Components.** `GridCellFacts` (the select-first table's per-cell facts) gains the optional `checking: { text, settled }`: while present, an edit asked on the cell shows `text` and is asked again when `settled` settles; a toggle, paste or clear shows `text` and writes nothing. A host that sets no `checking` sees no change. +- dea68e9: fix(plugin-list): a list's column header opens a menu and keeps a multi-level sort; a sort chip opens the sort panel + + Clause-②: yes (widening) + Metadata-protocol: none + + On a list page (the grid `ListView` draws), a click on a column header no longer sorts at once. It opens the column menu: sort ascending, sort descending, hide the column (a column that does not sort offers hide alone). Enter, Space or ArrowDown on the focused header opens the same menu, the arrows move through it, Enter chooses, and Esc shuts it without touching the sort. With no sort or a single level, the column picked in the menu replaces the sort; with two levels or more it becomes the first level, the other levels keep their order after it, and a column already in the sort moves up with the picked direction. No level is dropped. The ↑1 / ↓2 marks on the headers are unchanged. + + A sort chip under the view bar no longer reverses its direction on a click: it opens every sort level in one panel. Each level row in the sort builder now has a handle; dragging it, or ArrowUp / ArrowDown on the focused handle, reorders the levels. + + New public surface, all additive: `GridHeaderMenuProvider` and `useGridHeaderMenu` from `@object-ui/components` (a host opts a data-table into the header menu; without it a header click sorts as before, so related lists, dashboard tables and every other host keep click-to-sort); the `headerMenu` runtime prop on `ObjectGrid`; and the `sortBuilder.reorder` key in every `@object-ui/i18n` locale. The column menu itself is now a menu (`role="menu"` entries, keyboard reachable) wherever it opens, including a right-click on a header and the design host's caret. +- b113178: feat(list): the list page's toolbar is two rows: 「Object / View ▾ · View settings … Search · New · ⋮」 and a resident condition row + + Clause-②: yes (widening) + Metadata-protocol: none + + The console's object list drew three rows above the table: the object's name with ⋮ More and New, the view bar with Filter N, Sort N, Options and search, and a condition row that appeared only once a sort or filter was set. It now draws two: + + - The view bar starts with the object's icon and name, 「/」 and the view switcher, then 「View settings」. Its right end is the search, the page's toolbar actions, New, and ⋮ More last at the right edge. While rows are selected the right end shows what the selection offers, and ⋮ More keeps its place and its icon (⋮, also in the selection face). + - The Filter N and Sort N buttons are gone from the bar. The condition row is always there: with nothing set it shows dashed 「Sort」 and 「Filter」 buttons; a sort of any number of levels is one chip, 「Sorted by X」 with 「+N」 for the further levels, which opens the sort panel; each filter is its own chip with ×, followed by 「+」. The row's right end is 「Personalized」 and 「Reset」 while the list differs from its view. The table no longer moves down when the first condition is set. + - 「Options」 is renamed 「View settings」 and sits beside the view name. Its first level shows the content itself: the view's name, the shown columns (drag to reorder, the eye to hide) and 「+ Add column」, then Layout, Group, Row height and Row color where offered, and Save, Restore defaults and export in its footer. The More level and its inline edit switch, and Refresh, are gone. + - As the list narrows, 「View settings」 folds to its icon first, then the word 「Personalized」 goes, then 「Reset」 folds to its icon. The condition row stays one line and scrolls sideways. + + For hosts of `ListView`: two optional host props, `toolbarTrailing(tools)` (the bar's right end, given the list's search) and `conditionRowEnd` (the condition row's right end, drawn in place of the row's own Reset). A host that passes neither gets the search alone at the bar's end and the row's own Reset. +- 411fe24: feat(list): a phone's object list gets its own top row, one row of pills, and bottom-sheet sort, filter and view panels that apply on 「✓」 + + Clause-②: yes (widening) + Metadata-protocol: none + + At phone width (below `sm`) the console's object list changes its containers, not its content: + + - The app bar's row becomes the page's own: 「‹」, the object's icon and name, and 「⋮ More」 at the right. The app pill, the page title, the search, the bell and the avatar are not drawn while the list is on screen (the phone has them in the bottom bar and on the app's home). 「⋮ More」 offers 「Select」 (only on a card list whose rows take more than one tick), the object's description, Import and the favorite. + - Below it, one row of pills: the view switcher, Sort and Filter with a count of what is in force, and Search, which expands into a field in place. There is no condition row on a phone. + - Sort, Filter, the view switcher and View settings open as bottom sheets. The sort and filter sheets edit a copy: 「✓」 applies it through the same write the desktop chips use, 「×」 drops it. The sort sheet lists each level on two lines (field over direction) with a handle a finger can drag (or ArrowUp / ArrowDown moves), a ⋯ menu per level (change field, direction, remove) and 「Add sort」. The filter sheet lists the conditions, each with a ⋯ menu (edit, remove), and shows a sentence and 「Add filter」 when there are none. A view whose filter is an 「or」 group says it uses an advanced filter and is changed on a computer. View settings keeps its desktop content and applies as before. 「✓」 on an untouched copy writes nothing. While the on-screen keyboard is up, a sheet stands on it (it reads `visualViewport`), so its 「✓」 and the focused field stay in view. + - A long press on a card starts selecting with that card ticked, as 「Select」 in 「⋮ More」 does with none; a tap then ticks or unticks a card, and unticking the last ends it. The selection shows in the list's floating selection bar, which after 「Select」 reads 「0 selected ×」 until a card is ticked. The 「+」 create button is not drawn while selecting. A card is also a keyboard control: Enter opens it, and while selecting Enter or Space toggles it. + + New exports and props: + + - `@object-ui/plugin-list`: `PhonePanelSheet`, `useListPhonePanels`, `PHONE_CHIP`, `PHONE_CHIP_ACTIVE` and the types `PhonePanelSheetProps`, `ListPhonePanels`. + - `@object-ui/plugin-grid`: `requestListSelection`, `useListPageSelecting` and `useListPageSelectable` (would 「Select」 open a selection in this page's list); `BulkActionBar` takes `open` (show 「0 selected ×」 with no actions while a host's selection is open and empty). + + `@object-ui/app-shell` changes no public export: the page's top row is an internal store (`PhonePageBarProvider`, mounted by `ConsoleLayout`). +- 9ed18a5: fix(ui): danger colours render red in both themes, and light danger text clears 4.5:1 + + Clause-②: no + Metadata-protocol: none + + - The grid and list views' export-error line, and the Markdown caution alert's border and title, set their colour to a bare `var(--destructive)`. That variable holds an HSL triplet, not a colour, so the browser dropped the declaration and the text rendered in the inherited colour. The export-error line now uses the `text-destructive` utility and the caution alert reads `hsl(var(--destructive-text, var(--destructive)))`. The Markdown theme's heading anchors, quote and meta tokens and blockquote border and background had the same defect with other theme variables and now wrap them in `hsl()` too. + - The flow preview's invalid-edge stroke and arrowhead paint with the danger text colour, so they stay readable on the dark theme. + - The light theme now sets its own `--destructive-text`, red-700 (`#b91c1c`, `0 73.7% 41.8%`), so `text-destructive` reads at 6.47:1 on white instead of 3.76:1. `--destructive`, the brand red used for button and badge fills, is unchanged. The same value is in the stylesheet that `objectui init` generates. + - A theme's `error` colour applied through the theme engine still sets `--destructive`, and now also derives a danger text colour for each mode from it (same hue, lightness moved until it reads at 4.5:1 on that mode's surfaces), written as `--destructive-text-light` and `--destructive-text-dark`. The shipped stylesheets read those into `--destructive-text` in their light and dark blocks, so a custom red drives danger text and stays readable in both modes. A host stylesheet that overrides `--destructive` by hand should set `--destructive-text` beside it in each mode. +- c261a7c: feat(console): a stage confirm names the flows the move would start, in the list cell and on the record page + + Clause-②: yes (widening) — `@object-ui/plugin-detail` adds the exports `useRecordUpdateStarts`, `StageChangeStarts`, `RECORD_UPDATE_STARTS_PATH` and the type `RecordUpdateStartsAsk`; `@object-ui/fields`' `RequiredFieldsDialog` takes an optional `notice`; `@object-ui/i18n` adds the export `activeFlowsBundle` (with the types `FlowsTranslation` and `TranslationResourceReader`, moved from `@object-ui/app-shell`'s internal `utils/flowsBundle`) and two keys to every pack: `detail.stageChangeStartsHeading`, `detail.stageChangeStartsApproval`. `@object-ui/plugin-grid`'s `StateChangeConfirm` gains an optional `ask`. Nothing existing is removed or re-typed. + Metadata-protocol: none + Skills-docs: none — no skill under `skills/**` teaches the console's stage confirms; `content/docs/frontend/plugins/plugin-grid.mdx` names the list in this change. + + When a stage move would start a flow, its confirm now says so (objectstack#35928, ruling record 7073655354): + + - The list cell's state-machine confirm and the record page's stage confirm (the path's press and the header's stage menu) keep their sentence and add, under it, 「保存后将启动以下流程:」 ("Saving this change starts these flows:") and each flow by its label in the reader's language. A flow that starts an approval is marked 「发起审批」 ("starts an approval"). + - Both confirms ask one read, `POST /api/v1/automation/_record-starts`, through one shared hook, so the two surfaces cannot disagree. The server decides which flows start; nothing is judged in the browser. + - A move that starts nothing shows no list, and a read that fails or is refused leaves the confirm exactly as it was. + - A flow label is translated as the flow runner translates it: the app's `flows` translations, read through `activeFlowsBundle`, which now lives in `@object-ui/i18n` so the confirms' packages can read it; the console's flow runner and designer import it from there. +- 9f6f306: fix(console): Hide column in the column-header menu is a list draft, like the eye in View settings + + Clause-②: yes (widening) — one new optional runtime slot `DataTableSchema.onColumnHide(columnKey)` (refused by name on the zod mirror, like `onColumnsReorder`) and one new optional `ObjectGrid` prop `onColumnHide(field)`; nothing removed or renamed + Metadata-protocol: none + + On a Console object list, picking "Hide column" in a column header's menu hid the column inside the table only: nothing above the table heard of it, so the list drew neither Discard nor Save and only a reload brought the column back. The same choice made with the eye in View settings was already a draft. + + The table now reports the hidden column to its host (`DataTableSchema.onColumnHide`, supplied by `ObjectGrid` from its new `onColumnHide` prop), and `ListView` writes it through the same writer as the hide-fields eye: the host hears it on `onHiddenFieldsChange` (the Console holds it in the list's draft, so Discard brings the column back and Save keeps it hidden), and a column the reader added leaves their added fields, as unticking it does. A table with no host handler hides the column in its own state, as before. +- 9a98a46: feat(list,detail): a change that makes other fields required asks for them in place — the kanban drop's fill-in, now shared by the list cell and the record page + + Clause-②: yes (widening) — `@object-ui/fields` exports `collectRequiredWhenPromptFields`, `RequiredFieldsDialog` and their types (moved from `@object-ui/plugin-kanban`, which never exported them) and the new `requiredWhenPromptReads`; nothing removed or renamed + Metadata-protocol: none + + When a value about to be written makes another field's `requiredWhen` true while that field is still empty, the write is held and one dialog asks for the missing values: + + - **Where:** a list cell in the select-first grid every `ListView` draws, the record page's inline Save, and the kanban drop (as before). + - **What it shows:** the record's name, the change that set it off (read-only), and one row per field to fill, with the editors the record form uses. A value typed there that makes one more field required adds that field; Save waits for it. + - **Save** writes the change and the typed values as ONE update. **Cancel** writes nothing: the list cell keeps its value; on the record page the edit session and its draft stay. + - **A refusal of that update stays in the dialog:** under the field it names, as a new row for another field the reader can fill, or at the dialog's foot. + - **Not asked for**, and written and refused as before: a field that already has a value, is hidden or read-only, that the reader may not write, or that has no in-place editor (a file, rich text, a formula). The record drawer's per-field save does not ask either. + + The pre-evaluation is the one the kanban drop already used (`resolveFieldRuleState`, the evaluator the form and the server share, judged as the engine's transition gate), generalised from one key to any set of changed keys. +- 33d0169: feat(ui): the object's colour tile replaces its line icon wherever else the object is named + + Clause-②: yes (widening) — `ConsolePageHeaderProps` gains the optional `iconTile`, and `RecordSearchHit` and `RecordHoverCardObjectDef` the optional `color`; nothing removed or renamed + Metadata-protocol: none + + The tile the navigation already draws for an object (a white glyph on the object's palette colour, gray when it has none) now also names the object in: + + - **List and data pages:** the page bar and the view bar's object name in front of the view switcher; the URL data page's header. + - **The record page and the record drawer:** the record row in front of the record's name. + - **The record page's related lists:** each section's title, with the list's own icon else the related object's, on that object's colour. + - **Search:** the command palette's recent records, record hits and object entries; the search results page (group headings and hit cards); the global search block. + - **Home:** a record row in "Recently accessed". + - **References:** a pointer cell in a grid (`referenceVia`) and the record hover card. + - **Studio:** the data pillar's object list and header, and the interfaces pillar's object entries and header. + + `ConsolePageHeader` takes `iconTile`, an icon that draws its own square, drawn as given in every posture in place of `icon`. `RecordSearchHit.color` carries the object's palette name beside `icon`, and `RecordHoverCardObjectDef` names `color` beside `icon`. `ObjectIconTile`'s glyph keeps its size inside a host row that sizes every nested `svg`. +- 1647fb3: fix(grid): undoing an earlier cell save right after a newer save of the same row keeps the newer save on screen + + Clause-②: no + Metadata-protocol: none + + In a select-first grid, the Undo of an earlier save (its toast's Undo, or Ctrl+Z / Cmd+Z) draws its answer over the row as the grid shows it now. If that Undo arrived in the short window after a newer save of the same record was drawn, but before React ran that render's effects, the grid read the older patch. The row then dropped back to the values it was first read with, for example the name before the newer save, until the next load. The server's record was right the whole time. The patches the Undo reads now move together with the save that writes them, so an Undo pressed at any moment draws over the newest save. +- dc10b3b: fix(grid): in a list cell a single click only selects, and the email and phone cells draw no copy button + + Clause-②: no + Metadata-protocol: none + + On a grid with the select-first cell model (the console's list page), a plain click on a link a cell draws used to follow it: an email opened the mail program, a phone number the dialler, a URL a new tab, a lookup or user chip that record's page, and an image thumbnail its lightbox. The cell was not selected, so a reader who meant to select or edit the cell left the list instead. The email and phone cells also drew a copy button beside the value, easy to hit while selecting. + + A plain click on any of these now selects the cell and opens nothing. To open one: Ctrl/Cmd-click it (as before), press the open button the selected cell shows on hover (only on the selected cell, never on the row hover), or press Ctrl/Cmd+Enter on the selected cell. A cell of several chips opens the first one that way. A double-click on the link edits the cell, as on any other cell. The name link is the one exception and opens the record on a single click, as before. The copy buttons are not drawn inside such a grid; Ctrl/Cmd+C copies the selected cell. + + Outside the select-first model nothing changes: the record page, related lists, phone cards, kanban cards and every grid whose host does not turn on `cellSelection` keep their links and copy buttons. + + For renderer authors: a link (`a[href]`) inside a select-first cell is now treated as part of the cell's value. Mark the one link a single click must still follow with `data-opens-on-click`, a non-link control that opens what the value points at with `data-cell-opener`, and a copy control the grid should not draw with `data-cell-copy`. +- dca608a: feat(grid): on the list page a lookup chip opens its record in the side drawer, and a lookup cell has an edit button + + Clause-②: yes (widening) + Metadata-protocol: none + + On the console's list page, a single click on a lookup chip (a record of another object, such as a contact's account) now opens that record in the side drawer over the list. This replaces, for lookup chips on that page, the earlier change in this release where a plain click on a lookup chip only selected its cell. The list stays where it was: closing the drawer leaves its scroll position and the selected cell as they were. The drawer's address carries the record and its object (`?recordId=…&recordObject=…`), so a reload keeps it open and Back closes it, as with the name cell's "Open in side panel" icon. A click beside the chips only selects the cell. A cell of several chips opens the chip that was clicked; Ctrl/Cmd+Enter on the selected cell opens the first one in the drawer; Ctrl/Cmd-click still opens the record's page in a new tab. + + A lookup cell now draws an edit (pencil) button while the pointer is over it and while it is selected. It opens the cell's editor, as a double-click or Enter does, and it is not drawn when the cell cannot be edited (no permission, a read-only field, a locked record). It takes the place of the open button a selected cell shows. + + A chip naming a person (an owner, a creator: a lookup to `sys_user`) keeps the behaviour it had: a single click only selects the cell, and it opens from the open button or Ctrl/Cmd+Enter. Email, phone and URL cells and the name column are unchanged. On a phone every record still opens as its page. + + For hosts: `ListView` and `ObjectGrid` take a new runtime prop, `openReferencedRecord(objectName, recordId)`, that opens such a record in the host's place; `GridCellSelection` gains an optional `referenceCells` member (`isReferenceColumn`, `openRecord`), exported with its type `GridReferenceCells` from `@object-ui/components`. A host that passes neither keeps the previous behaviour, where a chip only selects its cell. `ReferencedRecordLink`'s anchor now carries `data-record-object` and `data-record-id`. +- 13d1e95: feat(ui): in a list cell, a picker opens under the cell, Backspace clears, a refused value stays, and Enter stays on the cell + + Clause-②: yes (widening) + Metadata-protocol: none + + `GridCellFacts` (the select-first grid's per-cell host facts, `@object-ui/components`) gains three optional keys: `editor` (`'below'` draws the cell's editor as a panel under the cell, which keeps showing its value; absent or `'cover'`, the editor stays a layer over the cell), `clearRefusal` (why Backspace or Delete leave the cell as it is) and `validate` (why a committed value is refused). A host that sets none of them gets the editor placement and commits it had, with Backspace now clearing (below). + + In every grid `ObjectGrid` draws with the select-first model (the list page): + + - **Pickers open under the cell.** Single and multi select, status, tags, date, date-time, time, colour, lookup and user cells open their list, calendar or palette as a panel under the cell; the cell keeps its value as drawn (a coloured badge stays coloured) and the row height does not change. On a date the typeable box is the top of the panel and the calendar shows beneath it. Typed input, long text and an address still edit in place. + - **Backspace or Delete clears the selected cell and saves at once.** A required field keeps its value and says it is required (a required rating too, for Backspace, Delete and the 0 key); a read-only cell says why, as before; a checkbox cell is left alone. + - **A value that fails the field's rules is not saved.** The rules are the record form's (required, length, range, email and URL shape), and text a number box cannot read is refused too. The editor stays open with what was typed and says why under it (a number box that already says it cannot read its text is not told twice); correct it and commit again, or press Escape to discard. A click elsewhere does nothing while a refused value is open; a refused value whose cell scrolls out of sight is discarded. + - **A person's face no longer makes its row taller.** A user cell drew a 32 px face, which made its list row 41 px tall against 33 px for a row of text; the face is now 24 px and the row stays 33 px, at rest and while the cell is edited. + - **The selected cell's frame stays under the frozen columns** when the cell scrolls beneath them, and a cell deselected with Escape is left with no focus ring. + - **Enter saves and keeps the same cell selected**, with the focus back on it. It used to save and move the selection one row down. Tab and Shift+Tab still save and move right and left. + + `@object-ui/i18n` adds `table.cellNotNumber` and `table.cellInvalid` in every locale. + + Forms, dialogs and the record page keep their current controls. +- c297dff: feat(grid): a markdown, HTML or rich text cell opens a text box in a panel under the cell + + Clause-②: yes (widening) + Metadata-protocol: none + + **The list grid edits the rich-content field types in place** (objectstack#36023). On a select-first grid, selecting a `markdown`, `html` or `richtext` cell and pressing Enter, F2, typing or double-clicking opens the record form's own text box over the stored source in a panel under the cell, at least as wide as the column; the cell keeps showing its value and the row keeps its height. Enter in the panel is a new line; on a select-first grid Ctrl/Cmd+Enter saves and keeps the cell selected, Esc discards, and a click outside saves. Backspace or Delete on the selected cell of a select-first grid clears it as for any other editable cell. On a grid without the select-first cell model (an `ObjectGrid` or `object-grid` mounted without `cellSelection`), one click opens the text box over the cell, not in a panel under it: Enter is a new line, Ctrl/Cmd+Enter does nothing, Esc discards, and a click outside keeps the text as a pending change for the grid's save buttons. Before, these cells opened no editor; on a select-first grid the cell said "This field can't be edited in a list". The related tab on the record page draws the same grid and behaves the same way. + + **Only the grid's cell changes.** The three types stay in `INLINE_EXCLUDED_FIELD_TYPES`, and `hasFieldEditWidget` and `isInlineExcludedFieldType` answer as before, so the record page's field editor, the required-fields dialogs, the kanban and timesheet editors keep them out. `@object-ui/fields` exports `hasInCellPanelEditWidget(type)`, true for the three types, and `FieldEditWidget` draws their editor only when the host asks for the cell face (`inCell`); the editor loads lazily. `html` is edited as text; what the cell then draws goes through the sanitizing HTML renderer, as on every other read surface. +- 1cd4762: Clause-②: yes (widening) + Metadata-protocol: none + + A list cell commit on an object with a `requiredWhen` field the list does not draw no longer reads the record first when the edited column cannot open the fill-in dialog. The pre-read (one `findOne` for the keys the row lacks) is now made only when the column is an operand of an askable field's `requiredWhen`, when such a predicate reads the clock, the acting user or the record as a whole, or when the askable field is also statically `required`. What the user sees is unchanged; commits to other columns save one request sooner. `@object-ui/fields` exports the judgment the grid asks, `requiredWhenPromptAsksOn(objectFields, changedKeys, { fillable })`. +- 729b642: fix(grid): on a phone's card list, while a selection is open, a tap on a link inside a card ticks or unticks the card + + Clause-②: no + Metadata-protocol: none + + A tap on a card's email, phone number, URL, referenced record, image, copy button or 「⋮」 used to open the link, the record or the menu instead of ticking the card. While a selection is open the card now takes every tap inside it, as phone apps do in selection mode; the click that ends the long press which starts a selection opens nothing either. When the selection ends, the same taps open their links again. The desktop table is unchanged. +- 3ae62ac: feat(ui): one 8px corner for every control, a white content area beside a light grey sidebar, and badges at weight 500 + + Clause-②: no + Metadata-protocol: none + + - **Controls share one corner, 8px.** Buttons, inputs, selects, toolbar controls, menus and tab lists are `rounded-md`, which the console theme now sets to 8px (it was 12px, derived from the 14px card corner). What sits inside one of them, a tab trigger in its list or a menu row, is `rounded-sm`, 6px. Cards keep their 14px corner, and dialogs, popovers and drawers keep theirs. + - **Chips follow.** A lookup chip in a list cell (it was 4px), a person or record chip in a form's lookup field and its selection tray, and the list's Sort, Filter and condition chips (they were pills) take the same 8px corner. Coloured option badges stay pills. + - **The content area is white.** The console's `--background` is white instead of the grouped grey, so a list, a record page, a kanban board and the top bar sit on white. The sidebar is the one light grey surface beside it, with its hairline border; in the dark theme the content area is the darkest step and the sidebar one step lighter. + - **Badges are weight 500.** `Badge` was `font-semibold` (600), outside the console's two text weights; it is `font-medium` (500). This is a declared local patch on the Shadcn primitive (`badge-medium-weight` in `ui/scripts/shadcn-local-patches.mjs`), so it survives a registry sync. +- 6c7c6db: feat(ui): the console's pages set text in two sizes, 14 and 12, and two weights, 400 and 500 + + Clause-②: no + Metadata-protocol: none + + - **Two sizes.** Body text, list cells, field values, inputs, menu items, toolbar controls and buttons are 14px (`text-sm`); field labels, column headers, counts, timestamps, hints and chip text are 12px (`text-xs`). The hard-coded 13px is gone from the console's runtime pages, and the 10px, 11px and other odd sizes there are 12px. The in-cell editor is 14px, like the cell it edits. + - **Two weights.** Record names, tabs, buttons, section titles and column headers are 500 (`font-medium`); body text is 400. Weight 600 and 700 stay only on page and dialog titles 18px and larger. `DropdownMenuLabel` is weight 500 through a declared local patch on the Shadcn primitive (`dropdown-menu-label-medium-weight` in `ui/scripts/shadcn-local-patches.mjs`), so it survives a registry sync. + - **Not changed:** Studio and metadata administration internals, the settings pages, developer tools, phone-only layouts, avatar initials, authored markdown and SDUI heading typography, the docs reader's prose size, and the shape of coloured option badges (still pills). + - A list column with no declared width measures its content, so it grows with the 14px text; a column whose width a view or a user set keeps that width and shows about 8% fewer characters before it truncates. +- eebb893: feat(plugin-grid): a list draws a line between columns, its default rows and header are 36px tall, and the footer shows 「+ Add calculation」 at rest + + Clause-②: no + Metadata-protocol: none + + - A line of the same colour and weight as the row lines now runs between columns in the header, the rows and the footer row, with none after the last cell. The last frozen column keeps its scroll shadow on top of its line. + - The default row height (`compact`, the density a view without `rowHeight` gets, shown as Compact in the row-height menu) is 36px instead of 32px, and the header is 36px too. The Standard and Spacious densities are unchanged. + - In a list whose reader may change the view, every footer cell without a calculation shows a faint 「+ Add calculation」 at all times instead of only on hover. A reader who may not change the view still sees only the calculations already set. The `grid.summary.calculate` text changes in every language pack to match. +- b57f778: fix(plugin-grid): leave a raw aggregate over a record-mode quantity out of the whole-set footer and the group headers + + Clause-②: no + Metadata-protocol: none + + The engine refuses a `sum` / `avg` / `min` / `max` over a `number` field declaring `unitConfig: { unitMode: 'record', unitField }` unless the query groups by `unitField` (ADR-0158 U7 R1): quantities in different units do not add. The grid now treats such a quantity the way it treats a `record`-mode currency amount (ADR-0144 D6), through one rule: + + - The whole-set footer query of a paged list or grid leaves that column's aggregate out, so the other summarised columns keep their whole-set figures instead of all falling back to the current page's. + - The footer draws no `sum` / `avg` / `min` / `max` for that column, and its menu offers the count family only; the counts stand. + - A group-header aggregate over it stands only when the grid is grouped by its `unitField`. + + A `fixed`-mode quantity and a `number` with no `unitConfig` total as before. +- 370e14d: fix(auth): signing out keeps the list layout for the same person; a change of user still clears it + + Clause-②: no + Metadata-protocol: none + + Column widths, row height and tab order are kept only in the browser, so the sign-out purge (`purgeSignedOutUserClientState`, run by `AuthProvider` on `signOut()` and on every session read that answers "no session", including a session that ended on its own) reset every list at every sign-out. It now keeps the list layout: `localStorage` keys starting `list-layout:` (written by `@object-ui/app-shell`) and `grid-columns-` (the grid's own copy of column widths and order, also used by a record page's related tab). An entry is kept only while it holds that layout and nothing else: view ids, field names, widths and a row height. An entry holding anything more, such as a filter, a search term or record data, is removed like any other key. These keys are kept only in `localStorage`; the same keys in `sessionStorage` are still removed. + + A different person signing in on that browser still clears everything (`purgePreviousUserClientState` keeps none of these keys), so their lists open at each view's defaults. Nothing changes for an app that writes no keys under these prefixes. +- aad35e6: feat(record-page): the side preview opens 460 wide, puts the record's name first with one labelled action, and lists a child tab one row per record + + Clause-②: yes (widening) — new optional members only: `RecordHeaderBar.preview` and `PageHeaderActionsProps.preview` on `@object-ui/components`, `ObjectGridComponentProps.cardFace` on `@object-ui/plugin-grid`; nothing removed or renamed + Metadata-protocol: none + + The record preview that opens beside a list (and a record page's drawer level) is now a narrow pane: + + - **Width.** It opens 460 px wide (at most 92% of the window). Its left edge drags it from 380 to 900 px. The dragged width is remembered in the browser under one key for every object's preview, not per object. A drawer whose `navigation` authors its width (`navigation.size` other than `auto`, or a `navigation.width`, pixel or percent) does not use that key. The list's preview reads the view's `navigation`, then the object's; a record page's drawer reads only its root record's object's `navigation`. Such a drawer keeps the object's per-object key (`recordOverlayWidthStorageKey`, unchanged), which it shares with that object's calendar, gantt, kanban, tree and grid overlays and a resizable `RecordDetailDrawer`, and opens at the authored width until a width is dragged in that drawer or one of those overlays. For an object that authors no size or width, the console's preview no longer shares a width with that object's calendar, gantt, kanban, tree or grid overlay or its `RecordDetailDrawer`. The width and its key belong to the drawer's root and stay with it: child levels keep the root's width, and in the list a record a lookup chip opens as the root takes the list's width and key (the list object's, not the opened record's). On a record page, a drawer closed and next opened on another object's record opens at that object's width, not the width dragged for the previous one. + - **Header.** The record's name comes first. The row shows at most one labelled action, the page's primary. The host's Edit and every other action go into the `⋯` in their usual order. The primary folds into the `⋯` too while the name would be cut below 16 characters' width. The copy-id icon after the name is gone, and 「Copy record ID」 is in the `⋯` instead. The full name is the name's tooltip. An approval's approve / reject levers and the record page's edit state (Cancel, Save) are drawn as before. A page's own header is unchanged. + - **`@object-ui/components`: every resizable drawer's range.** The range lives in `NavigationOverlay`, so it applies to every drawer opened with a `storageKey`: the calendar, gantt, kanban, tree and grid overlays, a resizable `RecordDetailDrawer`, and the console's preview. The drag range was 360 px to 60% of the window; it is now 380 to 900 px. On a 1920 px window the widest drag drops from 1152 to 900 px. On a 1024 px window a dragged or remembered width can now reach 900 px, where 60% of the window (614 px) capped it before; the drawer still never draws wider than the window less 1rem. A remembered width under 380 px is no longer used: the drawer opens at its host's width. A drawer whose `storageKey` changes while it stays mounted now drops the previous key's width when the new key remembers none, and opens at its host's width. + - **Child tabs.** A child list's tab draws one row per record (its title, one summary line and its status chip), the phone's card rows, instead of a table cut off at the pane's edge. `ObjectGrid` takes a new host prop, `cardFace`, that draws those rows at any window width. +- a09816d: fix(plugin-grid): with grouping on two or more levels, a sum over a `record`-mode quantity or amount is asked only at the levels grouped by its unit or currency field + + Clause-②: no + Metadata-protocol: none + + A grid grouped on several levels sends one group-header query per depth, and depth 1 groups by the first level only. Group aggregations were judged against all levels at once. So a list grouped by region, then `unit_code`, kept a `sum` / `avg` / `min` / `max` over a `record`-mode quantity in the depth-1 query, which groups by `region` alone. The engine refuses that query (`INVALID_FIELD`, 400, ADR-0158 U7 R1), and every group header of the view failed with it. A `record`-mode amount grouped by region, then `currency_code`, failed the same way (ADR-0144 D6). + + Each depth's query now carries such an aggregate only when that query's own `groupBy` includes the measure's unit or currency field. Otherwise the aggregate is left out, as the whole-set summary leaves it out. In the example, the region bands show their counts and no sum, and the `unit_code` bands under them show their one-unit sums. Rows handed to the grid whole and grouped in the browser follow the same rule, so a region band no longer shows a sum that adds kilograms to pounds. Grids grouped by the unit or currency field at the first level are unchanged. +- bbc7e03: feat(grid): a list cell's right-click menu copies, pastes and clears that cell + + Clause-②: yes (widening) — an optional `cell` member (`copy`, `paste`, `clear`) on the context `data-table` hands a host's `renderRowContextMenu`; five new `table.*` language-pack keys in every locale `@object-ui/i18n` ships (`copyCell`, `pasteCell`, `clearCell`, `pasteNotValue`, `pasteUnavailable`); nothing is removed or renamed + Metadata-protocol: none + + Right-clicking a cell in a list now offers what can be done to that cell, above the row's own items. + + - The menu has two sections. Above a line: **Copy**, **Paste**, **Clear** and, where it was already offered, **Change history**. Below it: the row's items as before (Open, Open in new tab, the row's actions). A right-click off a data cell opens the row's section only. + - **Copy** copies the cell's value, as Ctrl/Cmd+C does. + - **Paste** writes the clipboard's text into the cell and saves it, through the same checks as typing into the cell: text that is not an email address in an email cell, a value over a field's length, an empty required field are refused and the cell says why. If the browser will not let the list read the clipboard, the cell says so and names Ctrl/Cmd+V. Paste is offered on text, numbers, dates and single-choice fields (an option by its value or label); on a record reference, a person, a multi-choice and other types it is unavailable. + - **Clear** empties the cell and saves it, as Backspace does; it is unavailable on a required field. + - On a read-only field, a calculated field, a grid that is not editable or a record the reader may not change, Paste and Clear are unavailable and Copy still works. + - A paste into the selected cell with Ctrl/Cmd+V now goes through the same checks: text the cell's editor would refuse is no longer sent to be saved, and text the column cannot read (letters in a number cell, a name in a lookup cell) says why instead of doing nothing. +- 543585d: feat(record-page): one field's change history, opened in place from the field or from a list cell's context menu + + Clause-②: yes (widening) — three new `detail.*` language-pack keys in every locale `@object-ui/i18n` ships (`fieldHistory`, `fieldHistoryNone`, `fieldHistoryNoneRecent`); new exports from `@object-ui/plugin-detail` (`FieldHistoryButton`, `FieldHistoryCard`, `FieldHistoryPopover`, `useFieldHistory`, `useFieldHistoryOffered`, `fieldHistoryOffered`, the constants `FIELD_HISTORY_PAGE_SIZE`, `FIELD_HISTORY_SCAN_BATCH` and `FIELD_HISTORY_SCAN_BATCHES_PER_LOAD`, and their types); an optional `column` member on the context `data-table` hands a host's `renderRowContextMenu`; `FieldChangeItem` draws no label for `label: ''`; nothing is removed or renamed + Metadata-protocol: none + + A reader can now see one field's past changes on one record without reading the whole activity stream. + + - On the record page, each field of the object has a history button beside its value, shown on hover and focus like the copy button. In a list, right-clicking a cell of a field the object declares adds 「Change history」 to the row's menu. Both open the same small card in place. Neither is offered on a field whose old → new values are not recorded (`fieldHistory: false` on the field, `enable.fieldHistory: false` on the object, a credential field, or a media or JSON-like type that does not opt in), judged by the same `resolveFieldHistory` the audit writer keeps values by. + - The card lists only that field's changes: who, when, and old → new in the reader's words (an option by its label, an empty side as the pack's word for empty), newest first, ten at a time with 「Load more」. + - A field never changed reads 「No changes recorded」 with who created the record and when. + - The changes are the record's activity rows the server already serves, narrowed to the reader: a change of a field the reader may not read is never sent. A field the reader may not read offers no entry point at all. The full audit log is not read. + - The rows are read by record, newest first, fifty at a time, keeping those that changed the field; a query naming the change columns is refused for a reader withheld any field of the object, so the field is never part of the query. Opening the card reads at most four batches, and each 「Load more」 at most four more; when they hold no change of the field and older rows remain, the card reads 「No changes in the recent activity」 and offers 「Load more」 to read on. + + `@objectstack/spec`: the authoring hint for the mistyped field key `tracked` now names what turns one field's change history on or off today (`fieldHistory: false`, `true` for a media or JSON field, `enable.fieldHistory: false` on the object), where it named `trackHistory: true`, which changes nothing for most field types. Wording only; `tracked` stays rejected. +- 85a9954: fix(plugin-grid): while a phone list's cards are selecting, Enter or Space on a card's 「⋮」 ticks the card and opens no menu + + Clause-②: no + Metadata-protocol: none + + On the phone card list, a selection already turned every tap inside a card into a tick. A keyboard still reached the row menu: with focus on a card's 「⋮」 button, Enter, Space or ArrowDown opened it. While selecting, those keys now behave like a tap: Enter and Space tick or untick the card, ArrowDown does nothing, and no menu opens. After 「×」 ends the selection, the same keys open the menu again. +- 17dbea4: docs(grid): the rich text cell panel is described for the select-first grid only + + Clause-②: no + Metadata-protocol: none + + The READMEs of `@object-ui/plugin-grid` and `@object-ui/fields` now say that the panel under the cell, with Ctrl/Cmd+Enter and a click outside saving, is the select-first grid's (`cellSelection`). A grid without `cellSelection` opens the text box over the cell, where Ctrl/Cmd+Enter does nothing, Esc discards and a click outside keeps the text as a pending change for the grid's save buttons. Text only; no behaviour changes. +- 2c5b90d: fix(plugin-grid): on a phone, a list that declares no `pagination` loads more record cards as the card list nears its end, as the table does on a desktop + + Clause-②: no + Metadata-protocol: none + + A list with no declared `pagination` loads window by window as it scrolls. At phone width the grid draws record cards in a scroller of its own, and that scroller was never watched: the cards ended in a pager reading "Page 1 of 3" whose Next did nothing, so no record past the first window (the 51st, by default) could be reached. The grid now asks its host for the next window as the card scroller nears its end, and draws no card pager when its host loads as the list scrolls (`onLoadMore`), as the table draws none. A list that declares `pagination` keeps its card pager unchanged. No prop, export or metadata key changes. +- 9c283a1: feat(console): preview images, PDF, text and CSV in the page from a record's attachments and from a file field + + Clause-②: yes (widening) + Metadata-protocol: none + + A file opens in a dialog in the page instead of leaving it. In a record's attachments, the file's name opens the preview; the download stays in the row's menu. On a file field, a click on the file's link opens the preview; a modified click (new tab, new window) still opens the link as before. + + - **Four views, no new dependency.** Images (PNG, JPEG, GIF, WebP) draw in an image element, and an SVG only ever through an image element, never inlined. A PDF draws in the browser's own viewer in a frame; on a phone it opens in a new tab, which hands it to the system viewer. Plain text draws as text. A CSV draws as a table, read with the same GBK-aware decoder the grid's import wizard uses. + - **Download only.** Word, Excel, PowerPoint, HTML and every other type show "This file type cannot be previewed. Please download it." with a download button. An HTML file is never framed and never drawn as markup. + - **Limits.** Images and PDF up to 20 MB; text and CSV up to 2 MB, showing their first 1000 rows or lines. Past a limit the dialog shows "This file is too large to preview. Please download it." with a download button. + - **Controls.** Previous and next (and the arrow keys) walk a record's attachments; download; open in a new tab. + - **Same door as the download.** The preview reads the same signed link through the same permission check as the download, so a reader the download refuses sees the same refusal in the preview. When the browser cannot read a text or CSV file from the page (a bucket on another origin without the CORS rule the preview needs), the dialog offers the new tab instead. + + New exports from `@object-ui/fields`: `FilePreviewDialog` and its types `FilePreviewDialogProps` and `FilePreviewItem`; `decodeSpreadsheetText` and `parseDelimited`, the delimited-text reader that moved down from `@object-ui/plugin-grid` (which now imports them from `@object-ui/fields`; its own behaviour is unchanged). + + New `@object-ui/i18n` keys in every pack, under `fields.filePreview`: `title`, `previous`, `next`, `download`, `openInNewTab`, `loading`, `tooLarge`, `unsupported`, `denied`, `loadFailed`, `blocked`, `pdfOutside`, `truncatedRows`, `truncatedLines`, `empty`. + + No metadata key, value or default changes. +- 9849846: feat(plugin-grid): a row's "⋮" menu and its right-click menu follow the object's `actionLayout.record` order + + Clause-②: no + Metadata-protocol: none + + On an object whose served `actionLayout` carries a `record` arm, the actions a row's "⋮" menu and its context menu list (and the one-record menu of the list page's selection bar, which reads the same plan) now come in the arm's order: the actions `pinned` names first, then the ones `more` names, each in the arm's order, then every other action in the order the menus used before (primaries above secondaries, each in declared order). Which primary the row draws as its inline button, and where the built-in Edit and Delete sit, are unchanged. An object with no `record` arm lists exactly as before. +- 49c6bf3: fix(fields): an action's lookup param honours the borrowed field's `allowCreate: false`, and a record created in a filtered picker that fails the filters is not selected + + Clause-②: yes (widening) + Metadata-protocol: none + + - **A field-backed lookup param reads the field's `allowCreate`.** A param written `{ field, objectOverride }` already took the field's `lookupFilters`, `lookupColumns`, `lookupPageSize` and `descriptionField`, but not `allowCreate`. As a result, a field declaring `allowCreate: false` still showed "+ New" in an action's picker. `resolveActionParams` now copies it, app-shell's `paramToField` forwards it to the record-header dialog's picker, and the selection toolbar's dialog carries it through `resolvePromotedBulkParams`. Both the desktop popover and the phone drawer honour it. `@object-ui/core`'s `ActionParamDef` gains the optional `allowCreate` member it travels on. An author who writes `allowCreate` on a raw param is warned by name in development, like the other inherited picker keys: the spec's `ActionParamSchema` does not declare it. + - **A quick-created record is selected only if the picker could have offered it.** The create form accepts whatever the user enters, so the new record can fail the field's `lookupFilters`, for example a `draft` where the field asks for `approved`. The picker used to select it anyway, and the save or action that read the field then refused it. The picker now re-reads the new id through its own filter, the field's `lookupFilters` and `dependsOn` scope combined with the id. If the server does not return the record, it is not selected, and the picker reopens with the line `lookup.createdOutsideFilters` ("The record was created, but it does not match this field's filters, so it cannot be chosen here."), in every shipped locale. If the check itself fails, the record is not selected either, and the line `lookup.createdUnchecked` says the record was created but could not be checked, so the user searches for it instead of creating a duplicate. A picker with no filter selects the new record as before, without the extra read. + - **A create notice no longer hides the candidate list.** A create notice (the two lines above, or a failed inline create) now sits above the list instead of replacing it, so the user can pick an existing record straight away. Closing the picker clears it. Before, a failed inline create hid the list and its create entry until the widget was remounted. +- c48f06c: feat(app-shell): every metadata type's list is drawn by ObjectGrid, and its New on a read-only base creates in the base's paired `.custom` package + + Clause-②: yes (widening) + Metadata-protocol: none + + - `@object-ui/plugin-grid`: `ObjectGrid` takes two generic host props for its table view — `hostCells` (a host draws a column's cells) and `rowTint` (a palette name per row, over `rowColor`). + - `@object-ui/app-shell`: the metadata list (Setup and Studio's All metadata area) is an `ObjectGrid` fed a declared schema and the page's rows in the list's own order; diagnostics tint, lock, the Active switch, Clone, the served columns and the 「修改时间」 column (its time, its unpublished-changes mark and its `changed` sort, objectstack#36898) are the page's cells; sort, search and page live in the address. The grid's personal columns, export, selection and inline edit are off for it. + - On a read-only base in Studio, the list's New creates in the paired `.custom` package (ADR-0146 D3): an object (with its organization-wide sharing default) and a flow (from a starting point) open the list's create dialog; another type opens the area's create in the pair. Under the customization wall no New is offered. +- 6cfd04d: fix(plugin-grid): the row menu offers no Edit on a row held by a locking approval + + Clause-②: no + Metadata-protocol: none + + A grid row whose record is held by its own pending approval with `lockRecord: true` is refused `RECORD_LOCKED` when it is updated. Its row menu still offered Edit, on the list page and on a record page's related tab. The menu now reads the same lock the grid's cells read (`POST /api/v1/approvals/records/:object/locks`), once per page, when a row's actions are first reached for. A row the lock read answered as locked offers no Edit, as the record page offers none. Delete stays, because a record held by its own approval may be deleted, and the delete cancels the request. The lock read does not report a detail line held because its master is held, so such lines keep both Edit and Delete in this menu, and the server refuses both. When the lock cannot be read, the menu stays as it was: no approvals service (501), a row the reader cannot read, a failed read, or a read not yet asked. +- 57445a6: fix(console): a per-record bulk flow action counts a refused record as refused, with its own message, and stacks no refusal notice + + Clause-②: yes (seat ruling: the published `@object-ui/types` `ActionResult` gains a member; L1-a owes a lane-keep L2 review) + Metadata-protocol: none + + The published `@object-ui/types` adds two optional members, `ActionResult.refusal` and `ActionContext.reportsRefusal`. Nothing existing is narrowed. + + A list view's selection bar can run a `type: 'flow'` action once per selected record. A run that ended on an `end` node with `outcome: 'refused'` answers `200` with `status: "refused"` and a `refusalMessage`. Before this change the bulk result counted such a record as succeeded ("Succeeded 3 / 3"), and one refusal dialog opened on top of the result showing a single record's message, so the other refused records' reasons were lost. + + - The result now counts refused records apart: "Succeeded 1 / 3 · Refused 2". Each refused record is listed with the sentence the flow wrote for it. A refused record has no Retry and is not written to the error CSV: re-running it would get the same answer. When a failed record is retried and the action refuses it, it moves to the refused list. + - No refusal dialog opens during a bulk run. The same action launched from a row menu still opens its Close-only refusal notice, unchanged. + - `ActionResult.refusal` (`{ message }`) is set by the console's flow launch on a run that ended `refused`, beside `success: true` and `handedOff: true`. A caller that counts outcomes reads it as refused, never as done. + - `ActionContext.reportsRefusal` is passed for one dispatch through `ActionRunner.execute`'s `callContext`. A caller that lists refusals itself sets it, and the console's flow handler then opens no notice of its own. +- 1f3e9f6: fix(console): a per-record bulk flow action counts a record whose run paused at a screen as waiting for input, and every paused record's screen opens in turn + + Clause-②: yes + Metadata-protocol: none + + The published `@object-ui/types` adds one optional member, `ActionResult.paused`. Nothing existing is narrowed. + + A list view's selection bar can run a `type: 'flow'` action once per selected record. A run that reaches a `screen` node pauses and waits for input. Before this change the bulk result counted such a record as succeeded ("Succeeded 3 / 3"), and the console held one paused run at a time: each paused record replaced the previous one, so only the last record's screen opened and the other records' runs waited at screens nobody could reach. + + - The result now counts paused records apart: "Succeeded 1 / 3 · Waiting for input 2". Each waiting record is listed by name, under a line saying its screen opens next. A waiting record has no Retry and is not written to the error CSV: a re-run would start a second run. When a failed record is retried and its run pauses, it moves to the waiting list. + - The console now queues paused runs. Its flow runner shows the first paused record's screen, and closing or completing it shows the next one, until none is left. This holds for the console's list runtime and for a list on a record page. + - `ActionResult.paused` (`{ runId }`) is set by the console's flow launch on a run that paused at a screen, beside `success: true` and `handedOff: true`. A caller that counts outcomes reads it as waiting, never as done. +- 422df61: Clause-②: no + Metadata-protocol: none + + An import row refused because another row of the same file carries the same match key (`DUPLICATE_MATCH_KEY`) now reads in the importing user's language, like the cell errors beside it, and names the key by its field label (`Email`, `Supplier + Type`) instead of its API name; the row numbers stay in the sentence. The sentence is the new `import_duplicate_match_key` entry of the built-in validation message catalog (`BUILTIN_VALIDATION_MESSAGES`, in all four platform locales), so a deployment can override it under `validation.field.import_duplicate_match_key`. The row keeps its shape (`code`, `error`); only the `error` text changes. An English deployment reads the same sentence as before, with the field label where the API name was. + + The console import wizard shows a row refused by an object-level validation rule (a rule that names no field, reported on the `_record` field) as its message alone, without a `_record:` prefix, in the dry-run findings, on the result screen and in the failed-rows download. A field-level error keeps its `Label: message` form; the failed-rows download now prefixes it with the field label too, where it used the API name. +- ebb4713: fix(plugin-grid): a phone list card never repeats a formula title in its subtitle + + Clause-②: no + Metadata-protocol: none + + On a phone, a list card whose object names its records with a `formula` name field (a case's `display_title` = `case_number - subject`) showed the title's parts again in the subtitle when the view showed them as its leading columns, so the subtitle had no room for anything else. The subtitle now skips every shown column whose field the name field's formula reads (a read through a lookup, `record.account.name`, skips the lookup's column) and takes the next shown columns instead: `CASE-00037 - Demo case 29 — critical problem` over `紧急 · Polar Cargo`. A name field that is not a formula keeps the subtitle it had. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [2b57044] +- Updated dependencies [52a2398] +- Updated dependencies [a0b4ecf] +- Updated dependencies [ee5fdc8] +- Updated dependencies [d6d9645] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [c3fb37a] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [c9b3f7a] +- Updated dependencies [8e46424] +- Updated dependencies [8896822] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [dc53d4a] +- Updated dependencies [0739dee] +- Updated dependencies [ad15579] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [eed422e] +- Updated dependencies [2df9691] +- Updated dependencies [bfd6b6b] +- Updated dependencies [55020c3] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [6f2bd4f] +- Updated dependencies [99a0e4f] +- Updated dependencies [a9b36ef] +- Updated dependencies [9f352e8] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [fd471d3] +- Updated dependencies [1b2cd80] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [f2078e3] +- Updated dependencies [7702f09] +- Updated dependencies [05e0eb8] +- Updated dependencies [b863d2b] +- Updated dependencies [c890070] +- Updated dependencies [e75a528] +- Updated dependencies [5bd7257] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [34308dc] +- Updated dependencies [eb1f85d] +- Updated dependencies [58d00db] +- Updated dependencies [3819afe] +- Updated dependencies [a5ddeb6] +- Updated dependencies [61722e9] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [285ad8d] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [6a35635] +- Updated dependencies [9212119] +- Updated dependencies [cda16d4] +- Updated dependencies [9b3227f] +- Updated dependencies [fe75349] +- Updated dependencies [f4de1de] +- Updated dependencies [dab4712] +- Updated dependencies [141a826] +- Updated dependencies [8145424] +- Updated dependencies [b65488a] +- Updated dependencies [53c9575] +- Updated dependencies [83a79e6] +- Updated dependencies [dda665f] +- Updated dependencies [98b3f87] +- Updated dependencies [46ad134] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [ccded86] +- Updated dependencies [f7b172f] +- Updated dependencies [ec24363] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [e01b8be] +- Updated dependencies [238661f] +- Updated dependencies [d96c878] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [72d19c4] +- Updated dependencies [b0c624a] +- Updated dependencies [9b6db73] +- Updated dependencies [1e018d6] +- Updated dependencies [6d86b43] +- Updated dependencies [bae933b] +- Updated dependencies [a3a74f2] +- Updated dependencies [f98f18c] +- Updated dependencies [74d3d83] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [227a16a] +- Updated dependencies [de25d58] +- Updated dependencies [598a34d] +- Updated dependencies [0585797] +- Updated dependencies [811858c] +- Updated dependencies [fac1e7d] +- Updated dependencies [4609c48] +- Updated dependencies [8500ee7] +- Updated dependencies [a6607c7] +- Updated dependencies [c00be39] +- Updated dependencies [1c87956] +- Updated dependencies [5345905] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [f909734] +- Updated dependencies [cedc094] +- Updated dependencies [a03c3d4] +- Updated dependencies [c9b0a23] +- Updated dependencies [a8126d2] +- Updated dependencies [f51578e] +- Updated dependencies [65fddc8] +- Updated dependencies [6b360ab] +- Updated dependencies [d19d875] +- Updated dependencies [c7174c3] +- Updated dependencies [78f7160] +- Updated dependencies [bb1c55d] +- Updated dependencies [1d7015a] +- Updated dependencies [d7c257e] +- Updated dependencies [9972432] +- Updated dependencies [40e22f1] +- Updated dependencies [5a68b57] +- Updated dependencies [fddb9cb] +- Updated dependencies [647eb92] +- Updated dependencies [7de1bad] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [dea68e9] +- Updated dependencies [b113178] +- Updated dependencies [138faaa] +- Updated dependencies [411fe24] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [48c732c] +- Updated dependencies [52fb30c] +- Updated dependencies [8807dcb] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [9ed18a5] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [c261a7c] +- Updated dependencies [76cb366] +- Updated dependencies [32409a9] +- Updated dependencies [cf45e4f] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [9f6f306] +- Updated dependencies [c757e07] +- Updated dependencies [a5a5312] +- Updated dependencies [c1b35c3] +- Updated dependencies [9a98a46] +- Updated dependencies [96b66ca] +- Updated dependencies [8c8ff0f] +- Updated dependencies [27e414b] +- Updated dependencies [eb53d63] +- Updated dependencies [dda5e74] +- Updated dependencies [f2a990b] +- Updated dependencies [035a12c] +- Updated dependencies [33d0169] +- Updated dependencies [a23164e] +- Updated dependencies [f3d0a9f] +- Updated dependencies [6aacad9] +- Updated dependencies [0d0ed81] +- Updated dependencies [8aed508] +- Updated dependencies [a60740a] +- Updated dependencies [8c5a81e] +- Updated dependencies [43580a3] +- Updated dependencies [cc05e60] +- Updated dependencies [dc10b3b] +- Updated dependencies [dca608a] +- Updated dependencies [baf2678] +- Updated dependencies [13d1e95] +- Updated dependencies [15b7f51] +- Updated dependencies [c297dff] +- Updated dependencies [1cd4762] +- Updated dependencies [3f7fdd0] +- Updated dependencies [6db1dc2] +- Updated dependencies [9ae874a] +- Updated dependencies [3ae62ac] +- Updated dependencies [6c7c6db] +- Updated dependencies [eebb893] +- Updated dependencies [493ad09] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [3543b51] +- Updated dependencies [4ab2c82] +- Updated dependencies [04f9861] +- Updated dependencies [c30ce97] +- Updated dependencies [28749e3] +- Updated dependencies [e605773] +- Updated dependencies [0628e08] +- Updated dependencies [713545f] +- Updated dependencies [cbd582f] +- Updated dependencies [031325d] +- Updated dependencies [1705ec9] +- Updated dependencies [b7fe94a] +- Updated dependencies [a2dc858] +- Updated dependencies [a6756a2] +- Updated dependencies [b3bcfef] +- Updated dependencies [aad35e6] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [71e02ff] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [28ba01f] +- Updated dependencies [5e8e243] +- Updated dependencies [4099ef2] +- Updated dependencies [8466fca] +- Updated dependencies [e3054b4] +- Updated dependencies [6a73185] +- Updated dependencies [0d2bb8d] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [740720c] +- Updated dependencies [6e643cc] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [96b7975] +- Updated dependencies [e8b494a] +- Updated dependencies [bbc7e03] +- Updated dependencies [27895d7] +- Updated dependencies [543585d] +- Updated dependencies [7e89bc6] +- Updated dependencies [70194ff] +- Updated dependencies [42e4096] +- Updated dependencies [a10422d] +- Updated dependencies [dcc9b07] +- Updated dependencies [1a2a8a9] +- Updated dependencies [24366ff] +- Updated dependencies [f2ef7d8] +- Updated dependencies [7a5ae65] +- Updated dependencies [17dbea4] +- Updated dependencies [ff60149] +- Updated dependencies [ee651ce] +- Updated dependencies [dad9b55] +- Updated dependencies [d076975] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [8a741ab] +- Updated dependencies [60e79ed] +- Updated dependencies [3cf6a44] +- Updated dependencies [5fecc22] +- Updated dependencies [595844b] +- Updated dependencies [53733c1] +- Updated dependencies [4f19091] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [9c283a1] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [52971ff] +- Updated dependencies [06c3e5a] +- Updated dependencies [2da2979] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [e4e3bcf] +- Updated dependencies [ad50d61] +- Updated dependencies [87c7bba] +- Updated dependencies [50bfbb8] +- Updated dependencies [f26469a] +- Updated dependencies [7501d0c] +- Updated dependencies [4ef1ea9] +- Updated dependencies [cb909d7] +- Updated dependencies [41dd132] +- Updated dependencies [45ef94e] +- Updated dependencies [d7411fa] +- Updated dependencies [c6075a7] +- Updated dependencies [cd51dbb] +- Updated dependencies [3f568c1] +- Updated dependencies [573a376] +- Updated dependencies [5c2d5cf] +- Updated dependencies [cbc06ff] +- Updated dependencies [43916f3] +- Updated dependencies [f590f3e] +- Updated dependencies [9fa05c6] +- Updated dependencies [ed0edb1] +- Updated dependencies [a10987a] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [f77d078] +- Updated dependencies [3110de5] +- Updated dependencies [1948c5f] +- Updated dependencies [0e83fe0] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [9f84e5f] +- Updated dependencies [368deee] +- Updated dependencies [6156fdd] +- Updated dependencies [8644ce7] +- Updated dependencies [0d6589d] +- Updated dependencies [c54aa57] +- Updated dependencies [53257a5] +- Updated dependencies [8aecf6d] +- Updated dependencies [03cb550] +- Updated dependencies [115d387] +- Updated dependencies [e0050ba] +- Updated dependencies [2f8e8ba] +- Updated dependencies [14f4d8f] +- Updated dependencies [fa23941] +- Updated dependencies [8ddadc1] +- Updated dependencies [183ed23] +- Updated dependencies [a03bc4e] +- Updated dependencies [4d4ec16] +- Updated dependencies [d763ee7] +- Updated dependencies [8018e00] +- Updated dependencies [844218f] +- Updated dependencies [8cce05b] +- Updated dependencies [0d727b7] +- Updated dependencies [ff0d1f1] +- Updated dependencies [4f7d6f7] +- Updated dependencies [b848b47] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [47ed85d] +- Updated dependencies [0819cab] +- Updated dependencies [97e0f93] +- Updated dependencies [c8d4b90] +- Updated dependencies [00aa574] +- Updated dependencies [69c3dc4] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [b3d953e] +- Updated dependencies [62692b7] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [49c6bf3] +- Updated dependencies [4f9a3f8] +- Updated dependencies [00dd362] +- Updated dependencies [1cda7ea] +- Updated dependencies [bac4864] +- Updated dependencies [8c29b81] +- Updated dependencies [a68b475] +- Updated dependencies [c75453e] +- Updated dependencies [1e96009] +- Updated dependencies [57445a6] +- Updated dependencies [01967c3] +- Updated dependencies [0212714] +- Updated dependencies [15d2766] +- Updated dependencies [1f3e9f6] +- Updated dependencies [8b1841f] +- Updated dependencies [305fe60] +- Updated dependencies [e91149e] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [706c8c6] +- Updated dependencies [c063734] +- Updated dependencies [c0dd417] +- Updated dependencies [0439a04] +- Updated dependencies [517e415] +- Updated dependencies [f92d271] +- Updated dependencies [6ddb97b] +- Updated dependencies [2af9729] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [6161010] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [b89f1b5] +- Updated dependencies [372ce7c] +- Updated dependencies [3aa008d] +- Updated dependencies [7d3b8d6] +- Updated dependencies [15f8357] +- Updated dependencies [378c955] +- Updated dependencies [56fa31b] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [39e9a82] +- Updated dependencies [9c5fb3e] +- Updated dependencies [abb5449] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @object-ui/plugin-detail@18.7.0 + - @object-ui/i18n@18.7.0 + - @object-ui/fields@18.7.0 + - @object-ui/types@18.7.0 + - @object-ui/core@18.7.0 + - @object-ui/components@18.7.0 + - @object-ui/react@18.7.0 + - @object-ui/mobile@18.7.0 + - @object-ui/permissions@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/ui/packages/plugin-grid/package.json b/ui/packages/plugin-grid/package.json index 77c3e87c440..d41b9ae7ce9 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": "18.6.0", + "version": "18.7.0", "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 c9b462ca1ea..fc47d871995 100644 --- a/ui/packages/plugin-kanban/CHANGELOG.md +++ b/ui/packages/plugin-kanban/CHANGELOG.md @@ -1,5 +1,413 @@ # @object-ui/plugin-kanban +## 18.7.0 + +### Minor Changes + +- 73f2cf4: feat(kanban): the board's own 视图设置, a lane header 「+」 and 「⋯」, and a lane statistic and card toggles on `KanbanConfig` + + Clause-②: yes (widening) + Metadata-protocol: added + + `KanbanConfigSchema` gains three optional keys, none with a default; a view that declares none of them renders as before: + + - `summary` — a lane statistic drawn at the foot of each lane (`KanbanLaneSummary`): `{ type: 'count' }`, or `{ type: 'sum', field }` of a number field over the cards the lane has loaded, not every record of the lane; `{ type: 'none' }` shows nothing. It takes precedence over `summarizeField`. A sum over a lane holding more cards than were loaded says so (「仅已加载的卡片」). The whole-lane sum, and average, minimum and maximum, wait for a server lane read (#36520). + - `showFieldLabels` — absent means `true`: a card names each field beside its value; `false` draws the values alone. + - `hideEmptyFields` — absent means `true`: a card leaves out an empty field; `false` keeps its line. + + On a board, the view settings show the lane field, which lanes show and in what order, the card fields (order, hide, add), the two card toggles and the lane-foot statistic, in place of the table's columns, group, row height and row colour. Each change applies at once and is held as the list's draft until Save. Each lane header gets 「+」 (a new record with the lane prefilled; an empty lane also gets a 「+ New」 row) and 「⋯」 (collapse, kept in this browser; hide). Hiding a lane moves its cards into 「未分类」, as `kanban.lanes` (#28211) always has, and the menu and the lanes list say so. The lane field picker offers select and radio fields; collapse is kept per reader, object and view. The Console now relays the view's `kanban.lanes`, which it used to drop, and both producers of the board node (`ListView` and `ObjectView#generateViewSchema`) relay the three new keys. `ObjectKanban` takes the host's `laneMenu` request (`KanbanLaneMenuRequest`). `@objectstack/lint` walks `kanban.summary.field` and refuses a `sum` over a field that is no number, a yes / no field included (`list-view-summary-field-type-refused`). Saving a board whose view declares no `kanban` block stores the lane field the board draws with the changed keys. +- 8f141a2: feat(kanban): a lane's sum, average, minimum and maximum cover every record of the lane, computed in the query + + Clause-②: yes + Metadata-protocol: semantic + Skills-docs: follow-up #36422 (skills/objectstack-ui/rules/list-views.md teaches the board lane summary, now including avg / min / max) + + A stored `kanban.summary` of type `sum` now totals every record in the lane (computed in the query) instead of the loaded cards; where the board cannot ask the server, no figure is drawn. + + A board's lane foot statistic, `kanban.summary`, now takes `{ type: 'avg' | 'min' | 'max', field }` beside `none`, `count` and `sum`, and every one of `sum`, `avg`, `min` and `max` covers all of the lane's records: + + - **One grouped aggregate, no fetch-then-add.** The board asks ONE aggregate over its own query — its filter and its host's search, grouped by the lane field — through the data door a grouped list view's headers already ride (`DataSource.queryGroupHeaders`, `POST /data/:object/query`). A lane longer than its page (50 records) shows the whole lane's figure; the "loaded cards" label is gone. Records with no lane value, and records in a value that is no lane, are folded into the trailing "Uncategorized" lane. A lane with no record shows `0` for a sum and no figure for the other three; a lane that holds records but that the answer has no group for (the door can cut the group rows under a deployment's default page size) shows no figure rather than `0`. A whole answer needs the door to hand back that the rows were cut: follow-up #36870. + - **Under the reader's permissions.** The platform runs the aggregate with the reader's row filter, and refuses an aggregate over a field the reader may not read; the board asks nothing for such a field, and a refused read draws no figure. + - **No figure rather than a partial one.** A data source without `queryGroupHeaders`, or a filter the read cannot repeat, draws no `sum` / `avg` / `min` / `max` figure. Over cards a host hands to the board, a `sum` is still added up on the board and the other three draw nothing. Known gap, follow-up #36871: the list view hands a board whose lanes it cannot know before the query (lanes over a lookup field, a view with grouping) its fetched page, so there `sum` totals that page, unmarked. + - **`@objectstack/lint`** judges `avg`, `min` and `max` the way it judges `sum` (`list-view-summary-field-type-refused`): the aggregate × field-type table's row for that function over the field's declaration, less the boolean class, which it now reads from the spec (`BOOLEAN_VALUE_TYPES`) instead of listing `boolean` and `toggle` itself. The list view's lane-statistic picker reads the same class, and now offers and names `avg` (Average), `min` (Minimum) and `max` (Maximum) over the number fields it offers for `sum`; the locale packs carry the three names and drop the retired loaded-cards label. + + A stored `sum` keeps its key and its field; what it draws is now the whole lane's total where it drew a total over the loaded cards before, and no figure over a data source that cannot answer the lane read. + +### Patch Changes + +- 9a98a46: feat(list,detail): a change that makes other fields required asks for them in place — the kanban drop's fill-in, now shared by the list cell and the record page + + Clause-②: yes (widening) — `@object-ui/fields` exports `collectRequiredWhenPromptFields`, `RequiredFieldsDialog` and their types (moved from `@object-ui/plugin-kanban`, which never exported them) and the new `requiredWhenPromptReads`; nothing removed or renamed + Metadata-protocol: none + + When a value about to be written makes another field's `requiredWhen` true while that field is still empty, the write is held and one dialog asks for the missing values: + + - **Where:** a list cell in the select-first grid every `ListView` draws, the record page's inline Save, and the kanban drop (as before). + - **What it shows:** the record's name, the change that set it off (read-only), and one row per field to fill, with the editors the record form uses. A value typed there that makes one more field required adds that field; Save waits for it. + - **Save** writes the change and the typed values as ONE update. **Cancel** writes nothing: the list cell keeps its value; on the record page the edit session and its draft stay. + - **A refusal of that update stays in the dialog:** under the field it names, as a new row for another field the reader can fill, or at the dialog's foot. + - **Not asked for**, and written and refused as before: a field that already has a value, is hidden or read-only, that the reader may not write, or that has no in-place editor (a file, rich text, a formula). The record drawer's per-field save does not ask either. + + The pre-evaluation is the one the kanban drop already used (`resolveFieldRuleState`, the evaluator the form and the server share, judged as the engine's transition gate), generalised from one key to any set of changed keys. +- be91bfc: fix(ui): the kanban, calendar, timeline and map views draw the no-access state for a refused read, not the raw error + + Clause-②: no + Metadata-protocol: none + + A reader who may open a page but is not granted the records its kanban board, calendar, timeline or map reads saw the transport's own string where the view would be, untranslated (for example `Error loading kanban data: ApiDataSource: HTTP 403 Forbidden — {…}`). Each of the four views now classifies a failed load with the shared load-error verdict the list page, the related list and the Gantt chart use, and for a permission refusal (a 403, or a `PERMISSION_DENIED` / `FORBIDDEN` code) draws the calm no-access state those surfaces draw: a neutral status panel with the shared `list.loadErrorForbiddenTitle` / `list.loadErrorForbiddenMessage` sentence in the reader's language, and none of the server's text. Every other failure (a 500, a dropped connection) keeps each view's existing error screen. The map's tile-style failure is not a data load and is unchanged. +- 6c7c6db: feat(ui): the console's pages set text in two sizes, 14 and 12, and two weights, 400 and 500 + + Clause-②: no + Metadata-protocol: none + + - **Two sizes.** Body text, list cells, field values, inputs, menu items, toolbar controls and buttons are 14px (`text-sm`); field labels, column headers, counts, timestamps, hints and chip text are 12px (`text-xs`). The hard-coded 13px is gone from the console's runtime pages, and the 10px, 11px and other odd sizes there are 12px. The in-cell editor is 14px, like the cell it edits. + - **Two weights.** Record names, tabs, buttons, section titles and column headers are 500 (`font-medium`); body text is 400. Weight 600 and 700 stay only on page and dialog titles 18px and larger. `DropdownMenuLabel` is weight 500 through a declared local patch on the Shadcn primitive (`dropdown-menu-label-medium-weight` in `ui/scripts/shadcn-local-patches.mjs`), so it survives a registry sync. + - **Not changed:** Studio and metadata administration internals, the settings pages, developer tools, phone-only layouts, avatar initials, authored markdown and SDUI heading typography, the docs reader's prose size, and the shape of coloured option badges (still pills). + - A list column with no declared width measures its content, so it grows with the 14px text; a column whose width a view or a user set keeps that width and shows about 8% fewer characters before it truncates. +- f2ef7d8: fix(ui): the kanban card owner, history timeline, user menu and presence stack draw letters-only initials + + Clause-②: yes (widening) + Metadata-protocol: none + + A person whose display name carries punctuation, such as `Alice (Sales)`, now shows `AS` on the kanban card owner's avatar, the history timeline, the user menu and the presence stack, where those four faces drew `A(`. They now use the same rule as the people cell and the avatar widget: initials are made of letters only, a single-word name gives its first two letters (`Admin` → `AD`), a name of three or more words gives its first and last words' first letters (`John Michael Doe` → `JD`), a single CJK word gives its last one or two characters, and a name with no letter gives `?`. The user menu still falls back to the email's first character when there is no name. + + The rule, `getPersonInitials`, is now exported by `@object-ui/types`, the lowest package all of these faces can reach; `@object-ui/fields` re-exports the same function, so its `getPersonInitials` export is unchanged. `@object-ui/auth` now depends on `@object-ui/types`. +- e9fa6b5: fix(kanban): a board grouped by a lookup, user, master-detail or tree field draws one lane per referenced record + + Clause-②: no + Metadata-protocol: none + + The board reads the lane field off records fetched with `$expand`, so a reference field's value is the referenced record, not its key. The lanes were built from the stringified value: one lane per card, every one titled "[object Object]", each holding every card. A lane on a reference field is now keyed by the foreign key and titled by the referenced record's name (the field's `displayField`, then the target object's `nameField`, then the shared record-title ladder); cards bucket by the foreign key, also into declared `columns` keyed by it; a drag to another lane writes the foreign key, and the moved card keeps naming its new value until the board refetches. A card with no value is drawn in "Uncategorized", as before; a data-derived board no longer draws a lane titled "null" for it. +- 9be1741: fix(plugin-kanban): a board swimlaned by a lookup or user field keys each swimlane by the referenced record's id and titles it by the record's name + + Clause-②: no + Metadata-protocol: none + + A kanban board whose `swimlaneField` is a reference field (lookup, user, master-detail) reads the field's value off records fetched with `$expand`, so the value is the referenced record. The swimlanes were built from that value stringified: every heading read `[object Object]`, and cards pointing at different records were drawn in one swimlane. + + Each swimlane is now keyed the way a column lane on a reference field is keyed: by the referenced record's id. Its heading is the record's name, read through the field's `displayField` and then the shared record-title ladder, and falls back to the id when neither names the record. The swimlane order and the collapsed-swimlane memory kept in the browser use the id. A card with no value still sits in the "Uncategorized" swimlane, and a swimlane field that holds plain values is unchanged. +- 7b56b3a: fix(plugin-kanban): a reference swimlane heading names its record through the target object's declared `nameField` + + Clause-②: no + Metadata-protocol: none + + A board whose swimlanes group by a lookup now titles each swimlane the way a column lane over the same reference is titled: the field's `displayField`, then the referenced object's `nameField` (ADR-0079), then the shared title ladder. Before, the swimlane skipped the referenced object's `nameField`, so one record could be named differently in a swimlane heading and in a column heading. `ObjectKanban` reads the referenced object once per board; no exported type changes. +- Updated dependencies [2b57044] +- Updated dependencies [a0b4ecf] +- Updated dependencies [ee5fdc8] +- Updated dependencies [d6d9645] +- Updated dependencies [1c05546] +- Updated dependencies [4ffe9d3] +- Updated dependencies [c3fb37a] +- Updated dependencies [c9b3f7a] +- Updated dependencies [8896822] +- Updated dependencies [dc53d4a] +- Updated dependencies [0739dee] +- Updated dependencies [ad15579] +- Updated dependencies [89364b4] +- Updated dependencies [eed422e] +- Updated dependencies [2df9691] +- Updated dependencies [bfd6b6b] +- Updated dependencies [55020c3] +- Updated dependencies [50f85e9] +- Updated dependencies [6f2bd4f] +- Updated dependencies [99a0e4f] +- Updated dependencies [a9b36ef] +- Updated dependencies [9f352e8] +- Updated dependencies [fd471d3] +- Updated dependencies [1b2cd80] +- Updated dependencies [6ffa816] +- Updated dependencies [f2078e3] +- Updated dependencies [7702f09] +- Updated dependencies [05e0eb8] +- Updated dependencies [c890070] +- Updated dependencies [5bd7257] +- Updated dependencies [5dd856f] +- Updated dependencies [34308dc] +- Updated dependencies [eb1f85d] +- Updated dependencies [58d00db] +- Updated dependencies [3819afe] +- Updated dependencies [a5ddeb6] +- Updated dependencies [61722e9] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [285ad8d] +- Updated dependencies [bfd1049] +- Updated dependencies [6a35635] +- Updated dependencies [9212119] +- Updated dependencies [cda16d4] +- Updated dependencies [9b3227f] +- Updated dependencies [fe75349] +- Updated dependencies [dab4712] +- Updated dependencies [141a826] +- Updated dependencies [8145424] +- Updated dependencies [b65488a] +- Updated dependencies [83a79e6] +- Updated dependencies [dda665f] +- Updated dependencies [98b3f87] +- Updated dependencies [46ad134] +- Updated dependencies [ccded86] +- Updated dependencies [ec24363] +- Updated dependencies [e01b8be] +- Updated dependencies [238661f] +- Updated dependencies [d96c878] +- Updated dependencies [72d19c4] +- Updated dependencies [b0c624a] +- Updated dependencies [9b6db73] +- Updated dependencies [1e018d6] +- Updated dependencies [6d86b43] +- Updated dependencies [bae933b] +- Updated dependencies [a3a74f2] +- Updated dependencies [f98f18c] +- Updated dependencies [74d3d83] +- Updated dependencies [227a16a] +- Updated dependencies [598a34d] +- Updated dependencies [0585797] +- Updated dependencies [811858c] +- Updated dependencies [fac1e7d] +- Updated dependencies [4609c48] +- Updated dependencies [8500ee7] +- Updated dependencies [a6607c7] +- Updated dependencies [c00be39] +- Updated dependencies [1c87956] +- Updated dependencies [5345905] +- Updated dependencies [af566c2] +- Updated dependencies [f909734] +- Updated dependencies [a03c3d4] +- Updated dependencies [c9b0a23] +- Updated dependencies [a8126d2] +- Updated dependencies [f51578e] +- Updated dependencies [65fddc8] +- Updated dependencies [6b360ab] +- Updated dependencies [d19d875] +- Updated dependencies [c7174c3] +- Updated dependencies [78f7160] +- Updated dependencies [1d7015a] +- Updated dependencies [9972432] +- Updated dependencies [40e22f1] +- Updated dependencies [5a68b57] +- Updated dependencies [fddb9cb] +- Updated dependencies [647eb92] +- Updated dependencies [7de1bad] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [dea68e9] +- Updated dependencies [b113178] +- Updated dependencies [138faaa] +- Updated dependencies [411fe24] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [48c732c] +- Updated dependencies [52fb30c] +- Updated dependencies [8807dcb] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [9ed18a5] +- Updated dependencies [c261a7c] +- Updated dependencies [76cb366] +- Updated dependencies [32409a9] +- Updated dependencies [cf45e4f] +- Updated dependencies [f548bdc] +- Updated dependencies [9f6f306] +- Updated dependencies [c757e07] +- Updated dependencies [a5a5312] +- Updated dependencies [c1b35c3] +- Updated dependencies [9a98a46] +- Updated dependencies [96b66ca] +- Updated dependencies [8c8ff0f] +- Updated dependencies [27e414b] +- Updated dependencies [eb53d63] +- Updated dependencies [dda5e74] +- Updated dependencies [f2a990b] +- Updated dependencies [035a12c] +- Updated dependencies [33d0169] +- Updated dependencies [a23164e] +- Updated dependencies [f3d0a9f] +- Updated dependencies [6aacad9] +- Updated dependencies [0d0ed81] +- Updated dependencies [8aed508] +- Updated dependencies [a60740a] +- Updated dependencies [43580a3] +- Updated dependencies [cc05e60] +- Updated dependencies [dc10b3b] +- Updated dependencies [dca608a] +- Updated dependencies [baf2678] +- Updated dependencies [13d1e95] +- Updated dependencies [15b7f51] +- Updated dependencies [c297dff] +- Updated dependencies [1cd4762] +- Updated dependencies [3f7fdd0] +- Updated dependencies [6db1dc2] +- Updated dependencies [9ae874a] +- Updated dependencies [3ae62ac] +- Updated dependencies [6c7c6db] +- Updated dependencies [eebb893] +- Updated dependencies [493ad09] +- Updated dependencies [3543b51] +- Updated dependencies [4ab2c82] +- Updated dependencies [04f9861] +- Updated dependencies [c30ce97] +- Updated dependencies [28749e3] +- Updated dependencies [e605773] +- Updated dependencies [0628e08] +- Updated dependencies [713545f] +- Updated dependencies [cbd582f] +- Updated dependencies [031325d] +- Updated dependencies [1705ec9] +- Updated dependencies [a2dc858] +- Updated dependencies [a6756a2] +- Updated dependencies [b3bcfef] +- Updated dependencies [aad35e6] +- Updated dependencies [0b2118f] +- Updated dependencies [71e02ff] +- Updated dependencies [d12ac84] +- Updated dependencies [28ba01f] +- Updated dependencies [5e8e243] +- Updated dependencies [4099ef2] +- Updated dependencies [8466fca] +- Updated dependencies [e3054b4] +- Updated dependencies [6a73185] +- Updated dependencies [0d2bb8d] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [740720c] +- Updated dependencies [6e643cc] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [96b7975] +- Updated dependencies [e8b494a] +- Updated dependencies [bbc7e03] +- Updated dependencies [27895d7] +- Updated dependencies [543585d] +- Updated dependencies [7e89bc6] +- Updated dependencies [42e4096] +- Updated dependencies [a10422d] +- Updated dependencies [dcc9b07] +- Updated dependencies [1a2a8a9] +- Updated dependencies [24366ff] +- Updated dependencies [f2ef7d8] +- Updated dependencies [17dbea4] +- Updated dependencies [ff60149] +- Updated dependencies [ee651ce] +- Updated dependencies [dad9b55] +- Updated dependencies [d076975] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [8a741ab] +- Updated dependencies [60e79ed] +- Updated dependencies [3cf6a44] +- Updated dependencies [5fecc22] +- Updated dependencies [53733c1] +- Updated dependencies [4f19091] +- Updated dependencies [3b58921] +- Updated dependencies [9c283a1] +- Updated dependencies [c45dd80] +- Updated dependencies [52971ff] +- Updated dependencies [06c3e5a] +- Updated dependencies [2da2979] +- Updated dependencies [e4e3bcf] +- Updated dependencies [ad50d61] +- Updated dependencies [87c7bba] +- Updated dependencies [50bfbb8] +- Updated dependencies [f26469a] +- Updated dependencies [7501d0c] +- Updated dependencies [4ef1ea9] +- Updated dependencies [cb909d7] +- Updated dependencies [41dd132] +- Updated dependencies [45ef94e] +- Updated dependencies [d7411fa] +- Updated dependencies [c6075a7] +- Updated dependencies [cd51dbb] +- Updated dependencies [3f568c1] +- Updated dependencies [573a376] +- Updated dependencies [5c2d5cf] +- Updated dependencies [43916f3] +- Updated dependencies [f590f3e] +- Updated dependencies [9fa05c6] +- Updated dependencies [ed0edb1] +- Updated dependencies [a10987a] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [fed637c] +- Updated dependencies [f77d078] +- Updated dependencies [3110de5] +- Updated dependencies [1948c5f] +- Updated dependencies [0e83fe0] +- Updated dependencies [7a7ab47] +- Updated dependencies [70f454a] +- Updated dependencies [9f84e5f] +- Updated dependencies [368deee] +- Updated dependencies [6156fdd] +- Updated dependencies [0d6589d] +- Updated dependencies [c54aa57] +- Updated dependencies [53257a5] +- Updated dependencies [03cb550] +- Updated dependencies [115d387] +- Updated dependencies [e0050ba] +- Updated dependencies [2f8e8ba] +- Updated dependencies [14f4d8f] +- Updated dependencies [fa23941] +- Updated dependencies [183ed23] +- Updated dependencies [4d4ec16] +- Updated dependencies [d763ee7] +- Updated dependencies [8018e00] +- Updated dependencies [844218f] +- Updated dependencies [8cce05b] +- Updated dependencies [0d727b7] +- Updated dependencies [ff0d1f1] +- Updated dependencies [4f7d6f7] +- Updated dependencies [b848b47] +- Updated dependencies [129e637] +- Updated dependencies [47ed85d] +- Updated dependencies [0819cab] +- Updated dependencies [97e0f93] +- Updated dependencies [c8d4b90] +- Updated dependencies [69c3dc4] +- Updated dependencies [76eea0f] +- Updated dependencies [b3d953e] +- Updated dependencies [62692b7] +- Updated dependencies [49c6bf3] +- Updated dependencies [00dd362] +- Updated dependencies [bac4864] +- Updated dependencies [8c29b81] +- Updated dependencies [a68b475] +- Updated dependencies [c75453e] +- Updated dependencies [1e96009] +- Updated dependencies [57445a6] +- Updated dependencies [0212714] +- Updated dependencies [15d2766] +- Updated dependencies [1f3e9f6] +- Updated dependencies [305fe60] +- Updated dependencies [e91149e] +- Updated dependencies [06c1f54] +- Updated dependencies [706c8c6] +- Updated dependencies [c0dd417] +- Updated dependencies [517e415] +- Updated dependencies [6ddb97b] +- Updated dependencies [2af9729] +- Updated dependencies [2a6f26a] +- Updated dependencies [6161010] +- Updated dependencies [b89f1b5] +- Updated dependencies [3aa008d] +- Updated dependencies [7d3b8d6] +- Updated dependencies [15f8357] +- Updated dependencies [378c955] +- Updated dependencies [56fa31b] +- Updated dependencies [39e9a82] +- Updated dependencies [9c5fb3e] +- Updated dependencies [abb5449] +- Updated dependencies [d280de9] + - @object-ui/plugin-detail@18.7.0 + - @object-ui/i18n@18.7.0 + - @object-ui/fields@18.7.0 + - @object-ui/types@18.7.0 + - @object-ui/core@18.7.0 + - @object-ui/components@18.7.0 + - @object-ui/react@18.7.0 + - @object-ui/permissions@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/ui/packages/plugin-kanban/package.json b/ui/packages/plugin-kanban/package.json index 84016bee33e..8aeb515e0eb 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": "18.6.0", + "version": "18.7.0", "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 26176b9edd9..dc7f21a7cf5 100644 --- a/ui/packages/plugin-list/CHANGELOG.md +++ b/ui/packages/plugin-list/CHANGELOG.md @@ -1,5 +1,929 @@ # @object-ui/plugin-list +## 18.7.0 + +### Minor Changes + +- f98f18c: feat: an object's `userActions.exportCsv: false` hides the console's Export entry + + Clause-②: yes + Metadata-protocol: semantic + + `userActions.exportCsv` on an object now does what the Studio object form says it does. Set to `false`, the console offers no Export entry for downloading that object's data, in any of its formats (CSV, XLSX, JSON): + + - the object grid hides its toolbar Export menu, and the table's own CSV button that `operations.export: true` turns on; + - the list view hides Export in both toolbar forms, the wide toolbar's button and the Display panel's export footer; + - a dataset report hides its Export control when the dataset's base object sets it. + + A view's export of the picture it draws is not covered: a Gantt view's PNG and PDF buttons stay. + + Every surface reads one verdict, the new `isObjectExportOffered(objectSchema, effectiveApiOperations)` from `@object-ui/core`: the authored `exportCsv` over the object's `managedBy` default, ANDed with the caller's effective `export` API operation. Before this change the grid's toolbar menu, the list view and the report read the effective operation but not the object's bit, and the grid's table CSV button read neither half (only `operations.export`), so `exportCsv: false` changed nothing. Export is a read, so the verdict is not a row of `AFFORDANCE_GRANTS` and asks no `can(object, verb)`: the caller's export grant reaches the console through the effective `export` operation, which the server derives from `list` and `allowExport`. + + An object that does not author the key keeps its Export entries, since every `managedBy` bucket still defaults `exportCsv` to `true` (ADR-0103), with one change: the grid's table CSV button (`operations.export: true`) now also follows the effective `export` operation, as the toolbar menu beside it already did. So a viewer whose effective operations exclude `export` no longer sees that button, even on an object that authors nothing. The setting hides the entry and is not a permission: no export request is refused because of it, and who may export is still the permission set's `allowExport`. The report reads the base object's definition through the report's data source, and a report whose source cannot serve one keeps its Export control. + + The spec's `exportCsv` description and the Studio form's help text now say this; the form's English help text bundle in `@objectstack/platform-objects` is regenerated to match, and the translated locales keep their wording. The liveness ledger grades `userActions.exportCsv` `live`, so an authored `exportCsv: true` no longer raises the `liveness-dead-property` warning at `os lint` / `os validate`. Nothing needs migrating. +- 811858c: feat(list): a list's cells are selected by a click and edited by a double-click, Enter or typing, with no inline-edit toggle + + Clause-②: yes (widening) + Metadata-protocol: semantic + Skills-docs: none — `skills/objectstack-ui/rules/list-views.md` already teaches that inline editing is on by default for a user who may update the object, with `userActions: { editInline: false }` as the opt-out, which the list page now does with no toggle; no skill teaches the toggle or a single-click edit. + + **The list page (`ListView`) has no inline-edit mode and no toggle.** Its grid is editable in place wherever the reader may update the object and the view does not declare `userActions.editInline: false`; a view's boolean `inlineEdit` still folds into that switch, so `inlineEdit: false` reads off and `inlineEdit: true` reads on. Before, a view that declared neither opened read-only with an "Edit inline" toggle in the toolbar and in the Display menu, the mode lasted for the session, and a click on a cell edited it. Both toggles are gone, and `ListViewProps.onInlineEditChange` is deprecated and never called; the console stops passing it. + + **The select-first cell model** (`data-table`, behind the new `GridCellSelectionProvider` in `@object-ui/components`; `ObjectGrid` mounts it when its host passes the new `cellSelection` prop, and `ListView` passes it for every `object-grid` view it draws, on the hosts listed below): + + - A click selects a cell (a ring around it) and neither edits it nor opens the record. A link the cell draws (the name, a lookup, a phone or an email) keeps its own click. A touch tap opens the record and never edits in place. + - Double-click, Enter or F2 edits, keeping the value with the caret at its end; typing a character replaces the value with it (a picker or a date opens instead); Backspace or Delete clears the cell and saves at once, and a required field keeps its value and says it is required (objectstack#36023). + - While editing, Enter commits and stays on the cell (objectstack#36023), Tab and Shift+Tab commit and move right and left, Escape cancels and keeps the cell selected; in a multi-line editor Enter is a new line and Ctrl/Cmd+Enter commits. Commits are the grid's staged edits, saved by the row's Save and Save All as before. + - On the selected cell the arrows and Tab move the selection, Space opens the record (a checkbox cell flips and commits instead, as a second click on it does), Ctrl/Cmd+C copies, Ctrl/Cmd+V converts the text to the field's type and commits it, and Escape clears the selection. + - An input method's composition is kept whole: keys pressed while composing, and the 229 Enter Safari raises after it, never commit, cancel or move, and a composition started on a selected cell opens the editor with the composed text. This guard applies to every `data-table` editor. + - A cell that opens no editor says why on the cell: the field is read-only, calculated or not editable in a list, the reader may not edit the field, these records or this record, the view turned editing off, or the record is locked by an approval. The approval lock is read from the approvals service's per-record lock when a cell of the row is selected, through the record page's rule (`resolveApprovalLock`); until it answers, the row's `approval_status` stands in only where the view fetches that column, which a view that authors its columns does only when a column, a row predicate or a grouping names it. + + Every grid a `ListView` draws has this model, because `ListView` passes `cellSelection` to each `object-grid` view: the console's object list pages, interface list pages, the object data page (`/apps/:app/:object/data`), the Studio Data pillar's records artboard, and every `list-view` block, whether an SDUI page node or a `ListView` on a `kind: 'react'` page; a grid no `ListView` draws mounts no provider and keeps its click-to-edit (`singleClickEdit`) and click-to-open behaviour unchanged: an authored `object-grid` node, `ObjectView`'s own grid (the `object-view` block, or a host that passes no `renderListView`), a related list, a dashboard table, the record picker and the designer's grids. + + On every `ListView` grid (the select-first model) the table's trailing edit column, which holds a changed row's Cancel and Save, is drawn only while a row has changes, so the list at rest ends on its last data column. `@object-ui/core` exports `resolveAffordanceGrant`, the grant half of `resolveAffordance`, which the list cell's read-only reason reads. + + New locale keys, in every pack: `table.cellReadOnly` and `grid.readOnlyReason.*` (nine reasons). No key is removed: `list.inlineEditShort` and `list.inlineEditLabel`, the toggle's words, stay in every pack, though the list no longer draws the toggle. +- d6be99d: feat(console)!: an object's list opens a record one way — the name opens the page, the hover icon opens the side panel; `navigation.mode` is deprecated + + Clause-②: yes (narrowing) + Metadata-protocol: semantic + + <!-- adr-0087: not-required (runtime-export-retired @object-ui/components#NavigationOverlayProps.maximizable, @object-ui/plugin-list#ListViewProps.recordOpen) the retired operands are a prop of the drawer component and a host prop of the list, in published ui package entries; no packages/spec schema, no registered node type, no ADR-0087 conversion surface and no stored shape names them, so there is nothing for `objectstack migrate meta` to rewrite --> + + **BREAKING** for a host that passed `NavigationOverlay` its `maximizable` prop or passed `ListView` a `recordOpen` choice. The maintainer ruled one way to open a record from an object's list, with no setting (「这样就不需要任何设置」), and deprecated `navigation.mode` (「废弃」). + + On a Console object list the record's name now opens the full record page, and the icon shown beside the name while the row is hovered (「在侧边打开」 / "Open in side panel") opens the record in the drawer over the list. There is no setting to choose between them: the Display menu's 「打开记录:抽屉 / 整页」 section and the browser-kept preference behind it are gone. A touch screen has no hover, so there the name opens the page. A ⌘/Ctrl or middle click on the name still opens the page in a new tab. + + The drawer is a card floating 8 px clear of the window's top, right and bottom edges, rounded and shadowed. Its full-width "maximize in place" state is gone (a reload lost it, and the full page is the wide face): the bar's one ⤢ opens the full page. The page's 「收为抽屉」 / "Collapse to drawer" hop is gone with it. + + A page the list opens remembers the list in its history entry (`location.state.from`): the list's URL (view, filters, sort, search, grouping, page), its view's name, the rows it showed and, new here, the count its query matched (`total`). A reload of the tab keeps it, and going back to that URL restores the list's scroll position. A page opened any other way carries none. + + `navigation.mode` (`NavigationConfigSchema.mode`) is deprecated on an object's list (`@deprecated`, `[DEPRECATED]` describe; ADR-0087 D3 semantic entry `navigation-mode-record-open-deprecated`). The key stays in the shape and every value still parses, so existing metadata loads. On an object's list (a list view, an object's `listViews`) `drawer`, `page` and `new_window` change nothing: a view that declares one behaves as a view that declares nothing. `none` keeps "rows open nothing", because a read-only list that started opening records would be a regression nobody chose; prefer `navigation: { preventNavigation: true }`. `navigation.openNewTab: true` stays live: on an object's list the record's name then opens the full page in a new tab, and the list stays. A page's blocks that carry `navigation` (a list block, the timeline, an embedded view) still honour `drawer`, `page` and `new_window` as before: keep the key there. + + The i18n keys `list.recordOpen`, `list.recordOpenDrawer`, `list.recordOpenPage`, `list.optionsMenu.recordOpenAlwaysPage`, `detail.collapseToDrawer` and `console.objectView.openAsPage` are removed from every pack, and `console.objectView.openInSidePanel` is added. + + What leaves, and what to write instead: + + - FROM `NavigationOverlayProps.maximizable` TO nothing, in the components package: the drawer has no full-width state. Fix: delete `maximizable`; the drawer's ⤢ opens the full page. + - FROM `ListViewProps.recordOpen` TO nothing, in the list plugin: the Display menu has no Open records section. Fix: delete `recordOpen`; the list opens a record one way. +- 73f2cf4: feat(kanban): the board's own 视图设置, a lane header 「+」 and 「⋯」, and a lane statistic and card toggles on `KanbanConfig` + + Clause-②: yes (widening) + Metadata-protocol: added + + `KanbanConfigSchema` gains three optional keys, none with a default; a view that declares none of them renders as before: + + - `summary` — a lane statistic drawn at the foot of each lane (`KanbanLaneSummary`): `{ type: 'count' }`, or `{ type: 'sum', field }` of a number field over the cards the lane has loaded, not every record of the lane; `{ type: 'none' }` shows nothing. It takes precedence over `summarizeField`. A sum over a lane holding more cards than were loaded says so (「仅已加载的卡片」). The whole-lane sum, and average, minimum and maximum, wait for a server lane read (#36520). + - `showFieldLabels` — absent means `true`: a card names each field beside its value; `false` draws the values alone. + - `hideEmptyFields` — absent means `true`: a card leaves out an empty field; `false` keeps its line. + + On a board, the view settings show the lane field, which lanes show and in what order, the card fields (order, hide, add), the two card toggles and the lane-foot statistic, in place of the table's columns, group, row height and row colour. Each change applies at once and is held as the list's draft until Save. Each lane header gets 「+」 (a new record with the lane prefilled; an empty lane also gets a 「+ New」 row) and 「⋯」 (collapse, kept in this browser; hide). Hiding a lane moves its cards into 「未分类」, as `kanban.lanes` (#28211) always has, and the menu and the lanes list say so. The lane field picker offers select and radio fields; collapse is kept per reader, object and view. The Console now relays the view's `kanban.lanes`, which it used to drop, and both producers of the board node (`ListView` and `ObjectView#generateViewSchema`) relay the three new keys. `ObjectKanban` takes the host's `laneMenu` request (`KanbanLaneMenuRequest`). `@objectstack/lint` walks `kanban.summary.field` and refuses a `sum` over a field that is no number, a yes / no field included (`list-view-summary-field-type-refused`). Saving a board whose view declares no `kanban` block stores the lane field the board draws with the changed keys. +- 8f141a2: feat(kanban): a lane's sum, average, minimum and maximum cover every record of the lane, computed in the query + + Clause-②: yes + Metadata-protocol: semantic + Skills-docs: follow-up #36422 (skills/objectstack-ui/rules/list-views.md teaches the board lane summary, now including avg / min / max) + + A stored `kanban.summary` of type `sum` now totals every record in the lane (computed in the query) instead of the loaded cards; where the board cannot ask the server, no figure is drawn. + + A board's lane foot statistic, `kanban.summary`, now takes `{ type: 'avg' | 'min' | 'max', field }` beside `none`, `count` and `sum`, and every one of `sum`, `avg`, `min` and `max` covers all of the lane's records: + + - **One grouped aggregate, no fetch-then-add.** The board asks ONE aggregate over its own query — its filter and its host's search, grouped by the lane field — through the data door a grouped list view's headers already ride (`DataSource.queryGroupHeaders`, `POST /data/:object/query`). A lane longer than its page (50 records) shows the whole lane's figure; the "loaded cards" label is gone. Records with no lane value, and records in a value that is no lane, are folded into the trailing "Uncategorized" lane. A lane with no record shows `0` for a sum and no figure for the other three; a lane that holds records but that the answer has no group for (the door can cut the group rows under a deployment's default page size) shows no figure rather than `0`. A whole answer needs the door to hand back that the rows were cut: follow-up #36870. + - **Under the reader's permissions.** The platform runs the aggregate with the reader's row filter, and refuses an aggregate over a field the reader may not read; the board asks nothing for such a field, and a refused read draws no figure. + - **No figure rather than a partial one.** A data source without `queryGroupHeaders`, or a filter the read cannot repeat, draws no `sum` / `avg` / `min` / `max` figure. Over cards a host hands to the board, a `sum` is still added up on the board and the other three draw nothing. Known gap, follow-up #36871: the list view hands a board whose lanes it cannot know before the query (lanes over a lookup field, a view with grouping) its fetched page, so there `sum` totals that page, unmarked. + - **`@objectstack/lint`** judges `avg`, `min` and `max` the way it judges `sum` (`list-view-summary-field-type-refused`): the aggregate × field-type table's row for that function over the field's declaration, less the boolean class, which it now reads from the spec (`BOOLEAN_VALUE_TYPES`) instead of listing `boolean` and `toggle` itself. The list view's lane-statistic picker reads the same class, and now offers and names `avg` (Average), `min` (Minimum) and `max` (Maximum) over the number fields it offers for `sum`; the locale packs carry the three names and drop the retired loaded-cards label. + + A stored `sum` keeps its key and its field; what it draws is now the whole lane's total where it drew a total over the loaded cards before, and no figure over a data source that cannot answer the lane read. + +### Patch Changes + +- 6a35635: feat(console): Change Owner on the record page, in a list's selection bar, and beside the read-only owner of the edit form + + Clause-②: yes (widening) + Metadata-protocol: none + + A record whose object offers Change Owner now shows a **Change Owner** action in its page header. The action appears only where three things hold: the object can have its owner changed (it has a per-person owner that is not pinned read-only), the object's `userActions.transfer` switch is on, and the server's explain engine allows this user to transfer this record. A `controlled_by_parent` detail offers the action only once its author turns the switch on. Objects with `ownership: 'none'`, `managedBy` objects and `sys_*` objects never offer it, even to a platform admin. + + The action opens one dialog. You pick the new owner under the object's own label for its owner field. Where the object has an ownership queue, you can pick a queue instead. You can also ask that the new owner be notified. The dialog sends the change through `data.changeOwner` for one record and `data.changeOwnerMany` for several. Picking the record's current owner is refused in the dialog with the reason shown. A bulk change ends with a report: how many records moved, how many already had that owner, how many did not move, and each row that did not move with the server's own reason. + + A list's selection bar offers **Change Owner** for the selected rows, where the object's switch is on and the explain engine allows this user to transfer the object's records (one question per object, not per row, asked once a selection is open rather than when the list opens). The rows of such an object take a selection even when the user has no bulk Delete and the view authors no bulk actions, so the entry can be reached at all; where the verdict refuses, the bar draws no Change Owner. The server judges every row again. Rows that the switch's `visibleWhen` excludes are left out of the request, and the dialog says how many were left out. + + The Console's edit form now shows the owner, read-only, above the form's fields, with Change Owner beside it when it is offered. The owner field is still not part of what the form saves. Forms embedded outside the Console are unchanged: the owner line appears only where a host mounts `FormOwnerLineContext` (exported from `@object-ui/plugin-form` and `@object-ui/plugin-form/core`). + + New public surface, all additive: + + - `@object-ui/plugin-grid`: `ObjectGrid` takes two new optional props, `onBulkChangeOwner` (wiring it makes the rows selectable and adds the entry) and `bulkChangeOwnerOffered` (`false` holds the entry back while the rows stay selectable); the package exports the action name `CHANGE_OWNER_BULK_ACTION`. + - `@object-ui/plugin-list`: `ListView` takes and forwards both props. + - `@object-ui/plugin-form`: new exports `FormOwnerLine`, `FormOwnerLineProps`, `FormOwnerLineContext`, `FormOwnerActionTarget` and `FormOwnerLineHost`; `@object-ui/plugin-form/core` exports `FormOwnerLineContext`, `FormOwnerActionTarget` and `FormOwnerLineHost`. + - `@object-ui/plugin-detail`: `RecordOperation` gains `'transfer'`, so `useRecordVerdict` and `seedRecordVerdict` accept it. + - `@object-ui/i18n`: every console locale gains `grid.changeOwner` and the `console.changeOwner.*` block. +- 9e02112: fix(plugin-list): a list page reads its first page once on a cold load, also when the view definitions arrive after the first read + + Clause-②: no + Metadata-protocol: none + + Opening a list no longer sends the same first-page request twice when the saved view definitions answer after the list has already started reading: a host that hands over an equal view again (a fresh `data` block of the same content) no longer re-arms the read. A real change still reads again: the view's filter or sort, a view switch, or the reader's own filter or sort. +- e01b8be: feat(console): the list page's frame — a 44px page bar, a 40px view bar, a denser grid and per-column totals in the grid's own last row + + Clause-②: no + Metadata-protocol: none + + The object list page is redrawn around two bars and a denser grid (objectstack#35548, the first card of the list-page epic): + + - **Page bar, 44px.** The object's icon in one colour and its name on the left; ⋮ and 「+ 新建」 on the right. The object's description, Import and Favorite moved into ⋮. + - **View bar, 40px.** The view switcher is one trigger on the left, reading the view type's icon, the view name, the record count and a caret (the count beside the name returns, after objectstack#34603 removed it). 「筛选」「排序」「选项」 are text buttons on the right beside the search icon, and open the same panels as before; below `sm` they stay icons. The kanban and every other view type draw the same two bars. An empty condition row under the bar takes no height. + - **Grid.** A 32px header and 33px default rows, 13px on the header, the cells and the bar buttons, faint row lines, no rule after the first column, and the frozen-column shadow only once the grid scrolls sideways. The row ⋮ trigger is 24px so it fits the row. Lookup values read as small chips, money and number columns (a money formula with `returnType: 'currency'` among them) align right with tabular digits, and select labels keep their colour at lower saturation. + - **Totals.** Column summaries are drawn as the table's own last row, each figure under its column (so they line up at any width and are never covered by pinned columns), led by 「计数 N」; the separate footer line and its doubled colon are gone. + + `DataTableSchema` gains one host-only runtime slot, `summaryRow` (`{ lead?, cells }`), which `ObjectGrid` fills; like `rowGroups`, the zod face refuses it by name, so it is not authorable. New locale keys: `list.options`, `grid.summary.countLead`. +- 238661f: feat(list): the list's options panel is a menu of second levels, and the view dropdown creates a view in place + + Clause-②: no + Metadata-protocol: none + + **The options panel (选项) is a menu.** Each row names a setting on the left and shows its current value on the right, and opens a second level: the view name, Layout, Fields (「已显示 N 个」), Grouping, Row color, Row height (紧凑 / 标准 / 宽松), and More (how records open, row numbers, inline edit). On a phone a Sort row is added, as before. The Layout level lists every layout the view offers as one choice each, at any count. The Fields level is the list's shared field list (the one 筛选 and 排序 open), as the view's field manager: a search box on top; the shown fields are listed in their order, can be dragged (or moved with the arrow keys) and hidden by their eye, and the hidden fields sit below, where one click shows a field again or adds a readable field the view does not list. Only fields the reader may read are offered. The footer reads 「恢复默认」 and 「刷新」, and — on one of the reader's own views that differs from what it stores — 「保存」 beside 「恢复默认」, which writes the list on screen into that view (as the 「已个性化」 marker's 保存 does); in the console 「恢复默认」 is the marker's reset, dimmed while there is nothing to restore. The view name at the top is renamed in place by the view's owner, or by an admin on a saved shared view; opening the menu does not put the cursor in it. Fields reorders the grid's columns through the same state a header drag writes, and Row height on a gallery picks its card size by name; every icon button has a name; the developer note under Open records is gone. These settings stay the reader's own preference, stored as before. + + **The view dropdown** keeps its search and lists one row per view, led by its type's icon, with the reader's own views (我的视图) and the shared views in groups of their own; a long name wraps instead of being cut. 「添加视图」 at the bottom turns the dropdown into a create card (the separate 「另存为我的视图」 entry and its name dialog are folded into it; the full Create View dialog stays reachable from 「管理视图」): a name, the view type (with icons), the one field the type needs (kanban: the group field; calendar: the date field), 「包含当前的筛选和排序」 while the list holds unsaved conditions (on by default), and — for a reader who may create shared views — a personal / shared switch. The one field a type needs defaults to one the list shows (a kanban groups by 阶段 on a list that shows it, not by a hidden status-like field). 「创建」 creates one of the reader's own views by default and opens it; a shared view goes through the existing draft-and-publish door unchanged. No machine name is asked for: a unique one is generated from the name. A kanban or gallery created this way lists the view's columns as its card fields, as the add-view door does. + + The fields count label (`list.optionsMenu.fieldsShown`) is a count family in every pack. Keys no surface reads any more are dropped from every pack: `list.recordOpenNote`, `list.recordOpenDeclaredPage`, `view.switcher.all` and `view.switcher.saveAsMyView`. +- d96c878: feat(list): the object list page has no Actions column; a selection swaps the page bar, and a list with no declared pagination loads as it scrolls + + Clause-②: no + Metadata-protocol: none + + - **No Actions column on the list page.** The list's rows carry no control: no Actions column and no "⋮" at the row end, on hover or at rest. A row's actions are reached by selecting it or by right-clicking it. Grids outside a list page (related lists, page blocks, the record drawer) keep their Actions column and their bottom bulk bar. + - **Selection in the page bar.** Ticking rows swaps the page bar to 「对象名 / 已选 N 条」, Cancel, and the actions for what is selected: one record shows its own row actions, two or more show the bulk actions. The first two are buttons (in the order the actions are declared, by their `order`), the rest are behind "⋮", and Delete is never a button. Cancel, or clearing the selection, brings the page bar back. The bottom bulk bar no longer floats over the list on the list page. + - **Context menu.** In a row's menu (its context menu, and the "⋮" where one is still drawn) Delete is the last item, after a separator, in the danger colour; a selection's menu closes with its destructive actions the same way. + - **Checkboxes.** The whole leading cell toggles a row, and Shift extends the selection over the rows between the last toggled row and this one. + - **Scroll loading.** A grid list view that declares no `pagination` draws no pager: it loads 50 rows and the next 50 as the list nears its end, and shows the match total beside the view name. With every loaded row ticked, the page bar offers 「选择全部 M 条」 (capped at 5000 as before). Opening a record on its own page and coming back returns to the same place in the list. A view that declares `pagination` keeps its pager. Footer totals are still computed by the server over every matching record. +- 598a34d: Clause-②: no + Metadata-protocol: none + + fix(list): the list page lines up on one 16px left edge; the checkbox column is 40px at any width; no row numbers + + The list page drew five different left edges, and on a list with more columns than fit, the selection column was squeezed to the checkbox's own 16px, flush against the left of the page. Now the page bar's object icon, the view bar's view icon, the header's select-all box, every row's checkbox and the footer's record count all start 16px in, and the selection column is 40px (16px in, the 16px box, 8px before the first column) on a list that scrolls sideways, on one that fits, and after scrolling sideways and back. The view bar's last text trigger ends 16px in, where the page bar's button ends. + + The grid no longer draws row numbers unless a host asks for them (`showRowNumbers`): each row's leading cell is its checkbox, shown at rest rather than on hover. This applies to every grid, the list page, related lists and the designers' grids among them. The list page's Options menu no longer offers a 行号 (Row numbers) switch, the 「已个性化」 (Personalized) marker no longer names row numbers, and `ListView` drops its `defaultRowNumbers` host prop; the `list.rowNumbers` and `console.objectView.personalizedParts.rowNumbers` keys leave every language pack. + + A non-selectable grid with a row click drew a hover 「打开 ›」 (Open) button in its row-number cell; with row numbers off by default that button now appears only where a host opts into row numbers. Clicking the row, and Cmd/Ctrl-clicking it, still open the record. + + Removed from `@object-ui/plugin-list`'s exports: + - `ListViewProps.defaultRowNumbers`: `<ListView defaultRowNumbers={…}>` → delete the prop. Row numbers are off by default; a grid host that wants them passes `showRowNumbers` to `ObjectGrid`. + - `'rowNumbers'` in `ListPersonalizationPart`: an `onPersonalizationChange` handler or a label map keyed on it → drop that entry; the list no longer reports it. A grid whose authored columns all fail to resolve now says it renders "NO data columns" in its console diagnostic, since it no longer draws a row-number column. +- fac1e7d: feat(list): a list cell saves the moment it is committed, and Space types into the selected cell + + Clause-②: yes (widening) — new members on the `@object-ui/react` package entry: `createOwnWrites`, `OwnWritesContext`, `useOwnWrites` and the `OwnWrites` type, and an optional third parameter on `useDataInvalidation`; three new `table.*` keys in every `@object-ui/i18n` locale (`cellSaving`, `cellSaved`, `openRecordToFinish`); nothing removed or renamed + Metadata-protocol: none + + In a grid that mounts `GridCellSelection` (the select-first grid every `ListView` draws), a committed cell edit is now saved at once, as one update for that record: + + - **No save bar, no row Save/Cancel column, no amber row.** The cell shows a small spinner while the save runs and a check mark once it landed. + - **Only that row is redrawn**, from the record the write answered with, so a value a server hook rewrote shows as stored. The list is not read again, though the write is still announced to every other reader (the record's detail pane, related lists, counts): the grid holds the record in the list's `OwnWritesContext` registry for the length of its write, and `ListView` lets that one write go by. So a row whose new value would sort it elsewhere stays where it is until the next load (refresh, sort, filter or page change). The counts on group headers, read with the rows, follow on the next load too; the footer's whole-set summary is its own reader and still refreshes on the write. + - **A refused save keeps the typed value** and shows the server's reason on the cell. Esc puts the stored value back. Later edits on the same row are sent together with the refused one as one update. When the reason names a field the list does not show (a rule that needs another field), the notice offers to open the record. + - **The 409 conflict dialog is unchanged.** The next save on a row sends the version the previous save answered. + - **Space** on a selected cell now types a space and opens its editor, as any other key does. A two-state (boolean) cell still flips. The record opens from the title link or a touch tap; the "Space opens the record" key added in #35747 is gone, so a master-detail page opens its pane only that way too. + + `@object-ui/react` adds that registry: `createOwnWrites()`, `OwnWritesContext` / `useOwnWrites()`, and `useDataInvalidation(objectName, recordId, ownWrites)`, which skips a change naming a held record. + + Grids without `GridCellSelection` keep the staged save bar and its batch save unchanged. + + New `table.*` strings in every locale: `cellSaving`, `cellSaved`, `openRecordToFinish`. +- f909734: feat(ui): a resident footer row on list tables, where a reader who may change the view picks each column's calculation + + Clause-②: yes (widening) + Metadata-protocol: none + + A list's table view now always ends in one footer row, aligned with the columns and held at the bottom of the table: the record count in its first cell, and under each column its calculation, if any, written as the calculation's name in the secondary text colour and the figure in the normal one, with a space and no colon (`Sum ¥1,234,500`). A `min` / `max` over a date reads Earliest / Latest. The list's own "N records" line at the foot of the page is gone from a table that draws this row; the data-cap notice stays there. A grouped table, the phone's card list and every other view type are unchanged. + + A reader who may change the open view clicks a cell to pick the column's calculation from one menu that lists what the field type allows (sum and average on numbers and amounts, earliest and latest on dates, the counts on any field), the current one ticked and None last. The console saves it as the column's `summary` on the view, and nothing else of the reader's layout. On a personal view it is saved at once and stays drawn. On a shared view the console saved, a reader who may edit it saves it as a draft through the view settings' own save: the draft save reloads the list, which then draws the published view again, so the pick shows for a moment and is drawn again, for every reader, once the draft is published. Until #35932, each pick's draft is built on the published view, so a second pick before Publish replaces the first in the draft: only the latest pick is published. The menu is offered on the columns the view itself declares; a column the reader added for themselves and a view that declares no columns draw the figures with no menu. A pick that is not saved is taken back, with the refusal said (a view a read-only package ships is refused this way: its changes go to the package's customization). A reader who may not change the view sees the figures and no menu. + + New host props, all optional and never authored metadata: `ObjectGrid` takes `residentSummaryRow`, `onColumnSummaryPick(field, summary)` (answer `false` to have the pick taken back), `summaryPickFields` and `onResidentSummaryRowChange(drawn)`; `ListView` takes `onColumnSummaryPick` and `columnSummaryPickFields`. `ColumnSummaryResult` gains `name` and `text`, the two halves of its `label`. `@object-ui/i18n` adds the `grid.summary` keys `earliest`, `latest`, `pageName`, `calculate`, `none`, `menuPercentEmpty` and `menuPercentFilled` in every pack. +- 06faee5: fix(list): a list opened from a record shows its condition once, by name + + Clause-②: no + Metadata-protocol: none + + A list opened from a record's related tab (「↗」) now shows its condition once, as the data page's own 「Filtered by」 tag: the list under it still filters on the condition but no longer repeats it as a locked chip printing the record's raw id beside a second 「Reset」. Where a list does lock a lookup condition (a saved view filtered on a lookup), the chip names the record it points at — and so does the reader's own lookup filter chip — keeping the id only when the name cannot be read. The condition row's 「Reset」 is drawn only while the reader has something of their own to reset (a filter they added, a sort they changed); it is no longer drawn disabled. + + `ListView` takes a host prop, `hostDrawnConditionFields`: the fields whose conditions in `schema.filter` the host draws as its own tags. The list keeps filtering on them and draws no locked chip for them. It is not a schema key. +- dea68e9: fix(plugin-list): a list's column header opens a menu and keeps a multi-level sort; a sort chip opens the sort panel + + Clause-②: yes (widening) + Metadata-protocol: none + + On a list page (the grid `ListView` draws), a click on a column header no longer sorts at once. It opens the column menu: sort ascending, sort descending, hide the column (a column that does not sort offers hide alone). Enter, Space or ArrowDown on the focused header opens the same menu, the arrows move through it, Enter chooses, and Esc shuts it without touching the sort. With no sort or a single level, the column picked in the menu replaces the sort; with two levels or more it becomes the first level, the other levels keep their order after it, and a column already in the sort moves up with the picked direction. No level is dropped. The ↑1 / ↓2 marks on the headers are unchanged. + + A sort chip under the view bar no longer reverses its direction on a click: it opens every sort level in one panel. Each level row in the sort builder now has a handle; dragging it, or ArrowUp / ArrowDown on the focused handle, reorders the levels. + + New public surface, all additive: `GridHeaderMenuProvider` and `useGridHeaderMenu` from `@object-ui/components` (a host opts a data-table into the header menu; without it a header click sorts as before, so related lists, dashboard tables and every other host keep click-to-sort); the `headerMenu` runtime prop on `ObjectGrid`; and the `sortBuilder.reorder` key in every `@object-ui/i18n` locale. The column menu itself is now a menu (`role="menu"` entries, keyboard reachable) wherever it opens, including a right-click on a header and the design host's caret. +- b113178: feat(list): the list page's toolbar is two rows: 「Object / View ▾ · View settings … Search · New · ⋮」 and a resident condition row + + Clause-②: yes (widening) + Metadata-protocol: none + + The console's object list drew three rows above the table: the object's name with ⋮ More and New, the view bar with Filter N, Sort N, Options and search, and a condition row that appeared only once a sort or filter was set. It now draws two: + + - The view bar starts with the object's icon and name, 「/」 and the view switcher, then 「View settings」. Its right end is the search, the page's toolbar actions, New, and ⋮ More last at the right edge. While rows are selected the right end shows what the selection offers, and ⋮ More keeps its place and its icon (⋮, also in the selection face). + - The Filter N and Sort N buttons are gone from the bar. The condition row is always there: with nothing set it shows dashed 「Sort」 and 「Filter」 buttons; a sort of any number of levels is one chip, 「Sorted by X」 with 「+N」 for the further levels, which opens the sort panel; each filter is its own chip with ×, followed by 「+」. The row's right end is 「Personalized」 and 「Reset」 while the list differs from its view. The table no longer moves down when the first condition is set. + - 「Options」 is renamed 「View settings」 and sits beside the view name. Its first level shows the content itself: the view's name, the shown columns (drag to reorder, the eye to hide) and 「+ Add column」, then Layout, Group, Row height and Row color where offered, and Save, Restore defaults and export in its footer. The More level and its inline edit switch, and Refresh, are gone. + - As the list narrows, 「View settings」 folds to its icon first, then the word 「Personalized」 goes, then 「Reset」 folds to its icon. The condition row stays one line and scrolls sideways. + + For hosts of `ListView`: two optional host props, `toolbarTrailing(tools)` (the bar's right end, given the list's search) and `conditionRowEnd` (the condition row's right end, drawn in place of the row's own Reset). A host that passes neither gets the search alone at the bar's end and the row's own Reset. +- 411fe24: feat(list): a phone's object list gets its own top row, one row of pills, and bottom-sheet sort, filter and view panels that apply on 「✓」 + + Clause-②: yes (widening) + Metadata-protocol: none + + At phone width (below `sm`) the console's object list changes its containers, not its content: + + - The app bar's row becomes the page's own: 「‹」, the object's icon and name, and 「⋮ More」 at the right. The app pill, the page title, the search, the bell and the avatar are not drawn while the list is on screen (the phone has them in the bottom bar and on the app's home). 「⋮ More」 offers 「Select」 (only on a card list whose rows take more than one tick), the object's description, Import and the favorite. + - Below it, one row of pills: the view switcher, Sort and Filter with a count of what is in force, and Search, which expands into a field in place. There is no condition row on a phone. + - Sort, Filter, the view switcher and View settings open as bottom sheets. The sort and filter sheets edit a copy: 「✓」 applies it through the same write the desktop chips use, 「×」 drops it. The sort sheet lists each level on two lines (field over direction) with a handle a finger can drag (or ArrowUp / ArrowDown moves), a ⋯ menu per level (change field, direction, remove) and 「Add sort」. The filter sheet lists the conditions, each with a ⋯ menu (edit, remove), and shows a sentence and 「Add filter」 when there are none. A view whose filter is an 「or」 group says it uses an advanced filter and is changed on a computer. View settings keeps its desktop content and applies as before. 「✓」 on an untouched copy writes nothing. While the on-screen keyboard is up, a sheet stands on it (it reads `visualViewport`), so its 「✓」 and the focused field stay in view. + - A long press on a card starts selecting with that card ticked, as 「Select」 in 「⋮ More」 does with none; a tap then ticks or unticks a card, and unticking the last ends it. The selection shows in the list's floating selection bar, which after 「Select」 reads 「0 selected ×」 until a card is ticked. The 「+」 create button is not drawn while selecting. A card is also a keyboard control: Enter opens it, and while selecting Enter or Space toggles it. + + New exports and props: + + - `@object-ui/plugin-list`: `PhonePanelSheet`, `useListPhonePanels`, `PHONE_CHIP`, `PHONE_CHIP_ACTIVE` and the types `PhonePanelSheetProps`, `ListPhonePanels`. + - `@object-ui/plugin-grid`: `requestListSelection`, `useListPageSelecting` and `useListPageSelectable` (would 「Select」 open a selection in this page's list); `BulkActionBar` takes `open` (show 「0 selected ×」 with no actions while a host's selection is open and empty). + + `@object-ui/app-shell` changes no public export: the page's top row is an internal store (`PhonePageBarProvider`, mounted by `ConsoleLayout`). +- 8807dcb: feat(ui): a record page's related tab is the child object's full list + + Clause-②: yes (widening) — a new export `ListConditionsBlock` (`@object-ui/plugin-list`, the condition row as a host element, not a registered node type) and its `ListConditionsHostProps`; a new slot `RelatedListConditionsSlotContext` and its `RelatedListConditionsProps` (`@object-ui/plugin-detail`), which the record page fills (`@object-ui/app-shell`); new exports `ConditionDiscardButton` and its type `ConditionDiscardButtonProps` (`@object-ui/plugin-list`) and `withHeaderSortPick` (`@object-ui/core`); new i18n keys in every `@object-ui/i18n` locale pack (`listConditions.chips.discard`, `listConditions.chips.discardHint`, `detail.relatedNoMatches`, `detail.deleteRowsTitle`, and the count family `detail.deleteRowsConfirmation` with its plural slots `_zero`, `_one`, `_two`, `_few`, `_many`, `_other` as each pack needs them); nothing removed or renamed + Metadata-protocol: none + + On a record page, a related list opened as its own tab now works like the object's list page: + + - The first row names the child list (its tile and title) on the left and keeps **+ Add** on the right. The **Open in list** button is gone. + - The second row is the list page's own condition row: **Sort** (several levels) and **Filter**, with no view switch, view settings or search. On a narrow tab or in the drawer their labels fold to icons. + - The table is the list page's grid: the column menu, cell editing as on the list page wherever the reader may edit the child object, row selection with the floating bulk bar (bulk delete asks once, deletes the selection in one batch call where the data source has one, and says how many rows went and how many did not), and the footer row, whose calculations cover every matching row, not just the loaded ones. A tab grouped by status draws no footer row. + - Rows load as the page scrolls instead of in pages. + - The tab title still counts every child; the footer counts the rows the filter keeps. + - What the reader changes (sort, filter, footer calculations) lasts while they stay on the record, for that reader only, across its tabs and between its page and its drawer, and is gone after a reload or on another record. **Discard** appears once something changed and puts the tab back; there is no Save. The list page's Discard and this one are one button. + + Upgrade note: the header sort and the column widths and order that an earlier version remembered for a related tab in a reader's record-page preference (`sys_user_preference`) no longer apply: the tab opens in its declared order, and its column widths and order are now kept in the reader's browser, as the list page's are, so they start from the default once. Nothing stored is deleted. The default sort and columns of every related list are unchanged. + + `@object-ui/core` adds `withHeaderSortPick`, the list page's rule for how a header sort joins an existing multi-level sort, now shared with the related tab. `@object-ui/app-shell`'s list Discard is drawn by `ConditionDiscardButton`; it looks and behaves as before. +- 9ed18a5: fix(ui): danger colours render red in both themes, and light danger text clears 4.5:1 + + Clause-②: no + Metadata-protocol: none + + - The grid and list views' export-error line, and the Markdown caution alert's border and title, set their colour to a bare `var(--destructive)`. That variable holds an HSL triplet, not a colour, so the browser dropped the declaration and the text rendered in the inherited colour. The export-error line now uses the `text-destructive` utility and the caution alert reads `hsl(var(--destructive-text, var(--destructive)))`. The Markdown theme's heading anchors, quote and meta tokens and blockquote border and background had the same defect with other theme variables and now wrap them in `hsl()` too. + - The flow preview's invalid-edge stroke and arrowhead paint with the danger text colour, so they stay readable on the dark theme. + - The light theme now sets its own `--destructive-text`, red-700 (`#b91c1c`, `0 73.7% 41.8%`), so `text-destructive` reads at 6.47:1 on white instead of 3.76:1. `--destructive`, the brand red used for button and badge fills, is unchanged. The same value is in the stylesheet that `objectui init` generates. + - A theme's `error` colour applied through the theme engine still sets `--destructive`, and now also derives a danger text colour for each mode from it (same hue, lightness moved until it reads at 4.5:1 on that mode's surfaces), written as `--destructive-text-light` and `--destructive-text-dark`. The shipped stylesheets read those into `--destructive-text` in their light and dark blocks, so a custom red drives danger text and stays readable in both modes. A host stylesheet that overrides `--destructive` by hand should set `--destructive-text` beside it in each mode. +- 9f6f306: fix(console): Hide column in the column-header menu is a list draft, like the eye in View settings + + Clause-②: yes (widening) — one new optional runtime slot `DataTableSchema.onColumnHide(columnKey)` (refused by name on the zod mirror, like `onColumnsReorder`) and one new optional `ObjectGrid` prop `onColumnHide(field)`; nothing removed or renamed + Metadata-protocol: none + + On a Console object list, picking "Hide column" in a column header's menu hid the column inside the table only: nothing above the table heard of it, so the list drew neither Discard nor Save and only a reload brought the column back. The same choice made with the eye in View settings was already a draft. + + The table now reports the hidden column to its host (`DataTableSchema.onColumnHide`, supplied by `ObjectGrid` from its new `onColumnHide` prop), and `ListView` writes it through the same writer as the hide-fields eye: the host hears it on `onHiddenFieldsChange` (the Console holds it in the list's draft, so Discard brings the column back and Save keeps it hidden), and a column the reader added leaves their added fields, as unticking it does. A table with no host handler hides the column in its own state, as before. +- c757e07: feat(console): a change on a list is a draft, with Discard and Save + + Clause-②: yes (widening) — new `console.objectView.draft.*` keys in every `@object-ui/i18n` locale pack (`discard`, `discardTitle`, `save`, `heading`, `partSeparator`, `saveToView`, `saveAsMyView`, `copyName`, `saved`); nothing removed or renamed + Metadata-protocol: none + + On a Console object list, a header sort, a filter change, grouping, the search, Hide Fields, an added field and a column drag apply at once and are now a draft: they are kept nowhere. They used to be saved at once into the reader's own list preference (`sys_user_preference`, key `ui.list.<object>`) and followed them to every device. + + - While the list holds a draft, **Discard** and **Save** sit at the end of the condition row, where the 「Personalized · Reset to view」 marker was. On a narrow list or a phone they fold into one **Save** whose menu also holds Discard. + - **Save** names what is unsaved and offers **Save to this view** (on a view of the reader's own) and **Save as my view**, which asks a name first (the view's name with "copy"), saves the draft as a new view of the reader's own and opens it. Either says "Saved", and the buttons go while the conditions stay. + - **Discard** puts the list back as its view declares it and removes the list's `uf_*` parameters from the address bar. + - Where the reader may not save (no personal view can be created or updated), both faces are Discard alone. + - The draft survives opening a record (as a page or in the side panel) and coming back. Opening another view or object, or reloading the list's page, drops it. A reload of another page does not drop the state an in-app link to a list carries. + - Column widths, the row height and the views' order are not a draft. They are still remembered for the reader in the same `ui.list.<object>` row. + + Upgrade note: a sort, filter, search, column order, hidden column or added column that an earlier Console stored in a reader's `ui.list.<object>` row no longer applies; the list opens as its view declares it. Nothing stored is deleted by this change; a later column-width change rewrites that row's column state with the widths alone. A reader who wants such a list kept saves it as a view of their own. + + Saving into a shared view, and saving the Display panel's layout and row colour, are not offered yet. `@object-ui/plugin-list` changes only its README, which now describes added fields as part of the draft. No metadata key, value or default changes. +- c1b35c3: feat(console): Save to this view on a shared view asks once, then saves and publishes it; the layout and row colour are part of a list's draft + + Clause-②: yes (widening) — new `console.objectView.draft.*` keys in every `@object-ui/i18n` locale pack (`saveToViewConfirmTitle`, `saveToViewConfirm`, `saveToViewConfirmButton`, `savedForEveryone`, `pendingDraft`); `@object-ui/plugin-list` `ListView` gains the optional host prop `onRowColorChange` and two optional `viewDefaults` members, `viewType` and `rowColor`; nothing removed or renamed + Metadata-protocol: none + + On a Console object list, **Save to this view** is now offered on a shared view to a reader who may edit it (an administrator, on a stored view whose package takes saves). It asks once ("everyone who uses this view will see these changes"), then saves the view and publishes it in the same step, so other readers see it on their next read, and says "Saved, visible to everyone". The options menu's Save does the same. + + - When the view already has unpublished changes (a draft saved from the view settings, by anyone), nothing is written: the Console says so and points to the view settings to publish or discard that draft first. The draft write is sent with the first-write pin (`If-None-Match: *`), so the server refuses it when a draft is pending; that draft is never published on someone else's behalf. A publish the server refuses discards the draft the save wrote. + - The reader's row height and column widths are never written into a shared view: it keeps its own. + - The Display panel's layout and row colour are part of the list's draft: they survive opening a record and coming back, and both Save to this view and Save as my view keep them (a layout switch retypes the saved view). Discard puts back the view's own. + + `@object-ui/plugin-list`: `ListView` reports a pick in its row colour panel through the new optional host prop `onRowColorChange` (the rule in force, or `null` for none), never at mount or for a reset. A host that lays the reader's layout or row colour into `schema` passes the view's own in `viewDefaults.viewType` / `viewDefaults.rowColor`, and the `layout` / `rowColor` parts and the Display count are judged against them; each is read only when its key is present. Without them nothing changes. + + No metadata key, value or default changes. The view settings panel and the footer calculation still save a shared view as a draft that the view settings publish. +- 8c5a81e: fix(plugin-list): Refresh alone no longer draws the Display entry in the default list toolbar + + Clause-②: no + Metadata-protocol: none + + The default (Display) list toolbar has no Refresh button, yet `userActions.refresh` still counted as a reason to draw the toolbar's Display entry. On a non-grid view (kanban, calendar and the rest) whose other Display controls were all off, the entry opened a panel holding only its footer. Refresh no longer counts, so such a view draws no Display entry. The wide toolbar (`compactToolbar: false`) still draws Refresh as before, and `userActions.refresh: false` still takes it off there. + + `@objectstack/spec`: the `userActions.refresh` description now says the toggle governs only the wide toolbar's Refresh button and changes nothing in the default toolbar. The view form's hint for the key says the same, and `@objectstack/platform-objects` ships it as the English help text in the metadata-forms bundle; the other locales keep their existing translations. Only the description text changed: the key, its type and its default are the same. +- dca608a: feat(grid): on the list page a lookup chip opens its record in the side drawer, and a lookup cell has an edit button + + Clause-②: yes (widening) + Metadata-protocol: none + + On the console's list page, a single click on a lookup chip (a record of another object, such as a contact's account) now opens that record in the side drawer over the list. This replaces, for lookup chips on that page, the earlier change in this release where a plain click on a lookup chip only selected its cell. The list stays where it was: closing the drawer leaves its scroll position and the selected cell as they were. The drawer's address carries the record and its object (`?recordId=…&recordObject=…`), so a reload keeps it open and Back closes it, as with the name cell's "Open in side panel" icon. A click beside the chips only selects the cell. A cell of several chips opens the chip that was clicked; Ctrl/Cmd+Enter on the selected cell opens the first one in the drawer; Ctrl/Cmd-click still opens the record's page in a new tab. + + A lookup cell now draws an edit (pencil) button while the pointer is over it and while it is selected. It opens the cell's editor, as a double-click or Enter does, and it is not drawn when the cell cannot be edited (no permission, a read-only field, a locked record). It takes the place of the open button a selected cell shows. + + A chip naming a person (an owner, a creator: a lookup to `sys_user`) keeps the behaviour it had: a single click only selects the cell, and it opens from the open button or Ctrl/Cmd+Enter. Email, phone and URL cells and the name column are unchanged. On a phone every record still opens as its page. + + For hosts: `ListView` and `ObjectGrid` take a new runtime prop, `openReferencedRecord(objectName, recordId)`, that opens such a record in the host's place; `GridCellSelection` gains an optional `referenceCells` member (`isReferenceColumn`, `openRecord`), exported with its type `GridReferenceCells` from `@object-ui/components`. A host that passes neither keeps the previous behaviour, where a chip only selects its cell. `ReferencedRecordLink`'s anchor now carries `data-record-object` and `data-record-id`. +- 3ae62ac: feat(ui): one 8px corner for every control, a white content area beside a light grey sidebar, and badges at weight 500 + + Clause-②: no + Metadata-protocol: none + + - **Controls share one corner, 8px.** Buttons, inputs, selects, toolbar controls, menus and tab lists are `rounded-md`, which the console theme now sets to 8px (it was 12px, derived from the 14px card corner). What sits inside one of them, a tab trigger in its list or a menu row, is `rounded-sm`, 6px. Cards keep their 14px corner, and dialogs, popovers and drawers keep theirs. + - **Chips follow.** A lookup chip in a list cell (it was 4px), a person or record chip in a form's lookup field and its selection tray, and the list's Sort, Filter and condition chips (they were pills) take the same 8px corner. Coloured option badges stay pills. + - **The content area is white.** The console's `--background` is white instead of the grouped grey, so a list, a record page, a kanban board and the top bar sit on white. The sidebar is the one light grey surface beside it, with its hairline border; in the dark theme the content area is the darkest step and the sidebar one step lighter. + - **Badges are weight 500.** `Badge` was `font-semibold` (600), outside the console's two text weights; it is `font-medium` (500). This is a declared local patch on the Shadcn primitive (`badge-medium-weight` in `ui/scripts/shadcn-local-patches.mjs`), so it survives a registry sync. +- 6c7c6db: feat(ui): the console's pages set text in two sizes, 14 and 12, and two weights, 400 and 500 + + Clause-②: no + Metadata-protocol: none + + - **Two sizes.** Body text, list cells, field values, inputs, menu items, toolbar controls and buttons are 14px (`text-sm`); field labels, column headers, counts, timestamps, hints and chip text are 12px (`text-xs`). The hard-coded 13px is gone from the console's runtime pages, and the 10px, 11px and other odd sizes there are 12px. The in-cell editor is 14px, like the cell it edits. + - **Two weights.** Record names, tabs, buttons, section titles and column headers are 500 (`font-medium`); body text is 400. Weight 600 and 700 stay only on page and dialog titles 18px and larger. `DropdownMenuLabel` is weight 500 through a declared local patch on the Shadcn primitive (`dropdown-menu-label-medium-weight` in `ui/scripts/shadcn-local-patches.mjs`), so it survives a registry sync. + - **Not changed:** Studio and metadata administration internals, the settings pages, developer tools, phone-only layouts, avatar initials, authored markdown and SDUI heading typography, the docs reader's prose size, and the shape of coloured option badges (still pills). + - A list column with no declared width measures its content, so it grows with the 14px text; a column whose width a view or a user set keeps that width and shows about 8% fewer characters before it truncates. +- 1705ec9: feat(console): the list page's top reads the object's row, the view bar, then the condition row; 「Import / Export」 and 「New Account」 end the view bar + + Clause-②: yes (widening): `@object-ui/plugin-list` exports `ListExportDoor` and `ListToolbarTrailingState` and calls `toolbarTrailing` with a second argument; `@object-ui/i18n` adds `console.objectView.newObject` and `console.objectView.importExport` + Metadata-protocol: none + + An object's list page draws three rows above its table again: + + - **The object's row** — the console `PageHeader` in its list posture: the object's icon and plural name, ended by the shell's top-right button group where the shell turns it on. It carries none of the page's acts. + - **The view bar** — the view switcher and 视图设置 on the left; the search, 「Import / Export」, the authored list toolbar actions, 「New Account」 and ⋮ More on the right. The view bar no longer leads with the object's name. + - **The condition row** — the sort and filter chips, and Discard / Save while the list holds a draft, as before. + + 「Import / Export」 holds Import and one entry per export format the reader may use. ⋮ More keeps the object's description and the favorites entry; Import is no longer in it. While the list is narrower than 896px, 「Import / Export」 folds into ⋮ More; below 768px the search keeps its icon alone, without the active keyword. The 视图设置 panel keeps its export entries. The create button names what it creates (`console.objectView.newObject`, 「New {{object}}」, in every locale). A phone's list header is unchanged. + + `@object-ui/plugin-list`: `ListView`'s `toolbarTrailing` host prop is now called with a second argument, `ListToolbarTrailingState`, whose `export` is the list's export door (`ListExportDoor`: the formats, `run`, `busy`, `error`), absent where the list offers no export. Both types are exported. A host that reads only the first argument is unchanged. +- 4099ef2: fix(list): "Add group field" asks which field, and offers only fields that can group + + Clause-②: yes (widening) — `@object-ui/components`'s `GroupingEditor` gains the optional props `askFieldOnAdd`, `fieldOptionsLoading` and `fieldLabel`, and its `labels` the optional `noFields`; `@object-ui/i18n` gains the key `list.noGroupableFields` in every locale; nothing removed or renamed + Metadata-protocol: none + + On a list, 「添加分组字段」 / "Add group field" used to group at once by the list's first column, usually the record's name, so every record became a group of its own. Now, in the toolbar's Group panel and in the view settings menu's Group level alike: + + - It adds no field by itself and does not group. The field dropdown opens, and the list is grouped once a field is picked there. Closing the dropdown without a pick leaves the list as it was. + - The dropdown lists only the fields that can group: single select or radio (a status is one), tick (boolean or toggle), person, and linked record (lookup, master-detail, tree), each single-valued. Text, number, date and multi-select fields are not offered. The list's columns come first in the reader's column order, then the object's other groupable fields the reader may read, business fields before system ones such as the record owner. Created by and updated by are offered only when the view shows them as a column. + - With no field that can group, the button is drawn disabled and says why: 「没有可以用来分组的字段」 / "No field here can group the list". + - Until the object's field types are read, the button is disabled without a reason. When no definition can be read at all, every column is offered, as before. + - A view already grouped by another kind of field keeps showing that grouping, and its level can still be changed or removed. + - A second level follows the same rule among the fields no level uses yet. + - The grouping is still a part of the list's draft: **Discard** and **Save** appear, and nothing is written. + + `@object-ui/components`: with `askFieldOnAdd`, `GroupingEditor`'s "Add group field" opens a row whose field dropdown is already open and writes the level only on a pick. With no `fieldOptions` it draws the button disabled, explained by `labels.noFields`, or without a reason while `fieldOptionsLoading`. `fieldLabel(field)` labels a level whose field `fieldOptions` does not carry. Without these props the editor behaves as before. +- 5fecc22: feat(console): Change Owner's queue picker searches the server, so a queue past the first 200 can be found and picked; a non-grid list says bulk Change Owner is in the grid + + Clause-②: no + Metadata-protocol: none + + The Change Owner dialog's queue target used to read `sys_queue` once, capped at 200 rows, into a plain dropdown with no search, so an organization with more queues could not pick the rest. It now picks the queue the way the person tab picks a person: with the shared lookup picker over `sys_queue`, which reads one page at a time when it is opened and sends the typed term to the server as its search. The picker shows the queue's label and sends its `name`, which is what the Change Owner endpoint's `queue` takes. Nothing the endpoint accepts changes. + + Bulk Change Owner lives in the grid's selection bar, and kanban, calendar, gallery, timeline, gantt, map and tree layouts select no rows. On those layouts, a reader the grid would offer bulk Change Owner to (the object offers the action and the object-level transfer verdict allows it) now sees one muted line above the list: "To change the owner of several records at once, switch to a grid view." The list view's `onBulkChangeOwner` documentation says the same. + + `@object-ui/i18n`: adds `console.changeOwner.gridOnly` to every locale pack and removes the four keys the old queue dropdown read and nothing reads any more: `console.changeOwner.noClient`, `console.changeOwner.queuesLoading`, `console.changeOwner.queuesFailed` and `console.changeOwner.noQueues`. +- 89d9608: fix(plugin-list): a condition chip names an operator only the advanced filter panel writes in that panel's own words, never by its id + + Clause-②: no + Metadata-protocol: none + + A list or drill dialog whose conditions carry `is_not_null`, `is_null`, `greater_than`, `less_than`, `not_equals`, `icontains` or `ends_with` used to show the operator id on its chip ("Deal Value: is_not_null"). The chip, and the quick filter's operator choice, now read the advanced panel's word for it in every language ("Deal Value: Is not null", "金额:不为 null"). Any other operator spelling the chip cannot word is shown as "Condition" instead of its id; a view filter's comparison symbol (`>=`, `=`) still reads as written. A chip with no value no longer ends in a space. +- 43916f3: fix(plugin-list): a list's locked chip for a condition on a related record's field names the field and the value, instead of reading `[object Object]` + + Clause-②: no + Metadata-protocol: none + + A view filter that compares one field of a related record, the nested-relation form `{ crm_account: { industry: 'technology' } }`, now reads as one locked chip on the path `crm_account.industry`: 「Account › Industry: Technology」. The form is read as written and as lowered to `['crm_account', '=', { industry: 'technology' }]`, the shape a dashboard or report drill on a relationship-path dimension hands its list. Before, that chip read the lookup's label and `[object Object]`. + + - The lookup's name is its label in the list's own field list. The related field's name and its option labels come from the related object's definition, translated as the list translates its own fields (`fields.<object>.<field>`, `fieldOptions.<object>.<field>.<value>`). Where a label is missing, the raw name shows. + - The row reads the related object's definition once per related object, only while such a chip is shown, through the host's data source. + - A nested condition the chip cannot say as one equality (several fields, an operator, a deeper relation) reads as the view's own condition (「View filter」), never as `[object Object]`. + - Every console locale gains `listConditions.chips.relationPath`. + + The chip stays locked: the list cannot edit a related-record condition. +- 4034a6d: fix(plugin-dashboard): a record opened from a drill counts and steps through the drill's whole result + + Clause-②: yes (widening) — one additive member, `ListViewProps.onFindParamsChange` (`@object-ui/plugin-list`); nothing is removed or renamed + Metadata-protocol: none + + A record opened from a dashboard or report drill showed 「1 of N」 and stepped ↑ ↓ only over the rows the drill's list had drawn on its page, so a drill that matched 40 records and drew 20 let the reader walk 20. The `list-view` page block handed its own `onTotalChange` (the tab badge's count) to the list after the host's, so the drill never heard the count; it now hands the count to both. The list now also reports the query behind the rows it draws (`onFindParamsChange`, a host prop answered where `onRowsChange` answers with rows), and the drill re-issues that query for record ids alone, with the same filter, sort and search, when the count exceeds the rows drawn or the rows drawn are a later page. The record page is handed every record the drill matched, in the drill list's order, up to 1,000, and the count it matched, so its counter says where the record sits in the whole drill and ↑ ↓ walk all of it. A read that fails, a record past the first 1,000, or a result that changed under the list keeps the rows drawn as the step set, as before. +- f46ce5b: feat(plugin-list): a board's lane field picker offers lookup, user, master-detail and tree fields + + Clause-②: no + Metadata-protocol: none + + A board's 视图设置 → lane field picker now offers a single-valued lookup, user, master-detail or tree field next to the select and radio fields it already offered. Choosing one draws a lane per referenced record, titled by its name, and a drag writes the new reference: choosing the owner gives one lane per owner, and dragging a card changes its owner. A field that holds several references is still not offered, and a boolean or text field is not offered either. +- c54aa57: feat(console): the report builder adds 「+ Filter」 under the data source — a report filter on the bound dataset, drawn into the preview at once and kept on Save + + Clause-②: yes (widening) — a new optional `filter` slot on `ReportBuilder` (`@object-ui/plugin-report`), two exports from `@object-ui/plugin-list` (`conditionCandidatesOf`, `conditionOptionsOf`, and the `ConditionCandidateField` type), and four new `@object-ui/i18n` keys (`report.builder.source.addFilter`, `filterAdvanced`, `filterLoading`, `filterNoFields`) in all 11 locales; no spec, schema or server change + Metadata-protocol: none + + - **The filter** (`@object-ui/app-shell`): under the data source, 「+ Filter」 opens the same condition editor the dataset designer uses, over the fields of the dataset's object (their translated labels, a select's options, a lookup's record picker; hidden fields are not offered). Each condition is written into the report's `runtimeFilter`, the preview redraws with it at once, and Save keeps it; removing the last condition removes the key. Switching the data source clears the filter. + - **The fields offered** leave out virtual (formula) fields: the dataset door refuses a filter on one, so a report filtered on it could be saved and then fail for every viewer. + - **A filter with `$and` beside other conditions** (`{ $and: [...], amount: {...} }`, or with `$not`) is no longer read as editable rows by the shared filter bridge, so neither the report builder nor the dataset designer opens it where the next edit would drop the conditions beside the `$and`; it keeps the panel / source editor, unchanged. + - **Which reports open in the builder:** a dataset report with a saved filter now opens in the builder when its filter is one the builder can edit (field conditions joined by AND); a filter it cannot edit (an OR, a nested group, two operators on one field) keeps the report inspector panel, as before. A filter that turns out not to be editable once the fields are read is shown as kept and saved unchanged. +- 63ab479: fix(plugin-list): the board's lane statistic picker offers a minimum and a maximum over date, date-time and time fields + + Clause-②: no + Metadata-protocol: none + + The 视图设置 「Column summary」 level on a kanban view now lists, for each function, the fields the aggregate × field-type table (`isAggregateCompatibleWithFieldType` in `@objectstack/spec/data`) accepts for that function, the same verdict `@objectstack/lint` gives `kanban.summary`. Before, every function offered the `sum` row's number fields. So `min` and `max` now also offer date, date-time and time fields, and `avg`, `min` and `max` offer a percent field. `sum` is unchanged. A formula or a true / false field is still offered under none. The board already computes a date's minimum or maximum in its lane read and draws it at the lane's foot through the date field's own cell renderer, in the face the field's `format` declares. +- 706c8c6: fix(plugin-list): a gallery card labels and formats a formula or summary column whose result is a number, an amount or a percentage + + Clause-②: yes + Metadata-protocol: none + + A gallery card, which is also how a phone draws a related list's rows, now gives a `formula` or `summary` column the same treatment as a stored number when its result is a number, an amount or a percentage: the field's label before the value, and the format the related-list table gives the same field. A `returnType: 'currency'` formula reads `Total 12,000.00` on the card, as it does in the table. Before, it read a bare `12,000` beside `Unit price 6,000.00`, so the reader could not tell what the figure was. A summary declaring its `currencyConfig` reads as money in the same way. A formula whose result is text stays unlabeled, as a text field does. + + The card's field builder now hands the cell `returnType` and `currencyConfig`, the two declarations the related-list table's builder already hands it. A plain `currency` field with a fixed `currencyConfig` therefore also shows its own currency on a card instead of the tenant default. + + `@object-ui/fields` exports `resolveFormulaValueType(field, value)`, the rule the formula cell uses to choose how it draws a result. The formula cell now calls it, and so does the card's label decision, so the two cannot disagree. +- 95734fe: fix(plugin-list): a date condition's value reads as a date in the viewer's language + + Clause-②: no + Metadata-protocol: none + + A list condition chip on a date field printed the stored value as written, so a + drilled dashboard bucket read 「创建时间:≥ 2026-10-01T00:00:00.000Z」 in a zh-CN + session. Every condition row (the reader's chips and the view's locked chips) now + formats a date-family value by the field's type through the console's one date + display path (`formatDate` / `formatDateTime` from `@object-ui/core`), in the + display locale: a `date` field shows the day with its year (an instant at UTC + midnight shows that calendar day in every zone), a `datetime` field shows the + date and time in the display zone, and a `time` field or an unreadable value is + shown as written. The filter the list sends is unchanged. +- 378c955: feat(plugin-list): the list's Filter and Sort open the shared field list, and the conditions show as chips under the view bar + + Clause-②: no + Metadata-protocol: none + + The toolbar's Filter opens a searchable field list (the fields the view shows first, a type icon on each), then the values by field type; every pick applies at once. Sort opens the same list with the direction on top. Under the view bar, the condition row shows the sort chips first (click to reverse, drag or Alt+Arrow to reorder, × to remove), then the view's own conditions as locked chips, then the reader's filter chips, 「Add filter」 and 「Reset」, which puts the filter and sort back to the view as saved. A column header click shows up there as a sort chip. The full FilterBuilder and SortBuilder stay one click away, behind 「Advanced filter」 and 「All sort levels」. The FilterBuilder no longer draws its 「Where」 label: `filterBuilder.where` is retired from the locale packs, and `listConditions.sort.advanced` is added. No filter storage format, `uf_*` parameter or server sort changes. +- 56fa31b: fix(ui): a multi-select field's list filter offers 「包含 / 不包含」 instead of operators the server refuses + + Clause-②: no + Metadata-protocol: none + + Filtering a list by a multi-value field (`multiselect`, `checkboxes`, `tags`, or a `select` / `lookup` / `user` with `multiple: true`) now offers contains, does not contain, is empty and is not empty, and the query runs, where it used to offer equals and is any of, which the server answers with `400 INVALID_FILTER`. A structured-JSON field (`json`, `address`, …) offers is empty / is not empty. A saved filter that already holds a refused operator still loads and shows it, so it can be changed. `FilterBuilder` fields accept `multiple`, and `jsonColumnFilterOperators` / `operatorsForField` are exported from `@object-ui/components`. +- 9c5fb3e: fix(components, plugin-list): the sort builder and the phone sort sheet word a number, percent, progress or currency direction as size + + Clause-②: no + Metadata-protocol: none + + A sort level on a numeric field read "A → Z" / "Z → A" in the sort builder (the list's "All sort levels" panel) and in the phone sort sheet's levels, while a date read "Oldest → Newest". Numeric, percent, progress, currency, rating and boolean levels now read "Low → High" / "High → Low" (zh: 「小 → 大」 / 「大 → 小」), date, datetime and time levels read as time, and text keeps the alphabet, on both surfaces. The words come from the `listConditions.sort.*` rows every locale already carries. + + What else a reader sees change: + + - The four `sortBuilder.ascending`, `sortBuilder.descending`, `sortBuilder.oldestFirst` and `sortBuilder.newestFirst` rows are no longer read by either surface; the rows stay in the packs. A host that overrode them to reword a sort direction now overrides `listConditions.sort.alphabet_asc` / `alphabet_desc` / `time_asc` / `time_desc` (and `size_asc` / `size_desc` for numbers) instead. + - Because the words now come from `listConditions.sort.*`, the date and text wording changes in some locales: Japanese and Korean dates read 「古い → 新しい」 / 「오래된 순 → 최신 순」 instead of 「古い順」 / 「오래된 순」, Russian dates read "Старые → Новые" instead of "Сначала старые", and Russian text reads "А → Я" instead of "A → Z". + - Arabic: the `listConditions.sort.alphabet_asc` / `alphabet_desc` pair now reads "A → Z" / "Z → A". A run of two Latin letters stays left to right on a right-to-left page, so the old "A ← Z" showed ascending as Z to A. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [2b57044] +- Updated dependencies [52a2398] +- Updated dependencies [a0b4ecf] +- Updated dependencies [ee5fdc8] +- Updated dependencies [d6d9645] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [c3fb37a] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [c9b3f7a] +- Updated dependencies [8e46424] +- Updated dependencies [8896822] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [dc53d4a] +- Updated dependencies [0739dee] +- Updated dependencies [ad15579] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [eed422e] +- Updated dependencies [2df9691] +- Updated dependencies [bfd6b6b] +- Updated dependencies [55020c3] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [6f2bd4f] +- Updated dependencies [99a0e4f] +- Updated dependencies [a9b36ef] +- Updated dependencies [9f352e8] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [fd471d3] +- Updated dependencies [1b2cd80] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [f2078e3] +- Updated dependencies [7702f09] +- Updated dependencies [05e0eb8] +- Updated dependencies [b863d2b] +- Updated dependencies [c890070] +- Updated dependencies [e75a528] +- Updated dependencies [5bd7257] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [34308dc] +- Updated dependencies [eb1f85d] +- Updated dependencies [58d00db] +- Updated dependencies [3819afe] +- Updated dependencies [a5ddeb6] +- Updated dependencies [61722e9] +- Updated dependencies [0ce2598] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [285ad8d] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [6a35635] +- Updated dependencies [9212119] +- Updated dependencies [cda16d4] +- Updated dependencies [9b3227f] +- Updated dependencies [fe75349] +- Updated dependencies [f4de1de] +- Updated dependencies [dab4712] +- Updated dependencies [141a826] +- Updated dependencies [8145424] +- Updated dependencies [b65488a] +- Updated dependencies [53c9575] +- Updated dependencies [83a79e6] +- Updated dependencies [dda665f] +- Updated dependencies [98b3f87] +- Updated dependencies [46ad134] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [ccded86] +- Updated dependencies [f7b172f] +- Updated dependencies [ec24363] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [e01b8be] +- Updated dependencies [238661f] +- Updated dependencies [d96c878] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [72d19c4] +- Updated dependencies [b0c624a] +- Updated dependencies [9b6db73] +- Updated dependencies [1e018d6] +- Updated dependencies [6d86b43] +- Updated dependencies [bae933b] +- Updated dependencies [a3a74f2] +- Updated dependencies [f98f18c] +- Updated dependencies [74d3d83] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [227a16a] +- Updated dependencies [de25d58] +- Updated dependencies [598a34d] +- Updated dependencies [0585797] +- Updated dependencies [811858c] +- Updated dependencies [fac1e7d] +- Updated dependencies [4609c48] +- Updated dependencies [8500ee7] +- Updated dependencies [a6607c7] +- Updated dependencies [c00be39] +- Updated dependencies [1c87956] +- Updated dependencies [d8b15b5] +- Updated dependencies [5345905] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [f909734] +- Updated dependencies [cedc094] +- Updated dependencies [a03c3d4] +- Updated dependencies [c9b0a23] +- Updated dependencies [a8126d2] +- Updated dependencies [f51578e] +- Updated dependencies [65fddc8] +- Updated dependencies [6b360ab] +- Updated dependencies [d19d875] +- Updated dependencies [c7174c3] +- Updated dependencies [78f7160] +- Updated dependencies [bb1c55d] +- Updated dependencies [1d7015a] +- Updated dependencies [d7c257e] +- Updated dependencies [9972432] +- Updated dependencies [40e22f1] +- Updated dependencies [5a68b57] +- Updated dependencies [fddb9cb] +- Updated dependencies [647eb92] +- Updated dependencies [7de1bad] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [dea68e9] +- Updated dependencies [b113178] +- Updated dependencies [138faaa] +- Updated dependencies [411fe24] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [48c732c] +- Updated dependencies [52fb30c] +- Updated dependencies [8807dcb] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [9ed18a5] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [c261a7c] +- Updated dependencies [76cb366] +- Updated dependencies [32409a9] +- Updated dependencies [cf45e4f] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [9f6f306] +- Updated dependencies [c757e07] +- Updated dependencies [a5a5312] +- Updated dependencies [c1b35c3] +- Updated dependencies [9a98a46] +- Updated dependencies [96b66ca] +- Updated dependencies [8c8ff0f] +- Updated dependencies [27e414b] +- Updated dependencies [eb53d63] +- Updated dependencies [dda5e74] +- Updated dependencies [f2a990b] +- Updated dependencies [035a12c] +- Updated dependencies [33d0169] +- Updated dependencies [a23164e] +- Updated dependencies [f3d0a9f] +- Updated dependencies [6aacad9] +- Updated dependencies [0d0ed81] +- Updated dependencies [8aed508] +- Updated dependencies [a60740a] +- Updated dependencies [1647fb3] +- Updated dependencies [8c5a81e] +- Updated dependencies [43580a3] +- Updated dependencies [cc05e60] +- Updated dependencies [dc10b3b] +- Updated dependencies [dca608a] +- Updated dependencies [baf2678] +- Updated dependencies [13d1e95] +- Updated dependencies [15b7f51] +- Updated dependencies [c297dff] +- Updated dependencies [1cd4762] +- Updated dependencies [3f7fdd0] +- Updated dependencies [6db1dc2] +- Updated dependencies [729b642] +- Updated dependencies [9ae874a] +- Updated dependencies [3ae62ac] +- Updated dependencies [6c7c6db] +- Updated dependencies [eebb893] +- Updated dependencies [493ad09] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [3543b51] +- Updated dependencies [4ab2c82] +- Updated dependencies [04f9861] +- Updated dependencies [c30ce97] +- Updated dependencies [28749e3] +- Updated dependencies [b57f778] +- Updated dependencies [e605773] +- Updated dependencies [0628e08] +- Updated dependencies [370e14d] +- Updated dependencies [713545f] +- Updated dependencies [cbd582f] +- Updated dependencies [031325d] +- Updated dependencies [1705ec9] +- Updated dependencies [b7fe94a] +- Updated dependencies [a2dc858] +- Updated dependencies [a6756a2] +- Updated dependencies [b3bcfef] +- Updated dependencies [aad35e6] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [71e02ff] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [28ba01f] +- Updated dependencies [5e8e243] +- Updated dependencies [4099ef2] +- Updated dependencies [8466fca] +- Updated dependencies [e3054b4] +- Updated dependencies [6a73185] +- Updated dependencies [0d2bb8d] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [740720c] +- Updated dependencies [6e643cc] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [a09816d] +- Updated dependencies [96b7975] +- Updated dependencies [e8b494a] +- Updated dependencies [bbc7e03] +- Updated dependencies [27895d7] +- Updated dependencies [543585d] +- Updated dependencies [7e89bc6] +- Updated dependencies [70194ff] +- Updated dependencies [42e4096] +- Updated dependencies [a10422d] +- Updated dependencies [dcc9b07] +- Updated dependencies [85a9954] +- Updated dependencies [1a2a8a9] +- Updated dependencies [24366ff] +- Updated dependencies [f2ef7d8] +- Updated dependencies [7a5ae65] +- Updated dependencies [17dbea4] +- Updated dependencies [ff60149] +- Updated dependencies [ee651ce] +- Updated dependencies [dad9b55] +- Updated dependencies [d076975] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [8a741ab] +- Updated dependencies [60e79ed] +- Updated dependencies [3cf6a44] +- Updated dependencies [5fecc22] +- Updated dependencies [595844b] +- Updated dependencies [2c5b90d] +- Updated dependencies [53733c1] +- Updated dependencies [4f19091] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [9c283a1] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [52971ff] +- Updated dependencies [06c3e5a] +- Updated dependencies [2da2979] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [e4e3bcf] +- Updated dependencies [ad50d61] +- Updated dependencies [87c7bba] +- Updated dependencies [50bfbb8] +- Updated dependencies [f26469a] +- Updated dependencies [7501d0c] +- Updated dependencies [4ef1ea9] +- Updated dependencies [cb909d7] +- Updated dependencies [9849846] +- Updated dependencies [41dd132] +- Updated dependencies [45ef94e] +- Updated dependencies [d7411fa] +- Updated dependencies [c6075a7] +- Updated dependencies [cd51dbb] +- Updated dependencies [3f568c1] +- Updated dependencies [573a376] +- Updated dependencies [5c2d5cf] +- Updated dependencies [cbc06ff] +- Updated dependencies [43916f3] +- Updated dependencies [f590f3e] +- Updated dependencies [9fa05c6] +- Updated dependencies [ed0edb1] +- Updated dependencies [a10987a] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [f77d078] +- Updated dependencies [3110de5] +- Updated dependencies [1948c5f] +- Updated dependencies [0e83fe0] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [9f84e5f] +- Updated dependencies [368deee] +- Updated dependencies [6156fdd] +- Updated dependencies [8644ce7] +- Updated dependencies [0d6589d] +- Updated dependencies [c54aa57] +- Updated dependencies [53257a5] +- Updated dependencies [8aecf6d] +- Updated dependencies [03cb550] +- Updated dependencies [115d387] +- Updated dependencies [e0050ba] +- Updated dependencies [2f8e8ba] +- Updated dependencies [14f4d8f] +- Updated dependencies [fa23941] +- Updated dependencies [8ddadc1] +- Updated dependencies [183ed23] +- Updated dependencies [a03bc4e] +- Updated dependencies [4d4ec16] +- Updated dependencies [d763ee7] +- Updated dependencies [8018e00] +- Updated dependencies [844218f] +- Updated dependencies [8cce05b] +- Updated dependencies [0d727b7] +- Updated dependencies [ff0d1f1] +- Updated dependencies [4f7d6f7] +- Updated dependencies [b848b47] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [47ed85d] +- Updated dependencies [0819cab] +- Updated dependencies [97e0f93] +- Updated dependencies [c8d4b90] +- Updated dependencies [00aa574] +- Updated dependencies [69c3dc4] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [b3d953e] +- Updated dependencies [62692b7] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [49c6bf3] +- Updated dependencies [4f9a3f8] +- Updated dependencies [00dd362] +- Updated dependencies [1cda7ea] +- Updated dependencies [bac4864] +- Updated dependencies [c48f06c] +- Updated dependencies [8c29b81] +- Updated dependencies [a68b475] +- Updated dependencies [c75453e] +- Updated dependencies [1e96009] +- Updated dependencies [6cfd04d] +- Updated dependencies [57445a6] +- Updated dependencies [01967c3] +- Updated dependencies [0212714] +- Updated dependencies [15d2766] +- Updated dependencies [1f3e9f6] +- Updated dependencies [8b1841f] +- Updated dependencies [305fe60] +- Updated dependencies [e91149e] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [706c8c6] +- Updated dependencies [ebb4713] +- Updated dependencies [c063734] +- Updated dependencies [c0dd417] +- Updated dependencies [0439a04] +- Updated dependencies [517e415] +- Updated dependencies [f92d271] +- Updated dependencies [6ddb97b] +- Updated dependencies [2af9729] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [6161010] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [b89f1b5] +- Updated dependencies [372ce7c] +- Updated dependencies [3aa008d] +- Updated dependencies [7d3b8d6] +- Updated dependencies [15f8357] +- Updated dependencies [378c955] +- Updated dependencies [56fa31b] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [39e9a82] +- Updated dependencies [9c5fb3e] +- Updated dependencies [abb5449] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @object-ui/plugin-detail@18.7.0 + - @object-ui/i18n@18.7.0 + - @object-ui/fields@18.7.0 + - @object-ui/plugin-grid@18.7.0 + - @object-ui/types@18.7.0 + - @object-ui/core@18.7.0 + - @object-ui/components@18.7.0 + - @object-ui/react@18.7.0 + - @object-ui/mobile@18.7.0 + - @object-ui/permissions@18.7.0 + ## 18.6.0 ### Minor Changes diff --git a/ui/packages/plugin-list/package.json b/ui/packages/plugin-list/package.json index 6044dbe80e0..cf04121559f 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": "18.6.0", + "version": "18.7.0", "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 4ef47150308..df40ffc26ae 100644 --- a/ui/packages/plugin-map/CHANGELOG.md +++ b/ui/packages/plugin-map/CHANGELOG.md @@ -1,5 +1,187 @@ # @object-ui/plugin-map +## 18.7.0 + +### Patch Changes + +- be91bfc: fix(ui): the kanban, calendar, timeline and map views draw the no-access state for a refused read, not the raw error + + Clause-②: no + Metadata-protocol: none + + A reader who may open a page but is not granted the records its kanban board, calendar, timeline or map reads saw the transport's own string where the view would be, untranslated (for example `Error loading kanban data: ApiDataSource: HTTP 403 Forbidden — {…}`). Each of the four views now classifies a failed load with the shared load-error verdict the list page, the related list and the Gantt chart use, and for a permission refusal (a 403, or a `PERMISSION_DENIED` / `FORBIDDEN` code) draws the calm no-access state those surfaces draw: a neutral status panel with the shared `list.loadErrorForbiddenTitle` / `list.loadErrorForbiddenMessage` sentence in the reader's language, and none of the server's text. Every other failure (a 500, a dropped connection) keeps each view's existing error screen. The map's tile-style failure is not a data load and is unchanged. +- Updated dependencies [2b57044] +- Updated dependencies [ee5fdc8] +- Updated dependencies [d6d9645] +- Updated dependencies [1c05546] +- Updated dependencies [4ffe9d3] +- Updated dependencies [89364b4] +- Updated dependencies [eed422e] +- Updated dependencies [2df9691] +- Updated dependencies [55020c3] +- Updated dependencies [6f2bd4f] +- Updated dependencies [99a0e4f] +- Updated dependencies [1b2cd80] +- Updated dependencies [f2078e3] +- Updated dependencies [5bd7257] +- Updated dependencies [5dd856f] +- Updated dependencies [34308dc] +- Updated dependencies [eb1f85d] +- Updated dependencies [3819afe] +- Updated dependencies [a5ddeb6] +- Updated dependencies [3d6dea2] +- Updated dependencies [285ad8d] +- Updated dependencies [6a35635] +- Updated dependencies [9212119] +- Updated dependencies [cda16d4] +- Updated dependencies [b65488a] +- Updated dependencies [dda665f] +- Updated dependencies [98b3f87] +- Updated dependencies [46ad134] +- Updated dependencies [ccded86] +- Updated dependencies [e01b8be] +- Updated dependencies [d96c878] +- Updated dependencies [72d19c4] +- Updated dependencies [b0c624a] +- Updated dependencies [9b6db73] +- Updated dependencies [1e018d6] +- Updated dependencies [bae933b] +- Updated dependencies [a3a74f2] +- Updated dependencies [f98f18c] +- Updated dependencies [227a16a] +- Updated dependencies [598a34d] +- Updated dependencies [0585797] +- Updated dependencies [811858c] +- Updated dependencies [fac1e7d] +- Updated dependencies [4609c48] +- Updated dependencies [8500ee7] +- Updated dependencies [a6607c7] +- Updated dependencies [c00be39] +- Updated dependencies [1c87956] +- Updated dependencies [5345905] +- Updated dependencies [a03c3d4] +- Updated dependencies [c9b0a23] +- Updated dependencies [a8126d2] +- Updated dependencies [65fddc8] +- Updated dependencies [6b360ab] +- Updated dependencies [d19d875] +- Updated dependencies [c7174c3] +- Updated dependencies [78f7160] +- Updated dependencies [1d7015a] +- Updated dependencies [9972432] +- Updated dependencies [40e22f1] +- Updated dependencies [fddb9cb] +- Updated dependencies [647eb92] +- Updated dependencies [7de1bad] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [dea68e9] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [48c732c] +- Updated dependencies [52fb30c] +- Updated dependencies [8807dcb] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [9ed18a5] +- Updated dependencies [c261a7c] +- Updated dependencies [cf45e4f] +- Updated dependencies [f548bdc] +- Updated dependencies [9f6f306] +- Updated dependencies [a5a5312] +- Updated dependencies [9a98a46] +- Updated dependencies [96b66ca] +- Updated dependencies [8c8ff0f] +- Updated dependencies [dda5e74] +- Updated dependencies [f2a990b] +- Updated dependencies [035a12c] +- Updated dependencies [33d0169] +- Updated dependencies [a23164e] +- Updated dependencies [f3d0a9f] +- Updated dependencies [0d0ed81] +- Updated dependencies [8aed508] +- Updated dependencies [a60740a] +- Updated dependencies [dc10b3b] +- Updated dependencies [dca608a] +- Updated dependencies [baf2678] +- Updated dependencies [13d1e95] +- Updated dependencies [3f7fdd0] +- Updated dependencies [6db1dc2] +- Updated dependencies [3ae62ac] +- Updated dependencies [6c7c6db] +- Updated dependencies [493ad09] +- Updated dependencies [3543b51] +- Updated dependencies [4ab2c82] +- Updated dependencies [04f9861] +- Updated dependencies [c30ce97] +- Updated dependencies [28749e3] +- Updated dependencies [e605773] +- Updated dependencies [713545f] +- Updated dependencies [a2dc858] +- Updated dependencies [a6756a2] +- Updated dependencies [b3bcfef] +- Updated dependencies [aad35e6] +- Updated dependencies [0b2118f] +- Updated dependencies [d12ac84] +- Updated dependencies [28ba01f] +- Updated dependencies [4099ef2] +- Updated dependencies [8466fca] +- Updated dependencies [e3054b4] +- Updated dependencies [0d2bb8d] +- Updated dependencies [bb89b2d] +- Updated dependencies [740720c] +- Updated dependencies [6e643cc] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [bbc7e03] +- Updated dependencies [27895d7] +- Updated dependencies [543585d] +- Updated dependencies [7e89bc6] +- Updated dependencies [42e4096] +- Updated dependencies [a10422d] +- Updated dependencies [dcc9b07] +- Updated dependencies [1a2a8a9] +- Updated dependencies [f2ef7d8] +- Updated dependencies [70d07fd] +- Updated dependencies [8a741ab] +- Updated dependencies [53733c1] +- Updated dependencies [e4e3bcf] +- Updated dependencies [ad50d61] +- Updated dependencies [87c7bba] +- Updated dependencies [cb909d7] +- Updated dependencies [41dd132] +- Updated dependencies [45ef94e] +- Updated dependencies [d7411fa] +- Updated dependencies [c6075a7] +- Updated dependencies [fed637c] +- Updated dependencies [1948c5f] +- Updated dependencies [7a7ab47] +- Updated dependencies [368deee] +- Updated dependencies [03cb550] +- Updated dependencies [2f8e8ba] +- Updated dependencies [fa23941] +- Updated dependencies [129e637] +- Updated dependencies [b3d953e] +- Updated dependencies [49c6bf3] +- Updated dependencies [a68b475] +- Updated dependencies [57445a6] +- Updated dependencies [0212714] +- Updated dependencies [1f3e9f6] +- Updated dependencies [c0dd417] +- Updated dependencies [517e415] +- Updated dependencies [6ddb97b] +- Updated dependencies [3aa008d] +- Updated dependencies [378c955] +- Updated dependencies [56fa31b] +- Updated dependencies [9c5fb3e] + - @object-ui/plugin-detail@18.7.0 + - @object-ui/types@18.7.0 + - @object-ui/core@18.7.0 + - @object-ui/components@18.7.0 + - @object-ui/react@18.7.0 + - @object-ui/permissions@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/ui/packages/plugin-map/package.json b/ui/packages/plugin-map/package.json index b2644f534fc..cc2ae0de04b 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": "18.6.0", + "version": "18.7.0", "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 4d7fe0d8271..a516c8ca9df 100644 --- a/ui/packages/plugin-markdown/CHANGELOG.md +++ b/ui/packages/plugin-markdown/CHANGELOG.md @@ -1,5 +1,144 @@ # @object-ui/plugin-markdown +## 18.7.0 + +### Patch Changes + +- 141a826: feat(console): an app's docs page has one navigation — the docs column — with the path to its book and the previous and next article + + Clause-②: yes (widening) — @object-ui/plugin-markdown exports MermaidEnlargeContext and MermaidEnlargeText; @object-ui/i18n adds 12 help.* keys; nothing removed + Metadata-protocol: none + + Inside an app, the documentation pages (`/apps/<app>/docs/…`) no longer draw the app menu beside the docs: the left column is the docs' own, with 「← Back to <app>」 at its top, a title filter, every book of the app's package (the current book open, the others folded, each with its article count; long titles wrap instead of truncating) and 「All documentation →」 at its foot. Every other docs page inside an app (the app's docs index, a book with no articles, a book or doc not found) carries the same 「← Back to <app>」 at its top. The app bar stays, and reads 「<app> / Documentation」; the separate 「Documentation / <title>」 bar under it is gone, and the path above the article names the book (Documentation › <book>). 「On this page」 marks the section being read as the page scrolls, and the article ends with its book's previous and next article. The article column is 720 px wide at 15 px, and a diagram carries an 「Enlarge」 control that opens it full size. + + `@object-ui/plugin-markdown` adds `MermaidEnlargeContext`: a host that provides its words gets the enlarge control on every rendered diagram; with no provider a diagram renders exactly as before. `@object-ui/app-shell` exports `matchAppBySegment` and `useServedAppLabel`, and `isAppDocsPath` beside `isRecordPagePath` from its `ConsoleLayout` module. New `help.*` keys in every shipped locale. No doc content, doc metadata, route or API changes. +- 9ed18a5: fix(ui): danger colours render red in both themes, and light danger text clears 4.5:1 + + Clause-②: no + Metadata-protocol: none + + - The grid and list views' export-error line, and the Markdown caution alert's border and title, set their colour to a bare `var(--destructive)`. That variable holds an HSL triplet, not a colour, so the browser dropped the declaration and the text rendered in the inherited colour. The export-error line now uses the `text-destructive` utility and the caution alert reads `hsl(var(--destructive-text, var(--destructive)))`. The Markdown theme's heading anchors, quote and meta tokens and blockquote border and background had the same defect with other theme variables and now wrap them in `hsl()` too. + - The flow preview's invalid-edge stroke and arrowhead paint with the danger text colour, so they stay readable on the dark theme. + - The light theme now sets its own `--destructive-text`, red-700 (`#b91c1c`, `0 73.7% 41.8%`), so `text-destructive` reads at 6.47:1 on white instead of 3.76:1. `--destructive`, the brand red used for button and badge fills, is unchanged. The same value is in the stylesheet that `objectui init` generates. + - A theme's `error` colour applied through the theme engine still sets `--destructive`, and now also derives a danger text colour for each mode from it (same hue, lightness moved until it reads at 4.5:1 on that mode's surfaces), written as `--destructive-text-light` and `--destructive-text-dark`. The shipped stylesheets read those into `--destructive-text` in their light and dark blocks, so a custom red drives danger text and stays readable in both modes. A host stylesheet that overrides `--destructive` by hand should set `--destructive-text` beside it in each mode. +- 23d61fa: fix(plugin-markdown): bold that ends in full-width punctuation renders bold before a CJK letter + + Clause-②: no + Metadata-protocol: none + + The markdown renderer the console's manual reader uses (`@object-ui/plugin-markdown`) left a `**bold**` run as literal asterisks when the run ended in full-width punctuation and a CJK letter followed it, as in `**解决耗时(小时)**会被清空`, `**每个项目一张报销单。**每个项目` or `**它跳过和拒绝什么:**已经`. CommonMark counts full-width punctuation as punctuation, so such a closer is not right-flanking; a Chinese or Japanese sentence puts no space there. + + The renderer now runs `remark-cjk-friendly` (its `parseOnly` entry, a new MIT dependency at `^2.3.4`) ahead of remark-gfm, the rule the chat surface already runs. It reads a CJK character beside a `**` run the way it reads the whitespace an English sentence would have there. ASCII emphasis, code spans, backslash escapes, GFM tables and GitHub-style alerts render as before, and the output still passes the same sanitize schema. + + `@object-ui/plugin-chatbot` changes a comment only: its CJK rule now names the renderer's copy, since neither package depends on the other and each imports the plugin itself. No props or exports change in either package; nothing to migrate. +- Updated dependencies [1c05546] +- Updated dependencies [4ffe9d3] +- Updated dependencies [89364b4] +- Updated dependencies [eed422e] +- Updated dependencies [2df9691] +- Updated dependencies [55020c3] +- Updated dependencies [6f2bd4f] +- Updated dependencies [99a0e4f] +- Updated dependencies [1b2cd80] +- Updated dependencies [3819afe] +- Updated dependencies [3d6dea2] +- Updated dependencies [285ad8d] +- Updated dependencies [9212119] +- Updated dependencies [cda16d4] +- Updated dependencies [dda665f] +- Updated dependencies [98b3f87] +- Updated dependencies [ccded86] +- Updated dependencies [e01b8be] +- Updated dependencies [d96c878] +- Updated dependencies [72d19c4] +- Updated dependencies [b0c624a] +- Updated dependencies [f98f18c] +- Updated dependencies [227a16a] +- Updated dependencies [598a34d] +- Updated dependencies [0585797] +- Updated dependencies [811858c] +- Updated dependencies [fac1e7d] +- Updated dependencies [8500ee7] +- Updated dependencies [a6607c7] +- Updated dependencies [c00be39] +- Updated dependencies [1c87956] +- Updated dependencies [5345905] +- Updated dependencies [c9b0a23] +- Updated dependencies [6b360ab] +- Updated dependencies [c7174c3] +- Updated dependencies [78f7160] +- Updated dependencies [40e22f1] +- Updated dependencies [7de1bad] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [dea68e9] +- Updated dependencies [6b51822] +- Updated dependencies [52fb30c] +- Updated dependencies [8807dcb] +- Updated dependencies [9ed18a5] +- Updated dependencies [f548bdc] +- Updated dependencies [9f6f306] +- Updated dependencies [8c8ff0f] +- Updated dependencies [dda5e74] +- Updated dependencies [f2a990b] +- Updated dependencies [035a12c] +- Updated dependencies [33d0169] +- Updated dependencies [a23164e] +- Updated dependencies [f3d0a9f] +- Updated dependencies [8aed508] +- Updated dependencies [a60740a] +- Updated dependencies [dc10b3b] +- Updated dependencies [dca608a] +- Updated dependencies [baf2678] +- Updated dependencies [13d1e95] +- Updated dependencies [6db1dc2] +- Updated dependencies [3ae62ac] +- Updated dependencies [6c7c6db] +- Updated dependencies [493ad09] +- Updated dependencies [4ab2c82] +- Updated dependencies [04f9861] +- Updated dependencies [e605773] +- Updated dependencies [713545f] +- Updated dependencies [a2dc858] +- Updated dependencies [b3bcfef] +- Updated dependencies [aad35e6] +- Updated dependencies [0b2118f] +- Updated dependencies [d12ac84] +- Updated dependencies [4099ef2] +- Updated dependencies [bb89b2d] +- Updated dependencies [740720c] +- Updated dependencies [6e643cc] +- Updated dependencies [f3a8a13] +- Updated dependencies [bbc7e03] +- Updated dependencies [543585d] +- Updated dependencies [7e89bc6] +- Updated dependencies [1a2a8a9] +- Updated dependencies [f2ef7d8] +- Updated dependencies [70d07fd] +- Updated dependencies [8a741ab] +- Updated dependencies [ad50d61] +- Updated dependencies [d7411fa] +- Updated dependencies [c6075a7] +- Updated dependencies [fed637c] +- Updated dependencies [1948c5f] +- Updated dependencies [7a7ab47] +- Updated dependencies [368deee] +- Updated dependencies [49c6bf3] +- Updated dependencies [a68b475] +- Updated dependencies [57445a6] +- Updated dependencies [0212714] +- Updated dependencies [1f3e9f6] +- Updated dependencies [c0dd417] +- Updated dependencies [517e415] +- Updated dependencies [6ddb97b] +- Updated dependencies [3aa008d] +- Updated dependencies [378c955] +- Updated dependencies [56fa31b] +- Updated dependencies [9c5fb3e] + - @object-ui/types@18.7.0 + - @object-ui/core@18.7.0 + - @object-ui/components@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/ui/packages/plugin-markdown/package.json b/ui/packages/plugin-markdown/package.json index 1650e7dd172..dbc6be48e0c 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": "18.6.0", + "version": "18.7.0", "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 2e53ac24602..b432f055a4f 100644 --- a/ui/packages/plugin-report/CHANGELOG.md +++ b/ui/packages/plugin-report/CHANGELOG.md @@ -1,5 +1,359 @@ # @object-ui/plugin-report +## 18.7.0 + +### Minor Changes + +- f98f18c: feat: an object's `userActions.exportCsv: false` hides the console's Export entry + + Clause-②: yes + Metadata-protocol: semantic + + `userActions.exportCsv` on an object now does what the Studio object form says it does. Set to `false`, the console offers no Export entry for downloading that object's data, in any of its formats (CSV, XLSX, JSON): + + - the object grid hides its toolbar Export menu, and the table's own CSV button that `operations.export: true` turns on; + - the list view hides Export in both toolbar forms, the wide toolbar's button and the Display panel's export footer; + - a dataset report hides its Export control when the dataset's base object sets it. + + A view's export of the picture it draws is not covered: a Gantt view's PNG and PDF buttons stay. + + Every surface reads one verdict, the new `isObjectExportOffered(objectSchema, effectiveApiOperations)` from `@object-ui/core`: the authored `exportCsv` over the object's `managedBy` default, ANDed with the caller's effective `export` API operation. Before this change the grid's toolbar menu, the list view and the report read the effective operation but not the object's bit, and the grid's table CSV button read neither half (only `operations.export`), so `exportCsv: false` changed nothing. Export is a read, so the verdict is not a row of `AFFORDANCE_GRANTS` and asks no `can(object, verb)`: the caller's export grant reaches the console through the effective `export` operation, which the server derives from `list` and `allowExport`. + + An object that does not author the key keeps its Export entries, since every `managedBy` bucket still defaults `exportCsv` to `true` (ADR-0103), with one change: the grid's table CSV button (`operations.export: true`) now also follows the effective `export` operation, as the toolbar menu beside it already did. So a viewer whose effective operations exclude `export` no longer sees that button, even on an object that authors nothing. The setting hides the entry and is not a permission: no export request is refused because of it, and who may export is still the permission set's `allowExport`. The report reads the base object's definition through the report's data source, and a report whose source cannot serve one keeps its Export control. + + The spec's `exportCsv` description and the Studio form's help text now say this; the form's English help text bundle in `@objectstack/platform-objects` is regenerated to match, and the translated locales keep their wording. The liveness ledger grades `userActions.exportCsv` `live`, so an authored `exportCsv: true` no longer raises the `liveness-dead-property` warning at `os lint` / `os validate`. Nothing needs migrating. + +### Patch Changes + +- 6e643cc: feat(plugin-dashboard): a dashboard or report drill opens a centred dialog over the standard list, and a report's chart marks drill + + Clause-②: yes (widening) — additive members only, among them the new `PageRegionPostureReset` export of `@object-ui/components`; nothing is removed or renamed + Metadata-protocol: none + + Clicking a number on a dashboard (a chart mark, a metric tile, a table cell) or on a dataset report used to open a full-height side drawer whose table listed every field of the object, with no sort, no filter and no word on which conditions selected the records; a row stacked a second record panel on top. The drill now opens a dialog about 70% wide and 65% tall that dims and blurs nothing behind it, and its body is the standard list the object list page draws (`list-view`): the same row height, column-header sort, filter chips, added columns, record count and column calculations. The drill's conditions (the clicked bucket, the widget's filter, the measure's scope) are the list's own chips and can be changed or removed; a condition no chip can say (a relationship path, an `$or`) still filters the list. The default columns are the record's name, the grouped fields and the measured fields. Nothing done in the dialog is saved, and it writes nothing. A record's name opens the record's full page, whose 「N of M」 stepper walks the drill's rows and whose way back is the dashboard or report; no second panel is stacked. 「Open in list」 is unchanged. On a phone the drill keeps the side drawer, with the same list. + + A dataset report's chart marks now drill too: a bar opens the same records as the summary line it stands for. + + Additive members: `DrillNavigationValue.openRecord` and the `DrillRecordOrigin` type (`@object-ui/react`), `DrillDownDrawerProps.defaultColumns` (`@object-ui/plugin-dashboard`), `DatasetDrillArgs.fields` (`@object-ui/plugin-report`), `PageRegionPostureReset` (`@object-ui/components`). A renderer without `@object-ui/plugin-list` registered lists the drilled records in the dashboard's data table. A host that gives no `openRecord` (a page block's metric or pivot) opens the drilled record in a dialog, from either body. + + Inside a page the drill draws the same standard list: the page region's posture (the compact or capped list a page block draws) is cleared for the drill's dialog by the new `PageRegionPostureReset` (`@object-ui/components`), so a page block's metric or pivot drill shows its chips, its record count and its pager, and no 「View all」 link to a list without the drill's condition. A drill whose filter names no condition any read can carry (a string, a number) lists nothing and says so, instead of listing every record. +- 3cf6a44: feat(console): the report builder — one page to build a new report or edit an existing one, with the report drawn live on the left and five settings on the right + + Clause-②: yes (widening) — new public exports from `@object-ui/plugin-report` (`ReportBuilder` and its model types), a new optional `foldTableUnderChart` prop on `DatasetReportRenderer`, and new `@object-ui/i18n` keys (`report.builder.*`, `report.computedValues`) in all 11 locales; no spec or schema change + Metadata-protocol: none + + - **The builder** (`ReportBuilder`, `@object-ui/plugin-report`): the report previewed on the left; report type, data source, measure, grouping and chart on the right. Every pick rewrites the report and the preview draws it again; there is no Generate button. Picking a data source draws a single number at once (the dataset's count measure, no grouping). While a required piece is missing, the preview says what it is where the chart would be (「Choose a data source」, 「Choose a field to group by」) and that setting's picker opens by itself. A second grouping layer splits a bar or line chart; the chart's own switches are Show values and a target line. Grouping by a date adds the report's period chip. The report's table folds under the chart as 「Computed values」. + - **The doors** (`@object-ui/app-shell`): the report page's 「Edit」 opens the builder for a dataset-bound report (a joined report, a pre-dataset report, and a dataset report with a cross-tab, a saved filter or several values keep the inspector panel), and the app's `reports/new` address opens it on a new report, created under a name no served report holds. Admin only. + - **Save is seen by everyone at once:** the report is written and published in the same press, for the builder and the inspector panel alike. Over any pending draft nothing is written and the builder says so; the draft bar above the preview publishes or discards it. +- c54aa57: feat(console): the report builder adds 「+ Filter」 under the data source — a report filter on the bound dataset, drawn into the preview at once and kept on Save + + Clause-②: yes (widening) — a new optional `filter` slot on `ReportBuilder` (`@object-ui/plugin-report`), two exports from `@object-ui/plugin-list` (`conditionCandidatesOf`, `conditionOptionsOf`, and the `ConditionCandidateField` type), and four new `@object-ui/i18n` keys (`report.builder.source.addFilter`, `filterAdvanced`, `filterLoading`, `filterNoFields`) in all 11 locales; no spec, schema or server change + Metadata-protocol: none + + - **The filter** (`@object-ui/app-shell`): under the data source, 「+ Filter」 opens the same condition editor the dataset designer uses, over the fields of the dataset's object (their translated labels, a select's options, a lookup's record picker; hidden fields are not offered). Each condition is written into the report's `runtimeFilter`, the preview redraws with it at once, and Save keeps it; removing the last condition removes the key. Switching the data source clears the filter. + - **The fields offered** leave out virtual (formula) fields: the dataset door refuses a filter on one, so a report filtered on it could be saved and then fail for every viewer. + - **A filter with `$and` beside other conditions** (`{ $and: [...], amount: {...} }`, or with `$not`) is no longer read as editable rows by the shared filter bridge, so neither the report builder nor the dataset designer opens it where the next edit would drop the conditions beside the `$and`; it keeps the panel / source editor, unchanged. + - **Which reports open in the builder:** a dataset report with a saved filter now opens in the builder when its filter is one the builder can edit (field conditions joined by AND); a filter it cannot edit (an OR, a nested group, two operators on one field) keeps the report inspector panel, as before. A filter that turns out not to be editable once the fields are read is shown as kept and saved unchanged. +- 53257a5: feat(report): 「Compare with previous period」 beside a report's period chip — the chart draws the earlier window beside the current one + + Clause-②: yes (widening) — one new `@object-ui/i18n` key, `report.dateRange.comparePrevious`, in all 11 locales; no export, spec key, schema or server change + Metadata-protocol: none + + - **The switch**: a report that declares `dateRange` now shows 「Compare with previous period」 next to its period chip when its chart can draw a comparison: bar, column, horizontal bar, line or area over a category axis, or a single number. It is not offered on a `seriesBy` split, nor on a chart whose x axis is the window's own date dimension, where the earlier window's date buckets would not line up with the current ones. Like the period pick it is the viewer's and is not saved into the report. It is off, and cannot be turned on, while the period is All time or a custom range missing an end. + - **What it asks for**: the chart's dataset query carries the contract's `compareTo: { kind: 'previousPeriod', dimension }`, on the same dimension and window the period chip already sends. The chart is compared with the same-length window just before the current one (the contract's `previousPeriod`). The table beside the chart is not asked for a comparison. + - **What it draws**: a bar or line chart gets one more series, the measure's earlier window, labelled 「<measure> · vs previous period」 and drawn muted by the chart's existing `comparison` styling; a single number shows the previous period's value and the change in percent under it. A click on an earlier-window mark opens no record list, the dashboard's rule for the same series. A comparison the server refuses is shown where the chart was, instead of the chart disappearing. +- 293c005: fix(plugin-report): a report chart's value axis reads a percent measure in percent, and two value-axis ticks never share a label + + Clause-②: no + Metadata-protocol: none + + - **A report chart over a percent measure labels its value axis in percent.** A dataset measure with a percent `format` (`'0.0%'`) charted in a report drew its value axis in raw fractions (`0`, `0.1`, `0.2`, `0.3`) while the table beside it printed `33.3%`. The report now hands the measure's pattern to the chart as its value-axis `format`, so the axis reads `0.0%` … `34.0%`. This applies to a percent pattern on a measure stored as a 0–1 fraction, which is the table's reading of such a pattern. A measure already in percentage points (`percentScale: 'whole'`), a currency measure, and a plain numeral pattern keep the chart's default axis: the chart's axis `format` cannot say what the table prints for the first two, and a fixed-width numeral pattern (`'0,0.00'`) would outgrow the axis band where the compact default reads the same number. + - **Two ticks on a value axis never share a label.** With no axis `format`, the value axis printed at most one fraction digit, so the ticks of a small domain collapsed: a 0–⅓ axis read `0, 0.1, 0.2, 0.3, 0.3`. Each value axis now prints its ticks to the decimal place its tick step needs (`0, 0.085, 0.17, 0.255, 0.34`), in compact notation as before. A declared axis `format` keeps its own places unless they are too coarse for the step, in which case the ticks gain the places the step needs (`'0%'` over a 0.85-point step reads `0.85%`, not two `3%` ticks). Data labels follow their value axis, as they already did. + + Nothing to migrate: no metadata key changes and no export changes. +- fa7d94b: fix(plugin-report): a report matrix cell's drill list shows the fields the cell stands for + + Clause-②: no + Metadata-protocol: none + + A matrix cell's drill now opens its record list with the down dimension's field, the across dimension's field and the measured field as default columns after the record name, the same defaults a summary line's drill already used. Before, the matrix drill listed only the record name. The filter is unchanged: the list still holds exactly the records the measure counted. +- Updated dependencies [a0b4ecf] +- Updated dependencies [d6d9645] +- Updated dependencies [1c05546] +- Updated dependencies [4ffe9d3] +- Updated dependencies [c3fb37a] +- Updated dependencies [c9b3f7a] +- Updated dependencies [8896822] +- Updated dependencies [dc53d4a] +- Updated dependencies [0739dee] +- Updated dependencies [ad15579] +- Updated dependencies [89364b4] +- Updated dependencies [eed422e] +- Updated dependencies [2df9691] +- Updated dependencies [bfd6b6b] +- Updated dependencies [55020c3] +- Updated dependencies [50f85e9] +- Updated dependencies [6f2bd4f] +- Updated dependencies [99a0e4f] +- Updated dependencies [a9b36ef] +- Updated dependencies [9f352e8] +- Updated dependencies [fd471d3] +- Updated dependencies [1b2cd80] +- Updated dependencies [6ffa816] +- Updated dependencies [7702f09] +- Updated dependencies [05e0eb8] +- Updated dependencies [c890070] +- Updated dependencies [5bd7257] +- Updated dependencies [58d00db] +- Updated dependencies [3819afe] +- Updated dependencies [61722e9] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [285ad8d] +- Updated dependencies [bfd1049] +- Updated dependencies [6a35635] +- Updated dependencies [9212119] +- Updated dependencies [cda16d4] +- Updated dependencies [9b3227f] +- Updated dependencies [fe75349] +- Updated dependencies [dab4712] +- Updated dependencies [141a826] +- Updated dependencies [8145424] +- Updated dependencies [83a79e6] +- Updated dependencies [dda665f] +- Updated dependencies [98b3f87] +- Updated dependencies [ccded86] +- Updated dependencies [ec24363] +- Updated dependencies [e01b8be] +- Updated dependencies [238661f] +- Updated dependencies [d96c878] +- Updated dependencies [72d19c4] +- Updated dependencies [b0c624a] +- Updated dependencies [1e018d6] +- Updated dependencies [6d86b43] +- Updated dependencies [bae933b] +- Updated dependencies [a3a74f2] +- Updated dependencies [f98f18c] +- Updated dependencies [74d3d83] +- Updated dependencies [227a16a] +- Updated dependencies [598a34d] +- Updated dependencies [0585797] +- Updated dependencies [811858c] +- Updated dependencies [fac1e7d] +- Updated dependencies [4609c48] +- Updated dependencies [8500ee7] +- Updated dependencies [a6607c7] +- Updated dependencies [c00be39] +- Updated dependencies [1c87956] +- Updated dependencies [5345905] +- Updated dependencies [af566c2] +- Updated dependencies [f909734] +- Updated dependencies [c9b0a23] +- Updated dependencies [f51578e] +- Updated dependencies [6b360ab] +- Updated dependencies [c7174c3] +- Updated dependencies [78f7160] +- Updated dependencies [1d7015a] +- Updated dependencies [40e22f1] +- Updated dependencies [5a68b57] +- Updated dependencies [7de1bad] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [dea68e9] +- Updated dependencies [b113178] +- Updated dependencies [138faaa] +- Updated dependencies [411fe24] +- Updated dependencies [6b51822] +- Updated dependencies [48c732c] +- Updated dependencies [52fb30c] +- Updated dependencies [8807dcb] +- Updated dependencies [8df7bf2] +- Updated dependencies [d33bf5a] +- Updated dependencies [9ed18a5] +- Updated dependencies [c261a7c] +- Updated dependencies [76cb366] +- Updated dependencies [32409a9] +- Updated dependencies [f548bdc] +- Updated dependencies [9f6f306] +- Updated dependencies [c757e07] +- Updated dependencies [a5a5312] +- Updated dependencies [c1b35c3] +- Updated dependencies [9a98a46] +- Updated dependencies [96b66ca] +- Updated dependencies [8c8ff0f] +- Updated dependencies [27e414b] +- Updated dependencies [eb53d63] +- Updated dependencies [dda5e74] +- Updated dependencies [f2a990b] +- Updated dependencies [035a12c] +- Updated dependencies [33d0169] +- Updated dependencies [a23164e] +- Updated dependencies [f3d0a9f] +- Updated dependencies [6aacad9] +- Updated dependencies [8aed508] +- Updated dependencies [a60740a] +- Updated dependencies [43580a3] +- Updated dependencies [cc05e60] +- Updated dependencies [dc10b3b] +- Updated dependencies [dca608a] +- Updated dependencies [baf2678] +- Updated dependencies [13d1e95] +- Updated dependencies [15b7f51] +- Updated dependencies [c297dff] +- Updated dependencies [1cd4762] +- Updated dependencies [6db1dc2] +- Updated dependencies [9ae874a] +- Updated dependencies [3ae62ac] +- Updated dependencies [6c7c6db] +- Updated dependencies [eebb893] +- Updated dependencies [493ad09] +- Updated dependencies [3543b51] +- Updated dependencies [4ab2c82] +- Updated dependencies [04f9861] +- Updated dependencies [c30ce97] +- Updated dependencies [e605773] +- Updated dependencies [0628e08] +- Updated dependencies [713545f] +- Updated dependencies [cbd582f] +- Updated dependencies [031325d] +- Updated dependencies [1705ec9] +- Updated dependencies [a2dc858] +- Updated dependencies [a6756a2] +- Updated dependencies [b3bcfef] +- Updated dependencies [aad35e6] +- Updated dependencies [0b2118f] +- Updated dependencies [71e02ff] +- Updated dependencies [d12ac84] +- Updated dependencies [5e8e243] +- Updated dependencies [4099ef2] +- Updated dependencies [6a73185] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [740720c] +- Updated dependencies [6e643cc] +- Updated dependencies [f3a8a13] +- Updated dependencies [96b7975] +- Updated dependencies [e8b494a] +- Updated dependencies [bbc7e03] +- Updated dependencies [27895d7] +- Updated dependencies [543585d] +- Updated dependencies [7e89bc6] +- Updated dependencies [42e4096] +- Updated dependencies [a10422d] +- Updated dependencies [1a2a8a9] +- Updated dependencies [24366ff] +- Updated dependencies [f2ef7d8] +- Updated dependencies [17dbea4] +- Updated dependencies [ff60149] +- Updated dependencies [ee651ce] +- Updated dependencies [dad9b55] +- Updated dependencies [d076975] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [8a741ab] +- Updated dependencies [60e79ed] +- Updated dependencies [3cf6a44] +- Updated dependencies [5fecc22] +- Updated dependencies [4f19091] +- Updated dependencies [3b58921] +- Updated dependencies [9c283a1] +- Updated dependencies [c45dd80] +- Updated dependencies [52971ff] +- Updated dependencies [06c3e5a] +- Updated dependencies [2da2979] +- Updated dependencies [ad50d61] +- Updated dependencies [50bfbb8] +- Updated dependencies [f26469a] +- Updated dependencies [7501d0c] +- Updated dependencies [4ef1ea9] +- Updated dependencies [41dd132] +- Updated dependencies [d7411fa] +- Updated dependencies [c6075a7] +- Updated dependencies [cd51dbb] +- Updated dependencies [3f568c1] +- Updated dependencies [573a376] +- Updated dependencies [5c2d5cf] +- Updated dependencies [43916f3] +- Updated dependencies [f590f3e] +- Updated dependencies [9fa05c6] +- Updated dependencies [ed0edb1] +- Updated dependencies [a10987a] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [fed637c] +- Updated dependencies [f77d078] +- Updated dependencies [3110de5] +- Updated dependencies [1948c5f] +- Updated dependencies [0e83fe0] +- Updated dependencies [7a7ab47] +- Updated dependencies [70f454a] +- Updated dependencies [9f84e5f] +- Updated dependencies [368deee] +- Updated dependencies [6156fdd] +- Updated dependencies [0d6589d] +- Updated dependencies [c54aa57] +- Updated dependencies [53257a5] +- Updated dependencies [115d387] +- Updated dependencies [e0050ba] +- Updated dependencies [14f4d8f] +- Updated dependencies [183ed23] +- Updated dependencies [4d4ec16] +- Updated dependencies [d763ee7] +- Updated dependencies [8018e00] +- Updated dependencies [844218f] +- Updated dependencies [8cce05b] +- Updated dependencies [0d727b7] +- Updated dependencies [ff0d1f1] +- Updated dependencies [4f7d6f7] +- Updated dependencies [b848b47] +- Updated dependencies [129e637] +- Updated dependencies [47ed85d] +- Updated dependencies [0819cab] +- Updated dependencies [97e0f93] +- Updated dependencies [c8d4b90] +- Updated dependencies [69c3dc4] +- Updated dependencies [76eea0f] +- Updated dependencies [62692b7] +- Updated dependencies [49c6bf3] +- Updated dependencies [00dd362] +- Updated dependencies [bac4864] +- Updated dependencies [8c29b81] +- Updated dependencies [a68b475] +- Updated dependencies [c75453e] +- Updated dependencies [1e96009] +- Updated dependencies [57445a6] +- Updated dependencies [0212714] +- Updated dependencies [15d2766] +- Updated dependencies [1f3e9f6] +- Updated dependencies [305fe60] +- Updated dependencies [e91149e] +- Updated dependencies [06c1f54] +- Updated dependencies [706c8c6] +- Updated dependencies [c0dd417] +- Updated dependencies [517e415] +- Updated dependencies [6ddb97b] +- Updated dependencies [2af9729] +- Updated dependencies [2a6f26a] +- Updated dependencies [6161010] +- Updated dependencies [b89f1b5] +- Updated dependencies [3aa008d] +- Updated dependencies [7d3b8d6] +- Updated dependencies [15f8357] +- Updated dependencies [378c955] +- Updated dependencies [56fa31b] +- Updated dependencies [39e9a82] +- Updated dependencies [9c5fb3e] +- Updated dependencies [abb5449] +- Updated dependencies [d280de9] + - @object-ui/i18n@18.7.0 + - @object-ui/fields@18.7.0 + - @object-ui/types@18.7.0 + - @object-ui/core@18.7.0 + - @object-ui/components@18.7.0 + - @object-ui/react@18.7.0 + - @object-ui/permissions@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/ui/packages/plugin-report/package.json b/ui/packages/plugin-report/package.json index 93180b11453..608048c0b97 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": "18.6.0", + "version": "18.7.0", "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 d4424f703b2..2b726e17ed6 100644 --- a/ui/packages/plugin-timeline/CHANGELOG.md +++ b/ui/packages/plugin-timeline/CHANGELOG.md @@ -1,5 +1,414 @@ # @object-ui/plugin-timeline +## 18.7.0 + +### Patch Changes + +- be91bfc: fix(ui): the kanban, calendar, timeline and map views draw the no-access state for a refused read, not the raw error + + Clause-②: no + Metadata-protocol: none + + A reader who may open a page but is not granted the records its kanban board, calendar, timeline or map reads saw the transport's own string where the view would be, untranslated (for example `Error loading kanban data: ApiDataSource: HTTP 403 Forbidden — {…}`). Each of the four views now classifies a failed load with the shared load-error verdict the list page, the related list and the Gantt chart use, and for a permission refusal (a 403, or a `PERMISSION_DENIED` / `FORBIDDEN` code) draws the calm no-access state those surfaces draw: a neutral status panel with the shared `list.loadErrorForbiddenTitle` / `list.loadErrorForbiddenMessage` sentence in the reader's language, and none of the server's text. Every other failure (a 500, a dropped connection) keeps each view's existing error screen. The map's tile-style failure is not a data load and is unchanged. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [2b57044] +- Updated dependencies [52a2398] +- Updated dependencies [a0b4ecf] +- Updated dependencies [ee5fdc8] +- Updated dependencies [d6d9645] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [c3fb37a] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [c9b3f7a] +- Updated dependencies [8e46424] +- Updated dependencies [8896822] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [dc53d4a] +- Updated dependencies [0739dee] +- Updated dependencies [ad15579] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [eed422e] +- Updated dependencies [2df9691] +- Updated dependencies [bfd6b6b] +- Updated dependencies [55020c3] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [6f2bd4f] +- Updated dependencies [99a0e4f] +- Updated dependencies [9f352e8] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [fd471d3] +- Updated dependencies [1b2cd80] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [f2078e3] +- Updated dependencies [7702f09] +- Updated dependencies [05e0eb8] +- Updated dependencies [b863d2b] +- Updated dependencies [c890070] +- Updated dependencies [e75a528] +- Updated dependencies [5bd7257] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [34308dc] +- Updated dependencies [eb1f85d] +- Updated dependencies [58d00db] +- Updated dependencies [3819afe] +- Updated dependencies [a5ddeb6] +- Updated dependencies [61722e9] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [285ad8d] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [6a35635] +- Updated dependencies [9212119] +- Updated dependencies [cda16d4] +- Updated dependencies [9b3227f] +- Updated dependencies [fe75349] +- Updated dependencies [f4de1de] +- Updated dependencies [dab4712] +- Updated dependencies [141a826] +- Updated dependencies [8145424] +- Updated dependencies [b65488a] +- Updated dependencies [53c9575] +- Updated dependencies [83a79e6] +- Updated dependencies [dda665f] +- Updated dependencies [98b3f87] +- Updated dependencies [46ad134] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [ccded86] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [e01b8be] +- Updated dependencies [238661f] +- Updated dependencies [d96c878] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [72d19c4] +- Updated dependencies [b0c624a] +- Updated dependencies [9b6db73] +- Updated dependencies [1e018d6] +- Updated dependencies [6d86b43] +- Updated dependencies [bae933b] +- Updated dependencies [a3a74f2] +- Updated dependencies [f98f18c] +- Updated dependencies [74d3d83] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [227a16a] +- Updated dependencies [de25d58] +- Updated dependencies [598a34d] +- Updated dependencies [0585797] +- Updated dependencies [811858c] +- Updated dependencies [fac1e7d] +- Updated dependencies [4609c48] +- Updated dependencies [8500ee7] +- Updated dependencies [a6607c7] +- Updated dependencies [c00be39] +- Updated dependencies [1c87956] +- Updated dependencies [5345905] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [f909734] +- Updated dependencies [cedc094] +- Updated dependencies [a03c3d4] +- Updated dependencies [c9b0a23] +- Updated dependencies [a8126d2] +- Updated dependencies [f51578e] +- Updated dependencies [65fddc8] +- Updated dependencies [6b360ab] +- Updated dependencies [d19d875] +- Updated dependencies [c7174c3] +- Updated dependencies [78f7160] +- Updated dependencies [bb1c55d] +- Updated dependencies [1d7015a] +- Updated dependencies [d7c257e] +- Updated dependencies [9972432] +- Updated dependencies [40e22f1] +- Updated dependencies [fddb9cb] +- Updated dependencies [647eb92] +- Updated dependencies [7de1bad] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [dea68e9] +- Updated dependencies [b113178] +- Updated dependencies [138faaa] +- Updated dependencies [411fe24] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [48c732c] +- Updated dependencies [52fb30c] +- Updated dependencies [8807dcb] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [9ed18a5] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [c261a7c] +- Updated dependencies [76cb366] +- Updated dependencies [32409a9] +- Updated dependencies [cf45e4f] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [9f6f306] +- Updated dependencies [c757e07] +- Updated dependencies [a5a5312] +- Updated dependencies [c1b35c3] +- Updated dependencies [9a98a46] +- Updated dependencies [96b66ca] +- Updated dependencies [8c8ff0f] +- Updated dependencies [27e414b] +- Updated dependencies [eb53d63] +- Updated dependencies [dda5e74] +- Updated dependencies [f2a990b] +- Updated dependencies [035a12c] +- Updated dependencies [33d0169] +- Updated dependencies [a23164e] +- Updated dependencies [f3d0a9f] +- Updated dependencies [0d0ed81] +- Updated dependencies [8aed508] +- Updated dependencies [a60740a] +- Updated dependencies [8c5a81e] +- Updated dependencies [43580a3] +- Updated dependencies [cc05e60] +- Updated dependencies [dc10b3b] +- Updated dependencies [dca608a] +- Updated dependencies [baf2678] +- Updated dependencies [13d1e95] +- Updated dependencies [3f7fdd0] +- Updated dependencies [6db1dc2] +- Updated dependencies [3ae62ac] +- Updated dependencies [6c7c6db] +- Updated dependencies [eebb893] +- Updated dependencies [493ad09] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [3543b51] +- Updated dependencies [4ab2c82] +- Updated dependencies [04f9861] +- Updated dependencies [c30ce97] +- Updated dependencies [28749e3] +- Updated dependencies [e605773] +- Updated dependencies [0628e08] +- Updated dependencies [713545f] +- Updated dependencies [cbd582f] +- Updated dependencies [031325d] +- Updated dependencies [1705ec9] +- Updated dependencies [b7fe94a] +- Updated dependencies [a2dc858] +- Updated dependencies [a6756a2] +- Updated dependencies [b3bcfef] +- Updated dependencies [aad35e6] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [71e02ff] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [28ba01f] +- Updated dependencies [5e8e243] +- Updated dependencies [4099ef2] +- Updated dependencies [8466fca] +- Updated dependencies [e3054b4] +- Updated dependencies [6a73185] +- Updated dependencies [0d2bb8d] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [740720c] +- Updated dependencies [6e643cc] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [96b7975] +- Updated dependencies [e8b494a] +- Updated dependencies [bbc7e03] +- Updated dependencies [27895d7] +- Updated dependencies [543585d] +- Updated dependencies [7e89bc6] +- Updated dependencies [70194ff] +- Updated dependencies [42e4096] +- Updated dependencies [a10422d] +- Updated dependencies [dcc9b07] +- Updated dependencies [1a2a8a9] +- Updated dependencies [f2ef7d8] +- Updated dependencies [7a5ae65] +- Updated dependencies [ff60149] +- Updated dependencies [ee651ce] +- Updated dependencies [dad9b55] +- Updated dependencies [d076975] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [8a741ab] +- Updated dependencies [60e79ed] +- Updated dependencies [3cf6a44] +- Updated dependencies [5fecc22] +- Updated dependencies [595844b] +- Updated dependencies [53733c1] +- Updated dependencies [4f19091] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [9c283a1] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [e4e3bcf] +- Updated dependencies [ad50d61] +- Updated dependencies [87c7bba] +- Updated dependencies [f26469a] +- Updated dependencies [7501d0c] +- Updated dependencies [4ef1ea9] +- Updated dependencies [cb909d7] +- Updated dependencies [41dd132] +- Updated dependencies [45ef94e] +- Updated dependencies [d7411fa] +- Updated dependencies [c6075a7] +- Updated dependencies [cd51dbb] +- Updated dependencies [3f568c1] +- Updated dependencies [573a376] +- Updated dependencies [5c2d5cf] +- Updated dependencies [cbc06ff] +- Updated dependencies [43916f3] +- Updated dependencies [f590f3e] +- Updated dependencies [9fa05c6] +- Updated dependencies [ed0edb1] +- Updated dependencies [a10987a] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [f77d078] +- Updated dependencies [1948c5f] +- Updated dependencies [0e83fe0] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [368deee] +- Updated dependencies [8644ce7] +- Updated dependencies [0d6589d] +- Updated dependencies [c54aa57] +- Updated dependencies [53257a5] +- Updated dependencies [8aecf6d] +- Updated dependencies [03cb550] +- Updated dependencies [e0050ba] +- Updated dependencies [2f8e8ba] +- Updated dependencies [14f4d8f] +- Updated dependencies [fa23941] +- Updated dependencies [8ddadc1] +- Updated dependencies [183ed23] +- Updated dependencies [a03bc4e] +- Updated dependencies [4d4ec16] +- Updated dependencies [d763ee7] +- Updated dependencies [8018e00] +- Updated dependencies [844218f] +- Updated dependencies [8cce05b] +- Updated dependencies [0d727b7] +- Updated dependencies [ff0d1f1] +- Updated dependencies [4f7d6f7] +- Updated dependencies [b848b47] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [0819cab] +- Updated dependencies [c8d4b90] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [b3d953e] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [49c6bf3] +- Updated dependencies [4f9a3f8] +- Updated dependencies [00dd362] +- Updated dependencies [1cda7ea] +- Updated dependencies [bac4864] +- Updated dependencies [8c29b81] +- Updated dependencies [a68b475] +- Updated dependencies [c75453e] +- Updated dependencies [1e96009] +- Updated dependencies [57445a6] +- Updated dependencies [01967c3] +- Updated dependencies [0212714] +- Updated dependencies [1f3e9f6] +- Updated dependencies [8b1841f] +- Updated dependencies [305fe60] +- Updated dependencies [e91149e] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [c0dd417] +- Updated dependencies [0439a04] +- Updated dependencies [517e415] +- Updated dependencies [f92d271] +- Updated dependencies [6ddb97b] +- Updated dependencies [2af9729] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [6161010] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [3aa008d] +- Updated dependencies [7d3b8d6] +- Updated dependencies [15f8357] +- Updated dependencies [378c955] +- Updated dependencies [56fa31b] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [39e9a82] +- Updated dependencies [9c5fb3e] +- Updated dependencies [abb5449] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @object-ui/plugin-detail@18.7.0 + - @object-ui/i18n@18.7.0 + - @object-ui/types@18.7.0 + - @object-ui/core@18.7.0 + - @object-ui/components@18.7.0 + - @object-ui/react@18.7.0 + - @object-ui/mobile@18.7.0 + - @object-ui/permissions@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/ui/packages/plugin-timeline/package.json b/ui/packages/plugin-timeline/package.json index 9c6b1e0da8f..c6894e07b30 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": "18.6.0", + "version": "18.7.0", "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 e77fff30f2c..8e4d94ad517 100644 --- a/ui/packages/plugin-timesheet/CHANGELOG.md +++ b/ui/packages/plugin-timesheet/CHANGELOG.md @@ -1,5 +1,286 @@ # @object-ui/plugin-timesheet +## 18.7.0 + +### Patch Changes + +- Updated dependencies [a0b4ecf] +- Updated dependencies [d6d9645] +- Updated dependencies [1c05546] +- Updated dependencies [4ffe9d3] +- Updated dependencies [c3fb37a] +- Updated dependencies [c9b3f7a] +- Updated dependencies [8896822] +- Updated dependencies [dc53d4a] +- Updated dependencies [0739dee] +- Updated dependencies [ad15579] +- Updated dependencies [89364b4] +- Updated dependencies [eed422e] +- Updated dependencies [2df9691] +- Updated dependencies [bfd6b6b] +- Updated dependencies [55020c3] +- Updated dependencies [50f85e9] +- Updated dependencies [6f2bd4f] +- Updated dependencies [99a0e4f] +- Updated dependencies [a9b36ef] +- Updated dependencies [9f352e8] +- Updated dependencies [fd471d3] +- Updated dependencies [1b2cd80] +- Updated dependencies [6ffa816] +- Updated dependencies [7702f09] +- Updated dependencies [05e0eb8] +- Updated dependencies [c890070] +- Updated dependencies [5bd7257] +- Updated dependencies [58d00db] +- Updated dependencies [3819afe] +- Updated dependencies [61722e9] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [285ad8d] +- Updated dependencies [bfd1049] +- Updated dependencies [6a35635] +- Updated dependencies [9212119] +- Updated dependencies [cda16d4] +- Updated dependencies [9b3227f] +- Updated dependencies [fe75349] +- Updated dependencies [dab4712] +- Updated dependencies [141a826] +- Updated dependencies [8145424] +- Updated dependencies [83a79e6] +- Updated dependencies [dda665f] +- Updated dependencies [98b3f87] +- Updated dependencies [ccded86] +- Updated dependencies [ec24363] +- Updated dependencies [e01b8be] +- Updated dependencies [238661f] +- Updated dependencies [d96c878] +- Updated dependencies [72d19c4] +- Updated dependencies [b0c624a] +- Updated dependencies [1e018d6] +- Updated dependencies [6d86b43] +- Updated dependencies [bae933b] +- Updated dependencies [a3a74f2] +- Updated dependencies [f98f18c] +- Updated dependencies [74d3d83] +- Updated dependencies [227a16a] +- Updated dependencies [598a34d] +- Updated dependencies [0585797] +- Updated dependencies [811858c] +- Updated dependencies [fac1e7d] +- Updated dependencies [4609c48] +- Updated dependencies [8500ee7] +- Updated dependencies [a6607c7] +- Updated dependencies [c00be39] +- Updated dependencies [1c87956] +- Updated dependencies [5345905] +- Updated dependencies [af566c2] +- Updated dependencies [f909734] +- Updated dependencies [c9b0a23] +- Updated dependencies [f51578e] +- Updated dependencies [6b360ab] +- Updated dependencies [c7174c3] +- Updated dependencies [78f7160] +- Updated dependencies [1d7015a] +- Updated dependencies [40e22f1] +- Updated dependencies [5a68b57] +- Updated dependencies [7de1bad] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [dea68e9] +- Updated dependencies [b113178] +- Updated dependencies [138faaa] +- Updated dependencies [411fe24] +- Updated dependencies [6b51822] +- Updated dependencies [48c732c] +- Updated dependencies [52fb30c] +- Updated dependencies [8807dcb] +- Updated dependencies [8df7bf2] +- Updated dependencies [d33bf5a] +- Updated dependencies [9ed18a5] +- Updated dependencies [c261a7c] +- Updated dependencies [76cb366] +- Updated dependencies [32409a9] +- Updated dependencies [f548bdc] +- Updated dependencies [9f6f306] +- Updated dependencies [c757e07] +- Updated dependencies [a5a5312] +- Updated dependencies [c1b35c3] +- Updated dependencies [9a98a46] +- Updated dependencies [96b66ca] +- Updated dependencies [8c8ff0f] +- Updated dependencies [27e414b] +- Updated dependencies [eb53d63] +- Updated dependencies [dda5e74] +- Updated dependencies [f2a990b] +- Updated dependencies [035a12c] +- Updated dependencies [33d0169] +- Updated dependencies [a23164e] +- Updated dependencies [f3d0a9f] +- Updated dependencies [6aacad9] +- Updated dependencies [8aed508] +- Updated dependencies [a60740a] +- Updated dependencies [43580a3] +- Updated dependencies [cc05e60] +- Updated dependencies [dc10b3b] +- Updated dependencies [dca608a] +- Updated dependencies [baf2678] +- Updated dependencies [13d1e95] +- Updated dependencies [15b7f51] +- Updated dependencies [c297dff] +- Updated dependencies [1cd4762] +- Updated dependencies [6db1dc2] +- Updated dependencies [9ae874a] +- Updated dependencies [3ae62ac] +- Updated dependencies [6c7c6db] +- Updated dependencies [eebb893] +- Updated dependencies [493ad09] +- Updated dependencies [3543b51] +- Updated dependencies [4ab2c82] +- Updated dependencies [04f9861] +- Updated dependencies [c30ce97] +- Updated dependencies [e605773] +- Updated dependencies [0628e08] +- Updated dependencies [713545f] +- Updated dependencies [cbd582f] +- Updated dependencies [031325d] +- Updated dependencies [1705ec9] +- Updated dependencies [a2dc858] +- Updated dependencies [a6756a2] +- Updated dependencies [b3bcfef] +- Updated dependencies [aad35e6] +- Updated dependencies [0b2118f] +- Updated dependencies [71e02ff] +- Updated dependencies [d12ac84] +- Updated dependencies [5e8e243] +- Updated dependencies [4099ef2] +- Updated dependencies [6a73185] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [740720c] +- Updated dependencies [6e643cc] +- Updated dependencies [f3a8a13] +- Updated dependencies [96b7975] +- Updated dependencies [e8b494a] +- Updated dependencies [bbc7e03] +- Updated dependencies [27895d7] +- Updated dependencies [543585d] +- Updated dependencies [7e89bc6] +- Updated dependencies [42e4096] +- Updated dependencies [a10422d] +- Updated dependencies [1a2a8a9] +- Updated dependencies [24366ff] +- Updated dependencies [f2ef7d8] +- Updated dependencies [17dbea4] +- Updated dependencies [ff60149] +- Updated dependencies [ee651ce] +- Updated dependencies [dad9b55] +- Updated dependencies [d076975] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [8a741ab] +- Updated dependencies [60e79ed] +- Updated dependencies [3cf6a44] +- Updated dependencies [5fecc22] +- Updated dependencies [4f19091] +- Updated dependencies [3b58921] +- Updated dependencies [9c283a1] +- Updated dependencies [c45dd80] +- Updated dependencies [52971ff] +- Updated dependencies [06c3e5a] +- Updated dependencies [2da2979] +- Updated dependencies [ad50d61] +- Updated dependencies [50bfbb8] +- Updated dependencies [f26469a] +- Updated dependencies [7501d0c] +- Updated dependencies [4ef1ea9] +- Updated dependencies [41dd132] +- Updated dependencies [d7411fa] +- Updated dependencies [c6075a7] +- Updated dependencies [cd51dbb] +- Updated dependencies [3f568c1] +- Updated dependencies [573a376] +- Updated dependencies [5c2d5cf] +- Updated dependencies [43916f3] +- Updated dependencies [f590f3e] +- Updated dependencies [9fa05c6] +- Updated dependencies [ed0edb1] +- Updated dependencies [a10987a] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [fed637c] +- Updated dependencies [f77d078] +- Updated dependencies [3110de5] +- Updated dependencies [1948c5f] +- Updated dependencies [0e83fe0] +- Updated dependencies [7a7ab47] +- Updated dependencies [70f454a] +- Updated dependencies [9f84e5f] +- Updated dependencies [368deee] +- Updated dependencies [6156fdd] +- Updated dependencies [0d6589d] +- Updated dependencies [c54aa57] +- Updated dependencies [53257a5] +- Updated dependencies [115d387] +- Updated dependencies [e0050ba] +- Updated dependencies [14f4d8f] +- Updated dependencies [183ed23] +- Updated dependencies [4d4ec16] +- Updated dependencies [d763ee7] +- Updated dependencies [8018e00] +- Updated dependencies [844218f] +- Updated dependencies [8cce05b] +- Updated dependencies [0d727b7] +- Updated dependencies [ff0d1f1] +- Updated dependencies [4f7d6f7] +- Updated dependencies [b848b47] +- Updated dependencies [129e637] +- Updated dependencies [47ed85d] +- Updated dependencies [0819cab] +- Updated dependencies [97e0f93] +- Updated dependencies [c8d4b90] +- Updated dependencies [69c3dc4] +- Updated dependencies [76eea0f] +- Updated dependencies [62692b7] +- Updated dependencies [49c6bf3] +- Updated dependencies [00dd362] +- Updated dependencies [bac4864] +- Updated dependencies [8c29b81] +- Updated dependencies [a68b475] +- Updated dependencies [c75453e] +- Updated dependencies [1e96009] +- Updated dependencies [57445a6] +- Updated dependencies [0212714] +- Updated dependencies [15d2766] +- Updated dependencies [1f3e9f6] +- Updated dependencies [305fe60] +- Updated dependencies [e91149e] +- Updated dependencies [06c1f54] +- Updated dependencies [706c8c6] +- Updated dependencies [c0dd417] +- Updated dependencies [517e415] +- Updated dependencies [6ddb97b] +- Updated dependencies [2af9729] +- Updated dependencies [2a6f26a] +- Updated dependencies [6161010] +- Updated dependencies [b89f1b5] +- Updated dependencies [3aa008d] +- Updated dependencies [7d3b8d6] +- Updated dependencies [15f8357] +- Updated dependencies [378c955] +- Updated dependencies [56fa31b] +- Updated dependencies [39e9a82] +- Updated dependencies [9c5fb3e] +- Updated dependencies [abb5449] +- Updated dependencies [d280de9] + - @object-ui/i18n@18.7.0 + - @object-ui/fields@18.7.0 + - @object-ui/types@18.7.0 + - @object-ui/core@18.7.0 + - @object-ui/components@18.7.0 + - @object-ui/react@18.7.0 + - @object-ui/permissions@18.7.0 + ## 18.6.0 ### Minor Changes diff --git a/ui/packages/plugin-timesheet/package.json b/ui/packages/plugin-timesheet/package.json index ae4a9c0f7c8..0b7d3e21eff 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": "18.6.0", + "version": "18.7.0", "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 a5a0b6730c2..ffb566c8988 100644 --- a/ui/packages/plugin-tree/CHANGELOG.md +++ b/ui/packages/plugin-tree/CHANGELOG.md @@ -1,5 +1,433 @@ # @object-ui/plugin-tree +## 18.7.0 + +### Patch Changes + +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [2b57044] +- Updated dependencies [52a2398] +- Updated dependencies [a0b4ecf] +- Updated dependencies [ee5fdc8] +- Updated dependencies [d6d9645] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [c3fb37a] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [c9b3f7a] +- Updated dependencies [8e46424] +- Updated dependencies [8896822] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [dc53d4a] +- Updated dependencies [0739dee] +- Updated dependencies [ad15579] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [eed422e] +- Updated dependencies [2df9691] +- Updated dependencies [bfd6b6b] +- Updated dependencies [55020c3] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [6f2bd4f] +- Updated dependencies [99a0e4f] +- Updated dependencies [a9b36ef] +- Updated dependencies [9f352e8] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [fd471d3] +- Updated dependencies [1b2cd80] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [f2078e3] +- Updated dependencies [7702f09] +- Updated dependencies [05e0eb8] +- Updated dependencies [b863d2b] +- Updated dependencies [c890070] +- Updated dependencies [e75a528] +- Updated dependencies [5bd7257] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [34308dc] +- Updated dependencies [eb1f85d] +- Updated dependencies [58d00db] +- Updated dependencies [3819afe] +- Updated dependencies [a5ddeb6] +- Updated dependencies [61722e9] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [285ad8d] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [6a35635] +- Updated dependencies [9212119] +- Updated dependencies [cda16d4] +- Updated dependencies [9b3227f] +- Updated dependencies [fe75349] +- Updated dependencies [f4de1de] +- Updated dependencies [dab4712] +- Updated dependencies [141a826] +- Updated dependencies [8145424] +- Updated dependencies [b65488a] +- Updated dependencies [53c9575] +- Updated dependencies [83a79e6] +- Updated dependencies [dda665f] +- Updated dependencies [98b3f87] +- Updated dependencies [46ad134] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [ccded86] +- Updated dependencies [f7b172f] +- Updated dependencies [ec24363] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [e01b8be] +- Updated dependencies [238661f] +- Updated dependencies [d96c878] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [72d19c4] +- Updated dependencies [b0c624a] +- Updated dependencies [9b6db73] +- Updated dependencies [1e018d6] +- Updated dependencies [6d86b43] +- Updated dependencies [bae933b] +- Updated dependencies [a3a74f2] +- Updated dependencies [f98f18c] +- Updated dependencies [74d3d83] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [227a16a] +- Updated dependencies [de25d58] +- Updated dependencies [598a34d] +- Updated dependencies [0585797] +- Updated dependencies [811858c] +- Updated dependencies [fac1e7d] +- Updated dependencies [4609c48] +- Updated dependencies [8500ee7] +- Updated dependencies [a6607c7] +- Updated dependencies [c00be39] +- Updated dependencies [1c87956] +- Updated dependencies [5345905] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [f909734] +- Updated dependencies [cedc094] +- Updated dependencies [a03c3d4] +- Updated dependencies [c9b0a23] +- Updated dependencies [a8126d2] +- Updated dependencies [f51578e] +- Updated dependencies [65fddc8] +- Updated dependencies [6b360ab] +- Updated dependencies [d19d875] +- Updated dependencies [c7174c3] +- Updated dependencies [78f7160] +- Updated dependencies [bb1c55d] +- Updated dependencies [1d7015a] +- Updated dependencies [d7c257e] +- Updated dependencies [9972432] +- Updated dependencies [40e22f1] +- Updated dependencies [5a68b57] +- Updated dependencies [fddb9cb] +- Updated dependencies [647eb92] +- Updated dependencies [7de1bad] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [dea68e9] +- Updated dependencies [b113178] +- Updated dependencies [138faaa] +- Updated dependencies [411fe24] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [48c732c] +- Updated dependencies [52fb30c] +- Updated dependencies [8807dcb] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [9ed18a5] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [c261a7c] +- Updated dependencies [76cb366] +- Updated dependencies [32409a9] +- Updated dependencies [cf45e4f] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [9f6f306] +- Updated dependencies [c757e07] +- Updated dependencies [a5a5312] +- Updated dependencies [c1b35c3] +- Updated dependencies [9a98a46] +- Updated dependencies [96b66ca] +- Updated dependencies [8c8ff0f] +- Updated dependencies [27e414b] +- Updated dependencies [eb53d63] +- Updated dependencies [dda5e74] +- Updated dependencies [f2a990b] +- Updated dependencies [035a12c] +- Updated dependencies [33d0169] +- Updated dependencies [a23164e] +- Updated dependencies [f3d0a9f] +- Updated dependencies [6aacad9] +- Updated dependencies [0d0ed81] +- Updated dependencies [8aed508] +- Updated dependencies [a60740a] +- Updated dependencies [8c5a81e] +- Updated dependencies [43580a3] +- Updated dependencies [cc05e60] +- Updated dependencies [dc10b3b] +- Updated dependencies [dca608a] +- Updated dependencies [baf2678] +- Updated dependencies [13d1e95] +- Updated dependencies [15b7f51] +- Updated dependencies [c297dff] +- Updated dependencies [1cd4762] +- Updated dependencies [3f7fdd0] +- Updated dependencies [6db1dc2] +- Updated dependencies [9ae874a] +- Updated dependencies [3ae62ac] +- Updated dependencies [6c7c6db] +- Updated dependencies [eebb893] +- Updated dependencies [493ad09] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [3543b51] +- Updated dependencies [4ab2c82] +- Updated dependencies [04f9861] +- Updated dependencies [c30ce97] +- Updated dependencies [28749e3] +- Updated dependencies [e605773] +- Updated dependencies [0628e08] +- Updated dependencies [713545f] +- Updated dependencies [cbd582f] +- Updated dependencies [031325d] +- Updated dependencies [1705ec9] +- Updated dependencies [b7fe94a] +- Updated dependencies [a2dc858] +- Updated dependencies [a6756a2] +- Updated dependencies [b3bcfef] +- Updated dependencies [aad35e6] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [71e02ff] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [28ba01f] +- Updated dependencies [5e8e243] +- Updated dependencies [4099ef2] +- Updated dependencies [8466fca] +- Updated dependencies [e3054b4] +- Updated dependencies [6a73185] +- Updated dependencies [0d2bb8d] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [740720c] +- Updated dependencies [6e643cc] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [96b7975] +- Updated dependencies [e8b494a] +- Updated dependencies [bbc7e03] +- Updated dependencies [27895d7] +- Updated dependencies [543585d] +- Updated dependencies [7e89bc6] +- Updated dependencies [70194ff] +- Updated dependencies [42e4096] +- Updated dependencies [a10422d] +- Updated dependencies [dcc9b07] +- Updated dependencies [1a2a8a9] +- Updated dependencies [24366ff] +- Updated dependencies [f2ef7d8] +- Updated dependencies [7a5ae65] +- Updated dependencies [17dbea4] +- Updated dependencies [ff60149] +- Updated dependencies [ee651ce] +- Updated dependencies [dad9b55] +- Updated dependencies [d076975] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [8a741ab] +- Updated dependencies [60e79ed] +- Updated dependencies [3cf6a44] +- Updated dependencies [5fecc22] +- Updated dependencies [595844b] +- Updated dependencies [53733c1] +- Updated dependencies [4f19091] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [9c283a1] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [52971ff] +- Updated dependencies [06c3e5a] +- Updated dependencies [2da2979] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [e4e3bcf] +- Updated dependencies [ad50d61] +- Updated dependencies [87c7bba] +- Updated dependencies [50bfbb8] +- Updated dependencies [f26469a] +- Updated dependencies [7501d0c] +- Updated dependencies [4ef1ea9] +- Updated dependencies [cb909d7] +- Updated dependencies [41dd132] +- Updated dependencies [45ef94e] +- Updated dependencies [d7411fa] +- Updated dependencies [c6075a7] +- Updated dependencies [cd51dbb] +- Updated dependencies [3f568c1] +- Updated dependencies [573a376] +- Updated dependencies [5c2d5cf] +- Updated dependencies [cbc06ff] +- Updated dependencies [43916f3] +- Updated dependencies [f590f3e] +- Updated dependencies [9fa05c6] +- Updated dependencies [ed0edb1] +- Updated dependencies [a10987a] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [f77d078] +- Updated dependencies [3110de5] +- Updated dependencies [1948c5f] +- Updated dependencies [0e83fe0] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [9f84e5f] +- Updated dependencies [368deee] +- Updated dependencies [6156fdd] +- Updated dependencies [8644ce7] +- Updated dependencies [0d6589d] +- Updated dependencies [c54aa57] +- Updated dependencies [53257a5] +- Updated dependencies [8aecf6d] +- Updated dependencies [03cb550] +- Updated dependencies [115d387] +- Updated dependencies [e0050ba] +- Updated dependencies [2f8e8ba] +- Updated dependencies [14f4d8f] +- Updated dependencies [fa23941] +- Updated dependencies [8ddadc1] +- Updated dependencies [183ed23] +- Updated dependencies [a03bc4e] +- Updated dependencies [4d4ec16] +- Updated dependencies [d763ee7] +- Updated dependencies [8018e00] +- Updated dependencies [844218f] +- Updated dependencies [8cce05b] +- Updated dependencies [0d727b7] +- Updated dependencies [ff0d1f1] +- Updated dependencies [4f7d6f7] +- Updated dependencies [b848b47] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [47ed85d] +- Updated dependencies [0819cab] +- Updated dependencies [97e0f93] +- Updated dependencies [c8d4b90] +- Updated dependencies [00aa574] +- Updated dependencies [69c3dc4] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [b3d953e] +- Updated dependencies [62692b7] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [49c6bf3] +- Updated dependencies [4f9a3f8] +- Updated dependencies [00dd362] +- Updated dependencies [1cda7ea] +- Updated dependencies [bac4864] +- Updated dependencies [8c29b81] +- Updated dependencies [a68b475] +- Updated dependencies [c75453e] +- Updated dependencies [1e96009] +- Updated dependencies [57445a6] +- Updated dependencies [01967c3] +- Updated dependencies [0212714] +- Updated dependencies [15d2766] +- Updated dependencies [1f3e9f6] +- Updated dependencies [8b1841f] +- Updated dependencies [305fe60] +- Updated dependencies [e91149e] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [706c8c6] +- Updated dependencies [c063734] +- Updated dependencies [c0dd417] +- Updated dependencies [0439a04] +- Updated dependencies [517e415] +- Updated dependencies [f92d271] +- Updated dependencies [6ddb97b] +- Updated dependencies [2af9729] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [6161010] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [b89f1b5] +- Updated dependencies [372ce7c] +- Updated dependencies [3aa008d] +- Updated dependencies [7d3b8d6] +- Updated dependencies [15f8357] +- Updated dependencies [378c955] +- Updated dependencies [56fa31b] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [39e9a82] +- Updated dependencies [9c5fb3e] +- Updated dependencies [abb5449] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @object-ui/plugin-detail@18.7.0 + - @object-ui/i18n@18.7.0 + - @object-ui/fields@18.7.0 + - @object-ui/types@18.7.0 + - @object-ui/core@18.7.0 + - @object-ui/components@18.7.0 + - @object-ui/react@18.7.0 + - @object-ui/permissions@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/ui/packages/plugin-tree/package.json b/ui/packages/plugin-tree/package.json index efa89b5c1a4..83541426061 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": "18.6.0", + "version": "18.7.0", "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 5a078d39176..4465ff8632b 100644 --- a/ui/packages/plugin-view/CHANGELOG.md +++ b/ui/packages/plugin-view/CHANGELOG.md @@ -1,5 +1,462 @@ # @object-ui/plugin-view +## 18.7.0 + +### Minor Changes + +- f3a8a13: feat(spec,ui)!: every grid that renders editable selects a cell first and saves each cell on its own, and `object-grid`'s `singleClickEdit` is retired + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + + <!-- adr-0087: registered object-grid-single-click-edit-removed, object-grid-single-click-edit-retired --> + + **BREAKING** accept-set narrowing on the `object-grid` page block (`@objectstack/spec`, `ComponentPropsMap['object-grid'].singleClickEdit`) and on `@object-ui/types` (`ObjectGridSchema.singleClickEdit`, and the `object-view` `table` slot that relayed it), with the grids following it in the same release. + + - **Now.** A grid that renders editable (`editable` set and the viewer allowed to edit the object) uses the list page's select-first cell model wherever it is drawn: the grid an `object-view` draws itself (the Studio's view preview, a page that places an `object-view`) and an authored `object-grid` node. A click selects a cell; double-click, Enter, F2 or typing opens its editor; Esc cancels; and each committed cell is saved at once as one update for its record. The pending-changes bar, its "Save All" and "Cancel All" buttons and the per-row save column are no longer drawn there. On a touch screen a tap on these grids opens the record, and a touch never edits a cell in place. + - **Unchanged.** A grid that renders read-only keeps its click-to-open row. Neither `editable` nor a view's `inlineEdit` can open editing that the object or the reader's `update` grant refuses, and a refused cell now says why when it is asked to edit, as on the list page. A React host that draws `ObjectGrid` itself can still pass `cellSelection={false}` to keep the staged model with its Save All bar. + - **`keyboardNavigation` narrowed to what is enforced.** On a grid that renders editable the arrow-key navigation is always on, because the selection moves with those keys; `false` no longer turns it off there. On a read-only grid `true` still turns it on. + + | FROM | TO | + |:--|:--| + | `object-grid` `properties.singleClickEdit: true` (or absent: the old default) | delete the key; a click selects the cell and double-click, Enter, F2 or typing opens its editor | + | `object-grid` `properties.singleClickEdit: false` | delete the key; double-click still opens the editor | + | `object-view` `table.singleClickEdit` | delete the key | + | a React host passing `ObjectGrid` `onBatchSave` alone (no `onRowSave`, no `cellSelection`) on an editable grid: "Save All" called it | each cell now saves through `onRowSave`, or through the grid's own `dataSource.update` when there is none, and `onBatchSave` is never called. Pass `onRowSave` to own the write per cell, or pass `cellSelection={false}` to keep the staged model, where `onBatchSave` is still called. The prop is marked `@deprecated` | + + The one-line fix: delete `singleClickEdit` wherever it is written; `os migrate meta --from 17 --write` deletes it from page sources. Writing it after upgrade fails `tsc` (the input type is `never`) and fails the parse with that prescription. + + The retirement kit: + + - **`@objectstack/spec`**: `singleClickEdit` is a `retiredKey()` tombstone on `ObjectGridPropsSchema`, registered in `RETIRED_KEYS_BY_MAJOR[18]` as `ui/ObjectGridProps:singleClickEdit`. The D2 conversion `object-grid-single-click-edit-removed` deletes it from `object-grid` components (top-level regions, nested `children` and named slots), whatever its value, and the D3 entry `object-grid-single-click-edit-retired` names what the upgrade still owes: help text and tests that describe the old gestures. `keyboardNavigation`'s describe says what is enforced. The liveness ledger records the retirement and the narrowed read. + - **`@object-ui/types`**: `ObjectGridSchema.singleClickEdit` is `?: never` with a `retirementTombstone()` twin, and the `object-view` `table` slot inherits it. `DataTableSchema.singleClickEdit`, a flag a host sets in code, is unchanged. + - **`@object-ui/plugin-grid`**: `ObjectGrid` turns the select-first model on wherever the grid renders editable (a host's `cellSelection` still wins), and no longer reads `singleClickEdit`. The `object-grid` inputs no longer list it. `ObjectGridComponentProps.onBatchSave` is `@deprecated`: it is called only under the staged model. + - **`@object-ui/plugin-view`**: `table.singleClickEdit` is no longer relayed to the grid. +- 73f2cf4: feat(kanban): the board's own 视图设置, a lane header 「+」 and 「⋯」, and a lane statistic and card toggles on `KanbanConfig` + + Clause-②: yes (widening) + Metadata-protocol: added + + `KanbanConfigSchema` gains three optional keys, none with a default; a view that declares none of them renders as before: + + - `summary` — a lane statistic drawn at the foot of each lane (`KanbanLaneSummary`): `{ type: 'count' }`, or `{ type: 'sum', field }` of a number field over the cards the lane has loaded, not every record of the lane; `{ type: 'none' }` shows nothing. It takes precedence over `summarizeField`. A sum over a lane holding more cards than were loaded says so (「仅已加载的卡片」). The whole-lane sum, and average, minimum and maximum, wait for a server lane read (#36520). + - `showFieldLabels` — absent means `true`: a card names each field beside its value; `false` draws the values alone. + - `hideEmptyFields` — absent means `true`: a card leaves out an empty field; `false` keeps its line. + + On a board, the view settings show the lane field, which lanes show and in what order, the card fields (order, hide, add), the two card toggles and the lane-foot statistic, in place of the table's columns, group, row height and row colour. Each change applies at once and is held as the list's draft until Save. Each lane header gets 「+」 (a new record with the lane prefilled; an empty lane also gets a 「+ New」 row) and 「⋯」 (collapse, kept in this browser; hide). Hiding a lane moves its cards into 「未分类」, as `kanban.lanes` (#28211) always has, and the menu and the lanes list say so. The lane field picker offers select and radio fields; collapse is kept per reader, object and view. The Console now relays the view's `kanban.lanes`, which it used to drop, and both producers of the board node (`ListView` and `ObjectView#generateViewSchema`) relay the three new keys. `ObjectKanban` takes the host's `laneMenu` request (`KanbanLaneMenuRequest`). `@objectstack/lint` walks `kanban.summary.field` and refuses a `sum` over a field that is no number, a yes / no field included (`list-view-summary-field-type-refused`). Saving a board whose view declares no `kanban` block stores the lane field the board draws with the changed keys. + +### Patch Changes + +- 27e414b: fix(ui): a view a read-only package ships hides only Delete in Manage views and opens its view panel read-only + + Clause-②: yes (widening) + Metadata-protocol: none + + This applies to a list view that ships inside a read-only package (a code or installed package). The console no longer offers that view the two writes the server refuses: + + - Manage views hides Delete on its row. + - The row's configuration entry reads "View config". It opens the admin's view panel read-only: the configuration is shown read-only, no edit reaches the list, and there is nothing to save. The panel has no Save, no draft bar to publish or discard, and only Close. + + Rename, pin and set as default stay offered. They land in that package's customization (the console creates it on first use), so no lock icon is drawn on the row. The list's options menu offers Rename on such a view again. A shared view the console saved into the customization package, and the reader's own view, are unchanged. The toolbar's personal list changes keep saving to the reader's preferences. + + `@object-ui/plugin-view`: `ViewTabItem` gains an optional `definitionReadonly` field. When it is `true`, `ManageViewsDialog` hides Delete and labels the configuration entry "View config" (`view.showViewConfig`, a new key in every locale of `@object-ui/i18n`). Rename, pin, set as default and the configuration entry stay. `readonly` still wins when both are set. Without the field a row behaves as before. `ViewTabBar` does not read it. + + The read-only verdict is the one the footer calculation menu already uses. The console takes the package the view row was served under and reads the server's `writable` verdict for it from the package list it holds for the session. While that list is unread, or when the read fails or does not name the package, everything stays offered as before and the server's refusal still applies. The view panel reads the same answer that drew the Manage views row, so a row's "View config" never opens an editable panel. If the answer arrives after the admin has started editing, the panel turns read-only and discards the edit: the list's preview goes back to the stored view. +- cc05e60: feat(console): Manage views restores the factory version of a customized package view + + Clause-②: yes (widening) + Metadata-protocol: none + + A pin, a rename or a set-default on a view a read-only package ships writes the whole view into the package's customization (`<package>.custom`), and every user of the view then sees that copy. Manage views now marks such a view "customized" and offers "Restore factory version" in its `…` menu. After one confirm, which says every user of the view sees the factory version again, the override is removed from the customization and the list shows the package's own view. A view without a customization has no mark and offers no restore; a refused restore is said with the server's own message. + + - `@object-ui/data-objectstack`: `ObjectStackAdapter.restoreFactoryView(objectName, viewName)` deletes the view's draft, then its row, at the customization the ensure door names for the shipping package (`DELETE /meta/view/NAME?package=PAIR`, the door Studio's "Restore package original" uses). It refuses, sending nothing, a view that is no override of the package it is served under, and throws when the customization held no row of the view. The customization package itself stays. `listViews()` now carries a record's `overrides` declaration onto the flattened row. + - `@object-ui/plugin-view`: `ViewTabItem.customized` and `ManageViewsDialogProps.onRestoreFactory`. + - `@object-ui/i18n`: the mark, the menu entry, the confirm, its result and the failure title, in every locale pack. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [a0b4ecf] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [c3fb37a] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [c9b3f7a] +- Updated dependencies [8e46424] +- Updated dependencies [8896822] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [dc53d4a] +- Updated dependencies [0739dee] +- Updated dependencies [ad15579] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [eed422e] +- Updated dependencies [2df9691] +- Updated dependencies [bfd6b6b] +- Updated dependencies [55020c3] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [6f2bd4f] +- Updated dependencies [99a0e4f] +- Updated dependencies [9f352e8] +- Updated dependencies [3446f23] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [fd471d3] +- Updated dependencies [1b2cd80] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [1aac465] +- Updated dependencies [7702f09] +- Updated dependencies [05e0eb8] +- Updated dependencies [b863d2b] +- Updated dependencies [c890070] +- Updated dependencies [e75a528] +- Updated dependencies [5bd7257] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [58d00db] +- Updated dependencies [3819afe] +- Updated dependencies [61722e9] +- Updated dependencies [0ce2598] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [285ad8d] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [6a35635] +- Updated dependencies [9212119] +- Updated dependencies [cda16d4] +- Updated dependencies [9b3227f] +- Updated dependencies [fe75349] +- Updated dependencies [f4de1de] +- Updated dependencies [dab4712] +- Updated dependencies [141a826] +- Updated dependencies [8145424] +- Updated dependencies [53c9575] +- Updated dependencies [83a79e6] +- Updated dependencies [dda665f] +- Updated dependencies [98b3f87] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [ccded86] +- Updated dependencies [f7b172f] +- Updated dependencies [ec24363] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [e01b8be] +- Updated dependencies [238661f] +- Updated dependencies [d96c878] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [72d19c4] +- Updated dependencies [b0c624a] +- Updated dependencies [9b6db73] +- Updated dependencies [1e018d6] +- Updated dependencies [6d86b43] +- Updated dependencies [bae933b] +- Updated dependencies [a3a74f2] +- Updated dependencies [f98f18c] +- Updated dependencies [74d3d83] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [227a16a] +- Updated dependencies [de25d58] +- Updated dependencies [598a34d] +- Updated dependencies [0585797] +- Updated dependencies [811858c] +- Updated dependencies [fac1e7d] +- Updated dependencies [4609c48] +- Updated dependencies [8500ee7] +- Updated dependencies [a6607c7] +- Updated dependencies [c00be39] +- Updated dependencies [1c87956] +- Updated dependencies [d8b15b5] +- Updated dependencies [5345905] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [f909734] +- Updated dependencies [cedc094] +- Updated dependencies [c9b0a23] +- Updated dependencies [f51578e] +- Updated dependencies [65fddc8] +- Updated dependencies [6b360ab] +- Updated dependencies [c7174c3] +- Updated dependencies [78f7160] +- Updated dependencies [bb1c55d] +- Updated dependencies [1d7015a] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [7de1bad] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [dea68e9] +- Updated dependencies [b113178] +- Updated dependencies [138faaa] +- Updated dependencies [411fe24] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [48c732c] +- Updated dependencies [52fb30c] +- Updated dependencies [8807dcb] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [9ed18a5] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [c261a7c] +- Updated dependencies [76cb366] +- Updated dependencies [32409a9] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [9f6f306] +- Updated dependencies [c757e07] +- Updated dependencies [a5a5312] +- Updated dependencies [c1b35c3] +- Updated dependencies [9a98a46] +- Updated dependencies [8c8ff0f] +- Updated dependencies [27e414b] +- Updated dependencies [eb53d63] +- Updated dependencies [dda5e74] +- Updated dependencies [f2a990b] +- Updated dependencies [035a12c] +- Updated dependencies [33d0169] +- Updated dependencies [a23164e] +- Updated dependencies [f3d0a9f] +- Updated dependencies [8aed508] +- Updated dependencies [a60740a] +- Updated dependencies [1647fb3] +- Updated dependencies [8c5a81e] +- Updated dependencies [43580a3] +- Updated dependencies [cc05e60] +- Updated dependencies [dc10b3b] +- Updated dependencies [dca608a] +- Updated dependencies [baf2678] +- Updated dependencies [13d1e95] +- Updated dependencies [c297dff] +- Updated dependencies [1cd4762] +- Updated dependencies [6db1dc2] +- Updated dependencies [729b642] +- Updated dependencies [3ae62ac] +- Updated dependencies [6c7c6db] +- Updated dependencies [eebb893] +- Updated dependencies [493ad09] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [3543b51] +- Updated dependencies [4ab2c82] +- Updated dependencies [04f9861] +- Updated dependencies [c30ce97] +- Updated dependencies [b57f778] +- Updated dependencies [e605773] +- Updated dependencies [0628e08] +- Updated dependencies [370e14d] +- Updated dependencies [713545f] +- Updated dependencies [cbd582f] +- Updated dependencies [031325d] +- Updated dependencies [1705ec9] +- Updated dependencies [b7fe94a] +- Updated dependencies [a2dc858] +- Updated dependencies [a6756a2] +- Updated dependencies [b3bcfef] +- Updated dependencies [aad35e6] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [71e02ff] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [5e8e243] +- Updated dependencies [4099ef2] +- Updated dependencies [6a73185] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [740720c] +- Updated dependencies [6e643cc] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [a09816d] +- Updated dependencies [96b7975] +- Updated dependencies [e8b494a] +- Updated dependencies [bbc7e03] +- Updated dependencies [27895d7] +- Updated dependencies [543585d] +- Updated dependencies [7e89bc6] +- Updated dependencies [70194ff] +- Updated dependencies [42e4096] +- Updated dependencies [a10422d] +- Updated dependencies [85a9954] +- Updated dependencies [1a2a8a9] +- Updated dependencies [f2ef7d8] +- Updated dependencies [7a5ae65] +- Updated dependencies [17dbea4] +- Updated dependencies [ff60149] +- Updated dependencies [ee651ce] +- Updated dependencies [dad9b55] +- Updated dependencies [d076975] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [8a741ab] +- Updated dependencies [60e79ed] +- Updated dependencies [3cf6a44] +- Updated dependencies [5fecc22] +- Updated dependencies [595844b] +- Updated dependencies [2c5b90d] +- Updated dependencies [4f19091] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [9c283a1] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [ad50d61] +- Updated dependencies [f26469a] +- Updated dependencies [7501d0c] +- Updated dependencies [4ef1ea9] +- Updated dependencies [9849846] +- Updated dependencies [41dd132] +- Updated dependencies [45ef94e] +- Updated dependencies [d7411fa] +- Updated dependencies [c6075a7] +- Updated dependencies [cd51dbb] +- Updated dependencies [3f568c1] +- Updated dependencies [573a376] +- Updated dependencies [5c2d5cf] +- Updated dependencies [cbc06ff] +- Updated dependencies [43916f3] +- Updated dependencies [f590f3e] +- Updated dependencies [9fa05c6] +- Updated dependencies [ed0edb1] +- Updated dependencies [a10987a] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [f77d078] +- Updated dependencies [1948c5f] +- Updated dependencies [0e83fe0] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [368deee] +- Updated dependencies [8644ce7] +- Updated dependencies [0d6589d] +- Updated dependencies [c54aa57] +- Updated dependencies [53257a5] +- Updated dependencies [8aecf6d] +- Updated dependencies [e0050ba] +- Updated dependencies [14f4d8f] +- Updated dependencies [8ddadc1] +- Updated dependencies [183ed23] +- Updated dependencies [a03bc4e] +- Updated dependencies [4d4ec16] +- Updated dependencies [d763ee7] +- Updated dependencies [8018e00] +- Updated dependencies [844218f] +- Updated dependencies [8cce05b] +- Updated dependencies [0d727b7] +- Updated dependencies [ff0d1f1] +- Updated dependencies [4f7d6f7] +- Updated dependencies [b848b47] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [0819cab] +- Updated dependencies [c8d4b90] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [49c6bf3] +- Updated dependencies [4f9a3f8] +- Updated dependencies [00dd362] +- Updated dependencies [1cda7ea] +- Updated dependencies [bac4864] +- Updated dependencies [c48f06c] +- Updated dependencies [8c29b81] +- Updated dependencies [a68b475] +- Updated dependencies [c75453e] +- Updated dependencies [1e96009] +- Updated dependencies [6cfd04d] +- Updated dependencies [57445a6] +- Updated dependencies [01967c3] +- Updated dependencies [0212714] +- Updated dependencies [1f3e9f6] +- Updated dependencies [8b1841f] +- Updated dependencies [305fe60] +- Updated dependencies [e91149e] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [ebb4713] +- Updated dependencies [c063734] +- Updated dependencies [c0dd417] +- Updated dependencies [0439a04] +- Updated dependencies [517e415] +- Updated dependencies [f92d271] +- Updated dependencies [6ddb97b] +- Updated dependencies [2af9729] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [6161010] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [3aa008d] +- Updated dependencies [7d3b8d6] +- Updated dependencies [15f8357] +- Updated dependencies [378c955] +- Updated dependencies [56fa31b] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [39e9a82] +- Updated dependencies [9c5fb3e] +- Updated dependencies [abb5449] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @object-ui/i18n@18.7.0 + - @object-ui/plugin-grid@18.7.0 + - @object-ui/types@18.7.0 + - @object-ui/core@18.7.0 + - @object-ui/components@18.7.0 + - @object-ui/plugin-form@18.7.0 + - @object-ui/react@18.7.0 + - @object-ui/permissions@18.7.0 + ## 18.6.0 ### Minor Changes diff --git a/ui/packages/plugin-view/package.json b/ui/packages/plugin-view/package.json index 8d499d1d46e..7d6ef008d27 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": "18.6.0", + "version": "18.7.0", "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 8655f3169e0..b5e60423b31 100644 --- a/ui/packages/react-runtime/CHANGELOG.md +++ b/ui/packages/react-runtime/CHANGELOG.md @@ -1,5 +1,9 @@ # @object-ui/react-runtime +## 18.7.0 + +No changes in this release. + ## 18.6.0 No changes in this release. diff --git a/ui/packages/react-runtime/package.json b/ui/packages/react-runtime/package.json index 2fdc04c8fe3..dc120927878 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": "18.6.0", + "version": "18.7.0", "type": "module", "sideEffects": false, "license": "MIT", diff --git a/ui/packages/react/CHANGELOG.md b/ui/packages/react/CHANGELOG.md index 6e372dd9eac..a72d7277fac 100644 --- a/ui/packages/react/CHANGELOG.md +++ b/ui/packages/react/CHANGELOG.md @@ -1,5 +1,491 @@ # @object-ui/react +## 18.7.0 + +### Patch Changes + +- 5bd7257: fix(react): a print page is never the record page an object falls back to + + Clause-②: no + Metadata-protocol: none + + A print page is no longer the record page an object falls back to. When an object has no `isDefault` record page, the console's record route used to open the first record page of the object in declaration order, so an app that authored only a print page for an object (a quote, a contract) opened every record as that printed document, with no path, tabs, related lists or edit flow. The fallback now skips pages that declare `print`: the first record page that does not print opens, and with none the record route draws the synthesized default record page. A print page still opens on the named record page route, and where its author declares it the object's default record page (`isDefault`) or scopes it to an app (`apps`). +- 72d19c4: feat(record-page): the record's header is one row with one button group + + Clause-②: no + Metadata-protocol: none + + A record page used to stack its top bar, the record's header row under it and, while an approval was pending, a band of decision buttons above the body. They are now one 44px row: + + - **Full page.** The object icon and name, `/`, the record's name, its stage tag and an approval tag on the left; the record counter and prev/next, a divider and the record's ONE button group on the right. + - **Drawer.** The record's icon, name, stage tag and approval tag, then the button group, 整页打开 and 关闭. The drawer's bar draws no object name, counter or prev/next once the record's header holds it. + - **One button group, by the approval's state.** Normal: Edit, the record's one primary action and ⋯. Pending on the viewer: 通过 (the only filled button), 驳回, and ⋮ with the other approval levers, a separator and the record's actions. The viewer's own submission pending: 撤回, 催办 and the same ⋮. An administrator who holds only the override keeps the marked override menu ahead of the group. On a phone the bottom bar draws the same group, with 通过 the only filled button. + - **Approval tag.** 「待你审批」, 「审批中」, 「已退回修改」 or 「已驳回」 beside the record's name; it opens the approval's detail, today the approvals panel on the page. + - **Locks.** A record an approval locks draws no Edit and no 「审批中已锁定」 badge in the body; the approval tag says why (its tooltip names the lock). A lock from the record's state keeps Edit drawn and disabled, with its lock tag beside the record's name. + - **Reject asks for a reason.** The record page's reject dialog requires its comment. The declaration and the approvals list are unchanged. + + A record page whose layout has no `page:header` keeps the decision band above its body, since no header draws the group there. The request page's `ApprovalDecisionPanel` band is unchanged. + + `@object-ui/components` adds `RecordHeaderBarContext` (the slots a host's bar offers the record's header) and `RecordHeaderStateContext` (the tags and the button group a host's record state hands it); `RecordTopBar` and `NavigationOverlay` take an `actionSlotRef`, and `NavigationOverlay` a `stepperHidden`. `PageHeaderActions` takes a `defaultMaxVisible`. `@object-ui/react`'s `InlineEditProvider` takes `approvalTagDrawnByHost`, and `DetailView`'s approval band then draws no badge for an approval lock (the tally stays). Nothing an app authors changes. +- bae933b: fix(record-page): the related tab offers only 「↗」 and 「+ 添加」, and a pick of several is added all or none + + Clause-②: no + Metadata-protocol: none + + The record page's related tab drew a filter box, condition chips, an options menu, an export and its own New, and repeated the row count under the table. It now carries two entries at its right end. 「↗」 opens the child object's list under this record, on an empty list too. 「+ 添加」 is the one add entry, chosen by the relationship when the page authored no `add`: a `lookup` child opens a picker of that object whose first row is New; a `master_detail` child whose rows name a catalog record (one other required lookup) opens a picker of that catalog; one with no catalog opens the new-record form directly. The count shows once, in the tab title. + + A pick of several records is one request to the transactional batch route: every row is added or none is, and the list says why when none was. Before, each pick was its own write, and a failure part way left the earlier rows added. A data source without the batch route offers no picker. + + A child with a status and a deadline that the status settles is grouped by status on the tab: open groups first in the order the status lists them, completed groups last, each collapsible. + + The reader's header sort and column widths on the tab are remembered per list in the record page's existing per-user preferences. + + The list page 「↗」 opens names the record it came from: its condition tag reads the record's name, a breadcrumb leads back to it, 「Reset」 puts that condition back after the reader changed the filters, and New opens the record form linked to it. + + A body table's total under a currency column whose currency does not resolve is drawn as its cells are, an amount with no symbol, instead of being left out (objectstack#35710). Rows that name their own currency are still totalled per currency. +- fac1e7d: feat(list): a list cell saves the moment it is committed, and Space types into the selected cell + + Clause-②: yes (widening) — new members on the `@object-ui/react` package entry: `createOwnWrites`, `OwnWritesContext`, `useOwnWrites` and the `OwnWrites` type, and an optional third parameter on `useDataInvalidation`; three new `table.*` keys in every `@object-ui/i18n` locale (`cellSaving`, `cellSaved`, `openRecordToFinish`); nothing removed or renamed + Metadata-protocol: none + + In a grid that mounts `GridCellSelection` (the select-first grid every `ListView` draws), a committed cell edit is now saved at once, as one update for that record: + + - **No save bar, no row Save/Cancel column, no amber row.** The cell shows a small spinner while the save runs and a check mark once it landed. + - **Only that row is redrawn**, from the record the write answered with, so a value a server hook rewrote shows as stored. The list is not read again, though the write is still announced to every other reader (the record's detail pane, related lists, counts): the grid holds the record in the list's `OwnWritesContext` registry for the length of its write, and `ListView` lets that one write go by. So a row whose new value would sort it elsewhere stays where it is until the next load (refresh, sort, filter or page change). The counts on group headers, read with the rows, follow on the next load too; the footer's whole-set summary is its own reader and still refreshes on the write. + - **A refused save keeps the typed value** and shows the server's reason on the cell. Esc puts the stored value back. Later edits on the same row are sent together with the refused one as one update. When the reason names a field the list does not show (a rule that needs another field), the notice offers to open the record. + - **The 409 conflict dialog is unchanged.** The next save on a row sends the version the previous save answered. + - **Space** on a selected cell now types a space and opens its editor, as any other key does. A two-state (boolean) cell still flips. The record opens from the title link or a touch tap; the "Space opens the record" key added in #35747 is gone, so a master-detail page opens its pane only that way too. + + `@object-ui/react` adds that registry: `createOwnWrites()`, `OwnWritesContext` / `useOwnWrites()`, and `useDataInvalidation(objectName, recordId, ownWrites)`, which skips a change naming a held record. + + Grids without `GridCellSelection` keep the staged save bar and its batch save unchanged. + + New `table.*` strings in every locale: `cellSaving`, `cellSaved`, `openRecordToFinish`. +- 4609c48: feat(list): undo a list cell save from its toast or with Ctrl+Z + + Clause-②: yes (widening) — `toastRecordSave` in `@object-ui/react` takes an optional fourth argument, an `action` button the toast carries (new exported type `RecordSaveToastAction`), and `RecordSaveSink`'s options accept that `action`; nothing removed or renamed + Metadata-protocol: none + + In a grid that mounts `GridCellSelection` (the select-first grid every `ListView` draws), a landed cell save can be taken back: + + - **The save toast has an Undo button**, and **Ctrl+Z** (Cmd+Z on macOS) on a cell of the grid undoes the newest save, then the one before it. Each save is taken back once. + - **An undo is a new update, not a local rollback.** It writes the value each saved field held before the save (a relation as its stored id), with the version this grid's own newest write of the record answered as `If-Match`, so a change someone else made since answers 409 and opens the same conflict dialog as a save instead of being overwritten. A refused or cancelled undo is used up; the next Ctrl+Z undoes the save before it. The server's history records the save and its undo as two changes. Only the row is redrawn, as for a save. + - Inside an open editor Ctrl+Z stays the editor's own text undo. On a cell, the grid's key is handled by the grid alone: the console's shared Ctrl+Z undo stack is not popped by it. + - A save of a field the row did not read offers no Undo, rather than a partial one. + + A grid without `GridCellSelection` (a related list in a record drawer, for one) now re-reads on every write of its object again, including a write the list around it draws itself: before, it skipped the writes that list held while they ran. +- a5a5312: feat(console): a list's column widths, row height and tab order are kept in this browser only + + Clause-②: no + Metadata-protocol: none + + On a Console object list, the column widths a reader drags, the row height they pick and the order they give the view tabs are now kept in their own browser only, per signed-in user and object (localStorage `list-layout:<user id>:<object>`). Nothing is sent to the server: the Console no longer reads or writes the per-user list preference row `sys_user_preference` `ui.list.<object>`, and its boot read of the reader's preferences no longer asks for that key family. A list opens at once, without waiting for that read. + + - Another browser or device opens the list on its view's own widths, row height and tab order until the reader changes them there. + - Signing out clears these entries with the rest of this browser's Console state, as before. + - With nobody signed in, nothing is kept. + - The record page's "show empty fields" choice (`ui.record.<object>`) is unchanged and still follows the reader. + + Upgrade note: what an earlier Console kept for a reader's lists is not carried over. The `ui.list.<object>` rows are no longer read, so every reader's lists open on their views' own widths, row height and tab order until they change them again. This browser's old copies (`list-state:*`, `list-filters:*` and `viewOrder:*` in localStorage) are removed on the first list the Console opens. The server rows stay where they are, unread; leaving them does no harm. + + `@object-ui/data-objectstack`, `@object-ui/react` and `@objectstack/platform-objects` change only comments and a README example that named the retired key. No metadata key, value or default changes. +- 33d0169: feat(ui): the object's colour tile replaces its line icon wherever else the object is named + + Clause-②: yes (widening) — `ConsolePageHeaderProps` gains the optional `iconTile`, and `RecordSearchHit` and `RecordHoverCardObjectDef` the optional `color`; nothing removed or renamed + Metadata-protocol: none + + The tile the navigation already draws for an object (a white glyph on the object's palette colour, gray when it has none) now also names the object in: + + - **List and data pages:** the page bar and the view bar's object name in front of the view switcher; the URL data page's header. + - **The record page and the record drawer:** the record row in front of the record's name. + - **The record page's related lists:** each section's title, with the list's own icon else the related object's, on that object's colour. + - **Search:** the command palette's recent records, record hits and object entries; the search results page (group headings and hit cards); the global search block. + - **Home:** a record row in "Recently accessed". + - **References:** a pointer cell in a grid (`referenceVia`) and the record hover card. + - **Studio:** the data pillar's object list and header, and the interfaces pillar's object entries and header. + + `ConsolePageHeader` takes `iconTile`, an icon that draws its own square, drawn as given in every posture in place of `icon`. `RecordSearchHit.color` carries the object's palette name beside `icon`, and `RecordHoverCardObjectDef` names `color` beside `icon`. `ObjectIconTile`'s glyph keeps its size inside a host row that sizes every nested `svg`. +- 4ab2c82: feat(record-page): the desktop comment panel resolves and reopens threads, filters them, counts the unresolved ones, and offers Edit and Delete on other people's comments only where the server admits them + + Clause-②: yes (widening) — `@object-ui/react`'s `DiscussionContextValue` adds three optional members: `onResolveComment(itemId, resolved)`, `moderatesComments` and `updatesOthersComments`. `@object-ui/types`' `FeedItem` adds five optional members: `resolved`, `resolvedById`, `resolvedByName`, `resolvedAt`, `mentionsViewer`. `@object-ui/plugin-detail` adds exports `useRecordVerdict` (the three-state verdict `useRecordEditable` fails open on; a definite allow is the explain answer's `allowed` together with its `record.visible`, as the server admits a by-id write, so `useRecordEditable` reads as before except that an answer whose `allowed` is false beside a visible record, such as an on-behalf-of session whose delegator is gone, now reads not editable), `threadResolvable`, `threadResolved`, `threadInvolvesViewer`, `filterCommentThreads`, `unresolvedThreadCount`, `DEFAULT_COMMENT_THREAD_FILTER` and the type `CommentThreadFilter`; `RecordCommentsData` adds `resolvable`, `onResolveComment`, `moderates` and `updatesOthers`, and its `count` is now the unresolved threads; `CommentItemActions` adds `onResolve` and `resolved`; `CommentHoverActionsProps` adds `resolved`; `RecordCommentThreadProps['comments']` may carry `onResolveComment`, `moderates` and `updatesOthers`. `@object-ui/i18n` adds ten keys to every pack: `detail.reopenThread`, `detail.threadResolved`, `detail.threadResolvedBy`, `detail.filterComments`, `detail.showResolvedComments`, `detail.commentsInvolvingMe`, `detail.noUnresolvedComments`, `detail.noCommentsInvolvingMe`, `detail.showAllComments`, `detail.commentResolveFailed`. Nothing existing is removed or re-typed. + Metadata-protocol: none + Skills-docs: none — no skill under `skills/**` teaches the console's comment panel; `content/docs/frontend/plugins/plugin-detail.mdx` and the plugin-detail README gain resolved threads, the filter and the moderator's Edit and Delete in this change. + + The desktop record page's comment panel (objectstack#36075) gains the resolved threads #36071 stores: + + - ✓ in a thread's first comment's action row marks the thread resolved: it leaves the list and the comments icon's number, now the unresolved threads, drops by one. ✓ is offered under the `sys_comment` update grant: on a thread the viewer started, and on anyone's only where the explain engine admits the viewer's update of a comment they did not write. Today the platform's row floor admits that for administrators, not for rank-and-file members, so a member resolves only the threads they started until the server carries ruling 7063285032 (any reader of the record may resolve) past that floor. + - The filter menu at the panel's top right holds 「显示已解决」, which shows resolved threads marked 「已由 X 解决」 (their ✓ reopens them), and 「只看我参与的」, the threads the viewer started, replied in or is mentioned in. The filter is not stored. With every thread resolved, the panel says so and offers to show them all. + - A reply into a resolved thread shows the thread reopened, as the platform stores it. + - The resolver is named from the people the page already knows (the viewer and the discussion's authors); any other resolver is named by one `sys_user` read of exactly those ids, after the discussion is drawn. Where that read is refused, the mark reads 「已解决」. + - Edit and Delete under More are offered on other members' comments to a viewer the explain engine admits to update the record by id, the server's rule for moderating someone else's comment; Edit also needs the explain engine to admit their update of a comment they did not write (the row floor above). Both are asked only on a definite allow: pending, a refusal, an error or a deployment without the explain service offers them on the viewer's own comments alone. Their own comments keep them as before. + + Unchanged: no server permission changes (a deployment without the explain service shows ✓ and Edit on the viewer's own rows only, administrators included); a deployment whose comment rows carry no `is_resolved` shows no ✓ and no filter, and the icon counts every thread; hand-written record pages and the phone keep their feed as before. +- d12ac84: feat(comments): a member resolves and reopens any thread they can read, and deletes their own comments + + Clause-②: yes (widening) — `@objectstack/plugin-audit`'s `AuditPlugin` mounts two new HTTP routes, `PUT /api/v1/comments/:id/resolution` and `DELETE /api/v1/comments/:id`, and the stamp of who resolved a thread now reads a system write's `provenance.attributedUserId`. `@objectstack/core`'s `OwnRowDeleteDoor` adds an optional member, `refuseRemoval(row, engine, context)`, asked after the owner check. `@object-ui/react`'s `DiscussionContextValue` adds the optional `ownCommentDeletesOnly`; `@object-ui/plugin-detail`'s `RecordCommentsData` adds the optional `ownDeletesOnly`, and `RecordCommentThreadProps['comments']` may carry it; `@object-ui/core`'s affordance-to-grant map adds the row `feedCommentDeleteOwn`. Nothing existing is removed or re-typed. + Metadata-protocol: none + + Two server doors carry the maintainer's comment permission rulings past the platform's row floor (`owner_only_writes`, which lets a rank-and-file member update only the rows they created) and past the delete grant no every-member set may hold (ADR-0090 D5). Neither changes the floor, `sys_comment_moderation` or any permission set, and the data API answers exactly what it answered before. + + - **Resolve and reopen: `PUT /api/v1/comments/:id/resolution`** with the body `{ "resolved": true }` or `{ "resolved": false }` and nothing else. Whoever can read the thread and may post a comment on it may, external members included (ruling record 7063285032, option A: anyone who can see the record, the same gate as posting a comment): the door reads the comment as the caller (a comment they cannot read answers `404 RECORD_NOT_FOUND`, as an unknown id does), refuses a caller who reads comments but may not post one (`403 PERMISSION_DENIED`), refuses a reply (`400 VALIDATION_ERROR`) and then writes `is_resolved` alone, attributed to the caller. `resolved_by` names the caller. It answers `200` with `{ id, is_resolved, resolved_by, resolved_at }`. Any other query parameter or body is `400 VALIDATION_ERROR`; a signed-out request is `401`. + - **Delete your own comment: `DELETE /api/v1/comments/:id`.** It removes a comment the caller wrote (`author_id`), with no delete grant needed, on the platform's shared own-row delete door. Another member's comment is `403 PERMISSION_DENIED` and stays, even for a record editor: moderating someone else's comment stays the data API's, behind the delete grant. A comment that has replies stays too, whoever wrote them, `409 DELETE_RESTRICTED`, because removing it would turn each reply into a thread of its own (ruling record 7069889899: no one deletes or rewrites someone else's comment); its author may still edit its text. It answers `200` with `{ id, deleted: true }`. + - **Unchanged:** comment text stays its author's alone; a member's data-API update of a colleague's comment, `is_resolved` included, and a member's data-API delete are still `403`; administrators keep the data API for resolving, editing and deleting anyone's comment. + + The desktop comment panel follows the doors: + + - ✓ is on every thread, the viewer's and anyone else's, for a viewer holding the `sys_comment` create grant, and writes through the resolution door. It no longer asks the explain engine; that probe now gates only Edit on someone else's comment. + - A viewer without the `sys_comment` delete grant (an ordinary member) is offered Delete on their own comments that have no reply, and it goes through the own-comment delete door; a viewer with the grant deletes through the data API as before, others' comments included where they may edit the record. + + Corrections to two earlier notes of this release, which stay as written: + + - A rank-and-file member now resolves and reopens a colleague's thread through the resolution door; this replaces the #36071 note's line "This is the one widening: an update that changes nothing but `is_resolved` is admitted without the author-or-record-editor rule", because the platform's row floor (`owner_only_writes`) runs first, so through the data API such a member still resolves only the threads they started and an administrator resolves any. + - The desktop comment panel offers ✓ on every thread to a viewer who may post a comment and writes it through the resolution door; this replaces the #36075 note's line "✓ is offered under the `sys_comment` update grant: on a thread the viewer started, and on anyone's only where the explain engine admits …", and its "Unchanged" line's "a deployment without the explain service shows ✓ and Edit on the viewer's own rows only" now holds for Edit alone. +- 6e643cc: feat(plugin-dashboard): a dashboard or report drill opens a centred dialog over the standard list, and a report's chart marks drill + + Clause-②: yes (widening) — additive members only, among them the new `PageRegionPostureReset` export of `@object-ui/components`; nothing is removed or renamed + Metadata-protocol: none + + Clicking a number on a dashboard (a chart mark, a metric tile, a table cell) or on a dataset report used to open a full-height side drawer whose table listed every field of the object, with no sort, no filter and no word on which conditions selected the records; a row stacked a second record panel on top. The drill now opens a dialog about 70% wide and 65% tall that dims and blurs nothing behind it, and its body is the standard list the object list page draws (`list-view`): the same row height, column-header sort, filter chips, added columns, record count and column calculations. The drill's conditions (the clicked bucket, the widget's filter, the measure's scope) are the list's own chips and can be changed or removed; a condition no chip can say (a relationship path, an `$or`) still filters the list. The default columns are the record's name, the grouped fields and the measured fields. Nothing done in the dialog is saved, and it writes nothing. A record's name opens the record's full page, whose 「N of M」 stepper walks the drill's rows and whose way back is the dashboard or report; no second panel is stacked. 「Open in list」 is unchanged. On a phone the drill keeps the side drawer, with the same list. + + A dataset report's chart marks now drill too: a bar opens the same records as the summary line it stands for. + + Additive members: `DrillNavigationValue.openRecord` and the `DrillRecordOrigin` type (`@object-ui/react`), `DrillDownDrawerProps.defaultColumns` (`@object-ui/plugin-dashboard`), `DatasetDrillArgs.fields` (`@object-ui/plugin-report`), `PageRegionPostureReset` (`@object-ui/components`). A renderer without `@object-ui/plugin-list` registered lists the drilled records in the dashboard's data table. A host that gives no `openRecord` (a page block's metric or pivot) opens the drilled record in a dialog, from either body. + + Inside a page the drill draws the same standard list: the page region's posture (the compact or capped list a page block draws) is cleared for the drill's dialog by the new `PageRegionPostureReset` (`@object-ui/components`), so a page block's metric or pivot drill shows its chips, its record count and its pager, and no 「View all」 link to a list without the drill's condition. A drill whose filter names no condition any read can carry (a string, a number) lists nothing and says so, instead of listing every record. +- a10422d: fix(console): a stage move refused with a 409 in a record drawer re-reads the record, so the next Move sends the stored version + + Clause-②: yes (widening) — `RecordContextValue` (and so `RecordContextProviderProps`) gains one optional member, `reread`; nothing is removed or renamed, and `refresh` keeps its type + Metadata-protocol: none + + The record header's stage menu also draws in a record drawer (the list's drawer, and the drawer a record page opens over itself). Its save path answered a `409 CONCURRENT_UPDATE` by calling the record context's `refresh`, which the record view leaves out in a drawer so the header draws no Refresh entry there. In a drawer the record was therefore never read again: the dialog kept the old row, and a second Move sent the same stale version and was refused again. + + `RecordContextValue` now keeps the two apart. `refresh` stays the host's opt-in to the header's Refresh entry and is still left out in a drawer. The new `reread` reads the record again with no affordance of its own; the record view provides it on the page and in a drawer alike, and the stage menu and `record:path`'s stage press call it after a move and after a 409. On the record page nothing changes: `reread` publishes the same `'*'` notice the Refresh entry does. + + A host that mounts `RecordContextProvider` with only `refresh` keeps its behaviour: the stage surfaces call `reread` when the host provides it and `refresh` otherwise. Nothing to migrate; a host that wants the re-read without the Refresh entry passes `reread` alone. +- 41dd132: fix(react): a console open asks a bound API URL once even when the console saves the person's own UI state between the navigation's read and the page's + + Clause-②: no + Metadata-protocol: none + + A navigation entry and a page element bound to the same API URL share one request in one console open. `ElementApiOpenScope` dropped every kept read on any declared data change, including the `sys_user_preference` saves (the recent items, the last app) the console makes as a page opens, so when such a save landed between the two reads the page asked the URL a second time. Changes to the shell's UI-state store now leave the open's reads in place. Every other declared change still ends the reuse, and the readers of `sys_user_preference` itself (the User page's Preferences list) still refresh on those saves. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [a0b4ecf] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [c3fb37a] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [c9b3f7a] +- Updated dependencies [8e46424] +- Updated dependencies [8896822] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [dc53d4a] +- Updated dependencies [0739dee] +- Updated dependencies [ad15579] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [eed422e] +- Updated dependencies [2df9691] +- Updated dependencies [bfd6b6b] +- Updated dependencies [55020c3] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [99a0e4f] +- Updated dependencies [9f352e8] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [fd471d3] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [7702f09] +- Updated dependencies [05e0eb8] +- Updated dependencies [b863d2b] +- Updated dependencies [c890070] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [58d00db] +- Updated dependencies [61722e9] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [3d6dea2] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [285ad8d] +- Updated dependencies [bfd1049] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [6a35635] +- Updated dependencies [9b3227f] +- Updated dependencies [fe75349] +- Updated dependencies [f4de1de] +- Updated dependencies [dab4712] +- Updated dependencies [141a826] +- Updated dependencies [8145424] +- Updated dependencies [53c9575] +- Updated dependencies [83a79e6] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [ccded86] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [e01b8be] +- Updated dependencies [238661f] +- Updated dependencies [d96c878] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [b0c624a] +- Updated dependencies [9b6db73] +- Updated dependencies [1e018d6] +- Updated dependencies [6d86b43] +- Updated dependencies [a3a74f2] +- Updated dependencies [f98f18c] +- Updated dependencies [74d3d83] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [598a34d] +- Updated dependencies [0585797] +- Updated dependencies [811858c] +- Updated dependencies [fac1e7d] +- Updated dependencies [8500ee7] +- Updated dependencies [c00be39] +- Updated dependencies [5345905] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [f909734] +- Updated dependencies [cedc094] +- Updated dependencies [c9b0a23] +- Updated dependencies [f51578e] +- Updated dependencies [6b360ab] +- Updated dependencies [78f7160] +- Updated dependencies [bb1c55d] +- Updated dependencies [1d7015a] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [dea68e9] +- Updated dependencies [b113178] +- Updated dependencies [138faaa] +- Updated dependencies [411fe24] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [48c732c] +- Updated dependencies [52fb30c] +- Updated dependencies [8807dcb] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [9ed18a5] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [c261a7c] +- Updated dependencies [76cb366] +- Updated dependencies [32409a9] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [9f6f306] +- Updated dependencies [c757e07] +- Updated dependencies [c1b35c3] +- Updated dependencies [9a98a46] +- Updated dependencies [27e414b] +- Updated dependencies [eb53d63] +- Updated dependencies [dda5e74] +- Updated dependencies [f2a990b] +- Updated dependencies [035a12c] +- Updated dependencies [a23164e] +- Updated dependencies [f3d0a9f] +- Updated dependencies [8c5a81e] +- Updated dependencies [43580a3] +- Updated dependencies [cc05e60] +- Updated dependencies [13d1e95] +- Updated dependencies [6db1dc2] +- Updated dependencies [eebb893] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [3543b51] +- Updated dependencies [4ab2c82] +- Updated dependencies [04f9861] +- Updated dependencies [c30ce97] +- Updated dependencies [e605773] +- Updated dependencies [0628e08] +- Updated dependencies [cbd582f] +- Updated dependencies [031325d] +- Updated dependencies [1705ec9] +- Updated dependencies [b7fe94a] +- Updated dependencies [a6756a2] +- Updated dependencies [b3bcfef] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [71e02ff] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [d12ac84] +- Updated dependencies [5e8e243] +- Updated dependencies [4099ef2] +- Updated dependencies [6a73185] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [96b7975] +- Updated dependencies [e8b494a] +- Updated dependencies [bbc7e03] +- Updated dependencies [27895d7] +- Updated dependencies [543585d] +- Updated dependencies [7e89bc6] +- Updated dependencies [70194ff] +- Updated dependencies [42e4096] +- Updated dependencies [f2ef7d8] +- Updated dependencies [7a5ae65] +- Updated dependencies [ff60149] +- Updated dependencies [ee651ce] +- Updated dependencies [dad9b55] +- Updated dependencies [d076975] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [8a741ab] +- Updated dependencies [60e79ed] +- Updated dependencies [3cf6a44] +- Updated dependencies [5fecc22] +- Updated dependencies [595844b] +- Updated dependencies [4f19091] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [9c283a1] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [f26469a] +- Updated dependencies [7501d0c] +- Updated dependencies [4ef1ea9] +- Updated dependencies [45ef94e] +- Updated dependencies [d7411fa] +- Updated dependencies [c6075a7] +- Updated dependencies [cd51dbb] +- Updated dependencies [3f568c1] +- Updated dependencies [573a376] +- Updated dependencies [5c2d5cf] +- Updated dependencies [cbc06ff] +- Updated dependencies [43916f3] +- Updated dependencies [f590f3e] +- Updated dependencies [9fa05c6] +- Updated dependencies [ed0edb1] +- Updated dependencies [a10987a] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [f77d078] +- Updated dependencies [0e83fe0] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [0d6589d] +- Updated dependencies [c54aa57] +- Updated dependencies [53257a5] +- Updated dependencies [8aecf6d] +- Updated dependencies [e0050ba] +- Updated dependencies [14f4d8f] +- Updated dependencies [8ddadc1] +- Updated dependencies [183ed23] +- Updated dependencies [a03bc4e] +- Updated dependencies [4d4ec16] +- Updated dependencies [d763ee7] +- Updated dependencies [8018e00] +- Updated dependencies [844218f] +- Updated dependencies [8cce05b] +- Updated dependencies [0d727b7] +- Updated dependencies [ff0d1f1] +- Updated dependencies [4f7d6f7] +- Updated dependencies [b848b47] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [0819cab] +- Updated dependencies [c8d4b90] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [49c6bf3] +- Updated dependencies [4f9a3f8] +- Updated dependencies [00dd362] +- Updated dependencies [1cda7ea] +- Updated dependencies [bac4864] +- Updated dependencies [8c29b81] +- Updated dependencies [a68b475] +- Updated dependencies [c75453e] +- Updated dependencies [1e96009] +- Updated dependencies [57445a6] +- Updated dependencies [01967c3] +- Updated dependencies [1f3e9f6] +- Updated dependencies [8b1841f] +- Updated dependencies [305fe60] +- Updated dependencies [e91149e] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [6ddb97b] +- Updated dependencies [2af9729] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [6161010] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [3aa008d] +- Updated dependencies [7d3b8d6] +- Updated dependencies [15f8357] +- Updated dependencies [378c955] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [39e9a82] +- Updated dependencies [9c5fb3e] +- Updated dependencies [abb5449] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + - @object-ui/i18n@18.7.0 + - @object-ui/types@18.7.0 + - @object-ui/core@18.7.0 + ## 18.6.0 ### Patch Changes diff --git a/ui/packages/react/package.json b/ui/packages/react/package.json index 8c17b2936bb..bc3b1f2b300 100644 --- a/ui/packages/react/package.json +++ b/ui/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/react", - "version": "18.6.0", + "version": "18.7.0", "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 51d36ef8845..6aab2804ff6 100644 --- a/ui/packages/types/CHANGELOG.md +++ b/ui/packages/types/CHANGELOG.md @@ -1,5 +1,427 @@ # @object-ui/types +## 18.7.0 + +### Minor Changes + +- f3a8a13: feat(spec,ui)!: every grid that renders editable selects a cell first and saves each cell on its own, and `object-grid`'s `singleClickEdit` is retired + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + + <!-- adr-0087: registered object-grid-single-click-edit-removed, object-grid-single-click-edit-retired --> + + **BREAKING** accept-set narrowing on the `object-grid` page block (`@objectstack/spec`, `ComponentPropsMap['object-grid'].singleClickEdit`) and on `@object-ui/types` (`ObjectGridSchema.singleClickEdit`, and the `object-view` `table` slot that relayed it), with the grids following it in the same release. + + - **Now.** A grid that renders editable (`editable` set and the viewer allowed to edit the object) uses the list page's select-first cell model wherever it is drawn: the grid an `object-view` draws itself (the Studio's view preview, a page that places an `object-view`) and an authored `object-grid` node. A click selects a cell; double-click, Enter, F2 or typing opens its editor; Esc cancels; and each committed cell is saved at once as one update for its record. The pending-changes bar, its "Save All" and "Cancel All" buttons and the per-row save column are no longer drawn there. On a touch screen a tap on these grids opens the record, and a touch never edits a cell in place. + - **Unchanged.** A grid that renders read-only keeps its click-to-open row. Neither `editable` nor a view's `inlineEdit` can open editing that the object or the reader's `update` grant refuses, and a refused cell now says why when it is asked to edit, as on the list page. A React host that draws `ObjectGrid` itself can still pass `cellSelection={false}` to keep the staged model with its Save All bar. + - **`keyboardNavigation` narrowed to what is enforced.** On a grid that renders editable the arrow-key navigation is always on, because the selection moves with those keys; `false` no longer turns it off there. On a read-only grid `true` still turns it on. + + | FROM | TO | + |:--|:--| + | `object-grid` `properties.singleClickEdit: true` (or absent: the old default) | delete the key; a click selects the cell and double-click, Enter, F2 or typing opens its editor | + | `object-grid` `properties.singleClickEdit: false` | delete the key; double-click still opens the editor | + | `object-view` `table.singleClickEdit` | delete the key | + | a React host passing `ObjectGrid` `onBatchSave` alone (no `onRowSave`, no `cellSelection`) on an editable grid: "Save All" called it | each cell now saves through `onRowSave`, or through the grid's own `dataSource.update` when there is none, and `onBatchSave` is never called. Pass `onRowSave` to own the write per cell, or pass `cellSelection={false}` to keep the staged model, where `onBatchSave` is still called. The prop is marked `@deprecated` | + + The one-line fix: delete `singleClickEdit` wherever it is written; `os migrate meta --from 17 --write` deletes it from page sources. Writing it after upgrade fails `tsc` (the input type is `never`) and fails the parse with that prescription. + + The retirement kit: + + - **`@objectstack/spec`**: `singleClickEdit` is a `retiredKey()` tombstone on `ObjectGridPropsSchema`, registered in `RETIRED_KEYS_BY_MAJOR[18]` as `ui/ObjectGridProps:singleClickEdit`. The D2 conversion `object-grid-single-click-edit-removed` deletes it from `object-grid` components (top-level regions, nested `children` and named slots), whatever its value, and the D3 entry `object-grid-single-click-edit-retired` names what the upgrade still owes: help text and tests that describe the old gestures. `keyboardNavigation`'s describe says what is enforced. The liveness ledger records the retirement and the narrowed read. + - **`@object-ui/types`**: `ObjectGridSchema.singleClickEdit` is `?: never` with a `retirementTombstone()` twin, and the `object-view` `table` slot inherits it. `DataTableSchema.singleClickEdit`, a flag a host sets in code, is unchanged. + - **`@object-ui/plugin-grid`**: `ObjectGrid` turns the select-first model on wherever the grid renders editable (a host's `cellSelection` still wins), and no longer reads `singleClickEdit`. The `object-grid` inputs no longer list it. `ObjectGridComponentProps.onBatchSave` is `@deprecated`: it is called only under the staged model. + - **`@object-ui/plugin-view`**: `table.singleClickEdit` is no longer relayed to the grid. +- 70d07fd: feat: an object arranges its actions per scope (`actionLayout`: pinned buttons and the 「More」 order), and the design mode sets it + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: follow-up #36630 + + A page header draws at most three of its actions as buttons and puts the rest in its 「More」 menu. An object now arranges them itself with the new optional key `actionLayout` on `ObjectSchema` and `ObjectExtensionSchema`: `{ list?: Arm, record?: Arm }`, where `Arm = { pinned: string[], more?: string[] }`. `pinned` names the buttons in the order drawn, at most three (`[]` pins none); `more` orders the 「More」 menu; an action the scope places that neither part names goes to the end of 「More」 in its default order. A pinned action that is hidden leaves its button out, and no other action takes its place. + + - `list` arranges the actions placed at `list_toolbar` and the list page's built-ins `$import` and `$export`. A built-in is only ever pinned: one named in `more` is refused with its reason, since not pinned the list page draws it in its own Import / Export menu. + - `record` arranges the actions placed at `record_header` or `record_more`. It is a scope, not a page: the record page header, the side preview and a phone's bottom action bar all read it. A `page:header` that authors its own `actions` list keeps that list. + - An arm left out (or the key left out) draws that scope exactly as before. + + What each package gains: + + - `@objectstack/spec`: the key and its shape refusals at every door (more than three pinned, a name given twice in one part or in both, a malformed name, a built-in the scope does not have, a built-in in `more`, since a built-in is only ever pinned), each with its reason. New exports `OBJECT_ACTION_LAYOUT_PINNED_LIMIT`, `OBJECT_ACTION_LAYOUT_SCOPES`, `OBJECT_ACTION_LAYOUT_BUILTINS` and the types `ObjectActionLayoutScope`, `ObjectActionLayout`, `ObjectActionLayoutArm`. The object form offers it under Advanced, one JSON row per arm. + - `@objectstack/objectql`: `actionLayout` joins `fieldGroups` and `relatedLists` as a key only the base's paired `.custom` package writes on an `object_extension` (ADR-0146 D10). It is applied last, after every other layer, arm by arm: each arm it writes replaces the served arm for that scope whole, and an arm it leaves out stays. A manifest's `objectExtensions` entry now carries the key to the fold. + - `@objectstack/metadata-protocol`: the one judge refuses `actionLayout` from any other package, naming the action's own `locations` and `order` as the way to place an action the package brings. Each door says it its own way: publish, restore and draft promotion of an `object_extension` answer `VALIDATION_ERROR` / 400; marketplace install refuses the package body with `VALIDATION_ERROR` / 422; `os validate` and `os build` exit non-zero and print the row; the registry fold skips the key and leaves a note. + - `@objectstack/lint`: `validateObjectActionLayout` (`object-action-layout-unknown`, `object-action-layout-not-placed`, at `error`) refuses in `os validate`, `os build` and `os lint` a name, in either part, that is no action of the object or is not placed in the scope its arm arranges. + - `@object-ui/types`: `arrangedHeaderActions(actions, arm, scope)`, the one reader both record headers and the list header apply, and `readActionLayoutArm`. + - The console: both record headers (the default page's and an authored `page:header` with `placedActions: true`) and the list header draw the arrangement. In the design mode, 「Header buttons」 at the end of the page header lists the scope's actions under 「Pinned to header」 and 「Other」 (the 「More」 menu), each dragged into order; a dot moves an action between them, a fourth pin is refused with a toast, the header shows the change at once, and 「Save」 writes only the arms that changed: into the object's own package when it is writable, else into the installed object's customization package as an `object_extension`, through the one writer of an installed object's arrangement (`saveObjectExtensionArrangement`, whose patch type now takes the object-shaped `actionLayout`), which refuses a customization package the server does not list writable. A name the scope no longer offers is listed in the panel as left out. A name the header cannot draw is refused at save with its reason. New `@object-ui/i18n` keys under `designMode.pins`. +- 7a7ab47: fix(record-page): a field group whose fields are all empty is counted and revealed by "Show N empty fields" + + Clause-②: no + Metadata-protocol: semantic + + On an object's default record page, a field group the object declares (`fieldGroups`) no longer disappears for good when every one of its fields is empty. Before, read mode drew nothing for such a group, the field list's closing "Show N empty fields" row left its fields out of the count, and pressing the row did not draw them; they appeared only in edit mode. Now the row counts them, and pressing it draws the group in its place, heading and fields. With the row not pressed the page looks as before: an all-empty group draws nothing, not even its heading. + + What changed is the meaning of a `record:details` section's `hideEmpty` in read mode: it now hides an all-empty section only while the reader hides empty fields. This holds for an authored `hideEmpty: true` and for the renderer default (an omitted `hideEmpty`), which the default page's declared groups carry. When the reader shows empty fields, through the field list's row or the per-object choice a section's own "Show N empty fields" toggle writes, the section draws like any kept all-empty section. A print page has no toggle and keeps the section hidden. Edit mode is unchanged and still draws every field as an input. A group with at least one value draws exactly as before. An authored `hideEmpty: true` on a `detail-view` section gives way to the reader in the same way: it draws once the reader's remembered per-object choice is to show empty fields. Outside the field list, with no remembered choice (no host preference store, or no object name), the section stays hidden as before. This supersedes the line in the pending `36147-record-field-list` changeset that says an authored `hideEmpty` group "stays hidden and is not counted": on the record page's field list such a group is now counted by the one "Show N empty fields" row and drawn when the reader shows empty fields. + + The accepted keys and values are unchanged: `hideEmpty` is still an optional boolean. Its `describe()` in `@objectstack/spec`, the `DetailViewSection` and `record:details` section docs and the `views.zod` describe in `@object-ui/types`, and the `record:details` and `detail-section` input descriptions in `@object-ui/plugin-detail` state the new reading. + +### Patch Changes + +- 1c05546: feat(plugin-grid): an aggregate bulk action that resolves with a `BulkActionResult` is reported per row: the rows it moved, the rows it refused with its own reasons, and the rows it did not confirm + + Clause-②: yes + Metadata-protocol: none + + The grid's bulk executor now reads the resolve value of an `execution: 'aggregate'` bulk handler. When it is a `BulkActionResult` (`{ succeeded: string[], failed: { id, message }[] }`, `BulkActionResultSchema` in `@objectstack/spec/ui`), the result panel shows how many selected rows were moved, lists each refused row under its record with the handler's `message` (and in the error CSV), and lists every selected row the result names in neither list as "not confirmed", never as succeeded. Ids are read against the dispatched `params._selectedIds`: an id outside the selection is dropped, a duplicate counts once, an id in both lists counts as failed, and when one id is in `failed` twice the first entry's message wins. A rejection is unchanged: it stays one outcome for the whole selection. + + A handler that partly succeeds no longer has to reject to avoid being reported as full success: resolve with the per-row answer instead. The `[PLANNED — not enforced]` marker is removed from `BulkActionResultSchema`'s description and its reference page, and the "all-or-nothing" wording is removed from the `bulkActionDefs` description (`@objectstack/spec`) and the `BulkActionDef.execution` TSDoc (`@object-ui/types`). + + **Declared behaviour change.** An existing aggregate handler whose own return value carries a top-level `succeeded` or `failed` member in another form (for example counts, `{ succeeded: 2, failed: 1 }`, or only one of the two lists) was reported as full success and is now reported as "unreadable": the panel says the action finished but its result could not be read, prints no per-row count, and the grid re-reads its rows when the dialog closes. To keep the success report, return a value with neither member (a summary under another name), or return both lists in the `BulkActionResult` shape. A handler that returns nothing, or a value with neither member, keeps today's report. + + The widening is additive: three new keys in every locale pack `@object-ui/i18n` publishes (`grid.bulk.resultNotConfirmed`, `grid.bulk.notConfirmedRecords`, `grid.bulk.aggregateUnreadable`). No metadata key, value or default changes. +- 2df9691: fix(plugin-detail): an authored record page folds its all-empty field groups into one closing line, as the default page does + + Clause-②: no + Metadata-protocol: none + + On a record page you author, the details body (`record:details`) used to draw every field group the page keeps with `hideEmpty: false` as its own bordered card, even when every field in it was empty: a card holding nothing but its heading and one "Show N empty fields" row. A new opportunity on such a page showed two of these, one per empty group. + + Now every `record:details` body does what the default record page already did. The groups whose fields are all empty leave their places, and the body ends in one quiet line that names them, for example "Deal Narrative · Notes & Next Steps · 2 empty sections · Expand". Expanding the line draws each group in its own place, as its heading plus its "Show N empty fields" row, and from there the fields can be shown and edited in place. "Collapse" folds them back. + + What does not change: + + - A group with at least one value draws as before, its own "Show N empty fields" row included. + - `hideEmpty` keeps its default. An omitted key still hides an all-empty group outright, and such a group is not named in the line. + - Edit mode draws every group with every field as an input, and a print page prints every row. + - A standalone `detail-view` keeps one section per group, and still folds a body whose groups are all empty into one "Show N empty fields" row. + + No metadata key, value or default changes. The `@objectstack/spec` `describe()` of `record:details` `sections[].hideEmpty`, the `@object-ui/types` docs and the component manifest now describe the closing line. +- e01b8be: feat(console): the list page's frame — a 44px page bar, a 40px view bar, a denser grid and per-column totals in the grid's own last row + + Clause-②: no + Metadata-protocol: none + + The object list page is redrawn around two bars and a denser grid (objectstack#35548, the first card of the list-page epic): + + - **Page bar, 44px.** The object's icon in one colour and its name on the left; ⋮ and 「+ 新建」 on the right. The object's description, Import and Favorite moved into ⋮. + - **View bar, 40px.** The view switcher is one trigger on the left, reading the view type's icon, the view name, the record count and a caret (the count beside the name returns, after objectstack#34603 removed it). 「筛选」「排序」「选项」 are text buttons on the right beside the search icon, and open the same panels as before; below `sm` they stay icons. The kanban and every other view type draw the same two bars. An empty condition row under the bar takes no height. + - **Grid.** A 32px header and 33px default rows, 13px on the header, the cells and the bar buttons, faint row lines, no rule after the first column, and the frozen-column shadow only once the grid scrolls sideways. The row ⋮ trigger is 24px so it fits the row. Lookup values read as small chips, money and number columns (a money formula with `returnType: 'currency'` among them) align right with tabular digits, and select labels keep their colour at lower saturation. + - **Totals.** Column summaries are drawn as the table's own last row, each figure under its column (so they line up at any width and are never covered by pinned columns), led by 「计数 N」; the separate footer line and its doubled colon are gone. + + `DataTableSchema` gains one host-only runtime slot, `summaryRow` (`{ lead?, cells }`), which `ObjectGrid` fills; like `rowGroups`, the zod face refuses it by name, so it is not authorable. New locale keys: `list.options`, `grid.summary.countLead`. +- 0585797: feat(plugin-grid): selected rows get one small bar floating at the bottom centre of the list + + Clause-②: yes (widening) + Metadata-protocol: none + + Selecting rows in a grid now shows one bar floating at the bottom centre of the list area: 「已选 N 条」 and ×, up to three labelled actions, and the rest under 「更多」. When the selection offers no more than three actions they are all buttons, so a lone Delete is a button; over three, Delete goes behind 「更多」 with the rest. The bar sits above the footer calc row, the list keeps room after its last row so that row scrolls fully clear of the bar, and when every loaded row is selected and more match, the bar offers 「选择全部 N 条」. × or Esc clears the selection; Esc that belongs to a field, or to another open menu or dialog, does not. + + The same bar serves the object list page, a record's child-table tabs, the side record and embedded tables. The old bottom strip and the list page's 「已选」 face in the view bar are both retired, so the top of the list page no longer changes when rows are selected. On the list page, where rows draw no actions of their own, one selected record offers that record's actions; elsewhere the bar offers the bulk actions at any count. A narrow list gives actions back to 「更多」 until the bar fits on one line. + + - `@object-ui/plugin-grid`: `BulkActionBar` is redrawn as the floating bar; its props gain `singleRowMenu`. `useListPageScope(scope)` replaces the unpublished `useListPageBarHost`. + - `@object-ui/types` / `@object-ui/components`: `DataTableSchema.floatingBar` is a runtime slot (refused by the zod twin like the other runtime slots). The table floats it over its scroll box, above its summary row, with room after its last row. + - `@object-ui/app-shell`: the list page header and the view bar no longer swap to a selection face. + + This supersedes the selection behaviour in the list-page entry of this release (no Actions column on the list page): the selection is no longer shown in the page bar, up to three actions are buttons and a lone Delete is one, and grids outside a list page no longer draw a bottom bulk bar. +- f548bdc: fix: descriptions and help text no longer say the default record page draws a key-field strip or a stage path + + Clause-②: no + Metadata-protocol: none + + The default record page draws no key-field strip and no stage path: the stage is the status tag beside the record name. These texts said otherwise and now say what each key drives: + + - `@objectstack/spec`: the `highlightFields` describe ("Drives default list and related-list columns, cards, hover cards, previews and the record picker; the default record page draws no strip from it") and its Studio help text. The `stageField` and `RECORD_HIGHLIGHTS_MAX` doc comments say the header's status tag reads the stage and the count cuts only a strip a page places in its `highlights` slot. The upgrade-guide entry `field-group-shadowed-six-highlights` no longer tells authors to move highlights: the warning now judges the record title alone, and no action is owed. + - `@objectstack/platform-objects`: the `highlightFields` help text in every metadata-form locale. + - `@objectstack/lint`: the `os explain` text of `object-field-ref-unknown` and `semantic-role-field-unprovisioned` names the hover card and the record picker in place of the strip. + - `@object-ui/plugin-detail`: the `record:details` `hideFields` description no longer says the default page fills it. The key is still accepted. + - `@object-ui/i18n`: Studio's lifecycle-field help (`stageField`, and its "None" choice) talks about the status tag, not a progress bar. + - `@object-ui/types`: the page `highlights` slot doc says it places a strip the synthesized default does not draw. + - `@object-ui/app-shell`: on a phone the default record page no longer hands the synthesizer a highlight list it never read. The page looks the same, and the subtitle under the record name is unchanged. +- 9f6f306: fix(console): Hide column in the column-header menu is a list draft, like the eye in View settings + + Clause-②: yes (widening) — one new optional runtime slot `DataTableSchema.onColumnHide(columnKey)` (refused by name on the zod mirror, like `onColumnsReorder`) and one new optional `ObjectGrid` prop `onColumnHide(field)`; nothing removed or renamed + Metadata-protocol: none + + On a Console object list, picking "Hide column" in a column header's menu hid the column inside the table only: nothing above the table heard of it, so the list drew neither Discard nor Save and only a reload brought the column back. The same choice made with the eye in View settings was already a draft. + + The table now reports the hidden column to its host (`DataTableSchema.onColumnHide`, supplied by `ObjectGrid` from its new `onColumnHide` prop), and `ListView` writes it through the same writer as the hide-fields eye: the host hears it on `onHiddenFieldsChange` (the Console holds it in the list's draft, so Discard brings the column back and Save keeps it hidden), and a column the reader added leaves their added fields, as unticking it does. A table with no host handler hides the column in its own state, as before. +- f3d0a9f: fix(dashboard): a global filter bound to a field holding several values is sent as `$contains`, not `=` / `$in` + + Clause-②: yes (widening) + Metadata-protocol: none + + A dashboard `select` / `lookup` global filter bound to a field that holds several values (`multiple: true` on a select, lookup or user field, or a `multiselect` / `checkboxes` / `tags` field) used to be sent as `field = value`, or `$in` for several values. The server refuses both on such a field: the data query answers `400 INVALID_FILTER`, and the dataset query answers `200` with a count of 0, so the dashboard showed no data. The filter is now sent as `{ field: { $contains: value } }`, and several chosen values as `$or` over one `$contains` each, which the server answers with the matching rows. Single-value fields keep `=` / `$in`. + + To know whether the bound field holds several values, the dashboard reads the field's definition before it sends the widget's query: + + - `@object-ui/types`: `DataSource` has a new optional member, `getDataset(name, { callerPackage })`. It reads a dataset definition and resolves `null` when no such dataset is served; a failed read rejects. + - `@object-ui/data-objectstack`: `ObjectStackAdapter.getDataset` reads `GET /api/v1/meta/dataset/:name`, sending the reader's package as `callerPackage`, and caches the answer like the adapter's other metadata reads. + - `@object-ui/core`: `buildWidgetScopedFilter` takes an optional fifth argument, the operators each bound field takes when it is stored as a JSON column, and lowers a `select` / `lookup` filter on such a field to `$contains`. `boundMemberFilterNames` names the active `select` / `lookup` filters that bind a widget. + - `@object-ui/plugin-dashboard`: `DashboardRenderer` reads a dataset-bound widget's base object through `getDataset`, and a `provider: 'object'` widget's own object, through `getObjectSchema`. While that read is in flight, a widget that a `select` / `lookup` filter with a value binds draws a skeleton and sends no query. The operators come from `jsonColumnFilterOperators`, the helper the list quick filter and the filter builder use. + + A data source without `getDataset`, or a dataset the server does not serve, keeps the `=` / `$in` lowering, and the dashboard logs a console warning that names the filter. +- 6db1dc2: feat: the form's line-item table edits people, multi-select, tags, check and rating cells the way the main list does + + Clause-②: yes (widening) + Metadata-protocol: semantic + + `InlineGridColumnSchema.type` (a relationship field's `inlineColumns`, a form view's `subforms[].columns`, and the page blocks that carry the same column) accepts five more cell types, each spelled as its namesake field type: `user` (people), `multiselect`, `tags`, `boolean` (check) and `rating`. The column also takes an optional `max`, the star count of a `rating` cell (default 5). + + In the line-item table: + + - A `user` cell opens the main list's person picker under the cell: a searchable list with recent people and Clear; a pick writes and closes. `multiple` holds several people. + - A `multiselect` cell holds several of its options and a `tags` cell holds free-form tags. Each opens its searchable list under the cell; a click outside or Tab writes what was picked, Esc writes nothing. A list emptied in the cell writes `null`, as a cleared multi-value field stores, so a line whose only value was removed is still a blank line. A `tags` cell takes no `options`. + - A `boolean` cell is a checkbox: a click or Space toggles it and writes `true` / `false`. + - A `rating` cell draws its stars; a click on a star, or a digit key on the cell, sets it, and 0 clears it. + - Read-only and list-mode cells show people by name, a rating as its stars, a multi-select's option labels, and a check cell as the session's yes/no word. + + Visible change on existing forms: a column the table derives from a child field (no `type` written) now follows that field. A `boolean` / `toggle` field becomes a checkbox instead of the yes/no select, and it writes `true` / `false` instead of the strings `'true'` / `'false'` (the server reads both the same). A `rating` field becomes stars instead of a number box. `user`, `multiselect`, `checkboxes` and `tags` fields get their own cells instead of a plain text box that took a typed user id or a single option. A column that writes its `type` is unchanged, a `type: 'select'` column over a boolean field included. Which derived columns are visible by default is unchanged. + + The field-level security scrubber classifies the column's new `max` key as kept (a number, never a field name). +- 4ab2c82: feat(record-page): the desktop comment panel resolves and reopens threads, filters them, counts the unresolved ones, and offers Edit and Delete on other people's comments only where the server admits them + + Clause-②: yes (widening) — `@object-ui/react`'s `DiscussionContextValue` adds three optional members: `onResolveComment(itemId, resolved)`, `moderatesComments` and `updatesOthersComments`. `@object-ui/types`' `FeedItem` adds five optional members: `resolved`, `resolvedById`, `resolvedByName`, `resolvedAt`, `mentionsViewer`. `@object-ui/plugin-detail` adds exports `useRecordVerdict` (the three-state verdict `useRecordEditable` fails open on; a definite allow is the explain answer's `allowed` together with its `record.visible`, as the server admits a by-id write, so `useRecordEditable` reads as before except that an answer whose `allowed` is false beside a visible record, such as an on-behalf-of session whose delegator is gone, now reads not editable), `threadResolvable`, `threadResolved`, `threadInvolvesViewer`, `filterCommentThreads`, `unresolvedThreadCount`, `DEFAULT_COMMENT_THREAD_FILTER` and the type `CommentThreadFilter`; `RecordCommentsData` adds `resolvable`, `onResolveComment`, `moderates` and `updatesOthers`, and its `count` is now the unresolved threads; `CommentItemActions` adds `onResolve` and `resolved`; `CommentHoverActionsProps` adds `resolved`; `RecordCommentThreadProps['comments']` may carry `onResolveComment`, `moderates` and `updatesOthers`. `@object-ui/i18n` adds ten keys to every pack: `detail.reopenThread`, `detail.threadResolved`, `detail.threadResolvedBy`, `detail.filterComments`, `detail.showResolvedComments`, `detail.commentsInvolvingMe`, `detail.noUnresolvedComments`, `detail.noCommentsInvolvingMe`, `detail.showAllComments`, `detail.commentResolveFailed`. Nothing existing is removed or re-typed. + Metadata-protocol: none + Skills-docs: none — no skill under `skills/**` teaches the console's comment panel; `content/docs/frontend/plugins/plugin-detail.mdx` and the plugin-detail README gain resolved threads, the filter and the moderator's Edit and Delete in this change. + + The desktop record page's comment panel (objectstack#36075) gains the resolved threads #36071 stores: + + - ✓ in a thread's first comment's action row marks the thread resolved: it leaves the list and the comments icon's number, now the unresolved threads, drops by one. ✓ is offered under the `sys_comment` update grant: on a thread the viewer started, and on anyone's only where the explain engine admits the viewer's update of a comment they did not write. Today the platform's row floor admits that for administrators, not for rank-and-file members, so a member resolves only the threads they started until the server carries ruling 7063285032 (any reader of the record may resolve) past that floor. + - The filter menu at the panel's top right holds 「显示已解决」, which shows resolved threads marked 「已由 X 解决」 (their ✓ reopens them), and 「只看我参与的」, the threads the viewer started, replied in or is mentioned in. The filter is not stored. With every thread resolved, the panel says so and offers to show them all. + - A reply into a resolved thread shows the thread reopened, as the platform stores it. + - The resolver is named from the people the page already knows (the viewer and the discussion's authors); any other resolver is named by one `sys_user` read of exactly those ids, after the discussion is drawn. Where that read is refused, the mark reads 「已解决」. + - Edit and Delete under More are offered on other members' comments to a viewer the explain engine admits to update the record by id, the server's rule for moderating someone else's comment; Edit also needs the explain engine to admit their update of a comment they did not write (the row floor above). Both are asked only on a definite allow: pending, a refusal, an error or a deployment without the explain service offers them on the viewer's own comments alone. Their own comments keep them as before. + + Unchanged: no server permission changes (a deployment without the explain service shows ✓ and Edit on the viewer's own rows only, administrators included); a deployment whose comment rows carry no `is_resolved` shows no ✓ and no filter, and the icon counts every thread; hand-written record pages and the phone keep their feed as before. +- bbc7e03: feat(grid): a list cell's right-click menu copies, pastes and clears that cell + + Clause-②: yes (widening) — an optional `cell` member (`copy`, `paste`, `clear`) on the context `data-table` hands a host's `renderRowContextMenu`; five new `table.*` language-pack keys in every locale `@object-ui/i18n` ships (`copyCell`, `pasteCell`, `clearCell`, `pasteNotValue`, `pasteUnavailable`); nothing is removed or renamed + Metadata-protocol: none + + Right-clicking a cell in a list now offers what can be done to that cell, above the row's own items. + + - The menu has two sections. Above a line: **Copy**, **Paste**, **Clear** and, where it was already offered, **Change history**. Below it: the row's items as before (Open, Open in new tab, the row's actions). A right-click off a data cell opens the row's section only. + - **Copy** copies the cell's value, as Ctrl/Cmd+C does. + - **Paste** writes the clipboard's text into the cell and saves it, through the same checks as typing into the cell: text that is not an email address in an email cell, a value over a field's length, an empty required field are refused and the cell says why. If the browser will not let the list read the clipboard, the cell says so and names Ctrl/Cmd+V. Paste is offered on text, numbers, dates and single-choice fields (an option by its value or label); on a record reference, a person, a multi-choice and other types it is unavailable. + - **Clear** empties the cell and saves it, as Backspace does; it is unavailable on a required field. + - On a read-only field, a calculated field, a grid that is not editable or a record the reader may not change, Paste and Clear are unavailable and Copy still works. + - A paste into the selected cell with Ctrl/Cmd+V now goes through the same checks: text the cell's editor would refuse is no longer sent to be saved, and text the column cannot read (letters in a number cell, a name in a lookup cell) says why instead of doing nothing. +- 543585d: feat(record-page): one field's change history, opened in place from the field or from a list cell's context menu + + Clause-②: yes (widening) — three new `detail.*` language-pack keys in every locale `@object-ui/i18n` ships (`fieldHistory`, `fieldHistoryNone`, `fieldHistoryNoneRecent`); new exports from `@object-ui/plugin-detail` (`FieldHistoryButton`, `FieldHistoryCard`, `FieldHistoryPopover`, `useFieldHistory`, `useFieldHistoryOffered`, `fieldHistoryOffered`, the constants `FIELD_HISTORY_PAGE_SIZE`, `FIELD_HISTORY_SCAN_BATCH` and `FIELD_HISTORY_SCAN_BATCHES_PER_LOAD`, and their types); an optional `column` member on the context `data-table` hands a host's `renderRowContextMenu`; `FieldChangeItem` draws no label for `label: ''`; nothing is removed or renamed + Metadata-protocol: none + + A reader can now see one field's past changes on one record without reading the whole activity stream. + + - On the record page, each field of the object has a history button beside its value, shown on hover and focus like the copy button. In a list, right-clicking a cell of a field the object declares adds 「Change history」 to the row's menu. Both open the same small card in place. Neither is offered on a field whose old → new values are not recorded (`fieldHistory: false` on the field, `enable.fieldHistory: false` on the object, a credential field, or a media or JSON-like type that does not opt in), judged by the same `resolveFieldHistory` the audit writer keeps values by. + - The card lists only that field's changes: who, when, and old → new in the reader's words (an option by its label, an empty side as the pack's word for empty), newest first, ten at a time with 「Load more」. + - A field never changed reads 「No changes recorded」 with who created the record and when. + - The changes are the record's activity rows the server already serves, narrowed to the reader: a change of a field the reader may not read is never sent. A field the reader may not read offers no entry point at all. The full audit log is not read. + - The rows are read by record, newest first, fifty at a time, keeping those that changed the field; a query naming the change columns is refused for a reader withheld any field of the object, so the field is never part of the query. Opening the card reads at most four batches, and each 「Load more」 at most four more; when they hold no change of the field and older rows remain, the card reads 「No changes in the recent activity」 and offers 「Load more」 to read on. + + `@objectstack/spec`: the authoring hint for the mistyped field key `tracked` now names what turns one field's change history on or off today (`fieldHistory: false`, `true` for a media or JSON field, `enable.fieldHistory: false` on the object), where it named `trackHistory: true`, which changes nothing for most field types. Wording only; `tracked` stays rejected. +- 7e89bc6: feat(studio): the field inspector, the field designer and the object's settings write Field change values instead of Track history + + Clause-②: yes (widening) + Metadata-protocol: none + + Old → new values show on the record activity by default, and an object or a single field can turn them off. The Studio now writes that setting where an author looks for it: + + - **Field inspector.** The "Track history" box is gone. In its place, "Field change values" offers Default, On and Off. Default leaves the field's `fieldHistory` unset and names what it means for this field on this object: "Default (On)" for most types, "Default (Off)" for a media, JSON or credential field, and "Default (Off)" for every field when the object turns values off, with a note saying so. On and Off write `fieldHistory: true` and `false`; choosing Default after Off removes the key. A stored `trackHistory` is kept as it is and never written. + - **Field designer** (`@object-ui/plugin-designer`). The drawer's "Track History" switch, which wrote `trackHistory: false` on every save, is replaced by "Field Change Values" with the same three choices: Default (named "Default (On)" or "Default (Off)" for the type in the drawer, and it follows a type change), On, Off. A stored `trackHistory` is carried through an edit and never written. `DesignerFieldDefinition` (`@object-ui/types`, with its zod mirror) gains an optional `fieldHistory`, and both designer save paths (`MetadataFieldsPage`, `MetadataService.saveFields`) carry it; Default sends no key, which removes a stored one. + - **Object settings.** The Features card gains "Field change values" (`enable.fieldHistory`). Unticking it writes `false`; ticking it again removes the key rather than writing `true`, since unset already means on. Sibling `enable` keys are kept. + + The inspector and the metadata form's Field History control share one module for the three choices, what each writes and their wording; the field designer cannot import it (the app shell depends on the designer) and shares the rule itself, `resolveFieldHistory` from `@objectstack/spec/data`. New Studio strings `designer.field.fieldHistory`, `designer.field.fieldHistoryObjectOff`, `engine.studio.settings.capFieldHistory` and `engine.studio.settings.capFieldHistoryDesc` (en, zh); `designer.field.trackHistory` is removed with the box it labelled. In the language packs, `appDesigner.fieldDesigner.trackHistory` is replaced by `appDesigner.fieldDesigner.fieldHistory`, `fieldHistoryDefault`, `fieldHistoryOn` and `fieldHistoryOff`, in all eleven locales. +- f2ef7d8: fix(ui): the kanban card owner, history timeline, user menu and presence stack draw letters-only initials + + Clause-②: yes (widening) + Metadata-protocol: none + + A person whose display name carries punctuation, such as `Alice (Sales)`, now shows `AS` on the kanban card owner's avatar, the history timeline, the user menu and the presence stack, where those four faces drew `A(`. They now use the same rule as the people cell and the avatar widget: initials are made of letters only, a single-word name gives its first two letters (`Admin` → `AD`), a name of three or more words gives its first and last words' first letters (`John Michael Doe` → `JD`), a single CJK word gives its last one or two characters, and a name with no letter gives `?`. The user menu still falls back to the email's first character when there is no name. + + The rule, `getPersonInitials`, is now exported by `@object-ui/types`, the lowest package all of these faces can reach; `@object-ui/fields` re-exports the same function, so its `getPersonInitials` export is unchanged. `@object-ui/auth` now depends on `@object-ui/types`. +- 57445a6: fix(console): a per-record bulk flow action counts a refused record as refused, with its own message, and stacks no refusal notice + + Clause-②: yes (seat ruling: the published `@object-ui/types` `ActionResult` gains a member; L1-a owes a lane-keep L2 review) + Metadata-protocol: none + + The published `@object-ui/types` adds two optional members, `ActionResult.refusal` and `ActionContext.reportsRefusal`. Nothing existing is narrowed. + + A list view's selection bar can run a `type: 'flow'` action once per selected record. A run that ended on an `end` node with `outcome: 'refused'` answers `200` with `status: "refused"` and a `refusalMessage`. Before this change the bulk result counted such a record as succeeded ("Succeeded 3 / 3"), and one refusal dialog opened on top of the result showing a single record's message, so the other refused records' reasons were lost. + + - The result now counts refused records apart: "Succeeded 1 / 3 · Refused 2". Each refused record is listed with the sentence the flow wrote for it. A refused record has no Retry and is not written to the error CSV: re-running it would get the same answer. When a failed record is retried and the action refuses it, it moves to the refused list. + - No refusal dialog opens during a bulk run. The same action launched from a row menu still opens its Close-only refusal notice, unchanged. + - `ActionResult.refusal` (`{ message }`) is set by the console's flow launch on a run that ended `refused`, beside `success: true` and `handedOff: true`. A caller that counts outcomes reads it as refused, never as done. + - `ActionContext.reportsRefusal` is passed for one dispatch through `ActionRunner.execute`'s `callContext`. A caller that lists refusals itself sets it, and the console's flow handler then opens no notice of its own. +- 1f3e9f6: fix(console): a per-record bulk flow action counts a record whose run paused at a screen as waiting for input, and every paused record's screen opens in turn + + Clause-②: yes + Metadata-protocol: none + + The published `@object-ui/types` adds one optional member, `ActionResult.paused`. Nothing existing is narrowed. + + A list view's selection bar can run a `type: 'flow'` action once per selected record. A run that reaches a `screen` node pauses and waits for input. Before this change the bulk result counted such a record as succeeded ("Succeeded 3 / 3"), and the console held one paused run at a time: each paused record replaced the previous one, so only the last record's screen opened and the other records' runs waited at screens nobody could reach. + + - The result now counts paused records apart: "Succeeded 1 / 3 · Waiting for input 2". Each waiting record is listed by name, under a line saying its screen opens next. A waiting record has no Retry and is not written to the error CSV: a re-run would start a second run. When a failed record is retried and its run pauses, it moves to the waiting list. + - The console now queues paused runs. Its flow runner shows the first paused record's screen, and closing or completing it shows the next one, until none is left. This holds for the console's list runtime and for a list on a record page. + - `ActionResult.paused` (`{ runId }`) is set by the console's flow launch on a run that paused at a screen, beside `success: true` and `handedOff: true`. A caller that counts outcomes reads it as waiting, never as done. +- Updated dependencies [8236d9b] +- Updated dependencies [1d28405] +- Updated dependencies [b02484e] +- Updated dependencies [7a3f86c] +- Updated dependencies [52a2398] +- Updated dependencies [1c05546] +- Updated dependencies [42b4d09] +- Updated dependencies [4ffe9d3] +- Updated dependencies [b38e133] +- Updated dependencies [f796089] +- Updated dependencies [8f49499] +- Updated dependencies [b68f9ae] +- Updated dependencies [2e9e1ac] +- Updated dependencies [8e46424] +- Updated dependencies [f4dbcc2] +- Updated dependencies [9c29d73] +- Updated dependencies [0739dee] +- Updated dependencies [89364b4] +- Updated dependencies [dfc6bbf] +- Updated dependencies [97b9d1e] +- Updated dependencies [0f29688] +- Updated dependencies [5ecf937] +- Updated dependencies [2df9691] +- Updated dependencies [f19e6c6] +- Updated dependencies [feb9b79] +- Updated dependencies [b7d2474] +- Updated dependencies [50f85e9] +- Updated dependencies [c0716ed] +- Updated dependencies [7bd5d28] +- Updated dependencies [9062756] +- Updated dependencies [cdb327f] +- Updated dependencies [6ffa816] +- Updated dependencies [09ba0c7] +- Updated dependencies [b863d2b] +- Updated dependencies [e75a528] +- Updated dependencies [5dd856f] +- Updated dependencies [5dd856f] +- Updated dependencies [61722e9] +- Updated dependencies [f6902e9] +- Updated dependencies [df81f4c] +- Updated dependencies [ed906d5] +- Updated dependencies [e6fa510] +- Updated dependencies [99ece3c] +- Updated dependencies [2495486] +- Updated dependencies [16a96ac] +- Updated dependencies [f4de1de] +- Updated dependencies [53c9575] +- Updated dependencies [7411f9b] +- Updated dependencies [e114324] +- Updated dependencies [f44758b] +- Updated dependencies [f7b172f] +- Updated dependencies [5d2ce34] +- Updated dependencies [59392ed] +- Updated dependencies [c99156e] +- Updated dependencies [7ee7a61] +- Updated dependencies [9b6db73] +- Updated dependencies [f98f18c] +- Updated dependencies [401eb44] +- Updated dependencies [29f1280] +- Updated dependencies [eb7ad70] +- Updated dependencies [de25d58] +- Updated dependencies [fe19096] +- Updated dependencies [4fb7169] +- Updated dependencies [d953558] +- Updated dependencies [af566c2] +- Updated dependencies [cedc094] +- Updated dependencies [bb1c55d] +- Updated dependencies [d7c257e] +- Updated dependencies [40e22f1] +- Updated dependencies [bc9ace2] +- Updated dependencies [d6be99d] +- Updated dependencies [0a1b69c] +- Updated dependencies [643fe3b] +- Updated dependencies [0a3dd40] +- Updated dependencies [6b51822] +- Updated dependencies [f3c9d42] +- Updated dependencies [8df7bf2] +- Updated dependencies [170ca48] +- Updated dependencies [d33bf5a] +- Updated dependencies [236c804] +- Updated dependencies [c261a7c] +- Updated dependencies [f548bdc] +- Updated dependencies [e72f2aa] +- Updated dependencies [f2a990b] +- Updated dependencies [a23164e] +- Updated dependencies [8c5a81e] +- Updated dependencies [6db1dc2] +- Updated dependencies [78437e2] +- Updated dependencies [ed4d322] +- Updated dependencies [0628e08] +- Updated dependencies [b7fe94a] +- Updated dependencies [0b2118f] +- Updated dependencies [ad65d82] +- Updated dependencies [cb5a975] +- Updated dependencies [92e0475] +- Updated dependencies [ad92dfd] +- Updated dependencies [bb89b2d] +- Updated dependencies [8da2b7e] +- Updated dependencies [7c9b22b] +- Updated dependencies [9742142] +- Updated dependencies [f3a8a13] +- Updated dependencies [543585d] +- Updated dependencies [70194ff] +- Updated dependencies [7a5ae65] +- Updated dependencies [70d07fd] +- Updated dependencies [73f2cf4] +- Updated dependencies [60e79ed] +- Updated dependencies [595844b] +- Updated dependencies [28588d0] +- Updated dependencies [3b58921] +- Updated dependencies [c45dd80] +- Updated dependencies [48c5484] +- Updated dependencies [cb2d6aa] +- Updated dependencies [d463c46] +- Updated dependencies [7501d0c] +- Updated dependencies [45ef94e] +- Updated dependencies [573a376] +- Updated dependencies [cbc06ff] +- Updated dependencies [8f141a2] +- Updated dependencies [d24e4ab] +- Updated dependencies [f66340a] +- Updated dependencies [fed637c] +- Updated dependencies [7a7ab47] +- Updated dependencies [08f4bad] +- Updated dependencies [70f454a] +- Updated dependencies [8644ce7] +- Updated dependencies [8aecf6d] +- Updated dependencies [8ddadc1] +- Updated dependencies [a03bc4e] +- Updated dependencies [129e637] +- Updated dependencies [13f5466] +- Updated dependencies [00aa574] +- Updated dependencies [d95d34f] +- Updated dependencies [76eea0f] +- Updated dependencies [84b1e0c] +- Updated dependencies [151e812] +- Updated dependencies [4f9a3f8] +- Updated dependencies [1cda7ea] +- Updated dependencies [01967c3] +- Updated dependencies [8b1841f] +- Updated dependencies [422df61] +- Updated dependencies [06c1f54] +- Updated dependencies [c063734] +- Updated dependencies [0439a04] +- Updated dependencies [f92d271] +- Updated dependencies [3d4f423] +- Updated dependencies [2a6f26a] +- Updated dependencies [fd462c5] +- Updated dependencies [d15e439] +- Updated dependencies [6831e04] +- Updated dependencies [372ce7c] +- Updated dependencies [595e9cb] +- Updated dependencies [20d025f] +- Updated dependencies [64b278e] +- Updated dependencies [695b9db] +- Updated dependencies [d280de9] +- Updated dependencies [6296909] + - @objectstack/spec@18.7.0 + ## 18.6.0 ### Minor Changes diff --git a/ui/packages/types/package.json b/ui/packages/types/package.json index 1b0c103d0c3..93edfe568a2 100644 --- a/ui/packages/types/package.json +++ b/ui/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/types", - "version": "18.6.0", + "version": "18.7.0", "description": "Pure TypeScript type definitions for ObjectUI - The Protocol Layer", "type": "module", "sideEffects": false,