Skip to content

Commit 32e8b66

Browse files
authored
build(deps): update devframe to 1.3.0 and drop the resource template patches (#441)
Devframe 1.3.0 ships the resourceTemplates and onResourcesChanged MCP route options, so an installed package now serves the per-page resource templates and their list_changed notifications. Before, only the workspace had them, through patches that don't ship. The patches are redone against 1.3.0 and keep only the prompts route option, which devframe still lacks. cac moves to ^7.1.0 so devframe resolves to one copy. The install e2e checks that `pangular dev` from the installed package lists resource templates over MCP, and the docs and the changelog say prompts still need a later devframe. The extension bundle is rebuilt for the devframe 1.3.0 client code. Refs #428
1 parent a3f8c2e commit 32e8b66

23 files changed

Lines changed: 442 additions & 588 deletions

‎apps/docs/src/content/agents/mcp-server.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ The prompts follow the same config as the tools. A prompt is left out when a too
257257

258258
The argument is your own text. The server puts it on one line, cuts it at 200 characters and masks JWTs, bearer tokens and secret values in it, the same way it masks tool answers.
259259

260-
The stdio server offers no prompts. The prompts need a devframe patch that devframe 1.2.6 does not ship, so an installed package offers none until devframe ships it.
260+
The stdio server offers no prompts. The prompts need a devframe patch that devframe 1.3.0 does not ship, so an installed package offers none until devframe ships it.
261261

262262
### Resource templates
263263

‎apps/docs/src/content/agents/resources.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ When a page starts reporting or expires, the server sends `notifications/resourc
111111

112112
The HTTP endpoint is stateless, so the notification only reaches a client that keeps a stream open for it: one that speaks the 2026-07-28 protocol and calls `subscriptions/listen` with `resourcesListChanged`. A client on the 2025 protocol versions, such as one built on the MCP SDK 1.x defaults, gets no notification, even though `initialize` advertises `listChanged`. Such a client sees new pages the next time it calls `resources/list`, or through the [templates](#read-one-page), which need no list.
113113

114-
Like the prompts, the templates need a devframe patch that devframe 1.2.6 does not ship. The stdio server has no templates, since no page connects to it.
114+
The templates and their `list_changed` notifications are part of devframe since 1.3.0. The stdio server has no templates, since no page connects to it.
115115

116116
## Shared state
117117

‎apps/docs/src/content/contributing/development.md‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,15 @@ pnpm install
4343

4444
### Patched dependencies
4545

46-
`patches/` holds `pnpm patch` changes to the built files of `devframe`, `@devframes/agentic` and `@devframes/hub` 1.2.6, listed under `patchedDependencies` in `pnpm-workspace.yaml`. They add what devframe doesn't ship:
46+
`patches/` holds `pnpm patch` changes to the built files of `devframe`, `@devframes/agentic` and `@devframes/hub` 1.3.0, listed under `patchedDependencies` in `pnpm-workspace.yaml`. They add what devframe doesn't ship:
4747

48-
| Patch | What it adds | Used by |
49-
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------- |
50-
| `prompts` | An MCP route option with prompt templates. `@devframes/agentic` declares the `prompts` capability and answers `prompts/list` and `prompts/get` (invalid params for an unknown prompt or a missing required argument). Patched in `devframe`, `@devframes/hub` and `@devframes/agentic`. | `pangularMcpPrompts()` in `packages/devtools/src/agent-prompts.ts`, through `pangularMcp()` |
51-
| `resourceTemplates` | MCP route options for resource templates and a host hook for resource list changes. `@devframes/agentic` answers `resources/templates/list`, reads a URI through the first template that matches it (`{name}` variables only, one URI segment each), adds each template's `list()` entries to `resources/list`, and sends `notifications/resources/list_changed` when `onResourcesChanged` calls back. Patched in `devframe`, `@devframes/hub` and `@devframes/agentic`. | `pangularMcpResourceTemplates()` and `pangularMcpPagesChanged()` in `packages/devtools/src/agent-page-resources.ts`, through `pangularMcp()` |
48+
| Patch | What it adds | Used by |
49+
| --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
50+
| `prompts` | An MCP route option with prompt templates. `@devframes/agentic` declares the `prompts` capability and answers `prompts/list` and `prompts/get` (invalid params for an unknown prompt or a missing required argument). Patched in `devframe`, `@devframes/hub` and `@devframes/agentic`. | `pangularMcpPrompts()` in `packages/devtools/src/agent-prompts.ts`, through `pangularMcp()` |
5251

53-
Some route options need no patch. The `exposeSharedState` filter, which hides the shared-state keys of an inspector with `agent.tools.<name>: false`, is part of devframe since 1.2.4. The server `instructions` and `withMcpContent`, which `screenshot-component` uses to send its image as its own MCP block, are part of devframe since 1.2.6.
52+
Some route options need no patch. The `exposeSharedState` filter, which hides the shared-state keys of an inspector with `agent.tools.<name>: false`, is part of devframe since 1.2.4. The server `instructions` and `withMcpContent`, which `screenshot-component` uses to send its image as its own MCP block, are part of devframe since 1.2.6. The `resourceTemplates` and `onResourcesChanged` route options, which `pangularMcpResourceTemplates()` and `pangularMcpPagesChanged()` in `packages/devtools/src/agent-page-resources.ts` use, are part of devframe since 1.3.0.
5453

55-
The patches apply only inside this repository. An app that installs the published package gets no prompts and no page resource templates until devframe ships them. Each patch names an exact version and file names with build hashes, so a devframe upgrade needs the patches redone with `pnpm patch`, or removed once devframe has the feature.
54+
The patches apply only inside this repository. An app that installs the published package gets no prompts until devframe ships them. `pnpm e2e:install` checks that the installed package lists resource templates over MCP. Each patch names an exact version and file names with build hashes, so a devframe upgrade needs the patches redone with `pnpm patch`, or removed once devframe has the feature.
5655

5756
## Project structure
5857

‎examples/angular-native/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@ng-native/platform": "0.2.0",
2121
"@ngrx/signals": "^22.0.1",
2222
"@pangular-inspector/devtools": "file:pangular-inspector-devtools.tgz",
23-
"devframe": "^1.2.6",
23+
"devframe": "^1.3.0",
2424
"expo": "~57.0.26",
2525
"react": "19.2.3",
2626
"react-native": "0.86.3",

‎extension/ui/THIRD_PARTY_LICENSES.md‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎extension/ui/assets/browser-agent-rpc-BXhoSh1z-CO6sIa2s.js‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎extension/ui/assets/browser-agent-rpc-KH4HHvHf-Coz0PPwM.js‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎extension/ui/index.html‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"@angular/ssr": "^22.1.8",
6161
"@ngrx/signals": "^22.0.1",
6262
"@pangular-inspector/devtools": "workspace:*",
63-
"devframe": "^1.2.6",
63+
"devframe": "^1.3.0",
6464
"express": "^5.1.0",
6565
"rxjs": "~7.8.0",
6666
"tslib": "^2.3.0",
@@ -74,8 +74,8 @@
7474
"@angular/cli": "^22.1.8",
7575
"@angular/compiler-cli": "^22.1.0",
7676
"@axe-core/playwright": "^4.13.0",
77-
"@devframes/agentic": "^1.2.6",
78-
"@devframes/vite": "^1.2.6",
77+
"@devframes/agentic": "^1.3.0",
78+
"@devframes/vite": "^1.3.0",
7979
"@ngrx/store": "^22.0.1",
8080
"@ngrx/store-devtools": "^22.0.1",
8181
"@nx/angular": "23.2.1",

0 commit comments

Comments
 (0)