agent-orchestrator/packages
Prateek b79c4b8e82 fix: make project field handling consistent in metadata functions
Fixes type contract violation between SessionMetadata interface and
metadata.ts implementation:

1. readMetadata(): Add fallback for required project field (project: raw["project"] ?? "")
   - Consistent with other required fields (worktree, branch, status)
   - Returns empty string for legacy files (caught by session-manager validation)

2. writeMetadata(): Write project unconditionally with other required fields
   - Moved from conditional section (if metadata.project) to unconditional
   - Consistent with worktree/branch/status handling

This ensures the implementation matches the type definition where project
is required (not optional), while maintaining backward compatibility via
empty string fallback and downstream validation.

Addresses bugbot comment: "Type change leaves readMetadata and writeMetadata
inconsistent"

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-16 23:32:27 +05:30
..
agent-orchestrator feat: publish to npm under @composio scope (#32) 2026-02-15 04:28:57 +05:30
cli feat: seamless onboarding with enhanced documentation (#66) 2026-02-16 22:22:13 +05:30
core fix: make project field handling consistent in metadata functions 2026-02-16 23:32:27 +05:30
integration-tests feat: seamless onboarding with enhanced documentation (#66) 2026-02-16 22:22:13 +05:30
plugins feat: seamless onboarding with enhanced documentation (#66) 2026-02-16 22:22:13 +05:30
web refactor: make project field required, remove all inference logic 2026-02-16 23:32:27 +05:30