snipara-companion 2.0.3 → 2.0.5

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.
package/dist/index.d.ts CHANGED
@@ -565,7 +565,21 @@ interface RecordAdvisorInfluenceReceiptInput {
565
565
  behaviorChange: string;
566
566
  verificationExecuted: string[];
567
567
  outcomeLinkStatus?: AdvisorInfluenceOutcomeLinkStatus;
568
- metadata?: Record<string, unknown>;
568
+ metadata?: AdvisorInfluenceReceiptMetadataInput;
569
+ }
570
+ interface AdvisorInfluenceReceiptMetadataInput extends Record<string, unknown> {
571
+ source?: string;
572
+ firstParty?: boolean;
573
+ planBefore?: string | null;
574
+ planAfter?: string | null;
575
+ changedBecauseOfRecommendation?: boolean | null;
576
+ filesAffected?: string[];
577
+ toolActions?: string[];
578
+ humanOverride?: string | null;
579
+ task?: string | null;
580
+ branch?: string | null;
581
+ runId?: string | null;
582
+ generatedAt?: string | null;
569
583
  }
570
584
  interface RecordAdvisorInfluenceReceiptResult {
571
585
  project: {
@@ -2028,6 +2042,74 @@ declare function memoryLocalCommand(options: LocalMemoryCommandOptions): Promise
2028
2042
  declare function evalExportCommand(options: EvalExportOptions): Promise<void>;
2029
2043
  declare function evalRunCommand(options: EvalRunOptions): Promise<void>;
2030
2044
 
2045
+ type ProjectPolicyGateSeverity = "advisory" | "required_action" | "block";
2046
+ type ProjectPolicyGateSurface = "release" | "schema" | "auth" | "billing" | "deploy" | "package_surface";
2047
+ type ProjectPolicyGateSampleMode = "not_applicable" | "structural" | "explicit_contract" | "sample_gated";
2048
+ interface ProjectPolicyGateSampleGate {
2049
+ mode: ProjectPolicyGateSampleMode;
2050
+ satisfied: boolean;
2051
+ observedSamples: number;
2052
+ requiredSamples: number;
2053
+ rationale: string;
2054
+ }
2055
+ interface ProjectPolicyGateAudit {
2056
+ registryVersion: "project-intelligence.policy-gates.registry.v1";
2057
+ source: string;
2058
+ reasonCodes: string[];
2059
+ humanOverrideAllowed: boolean;
2060
+ humanOverrideRequiresReason: boolean;
2061
+ }
2062
+ interface ProjectPolicyGateDecision {
2063
+ id: string;
2064
+ surface: ProjectPolicyGateSurface;
2065
+ severity: ProjectPolicyGateSeverity;
2066
+ title: string;
2067
+ rationale: string;
2068
+ evidence: string[];
2069
+ requiredActions: string[];
2070
+ suggestedCommands: string[];
2071
+ sampleGate: ProjectPolicyGateSampleGate;
2072
+ audit: ProjectPolicyGateAudit;
2073
+ }
2074
+ interface ProjectPolicyGatesSummary {
2075
+ advisory: number;
2076
+ requiredAction: number;
2077
+ block: number;
2078
+ strongestSeverity: ProjectPolicyGateSeverity;
2079
+ affectedSurfaces: ProjectPolicyGateSurface[];
2080
+ }
2081
+ interface ProjectPolicyGatesResult {
2082
+ version: "project-intelligence.policy-gates.v1";
2083
+ generatedAt: string;
2084
+ registryVersion: "project-intelligence.policy-gates.registry.v1";
2085
+ release: boolean;
2086
+ summary: ProjectPolicyGatesSummary;
2087
+ gates: ProjectPolicyGateDecision[];
2088
+ suggestedCommands: string[];
2089
+ }
2090
+ interface EvaluateProjectPolicyGatesInput {
2091
+ task?: string;
2092
+ release?: boolean;
2093
+ changedFiles?: string[];
2094
+ diffSummary?: string;
2095
+ skipGuard?: boolean;
2096
+ skipPackageReview?: boolean;
2097
+ guard?: {
2098
+ status?: number | null;
2099
+ payload?: Record<string, unknown>;
2100
+ error?: string;
2101
+ stderr?: string;
2102
+ };
2103
+ packageReview?: {
2104
+ status?: string;
2105
+ error?: string;
2106
+ command?: string;
2107
+ };
2108
+ judgmentCard?: ProjectIntelligenceJudgmentCard;
2109
+ }
2110
+ declare function evaluateProjectPolicyGates(input: EvaluateProjectPolicyGatesInput): ProjectPolicyGatesResult;
2111
+ declare function formatPolicyGateDecision(gateDecision: ProjectPolicyGateDecision): string[];
2112
+
2031
2113
  interface ProjectRunCommandOptions {
2032
2114
  task?: string;
2033
2115
  branch?: string;
@@ -2080,6 +2162,7 @@ interface ProjectIntelligenceRunResult {
2080
2162
  brief: ProjectIntelligenceBrief;
2081
2163
  guard?: ProjectRunGuardResult;
2082
2164
  packageReview?: ProjectRunPackageReview;
2165
+ policyGates: ProjectPolicyGatesResult;
2083
2166
  advisorReceiptCapture?: ProjectRunAdvisorReceiptCapture;
2084
2167
  judgmentCard: ProjectIntelligenceJudgmentCard;
2085
2168
  suggestedCommands: string[];
@@ -3215,4 +3298,4 @@ declare function buildOrchestratorHandoff(options: OrchestratorHandoffOptions):
3215
3298
  declare function buildAdaptiveWorkRoutingRecommendation(options: AdaptiveWorkRoutingOptions): AdaptiveWorkRoutingRecommendation;
3216
3299
  declare function writeOrchestratorHandoff(options: OrchestratorHandoffOptions): WrittenOrchestratorHandoff;
3217
3300
 
3218
- export { AUTOMATION_MANIFEST_RELATIVE_PATH, AutomationInstallConflictError, AutomationUnsupportedHookBundleError, COLLABORATION_STATE_RELATIVE_PATH, ORCHESTRATOR_HANDOFF_RELATIVE_PATH, TEAM_SYNC_STATE_RELATIVE_PATH, WORKFLOW_PLANS_RELATIVE_DIR, WORKFLOW_STATE_RELATIVE_PATH, archiveInactiveTeamSyncWork, attachLocalContextPackReceipts, autoArchiveTeamSyncState, buildAdaptiveWorkRoutingRecommendation, buildAgenticHandoffMarkdown, buildAgenticTimeline, buildAgenticWorkStatus, buildAutomationInstallPlan, buildCanonicalEvent, buildCodeHooksInstallPlan, buildCodePromotionResult, buildCodeStatusResult, buildCodeSyncResult, buildCollaborationActor, buildCollaborationGuardActionCards, buildCollaborationHooksInstallPlan, buildContextPackStats, buildEvalCaseArtifact, buildGeneratedWorkflowPlanDocument, buildHostedCodeOverlayUploadPayload, buildHostedGuardPayload, buildJournalCheckpointEntry, buildLocalCallersResult, buildLocalCodeOverlay, buildLocalContextPackReceipt, buildLocalContextPackReceipts, buildLocalImpactResult, buildLocalImportsResult, buildLocalNeighborsResult, buildLocalShortestPathResult, buildMemoryAudit, buildOnboardFolderManifest, buildOrchestratorHandoff, buildProjectIntelligenceBrief, buildProjectIntelligenceRun, buildProjectJudgmentCard, buildSessionBootstrapQuality, buildSyncDocumentsDryRun, buildTeamSyncHandoffRecord, buildTeamSyncStartWorkRecord, buildTeamSyncSummary, buildToolCallPayload, buildToolResultPayload, buildVerificationPlan, buildWorkflowImpactGate, buildWorkflowPhaseCommitSummary, buildWorkflowPlanScaffold, categoryFromGuardTag, classifyToolResult, cleanContextPacks, collaborationIdeStatusCommand, collectSyncDocuments, collectSyncDocumentsInput, compactHostedGuardResources, completeTeamSyncStateFromEvidence, completeTeamSyncWorkFromEvidence, contextPackCleanCommand, contextPackPackCommand, contextPackRetrieveCommand, contextPackStatsCommand, createClient, createEmptyCollaborationState, createEmptyTeamSyncState, createLocalQueryCache, deriveLocalCollaborationResourcesFromFiles, detectReleaseSurfacesFromFiles, detectRuntimeEnvironment, evalExportCommand, evalRunCommand, extractCommandFromToolInput, extractFilesFromToolInput, formatOrchestratorRecommendationReason, formatProjectJudgmentCard, formatStuckGuardDecision, getAutomationManifestPath, getAutomationStatus, getCollaborationStatePath, getConfigPath, getContextPackStoragePaths, getLocalCodeOverlayCachePath, getLocalCodePromotionStatePath, getOrchestratorRecommendation, getPlanStepDisplayTitle, getStagedFiles, getStuckGuardInjection, getTeamSyncStatePath, ingestReferences, installAutomationBundle, listProjectsForApiKey, loadAutomationManifest, loadCollaborationState, loadConfig, loadTeamSyncState, memoryAuditCommand, memoryCleanCandidatesCommand, memoryCompactCommand, memoryHealthCommand, memoryLocalCommand, normalizeCollaborationFiles, normalizeGuardTag, normalizeWorkflowPlanInput, packContext, parseCollaborationResources, projectIntelligenceBriefCommand, projectIntelligenceRunCommand, readLocalCodeOverlayCache, readLocalCodePromotionState, referencesIngestCommand, referencesScanCommand, resolveContextPackRecord, resolveFullWorkflowTokenBudget, resolveQueryFromToolInput, retrieveContextPack, runMemoryGuardCheck, saveCollaborationState, saveConfig, saveTeamSyncState, scanReferences, shouldSuggestOrchestratorForWorkflow, shouldSuggestRuntimeForWorkflow, summarizeLocalCodeOverlay, teamSyncSweepCommand, validatePlanResult, verifyCommand, writeLocalCodeOverlayCache, writeLocalCodePromotionState, writeOrchestratorHandoff };
3301
+ export { AUTOMATION_MANIFEST_RELATIVE_PATH, AutomationInstallConflictError, AutomationUnsupportedHookBundleError, COLLABORATION_STATE_RELATIVE_PATH, ORCHESTRATOR_HANDOFF_RELATIVE_PATH, TEAM_SYNC_STATE_RELATIVE_PATH, WORKFLOW_PLANS_RELATIVE_DIR, WORKFLOW_STATE_RELATIVE_PATH, archiveInactiveTeamSyncWork, attachLocalContextPackReceipts, autoArchiveTeamSyncState, buildAdaptiveWorkRoutingRecommendation, buildAgenticHandoffMarkdown, buildAgenticTimeline, buildAgenticWorkStatus, buildAutomationInstallPlan, buildCanonicalEvent, buildCodeHooksInstallPlan, buildCodePromotionResult, buildCodeStatusResult, buildCodeSyncResult, buildCollaborationActor, buildCollaborationGuardActionCards, buildCollaborationHooksInstallPlan, buildContextPackStats, buildEvalCaseArtifact, buildGeneratedWorkflowPlanDocument, buildHostedCodeOverlayUploadPayload, buildHostedGuardPayload, buildJournalCheckpointEntry, buildLocalCallersResult, buildLocalCodeOverlay, buildLocalContextPackReceipt, buildLocalContextPackReceipts, buildLocalImpactResult, buildLocalImportsResult, buildLocalNeighborsResult, buildLocalShortestPathResult, buildMemoryAudit, buildOnboardFolderManifest, buildOrchestratorHandoff, buildProjectIntelligenceBrief, buildProjectIntelligenceRun, buildProjectJudgmentCard, buildSessionBootstrapQuality, buildSyncDocumentsDryRun, buildTeamSyncHandoffRecord, buildTeamSyncStartWorkRecord, buildTeamSyncSummary, buildToolCallPayload, buildToolResultPayload, buildVerificationPlan, buildWorkflowImpactGate, buildWorkflowPhaseCommitSummary, buildWorkflowPlanScaffold, categoryFromGuardTag, classifyToolResult, cleanContextPacks, collaborationIdeStatusCommand, collectSyncDocuments, collectSyncDocumentsInput, compactHostedGuardResources, completeTeamSyncStateFromEvidence, completeTeamSyncWorkFromEvidence, contextPackCleanCommand, contextPackPackCommand, contextPackRetrieveCommand, contextPackStatsCommand, createClient, createEmptyCollaborationState, createEmptyTeamSyncState, createLocalQueryCache, deriveLocalCollaborationResourcesFromFiles, detectReleaseSurfacesFromFiles, detectRuntimeEnvironment, evalExportCommand, evalRunCommand, evaluateProjectPolicyGates, extractCommandFromToolInput, extractFilesFromToolInput, formatOrchestratorRecommendationReason, formatPolicyGateDecision, formatProjectJudgmentCard, formatStuckGuardDecision, getAutomationManifestPath, getAutomationStatus, getCollaborationStatePath, getConfigPath, getContextPackStoragePaths, getLocalCodeOverlayCachePath, getLocalCodePromotionStatePath, getOrchestratorRecommendation, getPlanStepDisplayTitle, getStagedFiles, getStuckGuardInjection, getTeamSyncStatePath, ingestReferences, installAutomationBundle, listProjectsForApiKey, loadAutomationManifest, loadCollaborationState, loadConfig, loadTeamSyncState, memoryAuditCommand, memoryCleanCandidatesCommand, memoryCompactCommand, memoryHealthCommand, memoryLocalCommand, normalizeCollaborationFiles, normalizeGuardTag, normalizeWorkflowPlanInput, packContext, parseCollaborationResources, projectIntelligenceBriefCommand, projectIntelligenceRunCommand, readLocalCodeOverlayCache, readLocalCodePromotionState, referencesIngestCommand, referencesScanCommand, resolveContextPackRecord, resolveFullWorkflowTokenBudget, resolveQueryFromToolInput, retrieveContextPack, runMemoryGuardCheck, saveCollaborationState, saveConfig, saveTeamSyncState, scanReferences, shouldSuggestOrchestratorForWorkflow, shouldSuggestRuntimeForWorkflow, summarizeLocalCodeOverlay, teamSyncSweepCommand, validatePlanResult, verifyCommand, writeLocalCodeOverlayCache, writeLocalCodePromotionState, writeOrchestratorHandoff };