SPB Git

Repository Public License

CHANGELOG.md 7.1 KB

# Changelog

# 0.2.0 — 2026-11-22

Owner request: stronger Claude-designed icons, a more capable builder, varied themes, functionality beyond the catalog, 200+ components, components on demand.

# Added

  • 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.
  • 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.
  • 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.
  • Catalog: 40 → 201 components in three new families (layout/display/text/feedback, inputs/forms/productivity/time, data views/charts/commerce/social) plus prism.timer.
  • The builder sees its work: ui.screenshot returns a picture of the running preview. Also component.test, code.run, code.read.
  • Publish view shows the app's icon. Satellite runtime 1.1.0.

# Changed

  • 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.
  • Adding a component from the Library keeps its fixture values for every category except data and charts.
  • ADR 0003 rung 2 (scripts in a separate process) is superseded by ADR 0009.

# Not done

  • Network access for apps (a permission and threat-model decision for the owner).
  • The 12-prompt evaluation was not re-run on this build.
  • Nothing new has been operated by hand.

# 0.1.1 — 2026-11-22

Fixed

  • 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.
  • 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.
  • Default per-build limit raised from 80 to 160 tool calls (60 turns): an app with 35 components needed 78.
  • Toolbar controls align on their baseline; currency and number fields follow the app's locale.

Added

  • 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.
  • tests/evals/prompts.json, scripts/eval.sh: fixed 12-prompt evaluation; measured results in docs/STATUS.md.
  • Composer text is kept per project and for the welcome screen when switching views.

# 0.1.0 — 2026-11-22 (first session)

First 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.

Added

  • 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.
  • PrismCore: JSON value with canonical serialization and content hashes.
  • PrismObjectModel: PUOP objects, AppBlueprint, structural validation, dependency graph with cycle detection, migrations, patches, diff.
  • PrismLogicRuntime: expression language (parser, budgeted evaluator, 32 functions), dynamic values and state paths.
  • PrismDataRuntime: SQLite wrapper (WAL), per-app store with additive migrations, declarative queries compiled to parameterized SQL, CSV import/export with limits and formula neutralization.
  • PrismComponentSDK + PrismComponentCatalog: manifest contract, hash-verified registry with search, catalog-aware validator, 40 components with fixtures and examples.
  • PrismRenderer: AppRuntime (state, cached queries, action interpreter, permissions enforced at run time) and SwiftUI views for all 40 components; Design-mode selection.
  • 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.
  • PrismAIOrchestrator: Anthropic client (streaming, retries, model discovery, usage, cost estimate), 30 typed tools, build workspace, builder agent with budgets, repair rounds and milestones.
  • PrismSatellitePublisher + PrismSatelliteHost: manifest, loader, publisher (sign, verify, safe replace, update, rollback, uninstall), launch verifier, generated icons.
  • PrismStudio + PRISM.app: welcome composer, projects, Create/Preview/Design/Evolve/Publish, Library, Monitor, Settings, command palette, menus and shortcuts.
  • templates/expense-tracker: hand-written golden app; tests/evals/prompts.json: fixed evaluation set.
  • Scripts: verify.sh, build.sh, lint.sh, package.sh, eval.sh, dev-key.sh, update-catalog-lock.sh.

Decisions taken without asking (cheap to reverse)

  • Deployment target macOS 26; one root package; apps as SwiftPM executables wrapped by a script; no third-party dependencies.
  • Library folder named by bundle identifier (ai.spboucher.prism) because an unrelated older app owns Application Support/Prism on this Mac.
  • The app logic lives in a PrismStudio module (not in the directive's layout) so the golden journey runs under swift test.
  • 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.

On the owner's instruction (2026-11-22)

  • 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.
  • 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.
Files main
Menu

Theme