mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-23 12:13:55 +00:00
Added the dashes after dotnet run to every call of the build script (#1222)
This commit is contained in:
1 parent
b6d614d96a
commit
6e94a93c70
15 files changed
+40
-36
No files matched your search
@@ -19,7 +19,7 @@ once it is done: that is our signal to take over. The automated check waits unti
|
||||
|
||||
## How did you test it?
|
||||
|
||||
<!-- For example: ran `dotnet run verify`, ran the app locally, and tried out … -->
|
||||
<!-- For example: ran `dotnet run -- verify`, ran the app locally, and tried out … -->
|
||||
|
||||
## Wiki
|
||||
|
||||
|
||||
@@ -908,7 +908,7 @@ jobs:
|
||||
- name: Run the quality gate
|
||||
run: |
|
||||
cd "app/Build"
|
||||
dotnet run verify
|
||||
dotnet run -- verify
|
||||
|
||||
build_main:
|
||||
name: Build app (${{ matrix.dotnet_runtime }})
|
||||
|
||||
@@ -99,7 +99,7 @@ MindWork AI Studio is a cross-platform desktop application for interacting with
|
||||
### Build
|
||||
```bash
|
||||
cd app/Build
|
||||
dotnet run build
|
||||
dotnet run -- build
|
||||
```
|
||||
This builds the .NET app as a Tauri "sidecar" binary, which is required even for development.
|
||||
|
||||
@@ -109,7 +109,7 @@ instead; see "Cloud sessions" below.
|
||||
|
||||
Agents must not start builds through their own shell: agent shells run sandboxed, and `.NET` builds
|
||||
hit a known sandbox issue there, typically surfacing as `CSSM_ModuleLoad()` or other sandbox-related
|
||||
failures (for reference: https://github.com/openai/codex/issues/4915). This applies to `dotnet run build`,
|
||||
failures (for reference: https://github.com/openai/codex/issues/4915). This applies to `dotnet run -- build`,
|
||||
`dotnet build`, `cargo build`, and similar commands.
|
||||
|
||||
Instead, use the JetBrains IDE MCP servers. They execute in the IDE process, which runs outside the
|
||||
@@ -130,8 +130,8 @@ triggering a new build.
|
||||
terminal, because they are more than a solution build:
|
||||
|
||||
```
|
||||
mcp__rider__execute_terminal_command command: "cd app/Build && dotnet run build"
|
||||
mcp__rider__execute_terminal_command command: "cd app/Build && dotnet run collect-i18n"
|
||||
mcp__rider__execute_terminal_command command: "cd app/Build && dotnet run -- build"
|
||||
mcp__rider__execute_terminal_command command: "cd app/Build && dotnet run -- collect-i18n"
|
||||
```
|
||||
|
||||
**Rust builds** work the same way through the matching `rustrover` tools.
|
||||
@@ -140,7 +140,7 @@ Notes:
|
||||
- The IDE may ask the user to confirm a terminal command. Wait for the result instead of retrying the
|
||||
command in the agent shell.
|
||||
- When the IDE is not running or its MCP server is unavailable, fall back to asking the user to run
|
||||
`cd app/Build && dotnet run build` locally, and wait for their feedback before diagnosing issues or
|
||||
`cd app/Build && dotnet run -- build` locally, and wait for their feedback before diagnosing issues or
|
||||
making follow-up changes.
|
||||
- Treat the build output, error messages, or success confirmation as the source of truth for further
|
||||
troubleshooting, no matter whether it came from the MCP server or from the user.
|
||||
@@ -169,12 +169,12 @@ again yourself when `metadata.txt` changes during the session, e.g., after a mer
|
||||
|
||||
**Building and testing** happen in the shell:
|
||||
|
||||
- The quality gate, the same as in the pipeline: `cd app/Build && dotnet run verify`. It compiles both
|
||||
- The quality gate, the same as in the pipeline: `cd app/Build && dotnet run -- verify`. It compiles both
|
||||
the .NET app and the Rust runtime on its way. Narrower checks: `dotnet build "app/MindWork AI Studio.slnx"`,
|
||||
`dotnet test` in `app/Tests`, and `cargo test` or `cargo clippy --all-targets -- -D warnings` in `runtime/`.
|
||||
- A cold build of the Rust runtime takes several minutes: run the gate and cargo in the background, or
|
||||
give them the longest timeout available.
|
||||
- Skip `dotnet run build`: it needs the Tauri CLI, which is not installed, and the app it produces
|
||||
- Skip `dotnet run -- build`: it needs the Tauri CLI, which is not installed, and the app it produces
|
||||
cannot start without a display.
|
||||
|
||||
**Committing and pushing** is your job here:
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ As of October 2026, we recommend one of these setups, or a newer model of the sa
|
||||
|
||||
The repository contains an [AGENTS.md](AGENTS.md), which your agent reads on its own. It describes the architecture, our conventions, and how to build and test AI Studio, and it is binding for every agent working on the code.
|
||||
|
||||
Before you open a pull request, run [the quality gate](documentation/Build.md#the-quality-gate) with `dotnet run verify`, then [run the app locally](documentation/Build.md#run-the-app-locally-with-all-your-changes) and try out what you changed.
|
||||
Before you open a pull request, run [the quality gate](documentation/Build.md#the-quality-gate) with `dotnet run -- verify`, then [run the app locally](documentation/Build.md#run-the-app-locally-with-all-your-changes) and try out what you changed.
|
||||
|
||||
Contributions written without AI assistance are welcome as well, as long as they meet the same standard.
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="Collect I18N content" type="ShConfigurationType">
|
||||
<option name="SCRIPT_TEXT" value="dotnet run collect-i18n" />
|
||||
<option name="SCRIPT_TEXT" value="dotnet run -- collect-i18n" />
|
||||
<option name="INDEPENDENT_SCRIPT_PATH" value="true" />
|
||||
<option name="SCRIPT_PATH" value="$PROJECT_DIR$/Build" />
|
||||
<option name="SCRIPT_OPTIONS" value="" />
|
||||
|
||||
+1
-1
@@ -36,7 +36,7 @@ Key structure:
|
||||
- **New files and folders in the data or configuration directory** - Whoever adds a file or folder directly to the data or configuration directory, or below `plugins/` or `databases/` one which needs a decision of its own, lists it in `DataBackupContents.ENTRIES`: as part of a backup, or with the reason a backup leaves it out. A backup takes along only what is listed as included, and a restore replaces only that. An entry included in a backup also goes into `REPLACEABLE_ELEMENTS` in `runtime/src/data_restore.rs`; otherwise the runtime refuses to restore it. The folder panel on the information page shows the list to users who back up these folders with a tool of their own.
|
||||
- **Sending content on** - Content which leaves one place for another, such as the result of an assistant sent to another assistant or a text sent into the chat, travels as a `TextLaunchPayload` through `AssistantLaunchService`, together with the restrictions of where it was written (`ChatRestrictions`, see `ChatThread.CaptureRestrictions`). Never hand over a bare string: the destination would let any provider or tool see content which its source kept from them. Build the payload with `AssistantLaunchService.CreateTextPayloadAsync`, which filters what an AI wrote for prompt injections before it reaches the next model as a message of the user. An assistant which allows sending to it overrides `AssistantBase.ApplyTextLaunchPayload`, and `SendToReceiverTests` checks that every one does; the restrictions themselves are applied centrally in `AssistantBase`.
|
||||
- **JSON in model answers** - Read the JSON part of a model answer with `ModelAnswerJson`, never with a scanner of your own. It skips the prose and code fences around the JSON but checks nothing, so broken JSON reaches the deserializer unchanged and its message can go back to the model.
|
||||
- **JSON contracts** - The contracts of all JSON which AI Studio reads or writes are generated while compiling. Each kind of options names the `JsonSerializerContext` which knows its types, with `GenerationMode = Metadata`, as its `TypeInfoResolver` and ends with `.AsReadOnly()`; only `VisualBriefingJson.Canonical` leaves that out, see MWAIS0010. A new JSON type goes into the context of the options it is read or written with, and into `JsonTestRoots` in `app/Tests/Serialization/`, whose contract, defaults, and coverage tests then check it. Give JSON types `set` instead of `init`, because the source generator of .NET 10 drops the initializer of an `init` property which the JSON leaves out, and write a record or a `JsonObject` instead of an anonymous type. Never call System.Text.Json without options, nor with `JsonSerializerOptions.Default`, `.Web`, or a `DefaultJsonTypeInfoResolver`: each of them builds the contracts by reflection, whose code a published build may lack. MWAIS0015 refuses them while compiling, `JsonOptionsResolverTests` checks the resolvers of all options of the app, and the trim smoke test of `dotnet run verify` builds the contract of every type of their contexts in a trimmed build. Reflection itself stays switched on, because Blazor Server needs it for JSON of its own, see `Trimming.props`.
|
||||
- **JSON contracts** - The contracts of all JSON which AI Studio reads or writes are generated while compiling. Each kind of options names the `JsonSerializerContext` which knows its types, with `GenerationMode = Metadata`, as its `TypeInfoResolver` and ends with `.AsReadOnly()`; only `VisualBriefingJson.Canonical` leaves that out, see MWAIS0010. A new JSON type goes into the context of the options it is read or written with, and into `JsonTestRoots` in `app/Tests/Serialization/`, whose contract, defaults, and coverage tests then check it. Give JSON types `set` instead of `init`, because the source generator of .NET 10 drops the initializer of an `init` property which the JSON leaves out, and write a record or a `JsonObject` instead of an anonymous type. Never call System.Text.Json without options, nor with `JsonSerializerOptions.Default`, `.Web`, or a `DefaultJsonTypeInfoResolver`: each of them builds the contracts by reflection, whose code a published build may lack. MWAIS0015 refuses them while compiling, `JsonOptionsResolverTests` checks the resolvers of all options of the app, and the trim smoke test of `dotnet run -- verify` builds the contract of every type of their contexts in a trimmed build. Reflection itself stays switched on, because Blazor Server needs it for JSON of its own, see `Trimming.props`.
|
||||
- **Long menus** - MudBlazor keeps a `MudSelect` inside the window by itself, but never a `MudMenu`: a menu taller than the window runs past its edge, and its lower entries cannot be reached. Give every `MudMenu` whose entries come from data, such as the assistants or the profiles, `MaxHeight="@MenuDefaults.MAX_HEIGHT"`, so that it scrolls.
|
||||
- **Growing popovers** - Since version 9, MudBlazor places an open popover again whenever its content changes size. Content which unfolds later, such as a `MudCollapse` or an `ExpansionPanel` inside a `MudPopover`, therefore stays inside the window and needs no code of its own.
|
||||
- **Validated text fields** - Without `Immediate` or a `DebounceInterval`, a `MudTextField` passes its text on only when the user leaves it, so an issue stays visible while the user types the text which resolves it. Give every `MudTextField` with a `Validation` which takes typing `DebounceInterval="@TextFieldDefaults.VALIDATION_DEBOUNCE_MILLISECONDS"` and bind its `Value`, not its `Text`: bound by its text, the field also delays the texts its parent sets, e.g., by a reset, and checks them although nobody touched it. `Immediate="@true"` works as well, but renders the parent with every keystroke. `ValidatedTextFieldTests` checks this rule.
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ changelog entries.
|
||||
`gh pr list -R MindWorkAI/AI-Studio --state merged --limit 1000 --search "merged:>=<YYYY-MM-DD>" --json author --jq '[.[].author.login] | unique | .[]'`,
|
||||
with the date of the last release tag from `git log -1 --format=%cs <last release tag>`; skip bots
|
||||
3. Commit changelog
|
||||
4. Run from `app/Build`: `dotnet run release --action <build|month|year>`
|
||||
4. Run from `app/Build`: `dotnet run -- release --action <build|month|year>`
|
||||
5. Create PR with version bump and changes
|
||||
6. After PR merge, maintainer creates git tag: `vX.Y.Z`
|
||||
7. GitHub Actions builds release binaries for all platforms
|
||||
|
||||
@@ -55,11 +55,11 @@ public sealed class VerifyCommand
|
||||
// Tauri's build script insists that everything the configuration lists is already
|
||||
// there and refuses to run otherwise, so nothing Rust compiles until a build has
|
||||
// produced those files once. Failing here would be a trap rather than a gate: the way
|
||||
// to produce them is `dotnet run build`, and that command runs this gate first -- a
|
||||
// to produce them is `dotnet run -- build`, and that command runs this gate first -- a
|
||||
// fresh clone would never get past it.
|
||||
//
|
||||
Console.WriteLine("- Skipping the Rust tests and Clippy: the .NET sidecar or the downloaded libraries are missing, and Tauri's build script needs both before anything Rust compiles.");
|
||||
Console.WriteLine(" Run 'dotnet run build --skip-verify' once. From then on, this part of the gate runs with the rest.");
|
||||
Console.WriteLine(" Run 'dotnet run -- build --skip-verify' once. From then on, this part of the gate runs with the rest.");
|
||||
}
|
||||
|
||||
results.Add(("Model sources", new VerifyModelsCommand().VerifyModels()));
|
||||
|
||||
@@ -8,7 +8,7 @@ using Build.Tools;
|
||||
// a root with the same name as one of its commands. Hence, the root is a command of its own, which
|
||||
// brings only the help option of a RootCommand along:
|
||||
//
|
||||
var rootCommand = new Command("build-script", "Build, check, and release MindWork AI Studio. Run the commands from app/Build with 'dotnet run <command>'.")
|
||||
var rootCommand = new Command("build-script", "Build, check, and release MindWork AI Studio. Run the commands from app/Build with 'dotnet run -- <command>'.")
|
||||
{
|
||||
new HelpOption(),
|
||||
CheckRidsCommand.CreateCommand(),
|
||||
|
||||
@@ -12,4 +12,4 @@ When adding, changing, or removing model knowledge, keep these parts in sync:
|
||||
- `app/MindWork AI Studio/Models/Hosting/Hosts/` when a provider wraps model names or cannot pass an API through. A host unwraps and trims the transport; it states nothing about the model itself.
|
||||
- `app/MindWork AI Studio/Plugins/models/plugin.lua` when a new field can be declared by an organization, and `app/MindWork AI Studio/Plugins/configuration/plugin.lua` when it can be overridden per provider instance.
|
||||
|
||||
Rules are never tried in order: specificity is computed from the rule, and two rules of equal specificity on one name fail the test suite. State how a model reasons with `Reasoning(...)` — the three reasoning capabilities are override vocabulary and must never appear in a profile. Every family and every host has to name the page it was read from and the day somebody read it; `dotnet run verify-models` reports the ones which have gone stale.
|
||||
Rules are never tried in order: specificity is computed from the rule, and two rules of equal specificity on one name fail the test suite. State how a model reasons with `Reasoning(...)` — the three reasoning capabilities are override vocabulary and must never appear in a profile. Every family and every host has to name the page it was read from and the day somebody read it; `dotnet run -- verify-models` reports the ones which have gone stale.
|
||||
@@ -4,7 +4,7 @@
|
||||
Checks what only a published build of AI Studio lacks. The trimmer removes code of .NET which System.Text.Json
|
||||
reaches by reflection only, and the same holds for AngouriMath, which is marked as trimmable, while debug builds
|
||||
and the tests are not trimmed. Hence, this program has to run published, trimmed by the same Trimming.props as
|
||||
the app; `dotnet run verify` does both.
|
||||
the app; the command verify of the build script does both.
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
|
||||
+16
-12
@@ -19,41 +19,43 @@ Regardless of whether you want to build the app locally for yourself (not trusti
|
||||
1. Open a terminal.
|
||||
2. Install the Tauri CLI by running `cargo install tauri-cli --version 2.12.6 --locked`.
|
||||
3. Navigate to the `/app/Build` directory within the repository.
|
||||
4. Run `dotnet run build` to build the entire app.
|
||||
4. Run `dotnet run -- build` to build the entire app.
|
||||
|
||||
This is necessary because the build script and the Tauri framework assume that the .NET app is available as a so-called "sidecar." Although the sidecar is only necessary for the final release and shipping, Tauri requires it to be present during development as well.
|
||||
|
||||
The build also downloads the PDF library Pdfium in the version which `metadata.txt` names, and downloads it again only when that version changes. `dotnet run build --offline` skips the download and uses the library which is already present.
|
||||
Mind the two dashes after `dotnet run` in this and every other command of the build script. Everything after them reaches the build script unchanged. Without them, `dotnet run` takes some options for itself, such as `--arch`, instead of passing them on.
|
||||
|
||||
The build also downloads the PDF library Pdfium in the version which `metadata.txt` names, and downloads it again only when that version changes. `dotnet run -- build --offline` skips the download and uses the library which is already present.
|
||||
|
||||
## The quality gate
|
||||
One command checks that what you are about to build is sound:
|
||||
|
||||
1. Open a terminal.
|
||||
2. Navigate to the `/app/Build` directory within the repository.
|
||||
3. Run `dotnet run verify`.
|
||||
3. Run `dotnet run -- verify`.
|
||||
|
||||
It runs the .NET tests, the trim smoke test, the Rust tests, Clippy (`cargo clippy --all-targets -- -D warnings`), and a report on the pages the model rules were written from. Every check runs, even after one of them has failed, so that a single run tells you everything that is wrong instead of the first thing.
|
||||
|
||||
`dotnet run build` runs the gate first and stops when it does not pass. For the quick loop while you are working on something, use `dotnet run build --skip-verify`, and let the gate run before you open a pull request. The same command runs in our GitHub workflow as the `verify` job, on every pull request which changes more than the documentation — including those without the `run-pipeline` label, because a gate which is closed exactly while nobody is looking is not a gate.
|
||||
`dotnet run -- build` runs the gate first and stops when it does not pass. For the quick loop while you are working on something, use `dotnet run -- build --skip-verify`, and let the gate run before you open a pull request. The same command runs in our GitHub workflow as the `verify` job, on every pull request which changes more than the documentation — including those without the `run-pipeline` label, because a gate which is closed exactly while nobody is looking is not a gate.
|
||||
|
||||
Three notes:
|
||||
- The trim smoke test publishes `app/TrimSmokeTest` trimmed, exactly like the app, and reads and writes the JSON of chats, settings, Visual Briefing projects, backups, model answers, and every other type AI Studio reads or writes. Debug builds and the tests are not trimmed, so only a published build shows when the trimmer removed code which System.Text.Json needs; AI Studio can then neither load nor save that data. A new kind of file or model answer needs nothing there: `JsonRoots` in `app/TrimSmokeTest` finds every type through the context of the options it is read or written with. The smoke test also lets the Mathematics tools compute a few expressions, since AngouriMath is trimmed, too; see `MathematicsChecks` there.
|
||||
- The Rust half of the gate needs the .NET sidecar (see "One-time mandatory steps" above). While that file is missing, the gate skips the Rust tests and Clippy and says so rather than failing, because the command which produces the sidecar is `dotnet run build` itself.
|
||||
- `dotnet run verify-models` reports how long ago somebody last read the pages behind the model rules, and names everything older than six months. It is a report and never a failure: a page nobody has looked at for a while is not a page which changed. Everything else about the model rules — whether two rules claim the same names, whether every family names a page and a day, whether every pattern is written the way model names arrive — is checked by the test project, and therefore by `dotnet test`.
|
||||
- The Rust half of the gate needs the .NET sidecar (see "One-time mandatory steps" above). While that file is missing, the gate skips the Rust tests and Clippy and says so rather than failing, because the command which produces the sidecar is `dotnet run -- build` itself.
|
||||
- `dotnet run -- verify-models` reports how long ago somebody last read the pages behind the model rules, and names everything older than six months. It is a report and never a failure: a page nobody has looked at for a while is not a page which changed. Everything else about the model rules — whether two rules claim the same names, whether every family names a page and a day, whether every pattern is written the way model names arrive — is checked by the test project, and therefore by `dotnet test`.
|
||||
|
||||
## Build AI Studio from source
|
||||
In order to build MindWork AI Studio from source instead of using the pre-built binaries, follow these steps:
|
||||
1. Ensure you have met all the prerequisites.
|
||||
2. Open a terminal.
|
||||
3. Navigate to the `/app/Build` directory within the repository.
|
||||
4. To build the current version, run `dotnet run build` to build the entire app.
|
||||
4. To build the current version, run `dotnet run -- build` to build the entire app.
|
||||
- This will build the app for the current operating system and CPU architecture (x64, or ARM64).
|
||||
- The final setup program will be located in `runtime/target/release` afterward.
|
||||
|
||||
## Run the app locally with all your changes
|
||||
Do you want to test your changes before creating a PR? Follow these steps:
|
||||
1. Ensure you have met all the prerequisites.
|
||||
2. At least once, you have to run the `dotnet run build` command (see above, "One-time mandatory steps"). This is necessary because the Tauri framework checks whether the .NET app as so-called "sidecar" is available. Although the sidecar is only necessary for the final release and shipping, Tauri requires it to be present during development.
|
||||
2. At least once, you have to run the `dotnet run -- build` command (see above, "One-time mandatory steps"). This is necessary because the Tauri framework checks whether the .NET app as so-called "sidecar" is available. Although the sidecar is only necessary for the final release and shipping, Tauri requires it to be present during development.
|
||||
3. Open a terminal.
|
||||
4. Navigate to the `runtime` directory within the repository, e.g. `cd repos/mindwork-ai-studio/runtime`.
|
||||
5. Run `cargo tauri dev --no-watch`.
|
||||
@@ -83,7 +85,9 @@ Neither macOS nor Windows can build a Flatpak, and on Linux it takes the right F
|
||||
|
||||
1. Open a terminal.
|
||||
2. Navigate to the `/app/Build` directory within the repository.
|
||||
3. Run `dotnet run flatpak --output <folder>`, e.g., `dotnet run flatpak --output ~/Downloads/flatpak`. The folder has to lie outside the repository; the command creates it when it does not exist.
|
||||
3. Run `dotnet run -- flatpak --output <folder>`, e.g., `dotnet run -- flatpak --output ~/Downloads/flatpak`. The folder has to lie outside the repository; the command creates it when it does not exist.
|
||||
|
||||
Here, the two dashes after `dotnet run` matter in particular: without them, `dotnet run` takes the option `--arch` for itself and builds the build script for another platform instead of passing the option on.
|
||||
|
||||
The command asks which state of AI Studio goes into the Flatpak. You may also choose it right away:
|
||||
|
||||
@@ -96,7 +100,7 @@ The Flatpak repository always comes from its `main` branch. Before the build sta
|
||||
At the end, the output folder holds `MindWork AI Studio_<arch>.flatpak` and `MindWork AI Studio Plugin Pandoc_<arch>.flatpak`, the same bundles our Flatpak workflow produces. Copy them to a Linux machine, e.g., a virtual machine, and install them there with `flatpak install --bundle <file>`, the app first.
|
||||
|
||||
Some notes:
|
||||
- **Architecture:** The Flatpak is built for the architecture of the Docker host. `--arch x86_64` or `--arch aarch64` chooses the other one, which needs an emulation such as Rosetta, available in OrbStack and in Docker Desktop on Apple silicon, and takes considerably longer.
|
||||
- **Architecture:** The Flatpak is built for the architecture of the Docker host. `--arch x86_64` or `--arch aarch64` chooses the other one, which needs an emulation such as Rosetta, available in OrbStack and in Docker Desktop on Apple silicon, and takes considerably longer. On a Mac with Apple silicon, for example, `dotnet run -- flatpak --output ~/Downloads/flatpak --arch x86_64` builds the Flatpak for x86_64.
|
||||
- **Duration and disk space:** Every build downloads the SDKs and runtimes anew, several gigabytes, before it builds the Tauri CLI, the Rust runtime, and the .NET app. On a fast machine, a build takes between half an hour and 45 minutes, depending on the connection; under an emulation, it takes about twice as long. While the build runs, the container and its volume need about 15 GB of free space. The container image needs about 6 GB more, once for each architecture you build for.
|
||||
- **Firewalls:** The container fetches from GitHub (`github.com`, `ghcr.io`, `*.githubusercontent.com`), Flathub (`flathub.org`), PyPI, crates.io, and NuGet. A firewall on your machine, such as Little Snitch, may have to allow these connections for the processes of Docker.
|
||||
- **Cleaning up:** The command removes its container and volume at the end, also after a failure or when you press Ctrl+C. Pressing Ctrl+C a second time quits at once and prints the commands which remove what is left. A build which ends otherwise, e.g., because the terminal was closed, leaves both behind; the next build names them. The container image stays, so that the next build does not download it again.
|
||||
@@ -107,7 +111,7 @@ In order to create a release:
|
||||
1. To create a new release, you need to be a maintainer of the repository—see step 8.
|
||||
2. Make sure there's a changelog file for the version you want to create in the `/app/MindWork AI Studio/wwwroot/changelog` directory. Name the file `vX.Y.Z.md` and include all release changes—your updates and any others included in this version. Keep its first line, the placeholder which the previous release created, such as `# v26.11.2, build 261 (2026-11-xx xx:xx UTC)`; when you rename the file for another version, change the version in that line as well. The release fills in the build time and refuses to start when the line names another version or build.
|
||||
3. After you have created the changelog file, you must commit the changes to the repository.
|
||||
4. To prepare a new release, open a terminal, go to `/app/Build` and run `dotnet run release --action <ACTION>`, where `<ACTION>` raises one part of the version, which reads year.month.release: `build` raises the release (26.11.1 becomes 26.11.2), `month` the month (26.12.1), and `year` the year (27.1.1). When a month passed without a release, set the version directly instead, e.g., `dotnet run release --version 27.2.1`.
|
||||
4. To prepare a new release, open a terminal, go to `/app/Build` and run `dotnet run -- release --action <ACTION>`, where `<ACTION>` raises one part of the version, which reads year.month.release: `build` raises the release (26.11.1 becomes 26.11.2), `month` the month (26.12.1), and `year` the year (27.1.1). When a month passed without a release, set the version directly instead, e.g., `dotnet run -- release --version 27.2.1`.
|
||||
5. Now wait until all process steps have been completed. Among other things, the version number will be incremented, the build time written into the header of the new changelog, the changelog registered, and the version numbers of central dependencies updated, etc.
|
||||
6. The actual release will be built by our GitHub Workflow. For this to work, you need to create a PR with your changes.
|
||||
7. Your proposed changes will be reviewed and merged.
|
||||
@@ -120,7 +124,7 @@ In order to create a release:
|
||||
If a pre-release must be rebuilt without changing its version, open a terminal in `/app/Build` and run:
|
||||
|
||||
```bash
|
||||
dotnet run rebuild-release
|
||||
dotnet run -- rebuild-release
|
||||
```
|
||||
|
||||
The command keeps the current version, increments the build number, refreshes the release time and related changelog metadata, reserves the following build number for the next changelog, and performs the same two builds as the regular `release` command. Use `--offline` to skip downloads and rely on locally available build dependencies.
|
||||
@@ -119,8 +119,8 @@ Three things to know when adding another one:
|
||||
## Verification
|
||||
|
||||
- **The test project** (`app/Tests/Models/`) owns everything that can be asked of the rules: a corpus of real model IDs per provider, the difference test against the rules this replaced, and the properties every rule has to have — no two rules of equal specificity on one name, every family and host names a page and a day, every pattern in normalized form, no family stating one of the three reasoning words.
|
||||
- **`dotnet run verify-models`** in `app/Build` reports how long ago somebody last read those pages and names everything older than six months. It warns and never fails, because that answer changes with the calendar rather than with the code.
|
||||
- **`dotnet run verify`** runs the whole gate, and `dotnet run build` runs it before building. See `documentation/Build.md`.
|
||||
- **`dotnet run -- verify-models`** in `app/Build` reports how long ago somebody last read those pages and names everything older than six months. It warns and never fails, because that answer changes with the calendar rather than with the code.
|
||||
- **`dotnet run -- verify`** runs the whole gate, and `dotnet run -- build` runs it before building. See `documentation/Build.md`.
|
||||
|
||||
## Checklist
|
||||
|
||||
@@ -131,5 +131,5 @@ Three things to know when adding another one:
|
||||
- State a number only where a page states it. Leaving it out means "nobody knows", which is a usable answer; a made-up number is not.
|
||||
- Add the models to the corpus in `app/Tests/Models/Corpus/` and say whether the answer is expected to change.
|
||||
- Use `Refine` only for what a pattern cannot express, and `Rank` only with a reason that says what the computation gets wrong.
|
||||
- Run `dotnet test`, and `dotnet run verify-models` when you touched sources.
|
||||
- Run `dotnet test`, and `dotnet run -- verify-models` when you touched sources.
|
||||
- Add a changelog entry when users or administrators are affected — a new plugin key always affects administrators.
|
||||
@@ -312,7 +312,7 @@ The tools open no path for content from outside AI Studio. A result holds the ex
|
||||
|
||||
`AngouriMathBehaviorTests` pins the behavior of AngouriMath which the tools build on, such as the traps of the parser, the digits of its functions, and the computations which ignore cancellation. The version is pinned exactly by `packages.lock.json`. Before raising it, read the release notes for silent breaking changes, and run these tests.
|
||||
|
||||
AngouriMath is marked as trimmable, so a published build of AI Studio contains only the parts of it which the trimmer saw being used, and `Trimming.props` suppresses the warnings about the others. The trim smoke test of `dotnet run verify` therefore lets both tools compute a few expressions in a trimmed build, see `MathematicsChecks` in `app/TrimSmokeTest`. When a tool starts to use another part of AngouriMath, such as a new operation, add a check there.
|
||||
AngouriMath is marked as trimmable, so a published build of AI Studio contains only the parts of it which the trimmer saw being used, and `Trimming.props` suppresses the warnings about the others. The trim smoke test of `dotnet run -- verify` therefore lets both tools compute a few expressions in a trimmed build, see `MathematicsChecks` in `app/TrimSmokeTest`. When a tool starts to use another part of AngouriMath, such as a new operation, add a check there.
|
||||
|
||||
## Checklist
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ fn load_pdfium() -> Result<Pdfium, String> {
|
||||
},
|
||||
Err(system_error) => {
|
||||
let error_message = format!(
|
||||
"Failed to load PDFium from '{path}' and the system library. Developer action (from repo root): run the build script once to download the required PDFium version: `cd app/Build` and `dotnet run build`. Details: library error: '{library_error}'; system error: '{system_error}'."
|
||||
"Failed to load PDFium from '{path}' and the system library. Developer action (from repo root): run the build script once to download the required PDFium version: `cd app/Build` and `dotnet run -- build`. Details: library error: '{library_error}'; system error: '{system_error}'."
|
||||
);
|
||||
|
||||
error!("{error_message}");
|
||||
@@ -85,7 +85,7 @@ fn load_pdfium() -> Result<Pdfium, String> {
|
||||
},
|
||||
Err(system_error) => {
|
||||
let error_message = format!(
|
||||
"Failed to load PDFium from the system library. Developer action (from repo root): run the build script once to download the required PDFium version: `cd app/Build` and `dotnet run build`. Details: '{system_error}'."
|
||||
"Failed to load PDFium from the system library. Developer action (from repo root): run the build script once to download the required PDFium version: `cd app/Build` and `dotnet run -- build`. Details: '{system_error}'."
|
||||
);
|
||||
|
||||
error!("{error_message}");
|
||||
|
||||
Reference in new issue
Block a user