Commit Graph
761 Commits
Author SHA1 Message Date
Thanh Nguyen 28cccdb998 Stop a build's check rounds from stalling silently (#1287)
A round of the builder's own checks now has a 30-minute limit, Pause is looked at before each check and stops a running build step, and every check is said as its own step ("Checking its work (2 of 4): …"), so a check that stalls names itself instead of holding the build for hours. The limit reaches the checks' own program runs, a step is refused before it starts once the round is past its limit or paused, a check that can't run is reported as not run with its reason, and a caught bug leaves the project at "Needs you" instead of "Checking". Real check rounds keep no limit. Addresses the stalls reported in #981 and #1198; a live Windows run is still to do.
2026-11-09 16:50:18 +08:00
Nibras Abo Alzahab 30d884284e Devin as a coding agent over ACP, authenticated with the backend's key (#562)
Devin can be added as a coding agent. Builds talk to `devin acp`, which takes our tool server and sends its permission requests to the approval policy; since Devin doesn't use its own CLI sign-in over ACP, the session authenticates with the key stored for that backend, sent only to the local process and only when Devin offers that method. The key is looked up only for agents that authenticate this way, so other agents never touch the keychain. One-off questions use `devin -p`, and `craft-anything-cli ai add --acp` sets an agent to ACP.
2026-11-09 16:34:47 +08:00
Cr 9be98367df Find SQLite table options after the column list's own closing parenthesis (R3.12) (#1285)
SQLite keeps a comment after a CREATE TABLE's column list in the stored statement, and the end of the list was taken from the last `)` in the text, so a parenthesis in that comment hid `WITHOUT ROWID` and `STRICT`: such a table read no rows, and its ANY columns lost their STRICT handling. The list's closing parenthesis is now found by tokens, outside comments, strings and quoted names.
2026-11-09 15:30:12 +08:00
Cr 708ed77995 Name asset catalog keys from KEYFORMATWORKAROUND (R3.12) (#1284)
A catalog compiled for a system older than one of its key attributes (display gamut before macOS 10.12) keeps a placeholder in KEYFORMAT and the real attribute in KEYFORMATWORKAROUND. That block is now applied as the system applies it, so the key format and each rendition's key name the real attribute, such as `display-gamut` for a Display P3 variant, instead of `placeholder`.
2026-11-09 15:21:18 +08:00
Cr ae4b5cc3b3 Name code-directory flags with the bits codesign uses (R3.12) (#1281)
A code signature's flag names used the wrong bits for hard, kill, expires, restrict, enforcement and library-validation, and named two of them as other flags, so a library-validation signature showed no flag names and a hardened one read "allowed-entitlements". The names now follow the bits and words `codesign -d` shows.
2026-11-09 15:19:05 +08:00
JG Tromp b9d1bb16b3 Tell a local AI that didn't answer in time from one that can't be reached, without the internet advice (R5.4) (#1242)
A server that took the request but didn't start answering in time now says so instead of "Couldn't reach". When the AI runs on this computer (localhost, 127.x or ::1), the advice says a large model may still be loading or reading a long prompt, and a server that can't be reached is told to check it's running here, with nothing about the internet connection. Remote servers keep their advice.
2026-11-09 15:09:15 +08:00
Cr 37a9285afd Find a Mach-O entry point in the segment that holds its file bytes (R3.12) (#1278)
`LC_MAIN` gives a Mach-O executable's entry point as a file offset. It was mapped through the last segment starting at or below that offset, so a `__DATA` holding only zero-fill sections, which has no file bytes but records file offset 0 like `__TEXT`, took the entry point and placed it outside the code. The offset now maps through the segment whose file bytes contain it, and an offset no segment holds gives no entry point.
2026-11-09 15:07:14 +08:00
Afloat b8371ab97b Report truncated SquashFS metadata without losing earlier blocks (R3.12) (#1262)
A SquashFS metadata table cut inside a block's header or payload now says so with a warning and marks the recovery incomplete, instead of stopping silently. Only blocks that were read are mapped, so the blocks before the cut stay readable and nothing points into the missing one.
2026-11-09 14:27:03 +08:00
Cr 6144b79485 Read filled-in SQLite defaults with their column's affinity (R3.12) (#1275)
A default filled into an older row is now read the way SQLite reads it into that column: a TEXT column reads a number as text, NUMERIC and INTEGER columns read text that is a number as that number, a REAL column then makes it a REAL, and BLOB, untyped and STRICT ANY columns keep the literal as written. Numbers too large for a REAL stay unsupported instead of showing as infinity.
2026-11-09 14:26:31 +08:00
Afloat 1fab017129 Look up source mappings without scanning every segment on a generated line (R3.12) (#1139)
Source map lookups find the section and the segments at a generated position by binary search over the sorted lists instead of scanning them all, keeping every mapping that shares the matched column.
2026-11-09 14:21:19 +08:00
Afloat f5aad102b0 Decode source map position deltas within the format's 32-bit range (R3.12) (#1133)
Source map VLQ fields now decode the whole signed 32-bit range, including the reserved encoding of the minimum, reject values beyond it, and accept redundant zero groups without overflowing a shift.
2026-11-09 14:21:14 +08:00
Cr 00033627e6 Read a SQLite CREATE TABLE longer than 4 KiB whole (R3.12) (#1261)
Schema rows were decoded with the 4 KiB cap used for every text value, so a CREATE TABLE longer than that lost the columns after the cut, its rowid alias and its WITHOUT ROWID marker. The schema is now read whole for parsing (up to 1 MiB per statement and 32 MiB per walk, after which text is cut as before), while the statement shown is still cut at 4 KiB on a character boundary.
2026-11-09 11:45:13 +08:00
Cr 37d07a0a2c Read whole numbers in SQLite REAL columns as REAL (R3.12) (#1259)
SQLite stores a REAL with no fractional part as an integer and turns it back into a REAL when it reads a column with REAL affinity. Rows now read the same way, including WITHOUT ROWID keys and filled-in defaults of added columns, so `1.0` no longer shows as `1`. Affinity follows SQLite's order, so a `FLOATING POINT` column, which contains INT, stays an integer column.
2026-11-09 11:21:02 +08:00
Afloat a9487a078b Check certificate field tags and bit strings before verification (R3.12) (#1131)
Before a certificate's fields are used to verify a signature, the algorithm OID must be the first element of its sequence and valid, the key and signature bit strings must be non-empty with no unused bits, and the issuer and subject must be sequences. A certificate that fails these checks is not taken apart for verification instead of yielding an empty algorithm or misread bytes.
2026-11-09 10:57:07 +08:00
Afloat b0c4d4bcbf Check cpio pathnames and the end marker before reporting a complete archive (R3.12) (#1134)
A cpio member's name must end in a NUL (extra NUL padding is still allowed), and an archive counts as complete only when its trailer is empty and fully present. An unterminated or invalid name, or a trailer with data or cut short, stops the listing with a warning instead of the archive being reported complete.
2026-11-09 10:55:29 +08:00
Afloat 43d8862cf2 Decode one complete XML plist document (R3.12) (#1253)
The XML plist reader now takes exactly one value, inside a closed `<plist>` when there is one, with only whitespace, comments and declarations around it: unclosed roots, extra values, stray text, non-empty `<true>`/`<false>` and a `<key>` outside a dictionary are errors instead of being read past. A DOCTYPE's internal subset is skipped as one declaration, without fetching or expanding entities. Invalid UTF-8 and a half UTF-16 code unit are reported instead of being replaced.
2026-11-09 10:55:22 +08:00
Afloat a205f1d157 Keep source lookups inside their declared index map section (R3.12) (#1130)
An index source map's sections now need a valid offset and either an inline map or a `url`, in ascending order; malformed section tables are an error instead of defaulting to offset 0. A section that points to an external map, which is never fetched, keeps its start, so lookups past it no longer borrow mappings from the inline section before it.
2026-11-09 10:55:15 +08:00
Alex Joaquim Pereira 7a38723c0b Resume an API builder's transcript only in its mode (R2.9) (#1258)
An API builder's kept conversation now records whether it ran in Deep mode or Clean room (`transcript.json` version 2), and is only resumed in that same mode; a version-1 transcript counts as Deep. A run without a new request whose transcript came from the other mode studies again instead of carrying on, and a chosen extractor is no longer started in Clean room.
2026-11-09 10:47:38 +08:00
Afloat c8686f95fa Read Android XML events within their declared records (R3.12) (#1256)
The Android binary XML reader stays inside the document's declared size, reads a node's fields after the header length it declares, and requires each attribute record and typed value to fit within its own element. Nodes that are too short or attribute tables with an impossible layout mark the document truncated with a warning, instead of borrowing bytes from a sibling or from past the document's end.
2026-11-09 10:45:57 +08:00
Afloat ddedb6f314 Resolve references throughout a keyed archive (R3.12) (#1255)
Keyed archives now follow object references inside arrays, inline dictionaries and objects that are only an alias for another, both in the object list and when projecting an object. A `$top` that isn't a dictionary is no longer taken for an archive, and the text a projection copies from repeated references shares one 64 MiB budget.
2026-11-09 10:45:52 +08:00
Afloat d85f75b2de Reject malformed tar sizes before placing the next member (R3.12) (#1135) (#1135)
A GNU base-256 number with its sign bit set is negative, which an unsigned tar header field such as a member's size can't be; it is now rejected instead of being read as a huge size.
2026-11-09 10:35:07 +08:00
Afloat 9d3a288083 Report invalid safetensors metadata and payload layouts (R3.12) (#1257) (#1257)
The safetensors reader checks tensor sizes for the 4-, 6- and 8-bit float types too, refuses a header over 100 MB, warns about metadata values that aren't strings instead of showing them as JSON, shortens long architecture and name fields, and reports tensor data ranges that overlap, leave gaps or leave bytes unclaimed at the end.
2026-11-09 10:30:56 +08:00
Afloat 0c386e8ac8 Read binary plist objects only from supported markers (R3.12) (#1254) (#1254)
The binary plist reader accepts the `bplist0x` versions and reports others as unsupported. An unknown simple marker, a date marker of the wrong width or a dictionary key that isn't a string is now an error, instead of being shown as null or as an invented key.
2026-11-09 10:30:46 +08:00
Nathaniel Caldwell 09a116586a Say where OpenCode 2.x comes from, and record the Linux live runs (R2.2) (#1241) (#1241)
docs/opencode.md now says that runs need OpenCode 2.x, that the install script and npm's `opencode-ai` still give 1.x, and that 2.x comes from npm's `@opencode/cli`, the desktop app's bundled CLI or the GitHub releases, with how to point the backend at it. It also warns not to start OpenCode during a build, since its shared service takes over the build's session. STATUS.md records the Linux live runs, and the roadmap gains the two problems they found.
2026-11-09 10:15:55 +08:00
Afloat b9a352542b Keep filesystem and archive recovery within recorded boundaries (R3.12) (#1246) (#1246)
JFFS2 extents and nodes, ROMFS payloads and header pointers, cramfs names, SquashFS metadata tables and file blocks, and tar PAX records now stay inside the sizes their images record. Out-of-bounds or truncated parts are reported as warnings and mark the recovery incomplete instead of being read past or silently dropped. PAX records need their terminator and a bounded name, and split octal fields in tar headers are rejected.
2026-11-09 10:03:53 +08:00
BFlat c5ce7c0a8b Let an AI's timeout_secs cover the wait for its answer to start (#1240)
An API backend's timeout_secs now bounds the wait for its answer to start as well as the whole answer, so a request queued behind another tool's on a shared Ollama isn't cut off at five minutes; unset keeps five minutes to start and an hour in all, and a wait that runs out says to set it.

Fixes #1239
2026-11-09 08:12:10 +08:00
Nathaniel Caldwell 22126eae77 Discover OpenCode's models with a private server (#1232)
OpenCode model discovery, which also runs before every OpenCode turn, now uses --standalone unless the person chose a --server. Plain opencode api started OpenCode's shared service, which resumes every unfinished session on the computer, in any project, and carries on with its commands.

Part of #1115.
2026-11-09 06:52:37 +08:00
Cr 02e51b0243 Keep SQLite values on their columns when a table has VIRTUAL generated columns (R3.12) (#1231)
A VIRTUAL generated column stores no field in a row, so stored values no longer shift one column left: such a column is shown as not read, with a note, in rowid and WITHOUT ROWID tables alike, and a rowid alias after it is filled again.
2026-11-09 06:16:35 +08:00
Nathaniel Caldwell 309adc7fc2 Remove STATUS.md's doubled rows and opencode.md's doubled paragraph (#1226)
Five STATUS rows that merges had kept twice, with different updates in each copy, are now one row each, the most complete copy (OpenCode models and thinking now says once that SSH runs get the tools), and opencode.md loses its older doubled paragraph. A pitfall says how to merge a conflicting table row.
2026-11-09 04:41:22 +08:00
Roman Serikoff f34724796b Don't continue a Deep chat's session in a Clean room shared chat (R2.9) (#1223)
When the shared investigation chat switches from Deep to Clean room, it starts a new agent session instead of resuming the Deep one, which may carry what Deep mode read; a context with no recorded mode counts as Deep.
2026-11-09 03:08:30 +08:00
Roman Serikoff e440907a93 Play Python packages and built Java jars (R2.7) (#1209)
Play, screenshots and self-tests start a Python project's one package with a __main__.py as python3 -m <name>, and a Maven or Gradle project's one runnable jar (its manifest names a Main-Class, read without loading the jar) with java -jar. Maven now builds with package, so the jar exists after our own build.
2026-11-09 03:03:45 +08:00
Alex Joaquim Pereira 0e7e43f418 Record a builder session's mode so Clean room never resumes a Deep one (R2.9) (#1202)
craft.json keeps the mode a builder's saved session ran in (version 4, with a migration that counts an older saved session as Deep). A build or question resumes a session only in the mode it was saved in, so Clean room never continues one that may have read inside the original, and a Deep session is kept for a later Deep run.
2026-11-09 02:11:26 +08:00
Reio Kruusement 40feee0d11 Add Estonian UI translations (#1205)
Estonian (et) joins the app's languages with a complete catalogue, in Settings and the coverage check, and requests in Estonian keep their project kind: a game (mäng) or a website (veebileht, koduleht, veebisait), with the head of the main clause deciding when both are named.
2026-11-09 02:02:56 +08:00
Nathaniel Caldwell 8826ce266f Read tool calls a model writes in Qwen's markup, and answer calls to tools it wasn't offered (R5.4) (#1173)
A reply in Qwen's <tool_call> markup that a server handed back as text is read as the calls it makes, with arguments typed from the tool's schema; a call to a tool the model wasn't offered gets a plain answer naming its tools, instead of ending the turn.
2026-11-09 01:57:47 +08:00
Nathaniel Caldwell f379a4ec3f Stop sending builders that can't see pictures to screenshots (R5.4) (#1159)
A builder in the API loop, which can't open pictures, is no longer sent to look at screenshots: every brief and check that pointed it at a picture tells it what to use instead (capture.json's layouts, the UI tree, or asking the person). Agent apps keep the picture wording.
2026-11-09 01:57:41 +08:00
BFlatandAfloat cb0bb9d8fa Bound format readers and resolve launch paths (#1217)
Source-map data URLs ignore their fragment, ZIP directories are told by their attributes, rejected ASAR names count toward the limit, a HAR with a UTF-8 BOM parses, .NET bundle members stay before the manifest, Play starts a Python project's one installed console script, and Godot and Electron get an absolute project path.

Supersedes #1140, #1141, #1142, #1143, #1144, #1145 and #1146.

Co-authored-by: Afloat <ShuffleMonkey@163.com>
2026-11-09 01:55:01 +08:00
FuryNocturnTV (Tare Fernandez) 51e613240f Refit to a server's context window once per backend, only when room was made (#1170)
Each backend in a fallback chain gets its own refit after its server refuses a request for its window, and a refused request is asked again only once the conversation was made shorter.
2026-11-09 01:53:05 +08:00
Roman Serikoff 2d5c0cc15a Check a remote host's tool server before a build, and pin what it is sent (R2.8) (#1211)
A remote Claude Code or Codex build checks that craft-anything-cli is on the host before it starts, as OpenCode's already did, and a test pins that a remote tool server is only sent flags every release knows.
2026-11-09 01:47:15 +08:00
Roman Serikoff 1a202ceade Read Aider's project-folder settings before a run (R2.2) (#1210)
The check before an Aider run reads the settings Aider itself reads: .env and .aider.conf.yml in the folder it runs in and at the top of its git repository, an --env-file, then the home folder, so a project that names its model or key is no longer refused.
2026-11-09 01:47:09 +08:00
FuryNocturnTV (Tare Fernandez) 287ac6bdbc Keep a claude wrapper saved by name, and treat a link to the Claude desktop app as the app (#1172)
A claude wrapper saved by name (claude.cmd) is kept when it starts Claude Code, and a link that leads to the Claude desktop app is passed over like the app itself.
2026-11-09 01:44:24 +08:00
BFlatandHasnain 1f8508a104 Add a non-interactive Aider adapter (R2.2) (#1104)
Aider gets its task with --message and flags that stop it asking, updating, editing .gitignore or opening a page; a chat outside a build gets --dry-run. A run is refused before launch when no model or key is set up or an OpenRouter model has no OpenRouter key (#72), and Clean room is refused because Aider's reads can't be checked.

Supersedes #1061.

Co-authored-by: Hasnain <161151300+hasnain607@users.noreply.github.com>
2026-11-07 21:46:03 +08:00
BFlat 935b646f3c Let an API backend's timeout_secs give a slow model longer to answer (#1098)
An API backend's streamed answer is bounded by the AI's timeout_secs (one hour when unset), so a slow local model can finish a long answer, and a stream that runs out of time says to set it.
2026-11-07 19:13:53 +08:00
Alex Joaquim Pereira c9b81ff492 Tell a running build what was asked in Just ask (R2.9) (#1094)
A note sent while a build runs now carries the latest Just ask answers its mode may show, including through Claude Code's note hook, and they count as told only once the builder has them. A Clean room run never gets Deep answers.
2026-11-07 17:58:14 +08:00
Afloat 464935ef96 Launch Go apps with a single command package (R2.7) (#1092)
A Go project with no root main.go and exactly one cmd/<name>/main.go starts with go run ./cmd/<name> for Play, screenshots and self-tests.
2026-11-07 17:24:51 +08:00
Afloat d8087e70fc Read DNS service records and retain questionless address announcements (R3.12) (#1090)
SRV, SOA and CAA answers show their fields, address records of the wrong size are incomplete, a truncated reply says so, and unsolicited mDNS announcements keep the address under the record name.
2026-11-07 17:24:44 +08:00
Afloat 23000e314a Keep system tools and media players on the app build path (R2.7) (#1093)
Requests like "a low level disk tool", "an MPEG 2 player" and "a single player app for movies" stay apps, while other game cues in the request still win.
2026-11-07 16:42:22 +08:00
Afloat aed326ca6d Bound malformed pcapng records and preserve capture timestamp precision (R3.12) (#1091)
Rejected packet blocks share the packet budget and are reported once per reason, a timestamp fraction outside its second is ignored, and sub-nanosecond resolutions keep the interface offset.
2026-11-07 16:42:17 +08:00
Afloat 6cbc66984c Report malformed ClientHello offers and retain unknown TLS versions (R3.12) (#1089)
A ClientHello with impossible vector lengths, repeated extensions or repeated host names is marked partial, and only registered GREASE values are dropped.
2026-11-07 16:40:09 +08:00
Afloat 2a5845c64b Export Unity floating-point textures as PNG (R3.9) (#1088)
RHalf, RGHalf, RGBAHalf, RFloat, RGFloat and RGBAFloat textures now decode: RGB is treated as linear light and clipped, and NaN stays dark.
2026-11-07 16:36:59 +08:00
Tomáš Doubek c7bb13bd1d Bound combined macOS UI observation output (R5.6) (#1087)
A tree and screenshot that would pass the helper's 16 MiB output cap now fit: the tree is cut to a prefix and reported as truncated, keeping the image, and an image that cannot fit alone becomes a screenshot limitation.
2026-11-07 16:32:52 +08:00