snipara-companion 3.5.5 → 3.5.7
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 +30 -0
- package/dist/index.d.ts +70 -1
- package/dist/index.js +16030 -15518
- package/docs/FULL_REFERENCE.md +36 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,36 @@
|
|
|
2
2
|
|
|
3
3
|
Release notes for `snipara-companion`, newest first.
|
|
4
4
|
|
|
5
|
+
## New In 3.5.7
|
|
6
|
+
|
|
7
|
+
- Bounds the best-effort hosted judgment lookup in `run` to 8 seconds instead
|
|
8
|
+
of silently waiting for up to 30 seconds.
|
|
9
|
+
- Exposes `hostedJudgment.status` as `linked`, `unlinked`, or `unavailable` in
|
|
10
|
+
JSON and prints one concise human-readable diagnostic without blocking the
|
|
11
|
+
local Judgment Card.
|
|
12
|
+
- Compatibility note: hosted context queries now treat an explicit
|
|
13
|
+
`max_tokens` value as immutable. Small conceptual or multi-hop budgets may
|
|
14
|
+
return less context than older servers that silently enlarged the request;
|
|
15
|
+
increase the requested budget when more context is intentional.
|
|
16
|
+
- Clarifies that references mode budgets the Answer Pack plus previews. Full
|
|
17
|
+
referenced chunks remain retrievable and their `token_count` is planning
|
|
18
|
+
metadata rather than initial response usage.
|
|
19
|
+
|
|
20
|
+
## New In 3.5.6
|
|
21
|
+
|
|
22
|
+
- Adds a managed workflow Judgment V1 loop: `workflow judgment` serves and
|
|
23
|
+
persists a bounded Project Intelligence card, while `workflow
|
|
24
|
+
judgment-respond` records one explicit accepted, modified, ignored, or
|
|
25
|
+
blocked response per recommendation.
|
|
26
|
+
- Uses the canonical hosted Project Intelligence Brief V2 endpoint to persist
|
|
27
|
+
the served judgment identity; the endpoint now accepts validated,
|
|
28
|
+
project-scoped API keys used by Companion.
|
|
29
|
+
- Replays the same hosted Advisor Influence receipt at evidence-bearing phase
|
|
30
|
+
commits and final closeout, so one idempotent receipt advances from
|
|
31
|
+
acknowledgement/application to verified outcome evidence without duplicates.
|
|
32
|
+
- Refuses managed final closeout when a served recommendation has no explicit
|
|
33
|
+
response; Companion never manufactures an implicit ignored decision.
|
|
34
|
+
|
|
5
35
|
## New In 3.5.5
|
|
6
36
|
|
|
7
37
|
- 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;
|
|
@@ -2745,12 +2773,20 @@ interface ProjectRunAdvisorReceiptCapture {
|
|
|
2745
2773
|
measurement: ProjectRunAdvisorMeasurementCoverage;
|
|
2746
2774
|
reason?: ProjectRunAdvisorReceiptSkipReason;
|
|
2747
2775
|
}
|
|
2776
|
+
interface ProjectRunHostedJudgmentLink {
|
|
2777
|
+
version: "project-intelligence.hosted-judgment-link.v1";
|
|
2778
|
+
status: "linked" | "unlinked" | "unavailable";
|
|
2779
|
+
timeoutMs: number;
|
|
2780
|
+
servedJudgmentId?: string;
|
|
2781
|
+
error?: string;
|
|
2782
|
+
}
|
|
2748
2783
|
interface ProjectIntelligenceRunResult {
|
|
2749
2784
|
version: "project-intelligence.production-run.v1";
|
|
2750
2785
|
generatedAt: string;
|
|
2751
2786
|
runEnvelope: ProjectIntelligenceRunEnvelope;
|
|
2752
2787
|
release: boolean;
|
|
2753
2788
|
brief: ProjectIntelligenceBrief;
|
|
2789
|
+
hostedJudgment: ProjectRunHostedJudgmentLink;
|
|
2754
2790
|
guard?: ProjectRunGuardResult;
|
|
2755
2791
|
packageReview?: ProjectRunPackageReview;
|
|
2756
2792
|
policyGates: ProjectPolicyGatesResult;
|
|
@@ -4032,6 +4068,38 @@ interface ManagedWorkflowPhase {
|
|
|
4032
4068
|
summary?: string;
|
|
4033
4069
|
outcome?: TaskCommitOutcome;
|
|
4034
4070
|
}
|
|
4071
|
+
interface ManagedWorkflowJudgmentBrief {
|
|
4072
|
+
version: "project-intelligence-brief-v1";
|
|
4073
|
+
generatedAt: string;
|
|
4074
|
+
servedJudgmentId?: string;
|
|
4075
|
+
branch?: string;
|
|
4076
|
+
task?: string;
|
|
4077
|
+
changedFiles: string[];
|
|
4078
|
+
recentFiles: string[];
|
|
4079
|
+
errors: Array<{
|
|
4080
|
+
surface: string;
|
|
4081
|
+
message: string;
|
|
4082
|
+
}>;
|
|
4083
|
+
suggestedCommands: string[];
|
|
4084
|
+
}
|
|
4085
|
+
interface ManagedWorkflowJudgmentResponse {
|
|
4086
|
+
recommendationId: string;
|
|
4087
|
+
decision: AdvisorInfluenceAgentDecision;
|
|
4088
|
+
respondedAt: string;
|
|
4089
|
+
planBefore?: string;
|
|
4090
|
+
planAfter?: string;
|
|
4091
|
+
initialReceipt?: ProjectRunAdvisorReceiptCapture;
|
|
4092
|
+
closeoutReceipt?: ProjectRunAdvisorReceiptCapture;
|
|
4093
|
+
outcomeReceipts?: OutcomeIntelligenceReceipt[];
|
|
4094
|
+
}
|
|
4095
|
+
interface ManagedWorkflowJudgmentState {
|
|
4096
|
+
version: "snipara.workflow.judgment.v1";
|
|
4097
|
+
generatedAt: string;
|
|
4098
|
+
runEnvelope: ProjectIntelligenceRunEnvelope;
|
|
4099
|
+
brief: ManagedWorkflowJudgmentBrief;
|
|
4100
|
+
card: ProjectIntelligenceJudgmentCard;
|
|
4101
|
+
responses: ManagedWorkflowJudgmentResponse[];
|
|
4102
|
+
}
|
|
4035
4103
|
interface ManagedWorkflowState {
|
|
4036
4104
|
schemaVersion: ManagedWorkflowSchemaVersion;
|
|
4037
4105
|
workflowId: string;
|
|
@@ -4045,6 +4113,7 @@ interface ManagedWorkflowState {
|
|
|
4045
4113
|
phases: ManagedWorkflowPhase[];
|
|
4046
4114
|
runtime?: ManagedWorkflowRuntimeState;
|
|
4047
4115
|
coordination?: ManagedWorkflowCoordinationState;
|
|
4116
|
+
judgment?: ManagedWorkflowJudgmentState;
|
|
4048
4117
|
phaseCommitReceipts?: WorkflowPhaseCommitReceipt[];
|
|
4049
4118
|
finalReport?: FinalCommitReportArtifact;
|
|
4050
4119
|
lastCommit?: {
|