Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 10 additions & 16 deletions THIRD_PARTY_NOTICES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ This file was checked on 2026-11-04 against the repo files, `node_modules/<packa

## Open issues (read first)

These need a decision or a fix. Nothing here has been changed in code.
These need a decision or a fix. Items marked **Resolved** were fixed on 2026-11-04 and stay listed so the history is clear.

1. **React Bits code is not plain MIT. Action needed.** Six files say "Adapted from React Bits (MIT)". The React Bits repository's license ([LICENSE.md](https://github.com/DavidHDev/react-bits/blob/main/LICENSE.md), "MIT + Commons Clause License Condition v1.0", Commons Clause in place since at least 2025-07) lets you use the components inside an application, but says you may not "sell, sublicense, or redistribute the components themselves ... or as a ported version". That condition is an extra restriction the AGPL does not allow, and publishing adapted copies in a public repo may itself be redistribution. Affected files: `components/agent-blob/blob-canvas.tsx` (BlobCursor shader and spring physics), `components/shared/prompt-bar.tsx`, `components/shared/spring-check.tsx`, `components/shared/status-mark.tsx`, `components/shared/thought-line.tsx`, `components/shared/voice-pill.tsx`. Options: rewrite them from scratch, get written permission from the author (David Haz), or remove them. The comments in those files that say "(MIT)" are wrong and should be corrected. `components/shared/liquid-ether.tsx` says it takes only the idea of React Bits Liquid Ether and is "a fresh, smaller version written for Practice-OS"; whether any React Bits code is in it is **[UNCONFIRMED]** (no side-by-side comparison was done).
1. **Resolved 2026-11-04: the six former React Bits files were rewritten from scratch.** `components/agent-blob/blob-canvas.tsx`, `components/shared/prompt-bar.tsx`, `components/shared/spring-check.tsx`, `components/shared/status-mark.tsx`, `components/shared/thought-line.tsx` and `components/shared/voice-pill.tsx` had been adapted from React Bits, whose license is MIT plus the Commons Clause (no redistribution "as a ported version"), which conflicts with the AGPL. They were rewritten as original Practice-OS code on 2026-11-04, clean room: the old file bodies and the React Bits source were not opened; the rewrite worked only from the exported names and props, the call sites, the tests and the project's own design notes. They keep the same names and props and are now covered by the AGPL like the rest of the app. Still open: `components/shared/liquid-ether.tsx` says it takes only the idea of React Bits Liquid Ether and is "a fresh, smaller version written for Practice-OS"; whether any React Bits code is in it is **[UNCONFIRMED]** (no side-by-side comparison was done).
2. **`@meta-sam/parser` (runtime dependency) uses Meta's custom SAM License**, not an open-source license. It adds use restrictions (trade controls, no ITAR or military use, no reverse engineering) and requires a copy of the license with any redistribution. The AGPL does not allow added restrictions on a combined work. Practice-OS does not ship this package (npm downloads it on install), so the repo itself is fine, but anyone who distributes a bundled build is distributing SAM Materials under Meta's terms. Options: keep it as a separately installed dependency (current state) and say so, or replace it with own parsing code.
3. **Illinois license data (ODbL) is not attributed by name.** `lib/referrals/sources/state-license.ts` reads IDFPR's "Professional Licensing" open data (data.illinois.gov `pzzh-kp68`), which the portal lists under the Open Database License, attribution "IDFPR". The app's sources line (`components/referrals/evidence-box.tsx`) says only "the state license list". It should say something like "Illinois IDFPR Professional Licensing data, ODbL".
3. **Resolved 2026-11-04: Illinois license data (ODbL) is attributed by name.** `lib/referrals/sources/state-license.ts` reads IDFPR's "Professional Licensing" open data (data.illinois.gov `pzzh-kp68`, Open Database License, attribution "IDFPR"). The sources line in the app (`components/referrals/evidence-box.tsx`) now says "Illinois Department of Financial and Professional Regulation (IDFPR), via data.illinois.gov, ODbL 1.0".
4. **OpenStreetMap (ODbL 1.0) attribution is in place;** share-alike is not triggered today. The app shows "© OpenStreetMap contributors (ODbL)" with a link to openstreetmap.org/copyright wherever OSM data shows (`lib/referrals/evidence/merge.ts`, `components/referrals/evidence-box.tsx`, `components/referrals/place-finder.tsx`), Aeon is told to include it in chat (`lib/aeon/tools-referrals.ts`), and the MapLibre map shows the tile attribution automatically. Facts from OSM are saved in each clinician's own database. If a Practice-OS operator ever publishes a database built from those facts, ODbL share-alike applies to that database.
5. **Cal.com screenshots in the repo.** `docs/research/calcom-ui-study/` holds 22 screenshots of Cal.com's app (design research, 2026-10-28). They are Cal.com's work, not covered by the AGPL. Consider removing them from the public repo or keeping them as clearly marked research references.
6. **The favicon is the Next.js logo.** `app/favicon.ico` is the black "N" from the Next.js starter (seen by rendering the file; it came in with the first scaffold commit). The Next.js logo is a Vercel trademark. Replace it with an own icon (for example Aeon's orb).
5. **Resolved 2026-11-04: Cal.com screenshots removed.** The 22 screenshots in `docs/research/calcom-ui-study/` (Cal.com's work) were deleted from the repo. The written notes (`docs/research/calcom-ui-study.md`, `docs/research/aeon-calcom-design-mapping.md`) are our own words and stay; they still name the old image files, as labels only. The images remain in the repository's past commits.
6. **Resolved 2026-11-04: own app icon.** `app/favicon.ico` was the Next.js starter's "N" logo (a Vercel trademark). It and the new `app/icon.png` are now Aeon's orb, drawn in code by `scripts/make-icon.ts` (a radial gradient #ffffff, #E3D9FF, #8E7CF8, #4E69DA rendered with sharp).
7. **Meta model terms.** The four Muse models are called through Meta's hosted API; nothing from them is distributed. Use is governed by Meta's API and developer terms, which were not read for this file **[UNCONFIRMED]**: who owns generated images and text, and any limits on health-related use, should be checked before a public release.
8. **Nothing found that is non-commercial, "no derivatives", SSPL, or unlicensed** in the dependency tree: every one of the 764 entries in `package-lock.json` declares a license. coss ui (AGPL) and React Bits Pro: **no code found** (see section 2).
8. **Nothing found that is non-commercial, "no derivatives", SSPL, or unlicensed** in the dependency tree: every one of the 764 entries in `package-lock.json` declares a license. coss ui (AGPL), React Bits and React Bits Pro: **no code found** (see section 2; `liquid-ether.tsx` is the one unconfirmed case).

## 1. Software dependencies

Expand Down Expand Up @@ -131,12 +131,6 @@ Found by searching the repo for "adapted from", "based on", "copied", "cookbook"

| File(s) | Origin | License | Notes |
|---|---|---|---|
| `components/agent-blob/blob-canvas.tsx` | React Bits BlobCursor (reactbits.dev/c/animations/blob-cursor) | MIT + Commons Clause | Signed-distance blob shader and spring physics kept. **Open issue 1.** |
| `components/shared/prompt-bar.tsx` | React Bits Prompt Bar (micro) | MIT + Commons Clause | **Open issue 1.** |
| `components/shared/spring-check.tsx` | React Bits Spring Check (micro) | MIT + Commons Clause | **Open issue 1.** |
| `components/shared/status-mark.tsx` | React Bits Status Mark (micro) | MIT + Commons Clause | **Open issue 1.** |
| `components/shared/thought-line.tsx` | React Bits Thought Line (micro) | MIT + Commons Clause | **Open issue 1.** |
| `components/shared/voice-pill.tsx` | React Bits Voice Pill (micro) | MIT + Commons Clause | **Open issue 1.** |
| `components/shared/liquid-ether.tsx` | Idea from React Bits Liquid Ether; the file says its shader is new code | Own code, idea only **[UNCONFIRMED]** | Not compared line by line. |
| `components/mode-picker.tsx` | Placed where React Bits' Prompt Bar keeps its model picker | Own code | Position only. |
| `components/shared/avatar.tsx`, `calendar.tsx`, `confirm-dialog.tsx`, `settings-controls.tsx`, `slider.tsx`, `attachment.tsx`, `toaster.tsx`; `components.json` | shadcn/ui component patterns (on Base UI, react-day-picker and sonner) | MIT, Copyright (c) 2023 shadcn | coss ui was looked at as a visual reference only for avatar, calendar and confirm dialog; the files say so and no coss code is in the repo. |
Expand All @@ -145,6 +139,8 @@ Found by searching the repo for "adapted from", "based on", "copied", "cookbook"
| `lib/forms/cms855i-05-23.pdf` | CMS-855I Medicare enrollment form (05/23 edition) from CMS | US government work, public domain (17 U.S.C. 105) | Filled in by the app; the clinician signs and submits. |
| `lib/compliance/rules/us.ts`, `lib/compliance/rules/il.ts`, `data/payers/*.json` | Short quotes from official and payer web pages (each with its URL and checked date) | Government text: public domain or edicts of government. Payer and company pages: their owners' copyright; quoted briefly as citations **[UNCONFIRMED: no per-quote rights review]** | See section 4. |

**Rewritten from scratch, no longer adapted code (2026-11-04):** `components/agent-blob/blob-canvas.tsx`, `components/shared/prompt-bar.tsx`, `components/shared/spring-check.tsx`, `components/shared/status-mark.tsx`, `components/shared/thought-line.tsx` and `components/shared/voice-pill.tsx` were once adapted from React Bits (MIT + Commons Clause). To remove the Commons Clause conflict with the AGPL they were rewritten as original Practice-OS code, clean room (only the exported names and props, the call sites and the tests were used; the old bodies and the React Bits source were not opened). They are own code under the AGPL. See open issue 1.

**coss ui and React Bits Pro: none present.** `coss` appears in code only in the three comments above saying it was a reference and not copied; no file is copied from coss.com. React Bits Pro appears only in `docs/ui-elements.md` as private layout screenshots, which are not in the repo.

## 3. AI models
Expand Down Expand Up @@ -175,7 +171,7 @@ Called through the Meta Model API at `https://api.meta.ai/v1` by `lib/meta.ts`,
| NPPES NPI Registry API (CMS) | `lib/referrals/nppes.ts`, `lib/credentialing/store.ts` | US government public data | Named as "the NPI Registry" in the sources line |
| CMS Provider Data Catalog: Hospice General Information (`yc9t-dgbk`), Home Health Care Agencies (`6jpm-sxkc`), Doctors and Clinicians (`mj5m-pzi6`) | `lib/referrals/sources/cms-agencies.ts`, `lib/referrals/sources/cms.ts` | US government public data | "CMS Provider Data Catalog" with date |
| CMS Medicare Order and Referring, Opt Out Affidavits (data.cms.gov) | `lib/referrals/sources/cms.ts` | US government public data | "the CMS Medicare files" |
| Illinois IDFPR Professional Licensing (data.illinois.gov `pzzh-kp68`) | `lib/referrals/sources/state-license.ts` | ODbL 1.0, attribution "IDFPR" (portal metadata) | "the state license list" only. **Open issue 3.** |
| Illinois IDFPR Professional Licensing (data.illinois.gov `pzzh-kp68`) | `lib/referrals/sources/state-license.ts` | ODbL 1.0, attribution "IDFPR" (portal metadata) | "Illinois Department of Financial and Professional Regulation (IDFPR), via data.illinois.gov, ODbL 1.0" in the sources line (`components/referrals/evidence-box.tsx`) |
| OpenStreetMap via Overpass API (`overpass-api.de`) | `lib/referrals/sources/osm.ts`, `osm-orgs.ts` | ODbL 1.0 (attribution, share-alike for public derived databases) | "© OpenStreetMap contributors (ODbL)" with link, wherever OSM data shows. **Open issue 4.** |
| OpenStreetMap Nominatim (typed place search) | `lib/referrals/geocode.ts` | ODbL data; Nominatim usage policy (one request a second, named User-Agent) | The code queues calls at 1.1 s and sends a User-Agent |
| OpenFreeMap vector tiles (`tiles.openfreemap.org`, OpenMapTiles schema, Natural Earth relief) | `components/referrals/referral-map.tsx` | OpenFreeMap is MIT; data is OpenStreetMap (ODbL); attribution required ("OpenFreeMap © OpenMapTiles Data from OpenStreetMap") | The tile source carries the attribution and MapLibre shows it in the map corner (`attributionControl: { compact: false }`) |
Expand All @@ -197,12 +193,11 @@ Other services the app talks to when the clinician connects them (not data sourc
| Inter (UI font) | Loaded by `next/font/google` in `app/layout.tsx` (self-hosted at build time) | SIL Open Font License 1.1 |
| Inter (post graphics) | `@fontsource/inter` woff files, drawn with opentype.js in `lib/instagram/graphic.ts` | SIL Open Font License 1.1 |
| Icons | `lucide-react` | ISC |
| `app/favicon.ico` | Next.js starter favicon (Next.js "N" logo) | Vercel trademark. **Open issue 6.** |
| `app/favicon.ico`, `app/icon.png` | Aeon's orb, drawn by plain code (`scripts/make-icon.ts`, sharp), 2026-11-04 | Own work |
| `public/demo/dana-reyes-headshot.jpg` | Generated with `muse-image-1.0` (commit 7176b0a) | Model output; ownership per Meta's terms **[UNCONFIRMED]** |
| `db/seed/posts/*.jpg` | Drawn by plain code (`scripts/make-seed-posts.ts`): gradient plus Inter text | Own work (Inter under OFL) |
| `docs/screenshots/**`, `tests/e2e/*-snapshots/**` | Screenshots of Practice-OS itself | Own work |
| `docs/sms/opt-in-proof.png` | Image for Twilio's SMS opt-in review (commit 248467a) | Assumed own work **[UNCONFIRMED]** |
| `docs/research/calcom-ui-study/*.jpg` (22) | Screenshots of Cal.com's app | Cal.com's copyright. **Open issue 5.** |
| `lib/forms/cms855i-05-23.pdf` | CMS | Public domain (see section 2) |

## 6. AI-assisted authorship
Expand All @@ -219,7 +214,6 @@ Isaiah is the author and copyright holder of the project as a whole. AI-written
## License texts

- MIT (shadcn/ui, meta-model-cookbook and most dependencies): permission is granted free of charge to use, copy, modify, merge, publish, distribute, sublicense and sell, provided the copyright notice and permission notice are included. Full text: https://opensource.org/license/mit. Copyright notices: shadcn/ui, "Copyright (c) 2023 shadcn"; meta-model-cookbook, "Copyright (c) Meta Platforms, Inc. and affiliates".
- React Bits: "MIT + Commons Clause License Condition v1.0", Copyright (c) 2026 David Haz, https://github.com/DavidHDev/react-bits/blob/main/LICENSE.md.
- SAM License (Meta): `node_modules/@meta-sam/parser/LICENSE` after install.
- SIL Open Font License 1.1: https://openfontlicense.org.
- Open Database License 1.0: https://opendatacommons.org/licenses/odbl/1-0/.
Expand Down
Binary file modified app/favicon.ico
Binary file not shown.
34 changes: 25 additions & 9 deletions app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -378,28 +378,44 @@ textarea {
}
}

/* The dictation pill sliding open beside the mic. */
@keyframes pill-open {
from {
opacity: 0;
transform: translateX(8px) scale(0.96);
/* Status Mark's turning arc while something runs. */
@keyframes status-mark-turn {
to {
transform: rotate(360deg);
}
}
.status-mark-turn {
animation: status-mark-turn 0.9s linear infinite;
}

/* Thought Line's working label: muted text with an accent sheen passing through. Still under reduced motion. */
@utility thought-shimmer {
background: linear-gradient(100deg, var(--fg-muted) 35%, var(--accent-fg) 50%, var(--fg-muted) 65%) 0 0 / 250% 100%;
/* The Thought Line label while Aeon works: muted words with a slow accent glint moving left to right. */
@utility working-glint {
color: var(--fg-muted);
background: linear-gradient(90deg, transparent 0 40%, var(--accent-fg) 50%, transparent 60% 100%) 0 0 / 300% 100% no-repeat,
linear-gradient(var(--fg-muted), var(--fg-muted));
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
animation: shimmer 1.8s linear infinite;
animation: shimmer 2.2s ease-in-out infinite;
@media (prefers-reduced-motion: reduce) {
animation: none;
background: none;
-webkit-text-fill-color: currentColor;
}
}

/* Voice Pill: the recording pill grows out of the mic. */
@keyframes voice-grow {
from {
opacity: 0;
clip-path: inset(0 0 0 100% round 9999px);
}
to {
opacity: 1;
clip-path: inset(0 0 0 0 round 9999px);
}
}

@keyframes shimmer {
from {
background-position: 100% 0;
Expand Down
Binary file added app/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading