Skip to content

Releases

create-objectstack@19.0.0-next.4

Pre-release

Choose a tag to compare

@github-actions github-actions released this 03 Dec 15:40
779ff41

No changes in this release.

@objectstack/verify@19.0.0-next.4

Pre-release

Choose a tag to compare

@github-actions github-actions released this 03 Dec 15:42
779ff41

Sections follow what the reader must do; each entry is placed by its own declarations (Metadata-protocol:, the Clause-②: arm, the BREAKING banner, the ADR-0087 disposition). The package CHANGELOG keeps the level grouping.

需手动处理 — action required: narrowed, with no ADR-0087 conversion

  • c99c8a5: fix(automation)!: a flow already published or stored that carries a durable-pause shape loads with a warning instead of being refused; new saves still refuse it (#39282)

    Clause-②: yes (widening)
    Metadata-protocol: semantic
    Skills-docs: none — skills/ describes the two durable-pause rules as authoring refusals, which they still are on every save and publish; what changes is only how an already-published or stored body is read on load

    The two rules that refuse a durable pause where the run cannot continue as written — flow-sequential-branch-durable-pause-refused (#38875) and flow-concurrent-branch-durable-pause-refused (#38838) — now judge a body differently by where it comes from:

    • A save or a publish (create, re-save, Studio draft, MCP save_metadata_draft, registerFlow from a write door, os validate, defineFlow) still refuses it, 422 INVALID_METADATA, anchored at the edge, exactly as before.
    • A load of a body already published or stored — an installed package's artifact (through the objectql plugin, or the metadata plugin's artifact source that createStandaloneStack, os serve and the verify harness boot through, whether the flow sits in a package, in a single-package artifact's top-level flows, or inside the environment-artifact envelope), a marketplace install of a published version, a stored sys_metadata row the engine arms at boot or on sync — loads it. The flow is armed and runs, and the load logs a finding ([artifact_at_rest_finding] on the artifact read, [flow_at_rest_finding] on arming) naming the rule, the node and the edge. The engine's registration status serves the same finding as atRestFindings on the registered state. The run-time guard still fails a run that would really drop a branch; a run whose conditions are complementary parks and resumes as written. The concurrent guard's watch lives in process memory, which the warning says.
    • os migrate meta --stored previews such a stored row as pending, with its other conversions, and lists the rule as a TODO naming the node and the edge (it previously reported the row failed and skipped its other conversions). --apply still goes through the save door, so that row's rewrite is refused until it is rewritten by hand.
    • Copying a package (duplicatePackage) and an unmanaged import write through the save door and stay strict: a package carrying the shape (HotCRM 7.0.1 among them) cannot be duplicated or imported unmanaged until the flow is rewritten. Installing it, from the marketplace too, and booting it are loads and are unaffected.

    Before this change one such flow (HotCRM 7.0.1's quote_generation) made the whole artifact fail its all-or-nothing read, so a framework pin move dropped every package of the installed app.

    New in @objectstack/spec/automation: parseAtRest, parseWithPosture, ParsePosture, AtRestFinding, describeAtRestFinding, AT_REST_TOLERATED_RULES and the two rule-id constants. FlowRegistration's registered arm gains the optional atRestFindings.

    BREAKING for TypeScript callers of @objectstack/core's resolveArtifactPackageEntries and resolveArtifactPackageOrder: the read posture is now a required second argument. FROM resolveArtifactPackageEntries(artifact) TO resolveArtifactPackageEntries(artifact, { posture: 'at-rest' }) on a load path (an artifact already built and published) or { posture: 'strict' } on a build, publish or CLI check, which behaves as before. A returned entry carries findings only when the at-rest read loaded past a tolerated rule. AutomationEngine.registerFlow and canonicalizeStoredFlow take an optional { posture } that defaults to strict, so existing callers are unchanged. No metadata changes and no stored metadata is refused.

其他修复 — other fixes

  • Updated dependencies [c7478b3]

  • Updated dependencies [be2df75]

  • Updated dependencies [3c617a2]

  • Updated dependencies [f42afe7]

  • Updated dependencies [1de73c0]

  • Updated dependencies [6f82fd0]

  • Updated dependencies [7d6742a]

  • Updated dependencies [440574f]

  • Updated dependencies [440574f]

  • Updated dependencies [440574f]

  • Updated dependencies [440574f]

  • Updated dependencies [440574f]

  • Updated dependencies [440574f]

  • Updated dependencies [440574f]

  • Updated dependencies [440574f]

  • Updated dependencies [440574f]

  • Updated dependencies [440574f]

  • Updated dependencies [440574f]

  • Updated dependencies [440574f]

  • Updated dependencies [440574f]

  • Updated dependencies [440574f]

  • Updated dependencies [440574f]

  • Updated dependencies [440574f]

  • Updated dependencies [7b68db9]

  • Updated dependencies [9da8804]

  • Updated dependencies [babd67f]

  • Updated dependencies [e542b7b]

  • Updated dependencies [00f97b3]

  • Updated dependencies [170f9f8]

  • Updated dependencies [ca26605]

  • Updated dependencies [f13adae]

  • Updated dependencies [ad83af4]

  • Updated dependencies [8338d07]

  • Updated dependencies [f3f3265]

  • Updated dependencies [828b6ec]

  • Updated dependencies [58695bb]

  • Updated dependencies [5704d13]

  • Updated dependencies [3872243]

  • Updated dependencies [d7d4605]

  • Updated dependencies [670bc89]

  • Updated dependencies [4d9d12a]

  • Updated dependencies [44d0f88]

  • Updated dependencies [d38006b]

  • Updated dependencies [38ab473]

  • Updated dependencies [1095535]

  • Updated dependencies [dbf6d27]

  • Updated dependencies [f037f1c]

  • Updated dependencies [0fff9ae]

  • Updated dependencies [7f72b49]

  • Updated dependencies [a294369]

  • Updated dependencies [355e8e3]

  • Updated dependencies [7aaced0]

  • Updated dependencies [4374517]

  • Updated dependencies [270d160]

  • Updated dependencies [3c3a154]

  • Updated dependencies [fb32a1c]

  • Updated dependencies [4a3b532]

  • Updated dependencies [84d209d]

  • Updated dependencies [d0bce70]

  • Updated dependencies [a0ee7d2]

  • Updated dependencies [57657df]

  • Updated dependencies [77d1564]

  • Updated dependencies [7814822]

  • Updated dependencies [f28c39f]

  • Updated dependencies [7341b89]

  • Updated dependencies [1fe9c62]

  • Updated dependencies [712b102]

  • Updated dependencies [8d4395b]

  • Updated dependencies [f927afa]

  • Updated dependencies [93e0354]

  • Updated dependencies [3dfffef]

  • Updated dependencies [cef9a80]

  • Updated dependencies [f7c791f]

  • Updated dependencies [afc64fc]

  • Updated dependencies [eb8895f]

  • Updated dependencies [3497d8e]

  • Updated dependencies [9a13387]

  • Updated dependencies [f9d84a2]

  • Updated dependencies [1e87dc1]

  • Updated dependencies [dffe83e]

  • Updated dependencies [0c45d66]

  • Updated dependencies [b706ec6]

  • Updated dependencies [1f95c61]

  • Updated dependencies [360820b]

  • Updated dependencies [1536c07]

  • Updated dependencies [08255e0]

  • Updated dependencies [93a189f]

  • Updated dependencies [3dc3983]

  • Updated dependencies [69061e8]

  • Updated dependencies [8d1a829]

  • Updated dependencies [1a66d75]

  • Updated dependencies [2b06762]

  • Updated dependencies [724b369]

  • Updated dependencies [8c023b2]

  • Updated dependencies [6810b2c]

  • Updated dependencies [d0c7b71]

  • Updated dependencies [c99c8a5]

  • Updated dependencies [68e76fa]

  • Updated dependencies [2417d66]

  • Updated dependencies [ad4984f]

  • Updated dependencies [a5e49ac]

  • Updated dependencies [398a798]

  • Updated dependencies [2ef8735]

  • Updated dependencies [dbf103d]

  • Updated dependencies [777da7f]

  • Updated dependencies [dabe860]

  • Updated dependencies [5a0bb8d]

  • Updated dependencies [05e645b]

    • @objectstack/spec@19.0.0-next.4
    • @objectstack/rest@19.0.0-next.4
    • @objectstack/runtime@19.0.0-next.4
    • @objectstack/plugin-auth@19.0.0-next.4
    • @objectstack/service-automation@19.0.0-next.4
    • @objectstack/plugin-approvals@19.0.0-next.4
    • @objectstack/core@19.0.0-next.4
    • @objectstack/objectql@19.0.0-next.4
    • @objectstack/service-messaging@19.0.0-next.4
    • @objectstack/service-storage@19.0.0-next.4
    • @objectstack/platform-objects@19.0.0-next.4
    • @objectstack/plugin-sharing@19.0.0-next.4
    • @objectstack/plugin-security@19.0.0-next.4
    • @objectstack/service-analytics@19.0.0-next.4
    • @objectstack/mcp@19.0.0-next.4
    • @objectstack/service-queue@19.0.0-next.4
    • @objectstack/service-knowledge@19.0.0-next.4
    • @objectstack/knowledge-pgvector@19.0.0-next.4
    • @objectstack/service-package@19.0.0-next.4
    • @objectstack/service-settings@19.0.0-next.4
    • @objectstack/plugin-audit@19.0.0-next.4
    • @objectstack/plugin-webhooks@19.0.0-next.4
    • @objectstack/service-datasource@19.0.0-next.4
    • @objectstack/metadata@19.0.0-next.4
    • @objectstack/plugin-email@19.0.0-next.4
    • @objectstack/plugin-hono-server@19.0.0-next.4
    • @objectstack/plugin-pinyin-search@19.0.0-next.4
    • @objectstack/service-cache@19.0.0-next.4
    • @objectstack/service-job@19.0.0-next.4
    • @objectstack/service-mailbox@19.0.0-next.4
    • @objectstack/service-push@19.0.0-next.4
    • @objectstack/service-realtime@19.0.0-next.4
    • @objectstack/service-record-context@19.0.0-next.4
    • @objectstack/service-sms@19.0.0-next.4
    • @objectstack/trigger-api@19.0.0-next.4
    • @objectstack/trigger-record-change@19.0.0-next.4
    • @objectstack/trigger-schedule@19.0.0-next.4
    • @objectstack/types@19.0.0-next.4

@objectstack/types@19.0.0-next.4

Pre-release

Choose a tag to compare

@github-actions github-actions released this 03 Dec 15:42
779ff41

Sections follow what the reader must do; each entry is placed by its own declarations (Metadata-protocol:, the Clause-②: arm, the BREAKING banner, the ADR-0087 disposition). The package CHANGELOG keeps the level grouping.

其他修复 — other fixes

@objectstack/trigger-schedule@19.0.0-next.4

Choose a tag to compare

@github-actions github-actions released this 03 Dec 15:42
779ff41

Sections follow what the reader must do; each entry is placed by its own declarations (Metadata-protocol:, the Clause-②: arm, the BREAKING banner, the ADR-0087 disposition). The package CHANGELOG keeps the level grouping.

其他修复 — other fixes

@objectstack/trigger-record-change@19.0.0-next.4

Choose a tag to compare

@github-actions github-actions released this 03 Dec 15:42
779ff41

Sections follow what the reader must do; each entry is placed by its own declarations (Metadata-protocol:, the Clause-②: arm, the BREAKING banner, the ADR-0087 disposition). The package CHANGELOG keeps the level grouping.

其他修复 — other fixes

@objectstack/trigger-api@19.0.0-next.4

Pre-release

Choose a tag to compare

@github-actions github-actions released this 03 Dec 15:42
779ff41

Sections follow what the reader must do; each entry is placed by its own declarations (Metadata-protocol:, the Clause-②: arm, the BREAKING banner, the ADR-0087 disposition). The package CHANGELOG keeps the level grouping.

其他修复 — other fixes

@objectstack/studio@19.0.0-next.4

Pre-release

Choose a tag to compare

@github-actions github-actions released this 03 Dec 15:40
779ff41

Sections follow what the reader must do; each entry is placed by its own declarations (Metadata-protocol:, the Clause-②: arm, the BREAKING banner, the ADR-0087 disposition). The package CHANGELOG keeps the level grouping.

其他修复 — other fixes

@objectstack/spec@19.0.0-next.4

Pre-release

Choose a tag to compare

@github-actions github-actions released this 03 Dec 15:42
779ff41

Sections follow what the reader must do; each entry is placed by its own declarations (Metadata-protocol:, the Clause-②: arm, the BREAKING banner, the ADR-0087 disposition). The package CHANGELOG keeps the level grouping.

需手动处理 — action required: narrowed, with no ADR-0087 conversion

  • f42afe7: feat!: protocol 19 — a view holds lists only, and a form is its own form item (ADR-0159 D7)

    Clause-②: yes (narrowing)
    Metadata-protocol: narrowed
    Skills-docs: skills/objectstack-i18n/SKILL.md sends a form's heading and thank-you panel to the forms group and drops title / submitBehavior from the _views row; skills/objectstack-ui/rules/list-views.md already teaches forms: and refuses a form inside a view

    BREAKING — read this first: record New and Edit dialogs no longer read a form. On protocol 19 a record's New and Edit dialogs lay out by the object's fieldGroups (and each field's showOnCreate), never by a form. A create or edit form that a view declared (the container's default form, formViews.default, formViews.create, an item marked isDefault or named OBJECT.create) stops applying: its sections, tabs, wizard steps, create defaults and form-level required rules no longer shape those dialogs, and nothing converts them into field groups. If your app relied on one, declare the object's fieldGroups (and showOnCreate: false on the fields a create should not ask for) before you upgrade. os migrate meta --from 18 deletes such a form from your sources, and the upgrade command removes stored ones of that kind; its report carries each removed form's body and says, per object, whether the object declares field groups. A form that declares a public link (sharing.publicLink, switched on or off), one a type: 'form' action opens, and one that declares overrides is never deleted: it moves.

    BREAKING — the three old form shapes are refused. FROM a form authored inside a view TO a form item in the stack's forms::

    Old shape (protocol 18) Protocol 19
    defineView({ object, form: { … } }) defineForm({ name: 'OBJECT.form', object, … }) in forms:
    defineView({ object, formViews: { KEY: { … } } }) defineForm({ name: 'OBJECT.KEY', object, … }) in forms:
    defineViewItem({ name: 'OBJECT.KEY', viewKind: 'form', config: { … } }) defineForm({ name: 'OBJECT.KEY', object, … }), the config body at the top level
    translation.objects.OBJECT._views.KEY.title / .submitBehavior translation.forms['OBJECT.KEY'].title / .submitBehavior

    The one-line fix: run os migrate meta --from 18 --write and apply by hand the edits it lists but cannot prove. The form keeps the name it is served under, so a type: 'form' action and a public link keep reaching it. Each old shape is refused with that prescription at os validate, at defineStack and at the metadata save door: a view save that carries form, formViews or viewKind: 'form' answers 422 INVALID_METADATA, located at that key, and writes nothing. For API callers this changes one error code: a view save that carried a form at a public link another form already holds used to answer FORM_ADDRESS_TAKEN; it now answers 422 INVALID_METADATA for the shape, and FORM_ADDRESS_TAKEN is answered by form saves. GetUiViewResponse loses its form and formViews members the same way; getUiView for type: 'form' answers the form scaffold { object, form }, typed GetUiViewFormScaffold.

    What a view read serves. A view list serves lists only: it drops the form members of a stored old-shape container, a stored viewKind: 'form' row answers no item by name, and a form read serves no form out of a stored old-shape row. The stored rows are neither refused nor rewritten by a read: a stored old-shape container is served by name as stored, and saving that body back through the view door is refused (422), so no stored state is lost. The Console follows: the list switcher, the Studio view editor and the view preview handle lists only (a view created in Studio is a list), and a form is edited as a form item.

    Stored forms: convert, then switch. A deployment's stored forms in an old shape move only through os migrate protocol --to 19 --apply --yes, all or nothing, after os migrate protocol --to 19 (and os migrate stored-forms) previewed what moves and whether the deployment can switch (see Check stored forms before the next major in the deployment docs). On protocol 19, os serve (and so os dev and os start) refuses to start, with FORM_TYPE_SWITCH_REQUIRED, on a database an earlier release created until that command has recorded the switch; its refusal names the command. A database with no stored form runs it once too and finds nothing to move. A database the server creates from empty is recorded as switched at its first start. No variable or flag skips the refusal. A row that holds the switch is listed with the action for its cause, taken on the release you are running.

    Withdrawn public forms stay closed. A public form an administrator switched off before the upgrade stays switched off after it, and so does a form that one package ships over another package's object when its withdrawal is stored for that package. os migrate organization-ownership --apply carries an organization's public-form withdrawal onto the form item a package ships at protocol 19, saved into that package's writable pair when the package itself is not writable; a withdrawal it cannot carry blocks the step and nothing is opened.

    Until the switch, a stored old-shape form is not served. On protocol 19 a form held only in a stored old-shape row (a container's form / formViews member, or a viewKind: 'form' row) answers 404 on the form and view doors, whoever asks, until os migrate protocol --to 19 --apply --yes has moved it; once moved, it is served as a form item under the same name and link. This includes a pre-19 stored copy of a package's form saved open, which protocol 18 served at its link: on protocol 19 it opens nothing until the ceremony moves it, including on a host that assembles its own kernel without the boot guard. A withdrawal stored in such a row keeps its form closed before and after the move.

    Fixes. A form save into a package's writable pair no longer hangs on SQLite when legacy organization rows exist: the read of those rows joins the save's own transaction instead of waiting for a second connection. os migrate packageless-overlays now says that a view container it cannot move is deleted only after os migrate protocol --to 19 --apply has moved its form members.

    Validators follow the form type. The form rules now judge form saves and forms: items, not view: validateFormLayout, validatePublicFormFileFields, validateThankYouRecordFields, validateVisibilityPredicates and validatePredicatePathRefs list form where they listed view. A form save is now refused for a public form's file field (public-form-file-field), a thank-you panel's record field (thank-you-record-field) and the visibility-predicate family, and a form save and read carry the advisories form-field-unknown and form-section-group-unknown. A view save keeps validateStackExpressions, validatePresetComparands and validateReferenceIntegrity; view-key-collision judges list views only. GET /api/v1/meta/form/NAME serves a package's declared .custom override of a form, as the form list does.

    Removed exports (FROM → TO):

    • @objectstack/spec (@objectstack/spec/ui): the formOverlay member of VIEW_METADATA_MEMBERS, the 'formOverlay' entry of VIEW_METADATA_BRANCHES and that value of the type ViewMetadataBranch → none; a flat viewKind: 'form' body is read by VIEW_METADATA_MEMBERS.listOverlay, whose viewKind answers the prescription above, and selectViewMetadataBranch names 'listOverlay' for it.
    • @objectstack/lint: validateInternalFormViews, FORM_VIEW_INTERNAL_NOT_LOADED and InternalFormViewFinding → none; the rule form-view-internal-not-loaded is retired, so the author-time rule count os validate prints drops by one. Its successor, the advisory form-consumer-less, reports a form item with no public link that no type: 'form' action opens.

    New exports: @objectstack/spec ServedViewItem, expandServedViewContainer and isServedViewItem (a container expanded to the list items a view read serves), GetUiViewFormScaffold, and the error code FORM_TYPE_SWITCH_REQUIRED; @objectstack/runtime FormTypeSwitchBootGuardPlugin, FormTypeSwitchBirthMarkerPlugin, FORM_TYPE_SWITCH_BOOT_REFUSAL_CODE, isFormTypeSwitchBootRefusal and their companions.

  • c99c8a5: fix(automation)!: a flow already published or stored that carries a durable-pause shape loads with a warning instead of being refused; new saves still refuse it (#39282)

    Clause-②: yes (widening)
    Metadata-protocol: semantic
    Skills-docs: none — skills/ describes the two durable-pause rules as authoring refusals, which they still are on every save and publish; what changes is only how an already-published or stored body is read on load

    The two rules that refuse a durable pause where the run cannot continue as written — flow-sequential-branch-durable-pause-refused (#38875) and flow-concurrent-branch-durable-pause-refused (#38838) — now judge a body differently by where it comes from:

    • A save or a publish (create, re-save, Studio draft, MCP save_metadata_draft, registerFlow from a write door, os validate, `def...
Read more

@objectstack/skills@19.0.0-next.4

Pre-release

Choose a tag to compare

@github-actions github-actions released this 03 Dec 15:42
779ff41

Sections follow what the reader must do; each entry is placed by its own declarations (Metadata-protocol:, the Clause-②: arm, the BREAKING banner, the ADR-0087 disposition). The package CHANGELOG keeps the level grouping.

自动迁移 — migrated for you: narrowed, with a conversion objectstack migrate meta applies

  • 9da8804: feat(spec)!: a form no longer declares subforms; no form surface draws a form's own child tables, which the object's field groups place

    Clause-②: yes (narrowing)

    Metadata-protocol: narrowed

    BREAKING accept-set narrowing on the form surface (@objectstack/spec), ADR-0049 enforce-or-remove.

    The readers of a form's subforms were the console's New and Edit record surfaces, which copied it from the object's internal form view. Through 18.6.0 those surfaces drew the child tables a form listed. From 19.0.0 they load no form view (the internal-record-forms-not-loaded entry): a record's child tables come from the object alone, as its field groups place them. The page a form opened by name or by a public link gets never drew a child table, and the public submit route writes one record. So on 19 a form saved with subforms is accepted, served and drawn exactly as one without it.

    • FROM → TO. subforms: [{ childObject, … }] on a form (a form item; a stored view's form and formViews.<key>; a form view item's config) → nothing on the form. A child table that should be entered with the record is placed on the parent object: a field group whose relatedList names the child, for example { key: 'lines', label: 'Lines', relatedList: 'order_line' } in fieldGroups, or 'order_line.order' when the child points at the parent more than once. Every New and Edit form of the object then draws the table at that group and saves the record and its rows together.
    • What an entry set beside childObject. On the child's relationship field: title is inlineTitle, columns is inlineColumns, amountField is inlineAmountField. totalField has no twin there: a parent total is a summary field on the parent. addLabel, minRows and maxRows have none.
    • The one-line fix. Delete subforms from the form. os migrate meta --from 18 lists the edits for existing sources, and --write applies them. A stored sys_metadata row is converted when it is read (the form-view-subforms-removed conversion), so a form saved with the key keeps loading, and deleting it changes nothing a reader sees on 19.
    • Coming from 18.x. A New or Edit form whose form view listed subforms drew those child tables through 18.6.0. On 19 it draws the child tables the object's field groups place. A child the form listed and no field group places is entered from the parent record's related list, not inside the parent's form, until a field group names it. The conversion cannot add that group: it would change every New and Edit form of the object, which is a decision about the object.
    • What the parse says. "form.subforms was removed in @objectstack/spec 19.0.0 (ADR-0049) — no renderer reads it: …", naming the field group's relatedList, at every form door (a form item, a stored view's form and formViews.*, a form view item record, a flattened form overlay) and at defineStack as STACK_SCHEMA_INVALID / 422. TypeScript rejects the key at the authoring site.
    • Unchanged. The React ObjectForm block still takes subforms: the react-tier contract now declares it on the block itself, with the entry's shape written out. The object-master-detail-form page block keeps its details. A field's inlineColumns and the related-list keys are not touched.

    The retirement kit: the retiredKey() tombstone on FormViewSchema (the form item takes it by reference); the D2 conversion form-view-subforms-removed (protocol 19, retired from the load path, reaching form, formViews.*, form view items, flattened form overlays and forms[], ordered after the move of a view's forms to forms[]); RETIRED_KEYS_BY_MAJOR[19] rows ui/FormView:subforms and ui/Form:subforms; the D3 entry ui-form-view-subforms-retired; the liveness row form.json subforms, now dead.

    Also corrected: the protocol-19 D3 entry master-detail-related-list-tab-by-default said a form view that declares its own subforms still inlines what it declares. No form does, and the sentence is gone. The split form type's parse prescription pointed at the same key for a child grid beside the parent, and now names the field group's relatedList. defineStack's inline-column check no longer walks a form's subforms, which the parse refuses first.

    @objectstack/skills: skills/objectstack-ui/references/react-blocks.md is regenerated. <ObjectForm>'s subforms is listed as a binding prop from the block's overlay, with its entry shape, no longer as a data prop from the form schema.

其他修复 — other fixes

  • 665dfc4: docs(skills): the objectstack-ai entry file becomes a router

    Clause-②: no
    Metadata-protocol: none

    skills/objectstack-ai/SKILL.md goes from 30.0 KB to 9.0 KB (518 lines to 184). It now holds: four first checks (the installed version wins over the compatibility line; read the stack's skills, knowledge sources, context packs, requires and its objects' actions; read the contract and never recall a key; os validate before reporting done), one type-checked skill, the opt-in that makes an Action an AI tool, the confirmation rule of every AI door, the context-pack pointer, one type-checked knowledge source with four rules, two pitfalls, and a list that says where to go for the rest. One sentence of the old entry is corrected (the pending answer, below); no other rule's teaching changes. No text moved between files: what left the entry was cut, and this entry says what now answers it. references/context-packs.md is untouched.

    What the entry keeps. Each of these parses, or is accepted, and then does nothing or the wrong thing:

    • A tool record (defineTool, *.tool.ts) makes nothing executable: the default path is the Action's own opt-in, ai: { exposed: true, description }, named in a skill's tools as action_<actionName>.
    • An opted-in action can still be no tool: url, modal and form are UI-only, and the in-app assistant skips a destructive one (mode: 'delete', variant: 'danger', unless ai.requiresConfirmation says otherwise) unless the host runs enableActionApproval: true.
    • confirmText is dialog copy and gates no AI call; ai.requiresConfirmation: true does.
    • A stack-authored agent is never served: skills are the one extension, agent.tools and agent.knowledge are refused, and retrieval is scoped on the knowledge source (aiExposed, source.where).
    • A skill's triggerConditions route on context the client reports, so they are never access control; over MCP the HTTP door offers a skill's prompt only when the server lists every tool the skill binds.
    • An action declaring ai.requiresConfirmation: true runs only once the person the agent acts for confirms: run_action and resume_run refuse a call that carries confirm (the delete tools' own confirm: true is in their descriptions in tools/list); at every AI door, status: 'pending_confirmation' with a pendingId is a success that is relayed and not retried; a host with no pending-confirmation service refuses 428 with details.reason: 'no_confirmation_service'; a stdio client advertising form-mode elicitation is asked in place (declined / cancelled / timed_out); an AI service account's own key is refused service_account; and only the person, on their signed-in session in the app, decides a pending item, so a script lists the queue and never decides.
    • No page declares an AI button: the shell's 「问 AI」 entry opens the assistant on the current record.
    • A knowledge source is an egress decision with named fields only; content is long free text, and a file field in it adds no file text; one source per corpus, named to search_knowledge in sourceIds; split cuts passages that never overlap (no key adds an overlap), and an app that cuts its own passages indexes the child records with strategy: 'whole' and documentBy; an app that ships no source declares requires: ['knowledge']; mounted is not enabled, so with no embedder at boot the sources are held (listed, never searched, search_knowledge not offered) and os knowledge status says why; unmounted or held, a run-time save is refused.
    • Sampling sits under an agent's model, and the deployment's AI settings choose the provider.
    • ai.requiresConfirmation guards the action's own door and not the state: the whole of the old pitfall "Gating the action, not the state" stays, under the same title.

    What left, and what answers it now.

    • The skill key tables (name, label, tools, surface, description, instructions, triggerConditions, active, context) and the trigger-operator table: the contract, node_modules/@objectstack/spec/src/ai/skill.zod.ts. Its docblocks say which edition reads each key, that an incompatible surface binding is a load error, that a skill with blank instructions, active: false or mcpPrompt: false is not offered as an MCP prompt, and that the plugin's own stdio server applies no tool-binding filter; SkillTriggerConditionSchema refuses a value whose shape does not match its operator; the strict schema refuses a permissions key and a phrase-matching trigger key, each with what to write. The entry keeps the five context fields a condition can read.
    • The four-rung tool-resolution ladder: os validate, whose ai-skill-tool-unresolved warning names the unresolved entry and suggests the action_ spelling. The name lists are PLATFORM_TOOLS_BY_PACKAGE, PLATFORM_PROVIDED_TOOL_NAMES, `MCP_DOOR...
Read more

@objectstack/setup@19.0.0-next.4

Pre-release

Choose a tag to compare

@github-actions github-actions released this 03 Dec 15:40
779ff41

Sections follow what the reader must do; each entry is placed by its own declarations (Metadata-protocol:, the Clause-②: arm, the BREAKING banner, the ADR-0087 disposition). The package CHANGELOG keeps the level grouping.

其他修复 — other fixes