snipara-companion 1.3.2 → 1.3.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 +178 -1
- package/dist/index.js +2086 -359
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1140,6 +1140,183 @@ interface BuildVerificationPlanOptions extends VerifyCommandOptions {
|
|
|
1140
1140
|
declare function buildVerificationPlan(options: BuildVerificationPlanOptions): VerificationPlan;
|
|
1141
1141
|
declare function verifyCommand(options: VerifyCommandOptions): Promise<void>;
|
|
1142
1142
|
|
|
1143
|
+
type LocalCodeOverlayMode = "working_tree" | "local_commit";
|
|
1144
|
+
type LocalCodeOverlayKind = "none" | "local_commit" | "working_tree" | "mixed";
|
|
1145
|
+
interface LocalCodeOverlayOptions {
|
|
1146
|
+
cwd?: string;
|
|
1147
|
+
mode?: LocalCodeOverlayMode;
|
|
1148
|
+
commit?: string;
|
|
1149
|
+
maxFiles?: number;
|
|
1150
|
+
maxFileBytes?: number;
|
|
1151
|
+
}
|
|
1152
|
+
interface LocalCodeOverlayFile {
|
|
1153
|
+
path: string;
|
|
1154
|
+
language: "typescript" | "python" | "go";
|
|
1155
|
+
sizeBytes: number;
|
|
1156
|
+
sha256: string;
|
|
1157
|
+
symbolCount: number;
|
|
1158
|
+
importCount: number;
|
|
1159
|
+
}
|
|
1160
|
+
interface LocalCodeOverlaySymbol {
|
|
1161
|
+
name: string;
|
|
1162
|
+
kind: "function" | "class" | "interface" | "type" | "variable" | "method";
|
|
1163
|
+
filePath: string;
|
|
1164
|
+
line: number;
|
|
1165
|
+
localKey: string;
|
|
1166
|
+
}
|
|
1167
|
+
interface LocalCodeOverlayImport {
|
|
1168
|
+
filePath: string;
|
|
1169
|
+
specifier: string;
|
|
1170
|
+
line: number;
|
|
1171
|
+
}
|
|
1172
|
+
interface LocalCodeOverlayExcludedFile {
|
|
1173
|
+
path: string;
|
|
1174
|
+
reason: "ignored" | "unsupported_language" | "too_large" | "secret_pattern" | "read_error";
|
|
1175
|
+
}
|
|
1176
|
+
interface LocalCodeOverlayManifest {
|
|
1177
|
+
version: "snipara.local_code_overlay.v1";
|
|
1178
|
+
generatedAt: string;
|
|
1179
|
+
indexedAt: string;
|
|
1180
|
+
repoRoot: string;
|
|
1181
|
+
repositoryId: string;
|
|
1182
|
+
branch: string | null;
|
|
1183
|
+
baseSha: string | null;
|
|
1184
|
+
localHeadSha: string | null;
|
|
1185
|
+
commit: string | null;
|
|
1186
|
+
dirtyTreeHash: string | null;
|
|
1187
|
+
overlayKind: LocalCodeOverlayKind;
|
|
1188
|
+
canonicalIndexedSha: null;
|
|
1189
|
+
currentWorkingTreeVisible: boolean;
|
|
1190
|
+
canonical: false;
|
|
1191
|
+
mode: LocalCodeOverlayMode;
|
|
1192
|
+
files: LocalCodeOverlayFile[];
|
|
1193
|
+
symbols: LocalCodeOverlaySymbol[];
|
|
1194
|
+
imports: LocalCodeOverlayImport[];
|
|
1195
|
+
excluded: {
|
|
1196
|
+
total: number;
|
|
1197
|
+
byReason: Record<LocalCodeOverlayExcludedFile["reason"], number>;
|
|
1198
|
+
samples: LocalCodeOverlayExcludedFile[];
|
|
1199
|
+
};
|
|
1200
|
+
warnings: Array<{
|
|
1201
|
+
code: string;
|
|
1202
|
+
severity: "info" | "warning";
|
|
1203
|
+
message: string;
|
|
1204
|
+
}>;
|
|
1205
|
+
}
|
|
1206
|
+
interface CodeStatusCommandOptions {
|
|
1207
|
+
dir?: string;
|
|
1208
|
+
maxFiles?: number;
|
|
1209
|
+
includeGraph?: boolean;
|
|
1210
|
+
json?: boolean;
|
|
1211
|
+
}
|
|
1212
|
+
interface CodeSyncCommandOptions extends CodeStatusCommandOptions {
|
|
1213
|
+
commit?: string;
|
|
1214
|
+
workingTree?: boolean;
|
|
1215
|
+
}
|
|
1216
|
+
interface CodeUploadCommandOptions extends CodeStatusCommandOptions {
|
|
1217
|
+
cached?: boolean;
|
|
1218
|
+
ttlHours?: number;
|
|
1219
|
+
sourceClient?: string;
|
|
1220
|
+
sessionId?: string;
|
|
1221
|
+
retirePrevious?: boolean;
|
|
1222
|
+
}
|
|
1223
|
+
interface LocalCodeQueryCommandOptions extends CodeStatusCommandOptions {
|
|
1224
|
+
cached?: boolean;
|
|
1225
|
+
qualifiedName?: string;
|
|
1226
|
+
symbolKey?: string;
|
|
1227
|
+
filePath?: string;
|
|
1228
|
+
changedFiles?: string[];
|
|
1229
|
+
from?: string;
|
|
1230
|
+
to?: string;
|
|
1231
|
+
maxHops?: number;
|
|
1232
|
+
}
|
|
1233
|
+
interface CodeHooksInstallCommandOptions {
|
|
1234
|
+
dir?: string;
|
|
1235
|
+
maxFiles?: number;
|
|
1236
|
+
requestReindex?: boolean;
|
|
1237
|
+
dryRun?: boolean;
|
|
1238
|
+
json?: boolean;
|
|
1239
|
+
}
|
|
1240
|
+
interface CodePromoteCommandOptions extends CodeStatusCommandOptions {
|
|
1241
|
+
pushedSha?: string;
|
|
1242
|
+
indexedSha?: string;
|
|
1243
|
+
requestReindex?: boolean;
|
|
1244
|
+
fromHook?: "pre-push";
|
|
1245
|
+
strict?: boolean;
|
|
1246
|
+
}
|
|
1247
|
+
interface LocalCodePromotionState {
|
|
1248
|
+
version: "snipara.local_code_promotion.v1";
|
|
1249
|
+
updatedAt: string;
|
|
1250
|
+
repoRoot: string;
|
|
1251
|
+
repositoryId: string;
|
|
1252
|
+
branch: string | null;
|
|
1253
|
+
pushedSha: string | null;
|
|
1254
|
+
localHeadSha: string | null;
|
|
1255
|
+
indexedSha: string | null;
|
|
1256
|
+
overlayCachePath: string;
|
|
1257
|
+
status: "local_commit_cached" | "reindex_requested" | "reindex_skipped_unconfigured" | "reindex_failed" | "superseded_by_hosted_index";
|
|
1258
|
+
canonical: false;
|
|
1259
|
+
hostedCanonicalVisible: boolean;
|
|
1260
|
+
reindexRequestedAt: string | null;
|
|
1261
|
+
reindexResult?: Record<string, unknown>;
|
|
1262
|
+
warnings: LocalCodeOverlayManifest["warnings"];
|
|
1263
|
+
}
|
|
1264
|
+
interface LocalCodeOverlaySummary {
|
|
1265
|
+
version: LocalCodeOverlayManifest["version"];
|
|
1266
|
+
generatedAt: string;
|
|
1267
|
+
indexedAt: string;
|
|
1268
|
+
repoRoot: string;
|
|
1269
|
+
repositoryId: string;
|
|
1270
|
+
branch: string | null;
|
|
1271
|
+
baseSha: string | null;
|
|
1272
|
+
localHeadSha: string | null;
|
|
1273
|
+
commit: string | null;
|
|
1274
|
+
dirtyTreeHash: string | null;
|
|
1275
|
+
overlayKind: LocalCodeOverlayKind;
|
|
1276
|
+
canonicalIndexedSha: null;
|
|
1277
|
+
currentWorkingTreeVisible: boolean;
|
|
1278
|
+
canonical: false;
|
|
1279
|
+
mode: LocalCodeOverlayMode;
|
|
1280
|
+
counts: {
|
|
1281
|
+
files: number;
|
|
1282
|
+
symbols: number;
|
|
1283
|
+
imports: number;
|
|
1284
|
+
excluded: number;
|
|
1285
|
+
};
|
|
1286
|
+
excludedByReason: Record<LocalCodeOverlayExcludedFile["reason"], number>;
|
|
1287
|
+
fileSamples: string[];
|
|
1288
|
+
warnings: LocalCodeOverlayManifest["warnings"];
|
|
1289
|
+
}
|
|
1290
|
+
interface HostedCodeOverlayUploadPayload {
|
|
1291
|
+
manifest: LocalCodeOverlayManifest;
|
|
1292
|
+
cachePath: string;
|
|
1293
|
+
request: {
|
|
1294
|
+
overlay: LocalCodeOverlayManifest;
|
|
1295
|
+
source_client: string;
|
|
1296
|
+
ttl_hours: number;
|
|
1297
|
+
retire_previous: boolean;
|
|
1298
|
+
session_id?: string;
|
|
1299
|
+
};
|
|
1300
|
+
}
|
|
1301
|
+
declare function getLocalCodeOverlayCachePath(cwd?: string): string;
|
|
1302
|
+
declare function getLocalCodePromotionStatePath(cwd?: string): string;
|
|
1303
|
+
declare function buildLocalCodeOverlay(options?: LocalCodeOverlayOptions): LocalCodeOverlayManifest;
|
|
1304
|
+
declare function summarizeLocalCodeOverlay(manifest: LocalCodeOverlayManifest): LocalCodeOverlaySummary;
|
|
1305
|
+
declare function writeLocalCodeOverlayCache(manifest: LocalCodeOverlayManifest): string;
|
|
1306
|
+
declare function readLocalCodeOverlayCache(cwd?: string): LocalCodeOverlayManifest | null;
|
|
1307
|
+
declare function writeLocalCodePromotionState(state: LocalCodePromotionState): string;
|
|
1308
|
+
declare function readLocalCodePromotionState(cwd?: string): LocalCodePromotionState | null;
|
|
1309
|
+
declare function buildCodeStatusResult(options: CodeStatusCommandOptions): Record<string, unknown>;
|
|
1310
|
+
declare function buildCodeSyncResult(options: CodeSyncCommandOptions): Record<string, unknown>;
|
|
1311
|
+
declare function buildHostedCodeOverlayUploadPayload(options?: CodeUploadCommandOptions): HostedCodeOverlayUploadPayload;
|
|
1312
|
+
declare function buildLocalImportsResult(options: LocalCodeQueryCommandOptions): Record<string, unknown>;
|
|
1313
|
+
declare function buildLocalCallersResult(options: LocalCodeQueryCommandOptions): Record<string, unknown>;
|
|
1314
|
+
declare function buildLocalNeighborsResult(options: LocalCodeQueryCommandOptions): Record<string, unknown>;
|
|
1315
|
+
declare function buildLocalShortestPathResult(options: LocalCodeQueryCommandOptions): Record<string, unknown>;
|
|
1316
|
+
declare function buildLocalImpactResult(options: LocalCodeQueryCommandOptions): Record<string, unknown>;
|
|
1317
|
+
declare function buildCodeHooksInstallPlan(options?: CodeHooksInstallCommandOptions): Record<string, unknown>;
|
|
1318
|
+
declare function buildCodePromotionResult(options?: CodePromoteCommandOptions): Promise<Record<string, unknown>>;
|
|
1319
|
+
|
|
1143
1320
|
type SyncDocumentKind = "DOC" | "BINARY";
|
|
1144
1321
|
type WorkflowMode = "lite" | "standard" | "auto" | "full" | "orchestrate";
|
|
1145
1322
|
type OnboardFolderMode = "auto" | "business_context" | "code_project" | "mixed";
|
|
@@ -1817,4 +1994,4 @@ interface WrittenOrchestratorHandoff {
|
|
|
1817
1994
|
declare function buildOrchestratorHandoff(options: OrchestratorHandoffOptions): OrchestratorHandoffArtifact;
|
|
1818
1995
|
declare function writeOrchestratorHandoff(options: OrchestratorHandoffOptions): WrittenOrchestratorHandoff;
|
|
1819
1996
|
|
|
1820
|
-
export { AUTOMATION_MANIFEST_RELATIVE_PATH, AutomationInstallConflictError, AutomationUnsupportedHookBundleError, ORCHESTRATOR_HANDOFF_RELATIVE_PATH, TEAM_SYNC_STATE_RELATIVE_PATH, WORKFLOW_PLANS_RELATIVE_DIR, WORKFLOW_STATE_RELATIVE_PATH, archiveInactiveTeamSyncWork, autoArchiveTeamSyncState, buildAgenticHandoffMarkdown, buildAgenticTimeline, buildAgenticWorkStatus, buildAutomationInstallPlan, buildCanonicalEvent, buildJournalCheckpointEntry, buildOnboardFolderManifest, buildOrchestratorHandoff, buildProjectIntelligenceBrief, buildSyncDocumentsDryRun, buildTeamSyncHandoffRecord, buildTeamSyncStartWorkRecord, buildTeamSyncSummary, buildToolCallPayload, buildToolResultPayload, buildVerificationPlan, buildWorkflowPhaseCommitSummary, buildWorkflowPlanScaffold, categoryFromGuardTag, classifyToolResult, collectSyncDocuments, collectSyncDocumentsInput, createClient, createEmptyTeamSyncState, createLocalQueryCache, detectReleaseSurfacesFromFiles, detectRuntimeEnvironment, extractCommandFromToolInput, extractFilesFromToolInput, formatOrchestratorRecommendationReason, formatStuckGuardDecision, getAutomationManifestPath, getAutomationStatus, getConfigPath, getOrchestratorRecommendation, getPlanStepDisplayTitle, getStagedFiles, getStuckGuardInjection, getTeamSyncStatePath, installAutomationBundle, listProjectsForApiKey, loadAutomationManifest, loadConfig, loadTeamSyncState, normalizeGuardTag, normalizeWorkflowPlanInput, projectIntelligenceBriefCommand, resolveQueryFromToolInput, runMemoryGuardCheck, saveConfig, saveTeamSyncState, shouldSuggestOrchestratorForWorkflow, shouldSuggestRuntimeForWorkflow, teamSyncSweepCommand, verifyCommand, writeOrchestratorHandoff };
|
|
1997
|
+
export { AUTOMATION_MANIFEST_RELATIVE_PATH, AutomationInstallConflictError, AutomationUnsupportedHookBundleError, ORCHESTRATOR_HANDOFF_RELATIVE_PATH, TEAM_SYNC_STATE_RELATIVE_PATH, WORKFLOW_PLANS_RELATIVE_DIR, WORKFLOW_STATE_RELATIVE_PATH, archiveInactiveTeamSyncWork, autoArchiveTeamSyncState, buildAgenticHandoffMarkdown, buildAgenticTimeline, buildAgenticWorkStatus, buildAutomationInstallPlan, buildCanonicalEvent, buildCodeHooksInstallPlan, buildCodePromotionResult, buildCodeStatusResult, buildCodeSyncResult, buildHostedCodeOverlayUploadPayload, buildJournalCheckpointEntry, buildLocalCallersResult, buildLocalCodeOverlay, buildLocalImpactResult, buildLocalImportsResult, buildLocalNeighborsResult, buildLocalShortestPathResult, buildOnboardFolderManifest, buildOrchestratorHandoff, buildProjectIntelligenceBrief, buildSyncDocumentsDryRun, buildTeamSyncHandoffRecord, buildTeamSyncStartWorkRecord, buildTeamSyncSummary, buildToolCallPayload, buildToolResultPayload, buildVerificationPlan, buildWorkflowPhaseCommitSummary, buildWorkflowPlanScaffold, categoryFromGuardTag, classifyToolResult, collectSyncDocuments, collectSyncDocumentsInput, createClient, createEmptyTeamSyncState, createLocalQueryCache, detectReleaseSurfacesFromFiles, detectRuntimeEnvironment, extractCommandFromToolInput, extractFilesFromToolInput, formatOrchestratorRecommendationReason, formatStuckGuardDecision, getAutomationManifestPath, getAutomationStatus, getConfigPath, getLocalCodeOverlayCachePath, getLocalCodePromotionStatePath, getOrchestratorRecommendation, getPlanStepDisplayTitle, getStagedFiles, getStuckGuardInjection, getTeamSyncStatePath, installAutomationBundle, listProjectsForApiKey, loadAutomationManifest, loadConfig, loadTeamSyncState, normalizeGuardTag, normalizeWorkflowPlanInput, projectIntelligenceBriefCommand, readLocalCodeOverlayCache, readLocalCodePromotionState, resolveQueryFromToolInput, runMemoryGuardCheck, saveConfig, saveTeamSyncState, shouldSuggestOrchestratorForWorkflow, shouldSuggestRuntimeForWorkflow, summarizeLocalCodeOverlay, teamSyncSweepCommand, verifyCommand, writeLocalCodeOverlayCache, writeLocalCodePromotionState, writeOrchestratorHandoff };
|