Commit Graph
1148 Commits
Author SHA1 Message Date
Fadlalla-ai b4f97d834e Claim: a pin or Play takes a same-named program from a shared CARGO_TARGET_DIR 2026-11-16 20:37:27 +04:00
AlexJoaquimPereira 12bfb1fafd Start a newly opened project from its own evidence (R2.9)
A session that opened project A and then B kept A's ledger and open questions: open_project loaded B's records into the same ledger. The desktop app has one engine for its lifetime, and each rebuild opens its project's investigation, so B's report and evidence tools mixed both projects.

Opening a different project now clears the session ledger, its order, open questions and unloaded count before loading the new project's store. Reopening the same project still refreshes it in place, and a failed unknowns read leaves the current project untouched. unloaded_evidence is recomputed on every open.

Regression: two projects with stored evidence and an open question; switching shows only the new project's records, reopening the same project keeps its ledger, and reopening the first restores its records. A follow-up roadmap line records the open targets and annotations that still survive a switch.
2026-11-16 22:04:36 +05:30
AlexJoaquimPereira 408ae82f63 Claim R2.9: start a newly opened project from its own evidence
A session that opens a second project currently keeps the first project's evidence and open questions in the ledger. Record the pending change before fixing it.
2026-11-16 22:04:36 +05:30
Fadlalla-ai a1c1c8abb9 Look for an engine's program in a folder set as its path, instead of running the folder 2026-11-16 20:18:11 +04:00
Fadlalla-ai 2772bebfe3 Claim looking for an engine's program in a folder set as its path 2026-11-16 19:59:32 +04:00
Fadlalla-ai 1520028963 Run JADX on the Java runtime engine, so it works with the Java Ghidra's setup brings 2026-11-16 19:54:38 +04:00
Fadlalla-ai 3d4f4421e5 Claim giving JADX the Java runtime engine 2026-11-16 19:39:28 +04:00
Fadlalla-ai 607c2cf1ea Merge remote-tracking branch 'origin/main' into bugfix/r5.7-settings-ghidra-lookup-once
# Conflicts:
#	docs/ROADMAP.md
2026-11-16 18:40:16 +04:00
BFlat edbeee75d9 Merge pull request #1957 from Fadlalla-ai/bugfix/r5.7-ghidra-wrapper-and-linked-script
Follow-up to #1949. A script that runs the headless launcher is kept as the launcher even when it sits in Ghidra's own folder, so what it sets up (its Java, say) isn't dropped. A path a start script names is also followed through its links, so a script that runs a linked ghidraRun leads to the Ghidra folder.
2026-11-16 21:32:18 +07:00
Fadlalla-ai 5494902239 Look Ghidra up once for Settings → Engines, not on every frame 2026-11-16 18:31:50 +04:00
Fadlalla-ai eb5a93951d Claim looking Ghidra up once for Settings → Engines, not on every frame 2026-11-16 18:31:50 +04:00
BFlat e70b577550 Merge pull request #1956 from Plastic-time/bugfix/r3.12-with-void-1116
Recovering `with ({undefined: 42}) { result = void 0; }` rewrote `void 0` to `undefined`, which the `with` object can supply, changing the result. Files containing a `with` statement keep their `void` expressions; other rewrites stay on.
2026-11-16 21:28:55 +07:00
BFlat 62f120294c Merge pull request #1955 from Plastic-time/bugfix/r3.12-trpc-calls-1116
The lexer fallback reported `const hook = trpc.users.list.useQuery` as a client call although it only reads a property. An opening call parenthesis (or an optional call) is now required.
2026-11-16 21:28:49 +07:00
BFlat 36c3325e4b Merge pull request #1954 from Plastic-time/bugfix/r3.12-string-escapes-1116
The lexer fallback read `require("./\141pp.js")` as a different module path and mis-decoded zero-padded braced Unicode escapes. Legacy octal escapes, every escaped line terminator and braced escapes of any length are now decoded, with checked arithmetic.
2026-11-16 21:28:42 +07:00
BFlat 99fd4a56c3 Merge pull request #1953 from Plastic-time/bugfix/r3.12-graphql-comments-1116
A comment between an operation keyword and its name hid the name, and a parenthesis inside a header comment could hide the whole operation. Comments and ignored separators are now skipped before header tokens are read.
2026-11-16 21:28:36 +07:00
BFlat 6be79a710f Merge pull request #1952 from Plastic-time/bugfix/r3.12-html-types-1116
A script whose type only resembled a JavaScript type (`application/javascript123`, or one with parameters such as `module; charset=utf-8`) was reported as executable. Types are now matched against the complete supported names, keeping `text/javascript1.0` to `1.5`, as browsers do.
2026-11-16 21:26:27 +07:00
BFlat fb16dab9be Merge pull request #1951 from Fadlalla-ai/bugfix/r5.7-managed-java-found
Ghidra's guided setup unpacks Java into the engine store's `jdk` folder, but the Java runtime engine was looked for under `java`, so after that setup the listing still said Java wasn't installed and tools that run a jar (Vineflower, Apktool's check) refused. A guided install now names its store folder in the engine table, and the lookup and installs use it; a test keeps two engines from sharing a store folder.
2026-11-16 21:13:05 +07:00
RRFZ d9ebf8adb8 Preserve void expressions around dynamic with scopes (R3.12) 2026-11-16 09:03:52 -05:00
RRFZ 672279e8f3 Claim Preserve void zero expressions when a with statement can dynamically resolve undefined. 2026-11-16 09:03:52 -05:00
RRFZ b849f1fbc7 Require a call before reporting a fallback tRPC operation (R3.12) 2026-11-16 09:03:07 -05:00
RRFZ 1d2a3e6ac2 Claim Require call syntax for tRPC client hooks in JavaScript lexer fallback facts. 2026-11-16 09:03:07 -05:00
RRFZ d0c2b514d6 Decode JavaScript legacy escapes and line continuations (R3.12) 2026-11-16 09:02:23 -05:00
RRFZ 3a0631ec1c Claim Decode legacy octal escapes, Unicode line continuations and zero-padded braced Unicode escapes in JavaScript strings. 2026-11-16 09:02:23 -05:00
RRFZ 03f022e398 Skip comments in GraphQL operation headers (R3.12) 2026-11-16 09:01:38 -05:00
RRFZ 9c7bbb081d Claim Skip GraphQL header comments before reading operation names and selection sets. 2026-11-16 09:01:37 -05:00
RRFZ a2cb128815 Reject unsupported HTML script type suffixes (R3.12) 2026-11-16 09:00:47 -05:00
RRFZ 65fe6484e0 Claim Match HTML script types against complete JavaScript MIME names and the exact module keyword. 2026-11-16 09:00:47 -05:00
Fadlalla-ai d1949b0987 Record the two Ghidra file-setting cases from #1949's review 2026-11-16 17:56:39 +04:00
Justin John 997b89ce4c Keep Settings → AI's tool list from showing an older choice (R5.4) (#1950)
Each change to an AI's tool list runs as its own job, and jobs can finish in any order, so two quick changes could leave Settings showing the first while the second was saved. The row now waits for its save, as the request-rate row does. Also escapes the `|` characters that split the STATUS table row.
2026-11-16 20:52:04 +07:00
Fadlalla-ai b4b51bc300 Find the Java that Ghidra's setup brings as the Java runtime, where Vineflower and the listing look 2026-11-16 17:48:58 +04:00
Fadlalla-ai 3fc9dc0695 Claim finding the Java that Ghidra's setup brings as the Java runtime 2026-11-16 17:48:46 +04:00
FredApps 239dc0536a Take target file signatures from the shared craft-sniff table (R3.12) (#1948)
* Take target file signatures from the shared craft-sniff table

* Pin craft-sniff to the craft-libs #1841 merge and record the cutover

The shared table is on main at 070005125f0af1a5ae4a59002270e5849505bfc0.

* Keep named-but-unsupported formats as Unknown

A CPIO file starting 070701 was identified by craft-sniff, then fell
through to the unsigned path and was called text. Identified kinds this
app does not inspect stay Unknown; the unsigned fallback is only for
files with no signature.
2026-11-16 14:40:58 +01:00
BFlat b8d31ff4b4 Merge pull request #1949 from Fadlalla-ai/bugfix/r5.7-ghidra-setting-names-a-file
A Ghidra folder setting that named a file was run as the headless launcher whatever it was. A start script for Ghidra's window (as Linux packages put on PATH) was listed as found, failed as a launcher, and Deep mode quietly used the built-in decompiler. A file is now run only when it is the headless launcher or a script that runs it; a link or start script is followed to its Ghidra folder; any other file isn't listed as Ghidra.
2026-11-16 20:32:08 +07:00
Fadlalla-ai 610fff4896 Follow a Ghidra setting that names a file to its Ghidra folder, and never run anything else as Ghidra 2026-11-16 16:56:00 +04:00
BFlat 6d0fa34750 Merge pull request #1947 from Fadlalla-ai/fix/cargo-target-dir-at-start
Follow-up to #1941. Where a program is about to start or be checked (Play, making a pin, the build's run and screenshot checks), Cargo itself is asked for its target directory, which also covers CARGO_BUILD_TARGET_DIR, the Cargo home's config and a parent workspace's target folder. The Project screen keeps the file lookup, so it starts no process; without Cargo the result is the file lookup. Outside the project only a program the manifests name is taken.
2026-11-16 19:50:55 +07:00
Fadlalla-ai c413f99d87 Claim following a Ghidra setting that names a file to its Ghidra folder 2026-11-16 16:45:56 +04:00
Justin John a897fff072 Choose each AI's builder tool list in Settings → AI and with ai tools (R5.4) (#1946)
An API backend's `tools` setting (auto, lean or full) could only be changed by editing config.toml. Settings → AI now has a "Builder's tools" choice per API backend, with a caption saying what Auto works out to for that AI, and `ai tools <name> [auto|lean|full]` shows or sets it from the CLI. Auto is saved as no setting; agent apps are refused, as they choose their own tools.
2026-11-16 19:41:14 +07:00
BFlat 8d8fbc7daa Merge pull request #1945 from Fadlalla-ai/test/ghidra-setup-linux
Docs only: the guided install was tried on a clean Debian 13 and a Debian 13 desktop, followed by a Deep-mode decompile. macOS stays open, and a new roadmap line records that a Ghidra folder setting naming a file is listed as found while Deep mode quietly uses the built-in engine.
2026-11-16 19:29:37 +07:00
Justin John 5538adbc58 Tell a builder why a build refused a tool that needs consent, instead of "the user said no" (R5.5) (#1944)
A build on an API model refuses every tool that needs consent outside the Build tools without asking anyone, and the model was told "The user said no", so it made up a reason (#1938). The model is now told that nobody was asked and that a plugin's `consent` setting decides; the journal records the case as `refused`. Whether such a build should ask the person is left as a decision line in the roadmap.
2026-11-16 19:29:30 +07:00
Fadlalla-ai 7037414257 Ask Cargo where a Rust build went when its program starts
The file lookup from #1941 stays for frequent reads (the Project screen). Where a
program is about to start or be checked (Play, pins, the build's run and
screenshot checks), launch_now also runs cargo metadata from the project and
looks in its target_directory first, which covers what the files don't:
$CARGO_HOME/config.toml, CARGO_BUILD_TARGET_DIR and a parent workspace's
target/. Outside the project, only a program the manifests name is taken.
2026-11-16 16:21:23 +04:00
Fadlalla-ai b09e136435 Claim asking Cargo for its target directory where a program starts 2026-11-16 16:17:31 +04:00
Fadlalla-ai 3a59e1c1f7 Record Ghidra setup tried on Linux, and a Ghidra setting that names a file
The guided install (Ghidra 12.1.4 and its Java, through engines_install) on a
clean Debian 13 and a Debian 13 desktop, then a Deep-mode decompile from Ghidra.
Ghidra laid out as Arch-based packages install it is found (#85). New open line:
a Ghidra folder setting naming the /usr/bin/ghidra start script is listed as
found, but Deep mode quietly uses the built-in lifter.
2026-11-16 15:58:51 +04:00
AlexJoaquimPereira 2ce8d31311 Record the R5.7 review fixes and the Cargo-answer follow-up
Name the final commits, the named-only rule for target directories outside the app, the pin copy, and the follow-up PR #1942's author offered.
2026-11-16 17:24:38 +05:30
AlexJoaquimPereira 216295fdcd Keep shared target programs out of unnamed projects, and copy pins (R5.7)
A shared or ancestor target directory outside app now supplies only a program the manifests name. Without a name, only target directories inside app are searched, so another project's executable isn't started. built_program_in(app, env) makes the tests independent of the process's CARGO_TARGET_DIR.

The ancestor walk starts from a normalized absolute app, so a relative app reaches a config above the working directory; normalized paths also keep .. out of selected programs. Cargo's legacy config wins over config.toml when it exists, and a config without the key or with invalid TOML doesn't fall through.

A pin copies a program built outside app into pin-program/ and records that relative path; other executables in a shared folder are not copied, and the frozen pin keeps working when the external build is removed.
2026-11-16 17:24:07 +05:30
AlexJoaquimPereira c77ab58fe5 Tick the R5.7 Cargo target-directory line
Record commit efff13a2 and the remaining global CARGO_HOME and parent-workspace cases.
2026-11-16 17:24:07 +05:30
AlexJoaquimPereira 842f011ae0 Find a Rust build's program under Cargo's target directory (R5.7)
A project whose Cargo settings move the build output (build.target-dir in .cargo/config.toml, or CARGO_TARGET_DIR) built, but Play and the screenshot/self-test checks only looked in app/target, so they could not start the program. built_program now looks under CARGO_TARGET_DIR, then the closest project or ancestor .cargo setting, then the default target/ as a fallback, and starts the first target directory that has the named program.

The new AI regression uses a project with target-dir = "out" and fails before the fix; engine tests cover the environment path (relative and absolute), a project setting, an ancestor setting, the environment coming first, and the default fallback.
2026-11-16 17:24:06 +05:30
AlexJoaquimPereira 9aadbde82d Claim R5.7: find a Rust build's program under Cargo's target directory 2026-11-16 17:24:06 +05:30
Fadlalla-ai 20647658fa Claim trying Ghidra setup for real on Linux 2026-11-16 15:47:02 +04:00
BFlat 8dec78492d Merge pull request #367 from oliver-mee/bugfix/policy-gates
The process and UI source-policy gates stopped at a file's first test attribute, so production code below an interleaved test module escaped them. They now read Rust paths through the whole file, follow import aliases, ignore comments and string examples, and exempt only items that can't exist outside tests. The lock gate uses the same scope, and module files named by a path attribute are checked wherever they live.
2026-11-16 18:04:55 +07:00
BFlat 3ef118107e Merge pull request #1940 from scks1/bugfix/r5.5-api-failure-log-service-text
A failed API-backend turn wrote the error's message to its log, and that message repeats what the service, or a proxy in front of it, answered, which can include the key or words from the request. The log now keeps our own code for the error, the HTTP status, the context window and request size, and the service's error code only when it is one of a known list. The error shown in the app and the CLI still has the service's message.
2026-11-16 17:59:57 +07:00