@tacitai/mcp-server 0.6.49 → 0.6.51
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/cli.js +19 -72
- package/dist/client.d.ts +0 -3
- package/dist/client.js +3 -39
- package/dist/index.js +9 -0
- package/dist/prompts.d.ts +2 -0
- package/dist/prompts.js +9 -3
- package/dist/setup.d.ts +0 -7
- package/dist/setup.js +16 -162
- package/dist/templates/role-loader.js +3 -0
- package/dist/tools/agents.d.ts +4 -4
- package/dist/tools/artifacts.d.ts +35 -0
- package/dist/tools/artifacts.js +53 -9
- package/dist/tools/capture.d.ts +14 -0
- package/dist/tools/capture.js +196 -0
- package/dist/tools/exec-route.js +39 -13
- package/dist/tools/gm.d.ts +2 -2
- package/dist/tools/kb.d.ts +4 -4
- package/dist/tools/lake.d.ts +21 -2
- package/dist/tools/lake.js +39 -4
- package/dist/tools/move.d.ts +21 -21
- package/dist/tools/outbox.d.ts +25 -25
- package/dist/tools/pyramid.d.ts +6 -6
- package/dist/tools/registry.js +12 -2
- package/dist/tools/search.d.ts +0 -10
- package/dist/tools/search.js +1 -6
- package/dist/tools/secretary.d.ts +3 -0
- package/dist/tools/secretary.js +165 -0
- package/dist/tools/synthesize.d.ts +101 -6
- package/dist/tools/synthesize.js +64 -17
- package/dist/tools/voice.js +0 -2
- package/dist/workflow-registry.d.ts +2 -0
- package/dist/workflow-registry.js +29 -0
- package/dist/workflow-type-schema.d.ts +2 -2
- package/dist/workflow-type-schema.js +2 -0
- package/package.json +1 -1
|
@@ -12,11 +12,26 @@ import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
|
12
12
|
import { TacitClient } from '../client.js';
|
|
13
13
|
export declare const synthesizeInputSchema: z.ZodObject<{
|
|
14
14
|
query: z.ZodString;
|
|
15
|
-
scope: z.ZodOptional<z.ZodString>;
|
|
16
15
|
stream: z.ZodOptional<z.ZodBoolean>;
|
|
17
16
|
workspace_id: z.ZodOptional<z.ZodString>;
|
|
17
|
+
document_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
18
|
+
saved_items: z.ZodOptional<z.ZodObject<{
|
|
19
|
+
by: z.ZodEnum<["me", "anyone"]>;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
by: "me" | "anyone";
|
|
22
|
+
}, {
|
|
23
|
+
by: "me" | "anyone";
|
|
24
|
+
}>>;
|
|
25
|
+
portfolio_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
26
|
+
value_stream_id: z.ZodOptional<z.ZodString>;
|
|
27
|
+
value_stream_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
28
|
+
dossier_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
29
|
+
active_dossier_id: z.ZodOptional<z.ZodString>;
|
|
18
30
|
collection_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
19
31
|
program_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
32
|
+
placement_scope: z.ZodOptional<z.ZodEnum<["KB", "PYRAMID", "BOTH"]>>;
|
|
33
|
+
mentioned_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
34
|
+
scope_name: z.ZodOptional<z.ZodString>;
|
|
20
35
|
origin: z.ZodOptional<z.ZodString>;
|
|
21
36
|
synthesis_mode: z.ZodOptional<z.ZodEnum<["burst", "orbit", "crew_compose"]>>;
|
|
22
37
|
max_turns: z.ZodOptional<z.ZodNumber>;
|
|
@@ -25,11 +40,22 @@ export declare const synthesizeInputSchema: z.ZodObject<{
|
|
|
25
40
|
}, "strip", z.ZodTypeAny, {
|
|
26
41
|
query: string;
|
|
27
42
|
workspace_id?: string | undefined;
|
|
28
|
-
scope?: string | undefined;
|
|
29
43
|
stream?: boolean | undefined;
|
|
30
44
|
origin?: string | undefined;
|
|
45
|
+
document_ids?: string[] | undefined;
|
|
46
|
+
saved_items?: {
|
|
47
|
+
by: "me" | "anyone";
|
|
48
|
+
} | undefined;
|
|
49
|
+
portfolio_ids?: string[] | undefined;
|
|
50
|
+
value_stream_id?: string | undefined;
|
|
51
|
+
value_stream_ids?: string[] | undefined;
|
|
52
|
+
dossier_ids?: string[] | undefined;
|
|
53
|
+
active_dossier_id?: string | undefined;
|
|
31
54
|
collection_ids?: string[] | undefined;
|
|
32
55
|
program_ids?: string[] | undefined;
|
|
56
|
+
placement_scope?: "KB" | "PYRAMID" | "BOTH" | undefined;
|
|
57
|
+
mentioned_ids?: string[] | undefined;
|
|
58
|
+
scope_name?: string | undefined;
|
|
33
59
|
synthesis_mode?: "burst" | "orbit" | "crew_compose" | undefined;
|
|
34
60
|
max_turns?: number | undefined;
|
|
35
61
|
voice_mode?: "voice_on" | "voice_off" | "voice_only" | undefined;
|
|
@@ -37,11 +63,22 @@ export declare const synthesizeInputSchema: z.ZodObject<{
|
|
|
37
63
|
}, {
|
|
38
64
|
query: string;
|
|
39
65
|
workspace_id?: string | undefined;
|
|
40
|
-
scope?: string | undefined;
|
|
41
66
|
stream?: boolean | undefined;
|
|
42
67
|
origin?: string | undefined;
|
|
68
|
+
document_ids?: string[] | undefined;
|
|
69
|
+
saved_items?: {
|
|
70
|
+
by: "me" | "anyone";
|
|
71
|
+
} | undefined;
|
|
72
|
+
portfolio_ids?: string[] | undefined;
|
|
73
|
+
value_stream_id?: string | undefined;
|
|
74
|
+
value_stream_ids?: string[] | undefined;
|
|
75
|
+
dossier_ids?: string[] | undefined;
|
|
76
|
+
active_dossier_id?: string | undefined;
|
|
43
77
|
collection_ids?: string[] | undefined;
|
|
44
78
|
program_ids?: string[] | undefined;
|
|
79
|
+
placement_scope?: "KB" | "PYRAMID" | "BOTH" | undefined;
|
|
80
|
+
mentioned_ids?: string[] | undefined;
|
|
81
|
+
scope_name?: string | undefined;
|
|
45
82
|
synthesis_mode?: "burst" | "orbit" | "crew_compose" | undefined;
|
|
46
83
|
max_turns?: number | undefined;
|
|
47
84
|
voice_mode?: "voice_on" | "voice_off" | "voice_only" | undefined;
|
|
@@ -58,15 +95,57 @@ export declare const SYNTHESIZE_TOOL_DEF: {
|
|
|
58
95
|
type: string;
|
|
59
96
|
description: string;
|
|
60
97
|
};
|
|
61
|
-
|
|
98
|
+
stream: {
|
|
62
99
|
type: string;
|
|
63
100
|
description: string;
|
|
64
101
|
};
|
|
65
|
-
|
|
102
|
+
workspace_id: {
|
|
66
103
|
type: string;
|
|
67
104
|
description: string;
|
|
68
105
|
};
|
|
69
|
-
|
|
106
|
+
document_ids: {
|
|
107
|
+
type: string;
|
|
108
|
+
items: {
|
|
109
|
+
type: string;
|
|
110
|
+
};
|
|
111
|
+
description: string;
|
|
112
|
+
};
|
|
113
|
+
saved_items: {
|
|
114
|
+
type: string;
|
|
115
|
+
properties: {
|
|
116
|
+
by: {
|
|
117
|
+
type: string;
|
|
118
|
+
enum: string[];
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
description: string;
|
|
122
|
+
};
|
|
123
|
+
portfolio_ids: {
|
|
124
|
+
type: string;
|
|
125
|
+
items: {
|
|
126
|
+
type: string;
|
|
127
|
+
};
|
|
128
|
+
description: string;
|
|
129
|
+
};
|
|
130
|
+
value_stream_id: {
|
|
131
|
+
type: string;
|
|
132
|
+
description: string;
|
|
133
|
+
};
|
|
134
|
+
value_stream_ids: {
|
|
135
|
+
type: string;
|
|
136
|
+
items: {
|
|
137
|
+
type: string;
|
|
138
|
+
};
|
|
139
|
+
description: string;
|
|
140
|
+
};
|
|
141
|
+
dossier_ids: {
|
|
142
|
+
type: string;
|
|
143
|
+
items: {
|
|
144
|
+
type: string;
|
|
145
|
+
};
|
|
146
|
+
description: string;
|
|
147
|
+
};
|
|
148
|
+
active_dossier_id: {
|
|
70
149
|
type: string;
|
|
71
150
|
description: string;
|
|
72
151
|
};
|
|
@@ -84,6 +163,22 @@ export declare const SYNTHESIZE_TOOL_DEF: {
|
|
|
84
163
|
};
|
|
85
164
|
description: string;
|
|
86
165
|
};
|
|
166
|
+
placement_scope: {
|
|
167
|
+
type: string;
|
|
168
|
+
enum: string[];
|
|
169
|
+
description: string;
|
|
170
|
+
};
|
|
171
|
+
mentioned_ids: {
|
|
172
|
+
type: string;
|
|
173
|
+
items: {
|
|
174
|
+
type: string;
|
|
175
|
+
};
|
|
176
|
+
description: string;
|
|
177
|
+
};
|
|
178
|
+
scope_name: {
|
|
179
|
+
type: string;
|
|
180
|
+
description: string;
|
|
181
|
+
};
|
|
87
182
|
origin: {
|
|
88
183
|
type: string;
|
|
89
184
|
description: string;
|
package/dist/tools/synthesize.js
CHANGED
|
@@ -11,12 +11,22 @@ import { z } from 'zod';
|
|
|
11
11
|
import { getClient, TacitApiError, TokenExpiredError } from '../client.js';
|
|
12
12
|
export const synthesizeInputSchema = z.object({
|
|
13
13
|
query: z.string().min(1).describe('Question or synthesis prompt'),
|
|
14
|
-
scope: z.string().optional().describe('Optional scope filter (e.g. portfolio or program id)'),
|
|
15
14
|
stream: z.boolean().optional().describe('If true, use SSE stream variant (/mind/synthesize/stream)'),
|
|
16
15
|
workspace_id: z.string().optional().describe('Optional workspace UUID'),
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
document_ids: z.array(z.string()).max(500).optional().describe('Whitelist of artifact UUIDs (max 500) — overrides other scope'),
|
|
17
|
+
saved_items: z.object({ by: z.enum(['me', 'anyone']) }).optional()
|
|
18
|
+
.describe('Filter to saved links. by:"me" = caller only, by:"anyone" = workspace-wide'),
|
|
19
|
+
portfolio_ids: z.array(z.string()).optional().describe('Portfolio UUIDs for pyramid scope'),
|
|
20
|
+
value_stream_id: z.string().optional().describe('Single value-stream UUID (legacy compat)'),
|
|
21
|
+
value_stream_ids: z.array(z.string()).optional().describe('Value-stream UUIDs for pyramid scope'),
|
|
22
|
+
dossier_ids: z.array(z.string()).optional().describe('Dossier UUIDs for dossier scope'),
|
|
23
|
+
active_dossier_id: z.string().optional().describe('Active dossier UUID — sets dossier context without scoping'),
|
|
24
|
+
collection_ids: z.array(z.string()).optional().describe('KB collection UUIDs to scope synthesis to'),
|
|
25
|
+
program_ids: z.array(z.string()).optional().describe('Program UUIDs to scope synthesis to'),
|
|
26
|
+
placement_scope: z.enum(['KB', 'PYRAMID', 'BOTH']).optional().describe('Placement scope filter'),
|
|
27
|
+
mentioned_ids: z.array(z.string()).optional().describe('Mentioned artifact UUIDs from @-mentions'),
|
|
28
|
+
scope_name: z.string().optional().describe('Human-readable scope name (e.g. "in program:Assistant Platform")'),
|
|
29
|
+
origin: z.string().optional().describe('Artifact origin filter (PYRAMID, LAKE_SYNC, MANUAL, CAPTURE)'),
|
|
20
30
|
synthesis_mode: z.enum(['burst', 'orbit', 'crew_compose']).optional().describe('Synthesis mode: burst (fast retrieval), orbit (agentic multi-turn), crew_compose (crew artifact generation). Default: burst.'),
|
|
21
31
|
max_turns: z.number().int().min(1).optional().describe('Max agentic loop iterations for orbit/crew_compose mode (1-12 for orbit, 1-54 for crew_compose).'),
|
|
22
32
|
voice_mode: z.enum(['voice_on', 'voice_off', 'voice_only']).optional()
|
|
@@ -33,16 +43,25 @@ export const SYNTHESIZE_TOOL_DEF = {
|
|
|
33
43
|
type: 'object',
|
|
34
44
|
properties: {
|
|
35
45
|
query: { type: 'string', description: 'Question or synthesis prompt' },
|
|
36
|
-
scope: { type: 'string', description: 'Optional scope filter' },
|
|
37
46
|
stream: { type: 'boolean', description: 'Use SSE stream variant if true' },
|
|
38
47
|
workspace_id: { type: 'string', description: 'Optional workspace UUID' },
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
48
|
+
document_ids: { type: 'array', items: { type: 'string' }, description: 'Whitelist of artifact UUIDs (max 500)' },
|
|
49
|
+
saved_items: { type: 'object', properties: { by: { type: 'string', enum: ['me', 'anyone'] } }, description: 'Filter to saved links' },
|
|
50
|
+
portfolio_ids: { type: 'array', items: { type: 'string' }, description: 'Portfolio UUIDs for pyramid scope' },
|
|
51
|
+
value_stream_id: { type: 'string', description: 'Single value-stream UUID' },
|
|
52
|
+
value_stream_ids: { type: 'array', items: { type: 'string' }, description: 'Value-stream UUIDs for pyramid scope' },
|
|
53
|
+
dossier_ids: { type: 'array', items: { type: 'string' }, description: 'Dossier UUIDs for dossier scope' },
|
|
54
|
+
active_dossier_id: { type: 'string', description: 'Active dossier UUID' },
|
|
55
|
+
collection_ids: { type: 'array', items: { type: 'string' }, description: 'KB collection UUIDs to scope synthesis to' },
|
|
56
|
+
program_ids: { type: 'array', items: { type: 'string' }, description: 'Program UUIDs to scope synthesis to' },
|
|
57
|
+
placement_scope: { type: 'string', enum: ['KB', 'PYRAMID', 'BOTH'], description: 'Placement scope filter' },
|
|
58
|
+
mentioned_ids: { type: 'array', items: { type: 'string' }, description: 'Mentioned artifact UUIDs' },
|
|
59
|
+
scope_name: { type: 'string', description: 'Human-readable scope name' },
|
|
60
|
+
origin: { type: 'string', description: 'Artifact origin filter (PYRAMID, LAKE_SYNC, MANUAL, CAPTURE)' },
|
|
42
61
|
synthesis_mode: { type: 'string', enum: ['burst', 'orbit', 'crew_compose'], description: 'Synthesis mode: burst (fast retrieval), orbit (agentic multi-turn), crew_compose (crew artifact generation). Default: burst.' },
|
|
43
62
|
max_turns: { type: 'integer', minimum: 1, description: 'Max agentic loop iterations for orbit/crew_compose mode (1-12 for orbit, 1-54 for crew_compose).' },
|
|
44
|
-
voice_mode: { type: 'string', enum: ['voice_on', 'voice_off', 'voice_only'], description: 'Voice personalization mode.
|
|
45
|
-
voice_profile_id: { type: 'string', description: 'Specific voice profile UUID.
|
|
63
|
+
voice_mode: { type: 'string', enum: ['voice_on', 'voice_off', 'voice_only'], description: 'Voice personalization mode.' },
|
|
64
|
+
voice_profile_id: { type: 'string', description: 'Specific voice profile UUID.' },
|
|
46
65
|
},
|
|
47
66
|
required: ['query'],
|
|
48
67
|
},
|
|
@@ -54,16 +73,34 @@ export const SYNTHESIZE_TOOL_DEF = {
|
|
|
54
73
|
export function buildSynthesizeRequest(client, input) {
|
|
55
74
|
return {
|
|
56
75
|
async execute() {
|
|
57
|
-
const { query,
|
|
76
|
+
const { query, stream, workspace_id, document_ids, saved_items, portfolio_ids, value_stream_id, value_stream_ids, dossier_ids, active_dossier_id, collection_ids, program_ids, placement_scope, mentioned_ids, scope_name, origin, synthesis_mode, max_turns, voice_mode, voice_profile_id } = input;
|
|
58
77
|
const body = { query };
|
|
59
|
-
if (scope)
|
|
60
|
-
body['scope'] = scope;
|
|
61
78
|
if (workspace_id)
|
|
62
79
|
body['workspace_id'] = workspace_id;
|
|
80
|
+
if (document_ids)
|
|
81
|
+
body['document_ids'] = document_ids;
|
|
82
|
+
if (saved_items)
|
|
83
|
+
body['saved_items'] = saved_items;
|
|
84
|
+
if (portfolio_ids)
|
|
85
|
+
body['portfolio_ids'] = portfolio_ids;
|
|
86
|
+
if (value_stream_id)
|
|
87
|
+
body['value_stream_id'] = value_stream_id;
|
|
88
|
+
if (value_stream_ids)
|
|
89
|
+
body['value_stream_ids'] = value_stream_ids;
|
|
90
|
+
if (dossier_ids)
|
|
91
|
+
body['dossier_ids'] = dossier_ids;
|
|
92
|
+
if (active_dossier_id)
|
|
93
|
+
body['active_dossier_id'] = active_dossier_id;
|
|
63
94
|
if (collection_ids)
|
|
64
95
|
body['collection_ids'] = collection_ids;
|
|
65
96
|
if (program_ids)
|
|
66
97
|
body['program_ids'] = program_ids;
|
|
98
|
+
if (placement_scope)
|
|
99
|
+
body['placement_scope'] = placement_scope;
|
|
100
|
+
if (mentioned_ids)
|
|
101
|
+
body['mentioned_ids'] = mentioned_ids;
|
|
102
|
+
if (scope_name)
|
|
103
|
+
body['scope_name'] = scope_name;
|
|
67
104
|
if (origin)
|
|
68
105
|
body['origin'] = origin;
|
|
69
106
|
if (synthesis_mode)
|
|
@@ -139,12 +176,22 @@ export async function handleSynthesize(args) {
|
|
|
139
176
|
}
|
|
140
177
|
const SYNTH_SCHEMA = {
|
|
141
178
|
query: z.string().min(1).describe('Question or synthesis prompt'),
|
|
142
|
-
scope: z.string().optional().describe('Optional scope filter (e.g. portfolio or program id)'),
|
|
143
179
|
stream: z.boolean().optional().describe('If true, use SSE stream variant (/mind/synthesize/stream)'),
|
|
144
180
|
workspace_id: z.string().optional().describe('Optional workspace UUID'),
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
181
|
+
document_ids: z.array(z.string()).max(500).optional().describe('Whitelist of artifact UUIDs (max 500)'),
|
|
182
|
+
saved_items: z.object({ by: z.enum(['me', 'anyone']) }).optional()
|
|
183
|
+
.describe('Filter to saved links. by:"me" = caller only, by:"anyone" = workspace-wide'),
|
|
184
|
+
portfolio_ids: z.array(z.string()).optional().describe('Portfolio UUIDs for pyramid scope'),
|
|
185
|
+
value_stream_id: z.string().optional().describe('Single value-stream UUID (legacy compat)'),
|
|
186
|
+
value_stream_ids: z.array(z.string()).optional().describe('Value-stream UUIDs for pyramid scope'),
|
|
187
|
+
dossier_ids: z.array(z.string()).optional().describe('Dossier UUIDs for dossier scope'),
|
|
188
|
+
active_dossier_id: z.string().optional().describe('Active dossier UUID'),
|
|
189
|
+
collection_ids: z.array(z.string()).optional().describe('KB collection UUIDs to scope synthesis to'),
|
|
190
|
+
program_ids: z.array(z.string()).optional().describe('Program UUIDs to scope synthesis to'),
|
|
191
|
+
placement_scope: z.enum(['KB', 'PYRAMID', 'BOTH']).optional().describe('Placement scope filter'),
|
|
192
|
+
mentioned_ids: z.array(z.string()).optional().describe('Mentioned artifact UUIDs'),
|
|
193
|
+
scope_name: z.string().optional().describe('Human-readable scope name'),
|
|
194
|
+
origin: z.string().optional().describe('Artifact origin filter (PYRAMID, LAKE_SYNC, MANUAL, CAPTURE)'),
|
|
148
195
|
synthesis_mode: z.enum(['burst', 'orbit', 'crew_compose']).optional().describe('Synthesis mode: burst (fast retrieval), orbit (agentic multi-turn), crew_compose (crew artifact generation). Default: burst.'),
|
|
149
196
|
max_turns: z.number().int().min(1).optional().describe('Max agentic loop iterations for orbit/crew_compose mode (1-12 for orbit, 1-54 for crew_compose).'),
|
|
150
197
|
voice_mode: z.enum(['voice_on', 'voice_off', 'voice_only']).optional()
|
package/dist/tools/voice.js
CHANGED
|
@@ -74,7 +74,6 @@ export function registerVoiceTools(server, getClientFn) {
|
|
|
74
74
|
server.tool('tacit_compose_in_voice', 'Compose an artifact in your writing voice. Combines crew-based artifact generation with voice personalization in a single call. Use when someone says "write this in my voice" or "compose a brief in my style".', {
|
|
75
75
|
query: z.string().min(1).describe('Composition prompt — what to write'),
|
|
76
76
|
voice_profile_id: z.string().optional().describe('Specific voice profile UUID. Omit to use the active profile.'),
|
|
77
|
-
scope: z.string().optional().describe('Optional scope filter (e.g. portfolio or program id)'),
|
|
78
77
|
workspace_id: z.string().optional().describe('Optional workspace UUID'),
|
|
79
78
|
collection_ids: z.array(z.string()).optional().describe('Optional collection UUIDs to scope synthesis to'),
|
|
80
79
|
program_ids: z.array(z.string()).optional().describe('Optional program UUIDs to scope synthesis to'),
|
|
@@ -86,7 +85,6 @@ export function registerVoiceTools(server, getClientFn) {
|
|
|
86
85
|
synthesis_mode: 'crew_compose',
|
|
87
86
|
voice_mode: 'voice_on',
|
|
88
87
|
voice_profile_id: args.voice_profile_id,
|
|
89
|
-
scope: args.scope,
|
|
90
88
|
workspace_id: args.workspace_id,
|
|
91
89
|
collection_ids: args.collection_ids,
|
|
92
90
|
program_ids: args.program_ids,
|
|
@@ -77,4 +77,6 @@ export declare const RESEARCH_TYPE_DEF: WorkflowTypeDef;
|
|
|
77
77
|
export declare const WIKI_TYPE_DEF: WorkflowTypeDef;
|
|
78
78
|
export declare const KB_TYPE_DEF: WorkflowTypeDef;
|
|
79
79
|
export declare const LAKE_TYPE_DEF: WorkflowTypeDef;
|
|
80
|
+
export declare const CTO_TYPE_DEF: WorkflowTypeDef;
|
|
81
|
+
export declare const SECRETARY_TYPE_DEF: WorkflowTypeDef;
|
|
80
82
|
export declare function createDefaultRegistry(): WorkflowRegistry;
|
|
@@ -358,6 +358,33 @@ export const LAKE_TYPE_DEF = {
|
|
|
358
358
|
guidance: 'LAKE_OPERATIONS',
|
|
359
359
|
maxInstances: 3,
|
|
360
360
|
};
|
|
361
|
+
// ─── CTO type definition (MV-1541 W1a) ──────────────────────────────────────
|
|
362
|
+
export const CTO_TYPE_DEF = {
|
|
363
|
+
name: 'cto_engineering',
|
|
364
|
+
entryTool: null,
|
|
365
|
+
prereqs: { kind: 'flat', tools: [] },
|
|
366
|
+
gatedChecks: 'standard',
|
|
367
|
+
handoff: {
|
|
368
|
+
targetTypes: ['research_exec'],
|
|
369
|
+
preserveParent: false,
|
|
370
|
+
},
|
|
371
|
+
persistent: false,
|
|
372
|
+
failDirection: 'open',
|
|
373
|
+
sharedToolPolicy: 'passthrough',
|
|
374
|
+
guidance: 'CTO_ENGINEERING',
|
|
375
|
+
maxInstances: 1,
|
|
376
|
+
};
|
|
377
|
+
// ─── Secretary type definition (MV-1541 W1b) ────────────────────────────────
|
|
378
|
+
export const SECRETARY_TYPE_DEF = {
|
|
379
|
+
name: 'secretary_chronicle',
|
|
380
|
+
entryTool: null,
|
|
381
|
+
prereqs: { kind: 'flat', tools: [] },
|
|
382
|
+
persistent: false,
|
|
383
|
+
failDirection: 'open',
|
|
384
|
+
sharedToolPolicy: 'passthrough',
|
|
385
|
+
guidance: 'SECRETARY_CHRONICLE',
|
|
386
|
+
maxInstances: 3,
|
|
387
|
+
};
|
|
361
388
|
// ─── Factory ────────────────────────────────────────────────────────────────
|
|
362
389
|
export function createDefaultRegistry() {
|
|
363
390
|
const registry = new WorkflowRegistry();
|
|
@@ -371,5 +398,7 @@ export function createDefaultRegistry() {
|
|
|
371
398
|
registry.register(WIKI_TYPE_DEF);
|
|
372
399
|
registry.register(KB_TYPE_DEF);
|
|
373
400
|
registry.register(LAKE_TYPE_DEF);
|
|
401
|
+
registry.register(CTO_TYPE_DEF);
|
|
402
|
+
registry.register(SECRETARY_TYPE_DEF);
|
|
374
403
|
return registry;
|
|
375
404
|
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Hand-written TS validation for user-authored workflow type definitions (MV-1539 W7 Step 29).
|
|
3
3
|
* No ajv dependency — validation is structural checks only.
|
|
4
4
|
*/
|
|
5
|
-
export declare const SYSTEM_RESERVED_TYPE_NAMES: readonly ["gm_content_placement", "cos_coordination", "pyr_exec", "coo_operations", "cmo_marketing_pipeline", "sales_full_pipeline", "research_exec", "wiki_authoring", "kb_management", "lake_operations"];
|
|
6
|
-
export declare const SYSTEM_RESERVED_TOOLS: readonly ["tacit_gm_ingest", "tacit_gm_approve", "tacit_gm_reset", "tacit_kb_promote_from_artifact", "tacit_kb_promote_from_catalog", "tacit_cmo_lint", "tacit_dispatch_crew", "tacit_research_launch", "tacit_research_prepare", "tacit_research_place"];
|
|
5
|
+
export declare const SYSTEM_RESERVED_TYPE_NAMES: readonly ["gm_content_placement", "cos_coordination", "pyr_exec", "coo_operations", "cmo_marketing_pipeline", "sales_full_pipeline", "research_exec", "wiki_authoring", "kb_management", "lake_operations", "cto_engineering", "secretary_chronicle"];
|
|
6
|
+
export declare const SYSTEM_RESERVED_TOOLS: readonly ["tacit_gm_ingest", "tacit_gm_approve", "tacit_gm_reset", "tacit_kb_promote_from_artifact", "tacit_kb_promote_from_catalog", "tacit_cmo_lint", "tacit_dispatch_crew", "tacit_research_launch", "tacit_research_prepare", "tacit_research_place", "tacit_secretary_log", "tacit_secretary_recall"];
|
|
7
7
|
export interface UserTypeValidationResult {
|
|
8
8
|
valid: boolean;
|
|
9
9
|
errors: string[];
|
|
@@ -6,12 +6,14 @@ export const SYSTEM_RESERVED_TYPE_NAMES = [
|
|
|
6
6
|
'gm_content_placement', 'cos_coordination', 'pyr_exec',
|
|
7
7
|
'coo_operations', 'cmo_marketing_pipeline', 'sales_full_pipeline', 'research_exec',
|
|
8
8
|
'wiki_authoring', 'kb_management', 'lake_operations',
|
|
9
|
+
'cto_engineering', 'secretary_chronicle',
|
|
9
10
|
];
|
|
10
11
|
export const SYSTEM_RESERVED_TOOLS = [
|
|
11
12
|
'tacit_gm_ingest', 'tacit_gm_approve', 'tacit_gm_reset',
|
|
12
13
|
'tacit_kb_promote_from_artifact', 'tacit_kb_promote_from_catalog',
|
|
13
14
|
'tacit_cmo_lint', 'tacit_dispatch_crew',
|
|
14
15
|
'tacit_research_launch', 'tacit_research_prepare', 'tacit_research_place',
|
|
16
|
+
'tacit_secretary_log', 'tacit_secretary_recall',
|
|
15
17
|
];
|
|
16
18
|
const TYPE_NAME_PATTERN = /^[a-z][a-z0-9_]{2,63}$/;
|
|
17
19
|
export function validateUserTypeDef(input) {
|