Phase 1 of Pulse AI differentiation: - Create internal/ai/context package with types, trends, builder, formatter - Implement linear regression for trend computation (growing/declining/stable/volatile) - Add storage capacity predictions (predicts days until 90% and 100%) - Wire MetricsHistory from monitor to patrol service - Update patrol to use buildEnrichedContext instead of basic summary - Update patrol prompt to reference trend indicators and predictions This gives the AI awareness of historical patterns, enabling it to: - Identify resources with concerning growth rates - Predict capacity exhaustion before it happens - Distinguish between stable high usage vs growing problems - Provide more actionable, time-aware insights All tests passing. Falls back to basic summary if metrics history unavailable. |
||
|---|---|---|
| .. | ||
| ai.go | ||
| ai_usage_persistence_test.go | ||
| api_tokens.go | ||
| api_tokens_test.go | ||
| client_helpers.go | ||
| client_helpers_test.go | ||
| config.go | ||
| config_utils_test.go | ||
| detect_root.go | ||
| docker_metadata.go | ||
| docker_metadata_test.go | ||
| export.go | ||
| export_test.go | ||
| guest_metadata.go | ||
| guest_metadata_test.go | ||
| host_metadata.go | ||
| import_transaction.go | ||
| import_transaction_test.go | ||
| oidc.go | ||
| oidc_test.go | ||
| persistence.go | ||
| persistence_fail_test.go | ||
| persistence_test.go | ||
| watcher.go | ||