@runeya/runeya 2.0.158 → 2.0.160
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/agent/index.js +423 -248
- package/agent/index.js.map +1 -1
- package/agent-manager-KMVSAAEZ.js +13 -0
- package/chat-2XMACPWG.js +28 -0
- package/{chunk-ETPXJSVC.js → chunk-7QWHH56G.js} +2 -2
- package/{chunk-N4ZP7T6L.js → chunk-AKBRIK4Z.js} +4 -4
- package/{chunk-SVKR7CYU.js → chunk-CM5OCVUF.js} +4 -4
- package/{chunk-NV7MBTNW.js → chunk-DFUOLMOH.js} +5 -5
- package/{chunk-L3BEQ75K.js → chunk-EONEQJPD.js} +5 -5
- package/{chunk-V7WTXGEJ.js → chunk-ETVH3KQN.js} +6 -6
- package/{chunk-4HN2AGBV.js → chunk-KPWYNT4N.js} +215 -24
- package/chunk-KPWYNT4N.js.map +1 -0
- package/{chunk-TMX3NXMQ.js → chunk-L5M653DB.js} +6 -6
- package/{chunk-EZ35ISYR.js → chunk-LQSGSTGA.js} +197 -67
- package/chunk-LQSGSTGA.js.map +1 -0
- package/{chunk-SGFGQ2EL.js → chunk-VMRDER22.js} +5 -5
- package/chunk-VMRDER22.js.map +1 -0
- package/{chunk-JAMAGUGN.js → chunk-YRX375BB.js} +2 -2
- package/{chunk-N5LP5TPS.js → chunk-Z3HMLODE.js} +2 -2
- package/{chunk-DVECWRFG.js → chunk-ZULN5CM7.js} +35 -19
- package/chunk-ZULN5CM7.js.map +1 -0
- package/{companion-KVAOV52T.js → companion-UNWSLQCL.js} +17 -9
- package/{desktop-installer-page-DCS2FLA5.js → desktop-installer-page-N4JMRAAJ.js} +3 -3
- package/{desktop-launcher-ER3J7KAW.js → desktop-launcher-O7LFXEYZ.js} +3 -3
- package/{environment-resolver-HT6GTSLA.js → environment-resolver-S3QD7UJH.js} +6 -6
- package/{external-3QTRN4YV.js → external-5XDY2FMV.js} +3 -3
- package/index.js +12 -12
- package/{install-gate-WZR3XSN6.js → install-gate-MXRFIBIH.js} +2 -2
- package/mcp-server/external.js +160 -63
- package/mcp-server/external.js.map +1 -1
- package/mcp-server/index.js +160 -63
- package/mcp-server/index.js.map +1 -1
- package/package.json +1 -1
- package/{project-store-6TFAYAWK.js → project-store-HHMB2DIU.js} +7 -7
- package/settings-manager-SK7BDCQO.js +10 -0
- package/{src-F5SK2AL3.js → src-4XOEKUXK.js} +1168 -897
- package/src-4XOEKUXK.js.map +1 -0
- package/{src-DBSSIQC7.js → src-LBTF5RDR.js} +46 -2
- package/{vault-resolver-G3G5YPNG.js → vault-resolver-DL5FWIGZ.js} +3 -3
- package/web/assets/{AgentScalarChatInterface.vue-DgXKqqWC.js → AgentScalarChatInterface.vue-DlQ9QbMY.js} +1 -1
- package/web/assets/{AgentTerminalPage-B_cExmB6.js → AgentTerminalPage-BJqwsAx7.js} +1 -1
- package/web/assets/{AiChatModals-CNyUOq-o.js → AiChatModals-BDUz4ayE.js} +2 -2
- package/web/assets/AppLayout-B371VSKT.js +1 -0
- package/web/assets/AppLayout-iUAYhMxU.css +1 -0
- package/web/assets/{AuditPage-C8f1gRUr.js → AuditPage-CDmWtBlr.js} +1 -1
- package/web/assets/{CloudAccountPage-BC45p4uK.js → CloudAccountPage-Bk8QoNat.js} +1 -1
- package/web/assets/{CloudMessagingPage-BCEZdgoe.js → CloudMessagingPage-BYFfDa7H.js} +2 -2
- package/web/assets/{DashboardPage-CGtK_iBU.js → DashboardPage-BnmqlmJ6.js} +1 -1
- package/web/assets/{DirectoryPickerDialog-Ciy6QiOl.js → DirectoryPickerDialog-BwBzq-Ib.js} +1 -1
- package/web/assets/{EditorIcon-Cx11i-sC.js → EditorIcon-DYGui0zm.js} +1 -1
- package/web/assets/{EnvironmentForm-Dm5RBLw3.js → EnvironmentForm-D5thrtnK.js} +1 -1
- package/web/assets/{EnvironmentFormPage-tEpeq4it.js → EnvironmentFormPage-BvS6f3_v.js} +1 -1
- package/web/assets/{EnvironmentListPage-D8ppIAWE.js → EnvironmentListPage-BMpha28O.js} +1 -1
- package/web/assets/{FlagChip-UumVjPY9.js → FlagChip-DBj0fpJC.js} +1 -1
- package/web/assets/KanbanListPage-CsTOrPbp.js +1 -0
- package/web/assets/{KnowledgeListPage-BBhzvW-h.js → KnowledgeListPage-CGLjHGEt.js} +1 -1
- package/web/assets/{KnowledgePagePage-Bnnhyxfi.js → KnowledgePagePage-Dqu2hdSi.js} +1 -1
- package/web/assets/{LaunchProjectPage-BHbOO-qr.js → LaunchProjectPage-_FRQApLZ.js} +1 -1
- package/web/assets/{LaunchServicesPage-CrKG4CUc.js → LaunchServicesPage-ClyWpgrZ.js} +1 -1
- package/web/assets/{LaunchShell-BHgU9IFB.js → LaunchShell-DazwHw9x.js} +1 -1
- package/web/assets/LogViewer-BGpxumRk.js +3 -0
- package/web/assets/{OrgKeyPrompt-CmHBAJRR.js → OrgKeyPrompt-CJNrQ_wO.js} +1 -1
- package/web/assets/{ProcessControls-Bs5rpuyG.js → ProcessControls-jj09aiTP.js} +1 -1
- package/web/assets/{ProcessDetailPage-BouE6rnn.js → ProcessDetailPage-A-7cwr0N.js} +1 -1
- package/web/assets/{ProcessMetrics-DisQYLu6.js → ProcessMetrics-CAiB2nbb.js} +1 -1
- package/web/assets/{ProjectCreateDialog-CK-RH0wb.js → ProjectCreateDialog-LOK2KCbC.js} +1 -1
- package/web/assets/{ProjectLocationGate-j_EaQ37h.js → ProjectLocationGate-Cycmx3Qp.js} +1 -1
- package/web/assets/{ProjectPublishDialog-D7lTBCu_.js → ProjectPublishDialog-BK3lQrM5.js} +1 -1
- package/web/assets/{RandomJobTestPage-D11UxER3.js → RandomJobTestPage-D96PVnUs.js} +1 -1
- package/web/assets/{ScenarioEditorPage-D0ZyVUSQ.js → ScenarioEditorPage-Dr-vIMo-.js} +1 -1
- package/web/assets/{SendToChatDialog-j61mBTkW.js → SendToChatDialog-D4jRJpo9.js} +1 -1
- package/web/assets/{ServiceControlsBar-C2E_SEkD.js → ServiceControlsBar-CMMqc5Aj.js} +1 -1
- package/web/assets/{ServiceDetailPage-m_oJmvYC.js → ServiceDetailPage-mvyj5ljn.js} +1 -1
- package/web/assets/{ServiceFormPage-DyxF-esJ.js → ServiceFormPage-CRPYTrvA.js} +1 -1
- package/web/assets/{SettingsPage-BLaufENl.js → SettingsPage-BzvQ7QFy.js} +39 -39
- package/web/assets/{SettingsPage-Dsuzjo8r.css → SettingsPage-eID2nZZb.css} +1 -1
- package/web/assets/{UnlockPage-BmKWcShW.js → UnlockPage-BOtVWFNI.js} +1 -1
- package/web/assets/{VaultMigrationPage-CScIzmKv.js → VaultMigrationPage-B-0XeVkC.js} +1 -1
- package/web/assets/{VersionBadge-yfgoumwX.js → VersionBadge-Df5nYt5K.js} +1 -1
- package/web/assets/{WikiPage-WQBT7wLD.js → WikiPage-ZZ9OOPF3.js} +1 -1
- package/web/assets/WikiView-CR-7T69N.js +1 -0
- package/web/assets/{add-scalar-classes-C4A2C4Db.js → add-scalar-classes--DG4NWe_.js} +2 -2
- package/web/assets/{agent.store-n7zoFDoU.js → agent.store-B1T86nA6.js} +1 -1
- package/web/assets/auth-BBPhEkWy.js +2 -0
- package/web/assets/cloud-chat.store-CcnZa3kG.js +1 -0
- package/web/assets/cloud-client-DuiKxuIt.js +2 -0
- package/web/assets/{cloud-session-sF4HS72U.js → cloud-session-Dj2fMKcz.js} +2 -2
- package/web/assets/dist-DWtN-uEL.js +1 -0
- package/web/assets/i18n-D9syaX83.js +17 -0
- package/web/assets/{index-DozDRY7J.css → index-CchrQcOP.css} +1 -1
- package/web/assets/index-CoCePqYs.js +50 -0
- package/web/assets/knowledge-host-CRRuuH04.js +7 -0
- package/web/assets/knowledge-host-Dcy_zpf6.css +1 -0
- package/web/assets/{modal-BE_ZgM3t.js → modal-CiY8ERvc.js} +1 -1
- package/web/assets/{notification.store-BCON_qHz.js → notification.store-GxozJ0Vy.js} +1 -1
- package/web/assets/pdf-BHDyQiZ-.js +54 -0
- package/web/assets/pdf.worker.min-CuFqICzs.js +51 -0
- package/web/assets/{project-launch.store-Cd0LhFqV.js → project-launch.store-CNT8Buo8.js} +1 -1
- package/web/assets/{project.store-Doqh_upd.js → project.store-C8ckld_2.js} +1 -1
- package/web/assets/scenario.store-DgrGUEgB.js +7 -0
- package/web/assets/{service.store-BtPdRbHy.js → service.store-C9J8abIo.js} +1 -1
- package/web/assets/{settings-scope-BB3H0WrY.js → settings-scope-CI0lqhdd.js} +1 -1
- package/web/assets/{settings.store-B51AlAcp.js → settings.store-9PqM27KN.js} +1 -1
- package/web/assets/{src-CcVk2-Gw.js → src-B1nAsOcw.js} +1 -1
- package/web/assets/src-BR35jQnn.css +1 -0
- package/web/assets/src-C1M5hNGI.css +1 -0
- package/web/assets/{src-55L4GktS.js → src-C1pDBhwJ.js} +89 -24
- package/web/assets/src-D_HTzAKM.js +185 -0
- package/web/assets/src-DwxqtlGt.js +1 -0
- package/web/assets/src-ZDBDx6hs.css +1 -0
- package/web/assets/src-dOj6pCsH.css +1 -0
- package/web/assets/{trpc-CcVyWYH-.js → trpc-hVn9TTl9.js} +3 -3
- package/web/assets/useEnvVarAutocomplete-CokYA4JJ.js +1 -0
- package/web/assets/{useProjectCatalog-BiDVlcdO.js → useProjectCatalog-CYjZYzEn.js} +1 -1
- package/web/assets/{useProjectCloudOrg-CjDX0EaT.js → useProjectCloudOrg-GSxgZBKD.js} +1 -1
- package/web/assets/{useServiceUrlHost-CVjTMrmw.js → useServiceUrlHost-gLOpBQz6.js} +1 -1
- package/web/assets/uuid-D2uso58z.js +1 -0
- package/web/assets/w3c-keyname-BOAvb0qz.js +1 -0
- package/web/index.html +29 -19
- package/agent-manager-KDL4JWZN.js +0 -13
- package/chat-H5KZT3O6.js +0 -28
- package/chunk-4HN2AGBV.js.map +0 -1
- package/chunk-DVECWRFG.js.map +0 -1
- package/chunk-EZ35ISYR.js.map +0 -1
- package/chunk-SGFGQ2EL.js.map +0 -1
- package/settings-manager-OTVXDUJS.js +0 -10
- package/src-F5SK2AL3.js.map +0 -1
- package/web/assets/AppLayout-B1-D2-jx.css +0 -1
- package/web/assets/AppLayout-DPNVmCyo.js +0 -1
- package/web/assets/KanbanBoardPage-CamUcYCQ.js +0 -4
- package/web/assets/KanbanBoardPage-Cy1VPXZs.css +0 -1
- package/web/assets/KanbanListPage-C_DZwAKD.js +0 -1
- package/web/assets/LogViewer-DeTRyWSh.js +0 -3
- package/web/assets/WikiView-CXXW1EZ1.js +0 -1
- package/web/assets/auth-Bh28S0O0.js +0 -2
- package/web/assets/cloud-chat.store-C4WdXFzT.js +0 -1
- package/web/assets/cloud-client-D7GDcRGa.js +0 -2
- package/web/assets/composables-CCbqJqnd.js +0 -1
- package/web/assets/dist-Cx_klvkk.js +0 -1
- package/web/assets/i18n-B8hHo8g2.js +0 -17
- package/web/assets/index-Ccvk-qRh.js +0 -297
- package/web/assets/knowledge-host-97o7-gG1.js +0 -7
- package/web/assets/knowledge-host-D3fiBt2z.css +0 -1
- package/web/assets/scenario-run-overrides-BqTAaZZz.js +0 -1
- package/web/assets/scenario.store-Bttan_98.js +0 -7
- package/web/assets/shared-sse-Dcj_cNvF.js +0 -1
- package/web/assets/src-16-vEwhK.css +0 -1
- package/web/assets/src-B-YFvUDL.css +0 -1
- package/web/assets/src-DOziuDw8.css +0 -1
- package/web/assets/src-IxogYJKL.js +0 -1
- package/web/assets/useCloudOrg-43CkkppL.js +0 -1
- package/web/assets/useEnvVarAutocomplete-DGB9ZE4S.js +0 -1
- package/web/assets/uuid-DfCowYZy.js +0 -1
- /package/{agent-manager-KDL4JWZN.js.map → agent-manager-KMVSAAEZ.js.map} +0 -0
- /package/{chat-H5KZT3O6.js.map → chat-2XMACPWG.js.map} +0 -0
- /package/{chunk-ETPXJSVC.js.map → chunk-7QWHH56G.js.map} +0 -0
- /package/{chunk-N4ZP7T6L.js.map → chunk-AKBRIK4Z.js.map} +0 -0
- /package/{chunk-SVKR7CYU.js.map → chunk-CM5OCVUF.js.map} +0 -0
- /package/{chunk-NV7MBTNW.js.map → chunk-DFUOLMOH.js.map} +0 -0
- /package/{chunk-L3BEQ75K.js.map → chunk-EONEQJPD.js.map} +0 -0
- /package/{chunk-V7WTXGEJ.js.map → chunk-ETVH3KQN.js.map} +0 -0
- /package/{chunk-TMX3NXMQ.js.map → chunk-L5M653DB.js.map} +0 -0
- /package/{chunk-JAMAGUGN.js.map → chunk-YRX375BB.js.map} +0 -0
- /package/{chunk-N5LP5TPS.js.map → chunk-Z3HMLODE.js.map} +0 -0
- /package/{companion-KVAOV52T.js.map → companion-UNWSLQCL.js.map} +0 -0
- /package/{desktop-installer-page-DCS2FLA5.js.map → desktop-installer-page-N4JMRAAJ.js.map} +0 -0
- /package/{desktop-launcher-ER3J7KAW.js.map → desktop-launcher-O7LFXEYZ.js.map} +0 -0
- /package/{environment-resolver-HT6GTSLA.js.map → environment-resolver-S3QD7UJH.js.map} +0 -0
- /package/{external-3QTRN4YV.js.map → external-5XDY2FMV.js.map} +0 -0
- /package/{install-gate-WZR3XSN6.js.map → install-gate-MXRFIBIH.js.map} +0 -0
- /package/{project-store-6TFAYAWK.js.map → project-store-HHMB2DIU.js.map} +0 -0
- /package/{settings-manager-OTVXDUJS.js.map → settings-manager-SK7BDCQO.js.map} +0 -0
- /package/{src-DBSSIQC7.js.map → src-LBTF5RDR.js.map} +0 -0
- /package/{vault-resolver-G3G5YPNG.js.map → vault-resolver-DL5FWIGZ.js.map} +0 -0
package/mcp-server/external.js
CHANGED
|
@@ -4,7 +4,7 @@ import { join as join2 } from "path";
|
|
|
4
4
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
5
5
|
|
|
6
6
|
// ../ai-capabilities/dist/index.js
|
|
7
|
-
import { z as
|
|
7
|
+
import { z as z24 } from "zod";
|
|
8
8
|
|
|
9
9
|
// ../shared/dist/chunk-L6P7TAOW.js
|
|
10
10
|
import { z } from "zod";
|
|
@@ -227,6 +227,7 @@ import { z as z19 } from "zod";
|
|
|
227
227
|
import { z as z20 } from "zod";
|
|
228
228
|
import { z as z21 } from "zod";
|
|
229
229
|
import { z as z222 } from "zod";
|
|
230
|
+
import { z as z23 } from "zod";
|
|
230
231
|
import { createCipheriv, createDecipheriv, randomBytes, pbkdf2Sync } from "crypto";
|
|
231
232
|
import vm from "vm";
|
|
232
233
|
import * as Y from "yjs";
|
|
@@ -1482,33 +1483,129 @@ var ConversationSearchHitSchema = IntegrationConversationSchema.extend({
|
|
|
1482
1483
|
preview: z21.string().max(500),
|
|
1483
1484
|
linkedCards: z21.array(z21.object({ boardId: z21.string().max(64), cardId: z21.string().max(64), title: z21.string().max(500) }))
|
|
1484
1485
|
});
|
|
1485
|
-
var
|
|
1486
|
-
var
|
|
1487
|
-
var
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
var
|
|
1486
|
+
var SupportKindSchema = z222.enum(["bug", "improvement", "question"]);
|
|
1487
|
+
var SupportStatusSchema = z222.enum(["open", "waiting", "closed"]);
|
|
1488
|
+
var SUPPORT_SUBJECT_MAX = 200;
|
|
1489
|
+
var SUPPORT_BODY_MAX = 1e4;
|
|
1490
|
+
var SUPPORT_CONTEXT_MAX = 2e3;
|
|
1491
|
+
var SUPPORT_MAX_FILES = 20;
|
|
1492
|
+
var SupportAttachmentSchema = z222.object({
|
|
1493
|
+
id: z222.string().max(128),
|
|
1494
|
+
name: z222.string().max(255),
|
|
1495
|
+
size: z222.number().int().nonnegative(),
|
|
1496
|
+
contentType: z222.string().max(128)
|
|
1497
|
+
}).strict();
|
|
1498
|
+
var AttachmentIds = z222.array(z222.string().min(1).max(128)).max(SUPPORT_MAX_FILES);
|
|
1499
|
+
var SupportCreateInputSchema = z222.object({
|
|
1500
|
+
kind: SupportKindSchema,
|
|
1501
|
+
subject: z222.string().trim().min(1).max(SUPPORT_SUBJECT_MAX),
|
|
1502
|
+
body: z222.string().trim().min(1).max(SUPPORT_BODY_MAX),
|
|
1503
|
+
/** Obligatoire sans session : c'est par là que la réponse arrive. */
|
|
1504
|
+
email: z222.string().trim().email().max(254).optional(),
|
|
1505
|
+
/** Version de l'app, système… Rempli par l'app, lu par le support. */
|
|
1506
|
+
context: z222.string().max(SUPPORT_CONTEXT_MAX).optional(),
|
|
1507
|
+
source: z222.enum(["app", "cloud"]),
|
|
1508
|
+
attachmentIds: AttachmentIds.optional()
|
|
1509
|
+
});
|
|
1510
|
+
var SupportReplyInputSchema = z222.object({
|
|
1511
|
+
body: z222.string().trim().max(SUPPORT_BODY_MAX),
|
|
1512
|
+
attachmentIds: AttachmentIds.optional()
|
|
1513
|
+
});
|
|
1514
|
+
var SupportMessageViewSchema = z222.object({
|
|
1515
|
+
id: z222.string(),
|
|
1516
|
+
from: z222.enum(["requester", "support"]),
|
|
1517
|
+
authorName: z222.string(),
|
|
1518
|
+
body: z222.string(),
|
|
1519
|
+
sentAt: z222.string(),
|
|
1520
|
+
attachments: z222.array(SupportAttachmentSchema).optional()
|
|
1521
|
+
}).strict();
|
|
1522
|
+
var SupportTicketSummarySchema = z222.object({
|
|
1523
|
+
id: z222.string(),
|
|
1524
|
+
number: z222.number().int(),
|
|
1525
|
+
kind: SupportKindSchema,
|
|
1526
|
+
subject: z222.string(),
|
|
1527
|
+
status: SupportStatusSchema,
|
|
1528
|
+
createdAt: z222.string(),
|
|
1529
|
+
updatedAt: z222.string(),
|
|
1530
|
+
/** Le support a répondu depuis la dernière lecture du demandeur. */
|
|
1531
|
+
unread: z222.boolean()
|
|
1532
|
+
}).strict();
|
|
1533
|
+
var SupportTicketViewSchema = SupportTicketSummarySchema.extend({
|
|
1534
|
+
messages: z222.array(SupportMessageViewSchema)
|
|
1535
|
+
}).strict();
|
|
1536
|
+
var SupportCreatedSchema = z222.object({
|
|
1537
|
+
ticket: SupportTicketViewSchema,
|
|
1538
|
+
accessToken: z222.string().optional()
|
|
1539
|
+
}).strict();
|
|
1540
|
+
var SupportCardLinkSchema = z222.object({
|
|
1541
|
+
organizationId: z222.string(),
|
|
1542
|
+
boardId: z222.string(),
|
|
1543
|
+
cardId: z222.string(),
|
|
1544
|
+
title: z222.string(),
|
|
1545
|
+
origin: z222.enum(["auto", "manual"])
|
|
1546
|
+
});
|
|
1547
|
+
var SupportStaffMessageViewSchema = z222.object({
|
|
1548
|
+
id: z222.string(),
|
|
1549
|
+
from: z222.enum(["requester", "support", "internal"]),
|
|
1550
|
+
authorName: z222.string(),
|
|
1551
|
+
body: z222.string(),
|
|
1552
|
+
sentAt: z222.string(),
|
|
1553
|
+
attachments: z222.array(SupportAttachmentSchema).optional()
|
|
1554
|
+
});
|
|
1555
|
+
var SupportStaffTicketSummarySchema = z222.object({
|
|
1556
|
+
id: z222.string(),
|
|
1557
|
+
number: z222.number().int(),
|
|
1558
|
+
kind: SupportKindSchema,
|
|
1559
|
+
subject: z222.string(),
|
|
1560
|
+
status: SupportStatusSchema,
|
|
1561
|
+
source: z222.enum(["app", "cloud"]),
|
|
1562
|
+
requester: z222.object({ email: z222.string(), name: z222.string().nullable(), userId: z222.string().nullable() }),
|
|
1563
|
+
createdAt: z222.string(),
|
|
1564
|
+
updatedAt: z222.string(),
|
|
1565
|
+
/** Le demandeur a écrit depuis la dernière lecture du support. */
|
|
1566
|
+
unread: z222.boolean(),
|
|
1567
|
+
cards: z222.array(SupportCardLinkSchema)
|
|
1568
|
+
});
|
|
1569
|
+
var SupportStaffTicketViewSchema = SupportStaffTicketSummarySchema.extend({
|
|
1570
|
+
context: z222.string().nullable(),
|
|
1571
|
+
messages: z222.array(SupportStaffMessageViewSchema)
|
|
1572
|
+
});
|
|
1573
|
+
var SupportSettingsSchema = z222.object({
|
|
1574
|
+
autoCard: z222.object({
|
|
1575
|
+
enabled: z222.boolean(),
|
|
1576
|
+
organizationId: z222.string().max(64).nullable(),
|
|
1577
|
+
boardId: z222.string().max(64).nullable(),
|
|
1578
|
+
columnId: z222.string().max(64).nullable(),
|
|
1579
|
+
kinds: z222.array(SupportKindSchema).max(3)
|
|
1580
|
+
})
|
|
1581
|
+
});
|
|
1582
|
+
var ChangelogSurfaceSchema = z23.enum(["app", "cloud"]);
|
|
1583
|
+
var ChangelogChangeKindSchema = z23.enum(["feature", "improvement", "fix", "breaking"]);
|
|
1584
|
+
var ChangelogTextSchema = z23.object({
|
|
1585
|
+
fr: z23.string().min(1).max(500),
|
|
1586
|
+
en: z23.string().min(1).max(500)
|
|
1587
|
+
});
|
|
1588
|
+
var ChangelogChangeSchema = z23.object({
|
|
1492
1589
|
kind: ChangelogChangeKindSchema,
|
|
1493
1590
|
text: ChangelogTextSchema
|
|
1494
1591
|
});
|
|
1495
1592
|
var ChangelogDraftSchema = ChangelogChangeSchema.extend({
|
|
1496
|
-
date:
|
|
1593
|
+
date: z23.string().regex(/^\d{4}-\d{2}-\d{2}$/),
|
|
1497
1594
|
title: ChangelogTextSchema.optional()
|
|
1498
1595
|
});
|
|
1499
|
-
var ChangelogReleaseSchema =
|
|
1596
|
+
var ChangelogReleaseSchema = z23.object({
|
|
1500
1597
|
surface: ChangelogSurfaceSchema,
|
|
1501
1598
|
/** `1.4.2` pour l'app (version npm publiée), `2026-09-03` — ou `2026-09-03.2` — pour le cloud. */
|
|
1502
|
-
version:
|
|
1599
|
+
version: z23.string().min(1).max(32).regex(/^[0-9][0-9.-]*$/),
|
|
1503
1600
|
/** Date de publication, `YYYY-MM-DD`. */
|
|
1504
|
-
date:
|
|
1601
|
+
date: z23.string().regex(/^\d{4}-\d{2}-\d{2}$/),
|
|
1505
1602
|
/** Facultatif : une version peut s'annoncer par son seul numéro. */
|
|
1506
1603
|
title: ChangelogTextSchema.optional(),
|
|
1507
1604
|
/** Une version sans changement n'a rien à annoncer : elle n'a pas sa place ici. */
|
|
1508
|
-
changes:
|
|
1605
|
+
changes: z23.array(ChangelogChangeSchema).min(1).max(50)
|
|
1509
1606
|
});
|
|
1510
1607
|
var ChangelogIndexItemSchema = ChangelogReleaseSchema.omit({ changes: true }).extend({
|
|
1511
|
-
changeCount:
|
|
1608
|
+
changeCount: z23.number().int().nonnegative()
|
|
1512
1609
|
});
|
|
1513
1610
|
var MASKED_VALUE = "***";
|
|
1514
1611
|
function maskLogSourceSecrets(sources) {
|
|
@@ -1564,7 +1661,7 @@ var EDITOR_BY_KEY = new Map(
|
|
|
1564
1661
|
);
|
|
1565
1662
|
|
|
1566
1663
|
// ../ai-capabilities/dist/index.js
|
|
1567
|
-
import { z as
|
|
1664
|
+
import { z as z25 } from "zod";
|
|
1568
1665
|
import { z as z32 } from "zod";
|
|
1569
1666
|
function toList(raw) {
|
|
1570
1667
|
if (!raw) return [];
|
|
@@ -1614,15 +1711,15 @@ function parseTyped(name, schema, raw) {
|
|
|
1614
1711
|
if (list.success) result = list;
|
|
1615
1712
|
}
|
|
1616
1713
|
}
|
|
1617
|
-
if (!result.success) throw new Error(`${name}: ${
|
|
1714
|
+
if (!result.success) throw new Error(`${name}: ${z24.prettifyError(result.error)}`);
|
|
1618
1715
|
return result.data;
|
|
1619
1716
|
}
|
|
1620
1717
|
function withIds(items) {
|
|
1621
1718
|
return items.map((item) => ({ ...item, id: item.id || newId() }));
|
|
1622
1719
|
}
|
|
1623
|
-
var optionalId = (schema) => schema.extend({ id:
|
|
1720
|
+
var optionalId = (schema) => schema.extend({ id: z24.string().min(1).max(64).optional() });
|
|
1624
1721
|
var DockerConfigInput = DockerConfigSchema.extend({
|
|
1625
|
-
bootstrapCommands:
|
|
1722
|
+
bootstrapCommands: z24.array(optionalId(BootstrapCommandSchema)).max(20).default([])
|
|
1626
1723
|
}).refine((c) => !!c.image !== !!c.dockerfile, {
|
|
1627
1724
|
message: 'dockerConfig needs exactly one of "image" (an image to pull) or "dockerfile" (a Dockerfile to build)'
|
|
1628
1725
|
});
|
|
@@ -1631,7 +1728,7 @@ var SERVICE_FIELDS = [
|
|
|
1631
1728
|
{ name: "agentId", description: "The agent that runs it, from list_agents. Omit to inherit from the environment.", clearable: true },
|
|
1632
1729
|
{ name: "cwd", description: `Working directory, RELATIVE to the project root (e.g. "apps/web", or omit for the root). The project is synced between machines and lives in a different folder on each: Runeya resolves a relative cwd against each machine's own project folder, while an absolute path (/home/you/\u2026) breaks on every other machine. Use an absolute path only for something outside the project, written with ~ or an environment variable ($NAME) rather than a literal home directory.`, clearable: true },
|
|
1633
1730
|
{ name: "command", description: 'Shortcut for a single command line (e.g. "npm run dev"). Replaces every existing command. Use commands for several.' },
|
|
1634
|
-
{ name: "commands", description: 'The processes of the service. They all start AT THE SAME TIME, in parallel, and the service runs while they run \u2014 not one after another. Use several for processes that live side by side (a web server and a worker). Steps that must follow each other (build, then install, then launch) go in ONE command chained with &&. A one-off action the user triggers by hand (build, deploy, read logs) is a shortcut, not a command. Each command runs in the service cwd, or its own "cwd", relative to the project root. No absolute paths of this machine: the service is synced to other machines. Replaces every existing command. "id" is generated when omitted; "shell" runs the line through a shell (default true).', schema:
|
|
1731
|
+
{ name: "commands", description: 'The processes of the service. They all start AT THE SAME TIME, in parallel, and the service runs while they run \u2014 not one after another. Use several for processes that live side by side (a web server and a worker). Steps that must follow each other (build, then install, then launch) go in ONE command chained with &&. A one-off action the user triggers by hand (build, deploy, read logs) is a shortcut, not a command. Each command runs in the service cwd, or its own "cwd", relative to the project root. No absolute paths of this machine: the service is synced to other machines. Replaces every existing command. "id" is generated when omitted; "shell" runs the line through a shell (default true).', schema: z24.array(optionalId(ServiceCommandSchema)).max(50) },
|
|
1635
1732
|
{ name: "ports", description: "Ports the service listens on. Declare them: they become {{service.PORT}}, {{service.URL}} and {{services.<slug>.URL}} for the other services, which environment variables should reference instead of repeating the numbers.", schema: ServiceConfigSchema.shape.ports.unwrap().unwrap() },
|
|
1636
1733
|
{ name: "groups", description: "Groups the service belongs to. Replaces the current ones.", schema: ServiceConfigSchema.shape.groups.unwrap().unwrap() },
|
|
1637
1734
|
{ name: "url", description: "URL where the service is reached" },
|
|
@@ -1643,19 +1740,19 @@ var SERVICE_FIELDS = [
|
|
|
1643
1740
|
{ name: "runner", description: '"native" runs the commands on the machine; "docker" runs the service in a container and then needs dockerConfig', schema: ServiceConfigSchema.shape.runner.unwrap().unwrap() },
|
|
1644
1741
|
{ name: "dockerConfig", description: 'With runner "docker": the container. Exactly one of "image" (pull) or "dockerfile" (inline Dockerfile, built with "buildContext", "buildArgs", "targetStage"). Ports and volumes use Docker syntax ("8080:80", "./data:/data"); host paths in volumes relative to the service directory, never an absolute path of this machine. "useNativeCommand" runs the service commands inside the container instead of its CMD ("nativeCommandMode": one shared container or one per command). "bootstrapCommands" run once when the container starts. Replaces the whole Docker configuration: read it first with get_service to keep what you do not change.', schema: DockerConfigInput },
|
|
1645
1742
|
{ name: "healthCheck", description: 'How to tell the service is ready: an HTTP "path" to call, or a "command" that must succeed', schema: HealthCheckSchema, clearable: true },
|
|
1646
|
-
{ name: "autoRestart", description: "Restart the service when it crashes", schema:
|
|
1743
|
+
{ name: "autoRestart", description: "Restart the service when it crashes", schema: z24.boolean() },
|
|
1647
1744
|
{ name: "restartStrategy", description: "When to restart it", schema: RestartStrategySchema.unwrap() },
|
|
1648
1745
|
{ name: "maxRestarts", description: "Give up after this many restarts", schema: ServiceConfigSchema.shape.maxRestarts.unwrap() },
|
|
1649
1746
|
{ name: "restartBackoffMs", description: "Delay before a restart, in milliseconds", schema: ServiceConfigSchema.shape.restartBackoffMs.unwrap().unwrap() },
|
|
1650
|
-
{ name: "clearLogsOnStart", description: "Clear the logs each time the service starts", schema:
|
|
1651
|
-
{ name: "shortcuts", description: 'One-click actions shown on the service, run on demand and independently of the running commands (build, deploy, migrate, read logs). Same path rules as commands: relative to the project root, never an absolute path of this machine. Replaces the current ones. "id" is generated when omitted.', schema:
|
|
1747
|
+
{ name: "clearLogsOnStart", description: "Clear the logs each time the service starts", schema: z24.boolean() },
|
|
1748
|
+
{ name: "shortcuts", description: 'One-click actions shown on the service, run on demand and independently of the running commands (build, deploy, migrate, read logs). Same path rules as commands: relative to the project root, never an absolute path of this machine. Replaces the current ones. "id" is generated when omitted.', schema: z24.array(optionalId(ServiceShortcutSchema)).max(50) },
|
|
1652
1749
|
{ name: "parserIds", description: "Log parsers applied to its output, by id", schema: ServiceConfigSchema.shape.parserIds.unwrap() },
|
|
1653
1750
|
{ name: "logSources", description: 'Extra log sources beyond the console output (files, databases\u2026). Replaces the current ones. Credentials (mongo connectionString, mysql password) read as "***": send "***" back to keep the stored value, or the real value to change it.', schema: ServiceConfigSchema.shape.logSources.unwrap().unwrap() }
|
|
1654
1751
|
];
|
|
1655
1752
|
function serviceParams(clearable2) {
|
|
1656
1753
|
return SERVICE_FIELDS.map((f) => {
|
|
1657
1754
|
const nullable = clearable2 && f.clearable;
|
|
1658
|
-
const base = f.schema ?? (nullable ?
|
|
1755
|
+
const base = f.schema ?? (nullable ? z24.string() : void 0);
|
|
1659
1756
|
return {
|
|
1660
1757
|
name: f.name,
|
|
1661
1758
|
description: nullable ? `${f.description} null clears it.` : f.description,
|
|
@@ -1695,15 +1792,15 @@ var KNOWLEDGE_TYPES_DOC = KNOWLEDGE_PAGE_TYPES.map((t) => {
|
|
|
1695
1792
|
return `${t}: ${spec.description}${fields ? ` Fields: ${fields}.` : ""}`;
|
|
1696
1793
|
}).join(" | ");
|
|
1697
1794
|
var KNOWLEDGE_RELATIONS_DOC = `${KNOWLEDGE_RELATIONS.join(", ")} (related and contradicts read both ways)`;
|
|
1698
|
-
var kIds =
|
|
1699
|
-
var kSearchLimit =
|
|
1700
|
-
var kSections =
|
|
1701
|
-
var kThemeDepth =
|
|
1702
|
-
var kDepth =
|
|
1703
|
-
var kRelatedLimit =
|
|
1704
|
-
var kNeighborLimit =
|
|
1705
|
-
var kHistoryLimit =
|
|
1706
|
-
var kSeedIds =
|
|
1795
|
+
var kIds = z24.array(KnowledgeIdSchema).max(50);
|
|
1796
|
+
var kSearchLimit = z24.number().int().min(1).max(KNOWLEDGE_LIMITS.searchResults);
|
|
1797
|
+
var kSections = z24.array(KnowledgeSectionSchema).max(KNOWLEDGE_LIMITS.sections);
|
|
1798
|
+
var kThemeDepth = z24.number().int().min(0).max(KNOWLEDGE_LIMITS.themeDepth);
|
|
1799
|
+
var kDepth = z24.number().int().min(1).max(KNOWLEDGE_LIMITS.neighborsDepth);
|
|
1800
|
+
var kRelatedLimit = z24.number().int().min(1).max(KNOWLEDGE_LIMITS.relatedPages);
|
|
1801
|
+
var kNeighborLimit = z24.number().int().min(1).max(KNOWLEDGE_LIMITS.neighborsNodes);
|
|
1802
|
+
var kHistoryLimit = z24.number().int().min(1).max(500);
|
|
1803
|
+
var kSeedIds = z24.array(KnowledgeIdSchema).min(1).max(10);
|
|
1707
1804
|
function knowledgePageFields(p) {
|
|
1708
1805
|
const out = {};
|
|
1709
1806
|
if (p.title !== void 0) out.title = p.title;
|
|
@@ -1801,7 +1898,7 @@ function readPageAnswer(result, input) {
|
|
|
1801
1898
|
}
|
|
1802
1899
|
};
|
|
1803
1900
|
}
|
|
1804
|
-
var KNOWLEDGE_MARKDOWN_NOTE =
|
|
1901
|
+
var KNOWLEDGE_MARKDOWN_NOTE = 'Write a table as a plain Markdown table (| A | B |, then | --- | --- |), never inside ``` fences: a fenced table stays a code block. It is kept as written and read back the same, links in cells included. Pages hold no image files or HTML, and links only to web, mailto: or kb:<pageId> addresses: when the Markdown you sent lost something, the answer says what in conversion. A diagram can be drawn as SVG in a ```svg code block: the page shows it as an image, and its source stays editable. Give its elements readable ids (<g id="upload">) so a later knowledge_edit_text can target one exactly.';
|
|
1805
1902
|
var KNOWLEDGE_LOCK_NOTE = "A page locked by a person cannot be changed by you: the call is refused, tell the user what you would change instead.";
|
|
1806
1903
|
var KNOWLEDGE_CAPABILITIES = [
|
|
1807
1904
|
{
|
|
@@ -1820,14 +1917,14 @@ var KNOWLEDGE_CAPABILITIES = [
|
|
|
1820
1917
|
method: "GET",
|
|
1821
1918
|
params: [
|
|
1822
1919
|
{ name: "query", description: "Free text. Omit to list pages by last update.", required: false },
|
|
1823
|
-
{ name: "types", description: `Page types to keep: ${KNOWLEDGE_PAGE_TYPES.join(", ")}`, required: false, schema:
|
|
1920
|
+
{ name: "types", description: `Page types to keep: ${KNOWLEDGE_PAGE_TYPES.join(", ")}`, required: false, schema: z24.array(KnowledgePageTypeSchema) },
|
|
1824
1921
|
{ name: "themeIds", description: "Theme page ids the pages must ALL carry (from knowledge_list_themes)", required: false, schema: KnowledgeThemeIdsSchema },
|
|
1825
1922
|
{ name: "themeDepth", description: `Levels of sub-themes counted with each theme, 0 to ${KNOWLEDGE_LIMITS.themeDepth}`, required: false, schema: kThemeDepth },
|
|
1826
1923
|
{ name: "spaceIds", description: "Restrict to these spaces", required: false, schema: kIds },
|
|
1827
1924
|
// Pas `projectId` : ce nom est rempli d'office avec le projet de la
|
|
1828
1925
|
// conversation (project-anchor), ce qui filtrait toute recherche sur lui.
|
|
1829
1926
|
{ name: "onlyProjectId", description: "Only pages attached to this Runeya project. Omit to search the whole organization.", required: false },
|
|
1830
|
-
{ name: "includeObsolete", description: "Also return obsolete pages", required: false, schema:
|
|
1927
|
+
{ name: "includeObsolete", description: "Also return obsolete pages", required: false, schema: z24.boolean() },
|
|
1831
1928
|
{ name: "limit", description: `At most this many hits (1-${KNOWLEDGE_LIMITS.searchResults}, default 20)`, required: false, schema: kSearchLimit },
|
|
1832
1929
|
{ name: "organizationId", description: "The organization. Optional when the machine has one.", required: false },
|
|
1833
1930
|
{ name: "cursor", description: "The nextCursor of the previous answer, to get the next pages (with a query, pass the same query)", required: false }
|
|
@@ -1836,11 +1933,11 @@ var KNOWLEDGE_CAPABILITIES = [
|
|
|
1836
1933
|
...p.organizationId ? { organizationId: p.organizationId } : {},
|
|
1837
1934
|
...p.query ? { query: p.query } : {},
|
|
1838
1935
|
...p.onlyProjectId ? { projectId: p.onlyProjectId } : {},
|
|
1839
|
-
...p.types !== void 0 ? { types: parseTyped("types",
|
|
1936
|
+
...p.types !== void 0 ? { types: parseTyped("types", z24.array(KnowledgePageTypeSchema), p.types) } : {},
|
|
1840
1937
|
...p.themeIds !== void 0 ? { themeIds: parseTyped("themeIds", KnowledgeThemeIdsSchema, p.themeIds) } : {},
|
|
1841
1938
|
...p.themeDepth !== void 0 ? { themeDepth: parseTyped("themeDepth", kThemeDepth, p.themeDepth) } : {},
|
|
1842
1939
|
...p.spaceIds !== void 0 ? { spaceIds: parseTyped("spaceIds", kIds, p.spaceIds) } : {},
|
|
1843
|
-
...p.includeObsolete !== void 0 ? { includeObsolete: parseTyped("includeObsolete",
|
|
1940
|
+
...p.includeObsolete !== void 0 ? { includeObsolete: parseTyped("includeObsolete", z24.boolean(), p.includeObsolete) } : {},
|
|
1844
1941
|
...p.limit !== void 0 ? { limit: parseTyped("limit", kSearchLimit, p.limit) } : {},
|
|
1845
1942
|
...p.cursor !== void 0 ? { cursor: p.cursor } : {}
|
|
1846
1943
|
}),
|
|
@@ -1889,16 +1986,16 @@ var KNOWLEDGE_CAPABILITIES = [
|
|
|
1889
1986
|
params: [
|
|
1890
1987
|
{ name: "pageId", description: "The starting page", required: true },
|
|
1891
1988
|
{ name: "depth", description: `Number of hops, 1 to ${KNOWLEDGE_LIMITS.neighborsDepth} (default 1)`, required: false, schema: kDepth },
|
|
1892
|
-
{ name: "kinds", description: "Only follow these edge kinds", required: false, schema:
|
|
1989
|
+
{ name: "kinds", description: "Only follow these edge kinds", required: false, schema: z24.array(KnowledgeEdgeKindSchema) },
|
|
1893
1990
|
{ name: "limit", description: "At most this many pages, nearest first (default all)", required: false, schema: kNeighborLimit },
|
|
1894
|
-
{ name: "includeObsolete", description: "Also return obsolete pages (left out by default)", required: false, schema:
|
|
1991
|
+
{ name: "includeObsolete", description: "Also return obsolete pages (left out by default)", required: false, schema: z24.boolean() }
|
|
1895
1992
|
],
|
|
1896
1993
|
buildInput: (p) => ({
|
|
1897
1994
|
pageId: p.pageId,
|
|
1898
1995
|
...p.depth !== void 0 ? { depth: parseTyped("depth", kDepth, p.depth) } : {},
|
|
1899
|
-
...p.kinds !== void 0 ? { kinds: parseTyped("kinds",
|
|
1996
|
+
...p.kinds !== void 0 ? { kinds: parseTyped("kinds", z24.array(KnowledgeEdgeKindSchema), p.kinds) } : {},
|
|
1900
1997
|
...p.limit !== void 0 ? { limit: parseTyped("limit", kNeighborLimit, p.limit) } : {},
|
|
1901
|
-
...p.includeObsolete !== void 0 ? { includeObsolete: parseTyped("includeObsolete",
|
|
1998
|
+
...p.includeObsolete !== void 0 ? { includeObsolete: parseTyped("includeObsolete", z24.boolean(), p.includeObsolete) } : {}
|
|
1902
1999
|
}),
|
|
1903
2000
|
transformOutput: (result, input) => {
|
|
1904
2001
|
if (!isRec(result) || !Array.isArray(result.nodes)) return result;
|
|
@@ -1926,12 +2023,12 @@ var KNOWLEDGE_CAPABILITIES = [
|
|
|
1926
2023
|
params: [
|
|
1927
2024
|
{ name: "pageIds", description: "One to ten page ids", required: true, schema: kSeedIds },
|
|
1928
2025
|
{ name: "limit", description: "At most this many pages (default 10)", required: false, schema: kRelatedLimit },
|
|
1929
|
-
{ name: "includeObsolete", description: "Also return obsolete pages (left out by default)", required: false, schema:
|
|
2026
|
+
{ name: "includeObsolete", description: "Also return obsolete pages (left out by default)", required: false, schema: z24.boolean() }
|
|
1930
2027
|
],
|
|
1931
2028
|
buildInput: (p) => ({
|
|
1932
2029
|
pageIds: parseTyped("pageIds", kSeedIds, p.pageIds),
|
|
1933
2030
|
...p.limit !== void 0 ? { limit: parseTyped("limit", kRelatedLimit, p.limit) } : {},
|
|
1934
|
-
...p.includeObsolete !== void 0 ? { includeObsolete: parseTyped("includeObsolete",
|
|
2031
|
+
...p.includeObsolete !== void 0 ? { includeObsolete: parseTyped("includeObsolete", z24.boolean(), p.includeObsolete) } : {}
|
|
1935
2032
|
}),
|
|
1936
2033
|
transformOutput: (result) => isRec(result) && Array.isArray(result.pages) ? { ...result, pages: result.pages.map(slimThemes) } : result
|
|
1937
2034
|
},
|
|
@@ -1958,16 +2055,16 @@ var KNOWLEDGE_CAPABILITIES = [
|
|
|
1958
2055
|
},
|
|
1959
2056
|
{
|
|
1960
2057
|
name: "knowledge_get_version",
|
|
1961
|
-
description: "Read a page as it was at a past date: title, summary, status, fields and sections in Markdown. Take the date (at) from knowledge_get_history. With compare, the answer also gives what changed since that version (sinceThen): changed paragraphs per section (previous = the version, paragraphs = now) and the sheet fields that differ. Restoring a version is left to people, in the app.",
|
|
2058
|
+
description: "Read a page as it was at a past date: title, summary, status, fields and sections in Markdown. Take the date (at) from knowledge_get_history. With compare, the answer also gives what changed since that version (sinceThen): changed paragraphs per section (previous = the version, paragraphs = now; a long paragraph comes back as an excerpt around the change, [\u2026] marking what is cut) and the sheet fields that differ. Restoring a version is left to people, in the app.",
|
|
1962
2059
|
route: "knowledge.getVersion",
|
|
1963
2060
|
method: "GET",
|
|
1964
2061
|
params: [
|
|
1965
2062
|
{ name: "pageId", description: "The page id", required: true },
|
|
1966
|
-
{ name: "at", description: "The date of the version, as given by knowledge_get_history (ISO 8601)", required: true, schema:
|
|
2063
|
+
{ name: "at", description: "The date of the version, as given by knowledge_get_history (ISO 8601)", required: true, schema: z24.iso.datetime() },
|
|
1967
2064
|
{ name: "heading", description: "Read only this section of the version", required: false },
|
|
1968
|
-
{ name: "compare", description: "Also give what changed since this version (sinceThen)", required: false, schema:
|
|
2065
|
+
{ name: "compare", description: "Also give what changed since this version (sinceThen)", required: false, schema: z24.boolean() }
|
|
1969
2066
|
],
|
|
1970
|
-
buildInput: (p) => ({ pageId: p.pageId, at: parseTyped("at",
|
|
2067
|
+
buildInput: (p) => ({ pageId: p.pageId, at: parseTyped("at", z24.iso.datetime(), p.at), ...p.heading !== void 0 ? { heading: p.heading } : {}, ...p.compare !== void 0 ? { compare: parseTyped("compare", z24.boolean(), p.compare) } : {} }),
|
|
1971
2068
|
transformOutput: (result, input) => {
|
|
1972
2069
|
if (!isRec(result) || !isRec(result.snapshot)) return result;
|
|
1973
2070
|
const { markdown: _markdown, ...snapshot } = result.snapshot;
|
|
@@ -1994,14 +2091,14 @@ var KNOWLEDGE_CAPABILITIES = [
|
|
|
1994
2091
|
{ name: "projectIds", description: "Runeya project ids the page is about", required: false, schema: KnowledgeProjectIdsSchema },
|
|
1995
2092
|
{ name: "sources", description: 'Where the knowledge comes from: [{"label","url"?}]', required: false, schema: KnowledgeSourcesSchema },
|
|
1996
2093
|
{ name: "sections", description: 'Body sections: [{"heading","markdown"}]', required: false, schema: kSections },
|
|
1997
|
-
{ name: "links", description: `Links to other pages: [{"to","relation"}], relation among ${KNOWLEDGE_RELATIONS_DOC}`, required: false, schema:
|
|
2094
|
+
{ name: "links", description: `Links to other pages: [{"to","relation"}], relation among ${KNOWLEDGE_RELATIONS_DOC}`, required: false, schema: z24.array(KnowledgeLinkSchema).max(200) },
|
|
1998
2095
|
{ name: "locale", description: "Language of default section titles: fr or en", required: false, schema: KnowledgeLocaleSchema }
|
|
1999
2096
|
],
|
|
2000
2097
|
buildInput: (p) => ({
|
|
2001
2098
|
spaceId: p.spaceId,
|
|
2002
2099
|
...knowledgePageFields(p),
|
|
2003
2100
|
...p.sections !== void 0 ? { sections: parseTyped("sections", kSections, p.sections) } : {},
|
|
2004
|
-
...p.links !== void 0 ? { links: parseTyped("links",
|
|
2101
|
+
...p.links !== void 0 ? { links: parseTyped("links", z24.array(KnowledgeLinkSchema).max(200), p.links) } : {},
|
|
2005
2102
|
...p.locale !== void 0 ? { locale: parseTyped("locale", KnowledgeLocaleSchema, p.locale) } : {}
|
|
2006
2103
|
}),
|
|
2007
2104
|
transformOutput: writeAnswer((page) => ({ themes: slimThemes(page).themes, sections: headingsOf(page) }))
|
|
@@ -2047,7 +2144,7 @@ var KNOWLEDGE_CAPABILITIES = [
|
|
|
2047
2144
|
{ name: "heading", description: "The section heading", required: true },
|
|
2048
2145
|
{ name: "markdown", description: "The content, in Markdown (required unless mode is remove)", required: false },
|
|
2049
2146
|
{ name: "mode", description: "replace (default), append or remove", required: false, schema: KnowledgeSectionModeSchema },
|
|
2050
|
-
{ name: "create", description: "Create the section at the end if no section has this heading", required: false, schema:
|
|
2147
|
+
{ name: "create", description: "Create the section at the end if no section has this heading", required: false, schema: z24.boolean() }
|
|
2051
2148
|
],
|
|
2052
2149
|
buildInput: (p) => {
|
|
2053
2150
|
const started = typeof p.markdown === "string" ? [...p.markdown.matchAll(/^#{1,2}\s+(.+)$/gm)].map((m) => m[1].trim()) : [];
|
|
@@ -2059,7 +2156,7 @@ var KNOWLEDGE_CAPABILITIES = [
|
|
|
2059
2156
|
heading: p.heading ?? "",
|
|
2060
2157
|
...p.markdown !== void 0 ? { markdown: p.markdown } : {},
|
|
2061
2158
|
...p.mode !== void 0 ? { mode: parseTyped("mode", KnowledgeSectionModeSchema, p.mode) } : {},
|
|
2062
|
-
...p.create !== void 0 ? { create: parseTyped("create",
|
|
2159
|
+
...p.create !== void 0 ? { create: parseTyped("create", z24.boolean(), p.create) } : {}
|
|
2063
2160
|
};
|
|
2064
2161
|
},
|
|
2065
2162
|
transformOutput: writeAnswer((page, input) => {
|
|
@@ -2073,7 +2170,7 @@ var KNOWLEDGE_CAPABILITIES = [
|
|
|
2073
2170
|
},
|
|
2074
2171
|
{
|
|
2075
2172
|
name: "knowledge_edit_text",
|
|
2076
|
-
description: `Replace an exact passage of a page body, like a text editor: send only the old text and the new one, not the whole section. The passage is matched against the Markdown returned by knowledge_get_page (so bold is **\u2026**, a page link is [title](kb:id)) and must appear exactly once, in the given section or in the whole body; otherwise nothing is written and the error says whether it is missing or ambiguous. The answer gives the page id, title, status, lock and last update and, for each edited section, only the paragraphs that are new or changed, their previous version and how many were deleted without replacement (editedSections); the other sections are listed by heading, and the rest of the sheet (themes, fields, links) is left out: read it with knowledge_get_page. Prefer it to knowledge_update_section for a change inside a long section. To insert text, anchor on the words around the insertion point: to complete "We chose Mongo." send find "We chose Mongo." and replace "We chose Mongo for its flexibility.". ${KNOWLEDGE_MARKDOWN_NOTE} ${KNOWLEDGE_LOCK_NOTE}`,
|
|
2173
|
+
description: `Replace an exact passage of a page body, like a text editor: send only the old text and the new one, not the whole section. The passage is matched against the Markdown returned by knowledge_get_page (so bold is **\u2026**, a page link is [title](kb:id)) and must appear exactly once, in the given section or in the whole body; otherwise nothing is written and the error says whether it is missing or ambiguous. The answer gives the page id, title, status, lock and last update and, for each edited section, only the paragraphs that are new or changed, their previous version and how many were deleted without replacement (editedSections); a long paragraph such as a code block or an SVG comes back as an excerpt around the change, [\u2026] marking what is cut; the other sections are listed by heading, and the rest of the sheet (themes, fields, links) is left out: read it with knowledge_get_page. Prefer it to knowledge_update_section for a change inside a long section. To insert text, anchor on the words around the insertion point: to complete "We chose Mongo." send find "We chose Mongo." and replace "We chose Mongo for its flexibility.". ${KNOWLEDGE_MARKDOWN_NOTE} ${KNOWLEDGE_LOCK_NOTE}`,
|
|
2077
2174
|
route: "knowledge.editText",
|
|
2078
2175
|
method: "POST",
|
|
2079
2176
|
params: [
|
|
@@ -2081,14 +2178,14 @@ var KNOWLEDGE_CAPABILITIES = [
|
|
|
2081
2178
|
{ name: "find", description: "The exact text to replace, as it appears in the page Markdown. Include enough surrounding words for it to be unique.", required: true },
|
|
2082
2179
|
{ name: "replace", description: "The new text (empty to delete the passage)", required: true },
|
|
2083
2180
|
{ name: "heading", description: "Look only in this section (heading, case and accents ignored; empty = text before the first section)", required: false },
|
|
2084
|
-
{ name: "all", description: "Replace every occurrence instead of requiring a unique one", required: false, schema:
|
|
2181
|
+
{ name: "all", description: "Replace every occurrence instead of requiring a unique one", required: false, schema: z24.boolean() }
|
|
2085
2182
|
],
|
|
2086
2183
|
buildInput: (p) => ({
|
|
2087
2184
|
pageId: p.pageId,
|
|
2088
2185
|
find: p.find,
|
|
2089
2186
|
replace: p.replace ?? "",
|
|
2090
2187
|
...p.heading !== void 0 ? { heading: p.heading } : {},
|
|
2091
|
-
...p.all !== void 0 ? { all: parseTyped("all",
|
|
2188
|
+
...p.all !== void 0 ? { all: parseTyped("all", z24.boolean(), p.all) } : {}
|
|
2092
2189
|
}),
|
|
2093
2190
|
transformOutput: editedSectionOnly
|
|
2094
2191
|
},
|
|
@@ -2611,13 +2708,13 @@ var RUNEYA_CAPABILITIES = [
|
|
|
2611
2708
|
params: [
|
|
2612
2709
|
{ name: "serviceId", description: "The service ID", required: true },
|
|
2613
2710
|
{ name: "name", description: "New name", required: false },
|
|
2614
|
-
{ name: "orgId", description: "Move the service to this organization vault. Leave unset unless asked.", required: false, schema:
|
|
2711
|
+
{ name: "orgId", description: "Move the service to this organization vault. Leave unset unless asked.", required: false, schema: z24.string().max(128).nullable() },
|
|
2615
2712
|
...UPDATE_SERVICE_PARAMS
|
|
2616
2713
|
],
|
|
2617
2714
|
buildInput: (p) => ({
|
|
2618
2715
|
id: p.serviceId,
|
|
2619
2716
|
...p.name ? { name: p.name } : {},
|
|
2620
|
-
...p.orgId !== void 0 ? { orgId: parseTyped("orgId",
|
|
2717
|
+
...p.orgId !== void 0 ? { orgId: parseTyped("orgId", z24.string().max(128).nullable(), p.orgId) } : {},
|
|
2621
2718
|
...serviceFields(p, UPDATE_SERVICE_PARAMS)
|
|
2622
2719
|
})
|
|
2623
2720
|
},
|
|
@@ -2673,7 +2770,7 @@ var RUNEYA_CAPABILITIES = [
|
|
|
2673
2770
|
method: "POST",
|
|
2674
2771
|
params: [
|
|
2675
2772
|
{ name: "environmentId", description: "A service environment (scope service), from list_environments", required: true },
|
|
2676
|
-
{ name: "inherit", description: '"true" to inherit from the global environment, "false" to isolate', required: true, schema:
|
|
2773
|
+
{ name: "inherit", description: '"true" to inherit from the global environment, "false" to isolate', required: true, schema: z24.boolean() }
|
|
2677
2774
|
],
|
|
2678
2775
|
buildInput: (p) => ({ environmentId: p.environmentId, inherit: toBool(p.inherit ?? "true") })
|
|
2679
2776
|
},
|
|
@@ -2976,7 +3073,7 @@ function applyProjectAnchor(cap, params, anchor) {
|
|
|
2976
3073
|
}
|
|
2977
3074
|
|
|
2978
3075
|
// src/external.ts
|
|
2979
|
-
import { z as
|
|
3076
|
+
import { z as z27 } from "zod";
|
|
2980
3077
|
|
|
2981
3078
|
// src/project-anchors.ts
|
|
2982
3079
|
function createProjectAnchors(env, cwd, containing) {
|
|
@@ -3204,7 +3301,7 @@ var PairingClient = class {
|
|
|
3204
3301
|
|
|
3205
3302
|
// src/server.ts
|
|
3206
3303
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
3207
|
-
import { z as
|
|
3304
|
+
import { z as z26 } from "zod";
|
|
3208
3305
|
function needsAnchor(cap, params) {
|
|
3209
3306
|
const accepts = (name) => cap.params.some((p) => p.name === name);
|
|
3210
3307
|
if (params["orgId"] || params["organizationId"]) return false;
|
|
@@ -3260,9 +3357,9 @@ function createRuneyaMcpServer(opts) {
|
|
|
3260
3357
|
var CARD_CONTEXT = RUNEYA_CAPABILITIES.find((c) => c.name === "kanban_get_card_context");
|
|
3261
3358
|
function registerWorkOnCardPrompt(server, cardContext, withInstance) {
|
|
3262
3359
|
const args = {
|
|
3263
|
-
boardId:
|
|
3264
|
-
cardId:
|
|
3265
|
-
...withInstance ? { runeyaInstance:
|
|
3360
|
+
boardId: z26.string().max(128).describe("The kanban board ID"),
|
|
3361
|
+
cardId: z26.string().max(128).describe("The card ID"),
|
|
3362
|
+
...withInstance ? { runeyaInstance: z26.string().max(16).optional().describe("pid of the Runeya instance, when several are running") } : {}
|
|
3266
3363
|
};
|
|
3267
3364
|
server.prompt(
|
|
3268
3365
|
"work_on_card",
|
|
@@ -3337,7 +3434,7 @@ async function runExternalMcp(opts) {
|
|
|
3337
3434
|
sessionToken,
|
|
3338
3435
|
projectAnchor: envAnchor,
|
|
3339
3436
|
extraShape: fixedUrl ? void 0 : {
|
|
3340
|
-
runeyaInstance:
|
|
3437
|
+
runeyaInstance: z27.number().int().positive().optional().describe(
|
|
3341
3438
|
"The pid of the Runeya instance to call, from list_local_runeya_instances. Needed only when several instances are running: then pass it on every call of this conversation."
|
|
3342
3439
|
)
|
|
3343
3440
|
}
|