Skip to content

Commit bc2ec78

Browse files
committed
refactor(software): flatten registry/ into top-level software/ and toolchain/
1 parent b5165da commit bc2ec78

2,406 files changed

Lines changed: 3476 additions & 2307 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/bench.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- run: cargo build --release -p agentos-native-sidecar
3030
- run: cargo build --release -p agentos-native-baseline
3131
- run: cargo build --release --target wasm32-wasip1 -p agentos-native-baseline
32-
- run: make -C registry/native commands
32+
- run: make -C toolchain commands
3333
- run: node packages/runtime-core/scripts/copy-wasm-commands.mjs --require
3434
- run: pnpm --dir packages/runtime-core build
3535
- run: pnpm --dir packages/runtime-benchmarks bench:check

.github/workflows/ci-nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
with:
2424
targets: wasm32-wasip1
2525
- run: pnpm install --frozen-lockfile
26-
- run: make -C registry/native commands
26+
- run: make -C toolchain commands
2727
- run: node packages/runtime-core/scripts/copy-wasm-commands.mjs --require
2828
- run: cargo check --workspace
2929
- run: cargo clippy --workspace --all-targets -- -D warnings

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
- run: node scripts/check-agentos-client-protocol-compat.mjs
4343
- run: node --test scripts/verify-fixed-versions.test.mjs
4444
- run: node scripts/verify-fixed-versions.mjs
45+
- run: pnpm check-layout
4546
- run: cargo fmt --check
4647
- run: pnpm check-types
4748
- run: pnpm lint
@@ -63,10 +64,10 @@ jobs:
6364
targets: wasm32-wasip1
6465
- uses: Swatinem/rust-cache@v2
6566
with:
66-
workspaces: registry/native -> registry/native/target
67-
key: wasm-commands-${{ hashFiles('registry/native/Cargo.lock') }}
67+
workspaces: toolchain -> toolchain/target
68+
key: wasm-commands-${{ hashFiles('toolchain/Cargo.lock') }}
6869
- run: pnpm install --frozen-lockfile --filter '@rivet-dev/agentos-runtime-core...'
69-
- run: make -C registry/native commands
70+
- run: make -C toolchain commands
7071
- run: node packages/runtime-core/scripts/copy-wasm-commands.mjs --require
7172
- uses: actions/upload-artifact@v4
7273
with:

.github/workflows/publish.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ jobs:
6666
targets: wasm32-wasip1
6767
- uses: Swatinem/rust-cache@v2
6868
with:
69-
workspaces: registry/native -> registry/native/target
70-
key: wasm-commands-${{ hashFiles('registry/native/Cargo.lock') }}
69+
workspaces: toolchain -> toolchain/target
70+
key: wasm-commands-${{ hashFiles('toolchain/Cargo.lock') }}
7171
- run: pnpm install --frozen-lockfile --filter '@rivet-dev/agentos-runtime-core...'
72-
- run: make -C registry/native commands
72+
- run: make -C toolchain commands
7373
- run: node packages/runtime-core/scripts/copy-wasm-commands.mjs --require
7474
- uses: actions/upload-artifact@v4
7575
with:

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[workspace]
22
resolver = "2"
3+
exclude = ["software"]
34
members = [
45
"crates/agentos-protocol",
56
"crates/agentos-sidecar-core",

crates/client/tests/common/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ fn wasm_command_mounts() -> Vec<MountConfig> {
150150
/// Locate the materialized coreutils package under the in-repo registry build.
151151
pub fn coreutils_package_dir() -> Option<PathBuf> {
152152
let registry_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR"))
153-
.join("../../registry/software/coreutils/dist/package");
153+
.join("../../software/coreutils/dist/package");
154154
if registry_dir.join("agentos-package.json").is_file() {
155155
return std::fs::canonicalize(registry_dir).ok();
156156
}
@@ -175,7 +175,7 @@ pub fn coreutils_wasm_dir() -> Option<PathBuf> {
175175
}
176176

177177
let legacy_registry_dir =
178-
PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("../../registry/software/coreutils/wasm");
178+
PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("../../software/coreutils/wasm");
179179
if legacy_registry_dir.is_dir() {
180180
return std::fs::canonicalize(legacy_registry_dir).ok();
181181
}
@@ -244,6 +244,6 @@ pub async fn require_wasm_commands(os: &AgentOs, test_name: &str) -> bool {
244244
eprintln!("skipping {message}");
245245
false
246246
} else {
247-
panic!("{message}; run the registry/native command build or set AGENT_OS_CLIENT_ALLOW_E2E_SKIPS=1 for local skip-only runs");
247+
panic!("{message}; run the toolchain command build or set AGENT_OS_CLIENT_ALLOW_E2E_SKIPS=1 for local skip-only runs");
248248
}
249249
}

crates/client/tests/packages_aospkg_e2e.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ mod common;
1616
fn coreutils_aospkg() -> Option<PathBuf> {
1717
for path in [
1818
PathBuf::from(env!("CARGO_MANIFEST_DIR"))
19-
.join("../../registry/software/coreutils/dist/package.aospkg"),
19+
.join("../../software/coreutils/dist/package.aospkg"),
2020
PathBuf::from(env!("CARGO_MANIFEST_DIR"))
2121
.join("../../node_modules/@agentos-software/coreutils/dist/package.aospkg"),
2222
] {

crates/client/tests/pi_session_e2e.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//! - `AGENT_OS_PI_MODULE_CWD` env (a workspace with a built/installed `@agentos-software/pi`), else
1010
//! - the repo root, but only when the in-repo adapter is built
1111
//! (`node_modules/@agentos-software/pi/dist/adapter.js`). Build it with `pnpm --dir packages/core
12-
//! build && pnpm --dir registry/agent/pi build` (core first for types).
12+
//! build && pnpm --dir software/pi build` (core first for types).
1313
//!
1414
//! Background: a real agent SDK exercises module-loading patterns (tsc `__exportStar` CJS barrels,
1515
//! deep pnpm symlink graphs, `__dirname` package self-location) that mock ACP adapters never touch.
@@ -55,11 +55,11 @@ fn pi_module_cwd() -> Option<String> {
5555

5656
fn pi_package_path() -> Option<PathBuf> {
5757
// Prefer the packed .aospkg — the artifact the registry actually ships.
58-
let aospkg = repo_root().join("registry/agent/pi/dist/package.aospkg");
58+
let aospkg = repo_root().join("software/pi/dist/package.aospkg");
5959
if aospkg.is_file() {
6060
return std::fs::canonicalize(aospkg).ok();
6161
}
62-
let dir = repo_root().join("registry/agent/pi/dist/package");
62+
let dir = repo_root().join("software/pi/dist/package");
6363
if dir.join("agentos-package.json").is_file() {
6464
std::fs::canonicalize(dir).ok()
6565
} else {

crates/client/tests/shell_pty_packages_e2e.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ fn coreutils_package_path() -> Option<PathBuf> {
1717
// Prefer the packed .aospkg — the artifact registry packages actually ship.
1818
for aospkg in [
1919
PathBuf::from(env!("CARGO_MANIFEST_DIR"))
20-
.join("../../registry/software/coreutils/dist/package.aospkg"),
20+
.join("../../software/coreutils/dist/package.aospkg"),
2121
PathBuf::from(env!("CARGO_MANIFEST_DIR"))
2222
.join("../../node_modules/@agentos-software/coreutils/dist/package.aospkg"),
2323
] {
@@ -27,7 +27,7 @@ fn coreutils_package_path() -> Option<PathBuf> {
2727
}
2828
for dir in [
2929
PathBuf::from(env!("CARGO_MANIFEST_DIR"))
30-
.join("../../registry/software/coreutils/dist/package"),
30+
.join("../../software/coreutils/dist/package"),
3131
PathBuf::from(env!("CARGO_MANIFEST_DIR"))
3232
.join("../../node_modules/@agentos-software/coreutils/dist/package"),
3333
] {

crates/execution/CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ ESM loader hooks (`loader.mjs`) and CJS `Module._load` patches (`runner.mjs`) ar
9191
- Node-facing `readdir` results must filter `.`/`..`.
9292
- Async methods should dispatch under `fs.promises.*`.
9393
- `fs.promises` methods that need real concurrency must use dedicated async bridge globals in `packages/build-tools/bridge-src/`; wrapping `fs.*Sync` inside `async` functions still serializes `Promise.all(...)` behind the first sidecar response.
94-
- When adding WASI guest imports in `registry/native/crates/wasi-ext`, mirror the required module/object in `crates/execution/src/node_import_cache.rs`'s inline `NODE_WASM_RUNNER_SOURCE`; missing modules fail at `WebAssembly.instantiate()` before guest `main()` runs.
94+
- When adding WASI guest imports in `toolchain/crates/wasi-ext`, mirror the required module/object in `crates/execution/src/node_import_cache.rs`'s inline `NODE_WASM_RUNNER_SOURCE`; missing modules fail at `WebAssembly.instantiate()` before guest `main()` runs.
9595
- Keep the embedded WASI shim in `crates/execution/src/wasm.rs` aligned with the patched wasi-libc surface used by the C command suite; overrides like `fcntl(F_SETFL)` now depend on `fd_fdstat_set_flags`, and missing imports fail at instantiation time before the guest command can do real work.
9696
- The shared-V8 WASM runner now resolves its own module loads plus internal guest `fs.openSync` / `fs.readSync` / `fs.writeSync` / `fs.closeSync` traffic inside `crates/execution/src/wasm.rs`; if the embedded runner gains more internal file syscalls, extend that internal sync-RPC handling there instead of surfacing those requests to callers or reintroducing a host-Node runtime path.
9797
- fd-based APIs (`open`, `read`, `write`, `close`, `fstat`) plus `createReadStream`/`createWriteStream` should ride the same bridge.

0 commit comments

Comments
 (0)