@unson/brainbase-mcp 0.1.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.
@@ -0,0 +1,174 @@
1
+ import type { PersonalOs } from './types.js';
2
+ import { type OperationalizationPlan } from './operationalization.js';
3
+ export type OnboardingFormat = 'markdown' | 'json';
4
+ export type SourceArea = 'email' | 'calendar' | 'drive' | 'tasks';
5
+ export interface ConnectorRecommendation {
6
+ area: SourceArea;
7
+ input: string;
8
+ recommendation: string;
9
+ sourcePath: string;
10
+ importMode: 'metadata-first' | 'export-first' | 'manual' | 'not-configured';
11
+ setupHints: string[];
12
+ safetyNotes: string[];
13
+ }
14
+ export interface ConnectorRecommendationSet {
15
+ goal: string;
16
+ recommendations: ConnectorRecommendation[];
17
+ canonicalization: string[];
18
+ nextCommands: string[];
19
+ }
20
+ export type SourceDiagnosisStatus = 'ready' | 'needs_setup' | 'needs_input' | 'not_configured';
21
+ export interface SourceDiagnosis {
22
+ area: SourceArea;
23
+ input: string;
24
+ status: SourceDiagnosisStatus;
25
+ collector: string | null;
26
+ sourcePath: string;
27
+ writeTarget: string;
28
+ importMode: ConnectorRecommendation['importMode'];
29
+ requiredUserInput: string[];
30
+ setupCommands: string[];
31
+ safetyNotes: string[];
32
+ }
33
+ export interface SourceDiagnosisSet {
34
+ goal: string;
35
+ diagnostics: SourceDiagnosis[];
36
+ nextCommands: string[];
37
+ safetyRules: string[];
38
+ }
39
+ export interface AgentOnboardingProtocol {
40
+ goal: string;
41
+ interviewSections: Array<{
42
+ id: string;
43
+ title: string;
44
+ questions: string[];
45
+ }>;
46
+ safetyRules: string[];
47
+ nextCommands: string[];
48
+ completionCheck: string[];
49
+ }
50
+ export interface RecommendationInput {
51
+ email?: string;
52
+ calendar?: string;
53
+ drive?: string;
54
+ tasks?: string;
55
+ }
56
+ export interface SourceDiagnosisInput extends RecommendationInput {
57
+ dataDir: string;
58
+ gogCommand?: string;
59
+ gogAvailable?: boolean;
60
+ driveFolders?: string[];
61
+ }
62
+ export interface CandidateInput {
63
+ dataDir: string;
64
+ name?: string;
65
+ values?: string[];
66
+ projects?: string[];
67
+ relationships?: string[];
68
+ decisionPrinciples?: string[];
69
+ now?: string;
70
+ }
71
+ export interface OnboardingCandidate {
72
+ id: string;
73
+ kind: 'self' | 'value' | 'project' | 'relationship' | 'decision';
74
+ payload: Record<string, string | string[] | undefined>;
75
+ source: 'agent-interview';
76
+ promoted: false;
77
+ createdAt: string;
78
+ }
79
+ export interface CandidateDraftSet {
80
+ goal: string;
81
+ canonicalWrites: false;
82
+ candidatePath: string;
83
+ candidates: OnboardingCandidate[];
84
+ safetyRules: string[];
85
+ nextCommands: string[];
86
+ }
87
+ export interface LocalOnboardingPlanInput extends RecommendationInput {
88
+ profile?: string;
89
+ host?: string;
90
+ secondaryEmails?: string[];
91
+ driveFolders?: string[];
92
+ localFolders?: string[];
93
+ inactiveTaskTools?: string[];
94
+ }
95
+ export interface LocalOnboardingPlanStep {
96
+ id: string;
97
+ title: string;
98
+ commands: string[];
99
+ notes: string[];
100
+ }
101
+ export interface LocalOnboardingPlanSource {
102
+ area: SourceArea | 'local_files';
103
+ input: string;
104
+ collector: string;
105
+ importMode: ConnectorRecommendation['importMode'];
106
+ sourcePath: string;
107
+ accounts: string[];
108
+ allowlists: string[];
109
+ requiredUserInput: string[];
110
+ notes: string[];
111
+ }
112
+ export interface LocalOnboardingPlan {
113
+ goal: string;
114
+ profile: string;
115
+ canonicalWrites: false;
116
+ host: {
117
+ input: string;
118
+ role: string;
119
+ boundary: string;
120
+ };
121
+ sources: LocalOnboardingPlanSource[];
122
+ setupSteps: LocalOnboardingPlanStep[];
123
+ safetyRules: string[];
124
+ nextCommands: string[];
125
+ }
126
+ export interface ValueDemoInput {
127
+ os: PersonalOs;
128
+ scenario?: string;
129
+ }
130
+ export interface ValueDemo {
131
+ goal: string;
132
+ ready: boolean;
133
+ missing: string[];
134
+ scenario: string;
135
+ tryPrompt: string;
136
+ contextUsed: {
137
+ ownerName?: string;
138
+ self: string[];
139
+ work: string[];
140
+ relationships: Array<{
141
+ person: string;
142
+ role?: string;
143
+ context: string;
144
+ }>;
145
+ selectedRelationship?: {
146
+ person: string;
147
+ role?: string;
148
+ context: string;
149
+ };
150
+ decisions: Array<{
151
+ title: string;
152
+ decision: string;
153
+ }>;
154
+ };
155
+ answer: string;
156
+ sampleResult: string;
157
+ valueExplanation: string;
158
+ operationalization: OperationalizationPlan;
159
+ nextStep: string;
160
+ completionSignal: 'needs_seed' | 'first_value_demo_ready';
161
+ }
162
+ export declare function buildAgentOnboardingProtocol(): AgentOnboardingProtocol;
163
+ export declare function buildValueDemo(input: ValueDemoInput): ValueDemo;
164
+ export declare function buildSourceDiagnosis(input: SourceDiagnosisInput): SourceDiagnosisSet;
165
+ export declare function buildCandidateDrafts(input: CandidateInput): CandidateDraftSet;
166
+ export declare function buildLocalOnboardingPlan(input: LocalOnboardingPlanInput): LocalOnboardingPlan;
167
+ export declare function buildConnectorRecommendations(input: RecommendationInput): ConnectorRecommendationSet;
168
+ export declare function renderAgentProtocol(format: OnboardingFormat): string;
169
+ export declare function renderConnectorRecommendations(input: RecommendationInput, format: OnboardingFormat): string;
170
+ export declare function renderSourceDiagnosis(input: SourceDiagnosisInput, format: OnboardingFormat): string;
171
+ export declare function renderValueDemo(input: ValueDemoInput, format: OnboardingFormat): string;
172
+ export declare function renderCandidateDrafts(input: CandidateInput, format: OnboardingFormat): string;
173
+ export declare function renderLocalOnboardingPlan(input: LocalOnboardingPlanInput, format: OnboardingFormat): string;
174
+ export declare function parseOnboardingFormat(value: string | undefined): OnboardingFormat;