SPB Git

Repository Public License

CHANGELOG.md 7.1 KB 66 lines markdown

1# Changelog23## 0.2.0 — 2026-11-2245Owner request: stronger Claude-designed icons, a more capable builder, varied themes, functionality beyond the catalog, 200+ components, components on demand.67### Added8- **Designed app icons.** `IconSpec` (background, up to 12 layers of SF Symbols, shapes, SVG paths or text, gradients, shadows, glass/matte/flat finish) drawn on the macOS icon grid by the new `PrismIconKit`. The builder designs one per app with `design.setIcon` and gets the drawn icon back as a picture to refine. Published satellites use it; apps without one get a better automatic icon. PRISM's own icon is now a designed spec.9- **Themes.** 14 presets and custom tokens: palette, fonts, heading weight, panel style (tinted, elevated, bordered, glass, flat), background gradient, chart colors. Contrast is validated. `design.setTheme`, `design.listThemes`; preset, font and panel pickers in Design mode.10- **On-demand components and scripts (ADR 0009).** `component.define` creates a component for one app from a JavaScript `render(props)` returning a view tree (stacks, text, shapes, controls, canvas, drag and drop, keyboard, ticks); `logic.createScript` adds functions for `runScript` actions and `js()` expressions. Confined JavaScriptCore engine (`PrismScriptRuntime`): no ambient API, read-only rendering, 0.5 s limit, new `logic.scripts` permission.11- **Catalog: 40 → 201 components** in three new families (layout/display/text/feedback, inputs/forms/productivity/time, data views/charts/commerce/social) plus `prism.timer`.12- **The builder sees its work:** `ui.screenshot` returns a picture of the running preview. Also `component.test`, `code.run`, `code.read`.13- Publish view shows the app's icon. Satellite runtime 1.1.0.1415### Changed16- The builder's instructions: catalog first, then build what is missing instead of leaving it out; every app gets a theme and an icon of its own. The catalog is listed by category in the prompt; contracts come from search and inspect.17- Adding a component from the Library keeps its fixture values for every category except data and charts.18- ADR 0003 rung 2 (scripts in a separate process) is superseded by ADR 0009.1920### Not done21- Network access for apps (a permission and threat-model decision for the owner).22- The 12-prompt evaluation was not re-run on this build.23- Nothing new has been operated by hand.2425## 0.1.1 — 2026-11-222627**Fixed**28- **Crash: PRISM 0.1.0 aborted about 84 s after launch** (owner's crash report: `NSGenericException`, "more Update Constraints in Window passes than there are views", from `SplitViewChildController`). A generated app contained a split view holding a table and a fixed-width card; SwiftUI's `NSSplitView`-backed `HSplitView` and its children kept changing each other's size limits until AppKit aborted. Reproduced by replaying the model-built app in a real window. All `HSplitView`/`VSplitView` uses (the `prism.split` component and PRISM's own panes) are replaced by `ResizableSplit`, a pure-SwiftUI split that reports no size limits upward, and every hosted app page and PRISM's detail column are size-isolated. `scripts/lint.sh` now rejects AppKit split views.29- A build no longer dies when the connection drops mid-request: an interrupted stream is requested again (up to 3 times); only a real "offline" is reported at once. Found by the live evaluation when the Wi-Fi dropped.30- Default per-build limit raised from 80 to 160 tool calls (60 turns): an app with 35 components needed 78.31- Toolbar controls align on their baseline; currency and number fields follow the app's locale.3233**Added**34- `scripts/ui-walk.sh` and `PRISM --selftest-ui`: the real window, in the background, walked through every screen, composer typing, a simulated build, all component fixtures and the 14 model-built apps in `tests/golden/model-built`. Part of `scripts/verify.sh`.35- `tests/evals/prompts.json`, `scripts/eval.sh`: fixed 12-prompt evaluation; measured results in `docs/STATUS.md`.36- Composer text is kept per project and for the welcome screen when switching views.3738## 0.1.0 — 2026-11-22 (first session)3940First working build, covering milestones M0–M8 in substance and parts of M9–M10. See `docs/STATUS.md` for what is verified and what is not.4142**Added**43- Directive split into `CLAUDE.md`, `docs/spec/`, `docs/ROADMAP.md`; ADRs 0001–0008; threat model v0; data policy; known limitations; user guide; component SDK guide.44- `PrismCore`: JSON value with canonical serialization and content hashes.45- `PrismObjectModel`: PUOP objects, `AppBlueprint`, structural validation, dependency graph with cycle detection, migrations, patches, diff.46- `PrismLogicRuntime`: expression language (parser, budgeted evaluator, 32 functions), dynamic values and state paths.47- `PrismDataRuntime`: SQLite wrapper (WAL), per-app store with additive migrations, declarative queries compiled to parameterized SQL, CSV import/export with limits and formula neutralization.48- `PrismComponentSDK` + `PrismComponentCatalog`: manifest contract, hash-verified registry with search, catalog-aware validator, 40 components with fixtures and examples.49- `PrismRenderer`: `AppRuntime` (state, cached queries, action interpreter, permissions enforced at run time) and SwiftUI views for all 40 components; Design-mode selection.50- `PrismSecurity`: Keychain store, redactor. `PrismProjectStore`: projects, content-addressed snapshots, rollback, recovery from damaged files, append-only redacted audit log, usage, builds, sessions, export/import, undo history.51- `PrismAIOrchestrator`: Anthropic client (streaming, retries, model discovery, usage, cost estimate), 30 typed tools, build workspace, builder agent with budgets, repair rounds and milestones.52- `PrismSatellitePublisher` + `PrismSatelliteHost`: manifest, loader, publisher (sign, verify, safe replace, update, rollback, uninstall), launch verifier, generated icons.53- `PrismStudio` + `PRISM.app`: welcome composer, projects, Create/Preview/Design/Evolve/Publish, Library, Monitor, Settings, command palette, menus and shortcuts.54- `templates/expense-tracker`: hand-written golden app; `tests/evals/prompts.json`: fixed evaluation set.55- Scripts: `verify.sh`, `build.sh`, `lint.sh`, `package.sh`, `eval.sh`, `dev-key.sh`, `update-catalog-lock.sh`.5657**Decisions taken without asking (cheap to reverse)**58- Deployment target macOS 26; one root package; apps as SwiftPM executables wrapped by a script; no third-party dependencies.59- Library folder named by bundle identifier (`ai.spboucher.prism`) because an unrelated older app owns `Application Support/Prism` on this Mac.60- The app logic lives in a `PrismStudio` module (not in the directive's layout) so the golden journey runs under `swift test`.61- Grantable local permissions requested during a first build are accepted with the build and listed in its summary; in Evolve they are part of the diff the user approves.6263**On the owner's instruction (2026-11-22)**64- PRISM 0.1.0 signed with the Developer ID identity on this Mac and notarized through the `MacLustr-Notarize` profile (app and DMG), although notarized distribution is outside the directive's V1 scope.65- Live Anthropic API calls made with the development key ORIX Astra uses; the key was stored in PRISM's own Keychain item by the signed PRISM app.66
Files main
Menu

Theme