Skip to content

feat: add iii-coding worker - #14

Merged
rohitg00 merged 6 commits into
mainfrom
feat/coding
Apr 22, 2026
Merged

feat: add iii-coding worker#14
rohitg00 merged 6 commits into
mainfrom
feat/coding

Conversation

@rohitg00

@rohitg00 rohitg00 commented Apr 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Scaffold workers, generate functions/triggers, execute code with 6 functions
  • Generates valid iii worker code for Rust, TypeScript, Python
  • All through iii primitives: State, HTTP triggers
  • 21 tests, 0 warnings

Functions

Function Description
coding::scaffold Generate complete worker project
coding::generate_function Write a single function handler
coding::generate_trigger Wire HTTP/cron/queue/subscribe trigger
coding::execute Run code in subprocess with timeout
coding::test Run tests for scaffolded worker
coding::deploy Prepare deployment record

Test plan

  • cargo test — 21 tests passing
  • cargo check — 0 warnings

@coderabbitai

coderabbitai Bot commented Apr 7, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@rohitg00 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 31 minutes and 21 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 31 minutes and 21 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: d8211871-5b92-4ee4-9075-d55ec51bb5aa

📥 Commits

Reviewing files that changed from the base of the PR and between e664259 and 496ef6f.

⛔ Files ignored due to path filters (1)
  • coding/Cargo.lock is excluded by !**/*.lock
📒 Files selected for processing (16)
  • coding/Cargo.toml
  • coding/README.md
  • coding/build.rs
  • coding/config.yaml
  • coding/src/config.rs
  • coding/src/functions/deploy.rs
  • coding/src/functions/execute.rs
  • coding/src/functions/generate_function.rs
  • coding/src/functions/generate_trigger.rs
  • coding/src/functions/mod.rs
  • coding/src/functions/scaffold.rs
  • coding/src/functions/test.rs
  • coding/src/main.rs
  • coding/src/manifest.rs
  • coding/src/state.rs
  • coding/src/templates.rs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/coding

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Scaffold workers, generate functions/triggers, execute code. 6 functions:
- coding::scaffold — generate complete worker project (Rust/TypeScript/Python)
- coding::generate_function — write a single function handler
- coding::generate_trigger — wire HTTP/cron/queue/subscribe trigger
- coding::execute — run code in subprocess with timeout
- coding::test — run tests for scaffolded worker or inline code
- coding::deploy — prepare deployment record

Uses iii primitives: State (workers, functions, deployments), HTTP triggers.
21 tests, 0 warnings.
- Drop features = ["otel"] (OTel always-on in 0.11.0)
- Add metadata: None to RegisterTriggerInput literals + worker templates
- Bump generated Rust/TS/Python worker templates to iii-sdk 0.11.0
- 21 tests pass
@rohitg00

Copy link
Copy Markdown
Contributor Author

Heads up — main is being bumped to iii-sdk =0.11.3 in #33. When that lands, please rebase and bump this worker's pin (currently 0.11.0) to =0.11.3. Two 0.11.x deltas that may bite:

  • iii-sdk no longer exposes an otel cargo feature — OTel is always-on. Drop features = ["otel"] if you use it.
  • WorkerMetadata gained an isolation field. If you construct it as a struct literal, add ..Default::default() (or fill the field). iii-lsp hit this; see the fix in chore: bump iii-sdk to 0.11.3 across all workers #33.
  • register_function(msg, handler) (two-arg) is now register_function_with(msg, handler); register_function is single-arg via IntoFunctionRegistration. image-resize hit this; see chore: bump iii-sdk to 0.11.3 across all workers #33.

Release notes: https://github.com/iii-hq/iii/releases/tag/iii/v0.11.3

@rohitg00
rohitg00 merged commit 5feb5a2 into main Apr 22, 2026
5 checks passed
@rohitg00
rohitg00 deleted the feat/coding branch April 22, 2026 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant