Skip to content

Commit 2e00cd3

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/issue-39392-wip
2 parents b587c8f + 5c00c57 commit 2e00cd3

16 files changed

Lines changed: 121 additions & 34 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@objectstack/skills': patch
3+
---
4+
5+
docs(skills): the objectstack-i18n key map says a navigation translation node takes keywords, with or without a label
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
`skills/objectstack-i18n/SKILL.md`, one line of the key map: `apps.{app}: label, description, navigation.{id}.label` becomes `navigation.{id}.{label,keywords[]} (at least one)`. The contract has accepted a node with `keywords` and no `label` since the navigation translation node made `label` optional beside `keywords`; the skill still listed `label` alone, so an agent asked for a locale's search words wrote a placeholder label next to them, or did not know the key.
11+
12+
`keywords` is a list of strings, this locale's search words for the entry. A node with neither key is still refused. One eval case in `evals/bundles-locales-coverage.json` asks for a keywords-only node.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
'@objectstack/skills': patch
3+
'@objectstack/spec': patch
4+
'@objectstack/mcp': patch
5+
---
6+
7+
docs(skills, spec, mcp): the UI skill shows a `BulkActionResult` entry and what a "stepped" form is, and the remaining AI tool name statements spell the qualified name
8+
9+
Clause-②: no
10+
Metadata-protocol: none
11+
12+
- `skills/objectstack-ui/rules/actions.md`: the selection bullet now shows the value an `execution: 'aggregate'` body resolves with, as `BulkActionResultSchema` declares it: `{ succeeded: [ids], failed: [{ id, message }] }`, both lists, the reason under `message` and not `error`. The bullet named the type without an entry, and answers written from it put the reason under `error` or pushed objects into `succeeded`, neither of which parses.
13+
- `skills/objectstack-ui/rules/list-views.md`: Forms now says a "stepped" form is the object's field groups in order (on a `form` item, `type: 'wizard'`), before any `kind: 'react'` wizard page.
14+
- `skills/objectstack-ai/SKILL.md`: an AI-exposed action's tool is spelled `action_<object>__<action>` (`action_<action>` for a top-level action) in the Skills example and under "Actions as AI Tools". Eval case 1 of `skills-tools-knowledge` says the action is bound to `support_case` and requires `action_support_case__crm_escalate_case`.
15+
- `@objectstack/spec`: the `stack.tools` description and its TSDoc spell the same two names in place of `action_<name>`. Text only: no schema shape changes.
16+
- `@objectstack/mcp`: the README's skill-prompt paragraph spells the same names.
17+
18+
The older `action_<action>` spelling of an object-bound action still resolves, to every action of that name whatever its object; nothing an author wrote before is refused.

‎content/docs/ai/tools.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ and the `stack.tools` field says so in its own description:
1919

2020
```text
2121
AI Tool metadata records — optional refinement layer, never required: the
22-
default path is skills referencing platform tools or materialised action_<name>
23-
tools (ADR-0109)
22+
default path is skills referencing platform tools or materialised action tools,
23+
action_<object>__<action> or action_<action> for a top-level action (ADR-0109)
2424
```
2525
</Callout>
2626

‎content/docs/getting-started/common-patterns.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ export const supportAgent = defineAgent({
404404
You can search for customer records, look up order status,
405405
and create support tickets. Always be polite and professional.`,
406406
// Capability lives in skills, never inline on the agent (ADR-0064): a
407-
// skill names the platform data tools plus the `action_<name>` tools
407+
// skill names the platform data tools plus the `action_<object>__<action>` tools
408408
// materialised from your own AI-exposed Actions.
409409
skills: ['customer_lookup', 'order_status', 'ticket_intake']
410410
});

‎content/docs/ui/apps.mdx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,9 @@ key instead.
315315
`keywords` lists other words a person may type to find the entry, such as its old
316316
name after a rename; they never gate anything, and a translation bundle gives each
317317
locale its own under `apps.<app>.navigation.<id>.keywords`, beside that entry's
318-
`label`. A locale's words add to the entry's own, never replace them, so a word
318+
`label` or without one. A locale that gives an entry keywords and no `label` shows
319+
the label the next locale in its fallback chain gives, else the entry's source label,
320+
and `os i18n check` still lists that label as untranslated. A locale's words add to the entry's own, never replace them, so a word
319321
written in the source language finds the entry in every language. The ⌘K command
320322
palette finds an `object`, `dashboard`, `page`, `report`, `component` or `url` entry
321323
by any of them, and when only one of these words matched it shows that word beside

‎content/docs/ui/translations.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export default defineStack({
8080
| Form sections | `objects.<name>._sections.<section>` |
8181
| Custom validation-rule messages | `objects.<name>._validations.<rule>.message` |
8282
| Activity-milestone timeline rows | `objects.<name>._milestones.<field>.<value>.summary` — keyed by the milestone's watched `field` and the `value` it fires on; the template keeps the authored `{field}` tokens, and a reader in that language reads the row composed from it, a select token named by its translated option label. A language with no entry reads the authored `summary` |
83-
| App navigation | `apps.<app>.navigation.<id>.label` |
83+
| App navigation | `apps.<app>.navigation.<id>.label` / `keywords` — `keywords` is a list of the locale's search words for the entry, and a node carries at least one of the two. An entry given `keywords` and no `label` shows the label the next locale in the fallback chain gives, else its source label, and `os i18n check` still lists the label as untranslated |
8484
| Dashboard label / description | `dashboards.<name>.label` / `description` |
8585
| Dashboard widget title / description (the card-header subtitle) | `dashboards.<name>.widgets.<widgetId>.title` / `description` |
8686
| Dashboard global-filter label and static option labels | `dashboards.<name>.globalFilters.<filterName>.label` / `.options.<value>` — the key is the filter's `name`, or its `field` when it authors no `name`; an option is keyed by its `value` spelled as a string |

‎packages/mcp/README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,8 @@ and any server a host installs `registerSkillPrompts` on, offers a skill on
294294
`prompts/list` and `prompts/get` only when that server lists every tool the
295295
skill binds (`SkillSchema.tools`), read from the server's own tool registry when
296296
the prompt request is answered: a plain name by a tool of that name, a trailing
297-
wildcard by any listed tool it matches, and an `action_<name>` entry (or
298-
`action_*`) also by `run_action`. A skill that binds no tool is offered as
297+
wildcard by any listed tool it matches, and an action tool entry (`action_<object>__<action>`,
298+
`action_<action>` or `action_*`) also by `run_action`. A skill that binds no tool is offered as
299299
before, and `prompts/get` answers a withheld skill as it answers an unknown
300300
prompt name.
301301

‎packages/spec/docs/references/api/package-api-assembled.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Installed package row whose manifest is the assembled package body
130130
| **apis** | `{ name: string; path: string; method: Enum<'GET' \| 'POST' \| 'PUT' \| 'DELETE' \| 'PATCH' \| 'HEAD' \| 'OPTIONS'>; summary?: string; … }[]` | optional | API Endpoints — declared endpoints are live from protocol 17; each is gated at publish (ADR-0121) |
131131
| **webhooks** | `{ name: string; label?: string; object?: string; triggers?: Enum<'create' \| 'update' \| 'delete' \| 'bulk_update' \| 'bulk_delete'>[]; … }[]` | optional | Outbound Webhooks |
132132
| **agents** | `{ name: string; label: string; avatar?: string; role: string; … }[]` | optional | AI Agents — platform-internal (ADR-0063 §2): the kernel ships exactly two (ask/build); third parties extend via skills, not agents |
133-
| **tools** | `{ name: string; label: string; description: string; parameters: Record<string, any>; … }[]` | optional | AI Tool metadata records — optional refinement layer, never required: the default path is skills referencing platform tools or materialised action_`<name>` tools (ADR-0109) |
133+
| **tools** | `{ name: string; label: string; description: string; parameters: Record<string, any>; … }[]` | optional | AI Tool metadata records — optional refinement layer, never required: the default path is skills referencing platform tools or materialised action tools, action_`<object>`__`<action>` or action_`<action>` for a top-level action (ADR-0109) |
134134
| **skills** | `{ name: string; label: string; description?: string; surface?: Enum<'ask' \| 'build' \| 'both'>; … }[]` | optional | AI Skills (reusable capability bundles — the third-party AI extension primitive, ADR-0063) |
135135
| **aiContexts** | `{ name: string; label: string; object: string; fields?: string[]; … }[]` | optional | AI context packs — the material of one record handed to a model, read as the caller by get_record_context (ADR-0160). A host serves that tool only when it mounts the record-context service: the CLI mounts it where `requires` includes `record-context`, and a host that composes its own kernel lists `RecordContextServicePlugin` in `plugins` |
136136
| **knowledgeSources** | `{ name: string; label: string; description?: string; adapter?: string; … }[]` | optional | Knowledge sources — which object's records the knowledge service indexes, which fields are sent to the embedder as content, and which adapter holds the index (ADR-0161 K4). A host indexes them only when it mounts the knowledge service: the CLI mounts it, with the deployment's store, where the stack holds a source or `requires` includes `knowledge`, and a host that composes its own kernel lists `KnowledgeServicePlugin` in `plugins` |
@@ -383,7 +383,7 @@ This schema accepts one of the following structures:
383383
| **apis** | `{ name: string; path: string; method: Enum<'GET' \| 'POST' \| 'PUT' \| 'DELETE' \| 'PATCH' \| 'HEAD' \| 'OPTIONS'>; summary?: string; … }[]` | optional | API Endpoints — declared endpoints are live from protocol 17; each is gated at publish (ADR-0121) |
384384
| **webhooks** | `{ name: string; label?: string; object?: string; triggers?: Enum<'create' \| 'update' \| 'delete' \| 'bulk_update' \| 'bulk_delete'>[]; … }[]` | optional | Outbound Webhooks |
385385
| **agents** | `{ name: string; label: string; avatar?: string; role: string; … }[]` | optional | AI Agents — platform-internal (ADR-0063 §2): the kernel ships exactly two (ask/build); third parties extend via skills, not agents |
386-
| **tools** | `{ name: string; label: string; description: string; parameters: Record<string, any>; … }[]` | optional | AI Tool metadata records — optional refinement layer, never required: the default path is skills referencing platform tools or materialised action_`<name>` tools (ADR-0109) |
386+
| **tools** | `{ name: string; label: string; description: string; parameters: Record<string, any>; … }[]` | optional | AI Tool metadata records — optional refinement layer, never required: the default path is skills referencing platform tools or materialised action tools, action_`<object>`__`<action>` or action_`<action>` for a top-level action (ADR-0109) |
387387
| **skills** | `{ name: string; label: string; description?: string; surface?: Enum<'ask' \| 'build' \| 'both'>; … }[]` | optional | AI Skills (reusable capability bundles — the third-party AI extension primitive, ADR-0063) |
388388
| **aiContexts** | `{ name: string; label: string; object: string; fields?: string[]; … }[]` | optional | AI context packs — the material of one record handed to a model, read as the caller by get_record_context (ADR-0160). A host serves that tool only when it mounts the record-context service: the CLI mounts it where `requires` includes `record-context`, and a host that composes its own kernel lists `RecordContextServicePlugin` in `plugins` |
389389
| **knowledgeSources** | `{ name: string; label: string; description?: string; adapter?: string; … }[]` | optional | Knowledge sources — which object's records the knowledge service indexes, which fields are sent to the embedder as content, and which adapter holds the index (ADR-0161 K4). A host indexes them only when it mounts the knowledge service: the CLI mounts it, with the deployment's store, where the stack holds a source or `requires` includes `knowledge`, and a host that composes its own kernel lists `KnowledgeServicePlugin` in `plugins` |

‎packages/spec/src/stack.zod.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1214,13 +1214,14 @@ const STACK_DEFINITION_COLLECTIONS_SHAPE = {
12141214
* default third-party path declares no tool records: a skill's `tools[]`
12151215
* names a platform-registered tool (`PLATFORM_PROVIDED_TOOL_NAMES`) or a
12161216
* tool the runtime materialises from the app's own declarative actions
1217-
* (`action_<name>`) — the executable, its authz and its audit stay on the
1217+
* (`action_<object>__<action>`, or `action_<action>` for a top-level
1218+
* action) — the executable, its authz and its audit stay on the
12181219
* action/flow the app already ships. A `stack.tools` record exists only
12191220
* for AI-presentation refinement (Phase 2: LLM description, parameter
12201221
* narrowing, flow exposure) and has no runtime reader until that lands.
12211222
*/
12221223
agents: z.array(AgentSchema).optional().describe('AI Agents — platform-internal (ADR-0063 §2): the kernel ships exactly two (ask/build); third parties extend via skills, not agents'),
1223-
tools: z.array(ToolSchema).optional().describe('AI Tool metadata records — optional refinement layer, never required: the default path is skills referencing platform tools or materialised action_<name> tools (ADR-0109)'),
1224+
tools: z.array(ToolSchema).optional().describe('AI Tool metadata records — optional refinement layer, never required: the default path is skills referencing platform tools or materialised action tools, action_<object>__<action> or action_<action> for a top-level action (ADR-0109)'),
12241225
skills: z.array(SkillSchema).optional().describe('AI Skills (reusable capability bundles — the third-party AI extension primitive, ADR-0063)'),
12251226
/**
12261227
* [ADR-0160 D1] Context packs: which of one record's fields, related lists

0 commit comments

Comments
 (0)