Documentation
¶
Overview ¶
Package tilasm builds what a tilasm publishes on claude.ai: its page with the files beside it, at their paths, as the window serves them. Djinn builds it, never a model: the same folder gives the same bytes.
The Artifact tool publishes no page its session has not read whole, and Read takes 256 KB at a time, lines of 2,000 characters (W493): a page with its images inlined, megabytes of base64, cannot be published. So the page goes as it is, its files beside it, and the images and fonts a page holds inlined, as data: addresses, go out of it into files.
Index ¶
Constants ¶
const ( PageLimit = 16 << 20 TextFileLimit = 16 << 20 BinaryFileLimit = 15 << 20 SendLimit = 64 << 20 MaxFiles = 255 )
The limits of a claude.ai artifact, as its Artifact tool states them: a page of 16 MB at most; beside it at most 255 files, 16 MB each for a text file and 15 MB for any other, 64 MB per publish.
const Index = "index.html"
Index is the page a tilasm opens on.
const Outside = "outside"
Outside is the folder the data: addresses of a page go to, by their content: outside/<hash>.png.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bundle ¶
type Bundle struct {
// Dir holds the page, Index, and the files beside it.
Dir string
// Files are the files beside the page, relative to Dir, with forward slashes, sorted.
Files []string
// Left are the tilasm's files left out, of a type claude.ai does not serve: their links lead nowhere there.
Left []string
// Outside counts the data: addresses that went out of the page into files of Outside.
Outside int
// Size is what is sent, in bytes: the page and the files beside it.
Size int64
}
Bundle is a tilasm made ready to publish, in a folder of its own.
func Build ¶
Build makes the tilasm's version folder src ready to publish, in dst, a folder that exists and is empty: its page, its large data: addresses moved out into files, and every file of a type claude.ai serves, at its path. A tilasm over an artifact's limits is refused with a TooLargeError error.
type TooLargeError ¶
type TooLargeError struct{ Why string }
TooLargeError is why a tilasm cannot be published: it does not fit an artifact's limits.
func (*TooLargeError) Error ¶
func (e *TooLargeError) Error() string