snipara-companion 3.2.32 → 3.3.0

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 CHANGED
@@ -2,6 +2,35 @@
2
2
 
3
3
  Release notes for `snipara-companion`, newest first.
4
4
 
5
+ ## New In 3.3.0
6
+
7
+ - Adds reviewed, scoped Worker Trust Promotion commands: `workers trust
8
+ candidate`, `workers trust review`, and `workers trust status`. Promotion is
9
+ bound to one worker profile hash, work category, write scope, expiry, and
10
+ human Decision Request.
11
+ - Hardens `workers execute` with shell-free repeatable `--command-arg` argv,
12
+ explicit proof requirements, conservative category escalation, provider/model
13
+ telemetry, and exact trust-event consumption for delegated low-risk work.
14
+ - Keeps execution fail closed: explicit `--execute`, proof, scope validation,
15
+ current profile identity, and post-run verification remain mandatory; auth,
16
+ billing, schema, release, deploy, destructive, and mismatched scopes cannot
17
+ inherit delegated trust.
18
+
19
+ ## New In 3.2.33
20
+
21
+ - Turns `final-commit` into a structured closeout report with seven stable
22
+ sections: what changed, why, evidence, retained decisions, decisions proposed
23
+ for review, items not persisted, and risks plus the next step.
24
+ - Writes the same versioned, redacted report to
25
+ `.snipara/workflow/final-report.json` and includes its path and SHA-256 hash in
26
+ JSON output for automation and handoff verification.
27
+ - Retains phase commit and Why Capture receipts across a managed workflow so the
28
+ report distinguishes durable stored knowledge from pending review candidates,
29
+ duplicates, failures, and handoff-only content.
30
+ - Adds `--why`, repeatable `--evidence <status:text>`, repeatable `--risk`, and
31
+ `--next-step` to both final-commit entry points while preserving the existing
32
+ handoff-only memory policy.
33
+
5
34
  ## New In 3.2.32
6
35
 
7
36
  - Promotes a Hosted MCP `servedJudgmentId` into the first-class Project
package/README.md CHANGED
@@ -209,6 +209,25 @@ valid:
209
209
  npx -y snipara-companion workers local remove local-openai-gpt-oss-20b
210
210
  ```
211
211
 
212
+ Reviewed trust is separate from registration. Compute a scoped candidate from
213
+ accepted, source-backed real-work receipts, emit a Decision Request, and inspect
214
+ the resulting expiring event:
215
+
216
+ ```bash
217
+ npx -y snipara-companion workers trust candidate --emit-decision-requests --json
218
+ npx -y snipara-companion workers trust review \
219
+ --request-id decision-abc123 \
220
+ --choice approve \
221
+ --reviewer alice \
222
+ --expires-in-days 30
223
+ npx -y snipara-companion workers trust status --json
224
+ ```
225
+
226
+ Benchmarks, fixtures, model names, and self-attestation never promote a worker.
227
+ Even `delegated_earned` is limited to the exact low-risk category, profile hash,
228
+ write scope, and expiry. It removes only a repeated approval receipt; explicit
229
+ execution, proof, verification, and all sensitive/release gates remain.
230
+
212
231
  ## Agent Continuity
213
232
 
214
233
  After the first impact check, keep the work resumable:
@@ -260,8 +279,29 @@ size, reviewed/rejected/unreviewed counts, invalid artifacts, and calibration
260
279
  caveats before any future hard gate. The report also joins attributed gated
261
280
  receipts from `.snipara/orchestrator/executions/` with persisted supervisor
262
281
  reviews, then emits `workerReceipts` and a per-`workerId`/`workCategory`
263
- `workerTrust` breakdown. This is observability only: every pair remains
264
- `probation_supervised` and `hardGateReady=false`.
282
+ `workerTrust` breakdown. That report is observability only. The separate
283
+ `workers trust candidate/review/status` flow can write a reviewed event after
284
+ the evidence thresholds and human Decision Request pass; it never promotes from
285
+ the report alone.
286
+
287
+ `final-commit` also prints a stable seven-section closeout report:
288
+
289
+ 1. What changed
290
+ 2. Why
291
+ 3. Evidence
292
+ 4. Decisions kept
293
+ 5. Decisions proposed for review
294
+ 6. Not persisted
295
+ 7. Risks and next step
296
+
297
+ Pass an explicit rationale with `--why`, repeatable verification receipts with
298
+ `--evidence <status:text>`, remaining risks with `--risk`, and the recommended
299
+ follow-up with `--next-step`. Supported evidence statuses are `passed`,
300
+ `failed`, `not-run`, and `unknown`; evidence without a status remains
301
+ `unknown`. The same redacted, versioned report is written to
302
+ `.snipara/workflow/final-report.json`, and `--json` includes the report plus its
303
+ artifact path and SHA-256 hash. Stored phase outcomes appear under decisions
304
+ kept, while Why Capture candidates remain explicitly pending review.
265
305
  The report also recognizes exported PR Answer Pack decision-capture artifacts
266
306
  with producer kind `pr_answer_pack_decision_capture`, so calibration can track
267
307
  more than the workflow producer once those artifacts are present locally.
@@ -364,4 +404,6 @@ When project auth is configured, `workflow phase-commit`, `final-commit`, and
364
404
  read-only preview and confirms only when the server detects durable rationale.
365
405
  Confirmed candidates enter the pending review queue; capture failures remain
366
406
  visible but do not block the primary workflow command. No documentation prompt
367
- is shown.
407
+ is shown. `final-commit` remains handoff-only: the report explains what was
408
+ stored or proposed, but it does not approve pending candidates or write final
409
+ summary text as durable memory.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { AdvisorInfluenceLifecycle, ProjectIntentDetectionResult, ProjectPolicyDecision, ProjectRealityCheckResult, ContextMutationPlan, ContextMutationApplyReceipt, ProjectContextValidationReport, ProjectDriftReport, ProjectIntelligenceEngineeringLeadPlanSummary, ProjectPolicyRule, DecisionRequest, AdvisorInfluenceLifecycleState, OutcomeIntelligenceCalibration, ControlledWorkerExecutionMode, ControlledWorkerExecutionReceipt, UnifiedReceiptEnvelope } from '@snipara/project-intelligence-contracts';
2
+ import { AdvisorInfluenceLifecycle, ProjectIntentDetectionResult, ProjectPolicyDecision, ProjectRealityCheckResult, ContextMutationPlan, ContextMutationApplyReceipt, ProjectContextValidationReport, ProjectDriftReport, ProjectIntelligenceEngineeringLeadPlanSummary, ProjectPolicyRule, DecisionRequest, AdvisorInfluenceLifecycleState, OutcomeIntelligenceCalibration, 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
 
@@ -461,6 +461,34 @@ interface WhyCaptureResult {
461
461
  confirmed: boolean;
462
462
  candidateCount: number;
463
463
  capturedCount?: number;
464
+ candidates?: Array<{
465
+ content?: string;
466
+ type?: string;
467
+ category?: string;
468
+ reviewNotes?: string;
469
+ whyFields?: {
470
+ decision?: string | null;
471
+ why?: string | null;
472
+ outcome?: string | null;
473
+ };
474
+ }>;
475
+ memories?: Array<{
476
+ id?: string;
477
+ memory_id?: string;
478
+ content?: string;
479
+ type?: string;
480
+ category?: string;
481
+ reviewStatus?: string;
482
+ review_status?: string;
483
+ }>;
484
+ decisionCapture?: {
485
+ createdCount?: number;
486
+ duplicateCount?: number;
487
+ failedCount?: number;
488
+ created?: Array<Record<string, unknown>>;
489
+ duplicates?: Array<Record<string, unknown>>;
490
+ failed?: Array<Record<string, unknown>>;
491
+ };
464
492
  }
465
493
  interface JournalAppendResult {
466
494
  success?: boolean;
@@ -3550,6 +3578,180 @@ declare function getTeamSyncStatePath(rootDir?: string): string;
3550
3578
  declare function buildAgenticHandoffMarkdown(artifact: AgenticHandoffArtifact): string;
3551
3579
  declare function teamSyncSweepCommand(options: TeamSyncCommandOptions): Promise<void>;
3552
3580
 
3581
+ interface CompanionWhyCaptureCandidate {
3582
+ text: string;
3583
+ type?: string;
3584
+ category?: string;
3585
+ decision?: string;
3586
+ rationale?: string;
3587
+ }
3588
+ interface CompanionWhyCaptureMemory {
3589
+ memoryId?: string;
3590
+ text: string;
3591
+ type?: string;
3592
+ category?: string;
3593
+ reviewStatus?: string;
3594
+ }
3595
+ interface CompanionWhyCaptureIssue {
3596
+ text: string;
3597
+ reason?: string;
3598
+ }
3599
+ interface CompanionWhyCaptureReceipt {
3600
+ status: "captured" | "no_candidates" | "skipped" | "error";
3601
+ sourceKind: WhyCaptureSourceKind;
3602
+ previewCandidateCount: number;
3603
+ capturedCount: number;
3604
+ previewCandidates: CompanionWhyCaptureCandidate[];
3605
+ pendingMemories: CompanionWhyCaptureMemory[];
3606
+ duplicates: CompanionWhyCaptureIssue[];
3607
+ failed: CompanionWhyCaptureIssue[];
3608
+ commitSha?: string;
3609
+ error?: string;
3610
+ }
3611
+
3612
+ declare const FINAL_COMMIT_REPORT_VERSION: "snipara.final_commit_report.v1";
3613
+ declare const FINAL_COMMIT_REPORT_RELATIVE_PATH: string;
3614
+ type FinalCommitOutcome = "completed" | "partial" | "blocked" | "abandoned";
3615
+ type FinalCommitEvidenceStatus = "passed" | "failed" | "not_run" | "unknown";
3616
+ interface FinalCommitMemoryItem {
3617
+ memoryId?: string;
3618
+ text: string;
3619
+ type?: string;
3620
+ category?: string;
3621
+ reason?: string;
3622
+ reviewStatus?: string;
3623
+ source: "phase_commit" | "why_capture";
3624
+ phaseId?: string;
3625
+ }
3626
+ interface WorkflowPhaseCommitReceipt {
3627
+ phaseId: string;
3628
+ capturedAt: string;
3629
+ category: string;
3630
+ outcome: FinalCommitOutcome;
3631
+ hostedStatus: "processed" | "local_fallback";
3632
+ stored: FinalCommitMemoryItem[];
3633
+ skipped: FinalCommitMemoryItem[];
3634
+ whyCapture?: CompanionWhyCaptureReceipt;
3635
+ }
3636
+ interface FinalCommitReportPhase {
3637
+ id: string;
3638
+ title: string;
3639
+ status: string;
3640
+ summary?: string;
3641
+ outcome?: string;
3642
+ files: string[];
3643
+ }
3644
+ interface FinalCommitReportWorkflowState {
3645
+ workflowId: string;
3646
+ goal: string;
3647
+ status: string;
3648
+ createdAt: string;
3649
+ phases: Array<{
3650
+ id: string;
3651
+ title: string;
3652
+ status: string;
3653
+ summary?: string;
3654
+ outcome?: string;
3655
+ files?: string[];
3656
+ }>;
3657
+ phaseCommitReceipts?: WorkflowPhaseCommitReceipt[];
3658
+ runtime?: {
3659
+ sandbox?: {
3660
+ bindings?: Array<{
3661
+ lastCheckpoint?: {
3662
+ commands?: string[];
3663
+ };
3664
+ }>;
3665
+ };
3666
+ };
3667
+ }
3668
+ interface FinalCommitEvidenceItem {
3669
+ status: FinalCommitEvidenceStatus;
3670
+ text: string;
3671
+ source: "explicit" | "runtime_checkpoint";
3672
+ }
3673
+ interface FinalCommitNotPersistedItem {
3674
+ text: string;
3675
+ reason: string;
3676
+ source: "phase_commit" | "why_capture" | "final_commit";
3677
+ }
3678
+ interface FinalCommitReportV1 {
3679
+ version: typeof FINAL_COMMIT_REPORT_VERSION;
3680
+ generatedAt: string;
3681
+ workflowId?: string;
3682
+ outcome: FinalCommitOutcome;
3683
+ changed: {
3684
+ summary: string;
3685
+ files: string[];
3686
+ phases: FinalCommitReportPhase[];
3687
+ repository: {
3688
+ branch?: string;
3689
+ head?: string;
3690
+ dirty: boolean;
3691
+ dirtyFiles: string[];
3692
+ };
3693
+ };
3694
+ rationale: {
3695
+ status: "provided" | "captured" | "missing";
3696
+ text?: string;
3697
+ source: "explicit" | "why_capture" | "none";
3698
+ };
3699
+ evidence: {
3700
+ items: FinalCommitEvidenceItem[];
3701
+ counts: Record<FinalCommitEvidenceStatus, number>;
3702
+ };
3703
+ retainedDecisions: {
3704
+ status: "confirmed" | "none" | "unavailable";
3705
+ items: FinalCommitMemoryItem[];
3706
+ note?: string;
3707
+ };
3708
+ pendingDecisions: {
3709
+ status: "pending_review" | "none" | "unavailable";
3710
+ items: FinalCommitMemoryItem[];
3711
+ note?: string;
3712
+ };
3713
+ notPersisted: {
3714
+ items: FinalCommitNotPersistedItem[];
3715
+ };
3716
+ closeout: {
3717
+ risks: string[];
3718
+ nextStep: string;
3719
+ };
3720
+ caveats: string[];
3721
+ }
3722
+ interface FinalCommitReportArtifact {
3723
+ status: "written" | "error";
3724
+ version: typeof FINAL_COMMIT_REPORT_VERSION;
3725
+ path?: string;
3726
+ relativePath: typeof FINAL_COMMIT_REPORT_RELATIVE_PATH;
3727
+ hash?: string;
3728
+ error?: string;
3729
+ }
3730
+ interface BuildFinalCommitReportInput {
3731
+ state?: FinalCommitReportWorkflowState;
3732
+ summary: string;
3733
+ why?: string;
3734
+ outcome: FinalCommitOutcome;
3735
+ files?: string[];
3736
+ evidence?: string[];
3737
+ risks?: string[];
3738
+ nextStep?: string;
3739
+ whyCapture: CompanionWhyCaptureReceipt;
3740
+ finalCommitResult: Record<string, unknown>;
3741
+ cwd?: string;
3742
+ now?: Date;
3743
+ }
3744
+ declare function buildWorkflowPhaseCommitReceipt(input: {
3745
+ phaseId: string;
3746
+ category: string;
3747
+ outcome: FinalCommitOutcome;
3748
+ result: Record<string, unknown>;
3749
+ capturedAt?: string;
3750
+ }): WorkflowPhaseCommitReceipt;
3751
+ declare function buildFinalCommitReport(input: BuildFinalCommitReportInput): FinalCommitReportV1;
3752
+ declare function writeFinalCommitReport(report: FinalCommitReportV1, cwd?: string): FinalCommitReportArtifact;
3753
+ declare function formatFinalCommitReport(report: FinalCommitReportV1): string;
3754
+
3553
3755
  type SyncDocumentKind = "DOC" | "BINARY";
3554
3756
  type WorkflowMode = "lite" | "standard" | "auto" | "full" | "orchestrate";
3555
3757
  type OnboardFolderMode = "auto" | "business_context" | "code_project" | "mixed";
@@ -3766,6 +3968,8 @@ interface ManagedWorkflowState {
3766
3968
  phases: ManagedWorkflowPhase[];
3767
3969
  runtime?: ManagedWorkflowRuntimeState;
3768
3970
  coordination?: ManagedWorkflowCoordinationState;
3971
+ phaseCommitReceipts?: WorkflowPhaseCommitReceipt[];
3972
+ finalReport?: FinalCommitReportArtifact;
3769
3973
  lastCommit?: {
3770
3974
  category: string;
3771
3975
  outcome: TaskCommitOutcome;
@@ -4364,12 +4568,18 @@ interface ControlledWorkerExecuteOptions {
4364
4568
  endpointType?: "local" | "cloud" | "self_hosted" | "unknown";
4365
4569
  mode?: ControlledWorkerExecutionMode;
4366
4570
  command?: string;
4571
+ commandArgs?: string[];
4367
4572
  execute?: boolean;
4368
4573
  approvalReceipt?: string;
4369
4574
  outcomeReceipt?: string;
4370
4575
  writeScope?: string[];
4371
4576
  acceptance?: string[];
4372
4577
  proof?: string[];
4578
+ workCategory?: WorkerTrustCategory;
4579
+ trustEvent?: string;
4580
+ profileHash?: string;
4581
+ provider?: string;
4582
+ model?: string;
4373
4583
  output?: string;
4374
4584
  projectId?: string;
4375
4585
  unifiedOutput?: string;
@@ -4386,6 +4596,35 @@ interface ControlledWorkerExecuteResult {
4386
4596
  }
4387
4597
  declare function controlledWorkerExecuteCommand(options: ControlledWorkerExecuteOptions): ControlledWorkerExecuteResult;
4388
4598
 
4599
+ interface WorkerTrustCandidateOptions {
4600
+ workerId?: string;
4601
+ workCategory?: string;
4602
+ emitDecisionRequests?: boolean;
4603
+ dir?: string;
4604
+ json?: boolean;
4605
+ }
4606
+ interface WorkerTrustReviewOptions {
4607
+ requestId: string;
4608
+ choice: "approve" | "keep_supervised" | "demote";
4609
+ reviewer: string;
4610
+ note?: string;
4611
+ expiresInDays?: number;
4612
+ dir?: string;
4613
+ json?: boolean;
4614
+ }
4615
+ interface WorkerTrustStatusOptions {
4616
+ workerId?: string;
4617
+ workCategory?: string;
4618
+ dir?: string;
4619
+ json?: boolean;
4620
+ }
4621
+ declare function workerTrustCandidateCommand(options?: WorkerTrustCandidateOptions): unknown;
4622
+ declare function workerTrustReviewCommand(options: WorkerTrustReviewOptions): unknown;
4623
+ declare function workerTrustStatusCommand(options?: WorkerTrustStatusOptions): unknown;
4624
+ declare function buildWorkerTrustCandidates(cwd: string): WorkerTrustCandidate[];
4625
+ declare function readWorkerTrustEvent(cwd: string, workerId: string, workCategory: WorkerTrustCategory): WorkerTrustEvent | null;
4626
+ declare function hashWorkerProfile(profile: WorkerProfile): string;
4627
+
4389
4628
  declare const MANIFEST_VERSION = "snipara.references.v1";
4390
4629
  type ReferenceStatus = "allowed" | "pending" | "denied" | "unsupported";
4391
4630
  interface ReferenceOccurrence {
@@ -4605,4 +4844,4 @@ declare function installAutomationBundle(args: {
4605
4844
  }): Promise<AutomationInstallResult>;
4606
4845
  declare function getAutomationStatus(projectDir?: string): AutomationStatusResult;
4607
4846
 
4608
- export { AUTOMATION_MANIFEST_RELATIVE_PATH, AutomationInstallConflictError, AutomationUnsupportedHookBundleError, CODING_INTELLIGENCE_LEDGER_VERSION, 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, POLICY_LEDGER_SYNC_REPORT_VERSION, PRODUCER_LOOP_ARTIFACT_VERSION, PRODUCER_LOOP_RELATIVE_DIR, PRODUCER_LOOP_REPORT_VERSION, TEAM_SYNC_STATE_RELATIVE_PATH, WHY_OUTCOME_CAPTURE_VERSION, WORKFLOW_PLANS_RELATIVE_DIR, WORKFLOW_STATE_RELATIVE_PATH, addLocalWorker, agentReadinessAuditCommand, appendActivityEvent, applyLocalContextMutationPlan, archiveInactiveTeamSyncWork, attachLocalContextPackReceipts, autoArchiveTeamSyncState, buildAdaptiveWorkRoutingRecommendation, buildAgentReadinessAuditReport, buildAgenticHandoffMarkdown, buildAgenticTimeline, buildAgenticWorkStatus, buildAutomationInstallPlan, buildCanonicalEvent, buildCodeHooksInstallPlan, buildCodePromotionResult, buildCodeStatusResult, buildCodeSyncResult, buildCodingIntelligenceLedger, buildCollaborationActor, buildCollaborationGuardActionCards, buildCollaborationHooksInstallPlan, buildCommitResultMetadata, buildCompanionEngineeringLeadPlanReport, buildContextPackStats, buildEvalCaseArtifact, buildGeneratedWorkflowPlanDocument, buildHostedCodeOverlayUploadPayload, buildHostedGuardPayload, buildJournalCheckpointEntry, buildLocalCallersResult, buildLocalCodeOverlay, buildLocalContextMutationPlan, buildLocalContextPackReceipt, buildLocalContextPackReceipts, buildLocalImpactResult, buildLocalImportsResult, buildLocalNeighborsResult, buildLocalProjectContextValidationReport, buildLocalProjectDriftReport, buildLocalProjectRealityCheck, buildLocalShortestPathResult, buildLocalSourceSnapshot, buildLocalSourceStatus, buildLocalSourceSyncResult, buildMemoryAudit, buildOnboardFolderManifest, buildOrchestratorHandoff, buildPolicyLedgerSyncReport, buildProducerLoopReport, buildProjectIntelligenceBrief, buildProjectIntelligenceRun, buildProjectJudgmentCard, buildSessionBootstrapBrief, buildSessionBootstrapQuality, buildSessionSnapshot, buildSyncDocumentsDryRun, buildTeamSyncHandoffRecord, buildTeamSyncStartWorkRecord, buildTeamSyncSummary, buildToolCallPayload, buildToolResultPayload, buildVerificationPlan, buildWhyOutcomeCaptureReport, buildWorkflowImpactGate, buildWorkflowPhaseCommitSummary, buildWorkflowPlanScaffold, categoryFromGuardTag, classifyToolResult, cleanContextPacks, codingLedgerExportCommand, collaborationIdeStatusCommand, collectAgentReadinessLocalSignals, collectPolicyLedgerSyncArtifacts, collectSyncDocuments, collectSyncDocumentsInput, compactHostedGuardResources, compareLocalSourceSnapshots, completeTeamSyncStateFromEvidence, completeTeamSyncWorkFromEvidence, contextControlApplyCommand, contextControlDriftCommand, contextControlPlanCommand, contextControlValidateCommand, contextPackCleanCommand, contextPackPackCommand, contextPackRetrieveCommand, contextPackStatsCommand, controlledWorkerExecuteCommand, 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, memoryReviewsCommand, normalizeCollaborationFiles, normalizeGuardTag, normalizeWorkflowPlanInput, outcomeCapturePreviewCommand, packContext, parseCollaborationResources, projectIntelligenceBriefCommand, projectIntelligenceRunCommand, readActivityTimeline, readLocalCodeOverlayCache, readLocalCodePromotionState, readLocalSourceSnapshot, readLocalWorkersConfig, readSessionSnapshot, realityCheckCommand, referencesIngestCommand, referencesScanCommand, resolveAutoWorkflowMode, resolveContextPackRecord, resolveFullWorkflowTokenBudget, resolveLocalWorkerRoutingDefaults, resolveQueryFromToolInput, retrieveContextPack, runMemoryGuardCheck, saveCollaborationState, saveConfig, saveTeamSyncState, scanReferences, shouldFailCollaborationGuard, shouldSuggestOrchestratorForWorkflow, shouldSuggestRuntimeForWorkflow, summarizeLocalCodeOverlay, teamSyncSweepCommand, validatePlanResult, verifyCommand, workersLocalAddCommand, workersLocalListCommand, workersLocalProbePrintCommand, workersLocalRemoveCommand, workersLocalStatusCommand, workflowSyncPolicyLedgerCommand, writeLocalCodeOverlayCache, writeLocalCodePromotionState, writeLocalSourceSnapshot, writeOrchestratorHandoff, writeProducerLoopArtifact, writeSessionSnapshot };
4847
+ export { AUTOMATION_MANIFEST_RELATIVE_PATH, AutomationInstallConflictError, AutomationUnsupportedHookBundleError, CODING_INTELLIGENCE_LEDGER_VERSION, 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, FINAL_COMMIT_REPORT_RELATIVE_PATH, FINAL_COMMIT_REPORT_VERSION, ORCHESTRATOR_HANDOFF_RELATIVE_PATH, POLICY_LEDGER_SYNC_REPORT_VERSION, PRODUCER_LOOP_ARTIFACT_VERSION, PRODUCER_LOOP_RELATIVE_DIR, PRODUCER_LOOP_REPORT_VERSION, TEAM_SYNC_STATE_RELATIVE_PATH, WHY_OUTCOME_CAPTURE_VERSION, WORKFLOW_PLANS_RELATIVE_DIR, WORKFLOW_STATE_RELATIVE_PATH, addLocalWorker, agentReadinessAuditCommand, appendActivityEvent, applyLocalContextMutationPlan, archiveInactiveTeamSyncWork, attachLocalContextPackReceipts, autoArchiveTeamSyncState, buildAdaptiveWorkRoutingRecommendation, buildAgentReadinessAuditReport, buildAgenticHandoffMarkdown, buildAgenticTimeline, buildAgenticWorkStatus, buildAutomationInstallPlan, buildCanonicalEvent, buildCodeHooksInstallPlan, buildCodePromotionResult, buildCodeStatusResult, buildCodeSyncResult, buildCodingIntelligenceLedger, buildCollaborationActor, buildCollaborationGuardActionCards, buildCollaborationHooksInstallPlan, buildCommitResultMetadata, buildCompanionEngineeringLeadPlanReport, buildContextPackStats, buildEvalCaseArtifact, buildFinalCommitReport, buildGeneratedWorkflowPlanDocument, buildHostedCodeOverlayUploadPayload, buildHostedGuardPayload, buildJournalCheckpointEntry, buildLocalCallersResult, buildLocalCodeOverlay, buildLocalContextMutationPlan, buildLocalContextPackReceipt, buildLocalContextPackReceipts, buildLocalImpactResult, buildLocalImportsResult, buildLocalNeighborsResult, buildLocalProjectContextValidationReport, buildLocalProjectDriftReport, buildLocalProjectRealityCheck, buildLocalShortestPathResult, buildLocalSourceSnapshot, buildLocalSourceStatus, buildLocalSourceSyncResult, buildMemoryAudit, buildOnboardFolderManifest, buildOrchestratorHandoff, buildPolicyLedgerSyncReport, buildProducerLoopReport, buildProjectIntelligenceBrief, buildProjectIntelligenceRun, buildProjectJudgmentCard, buildSessionBootstrapBrief, buildSessionBootstrapQuality, buildSessionSnapshot, buildSyncDocumentsDryRun, buildTeamSyncHandoffRecord, buildTeamSyncStartWorkRecord, buildTeamSyncSummary, buildToolCallPayload, buildToolResultPayload, buildVerificationPlan, buildWhyOutcomeCaptureReport, buildWorkerTrustCandidates, buildWorkflowImpactGate, buildWorkflowPhaseCommitReceipt, buildWorkflowPhaseCommitSummary, buildWorkflowPlanScaffold, categoryFromGuardTag, classifyToolResult, cleanContextPacks, codingLedgerExportCommand, collaborationIdeStatusCommand, collectAgentReadinessLocalSignals, collectPolicyLedgerSyncArtifacts, collectSyncDocuments, collectSyncDocumentsInput, compactHostedGuardResources, compareLocalSourceSnapshots, completeTeamSyncStateFromEvidence, completeTeamSyncWorkFromEvidence, contextControlApplyCommand, contextControlDriftCommand, contextControlPlanCommand, contextControlValidateCommand, contextPackCleanCommand, contextPackPackCommand, contextPackRetrieveCommand, contextPackStatsCommand, controlledWorkerExecuteCommand, createClient, createEmptyCollaborationState, createEmptyTeamSyncState, createLocalQueryCache, deriveLocalCollaborationResourcesFromFiles, detectReleaseSurfacesFromFiles, detectRuntimeEnvironment, evalExportCommand, evalRunCommand, evaluateProjectPolicyGates, extractCommandFromToolInput, extractFilesFromToolInput, formatAgentReadinessAuditReport, formatCompanionEngineeringLeadPlanReport, formatFinalCommitReport, formatOrchestratorRecommendationReason, formatPolicyGateDecision, formatProjectJudgmentCard, formatStuckGuardDecision, getAutomationManifestPath, getAutomationStatus, getCollaborationStatePath, getConfigPath, getContextPackStoragePaths, getLocalCodeOverlayCachePath, getLocalCodePromotionStatePath, getLocalSourceSnapshotPath, getOrchestratorRecommendation, getPlanStepDisplayTitle, getStagedFiles, getStuckGuardInjection, getTeamSyncStatePath, hashWorkerProfile, ingestReferences, installAutomationBundle, leadPlanCommand, listProjectsForApiKey, loadAutomationManifest, loadCollaborationState, loadConfig, loadTeamSyncState, memoryAuditCommand, memoryCleanCandidatesCommand, memoryCompactCommand, memoryHealthCommand, memoryLocalCommand, memoryReviewsCommand, normalizeCollaborationFiles, normalizeGuardTag, normalizeWorkflowPlanInput, outcomeCapturePreviewCommand, packContext, parseCollaborationResources, projectIntelligenceBriefCommand, projectIntelligenceRunCommand, readActivityTimeline, readLocalCodeOverlayCache, readLocalCodePromotionState, readLocalSourceSnapshot, readLocalWorkersConfig, readSessionSnapshot, readWorkerTrustEvent, realityCheckCommand, referencesIngestCommand, referencesScanCommand, resolveAutoWorkflowMode, resolveContextPackRecord, resolveFullWorkflowTokenBudget, resolveLocalWorkerRoutingDefaults, resolveQueryFromToolInput, retrieveContextPack, runMemoryGuardCheck, saveCollaborationState, saveConfig, saveTeamSyncState, scanReferences, shouldFailCollaborationGuard, shouldSuggestOrchestratorForWorkflow, shouldSuggestRuntimeForWorkflow, summarizeLocalCodeOverlay, teamSyncSweepCommand, validatePlanResult, verifyCommand, workerTrustCandidateCommand, workerTrustReviewCommand, workerTrustStatusCommand, workersLocalAddCommand, workersLocalListCommand, workersLocalProbePrintCommand, workersLocalRemoveCommand, workersLocalStatusCommand, workflowSyncPolicyLedgerCommand, writeFinalCommitReport, writeLocalCodeOverlayCache, writeLocalCodePromotionState, writeLocalSourceSnapshot, writeOrchestratorHandoff, writeProducerLoopArtifact, writeSessionSnapshot };