snipara-companion 2.0.8 → 2.0.10
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/README.md +6 -1
- package/dist/index.d.ts +147 -1
- package/dist/index.js +1124 -451
- package/docs/FULL_REFERENCE.md +61 -1
- package/package.json +10 -2
package/README.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# snipara-companion
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/snipara-companion)
|
|
4
|
+
[](https://github.com/Snipara/snipara-companion/actions/workflows/ci.yml)
|
|
5
|
+
[](./LICENSE)
|
|
6
|
+
[](./package.json)
|
|
7
|
+
|
|
3
8
|
**Ask your repo what breaks if you touch this.**
|
|
4
9
|
|
|
5
10
|
No global install. No `init`. No account. Your code stays on your machine.
|
|
@@ -39,7 +44,7 @@ These commands are useful without hosted Snipara:
|
|
|
39
44
|
| `code callers` / `imports` / `neighbors` / `shortest-path` | Structural repo questions from local files |
|
|
40
45
|
| `workflow start` / `phase-start` / `phase-commit` / `resume` | Agent continuity that survives compaction |
|
|
41
46
|
| `context-pack` | Reversible local packs for long logs, diffs, and tool output |
|
|
42
|
-
| `judgment-card`, `verify`, `references`
|
|
47
|
+
| `judgment-card`, `verify`, `agent-readiness`, `references` | Local review artifacts, readiness audits, and references |
|
|
43
48
|
| `stuck-guard`, `memory-guard`, `pre-tool`, `post-tool` | Fail-soft local guards and hook helpers |
|
|
44
49
|
|
|
45
50
|
## Agent Continuity
|
package/dist/index.d.ts
CHANGED
|
@@ -2045,6 +2045,112 @@ declare function memoryLocalCommand(options: LocalMemoryCommandOptions): Promise
|
|
|
2045
2045
|
declare function evalExportCommand(options: EvalExportOptions): Promise<void>;
|
|
2046
2046
|
declare function evalRunCommand(options: EvalRunOptions): Promise<void>;
|
|
2047
2047
|
|
|
2048
|
+
type AgentReadinessTarget = "codex" | "claude-code" | "cursor" | "orca" | "windsurf" | "custom";
|
|
2049
|
+
type AgentReadinessCheckStatus = "pass" | "warning" | "fail" | "manual";
|
|
2050
|
+
type AgentReadinessGapSeverity = "low" | "medium" | "high" | "blocker";
|
|
2051
|
+
type AgentReadinessScoreBand = "ready" | "mostly_ready" | "needs_hardening" | "blocked";
|
|
2052
|
+
type AgentReadinessServiceTier = "launch_review" | "enablement_pack" | "hardening_sprint";
|
|
2053
|
+
interface AgentReadinessAuditCommandOptions {
|
|
2054
|
+
target?: string;
|
|
2055
|
+
task?: string;
|
|
2056
|
+
changedFiles?: string[];
|
|
2057
|
+
context?: string[];
|
|
2058
|
+
proof?: string[];
|
|
2059
|
+
acceptance?: string[];
|
|
2060
|
+
risk?: string[];
|
|
2061
|
+
dir?: string;
|
|
2062
|
+
output?: string;
|
|
2063
|
+
json?: boolean;
|
|
2064
|
+
}
|
|
2065
|
+
interface AgentReadinessWorkflowState {
|
|
2066
|
+
present: boolean;
|
|
2067
|
+
path: string;
|
|
2068
|
+
status?: string;
|
|
2069
|
+
workflowId?: string;
|
|
2070
|
+
currentPhaseId?: string;
|
|
2071
|
+
completedPhases: number;
|
|
2072
|
+
pendingPhases: number;
|
|
2073
|
+
}
|
|
2074
|
+
interface AgentReadinessTeamSyncState {
|
|
2075
|
+
present: boolean;
|
|
2076
|
+
path: string;
|
|
2077
|
+
activeWorkCount: number;
|
|
2078
|
+
handoffCount: number;
|
|
2079
|
+
latestActiveSummary?: string;
|
|
2080
|
+
latestHandoffSummary?: string;
|
|
2081
|
+
}
|
|
2082
|
+
interface AgentReadinessProjectInstructions {
|
|
2083
|
+
present: boolean;
|
|
2084
|
+
path: string;
|
|
2085
|
+
}
|
|
2086
|
+
interface AgentReadinessLocalSignals {
|
|
2087
|
+
workflow: AgentReadinessWorkflowState;
|
|
2088
|
+
teamSync: AgentReadinessTeamSyncState;
|
|
2089
|
+
projectInstructions: AgentReadinessProjectInstructions;
|
|
2090
|
+
}
|
|
2091
|
+
interface AgentReadinessCheck {
|
|
2092
|
+
id: string;
|
|
2093
|
+
title: string;
|
|
2094
|
+
status: AgentReadinessCheckStatus;
|
|
2095
|
+
severity: AgentReadinessGapSeverity;
|
|
2096
|
+
score: number;
|
|
2097
|
+
maxScore: number;
|
|
2098
|
+
evidence: string[];
|
|
2099
|
+
action: string;
|
|
2100
|
+
}
|
|
2101
|
+
interface AgentReadinessGap {
|
|
2102
|
+
checkId: string;
|
|
2103
|
+
severity: AgentReadinessGapSeverity;
|
|
2104
|
+
message: string;
|
|
2105
|
+
action: string;
|
|
2106
|
+
}
|
|
2107
|
+
interface AgentReadinessRecommendedServicePack {
|
|
2108
|
+
id: AgentReadinessServiceTier;
|
|
2109
|
+
name: string;
|
|
2110
|
+
duration: string;
|
|
2111
|
+
fit: string;
|
|
2112
|
+
deliverables: string[];
|
|
2113
|
+
exitCriteria: string[];
|
|
2114
|
+
}
|
|
2115
|
+
interface AgentReadinessAuditReport {
|
|
2116
|
+
version: "snipara.agent_readiness_audit.v1";
|
|
2117
|
+
generatedAt: string;
|
|
2118
|
+
target: {
|
|
2119
|
+
id: AgentReadinessTarget;
|
|
2120
|
+
label: string;
|
|
2121
|
+
posture: string;
|
|
2122
|
+
};
|
|
2123
|
+
task?: string;
|
|
2124
|
+
score: {
|
|
2125
|
+
total: number;
|
|
2126
|
+
band: AgentReadinessScoreBand;
|
|
2127
|
+
max: 100;
|
|
2128
|
+
summary: string;
|
|
2129
|
+
};
|
|
2130
|
+
checks: AgentReadinessCheck[];
|
|
2131
|
+
gaps: AgentReadinessGap[];
|
|
2132
|
+
explicitInputs: {
|
|
2133
|
+
changedFiles: string[];
|
|
2134
|
+
contextRefs: string[];
|
|
2135
|
+
proofGates: string[];
|
|
2136
|
+
acceptanceCriteria: string[];
|
|
2137
|
+
declaredRisks: string[];
|
|
2138
|
+
};
|
|
2139
|
+
localSignals: AgentReadinessLocalSignals;
|
|
2140
|
+
recommendedServicePack: AgentReadinessRecommendedServicePack;
|
|
2141
|
+
suggestedCommands: string[];
|
|
2142
|
+
caveats: string[];
|
|
2143
|
+
}
|
|
2144
|
+
interface BuildAgentReadinessAuditOptions extends AgentReadinessAuditCommandOptions {
|
|
2145
|
+
cwd?: string;
|
|
2146
|
+
now?: Date;
|
|
2147
|
+
localSignals?: AgentReadinessLocalSignals;
|
|
2148
|
+
}
|
|
2149
|
+
declare function collectAgentReadinessLocalSignals(rootDir?: string): AgentReadinessLocalSignals;
|
|
2150
|
+
declare function buildAgentReadinessAuditReport(options?: BuildAgentReadinessAuditOptions): AgentReadinessAuditReport;
|
|
2151
|
+
declare function formatAgentReadinessAuditReport(report: AgentReadinessAuditReport): string;
|
|
2152
|
+
declare function agentReadinessAuditCommand(options: AgentReadinessAuditCommandOptions): Promise<void>;
|
|
2153
|
+
|
|
2048
2154
|
type ProjectPolicyGateSeverity = "advisory" | "required_action" | "block";
|
|
2049
2155
|
type ProjectPolicyGateSurface = "release" | "schema" | "auth" | "billing" | "deploy" | "package_surface";
|
|
2050
2156
|
type ProjectPolicyGateSampleMode = "not_applicable" | "structural" | "explicit_contract" | "sample_gated";
|
|
@@ -2835,6 +2941,12 @@ interface TeamSyncCommandOptions {
|
|
|
2835
2941
|
next?: string;
|
|
2836
2942
|
attention?: string;
|
|
2837
2943
|
risk?: string;
|
|
2944
|
+
adapterPack?: boolean;
|
|
2945
|
+
adapterTarget?: string;
|
|
2946
|
+
context?: string[];
|
|
2947
|
+
proof?: string[];
|
|
2948
|
+
acceptance?: string[];
|
|
2949
|
+
conflictPosture?: string;
|
|
2838
2950
|
since?: string;
|
|
2839
2951
|
dir?: string;
|
|
2840
2952
|
includeSessionContext?: boolean;
|
|
@@ -2861,6 +2973,39 @@ interface TeamSyncSweepResult {
|
|
|
2861
2973
|
archivedWork: TeamSyncWorkRecord[];
|
|
2862
2974
|
summary: TeamSyncSummary;
|
|
2863
2975
|
}
|
|
2976
|
+
type AgenticHandoffAdapterTarget = "codex" | "claude-code" | "cursor" | "orca" | "windsurf" | "custom";
|
|
2977
|
+
type AgenticHandoffConflictPosture = "continue" | "wait" | "split_work" | "review_only" | "handoff";
|
|
2978
|
+
interface AgenticHandoffAdapterPack {
|
|
2979
|
+
version: "snipara.ade_adapter_pack.v1";
|
|
2980
|
+
target: {
|
|
2981
|
+
id: AgenticHandoffAdapterTarget;
|
|
2982
|
+
label: string;
|
|
2983
|
+
instruction: string;
|
|
2984
|
+
};
|
|
2985
|
+
contextPack: {
|
|
2986
|
+
summary: string;
|
|
2987
|
+
files: string[];
|
|
2988
|
+
contextRefs: string[];
|
|
2989
|
+
workflow?: {
|
|
2990
|
+
goal?: string;
|
|
2991
|
+
status?: string;
|
|
2992
|
+
currentPhaseId?: string;
|
|
2993
|
+
currentPhaseTitle?: string;
|
|
2994
|
+
};
|
|
2995
|
+
resumeCommands: string[];
|
|
2996
|
+
constraints: string[];
|
|
2997
|
+
};
|
|
2998
|
+
conflictPosture: AgenticHandoffConflictPosture;
|
|
2999
|
+
proofGates: string[];
|
|
3000
|
+
acceptanceCriteria: string[];
|
|
3001
|
+
receiptExpectation: {
|
|
3002
|
+
required: boolean;
|
|
3003
|
+
command: string;
|
|
3004
|
+
requiredFields: string[];
|
|
3005
|
+
};
|
|
3006
|
+
prompt: string;
|
|
3007
|
+
caveats: string[];
|
|
3008
|
+
}
|
|
2864
3009
|
interface TeamSyncCompletionEvidenceOptions {
|
|
2865
3010
|
summary?: string;
|
|
2866
3011
|
workflowGoal?: string;
|
|
@@ -2888,6 +3033,7 @@ interface AgenticHandoffArtifact {
|
|
|
2888
3033
|
whereToResume: string[];
|
|
2889
3034
|
};
|
|
2890
3035
|
suggestedCommands: string[];
|
|
3036
|
+
adapter?: AgenticHandoffAdapterPack;
|
|
2891
3037
|
}
|
|
2892
3038
|
declare function buildTeamSyncStartWorkRecord(input: TeamSyncRecordInput): TeamSyncWorkRecord;
|
|
2893
3039
|
declare function buildTeamSyncHandoffRecord(input: TeamSyncRecordInput): TeamSyncHandoffRecord;
|
|
@@ -3308,4 +3454,4 @@ declare function buildOrchestratorHandoff(options: OrchestratorHandoffOptions):
|
|
|
3308
3454
|
declare function buildAdaptiveWorkRoutingRecommendation(options: AdaptiveWorkRoutingOptions): AdaptiveWorkRoutingRecommendation;
|
|
3309
3455
|
declare function writeOrchestratorHandoff(options: OrchestratorHandoffOptions): WrittenOrchestratorHandoff;
|
|
3310
3456
|
|
|
3311
|
-
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 };
|
|
3457
|
+
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, agentReadinessAuditCommand, archiveInactiveTeamSyncWork, attachLocalContextPackReceipts, autoArchiveTeamSyncState, buildAdaptiveWorkRoutingRecommendation, buildAgentReadinessAuditReport, 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, collectAgentReadinessLocalSignals, collectSyncDocuments, collectSyncDocumentsInput, compactHostedGuardResources, completeTeamSyncStateFromEvidence, completeTeamSyncWorkFromEvidence, contextPackCleanCommand, contextPackPackCommand, contextPackRetrieveCommand, contextPackStatsCommand, createClient, createEmptyCollaborationState, createEmptyTeamSyncState, createLocalQueryCache, deriveLocalCollaborationResourcesFromFiles, detectReleaseSurfacesFromFiles, detectRuntimeEnvironment, evalExportCommand, evalRunCommand, evaluateProjectPolicyGates, extractCommandFromToolInput, extractFilesFromToolInput, formatAgentReadinessAuditReport, 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 };
|