Skip to content

Commit 348aea7

Browse files
committed
chore: remove deprecated partial-json workspace
1 parent f8e8f46 commit 348aea7

22 files changed

Lines changed: 15 additions & 1321 deletions

File tree

apps/website/content/docs/chat/api/parse-tree-store.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# createParseTreeStore()
22

3-
Factory function that creates a `ParseTreeStore` — a bridge between the `@ngaf/partial-json` parser and Angular's signal-based `Spec` rendering. It materializes the parse tree into a `Spec` signal with structural sharing on each push.
3+
Factory function that creates a `ParseTreeStore` — a bridge between the `@cacheplane/partial-json` parser and Angular's signal-based `Spec` rendering. It materializes the parse tree into a `Spec` signal with structural sharing on each push.
44

55
**Import:**
66

@@ -17,7 +17,7 @@ function createParseTreeStore(parser: PartialJsonParser): ParseTreeStore
1717

1818
| Parameter | Type | Description |
1919
|-----------|------|-------------|
20-
| `parser` | `PartialJsonParser` | A parser instance from `createPartialJsonParser()` in `@ngaf/partial-json` |
20+
| `parser` | `PartialJsonParser` | A parser instance from `createPartialJsonParser()` in `@cacheplane/partial-json` |
2121

2222
**Returns:** `ParseTreeStore`must be called within an Angular injection context.
2323

@@ -50,7 +50,7 @@ interface ElementAccumulationState {
5050
## Usage
5151

5252
```typescript
53-
import { createPartialJsonParser } from '@ngaf/partial-json';
53+
import { createPartialJsonParser } from '@cacheplane/partial-json';
5454
import { createParseTreeStore } from '@ngaf/chat';
5555
5656
const parser = createPartialJsonParser();

apps/website/content/docs/chat/getting-started/installation.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,12 @@ npm install @ngaf/chat marked
3232
| `@angular/forms` | `^20.0.0 \|\| ^21.0.0` | Yes |
3333
| `@ngaf/render` | `^0.0.1` | Yes |
3434
| `@ngaf/a2ui` | `^0.0.1` | Yes |
35-
| `@ngaf/partial-json` | `^0.0.1` | Yes |
3635
| `@json-render/core` | `^0.16.0` | Yes |
3736
| `@langchain/core` | `^1.1.33` | Yes |
3837
| `marked` | `^15.0.0 \|\| ^16.0.0` | Yes |
3938

39+
`@cacheplane/partial-json` is installed by `@ngaf/chat` for streaming JSON parsing.
40+
4041
<Callout type="info" title="Markdown rendering">
4142
`marked` parses AI message content into HTML (headings, code blocks, tables, lists). It is a required peer; the library ships a defensive plain-text fallback for resilience, but the rendered output is unusable without `marked` installed.
4243
</Callout>

apps/website/content/docs/chat/guides/generative-ui.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ AI message content (token by token)
1616
→ JSON specs via RenderSpecComponent + your view registry
1717
```
1818

19-
The JSON path uses `@ngaf/partial-json` to parse incomplete JSON character-by-character, producing a live `Spec` signal with structural sharing — unchanged elements keep the same object reference so Angular skips re-rendering them.
19+
The JSON path uses `@cacheplane/partial-json` to parse incomplete JSON character-by-character, producing a live `Spec` signal with structural sharing — unchanged elements keep the same object reference so Angular skips re-rendering them.
2020

2121
## Setup
2222

apps/website/content/docs/chat/guides/streaming.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Each AI message is processed by a `ContentClassifier` that examines the content
88

99
| Trigger | Content Type | What Happens |
1010
|---------|-------------|--------------|
11-
| First non-whitespace is `{` | `json-render` | Parsed as a JSON spec via `@ngaf/partial-json` |
11+
| First non-whitespace is `{` | `json-render` | Parsed as a JSON spec via `@cacheplane/partial-json` |
1212
| Any other text | `markdown` | Rendered as markdown prose |
1313

1414
<Callout type="info" title="Per-message classification">
@@ -74,7 +74,7 @@ type ContentType = 'undetermined' | 'markdown' | 'json-render' | 'a2ui' | 'mixed
7474
For lower-level control over JSON-to-Spec materialization:
7575

7676
```typescript
77-
import { createPartialJsonParser } from '@ngaf/partial-json';
77+
import { createPartialJsonParser } from '@cacheplane/partial-json';
7878
import { createParseTreeStore } from '@ngaf/chat';
7979

8080
const parser = createPartialJsonParser();

apps/website/src/app/llms.txt/route.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ function buildLlmsTxt(): string {
2626
'- @ngaf/ag-ui — adapter for any AG-UI-compatible backend (CrewAI, Mastra, Microsoft AF, AG2, Pydantic AI, AWS Strands, CopilotKit runtime)',
2727
'- @ngaf/render — generative UI runtime (Vercel json-render + Google A2UI)',
2828
'- @ngaf/a2ui — A2UI catalog components',
29-
'- @ngaf/partial-json — streaming JSON parser',
3029
'- @ngaf/licensing — license verification client',
3130
'',
3231
'## Install',

cockpit/render/shared/streaming-simulator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// SPDX-License-Identifier: MIT
22
import { signal, computed } from '@angular/core';
3-
import { createPartialJsonParser, materialize } from '@ngaf/partial-json';
4-
import type { PartialJsonParser, ParseEvent } from '@ngaf/partial-json';
3+
import { createPartialJsonParser, materialize } from '@cacheplane/partial-json';
4+
import type { PartialJsonParser, ParseEvent } from '@cacheplane/partial-json';
55
import type { Spec } from '@json-render/core';
66

77
export class StreamingSimulator {

docs/RELEASE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Release Process
22

3-
The seven publishable libraries (`@ngaf/chat`, `@ngaf/langgraph`, `@ngaf/ag-ui`, `@ngaf/render`, `@ngaf/a2ui`, `@ngaf/partial-json`, `@ngaf/licensing`) ship together at a synchronized version via Nx Release. During the `0.0.x` exploratory phase, only patch bumps are used.
3+
The seven publishable libraries (`@ngaf/chat`, `@ngaf/langgraph`, `@ngaf/ag-ui`, `@ngaf/render`, `@ngaf/a2ui`, `@ngaf/licensing`, `@ngaf/telemetry`) ship together at a synchronized version via Nx Release. During the `0.0.x` exploratory phase, only patch bumps are used.
44

55
## One-shot release (recommended; second release onward)
66

@@ -51,7 +51,7 @@ The very first publish ships the version currently on disk (`0.0.1`) — no vers
5151

5252
```bash
5353
# 1. Build everything
54-
npx nx run-many -t build --projects=chat,langgraph,ag-ui,render,a2ui,partial-json,licensing
54+
npx nx run-many -t build --projects=chat,langgraph,ag-ui,render,a2ui,licensing,telemetry
5555

5656
# 2. Generate the initial CHANGELOG, commit, and tag v0.0.1
5757
npx nx release changelog 0.0.1 --first-release

libs/partial-json/package.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

libs/partial-json/project.json

Lines changed: 0 additions & 37 deletions
This file was deleted.

libs/partial-json/src/index.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)