Repository navigation
v1.2.5
Before upgrading.
- Migrations run at start: three, and all are expands. The database moves from
0203_work_items_announce_due, where 1.2.4 left it, to0206_artifacts_collab. Each adds only
new, empty tables that no 1.2.4 server reads or writes, so the upgrade rolls its servers one by
one, with no downtime. Each waits at most 5 seconds for its locks and 60 seconds for a statement,
and gives up rather than hold reads behind a long transaction. Every new table keeps one
organization's rows to that organization.0204_artifacts_storeaddsartifacts: each artifact's title, kind, owner, audience and the
conversation it came from. Never its content, which lives in the artifact store (below).0205_artifacts_shareadds who an artifact is shared with (people and teams, as viewer or
editor), invitations to people outside the organization (their one-time codes kept only as
hashes), requests for access, and each organization's artifact policy.0206_artifacts_collabadds comment threads and their comments, who has an artifact open, what
each person allowed a page artifact to use, and the small documents a page keeps.
- Artifacts need a versioned bucket of their own, and are off until you give them one. Every
version of every artifact is kept as a version of one object in that bucket, never in the
database and never in the files bucket. The server readsARTIFACTS_STORE(s3,gcsor
azure) andARTIFACTS_BUCKET, withARTIFACTS_PREFIX,ARTIFACTS_REGION,
ARTIFACTS_ENDPOINT,ARTIFACTS_FORCE_PATH_STYLEandARTIFACTS_AZURE_ACCOUNT_URLbeside them.
Credentials are the artifact store's own (ARTIFACTS_ACCESS_KEY_IDand
ARTIFACTS_SECRET_ACCESS_KEY,ARTIFACTS_GOOGLE_APPLICATION_CREDENTIALS,
ARTIFACTS_AZURE_CONNECTION_STRING), so the files store's keys never reach it; without them the
server uses its own identity. With neitherARTIFACTS_STOREnorARTIFACTS_BUCKETset, the server
keeps no artifacts and the artifacts API says so (ARTIFACTS_UNAVAILABLE). As it starts, a server
given a store writes a probe object twice and checks that the bucket kept both versions and
refused a stale write; if not, it does not start, and says which bucket, which identity and what
to change. Leave no lifecycle rule that expires old versions on that bucket: they are people's
history. - The artifacts host. Share links, and every page an artifact draws, are served from a host of
their own (ARTIFACTS_PUBLIC_HOST), never the app's, so a page runs sandboxed on another origin
and can never reach the app's sign-in. Unset, there is no artifacts host and pages are not
framed. Behind Cloudflare,ARTIFACTS_CLOUDFLARE_ZONE_IDandARTIFACTS_CLOUDFLARE_API_TOKEN(a
token allowed only Cache Purge on that zone) let the server purge a page from Cloudflare's cache
as soon as it stops being public; without them it purges nothing. - Pages are compiled on the server. A page artifact is built with OpenBot's design system before
it is shown, and the packages it names are installed fromhttps://registry.npmjs.org/
(ARTIFACTS_NPM_REGISTRYnames another registry), so the server needs to reach one. - Compose.
docker-compose.ymladdsobject-storage(a MinIO build, pinned by digest) and
object-storage-init, which makes theopenbot-artifactsbucket and switches versioning on at
every start. Both are on thedatanetwork only, with no published port; the server starts once
the bucket is ready.ARTIFACTS_PORTpublishes the artifacts host on 127.0.0.1 alone, and a
single-user OpenBot refuses any artifacts host that isn't loopback. Set
OBJECT_STORAGE_ACCESS_KEYandOBJECT_STORAGE_SECRET_KEYfor a stack you start by hand; OpenBot
Desktop makes its own for each installation. - Kubernetes. The
openbotchart's newartifactsvalues are off by default and render nothing
until set:artifacts.publicHost,artifacts.cloudflareandartifacts.objectStorage, which
takes a bucket you already made and refuses one unlessversioning: enabledsays versioning is on.
With an ingress or an HTTPRoute, the artifacts host is routed to the server too; add it to your TLS
and DNS as you did the app's host. The chart README has a command per cloud to make the bucket and
turn versioning on. - No downtime, and nothing new is required. The upgrade rolls (
openbot.ai/requires-downtime
stays"false"). Every new setting is optional; without them a deployment runs as 1.2.4 did, with
no artifacts.
Artifacts.
- A Bot's work is kept, versioned and shareable. When a Bot makes a document, a deck, a
dashboard, a sheet, a diagram or a page, it makes an artifact: a card in the conversation that
opens beside it, and a page of its own under Artifacts. Documents, decks, dashboards, sheets and
diagrams are drawn with OpenBot's own components; a page is built with OpenBot's design system,
and runs sandboxed. Every Bot gets the artifact tools, a Bot connected over AG-UI as much as one
OpenBot runs. - Every version is kept. Each save is a new version (v1, v2, v3). Step back through them,
compare two, and restore an older one, which adds a new version rather than losing any. A save
made on an older version than the current one is refused instead of overwriting someone else's.
Artifacts can be renamed, duplicated, pinned and deleted. - Share it. An artifact is seen by its owner alone, by everyone in the organization, or by anyone
with its link. Share it with people and teams as viewers or editors, invite someone outside the
organization by email with a one-time code, and take any of it back; a viewer who loses access is
closed at once. People without access can ask for it. Admins decide whether public links, outside
invitations and pages using connected apps are allowed, and how many days earlier versions are
kept (for good unless they set it; the latest version is always kept). Turning public links or
outside invitations off closes the ones already given. - Download it as a real file. A document as PDF, Word or Markdown; a deck as PowerPoint, PDF or
pictures; a dashboard as PDF or a picture; a sheet as Excel or CSV; a diagram as SVG, a picture or
PDF; a page as one HTML file, PDF or a picture. - Comment on it, and hand a comment to a Bot. Comment threads sit on a version, on a stretch of
text or on one part of a page. Send to Bot hands a thread to a Bot, which answers for the person
who sent it, with their access, and may resolve it. Who has an artifact open shows as their
pictures, which an admin can turn off. Someone on a public link or an outside invitation sees the
artifact alone, never its comments or who else is there. - Pages that do more ask first. A page artifact can keep data, ask the model, use the viewer's
connected apps and know who is viewing, each only after that person says yes. - On OpenBot Desktop artifacts are kept in a versioned store on the computer and served on
their own port. There are no public links or outside invitations there, because a computer has no
address anybody else can open. - Moving to OpenBot Cloud carries artifacts, each with every version and the files it uses.
Security.
- The web app turns on Trusted Types (
require-trusted-types-for 'script'), so the browser
refuses to put script into the page except through OpenBot's own policies.