refactor(directory): rename worker iii-directory -> directory#266
refactor(directory): rename worker iii-directory -> directory#266guibeira wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📝 WalkthroughWalkthroughThe worker previously known as ChangesWorker rename: iii-directory → directory
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
skill-check — worker0 verified, 22 skipped (no docs/).
Four for four. Nicely done. |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
directory/tests/e2e/run-tests.sh (1)
15-15: 💤 Low valueRemove the unused
HEREvariable.Variable
HEREis declared on line 15 but never referenced in the script. All assertions and operations use$ROOT_DIRor other variables directly.Proposed fix
HERE="$ROOT_DIR" # assertion body refers to $HERE / $GLOBAL -HERE="$ROOT_DIR" PORT="${PORT:-49134}"Note: Remove the redundant assignment on line 15, or if
HEREwas intentionally added for future use, remove the misleading comment on line 15.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@directory/tests/e2e/run-tests.sh` at line 15, The HERE variable is declared and assigned the value of ROOT_DIR but is never referenced anywhere in the script, making it redundant code. Remove the assignment of the HERE variable since all assertions and operations in the script use ROOT_DIR or other variables directly instead of the HERE alias.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@directory/src/main.rs`:
- Around line 35-37: The multi-line import statement for download_worker_skills,
reconcile_decision, and InFlightGuard from directory::functions::download is
failing cargo fmt validation. Collapse this import block from its current
multi-line format into a single line by removing the line breaks and moving all
imported items onto one line while keeping the curly brace syntax intact.
---
Nitpick comments:
In `@directory/tests/e2e/run-tests.sh`:
- Line 15: The HERE variable is declared and assigned the value of ROOT_DIR but
is never referenced anywhere in the script, making it redundant code. Remove the
assignment of the HERE variable since all assertions and operations in the
script use ROOT_DIR or other variables directly instead of the HERE alias.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 43e4f9c4-72a8-44c3-8fc5-b779df40b3ef
⛔ Files ignored due to path filters (1)
directory/Cargo.lockis excluded by!**/*.lock
📒 Files selected for processing (69)
.github/scripts/parse_publish_workers_input.py.github/scripts/validate_worker.py.github/workflows/create-tag.yml.github/workflows/release.ymlREADME.mdconsole/web/src/components/chat/directory/parsers.tsconsole/web/src/components/chat/worker/__tests__/parsers.test.tsconsole/web/src/hooks/use-worker-lifecycle.tsconsole/web/src/stories/fixtures/engine-fixtures.tsconsole/web/src/stories/fixtures/worker-fixtures.tsdirectory/Cargo.tomldirectory/README.mddirectory/build.rsdirectory/config.yamldirectory/examples/test_registry.rsdirectory/iii.worker.yamldirectory/skills/SKILL.mddirectory/src/config.rsdirectory/src/fs_source.rsdirectory/src/functions/download.rsdirectory/src/functions/engine_fn.rsdirectory/src/functions/error.rsdirectory/src/functions/mod.rsdirectory/src/functions/prompts.rsdirectory/src/functions/registry.rsdirectory/src/functions/skills.rsdirectory/src/lib.rsdirectory/src/main.rsdirectory/src/manifest.rsdirectory/src/sources/git.rsdirectory/src/sources/mod.rsdirectory/src/sources/registry.rsdirectory/src/trigger_types.rsdirectory/tests/bdd.rsdirectory/tests/common/engine.rsdirectory/tests/common/mod.rsdirectory/tests/common/workers.rsdirectory/tests/common/world.rsdirectory/tests/e2e/.gitignoredirectory/tests/e2e/README.mddirectory/tests/e2e/config.yamldirectory/tests/e2e/reports/.gitkeepdirectory/tests/e2e/run-tests.shdirectory/tests/features/download_registry.featuredirectory/tests/features/download_repo.featuredirectory/tests/features/prompts.featuredirectory/tests/features/read.featuredirectory/tests/features/registry_worker_info.featuredirectory/tests/features/registry_worker_list.featuredirectory/tests/steps/download_registry.rsdirectory/tests/steps/download_repo.rsdirectory/tests/steps/mod.rsdirectory/tests/steps/prompts.rsdirectory/tests/steps/read.rsdirectory/tests/steps/registry.rsdocs/architecture/skills-and-permissions.mddocs/architecture/testing-and-ci.mddocs/sops/new-worker.mdharness/README.mdharness/docs/architecture.mdharness/docs/workers/harness.mdharness/iii.worker.yamlharness/src/harness/iii.worker.yamlharness/src/turn-orchestrator/prompt/anthropic.tsharness/src/turn-orchestrator/prompt/default.tsharness/src/turn-orchestrator/prompt/gpt.tsharness/src/turn-orchestrator/prompt/kimi.tsharness/tests/turn-orchestrator/system-prompt.test.tsshell/README.md
e26b815 to
e3363e3
Compare
Rename worker folder, manifest name:, crate/lib, function namespace (directory::*), worker dependencies (harness + approval-gate), CI allowlists + interface scripts, turn-orchestrator prompts, console fixtures, and docs from iii-directory to directory. Binary stays 'iii-directory' (Cargo [[bin]].name + iii.worker.yaml bin: + clap command name + invocation examples + e2e cargo artifact path); the engine installs/loads it under the worker name 'directory'. Update harness prompt golden length for the shortened worker name. External SDK deps (iii-sdk, iii-state, ...) untouched.
e3363e3 to
9133963
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@directory/tests/e2e/run-tests.sh`:
- Line 55: The binary name in the cp command on line 55 is hardcoded as
`iii-directory` but after the Cargo.toml binary rename, the compiled binary is
now named `directory`. Update the source path in the cp command from
`$WORKER_SRC/target/debug/iii-directory` to `$WORKER_SRC/target/debug/directory`
to correctly reference the renamed binary.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 5dabe5b4-5ccb-4ffd-b8cb-22136e62332a
⛔ Files ignored due to path filters (2)
directory/Cargo.lockis excluded by!**/*.lockharness/Cargo.lockis excluded by!**/*.lock
📒 Files selected for processing (71)
.github/scripts/collect_worker_interface.py.github/scripts/parse_publish_workers_input.py.github/scripts/tests/test_normalize_worker_interface.py.github/scripts/validate_worker.py.github/workflows/create-tag.yml.github/workflows/release.ymlREADME.mdapproval-gate/iii.worker.yamlconsole/web/src/components/chat/directory/parsers.tsconsole/web/src/components/chat/worker/__tests__/parsers.test.tsconsole/web/src/hooks/use-worker-lifecycle.tsconsole/web/src/stories/fixtures/engine-fixtures.tsconsole/web/src/stories/fixtures/worker-fixtures.tsdirectory/Cargo.tomldirectory/README.mddirectory/build.rsdirectory/config.yaml.exampledirectory/examples/test_registry.rsdirectory/iii.worker.yamldirectory/skills/SKILL.mddirectory/src/config.rsdirectory/src/configuration.rsdirectory/src/fs_source.rsdirectory/src/functions/download.rsdirectory/src/functions/engine_fn.rsdirectory/src/functions/error.rsdirectory/src/functions/mod.rsdirectory/src/functions/prompts.rsdirectory/src/functions/registry.rsdirectory/src/functions/skills.rsdirectory/src/lib.rsdirectory/src/main.rsdirectory/src/manifest.rsdirectory/src/sources/git.rsdirectory/src/sources/mod.rsdirectory/src/sources/registry.rsdirectory/src/trigger_types.rsdirectory/tests/bdd.rsdirectory/tests/common/engine.rsdirectory/tests/common/mod.rsdirectory/tests/common/workers.rsdirectory/tests/common/world.rsdirectory/tests/e2e/.gitignoredirectory/tests/e2e/README.mddirectory/tests/e2e/config.yamldirectory/tests/e2e/reports/.gitkeepdirectory/tests/e2e/run-tests.shdirectory/tests/features/download_registry.featuredirectory/tests/features/download_repo.featuredirectory/tests/features/prompts.featuredirectory/tests/features/read.featuredirectory/tests/features/registry_worker_info.featuredirectory/tests/features/registry_worker_list.featuredirectory/tests/steps/download_registry.rsdirectory/tests/steps/download_repo.rsdirectory/tests/steps/mod.rsdirectory/tests/steps/prompts.rsdirectory/tests/steps/read.rsdirectory/tests/steps/registry.rsdocs/architecture/skills-and-permissions.mddocs/architecture/testing-and-ci.mddocs/sops/binary-worker.mddocs/sops/new-worker.mdharness/iii.worker.yamlharness/prompts/anthropic.txtharness/prompts/cli.txtharness/prompts/default.txtharness/prompts/gpt.txtharness/prompts/kimi.txtharness/src/prompt/tests.rsshell/README.md
✅ Files skipped from review due to trivial changes (29)
- directory/tests/steps/read.rs
- harness/iii.worker.yaml
- directory/src/config.rs
- directory/Cargo.toml
- console/web/src/hooks/use-worker-lifecycle.ts
- .github/scripts/collect_worker_interface.py
- harness/prompts/default.txt
- .github/scripts/tests/test_normalize_worker_interface.py
- directory/examples/test_registry.rs
- console/web/src/components/chat/directory/parsers.ts
- .github/workflows/create-tag.yml
- directory/src/lib.rs
- harness/prompts/kimi.txt
- directory/tests/common/workers.rs
- docs/sops/binary-worker.md
- directory/README.md
- README.md
- harness/src/prompt/tests.rs
- directory/tests/e2e/README.md
- docs/architecture/testing-and-ci.md
- directory/src/functions/mod.rs
- directory/src/sources/mod.rs
- directory/iii.worker.yaml
- directory/skills/SKILL.md
- directory/config.yaml.example
- docs/architecture/skills-and-permissions.md
- shell/README.md
- .github/workflows/release.yml
- directory/src/functions/skills.rs
🚧 Files skipped from review as they are similar to previous changes (10)
- directory/tests/common/world.rs
- .github/scripts/parse_publish_workers_input.py
- console/web/src/stories/fixtures/worker-fixtures.ts
- console/web/src/components/chat/worker/tests/parsers.test.ts
- directory/src/sources/registry.rs
- .github/scripts/validate_worker.py
- directory/src/main.rs
- directory/tests/e2e/config.yaml
- console/web/src/stories/fixtures/engine-fixtures.ts
- directory/src/configuration.rs
Summary
Renames the in-repo worker
iii-directory->directory(Task 1 of the remove-iii-prefix plan). This is a coordinated rename: folder, crate/bin/lib identifiers, worker manifestname:, dependency keys, CI allowlists, release tag pattern, console TS, and docs all change together.The publish CI enforces that a worker's
iii.worker.yamlname:must equal its folder name (validate_worker.py), so folder rename + manifestname:+ CI allowlists are coupled and changed in one commit.Changes
git mv iii-directory -> directorydirectory/Cargo.toml: package/[[bin]]/[lib]name ->directory(theiii-sdkdependency line is untouched)directory/iii.worker.yaml:name: directory,bin: directoryiii_directory->directoryacross all Rust sources/testsharness/iii.worker.yamlandharness/src/harness/iii.worker.yamliii-directory->directoryrelease.ymltag patterndirectory/v*,create-tag.ymlallowlist,validate_worker.pyALLOWED entry,parse_publish_workers_input.pyallowed-set entryVerification
cargo buildindirectory/: PASScargo test --lib: 243 passed, 0 failedcargo test --test bdd -- --tags @pure: compiles + runs clean (no@pure-tagged scenarios exist in feature files; engine-bound scenarios skip without a running engine — unrelated to the rename)validate_worker.py --worker directory --base-ref main --source-changed '["directory"]': exit 0 (name now matches folder)iii-directory/iii_directory(excluding target/ + node_modules): emptyiii-sdk,iii-state,iii-stream,iii-queue,iii-observability) left byte-identical — confirmed no external-dep lines in the Cargo.toml diffNotes
validate_worker.py.Summary by CodeRabbit
iii-directorytodirectoryacross configurations, GitHub Actions workflows, documentation, and all code references.