Skip to content

Harden ace CLI for production use (v1.0)#3

Merged
sunapi386 merged 3 commits intomainfrom
feature/production-grade-v1
Feb 7, 2026
Merged

Harden ace CLI for production use (v1.0)#3
sunapi386 merged 3 commits intomainfrom
feature/production-grade-v1

Conversation

@sunapi386
Copy link
Contributor

Summary

Hardens the ace CLI from v0.1.0 prototype to production-ready v1.0. Closes #2.

  • Error classification (src/utils/errors.ts): Converts raw Python tracebacks into human-readable messages with actionable suggestions (ModuleNotFoundError, AuthenticationError, ValidationError, ConnectionError, etc.)
  • Retry logic (src/utils/retry.ts): Exponential backoff with jitter for Fabric API calls — retries on 429/502/503/504 and network errors (configurable max retries, delay)
  • Progress tracking: Real-time node execution updates in workflow run spinner, parsing Python verbose stderr for node start/complete/error events
  • Improved ace init: Managed venv at ~/.ace/venv/, Python version detection with specific error messages, 5-step setup flow with summary checklist
  • Workflow templates: 4 bundled templates (hello-llm, text-transform, llm-chain, api-to-llm) with list-templates and create commands
  • 65 tests across 7 files: error classification, retry logic, templates, init lifecycle, workflow lifecycle
  • CI pipeline: GitHub Actions with Node 18/20/22 matrix (lint, test, build)

Test plan

  • pnpm lint — clean (0 errors)
  • pnpm test — 65 tests pass across 7 files
  • pnpm build — successful (36 KB bundle)
  • ace workflow list-templates — displays 4 templates in formatted table
  • ace workflow list-templates --category chains — filters correctly
  • ace workflow create hello-llm -o /tmp/test.json — creates valid workflow JSON with parameter customization
  • ace workflow validate /tmp/test.json — validates structure (Python validation requires aceteam-nodes)

🤖 Generated with Claude Code

sunapi386 and others added 3 commits February 6, 2026 17:23
- Error classification: convert Python tracebacks into human-readable
  messages with suggested fixes (ModuleNotFoundError, AuthenticationError,
  ValidationError, ConnectionError, etc.)
- Retry logic: exponential backoff with jitter for Fabric API calls,
  retries on 429/502/503/504 and network errors
- Progress tracking: real-time node execution updates in workflow run
  spinner (parses Python verbose stderr)
- Improved init: managed venv at ~/.ace/venv, Python version detection,
  5-step setup flow with summary checklist
- Workflow templates: 4 bundled templates (hello-llm, text-transform,
  llm-chain, api-to-llm) with list-templates and create commands
- Tests: 65 tests across 7 files covering errors, retry, templates,
  init lifecycle, and workflow lifecycle
- CI: GitHub Actions workflow with Node 18/20/22 matrix

Closes #2

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Document list-templates, create, init flow, error messages,
fabric commands, and all test/dev scripts.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
- Install section: npm, npx, and build-from-source with npm link
- New "Using Local LLMs" section with Ollama, vLLM, and cloud API examples
- Model name → provider mapping reference table
- ace init now mentions Ollama alongside cloud API keys

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@sunapi386 sunapi386 merged commit ae05a96 into main Feb 7, 2026
3 checks passed
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.

ACE CLI Production Grade (v1.0)

1 participant