@runeya/runeya 2.0.158 → 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-DVECWRFG.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-4HN2AGBV.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-SGFGQ2EL.js → chunk-ZZZQMQWF.js} +2 -2
- package/{companion-KVAOV52T.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-3QTRN4YV.js → external-5I5BUT44.js} +3 -3
- package/index.js +12 -12
- package/{install-gate-WZR3XSN6.js → install-gate-W5D4ZOZK.js} +2 -2
- package/mcp-server/external.js +145 -60
- package/mcp-server/external.js.map +1 -1
- package/mcp-server/index.js +145 -60
- 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-F5SK2AL3.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-DgXKqqWC.js → AgentScalarChatInterface.vue-DLtiWyFa.js} +1 -1
- package/web/assets/{AgentTerminalPage-B_cExmB6.js → AgentTerminalPage-Ds4QAs67.js} +1 -1
- package/web/assets/{AiChatModals-CNyUOq-o.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-C8f1gRUr.js → AuditPage-TlsfnK1U.js} +1 -1
- package/web/assets/{CloudAccountPage-BC45p4uK.js → CloudAccountPage-BuFn-iaB.js} +1 -1
- package/web/assets/{CloudMessagingPage-BCEZdgoe.js → CloudMessagingPage-BcOTKWP1.js} +1 -1
- package/web/assets/{DashboardPage-CGtK_iBU.js → DashboardPage-BLw_tc_p.js} +1 -1
- package/web/assets/{DirectoryPickerDialog-Ciy6QiOl.js → DirectoryPickerDialog-X6P-Gl27.js} +1 -1
- package/web/assets/{EditorIcon-Cx11i-sC.js → EditorIcon-DYGui0zm.js} +1 -1
- package/web/assets/{EnvironmentForm-Dm5RBLw3.js → EnvironmentForm-CNxgYejU.js} +1 -1
- package/web/assets/{EnvironmentFormPage-tEpeq4it.js → EnvironmentFormPage-Cu9tmfeS.js} +1 -1
- package/web/assets/{EnvironmentListPage-D8ppIAWE.js → EnvironmentListPage-RJc8Noj0.js} +1 -1
- package/web/assets/{FlagChip-UumVjPY9.js → FlagChip-DBj0fpJC.js} +1 -1
- package/web/assets/{KanbanBoardPage-CamUcYCQ.js → KanbanBoardPage-CfeFN-sn.js} +3 -3
- package/web/assets/{KanbanListPage-C_DZwAKD.js → KanbanListPage-Bvf_6sKr.js} +1 -1
- package/web/assets/{KnowledgeListPage-BBhzvW-h.js → KnowledgeListPage-8asAbOWR.js} +1 -1
- package/web/assets/{KnowledgePagePage-Bnnhyxfi.js → KnowledgePagePage-CH8ErT7E.js} +1 -1
- package/web/assets/{LaunchProjectPage-BHbOO-qr.js → LaunchProjectPage-Cj4zIh-L.js} +1 -1
- package/web/assets/{LaunchServicesPage-CrKG4CUc.js → LaunchServicesPage-C5yBRgjj.js} +1 -1
- package/web/assets/{LaunchShell-BHgU9IFB.js → LaunchShell-BHRT0Iyo.js} +1 -1
- package/web/assets/{LogViewer-DeTRyWSh.js → LogViewer-B-iEIEx5.js} +1 -1
- package/web/assets/{OrgKeyPrompt-CmHBAJRR.js → OrgKeyPrompt-U4dh8VYn.js} +1 -1
- package/web/assets/{ProcessControls-Bs5rpuyG.js → ProcessControls-DR2mGg4A.js} +1 -1
- package/web/assets/{ProcessDetailPage-BouE6rnn.js → ProcessDetailPage-UdlOtobk.js} +1 -1
- package/web/assets/{ProcessMetrics-DisQYLu6.js → ProcessMetrics-CAiB2nbb.js} +1 -1
- package/web/assets/{ProjectCreateDialog-CK-RH0wb.js → ProjectCreateDialog-JJ_UgVSV.js} +1 -1
- package/web/assets/{ProjectLocationGate-j_EaQ37h.js → ProjectLocationGate-RpWuVQOx.js} +1 -1
- package/web/assets/{ProjectPublishDialog-D7lTBCu_.js → ProjectPublishDialog-DXBAZVgF.js} +1 -1
- package/web/assets/{RandomJobTestPage-D11UxER3.js → RandomJobTestPage-BTyZOdQT.js} +1 -1
- package/web/assets/{ScenarioEditorPage-D0ZyVUSQ.js → ScenarioEditorPage-DO5s-Rb3.js} +1 -1
- package/web/assets/{SendToChatDialog-j61mBTkW.js → SendToChatDialog-jghvXDZk.js} +1 -1
- package/web/assets/{ServiceControlsBar-C2E_SEkD.js → ServiceControlsBar-Bjv9tyyt.js} +1 -1
- package/web/assets/{ServiceDetailPage-m_oJmvYC.js → ServiceDetailPage-DHYpDCfp.js} +1 -1
- package/web/assets/{ServiceFormPage-DyxF-esJ.js → ServiceFormPage-CCXaIoow.js} +1 -1
- package/web/assets/{SettingsPage-BLaufENl.js → SettingsPage-s-668z6W.js} +38 -38
- package/web/assets/{SettingsPage-Dsuzjo8r.css → SettingsPage-x-Rev6ea.css} +1 -1
- package/web/assets/{UnlockPage-BmKWcShW.js → UnlockPage-BNdzhO5C.js} +1 -1
- package/web/assets/{VaultMigrationPage-CScIzmKv.js → VaultMigrationPage-RWmGEMLC.js} +1 -1
- package/web/assets/{VersionBadge-yfgoumwX.js → VersionBadge-Crpf2R7o.js} +1 -1
- package/web/assets/{WikiPage-WQBT7wLD.js → WikiPage-BlemtaAo.js} +1 -1
- package/web/assets/{WikiView-CXXW1EZ1.js → WikiView-Du6Adpd-.js} +1 -1
- package/web/assets/{add-scalar-classes-C4A2C4Db.js → add-scalar-classes-B5tjvEi-.js} +1 -1
- package/web/assets/{agent.store-n7zoFDoU.js → agent.store-5ggNQfb3.js} +1 -1
- package/web/assets/{auth-Bh28S0O0.js → auth-ArDkSMsT.js} +2 -2
- package/web/assets/{cloud-chat.store-C4WdXFzT.js → cloud-chat.store-XJxdooyL.js} +1 -1
- package/web/assets/cloud-client-CMfTrHgZ.js +2 -0
- package/web/assets/{cloud-session-sF4HS72U.js → cloud-session-CHtF1SMt.js} +2 -2
- 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-Ccvk-qRh.js → index-Z4n9BqGD.js} +5 -5
- package/web/assets/{knowledge-host-97o7-gG1.js → knowledge-host-DeJwAH8b.js} +3 -3
- package/web/assets/{modal-BE_ZgM3t.js → modal-Bomcd8xq.js} +1 -1
- package/web/assets/{notification.store-BCON_qHz.js → notification.store-C8qNYGB5.js} +1 -1
- package/web/assets/{project-launch.store-Cd0LhFqV.js → project-launch.store-DBuxvZJr.js} +1 -1
- package/web/assets/{project.store-Doqh_upd.js → project.store-CXP-Oq1W.js} +1 -1
- package/web/assets/{scenario.store-Bttan_98.js → scenario.store-B6TiJlpU.js} +1 -1
- package/web/assets/{service.store-BtPdRbHy.js → service.store-oNOqRX_s.js} +1 -1
- package/web/assets/{settings-scope-BB3H0WrY.js → settings-scope-EYddCMQs.js} +1 -1
- package/web/assets/{settings.store-B51AlAcp.js → settings.store-Dbe4N-TD.js} +1 -1
- package/web/assets/{src-CcVk2-Gw.js → src-B1nAsOcw.js} +1 -1
- package/web/assets/{src-55L4GktS.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-CcVyWYH-.js → trpc-CFd5DIpB.js} +3 -3
- package/web/assets/{useCloudOrg-43CkkppL.js → useCloudOrg-_oj_ijeT.js} +1 -1
- package/web/assets/{useEnvVarAutocomplete-DGB9ZE4S.js → useEnvVarAutocomplete-IIpGvDLc.js} +1 -1
- package/web/assets/{useProjectCatalog-BiDVlcdO.js → useProjectCatalog-DT8MiHr7.js} +1 -1
- package/web/assets/{useProjectCloudOrg-CjDX0EaT.js → useProjectCloudOrg-BgBNXoL1.js} +1 -1
- package/web/assets/{useServiceUrlHost-CVjTMrmw.js → useServiceUrlHost-CzDrWXfO.js} +1 -1
- package/web/assets/uuid-D2uso58z.js +1 -0
- package/web/index.html +19 -19
- package/agent-manager-KDL4JWZN.js +0 -13
- package/chat-H5KZT3O6.js +0 -28
- package/chunk-EZ35ISYR.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/cloud-client-D7GDcRGa.js +0 -2
- package/web/assets/dist-Cx_klvkk.js +0 -1
- package/web/assets/src-16-vEwhK.css +0 -1
- package/web/assets/src-DOziuDw8.css +0 -1
- package/web/assets/src-IxogYJKL.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-H5KZT3O6.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-DVECWRFG.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-4HN2AGBV.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/{chunk-SGFGQ2EL.js.map → chunk-ZZZQMQWF.js.map} +0 -0
- /package/{companion-KVAOV52T.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-3QTRN4YV.js.map → external-5I5BUT44.js.map} +0 -0
- /package/{install-gate-WZR3XSN6.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/external.js
CHANGED
|
@@ -4,7 +4,7 @@ import { join as join2 } from "path";
|
|
|
4
4
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
5
5
|
|
|
6
6
|
// ../ai-capabilities/dist/index.js
|
|
7
|
-
import { z as
|
|
7
|
+
import { z as z24 } from "zod";
|
|
8
8
|
|
|
9
9
|
// ../shared/dist/chunk-L6P7TAOW.js
|
|
10
10
|
import { z } from "zod";
|
|
@@ -227,6 +227,7 @@ import { z as z19 } from "zod";
|
|
|
227
227
|
import { z as z20 } from "zod";
|
|
228
228
|
import { z as z21 } from "zod";
|
|
229
229
|
import { z as z222 } from "zod";
|
|
230
|
+
import { z as z23 } from "zod";
|
|
230
231
|
import { createCipheriv, createDecipheriv, randomBytes, pbkdf2Sync } from "crypto";
|
|
231
232
|
import vm from "vm";
|
|
232
233
|
import * as Y from "yjs";
|
|
@@ -1482,33 +1483,117 @@ var ConversationSearchHitSchema = IntegrationConversationSchema.extend({
|
|
|
1482
1483
|
preview: z21.string().max(500),
|
|
1483
1484
|
linkedCards: z21.array(z21.object({ boardId: z21.string().max(64), cardId: z21.string().max(64), title: z21.string().max(500) }))
|
|
1484
1485
|
});
|
|
1485
|
-
var
|
|
1486
|
-
var
|
|
1487
|
-
var
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1486
|
+
var SupportKindSchema = z222.enum(["bug", "improvement", "question"]);
|
|
1487
|
+
var SupportStatusSchema = z222.enum(["open", "waiting", "closed"]);
|
|
1488
|
+
var SUPPORT_SUBJECT_MAX = 200;
|
|
1489
|
+
var SUPPORT_BODY_MAX = 1e4;
|
|
1490
|
+
var SUPPORT_CONTEXT_MAX = 2e3;
|
|
1491
|
+
var SupportCreateInputSchema = z222.object({
|
|
1492
|
+
kind: SupportKindSchema,
|
|
1493
|
+
subject: z222.string().trim().min(1).max(SUPPORT_SUBJECT_MAX),
|
|
1494
|
+
body: z222.string().trim().min(1).max(SUPPORT_BODY_MAX),
|
|
1495
|
+
/** Obligatoire sans session : c'est par là que la réponse arrive. */
|
|
1496
|
+
email: z222.string().trim().email().max(254).optional(),
|
|
1497
|
+
/** Version de l'app, système… Rempli par l'app, lu par le support. */
|
|
1498
|
+
context: z222.string().max(SUPPORT_CONTEXT_MAX).optional(),
|
|
1499
|
+
source: z222.enum(["app", "cloud"])
|
|
1500
|
+
});
|
|
1501
|
+
var SupportReplyInputSchema = z222.object({
|
|
1502
|
+
body: z222.string().trim().min(1).max(SUPPORT_BODY_MAX)
|
|
1503
|
+
});
|
|
1504
|
+
var SupportMessageViewSchema = z222.object({
|
|
1505
|
+
id: z222.string(),
|
|
1506
|
+
from: z222.enum(["requester", "support"]),
|
|
1507
|
+
authorName: z222.string(),
|
|
1508
|
+
body: z222.string(),
|
|
1509
|
+
sentAt: z222.string()
|
|
1510
|
+
}).strict();
|
|
1511
|
+
var SupportTicketSummarySchema = z222.object({
|
|
1512
|
+
id: z222.string(),
|
|
1513
|
+
number: z222.number().int(),
|
|
1514
|
+
kind: SupportKindSchema,
|
|
1515
|
+
subject: z222.string(),
|
|
1516
|
+
status: SupportStatusSchema,
|
|
1517
|
+
createdAt: z222.string(),
|
|
1518
|
+
updatedAt: z222.string(),
|
|
1519
|
+
/** Le support a répondu depuis la dernière lecture du demandeur. */
|
|
1520
|
+
unread: z222.boolean()
|
|
1521
|
+
}).strict();
|
|
1522
|
+
var SupportTicketViewSchema = SupportTicketSummarySchema.extend({
|
|
1523
|
+
messages: z222.array(SupportMessageViewSchema)
|
|
1524
|
+
}).strict();
|
|
1525
|
+
var SupportCreatedSchema = z222.object({
|
|
1526
|
+
ticket: SupportTicketViewSchema,
|
|
1527
|
+
accessToken: z222.string().optional()
|
|
1528
|
+
}).strict();
|
|
1529
|
+
var SupportCardLinkSchema = z222.object({
|
|
1530
|
+
organizationId: z222.string(),
|
|
1531
|
+
boardId: z222.string(),
|
|
1532
|
+
cardId: z222.string(),
|
|
1533
|
+
title: z222.string(),
|
|
1534
|
+
origin: z222.enum(["auto", "manual"])
|
|
1535
|
+
});
|
|
1536
|
+
var SupportStaffMessageViewSchema = z222.object({
|
|
1537
|
+
id: z222.string(),
|
|
1538
|
+
from: z222.enum(["requester", "support", "internal"]),
|
|
1539
|
+
authorName: z222.string(),
|
|
1540
|
+
body: z222.string(),
|
|
1541
|
+
sentAt: z222.string()
|
|
1542
|
+
});
|
|
1543
|
+
var SupportStaffTicketSummarySchema = z222.object({
|
|
1544
|
+
id: z222.string(),
|
|
1545
|
+
number: z222.number().int(),
|
|
1546
|
+
kind: SupportKindSchema,
|
|
1547
|
+
subject: z222.string(),
|
|
1548
|
+
status: SupportStatusSchema,
|
|
1549
|
+
source: z222.enum(["app", "cloud"]),
|
|
1550
|
+
requester: z222.object({ email: z222.string(), name: z222.string().nullable(), userId: z222.string().nullable() }),
|
|
1551
|
+
createdAt: z222.string(),
|
|
1552
|
+
updatedAt: z222.string(),
|
|
1553
|
+
/** Le demandeur a écrit depuis la dernière lecture du support. */
|
|
1554
|
+
unread: z222.boolean(),
|
|
1555
|
+
cards: z222.array(SupportCardLinkSchema)
|
|
1556
|
+
});
|
|
1557
|
+
var SupportStaffTicketViewSchema = SupportStaffTicketSummarySchema.extend({
|
|
1558
|
+
context: z222.string().nullable(),
|
|
1559
|
+
messages: z222.array(SupportStaffMessageViewSchema)
|
|
1560
|
+
});
|
|
1561
|
+
var SupportSettingsSchema = z222.object({
|
|
1562
|
+
autoCard: z222.object({
|
|
1563
|
+
enabled: z222.boolean(),
|
|
1564
|
+
organizationId: z222.string().max(64).nullable(),
|
|
1565
|
+
boardId: z222.string().max(64).nullable(),
|
|
1566
|
+
columnId: z222.string().max(64).nullable(),
|
|
1567
|
+
kinds: z222.array(SupportKindSchema).max(3)
|
|
1568
|
+
})
|
|
1569
|
+
});
|
|
1570
|
+
var ChangelogSurfaceSchema = z23.enum(["app", "cloud"]);
|
|
1571
|
+
var ChangelogChangeKindSchema = z23.enum(["feature", "improvement", "fix", "breaking"]);
|
|
1572
|
+
var ChangelogTextSchema = z23.object({
|
|
1573
|
+
fr: z23.string().min(1).max(500),
|
|
1574
|
+
en: z23.string().min(1).max(500)
|
|
1575
|
+
});
|
|
1576
|
+
var ChangelogChangeSchema = z23.object({
|
|
1492
1577
|
kind: ChangelogChangeKindSchema,
|
|
1493
1578
|
text: ChangelogTextSchema
|
|
1494
1579
|
});
|
|
1495
1580
|
var ChangelogDraftSchema = ChangelogChangeSchema.extend({
|
|
1496
|
-
date:
|
|
1581
|
+
date: z23.string().regex(/^\d{4}-\d{2}-\d{2}$/),
|
|
1497
1582
|
title: ChangelogTextSchema.optional()
|
|
1498
1583
|
});
|
|
1499
|
-
var ChangelogReleaseSchema =
|
|
1584
|
+
var ChangelogReleaseSchema = z23.object({
|
|
1500
1585
|
surface: ChangelogSurfaceSchema,
|
|
1501
1586
|
/** `1.4.2` pour l'app (version npm publiée), `2026-09-03` — ou `2026-09-03.2` — pour le cloud. */
|
|
1502
|
-
version:
|
|
1587
|
+
version: z23.string().min(1).max(32).regex(/^[0-9][0-9.-]*$/),
|
|
1503
1588
|
/** Date de publication, `YYYY-MM-DD`. */
|
|
1504
|
-
date:
|
|
1589
|
+
date: z23.string().regex(/^\d{4}-\d{2}-\d{2}$/),
|
|
1505
1590
|
/** Facultatif : une version peut s'annoncer par son seul numéro. */
|
|
1506
1591
|
title: ChangelogTextSchema.optional(),
|
|
1507
1592
|
/** Une version sans changement n'a rien à annoncer : elle n'a pas sa place ici. */
|
|
1508
|
-
changes:
|
|
1593
|
+
changes: z23.array(ChangelogChangeSchema).min(1).max(50)
|
|
1509
1594
|
});
|
|
1510
1595
|
var ChangelogIndexItemSchema = ChangelogReleaseSchema.omit({ changes: true }).extend({
|
|
1511
|
-
changeCount:
|
|
1596
|
+
changeCount: z23.number().int().nonnegative()
|
|
1512
1597
|
});
|
|
1513
1598
|
var MASKED_VALUE = "***";
|
|
1514
1599
|
function maskLogSourceSecrets(sources) {
|
|
@@ -1564,7 +1649,7 @@ var EDITOR_BY_KEY = new Map(
|
|
|
1564
1649
|
);
|
|
1565
1650
|
|
|
1566
1651
|
// ../ai-capabilities/dist/index.js
|
|
1567
|
-
import { z as
|
|
1652
|
+
import { z as z25 } from "zod";
|
|
1568
1653
|
import { z as z32 } from "zod";
|
|
1569
1654
|
function toList(raw) {
|
|
1570
1655
|
if (!raw) return [];
|
|
@@ -1614,15 +1699,15 @@ function parseTyped(name, schema, raw) {
|
|
|
1614
1699
|
if (list.success) result = list;
|
|
1615
1700
|
}
|
|
1616
1701
|
}
|
|
1617
|
-
if (!result.success) throw new Error(`${name}: ${
|
|
1702
|
+
if (!result.success) throw new Error(`${name}: ${z24.prettifyError(result.error)}`);
|
|
1618
1703
|
return result.data;
|
|
1619
1704
|
}
|
|
1620
1705
|
function withIds(items) {
|
|
1621
1706
|
return items.map((item) => ({ ...item, id: item.id || newId() }));
|
|
1622
1707
|
}
|
|
1623
|
-
var optionalId = (schema) => schema.extend({ id:
|
|
1708
|
+
var optionalId = (schema) => schema.extend({ id: z24.string().min(1).max(64).optional() });
|
|
1624
1709
|
var DockerConfigInput = DockerConfigSchema.extend({
|
|
1625
|
-
bootstrapCommands:
|
|
1710
|
+
bootstrapCommands: z24.array(optionalId(BootstrapCommandSchema)).max(20).default([])
|
|
1626
1711
|
}).refine((c) => !!c.image !== !!c.dockerfile, {
|
|
1627
1712
|
message: 'dockerConfig needs exactly one of "image" (an image to pull) or "dockerfile" (a Dockerfile to build)'
|
|
1628
1713
|
});
|
|
@@ -1631,7 +1716,7 @@ var SERVICE_FIELDS = [
|
|
|
1631
1716
|
{ name: "agentId", description: "The agent that runs it, from list_agents. Omit to inherit from the environment.", clearable: true },
|
|
1632
1717
|
{ name: "cwd", description: `Working directory, RELATIVE to the project root (e.g. "apps/web", or omit for the root). The project is synced between machines and lives in a different folder on each: Runeya resolves a relative cwd against each machine's own project folder, while an absolute path (/home/you/\u2026) breaks on every other machine. Use an absolute path only for something outside the project, written with ~ or an environment variable ($NAME) rather than a literal home directory.`, clearable: true },
|
|
1633
1718
|
{ name: "command", description: 'Shortcut for a single command line (e.g. "npm run dev"). Replaces every existing command. Use commands for several.' },
|
|
1634
|
-
{ name: "commands", description: 'The processes of the service. They all start AT THE SAME TIME, in parallel, and the service runs while they run \u2014 not one after another. Use several for processes that live side by side (a web server and a worker). Steps that must follow each other (build, then install, then launch) go in ONE command chained with &&. A one-off action the user triggers by hand (build, deploy, read logs) is a shortcut, not a command. Each command runs in the service cwd, or its own "cwd", relative to the project root. No absolute paths of this machine: the service is synced to other machines. Replaces every existing command. "id" is generated when omitted; "shell" runs the line through a shell (default true).', schema:
|
|
1719
|
+
{ name: "commands", description: 'The processes of the service. They all start AT THE SAME TIME, in parallel, and the service runs while they run \u2014 not one after another. Use several for processes that live side by side (a web server and a worker). Steps that must follow each other (build, then install, then launch) go in ONE command chained with &&. A one-off action the user triggers by hand (build, deploy, read logs) is a shortcut, not a command. Each command runs in the service cwd, or its own "cwd", relative to the project root. No absolute paths of this machine: the service is synced to other machines. Replaces every existing command. "id" is generated when omitted; "shell" runs the line through a shell (default true).', schema: z24.array(optionalId(ServiceCommandSchema)).max(50) },
|
|
1635
1720
|
{ name: "ports", description: "Ports the service listens on. Declare them: they become {{service.PORT}}, {{service.URL}} and {{services.<slug>.URL}} for the other services, which environment variables should reference instead of repeating the numbers.", schema: ServiceConfigSchema.shape.ports.unwrap().unwrap() },
|
|
1636
1721
|
{ name: "groups", description: "Groups the service belongs to. Replaces the current ones.", schema: ServiceConfigSchema.shape.groups.unwrap().unwrap() },
|
|
1637
1722
|
{ name: "url", description: "URL where the service is reached" },
|
|
@@ -1643,19 +1728,19 @@ var SERVICE_FIELDS = [
|
|
|
1643
1728
|
{ name: "runner", description: '"native" runs the commands on the machine; "docker" runs the service in a container and then needs dockerConfig', schema: ServiceConfigSchema.shape.runner.unwrap().unwrap() },
|
|
1644
1729
|
{ name: "dockerConfig", description: 'With runner "docker": the container. Exactly one of "image" (pull) or "dockerfile" (inline Dockerfile, built with "buildContext", "buildArgs", "targetStage"). Ports and volumes use Docker syntax ("8080:80", "./data:/data"); host paths in volumes relative to the service directory, never an absolute path of this machine. "useNativeCommand" runs the service commands inside the container instead of its CMD ("nativeCommandMode": one shared container or one per command). "bootstrapCommands" run once when the container starts. Replaces the whole Docker configuration: read it first with get_service to keep what you do not change.', schema: DockerConfigInput },
|
|
1645
1730
|
{ name: "healthCheck", description: 'How to tell the service is ready: an HTTP "path" to call, or a "command" that must succeed', schema: HealthCheckSchema, clearable: true },
|
|
1646
|
-
{ name: "autoRestart", description: "Restart the service when it crashes", schema:
|
|
1731
|
+
{ name: "autoRestart", description: "Restart the service when it crashes", schema: z24.boolean() },
|
|
1647
1732
|
{ name: "restartStrategy", description: "When to restart it", schema: RestartStrategySchema.unwrap() },
|
|
1648
1733
|
{ name: "maxRestarts", description: "Give up after this many restarts", schema: ServiceConfigSchema.shape.maxRestarts.unwrap() },
|
|
1649
1734
|
{ name: "restartBackoffMs", description: "Delay before a restart, in milliseconds", schema: ServiceConfigSchema.shape.restartBackoffMs.unwrap().unwrap() },
|
|
1650
|
-
{ name: "clearLogsOnStart", description: "Clear the logs each time the service starts", schema:
|
|
1651
|
-
{ name: "shortcuts", description: 'One-click actions shown on the service, run on demand and independently of the running commands (build, deploy, migrate, read logs). Same path rules as commands: relative to the project root, never an absolute path of this machine. Replaces the current ones. "id" is generated when omitted.', schema:
|
|
1735
|
+
{ name: "clearLogsOnStart", description: "Clear the logs each time the service starts", schema: z24.boolean() },
|
|
1736
|
+
{ name: "shortcuts", description: 'One-click actions shown on the service, run on demand and independently of the running commands (build, deploy, migrate, read logs). Same path rules as commands: relative to the project root, never an absolute path of this machine. Replaces the current ones. "id" is generated when omitted.', schema: z24.array(optionalId(ServiceShortcutSchema)).max(50) },
|
|
1652
1737
|
{ name: "parserIds", description: "Log parsers applied to its output, by id", schema: ServiceConfigSchema.shape.parserIds.unwrap() },
|
|
1653
1738
|
{ name: "logSources", description: 'Extra log sources beyond the console output (files, databases\u2026). Replaces the current ones. Credentials (mongo connectionString, mysql password) read as "***": send "***" back to keep the stored value, or the real value to change it.', schema: ServiceConfigSchema.shape.logSources.unwrap().unwrap() }
|
|
1654
1739
|
];
|
|
1655
1740
|
function serviceParams(clearable2) {
|
|
1656
1741
|
return SERVICE_FIELDS.map((f) => {
|
|
1657
1742
|
const nullable = clearable2 && f.clearable;
|
|
1658
|
-
const base = f.schema ?? (nullable ?
|
|
1743
|
+
const base = f.schema ?? (nullable ? z24.string() : void 0);
|
|
1659
1744
|
return {
|
|
1660
1745
|
name: f.name,
|
|
1661
1746
|
description: nullable ? `${f.description} null clears it.` : f.description,
|
|
@@ -1695,15 +1780,15 @@ var KNOWLEDGE_TYPES_DOC = KNOWLEDGE_PAGE_TYPES.map((t) => {
|
|
|
1695
1780
|
return `${t}: ${spec.description}${fields ? ` Fields: ${fields}.` : ""}`;
|
|
1696
1781
|
}).join(" | ");
|
|
1697
1782
|
var KNOWLEDGE_RELATIONS_DOC = `${KNOWLEDGE_RELATIONS.join(", ")} (related and contradicts read both ways)`;
|
|
1698
|
-
var kIds =
|
|
1699
|
-
var kSearchLimit =
|
|
1700
|
-
var kSections =
|
|
1701
|
-
var kThemeDepth =
|
|
1702
|
-
var kDepth =
|
|
1703
|
-
var kRelatedLimit =
|
|
1704
|
-
var kNeighborLimit =
|
|
1705
|
-
var kHistoryLimit =
|
|
1706
|
-
var kSeedIds =
|
|
1783
|
+
var kIds = z24.array(KnowledgeIdSchema).max(50);
|
|
1784
|
+
var kSearchLimit = z24.number().int().min(1).max(KNOWLEDGE_LIMITS.searchResults);
|
|
1785
|
+
var kSections = z24.array(KnowledgeSectionSchema).max(KNOWLEDGE_LIMITS.sections);
|
|
1786
|
+
var kThemeDepth = z24.number().int().min(0).max(KNOWLEDGE_LIMITS.themeDepth);
|
|
1787
|
+
var kDepth = z24.number().int().min(1).max(KNOWLEDGE_LIMITS.neighborsDepth);
|
|
1788
|
+
var kRelatedLimit = z24.number().int().min(1).max(KNOWLEDGE_LIMITS.relatedPages);
|
|
1789
|
+
var kNeighborLimit = z24.number().int().min(1).max(KNOWLEDGE_LIMITS.neighborsNodes);
|
|
1790
|
+
var kHistoryLimit = z24.number().int().min(1).max(500);
|
|
1791
|
+
var kSeedIds = z24.array(KnowledgeIdSchema).min(1).max(10);
|
|
1707
1792
|
function knowledgePageFields(p) {
|
|
1708
1793
|
const out = {};
|
|
1709
1794
|
if (p.title !== void 0) out.title = p.title;
|
|
@@ -1820,14 +1905,14 @@ var KNOWLEDGE_CAPABILITIES = [
|
|
|
1820
1905
|
method: "GET",
|
|
1821
1906
|
params: [
|
|
1822
1907
|
{ name: "query", description: "Free text. Omit to list pages by last update.", required: false },
|
|
1823
|
-
{ name: "types", description: `Page types to keep: ${KNOWLEDGE_PAGE_TYPES.join(", ")}`, required: false, schema:
|
|
1908
|
+
{ name: "types", description: `Page types to keep: ${KNOWLEDGE_PAGE_TYPES.join(", ")}`, required: false, schema: z24.array(KnowledgePageTypeSchema) },
|
|
1824
1909
|
{ name: "themeIds", description: "Theme page ids the pages must ALL carry (from knowledge_list_themes)", required: false, schema: KnowledgeThemeIdsSchema },
|
|
1825
1910
|
{ name: "themeDepth", description: `Levels of sub-themes counted with each theme, 0 to ${KNOWLEDGE_LIMITS.themeDepth}`, required: false, schema: kThemeDepth },
|
|
1826
1911
|
{ name: "spaceIds", description: "Restrict to these spaces", required: false, schema: kIds },
|
|
1827
1912
|
// Pas `projectId` : ce nom est rempli d'office avec le projet de la
|
|
1828
1913
|
// conversation (project-anchor), ce qui filtrait toute recherche sur lui.
|
|
1829
1914
|
{ name: "onlyProjectId", description: "Only pages attached to this Runeya project. Omit to search the whole organization.", required: false },
|
|
1830
|
-
{ name: "includeObsolete", description: "Also return obsolete pages", required: false, schema:
|
|
1915
|
+
{ name: "includeObsolete", description: "Also return obsolete pages", required: false, schema: z24.boolean() },
|
|
1831
1916
|
{ name: "limit", description: `At most this many hits (1-${KNOWLEDGE_LIMITS.searchResults}, default 20)`, required: false, schema: kSearchLimit },
|
|
1832
1917
|
{ name: "organizationId", description: "The organization. Optional when the machine has one.", required: false },
|
|
1833
1918
|
{ name: "cursor", description: "The nextCursor of the previous answer, to get the next pages (with a query, pass the same query)", required: false }
|
|
@@ -1836,11 +1921,11 @@ var KNOWLEDGE_CAPABILITIES = [
|
|
|
1836
1921
|
...p.organizationId ? { organizationId: p.organizationId } : {},
|
|
1837
1922
|
...p.query ? { query: p.query } : {},
|
|
1838
1923
|
...p.onlyProjectId ? { projectId: p.onlyProjectId } : {},
|
|
1839
|
-
...p.types !== void 0 ? { types: parseTyped("types",
|
|
1924
|
+
...p.types !== void 0 ? { types: parseTyped("types", z24.array(KnowledgePageTypeSchema), p.types) } : {},
|
|
1840
1925
|
...p.themeIds !== void 0 ? { themeIds: parseTyped("themeIds", KnowledgeThemeIdsSchema, p.themeIds) } : {},
|
|
1841
1926
|
...p.themeDepth !== void 0 ? { themeDepth: parseTyped("themeDepth", kThemeDepth, p.themeDepth) } : {},
|
|
1842
1927
|
...p.spaceIds !== void 0 ? { spaceIds: parseTyped("spaceIds", kIds, p.spaceIds) } : {},
|
|
1843
|
-
...p.includeObsolete !== void 0 ? { includeObsolete: parseTyped("includeObsolete",
|
|
1928
|
+
...p.includeObsolete !== void 0 ? { includeObsolete: parseTyped("includeObsolete", z24.boolean(), p.includeObsolete) } : {},
|
|
1844
1929
|
...p.limit !== void 0 ? { limit: parseTyped("limit", kSearchLimit, p.limit) } : {},
|
|
1845
1930
|
...p.cursor !== void 0 ? { cursor: p.cursor } : {}
|
|
1846
1931
|
}),
|
|
@@ -1889,16 +1974,16 @@ var KNOWLEDGE_CAPABILITIES = [
|
|
|
1889
1974
|
params: [
|
|
1890
1975
|
{ name: "pageId", description: "The starting page", required: true },
|
|
1891
1976
|
{ name: "depth", description: `Number of hops, 1 to ${KNOWLEDGE_LIMITS.neighborsDepth} (default 1)`, required: false, schema: kDepth },
|
|
1892
|
-
{ name: "kinds", description: "Only follow these edge kinds", required: false, schema:
|
|
1977
|
+
{ name: "kinds", description: "Only follow these edge kinds", required: false, schema: z24.array(KnowledgeEdgeKindSchema) },
|
|
1893
1978
|
{ name: "limit", description: "At most this many pages, nearest first (default all)", required: false, schema: kNeighborLimit },
|
|
1894
|
-
{ name: "includeObsolete", description: "Also return obsolete pages (left out by default)", required: false, schema:
|
|
1979
|
+
{ name: "includeObsolete", description: "Also return obsolete pages (left out by default)", required: false, schema: z24.boolean() }
|
|
1895
1980
|
],
|
|
1896
1981
|
buildInput: (p) => ({
|
|
1897
1982
|
pageId: p.pageId,
|
|
1898
1983
|
...p.depth !== void 0 ? { depth: parseTyped("depth", kDepth, p.depth) } : {},
|
|
1899
|
-
...p.kinds !== void 0 ? { kinds: parseTyped("kinds",
|
|
1984
|
+
...p.kinds !== void 0 ? { kinds: parseTyped("kinds", z24.array(KnowledgeEdgeKindSchema), p.kinds) } : {},
|
|
1900
1985
|
...p.limit !== void 0 ? { limit: parseTyped("limit", kNeighborLimit, p.limit) } : {},
|
|
1901
|
-
...p.includeObsolete !== void 0 ? { includeObsolete: parseTyped("includeObsolete",
|
|
1986
|
+
...p.includeObsolete !== void 0 ? { includeObsolete: parseTyped("includeObsolete", z24.boolean(), p.includeObsolete) } : {}
|
|
1902
1987
|
}),
|
|
1903
1988
|
transformOutput: (result, input) => {
|
|
1904
1989
|
if (!isRec(result) || !Array.isArray(result.nodes)) return result;
|
|
@@ -1926,12 +2011,12 @@ var KNOWLEDGE_CAPABILITIES = [
|
|
|
1926
2011
|
params: [
|
|
1927
2012
|
{ name: "pageIds", description: "One to ten page ids", required: true, schema: kSeedIds },
|
|
1928
2013
|
{ name: "limit", description: "At most this many pages (default 10)", required: false, schema: kRelatedLimit },
|
|
1929
|
-
{ name: "includeObsolete", description: "Also return obsolete pages (left out by default)", required: false, schema:
|
|
2014
|
+
{ name: "includeObsolete", description: "Also return obsolete pages (left out by default)", required: false, schema: z24.boolean() }
|
|
1930
2015
|
],
|
|
1931
2016
|
buildInput: (p) => ({
|
|
1932
2017
|
pageIds: parseTyped("pageIds", kSeedIds, p.pageIds),
|
|
1933
2018
|
...p.limit !== void 0 ? { limit: parseTyped("limit", kRelatedLimit, p.limit) } : {},
|
|
1934
|
-
...p.includeObsolete !== void 0 ? { includeObsolete: parseTyped("includeObsolete",
|
|
2019
|
+
...p.includeObsolete !== void 0 ? { includeObsolete: parseTyped("includeObsolete", z24.boolean(), p.includeObsolete) } : {}
|
|
1935
2020
|
}),
|
|
1936
2021
|
transformOutput: (result) => isRec(result) && Array.isArray(result.pages) ? { ...result, pages: result.pages.map(slimThemes) } : result
|
|
1937
2022
|
},
|
|
@@ -1963,11 +2048,11 @@ var KNOWLEDGE_CAPABILITIES = [
|
|
|
1963
2048
|
method: "GET",
|
|
1964
2049
|
params: [
|
|
1965
2050
|
{ name: "pageId", description: "The page id", required: true },
|
|
1966
|
-
{ name: "at", description: "The date of the version, as given by knowledge_get_history (ISO 8601)", required: true, schema:
|
|
2051
|
+
{ name: "at", description: "The date of the version, as given by knowledge_get_history (ISO 8601)", required: true, schema: z24.iso.datetime() },
|
|
1967
2052
|
{ name: "heading", description: "Read only this section of the version", required: false },
|
|
1968
|
-
{ name: "compare", description: "Also give what changed since this version (sinceThen)", required: false, schema:
|
|
2053
|
+
{ name: "compare", description: "Also give what changed since this version (sinceThen)", required: false, schema: z24.boolean() }
|
|
1969
2054
|
],
|
|
1970
|
-
buildInput: (p) => ({ pageId: p.pageId, at: parseTyped("at",
|
|
2055
|
+
buildInput: (p) => ({ pageId: p.pageId, at: parseTyped("at", z24.iso.datetime(), p.at), ...p.heading !== void 0 ? { heading: p.heading } : {}, ...p.compare !== void 0 ? { compare: parseTyped("compare", z24.boolean(), p.compare) } : {} }),
|
|
1971
2056
|
transformOutput: (result, input) => {
|
|
1972
2057
|
if (!isRec(result) || !isRec(result.snapshot)) return result;
|
|
1973
2058
|
const { markdown: _markdown, ...snapshot } = result.snapshot;
|
|
@@ -1994,14 +2079,14 @@ var KNOWLEDGE_CAPABILITIES = [
|
|
|
1994
2079
|
{ name: "projectIds", description: "Runeya project ids the page is about", required: false, schema: KnowledgeProjectIdsSchema },
|
|
1995
2080
|
{ name: "sources", description: 'Where the knowledge comes from: [{"label","url"?}]', required: false, schema: KnowledgeSourcesSchema },
|
|
1996
2081
|
{ name: "sections", description: 'Body sections: [{"heading","markdown"}]', required: false, schema: kSections },
|
|
1997
|
-
{ name: "links", description: `Links to other pages: [{"to","relation"}], relation among ${KNOWLEDGE_RELATIONS_DOC}`, required: false, schema:
|
|
2082
|
+
{ name: "links", description: `Links to other pages: [{"to","relation"}], relation among ${KNOWLEDGE_RELATIONS_DOC}`, required: false, schema: z24.array(KnowledgeLinkSchema).max(200) },
|
|
1998
2083
|
{ name: "locale", description: "Language of default section titles: fr or en", required: false, schema: KnowledgeLocaleSchema }
|
|
1999
2084
|
],
|
|
2000
2085
|
buildInput: (p) => ({
|
|
2001
2086
|
spaceId: p.spaceId,
|
|
2002
2087
|
...knowledgePageFields(p),
|
|
2003
2088
|
...p.sections !== void 0 ? { sections: parseTyped("sections", kSections, p.sections) } : {},
|
|
2004
|
-
...p.links !== void 0 ? { links: parseTyped("links",
|
|
2089
|
+
...p.links !== void 0 ? { links: parseTyped("links", z24.array(KnowledgeLinkSchema).max(200), p.links) } : {},
|
|
2005
2090
|
...p.locale !== void 0 ? { locale: parseTyped("locale", KnowledgeLocaleSchema, p.locale) } : {}
|
|
2006
2091
|
}),
|
|
2007
2092
|
transformOutput: writeAnswer((page) => ({ themes: slimThemes(page).themes, sections: headingsOf(page) }))
|
|
@@ -2047,7 +2132,7 @@ var KNOWLEDGE_CAPABILITIES = [
|
|
|
2047
2132
|
{ name: "heading", description: "The section heading", required: true },
|
|
2048
2133
|
{ name: "markdown", description: "The content, in Markdown (required unless mode is remove)", required: false },
|
|
2049
2134
|
{ name: "mode", description: "replace (default), append or remove", required: false, schema: KnowledgeSectionModeSchema },
|
|
2050
|
-
{ name: "create", description: "Create the section at the end if no section has this heading", required: false, schema:
|
|
2135
|
+
{ name: "create", description: "Create the section at the end if no section has this heading", required: false, schema: z24.boolean() }
|
|
2051
2136
|
],
|
|
2052
2137
|
buildInput: (p) => {
|
|
2053
2138
|
const started = typeof p.markdown === "string" ? [...p.markdown.matchAll(/^#{1,2}\s+(.+)$/gm)].map((m) => m[1].trim()) : [];
|
|
@@ -2059,7 +2144,7 @@ var KNOWLEDGE_CAPABILITIES = [
|
|
|
2059
2144
|
heading: p.heading ?? "",
|
|
2060
2145
|
...p.markdown !== void 0 ? { markdown: p.markdown } : {},
|
|
2061
2146
|
...p.mode !== void 0 ? { mode: parseTyped("mode", KnowledgeSectionModeSchema, p.mode) } : {},
|
|
2062
|
-
...p.create !== void 0 ? { create: parseTyped("create",
|
|
2147
|
+
...p.create !== void 0 ? { create: parseTyped("create", z24.boolean(), p.create) } : {}
|
|
2063
2148
|
};
|
|
2064
2149
|
},
|
|
2065
2150
|
transformOutput: writeAnswer((page, input) => {
|
|
@@ -2081,14 +2166,14 @@ var KNOWLEDGE_CAPABILITIES = [
|
|
|
2081
2166
|
{ name: "find", description: "The exact text to replace, as it appears in the page Markdown. Include enough surrounding words for it to be unique.", required: true },
|
|
2082
2167
|
{ name: "replace", description: "The new text (empty to delete the passage)", required: true },
|
|
2083
2168
|
{ name: "heading", description: "Look only in this section (heading, case and accents ignored; empty = text before the first section)", required: false },
|
|
2084
|
-
{ name: "all", description: "Replace every occurrence instead of requiring a unique one", required: false, schema:
|
|
2169
|
+
{ name: "all", description: "Replace every occurrence instead of requiring a unique one", required: false, schema: z24.boolean() }
|
|
2085
2170
|
],
|
|
2086
2171
|
buildInput: (p) => ({
|
|
2087
2172
|
pageId: p.pageId,
|
|
2088
2173
|
find: p.find,
|
|
2089
2174
|
replace: p.replace ?? "",
|
|
2090
2175
|
...p.heading !== void 0 ? { heading: p.heading } : {},
|
|
2091
|
-
...p.all !== void 0 ? { all: parseTyped("all",
|
|
2176
|
+
...p.all !== void 0 ? { all: parseTyped("all", z24.boolean(), p.all) } : {}
|
|
2092
2177
|
}),
|
|
2093
2178
|
transformOutput: editedSectionOnly
|
|
2094
2179
|
},
|
|
@@ -2611,13 +2696,13 @@ var RUNEYA_CAPABILITIES = [
|
|
|
2611
2696
|
params: [
|
|
2612
2697
|
{ name: "serviceId", description: "The service ID", required: true },
|
|
2613
2698
|
{ name: "name", description: "New name", required: false },
|
|
2614
|
-
{ name: "orgId", description: "Move the service to this organization vault. Leave unset unless asked.", required: false, schema:
|
|
2699
|
+
{ name: "orgId", description: "Move the service to this organization vault. Leave unset unless asked.", required: false, schema: z24.string().max(128).nullable() },
|
|
2615
2700
|
...UPDATE_SERVICE_PARAMS
|
|
2616
2701
|
],
|
|
2617
2702
|
buildInput: (p) => ({
|
|
2618
2703
|
id: p.serviceId,
|
|
2619
2704
|
...p.name ? { name: p.name } : {},
|
|
2620
|
-
...p.orgId !== void 0 ? { orgId: parseTyped("orgId",
|
|
2705
|
+
...p.orgId !== void 0 ? { orgId: parseTyped("orgId", z24.string().max(128).nullable(), p.orgId) } : {},
|
|
2621
2706
|
...serviceFields(p, UPDATE_SERVICE_PARAMS)
|
|
2622
2707
|
})
|
|
2623
2708
|
},
|
|
@@ -2673,7 +2758,7 @@ var RUNEYA_CAPABILITIES = [
|
|
|
2673
2758
|
method: "POST",
|
|
2674
2759
|
params: [
|
|
2675
2760
|
{ name: "environmentId", description: "A service environment (scope service), from list_environments", required: true },
|
|
2676
|
-
{ name: "inherit", description: '"true" to inherit from the global environment, "false" to isolate', required: true, schema:
|
|
2761
|
+
{ name: "inherit", description: '"true" to inherit from the global environment, "false" to isolate', required: true, schema: z24.boolean() }
|
|
2677
2762
|
],
|
|
2678
2763
|
buildInput: (p) => ({ environmentId: p.environmentId, inherit: toBool(p.inherit ?? "true") })
|
|
2679
2764
|
},
|
|
@@ -2976,7 +3061,7 @@ function applyProjectAnchor(cap, params, anchor) {
|
|
|
2976
3061
|
}
|
|
2977
3062
|
|
|
2978
3063
|
// src/external.ts
|
|
2979
|
-
import { z as
|
|
3064
|
+
import { z as z27 } from "zod";
|
|
2980
3065
|
|
|
2981
3066
|
// src/project-anchors.ts
|
|
2982
3067
|
function createProjectAnchors(env, cwd, containing) {
|
|
@@ -3204,7 +3289,7 @@ var PairingClient = class {
|
|
|
3204
3289
|
|
|
3205
3290
|
// src/server.ts
|
|
3206
3291
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
3207
|
-
import { z as
|
|
3292
|
+
import { z as z26 } from "zod";
|
|
3208
3293
|
function needsAnchor(cap, params) {
|
|
3209
3294
|
const accepts = (name) => cap.params.some((p) => p.name === name);
|
|
3210
3295
|
if (params["orgId"] || params["organizationId"]) return false;
|
|
@@ -3260,9 +3345,9 @@ function createRuneyaMcpServer(opts) {
|
|
|
3260
3345
|
var CARD_CONTEXT = RUNEYA_CAPABILITIES.find((c) => c.name === "kanban_get_card_context");
|
|
3261
3346
|
function registerWorkOnCardPrompt(server, cardContext, withInstance) {
|
|
3262
3347
|
const args = {
|
|
3263
|
-
boardId:
|
|
3264
|
-
cardId:
|
|
3265
|
-
...withInstance ? { runeyaInstance:
|
|
3348
|
+
boardId: z26.string().max(128).describe("The kanban board ID"),
|
|
3349
|
+
cardId: z26.string().max(128).describe("The card ID"),
|
|
3350
|
+
...withInstance ? { runeyaInstance: z26.string().max(16).optional().describe("pid of the Runeya instance, when several are running") } : {}
|
|
3266
3351
|
};
|
|
3267
3352
|
server.prompt(
|
|
3268
3353
|
"work_on_card",
|
|
@@ -3337,7 +3422,7 @@ async function runExternalMcp(opts) {
|
|
|
3337
3422
|
sessionToken,
|
|
3338
3423
|
projectAnchor: envAnchor,
|
|
3339
3424
|
extraShape: fixedUrl ? void 0 : {
|
|
3340
|
-
runeyaInstance:
|
|
3425
|
+
runeyaInstance: z27.number().int().positive().optional().describe(
|
|
3341
3426
|
"The pid of the Runeya instance to call, from list_local_runeya_instances. Needed only when several instances are running: then pass it on every call of this conversation."
|
|
3342
3427
|
)
|
|
3343
3428
|
}
|