@quixomatic/rpf 0.3.1 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +236 -0
- package/README.md +4 -2
- package/assets/dev-host/boot.js +7 -223
- package/assets/dev-host/boot.js.LEGAL.txt +0 -22
- package/assets/dev-host/chunks/{accordion-O6VUPQ32.js → accordion-7MNNAFNO.js} +2 -2
- package/assets/dev-host/chunks/{alert-PRAGKG5L.js → alert-GIZIVENB.js} +2 -2
- package/assets/dev-host/chunks/{alert-dialog-SCBXM23J.js → alert-dialog-7NG5WNXK.js} +2 -2
- package/assets/dev-host/chunks/{avatar-WXPKQ3Z5.js → avatar-BCPZUJGX.js} +2 -2
- package/assets/dev-host/chunks/{breadcrumb-IJQJQ5JV.js → breadcrumb-T2XOHRDG.js} +2 -2
- package/assets/dev-host/chunks/button-TGT2523L.js +2 -0
- package/assets/dev-host/chunks/calendar-TOTKKMY2.js +2 -0
- package/assets/dev-host/chunks/{card-EY3LK2GB.js → card-LOSZVZYW.js} +2 -2
- package/assets/dev-host/chunks/{chart-2PHC6UIE.js → chart-43TBOZGK.js} +2 -2
- package/assets/dev-host/chunks/{chart-blocks-PZPCWCNT.js → chart-blocks-HLNNWNB5.js} +2 -2
- package/assets/dev-host/chunks/{chart-frame-MNUFXAPU.js → chart-frame-FNM5OPZU.js} +2 -2
- package/assets/dev-host/chunks/{chat-TTESCYES.js → chat-QVZ4BUWR.js} +2 -2
- package/assets/dev-host/chunks/{checkbox-Y2UGSRR4.js → checkbox-AFUTB4DV.js} +2 -2
- package/assets/dev-host/chunks/{chunk-UWANBOC6.js → chunk-2FVHAZMZ.js} +2 -2
- package/assets/dev-host/chunks/{chunk-CWDPAB6V.js → chunk-34RXMJIM.js} +2 -2
- package/assets/dev-host/chunks/chunk-354OFHNU.js +219 -0
- package/assets/dev-host/chunks/chunk-354OFHNU.js.LEGAL.txt +23 -0
- package/assets/dev-host/chunks/{chunk-CCXMDKVL.js → chunk-3LMPMW3Q.js} +2 -2
- package/assets/dev-host/chunks/{chunk-3H6F4X7R.js → chunk-4XESWRTW.js} +2 -2
- package/assets/dev-host/chunks/{chunk-PYWKHILP.js → chunk-7FCGD4LS.js} +2 -2
- package/assets/dev-host/chunks/{chunk-AVSRGCSF.js → chunk-7JQIKRBV.js} +2 -2
- package/assets/dev-host/chunks/{chunk-PHK25MY7.js → chunk-DU3VFETH.js} +2 -2
- package/assets/dev-host/chunks/{chunk-2IZ44WWI.js → chunk-E5JYU6CR.js} +2 -2
- package/assets/dev-host/chunks/{chunk-BB4IX5QA.js → chunk-FBZMZ5S2.js} +2 -2
- package/assets/dev-host/chunks/{chunk-GWDGPUGM.js → chunk-GSJT5YWB.js} +2 -2
- package/assets/dev-host/chunks/{chunk-OXJ6LWKI.js → chunk-HCQR5YME.js} +3 -3
- package/assets/dev-host/chunks/{chunk-APP2HKWR.js → chunk-HGBRF6KW.js} +2 -2
- package/assets/dev-host/chunks/{chunk-6ARM5VDH.js → chunk-HVTUE7NV.js} +2 -2
- package/assets/dev-host/chunks/{chunk-M7A47ZSM.js → chunk-IY3GAGI7.js} +2 -2
- package/assets/dev-host/chunks/{chunk-MGLBTOXD.js → chunk-KY2HARU6.js} +2 -2
- package/assets/dev-host/chunks/{chunk-EDEL6XSO.js → chunk-ND526XXU.js} +2 -2
- package/assets/dev-host/chunks/{chunk-UXUS6DNI.js → chunk-NMFZMT4R.js} +2 -2
- package/assets/dev-host/chunks/{chunk-XE5RQ73V.js → chunk-NPJXSRRT.js} +2 -2
- package/assets/dev-host/chunks/{chunk-FJRWQRLM.js → chunk-OUCK2LIZ.js} +2 -2
- package/assets/dev-host/chunks/{chunk-Z76KXEPD.js → chunk-OXLXEX2R.js} +2 -2
- package/assets/dev-host/chunks/{chunk-BH6FGVDP.js → chunk-PB5RYDO5.js} +2 -2
- package/assets/dev-host/chunks/{chunk-TQPXDAVH.js → chunk-QJVIEN5R.js} +2 -2
- package/assets/dev-host/chunks/{chunk-57M36GYM.js → chunk-QZ3NJHFR.js} +2 -2
- package/assets/dev-host/chunks/{chunk-FZPMZMFU.js → chunk-SC7J7HFI.js} +2 -2
- package/assets/dev-host/chunks/{chunk-X34AFUS2.js → chunk-SKBWMIS5.js} +2 -2
- package/assets/dev-host/chunks/{chunk-LTVKSGLG.js → chunk-UCEBXCOI.js} +2 -2
- package/assets/dev-host/chunks/{chunk-T7JFBQSG.js → chunk-UNKI7HPL.js} +2 -2
- package/assets/dev-host/chunks/{chunk-F5MKIWPQ.js → chunk-UPZXXDXM.js} +2 -2
- package/assets/dev-host/chunks/{chunk-ML6HCGK5.js → chunk-XBWE3IIB.js} +2 -2
- package/assets/dev-host/chunks/{chunk-NJX7QY3Z.js → chunk-YFI7GTF6.js} +2 -2
- package/assets/dev-host/chunks/{chunk-NI6ZJ6DH.js → chunk-YJM2Y722.js} +2 -2
- package/assets/dev-host/chunks/{chunk-WLBNJ4K3.js → chunk-ZNWVTDCV.js} +2 -2
- package/assets/dev-host/chunks/{chunk-UUJ5X322.js → chunk-ZTMZ7LJW.js} +2 -2
- package/assets/dev-host/chunks/{chunk-OW6AVFQA.js → chunk-ZZ2RYU7S.js} +2 -2
- package/assets/dev-host/chunks/{code-block-H2ETQV3M.js → code-block-IKYEIWY2.js} +2 -2
- package/assets/dev-host/chunks/code-editor-KDRLM33B.js +2 -0
- package/assets/dev-host/chunks/{collapsible-4ZOFMWLB.js → collapsible-WK7PDWEV.js} +2 -2
- package/assets/dev-host/chunks/{color-picker-RRCCLR54.js → color-picker-VPSOGTDM.js} +2 -2
- package/assets/dev-host/chunks/{combobox-U4455OMJ.js → combobox-GYLAHYVX.js} +2 -2
- package/assets/dev-host/chunks/{contrast-badge-KDF65X7J.js → contrast-badge-QZW62DMF.js} +2 -2
- package/assets/dev-host/chunks/{date-range-picker-WJYHAHRM.js → date-range-picker-6Q2JGR43.js} +2 -2
- package/assets/dev-host/chunks/{dialog-I6AGHWB3.js → dialog-HDQAIAFZ.js} +2 -2
- package/assets/dev-host/chunks/{dropdown-menu-LSOMXDWG.js → dropdown-menu-E7K3YNXS.js} +2 -2
- package/assets/dev-host/chunks/{empty-NLQODUSK.js → empty-JCVCSM3V.js} +2 -2
- package/assets/dev-host/chunks/{font-picker-3TLYYZJH.js → font-picker-7FBJCSTQ.js} +2 -2
- package/assets/dev-host/chunks/{frame-HA7UIYZF.js → frame-LZ2IUISE.js} +2 -2
- package/assets/dev-host/chunks/{heading-7M24WKK6.js → heading-GX36VR3U.js} +2 -2
- package/assets/dev-host/chunks/{hover-card-HSHOQPOI.js → hover-card-ONEUZ7TU.js} +2 -2
- package/assets/dev-host/chunks/{image-R7XGYKVH.js → image-E3BYZ2HA.js} +2 -2
- package/assets/dev-host/chunks/{input-YECXNM53.js → input-G7S4OLSN.js} +2 -2
- package/assets/dev-host/chunks/{input-group-GFKXSZM7.js → input-group-54JRMLWQ.js} +2 -2
- package/assets/dev-host/chunks/{kbd-V25ZMVCM.js → kbd-TKMXF542.js} +2 -2
- package/assets/dev-host/chunks/label-YIVRPKQJ.js +2 -0
- package/assets/dev-host/chunks/{label-value-6Z6ATP55.js → label-value-V7QDIDAP.js} +2 -2
- package/assets/dev-host/chunks/{logo-AAMBHX2W.js → logo-DBA4NHQE.js} +2 -2
- package/assets/dev-host/chunks/{number-field-6TCQAVTR.js → number-field-FPC3YXDC.js} +2 -2
- package/assets/dev-host/chunks/{pill-7L57ZNRJ.js → pill-4WVEOBR4.js} +2 -2
- package/assets/dev-host/chunks/{popover-3P6YNKH3.js → popover-GQD2U5SP.js} +2 -2
- package/assets/dev-host/chunks/{progress-RBCJRVM7.js → progress-TITSWD2A.js} +2 -2
- package/assets/dev-host/chunks/{radio-group-NJWXZCX3.js → radio-group-YA3OUIPB.js} +2 -2
- package/assets/dev-host/chunks/{resizable-XF4P6OKR.js → resizable-XQKUCHIS.js} +2 -2
- package/assets/dev-host/chunks/rich-text-2RYBPVRF.js +2 -0
- package/assets/dev-host/chunks/{rich-text-editor-T6KWD4P3.js → rich-text-editor-IX7RIMLI.js} +2 -2
- package/assets/dev-host/chunks/{scroll-row-LMI7JCFR.js → scroll-row-MZZQZYLM.js} +2 -2
- package/assets/dev-host/chunks/{select-F3MZWTTS.js → select-5U37ZHLQ.js} +2 -2
- package/assets/dev-host/chunks/separator-JATMMEKS.js +2 -0
- package/assets/dev-host/chunks/{sheet-EXRT4MFB.js → sheet-KTVNRYAO.js} +2 -2
- package/assets/dev-host/chunks/{side-panel-IBHLEANN.js → side-panel-2UVNFRIF.js} +2 -2
- package/assets/dev-host/chunks/{sidebar-VKQMQMF2.js → sidebar-GR4A2LDD.js} +2 -2
- package/assets/dev-host/chunks/{skeleton-KIRVQ4EO.js → skeleton-XE2TGBGQ.js} +2 -2
- package/assets/dev-host/chunks/{slider-XKYDL5MR.js → slider-BGGGQLSH.js} +2 -2
- package/assets/dev-host/chunks/{split-button-WP6LALDS.js → split-button-KLVGWHNN.js} +2 -2
- package/assets/dev-host/chunks/{stepper-KR6PXZHW.js → stepper-AY3NGEDC.js} +2 -2
- package/assets/dev-host/chunks/{switch-P6NJELJJ.js → switch-A2VSCLHA.js} +2 -2
- package/assets/dev-host/chunks/{tabs-PFPRJNVZ.js → tabs-2IO6EIED.js} +2 -2
- package/assets/dev-host/chunks/textarea-YQH2OPGH.js +2 -0
- package/assets/dev-host/chunks/{toggle-group-PS7JN2JM.js → toggle-group-3SDBWJ2G.js} +2 -2
- package/assets/dev-host/chunks/{tooltip-S4RBC3O4.js → tooltip-4QJ2SWCS.js} +2 -2
- package/assets/dev-host/chunks/{tree-NQF6ZJLH.js → tree-CFIKTPFC.js} +2 -2
- package/assets/dev-host/kit-candidates.json +1 -1
- package/assets/dev-host/kit-manifest.json +1 -1
- package/assets/dev-host/stage.js +54 -0
- package/assets/forge-app/app/assets/{_forge-shiki-langs-DaJjT17w.js → _forge-shiki-langs-Bm9NaYXm.js} +1 -1
- package/assets/forge-app/app/assets/{appendItems-CWJJlOE7.js → appendItems-DrlkyU0a.js} +1 -1
- package/assets/forge-app/app/assets/{core-Dl2d1S-D.js → core-8OhGxroQ.js} +1 -1
- package/assets/forge-app/app/assets/{diff-view-Chujmqzi.js → diff-view-rgZLuZMg.js} +4 -4
- package/assets/forge-app/app/assets/file-panel-CpPZ9DXB.js +1199 -0
- package/assets/forge-app/app/assets/{highlights-BxaWC1ve.js → highlights-C-SEG213.js} +1 -1
- package/assets/forge-app/app/assets/index-DWGc27yI.css +1 -0
- package/assets/forge-app/app/assets/index-DXDXX5UZ.js +298 -0
- package/assets/forge-app/app/assets/{loader-BMv9OYvr.js → loader-Du5I86pW.js} +1 -1
- package/assets/forge-app/app/assets/{shiki-CoRI3zWj.js → shiki-Bf12fWbJ.js} +2 -2
- package/assets/forge-app/app/assets/{stream-tokenizer-BMtK_3oz.js → stream-tokenizer-DdzFthqp.js} +1 -1
- package/assets/forge-app/app/assets/{terminal-view-D3CiLjfu.js → terminal-view-Co0jXSWF.js} +1 -1
- package/assets/forge-app/app/assets/{themes-CLX9vH7e.js → themes-BrkVmSlQ.js} +2 -2
- package/assets/forge-app/app/assets/{useNextRenderData-dgMkjxGZ.js → useNextRenderData-BKv-kpPs.js} +3 -3
- package/assets/forge-app/app/index.html +2 -2
- package/assets/forge-app/server.mjs +2677 -8753
- package/dist/cli.mjs +13247 -7148
- package/examples/component-workspace/README.md +23 -0
- package/examples/component-workspace/components/@example/greeting/component.json +8 -0
- package/examples/component-workspace/components/@example/greeting/main.tsx +22 -0
- package/examples/component-workspace/components/@example/greeting/options.schema.json +6 -0
- package/examples/component-workspace/forge.workspace.json +7 -0
- package/examples/component-workspace/stage.json +11 -0
- package/examples/header-slot-widget/README.md +30 -0
- package/examples/header-slot-widget/components/@example/page-actions/component.json +8 -0
- package/examples/header-slot-widget/components/@example/page-actions/main.tsx +37 -0
- package/examples/header-slot-widget/components/@example/page-actions/options.schema.json +9 -0
- package/examples/index.json +159 -0
- package/examples/layout-regions/README.md +41 -0
- package/examples/layout-regions/components/@example/workspace-shell/component.json +21 -0
- package/examples/layout-regions/components/@example/workspace-shell/main.tsx +61 -0
- package/examples/layout-regions/components/@example/workspace-shell/options.schema.json +29 -0
- package/examples/layout-regions/components/@example/workspace-shell/styles.css +95 -0
- package/examples/portal-list-page/README.md +22 -0
- package/examples/portal-list-page/portal.mjs +40 -0
- package/examples/portal-record-page/README.md +23 -0
- package/examples/portal-record-page/portal.mjs +62 -0
- package/examples/primitive-and-utility/README.md +19 -0
- package/examples/primitive-and-utility/components/@example/number-format/component.json +6 -0
- package/examples/primitive-and-utility/components/@example/number-format/main.tsx +30 -0
- package/examples/primitive-and-utility/components/@example/stat-tile/component.json +6 -0
- package/examples/primitive-and-utility/components/@example/stat-tile/main.tsx +45 -0
- package/examples/primitive-and-utility/components/@example/work-summary/component.json +9 -0
- package/examples/primitive-and-utility/components/@example/work-summary/main.tsx +31 -0
- package/examples/primitive-and-utility/components/@example/work-summary/options.schema.json +6 -0
- package/examples/primitive-and-utility/components/@example/work-summary/server.js +27 -0
- package/examples/side-panel/README.md +18 -0
- package/examples/side-panel/components/@example/help-button/component.json +8 -0
- package/examples/side-panel/components/@example/help-button/main.tsx +26 -0
- package/examples/side-panel/components/@example/help-button/options.schema.json +7 -0
- package/examples/side-panel/portal.mjs +46 -0
- package/examples/theme/README.md +16 -0
- package/examples/theme/themes/teal-harbor/theme.css +11 -0
- package/examples/theme/themes/teal-harbor/theme.json +8 -0
- package/examples/theme/themes/teal-harbor/tokens.json +72 -0
- package/examples/widget-options/README.md +25 -0
- package/examples/widget-options/components/@example/notice-banner/component.json +14 -0
- package/examples/widget-options/components/@example/notice-banner/main.tsx +60 -0
- package/examples/widget-options/components/@example/notice-banner/options.schema.json +24 -0
- package/examples/widget-server-user/README.md +21 -0
- package/examples/widget-server-user/components/@example/user-card/component.json +9 -0
- package/examples/widget-server-user/components/@example/user-card/main.tsx +51 -0
- package/examples/widget-server-user/components/@example/user-card/options.schema.json +6 -0
- package/examples/widget-server-user/components/@example/user-card/server.js +27 -0
- package/package.json +7 -3
- package/skills/react-portal/SKILL.md +23 -1
- package/skills/react-portal/references/cli.md +11 -0
- package/skills/react-portal/references/components.md +40 -2
- package/assets/dev-host/chunks/button-4JMBKYN4.js +0 -2
- package/assets/dev-host/chunks/calendar-XXLCAUPG.js +0 -2
- package/assets/dev-host/chunks/code-editor-2JYERJLS.js +0 -2
- package/assets/dev-host/chunks/label-LJT4V2CT.js +0 -2
- package/assets/dev-host/chunks/rich-text-7OMYZ564.js +0 -2
- package/assets/dev-host/chunks/separator-JRJYKM4Z.js +0 -2
- package/assets/dev-host/chunks/textarea-2JXA5XWS.js +0 -2
- package/assets/forge-app/app/assets/file-panel-le_M5nHe.js +0 -1199
- package/assets/forge-app/app/assets/index-BwYJlfwT.css +0 -1
- package/assets/forge-app/app/assets/index-UP3KtgHV.js +0 -291
- /package/assets/dev-host/chunks/{chunk-OXJ6LWKI.js.LEGAL.txt → chunk-HCQR5YME.js.LEGAL.txt} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,242 @@
|
|
|
3
3
|
`@quixomatic/rpf` has its own version, independent of React Portal's. Compatibility with an instance is the Forge API
|
|
4
4
|
level (`rpf doctor`), not the version number.
|
|
5
5
|
|
|
6
|
+
## 0.3.3 (2026-11-29)
|
|
7
|
+
|
|
8
|
+
Discovery, patterns, the catalog and the richer `describe_table` use React Portal 1.74+ on the instance; older
|
|
9
|
+
instances get a fallback for each (see "Older instances keep working").
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
#### Orientation, templates and examples
|
|
14
|
+
|
|
15
|
+
- **Orientation: `rpf orient` and the MCP `orientation` tool.** One document an agent reads before working: the hard
|
|
16
|
+
rules, the workspace (kind, portal, app, update set, pages, local components), the instance (React Portal version,
|
|
17
|
+
Forge API level, features, capabilities), the component anatomy card (files, `component.json` fields with the
|
|
18
|
+
`serverMode` file vs `server_mode` record spelling, `server.js`, `useServer` and its pending state, imports, the
|
|
19
|
+
stage), the examples index, a catalog summary (instance counts, key React Portal pieces per area, the host kit) and
|
|
20
|
+
a reading list. `--topic <id>` expands one block. Works offline; the instance catalog is cached in
|
|
21
|
+
`.forge/orientation.json`. The built-in skill's step 0 runs it, and Forge puts the same text in its system prompt.
|
|
22
|
+
- **Orientation, live:** on React Portal 1.74+ the catalog block summarizes the instance's catalog (counts, the most
|
|
23
|
+
placed React Portal pieces per area, other apps by namespace, the host kit) and the pattern and data recipe blocks
|
|
24
|
+
list the instance's patterns (plus the workspace's), within the same token budgets. The cache key carries the
|
|
25
|
+
catalog and patterns hashes, so the text stays byte-identical until they change. The hard rules lead with
|
|
26
|
+
find_pattern → show_example → search_catalog, and the skill's "Look it up live" names the new commands.
|
|
27
|
+
- **Per-kind component templates, one set for every path** (`rpf new component`, `rpf init --component --new`,
|
|
28
|
+
Forge's wizard and the MCP's new `scaffold_component`). A widget now starts with `main.tsx` (`useServer` with a
|
|
29
|
+
pending state), `server.js`, `options.schema.json`, `styles.css` and `placeable` + `serverMode: "on-demand"`;
|
|
30
|
+
layouts render `<Region>` and `<SidePanelRegion>` with CSS-only options; blocks use `useBlock()`.
|
|
31
|
+
`rpf new component --from <example>` (MCP `scaffold_component { from }`) starts from an example.
|
|
32
|
+
- **The examples library** (`rpf examples`, `rpf examples show <id> [file]`, `rpf examples copy <id>`, MCP
|
|
33
|
+
`examples`): ten small, complete, original setups in the exact workspace formats. rpf's tests compile each one and
|
|
34
|
+
check every import, placed component id, option key and enum value against the API manifest.
|
|
35
|
+
- `orientation`, `examples` and `scaffold_component` keep working while the instance is unreachable or Forge is off.
|
|
36
|
+
|
|
37
|
+
#### Discovery: data, patterns and the catalog
|
|
38
|
+
|
|
39
|
+
- **Data discovery, as the signed-in user and read-only.** New MCP tools `data_find_tables`, `data_relations`,
|
|
40
|
+
`data_query`, `data_sample`, `data_stats`, `data_graphql` and `data_table_api`. On React Portal 1.74+
|
|
41
|
+
`describe_table` also returns the extends chain, the display field, choice labels, reference qualifier kinds and
|
|
42
|
+
`canWrite` / `canCreate` (`include` keeps only the extras you name). CLI:
|
|
43
|
+
`rpf data tables|table|query|sample|relations|stats|graphql`.
|
|
44
|
+
- `data_query` checks every term of an encoded query and lists the ones on fields that don't exist
|
|
45
|
+
(`invalidTerms`). The platform drops those silently, so a filter that "works" may return everything.
|
|
46
|
+
- Rows are capped (20, samples 5, strings 200 characters, 24 KB). Password, encrypted and journal values are never
|
|
47
|
+
returned, and record values only come back while the instance's `x_312987_portal.forge.record_samples` allows
|
|
48
|
+
them (off: counts and field presence, GraphQL shape only, stats without group values).
|
|
49
|
+
- `data_graphql` refuses mutations and subscriptions before sending anything.
|
|
50
|
+
- **Patterns: `find_pattern` and `show_example`** (CLI: `rpf patterns <intent>`,
|
|
51
|
+
`rpf patterns show <id | portal:route>`). `find_pattern` ranks the instance's patterns collection plus the
|
|
52
|
+
workspace's own `patterns/*.md` for what you are building, with a boost for each pattern's intents, and returns the
|
|
53
|
+
primitives, data, real example pages and the first pitfalls; UI patterns come first, then the best data recipe.
|
|
54
|
+
`show_example` opens the example page live: layout and options, regions, every placement with its component and
|
|
55
|
+
full options, the portal-wide chrome, and each component's summary, option keys and how code uses it. Patterns are
|
|
56
|
+
cached per instance and React Portal version (`.forge/patterns.json` in a workspace, rpf's home otherwise).
|
|
57
|
+
- **The catalog: `search_catalog` and `where_used`** (CLI: `rpf catalog [words]`, `rpf usage <component>`).
|
|
58
|
+
`search_catalog` ranks the host kit and every component record by meaning, over names, exports, props, option keys,
|
|
59
|
+
areas and summaries, with a small synonym list ("modal" finds `components:dialog`, "grid of records" finds
|
|
60
|
+
`app/data-table`, "kanban" finds the record board, "toast" finds sonner); each hit says how code uses it. The
|
|
61
|
+
catalog is cached per instance and version (`.forge/catalog.json`; `refresh` / `--refresh` refetches). `where_used`
|
|
62
|
+
lists real placements with their options.
|
|
63
|
+
- **`lookup_api` falls back to the component record** for components the API manifest doesn't describe (other apps'
|
|
64
|
+
components): exports and option keys from `describe_component`, marked `source: describe_component`.
|
|
65
|
+
- **Older instances keep working.** Without the 1.74 features, `data_query` and `data_sample` use the Table API
|
|
66
|
+
(marked `validated: false`, no term validation), `data_find_tables` reads `sys_db_object` (admins), the catalog is
|
|
67
|
+
rpf's bundled host-kit list plus `GET /components`, `where_used` searches the workspace's `portal.mjs`, and
|
|
68
|
+
`find_pattern` searches the workspace's `patterns/`. Every fallback says so.
|
|
69
|
+
|
|
70
|
+
#### Plans
|
|
71
|
+
|
|
72
|
+
- **`rpf plan check <file>` and the MCP's `plan_check_file`.** A plan is `.plans/<slug>.md` with
|
|
73
|
+
`<!-- forge-plan -->` on its first line, a `# title` and conventional sections (Summary, References, Pages,
|
|
74
|
+
Components, Data, Phases, Parity checklist, Out of scope). The check runs the same rules Forge applies before
|
|
75
|
+
Approve:
|
|
76
|
+
- every Pages row names a pattern id find_pattern knows, or `new:` with a reason of 8+ words;
|
|
77
|
+
- every new component has a kind, a reason and the example or template it starts from;
|
|
78
|
+
- every encoded query is run through data_query (read-only, as you) and has no invalid terms;
|
|
79
|
+
- every parity item names a reference in `references/index.json` and a width;
|
|
80
|
+
- phase and item ids are unique.
|
|
81
|
+
|
|
82
|
+
Problems come back by line (errors block approval, exit code 1). `--offline` (or no instance) turns the pattern and
|
|
83
|
+
query checks into warnings. `--json` prints the report. The MCP's default instructions now say that bigger builds
|
|
84
|
+
start with a plan checked this way.
|
|
85
|
+
|
|
86
|
+
#### References
|
|
87
|
+
|
|
88
|
+
- **`rpf refs` and the MCP's `ref_list`, `ref_read`, `ref_view`, `ref_add` and `ref_capture`.** Design references
|
|
89
|
+
live in the workspace's `references/` folder: `index.json` plus one folder per reference with its `ref.json` (title,
|
|
90
|
+
kind, source, license, notes, widths, a cached description). The folder is gitignored and never pushed. Every
|
|
91
|
+
reference starts as `study-only`: match the look and behavior, write your own code, never paste its source. `own`
|
|
92
|
+
allows porting, and `permissive` follows its license. The tools repeat the rule with every read.
|
|
93
|
+
- `rpf refs add <files…>` copies files into a new reference (images make an image reference). `--link <folder>`
|
|
94
|
+
links a source folder instead of copying it. `rpf refs set` changes the title, license or notes, and
|
|
95
|
+
`rpf refs remove` deletes the folder but never touches a linked one. `--json` everywhere.
|
|
96
|
+
- `ref_read` lists a reference's files (a linked folder's tree) and reads text files with line paging, at most 2000
|
|
97
|
+
lines per call. Paths stay inside the reference: no `..`, no absolute paths, no symlink escape, read-only.
|
|
98
|
+
`ref_view` returns an image (default: the widest light capture) with its cached description. CLI:
|
|
99
|
+
`rpf refs show <id> [file]`.
|
|
100
|
+
- `rpf refs capture <url>` / `ref_capture` open the page in the capture browser, a separate headless profile at
|
|
101
|
+
`.forge/dev/capture-browser` with a fresh context per capture, so it holds no cookies of yours or the instance's.
|
|
102
|
+
A capture saves a screenshot per width and mode (`--widths 1440,390`, `--modes light,dark`), the rendered DOM
|
|
103
|
+
with scripts and handlers removed (open shadow roots included) and the computed styles of landmark elements
|
|
104
|
+
(header, nav, headings, buttons, links, cards, inputs, footer, plus the root CSS variables). It waits for the
|
|
105
|
+
network to go quiet, so single-page apps such as ESC finish loading first.
|
|
106
|
+
- `--of-instance` (MCP `instance: true`) captures a page of the workspace's instance (`/esc`) with a read-only UI
|
|
107
|
+
session minted from the profile, as `rpf dev` does. A sign-in that can't open a UI session gets a message to use a
|
|
108
|
+
screenshot instead. `ref_add` keeps files (chat attachments, workspace files) as a reference.
|
|
109
|
+
- Everything works without the instance except instance captures.
|
|
110
|
+
- **`references/` and `.plans/` stay local.** The workspace engine (status, push, pull) and `rpf dev`'s watcher skip
|
|
111
|
+
both folders, and the `.gitignore` extra of `rpf init`, `rpf init --component` and Forge's wizard ignores them.
|
|
112
|
+
|
|
113
|
+
#### `rpf forge`
|
|
114
|
+
|
|
115
|
+
- **Orientation in the system prompt.** The agent's system prompt carries the orientation as its second layer
|
|
116
|
+
(instead of the short guide), on both the Claude subscription and BYOK paths, so the component anatomy reaches the
|
|
117
|
+
agent without a lookup. `scaffold_component` and `dev_stage` load up front; scaffolded files go into the edit ledger
|
|
118
|
+
(undo, diffs) without an approval, like `write_file`. New rules: new components start from `scaffold_component`,
|
|
119
|
+
and component workspaces are previewed on the stage (`dev_stage`, then `dev_open` route `stage`) before the summary.
|
|
120
|
+
- **Discovery tools.** `find_pattern`, `show_example`, `search_catalog`, `data_find_tables`, `describe_table` and
|
|
121
|
+
`data_query` are sent on every request (`search_catalog` replaces `list_components`, which stays loadable); the
|
|
122
|
+
other discovery tools load on demand, and `find_pattern` loads up front in Claude sessions. All of them are reads
|
|
123
|
+
(no approval). New rules: before creating a component or a page, call `find_pattern` and open the best example with
|
|
124
|
+
`show_example`, and check every encoded query with `data_query`. Work rows name what was searched or which table
|
|
125
|
+
was read or sampled ("Queried incident", "Found patterns for my hr cases").
|
|
126
|
+
- **Plans, the way the reference app does them.** By default, the agent writes a plan file in normal (Build) mode for
|
|
127
|
+
anything bigger than a small change, then stops.
|
|
128
|
+
- The plan shows as the reference app's plan card, rendering the file's current content with its path and
|
|
129
|
+
"Revised 2×". The card's **Review** and **Edit** open the file in the File tab, where line comments go back to the
|
|
130
|
+
agent as review comments.
|
|
131
|
+
- **Approve and build** (or "in a new chat") runs the checks first: errors disable it, and "Approve anyway" records
|
|
132
|
+
them on the plan. Approve stores the file's hash and sends `PLEASE IMPLEMENT PHASE 1 OF THIS PLAN (<path>):` with
|
|
133
|
+
the plan. The checks also come back in the agent's write result, so it fixes them itself.
|
|
134
|
+
- While building, the agent ticks items in the file, and the next phase starts by itself once a phase's items are
|
|
135
|
+
all done (auto-continue). Auto-continue stops on a failed turn, a pending approval or question, Stop, a failed
|
|
136
|
+
workspace_check, an edit to the approved plan that goes beyond ticked boxes and `>` notes ("Changed since
|
|
137
|
+
approval", approve again), or "Pause after each phase".
|
|
138
|
+
- A plan from another file supersedes the chat's draft. The sidebar shows the reference app's violet **Plan Ready**,
|
|
139
|
+
and a pinned **Build plan** tab tracks phases, items, the parity checklist and problems across turns.
|
|
140
|
+
- **Plan mode** (the Build / Plan chip in the composer, or `/plan`). It mirrors the reference app's interaction mode
|
|
141
|
+
on both connection kinds. In Claude chats, the session runs with permission mode `plan` and ExitPlanMode; Forge
|
|
142
|
+
captures the plan, saves it to `.plans/<slug>.md` and denies the call with the reference app's "captured" text. In
|
|
143
|
+
other models' chats, the write tools are removed, a plan-mode instruction joins the system prompt, and
|
|
144
|
+
`propose_plan` is the capture point. Commands outside the read-only list are refused in plan mode, on both. Approve
|
|
145
|
+
switches the chat back to Build mode.
|
|
146
|
+
- **The todo list.** BYOK models get a `todo` tool, and Claude's TodoWrite renders the same way: the reference app's
|
|
147
|
+
quiet "Tasks 3/7 · current step" row, which expands to the ✓ ◉ ○ list.
|
|
148
|
+
- **Attachments in the composer, the reference app's way.**
|
|
149
|
+
- Paste, drop or pick files (the paperclip is live). The limits are the reference app's: 100 per message, 10 MB
|
|
150
|
+
per image, 80 MB of images per message, 50 MB per file, GIF/JPEG/PNG/WebP sent as images.
|
|
151
|
+
- A paste of 32 KB or more is folded into `pasted-text.txt`. Ctrl/Cmd+Shift+V keeps it inline.
|
|
152
|
+
- Files upload to `~/.rpforge/projects/<id>/attachments/` as they are attached, and the message carries only their
|
|
153
|
+
ids. Image tiles and file rows show above the prompt, and sent messages show the images and file cards above the
|
|
154
|
+
bubble.
|
|
155
|
+
- The model gets the reference app's saved-path line for every attachment. Images go as images where the model can
|
|
156
|
+
see them: base64 image blocks for Claude, image parts per provider for other models. Models without vision get a
|
|
157
|
+
note instead. The agent's read tools can open the attachment folder, read-only.
|
|
158
|
+
- The newest message's images always stay in context; older ones count with the screenshots.
|
|
159
|
+
- Each attachment has **Save to references**, which copies it into `references/<id>/`.
|
|
160
|
+
- **The References tab** (right panel), in the Files tab's look.
|
|
161
|
+
- A thumbnail grid. **Add**: files, a folder link (typed path), or **Capture a URL** with widths, light and dark,
|
|
162
|
+
and "Page of the instance". Captures you start run without asking.
|
|
163
|
+
- A reference opens to its images by width and mode, title, the license select, notes for the agent, its source,
|
|
164
|
+
files, Remove, and **Mention in chat**. Mention in chat inserts `@ref:<id>`, which the composer draws as a
|
|
165
|
+
reference chip; references are also listed in the `@` menu.
|
|
166
|
+
- A mentioned reference goes to the model as a `[Reference: title; ref=id]` marker plus a `<forge_context>` envelope
|
|
167
|
+
after the message, the reference app's context records with tags escaped. The envelope carries the kind, license
|
|
168
|
+
rule, files, notes and description.
|
|
169
|
+
- **The agent's external captures ask every time.** `ref_capture` of an external URL is an approval row on both
|
|
170
|
+
connection kinds ("Capture https://… at 1440 and 390?"), never "always allow". A page of the instance runs, like the
|
|
171
|
+
agent browser. `ref_capture` and `ref_add` also work in plan mode.
|
|
172
|
+
- **Image descriptions for models without vision.**
|
|
173
|
+
- When a model that can't see images calls `ref_view`, the image is left out. The vision helper model (Settings ›
|
|
174
|
+
Models: the project's helper, else the default helper, else the chat's model; it must accept images) describes
|
|
175
|
+
the image once, and the text is cached in `ref.json`.
|
|
176
|
+
- The References tab has **Describe** / **Again**. Each description is an "Image descriptions" row in Usage.
|
|
177
|
+
- **The in-app updater.** The sidebar footer's update button checks 15 s after start and then every 4 hours
|
|
178
|
+
(scheduled checks reuse rpf's update cache when it is under 4 hours old, so the CLI notice and Forge share one
|
|
179
|
+
registry call; Check for updates always asks). It spins while checking, offers an available update (click installs
|
|
180
|
+
it with `rpf update`'s command and streams the output), then asks before restarting Forge into the new version on
|
|
181
|
+
the same port and run key, so open tabs reconnect and reload. Failures come back as toasts and "Click to retry"
|
|
182
|
+
tooltips. `RPF_NO_UPDATE_CHECK`, `NO_UPDATE_NOTIFIER` and `defaults.updateCheck: false` turn it off (the button
|
|
183
|
+
says why), also while Forge runs.
|
|
184
|
+
- **Updating while rpf runs:** before installing, Forge stops its preview servers, esbuild's service, the projects'
|
|
185
|
+
`rpf mcp` children and idle Claude sessions, which on Windows keep files open and make npm leave its old copy behind
|
|
186
|
+
(`.rpf-*`). Such leftovers are removed after an install and when `rpf forge` starts, once no other rpf from the
|
|
187
|
+
install is running. `rpf update` warns when an `rpf forge`, `rpf dev` or `rpf mcp` from the same install is still
|
|
188
|
+
running (they are recorded in `~/.rpforge/running/` while they run).
|
|
189
|
+
|
|
190
|
+
### Changed
|
|
191
|
+
|
|
192
|
+
- `rpf dev`'s session minting also reads the session token from the Next Experience home when `navpage.do` redirects
|
|
193
|
+
(newer releases), so it no longer falls back to header signing on those instances.
|
|
194
|
+
- `rpf forge`: the collapsed plan card's fade matches the card in dark mode (it showed as a lighter band).
|
|
195
|
+
|
|
196
|
+
## 0.3.2 (2026-11-28)
|
|
197
|
+
|
|
198
|
+
Needs React Portal 1.73.0+ on the instance for component workspaces (1.73.1 for the better docs ranking) (Forge feature `component-workspaces`).
|
|
199
|
+
|
|
200
|
+
### Added
|
|
201
|
+
|
|
202
|
+
- **Component-only workspaces**: build one or more widgets (primitives, blocks, layouts) of a scoped app without a
|
|
203
|
+
portal. `rpf init --component` (app, update set or a new one, `--pull <ids>`, `--new <id> --kind`),
|
|
204
|
+
`rpf pull --component <ids>` (add components; `--app` + `--name` for a new workspace), `rpf new component` adds to
|
|
205
|
+
the tracked list. `status`, `diff`, `check` and `push` work as for portals and push into the workspace's app and
|
|
206
|
+
update set (switched, verified and restored per request); the plan names the portals that use each changed
|
|
207
|
+
component, which are reprocessed as a Studio save would. Components of another app and React Portal's own app are
|
|
208
|
+
refused.
|
|
209
|
+
- **The component stage** (`rpf dev` in a component workspace, `/__rpf/stage`): a component picker, an options form
|
|
210
|
+
generated from `options.schema.json` (or JSON), URL params and context (table, record with a picker, view, query,
|
|
211
|
+
extra `q` pairs), the theme of any portal (rendered under that portal's slug) or any theme, light / dark, and
|
|
212
|
+
phone / tablet / laptop / full / custom widths, with real data and staged `server.js`. Settings persist in
|
|
213
|
+
`stage.json` (committed, never pushed).
|
|
214
|
+
- MCP: `workspace_pull` takes `app` + `components`; new `dev_stage` tool.
|
|
215
|
+
- **`rpf forge`: a "Components" start** in the new-project wizard (app, update set or a new one, existing components
|
|
216
|
+
to pull and / or a new one to scaffold); a component project's Preview is the component stage, which stacks its
|
|
217
|
+
panel above the frame in narrow panes.
|
|
218
|
+
|
|
219
|
+
### Fixed
|
|
220
|
+
|
|
221
|
+
- A push from a component workspace no longer stops after writing while it rebases the local base (it looked for a
|
|
222
|
+
portal.mjs).
|
|
223
|
+
- MCP `read_doc` accepts a heading with its leading `#`s, as its own headings list prints them (it returned 404).
|
|
224
|
+
- `rpf forge`: a Claude turn's API-equivalent cost is that turn's, not the session's running total; a BYOK turn
|
|
225
|
+
resumed after an approval keeps its start time and sums every segment's usage; a run that fails (also right after
|
|
226
|
+
an approval answer) stores its error on the message instead of leaving an empty reply.
|
|
227
|
+
|
|
228
|
+
### Changed
|
|
229
|
+
|
|
230
|
+
- MCP `search_docs` drops template docs unless asked for, and when the query names a camelCase option
|
|
231
|
+
(`layoutOptions`) also searches its words, so the page that owns the option is listed. (React Portal 1.73.1 also
|
|
232
|
+
ranks this on the instance.)
|
|
233
|
+
- MCP `dev_open` / `dev_act` return server calls and record watch as counts plus failures by default (`verbose` for
|
|
234
|
+
the full lists). `dev_inspect find` (`text=…` or a CSS selector, across shadow roots) reports each match's
|
|
235
|
+
visibility, rect and the hiding element; `dev_eval` says the portal renders in shadow roots.
|
|
236
|
+
- `rpf forge`: the agent's rules gained a where-to-look map (page header options, header slots, finding a page),
|
|
237
|
+
focused reads, batched edits, the visibility rule (text in the DOM is not proof it is visible), `workspace_check`
|
|
238
|
+
in place of a separate push dry run, and an end-of-turn summary. Claude turns get one shell (PowerShell on
|
|
239
|
+
Windows, Bash elsewhere), rpf instructions without the remote-authoring workflow, and `dev_open`, `read_doc` and
|
|
240
|
+
`workspace_check` loaded without a tool search.
|
|
241
|
+
|
|
6
242
|
## 0.3.1 (2026-11-28)
|
|
7
243
|
|
|
8
244
|
### Fixed
|
package/README.md
CHANGED
|
@@ -44,13 +44,15 @@ claude mcp add forge -- rpforge mcp --profile dev
|
|
|
44
44
|
| `doctor` | The instance, versions, kill switch, capabilities, local tools |
|
|
45
45
|
| `init` | A new draft portal in an application and update set you pick, pulled into a workspace |
|
|
46
46
|
| `pull`, `status`, `diff`, `resolve`, `check`, `push`, `rename` | The workspace loop: one portal as files (`portal.mjs`, `components/`, `themes/`, `assets/`), three-way status, two-step pushes with plan hashes |
|
|
47
|
-
| `new component <ns>/<key>` | Scaffolds a component folder |
|
|
47
|
+
| `new component <ns>/<key>` | Scaffolds a component folder with every file its kind needs (a widget: `main.tsx` with `useServer`, `server.js`, `options.schema.json`, `styles.css`, `serverMode: "on-demand"`); `--from <example>` starts from an example |
|
|
48
|
+
| `orient` | What an agent should know before working: the hard rules, the workspace, the instance (version, features), the component anatomy card, the examples, a catalog summary and a reading list; `--topic <id>` expands one block |
|
|
49
|
+
| `examples`, `examples show <id> [file]`, `examples copy <id>` | Small, complete, original React Portal setups in the exact workspace formats (widget with a server script, options, primitive + utility, header slots, a bespoke layout, list and record pages, a side panel, a theme, a component workspace) |
|
|
48
50
|
| `seed <pack>` | Puts an app pack onto an instance that doesn't have its portal yet: preflight, one plan, then the empty draft and the push, all in the target update set |
|
|
49
51
|
| `portals`, `components`, `docs`, `api`, `themes` | Read-only lookups on the instance; `themes generate` makes contrast-checked tokens from a brand color locally |
|
|
50
52
|
| `skills install \| update \| list` | The built-in `react-portal` and `react-portal-theme` skills for Claude Code |
|
|
51
53
|
| `dev` | A local preview of the workspace's portal: components compiled on your machine, live instance data through a session rpf holds, saving a file updates the page. A diagnostics dock shows problems, staged server scripts, server calls, record watch and caches |
|
|
52
54
|
| `preview [route]` | Opens a route of the running `rpf dev` server in a browser rpf controls (read-only: rpf refuses its writes), waits until it's idle, and reports problems, console errors and server calls; `--screenshot`, `--a11y`, `--show`, `--attach <cdp url>` |
|
|
53
|
-
| `mcp` | The Forge MCP server on stdio, with a profile's settings. Includes the `dev_*` tools: drive the workspace's `rpf dev` page like a user (open, click, type, press, scroll, evaluate, accessibility tree, console, network, screenshots), in a read-only browser |
|
|
55
|
+
| `mcp` | The Forge MCP server on stdio, with a profile's settings. Includes `orientation`, `examples` and `scaffold_component` (local, they work without the instance), and the `dev_*` tools: drive the workspace's `rpf dev` page like a user (open, click, type, press, scroll, evaluate, accessibility tree, console, network, screenshots), in a read-only browser |
|
|
54
56
|
|
|
55
57
|
`rpforge <command> --help` lists every flag. For agents and CI: `--json` (one JSON document on stdout),
|
|
56
58
|
`--no-interactive`, `--yes`, `--dry-run`, and fixed exit codes (0 ok, 1 refused or failed, 2 usage, 3 sign-in,
|