integram-mcp 0.7.77 → 0.7.87
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/README.md +4 -4
- package/index.js +37 -101
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ claude mcp add integram \
|
|
|
15
15
|
-e INTEGRAM_URL=https://ai2o.online \
|
|
16
16
|
-e INTEGRAM_EMAIL=you@example.com \
|
|
17
17
|
-e INTEGRAM_PASSWORD=secret \
|
|
18
|
-
-- npx -y integram-mcp@0.7.
|
|
18
|
+
-- npx -y integram-mcp@0.7.87
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
Ставить ничего не нужно: `npx` скачает пакет сам.
|
|
@@ -43,7 +43,7 @@ claude mcp add integram \
|
|
|
43
43
|
-e INTEGRAM_URL=http://localhost:8081 \
|
|
44
44
|
-e INTEGRAM_EMAIL=you@example.com \
|
|
45
45
|
-e INTEGRAM_PASSWORD=secret \
|
|
46
|
-
-- npx -y integram-mcp@0.7.
|
|
46
|
+
-- npx -y integram-mcp@0.7.87
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
Удалить: `claude mcp remove integram`
|
|
@@ -57,7 +57,7 @@ claude mcp add integram \
|
|
|
57
57
|
"mcpServers": {
|
|
58
58
|
"integram": {
|
|
59
59
|
"command": "npx",
|
|
60
|
-
"args": ["-y", "integram-mcp@0.7.
|
|
60
|
+
"args": ["-y", "integram-mcp@0.7.87"],
|
|
61
61
|
"env": {
|
|
62
62
|
"INTEGRAM_URL": "https://ai2o.online",
|
|
63
63
|
"INTEGRAM_EMAIL": "you@example.com",
|
|
@@ -77,7 +77,7 @@ claude mcp add integram \
|
|
|
77
77
|
"mcpServers": {
|
|
78
78
|
"integram": {
|
|
79
79
|
"command": "npx",
|
|
80
|
-
"args": ["-y", "integram-mcp@0.7.
|
|
80
|
+
"args": ["-y", "integram-mcp@0.7.87"],
|
|
81
81
|
"env": {
|
|
82
82
|
"INTEGRAM_URL": "https://ai2o.online",
|
|
83
83
|
"INTEGRAM_EMAIL": "you@example.com",
|
package/index.js
CHANGED
|
@@ -318,37 +318,9 @@ Server: ${BASE_URL}
|
|
|
318
318
|
## Tool discovery
|
|
319
319
|
Stuck or unsure how the platform works? docs_map() and docs_search(query) are active from the start and read the platform docs corpus (115 documents: backend, portal, frontend, ADRs, guides). Use them before guessing.
|
|
320
320
|
|
|
321
|
-
Only core tools (CRUD, search, docs corpus, graph, comments, bulk, history) are loaded by default. Use search_tools to activate more — it reports
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
- "reports" — create, run, export reports with aggregation, joins and filters
|
|
325
|
-
- "docs" — documents, blocks, folders, tags, sharing, versions, templates, PDF generation
|
|
326
|
-
- "workspace" — files, import/export, connectors, members, backups, dashboards, view/record sharing, audit log, normalizer, automations, webhooks, forms
|
|
327
|
-
- "portal" — portal config, catalog, carts, orders, tickets, KB articles, metrics, customer profiles, Telegram bots, @kit component catalog
|
|
328
|
-
- "telegram" — Telegram bot management, messaging, moderation, payments, stories, business API (subset of portal group)
|
|
329
|
-
- "grants" — roles, grants, row-level rules, member access (admin only)
|
|
330
|
-
- "codespace" — git repositories: branches, commits, files, pull requests, conflict-safe writes
|
|
331
|
-
- "teamchat" — rooms, topics, messages, decisions, agent metrics, W-matrix (ONA)
|
|
332
|
-
- "graph" — get_related, graph_query, neighborhood, shortest path, health, memory agents
|
|
333
|
-
- "meta-kb" — debate-based knowledge curation: start debates, parallel experts, LLM synthesis
|
|
334
|
-
- "kag" — knowledge-augmented generation: search, traverse, ask, import, browse, stats, clusters, anomalies
|
|
335
|
-
- "memory" — agent long-term memory, recall, procedures, contradictions
|
|
336
|
-
- "timeseries" — record, query, and list time-series data sources
|
|
337
|
-
- "dlp" — data loss prevention rules: list/create/update/delete (admin)
|
|
338
|
-
- "presentations" — PPTX engine: create/update presentations, versions, sharing, export/import (pptx/pdf)
|
|
339
|
-
- "normalizer" — AI document pipeline: classify, extract, resolve, populate; normalization jobs
|
|
340
|
-
- "workspace-tools" — per-workspace custom sandbox tools: list, register, execute
|
|
341
|
-
- "ai" — text-to-speech synthesis (TTS): speak text, list voices, check TTS service status
|
|
342
|
-
- "agents" — list and delegate to external AI agents
|
|
343
|
-
- "pm" — project management: issues CRUD + bulk ops, checklists, sprints, board, backlog, comments CRUD, issue links, data-links (issue ↔ table/document/report), watchers, templates, trash/restore, members, CSV export, metrics (velocity, burndown, cycle time, workload), AI helpers (triage, decompose, estimate, plan sprint, detect blockers), org aggregation (portfolio, people, cross-project issues)
|
|
344
|
-
- "nightcall" — specification-driven execution: CNM requirements graph, formalization proposals (Extraction IR → governance decisions), artifact specifications, EffectiveSpecification resolver, execution compiler, directed-retry pipeline run, evidence verification, compliance/release decisions, waivers
|
|
345
|
-
- "orgs" — организации: CRUD, участники, приглашения, состав и должности, привязка областей; сводки PM по организации: org_my_issues (мои задачи всех областей, курсор), org_portfolio, org_people (нагрузка), org_activity (лента изменений), org_metrics (velocity/cycle/lead), org_search (поиск записей по всем областям)
|
|
346
|
-
- "bulk" — bulk_create, bulk_update, bulk_delete, autofill_batch
|
|
347
|
-
- "comments" — comments, reactions on records
|
|
348
|
-
- "history" — object change history, rollback
|
|
349
|
-
- "objects" — move, reorder, duplicate records
|
|
350
|
-
- "lookups" — get lookup options, ref options
|
|
351
|
-
- "automations" — get automation details, webhook delivery log
|
|
321
|
+
Only core tools (CRUD, search, docs corpus, graph, comments, bulk, history) are loaded by default. Use search_tools to activate more — it reports what it activated and names the tools, so it doubles as the group catalog.
|
|
322
|
+
|
|
323
|
+
Different tools with similar names are NOT interchangeable. Before any call that requires confirmation, verify the exact tool name against its description: set_grant (group "grants") changes access rights, set_portal_config (group "portal") writes the portal config — one is not the other. If the tool you need is not in the active list, call search_tools to activate its group — never substitute a similar active tool.
|
|
352
324
|
|
|
353
325
|
---
|
|
354
326
|
|
|
@@ -365,45 +337,6 @@ Phrase triggers — user wording maps to a tool group; activate it and use its t
|
|
|
365
337
|
- Child issues do NOT inherit labels from their epic — set labels explicitly on every create.
|
|
366
338
|
- Ask ONLY when: the wording fits both a PM task and something else (EAV record / document), or a bulk breakdown (>3 tasks) has no obvious split.
|
|
367
339
|
|
|
368
|
-
## Column types (colTypeName for add_column / type for plan_schema)
|
|
369
|
-
|
|
370
|
-
| colTypeName | UI | Use when |
|
|
371
|
-
|---|---|---|
|
|
372
|
-
| text, string | single-line input | free-form unique values: name, title, URL, address, article code |
|
|
373
|
-
| phone | phone input | phone number with click-to-call: mobile, tel, телефон |
|
|
374
|
-
| email | email input | email address with mailto link: email, mail, почта |
|
|
375
|
-
| memo, multiline | textarea | long text: description, notes, comment, bio, summary |
|
|
376
|
-
| number | numeric input | price, cost, amount, qty, score, rating, age, salary, budget |
|
|
377
|
-
| date | date picker | birthday, deadline, start date, hire date |
|
|
378
|
-
| datetime | date+time picker | event time, created_at, timestamp, log entry |
|
|
379
|
-
| bool, checkbox | toggle | flag: active, paid, approved, done, published, verified |
|
|
380
|
-
| file | file upload | attachment, photo, image, document, avatar |
|
|
381
|
-
| pwd, password | masked input | password, secret, API key (stored hashed) |
|
|
382
|
-
| uuid | auto-generated | unique identifier |
|
|
383
|
-
| url | URL input | website, link, external resource |
|
|
384
|
-
| duration | duration input | time duration: hours, minutes (e.g. task effort) |
|
|
385
|
-
| currency | currency input | monetary values with currency symbol |
|
|
386
|
-
| percent | percentage input | percentage values (0–100) |
|
|
387
|
-
| rating | star rating | ratings, scores (1–5 stars) |
|
|
388
|
-
| status | status badge | workflow status with color coding |
|
|
389
|
-
| choice | choice/select | single choice from predefined options |
|
|
390
|
-
| collaborator, пользователь | user picker | workspace member: assignee, responsible person; value is the user's id (accepts id, email or username on write); filterable, supports [USER_ID] in report filters |
|
|
391
|
-
| http_button | clickable button | HTTP request per row (see HTTP Buttons section) |
|
|
392
|
-
| script_button | clickable button | JavaScript per row (see Script Buttons section) |
|
|
393
|
-
| ai_button | clickable button | AI prompt per row (see AI Buttons section) |
|
|
394
|
-
| ai | clickable button | alias for ai_button |
|
|
395
|
-
|
|
396
|
-
**IMPORTANT — semantic type inference:**
|
|
397
|
-
Choose type by the MEANING of the field, not just the word:
|
|
398
|
-
- "Phone", "Mobile", "Tel" → phone (type 30, renders with call icon)
|
|
399
|
-
- "Email", "Mail" → email (type 41, renders as mailto: link)
|
|
400
|
-
- "Website", "URL" → text (NOT number, NOT special type)
|
|
401
|
-
- "Price", "Salary", "Budget", "Score", "Age", "Rating" → number
|
|
402
|
-
- "Birthday", "Deadline", "Start date" → date
|
|
403
|
-
- "Description", "Notes", "Comment", "Bio" → memo
|
|
404
|
-
- "Active", "Done", "Published", "Verified" → bool
|
|
405
|
-
- "Status", "Priority", "Category", "City", "Department", "Stage", "Type", "Tags" → **NOT text!** → ref to a lookup table (see below)
|
|
406
|
-
|
|
407
340
|
## Data modeling — the DECISION TREE
|
|
408
341
|
|
|
409
342
|
For every field, ask: "Where do the values come from?"
|
|
@@ -494,6 +427,8 @@ plan_schema({ tables: [...] }) creates all tables, columns, refs, and seed recor
|
|
|
494
427
|
- required — true for mandatory field
|
|
495
428
|
- unique — true for unique constraint (article codes, SKU, email if must be unique)
|
|
496
429
|
- size — length limit: "100" (max chars) or "10,2" (precision,scale for numbers e.g. price with 2 decimals)
|
|
430
|
+
- kind — set to "FORMULA" for a computed column. Only FORMULA is supported in plan_schema.
|
|
431
|
+
- expr — formula for kind=FORMULA. Variables are other column aliases of the SAME table in square brackets: "[Цена] * [Количество]". Variables are resolved to column IDs automatically.
|
|
497
432
|
|
|
498
433
|
**Smart header grouping — column merging under parent headers:**
|
|
499
434
|
Use dot "." in alias to group columns: "Group.Column" → columns with same prefix merge under a shared header.
|
|
@@ -513,6 +448,7 @@ Every table automatically has a virtual _value column — the record's display n
|
|
|
513
448
|
- Tables are auto-sorted: lookups first, then parents, then children. No need to order manually.
|
|
514
449
|
- refTable must match the exact name of another table in the same plan.
|
|
515
450
|
- After plan_schema completes — ALL tables, columns, refs, and seed records are ALREADY created. Do NOT call create_table, add_column, create_object, or plan_schema after it — everything is done. Just tell the user what was created.
|
|
451
|
+
- LOOKUP/ROLLUP columns are NOT supported in plan_schema — create the tables first, then add them with create_computed.
|
|
516
452
|
|
|
517
453
|
**Example — Project Management:**
|
|
518
454
|
\`\`\`json
|
|
@@ -757,8 +693,8 @@ Block-based documents (like Notion). Activate via search_tools("документ
|
|
|
757
693
|
- list_documents(search, folderId) — browse documents
|
|
758
694
|
- get_document(docId) / get_document_blocks(docId) — read content and block structure
|
|
759
695
|
- create_document(title, parentId) — create new doc (parentId for nesting)
|
|
760
|
-
- append_block(docId, text, type) — add block at end. Types: text, heading, code, quote, list, todo.
|
|
761
|
-
- update_block(docId, blockId, text) — modify existing block
|
|
696
|
+
- append_block(docId, text, type, format) — add block at end. Types: text, heading, code, quote, list, todo. format:"delta" — text is a ready Quill delta {"ops":[…]}; without it, markdown autodetect/plain text.
|
|
697
|
+
- update_block(docId, blockId, text, format) — modify existing block. format:"delta" — text is a ready Quill delta {"ops":[…]}; without it, plain text.
|
|
762
698
|
- delete_block(docId, blockId) — remove block
|
|
763
699
|
- update_document_title(docId, title)
|
|
764
700
|
- delete_document(docId) — move document to trash (requires confirmation)
|
|
@@ -784,11 +720,13 @@ Event-driven rules: when X happens → check condition → do Y. Activate via se
|
|
|
784
720
|
|
|
785
721
|
create_automation({ name, trigger: { type, typeId }, active?, condition, actions: [{ type, …плоские ключи действия }] }) — действия хранятся с ПЛОСКИМИ ключами: { type: 'run_script', script: '…' }, вложенного config нет
|
|
786
722
|
- active: false — создать выключенной (по умолчанию включена; выключенная не встаёт в расписание и не срабатывает)
|
|
787
|
-
- Trigger types: on_create, on_update, on_delete, on_deadline, on_webhook, on_form_submit, schedule, manual, ai_analysis, on_metric_threshold, on_metric_silence, on_document, on_ncl_run_completed, on_ncl_requirement_created, on_ncl_evidence_stale, on_telegram_command, on_telegram_message, on_telegram_pre_checkout, on_telegram_shipping, on_telegram_payment, on_telegram_inline, on_telegram_join_request, on_telegram_business_connection, on_telegram_business_message, on_bot_chat_member, pm_deadline, on_issue_commented, on_issue_updated, on_issue_created, on_issue_status_changed, on_sprint_started, on_sprint_completed
|
|
723
|
+
- Trigger types: on_create, on_update, on_delete, on_deadline, on_webhook, on_form_submit, schedule, manual, ai_analysis, on_metric_threshold, on_metric_silence, on_document, on_ncl_run_completed, on_ncl_requirement_created, on_ncl_evidence_stale, on_telegram_command, on_telegram_message, on_telegram_pre_checkout, on_telegram_shipping, on_telegram_payment, on_telegram_inline, on_telegram_join_request, on_telegram_business_connection, on_telegram_business_message, on_bot_chat_member, pm_deadline, on_issue_commented, on_issue_updated, on_issue_created, on_issue_status_changed, on_sprint_started, on_sprint_completed, on_file_processed
|
|
724
|
+
on_file_processed: { status?: 'done'|'error'|'skipped'|'confirmed' (пусто = любой терминальный) }; в действиях доступны {{file_id}}, {{file_object_id}}, {{file_status}}, {{file_error}}, {{file_name}}
|
|
788
725
|
pm_deadline: { days: N (за сколько дней до due_date PM-задачи, default 1), hour: 0-23 (час UTC ежедневного скана, default 7) }; в действиях доступны {{pm_title}}, {{pm_number}}, {{pm_due_date}}, {{pm_assignee_email}} (send_notification адресуйте username: '{{pm_assignee_email}}')
|
|
789
726
|
on_issue_commented / on_issue_updated: событие PM-задачи (комментарий / правка полей), pm-переменные те же
|
|
790
|
-
- Actions: send_notification, send_notification_to_group, update_field, create_object, delete_object, fire_webhook, run_ai_agent, run_script, run_server_function, run_video_job, send_telegram, send_telegram_media, create_document, run_connector, send_email, update_related_records, set_requisite, update_related, http_request, if_else, switch, transform, wait_delay, request_approval, delegate_to_agent, invoke_agent, send_invoice, telegram_forward, answer_inline_query, telegram_ban, telegram_unban, telegram_restrict, telegram_promote, telegram_approve_join, telegram_decline_join, telegram_pin, telegram_unpin, telegram_get_chat, telegram_post_story, answer_shipping, telegram_business_reply, create_issue, update_issue
|
|
727
|
+
- Actions: send_notification, send_notification_to_group, update_field, create_object, delete_object, fire_webhook, run_ai_agent, run_script, run_server_function, run_video_job, send_telegram, send_telegram_media, create_document, run_connector, send_email, update_related_records, set_requisite, update_related, http_request, if_else, switch, transform, wait_delay, request_approval, delegate_to_agent, invoke_agent, send_invoice, telegram_forward, answer_inline_query, telegram_ban, telegram_unban, telegram_restrict, telegram_promote, telegram_approve_join, telegram_decline_join, telegram_pin, telegram_unpin, telegram_get_chat, telegram_post_story, answer_shipping, telegram_business_reply, create_issue, update_issue, link_issue
|
|
791
728
|
create_issue: { title, description?, issue_type?, priority?, assignee_id?, parent_id?, board_id?, sprint_id?, due_date?, estimate?, labels?, assigneeRole?, assigneeStrategy? } — создаёт PM-задачу; результат: {{_created_issue_id}}, {{_created_issue_number}}. assigneeRole — имя EAV-таблицы-роли воркспейса (строки = участники, у каждого логин в колонке «Логин»/«Username»/«Email», колонка ищется по имени или алиасу); assigneeStrategy: least_busy (умолчание) | first; assignee_id и assigneeRole взаимно исключают друг друга — конфликт отвергается при сохранении. Роль без резолвимых участников → задача без исполнителя + уведомление роли (или триггера), прогон не падает.
|
|
729
|
+
link_issue: { issue_id?, issue_number?, target_type?, target_id? } — привязывает задачу к цели через data-links (issue_id или issue_number; без них берётся {{_created_issue_id}} предыдущего create_issue); 409 (связь уже стоит) считается успехом.
|
|
792
730
|
update_issue: { id, title?, description?, issue_type?, status?, priority?, assignee_id?, sprint_id?, parent_id?, estimate?, due_date?, labels? } — правит PM-задачу; id можно взять из {{pm_issue_id}}
|
|
793
731
|
update_related_records: { childTypeId, matchRefReqId, targetTypeId, targetMatchReqId, targetFieldReqId, sourceFieldReqId, operation: 'add'|'subtract'|'set' } — declarative cross-table update (e.g. inventory deduction: order items → match product ref → subtract from stock)
|
|
794
732
|
run_server_function: { repo, fn, args?, resultVar?, idempotencyKey?, idempotencyMinutes? } — call a codespace server function (api/<fn>.js in a workspace git repo) from an automation; this is how repo code gets put on a schedule (trigger.type: 'schedule'), which previously was impossible since server functions were reachable only over HTTP from the portal. Same sandbox, capabilities and limits as the portal path (codespace/server-fn-executor.js); capabilities are declared by a "// capabilities:" comment inside the function file. Replay protection is ON by default: repo+fn+args+record runs once per idempotencyMinutes (default 1) — keep it BELOW the schedule interval or runs are silently skipped; 0 disables it. A failed call releases its claim so the next run retries. Sets {{_server_fn_error}} / {{_server_fn_skipped}}.
|
|
@@ -938,8 +876,6 @@ Client-facing portal management. Activate via search_tools("portal"); for @kit b
|
|
|
938
876
|
|
|
939
877
|
**Configuration:**
|
|
940
878
|
- get_portal_config() — current portal config (branding, pages, modules, auth, chat, SEO)
|
|
941
|
-
- set_portal_config(config, active, custom_domain, merge?) — create/replace full config. For \`custom_domain\`: omit it to keep the current value; \`null\` or empty string clears it. With \`merge: true\` — deep-merge partial config into existing (no need to send entire config; only changed fields). Arrays are NOT merged — a partial \`pages[]\` replaces every page; for a one-module change use update_portal_module. **Requires confirmation.**
|
|
942
|
-
- update_portal_module(slug, config, moduleIndex) — update one module without overwriting others. Shallow merge into modules[moduleIndex ?? 0].config — keys you pass replace, keys you omit survive. If the MCP tool call cannot be issued, the equivalent REST is workspace-admin JWT → POST /api/v2/:db/portal/api/config (same upsertConfig + cache invalidation). Both writers validate references: custom_code repo/file and bindings table:N must exist in THIS workspace, otherwise the save is rejected (REPO_NOT_IN_WORKSPACE / FILE_NOT_IN_REPO / TABLE_NOT_IN_WORKSPACE; defects already present in the previous config do not block the edit). Every save snapshots the previous config to history: GET /api/v2/:db/portal/api/config/history lists snapshots, POST .../config/restore {historyId} rolls back (REST, admin JWT).
|
|
943
879
|
- portal_preview() — get preview URL
|
|
944
880
|
- portal_publish(active) — publish (true) or unpublish (false). **Requires confirmation.**
|
|
945
881
|
|
|
@@ -1010,7 +946,7 @@ Client-facing portal management. Activate via search_tools("portal"); for @kit b
|
|
|
1010
946
|
- telegram_set_business_bio(botId, businessConnectionId, bio) — set bio (0-140 chars). **Requires confirmation.**
|
|
1011
947
|
- telegram_set_business_name(botId, businessConnectionId, firstName, lastName?) — set account name. **Requires confirmation.**
|
|
1012
948
|
|
|
1013
|
-
Bot config schema: { description?: "...", shortDescription?: "...", welcomeMessage?: "...", menuButton?: {type: "commands"|"web_app"|"default"}, employeeTable?: {typeId, chatIdReqId, roleReqId} }.
|
|
949
|
+
Bot config schema: { description?: "...", shortDescription?: "...", welcomeMessage?: "...", menuButton?: {type: "commands"|"web_app"|"default"}, employeeTable?: {typeId, chatIdReqId, roleReqId, emailReqId?} }.
|
|
1014
950
|
Bot reactions (commands + keywords) are stored as **automations** with trigger.botId — use create_automation with:
|
|
1015
951
|
- Command: trigger: { type: "on_telegram_command", command: "status", botId: N }
|
|
1016
952
|
- Keyword: trigger: { type: "on_telegram_message", pattern: "привет,hello", matchMode: "contains", botId: N }
|
|
@@ -1434,7 +1370,7 @@ const DESTRUCTIVE_TOOLS = new Set([
|
|
|
1434
1370
|
|
|
1435
1371
|
// English descriptions for MCP — backend TOOL_DEFS are in Russian for the in-app agent.
|
|
1436
1372
|
// Add entries here when introducing new tools so MCP clients see English descriptions.
|
|
1437
|
-
const EN_DESCRIPTIONS = {
|
|
1373
|
+
export const EN_DESCRIPTIONS = {
|
|
1438
1374
|
// Lookups
|
|
1439
1375
|
get_lookup: 'Get dropdown values for a lookup table by ID. Returns an array of records with id and display name.',
|
|
1440
1376
|
get_ref_options: 'Get available options for a reference column by reqId. Use before creating/updating objects to discover valid values for ref fields.',
|
|
@@ -1481,7 +1417,7 @@ const EN_DESCRIPTIONS = {
|
|
|
1481
1417
|
// Meta-KB
|
|
1482
1418
|
mk_revoke_entity: 'Revoke all knowledge base entities derived from a specified decision. Use when a decision was found to be incorrect. Returns { revoked: number, message: string }.',
|
|
1483
1419
|
mk_list_debates: 'List recent expert debates in the workspace. Returns { debates: Array, total: number }. Each debate has id, question, consensus, verdict, created_by, created_at.',
|
|
1484
|
-
mk_start_debate: 'Start an expert debate on a question. Internal workspace agents evaluate the question in parallel, then cross-examine, then synthesize a consensus. Returns {
|
|
1420
|
+
mk_start_debate: 'Start an expert debate on a question. Internal workspace agents evaluate the question in parallel, then cross-examine, then synthesize a consensus. Returns { consensus, debateId, stats }. Full protocol: mk_get_debate(debateId). Optional fast: true skips the cross-examination phase.',
|
|
1485
1421
|
mk_analytics: 'Get knowledge base analytics: entity/relation/class counts, orphan nodes, breakdown by source/type/status.',
|
|
1486
1422
|
mk_research: 'Research a concept in the knowledge graph: find matching entities, graph neighbors, and knowledge gaps.',
|
|
1487
1423
|
mk_propose_change: 'Propose a knowledge base change (add/update/delete entity). Creates a change request for human review. Returns { id, status: "pending" }.',
|
|
@@ -1675,13 +1611,13 @@ const EN_DESCRIPTIONS = {
|
|
|
1675
1611
|
search_tools: 'Discover and activate additional tools by keyword. Use when you need a capability missing from the current set (reports, schema, permissions, documents, automations).',
|
|
1676
1612
|
list_tables: 'List workspace tables. Returns ID, name, column count, creation date. Supports search and sorting. Returns: { items:[{id,name,columns}], total }.',
|
|
1677
1613
|
list_objects: 'Get records from a table. THE ONLY source of record data — always call for "how many records", "show", "find". Response has fields aliased by column name plus summary (aggregation over ref columns: top values with counts). Filter with where: { "Column name": "value" } — simple substring match, e.g. { "Status": "Active" }. Use search for full-text lookup when the column alias is unknown. VIEWS: pass viewId to apply the filters of a saved view automatically (list them via list_views); viewId combines with where (extra filters applied on top). PAGINATION: if hasMore=true, request page=2,3... until all data collected. USE summary FOR THE BIG PICTURE: do not enumerate all rows when there are many — rely on summary (distribution by country, type, manufacturer). Records without a value appear as a separate { value: null, count: N, noValue: true } row — count them or "how many X" won\'t match total. For a single ref the count sum equals total; for a multi ref (:MULTI:) it is legitimately larger. If _summaryTruncated is set, only the most frequent values are shown for those columns.',
|
|
1678
|
-
get_object: 'Get a full object record by ID. Returns: { id, type:"object", ...fields }. Error: { error:"NOT_FOUND", message }.',
|
|
1614
|
+
get_object: 'Get a full object record by ID. Returns: { id, type:"object", ...fields }. Error: { error:"NOT_FOUND", message }. NOT for documents: if the ID is a document, use get_document(docId).',
|
|
1679
1615
|
resolve_client: 'Recompute a client golden record from source rows using deterministic survivorship rules: per-field source priority + validators + lineage. Governed writeback — the only sanctioned way to write golden fields. Returns: { clientId, resolved, lineage, conflicts, goldenAddressId }.',
|
|
1680
1616
|
list_specs: 'List specs (declarative data invariants) of a table. Returns: { items:[{id,name,definition,enabled}], total }.',
|
|
1681
1617
|
check_record: 'Check a record against its table specs (or a specific specId). Returns: { objectId, pass, results:[{specId,name,pass,violations:[{field,op,problem}]}] }.',
|
|
1682
1618
|
run_spec: 'Run a spec across all records of a table and return violating rows. Returns: { specId, name, checked, failed, capped, violations:[{objectId,name,violations}] }.',
|
|
1683
1619
|
verify_client_shipping: 'Check whether a client is ready for physical shipping: valid phone, golden address, no unresolved source conflicts. Read-only. Returns: { clientId, ready, issues:[{field,problem}], conflicts }.',
|
|
1684
|
-
create_object: 'Create a new record in a table. For child-table records pass parentId — the parent record ID. Ref fields accept either an id (number) or the exact record name — the backend resolves name to id; ambiguous names throw an error (pass id instead). Returns: { id, type:"object", name, message }.',
|
|
1620
|
+
create_object: 'Create a new record in a table. For child-table records pass parentId — the parent record ID. Ref fields accept either an id (number) or the exact record name — the backend resolves name to id; ambiguous names throw an error (pass id instead). NOT for PM tasks: "create a task" — pm_create_issue. Returns: { id, type:"object", name, message }.',
|
|
1685
1621
|
update_object: 'Update fields of an existing record. Ref fields accept an id or the exact record name (resolved by backend). Returns: { id, type:"object", message }.',
|
|
1686
1622
|
delete_object: 'Delete a RECORD (object/row) from a table (requires confirmation). NOT for deleting tables — use delete_table for that. Returns: { message }.',
|
|
1687
1623
|
semantic_search: 'Semantic search across the whole workspace — finds meaningfully similar objects and documents. Use to find "something about X" without an exact name. Do NOT use for structural queries or when you already know the typeId.',
|
|
@@ -1695,11 +1631,11 @@ const EN_DESCRIPTIONS = {
|
|
|
1695
1631
|
// Documents
|
|
1696
1632
|
list_documents: 'List workspace documents. Returns ID, title, author, created/updated dates. Returns: { items:[{id,title}], total }.',
|
|
1697
1633
|
search_documents: 'Search documents by keywords. For meaning-based search use semantic_search.',
|
|
1698
|
-
get_document: 'Get document content by ID. Returns: { id, type:"document", title, blocks:[...] }.',
|
|
1699
|
-
get_document_blocks: 'Get the list of document blocks with their IDs.',
|
|
1634
|
+
get_document: 'Get document content by ID. Returns: { id, type:"document", title, blocks:[...] }. If docId is a table record ID, use get_object(objId). List blocks only — get_document_blocks(docId).',
|
|
1635
|
+
get_document_blocks: 'Get the list of document blocks with their IDs. For the full document content use get_document(docId).',
|
|
1700
1636
|
update_document_title: 'Change a document title. Returns: { id, type:"document", title, message }.',
|
|
1701
|
-
append_block: 'Append a text block to the end of a document. Returns: { type:"block", docId, message }.',
|
|
1702
|
-
update_block: 'Update the content of a document block. Returns: { id, type:"block", docId, message }.',
|
|
1637
|
+
append_block: 'Append a text block to the end of a document. format:"delta" — text is a ready Quill delta {"ops":[…]}; without it, markdown autodetect/plain text. Returns: { type:"block", docId, message }.',
|
|
1638
|
+
update_block: 'Update the content of a document block. format:"delta" — text is a ready Quill delta {"ops":[…]}; without it, plain text. Returns: { id, type:"block", docId, message }.',
|
|
1703
1639
|
delete_block: 'Delete a block from a document (requires confirmation). Returns: { message }.',
|
|
1704
1640
|
delete_document: 'Delete a document (moves to trash, requires HITL confirmation). Returns: { message }.',
|
|
1705
1641
|
get_doc_settings: 'Get document settings (access, visibility, permissions). Returns: { settings }.',
|
|
@@ -1707,16 +1643,16 @@ const EN_DESCRIPTIONS = {
|
|
|
1707
1643
|
create_doc_invite: 'Create an invite granting access to a document. Returns: { invite }.',
|
|
1708
1644
|
list_doc_invites: 'List invites for a document. Returns: { items, total }.',
|
|
1709
1645
|
revoke_doc_invite: 'Revoke a document invite. Returns: { message }.',
|
|
1710
|
-
// Editor ops
|
|
1711
|
-
editor_insert_text: '
|
|
1712
|
-
editor_str_replace: 'Find and replace a substring in
|
|
1713
|
-
editor_insert_heading: '
|
|
1714
|
-
editor_insert_callout: '
|
|
1715
|
-
editor_insert_table: '
|
|
1716
|
-
editor_insert_list: '
|
|
1717
|
-
editor_insert_mermaid: '
|
|
1718
|
-
editor_clear_and_write: 'Clear
|
|
1719
|
-
editor_append_section: 'Append a section of text to the end of
|
|
1646
|
+
// Editor ops — server-side writes; any open tab receives changes over WS
|
|
1647
|
+
editor_insert_text: 'Write text to the end of document docId (server-side; an open tab updates itself over WS). position: "cursor" is treated as "end".',
|
|
1648
|
+
editor_str_replace: 'Find and replace a substring in document docId (first occurrence, against persisted text). Not found — structured TEXT_NOT_FOUND error.',
|
|
1649
|
+
editor_insert_heading: 'Write a heading (level 1-6) to the end of document docId (server-side).',
|
|
1650
|
+
editor_insert_callout: 'Write a callout block to the end of document docId (server-side).',
|
|
1651
|
+
editor_insert_table: 'Write a table to the end of document docId (server-side).',
|
|
1652
|
+
editor_insert_list: 'Write a bulleted or numbered list to the end of document docId (server-side).',
|
|
1653
|
+
editor_insert_mermaid: 'Write a Mermaid diagram to the end of document docId (server-side).',
|
|
1654
|
+
editor_clear_and_write: 'Clear document docId and write new content (server-side; requires HITL confirmation).',
|
|
1655
|
+
editor_append_section: 'Append a section of text to the end of document docId (server-side).',
|
|
1720
1656
|
// Memory
|
|
1721
1657
|
remember: 'Save important information to long-term memory for future conversations.',
|
|
1722
1658
|
recall: 'Retrieve narrative context from long-term memory.',
|
|
@@ -1750,7 +1686,7 @@ const EN_DESCRIPTIONS = {
|
|
|
1750
1686
|
get_schema_snapshot: 'Get the table structure snapshot saved before a destructive operation (column deletion etc).',
|
|
1751
1687
|
get_schema_backlinks: 'Show which columns from OTHER tables reference this table (backlinks). Useful when building ROLLUP — shows available links. Returns: { items:[{colId,colName,fromTypeId,fromTypeName}] }.',
|
|
1752
1688
|
// Plan schema
|
|
1753
|
-
plan_schema: 'Create a COMPLETE data schema in one shot — tables, columns, lookups, links, child tables — in a single action with one user confirmation. USE INSTEAD OF create_table + add_column when creating 2+ tables. IMPORTANT: specify columns ONLY in the source table (the one that REFERENCES), not in the lookup table. Do NOT create a "Name"/"Title" column — it duplicates _value. Use valueColumnName for the display title. Returns: { type:"schema", tables:[{id,name}], created, skipped, errors, message }.',
|
|
1689
|
+
plan_schema: 'Create a COMPLETE data schema in one shot — tables, columns, lookups, links, child tables — in a single action with one user confirmation. USE INSTEAD OF create_table + add_column when creating 2+ tables. IMPORTANT: specify columns ONLY in the source table (the one that REFERENCES), not in the lookup table. Do NOT create a "Name"/"Title" column — it duplicates _value. Use valueColumnName for the display title. Computed FORMULA columns: {alias, kind: "FORMULA", expr: "[Price] * [Qty]"}. LOOKUP/ROLLUP are not supported here — use create_computed. Returns: { type:"schema", tables:[{id,name}], created, skipped, errors, message }.',
|
|
1754
1690
|
// AI Button
|
|
1755
1691
|
get_ai_button_config: 'Get AI button configuration (prompt, model, outputReqId, temperature).',
|
|
1756
1692
|
configure_ai_button: 'Configure an AI button — set the prompt, model, and where to write the result. In the prompt use [ColumnName] to substitute row values, [ID] for the record id, [VAL] for the record name. outputReqId — column ID to auto-write the result (optional). temperature: "low"(0.2)/"medium"(0.7)/"high"(1.2). agentMode: true runs a full AI agent with access to all tools (web_search, tables, documents etc).',
|
|
@@ -1779,7 +1715,7 @@ const EN_DESCRIPTIONS = {
|
|
|
1779
1715
|
list_roles: 'Show all roles and their access rights to object types (READ/WRITE/ADMIN). Use for "what roles exist", "role permissions", "what can an editor do" (admin only). Returns: { items:[{id,name}], total }.',
|
|
1780
1716
|
get_user_permissions: 'Show all permissions of a specific user — which objects and at what level (READ/WRITE/ADMIN), whether they can export and delete (admin only).',
|
|
1781
1717
|
get_permissions_report: 'Permissions matrix: users, roles, grants on object types (admin only).',
|
|
1782
|
-
set_grant: 'Grant or change access of a role or user to an object type (requires confirmation). level: NONE/READ/WRITE/ADMIN. targetTypeId=0 means all types (admin only).',
|
|
1718
|
+
set_grant: 'Grant or change access of a role or user to an object type (requires confirmation). level: NONE/READ/WRITE/ADMIN. targetTypeId=0 means all types (admin only). NOT for portal settings: portal config — set_portal_config.',
|
|
1783
1719
|
remove_grant: 'Revoke access of a role or user to an object type (requires confirmation, admin only).',
|
|
1784
1720
|
list_grants: 'List all workspace grants from the _v2_grants table. Filter by roleId or username. Returns: { items:[{id, role_id, username, target_type_id, level, can_export, can_delete}], total }.',
|
|
1785
1721
|
// Roles
|
|
@@ -1962,7 +1898,7 @@ const EN_DESCRIPTIONS = {
|
|
|
1962
1898
|
create_dashboard: 'Create a dashboard with widgets (requires HITL confirmation). Grid is 12 columns wide. Widgets go in widgets[], positions in layouts.lg[]. WIDGET TYPES AND CONFIG: kpi={typeId,title,aggregation:count|sum|avg,fieldReqId?} — a single number; chart={typeId,groupByReqId,aggregation:count|sum,chartType:bar|line|pie|doughnut,title} — grouping chart; table={typeId,limit,title?} — record table; text={content,title?} — markdown; kanban={typeId,groupByReqId,title?}; gallery={typeId,limit,title?}; card={typeId,objectId,title?}. LAYOUT: each widget in layouts.lg: {i,x,y,w,h} where w+x<=12. Recommended sizes: kpi=3x2, chart=6x5, table=6x5, text=12x3. WORKFLOW: first list_objects or get_table_schema to learn typeId and the reqId of columns for grouping. Returns: { id, type:"dashboard", title, message }.',
|
|
1963
1899
|
add_dashboard_widget: 'Add a single widget to an existing dashboard (requires HITL confirmation). IMPORTANT: type and config are separate parameters, NOT nested in a widget object. Position is automatic — the widget goes below all existing ones. TYPES AND CONFIG: kpi={typeId,aggregation:count|sum|avg,fieldReqId?}; chart={typeId,groupByReqId,aggregation:count|sum,chartType:bar|line|pie|doughnut}; table={typeId,limit?}; text={content}; kanban={typeId,groupByReqId}; gallery={typeId,limit?}; report={reportId}; document={docId}. Size (w,h) optional — defaults: kpi=3x2, chart=6x5, table=6x5, report=6x4, kanban=8x6. Returns: { widgetId, dashboardId, type:"dashboard", message }.',
|
|
1964
1900
|
remove_dashboard_widget: 'Remove a widget from a dashboard by its ID (requires HITL confirmation). widgetId comes from get_dashboard, widgets[].i.',
|
|
1965
|
-
update_dashboard: 'Fully update a dashboard — title and/or ALL widgets (requires HITL). To add/remove a single widget use add_dashboard_widget / remove_dashboard_widget. For renaming pass only title. Returns: { id, type:"dashboard", message }.',
|
|
1901
|
+
update_dashboard: 'Fully update a dashboard — title and/or ALL widgets (requires HITL). To add/remove a single widget use add_dashboard_widget / remove_dashboard_widget. For renaming pass only title. NOT for the portal: editing a portal module — update_portal_module(slug, config). Returns: { id, type:"dashboard", message }.',
|
|
1966
1902
|
delete_dashboard: 'Delete a dashboard entirely (requires HITL confirmation). Returns: { message }.',
|
|
1967
1903
|
// AI formula
|
|
1968
1904
|
generate_formula: 'AI-generate a FORMULA column expression — natural language description to {expr, vars}. Only for kind=FORMULA. For LOOKUP/ROLLUP use create_computed directly.',
|
|
@@ -1989,8 +1925,8 @@ const EN_DESCRIPTIONS = {
|
|
|
1989
1925
|
get_agent_tasks: 'Task history of an external agent: statuses, results, errors.',
|
|
1990
1926
|
// Portal
|
|
1991
1927
|
get_portal_config: 'Get the current portal config of the workspace: active flag, custom domain, module config.',
|
|
1992
|
-
set_portal_config: 'Create or update the portal config (branding, auth, pages). Without merge — full replacement. With merge: true — deep-merge a partial config into the existing one (no need to pass the whole config). Writes verify references: custom_code repo/file and bindings table:N must exist in this workspace — otherwise REPO_NOT_IN_WORKSPACE / FILE_NOT_IN_REPO / TABLE_NOT_IN_WORKSPACE (defects already present in the previous config do not block the edit). The previous config is pushed to history before writing (GET /portal/api/config/history, rollback via POST /portal/api/config/restore). Requires confirmation.',
|
|
1993
|
-
update_portal_module: 'Update the config of a single portal module (by slug) without overwriting the rest. Reference checks as in set_portal_config: repo/file/bindings must exist in this workspace.',
|
|
1928
|
+
set_portal_config: 'Create or update the portal config (branding, auth, pages). Without merge — full replacement. With merge: true — deep-merge a partial config into the existing one (no need to pass the whole config). Writes verify references: custom_code repo/file and bindings table:N must exist in this workspace — otherwise REPO_NOT_IN_WORKSPACE / FILE_NOT_IN_REPO / TABLE_NOT_IN_WORKSPACE (defects already present in the previous config do not block the edit). The previous config is pushed to history before writing (GET /portal/api/config/history, rollback via POST /portal/api/config/restore). Editing one module — update_portal_module(slug, config). NOT for access rights: grants — set_grant. Requires confirmation.',
|
|
1929
|
+
update_portal_module: 'Update the config of a single portal module (by slug) without overwriting the rest. Deep merge: nested objects (e.g. bindings) merge by key; `null` deletes a key; arrays and scalars are replaced wholesale. Reference checks as in set_portal_config: repo/file/bindings must exist in this workspace. NOT for dashboards: editing a dashboard — update_dashboard(id). Full config replacement — set_portal_config.',
|
|
1994
1930
|
portal_preview: 'Get the portal preview URL.',
|
|
1995
1931
|
portal_publish: 'Enable (active=true) or disable (active=false) the portal. Requires confirmation.',
|
|
1996
1932
|
// Telegram management
|
|
@@ -2173,7 +2109,7 @@ const EN_DESCRIPTIONS = {
|
|
|
2173
2109
|
// PM
|
|
2174
2110
|
pm_list_issues: 'List PM issues with optional filters.',
|
|
2175
2111
|
pm_get_issue: 'Get full details of a PM issue by ID.',
|
|
2176
|
-
pm_create_issue: 'Create a new PM issue. Trigger phrases: "create a task", "task in PM" — prefer this over create_object and documents. For multi-part work create an epic and attach child issues (parent_id) with labels — not one task with a wall of text.',
|
|
2112
|
+
pm_create_issue: 'Create a new PM issue. Trigger phrases: "create a task", "task in PM" — prefer this over create_object and documents. NOT for plain table records: create_object(typeId, fields). For multi-part work create an epic and attach child issues (parent_id) with labels — not one task with a wall of text.',
|
|
2177
2113
|
pm_update_issue: 'Update an existing PM issue. A checklist field passed here is ignored — checklist items are edited one at a time via pm_toggle_checklist and the issue checklist routes; pm_bulk_update rejects the field with a 400.',
|
|
2178
2114
|
pm_delete_issue: 'Soft-delete a PM issue.',
|
|
2179
2115
|
pm_move_issue: 'Move an issue to a different sprint, parent, or reorder within a list.',
|
package/package.json
CHANGED