snipara-companion 3.5.5 → 3.5.6
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/CHANGELOG.md +15 -0
- package/dist/index.d.ts +62 -1
- package/dist/index.js +15949 -15479
- package/docs/FULL_REFERENCE.md +30 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
Release notes for `snipara-companion`, newest first.
|
|
4
4
|
|
|
5
|
+
## New In 3.5.6
|
|
6
|
+
|
|
7
|
+
- Adds a managed workflow Judgment V1 loop: `workflow judgment` serves and
|
|
8
|
+
persists a bounded Project Intelligence card, while `workflow
|
|
9
|
+
judgment-respond` records one explicit accepted, modified, ignored, or
|
|
10
|
+
blocked response per recommendation.
|
|
11
|
+
- Uses the canonical hosted Project Intelligence Brief V2 endpoint to persist
|
|
12
|
+
the served judgment identity; the endpoint now accepts validated,
|
|
13
|
+
project-scoped API keys used by Companion.
|
|
14
|
+
- Replays the same hosted Advisor Influence receipt at evidence-bearing phase
|
|
15
|
+
commits and final closeout, so one idempotent receipt advances from
|
|
16
|
+
acknowledgement/application to verified outcome evidence without duplicates.
|
|
17
|
+
- Refuses managed final closeout when a served recommendation has no explicit
|
|
18
|
+
response; Companion never manufactures an implicit ignored decision.
|
|
19
|
+
|
|
5
20
|
## New In 3.5.5
|
|
6
21
|
|
|
7
22
|
- Gives Memory Guard source-context retrieval its own bounded 30-second window
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { AdvisorInfluenceLifecycle, HostedContextControlSource, HostedContextControlPlan, HostedContextControlApplyReceipt, ProjectIntentDetectionResult, ProjectPolicyDecision, ProjectRealityCheckResult, ContextMutationPlan, ContextMutationApplyReceipt, ProjectContextValidationReport, ProjectDriftReport, ProjectIntelligenceEngineeringLeadPlanSummary, ProjectPolicyRule, DecisionRequest, AdvisorInfluenceLifecycleState, OutcomeIntelligenceCalibration, ControlledWorkerExecutionMode, WorkerTrustCategory, ControlledWorkerExecutionReceipt, UnifiedReceiptEnvelope, WorkerTrustCandidate, WorkerProfile, WorkerTrustEvent } from '@snipara/project-intelligence-contracts';
|
|
2
|
+
import { AdvisorInfluenceLifecycle, HostedContextControlSource, HostedContextControlPlan, HostedContextControlApplyReceipt, ProjectIntentDetectionResult, ProjectPolicyDecision, ProjectRealityCheckResult, ContextMutationPlan, ContextMutationApplyReceipt, ProjectContextValidationReport, ProjectDriftReport, ProjectIntelligenceEngineeringLeadPlanSummary, ProjectPolicyRule, DecisionRequest, AdvisorInfluenceLifecycleState, OutcomeIntelligenceCalibration, OutcomeIntelligenceReceipt, ControlledWorkerExecutionMode, WorkerTrustCategory, ControlledWorkerExecutionReceipt, UnifiedReceiptEnvelope, WorkerTrustCandidate, WorkerProfile, WorkerTrustEvent } from '@snipara/project-intelligence-contracts';
|
|
3
3
|
|
|
4
4
|
declare function resolveQueryFromToolInput(toolInput?: string, tool?: string): string | null;
|
|
5
5
|
|
|
@@ -712,6 +712,29 @@ interface RecordAdvisorInfluenceReceiptResult {
|
|
|
712
712
|
receipt: Record<string, unknown>;
|
|
713
713
|
advisorInfluence: Record<string, unknown>;
|
|
714
714
|
}
|
|
715
|
+
interface ProjectIntelligenceBriefRequest {
|
|
716
|
+
task?: string;
|
|
717
|
+
diffSummary?: string;
|
|
718
|
+
changedFiles?: string[];
|
|
719
|
+
symbols?: string[];
|
|
720
|
+
routes?: string[];
|
|
721
|
+
}
|
|
722
|
+
interface HostedProjectIntelligenceBriefResult {
|
|
723
|
+
project: {
|
|
724
|
+
id: string;
|
|
725
|
+
name: string;
|
|
726
|
+
slug: string;
|
|
727
|
+
};
|
|
728
|
+
servedJudgmentId: string | null;
|
|
729
|
+
persistedShadowSignalCount: number;
|
|
730
|
+
brief: {
|
|
731
|
+
version: string;
|
|
732
|
+
task?: string | null;
|
|
733
|
+
judgment?: {
|
|
734
|
+
advisorRecommendations?: unknown[];
|
|
735
|
+
};
|
|
736
|
+
};
|
|
737
|
+
}
|
|
715
738
|
interface AutomationConfigFile {
|
|
716
739
|
path: string;
|
|
717
740
|
content: string;
|
|
@@ -1351,6 +1374,7 @@ declare class RLMClient {
|
|
|
1351
1374
|
payload?: Record<string, unknown>;
|
|
1352
1375
|
}): Promise<EmitEventResult>;
|
|
1353
1376
|
recordAdvisorInfluenceReceipt(input: RecordAdvisorInfluenceReceiptInput): Promise<RecordAdvisorInfluenceReceiptResult>;
|
|
1377
|
+
createProjectIntelligenceBrief(input: ProjectIntelligenceBriefRequest): Promise<HostedProjectIntelligenceBriefResult>;
|
|
1354
1378
|
captureWhy(input: WhyCaptureInput): Promise<WhyCaptureResult>;
|
|
1355
1379
|
getAutomationEvents(args?: {
|
|
1356
1380
|
sessionId?: string;
|
|
@@ -2686,6 +2710,10 @@ interface ProjectRunCommandOptions {
|
|
|
2686
2710
|
advisorPlanBefore?: string;
|
|
2687
2711
|
advisorPlanAfter?: string;
|
|
2688
2712
|
advisorRecommendationId?: string;
|
|
2713
|
+
advisorDecision?: AdvisorInfluenceAgentDecision;
|
|
2714
|
+
advisorReceiptScope?: "all" | "selected";
|
|
2715
|
+
advisorReceiptSource?: string;
|
|
2716
|
+
advisorReceiptTrigger?: string;
|
|
2689
2717
|
outcomeReceiptFiles?: string[];
|
|
2690
2718
|
emitPolicyDecisions?: boolean;
|
|
2691
2719
|
json?: boolean;
|
|
@@ -4032,6 +4060,38 @@ interface ManagedWorkflowPhase {
|
|
|
4032
4060
|
summary?: string;
|
|
4033
4061
|
outcome?: TaskCommitOutcome;
|
|
4034
4062
|
}
|
|
4063
|
+
interface ManagedWorkflowJudgmentBrief {
|
|
4064
|
+
version: "project-intelligence-brief-v1";
|
|
4065
|
+
generatedAt: string;
|
|
4066
|
+
servedJudgmentId?: string;
|
|
4067
|
+
branch?: string;
|
|
4068
|
+
task?: string;
|
|
4069
|
+
changedFiles: string[];
|
|
4070
|
+
recentFiles: string[];
|
|
4071
|
+
errors: Array<{
|
|
4072
|
+
surface: string;
|
|
4073
|
+
message: string;
|
|
4074
|
+
}>;
|
|
4075
|
+
suggestedCommands: string[];
|
|
4076
|
+
}
|
|
4077
|
+
interface ManagedWorkflowJudgmentResponse {
|
|
4078
|
+
recommendationId: string;
|
|
4079
|
+
decision: AdvisorInfluenceAgentDecision;
|
|
4080
|
+
respondedAt: string;
|
|
4081
|
+
planBefore?: string;
|
|
4082
|
+
planAfter?: string;
|
|
4083
|
+
initialReceipt?: ProjectRunAdvisorReceiptCapture;
|
|
4084
|
+
closeoutReceipt?: ProjectRunAdvisorReceiptCapture;
|
|
4085
|
+
outcomeReceipts?: OutcomeIntelligenceReceipt[];
|
|
4086
|
+
}
|
|
4087
|
+
interface ManagedWorkflowJudgmentState {
|
|
4088
|
+
version: "snipara.workflow.judgment.v1";
|
|
4089
|
+
generatedAt: string;
|
|
4090
|
+
runEnvelope: ProjectIntelligenceRunEnvelope;
|
|
4091
|
+
brief: ManagedWorkflowJudgmentBrief;
|
|
4092
|
+
card: ProjectIntelligenceJudgmentCard;
|
|
4093
|
+
responses: ManagedWorkflowJudgmentResponse[];
|
|
4094
|
+
}
|
|
4035
4095
|
interface ManagedWorkflowState {
|
|
4036
4096
|
schemaVersion: ManagedWorkflowSchemaVersion;
|
|
4037
4097
|
workflowId: string;
|
|
@@ -4045,6 +4105,7 @@ interface ManagedWorkflowState {
|
|
|
4045
4105
|
phases: ManagedWorkflowPhase[];
|
|
4046
4106
|
runtime?: ManagedWorkflowRuntimeState;
|
|
4047
4107
|
coordination?: ManagedWorkflowCoordinationState;
|
|
4108
|
+
judgment?: ManagedWorkflowJudgmentState;
|
|
4048
4109
|
phaseCommitReceipts?: WorkflowPhaseCommitReceipt[];
|
|
4049
4110
|
finalReport?: FinalCommitReportArtifact;
|
|
4050
4111
|
lastCommit?: {
|