Remove the research page, its MCP write tools and token write permission
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7f8a3ae882
commit
119dafa505
30 files changed
+264
-1310
No files matched your search
@@ -14,10 +14,6 @@ public sealed class FlypaperDbContext(DbContextOptions<FlypaperDbContext> option
|
||||
|
||||
public DbSet<McpTokenEntity> McpTokens => Set<McpTokenEntity>();
|
||||
|
||||
public DbSet<LabEntryEntity> LabEntries => Set<LabEntryEntity>();
|
||||
|
||||
public DbSet<IdeaEntity> Ideas => Set<IdeaEntity>();
|
||||
|
||||
protected override void ConfigureConventions(ModelConfigurationBuilder configurationBuilder) =>
|
||||
configurationBuilder.Properties<DateTime>().HaveConversion<UtcDateTimeConverter>();
|
||||
|
||||
@@ -47,23 +43,5 @@ public sealed class FlypaperDbContext(DbContextOptions<FlypaperDbContext> option
|
||||
mcpToken.Property(e => e.Name).HasMaxLength(100);
|
||||
mcpToken.Property(e => e.TokenHash).HasMaxLength(64);
|
||||
mcpToken.HasIndex(e => e.TokenHash).IsUnique();
|
||||
|
||||
var labEntry = modelBuilder.Entity<LabEntryEntity>();
|
||||
labEntry.Property(e => e.Title).HasMaxLength(LabLimits.TitleLength);
|
||||
labEntry.Property(e => e.Kind).HasConversion<string>().HasMaxLength(16);
|
||||
labEntry.Property(e => e.Text).HasMaxLength(LabLimits.TextLength);
|
||||
labEntry.Property(e => e.Commit).HasMaxLength(LabLimits.CommitLength);
|
||||
labEntry.Property(e => e.Strategies).HasMaxLength(LabLimits.StrategiesLength);
|
||||
labEntry.Ignore(e => e.StrategyList);
|
||||
labEntry.HasIndex(e => e.Date);
|
||||
|
||||
var idea = modelBuilder.Entity<IdeaEntity>();
|
||||
idea.Property(e => e.Title).HasMaxLength(LabLimits.TitleLength);
|
||||
idea.Property(e => e.Effort).HasConversion<string>().HasMaxLength(16);
|
||||
idea.Property(e => e.Efficiency).HasConversion<string>().HasMaxLength(16);
|
||||
idea.Property(e => e.Rationale).HasMaxLength(LabLimits.TextLength);
|
||||
idea.Property(e => e.Status).HasConversion<string>().HasMaxLength(16);
|
||||
idea.Property(e => e.Commit).HasMaxLength(LabLimits.CommitLength);
|
||||
idea.Ignore(e => e.IsClosed);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user