Milestone 3
Some checks failed
CI / Test (pull_request) Failing after 6s
CI / Build (pull_request) Failing after 6s
CI / Lint (pull_request) Failing after 12s

This commit is contained in:
2025-10-14 22:10:45 -04:00
parent 99878adefb
commit 8b1339d0cf
9 changed files with 821 additions and 133 deletions

View File

@ -203,23 +203,15 @@ log_info "Snapshot created: $SNAPSHOT_SHA"
# ============================================
log_section "Test 4: Save Command"
log_info "Creating workstream (manual for testing)..."
cat > .onx/workstreams.json << 'EOF'
{
"workstreams": {
"test-feature": {
"name": "test-feature",
"description": "Integration test feature",
"base_branch": "main",
"commits": [],
"created": "2025-01-01T00:00:00Z",
"updated": "2025-01-01T00:00:00Z",
"status": "active"
}
},
"current_workstream": "test-feature"
}
EOF
# First, we need to create an initial Git commit for the base branch
log_info "Creating initial Git commit..."
git config user.email "test@example.com"
git config user.name "Test User"
git add main.py
git commit -m "Initial commit" >/dev/null 2>&1
log_info "Creating workstream using onx new..."
"$ONX_BIN" new test-feature
log_info "Saving first commit..."
"$ONX_BIN" save -m "Add hello world program"