@runeya/runeya 2.0.157 → 2.0.159
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 +318 -231
- package/agent/index.js.map +1 -1
- package/agent-manager-NR24TCUQ.js +13 -0
- package/chat-MRS24DL3.js +28 -0
- package/{chunk-SVKR7CYU.js → chunk-C3KBWZ24.js} +4 -4
- package/{chunk-TMX3NXMQ.js → chunk-GJ5KN2LL.js} +6 -6
- package/{chunk-IYL545N3.js → chunk-GPSTFDKW.js} +18 -18
- package/{chunk-L3BEQ75K.js → chunk-JJTSWJXV.js} +5 -5
- package/{chunk-N4ZP7T6L.js → chunk-KNWWJND3.js} +4 -4
- package/{chunk-NV7MBTNW.js → chunk-KWKSPNGO.js} +5 -5
- package/{chunk-EZ35ISYR.js → chunk-LY4HARY5.js} +172 -67
- package/chunk-LY4HARY5.js.map +1 -0
- package/{chunk-ETPXJSVC.js → chunk-UYOJZ34Z.js} +2 -2
- package/{chunk-I4FSX522.js → chunk-V7BOVXZI.js} +11 -11
- package/{chunk-N5LP5TPS.js → chunk-YEFYRGSP.js} +2 -2
- package/{chunk-JAMAGUGN.js → chunk-YEZOV6GP.js} +2 -2
- package/{chunk-V7WTXGEJ.js → chunk-ZW4GRZRF.js} +6 -6
- package/{chunk-6L273MQO.js → chunk-ZZZQMQWF.js} +3 -3
- package/chunk-ZZZQMQWF.js.map +1 -0
- package/{companion-V6ITOFSU.js → companion-CGBD5O6Y.js} +9 -9
- package/{desktop-installer-page-DCS2FLA5.js → desktop-installer-page-54PKY3L3.js} +3 -3
- package/{desktop-launcher-ER3J7KAW.js → desktop-launcher-2DWKSS6V.js} +3 -3
- package/{environment-resolver-HT6GTSLA.js → environment-resolver-E7JDNTRO.js} +6 -6
- package/{external-WZQUS7LY.js → external-5I5BUT44.js} +3 -3
- package/index.js +12 -12
- package/{install-gate-3ZDX3AUO.js → install-gate-W5D4ZOZK.js} +2 -2
- package/mcp-server/external.js +146 -61
- package/mcp-server/external.js.map +1 -1
- package/mcp-server/index.js +146 -61
- package/mcp-server/index.js.map +1 -1
- package/package.json +1 -1
- package/{project-store-6TFAYAWK.js → project-store-67M34SNQ.js} +7 -7
- package/settings-manager-M5RS5WRM.js +10 -0
- package/{src-DBSSIQC7.js → src-FTYC7P2P.js} +36 -2
- package/{src-YR5RF76Z.js → src-UZX6XOIK.js} +1095 -897
- package/src-UZX6XOIK.js.map +1 -0
- package/{vault-resolver-G3G5YPNG.js → vault-resolver-5Q25S6NI.js} +3 -3
- package/web/assets/{AgentScalarChatInterface.vue-CtkvKRSd.js → AgentScalarChatInterface.vue-DLtiWyFa.js} +1 -1
- package/web/assets/{AgentTerminalPage-Dt9S2kZX.js → AgentTerminalPage-Ds4QAs67.js} +1 -1
- package/web/assets/{AiChatModals-BEpSEXmp.js → AiChatModals-Ccx5-MPb.js} +1 -1
- package/web/assets/AppLayout--wQ4AU4i.js +1 -0
- package/web/assets/AppLayout-Pi8OZrHN.css +1 -0
- package/web/assets/{AuditPage-BEt0m-rM.js → AuditPage-TlsfnK1U.js} +1 -1
- package/web/assets/{CloudAccountPage-BGijgepw.js → CloudAccountPage-BuFn-iaB.js} +1 -1
- package/web/assets/{CloudMessagingPage-C9uWAT8S.js → CloudMessagingPage-BcOTKWP1.js} +1 -1
- package/web/assets/{DashboardPage-DFiL6A-k.js → DashboardPage-BLw_tc_p.js} +1 -1
- package/web/assets/{DirectoryPickerDialog-C8dwWIUa.js → DirectoryPickerDialog-X6P-Gl27.js} +1 -1
- package/web/assets/{EditorIcon-Cx11i-sC.js → EditorIcon-DYGui0zm.js} +1 -1
- package/web/assets/{EnvironmentForm-DZgZitCy.js → EnvironmentForm-CNxgYejU.js} +1 -1
- package/web/assets/{EnvironmentFormPage-ubP8cX3l.js → EnvironmentFormPage-Cu9tmfeS.js} +1 -1
- package/web/assets/{EnvironmentListPage-CPs1uuvs.js → EnvironmentListPage-RJc8Noj0.js} +1 -1
- package/web/assets/{FlagChip-UumVjPY9.js → FlagChip-DBj0fpJC.js} +1 -1
- package/web/assets/{KanbanBoardPage-C9NqOqdD.js → KanbanBoardPage-CfeFN-sn.js} +3 -3
- package/web/assets/{KanbanListPage-D_ZpIbT2.js → KanbanListPage-Bvf_6sKr.js} +1 -1
- package/web/assets/{KnowledgeListPage-BoaV9hBg.js → KnowledgeListPage-8asAbOWR.js} +1 -1
- package/web/assets/{KnowledgePagePage-UGJGJY4d.js → KnowledgePagePage-CH8ErT7E.js} +1 -1
- package/web/assets/{LaunchProjectPage-B0Lg5Kr5.js → LaunchProjectPage-Cj4zIh-L.js} +1 -1
- package/web/assets/{LaunchServicesPage-D_pqkdXt.js → LaunchServicesPage-C5yBRgjj.js} +1 -1
- package/web/assets/{LaunchShell-CJtXkSUp.js → LaunchShell-BHRT0Iyo.js} +1 -1
- package/web/assets/{LogViewer-DLxO4-gP.js → LogViewer-B-iEIEx5.js} +1 -1
- package/web/assets/{OrgKeyPrompt-Cbx4cLL0.js → OrgKeyPrompt-U4dh8VYn.js} +1 -1
- package/web/assets/{ProcessControls-Cx-QzqxQ.js → ProcessControls-DR2mGg4A.js} +1 -1
- package/web/assets/{ProcessDetailPage-Bxwv0984.js → ProcessDetailPage-UdlOtobk.js} +1 -1
- package/web/assets/{ProcessMetrics-DisQYLu6.js → ProcessMetrics-CAiB2nbb.js} +1 -1
- package/web/assets/{ProjectCreateDialog-HcYVX36i.js → ProjectCreateDialog-JJ_UgVSV.js} +1 -1
- package/web/assets/{ProjectLocationGate-PR92Tdos.js → ProjectLocationGate-RpWuVQOx.js} +1 -1
- package/web/assets/{ProjectPublishDialog-YvOeVDCP.js → ProjectPublishDialog-DXBAZVgF.js} +1 -1
- package/web/assets/{RandomJobTestPage-Bp9qone4.js → RandomJobTestPage-BTyZOdQT.js} +1 -1
- package/web/assets/{ScenarioEditorPage-Cjkkz3JB.js → ScenarioEditorPage-DO5s-Rb3.js} +1 -1
- package/web/assets/{SendToChatDialog-CQbi2P_L.js → SendToChatDialog-jghvXDZk.js} +1 -1
- package/web/assets/{ServiceControlsBar-9jsN3h0c.js → ServiceControlsBar-Bjv9tyyt.js} +1 -1
- package/web/assets/{ServiceDetailPage-COHMUw51.js → ServiceDetailPage-DHYpDCfp.js} +1 -1
- package/web/assets/{ServiceFormPage-B4n8scwP.js → ServiceFormPage-CCXaIoow.js} +1 -1
- package/web/assets/{SettingsPage-C3PnwdxZ.js → SettingsPage-s-668z6W.js} +38 -38
- package/web/assets/{SettingsPage-Dsuzjo8r.css → SettingsPage-x-Rev6ea.css} +1 -1
- package/web/assets/{UnlockPage-BIB0NtWF.js → UnlockPage-BNdzhO5C.js} +1 -1
- package/web/assets/{VaultMigrationPage-D27SeEVr.js → VaultMigrationPage-RWmGEMLC.js} +1 -1
- package/web/assets/{VersionBadge-FeuuTMz7.js → VersionBadge-Crpf2R7o.js} +1 -1
- package/web/assets/{WikiPage-A8C0dEDX.js → WikiPage-BlemtaAo.js} +1 -1
- package/web/assets/{WikiView-D3c0r5q8.js → WikiView-Du6Adpd-.js} +1 -1
- package/web/assets/{add-scalar-classes-Ohd6-7G3.js → add-scalar-classes-B5tjvEi-.js} +2 -2
- package/web/assets/{agent.store-BwUoohNu.js → agent.store-5ggNQfb3.js} +1 -1
- package/web/assets/auth-ArDkSMsT.js +2 -0
- package/web/assets/{cloud-chat.store-za5cBdZx.js → cloud-chat.store-XJxdooyL.js} +1 -1
- package/web/assets/cloud-client-CMfTrHgZ.js +2 -0
- package/web/assets/cloud-session-CHtF1SMt.js +2 -0
- package/web/assets/dist-CjS_rxe9.js +1 -0
- package/web/assets/{i18n-B8hHo8g2.js → i18n-f_6x1GJ8.js} +2 -2
- package/web/assets/{index-DozDRY7J.css → index-DiXnhxxp.css} +1 -1
- package/web/assets/{index-CYcPxjSC.js → index-Z4n9BqGD.js} +75 -75
- package/web/assets/knowledge-host-D3fiBt2z.css +1 -0
- package/web/assets/knowledge-host-DeJwAH8b.js +7 -0
- package/web/assets/{modal-B9eahS9q.js → modal-Bomcd8xq.js} +1 -1
- package/web/assets/{notification.store-CWs6iQmx.js → notification.store-C8qNYGB5.js} +1 -1
- package/web/assets/open-project-org-BNDadG2_.js +1 -0
- package/web/assets/{project-launch.store-DkD7Q9jW.js → project-launch.store-DBuxvZJr.js} +1 -1
- package/web/assets/{project.store-CnflI3la.js → project.store-CXP-Oq1W.js} +1 -1
- package/web/assets/{scenario.store-DGt8nNt5.js → scenario.store-B6TiJlpU.js} +1 -1
- package/web/assets/{service.store-yECOKc1C.js → service.store-oNOqRX_s.js} +1 -1
- package/web/assets/{settings-scope-Ca1LjLG1.js → settings-scope-EYddCMQs.js} +1 -1
- package/web/assets/{settings.store-Cyop63CA.js → settings.store-Dbe4N-TD.js} +1 -1
- package/web/assets/{src-CcVk2-Gw.js → src-B1nAsOcw.js} +1 -1
- package/web/assets/{src-8YjxNhhv.js → src-BMnPg9V0.js} +1 -1
- package/web/assets/src-BR35jQnn.css +1 -0
- package/web/assets/src-BY3QUJ9Z.css +1 -0
- package/web/assets/src-Cpewe6v-.js +1 -0
- package/web/assets/{trpc-DlM4IpMe.js → trpc-CFd5DIpB.js} +3 -3
- package/web/assets/{useCloudOrg-Ck6Ef1iD.js → useCloudOrg-_oj_ijeT.js} +1 -1
- package/web/assets/{useEnvVarAutocomplete-B0fhZK-_.js → useEnvVarAutocomplete-IIpGvDLc.js} +1 -1
- package/web/assets/{useProjectCatalog-D1RgJoOm.js → useProjectCatalog-DT8MiHr7.js} +1 -1
- package/web/assets/useProjectCloudOrg-BgBNXoL1.js +1 -0
- package/web/assets/{useServiceUrlHost-Xzj6EOft.js → useServiceUrlHost-CzDrWXfO.js} +1 -1
- package/web/assets/uuid-D2uso58z.js +1 -0
- package/web/index.html +20 -19
- package/agent-manager-KDL4JWZN.js +0 -13
- package/chat-X6GWKPKG.js +0 -28
- package/chunk-6L273MQO.js.map +0 -1
- package/chunk-EZ35ISYR.js.map +0 -1
- package/settings-manager-OTVXDUJS.js +0 -10
- package/src-YR5RF76Z.js.map +0 -1
- package/web/assets/AppLayout-B1-D2-jx.css +0 -1
- package/web/assets/AppLayout-DIAQvecQ.js +0 -1
- package/web/assets/auth-DdEdmJV5.js +0 -2
- package/web/assets/cloud-client-zXY8HZtj.js +0 -2
- package/web/assets/cloud-session-DqfQKW5D.js +0 -2
- package/web/assets/dist-Cx_klvkk.js +0 -1
- package/web/assets/knowledge-host-ButMqDET.js +0 -6
- package/web/assets/knowledge-host-CfNnk0oz.css +0 -1
- package/web/assets/src-16-vEwhK.css +0 -1
- package/web/assets/src-BD3q9_go.js +0 -1
- package/web/assets/src-DOziuDw8.css +0 -1
- package/web/assets/useProjectCloudOrg-tnlpo5R1.js +0 -1
- package/web/assets/uuid-DfCowYZy.js +0 -1
- /package/{agent-manager-KDL4JWZN.js.map → agent-manager-NR24TCUQ.js.map} +0 -0
- /package/{chat-X6GWKPKG.js.map → chat-MRS24DL3.js.map} +0 -0
- /package/{chunk-SVKR7CYU.js.map → chunk-C3KBWZ24.js.map} +0 -0
- /package/{chunk-TMX3NXMQ.js.map → chunk-GJ5KN2LL.js.map} +0 -0
- /package/{chunk-IYL545N3.js.map → chunk-GPSTFDKW.js.map} +0 -0
- /package/{chunk-L3BEQ75K.js.map → chunk-JJTSWJXV.js.map} +0 -0
- /package/{chunk-N4ZP7T6L.js.map → chunk-KNWWJND3.js.map} +0 -0
- /package/{chunk-NV7MBTNW.js.map → chunk-KWKSPNGO.js.map} +0 -0
- /package/{chunk-ETPXJSVC.js.map → chunk-UYOJZ34Z.js.map} +0 -0
- /package/{chunk-I4FSX522.js.map → chunk-V7BOVXZI.js.map} +0 -0
- /package/{chunk-N5LP5TPS.js.map → chunk-YEFYRGSP.js.map} +0 -0
- /package/{chunk-JAMAGUGN.js.map → chunk-YEZOV6GP.js.map} +0 -0
- /package/{chunk-V7WTXGEJ.js.map → chunk-ZW4GRZRF.js.map} +0 -0
- /package/{companion-V6ITOFSU.js.map → companion-CGBD5O6Y.js.map} +0 -0
- /package/{desktop-installer-page-DCS2FLA5.js.map → desktop-installer-page-54PKY3L3.js.map} +0 -0
- /package/{desktop-launcher-ER3J7KAW.js.map → desktop-launcher-2DWKSS6V.js.map} +0 -0
- /package/{environment-resolver-HT6GTSLA.js.map → environment-resolver-E7JDNTRO.js.map} +0 -0
- /package/{external-WZQUS7LY.js.map → external-5I5BUT44.js.map} +0 -0
- /package/{install-gate-3ZDX3AUO.js.map → install-gate-W5D4ZOZK.js.map} +0 -0
- /package/{project-store-6TFAYAWK.js.map → project-store-67M34SNQ.js.map} +0 -0
- /package/{settings-manager-OTVXDUJS.js.map → settings-manager-M5RS5WRM.js.map} +0 -0
- /package/{src-DBSSIQC7.js.map → src-FTYC7P2P.js.map} +0 -0
- /package/{vault-resolver-G3G5YPNG.js.map → vault-resolver-5Q25S6NI.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,117 @@ 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
|
-
|
|
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 SupportCreateInputSchema = z222.object({
|
|
1566
|
+
kind: SupportKindSchema,
|
|
1567
|
+
subject: z222.string().trim().min(1).max(SUPPORT_SUBJECT_MAX),
|
|
1568
|
+
body: z222.string().trim().min(1).max(SUPPORT_BODY_MAX),
|
|
1569
|
+
/** Obligatoire sans session : c'est par là que la réponse arrive. */
|
|
1570
|
+
email: z222.string().trim().email().max(254).optional(),
|
|
1571
|
+
/** Version de l'app, système… Rempli par l'app, lu par le support. */
|
|
1572
|
+
context: z222.string().max(SUPPORT_CONTEXT_MAX).optional(),
|
|
1573
|
+
source: z222.enum(["app", "cloud"])
|
|
1574
|
+
});
|
|
1575
|
+
var SupportReplyInputSchema = z222.object({
|
|
1576
|
+
body: z222.string().trim().min(1).max(SUPPORT_BODY_MAX)
|
|
1577
|
+
});
|
|
1578
|
+
var SupportMessageViewSchema = z222.object({
|
|
1579
|
+
id: z222.string(),
|
|
1580
|
+
from: z222.enum(["requester", "support"]),
|
|
1581
|
+
authorName: z222.string(),
|
|
1582
|
+
body: z222.string(),
|
|
1583
|
+
sentAt: z222.string()
|
|
1584
|
+
}).strict();
|
|
1585
|
+
var SupportTicketSummarySchema = z222.object({
|
|
1586
|
+
id: z222.string(),
|
|
1587
|
+
number: z222.number().int(),
|
|
1588
|
+
kind: SupportKindSchema,
|
|
1589
|
+
subject: z222.string(),
|
|
1590
|
+
status: SupportStatusSchema,
|
|
1591
|
+
createdAt: z222.string(),
|
|
1592
|
+
updatedAt: z222.string(),
|
|
1593
|
+
/** Le support a répondu depuis la dernière lecture du demandeur. */
|
|
1594
|
+
unread: z222.boolean()
|
|
1595
|
+
}).strict();
|
|
1596
|
+
var SupportTicketViewSchema = SupportTicketSummarySchema.extend({
|
|
1597
|
+
messages: z222.array(SupportMessageViewSchema)
|
|
1598
|
+
}).strict();
|
|
1599
|
+
var SupportCreatedSchema = z222.object({
|
|
1600
|
+
ticket: SupportTicketViewSchema,
|
|
1601
|
+
accessToken: z222.string().optional()
|
|
1602
|
+
}).strict();
|
|
1603
|
+
var SupportCardLinkSchema = z222.object({
|
|
1604
|
+
organizationId: z222.string(),
|
|
1605
|
+
boardId: z222.string(),
|
|
1606
|
+
cardId: z222.string(),
|
|
1607
|
+
title: z222.string(),
|
|
1608
|
+
origin: z222.enum(["auto", "manual"])
|
|
1609
|
+
});
|
|
1610
|
+
var SupportStaffMessageViewSchema = z222.object({
|
|
1611
|
+
id: z222.string(),
|
|
1612
|
+
from: z222.enum(["requester", "support", "internal"]),
|
|
1613
|
+
authorName: z222.string(),
|
|
1614
|
+
body: z222.string(),
|
|
1615
|
+
sentAt: z222.string()
|
|
1616
|
+
});
|
|
1617
|
+
var SupportStaffTicketSummarySchema = z222.object({
|
|
1618
|
+
id: z222.string(),
|
|
1619
|
+
number: z222.number().int(),
|
|
1620
|
+
kind: SupportKindSchema,
|
|
1621
|
+
subject: z222.string(),
|
|
1622
|
+
status: SupportStatusSchema,
|
|
1623
|
+
source: z222.enum(["app", "cloud"]),
|
|
1624
|
+
requester: z222.object({ email: z222.string(), name: z222.string().nullable(), userId: z222.string().nullable() }),
|
|
1625
|
+
createdAt: z222.string(),
|
|
1626
|
+
updatedAt: z222.string(),
|
|
1627
|
+
/** Le demandeur a écrit depuis la dernière lecture du support. */
|
|
1628
|
+
unread: z222.boolean(),
|
|
1629
|
+
cards: z222.array(SupportCardLinkSchema)
|
|
1630
|
+
});
|
|
1631
|
+
var SupportStaffTicketViewSchema = SupportStaffTicketSummarySchema.extend({
|
|
1632
|
+
context: z222.string().nullable(),
|
|
1633
|
+
messages: z222.array(SupportStaffMessageViewSchema)
|
|
1634
|
+
});
|
|
1635
|
+
var SupportSettingsSchema = z222.object({
|
|
1636
|
+
autoCard: z222.object({
|
|
1637
|
+
enabled: z222.boolean(),
|
|
1638
|
+
organizationId: z222.string().max(64).nullable(),
|
|
1639
|
+
boardId: z222.string().max(64).nullable(),
|
|
1640
|
+
columnId: z222.string().max(64).nullable(),
|
|
1641
|
+
kinds: z222.array(SupportKindSchema).max(3)
|
|
1642
|
+
})
|
|
1643
|
+
});
|
|
1644
|
+
var ChangelogSurfaceSchema = z23.enum(["app", "cloud"]);
|
|
1645
|
+
var ChangelogChangeKindSchema = z23.enum(["feature", "improvement", "fix", "breaking"]);
|
|
1646
|
+
var ChangelogTextSchema = z23.object({
|
|
1647
|
+
fr: z23.string().min(1).max(500),
|
|
1648
|
+
en: z23.string().min(1).max(500)
|
|
1649
|
+
});
|
|
1650
|
+
var ChangelogChangeSchema = z23.object({
|
|
1566
1651
|
kind: ChangelogChangeKindSchema,
|
|
1567
1652
|
text: ChangelogTextSchema
|
|
1568
1653
|
});
|
|
1569
1654
|
var ChangelogDraftSchema = ChangelogChangeSchema.extend({
|
|
1570
|
-
date:
|
|
1655
|
+
date: z23.string().regex(/^\d{4}-\d{2}-\d{2}$/),
|
|
1571
1656
|
title: ChangelogTextSchema.optional()
|
|
1572
1657
|
});
|
|
1573
|
-
var ChangelogReleaseSchema =
|
|
1658
|
+
var ChangelogReleaseSchema = z23.object({
|
|
1574
1659
|
surface: ChangelogSurfaceSchema,
|
|
1575
1660
|
/** `1.4.2` pour l'app (version npm publiée), `2026-09-03` — ou `2026-09-03.2` — pour le cloud. */
|
|
1576
|
-
version:
|
|
1661
|
+
version: z23.string().min(1).max(32).regex(/^[0-9][0-9.-]*$/),
|
|
1577
1662
|
/** Date de publication, `YYYY-MM-DD`. */
|
|
1578
|
-
date:
|
|
1663
|
+
date: z23.string().regex(/^\d{4}-\d{2}-\d{2}$/),
|
|
1579
1664
|
/** Facultatif : une version peut s'annoncer par son seul numéro. */
|
|
1580
1665
|
title: ChangelogTextSchema.optional(),
|
|
1581
1666
|
/** Une version sans changement n'a rien à annoncer : elle n'a pas sa place ici. */
|
|
1582
|
-
changes:
|
|
1667
|
+
changes: z23.array(ChangelogChangeSchema).min(1).max(50)
|
|
1583
1668
|
});
|
|
1584
1669
|
var ChangelogIndexItemSchema = ChangelogReleaseSchema.omit({ changes: true }).extend({
|
|
1585
|
-
changeCount:
|
|
1670
|
+
changeCount: z23.number().int().nonnegative()
|
|
1586
1671
|
});
|
|
1587
1672
|
var MASKED_VALUE = "***";
|
|
1588
1673
|
function maskLogSourceSecrets(sources) {
|
|
@@ -1638,7 +1723,7 @@ var EDITOR_BY_KEY = new Map(
|
|
|
1638
1723
|
);
|
|
1639
1724
|
|
|
1640
1725
|
// ../ai-capabilities/dist/index.js
|
|
1641
|
-
import { z as
|
|
1726
|
+
import { z as z25 } from "zod";
|
|
1642
1727
|
import { z as z32 } from "zod";
|
|
1643
1728
|
function toList(raw) {
|
|
1644
1729
|
if (!raw) return [];
|
|
@@ -1688,15 +1773,15 @@ function parseTyped(name, schema, raw) {
|
|
|
1688
1773
|
if (list.success) result = list;
|
|
1689
1774
|
}
|
|
1690
1775
|
}
|
|
1691
|
-
if (!result.success) throw new Error(`${name}: ${
|
|
1776
|
+
if (!result.success) throw new Error(`${name}: ${z24.prettifyError(result.error)}`);
|
|
1692
1777
|
return result.data;
|
|
1693
1778
|
}
|
|
1694
1779
|
function withIds(items) {
|
|
1695
1780
|
return items.map((item) => ({ ...item, id: item.id || newId() }));
|
|
1696
1781
|
}
|
|
1697
|
-
var optionalId = (schema) => schema.extend({ id:
|
|
1782
|
+
var optionalId = (schema) => schema.extend({ id: z24.string().min(1).max(64).optional() });
|
|
1698
1783
|
var DockerConfigInput = DockerConfigSchema.extend({
|
|
1699
|
-
bootstrapCommands:
|
|
1784
|
+
bootstrapCommands: z24.array(optionalId(BootstrapCommandSchema)).max(20).default([])
|
|
1700
1785
|
}).refine((c) => !!c.image !== !!c.dockerfile, {
|
|
1701
1786
|
message: 'dockerConfig needs exactly one of "image" (an image to pull) or "dockerfile" (a Dockerfile to build)'
|
|
1702
1787
|
});
|
|
@@ -1705,7 +1790,7 @@ var SERVICE_FIELDS = [
|
|
|
1705
1790
|
{ name: "agentId", description: "The agent that runs it, from list_agents. Omit to inherit from the environment.", clearable: true },
|
|
1706
1791
|
{ 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
1792
|
{ 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:
|
|
1793
|
+
{ 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
1794
|
{ 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
1795
|
{ name: "groups", description: "Groups the service belongs to. Replaces the current ones.", schema: ServiceConfigSchema.shape.groups.unwrap().unwrap() },
|
|
1711
1796
|
{ name: "url", description: "URL where the service is reached" },
|
|
@@ -1717,19 +1802,19 @@ var SERVICE_FIELDS = [
|
|
|
1717
1802
|
{ 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
1803
|
{ 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
1804
|
{ 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:
|
|
1805
|
+
{ name: "autoRestart", description: "Restart the service when it crashes", schema: z24.boolean() },
|
|
1721
1806
|
{ name: "restartStrategy", description: "When to restart it", schema: RestartStrategySchema.unwrap() },
|
|
1722
1807
|
{ name: "maxRestarts", description: "Give up after this many restarts", schema: ServiceConfigSchema.shape.maxRestarts.unwrap() },
|
|
1723
1808
|
{ 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:
|
|
1809
|
+
{ name: "clearLogsOnStart", description: "Clear the logs each time the service starts", schema: z24.boolean() },
|
|
1810
|
+
{ 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
1811
|
{ name: "parserIds", description: "Log parsers applied to its output, by id", schema: ServiceConfigSchema.shape.parserIds.unwrap() },
|
|
1727
1812
|
{ 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
1813
|
];
|
|
1729
1814
|
function serviceParams(clearable2) {
|
|
1730
1815
|
return SERVICE_FIELDS.map((f) => {
|
|
1731
1816
|
const nullable = clearable2 && f.clearable;
|
|
1732
|
-
const base = f.schema ?? (nullable ?
|
|
1817
|
+
const base = f.schema ?? (nullable ? z24.string() : void 0);
|
|
1733
1818
|
return {
|
|
1734
1819
|
name: f.name,
|
|
1735
1820
|
description: nullable ? `${f.description} null clears it.` : f.description,
|
|
@@ -1769,15 +1854,15 @@ var KNOWLEDGE_TYPES_DOC = KNOWLEDGE_PAGE_TYPES.map((t) => {
|
|
|
1769
1854
|
return `${t}: ${spec.description}${fields ? ` Fields: ${fields}.` : ""}`;
|
|
1770
1855
|
}).join(" | ");
|
|
1771
1856
|
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 =
|
|
1857
|
+
var kIds = z24.array(KnowledgeIdSchema).max(50);
|
|
1858
|
+
var kSearchLimit = z24.number().int().min(1).max(KNOWLEDGE_LIMITS.searchResults);
|
|
1859
|
+
var kSections = z24.array(KnowledgeSectionSchema).max(KNOWLEDGE_LIMITS.sections);
|
|
1860
|
+
var kThemeDepth = z24.number().int().min(0).max(KNOWLEDGE_LIMITS.themeDepth);
|
|
1861
|
+
var kDepth = z24.number().int().min(1).max(KNOWLEDGE_LIMITS.neighborsDepth);
|
|
1862
|
+
var kRelatedLimit = z24.number().int().min(1).max(KNOWLEDGE_LIMITS.relatedPages);
|
|
1863
|
+
var kNeighborLimit = z24.number().int().min(1).max(KNOWLEDGE_LIMITS.neighborsNodes);
|
|
1864
|
+
var kHistoryLimit = z24.number().int().min(1).max(500);
|
|
1865
|
+
var kSeedIds = z24.array(KnowledgeIdSchema).min(1).max(10);
|
|
1781
1866
|
function knowledgePageFields(p) {
|
|
1782
1867
|
const out = {};
|
|
1783
1868
|
if (p.title !== void 0) out.title = p.title;
|
|
@@ -1875,7 +1960,7 @@ function readPageAnswer(result, input) {
|
|
|
1875
1960
|
}
|
|
1876
1961
|
};
|
|
1877
1962
|
}
|
|
1878
|
-
var KNOWLEDGE_MARKDOWN_NOTE = "Markdown
|
|
1963
|
+
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 images 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.";
|
|
1879
1964
|
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
1965
|
var KNOWLEDGE_CAPABILITIES = [
|
|
1881
1966
|
{
|
|
@@ -1894,14 +1979,14 @@ var KNOWLEDGE_CAPABILITIES = [
|
|
|
1894
1979
|
method: "GET",
|
|
1895
1980
|
params: [
|
|
1896
1981
|
{ 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:
|
|
1982
|
+
{ name: "types", description: `Page types to keep: ${KNOWLEDGE_PAGE_TYPES.join(", ")}`, required: false, schema: z24.array(KnowledgePageTypeSchema) },
|
|
1898
1983
|
{ name: "themeIds", description: "Theme page ids the pages must ALL carry (from knowledge_list_themes)", required: false, schema: KnowledgeThemeIdsSchema },
|
|
1899
1984
|
{ name: "themeDepth", description: `Levels of sub-themes counted with each theme, 0 to ${KNOWLEDGE_LIMITS.themeDepth}`, required: false, schema: kThemeDepth },
|
|
1900
1985
|
{ name: "spaceIds", description: "Restrict to these spaces", required: false, schema: kIds },
|
|
1901
1986
|
// Pas `projectId` : ce nom est rempli d'office avec le projet de la
|
|
1902
1987
|
// conversation (project-anchor), ce qui filtrait toute recherche sur lui.
|
|
1903
1988
|
{ 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:
|
|
1989
|
+
{ name: "includeObsolete", description: "Also return obsolete pages", required: false, schema: z24.boolean() },
|
|
1905
1990
|
{ name: "limit", description: `At most this many hits (1-${KNOWLEDGE_LIMITS.searchResults}, default 20)`, required: false, schema: kSearchLimit },
|
|
1906
1991
|
{ name: "organizationId", description: "The organization. Optional when the machine has one.", required: false },
|
|
1907
1992
|
{ 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 +1995,11 @@ var KNOWLEDGE_CAPABILITIES = [
|
|
|
1910
1995
|
...p.organizationId ? { organizationId: p.organizationId } : {},
|
|
1911
1996
|
...p.query ? { query: p.query } : {},
|
|
1912
1997
|
...p.onlyProjectId ? { projectId: p.onlyProjectId } : {},
|
|
1913
|
-
...p.types !== void 0 ? { types: parseTyped("types",
|
|
1998
|
+
...p.types !== void 0 ? { types: parseTyped("types", z24.array(KnowledgePageTypeSchema), p.types) } : {},
|
|
1914
1999
|
...p.themeIds !== void 0 ? { themeIds: parseTyped("themeIds", KnowledgeThemeIdsSchema, p.themeIds) } : {},
|
|
1915
2000
|
...p.themeDepth !== void 0 ? { themeDepth: parseTyped("themeDepth", kThemeDepth, p.themeDepth) } : {},
|
|
1916
2001
|
...p.spaceIds !== void 0 ? { spaceIds: parseTyped("spaceIds", kIds, p.spaceIds) } : {},
|
|
1917
|
-
...p.includeObsolete !== void 0 ? { includeObsolete: parseTyped("includeObsolete",
|
|
2002
|
+
...p.includeObsolete !== void 0 ? { includeObsolete: parseTyped("includeObsolete", z24.boolean(), p.includeObsolete) } : {},
|
|
1918
2003
|
...p.limit !== void 0 ? { limit: parseTyped("limit", kSearchLimit, p.limit) } : {},
|
|
1919
2004
|
...p.cursor !== void 0 ? { cursor: p.cursor } : {}
|
|
1920
2005
|
}),
|
|
@@ -1963,16 +2048,16 @@ var KNOWLEDGE_CAPABILITIES = [
|
|
|
1963
2048
|
params: [
|
|
1964
2049
|
{ name: "pageId", description: "The starting page", required: true },
|
|
1965
2050
|
{ 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:
|
|
2051
|
+
{ name: "kinds", description: "Only follow these edge kinds", required: false, schema: z24.array(KnowledgeEdgeKindSchema) },
|
|
1967
2052
|
{ 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:
|
|
2053
|
+
{ name: "includeObsolete", description: "Also return obsolete pages (left out by default)", required: false, schema: z24.boolean() }
|
|
1969
2054
|
],
|
|
1970
2055
|
buildInput: (p) => ({
|
|
1971
2056
|
pageId: p.pageId,
|
|
1972
2057
|
...p.depth !== void 0 ? { depth: parseTyped("depth", kDepth, p.depth) } : {},
|
|
1973
|
-
...p.kinds !== void 0 ? { kinds: parseTyped("kinds",
|
|
2058
|
+
...p.kinds !== void 0 ? { kinds: parseTyped("kinds", z24.array(KnowledgeEdgeKindSchema), p.kinds) } : {},
|
|
1974
2059
|
...p.limit !== void 0 ? { limit: parseTyped("limit", kNeighborLimit, p.limit) } : {},
|
|
1975
|
-
...p.includeObsolete !== void 0 ? { includeObsolete: parseTyped("includeObsolete",
|
|
2060
|
+
...p.includeObsolete !== void 0 ? { includeObsolete: parseTyped("includeObsolete", z24.boolean(), p.includeObsolete) } : {}
|
|
1976
2061
|
}),
|
|
1977
2062
|
transformOutput: (result, input) => {
|
|
1978
2063
|
if (!isRec(result) || !Array.isArray(result.nodes)) return result;
|
|
@@ -2000,12 +2085,12 @@ var KNOWLEDGE_CAPABILITIES = [
|
|
|
2000
2085
|
params: [
|
|
2001
2086
|
{ name: "pageIds", description: "One to ten page ids", required: true, schema: kSeedIds },
|
|
2002
2087
|
{ 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:
|
|
2088
|
+
{ name: "includeObsolete", description: "Also return obsolete pages (left out by default)", required: false, schema: z24.boolean() }
|
|
2004
2089
|
],
|
|
2005
2090
|
buildInput: (p) => ({
|
|
2006
2091
|
pageIds: parseTyped("pageIds", kSeedIds, p.pageIds),
|
|
2007
2092
|
...p.limit !== void 0 ? { limit: parseTyped("limit", kRelatedLimit, p.limit) } : {},
|
|
2008
|
-
...p.includeObsolete !== void 0 ? { includeObsolete: parseTyped("includeObsolete",
|
|
2093
|
+
...p.includeObsolete !== void 0 ? { includeObsolete: parseTyped("includeObsolete", z24.boolean(), p.includeObsolete) } : {}
|
|
2009
2094
|
}),
|
|
2010
2095
|
transformOutput: (result) => isRec(result) && Array.isArray(result.pages) ? { ...result, pages: result.pages.map(slimThemes) } : result
|
|
2011
2096
|
},
|
|
@@ -2037,11 +2122,11 @@ var KNOWLEDGE_CAPABILITIES = [
|
|
|
2037
2122
|
method: "GET",
|
|
2038
2123
|
params: [
|
|
2039
2124
|
{ 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:
|
|
2125
|
+
{ name: "at", description: "The date of the version, as given by knowledge_get_history (ISO 8601)", required: true, schema: z24.iso.datetime() },
|
|
2041
2126
|
{ 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:
|
|
2127
|
+
{ name: "compare", description: "Also give what changed since this version (sinceThen)", required: false, schema: z24.boolean() }
|
|
2043
2128
|
],
|
|
2044
|
-
buildInput: (p) => ({ pageId: p.pageId, at: parseTyped("at",
|
|
2129
|
+
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
2130
|
transformOutput: (result, input) => {
|
|
2046
2131
|
if (!isRec(result) || !isRec(result.snapshot)) return result;
|
|
2047
2132
|
const { markdown: _markdown, ...snapshot } = result.snapshot;
|
|
@@ -2068,14 +2153,14 @@ var KNOWLEDGE_CAPABILITIES = [
|
|
|
2068
2153
|
{ name: "projectIds", description: "Runeya project ids the page is about", required: false, schema: KnowledgeProjectIdsSchema },
|
|
2069
2154
|
{ name: "sources", description: 'Where the knowledge comes from: [{"label","url"?}]', required: false, schema: KnowledgeSourcesSchema },
|
|
2070
2155
|
{ 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:
|
|
2156
|
+
{ name: "links", description: `Links to other pages: [{"to","relation"}], relation among ${KNOWLEDGE_RELATIONS_DOC}`, required: false, schema: z24.array(KnowledgeLinkSchema).max(200) },
|
|
2072
2157
|
{ name: "locale", description: "Language of default section titles: fr or en", required: false, schema: KnowledgeLocaleSchema }
|
|
2073
2158
|
],
|
|
2074
2159
|
buildInput: (p) => ({
|
|
2075
2160
|
spaceId: p.spaceId,
|
|
2076
2161
|
...knowledgePageFields(p),
|
|
2077
2162
|
...p.sections !== void 0 ? { sections: parseTyped("sections", kSections, p.sections) } : {},
|
|
2078
|
-
...p.links !== void 0 ? { links: parseTyped("links",
|
|
2163
|
+
...p.links !== void 0 ? { links: parseTyped("links", z24.array(KnowledgeLinkSchema).max(200), p.links) } : {},
|
|
2079
2164
|
...p.locale !== void 0 ? { locale: parseTyped("locale", KnowledgeLocaleSchema, p.locale) } : {}
|
|
2080
2165
|
}),
|
|
2081
2166
|
transformOutput: writeAnswer((page) => ({ themes: slimThemes(page).themes, sections: headingsOf(page) }))
|
|
@@ -2121,7 +2206,7 @@ var KNOWLEDGE_CAPABILITIES = [
|
|
|
2121
2206
|
{ name: "heading", description: "The section heading", required: true },
|
|
2122
2207
|
{ name: "markdown", description: "The content, in Markdown (required unless mode is remove)", required: false },
|
|
2123
2208
|
{ 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:
|
|
2209
|
+
{ name: "create", description: "Create the section at the end if no section has this heading", required: false, schema: z24.boolean() }
|
|
2125
2210
|
],
|
|
2126
2211
|
buildInput: (p) => {
|
|
2127
2212
|
const started = typeof p.markdown === "string" ? [...p.markdown.matchAll(/^#{1,2}\s+(.+)$/gm)].map((m) => m[1].trim()) : [];
|
|
@@ -2133,7 +2218,7 @@ var KNOWLEDGE_CAPABILITIES = [
|
|
|
2133
2218
|
heading: p.heading ?? "",
|
|
2134
2219
|
...p.markdown !== void 0 ? { markdown: p.markdown } : {},
|
|
2135
2220
|
...p.mode !== void 0 ? { mode: parseTyped("mode", KnowledgeSectionModeSchema, p.mode) } : {},
|
|
2136
|
-
...p.create !== void 0 ? { create: parseTyped("create",
|
|
2221
|
+
...p.create !== void 0 ? { create: parseTyped("create", z24.boolean(), p.create) } : {}
|
|
2137
2222
|
};
|
|
2138
2223
|
},
|
|
2139
2224
|
transformOutput: writeAnswer((page, input) => {
|
|
@@ -2155,14 +2240,14 @@ var KNOWLEDGE_CAPABILITIES = [
|
|
|
2155
2240
|
{ 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
2241
|
{ name: "replace", description: "The new text (empty to delete the passage)", required: true },
|
|
2157
2242
|
{ 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:
|
|
2243
|
+
{ name: "all", description: "Replace every occurrence instead of requiring a unique one", required: false, schema: z24.boolean() }
|
|
2159
2244
|
],
|
|
2160
2245
|
buildInput: (p) => ({
|
|
2161
2246
|
pageId: p.pageId,
|
|
2162
2247
|
find: p.find,
|
|
2163
2248
|
replace: p.replace ?? "",
|
|
2164
2249
|
...p.heading !== void 0 ? { heading: p.heading } : {},
|
|
2165
|
-
...p.all !== void 0 ? { all: parseTyped("all",
|
|
2250
|
+
...p.all !== void 0 ? { all: parseTyped("all", z24.boolean(), p.all) } : {}
|
|
2166
2251
|
}),
|
|
2167
2252
|
transformOutput: editedSectionOnly
|
|
2168
2253
|
},
|
|
@@ -2685,13 +2770,13 @@ var RUNEYA_CAPABILITIES = [
|
|
|
2685
2770
|
params: [
|
|
2686
2771
|
{ name: "serviceId", description: "The service ID", required: true },
|
|
2687
2772
|
{ 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:
|
|
2773
|
+
{ name: "orgId", description: "Move the service to this organization vault. Leave unset unless asked.", required: false, schema: z24.string().max(128).nullable() },
|
|
2689
2774
|
...UPDATE_SERVICE_PARAMS
|
|
2690
2775
|
],
|
|
2691
2776
|
buildInput: (p) => ({
|
|
2692
2777
|
id: p.serviceId,
|
|
2693
2778
|
...p.name ? { name: p.name } : {},
|
|
2694
|
-
...p.orgId !== void 0 ? { orgId: parseTyped("orgId",
|
|
2779
|
+
...p.orgId !== void 0 ? { orgId: parseTyped("orgId", z24.string().max(128).nullable(), p.orgId) } : {},
|
|
2695
2780
|
...serviceFields(p, UPDATE_SERVICE_PARAMS)
|
|
2696
2781
|
})
|
|
2697
2782
|
},
|
|
@@ -2747,7 +2832,7 @@ var RUNEYA_CAPABILITIES = [
|
|
|
2747
2832
|
method: "POST",
|
|
2748
2833
|
params: [
|
|
2749
2834
|
{ 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:
|
|
2835
|
+
{ name: "inherit", description: '"true" to inherit from the global environment, "false" to isolate', required: true, schema: z24.boolean() }
|
|
2751
2836
|
],
|
|
2752
2837
|
buildInput: (p) => ({ environmentId: p.environmentId, inherit: toBool(p.inherit ?? "true") })
|
|
2753
2838
|
},
|
|
@@ -3105,9 +3190,9 @@ function createRuneyaMcpServer(opts) {
|
|
|
3105
3190
|
var CARD_CONTEXT = RUNEYA_CAPABILITIES.find((c) => c.name === "kanban_get_card_context");
|
|
3106
3191
|
function registerWorkOnCardPrompt(server2, cardContext, withInstance) {
|
|
3107
3192
|
const args = {
|
|
3108
|
-
boardId:
|
|
3109
|
-
cardId:
|
|
3110
|
-
...withInstance ? { runeyaInstance:
|
|
3193
|
+
boardId: z26.string().max(128).describe("The kanban board ID"),
|
|
3194
|
+
cardId: z26.string().max(128).describe("The card ID"),
|
|
3195
|
+
...withInstance ? { runeyaInstance: z26.string().max(16).optional().describe("pid of the Runeya instance, when several are running") } : {}
|
|
3111
3196
|
};
|
|
3112
3197
|
server2.prompt(
|
|
3113
3198
|
"work_on_card",
|
|
@@ -3172,7 +3257,7 @@ if (CONVERSATION_ID && INTERNAL_TOKEN) {
|
|
|
3172
3257
|
server.tool(
|
|
3173
3258
|
"ask_user",
|
|
3174
3259
|
"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:
|
|
3260
|
+
{ question: z27.string().describe("The question to ask the user") },
|
|
3176
3261
|
async ({ question }) => {
|
|
3177
3262
|
try {
|
|
3178
3263
|
const res = await fetch(`${BASE_URL}/api/trpc/scenario.requestInput`, {
|