@redaksjon/protokoll 1.0.30 → 1.0.31-dev.20260320152728.3166fe3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1740,6 +1740,18 @@ async function enforceProjectScopeForTool(toolName, args, authContext) {
1740
1740
  allowedProjectIds: allowedProjects
1741
1741
  };
1742
1742
  }
1743
+ if (toolName === "protokoll_list_project_plans") {
1744
+ const projectId = typeof scopedArgs.projectId === "string" ? scopedArgs.projectId.trim() : "";
1745
+ if (!projectId || !isProjectAllowed(projectId, allowedProjects)) {
1746
+ throw new Error(
1747
+ `Project-scoped key cannot list plans for project "${projectId || "(missing)"}".`
1748
+ );
1749
+ }
1750
+ return {
1751
+ ...scopedArgs,
1752
+ allowedProjectIds: allowedProjects
1753
+ };
1754
+ }
1743
1755
  if (toolName === "protokoll_list_projects" || toolName === "protokoll_context_status" || toolName === "protokoll_list_people" || toolName === "protokoll_list_terms" || toolName === "protokoll_list_companies" || toolName === "protokoll_search_context") {
1744
1756
  return {
1745
1757
  ...scopedArgs,