Skip to content

Commit 84d2918

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/metadata-showcase-redesign-ougiov
# Conflicts: # examples/app-showcase/package.json
2 parents 3ddf1e8 + 4f5b791 commit 84d2918

168 files changed

Lines changed: 2339 additions & 154 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/adaptive-ui-skill-doc.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

.changeset/automation-run-history-retention.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

.changeset/flow-enable-disable-status.md

Lines changed: 0 additions & 31 deletions
This file was deleted.

.changeset/relatedlist-describe-fix.md

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
'@objectstack/objectql': patch
3+
'@objectstack/runtime': patch
4+
'@objectstack/core': patch
5+
'@objectstack/service-i18n': patch
6+
'@objectstack/plugin-sharing': patch
7+
---
8+
9+
Wire three more Studio-authored metadata surfaces at runtime (#2605 — the
10+
"declared but never wired" family, following the #2596 hooks template).
11+
12+
**Authored actions now execute (#2605 item 1).** `engine.executeAction`'s map
13+
was only ever populated from the app bundle at boot, so a published `action`
14+
row (standalone or embedded in an authored object's `actions[]`) was stored
15+
and listed but never executable — before OR after a restart. Now:
16+
17+
- `AppPlugin` installs a QuickJS-sandboxed default action runner at boot
18+
(`engine.setDefaultActionRunner`), the action-path twin of the #2596 hook
19+
body runner. Opt out with `OS_DISABLE_AUTHORED_ACTIONS=1`.
20+
- `ObjectQLPlugin` re-registers runtime-authored actions from their
21+
`sys_metadata` rows under `packageId: 'metadata-service'` at
22+
`kernel:ready`, on `metadata:reloaded`, and on `action`/`object` protocol
23+
mutations — saves, publishes, edits, and deletes take effect live.
24+
Package-artifact actions are excluded (AppPlugin owns those; re-registering
25+
would clobber their handlers).
26+
27+
**Authored translations reach the i18n runtime (#2591).** `translation`
28+
metadata items (single-locale `AppTranslationBundle` payloads; locale from
29+
`_meta.locale`, a top-level `locale`, or a BCP-47-shaped item name) now load
30+
into the i18n service as a separate authored layer that overlays static
31+
bundles. Both adapters carry the layer — service-i18n's `FileI18nAdapter`
32+
AND the kernel's in-memory fallback (`createMemoryI18n`), which is what dev
33+
and standalone stacks actually run. The shared sync
34+
(`wireAuthoredTranslationSync`, exported from `@objectstack/core`, wired by
35+
the runtime's AppPlugin and by I18nServicePlugin with single-owner
36+
semantics) runs at `kernel:ready`, on `metadata:reloaded`, and on
37+
`translation` protocol mutations, with clear-then-reload semantics so
38+
deleted items/keys stop resolving instead of lingering in the deep-merged
39+
map.
40+
41+
**Sharing rules created at runtime bind without a restart (#2592).**
42+
`bindRuleHooks` was boot-only, so the first rule authored at runtime for an
43+
object with no boot-time rule silently never evaluated (rule authoring is a
44+
data insert — `metadata:reloaded` never fires). The sharing plugin now binds
45+
afterInsert/afterUpdate/afterDelete triggers on `sys_sharing_rule` that
46+
unbind + re-bind the rule-hook package from a fresh `listRules()`, serialized
47+
so overlapping writes can't leave a stale snapshot bound, and fail-safe so a
48+
rebind failure never fails the rule write.

examples/app-crm/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# @objectstack/example-crm
22

3+
## 4.0.71
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [497bda8]
8+
- Updated dependencies [93e6d02]
9+
- @objectstack/runtime@12.1.0
10+
- @objectstack/spec@12.1.0
11+
312
## 4.0.70
413

514
### Patch Changes

examples/app-crm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@objectstack/example-crm",
3-
"version": "4.0.70",
3+
"version": "4.0.71",
44
"description": "Minimal CRM example — a smoke-test workspace that exercises the metadata loading pipeline (objects → views → app → dashboard → hook → flow → seed). For a full-featured enterprise CRM see https://github.com/objectstack-ai/hotcrm.",
55
"license": "Apache-2.0",
66
"private": true,

examples/app-showcase/CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# @objectstack/example-showcase
22

3+
## 0.2.17
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [497bda8]
8+
- Updated dependencies [93e6d02]
9+
- @objectstack/runtime@12.1.0
10+
- @objectstack/spec@12.1.0
11+
- @objectstack/connector-rest@12.1.0
12+
- @objectstack/connector-slack@12.1.0
13+
- @objectstack/cloud-connection@12.1.0
14+
- @objectstack/driver-sql@12.1.0
15+
316
## 0.2.16
417

518
### Patch Changes

examples/app-showcase/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@objectstack/example-showcase",
3-
"version": "0.2.16",
3+
"version": "0.2.17",
44
"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.",
55
"license": "Apache-2.0",
66
"private": true,

examples/app-todo/CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# @objectstack/example-todo
22

3+
## 4.0.71
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [497bda8]
8+
- Updated dependencies [93e6d02]
9+
- @objectstack/runtime@12.1.0
10+
- @objectstack/spec@12.1.0
11+
- @objectstack/client@12.1.0
12+
- @objectstack/mcp@12.1.0
13+
- @objectstack/metadata@12.1.0
14+
- @objectstack/objectql@12.1.0
15+
- @objectstack/driver-sqlite-wasm@12.1.0
16+
- @objectstack/knowledge-memory@12.1.0
17+
- @objectstack/service-knowledge@12.1.0
18+
319
## 4.0.70
420

521
### Patch Changes

0 commit comments

Comments
 (0)