snipara-companion 3.0.2 → 3.0.3
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 +259 -179
- package/dist/index.js +1234 -814
- package/docs/FULL_REFERENCE.md +32 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2355,6 +2355,203 @@ interface ProjectIntelligenceRunResult {
|
|
|
2355
2355
|
declare function buildProjectIntelligenceRun(options: ProjectRunCommandOptions): Promise<ProjectIntelligenceRunResult>;
|
|
2356
2356
|
declare function projectIntelligenceRunCommand(options: ProjectRunCommandOptions): Promise<void>;
|
|
2357
2357
|
|
|
2358
|
+
declare const TEAM_SYNC_STATE_RELATIVE_PATH: string;
|
|
2359
|
+
type TeamSyncAttention = "note" | "watch" | "review" | "proof";
|
|
2360
|
+
type TeamSyncWorkStatus = "active" | "completed" | "archived";
|
|
2361
|
+
interface TeamSyncRecordInput {
|
|
2362
|
+
summary: string;
|
|
2363
|
+
files?: string[];
|
|
2364
|
+
branch?: string;
|
|
2365
|
+
actor?: string;
|
|
2366
|
+
next?: string;
|
|
2367
|
+
attention?: string;
|
|
2368
|
+
risk?: string;
|
|
2369
|
+
now?: Date;
|
|
2370
|
+
}
|
|
2371
|
+
interface TeamSyncWorkRecord {
|
|
2372
|
+
id: string;
|
|
2373
|
+
type: "work";
|
|
2374
|
+
summary: string;
|
|
2375
|
+
files: string[];
|
|
2376
|
+
branch?: string;
|
|
2377
|
+
actor?: string;
|
|
2378
|
+
status: TeamSyncWorkStatus;
|
|
2379
|
+
createdAt: string;
|
|
2380
|
+
updatedAt: string;
|
|
2381
|
+
completedAt?: string;
|
|
2382
|
+
completionReason?: string;
|
|
2383
|
+
archivedAt?: string;
|
|
2384
|
+
archiveReason?: string;
|
|
2385
|
+
}
|
|
2386
|
+
interface TeamSyncHandoffRecord {
|
|
2387
|
+
id: string;
|
|
2388
|
+
type: "handoff";
|
|
2389
|
+
summary: string;
|
|
2390
|
+
files: string[];
|
|
2391
|
+
next?: string;
|
|
2392
|
+
attention?: TeamSyncAttention;
|
|
2393
|
+
actor?: string;
|
|
2394
|
+
createdAt: string;
|
|
2395
|
+
}
|
|
2396
|
+
interface TeamSyncState {
|
|
2397
|
+
schemaVersion: "snipara.team-sync.v1";
|
|
2398
|
+
updatedAt: string;
|
|
2399
|
+
work: TeamSyncWorkRecord[];
|
|
2400
|
+
handoffs: TeamSyncHandoffRecord[];
|
|
2401
|
+
}
|
|
2402
|
+
interface TeamSyncSummary {
|
|
2403
|
+
activeWorkCount: number;
|
|
2404
|
+
staleWorkCount: number;
|
|
2405
|
+
completedWorkCount: number;
|
|
2406
|
+
archivedWorkCount: number;
|
|
2407
|
+
handoffCount: number;
|
|
2408
|
+
files: string[];
|
|
2409
|
+
staleWorkExplanation: TeamSyncStaleWorkExplanation;
|
|
2410
|
+
latestActiveWork?: TeamSyncWorkRecord;
|
|
2411
|
+
latestStaleWork?: TeamSyncWorkRecord;
|
|
2412
|
+
latestCompletedWork?: TeamSyncWorkRecord;
|
|
2413
|
+
latestArchivedWork?: TeamSyncWorkRecord;
|
|
2414
|
+
latestHandoff?: TeamSyncHandoffRecord;
|
|
2415
|
+
}
|
|
2416
|
+
interface TeamSyncStaleWorkExplanation {
|
|
2417
|
+
staleAfterHours: number;
|
|
2418
|
+
autoArchiveAfterDays: number;
|
|
2419
|
+
activeStaleCount: number;
|
|
2420
|
+
autoArchivableCount: number;
|
|
2421
|
+
completedIgnoredCount: number;
|
|
2422
|
+
archivedIgnoredCount: number;
|
|
2423
|
+
latestStaleWorkAgeHours?: number;
|
|
2424
|
+
message: string;
|
|
2425
|
+
}
|
|
2426
|
+
interface TeamSyncCommandOptions {
|
|
2427
|
+
id?: string;
|
|
2428
|
+
summary?: string;
|
|
2429
|
+
files?: string[];
|
|
2430
|
+
branch?: string;
|
|
2431
|
+
actor?: string;
|
|
2432
|
+
next?: string;
|
|
2433
|
+
attention?: string;
|
|
2434
|
+
risk?: string;
|
|
2435
|
+
adapterPack?: boolean;
|
|
2436
|
+
adapterTarget?: string;
|
|
2437
|
+
context?: string[];
|
|
2438
|
+
proof?: string[];
|
|
2439
|
+
acceptance?: string[];
|
|
2440
|
+
conflictPosture?: string;
|
|
2441
|
+
since?: string;
|
|
2442
|
+
dir?: string;
|
|
2443
|
+
includeSessionContext?: boolean;
|
|
2444
|
+
emitOrchestratorHandoff?: boolean;
|
|
2445
|
+
autoRouteOrchestrator?: boolean;
|
|
2446
|
+
orchestratorPolicySource?: string;
|
|
2447
|
+
output?: string;
|
|
2448
|
+
days?: string;
|
|
2449
|
+
dryRun?: boolean;
|
|
2450
|
+
json?: boolean;
|
|
2451
|
+
}
|
|
2452
|
+
interface HostedAttempt<T> {
|
|
2453
|
+
status: "skipped" | "ok" | "error";
|
|
2454
|
+
data?: T;
|
|
2455
|
+
error?: string;
|
|
2456
|
+
}
|
|
2457
|
+
interface TeamSyncSweepResult {
|
|
2458
|
+
action: "sweep";
|
|
2459
|
+
statePath: string;
|
|
2460
|
+
dryRun: boolean;
|
|
2461
|
+
thresholdDays: number;
|
|
2462
|
+
thresholdMs: number;
|
|
2463
|
+
archivedCount: number;
|
|
2464
|
+
archivedWork: TeamSyncWorkRecord[];
|
|
2465
|
+
explanation: TeamSyncSweepExplanation;
|
|
2466
|
+
summary: TeamSyncSummary;
|
|
2467
|
+
}
|
|
2468
|
+
interface TeamSyncSweepExplanation {
|
|
2469
|
+
mode: "preview" | "archive";
|
|
2470
|
+
candidateCount: number;
|
|
2471
|
+
archivedCount: number;
|
|
2472
|
+
remainingStaleCount: number;
|
|
2473
|
+
message: string;
|
|
2474
|
+
}
|
|
2475
|
+
type AgenticHandoffAdapterTarget = "codex" | "claude-code" | "cursor" | "orca" | "windsurf" | "custom";
|
|
2476
|
+
type AgenticHandoffConflictPosture = "continue" | "wait" | "split_work" | "review_only" | "handoff";
|
|
2477
|
+
interface AgenticHandoffAdapterPack {
|
|
2478
|
+
version: "snipara.ade_adapter_pack.v1";
|
|
2479
|
+
target: {
|
|
2480
|
+
id: AgenticHandoffAdapterTarget;
|
|
2481
|
+
label: string;
|
|
2482
|
+
instruction: string;
|
|
2483
|
+
};
|
|
2484
|
+
contextPack: {
|
|
2485
|
+
summary: string;
|
|
2486
|
+
files: string[];
|
|
2487
|
+
contextRefs: string[];
|
|
2488
|
+
workflow?: {
|
|
2489
|
+
goal?: string;
|
|
2490
|
+
status?: string;
|
|
2491
|
+
currentPhaseId?: string;
|
|
2492
|
+
currentPhaseTitle?: string;
|
|
2493
|
+
};
|
|
2494
|
+
resumeCommands: string[];
|
|
2495
|
+
constraints: string[];
|
|
2496
|
+
};
|
|
2497
|
+
conflictPosture: AgenticHandoffConflictPosture;
|
|
2498
|
+
proofGates: string[];
|
|
2499
|
+
acceptanceCriteria: string[];
|
|
2500
|
+
receiptExpectation: {
|
|
2501
|
+
required: boolean;
|
|
2502
|
+
command: string;
|
|
2503
|
+
requiredFields: string[];
|
|
2504
|
+
};
|
|
2505
|
+
prompt: string;
|
|
2506
|
+
caveats: string[];
|
|
2507
|
+
}
|
|
2508
|
+
interface TeamSyncCompletionEvidenceOptions {
|
|
2509
|
+
summary?: string;
|
|
2510
|
+
workflowGoal?: string;
|
|
2511
|
+
files?: string[];
|
|
2512
|
+
reason?: string;
|
|
2513
|
+
now?: Date;
|
|
2514
|
+
dryRun?: boolean;
|
|
2515
|
+
}
|
|
2516
|
+
interface AgenticHandoffArtifact {
|
|
2517
|
+
version: "snipara.agentic_handoff.v1";
|
|
2518
|
+
generatedAt: string;
|
|
2519
|
+
command: "snipara-companion handoff";
|
|
2520
|
+
record: TeamSyncHandoffRecord;
|
|
2521
|
+
statePath: string;
|
|
2522
|
+
hosted: {
|
|
2523
|
+
status: HostedAttempt<TeamSyncHandoffResponse>["status"];
|
|
2524
|
+
handoffId?: string;
|
|
2525
|
+
error?: string;
|
|
2526
|
+
};
|
|
2527
|
+
sections: {
|
|
2528
|
+
whatChanged: string[];
|
|
2529
|
+
verified: string[];
|
|
2530
|
+
risky: string[];
|
|
2531
|
+
remains: string[];
|
|
2532
|
+
whereToResume: string[];
|
|
2533
|
+
};
|
|
2534
|
+
suggestedCommands: string[];
|
|
2535
|
+
adapter?: AgenticHandoffAdapterPack;
|
|
2536
|
+
}
|
|
2537
|
+
declare function buildTeamSyncStartWorkRecord(input: TeamSyncRecordInput): TeamSyncWorkRecord;
|
|
2538
|
+
declare function buildTeamSyncHandoffRecord(input: TeamSyncRecordInput): TeamSyncHandoffRecord;
|
|
2539
|
+
declare function createEmptyTeamSyncState(now?: Date): TeamSyncState;
|
|
2540
|
+
declare function buildTeamSyncSummary(state: TeamSyncState, since?: Date, now?: Date): TeamSyncSummary;
|
|
2541
|
+
declare function archiveInactiveTeamSyncWork(state: TeamSyncState, options?: {
|
|
2542
|
+
now?: Date;
|
|
2543
|
+
thresholdMs?: number;
|
|
2544
|
+
dryRun?: boolean;
|
|
2545
|
+
}): TeamSyncSweepResult["archivedWork"];
|
|
2546
|
+
declare function completeTeamSyncWorkFromEvidence(state: TeamSyncState, options?: TeamSyncCompletionEvidenceOptions): TeamSyncWorkRecord[];
|
|
2547
|
+
declare function completeTeamSyncStateFromEvidence(rootDir?: string, options?: TeamSyncCompletionEvidenceOptions): TeamSyncWorkRecord[];
|
|
2548
|
+
declare function autoArchiveTeamSyncState(rootDir?: string, now?: Date): TeamSyncSweepResult["archivedWork"];
|
|
2549
|
+
declare function loadTeamSyncState(rootDir?: string): TeamSyncState;
|
|
2550
|
+
declare function saveTeamSyncState(state: TeamSyncState, rootDir?: string): void;
|
|
2551
|
+
declare function getTeamSyncStatePath(rootDir?: string): string;
|
|
2552
|
+
declare function buildAgenticHandoffMarkdown(artifact: AgenticHandoffArtifact): string;
|
|
2553
|
+
declare function teamSyncSweepCommand(options: TeamSyncCommandOptions): Promise<void>;
|
|
2554
|
+
|
|
2358
2555
|
type SyncDocumentKind = "DOC" | "BINARY";
|
|
2359
2556
|
type WorkflowMode = "lite" | "standard" | "auto" | "full" | "orchestrate";
|
|
2360
2557
|
type OnboardFolderMode = "auto" | "business_context" | "code_project" | "mixed";
|
|
@@ -2426,6 +2623,7 @@ interface AgenticWorkStatus {
|
|
|
2426
2623
|
teamSync: {
|
|
2427
2624
|
activeWorkCount: number;
|
|
2428
2625
|
staleWorkCount: number;
|
|
2626
|
+
staleWorkExplanation: TeamSyncStaleWorkExplanation;
|
|
2429
2627
|
archivedWorkCount: number;
|
|
2430
2628
|
handoffCount: number;
|
|
2431
2629
|
latestHandoff?: {
|
|
@@ -2851,6 +3049,66 @@ declare function compareLocalSourceSnapshots(previous: LocalSourceSnapshot | nul
|
|
|
2851
3049
|
declare function buildLocalSourceStatus(options?: LocalSourceSnapshotOptions): LocalSourceStatusResult;
|
|
2852
3050
|
declare function buildLocalSourceSyncResult(options?: LocalSourceSyncOptions): Promise<LocalSourceSyncResult>;
|
|
2853
3051
|
|
|
3052
|
+
interface LocalWorkerDeclaration {
|
|
3053
|
+
id: string;
|
|
3054
|
+
workerRole: string;
|
|
3055
|
+
endpointType: "local";
|
|
3056
|
+
provider: string;
|
|
3057
|
+
baseUrl: string;
|
|
3058
|
+
model?: string;
|
|
3059
|
+
preferModel?: string;
|
|
3060
|
+
capabilities: string[];
|
|
3061
|
+
writeScope: string[];
|
|
3062
|
+
createdAt: string;
|
|
3063
|
+
updatedAt: string;
|
|
3064
|
+
}
|
|
3065
|
+
interface LocalWorkersConfig {
|
|
3066
|
+
schemaVersion: "snipara.local_workers.v1";
|
|
3067
|
+
updatedAt: string;
|
|
3068
|
+
defaultWorkerId: string;
|
|
3069
|
+
workers: LocalWorkerDeclaration[];
|
|
3070
|
+
}
|
|
3071
|
+
interface LocalWorkerRoutingDefaults {
|
|
3072
|
+
worker: LocalWorkerDeclaration;
|
|
3073
|
+
routeLocalWorkers: true;
|
|
3074
|
+
routingWorkerRole: string;
|
|
3075
|
+
routingLocalBaseUrl: string;
|
|
3076
|
+
routingLocalModel?: string;
|
|
3077
|
+
routingLocalPreferModel?: string;
|
|
3078
|
+
routingLocalProvider: string;
|
|
3079
|
+
routingPreferredEndpoints: string[];
|
|
3080
|
+
routingAllowedEndpoints: string[];
|
|
3081
|
+
plannerRetainsReasoning: true;
|
|
3082
|
+
}
|
|
3083
|
+
interface LocalWorkerAddOptions {
|
|
3084
|
+
id?: string;
|
|
3085
|
+
role?: string;
|
|
3086
|
+
provider?: string;
|
|
3087
|
+
baseUrl?: string;
|
|
3088
|
+
model?: string;
|
|
3089
|
+
preferModel?: string;
|
|
3090
|
+
capabilities?: string[];
|
|
3091
|
+
writeScope?: string[];
|
|
3092
|
+
default?: boolean;
|
|
3093
|
+
json?: boolean;
|
|
3094
|
+
}
|
|
3095
|
+
interface LocalWorkerStatusOptions {
|
|
3096
|
+
json?: boolean;
|
|
3097
|
+
}
|
|
3098
|
+
declare function workersLocalAddCommand(options: LocalWorkerAddOptions): void;
|
|
3099
|
+
declare function workersLocalStatusCommand(options?: LocalWorkerStatusOptions): void;
|
|
3100
|
+
declare function addLocalWorker(options: LocalWorkerAddOptions): {
|
|
3101
|
+
worker: LocalWorkerDeclaration;
|
|
3102
|
+
config: LocalWorkersConfig;
|
|
3103
|
+
workerConfigPath: string;
|
|
3104
|
+
policyPath: string;
|
|
3105
|
+
};
|
|
3106
|
+
declare function resolveLocalWorkerRoutingDefaults(options?: {
|
|
3107
|
+
workerId?: string;
|
|
3108
|
+
workerRole?: string;
|
|
3109
|
+
}): LocalWorkerRoutingDefaults | null;
|
|
3110
|
+
declare function readLocalWorkersConfig(): LocalWorkersConfig | null;
|
|
3111
|
+
|
|
2854
3112
|
declare const MANIFEST_VERSION = "snipara.references.v1";
|
|
2855
3113
|
type ReferenceStatus = "allowed" | "pending" | "denied" | "unsupported";
|
|
2856
3114
|
interface ReferenceOccurrence {
|
|
@@ -3043,184 +3301,6 @@ declare function installAutomationBundle(args: {
|
|
|
3043
3301
|
}): Promise<AutomationInstallResult>;
|
|
3044
3302
|
declare function getAutomationStatus(projectDir?: string): AutomationStatusResult;
|
|
3045
3303
|
|
|
3046
|
-
declare const TEAM_SYNC_STATE_RELATIVE_PATH: string;
|
|
3047
|
-
type TeamSyncAttention = "note" | "watch" | "review" | "proof";
|
|
3048
|
-
type TeamSyncWorkStatus = "active" | "completed" | "archived";
|
|
3049
|
-
interface TeamSyncRecordInput {
|
|
3050
|
-
summary: string;
|
|
3051
|
-
files?: string[];
|
|
3052
|
-
branch?: string;
|
|
3053
|
-
actor?: string;
|
|
3054
|
-
next?: string;
|
|
3055
|
-
attention?: string;
|
|
3056
|
-
risk?: string;
|
|
3057
|
-
now?: Date;
|
|
3058
|
-
}
|
|
3059
|
-
interface TeamSyncWorkRecord {
|
|
3060
|
-
id: string;
|
|
3061
|
-
type: "work";
|
|
3062
|
-
summary: string;
|
|
3063
|
-
files: string[];
|
|
3064
|
-
branch?: string;
|
|
3065
|
-
actor?: string;
|
|
3066
|
-
status: TeamSyncWorkStatus;
|
|
3067
|
-
createdAt: string;
|
|
3068
|
-
updatedAt: string;
|
|
3069
|
-
completedAt?: string;
|
|
3070
|
-
completionReason?: string;
|
|
3071
|
-
archivedAt?: string;
|
|
3072
|
-
archiveReason?: string;
|
|
3073
|
-
}
|
|
3074
|
-
interface TeamSyncHandoffRecord {
|
|
3075
|
-
id: string;
|
|
3076
|
-
type: "handoff";
|
|
3077
|
-
summary: string;
|
|
3078
|
-
files: string[];
|
|
3079
|
-
next?: string;
|
|
3080
|
-
attention?: TeamSyncAttention;
|
|
3081
|
-
actor?: string;
|
|
3082
|
-
createdAt: string;
|
|
3083
|
-
}
|
|
3084
|
-
interface TeamSyncState {
|
|
3085
|
-
schemaVersion: "snipara.team-sync.v1";
|
|
3086
|
-
updatedAt: string;
|
|
3087
|
-
work: TeamSyncWorkRecord[];
|
|
3088
|
-
handoffs: TeamSyncHandoffRecord[];
|
|
3089
|
-
}
|
|
3090
|
-
interface TeamSyncSummary {
|
|
3091
|
-
activeWorkCount: number;
|
|
3092
|
-
staleWorkCount: number;
|
|
3093
|
-
completedWorkCount: number;
|
|
3094
|
-
archivedWorkCount: number;
|
|
3095
|
-
handoffCount: number;
|
|
3096
|
-
files: string[];
|
|
3097
|
-
latestActiveWork?: TeamSyncWorkRecord;
|
|
3098
|
-
latestStaleWork?: TeamSyncWorkRecord;
|
|
3099
|
-
latestCompletedWork?: TeamSyncWorkRecord;
|
|
3100
|
-
latestArchivedWork?: TeamSyncWorkRecord;
|
|
3101
|
-
latestHandoff?: TeamSyncHandoffRecord;
|
|
3102
|
-
}
|
|
3103
|
-
interface TeamSyncCommandOptions {
|
|
3104
|
-
id?: string;
|
|
3105
|
-
summary?: string;
|
|
3106
|
-
files?: string[];
|
|
3107
|
-
branch?: string;
|
|
3108
|
-
actor?: string;
|
|
3109
|
-
next?: string;
|
|
3110
|
-
attention?: string;
|
|
3111
|
-
risk?: string;
|
|
3112
|
-
adapterPack?: boolean;
|
|
3113
|
-
adapterTarget?: string;
|
|
3114
|
-
context?: string[];
|
|
3115
|
-
proof?: string[];
|
|
3116
|
-
acceptance?: string[];
|
|
3117
|
-
conflictPosture?: string;
|
|
3118
|
-
since?: string;
|
|
3119
|
-
dir?: string;
|
|
3120
|
-
includeSessionContext?: boolean;
|
|
3121
|
-
emitOrchestratorHandoff?: boolean;
|
|
3122
|
-
autoRouteOrchestrator?: boolean;
|
|
3123
|
-
orchestratorPolicySource?: string;
|
|
3124
|
-
output?: string;
|
|
3125
|
-
days?: string;
|
|
3126
|
-
dryRun?: boolean;
|
|
3127
|
-
json?: boolean;
|
|
3128
|
-
}
|
|
3129
|
-
interface HostedAttempt<T> {
|
|
3130
|
-
status: "skipped" | "ok" | "error";
|
|
3131
|
-
data?: T;
|
|
3132
|
-
error?: string;
|
|
3133
|
-
}
|
|
3134
|
-
interface TeamSyncSweepResult {
|
|
3135
|
-
action: "sweep";
|
|
3136
|
-
statePath: string;
|
|
3137
|
-
dryRun: boolean;
|
|
3138
|
-
thresholdDays: number;
|
|
3139
|
-
thresholdMs: number;
|
|
3140
|
-
archivedCount: number;
|
|
3141
|
-
archivedWork: TeamSyncWorkRecord[];
|
|
3142
|
-
summary: TeamSyncSummary;
|
|
3143
|
-
}
|
|
3144
|
-
type AgenticHandoffAdapterTarget = "codex" | "claude-code" | "cursor" | "orca" | "windsurf" | "custom";
|
|
3145
|
-
type AgenticHandoffConflictPosture = "continue" | "wait" | "split_work" | "review_only" | "handoff";
|
|
3146
|
-
interface AgenticHandoffAdapterPack {
|
|
3147
|
-
version: "snipara.ade_adapter_pack.v1";
|
|
3148
|
-
target: {
|
|
3149
|
-
id: AgenticHandoffAdapterTarget;
|
|
3150
|
-
label: string;
|
|
3151
|
-
instruction: string;
|
|
3152
|
-
};
|
|
3153
|
-
contextPack: {
|
|
3154
|
-
summary: string;
|
|
3155
|
-
files: string[];
|
|
3156
|
-
contextRefs: string[];
|
|
3157
|
-
workflow?: {
|
|
3158
|
-
goal?: string;
|
|
3159
|
-
status?: string;
|
|
3160
|
-
currentPhaseId?: string;
|
|
3161
|
-
currentPhaseTitle?: string;
|
|
3162
|
-
};
|
|
3163
|
-
resumeCommands: string[];
|
|
3164
|
-
constraints: string[];
|
|
3165
|
-
};
|
|
3166
|
-
conflictPosture: AgenticHandoffConflictPosture;
|
|
3167
|
-
proofGates: string[];
|
|
3168
|
-
acceptanceCriteria: string[];
|
|
3169
|
-
receiptExpectation: {
|
|
3170
|
-
required: boolean;
|
|
3171
|
-
command: string;
|
|
3172
|
-
requiredFields: string[];
|
|
3173
|
-
};
|
|
3174
|
-
prompt: string;
|
|
3175
|
-
caveats: string[];
|
|
3176
|
-
}
|
|
3177
|
-
interface TeamSyncCompletionEvidenceOptions {
|
|
3178
|
-
summary?: string;
|
|
3179
|
-
workflowGoal?: string;
|
|
3180
|
-
files?: string[];
|
|
3181
|
-
reason?: string;
|
|
3182
|
-
now?: Date;
|
|
3183
|
-
dryRun?: boolean;
|
|
3184
|
-
}
|
|
3185
|
-
interface AgenticHandoffArtifact {
|
|
3186
|
-
version: "snipara.agentic_handoff.v1";
|
|
3187
|
-
generatedAt: string;
|
|
3188
|
-
command: "snipara-companion handoff";
|
|
3189
|
-
record: TeamSyncHandoffRecord;
|
|
3190
|
-
statePath: string;
|
|
3191
|
-
hosted: {
|
|
3192
|
-
status: HostedAttempt<TeamSyncHandoffResponse>["status"];
|
|
3193
|
-
handoffId?: string;
|
|
3194
|
-
error?: string;
|
|
3195
|
-
};
|
|
3196
|
-
sections: {
|
|
3197
|
-
whatChanged: string[];
|
|
3198
|
-
verified: string[];
|
|
3199
|
-
risky: string[];
|
|
3200
|
-
remains: string[];
|
|
3201
|
-
whereToResume: string[];
|
|
3202
|
-
};
|
|
3203
|
-
suggestedCommands: string[];
|
|
3204
|
-
adapter?: AgenticHandoffAdapterPack;
|
|
3205
|
-
}
|
|
3206
|
-
declare function buildTeamSyncStartWorkRecord(input: TeamSyncRecordInput): TeamSyncWorkRecord;
|
|
3207
|
-
declare function buildTeamSyncHandoffRecord(input: TeamSyncRecordInput): TeamSyncHandoffRecord;
|
|
3208
|
-
declare function createEmptyTeamSyncState(now?: Date): TeamSyncState;
|
|
3209
|
-
declare function buildTeamSyncSummary(state: TeamSyncState, since?: Date, now?: Date): TeamSyncSummary;
|
|
3210
|
-
declare function archiveInactiveTeamSyncWork(state: TeamSyncState, options?: {
|
|
3211
|
-
now?: Date;
|
|
3212
|
-
thresholdMs?: number;
|
|
3213
|
-
dryRun?: boolean;
|
|
3214
|
-
}): TeamSyncSweepResult["archivedWork"];
|
|
3215
|
-
declare function completeTeamSyncWorkFromEvidence(state: TeamSyncState, options?: TeamSyncCompletionEvidenceOptions): TeamSyncWorkRecord[];
|
|
3216
|
-
declare function completeTeamSyncStateFromEvidence(rootDir?: string, options?: TeamSyncCompletionEvidenceOptions): TeamSyncWorkRecord[];
|
|
3217
|
-
declare function autoArchiveTeamSyncState(rootDir?: string, now?: Date): TeamSyncSweepResult["archivedWork"];
|
|
3218
|
-
declare function loadTeamSyncState(rootDir?: string): TeamSyncState;
|
|
3219
|
-
declare function saveTeamSyncState(state: TeamSyncState, rootDir?: string): void;
|
|
3220
|
-
declare function getTeamSyncStatePath(rootDir?: string): string;
|
|
3221
|
-
declare function buildAgenticHandoffMarkdown(artifact: AgenticHandoffArtifact): string;
|
|
3222
|
-
declare function teamSyncSweepCommand(options: TeamSyncCommandOptions): Promise<void>;
|
|
3223
|
-
|
|
3224
3304
|
declare const COLLABORATION_STATE_RELATIVE_PATH: string;
|
|
3225
3305
|
type CollaborationGuardActionKind = "safe_to_ack" | "needs_handoff" | "needs_test" | "needs_package_review" | "blocking_conflict" | "guard_unavailable";
|
|
3226
3306
|
interface CollaborationGuardActionCard {
|
|
@@ -3646,4 +3726,4 @@ declare function buildOrchestratorHandoff(options: OrchestratorHandoffOptions):
|
|
|
3646
3726
|
declare function buildAdaptiveWorkRoutingRecommendation(options: AdaptiveWorkRoutingOptions): AdaptiveWorkRoutingRecommendation;
|
|
3647
3727
|
declare function writeOrchestratorHandoff(options: OrchestratorHandoffOptions): WrittenOrchestratorHandoff;
|
|
3648
3728
|
|
|
3649
|
-
export { AUTOMATION_MANIFEST_RELATIVE_PATH, AutomationInstallConflictError, AutomationUnsupportedHookBundleError, COLLABORATION_STATE_RELATIVE_PATH, ENGINEERING_LEAD_EXECUTION_RECEIPT_STAGES, ENGINEERING_LEAD_EXECUTION_RECEIPT_STATUSES, ENGINEERING_LEAD_POSTURES, ENGINEERING_LEAD_PROOF_VERIFICATION_SOURCES, ENGINEERING_LEAD_PROOF_VERIFICATION_STATUSES, ENGINEERING_LEAD_ROUTING_MODES, ENGINEERING_LEAD_STATUSES, ENGINEERING_LEAD_SUPERVISION_STATUSES, ENGINEERING_LEAD_WORKER_ROLES, ENGINEERING_LEAD_WORK_PACKAGE_STATUSES, 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, buildCompanionEngineeringLeadPlanReport, buildContextPackStats, buildEvalCaseArtifact, buildGeneratedWorkflowPlanDocument, buildHostedCodeOverlayUploadPayload, buildHostedGuardPayload, buildJournalCheckpointEntry, buildLocalCallersResult, buildLocalCodeOverlay, buildLocalContextPackReceipt, buildLocalContextPackReceipts, buildLocalImpactResult, buildLocalImportsResult, buildLocalNeighborsResult, buildLocalShortestPathResult, buildLocalSourceSnapshot, buildLocalSourceStatus, buildLocalSourceSyncResult, 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, compareLocalSourceSnapshots, completeTeamSyncStateFromEvidence, completeTeamSyncWorkFromEvidence, contextPackCleanCommand, contextPackPackCommand, contextPackRetrieveCommand, contextPackStatsCommand, createClient, createEmptyCollaborationState, createEmptyTeamSyncState, createLocalQueryCache, deriveLocalCollaborationResourcesFromFiles, detectReleaseSurfacesFromFiles, detectRuntimeEnvironment, evalExportCommand, evalRunCommand, evaluateProjectPolicyGates, extractCommandFromToolInput, extractFilesFromToolInput, formatAgentReadinessAuditReport, formatCompanionEngineeringLeadPlanReport, formatOrchestratorRecommendationReason, formatPolicyGateDecision, formatProjectJudgmentCard, formatStuckGuardDecision, getAutomationManifestPath, getAutomationStatus, getCollaborationStatePath, getConfigPath, getContextPackStoragePaths, getLocalCodeOverlayCachePath, getLocalCodePromotionStatePath, getLocalSourceSnapshotPath, getOrchestratorRecommendation, getPlanStepDisplayTitle, getStagedFiles, getStuckGuardInjection, getTeamSyncStatePath, ingestReferences, installAutomationBundle, leadPlanCommand, listProjectsForApiKey, loadAutomationManifest, loadCollaborationState, loadConfig, loadTeamSyncState, memoryAuditCommand, memoryCleanCandidatesCommand, memoryCompactCommand, memoryHealthCommand, memoryLocalCommand, normalizeCollaborationFiles, normalizeGuardTag, normalizeWorkflowPlanInput, packContext, parseCollaborationResources, projectIntelligenceBriefCommand, projectIntelligenceRunCommand, readLocalCodeOverlayCache, readLocalCodePromotionState, readLocalSourceSnapshot, referencesIngestCommand, referencesScanCommand, resolveContextPackRecord, resolveFullWorkflowTokenBudget, resolveQueryFromToolInput, retrieveContextPack, runMemoryGuardCheck, saveCollaborationState, saveConfig, saveTeamSyncState, scanReferences, shouldSuggestOrchestratorForWorkflow, shouldSuggestRuntimeForWorkflow, summarizeLocalCodeOverlay, teamSyncSweepCommand, validatePlanResult, verifyCommand, writeLocalCodeOverlayCache, writeLocalCodePromotionState, writeLocalSourceSnapshot, writeOrchestratorHandoff };
|
|
3729
|
+
export { AUTOMATION_MANIFEST_RELATIVE_PATH, AutomationInstallConflictError, AutomationUnsupportedHookBundleError, COLLABORATION_STATE_RELATIVE_PATH, ENGINEERING_LEAD_EXECUTION_RECEIPT_STAGES, ENGINEERING_LEAD_EXECUTION_RECEIPT_STATUSES, ENGINEERING_LEAD_POSTURES, ENGINEERING_LEAD_PROOF_VERIFICATION_SOURCES, ENGINEERING_LEAD_PROOF_VERIFICATION_STATUSES, ENGINEERING_LEAD_ROUTING_MODES, ENGINEERING_LEAD_STATUSES, ENGINEERING_LEAD_SUPERVISION_STATUSES, ENGINEERING_LEAD_WORKER_ROLES, ENGINEERING_LEAD_WORK_PACKAGE_STATUSES, ORCHESTRATOR_HANDOFF_RELATIVE_PATH, TEAM_SYNC_STATE_RELATIVE_PATH, WORKFLOW_PLANS_RELATIVE_DIR, WORKFLOW_STATE_RELATIVE_PATH, addLocalWorker, agentReadinessAuditCommand, archiveInactiveTeamSyncWork, attachLocalContextPackReceipts, autoArchiveTeamSyncState, buildAdaptiveWorkRoutingRecommendation, buildAgentReadinessAuditReport, buildAgenticHandoffMarkdown, buildAgenticTimeline, buildAgenticWorkStatus, buildAutomationInstallPlan, buildCanonicalEvent, buildCodeHooksInstallPlan, buildCodePromotionResult, buildCodeStatusResult, buildCodeSyncResult, buildCollaborationActor, buildCollaborationGuardActionCards, buildCollaborationHooksInstallPlan, buildCompanionEngineeringLeadPlanReport, buildContextPackStats, buildEvalCaseArtifact, buildGeneratedWorkflowPlanDocument, buildHostedCodeOverlayUploadPayload, buildHostedGuardPayload, buildJournalCheckpointEntry, buildLocalCallersResult, buildLocalCodeOverlay, buildLocalContextPackReceipt, buildLocalContextPackReceipts, buildLocalImpactResult, buildLocalImportsResult, buildLocalNeighborsResult, buildLocalShortestPathResult, buildLocalSourceSnapshot, buildLocalSourceStatus, buildLocalSourceSyncResult, 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, compareLocalSourceSnapshots, completeTeamSyncStateFromEvidence, completeTeamSyncWorkFromEvidence, contextPackCleanCommand, contextPackPackCommand, contextPackRetrieveCommand, contextPackStatsCommand, createClient, createEmptyCollaborationState, createEmptyTeamSyncState, createLocalQueryCache, deriveLocalCollaborationResourcesFromFiles, detectReleaseSurfacesFromFiles, detectRuntimeEnvironment, evalExportCommand, evalRunCommand, evaluateProjectPolicyGates, extractCommandFromToolInput, extractFilesFromToolInput, formatAgentReadinessAuditReport, formatCompanionEngineeringLeadPlanReport, formatOrchestratorRecommendationReason, formatPolicyGateDecision, formatProjectJudgmentCard, formatStuckGuardDecision, getAutomationManifestPath, getAutomationStatus, getCollaborationStatePath, getConfigPath, getContextPackStoragePaths, getLocalCodeOverlayCachePath, getLocalCodePromotionStatePath, getLocalSourceSnapshotPath, getOrchestratorRecommendation, getPlanStepDisplayTitle, getStagedFiles, getStuckGuardInjection, getTeamSyncStatePath, ingestReferences, installAutomationBundle, leadPlanCommand, listProjectsForApiKey, loadAutomationManifest, loadCollaborationState, loadConfig, loadTeamSyncState, memoryAuditCommand, memoryCleanCandidatesCommand, memoryCompactCommand, memoryHealthCommand, memoryLocalCommand, normalizeCollaborationFiles, normalizeGuardTag, normalizeWorkflowPlanInput, packContext, parseCollaborationResources, projectIntelligenceBriefCommand, projectIntelligenceRunCommand, readLocalCodeOverlayCache, readLocalCodePromotionState, readLocalSourceSnapshot, readLocalWorkersConfig, referencesIngestCommand, referencesScanCommand, resolveContextPackRecord, resolveFullWorkflowTokenBudget, resolveLocalWorkerRoutingDefaults, resolveQueryFromToolInput, retrieveContextPack, runMemoryGuardCheck, saveCollaborationState, saveConfig, saveTeamSyncState, scanReferences, shouldSuggestOrchestratorForWorkflow, shouldSuggestRuntimeForWorkflow, summarizeLocalCodeOverlay, teamSyncSweepCommand, validatePlanResult, verifyCommand, workersLocalAddCommand, workersLocalStatusCommand, writeLocalCodeOverlayCache, writeLocalCodePromotionState, writeLocalSourceSnapshot, writeOrchestratorHandoff };
|