Skip to content

Commit 68250f6

Browse files
feat(studio): author context packs (ai_context) in Studio — a form, and a related-lists block scoped to each child (#37315)
<!-- claude-projects-attribution: {"github_login":"os-alice"} --> _Requested by **Alice** · [project thread](https://claude.ai/code/project/chan_01NoziMoftaSPmzgKNjJGePH?thread=cmsg_01NoziMoftaSPmzgKNjJGePH8HwrkPJDQVtqCcoED6n6og)_ Fixes #37143 Clause-②: yes (widening) — one new public export, `aiContextForm` from `@objectstack/spec/ai`, and `/meta/types` now serves a form for `ai_context`; no key is added to what a pack may hold Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:应用作者在 Studio 里可以新建、编辑资料包:选根对象和它的字段,选指向它的关联列表并为每个列表选列,选正文字段,再保存发布。 - 为什么做:记录 AI 问询专题的第 7 步,让资料包不必写在代码包里(运行时可编辑)。 - 出错会怎样:最坏是编辑界面选项不对或保存被拒;已有的资料包和对象的关联列表编辑不受影响,可以直接撤回。 - 要你做的:无。 ## What changes ADR-0160 D1, clause 2 (runtime authoring). The type was already registered with `allowRuntimeCreate: true` and its author defects are already reported at save (`validateAiContext` on the runtime publish door); what was missing was a form, so Studio's generic metadata editor had nothing to lay a pack out with. - **`aiContextForm`** (`packages/spec/src/ai/ai-context.form.ts`, exported from `@objectstack/spec/ai`, registered as `ai_context` in `METADATA_FORM_REGISTRY`), by the `skill.form.ts` precedent. Two sections: Basics (`name`, `label`, the root `object` through `ref:object`) and Material (`fields` as `field-multi` with `dependsOn: 'object'`, the `page.form.ts` precedent; `related` as `related-list-entries` with `dependsOn: 'object'`, the `object.form.ts` precedent; `body` as a composite whose `field` is a `field-ref` over the root). The form names every top-level key `AiContextSchema` accepts and no other (the registry-wide reconciliation test). - **The `related-list-entries` block learns the pack's entry shape** (`ui/packages/app-shell/src/views/metadata-admin/ContextPackRelatedEntries.tsx`). A pack entry is `{ object, field?, fields? }`, not the object form's bare name or `{ list, label?, columns? }`, so the block now tells the two apart by the entry schema it is handed (`items.properties.object`), never by the type's name: - the add picker offers every reference field of a served object whose target is the root, resolved with the spec's own `REFERENCE_VALUE_TYPES` and `referenceTargetOf`, the link `validateAiContext` resolves (a self-reference and each of a child's several links included); a pick is written `{ object, field }`; - each entry's columns are picked from THAT child object's fields (`useObjectFields`, draft-overlaid), never the root's; - it stops at the schema's `maxItems` (3 lists, 10 columns), and an emptied list or column set removes its key (both arrays are `minItems: 1`); - a stored entry the catalog shows no link for is kept and marked; the save-time report is its judge. - The object form's `relatedLists` keeps its chip face, unchanged (`RelatedListNameEntries`, the old body). - while the object list is loading, or after it failed (`getTypeStatus('object')`), no stored entry is marked unlinked and the add picker says loading / could not load, never "no reference field". - **An emptied picker removes its key** (L2 review on this PR, S1). Removing the last chip of a `field-multi` whose schema has `minItems >= 1` (the pack's `fields`) removes the key instead of writing `[]`; in a composite, a cleared sub-field drops its key (as `setField` already does at the top level), and a composite left empty while its schema requires a key that has no default is removed (the pack's `body` after "None") instead of written as `{ field: '' }`. A composite whose required keys all carry a default keeps `{}` (S3: `/meta/types` serves the output derivation, which lists a defaulted key as required; a view's `pagination: {}` and `selection: {}` are read by their presence). Both were drafts the save door refuses with no way back in the form. `SchemaForm.tsx` (`compositeWith`) and `widgets.tsx` (`emptyArrayRefused`). - **Words**: eleven `engine.form.contextPack.*` keys in the studio namespace (en, zh); the platform's `metadataForms.ai_context` bundles regenerated (`node scripts/check-i18n-bundles.mjs --write`), with the zh-CN leaves translated by hand, and the console's zh-CN overlay rows (`metadata-form-zh-cn.ts`) copied from them. - `api-surface/ai.json` and `export-origins/ai.json` regenerated for the one new export. #37180's outcome, read for the soft dependency: PR #37209 (merged by the maintainer) puts `ai_context` in ADR-0150's package-scoped bucket beside `skill`. A pack created in Studio is therefore saved the way a skill created in Studio is, into the package the editor is working in; nothing in this PR picks a package for it, and the reader move is #37216. ## Tests - `packages/spec/src/ai/ai-context.form.test.ts`: the registry entry, the identity rows, and every picker scoped by `object`. - `ui/packages/app-shell/src/views/metadata-admin/ContextPackRelatedEntries-37143.test.tsx` (12): the four rework pins (loading / idle / error catalog marks nothing; the pack's last root field removed writes no key; an array without `minItems` still writes `[]`; "None" for the body removes `body`, a composite requiring nothing keeps `{}`), and the original eight: the schema discriminator; the links offered (four, the self-reference and both links of one child, an unrelated object absent); a pick written as `{ object, field }`; columns offered from the child, not the root; column and list removal dropping their keys; an unlinked stored entry kept and marked and a listed link not offered again; the bound and the no-root state; the host id on the add picker. Every value the block writes is parsed with `AiContextSchema`. - `RelatedListEntriesWidget-35923.test.tsx` (the object form's face) still passes unchanged. - `openPathObjectReaders-12811.test.ts` (app-shell console): one row, `ContextPackRelatedEntries.tsx` classified `off` among the readers of `useMetadata().objects` (the block reads the served object list for its link catalog and is mounted only in the metadata admin, never on an app's object-list open). - `bare-type-display-echo-decisions.test.ts` and `object-lifecycle-panel-echo-decisions.test.ts` (platform-objects): literal counts and a dated comment row only, because `ai_context` now has a form and its eighteen leaves are authored in zh-CN, ja-JP and es-ES (surface widened by the seat, claim amendment 1). <details><summary>Local runs (head 4b6929e)</summary> - `pnpm --filter @objectstack/spec test`: exit 0. `pnpm --filter @objectstack/spec typecheck`: exit 0. - `pnpm --filter @objectstack/platform-objects test`: Test Files 126 passed (126), Tests 2161 passed (2161). typecheck: exit 0. - `ui`: `pnpm exec vitest run packages/app-shell/src/views/metadata-admin/ packages/app-shell/src/__tests__/`: Test Files 824 passed (824), Tests 9036 passed, 1 skipped. `packages/i18n/`: Test Files 111 passed (111). The rest of app-shell's suite is left to `Test UI` (a full local run did not finish in 54 minutes on the shared box and was stopped). - Ablation, once: the pack branch of `RelatedListEntriesWidget` disabled (`if (false && isContextPackEntrySchema(schema))`, written and restored by `scripts/ablation-replace.mjs`, blob equal to HEAD after restore) turns the new file red, 7 failed of 8; the one that stays green is the helper-only case. - `node scripts/check-i18n-bundles.mjs`: exit 0, every bundle in sync. `pnpm --filter @objectstack/spec check:generated`: api-surface and export-origins regenerated with `--fix`, then clean. - After the merge of `main` and the reader-table row: `packages/app-shell/src/console/__tests__/openPathObjectReaders-12811.test.ts` 3/3 (it was the one red file of `Test UI (15/16)` at 7d37a1d); spec 894 files and platform-objects 126/2161 green again after the merge. - `node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --ran`: at 4b6929e, 93 derived, 92 run, 1 NOT-MEASURED (exit 3, prerequisite not met here: `check-plugin-teardown-shape.mjs --self-test`), 0 UNRUN. - CI at 3a215ad: 59 success, 10 expected skip, 0 failed. At 6ada5fd: 57 success, 10 expected skip, 2 failed (`Test UI (5/16)` and its aggregator), the one failure `packages/auth/src/__tests__/AuthProvider.test.tsx` (objectstack#36972 pin, `mounts` 2 vs 1), in a package this PR does not touch; it passed 3 of 3 runs locally at 6ada5fd. At 4b6929e: 59 success, 10 expected skip, 0 failed. - Rework (6ada5fd): `ui` `pnpm exec vitest run packages/app-shell/src/views/metadata-admin/ packages/app-shell/src/console/__tests__/openPathObjectReaders-12811.test.ts`: Test Files 800 passed (800), Tests 8588 passed, 1 skipped. Ablation, one at a time with `scripts/ablation-replace.mjs` (blob equal to HEAD after each restore): the `field-multi` prune off, the composite's empty-required prune deleted, the catalog state forced `ready`; each turns exactly its own pin red (1 failed of 12). - Rework 2 (4b6929e): `ui` `pnpm exec vitest run packages/app-shell/src/views/metadata-admin/`: Test Files 799 passed (799), Tests 8589 passed, 1 skipped; `ContextPackRelatedEntries-37143.test.tsx` 16/16, its new pins built on the SERVED derivation (`z.toJSONSchema(getMetadataTypeSchema(type), { unrepresentable: 'any' })`): view `pagination`, `selection`, `gallery` keep `{}`, view `kanban` and the pack's `body` are removed. Ablation: the default check removed (every required key counts) turns those three red (3 failed of 16), restored to HEAD. Swept every composite row of the registered forms against the served derivation: the rows whose required keys all carry defaults (view `selection`, `pagination`, `gallery`, `userFilters`, `appearance`, `userActions`, `navigation`, `sharing`; object `enable`, `access`, `publicSharing`; field `currencyConfig`; hook `retryPolicy`; report and dashboard `dateRange`, dashboard `header`; page `interfaceConfig.appearance`, `interfaceConfig.userActions`; agent `planning`; flow `errorHandling`) keep `{}`; the rest have a required key with no default and are removed when emptied. - NOT MEASURED locally: `@object-ui/app-shell` and `@object-ui/i18n` type-check (the ui workspace's own packages have no `dist/` in this container, so tsc stops on module resolution); `Type Check UI` is the reading. </details> ## Acceptance notes - The card's end-to-end clause (an author creates a pack in Studio and `get_record_context` serves it) is covered here in pieces, not by one booted host: the block's every write parses as a pack; the metadata API save of an `ai_context` row is `protocol.runtime-authoring-gate.test.ts` (metadata-protocol); the record-context door reads the protocol's merged `ai_context` listing (`mcp-record-context-tools-bridge.test.ts`, runtime). Measured once live as well (showcase booted with `objectstack dev --seed-admin`, the `ui/` console served by Vite against it, Chromium via Playwright, at the rework's source): Studio → AI → AI Context Pack → create `project_brief` on `showcase_project` saved and published (`PUT …/meta/ai_context/project_brief?mode=draft` 200, `POST …/publish` 200); edit: root fields `name`, `status`; the add picker offered the four links to the root (`showcase_client_brief.project`, `showcase_field_zoo.f_master_detail`, `showcase_project_membership.project`, `showcase_task.project`); the columns offered were `showcase_task`'s fields; body chosen then set to "None"; saved body `{"name":"project_brief","label":"Project brief","object":"showcase_project","fields":["name","status"],"related":[{"object":"showcase_task","field":"project","fields":["title","status"]}]}` (no `body` key), 200 and published. A second edit removed both root fields: saved without `fields`, 200. Then MCP `get_record_context` (`objectName: showcase_project`, `context: project_brief`) on a seeded project answered the pack, with the task rows' `title` and `status`. - The body picker offers every root field, not only the long-text ones: `field-ref` has no type filter, and a non-long-text pick is reported at save (`ai-context-body-not-long-text`). - The link catalog is the console's served object list (`useMetadata().objects`); an object it does not serve is not offered, and a stored entry naming one is kept and marked. ## Verification Two minutes: open Studio, pick a package, open AI → AI Context Pack (advanced fold), create one; choose a root object with a child list (showcase: an object another object looks up), add the related list and pick a column. Expected: the column picker lists the child object's fields, and the Source tab shows `related: [{ object, field, fields }]`. Read first, by risk: `ContextPackRelatedEntries.tsx` (`contextPackLinks`, `ContextPackRelatedEntries`), the dispatch at the top of `RelatedListEntriesWidget` in `widgets.tsx`, `ai-context.form.ts`. --- _Generated by [Claude Code](https://claude.ai/code/session_011y7As7YaCaudBfnWZagi4R)_ <!-- signed: repo:objectstack#7 · os-alice · session_011y7As6JrAPNfuwC2RLXXGu --> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent c3c04a2 commit 68250f6

35 files changed

Lines changed: 1513 additions & 25 deletions
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
'@objectstack/spec': patch
3+
'@objectstack/platform-objects': patch
4+
'@object-ui/app-shell': patch
5+
'@object-ui/i18n': patch
6+
---
7+
8+
feat(studio): author context packs (`ai_context`) in Studio — a form for the type, and a related-lists block that picks each list's columns from its own child object
9+
10+
Clause-②: yes (widening) — one new public export, `aiContextForm` from `@objectstack/spec/ai`, and `/meta/types` now serves a form for `ai_context`; no key is added to what a pack may hold
11+
Metadata-protocol: none
12+
13+
ADR-0160 D1, clause 2 (runtime authoring). A context pack can now be created and edited in Studio like a skill: Studio's metadata editor lays it out with the new `aiContextForm` (`@objectstack/spec/ai`, registered in `METADATA_FORM_REGISTRY` as `ai_context`), and saving goes through the metadata API, where the pack's author defects are reported at save as before.
14+
15+
- **Root object and its fields.** The root is picked from the object catalog; `fields` is the generic field picker scoped to that root (`field-multi`, `dependsOn: 'object'`); `body.field` is a single field picker over the root's fields.
16+
- **Related lists.** `related` uses the `related-list-entries` block. Under a pack, whose entries are `{ object, field?, fields? }`, the block offers every reference field of a served object that points at the root (a self-reference and each of a child's several links included) and writes the pick as `{ object, field }`; each entry's columns are picked from that child object's fields. It stops adding at the schema's bounds (3 lists, 10 columns), and an emptied list or column set removes its key. A stored entry the catalog shows no link for is kept and marked; the save-time report judges it. The object form's `relatedLists` keeps its chip face unchanged: the block tells the two apart by the entry schema it is handed.
17+
- **An emptied picker removes its key.** In Studio's metadata editor, removing the last chip of a field list whose schema has `minItems: 1` (a pack's `fields`) now removes the key instead of writing `[]`, and a composite left with no value while its schema requires a key that has no default (a pack's `body` after choosing "None") is removed instead of written as `{ field: '' }`; a composite whose required keys all carry a default (a view's `pagination`, `selection`) keeps `{}`; both were drafts the save refused with no way back in the form. A cleared sub-field of any composite drops its key, as a cleared top-level field already did.
18+
- **The related-lists block waits for the object list.** While the object list loads, or after it failed, no stored entry is marked as unlinked and the add picker says it is loading or could not load.
19+
- No key is added to `AiContextSchema`, and nothing a pack may hold changes.

‎packages/platform-objects/src/apps/translations/ar.metadata-forms.generated.ts‎

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3161,6 +3161,46 @@ export const arMetadataForms: NonNullable<TranslationData['metadataForms']> = {
31613161
}
31623162
},
31633163
ai_context: {
3164-
label: "حزمة سياق الذكاء الاصطناعي"
3164+
label: "حزمة سياق الذكاء الاصطناعي",
3165+
sections: {
3166+
basics: {
3167+
label: "Basics",
3168+
description: "The pack's identity and the object whose records it reads."
3169+
},
3170+
material: {
3171+
label: "Material",
3172+
description: "What of the record is handed to the model. Each picker offers the fields of the root object, or of the related list's own object."
3173+
}
3174+
},
3175+
fields: {
3176+
name: {
3177+
label: "Name",
3178+
helpText: "Unique identifier (snake_case). A skill's context key and the get_record_context tool name the pack by it."
3179+
},
3180+
label: {
3181+
label: "Label",
3182+
helpText: "Display name, the header of the tool answer. A pack has no description: write its purpose here."
3183+
},
3184+
object: {
3185+
label: "Root object",
3186+
helpText: "The root object: the pack reads one record of it."
3187+
},
3188+
fields: {
3189+
label: "Fields",
3190+
helpText: "The root object's fields handed to the model, in order (at most 30). A lookup among them is answered with the name of the record it points at."
3191+
},
3192+
related: {
3193+
label: "Related lists",
3194+
helpText: "Child lists that point at the record, one level deep (at most 3). Each list names its child object, the reference field that points at the root, and the columns read for each row (at most 10); with no columns a row is read by its name."
3195+
},
3196+
body: {
3197+
label: "Body",
3198+
helpText: "The one long-text field read as the record's body."
3199+
},
3200+
"body.field": {
3201+
label: "Body field",
3202+
helpText: "A long-text field of the root object (textarea, markdown, html, richtext). Any other field is reported when the pack is saved, and the pack then carries no body."
3203+
}
3204+
}
31653205
}
31663206
};

‎packages/platform-objects/src/apps/translations/ar.source-hashes.generated.ts‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,24 @@
1818
*/
1919

2020
export const arGeneratedSourceHashes: Readonly<Record<string, string>> = {
21+
"metadataForms.ai_context.fields.body.field.helpText": "e25b48c15258b83d",
22+
"metadataForms.ai_context.fields.body.field.label": "1b880a5fad37e8a3",
23+
"metadataForms.ai_context.fields.body.helpText": "48e8d6e37b041d39",
24+
"metadataForms.ai_context.fields.body.label": "d1753a024d6a9bed",
25+
"metadataForms.ai_context.fields.fields.helpText": "b6f210cfc6f2f162",
26+
"metadataForms.ai_context.fields.fields.label": "f316ec6025047133",
27+
"metadataForms.ai_context.fields.label.helpText": "a7560b638d2146e7",
28+
"metadataForms.ai_context.fields.label.label": "c680364257b11569",
29+
"metadataForms.ai_context.fields.name.helpText": "41ef86776bba4abf",
30+
"metadataForms.ai_context.fields.name.label": "5274417ff1ccaf01",
31+
"metadataForms.ai_context.fields.object.helpText": "d785b8445fac8dfe",
32+
"metadataForms.ai_context.fields.object.label": "d465a03c4dfc1d33",
33+
"metadataForms.ai_context.fields.related.helpText": "135e19ad08da41fd",
34+
"metadataForms.ai_context.fields.related.label": "32c91f670a44397f",
35+
"metadataForms.ai_context.sections.basics.description": "4d638a6cd36c7175",
36+
"metadataForms.ai_context.sections.basics.label": "55562f900da68c5d",
37+
"metadataForms.ai_context.sections.material.description": "b8d9cf447db8cfe1",
38+
"metadataForms.ai_context.sections.material.label": "11b295666d0c7917",
2139
"metadataForms.dashboard.fields.dateRange.allowCustomRange.helpText": "1cdc93f55eefade7",
2240
"metadataForms.dashboard.fields.dateRange.allowCustomRange.label": "a1fb0e1cf5fe5d8e",
2341
"metadataForms.dashboard.fields.dateRange.defaultRange.helpText": "afff2187966a112f",

‎packages/platform-objects/src/apps/translations/bare-type-display-echo-decisions.test.ts‎

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -813,16 +813,18 @@ describe('#19403 round 7 — the population, DERIVED from the registry and a sha
813813

814814
it('the BARE predicate splits that population, and is read off the SHAPE not a name list', () => {
815815
// Lit.
816-
expect(BARE_TYPES.length).toBe(16);
817-
expect(PANEL_TYPES.length).toBe(17);
816+
// 16 / 17 → 15 / 18: `ai_context` gained its form (ADR-0160 D1 clause 2,
817+
// #37143), so it is a panel type now.
818+
expect(BARE_TYPES.length).toBe(15);
819+
expect(PANEL_TYPES.length).toBe(18);
818820
expect(BARE_TYPES.length + PANEL_TYPES.length).toBe(REGISTRY_TYPES.length);
819-
for (const type of ['seed', 'mapping', 'api', 'doc', 'book', 'capability', 'picklist', 'sharing_rule', 'queue', 'assignment_rule', 'object_extension', 'ai_context']) {
821+
for (const type of ['seed', 'mapping', 'api', 'doc', 'book', 'capability', 'picklist', 'sharing_rule', 'queue', 'assignment_rule', 'object_extension']) {
820822
expect(BARE_TYPES, `${type} is bare`).toContain(type);
821823
}
822824
for (const type of AUTHORED_BARE_TYPES) expect(BARE_TYPES, `${type} is bare`).toContain(type);
823-
// 27 leaves: sixteen labels, and a description on the eleven that carry one.
824-
expect(BARE_LEAVES.length).toBe(27);
825-
expect(BARE_LEAVES.filter((l) => l.prop === 'label').length).toBe(16);
825+
// 26 leaves: fifteen labels, and a description on the eleven that carry one.
826+
expect(BARE_LEAVES.length).toBe(26);
827+
expect(BARE_LEAVES.filter((l) => l.prop === 'label').length).toBe(15);
826828
expect(BARE_LEAVES.filter((l) => l.prop === 'description').length).toBe(11);
827829
expect(BARE_LEAVES.every((l) => ['label', 'description'].includes(l.prop))).toBe(true);
828830
});
@@ -904,13 +906,13 @@ describe('#19403 round 7 — the population, DERIVED from the registry and a sha
904906
expect(flagged.length).toBe(BARE_LEAVES.length);
905907
});
906908

907-
it('⭐ this class is now DONE — zero of its 27 leaves echoes in all three locales', () => {
909+
it('⭐ this class is now DONE — zero of its 26 leaves echoes in all three locales', () => {
908910
const echoing = BARE_LEAVES.filter((l) =>
909911
TRANSLATED_LOCALES.every(([, forms]) => forms[l.type]?.[l.prop] === l.en),
910912
);
911913
expect(echoing.map((l) => `${l.type}.${l.prop}`)).toEqual([]);
912914
// Lit — and it really walked the class, which a zero alone would not show.
913-
expect(BARE_LEAVES.length).toBe(27);
915+
expect(BARE_LEAVES.length).toBe(26);
914916
});
915917
});
916918

‎packages/platform-objects/src/apps/translations/de.metadata-forms.generated.ts‎

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3161,6 +3161,46 @@ export const deMetadataForms: NonNullable<TranslationData['metadataForms']> = {
31613161
}
31623162
},
31633163
ai_context: {
3164-
label: "KI-Kontextpaket"
3164+
label: "KI-Kontextpaket",
3165+
sections: {
3166+
basics: {
3167+
label: "Basics",
3168+
description: "The pack's identity and the object whose records it reads."
3169+
},
3170+
material: {
3171+
label: "Material",
3172+
description: "What of the record is handed to the model. Each picker offers the fields of the root object, or of the related list's own object."
3173+
}
3174+
},
3175+
fields: {
3176+
name: {
3177+
label: "Name",
3178+
helpText: "Unique identifier (snake_case). A skill's context key and the get_record_context tool name the pack by it."
3179+
},
3180+
label: {
3181+
label: "Label",
3182+
helpText: "Display name, the header of the tool answer. A pack has no description: write its purpose here."
3183+
},
3184+
object: {
3185+
label: "Root object",
3186+
helpText: "The root object: the pack reads one record of it."
3187+
},
3188+
fields: {
3189+
label: "Fields",
3190+
helpText: "The root object's fields handed to the model, in order (at most 30). A lookup among them is answered with the name of the record it points at."
3191+
},
3192+
related: {
3193+
label: "Related lists",
3194+
helpText: "Child lists that point at the record, one level deep (at most 3). Each list names its child object, the reference field that points at the root, and the columns read for each row (at most 10); with no columns a row is read by its name."
3195+
},
3196+
body: {
3197+
label: "Body",
3198+
helpText: "The one long-text field read as the record's body."
3199+
},
3200+
"body.field": {
3201+
label: "Body field",
3202+
helpText: "A long-text field of the root object (textarea, markdown, html, richtext). Any other field is reported when the pack is saved, and the pack then carries no body."
3203+
}
3204+
}
31653205
}
31663206
};

‎packages/platform-objects/src/apps/translations/de.source-hashes.generated.ts‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,24 @@ export const deGeneratedSourceHashes: Readonly<Record<string, string>> = {
2323
"metadataForms.action.fields.refusals.status.label": "64a420165247654b",
2424
"metadataForms.agent.fields.avatar.label": "0f06369995b69b8b",
2525
"metadataForms.agent.fields.name.label": "5274417ff1ccaf01",
26+
"metadataForms.ai_context.fields.body.field.helpText": "e25b48c15258b83d",
27+
"metadataForms.ai_context.fields.body.field.label": "1b880a5fad37e8a3",
28+
"metadataForms.ai_context.fields.body.helpText": "48e8d6e37b041d39",
29+
"metadataForms.ai_context.fields.body.label": "d1753a024d6a9bed",
30+
"metadataForms.ai_context.fields.fields.helpText": "b6f210cfc6f2f162",
31+
"metadataForms.ai_context.fields.fields.label": "f316ec6025047133",
32+
"metadataForms.ai_context.fields.label.helpText": "a7560b638d2146e7",
33+
"metadataForms.ai_context.fields.label.label": "c680364257b11569",
34+
"metadataForms.ai_context.fields.name.helpText": "41ef86776bba4abf",
35+
"metadataForms.ai_context.fields.name.label": "5274417ff1ccaf01",
36+
"metadataForms.ai_context.fields.object.helpText": "d785b8445fac8dfe",
37+
"metadataForms.ai_context.fields.object.label": "d465a03c4dfc1d33",
38+
"metadataForms.ai_context.fields.related.helpText": "135e19ad08da41fd",
39+
"metadataForms.ai_context.fields.related.label": "32c91f670a44397f",
40+
"metadataForms.ai_context.sections.basics.description": "4d638a6cd36c7175",
41+
"metadataForms.ai_context.sections.basics.label": "55562f900da68c5d",
42+
"metadataForms.ai_context.sections.material.description": "b8d9cf447db8cfe1",
43+
"metadataForms.ai_context.sections.material.label": "11b295666d0c7917",
2644
"metadataForms.api.fields.name.label": "5274417ff1ccaf01",
2745
"metadataForms.app.fields.branding.label": "ec6e391065514b64",
2846
"metadataForms.app.fields.name.label": "5274417ff1ccaf01",

‎packages/platform-objects/src/apps/translations/en.metadata-forms.generated.ts‎

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3161,6 +3161,46 @@ export const enMetadataForms: NonNullable<TranslationData['metadataForms']> = {
31613161
}
31623162
},
31633163
ai_context: {
3164-
label: "AI Context Pack"
3164+
label: "AI Context Pack",
3165+
sections: {
3166+
basics: {
3167+
label: "Basics",
3168+
description: "The pack's identity and the object whose records it reads."
3169+
},
3170+
material: {
3171+
label: "Material",
3172+
description: "What of the record is handed to the model. Each picker offers the fields of the root object, or of the related list's own object."
3173+
}
3174+
},
3175+
fields: {
3176+
name: {
3177+
label: "Name",
3178+
helpText: "Unique identifier (snake_case). A skill's context key and the get_record_context tool name the pack by it."
3179+
},
3180+
label: {
3181+
label: "Label",
3182+
helpText: "Display name, the header of the tool answer. A pack has no description: write its purpose here."
3183+
},
3184+
object: {
3185+
label: "Root object",
3186+
helpText: "The root object: the pack reads one record of it."
3187+
},
3188+
fields: {
3189+
label: "Fields",
3190+
helpText: "The root object's fields handed to the model, in order (at most 30). A lookup among them is answered with the name of the record it points at."
3191+
},
3192+
related: {
3193+
label: "Related lists",
3194+
helpText: "Child lists that point at the record, one level deep (at most 3). Each list names its child object, the reference field that points at the root, and the columns read for each row (at most 10); with no columns a row is read by its name."
3195+
},
3196+
body: {
3197+
label: "Body",
3198+
helpText: "The one long-text field read as the record's body."
3199+
},
3200+
"body.field": {
3201+
label: "Body field",
3202+
helpText: "A long-text field of the root object (textarea, markdown, html, richtext). Any other field is reported when the pack is saved, and the pack then carries no body."
3203+
}
3204+
}
31653205
}
31663206
};

‎packages/platform-objects/src/apps/translations/es-ES.metadata-forms.generated.ts‎

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3161,6 +3161,46 @@ export const esESMetadataForms: NonNullable<TranslationData['metadataForms']> =
31613161
}
31623162
},
31633163
ai_context: {
3164-
label: "Paquete de contexto de IA"
3164+
label: "Paquete de contexto de IA",
3165+
sections: {
3166+
basics: {
3167+
label: "Datos básicos",
3168+
description: "La identidad del paquete y el objeto cuyos registros lee."
3169+
},
3170+
material: {
3171+
label: "Contenido",
3172+
description: "Qué parte del registro se entrega al modelo. Cada selector ofrece los campos del objeto raíz, o del objeto propio de la lista relacionada."
3173+
}
3174+
},
3175+
fields: {
3176+
name: {
3177+
label: "Nombre",
3178+
helpText: "Identificador único (snake_case). La clave context de una habilidad y la herramienta get_record_context nombran el paquete con él."
3179+
},
3180+
label: {
3181+
label: "Etiqueta",
3182+
helpText: "Nombre visible, el encabezado de la respuesta de la herramienta. Un paquete no tiene descripción: escriba aquí su propósito."
3183+
},
3184+
object: {
3185+
label: "Objeto raíz",
3186+
helpText: "El objeto raíz: el paquete lee un registro de él."
3187+
},
3188+
fields: {
3189+
label: "Campos",
3190+
helpText: "Los campos del objeto raíz que se entregan al modelo, en orden (como máximo 30). Una búsqueda entre ellos se responde con el nombre del registro al que apunta."
3191+
},
3192+
related: {
3193+
label: "Listas relacionadas",
3194+
helpText: "Listas hijas que apuntan al registro, un solo nivel (como máximo 3). Cada lista indica su objeto hijo, el campo de referencia que apunta a la raíz y las columnas que se leen en cada fila (como máximo 10); sin columnas, cada fila se lee por su nombre."
3195+
},
3196+
body: {
3197+
label: "Cuerpo",
3198+
helpText: "El único campo de texto largo que se lee como cuerpo del registro."
3199+
},
3200+
"body.field": {
3201+
label: "Campo del cuerpo",
3202+
helpText: "Un campo de texto largo del objeto raíz (textarea, markdown, html, richtext). Cualquier otro campo se informa al guardar el paquete, y entonces el paquete no lleva cuerpo."
3203+
}
3204+
}
31653205
}
31663206
};

‎packages/platform-objects/src/apps/translations/fr.metadata-forms.generated.ts‎

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3161,6 +3161,46 @@ export const frMetadataForms: NonNullable<TranslationData['metadataForms']> = {
31613161
}
31623162
},
31633163
ai_context: {
3164-
label: "Pack de contexte IA"
3164+
label: "Pack de contexte IA",
3165+
sections: {
3166+
basics: {
3167+
label: "Basics",
3168+
description: "The pack's identity and the object whose records it reads."
3169+
},
3170+
material: {
3171+
label: "Material",
3172+
description: "What of the record is handed to the model. Each picker offers the fields of the root object, or of the related list's own object."
3173+
}
3174+
},
3175+
fields: {
3176+
name: {
3177+
label: "Name",
3178+
helpText: "Unique identifier (snake_case). A skill's context key and the get_record_context tool name the pack by it."
3179+
},
3180+
label: {
3181+
label: "Label",
3182+
helpText: "Display name, the header of the tool answer. A pack has no description: write its purpose here."
3183+
},
3184+
object: {
3185+
label: "Root object",
3186+
helpText: "The root object: the pack reads one record of it."
3187+
},
3188+
fields: {
3189+
label: "Fields",
3190+
helpText: "The root object's fields handed to the model, in order (at most 30). A lookup among them is answered with the name of the record it points at."
3191+
},
3192+
related: {
3193+
label: "Related lists",
3194+
helpText: "Child lists that point at the record, one level deep (at most 3). Each list names its child object, the reference field that points at the root, and the columns read for each row (at most 10); with no columns a row is read by its name."
3195+
},
3196+
body: {
3197+
label: "Body",
3198+
helpText: "The one long-text field read as the record's body."
3199+
},
3200+
"body.field": {
3201+
label: "Body field",
3202+
helpText: "A long-text field of the root object (textarea, markdown, html, richtext). Any other field is reported when the pack is saved, and the pack then carries no body."
3203+
}
3204+
}
31653205
}
31663206
};

0 commit comments

Comments
 (0)