snipara-companion 2.0.2 → 2.0.4
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 +123 -1
- package/dist/index.js +736 -134
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -541,6 +541,41 @@ interface EmitEventResult {
|
|
|
541
541
|
sessionIds: string[];
|
|
542
542
|
events: AutomationCheckpointSummary[];
|
|
543
543
|
}
|
|
544
|
+
type AdvisorInfluenceAgentDecision = "accepted" | "modified" | "ignored" | "blocked";
|
|
545
|
+
type AdvisorInfluenceOutcomeLinkStatus = "pending" | "linked" | "missed" | "unevaluated";
|
|
546
|
+
interface AdvisorInfluenceRecommendationInput {
|
|
547
|
+
id: string;
|
|
548
|
+
version?: "advisor-recommendation-v0";
|
|
549
|
+
source: string;
|
|
550
|
+
severity: string;
|
|
551
|
+
title: string;
|
|
552
|
+
rationale: string;
|
|
553
|
+
reasonCodes: string[];
|
|
554
|
+
historicalImpactSummary?: string | null;
|
|
555
|
+
reasonCodeReliability?: number | null;
|
|
556
|
+
recommendedVerification: string[];
|
|
557
|
+
expectedBehaviorChange: string;
|
|
558
|
+
evidence?: unknown[];
|
|
559
|
+
caveats?: string[];
|
|
560
|
+
}
|
|
561
|
+
interface RecordAdvisorInfluenceReceiptInput {
|
|
562
|
+
servedJudgmentId: string;
|
|
563
|
+
recommendation: AdvisorInfluenceRecommendationInput;
|
|
564
|
+
agentDecision: AdvisorInfluenceAgentDecision;
|
|
565
|
+
behaviorChange: string;
|
|
566
|
+
verificationExecuted: string[];
|
|
567
|
+
outcomeLinkStatus?: AdvisorInfluenceOutcomeLinkStatus;
|
|
568
|
+
metadata?: Record<string, unknown>;
|
|
569
|
+
}
|
|
570
|
+
interface RecordAdvisorInfluenceReceiptResult {
|
|
571
|
+
project: {
|
|
572
|
+
id: string;
|
|
573
|
+
name: string;
|
|
574
|
+
slug: string;
|
|
575
|
+
};
|
|
576
|
+
receipt: Record<string, unknown>;
|
|
577
|
+
advisorInfluence: Record<string, unknown>;
|
|
578
|
+
}
|
|
544
579
|
interface AutomationConfigFile {
|
|
545
580
|
path: string;
|
|
546
581
|
content: string;
|
|
@@ -1179,6 +1214,7 @@ declare class RLMClient {
|
|
|
1179
1214
|
privacy_level: "standard" | "sensitive" | "restricted";
|
|
1180
1215
|
payload?: Record<string, unknown>;
|
|
1181
1216
|
}): Promise<EmitEventResult>;
|
|
1217
|
+
recordAdvisorInfluenceReceipt(input: RecordAdvisorInfluenceReceiptInput): Promise<RecordAdvisorInfluenceReceiptResult>;
|
|
1182
1218
|
getAutomationEvents(args?: {
|
|
1183
1219
|
sessionId?: string;
|
|
1184
1220
|
limit?: number;
|
|
@@ -1992,6 +2028,74 @@ declare function memoryLocalCommand(options: LocalMemoryCommandOptions): Promise
|
|
|
1992
2028
|
declare function evalExportCommand(options: EvalExportOptions): Promise<void>;
|
|
1993
2029
|
declare function evalRunCommand(options: EvalRunOptions): Promise<void>;
|
|
1994
2030
|
|
|
2031
|
+
type ProjectPolicyGateSeverity = "advisory" | "required_action" | "block";
|
|
2032
|
+
type ProjectPolicyGateSurface = "release" | "schema" | "auth" | "billing" | "deploy" | "package_surface";
|
|
2033
|
+
type ProjectPolicyGateSampleMode = "not_applicable" | "structural" | "explicit_contract" | "sample_gated";
|
|
2034
|
+
interface ProjectPolicyGateSampleGate {
|
|
2035
|
+
mode: ProjectPolicyGateSampleMode;
|
|
2036
|
+
satisfied: boolean;
|
|
2037
|
+
observedSamples: number;
|
|
2038
|
+
requiredSamples: number;
|
|
2039
|
+
rationale: string;
|
|
2040
|
+
}
|
|
2041
|
+
interface ProjectPolicyGateAudit {
|
|
2042
|
+
registryVersion: "project-intelligence.policy-gates.registry.v1";
|
|
2043
|
+
source: string;
|
|
2044
|
+
reasonCodes: string[];
|
|
2045
|
+
humanOverrideAllowed: boolean;
|
|
2046
|
+
humanOverrideRequiresReason: boolean;
|
|
2047
|
+
}
|
|
2048
|
+
interface ProjectPolicyGateDecision {
|
|
2049
|
+
id: string;
|
|
2050
|
+
surface: ProjectPolicyGateSurface;
|
|
2051
|
+
severity: ProjectPolicyGateSeverity;
|
|
2052
|
+
title: string;
|
|
2053
|
+
rationale: string;
|
|
2054
|
+
evidence: string[];
|
|
2055
|
+
requiredActions: string[];
|
|
2056
|
+
suggestedCommands: string[];
|
|
2057
|
+
sampleGate: ProjectPolicyGateSampleGate;
|
|
2058
|
+
audit: ProjectPolicyGateAudit;
|
|
2059
|
+
}
|
|
2060
|
+
interface ProjectPolicyGatesSummary {
|
|
2061
|
+
advisory: number;
|
|
2062
|
+
requiredAction: number;
|
|
2063
|
+
block: number;
|
|
2064
|
+
strongestSeverity: ProjectPolicyGateSeverity;
|
|
2065
|
+
affectedSurfaces: ProjectPolicyGateSurface[];
|
|
2066
|
+
}
|
|
2067
|
+
interface ProjectPolicyGatesResult {
|
|
2068
|
+
version: "project-intelligence.policy-gates.v1";
|
|
2069
|
+
generatedAt: string;
|
|
2070
|
+
registryVersion: "project-intelligence.policy-gates.registry.v1";
|
|
2071
|
+
release: boolean;
|
|
2072
|
+
summary: ProjectPolicyGatesSummary;
|
|
2073
|
+
gates: ProjectPolicyGateDecision[];
|
|
2074
|
+
suggestedCommands: string[];
|
|
2075
|
+
}
|
|
2076
|
+
interface EvaluateProjectPolicyGatesInput {
|
|
2077
|
+
task?: string;
|
|
2078
|
+
release?: boolean;
|
|
2079
|
+
changedFiles?: string[];
|
|
2080
|
+
diffSummary?: string;
|
|
2081
|
+
skipGuard?: boolean;
|
|
2082
|
+
skipPackageReview?: boolean;
|
|
2083
|
+
guard?: {
|
|
2084
|
+
status?: number | null;
|
|
2085
|
+
payload?: Record<string, unknown>;
|
|
2086
|
+
error?: string;
|
|
2087
|
+
stderr?: string;
|
|
2088
|
+
};
|
|
2089
|
+
packageReview?: {
|
|
2090
|
+
status?: string;
|
|
2091
|
+
error?: string;
|
|
2092
|
+
command?: string;
|
|
2093
|
+
};
|
|
2094
|
+
judgmentCard?: ProjectIntelligenceJudgmentCard;
|
|
2095
|
+
}
|
|
2096
|
+
declare function evaluateProjectPolicyGates(input: EvaluateProjectPolicyGatesInput): ProjectPolicyGatesResult;
|
|
2097
|
+
declare function formatPolicyGateDecision(gateDecision: ProjectPolicyGateDecision): string[];
|
|
2098
|
+
|
|
1995
2099
|
interface ProjectRunCommandOptions {
|
|
1996
2100
|
task?: string;
|
|
1997
2101
|
branch?: string;
|
|
@@ -2004,6 +2108,8 @@ interface ProjectRunCommandOptions {
|
|
|
2004
2108
|
skipMemoryHealth?: boolean;
|
|
2005
2109
|
skipGuard?: boolean;
|
|
2006
2110
|
skipPackageReview?: boolean;
|
|
2111
|
+
servedJudgmentId?: string;
|
|
2112
|
+
skipAdvisorReceipts?: boolean;
|
|
2007
2113
|
json?: boolean;
|
|
2008
2114
|
}
|
|
2009
2115
|
interface ProjectRunGuardResult {
|
|
@@ -2021,6 +2127,20 @@ interface ProjectRunPackageReview {
|
|
|
2021
2127
|
data?: unknown;
|
|
2022
2128
|
error?: string;
|
|
2023
2129
|
}
|
|
2130
|
+
interface ProjectRunAdvisorReceiptWrite {
|
|
2131
|
+
advisorRecommendationId: string;
|
|
2132
|
+
status: "recorded" | "error";
|
|
2133
|
+
result?: RecordAdvisorInfluenceReceiptResult;
|
|
2134
|
+
error?: string;
|
|
2135
|
+
}
|
|
2136
|
+
interface ProjectRunAdvisorReceiptCapture {
|
|
2137
|
+
status: "skipped" | "recorded" | "partial" | "error";
|
|
2138
|
+
servedJudgmentId?: string;
|
|
2139
|
+
attemptedCount: number;
|
|
2140
|
+
recordedCount: number;
|
|
2141
|
+
writes: ProjectRunAdvisorReceiptWrite[];
|
|
2142
|
+
reason?: string;
|
|
2143
|
+
}
|
|
2024
2144
|
interface ProjectIntelligenceRunResult {
|
|
2025
2145
|
version: "project-intelligence.production-run.v1";
|
|
2026
2146
|
generatedAt: string;
|
|
@@ -2028,6 +2148,8 @@ interface ProjectIntelligenceRunResult {
|
|
|
2028
2148
|
brief: ProjectIntelligenceBrief;
|
|
2029
2149
|
guard?: ProjectRunGuardResult;
|
|
2030
2150
|
packageReview?: ProjectRunPackageReview;
|
|
2151
|
+
policyGates: ProjectPolicyGatesResult;
|
|
2152
|
+
advisorReceiptCapture?: ProjectRunAdvisorReceiptCapture;
|
|
2031
2153
|
judgmentCard: ProjectIntelligenceJudgmentCard;
|
|
2032
2154
|
suggestedCommands: string[];
|
|
2033
2155
|
}
|
|
@@ -3162,4 +3284,4 @@ declare function buildOrchestratorHandoff(options: OrchestratorHandoffOptions):
|
|
|
3162
3284
|
declare function buildAdaptiveWorkRoutingRecommendation(options: AdaptiveWorkRoutingOptions): AdaptiveWorkRoutingRecommendation;
|
|
3163
3285
|
declare function writeOrchestratorHandoff(options: OrchestratorHandoffOptions): WrittenOrchestratorHandoff;
|
|
3164
3286
|
|
|
3165
|
-
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 };
|
|
3287
|
+
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 };
|