Skip to content

Commit c5a59df

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/issue-25870-cli-reader-sequencer
2 parents 849642e + 5e99bd9 commit c5a59df

16 files changed

Lines changed: 898 additions & 92 deletions
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
'@object-ui/i18n': patch
3+
---
4+
5+
fix(app-shell): the dashboard's Add-widget menu and the widget Type select offer every widget type the spec accepts, from one registry
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
Studio's two dashboard widget-type pickers kept their own lists and disagreed with each other and with the spec: the Add-widget menu offered 11 types, the inspector's Type select 10 (no `scatter`), and `ChartTypeSchema` accepts 20, all of which a dashboard draws. Both pickers now read one registry derived from `ChartTypeSchema`, so they offer the same 20 types and follow the spec when it changes.
11+
12+
- The `studio` namespace gains the names of the newly offered types: `engine.inspector.widget.type.*` for `column`, `scatter`, `treemap`, `sankey`, `combo`, `gauge`, `solidGauge`, `kpi`, `bullet` and `radar`, and `engine.widgetPicker.type.*` for the same types except `scatter`, in en and zh.
13+
- `engine.inspector.widget.datasetHint` no longer mentions an "inline object query above", which the widget inspector has not had since ADR-0021; it describes the dataset, dimension and measure controls the inspector shows.
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): objectstack-formula eval case 4's reference answer names the refused date forms without spelling its own `must_not_contain` strings
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
- **Before.** Case 4 of `skills/objectstack-formula/evals/cel-predicates-formulas.json` refuses `new Date(` and `today() + ` in an answer, yet its own `expected_output` spelled both (`` `new Date()` `` and `` `today() + 45` ``), so a reference-grade answer was graded wrong.
11+
- **Now.** The reference answer says "never a JS `Date` / `Date.now()`" and "never date arithmetic on `today()` (it faults)", as case 7 names "the `label` macro". Every assertion and every fact stays: the CEL envelope seed, the determinism gate, `daysBetween(today(), record.close_date)`, the `{}` duration trap. A per-case cross-check (no `must_not_contain` string inside its own `expected_output`, every `must_contain` string present) reports 0 failures over all 7 cases; the file keeps its byte size, so its token-ratchet row does not move.
12+
- No schema, key or behaviour changes.

‎.claude/skills/pm-dispatch/references/coordinator.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@
4545
## 七、语言与汇报(coordinator 与席位线程皆读)
4646

4747
- 项目内对维护者用维护者的语言;GitHub 内容英文,照 SKILL.md 全体座位不变量。
48-
- 只在结果、阻塞或待裁决时向维护者汇报,与席位同规;例行进展进线程清单。
49-
- 转述线程 PR「无需你做」前自读其 `mergeable_state`;`dirty` ⇒ 退回线程先合 main,⛔ 不转述。
48+
- 向维护者报任一 PR 状态前同轮重读:merged、draft、auto_merge、在队、reviews、`mergeable_state`。
49+
- 无 APPROVED 也可能已被 ready 入队 ⇒ ⛔ 单读 reviews;已办即删;`dirty` ⇒ 退回线程先合 main。

‎.github/workflows/ci.yml‎

Lines changed: 39 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3023,8 +3023,17 @@ jobs:
30233023
- name: Setup workspace
30243024
uses: ./.github/actions/setup-workspace
30253025

3026-
- name: Setup Next.js cache
3027-
uses: actions/cache@v6
3026+
# The Next.js cache is RESTORED on every run and SAVED only on `push` and
3027+
# `schedule`, by "Save Next.js cache" at the end of this job -- the rule
3028+
# `.github/actions/setup-workspace` holds for the pnpm store, for the same
3029+
# reason: an entry saved on a pull request or merge-queue ref is
3030+
# restorable only from that ref, yet it counts toward the one 10 GB
3031+
# Actions cache pool and evicts `main`'s entries, which every pull request
3032+
# and queue run CAN restore. ⛔ No `pull_request` or `merge_group` run
3033+
# saves it.
3034+
- name: Restore Next.js cache
3035+
id: nextjs-cache
3036+
uses: actions/cache/restore@v6
30283037
with:
30293038
path: apps/docs/.next/cache
30303039
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('apps/docs/**.[jt]s', 'apps/docs/**.[jt]sx', 'content/**/*.mdx') }}
@@ -3090,9 +3099,9 @@ jobs:
30903099
# this card exists to catch, arriving AFTER the gate reported green.
30913100
# Assert the artifact rather than trusting the exit code.
30923101
#
3093-
# `.next/BUILD_ID` cannot be a leftover from the cache step above: that
3094-
# step stores `apps/docs/.next/cache` ONLY, so nothing outside that
3095-
# subtree is ever restored. ⛔ Widening that cache path to
3102+
# `.next/BUILD_ID` cannot be a leftover from the cache restore above:
3103+
# the Next.js cache steps store `apps/docs/.next/cache` ONLY, so nothing
3104+
# outside that subtree is ever restored. ⛔ Widening that cache path to
30963105
# `apps/docs/.next` would let this assertion pass without a build.
30973106
- name: Assert the docs app actually built
30983107
run: |
@@ -3103,6 +3112,31 @@ jobs:
31033112
fi
31043113
echo "Built docs app: BUILD_ID=$(cat apps/docs/.next/BUILD_ID)"
31053114
3115+
# The save half of "Restore Next.js cache" (its comment says why it runs
3116+
# on `push` and `schedule` only). It reproduces what the combined
3117+
# `actions/cache` post step did on those events, three ways:
3118+
# - no status function in `if:`, so it runs only when every step above
3119+
# succeeded -- the combined action's `post-if: success()`;
3120+
# - skipped on an exact hit, which has nothing new to write;
3121+
# - saved under `cache-primary-key`, the key the restore step resolved
3122+
# BEFORE the build, which is the key the combined action saved under.
3123+
# A key re-hashed here would hash `apps/docs/`, the tree the build
3124+
# has just written into, so it could differ from the key the restore
3125+
# looked up.
3126+
# A main-phase step, bounded and `continue-on-error` like the ui jobs'
3127+
# saves: a stalled or failed upload costs the next run time and says
3128+
# nothing about the docs build.
3129+
- name: Save Next.js cache
3130+
if: >-
3131+
(github.event_name == 'push' || github.event_name == 'schedule')
3132+
&& steps.nextjs-cache.outputs.cache-hit != 'true'
3133+
uses: actions/cache/save@v6
3134+
timeout-minutes: 5
3135+
continue-on-error: true
3136+
with:
3137+
path: apps/docs/.next/cache
3138+
key: ${{ steps.nextjs-cache.outputs.cache-primary-key }}
3139+
31063140
# ── THE ui/ JOBS (objectstack#25697, epic objectstack#25677) ──────────────
31073141
# objectui is imported under `ui/` as a subtree. These four jobs are its CI,
31083142
# ported from objectui's own ci.yml (`Type Check`, `Test (shard n/16)`,

‎docs/adr/0097-declarative-connector-instances.md‎

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
**Builds on**: [ADR-0015](./0015-external-datasource-federation.md) (open mechanism / enterprise lifecycle split), [ADR-0018](./0018-unified-node-action-registry.md) (`connector_action` baseline dispatch + `engine.registerConnector()`), [ADR-0022](./0022-connectors-vs-messaging-channels.md) (Connector = transport/integration mechanism), [ADR-0023](./0023-openapi-to-connector-generator.md) (OpenAPI → Connector generator), [ADR-0024](./0024-mcp-connectors.md) (MCP servers as connectors)
66
**Tracking**: framework#2977 (supersedes the interim descriptor-only contract from framework#2612)
77
**Consumers**: `@objectstack/spec` (`stack.zod.ts`, `integration/connector.zod.ts`), `@objectstack/service-automation` (boot audit → provider binding), `@objectstack/connector-openapi`, `@objectstack/connector-mcp`, `@objectstack/connector-rest`, the Studio flow palette, AI authoring (stack generation)
8-
**Amended by**: [ADR-0143](./0143-outbound-connector-auth-is-open-tier.md) (2026-10-27) — OAuth2, the vendor app-credential exchange and request signing join `ConnectorInstanceAuthSchema` in the open tier, and those kinds resolve per dispatch; see the notes under §3 and under "Open / enterprise line".
8+
**Amended by**: [ADR-0143](./0143-outbound-connector-auth-is-open-tier.md) (2026-10-27) — OAuth2, the vendor app-credential exchange and request signing join `ConnectorInstanceAuthSchema` in the open tier, and those kinds resolve per dispatch; see the notes under §3 and under "Open / enterprise line". PR #26798 (2026-10-27, #26709 item 3(b)) — a credential the MCP server rejects (HTTP `401` / `403`) is a fatal configuration fault, not upstream-unavailable; see the note under "Upstream availability".
99

1010
---
1111

@@ -190,6 +190,25 @@ dispatch was rejected: MCP actions ARE the server's `tools/list`, so a
190190
connector materialized without connecting would register a zero-action def —
191191
exactly the plausible-but-dead shape this ADR exists to kill.
192192

193+
> **Amendment note (2026-10-27, #26709 item 3(b) — PR #26798).** The sentence
194+
> above has one exception past transport validation: a credential the MCP
195+
> server **rejects** — an HTTP `401` / `403` on connect, handshake or
196+
> `tools/list` — is a **configuration fault**, thrown plain: fatal at boot, a
197+
> skipped entry on reload, never `CONNECTOR_UPSTREAM_UNAVAILABLE` and never
198+
> retried. It sits on the fatal side of this section's own split, beside an
199+
> unresolvable `credentialRef` and the `openapi` provider's non-retryable
200+
> `4xx` (a `401` included) on its spec fetch: retrying cannot make a wrong,
201+
> missing or under-scoped credential valid, and a degraded instance retried
202+
> with backoff reads as "server down", hiding the misconfiguration the author
203+
> has to fix. The rejection is told apart by the MCP SDK's own HTTP-transport
204+
> errors only — a `StreamableHTTPError` with status 401 / 403, or an
205+
> `UnauthorizedError`, in the error's `cause` chain
206+
> (`packages/connectors/connector-mcp/src/mcp-provider.ts#credentialRejectionStatus`, `#createMcpProviderFactory`);
207+
> a JSON-RPC error that merely carries a numeric code 401 stays operational, as
208+
> does every other connect / `tools/list` failure. Pinned against a real
209+
> Streamable-HTTP server in
210+
> `packages/connectors/connector-mcp/src/mcp-http-discovery-faults.test.ts`.
211+
193212
The `openapi` provider applies the same split to its **remote-URL spec fetch**:
194213
an unreachable endpoint (network error) or a transient HTTP status
195214
(`408` / `429` / `5xx`, mirroring the `retryableStatusCodes` convention) is

‎skills/objectstack-formula/evals/cel-predicates-formulas.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
{
3535
"id": 4,
3636
"prompt": "Demo opportunities should close 45 days after the package is installed, and a formula should show how many days remain until close.",
37-
"expected_output": "Seed value as a CEL envelope, `close_date: cel`daysFromNow(45)``, never `new Date()` / `Date.now()` (the determinism gate: two `os build` runs must be byte-identical). Days remaining is `daysBetween(today(), record.close_date)` — never `record.close_date - today()` (a duration stored as `{}`) and never `today() + 45` (date arithmetic faults).",
37+
"expected_output": "Seed value as a CEL envelope, `close_date: cel`daysFromNow(45)``, never a JS `Date` / `Date.now()` (the determinism gate: two `os build` runs must be byte-identical). Days remaining is `daysBetween(today(), record.close_date)` — never `record.close_date - today()` (a duration stored as `{}`) and never date arithmetic on `today()` (it faults).",
3838
"files": [],
3939
"assertions": {
4040
"must_contain": ["cel`", "daysFromNow(", "daysBetween("],

‎ui/packages/app-shell/src/views/metadata-admin/inspectors/DashboardWidgetInspector.tsx‎

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -50,35 +50,27 @@ import {
5050
import { useDatasetCatalog, useDatasetSemantics } from '../previews/useDatasetCatalog.js';
5151
import type { ObjectFieldInfo } from '../previews/useObjectFields.js';
5252
import { widgetMissingInputs } from '../../studio-design/metadataError.js';
53+
import { WIDGET_TYPE_IDS, WIDGET_TYPE_META } from '../previews/widget-types.js';
5354

5455
// ADR-0021: dashboard widgets author the semantic-layer dataset shape only
5556
// (dataset + dimensions + values). The pre-ADR-0021 inline single-object query
5657
// (object / valueField / categoryField / aggregate) was removed from the spec
5758
// at @objectstack/spec 9.0.0 and is no longer authored here — its fields are
5859
// gone so no Studio surface can emit the dead shape (framework#3251).
5960
/**
60-
* The widget families this inspector offers. TYPED to `DashboardWidgetTypeName`
61-
* (objectui#4600, which closed the widget `type` vocabulary) so the inspector
62-
* cannot offer a type validation refuses — every entry here is a spec
63-
* visualization family. A hand-written SUBSET is fine; offering something
64-
* outside the vocabulary is not.
61+
* The widget families this inspector's Type select offers: the ONE registry
62+
* the Add-widget menu reads too (`../previews/widget-types`, objectstack#26745),
63+
* which derives the set from the spec's `ChartTypeSchema` instead of keeping a
64+
* list here. The two pickers used to keep their own lists and disagreed (10
65+
* here, 11 in the menu, 20 in the spec). ⛔ No hand-kept list in this file.
6566
*
6667
* Each label is a catalogue key, resolved in the designer locale at render
6768
* (objectui#10748, the objectui#10586 `KeyedOption` shape); the stored `value`
6869
* never moves.
6970
*/
70-
const WIDGET_TYPES: ReadonlyArray<{ value: DashboardWidgetTypeName; labelKey: string }> = [
71-
{ value: 'metric', labelKey: 'engine.inspector.widget.type.metric' },
72-
{ value: 'bar', labelKey: 'engine.inspector.widget.type.bar' },
73-
{ value: 'horizontal-bar', labelKey: 'engine.inspector.widget.type.horizontalBar' },
74-
{ value: 'line', labelKey: 'engine.inspector.widget.type.line' },
75-
{ value: 'area', labelKey: 'engine.inspector.widget.type.area' },
76-
{ value: 'pie', labelKey: 'engine.inspector.widget.type.pie' },
77-
{ value: 'donut', labelKey: 'engine.inspector.widget.type.donut' },
78-
{ value: 'funnel', labelKey: 'engine.inspector.widget.type.funnel' },
79-
{ value: 'table', labelKey: 'engine.inspector.widget.type.table' },
80-
{ value: 'pivot', labelKey: 'engine.inspector.widget.type.pivot' },
81-
];
71+
const WIDGET_TYPES: ReadonlyArray<{ value: DashboardWidgetTypeName; labelKey: string }> = WIDGET_TYPE_IDS.map(
72+
(id) => ({ value: id, labelKey: WIDGET_TYPE_META[id].selectLabelKey }),
73+
);
8274

8375
const COLORS = [
8476
'default',

‎ui/packages/app-shell/src/views/metadata-admin/inspectors/inspectorStrings.i18n-10748.test.tsx‎

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ import { ObjectFieldInspector } from './ObjectFieldInspector';
7878
import { FlowEdgeInspector } from './FlowEdgeInspector';
7979
import { FlowNodeInspector } from './FlowNodeInspector';
8080
import { encodeNestedNodeId, NESTED_NODE_KIND } from './flow-nested-selection';
81+
import { WIDGET_TYPE_META } from '../previews/widget-types';
8182
// The designer's `designer.*` / `perm.*` rows live in `@object-ui/i18n`'s `studio`
8283
// namespace, whose `zh` catalogue is fetched on demand (objectstack#25922).
8384
// Resident before any case, so the zh rows below read synchronously.
@@ -139,19 +140,14 @@ function mountWidget(lang: Lang, draft: Record<string, unknown>, selection: { ki
139140
));
140141
}
141142

142-
/** Stored widget `type` → the row its option label reads. */
143-
const WIDGET_TYPE_KEYS: ReadonlyArray<[string, string]> = [
144-
['metric', 'engine.inspector.widget.type.metric'],
145-
['bar', 'engine.inspector.widget.type.bar'],
146-
['horizontal-bar', 'engine.inspector.widget.type.horizontalBar'],
147-
['line', 'engine.inspector.widget.type.line'],
148-
['area', 'engine.inspector.widget.type.area'],
149-
['pie', 'engine.inspector.widget.type.pie'],
150-
['donut', 'engine.inspector.widget.type.donut'],
151-
['funnel', 'engine.inspector.widget.type.funnel'],
152-
['table', 'engine.inspector.widget.type.table'],
153-
['pivot', 'engine.inspector.widget.type.pivot'],
154-
];
143+
/**
144+
* Stored widget `type` → the row its option label reads — read off the one
145+
* widget registry the select derives its options from (objectstack#26745).
146+
*/
147+
const WIDGET_TYPE_KEYS: ReadonlyArray<[string, string]> = Object.values(WIDGET_TYPE_META).map((m) => [
148+
m.id,
149+
m.selectLabelKey,
150+
]);
155151

156152
/** The widget-type select's trigger text, for a widget stored with `type`. */
157153
function widgetTypeTrigger(lang: Lang, type: string): string | null {

‎ui/packages/app-shell/src/views/metadata-admin/inspectors/inspectorStrings.i18n-10804.test.tsx‎

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -383,20 +383,12 @@ describe('the Problems panel — expression messages (objectui#10804)', () => {
383383

384384
// ─── Site 4: the dashboard add-widget picker (objectui#10805) ────────────────
385385

386-
/** Stored `type` → the catalogue row its picker entry displays. */
387-
const WIDGET_TYPE_KEYS: ReadonlyArray<[string, string]> = [
388-
['metric', 'engine.widgetPicker.type.metric'],
389-
['bar', 'engine.widgetPicker.type.bar'],
390-
['horizontal-bar', 'engine.widgetPicker.type.horizontalBar'],
391-
['line', 'engine.widgetPicker.type.line'],
392-
['area', 'engine.widgetPicker.type.area'],
393-
['pie', 'engine.widgetPicker.type.pie'],
394-
['donut', 'engine.widgetPicker.type.donut'],
395-
['scatter', 'engine.widgetPicker.type.scatter'],
396-
['funnel', 'engine.widgetPicker.type.funnel'],
397-
['table', 'engine.widgetPicker.type.table'],
398-
['pivot', 'engine.widgetPicker.type.pivot'],
399-
];
386+
/**
387+
* Stored `type` → the catalogue row its picker entry displays — read off the
388+
* one widget registry (objectstack#26745), which derives the offered set from
389+
* the spec, so this suite covers every type the picker offers.
390+
*/
391+
const WIDGET_TYPE_KEYS: ReadonlyArray<[string, string]> = Object.values(WIDGET_TYPE_META).map((m) => [m.id, m.labelKey]);
400392
const CATEGORIES = ['kpi', 'chart', 'data'] as const;
401393

402394
/** Mount the dashboard inspector with no widgets and open its add-widget picker. */

0 commit comments

Comments
 (0)