Skip to content

Commit e4ff5c8

Browse files
erkamyamanclaude
andauthored
build(deps): update devframe to 1.3.1 and drop the last patches (#442)
Co-authored-by: Claude <[email protected]>
1 parent 32e8b66 commit e4ff5c8

17 files changed

Lines changed: 128 additions & 378 deletions

File tree

‎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.3.0 does not ship, so an installed package offers none until devframe ships it.
260+
The stdio server offers no prompts. The prompts are part of devframe since 1.3.1.
261261

262262
### Resource templates
263263

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

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,18 @@ pnpm install
4141
| `pre-commit` | Formats the staged files with Prettier and stages the result. It skips a file that also has unstaged changes, so hunks you left out with `git add -p` stay out of the commit. |
4242
| `commit-msg` | Checks the message against the [commit message guidelines](https://github.com/pangular-inspector/devtools/blob/main/docs/contributing/commit-message-guidelines.md). It prints a warning and never blocks the commit. |
4343

44-
### Patched dependencies
44+
### Devframe versions
4545

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:
46+
Some MCP route options that `pangularMcp()` in `packages/devtools/src/agent-mcp.ts` sets need a minimum devframe version. The package depends on devframe 1.3.1, which has them all.
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()` |
48+
| Route option | Used for | Devframe |
49+
| -------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ | -------- |
50+
| `exposeSharedState` | Hiding the shared-state keys of an inspector with `agent.tools.<name>: false` | 1.2.4 |
51+
| `instructions` | The server instructions | 1.2.6 |
52+
| `resourceTemplates` and `onResourcesChanged` | The per-page resource templates and their `list_changed` notifications (`packages/devtools/src/agent-page-resources.ts`) | 1.3.0 |
53+
| `prompts` | The workflow prompts (`packages/devtools/src/agent-prompts.ts`) | 1.3.1 |
5154

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.
53-
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.
55+
`withMcpContent`, which `screenshot-component` uses to send its image as its own MCP block, is part of devframe since 1.2.6. `pnpm e2e:install` checks that the installed package lists resource templates and prompts over MCP.
5556

5657
## Project structure
5758

‎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.3.0",
23+
"devframe": "^1.3.1",
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.

‎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.3.0",
63+
"devframe": "^1.3.1",
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.3.0",
78-
"@devframes/vite": "^1.3.0",
77+
"@devframes/agentic": "^1.3.1",
78+
"@devframes/vite": "^1.3.1",
7979
"@ngrx/store": "^22.0.1",
8080
"@ngrx/store-devtools": "^22.0.1",
8181
"@nx/angular": "23.2.1",

‎packages/devtools/CHANGELOG.md‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ These changes can break a 0.0.7 setup without an error.
3131
- **Analog on pnpm needs one setting.** `@analogjs/vite-plugin-nitro` imports `h3` without declaring it, so under pnpm it can resolve to the h3 2 that this package brings in, and `vite build` fails with "does not provide an export named 'createEvent'". Declare `h3@^1` for the plugin with pnpm `packageExtensions`, as the Analog guide shows.
3232
- **Agent tools, arguments and resource templates are renamed, and old names are refused.** Update prompts, scripts and client allowlists. See **Agent tools renamed** below.
3333
- **Most entry points export less.** See **Removed exports** below.
34-
- **MCP prompts need a devframe release after 1.3.0.** The package depends on devframe 1.3.0, which serves the per-page resource templates and their `list_changed` notifications. With devframe 1.3.0 from npm, the HTTP endpoint sends no prompts. The workspace runs a patched devframe, so this only affects installed packages.
3534

3635
### Agent tools renamed
3736

@@ -161,7 +160,7 @@ What remains: `/config` exports `DEFAULT_POPUP_HOTKEY`, `PANGULAR_ACTIONS`, `PAN
161160
- Tool titles, inspector tags and safety tiers (`action` and `destructive`).
162161
- Every answer names the page it read, and one rule picks the default page for every tool.
163162
- Per-page resource templates and `list_changed` notifications (#417).
164-
- Five MCP prompts for common workflows: `inspect-page`, `debug-error`, `fix-form`, `performance-pass` and `verify-fix` (#416). Server instructions describe the tiers and the tools. Both need the patched devframe (see **Upgrading from 0.0.7**).
163+
- Five MCP prompts for common workflows: `inspect-page`, `debug-error`, `fix-form`, `performance-pass` and `verify-fix` (#416). Server instructions describe the tiers and the tools.
165164
- Agent skills shipped in the package, installed with `pangular skills install`.
166165
- Read-only tools for browser agents through WebMCP, off by default (`agent.browserTools`).
167166
- `pangular mcp --print-config` prints the client config for Claude Code, Cursor and VS Code.

‎packages/devtools/package.json‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -160,17 +160,17 @@
160160
"nativescript"
161161
],
162162
"dependencies": {
163-
"@devframes/agentic": "^1.3.0",
164-
"@devframes/hub": "^1.3.0",
165-
"@devframes/hub-ui": "^1.3.0",
166-
"@devframes/plugin-messages": "^1.3.0",
167-
"@devframes/plugin-messages--assets": "^1.3.0",
168-
"@devframes/plugin-terminals": "^1.3.0",
169-
"@devframes/plugin-terminals--assets": "^1.3.0",
163+
"@devframes/agentic": "^1.3.1",
164+
"@devframes/hub": "^1.3.1",
165+
"@devframes/hub-ui": "^1.3.1",
166+
"@devframes/plugin-messages": "^1.3.1",
167+
"@devframes/plugin-messages--assets": "^1.3.1",
168+
"@devframes/plugin-terminals": "^1.3.1",
169+
"@devframes/plugin-terminals--assets": "^1.3.1",
170170
"@valibot/to-json-schema": "^1.8.0",
171171
"axe-core": "^4.13.0",
172172
"cac": "^7.1.0",
173-
"devframe": "^1.3.0",
173+
"devframe": "^1.3.1",
174174
"valibot": "^1.5.0"
175175
},
176176
"peerDependencies": {

‎packages/devtools/src/__tests__/agent-mcp.test.ts‎

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { readFileSync, readdirSync } from 'node:fs';
1+
import { readFileSync } from 'node:fs';
22
import { fileURLToPath } from 'node:url';
33
import { createDevServer } from 'devframe/adapters/dev';
44
import { afterEach, describe, expect, it, vi } from 'vitest';
@@ -252,23 +252,12 @@ describe('pangular dev MCP route', () => {
252252
describe('shared-state filter source', () => {
253253
const repo = fileURLToPath(new URL('../../../../', import.meta.url));
254254

255-
// The filter must come from published devframe, not from `patches/`, which
256-
// apply only inside this repository: an app that installs the package would
257-
// otherwise get every key again (issue #238).
258-
it('needs no local patch', () => {
259-
for (const file of readdirSync(`${repo}patches`)) {
260-
const lines = readFileSync(`${repo}patches/${file}`, 'utf8').split('\n');
261-
// A line a hunk only touches (to add a comma) is removed and added again.
262-
const removed = new Set(
263-
lines
264-
.filter((line) => /^-(?!--)/.test(line))
265-
.map((line) => line.slice(1).replace(/,$/, '')),
266-
);
267-
const added = lines
268-
.filter((line) => /^\+(?!\+\+)/.test(line))
269-
.filter((line) => !removed.has(line.slice(1).replace(/,$/, '')));
270-
expect(added.join('\n'), file).not.toContain('exposeSharedState');
271-
}
255+
// The route options must come from published devframe, not from pnpm
256+
// patches, which apply only inside this repository: an app that installs
257+
// the package would otherwise miss them (issues #238 and #428).
258+
it('needs no local patch of devframe', () => {
259+
const workspace = readFileSync(`${repo}pnpm-workspace.yaml`, 'utf8');
260+
expect(workspace).not.toMatch(/^\s*'?(?:devframe|@devframes\/[\w-]+)@[^:]*'?:\s*patches\//m);
272261
});
273262

274263
it('requires a devframe release that has the route option', () => {

‎packages/devtools/src/agent-mcp.ts‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,8 @@ export function pangularMcpInstructions(config: ResolvedPangularConfig): string
3737
* dependency, and Pangular always registers agent tools.
3838
*
3939
* `exposeSharedState` (1.2.4 and later), `instructions` (1.2.6 and later),
40-
* `resourceTemplates` and `onResourcesChanged` (1.3.0 and later) are devframe
41-
* route options, so they also hold for the published package. `prompts` still
42-
* comes from the patches in `patches/`; without them devframe ignores it.
40+
* `resourceTemplates` and `onResourcesChanged` (1.3.0 and later) and `prompts`
41+
* (1.3.1 and later) are devframe route options.
4342
*/
4443
export function pangularMcp(
4544
setting: McpSetting | undefined,

‎packages/devtools/src/agent-prompts.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { agentToolOffered, type ResolvedPangularConfig } from './config.ts';
33
import { redactText } from './serialize.ts';
44
import { clip } from './text.ts';
55

6-
/** One MCP prompt, as the patched `@devframes/agentic` server takes it. */
6+
/** One MCP prompt, as `@devframes/agentic` takes it. */
77
export type PangularMcpPrompt = NonNullable<McpRouteOptions['prompts']>[number];
88

99
/** Whether a built-in agent tool is offered, by its name without `pangular:`. */

0 commit comments

Comments
 (0)