@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/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
// src/index.ts
|
|
4
4
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
5
|
-
import { z as
|
|
5
|
+
import { z as z27 } from "zod";
|
|
6
6
|
|
|
7
7
|
// src/session-token.ts
|
|
8
8
|
var RETRY_DELAY_MS = 1e3;
|
|
@@ -75,10 +75,10 @@ function startSessionToken(initial, baseUrl, fetchImpl = fetch) {
|
|
|
75
75
|
|
|
76
76
|
// src/server.ts
|
|
77
77
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
78
|
-
import { z as
|
|
78
|
+
import { z as z26 } from "zod";
|
|
79
79
|
|
|
80
80
|
// ../ai-capabilities/dist/index.js
|
|
81
|
-
import { z as
|
|
81
|
+
import { z as z24 } from "zod";
|
|
82
82
|
|
|
83
83
|
// ../shared/dist/chunk-L6P7TAOW.js
|
|
84
84
|
import { z } from "zod";
|
|
@@ -301,6 +301,7 @@ import { z as z19 } from "zod";
|
|
|
301
301
|
import { z as z20 } from "zod";
|
|
302
302
|
import { z as z21 } from "zod";
|
|
303
303
|
import { z as z222 } from "zod";
|
|
304
|
+
import { z as z23 } from "zod";
|
|
304
305
|
import { createCipheriv, createDecipheriv, randomBytes, pbkdf2Sync } from "crypto";
|
|
305
306
|
import vm from "vm";
|
|
306
307
|
import * as Y from "yjs";
|
|
@@ -1556,33 +1557,129 @@ var ConversationSearchHitSchema = IntegrationConversationSchema.extend({
|
|
|
1556
1557
|
preview: z21.string().max(500),
|
|
1557
1558
|
linkedCards: z21.array(z21.object({ boardId: z21.string().max(64), cardId: z21.string().max(64), title: z21.string().max(500) }))
|
|
1558
1559
|
});
|
|
1559
|
-
var
|
|
1560
|
-
var
|
|
1561
|
-
var
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
var
|
|
1560
|
+
var SupportKindSchema = z222.enum(["bug", "improvement", "question"]);
|
|
1561
|
+
var SupportStatusSchema = z222.enum(["open", "waiting", "closed"]);
|
|
1562
|
+
var SUPPORT_SUBJECT_MAX = 200;
|
|
1563
|
+
var SUPPORT_BODY_MAX = 1e4;
|
|
1564
|
+
var SUPPORT_CONTEXT_MAX = 2e3;
|
|
1565
|
+
var SUPPORT_MAX_FILES = 20;
|
|
1566
|
+
var SupportAttachmentSchema = z222.object({
|
|
1567
|
+
id: z222.string().max(128),
|
|
1568
|
+
name: z222.string().max(255),
|
|
1569
|
+
size: z222.number().int().nonnegative(),
|
|
1570
|
+
contentType: z222.string().max(128)
|
|
1571
|
+
}).strict();
|
|
1572
|
+
var AttachmentIds = z222.array(z222.string().min(1).max(128)).max(SUPPORT_MAX_FILES);
|
|
1573
|
+
var SupportCreateInputSchema = z222.object({
|
|
1574
|
+
kind: SupportKindSchema,
|
|
1575
|
+
subject: z222.string().trim().min(1).max(SUPPORT_SUBJECT_MAX),
|
|
1576
|
+
body: z222.string().trim().min(1).max(SUPPORT_BODY_MAX),
|
|
1577
|
+
/** Obligatoire sans session : c'est par là que la réponse arrive. */
|
|
1578
|
+
email: z222.string().trim().email().max(254).optional(),
|
|
1579
|
+
/** Version de l'app, système… Rempli par l'app, lu par le support. */
|
|
1580
|
+
context: z222.string().max(SUPPORT_CONTEXT_MAX).optional(),
|
|
1581
|
+
source: z222.enum(["app", "cloud"]),
|
|
1582
|
+
attachmentIds: AttachmentIds.optional()
|
|
1583
|
+
});
|
|
1584
|
+
var SupportReplyInputSchema = z222.object({
|
|
1585
|
+
body: z222.string().trim().max(SUPPORT_BODY_MAX),
|
|
1586
|
+
attachmentIds: AttachmentIds.optional()
|
|
1587
|
+
});
|
|
1588
|
+
var SupportMessageViewSchema = z222.object({
|
|
1589
|
+
id: z222.string(),
|
|
1590
|
+
from: z222.enum(["requester", "support"]),
|
|
1591
|
+
authorName: z222.string(),
|
|
1592
|
+
body: z222.string(),
|
|
1593
|
+
sentAt: z222.string(),
|
|
1594
|
+
attachments: z222.array(SupportAttachmentSchema).optional()
|
|
1595
|
+
}).strict();
|
|
1596
|
+
var SupportTicketSummarySchema = z222.object({
|
|
1597
|
+
id: z222.string(),
|
|
1598
|
+
number: z222.number().int(),
|
|
1599
|
+
kind: SupportKindSchema,
|
|
1600
|
+
subject: z222.string(),
|
|
1601
|
+
status: SupportStatusSchema,
|
|
1602
|
+
createdAt: z222.string(),
|
|
1603
|
+
updatedAt: z222.string(),
|
|
1604
|
+
/** Le support a répondu depuis la dernière lecture du demandeur. */
|
|
1605
|
+
unread: z222.boolean()
|
|
1606
|
+
}).strict();
|
|
1607
|
+
var SupportTicketViewSchema = SupportTicketSummarySchema.extend({
|
|
1608
|
+
messages: z222.array(SupportMessageViewSchema)
|
|
1609
|
+
}).strict();
|
|
1610
|
+
var SupportCreatedSchema = z222.object({
|
|
1611
|
+
ticket: SupportTicketViewSchema,
|
|
1612
|
+
accessToken: z222.string().optional()
|
|
1613
|
+
}).strict();
|
|
1614
|
+
var SupportCardLinkSchema = z222.object({
|
|
1615
|
+
organizationId: z222.string(),
|
|
1616
|
+
boardId: z222.string(),
|
|
1617
|
+
cardId: z222.string(),
|
|
1618
|
+
title: z222.string(),
|
|
1619
|
+
origin: z222.enum(["auto", "manual"])
|
|
1620
|
+
});
|
|
1621
|
+
var SupportStaffMessageViewSchema = z222.object({
|
|
1622
|
+
id: z222.string(),
|
|
1623
|
+
from: z222.enum(["requester", "support", "internal"]),
|
|
1624
|
+
authorName: z222.string(),
|
|
1625
|
+
body: z222.string(),
|
|
1626
|
+
sentAt: z222.string(),
|
|
1627
|
+
attachments: z222.array(SupportAttachmentSchema).optional()
|
|
1628
|
+
});
|
|
1629
|
+
var SupportStaffTicketSummarySchema = z222.object({
|
|
1630
|
+
id: z222.string(),
|
|
1631
|
+
number: z222.number().int(),
|
|
1632
|
+
kind: SupportKindSchema,
|
|
1633
|
+
subject: z222.string(),
|
|
1634
|
+
status: SupportStatusSchema,
|
|
1635
|
+
source: z222.enum(["app", "cloud"]),
|
|
1636
|
+
requester: z222.object({ email: z222.string(), name: z222.string().nullable(), userId: z222.string().nullable() }),
|
|
1637
|
+
createdAt: z222.string(),
|
|
1638
|
+
updatedAt: z222.string(),
|
|
1639
|
+
/** Le demandeur a écrit depuis la dernière lecture du support. */
|
|
1640
|
+
unread: z222.boolean(),
|
|
1641
|
+
cards: z222.array(SupportCardLinkSchema)
|
|
1642
|
+
});
|
|
1643
|
+
var SupportStaffTicketViewSchema = SupportStaffTicketSummarySchema.extend({
|
|
1644
|
+
context: z222.string().nullable(),
|
|
1645
|
+
messages: z222.array(SupportStaffMessageViewSchema)
|
|
1646
|
+
});
|
|
1647
|
+
var SupportSettingsSchema = z222.object({
|
|
1648
|
+
autoCard: z222.object({
|
|
1649
|
+
enabled: z222.boolean(),
|
|
1650
|
+
organizationId: z222.string().max(64).nullable(),
|
|
1651
|
+
boardId: z222.string().max(64).nullable(),
|
|
1652
|
+
columnId: z222.string().max(64).nullable(),
|
|
1653
|
+
kinds: z222.array(SupportKindSchema).max(3)
|
|
1654
|
+
})
|
|
1655
|
+
});
|
|
1656
|
+
var ChangelogSurfaceSchema = z23.enum(["app", "cloud"]);
|
|
1657
|
+
var ChangelogChangeKindSchema = z23.enum(["feature", "improvement", "fix", "breaking"]);
|
|
1658
|
+
var ChangelogTextSchema = z23.object({
|
|
1659
|
+
fr: z23.string().min(1).max(500),
|
|
1660
|
+
en: z23.string().min(1).max(500)
|
|
1661
|
+
});
|
|
1662
|
+
var ChangelogChangeSchema = z23.object({
|
|
1566
1663
|
kind: ChangelogChangeKindSchema,
|
|
1567
1664
|
text: ChangelogTextSchema
|
|
1568
1665
|
});
|
|
1569
1666
|
var ChangelogDraftSchema = ChangelogChangeSchema.extend({
|
|
1570
|
-
date:
|
|
1667
|
+
date: z23.string().regex(/^\d{4}-\d{2}-\d{2}$/),
|
|
1571
1668
|
title: ChangelogTextSchema.optional()
|
|
1572
1669
|
});
|
|
1573
|
-
var ChangelogReleaseSchema =
|
|
1670
|
+
var ChangelogReleaseSchema = z23.object({
|
|
1574
1671
|
surface: ChangelogSurfaceSchema,
|
|
1575
1672
|
/** `1.4.2` pour l'app (version npm publiée), `2026-09-03` — ou `2026-09-03.2` — pour le cloud. */
|
|
1576
|
-
version:
|
|
1673
|
+
version: z23.string().min(1).max(32).regex(/^[0-9][0-9.-]*$/),
|
|
1577
1674
|
/** Date de publication, `YYYY-MM-DD`. */
|
|
1578
|
-
date:
|
|
1675
|
+
date: z23.string().regex(/^\d{4}-\d{2}-\d{2}$/),
|
|
1579
1676
|
/** Facultatif : une version peut s'annoncer par son seul numéro. */
|
|
1580
1677
|
title: ChangelogTextSchema.optional(),
|
|
1581
1678
|
/** Une version sans changement n'a rien à annoncer : elle n'a pas sa place ici. */
|
|
1582
|
-
changes:
|
|
1679
|
+
changes: z23.array(ChangelogChangeSchema).min(1).max(50)
|
|
1583
1680
|
});
|
|
1584
1681
|
var ChangelogIndexItemSchema = ChangelogReleaseSchema.omit({ changes: true }).extend({
|
|
1585
|
-
changeCount:
|
|
1682
|
+
changeCount: z23.number().int().nonnegative()
|
|
1586
1683
|
});
|
|
1587
1684
|
var MASKED_VALUE = "***";
|
|
1588
1685
|
function maskLogSourceSecrets(sources) {
|
|
@@ -1638,7 +1735,7 @@ var EDITOR_BY_KEY = new Map(
|
|
|
1638
1735
|
);
|
|
1639
1736
|
|
|
1640
1737
|
// ../ai-capabilities/dist/index.js
|
|
1641
|
-
import { z as
|
|
1738
|
+
import { z as z25 } from "zod";
|
|
1642
1739
|
import { z as z32 } from "zod";
|
|
1643
1740
|
function toList(raw) {
|
|
1644
1741
|
if (!raw) return [];
|
|
@@ -1688,15 +1785,15 @@ function parseTyped(name, schema, raw) {
|
|
|
1688
1785
|
if (list.success) result = list;
|
|
1689
1786
|
}
|
|
1690
1787
|
}
|
|
1691
|
-
if (!result.success) throw new Error(`${name}: ${
|
|
1788
|
+
if (!result.success) throw new Error(`${name}: ${z24.prettifyError(result.error)}`);
|
|
1692
1789
|
return result.data;
|
|
1693
1790
|
}
|
|
1694
1791
|
function withIds(items) {
|
|
1695
1792
|
return items.map((item) => ({ ...item, id: item.id || newId() }));
|
|
1696
1793
|
}
|
|
1697
|
-
var optionalId = (schema) => schema.extend({ id:
|
|
1794
|
+
var optionalId = (schema) => schema.extend({ id: z24.string().min(1).max(64).optional() });
|
|
1698
1795
|
var DockerConfigInput = DockerConfigSchema.extend({
|
|
1699
|
-
bootstrapCommands:
|
|
1796
|
+
bootstrapCommands: z24.array(optionalId(BootstrapCommandSchema)).max(20).default([])
|
|
1700
1797
|
}).refine((c) => !!c.image !== !!c.dockerfile, {
|
|
1701
1798
|
message: 'dockerConfig needs exactly one of "image" (an image to pull) or "dockerfile" (a Dockerfile to build)'
|
|
1702
1799
|
});
|
|
@@ -1705,7 +1802,7 @@ var SERVICE_FIELDS = [
|
|
|
1705
1802
|
{ name: "agentId", description: "The agent that runs it, from list_agents. Omit to inherit from the environment.", clearable: true },
|
|
1706
1803
|
{ 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 },
|
|
1707
1804
|
{ name: "command", description: 'Shortcut for a single command line (e.g. "npm run dev"). Replaces every existing command. Use commands for several.' },
|
|
1708
|
-
{ 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:
|
|
1805
|
+
{ 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) },
|
|
1709
1806
|
{ 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() },
|
|
1710
1807
|
{ name: "groups", description: "Groups the service belongs to. Replaces the current ones.", schema: ServiceConfigSchema.shape.groups.unwrap().unwrap() },
|
|
1711
1808
|
{ name: "url", description: "URL where the service is reached" },
|
|
@@ -1717,19 +1814,19 @@ var SERVICE_FIELDS = [
|
|
|
1717
1814
|
{ 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() },
|
|
1718
1815
|
{ 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 },
|
|
1719
1816
|
{ 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 },
|
|
1720
|
-
{ name: "autoRestart", description: "Restart the service when it crashes", schema:
|
|
1817
|
+
{ name: "autoRestart", description: "Restart the service when it crashes", schema: z24.boolean() },
|
|
1721
1818
|
{ name: "restartStrategy", description: "When to restart it", schema: RestartStrategySchema.unwrap() },
|
|
1722
1819
|
{ name: "maxRestarts", description: "Give up after this many restarts", schema: ServiceConfigSchema.shape.maxRestarts.unwrap() },
|
|
1723
1820
|
{ name: "restartBackoffMs", description: "Delay before a restart, in milliseconds", schema: ServiceConfigSchema.shape.restartBackoffMs.unwrap().unwrap() },
|
|
1724
|
-
{ name: "clearLogsOnStart", description: "Clear the logs each time the service starts", schema:
|
|
1725
|
-
{ 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:
|
|
1821
|
+
{ name: "clearLogsOnStart", description: "Clear the logs each time the service starts", schema: z24.boolean() },
|
|
1822
|
+
{ 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) },
|
|
1726
1823
|
{ name: "parserIds", description: "Log parsers applied to its output, by id", schema: ServiceConfigSchema.shape.parserIds.unwrap() },
|
|
1727
1824
|
{ 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() }
|
|
1728
1825
|
];
|
|
1729
1826
|
function serviceParams(clearable2) {
|
|
1730
1827
|
return SERVICE_FIELDS.map((f) => {
|
|
1731
1828
|
const nullable = clearable2 && f.clearable;
|
|
1732
|
-
const base = f.schema ?? (nullable ?
|
|
1829
|
+
const base = f.schema ?? (nullable ? z24.string() : void 0);
|
|
1733
1830
|
return {
|
|
1734
1831
|
name: f.name,
|
|
1735
1832
|
description: nullable ? `${f.description} null clears it.` : f.description,
|
|
@@ -1769,15 +1866,15 @@ var KNOWLEDGE_TYPES_DOC = KNOWLEDGE_PAGE_TYPES.map((t) => {
|
|
|
1769
1866
|
return `${t}: ${spec.description}${fields ? ` Fields: ${fields}.` : ""}`;
|
|
1770
1867
|
}).join(" | ");
|
|
1771
1868
|
var KNOWLEDGE_RELATIONS_DOC = `${KNOWLEDGE_RELATIONS.join(", ")} (related and contradicts read both ways)`;
|
|
1772
|
-
var kIds =
|
|
1773
|
-
var kSearchLimit =
|
|
1774
|
-
var kSections =
|
|
1775
|
-
var kThemeDepth =
|
|
1776
|
-
var kDepth =
|
|
1777
|
-
var kRelatedLimit =
|
|
1778
|
-
var kNeighborLimit =
|
|
1779
|
-
var kHistoryLimit =
|
|
1780
|
-
var kSeedIds =
|
|
1869
|
+
var kIds = z24.array(KnowledgeIdSchema).max(50);
|
|
1870
|
+
var kSearchLimit = z24.number().int().min(1).max(KNOWLEDGE_LIMITS.searchResults);
|
|
1871
|
+
var kSections = z24.array(KnowledgeSectionSchema).max(KNOWLEDGE_LIMITS.sections);
|
|
1872
|
+
var kThemeDepth = z24.number().int().min(0).max(KNOWLEDGE_LIMITS.themeDepth);
|
|
1873
|
+
var kDepth = z24.number().int().min(1).max(KNOWLEDGE_LIMITS.neighborsDepth);
|
|
1874
|
+
var kRelatedLimit = z24.number().int().min(1).max(KNOWLEDGE_LIMITS.relatedPages);
|
|
1875
|
+
var kNeighborLimit = z24.number().int().min(1).max(KNOWLEDGE_LIMITS.neighborsNodes);
|
|
1876
|
+
var kHistoryLimit = z24.number().int().min(1).max(500);
|
|
1877
|
+
var kSeedIds = z24.array(KnowledgeIdSchema).min(1).max(10);
|
|
1781
1878
|
function knowledgePageFields(p) {
|
|
1782
1879
|
const out = {};
|
|
1783
1880
|
if (p.title !== void 0) out.title = p.title;
|
|
@@ -1875,7 +1972,7 @@ function readPageAnswer(result, input) {
|
|
|
1875
1972
|
}
|
|
1876
1973
|
};
|
|
1877
1974
|
}
|
|
1878
|
-
var KNOWLEDGE_MARKDOWN_NOTE =
|
|
1975
|
+
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.';
|
|
1879
1976
|
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.";
|
|
1880
1977
|
var KNOWLEDGE_CAPABILITIES = [
|
|
1881
1978
|
{
|
|
@@ -1894,14 +1991,14 @@ var KNOWLEDGE_CAPABILITIES = [
|
|
|
1894
1991
|
method: "GET",
|
|
1895
1992
|
params: [
|
|
1896
1993
|
{ name: "query", description: "Free text. Omit to list pages by last update.", required: false },
|
|
1897
|
-
{ name: "types", description: `Page types to keep: ${KNOWLEDGE_PAGE_TYPES.join(", ")}`, required: false, schema:
|
|
1994
|
+
{ name: "types", description: `Page types to keep: ${KNOWLEDGE_PAGE_TYPES.join(", ")}`, required: false, schema: z24.array(KnowledgePageTypeSchema) },
|
|
1898
1995
|
{ name: "themeIds", description: "Theme page ids the pages must ALL carry (from knowledge_list_themes)", required: false, schema: KnowledgeThemeIdsSchema },
|
|
1899
1996
|
{ name: "themeDepth", description: `Levels of sub-themes counted with each theme, 0 to ${KNOWLEDGE_LIMITS.themeDepth}`, required: false, schema: kThemeDepth },
|
|
1900
1997
|
{ name: "spaceIds", description: "Restrict to these spaces", required: false, schema: kIds },
|
|
1901
1998
|
// Pas `projectId` : ce nom est rempli d'office avec le projet de la
|
|
1902
1999
|
// conversation (project-anchor), ce qui filtrait toute recherche sur lui.
|
|
1903
2000
|
{ name: "onlyProjectId", description: "Only pages attached to this Runeya project. Omit to search the whole organization.", required: false },
|
|
1904
|
-
{ name: "includeObsolete", description: "Also return obsolete pages", required: false, schema:
|
|
2001
|
+
{ name: "includeObsolete", description: "Also return obsolete pages", required: false, schema: z24.boolean() },
|
|
1905
2002
|
{ name: "limit", description: `At most this many hits (1-${KNOWLEDGE_LIMITS.searchResults}, default 20)`, required: false, schema: kSearchLimit },
|
|
1906
2003
|
{ name: "organizationId", description: "The organization. Optional when the machine has one.", required: false },
|
|
1907
2004
|
{ name: "cursor", description: "The nextCursor of the previous answer, to get the next pages (with a query, pass the same query)", required: false }
|
|
@@ -1910,11 +2007,11 @@ var KNOWLEDGE_CAPABILITIES = [
|
|
|
1910
2007
|
...p.organizationId ? { organizationId: p.organizationId } : {},
|
|
1911
2008
|
...p.query ? { query: p.query } : {},
|
|
1912
2009
|
...p.onlyProjectId ? { projectId: p.onlyProjectId } : {},
|
|
1913
|
-
...p.types !== void 0 ? { types: parseTyped("types",
|
|
2010
|
+
...p.types !== void 0 ? { types: parseTyped("types", z24.array(KnowledgePageTypeSchema), p.types) } : {},
|
|
1914
2011
|
...p.themeIds !== void 0 ? { themeIds: parseTyped("themeIds", KnowledgeThemeIdsSchema, p.themeIds) } : {},
|
|
1915
2012
|
...p.themeDepth !== void 0 ? { themeDepth: parseTyped("themeDepth", kThemeDepth, p.themeDepth) } : {},
|
|
1916
2013
|
...p.spaceIds !== void 0 ? { spaceIds: parseTyped("spaceIds", kIds, p.spaceIds) } : {},
|
|
1917
|
-
...p.includeObsolete !== void 0 ? { includeObsolete: parseTyped("includeObsolete",
|
|
2014
|
+
...p.includeObsolete !== void 0 ? { includeObsolete: parseTyped("includeObsolete", z24.boolean(), p.includeObsolete) } : {},
|
|
1918
2015
|
...p.limit !== void 0 ? { limit: parseTyped("limit", kSearchLimit, p.limit) } : {},
|
|
1919
2016
|
...p.cursor !== void 0 ? { cursor: p.cursor } : {}
|
|
1920
2017
|
}),
|
|
@@ -1963,16 +2060,16 @@ var KNOWLEDGE_CAPABILITIES = [
|
|
|
1963
2060
|
params: [
|
|
1964
2061
|
{ name: "pageId", description: "The starting page", required: true },
|
|
1965
2062
|
{ name: "depth", description: `Number of hops, 1 to ${KNOWLEDGE_LIMITS.neighborsDepth} (default 1)`, required: false, schema: kDepth },
|
|
1966
|
-
{ name: "kinds", description: "Only follow these edge kinds", required: false, schema:
|
|
2063
|
+
{ name: "kinds", description: "Only follow these edge kinds", required: false, schema: z24.array(KnowledgeEdgeKindSchema) },
|
|
1967
2064
|
{ name: "limit", description: "At most this many pages, nearest first (default all)", required: false, schema: kNeighborLimit },
|
|
1968
|
-
{ name: "includeObsolete", description: "Also return obsolete pages (left out by default)", required: false, schema:
|
|
2065
|
+
{ name: "includeObsolete", description: "Also return obsolete pages (left out by default)", required: false, schema: z24.boolean() }
|
|
1969
2066
|
],
|
|
1970
2067
|
buildInput: (p) => ({
|
|
1971
2068
|
pageId: p.pageId,
|
|
1972
2069
|
...p.depth !== void 0 ? { depth: parseTyped("depth", kDepth, p.depth) } : {},
|
|
1973
|
-
...p.kinds !== void 0 ? { kinds: parseTyped("kinds",
|
|
2070
|
+
...p.kinds !== void 0 ? { kinds: parseTyped("kinds", z24.array(KnowledgeEdgeKindSchema), p.kinds) } : {},
|
|
1974
2071
|
...p.limit !== void 0 ? { limit: parseTyped("limit", kNeighborLimit, p.limit) } : {},
|
|
1975
|
-
...p.includeObsolete !== void 0 ? { includeObsolete: parseTyped("includeObsolete",
|
|
2072
|
+
...p.includeObsolete !== void 0 ? { includeObsolete: parseTyped("includeObsolete", z24.boolean(), p.includeObsolete) } : {}
|
|
1976
2073
|
}),
|
|
1977
2074
|
transformOutput: (result, input) => {
|
|
1978
2075
|
if (!isRec(result) || !Array.isArray(result.nodes)) return result;
|
|
@@ -2000,12 +2097,12 @@ var KNOWLEDGE_CAPABILITIES = [
|
|
|
2000
2097
|
params: [
|
|
2001
2098
|
{ name: "pageIds", description: "One to ten page ids", required: true, schema: kSeedIds },
|
|
2002
2099
|
{ name: "limit", description: "At most this many pages (default 10)", required: false, schema: kRelatedLimit },
|
|
2003
|
-
{ name: "includeObsolete", description: "Also return obsolete pages (left out by default)", required: false, schema:
|
|
2100
|
+
{ name: "includeObsolete", description: "Also return obsolete pages (left out by default)", required: false, schema: z24.boolean() }
|
|
2004
2101
|
],
|
|
2005
2102
|
buildInput: (p) => ({
|
|
2006
2103
|
pageIds: parseTyped("pageIds", kSeedIds, p.pageIds),
|
|
2007
2104
|
...p.limit !== void 0 ? { limit: parseTyped("limit", kRelatedLimit, p.limit) } : {},
|
|
2008
|
-
...p.includeObsolete !== void 0 ? { includeObsolete: parseTyped("includeObsolete",
|
|
2105
|
+
...p.includeObsolete !== void 0 ? { includeObsolete: parseTyped("includeObsolete", z24.boolean(), p.includeObsolete) } : {}
|
|
2009
2106
|
}),
|
|
2010
2107
|
transformOutput: (result) => isRec(result) && Array.isArray(result.pages) ? { ...result, pages: result.pages.map(slimThemes) } : result
|
|
2011
2108
|
},
|
|
@@ -2032,16 +2129,16 @@ var KNOWLEDGE_CAPABILITIES = [
|
|
|
2032
2129
|
},
|
|
2033
2130
|
{
|
|
2034
2131
|
name: "knowledge_get_version",
|
|
2035
|
-
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.",
|
|
2132
|
+
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.",
|
|
2036
2133
|
route: "knowledge.getVersion",
|
|
2037
2134
|
method: "GET",
|
|
2038
2135
|
params: [
|
|
2039
2136
|
{ name: "pageId", description: "The page id", required: true },
|
|
2040
|
-
{ name: "at", description: "The date of the version, as given by knowledge_get_history (ISO 8601)", required: true, schema:
|
|
2137
|
+
{ name: "at", description: "The date of the version, as given by knowledge_get_history (ISO 8601)", required: true, schema: z24.iso.datetime() },
|
|
2041
2138
|
{ name: "heading", description: "Read only this section of the version", required: false },
|
|
2042
|
-
{ name: "compare", description: "Also give what changed since this version (sinceThen)", required: false, schema:
|
|
2139
|
+
{ name: "compare", description: "Also give what changed since this version (sinceThen)", required: false, schema: z24.boolean() }
|
|
2043
2140
|
],
|
|
2044
|
-
buildInput: (p) => ({ pageId: p.pageId, at: parseTyped("at",
|
|
2141
|
+
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) } : {} }),
|
|
2045
2142
|
transformOutput: (result, input) => {
|
|
2046
2143
|
if (!isRec(result) || !isRec(result.snapshot)) return result;
|
|
2047
2144
|
const { markdown: _markdown, ...snapshot } = result.snapshot;
|
|
@@ -2068,14 +2165,14 @@ var KNOWLEDGE_CAPABILITIES = [
|
|
|
2068
2165
|
{ name: "projectIds", description: "Runeya project ids the page is about", required: false, schema: KnowledgeProjectIdsSchema },
|
|
2069
2166
|
{ name: "sources", description: 'Where the knowledge comes from: [{"label","url"?}]', required: false, schema: KnowledgeSourcesSchema },
|
|
2070
2167
|
{ name: "sections", description: 'Body sections: [{"heading","markdown"}]', required: false, schema: kSections },
|
|
2071
|
-
{ name: "links", description: `Links to other pages: [{"to","relation"}], relation among ${KNOWLEDGE_RELATIONS_DOC}`, required: false, schema:
|
|
2168
|
+
{ name: "links", description: `Links to other pages: [{"to","relation"}], relation among ${KNOWLEDGE_RELATIONS_DOC}`, required: false, schema: z24.array(KnowledgeLinkSchema).max(200) },
|
|
2072
2169
|
{ name: "locale", description: "Language of default section titles: fr or en", required: false, schema: KnowledgeLocaleSchema }
|
|
2073
2170
|
],
|
|
2074
2171
|
buildInput: (p) => ({
|
|
2075
2172
|
spaceId: p.spaceId,
|
|
2076
2173
|
...knowledgePageFields(p),
|
|
2077
2174
|
...p.sections !== void 0 ? { sections: parseTyped("sections", kSections, p.sections) } : {},
|
|
2078
|
-
...p.links !== void 0 ? { links: parseTyped("links",
|
|
2175
|
+
...p.links !== void 0 ? { links: parseTyped("links", z24.array(KnowledgeLinkSchema).max(200), p.links) } : {},
|
|
2079
2176
|
...p.locale !== void 0 ? { locale: parseTyped("locale", KnowledgeLocaleSchema, p.locale) } : {}
|
|
2080
2177
|
}),
|
|
2081
2178
|
transformOutput: writeAnswer((page) => ({ themes: slimThemes(page).themes, sections: headingsOf(page) }))
|
|
@@ -2121,7 +2218,7 @@ var KNOWLEDGE_CAPABILITIES = [
|
|
|
2121
2218
|
{ name: "heading", description: "The section heading", required: true },
|
|
2122
2219
|
{ name: "markdown", description: "The content, in Markdown (required unless mode is remove)", required: false },
|
|
2123
2220
|
{ name: "mode", description: "replace (default), append or remove", required: false, schema: KnowledgeSectionModeSchema },
|
|
2124
|
-
{ name: "create", description: "Create the section at the end if no section has this heading", required: false, schema:
|
|
2221
|
+
{ name: "create", description: "Create the section at the end if no section has this heading", required: false, schema: z24.boolean() }
|
|
2125
2222
|
],
|
|
2126
2223
|
buildInput: (p) => {
|
|
2127
2224
|
const started = typeof p.markdown === "string" ? [...p.markdown.matchAll(/^#{1,2}\s+(.+)$/gm)].map((m) => m[1].trim()) : [];
|
|
@@ -2133,7 +2230,7 @@ var KNOWLEDGE_CAPABILITIES = [
|
|
|
2133
2230
|
heading: p.heading ?? "",
|
|
2134
2231
|
...p.markdown !== void 0 ? { markdown: p.markdown } : {},
|
|
2135
2232
|
...p.mode !== void 0 ? { mode: parseTyped("mode", KnowledgeSectionModeSchema, p.mode) } : {},
|
|
2136
|
-
...p.create !== void 0 ? { create: parseTyped("create",
|
|
2233
|
+
...p.create !== void 0 ? { create: parseTyped("create", z24.boolean(), p.create) } : {}
|
|
2137
2234
|
};
|
|
2138
2235
|
},
|
|
2139
2236
|
transformOutput: writeAnswer((page, input) => {
|
|
@@ -2147,7 +2244,7 @@ var KNOWLEDGE_CAPABILITIES = [
|
|
|
2147
2244
|
},
|
|
2148
2245
|
{
|
|
2149
2246
|
name: "knowledge_edit_text",
|
|
2150
|
-
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}`,
|
|
2247
|
+
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}`,
|
|
2151
2248
|
route: "knowledge.editText",
|
|
2152
2249
|
method: "POST",
|
|
2153
2250
|
params: [
|
|
@@ -2155,14 +2252,14 @@ var KNOWLEDGE_CAPABILITIES = [
|
|
|
2155
2252
|
{ 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 },
|
|
2156
2253
|
{ name: "replace", description: "The new text (empty to delete the passage)", required: true },
|
|
2157
2254
|
{ name: "heading", description: "Look only in this section (heading, case and accents ignored; empty = text before the first section)", required: false },
|
|
2158
|
-
{ name: "all", description: "Replace every occurrence instead of requiring a unique one", required: false, schema:
|
|
2255
|
+
{ name: "all", description: "Replace every occurrence instead of requiring a unique one", required: false, schema: z24.boolean() }
|
|
2159
2256
|
],
|
|
2160
2257
|
buildInput: (p) => ({
|
|
2161
2258
|
pageId: p.pageId,
|
|
2162
2259
|
find: p.find,
|
|
2163
2260
|
replace: p.replace ?? "",
|
|
2164
2261
|
...p.heading !== void 0 ? { heading: p.heading } : {},
|
|
2165
|
-
...p.all !== void 0 ? { all: parseTyped("all",
|
|
2262
|
+
...p.all !== void 0 ? { all: parseTyped("all", z24.boolean(), p.all) } : {}
|
|
2166
2263
|
}),
|
|
2167
2264
|
transformOutput: editedSectionOnly
|
|
2168
2265
|
},
|
|
@@ -2685,13 +2782,13 @@ var RUNEYA_CAPABILITIES = [
|
|
|
2685
2782
|
params: [
|
|
2686
2783
|
{ name: "serviceId", description: "The service ID", required: true },
|
|
2687
2784
|
{ name: "name", description: "New name", required: false },
|
|
2688
|
-
{ name: "orgId", description: "Move the service to this organization vault. Leave unset unless asked.", required: false, schema:
|
|
2785
|
+
{ name: "orgId", description: "Move the service to this organization vault. Leave unset unless asked.", required: false, schema: z24.string().max(128).nullable() },
|
|
2689
2786
|
...UPDATE_SERVICE_PARAMS
|
|
2690
2787
|
],
|
|
2691
2788
|
buildInput: (p) => ({
|
|
2692
2789
|
id: p.serviceId,
|
|
2693
2790
|
...p.name ? { name: p.name } : {},
|
|
2694
|
-
...p.orgId !== void 0 ? { orgId: parseTyped("orgId",
|
|
2791
|
+
...p.orgId !== void 0 ? { orgId: parseTyped("orgId", z24.string().max(128).nullable(), p.orgId) } : {},
|
|
2695
2792
|
...serviceFields(p, UPDATE_SERVICE_PARAMS)
|
|
2696
2793
|
})
|
|
2697
2794
|
},
|
|
@@ -2747,7 +2844,7 @@ var RUNEYA_CAPABILITIES = [
|
|
|
2747
2844
|
method: "POST",
|
|
2748
2845
|
params: [
|
|
2749
2846
|
{ name: "environmentId", description: "A service environment (scope service), from list_environments", required: true },
|
|
2750
|
-
{ name: "inherit", description: '"true" to inherit from the global environment, "false" to isolate', required: true, schema:
|
|
2847
|
+
{ name: "inherit", description: '"true" to inherit from the global environment, "false" to isolate', required: true, schema: z24.boolean() }
|
|
2751
2848
|
],
|
|
2752
2849
|
buildInput: (p) => ({ environmentId: p.environmentId, inherit: toBool(p.inherit ?? "true") })
|
|
2753
2850
|
},
|
|
@@ -3105,9 +3202,9 @@ function createRuneyaMcpServer(opts) {
|
|
|
3105
3202
|
var CARD_CONTEXT = RUNEYA_CAPABILITIES.find((c) => c.name === "kanban_get_card_context");
|
|
3106
3203
|
function registerWorkOnCardPrompt(server2, cardContext, withInstance) {
|
|
3107
3204
|
const args = {
|
|
3108
|
-
boardId:
|
|
3109
|
-
cardId:
|
|
3110
|
-
...withInstance ? { runeyaInstance:
|
|
3205
|
+
boardId: z26.string().max(128).describe("The kanban board ID"),
|
|
3206
|
+
cardId: z26.string().max(128).describe("The card ID"),
|
|
3207
|
+
...withInstance ? { runeyaInstance: z26.string().max(16).optional().describe("pid of the Runeya instance, when several are running") } : {}
|
|
3111
3208
|
};
|
|
3112
3209
|
server2.prompt(
|
|
3113
3210
|
"work_on_card",
|
|
@@ -3172,7 +3269,7 @@ if (CONVERSATION_ID && INTERNAL_TOKEN) {
|
|
|
3172
3269
|
server.tool(
|
|
3173
3270
|
"ask_user",
|
|
3174
3271
|
"Ask the user a question and wait for their reply. Use this when you need clarification or input from the user to proceed.",
|
|
3175
|
-
{ question:
|
|
3272
|
+
{ question: z27.string().describe("The question to ask the user") },
|
|
3176
3273
|
async ({ question }) => {
|
|
3177
3274
|
try {
|
|
3178
3275
|
const res = await fetch(`${BASE_URL}/api/trpc/scenario.requestInput`, {
|