@tacitai/mcp-server 0.6.20 → 0.6.21
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/prompts.d.ts +1 -1
- package/dist/prompts.js +1 -1
- package/dist/tools/gm.js +2 -1
- package/dist/tools/kb.js +6 -1
- package/package.json +1 -1
package/dist/prompts.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export declare const GM_WORKFLOW: {
|
|
|
20
20
|
readonly steps: readonly [{
|
|
21
21
|
readonly id: "ingest";
|
|
22
22
|
readonly name: "Ingest";
|
|
23
|
-
readonly action: "Call tacit_gm_ingest with a title and the content (inline text via \"content\", or a local file via \"file_path\" — never both). Do NOT set domain_id. The response includes a placement_proposal with suggested_surface (\"kb\" or \"pyramid\") and a confidence score. The suggested_surface is the GM's decision about WHICH surface: keep it. Step 3 picks the specific location within that surface. Never switch surfaces (for example to a KB collection whose name looks relevant) unless the user asks for that surface.";
|
|
23
|
+
readonly action: "Call tacit_gm_ingest with a title and the content (inline text via \"content\", or a local file via \"file_path\" — never both). Do NOT set domain_id. The response includes a placement_proposal with suggested_surface (\"kb\" or \"pyramid\") and a confidence score. The suggested_surface is the GM's decision about WHICH surface: keep it. Step 3 picks the specific location within that surface. Never switch surfaces (for example to a KB collection whose name looks relevant) unless the user asks for that surface. If suggested_surface is \"lake\", the content is saved and nothing else happens until the user picks a surface in step 2.";
|
|
24
24
|
readonly tools: readonly ["tacit_gm_ingest"];
|
|
25
25
|
readonly signal: "You receive a catalog_id, artifact_id, content_type, and is_duplicate flag. Save the catalog_id — you will need it for placement.";
|
|
26
26
|
readonly on_duplicate: "If is_duplicate is true, tell the user this content already exists and ask how to proceed: update, skip, or ingest as a new version.";
|
package/dist/prompts.js
CHANGED
|
@@ -127,7 +127,7 @@ export const GM_WORKFLOW = {
|
|
|
127
127
|
{
|
|
128
128
|
id: 'ingest',
|
|
129
129
|
name: 'Ingest',
|
|
130
|
-
action: 'Call tacit_gm_ingest with a title and the content (inline text via "content", or a local file via "file_path" — never both). Do NOT set domain_id. The response includes a placement_proposal with suggested_surface ("kb" or "pyramid") and a confidence score. The suggested_surface is the GM\'s decision about WHICH surface: keep it. Step 3 picks the specific location within that surface. Never switch surfaces (for example to a KB collection whose name looks relevant) unless the user asks for that surface.',
|
|
130
|
+
action: 'Call tacit_gm_ingest with a title and the content (inline text via "content", or a local file via "file_path" — never both). Do NOT set domain_id. The response includes a placement_proposal with suggested_surface ("kb" or "pyramid") and a confidence score. The suggested_surface is the GM\'s decision about WHICH surface: keep it. Step 3 picks the specific location within that surface. Never switch surfaces (for example to a KB collection whose name looks relevant) unless the user asks for that surface. If suggested_surface is "lake", the content is saved and nothing else happens until the user picks a surface in step 2.',
|
|
131
131
|
tools: ['tacit_gm_ingest'],
|
|
132
132
|
signal: 'You receive a catalog_id, artifact_id, content_type, and is_duplicate flag. Save the catalog_id — you will need it for placement.',
|
|
133
133
|
on_duplicate: 'If is_duplicate is true, tell the user this content already exists and ask how to proceed: update, skip, or ingest as a new version.',
|
package/dist/tools/gm.js
CHANGED
|
@@ -55,7 +55,8 @@ export function placementDeclinedResult(locationLabel) {
|
|
|
55
55
|
}
|
|
56
56
|
export const GM_INGEST_NEXT_STEP = 'NEXT STEP: nothing has been placed yet. Tell the user in plain language what this was classified as and propose ONE specific ' +
|
|
57
57
|
'location on the surface in placement_proposal.suggested_surface (pyramid: portfolio → program → dossier; kb: a collection). ' +
|
|
58
|
-
'Do not switch surfaces unless the user asks.
|
|
58
|
+
'Do not switch surfaces unless the user asks. If suggested_surface is "lake", say it is saved in the data lake and ask whether ' +
|
|
59
|
+
'to file it in the workspace structure or the knowledge base; do not pick one yourself. Then stop and wait for the user to approve that location in a new message. ' +
|
|
59
60
|
'The user asking to "add it to the workspace" or "you decide" is not approval of a location.';
|
|
60
61
|
// ─── tacit_gm_ingest ────────────────────────────────────────────────────────
|
|
61
62
|
/** Largest file `file_path` will read (10 MiB). */
|
package/dist/tools/kb.js
CHANGED
|
@@ -621,8 +621,13 @@ export function registerKbTools(server, getClientFn) {
|
|
|
621
621
|
return buildGetArticleRequest(client, args).execute();
|
|
622
622
|
});
|
|
623
623
|
server.tool('tacit_kb_create_article', CREATE_ARTICLE_TOOL_DEF.description, createArticleInputSchema.shape, async (args) => {
|
|
624
|
+
const input = args;
|
|
625
|
+
const status = input.status === 'PUBLISHED' ? ' It will be published there.' : ' It will start as a draft.';
|
|
626
|
+
const ok = await confirmPlacement(server, placementMessage(input.title, undefined, 'the chosen knowledge base collection') + status);
|
|
627
|
+
if (ok === 'declined')
|
|
628
|
+
return placementDeclinedResult(undefined);
|
|
624
629
|
const client = await getClientFn();
|
|
625
|
-
return buildCreateArticleRequest(client,
|
|
630
|
+
return buildCreateArticleRequest(client, input).execute();
|
|
626
631
|
});
|
|
627
632
|
server.tool('tacit_kb_update_article', UPDATE_ARTICLE_TOOL_DEF.description, updateArticleInputSchema.shape, async (args) => {
|
|
628
633
|
const client = await getClientFn();
|