Conversation
…ll recursion Function calling with auto-execution was losing conversation history between recursive calls, causing "tool_use ids must be unique" errors. Memory instance is now passed through all recursive send() calls, and model messages are no longer duplicated in memory. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
…ilities Move @microsoft/teams.ai and @microsoft/teams.common from devDependencies to dependencies to fix package consumption. These are required at runtime, not just during development. Update @anthropic-ai/sdk to ^0.74.0. Remove getYouMcpConfig utility and related types - MCP configuration should be handled directly by consumers using the MCP package. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
…pWhen Replace incorrect maxSteps pattern with stopWhen: stepCountIs(n) throughout README. The maxSteps parameter doesn't properly integrate tool results into response generation, causing tools to execute successfully but return empty or minimal text. This was a critical bug affecting all developers following the documentation. Changes: - Main example (Getting Started): Add stepCountIs helper, use stopWhen: stepCountIs(5) - Provider examples (Anthropic, OpenAI, Google): Add stopWhen to all examples - Troubleshooting "AI isn't using tools": Update solution with stopWhen pattern - New troubleshooting section: "Tools execute but response is empty" - Show incorrect maxSteps usage (❌) - Show correct stopWhen usage (✅) - Explain why maxSteps doesn't work Why stopWhen is required: - Tool results are properly integrated into the response - AI can generate text based on tool outputs - Multi-step execution works correctly This fix ensures developers get working code from the start, avoiding the debugging cycle of "tools execute but no output" that affected integration testing. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
…ackage-dep-update
|
Claude finished @EdwardIrby's task in 3m 15s —— View job Code Review: PR #54 - Fix/package dep updateSummaryThis PR contains dependency updates and important fixes across multiple packages. The changes are generally good, but there are blocking issues that need to be addressed before merge. ❌ Blocking Issues1. CI Failure - Lint Errors (Unrelated to this PR)The CI is failing due to console usage in Affected lines in packages/api/src/cli.ts:
Why this matters: According to Biome configuration, console usage is flagged by Recommended fix: Add Biome ignore comments for these specific CLI output lines: // biome-ignore lint/suspicious/noConsole: CLI output
console.log(`ydc v${packageJson.version}...`);2. TSDoc Violations - @example UsageFile: According to
Why this matters: Project standards require consistency. Tests provide living examples that are always verified to work. Recommended action: Remove all ✅ Good Changes1. teams-anthropic: Fix Dependency ClassificationCorrectly moved ✅ Follows AGENTS.md Pattern 2 (Bundled Packages): External frameworks belong in 2. teams-anthropic: Remove MCP UtilitiesCommit: 10a2e76 Removed ✅ Reduces coupling between packages and follows single-responsibility principle. 3. teams-anthropic: Preserve Conversation MemoryCommit: e44f1a0 Fixed recursive // Before
return await this.send(modelMessage, options)
// After
return await this.send(modelMessage, { ...options, messages: memory })✅ Critical bug fix - Ensures function call results are properly tracked in conversation history. 4. ai-sdk-plugin: Fix maxSteps → stopWhen PatternCommit: 9ef02c8 Replaced incorrect ✅ Critical documentation fix - The 5. Dependency UpdatesCommit: 5b1856c
✅ Routine maintenance - Minor version updates for bug fixes and improvements. 📋 Code Quality ObservationsAdherence to Project StandardsGood:
Needs Attention:
🎯 RecommendationsBefore Merge:
Optional Improvements:
📊 Impact AssessmentRisk Level: Low-Medium
Breaking Changes: None Affected Packages:
Status: |
Import stepCountIs directly from 'ai' package instead of defining helper function in README examples. Add proper TypeScript types to integration tests, replacing all any types with SearchResponse, ContentsApiResponse, and StepContentItem discriminated union. Includes proper null checks and type guards for strict type safety. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Create shared ApiErrorResponseSchema for API error responses (402 errors). Replace type casting in search.utils.ts with safeParse() for runtime validation. Configure biome.json to allow console usage for CLI tool. Follows "Schema First Design" pattern from api-patterns skill. Changes: - Add src/shared/api-error.schemas.ts with Zod schema - Update search.utils.ts to use ApiErrorResponseSchema.safeParse() - Export schema from main.ts for package consumers - Move noConsole: "off" to main biome config (CLI tool) - Remove noExplicitAny: "off" to enforce proper typing Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
Claude finished @EdwardIrby's task in 2m 40s —— View job Code Review: PR #54 - Fix/package dep updateSummaryThis PR contains dependency updates and important fixes across multiple packages. The latest commits (d07bffb, e62c36d) successfully resolved the blocking CI failure from the previous review. One non-blocking issue remains (TSDoc @example blocks in pre-existing code). ✅ Status Update: CI Now PassingPrevious Blocking Issue - RESOLVED ✅ The CI lint failure has been fixed by commit d07bffb. The Fix details:
🎉 Excellent New Changes (Commits d07bffb, e62c36d)1. api: Replace
|
Add comprehensive development rules section to root AGENTS.md using @plaited/development-skills scaffold-rules command. Includes rules for Bun APIs, workflow, module organization, testing, accuracy, skill activation, documentation, and core conventions. Rules are marked with PLAITED-RULES-START/END for easy updates and provide a single source of truth for all AI coding agents. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
Claude finished @EdwardIrby's task in 2m 17s —— View job Code Review: PR #54 - Fix/package dep updateSummaryThis PR contains dependency updates and important fixes across multiple packages. The latest commit (66e96ef) adds comprehensive development rules to AGENTS.md, completing the improvements from previous commits. Based on my analysis, this PR is ready to merge with one optional follow-up recommendation. ✅ Latest Changes (Commit 66e96ef)AGENTS.md: Scaffold Development RulesCommit: 66e96ef - "chore: scaffold development rules in AGENTS.md" ✅ Excellent Addition - Adds comprehensive development rules using What was added:
Why this is good:
✅ Previous Excellent Changes (Commits d07bffb, e62c36d)1. api: Replace
|
Remove old rule files and symlinks after scaffolding rules into AGENTS.md. Rules are now embedded in AGENTS.md instead of separate files. Deleted: - .agents/rules/*.md (7 files - now in AGENTS.md) - .claude/rules (symlink artifact) - .cursor/rules (symlink artifact) Modified: - .agents/skills/scaffold-rules/SKILL.md (updated by scaffold command) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
Claude finished @EdwardIrby's task in 2m 59s —— View job Code Review: PR #54 - Fix/package dep updateSummaryThis PR contains dependency updates, critical bug fixes, type safety improvements, and important infrastructure changes. All changes are excellent and ready to merge. ✅ Latest Changes (Commits c4616ba, 66e96ef) - Excellent Work!1. Rules Consolidation into AGENTS.md (66e96ef, c4616ba)What changed:
Why this is excellent: Verified:
✅ Previous Changes (Earlier Commits) - All Excellent2. CI Fix: Replace any Types with Zod Validation (d07bffb)Files: ✅ Schema-First Design - Created 3. Type Safety Improvements (e62c36d)Files: ✅ Correct Pattern - Imports 4. Memory Preservation Bug Fix (e44f1a0)File: ✅ Critical fix - Preserves conversation memory across recursive function calls 5. Documentation Fix (9ef02c8)File: ✅ Critical correction - Replaced incorrect 6. Dependency Classification (10a2e76, 5b1856c)File: ✅ Correct structure - Moved Teams.ai deps from 7. Dependency Updates (5b1856c)✅ Routine maintenance - Minor version bumps for Biome, lint-staged, AI SDK, etc. 📋 Code Quality AssessmentAdherence to Project StandardsExcellent:
Non-blocking (Pre-existing):
🎯 Impact AssessmentRisk Level: Very Low Changes by category:
Breaking Changes: None Affected Packages:
🎉 Final VerdictStatus: ✅ APPROVED - Ready to Merge This PR demonstrates excellent engineering practices:
Highlights:
The single remaining issue (TSDoc @example blocks) is in pre-existing code not touched by this PR and can be addressed separately. Excellent work! This PR significantly improves the codebase quality and developer experience. |
…tion standards
|
Claude finished @EdwardIrby's task in 2m 45s —— View job PR Review: Fix/package dep updateSummaryThis PR contains 11 commits with dependency updates, critical bug fixes, type safety improvements, documentation fixes, and infrastructure changes. The latest commit (053d2fe) successfully resolved the final non-blocking issue (TSDoc @example blocks) from previous reviews. All changes are excellent and this PR is ready to merge. ✅ Latest Change (Commit 053d2fe) - Issue Resolution Complete!TSDoc Standards Compliance (053d2fe)Commit: ✅ Standards Compliance - Removed all Verification:
Why this is excellent:
✅ Infrastructure Changes (Commits 66e96ef, c4616ba) - Excellent Work!1. Rules Consolidation (66e96ef, c4616ba)Commits:
What changed:
Why this is excellent: Verification:
✅ Type Safety Improvements (Commits d07bffb, e62c36d) - Outstanding!2. API Package: Zod Validation (d07bffb)Commit: Files:
Changes: Before (unsafe): const errorBody = await response.json() as { message?: string }After (safe): const parseResult = ApiErrorResponseSchema.safeParse(json)
if (parseResult.success) {
const errorBody = parseResult.data
// Safe to use errorBody.message, errorBody.upgrade_url, errorBody.reset_at
}3. AI SDK Plugin: Import Pattern & Type Safety (e62c36d)Commit: Files:
Changes:
Before (helper function in docs): const stepCountIs = (n: number) => (stepResult: StepResult<any>) =>
stepResult.stepNumber >= n;After (correct import): import { generateText, stepCountIs } from 'ai';Before (unsafe any types): const result = getExecuteResult(executeResult) as anyAfter (type-safe): const result = getExecuteResult(executeResult) as SearchResponse
expect(result.results).toBeDefined()✅ Critical Bug Fixes (Commits e44f1a0, 9ef02c8)4. Memory Preservation Fix (e44f1a0)Commit: File: What was broken: Function calling with auto-execution was losing conversation history between recursive calls, causing "tool_use ids must be unique" errors. Fix: // Before (loses context)
return await this.send(modelMessage, options)
// After (preserves memory)
return await this.send(modelMessage, { ...options, messages: memory })✅ Critical fix - Ensures function call results are properly tracked in conversation history 5. Documentation Fix (9ef02c8)Commit: File: What was broken: Documentation showed incorrect Fix: Replace ✅ Critical correction - Prevents "tools execute but no output" bug ✅ Dependency Management (Commits 10a2e76, 5b1856c)6. Dependency Classification (10a2e76)Commit: File: Changes: Why MCP utilities removed: Consumers should use 7. Dependency Updates (5b1856c)Commit: Changes:
✅ Routine maintenance - Minor version bumps for bug fixes and improvements 📋 Code Quality AssessmentAdherence to Project Standards (AGENTS.md)Excellent (100% compliance):
Code Review Checklist:
🎯 Impact AssessmentRisk Level: Very Low Changes by category:
Breaking Changes: None Affected Packages:
🎉 Final VerdictStatus: ✅ APPROVED - Ready to Merge This PR demonstrates exceptional engineering practices across all 11 commits: Key Achievements:
Highlights:
Review Evolution:
This PR significantly improves:
Excellent work across all 11 commits! This PR sets a high standard for quality improvements. |
- Add ydc-ai-sdk-integration skill section to ai-sdk-plugin README - Update teams-anthropic-integration commands (remove incorrect 'install' command) - Add example prompts to guide users on how to activate skills - Consistent formatting across both packages
|
Claude finished @EdwardIrby's task in 2m 15s —— View job PR Review: Fix/package dep updateSummaryThis PR contains 12 commits with dependency updates, critical bug fixes, type safety improvements, documentation fixes, and infrastructure changes. The latest commit (5bf5600) adds AI Agent Skills sections to package READMEs, completing a comprehensive set of improvements. All changes are excellent and this PR is ready to merge. CI Status: ✅ Main CI check passing (1/3 checks complete, 2 in progress) ✅ Latest Change (Commit 5bf5600) - Documentation EnhancementAI Agent Skills Documentation (5bf5600)Commit: ✅ User Experience - Adds clear guidance for AI agents to integrate with these packages Changes:
Why this is excellent:
✅ Previous Excellent ChangesInfrastructure: Rules Consolidation (66e96ef, c4616ba)Commits:
✅ Single source of truth - All 7 rules consolidated into AGENTS.md between `` markers Verified:
Type Safety: Zod Validation (d07bffb)Commit: ✅ Schema-First Design - Created ApiErrorResponseSchema for 402 error responses File: export const ApiErrorResponseSchema = z.object({
message: z.string().optional(),
upgrade_url: z.string().url().optional(),
reset_at: z.string().optional(),
})Type Safety: AI SDK Integration Tests (e62c36d)Commit: ✅ Correct Pattern - Imports stepCountIs from 'ai' package (not custom helper) Critical Bug FixesMemory Preservation (e44f1a0): ✅ Fixed recursion bug - Preserves conversation memory: Documentation Pattern (9ef02c8): Dependency Management (10a2e76, 5b1856c)✅ Correct classification - Moved Teams.ai deps from devDependencies to dependencies TSDoc Standards (053d2fe)Commit: ✅ Standards compliance - Removed all @example blocks per AGENTS.md rule Verified: grep confirms zero @example blocks remain 📋 Code Quality AssessmentAdherence to Project Standards (AGENTS.md)Excellent (100% compliance):
🎯 Impact AssessmentRisk Level: Very Low
Breaking Changes: None Affected Packages:
🎉 Final VerdictStatus: ✅ APPROVED - Ready to Merge This PR demonstrates exceptional engineering practices across all 12 commits: Key Achievements:
Highlights:
Review Evolution:
This PR significantly improves:
Outstanding work across all 12 commits! This PR sets a high standard for comprehensive improvements. |
- Update ai-sdk-plugin to install only ydc-ai-sdk-integration skill - Update teams-anthropic to install only teams-anthropic-integration skill - More targeted approach - users get exactly what they need - Improves installation experience and reduces unnecessary dependencies
|
Claude finished @EdwardIrby's task in 2m 8s —— View job PR Review: Fix/package dep updateSummaryThis PR contains 13 commits with dependency updates, critical bug fixes, type safety improvements, documentation enhancements, and infrastructure changes. The latest commit (cc0063d) improves the AI Agent Skills installation instructions, completing a comprehensive set of improvements. All changes are excellent and this PR is ready to merge. CI Status: ⏳ 3 checks in progress (lint-and-test, internal-review, semgrep/ci) ✅ Latest Change (Commit cc0063d) - Documentation ImprovementTargeted Skills Installation (cc0063d)Commit: ✅ Better User Experience - Uses Changes:
Why this is excellent:
✅ Previous Excellent ChangesDocumentation: AI Agent Skills Sections (5bf5600)Commit: ✅ User Experience - Added clear guidance for AI agents to integrate with these packages Infrastructure: Rules Consolidation (66e96ef, c4616ba)Commits:
✅ Single source of truth - All 7 rules consolidated into AGENTS.md between `` markers Verified:
Type Safety: Zod Validation (d07bffb)Commit: ✅ Schema-First Design - Created ApiErrorResponseSchema for 402 error responses File: export const ApiErrorResponseSchema = z.object({
message: z.string().optional(),
upgrade_url: z.string().url().optional(),
reset_at: z.string().optional(),
})Type Safety: AI SDK Integration Tests (e62c36d)Commit: ✅ Correct Pattern - Imports stepCountIs from 'ai' package (not custom helper) Critical Bug FixesMemory Preservation (e44f1a0): ✅ Fixed recursion bug - Preserves conversation memory: Documentation Pattern (9ef02c8): Dependency Management (10a2e76, 5b1856c)✅ Correct classification - Moved Teams.ai deps from devDependencies to dependencies TSDoc Standards Compliance (053d2fe)Commit: ✅ Standards compliance - Removed all @example blocks per AGENTS.md rule Verified: grep confirms zero @example blocks remain 📋 Code Quality AssessmentAdherence to Project Standards (AGENTS.md)Excellent (100% compliance):
🎯 Impact AssessmentRisk Level: Very Low
Breaking Changes: None Affected Packages:
🎉 Final VerdictStatus: ✅ APPROVED - Ready to Merge This PR demonstrates exceptional engineering practices across all 13 commits: Key Achievements:
Highlights:
Review Evolution:
This PR significantly improves:
Outstanding work across all 13 commits! This PR sets a high standard for comprehensive improvements. |
No description provided.