snipara-companion 3.2.9 → 3.2.11

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
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { ProjectIntentDetectionResult, ProjectRealityCheckResult, ProjectIntelligenceEngineeringLeadPlanSummary } from '@snipara/project-intelligence-contracts';
2
+ import { ProjectIntentDetectionResult, ProjectPolicyDecision, ProjectRealityCheckResult, ProjectIntelligenceEngineeringLeadPlanSummary, ProjectPolicyRule, OutcomeIntelligenceCalibration } from '@snipara/project-intelligence-contracts';
3
3
 
4
4
  declare function resolveQueryFromToolInput(toolInput?: string, tool?: string): string | null;
5
5
 
@@ -2030,6 +2030,7 @@ interface ProjectIntelligenceBrief {
2030
2030
  codeImpact?: Record<string, unknown>;
2031
2031
  codeImpactSourceSelection?: CodeGraphSourceSelection;
2032
2032
  localSessionSnapshot?: SessionSnapshot;
2033
+ projectPolicyDecision?: ProjectPolicyDecision;
2033
2034
  verificationPlan?: VerificationPlan;
2034
2035
  judgmentCard?: ProjectIntelligenceJudgmentCard;
2035
2036
  errors: Array<{
@@ -2375,7 +2376,7 @@ declare function formatCompanionEngineeringLeadPlanReport(report: CompanionEngin
2375
2376
  declare function leadPlanCommand(options: LeadPlanCommandOptions): Promise<void>;
2376
2377
 
2377
2378
  type ProjectPolicyGateSeverity = "advisory" | "required_action" | "block";
2378
- type ProjectPolicyGateSurface = "release" | "schema" | "auth" | "billing" | "deploy" | "package_surface";
2379
+ type ProjectPolicyGateSurface = "release" | "schema" | "auth" | "billing" | "deploy" | "package_surface" | "project_policy";
2379
2380
  type ProjectPolicyGateSampleMode = "not_applicable" | "structural" | "explicit_contract" | "sample_gated";
2380
2381
  interface ProjectPolicyGateSampleGate {
2381
2382
  mode: ProjectPolicyGateSampleMode;
@@ -2417,6 +2418,7 @@ interface ProjectPolicyGatesResult {
2417
2418
  release: boolean;
2418
2419
  summary: ProjectPolicyGatesSummary;
2419
2420
  gates: ProjectPolicyGateDecision[];
2421
+ projectPolicyDecision?: ProjectPolicyDecision;
2420
2422
  suggestedCommands: string[];
2421
2423
  }
2422
2424
  interface EvaluateProjectPolicyGatesInput {
@@ -2438,6 +2440,10 @@ interface EvaluateProjectPolicyGatesInput {
2438
2440
  command?: string;
2439
2441
  };
2440
2442
  judgmentCard?: ProjectIntelligenceJudgmentCard;
2443
+ projectPolicy?: {
2444
+ rules?: ProjectPolicyRule[];
2445
+ decision?: ProjectPolicyDecision;
2446
+ };
2441
2447
  }
2442
2448
  declare function evaluateProjectPolicyGates(input: EvaluateProjectPolicyGatesInput): ProjectPolicyGatesResult;
2443
2449
  declare function formatPolicyGateDecision(gateDecision: ProjectPolicyGateDecision): string[];
@@ -2456,6 +2462,7 @@ interface ProjectRunCommandOptions {
2456
2462
  skipPackageReview?: boolean;
2457
2463
  servedJudgmentId?: string;
2458
2464
  skipAdvisorReceipts?: boolean;
2465
+ outcomeReceiptFiles?: string[];
2459
2466
  json?: boolean;
2460
2467
  }
2461
2468
  interface ProjectRunGuardResult {
@@ -2503,6 +2510,7 @@ interface ProjectIntelligenceRunResult {
2503
2510
  packageReview?: ProjectRunPackageReview;
2504
2511
  policyGates: ProjectPolicyGatesResult;
2505
2512
  advisorReceiptCapture?: ProjectRunAdvisorReceiptCapture;
2513
+ outcomeCalibration?: OutcomeIntelligenceCalibration;
2506
2514
  judgmentCard: ProjectIntelligenceJudgmentCard;
2507
2515
  suggestedCommands: string[];
2508
2516
  }
@@ -2589,6 +2597,11 @@ interface OutcomeCapturePreviewCommandOptions {
2589
2597
  feedback?: string;
2590
2598
  maxCandidates?: string;
2591
2599
  emitDecisions?: boolean;
2600
+ emitOutcomeReceipt?: boolean;
2601
+ taskKind?: string;
2602
+ risk?: string;
2603
+ surface?: string[];
2604
+ workflowFingerprint?: string;
2592
2605
  json?: boolean;
2593
2606
  }
2594
2607
  declare function buildWhyOutcomeCaptureReport(options: WhyOutcomeCaptureOptions): WhyOutcomeCaptureReport;