Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .changeset/37753-build-progress-frame-retired.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
'@objectstack/spec': minor
---

fix(spec)!: retire the build-progress stream frame (`ai/build-progress.zod.ts`) — its reader and its producer are gone

Clause-②: no (narrowing) — six published exports of `@objectstack/spec/ai` are removed
Metadata-protocol: narrowed

<!-- adr-0087: registered ai-build-progress-frame-retired -->

**BREAKING** for TypeScript code that imports the build-progress frame from `@objectstack/spec/ai`. The module declared the payload of the `data-build-progress` stream part the build chat drew as its progress panel. That panel was removed with the build chat front end, and the cloud build loop that emitted the frame was removed with it, so nothing parsed the frame any more and the exported schemas read as a capability that no longer exists (ADR-0049 enforce-or-remove). It was never authored metadata: no metadata type, source file or stored row carries it, so there is nothing for `os migrate meta` to rewrite. A lingering import stops compiling, which is where an upgrader meets the change.

What moves (each line FROM → TO):

- `BuildProgressFrameSchema`, `BuildProgressFrame` (`@objectstack/spec/ai`): FROM the frame's `data` floor (`phase`, `hop`, `tool`) TO removed — delete the import and the code that emits or reads a `data-build-progress` part.
- `BuildProgressPhaseSchema`, `BuildProgressPhase`, `BUILD_PROGRESS_PHASES` (`@objectstack/spec/ai`): FROM the closed phase vocabulary (`structure`, `data`, `verify`, `done`) TO removed — delete the import.
- `BUILD_PROGRESS_FRAME_TYPE` (`@objectstack/spec/ai`): FROM the literal `'data-build-progress'` TO removed — delete the import.

The fix: delete the imports. A host that still streams a progress part of its own passes any `data-` part name to `ctx.onProgress` (`ToolExecutionContext.onProgress`, unchanged) and owns the payload shape it sends.

The retirement kit: `ai/build-progress.zod.ts` and its test deleted, `RETIRED_DEFS_BY_MAJOR[19]` rows `ai/BuildProgressFrame` and `ai/BuildProgressPhase`, D3 `ai-build-progress-frame-retired`, the `json-schema.manifest/ai.json` and `authorable-surface/ai.json` rows deleted deliberately (the def is no longer emitted), the regenerated `api-surface`, `export-origins` and `declaration-map` shards, the removed `build-progress` reference page, and the `type-alias-convention` pin count 881 → 879.
131 changes: 0 additions & 131 deletions content/docs/references/ai/build-progress.mdx

This file was deleted.

3 changes: 1 addition & 2 deletions content/docs/references/ai/index.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: AI Protocol — complete schema reference
navTitle: AI Protocol
description: "The ObjectStack AI Protocol in 18 reference pages: every schema in @objectstack/spec with its properties, types, defaults and a TypeScript example."
description: "The ObjectStack AI Protocol in 17 reference pages: every schema in @objectstack/spec with its properties, types, defaults and a TypeScript example."
---

{/* ⚠️ AUTO-GENERATED — DO NOT EDIT. Run build-docs.ts to regenerate. Hand-written docs live in the module folders under content/docs/. */}
Expand All @@ -12,7 +12,6 @@ This section contains all protocol schemas for the ai layer of ObjectStack.
<Card href="/docs/references/ai/agent" title="Agent" description="Source: packages/spec/src/ai/agent.zod.ts" />
<Card href="/docs/references/ai/ai-context" title="Ai Context" description="Source: packages/spec/src/ai/ai-context.zod.ts" />
<Card href="/docs/references/ai/ask-question" title="Ask Question" description="Source: packages/spec/src/ai/ask-question.zod.ts" />
<Card href="/docs/references/ai/build-progress" title="Build Progress" description="Source: packages/spec/src/ai/build-progress.zod.ts" />
<Card href="/docs/references/ai/conversation" title="Conversation" description="Source: packages/spec/src/ai/conversation.zod.ts" />
<Card href="/docs/references/ai/dataset-tools" title="Dataset Tools" description="Source: packages/spec/src/ai/dataset-tools.zod.ts" />
<Card href="/docs/references/ai/draft-review" title="Draft Review" description="Source: packages/spec/src/ai/draft-review.zod.ts" />
Expand Down
1 change: 0 additions & 1 deletion content/docs/references/ai/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"---More---",
"ai-context",
"ask-question",
"build-progress",
"dataset-tools",
"draft-review",
"object-query-source",
Expand Down
9 changes: 4 additions & 5 deletions content/docs/references/index.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Protocol reference — every schema by module
navTitle: Protocol Reference
description: Every schema published by @objectstack/spec — 1744 schemas across 14 protocol modules
description: Every schema published by @objectstack/spec — 1742 schemas across 14 protocol modules
---

{/* ⚠️ AUTO-GENERATED — DO NOT EDIT. Run build-docs.ts to regenerate. Hand-written docs live in the module folders under content/docs/. */}
Expand All @@ -22,7 +22,7 @@ counts are sums of the rows they head. Regenerate with

| Module | Pages | Schemas | Description |
| :--- | ---: | ---: | :--- |
| [AI Protocol](/docs/references/ai) | 18 | 104 | Agents, tools, skills, RAG and knowledge sources, model registry, conversations. |
| [AI Protocol](/docs/references/ai) | 17 | 102 | Agents, tools, skills, RAG and knowledge sources, model registry, conversations. |
| [API Protocol](https://github.com/objectstack-ai/objectstack/tree/main/packages/spec/docs/references/api) | 37 | 529 | REST contracts, endpoints, routing, realtime, batch, discovery. |
| [Automation Protocol](/docs/references/automation) | 16 | 82 | Flows and their nodes, approvals, ETL pipelines, webhooks, state machines, execution records. |
| [Data Protocol](/docs/references/data) | 35 | 197 | Objects, fields, queries, filters, datasources and drivers — the ObjectQL layer. |
Expand All @@ -36,13 +36,13 @@ counts are sums of the rows they head. Regenerate with
| [Studio Protocol](https://github.com/objectstack-ai/objectstack/tree/main/packages/spec/docs/references/studio) | 3 | 35 | Studio designer metadata — the authoring surfaces for the protocols above. |
| [System Protocol](https://github.com/objectstack-ai/objectstack/tree/main/packages/spec/docs/references/system) | 40 | 298 | The runtime environment — logging, jobs, cache, metrics, notifications, i18n and compliance. |
| [UI Protocol](/docs/references/ui) | 17 | 186 | Apps, pages, views, dashboards, reports, actions and themes — the ObjectUI layer. |
| **Total** | **224** | **1744** | 14 protocol modules |
| **Total** | **223** | **1742** | 14 protocol modules |

---

## AI Protocol

**Source:** `packages/spec/src/ai/` · **Import:** `@objectstack/spec/ai` · **18 pages, 104 schemas**
**Source:** `packages/spec/src/ai/` · **Import:** `@objectstack/spec/ai` · **17 pages, 102 schemas**

Agents, tools, skills, RAG and knowledge sources, model registry, conversations.

Expand All @@ -51,7 +51,6 @@ Agents, tools, skills, RAG and knowledge sources, model registry, conversations.
| [`agent.zod.ts`](/docs/references/ai/agent) | `AIModelConfig`, `Agent`, `StructuredOutputConfig`, `StructuredOutputFormat`, `TransformPipelineStep` |
| [`ai-context.zod.ts`](/docs/references/ai/ai-context) | `AiContext`, `AiContextBody`, `AiContextRelated`, `AiContextRelatedWhere` |
| [`ask-question.zod.ts`](/docs/references/ai/ask-question) | `AskQuestion`, `AskQuestionEnvelope`, `AskQuestionOption` |
| [`build-progress.zod.ts`](/docs/references/ai/build-progress) | `BuildProgressFrame`, `BuildProgressPhase` |
| [`conversation.zod.ts`](/docs/references/ai/conversation) | `CodeContent`, `ConversationAnalytics`, `ConversationContext`, `ConversationMessage`, `ConversationSession`, `ConversationSummary`, `FileContent`, `FunctionCall`, `ImageContent`, `MessageContent`, `MessageContentType`, `MessagePruningEvent`, `MessageRole`, `TextContent`, `TokenBudgetConfig`, `TokenBudgetStrategy`, `TokenUsageStats`, `ToolCall` |
| [`dataset-tools.zod.ts`](/docs/references/ai/dataset-tools) | `DatasetNextStep`, `DatasetNextStepDecision`, `DatasetProvenance`, `DatasetTermCandidate`, `DatasetTermMatch`, `DatasetTermMatchedOn`, `DatasetToolCatalogDimension`, `DatasetToolCatalogEntry`, `DatasetToolCatalogMeasure`, `ListDatasetsInput`, `ListDatasetsOutput`, `QueryDatasetInput`, `QueryDatasetOutput` |
| [`draft-review.zod.ts`](/docs/references/ai/draft-review) | `DraftReviewItem`, `DraftReviewLinks`, `DraftReviewList`, `DraftReviewVerdict`, `DraftReviewVerdictRefusal` |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ hand-patch a number here** — fix the code or the verdict and regenerate.

| Dir | Sites |
|---|---|
| `ai/` | 121 |
| `ai/` | 120 |
6 changes: 0 additions & 6 deletions packages/spec/api-surface/ai.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@
"AskQuestionOptionSchema (const)",
"AskQuestionParsed (type)",
"AskQuestionSchema (const)",
"BUILD_PROGRESS_FRAME_TYPE (const)",
"BUILD_PROGRESS_PHASES (const)",
"BlueprintApp (type)",
"BlueprintAppParsed (type)",
"BlueprintAppSchema (const)",
Expand All @@ -71,10 +69,6 @@
"BlueprintWidgetCondition (type)",
"BlueprintWidgetConditionSchema (const)",
"BodyHeading (interface)",
"BuildProgressFrame (type)",
"BuildProgressFrameSchema (const)",
"BuildProgressPhase (type)",
"BuildProgressPhaseSchema (const)",
"CodeContentSchema (const)",
"ConversationAnalytics (type)",
"ConversationAnalyticsParsed (type)",
Expand Down
3 changes: 0 additions & 3 deletions packages/spec/authorable-surface/ai.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,6 @@
"ai/BlueprintWidgetCondition:field",
"ai/BlueprintWidgetCondition:op",
"ai/BlueprintWidgetCondition:value",
"ai/BuildProgressFrame:hop",
"ai/BuildProgressFrame:phase",
"ai/BuildProgressFrame:tool",
"ai/CodeContent:language",
"ai/CodeContent:metadata",
"ai/CodeContent:text",
Expand Down
4 changes: 0 additions & 4 deletions packages/spec/declaration-map/ai.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@
"BlueprintViewSchema": "ai/BlueprintView",
"BlueprintWidgetCondition": "ai/BlueprintWidgetCondition",
"BlueprintWidgetConditionSchema": "ai/BlueprintWidgetCondition",
"BuildProgressFrame": "ai/BuildProgressFrame",
"BuildProgressFrameSchema": "ai/BuildProgressFrame",
"BuildProgressPhase": "ai/BuildProgressPhase",
"BuildProgressPhaseSchema": "ai/BuildProgressPhase",
"CodeContentSchema": "ai/CodeContent",
"ConversationAnalytics": "ai/ConversationAnalytics",
"ConversationAnalyticsSchema": "ai/ConversationAnalytics",
Expand Down
6 changes: 0 additions & 6 deletions packages/spec/export-origins/ai.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@
"AskQuestionOptionSchema": "src/ai/ask-question.zod.ts#AskQuestionOptionSchema (const)",
"AskQuestionParsed": "src/ai/ask-question.zod.ts#AskQuestionParsed (type)",
"AskQuestionSchema": "src/ai/ask-question.zod.ts#AskQuestionSchema (const)",
"BUILD_PROGRESS_FRAME_TYPE": "src/ai/build-progress.zod.ts#BUILD_PROGRESS_FRAME_TYPE (const)",
"BUILD_PROGRESS_PHASES": "src/ai/build-progress.zod.ts#BUILD_PROGRESS_PHASES (const)",
"BlueprintApp": "src/ai/solution-blueprint.zod.ts#BlueprintApp (type)",
"BlueprintAppParsed": "src/ai/solution-blueprint.zod.ts#BlueprintAppParsed (type)",
"BlueprintAppSchema": "src/ai/solution-blueprint.zod.ts#BlueprintAppSchema (const)",
Expand All @@ -71,10 +69,6 @@
"BlueprintWidgetCondition": "src/ai/solution-blueprint.zod.ts#BlueprintWidgetCondition (type)",
"BlueprintWidgetConditionSchema": "src/ai/solution-blueprint.zod.ts#BlueprintWidgetConditionSchema (const)",
"BodyHeading": "src/ai/record-body-anchor.ts#BodyHeading (interface)",
"BuildProgressFrame": "src/ai/build-progress.zod.ts#BuildProgressFrame (type)",
"BuildProgressFrameSchema": "src/ai/build-progress.zod.ts#BuildProgressFrameSchema (const)",
"BuildProgressPhase": "src/ai/build-progress.zod.ts#BuildProgressPhase (type)",
"BuildProgressPhaseSchema": "src/ai/build-progress.zod.ts#BuildProgressPhaseSchema (const)",
"CodeContentSchema": "src/ai/conversation.zod.ts#CodeContentSchema (const)",
"ConversationAnalytics": "src/ai/conversation.zod.ts#ConversationAnalytics (type)",
"ConversationAnalyticsParsed": "src/ai/conversation.zod.ts#ConversationAnalyticsParsed (type)",
Expand Down
2 changes: 0 additions & 2 deletions packages/spec/json-schema.manifest/ai.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
"ai/BlueprintSummaryOperations",
"ai/BlueprintView",
"ai/BlueprintWidgetCondition",
"ai/BuildProgressFrame",
"ai/BuildProgressPhase",
"ai/CodeContent",
"ai/ConversationAnalytics",
"ai/ConversationContext",
Expand Down
4 changes: 2 additions & 2 deletions packages/spec/llms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const query = {

---

## 3. Schema Inventory by Domain (233 schemas)
## 3. Schema Inventory by Domain (232 schemas)

Counted as `*.zod.ts` modules under `packages/spec/src/<domain>/` — the sources
that ship in this tarball (`files` includes `src/**/*.zod.ts`), so every number
Expand All @@ -92,7 +92,7 @@ here is verifiable from the installed package.
| ui | 19 | View, App (incl. AI Chat Nav Params), Action, Dashboard, Page, Chart, Component, Animation |
| automation | 16 | Flow, Approval, Assignment Rule, BPMN Interop, Control Flow, Webhook, Schedule Organization |
| shared | 16 | Enums, HTTP, Identifiers, Mapping, Metadata Types, Connector Auth, Retry Policy, Conditional Formatting, Value Domain, Epoch Instant (EpochMs), Duration (DurationMs / DurationSeconds) |
| ai | 18 | Agent, AI Context (context pack), Ask Question (question-card envelope), Build Progress, Conversation, Dataset Tools, Draft Review (`data-draft-review` part), Knowledge Source/Document, Model Registry, MCP, Object-Query Source, Record Citation, Record Context Tools (`get_record_context`), Skill, Tool |
| ai | 17 | Agent, AI Context (context pack), Ask Question (question-card envelope), Conversation, Dataset Tools, Draft Review (`data-draft-review` part), Knowledge Source/Document, Model Registry, MCP, Object-Query Source, Record Citation, Record Context Tools (`get_record_context`), Skill, Tool |
| identity | 5 | Identity, Organization, Position, SCIM, Eval User |
| marketplace | 5 | Marketplace, Package, Package Version, Template Manifest, Taxonomy |
| security | 5 | Permission, RLS, Sharing, Queue, Explain |
Expand Down
Loading
Loading