@aeolus-fleet/trierarch-plugin 0.38.0 → 0.39.2

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.
Files changed (135) hide show
  1. package/README.md +16 -8
  2. package/dist/adapters/crypto/sealed-box-sealer.d.ts +1 -1
  3. package/dist/adapters/fleet/console-sessions.js +3 -3
  4. package/dist/adapters/fleet/console-sessions.js.map +1 -1
  5. package/dist/adapters/fleet/core-version.d.ts +1 -1
  6. package/dist/adapters/fleet/core-version.js +1 -1
  7. package/dist/adapters/fleet/rest-fleet-door.js +6 -5
  8. package/dist/adapters/fleet/rest-fleet-door.js.map +1 -1
  9. package/dist/adapters/prisma/fleet-forgetter.d.ts +1 -1
  10. package/dist/adapters/prisma/fleet-forgetter.js +2 -2
  11. package/dist/adapters/prisma/fleet-forgetter.js.map +1 -1
  12. package/dist/adapters/prisma/generated/browser.d.ts +32 -0
  13. package/dist/adapters/prisma/generated/client.d.ts +32 -0
  14. package/dist/adapters/prisma/generated/commonInputTypes.d.ts +150 -0
  15. package/dist/adapters/prisma/generated/internal/class.d.ts +44 -0
  16. package/dist/adapters/prisma/generated/internal/class.js +4 -4
  17. package/dist/adapters/prisma/generated/internal/class.js.map +1 -1
  18. package/dist/adapters/prisma/generated/internal/prismaNamespace.d.ts +360 -1
  19. package/dist/adapters/prisma/generated/internal/prismaNamespace.js +46 -1
  20. package/dist/adapters/prisma/generated/internal/prismaNamespace.js.map +1 -1
  21. package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.d.ts +51 -0
  22. package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.js +46 -1
  23. package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.js.map +1 -1
  24. package/dist/adapters/prisma/generated/models/McpConfiguration.d.ts +1004 -0
  25. package/dist/adapters/prisma/generated/models/McpConfiguration.js +2 -0
  26. package/dist/adapters/prisma/generated/models/McpConfiguration.js.map +1 -0
  27. package/dist/adapters/prisma/generated/models/McpConfigurationEvent.d.ts +1141 -0
  28. package/dist/adapters/prisma/generated/models/McpConfigurationEvent.js +2 -0
  29. package/dist/adapters/prisma/generated/models/McpConfigurationEvent.js.map +1 -0
  30. package/dist/adapters/prisma/generated/models/McpDelivery.d.ts +1204 -0
  31. package/dist/adapters/prisma/generated/models/McpDelivery.js +2 -0
  32. package/dist/adapters/prisma/generated/models/McpDelivery.js.map +1 -0
  33. package/dist/adapters/prisma/generated/models/McpSecret.d.ts +948 -0
  34. package/dist/adapters/prisma/generated/models/McpSecret.js +2 -0
  35. package/dist/adapters/prisma/generated/models/McpSecret.js.map +1 -0
  36. package/dist/adapters/prisma/generated/models.d.ts +4 -0
  37. package/dist/adapters/prisma/mcp-configurations.d.ts +11 -0
  38. package/dist/adapters/prisma/mcp-configurations.js +44 -0
  39. package/dist/adapters/prisma/mcp-configurations.js.map +1 -0
  40. package/dist/adapters/prisma/mcp-deliveries.d.ts +9 -0
  41. package/dist/adapters/prisma/mcp-deliveries.js +47 -0
  42. package/dist/adapters/prisma/mcp-deliveries.js.map +1 -0
  43. package/dist/adapters/trpc/router.d.ts +63 -5
  44. package/dist/adapters/trpc/router.js +60 -2
  45. package/dist/adapters/trpc/router.js.map +1 -1
  46. package/dist/app.d.ts +2 -6
  47. package/dist/app.js +78 -54
  48. package/dist/app.js.map +1 -1
  49. package/dist/bin/aeolus-trierarch-plugin.js +1 -2
  50. package/dist/bin/aeolus-trierarch-plugin.js.map +1 -1
  51. package/dist/config.d.ts +6 -10
  52. package/dist/config.js +5 -54
  53. package/dist/config.js.map +1 -1
  54. package/dist/core/assignment/assign-crews.d.ts +5 -1
  55. package/dist/core/assignment/assign-crews.js +4 -2
  56. package/dist/core/assignment/assign-crews.js.map +1 -1
  57. package/dist/core/assignment/check-crew-settings.d.ts +3 -0
  58. package/dist/core/assignment/check-crew-settings.js +2 -1
  59. package/dist/core/assignment/check-crew-settings.js.map +1 -1
  60. package/dist/core/assignment/placement.d.ts +6 -0
  61. package/dist/core/assignment/placement.js +12 -4
  62. package/dist/core/assignment/placement.js.map +1 -1
  63. package/dist/core/assignment/read-placement.d.ts +7 -1
  64. package/dist/core/assignment/read-placement.js +14 -2
  65. package/dist/core/assignment/read-placement.js.map +1 -1
  66. package/dist/core/assignment/tell-crew-request-reasons.d.ts +35 -0
  67. package/dist/core/assignment/tell-crew-request-reasons.js +110 -0
  68. package/dist/core/assignment/tell-crew-request-reasons.js.map +1 -0
  69. package/dist/core/connection/answer-pings.d.ts +13 -1
  70. package/dist/core/connection/answer-pings.js +11 -2
  71. package/dist/core/connection/answer-pings.js.map +1 -1
  72. package/dist/core/connection/ports.d.ts +23 -6
  73. package/dist/core/connection/ports.js +2 -1
  74. package/dist/core/connection/ports.js.map +1 -1
  75. package/dist/core/mcp-configuration/distribute-mcp-configuration.d.ts +38 -0
  76. package/dist/core/mcp-configuration/distribute-mcp-configuration.js +97 -0
  77. package/dist/core/mcp-configuration/distribute-mcp-configuration.js.map +1 -0
  78. package/dist/core/mcp-configuration/mcp-configuration.d.ts +107 -0
  79. package/dist/core/mcp-configuration/mcp-configuration.js +205 -0
  80. package/dist/core/mcp-configuration/mcp-configuration.js.map +1 -0
  81. package/dist/core/mcp-configuration/mcp-delivery.d.ts +59 -0
  82. package/dist/core/mcp-configuration/mcp-delivery.js +32 -0
  83. package/dist/core/mcp-configuration/mcp-delivery.js.map +1 -0
  84. package/dist/core/mcp-configuration/ports.d.ts +79 -0
  85. package/dist/core/mcp-configuration/ports.js.map +1 -0
  86. package/dist/core/mcp-configuration/read-mcp-configuration.d.ts +8 -0
  87. package/dist/core/mcp-configuration/read-mcp-configuration.js +6 -0
  88. package/dist/core/mcp-configuration/read-mcp-configuration.js.map +1 -0
  89. package/dist/core/mcp-configuration/replace-mcp-configuration.d.ts +24 -0
  90. package/dist/core/mcp-configuration/replace-mcp-configuration.js +30 -0
  91. package/dist/core/mcp-configuration/replace-mcp-configuration.js.map +1 -0
  92. package/dist/core/mcp-configuration/sealing-key.js.map +1 -0
  93. package/dist/core/mcp-configuration/take-mcp-configuration-message.d.ts +30 -0
  94. package/dist/core/mcp-configuration/take-mcp-configuration-message.js +74 -0
  95. package/dist/core/mcp-configuration/take-mcp-configuration-message.js.map +1 -0
  96. package/dist/core/models/answer-enabled-models-asks.d.ts +18 -0
  97. package/dist/core/models/answer-enabled-models-asks.js +32 -0
  98. package/dist/core/models/answer-enabled-models-asks.js.map +1 -0
  99. package/dist/core/operator/authenticate-operator.d.ts +3 -1
  100. package/dist/core/operator/authenticate-operator.js +7 -4
  101. package/dist/core/operator/authenticate-operator.js.map +1 -1
  102. package/dist/core/operator/ports.d.ts +2 -1
  103. package/dist/core/shared/errors.d.ts +1 -1
  104. package/dist/core/shared/errors.js.map +1 -1
  105. package/dist/core/usage/ship-names.d.ts +1 -1
  106. package/dist/core/usage/ship-names.js +2 -1
  107. package/dist/core/usage/ship-names.js.map +1 -1
  108. package/package.json +3 -3
  109. package/src/adapters/prisma/migrations/20261109120000_mcp_configurations/migration.sql +35 -0
  110. package/src/adapters/prisma/migrations/20261109130000_mcp_deliveries/migration.sql +15 -0
  111. package/src/adapters/prisma/schema.prisma +65 -0
  112. package/dist/core/mcp-servers/mcp-servers.d.ts +0 -46
  113. package/dist/core/mcp-servers/mcp-servers.js +0 -112
  114. package/dist/core/mcp-servers/mcp-servers.js.map +0 -1
  115. package/dist/core/mcp-servers/ports.d.ts +0 -13
  116. package/dist/core/mcp-servers/ports.js.map +0 -1
  117. package/dist/core/mcp-servers/resend-mcp-servers.d.ts +0 -15
  118. package/dist/core/mcp-servers/resend-mcp-servers.js +0 -19
  119. package/dist/core/mcp-servers/resend-mcp-servers.js.map +0 -1
  120. package/dist/core/mcp-servers/resend-secrets.d.ts +0 -15
  121. package/dist/core/mcp-servers/resend-secrets.js +0 -19
  122. package/dist/core/mcp-servers/resend-secrets.js.map +0 -1
  123. package/dist/core/mcp-servers/sealing-key.js.map +0 -1
  124. package/dist/core/mcp-servers/secrets.d.ts +0 -31
  125. package/dist/core/mcp-servers/secrets.js +0 -90
  126. package/dist/core/mcp-servers/secrets.js.map +0 -1
  127. package/dist/core/mcp-servers/share-mcp-servers.d.ts +0 -25
  128. package/dist/core/mcp-servers/share-mcp-servers.js +0 -45
  129. package/dist/core/mcp-servers/share-mcp-servers.js.map +0 -1
  130. package/dist/core/mcp-servers/share-secrets.d.ts +0 -36
  131. package/dist/core/mcp-servers/share-secrets.js +0 -71
  132. package/dist/core/mcp-servers/share-secrets.js.map +0 -1
  133. /package/dist/core/{mcp-servers → mcp-configuration}/ports.js +0 -0
  134. /package/dist/core/{mcp-servers → mcp-configuration}/sealing-key.d.ts +0 -0
  135. /package/dist/core/{mcp-servers → mcp-configuration}/sealing-key.js +0 -0
package/README.md CHANGED
@@ -2,13 +2,13 @@
2
2
 
3
3
  Brings your machines into the fleet and places each crew request on a machine that fits. It is the trierarchs' plugin on the server side (decision 0030). Optional: a fleet works without it. Aeolus knows nothing about it beyond its ship, which holds `fleet:read`, `fleet:commission`, `crew:assign`, `crew:run`, `labels:define`, `labels:assign` and `scopes:declare` and reaches the fleet only through its public API. What it does is in [docs/trierarch.md](https://github.com/ThomasHendrickx/aeolus-fleet-trierarch/blob/main/docs/trierarch.md).
4
4
 
5
- So far: its own process and small database (each fleet's connection, switch and enabled models), the connection the operator makes as its ship, a machine joining, the machines with their trierarchs' reports, assignment (docs/trierarch.md, "Assignment"), the installation procedures, `/api/health` and `/api/version`.
5
+ So far: its own process and small database (each fleet's connection, switch, enabled models and MCP configuration), the connection the operator makes as its ship, a machine joining, the machines with their trierarchs' reports, assignment (docs/trierarch.md, "Assignment"), the installation procedures, `/api/health` and `/api/version`.
6
6
 
7
7
  Each pass also sends every trierarch the trusted repositories (`TRUSTED_REPOSITORIES`) once per process, in a message of type `application/vnd.aeolus.trierarch.trusted-repositories+json` whose payload is `{"repositories":[{"name","url"}]}`. A restart sends them again, so a changed list reaches every trierarch. A trierarch that asks, with a message of type `application/vnd.aeolus.trierarch.trusted-repositories-request+json`, gets them again on the next pass: one does as it starts knowing the trierarch plugin's ship.
8
8
 
9
- Each pass also sends every trierarch the crew-time MCP servers (`MCP_SERVERS`) once per process, in a message of type `application/vnd.aeolus.trierarch.mcp-servers+json` whose payload is `{"servers":[{"name","url","transport","tools"}],"aip":{"server","tokenSecret"}}`, `aip` only when `AIP` is set. A restart sends them again; a trierarch that asks, with a message of type `application/vnd.aeolus.trierarch.mcp-servers-request+json`, gets them again on the next pass.
9
+ Each fleet keeps its own crew-time MCP configuration: the remote MCP servers (Streamable HTTP) a session of that fleet may be crewed with, and the secrets their credentials name (the fleet crew MCP design in aeolus-fleet's `docs/design/fleet-crew-mcp`). A manager reads and replaces it through `mcp.get` and `mcp.replace`. Each pass sends every crewed trierarch of the fleet that is not silent and states a sealing key (`details.sealingKey`, `{"scheme":"nacl-sealed-box","publicKey"}`) the complete set, an empty one too, in a message of type `application/vnd.aeolus.trierarch.mcp-configuration+json` whose payload is `{"fleetId","pluginShipId","version","publicKey","servers":[{"name","url","transport","tools","credential"}],"secrets":[{"name","sealed"}]}`: `transport` is always `streamable-http`, `credential` (`{"secret","header"}`) only on a server that has one, and each secret's value sealed to that key with the NaCl anonymous sealed box, as standard base64. The fleet stores only what it cannot read. A trierarch without a key is sent nothing and takes no request naming MCP servers.
10
10
 
11
- Each pass also sends every trierarch whose report states a sealing key (`details.sealingKey`, `{"scheme":"nacl-sealed-box","publicKey"}`) the secret store (`MCP_SECRETS`), each value sealed to that key with the NaCl anonymous sealed box, in a message of type `application/vnd.aeolus.trierarch.secrets+json` whose payload is `{"publicKey","secrets":[{"name","sealed"}]}`, `sealed` the box as standard base64. The fleet stores only what it cannot read. The store goes whole, an empty one too, once per process for each key a trierarch states: a trierarch that states another key gets it again, and so does one that asks, with a message of type `application/vnd.aeolus.trierarch.secrets-request+json`. A trierarch without a key is sent none.
11
+ Sending is not applying. A trierarch confirms with `application/vnd.aeolus.trierarch.mcp-configuration-applied+json`, `{"fleetId","pluginShipId","version","publicKey"}`; the plugin counts it only from a crewed trierarch, for this fleet and plugin ship, the current version and the key it was last sent. Until then, each pass sends it the set again: an attempt the fleet did not take goes again under the same idempotency key, kept in the database before the send, so a restart sends the very same message; one the fleet took without a confirmation gets a new copy under a new key at most every 5 minutes. A new version, a new key, or a trierarch seen not crewed gets a fresh copy. A trierarch that asks with `application/vnd.aeolus.trierarch.mcp-configuration-request+json`, `{"fleetId","pluginShipId"}`, gets a new copy on the next pass. A request naming MCP servers is placed only on a trierarch whose confirmed version and key are the current ones; one naming none needs no MCP configuration.
12
12
 
13
13
  Assignment runs as a pass for every fleet it serves and is connected to. Each pass reads the fleet whole: the unassigned requests of ships that await crew, and the trierarchs that report details and are not silent; with them, the fleet's enabled models from its own database (decision 0063). It claims each request it places, by optimistic claim, and writes the reason on each it cannot. A claim the fleet refuses because the request changed (another pass won it, or the ship was crewed or its request removed) is read again on the next pass. Run more than one process if you like: the fleet stores exactly one assignment per request.
14
14
 
@@ -20,17 +20,13 @@ Assignment runs as a pass for every fleet it serves and is connected to. Each pa
20
20
  | --- | --- | --- |
21
21
  | `DATABASE_URL` | yes | Its own Postgres database (`postgres://...`); it may share the Postgres server with the fleet and squadrons |
22
22
  | `FLEET_URL` | yes | The fleet's public URL; it calls the ship API at `<FLEET_URL>/api/v1`, checks console sessions there, and names it in each joining machine's setup line. Not a secret; fixed here, so no caller can point it at another fleet |
23
+ | `CONSOLE_ORIGIN` | no | The console's origin, such as `https://console.example.com`: `mcp.replace` takes a change only with this exact `Origin`. The origin of `FLEET_URL` by default |
23
24
  | `HOST`, `PORT` | no | Where it listens; `127.0.0.1:4200` by default |
24
25
  | `LOG_LEVEL` | no | `info` by default |
25
26
  | `INSTALLATION_TOKEN` | no | The token a hosting service presents to its installation procedures, at least 32 characters (decision 0021). Unset: they do not exist and every fleet is served, as a self-hosted install needs |
26
27
  | `TRIERARCH_SILENT_AFTER_SECONDS` | no | A trierarch whose last seen is older than this is silent: it gets no new requests. `300` by default |
27
28
  | `TRIERARCH_PASS_INTERVAL_SECONDS` | no | How often assignment runs a pass for each fleet. `10` by default |
28
29
  | `TRUSTED_REPOSITORIES` | no | The repositories every trierarch may clone on demand, as JSON of names to git URLs, such as `{"hemma":"git@github.com:ThomasHendrickx/hemma.git"}` (aeolus-fleet#384). A crew request names one by its name as its workspace's repository. A URL is `https://` without a user, or ssh (`ssh://` or `user@host:path`) without a password. It is never a path, a file URL or a credential: a machine clones with its own access. The list applies to every fleet it serves. None by default |
29
- | `MCP_SERVERS` | no | The remote MCP servers (Streamable HTTP) a session may be crewed with, as JSON of names to `{ "url", "tools" }`, such as `{"company-graph":{"url":"https://graph.example.invalid/mcp","tools":["read_neo4j_cypher"]}}` (aeolus-fleet-trierarch#120). `tools` are the only tools a session may call. A URL is `http://` or `https://` with no user, query or fragment: the list holds no credential. A server that needs a credential names it with `"credential":{"secret","header"}`: a secret of `MCP_SECRETS` by name, and the HTTP header the trierarch's proxy sets to its value verbatim (an HTTP field name, never `Host`, `Content-Length`, `Transfer-Encoding`, `Connection`, `Upgrade`, `TE`, `Trailer`, `Keep-Alive`, `Proxy-*`, `Cookie`, `Content-Type`, `Accept`, `Accept-Encoding`, `Last-Event-ID`, `Mcp-Session-Id` or `Mcp-Protocol-Version`). A list that is not valid refuses to start the trierarch plugin. The list applies to every fleet it serves. None by default |
30
- | `AIP` | no | The AIP every trierarch uses, as JSON `{ "server", "tokenSecret" }`, such as `{"server":"https://aip.example.com","tokenSecret":"aip-token"}` (aeolus-fleet-trierarch-plugin#63). `server` is an `http://` or `https://` URL with no user, query or fragment; `tokenSecret` is the name of a secret of `MCP_SECRETS`, which must hold it, and the token reaches a trierarch only as that sealed secret. It goes with the MCP servers, in the same message. An AIP that is not valid, or whose token secret `MCP_SECRETS` does not hold, refuses to start the trierarch plugin with a reason that never holds a value. None by default |
31
- | `MCP_SECRETS` | no | The secret store the MCP servers' credentials come from, as JSON of names to values, such as `{"graph-token":"Bearer <token>"}` (decision M5 of aeolus-fleet-trierarch#120). A name is as a server's; a value is 1 to 8192 bytes of UTF-8 with no CR, LF or NUL, stored as the header takes it (so a bearer token is `Bearer <token>`). Every secret a server's credential names must be held, and the store, sealed, must fit one message. A store that is not valid refuses to start the trierarch plugin with a reason that names the secret, never its value. A change takes a restart. It applies to every fleet it serves. None by default |
32
-
33
- Set `MCP_SECRETS` so that no value reaches a shell history or a log: write it with an editor into the service's environment file (a systemd `EnvironmentFile=`, or the container's env file or secret), owned by the service's user with mode 600, and never pass it on a command line, through `echo` or `export`, or in a file the repository holds. The trierarch plugin never logs the store, never answers it through its API, and sends a value only sealed.
34
30
 
35
31
  2. `aeolus-trierarch-plugin start` migrates the database, serves, and runs an assignment pass every interval. Every fleet it serves whose kept crew token its fleet still takes is connected again; any other fleet is not connected. `aeolus-trierarch-plugin migrate` migrates alone.
36
32
  3. Each fleet's operator connects it: commission its ship with `fleet:read`, `fleet:commission`, `crew:assign`, `crew:run`, `labels:define` and `labels:assign`, and hand the ship's secret to `connection.connect`, server to server. It registers as a server and keeps only the crew token; the secret is never stored or logged.
@@ -46,6 +42,18 @@ One tRPC router at `/trpc`, called with the console's session cookie, which the
46
42
  | `machines.join` | Brings a machine in, by name (`trierarch:join`, or argo; otherwise FORBIDDEN): commissions a ship of type `trierarch` with `crew:run` and answers its starting prompt, crew lines, secret and setup line, `curl -fsSL https://raw.githubusercontent.com/ThomasHendrickx/aeolus-fleet-trierarch/main/install.sh \| sh -s -- --fleet-url <url> --ship-id <id> --plugin-ship-id <its own ship> --secret <secret>`, each shown once; the trierarch takes the trusted repositories only from the ship `--plugin-ship-id` names. A name an active ship holds: CONFLICT |
47
43
  | `machines.list` | The fleet's active ships of type `trierarch`, each with its trierarch's last report and details (null until it reports), and whether it is silent |
48
44
  | `requests.check` | Whether crew settings would be placed now, by assignment's rules, before a crew is requested with them: `fits`; `refused` with the settings field at fault and why; or `noRoom` when they fit but no trierarch has room (a request would wait). Writes nothing |
45
+ | `mcp.get` | The fleet's MCP configuration (`fleet:manage` session; otherwise FORBIDDEN): `{ version, servers, secrets }`, `secrets` the names only, never a value. Version 0 with nothing before the first replacement |
46
+ | `mcp.replace` | Replaces it whole (`fleet:manage` session and the console's `Origin`; otherwise FORBIDDEN, before any write): `{ expectedVersion, servers: [{ name, url, tools, credential? }], secrets: [names retained], secretValues: { name: value } }`, answering `{ version }`, one more. A server is a name, an `http://` or `https://` URL with no user, query or fragment, the tools a session may call (at least one, each once) and optionally `credential: { secret, header }`: a retained secret by name and the HTTP header the trierarch's proxy sets to its value (an HTTP field name, never `Host`, `Content-Length`, `Transfer-Encoding`, `Connection`, `Upgrade`, `TE`, `Trailer`, `Keep-Alive`, `Proxy-*`, `Cookie`, `Content-Type`, `Accept`, `Accept-Encoding`, `Last-Event-ID`, `Mcp-Session-Id` or `Mcp-Protocol-Version`). A retained secret keeps its value unless `secretValues` gives a new one, and needs one until it holds one; a secret left out is deleted; a value is 1 to 8192 bytes of UTF-8 with no CR, LF or NUL, stored as the header takes it (so a bearer token is `Bearer <token>`). The set, sealed, must fit one 256 KB message. A version other than the current one: CONFLICT, nothing written; a set that breaks a rule: BAD_REQUEST, its reason naming no value. Success means saved, not applied: read the version before trying again when unsure whether a write committed |
49
47
  | `installation.setEnabled`, `get`, `delete` | With `x-aeolus-installation-token`: switches a fleet on or off, reads it, forgets it (decision 0021) |
50
48
 
51
49
  While it is off for the fleet, every procedure but `connection.status` answers FORBIDDEN; until it is connected, `machines.*` answer PRECONDITION_FAILED.
50
+
51
+ ### Replacing the MCP configuration from a terminal
52
+
53
+ There is no page for it. Use a local HTTP client on your own trusted computer, signed in to the console:
54
+
55
+ 1. Keep the session cookie in a file only you can read (mode 600), and write the request body with an editor into another mode-600 file, or pass it on stdin. Only these file paths go on the command line, never the cookie or a value.
56
+ 2. Call `mcp.replace` (`POST <plugin>/trpc/mcp.replace`) with the cookie from its file, `content-type: application/json`, `Origin: <console origin>` and the body from its file, with shell tracing, verbose HTTP output and request logging off.
57
+ 3. Read `mcp.get` to check the version and names, then remove both files.
58
+
59
+ The plugin's database holds the values readable to the service and its database administrators, its backups included: protect its access and backups as you protect the crew tokens it keeps.
@@ -1,4 +1,4 @@
1
- import type { Sealer } from '../../core/mcp-servers/ports.js';
1
+ import type { Sealer } from '../../core/mcp-configuration/ports.js';
2
2
  /**
3
3
  * The NaCl anonymous sealed box (`crypto_box_seal`: X25519 and
4
4
  * XSalsa20-Poly1305 with a fresh ephemeral key per value), as a trierarch
@@ -8,7 +8,7 @@ import { consoleSessionOutputSchema } from '@aeolus-fleet/common';
8
8
  import { z } from 'zod';
9
9
  import { err, ok } from '../../core/shared/result.js';
10
10
  // Only what the plugin reads: a core older than common's schema answers fewer fields (MINIMUM_CORE_VERSION).
11
- const sessionAnswer = z.object({ result: z.object({ data: consoleSessionOutputSchema.pick({ fleetId: true, kind: true, scopes: true }) }) });
11
+ const sessionAnswer = z.object({ result: z.object({ data: consoleSessionOutputSchema.pick({ fleetId: true, kind: true, accountId: true, scopes: true }) }) });
12
12
  export function createFleetConsoleSessions(fleetUrl) {
13
13
  return {
14
14
  check: async (cookie) => {
@@ -16,8 +16,8 @@ export function createFleetConsoleSessions(fleetUrl) {
16
16
  if (!response.ok) {
17
17
  return err({ code: 'UNAUTHORIZED', message: 'No signed-in console session' });
18
18
  }
19
- const { fleetId, kind, scopes } = sessionAnswer.parse(await response.json()).result.data;
20
- return ok({ fleetId, kind, scopes });
19
+ const { fleetId, kind, accountId, scopes } = sessionAnswer.parse(await response.json()).result.data;
20
+ return ok({ fleetId, kind, ...(accountId !== undefined && { accountId }), scopes });
21
21
  },
22
22
  };
23
23
  }
@@ -1 +1 @@
1
- {"version":3,"file":"console-sessions.js","sourceRoot":"","sources":["../../../src/adapters/fleet/console-sessions.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,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CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,0BAA0B,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AAE9J,MAAM,UAAU,0BAA0B,CAAC,QAAgB;IACzD,OAAO;QACL,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;YACtB,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,QAAQ,uBAAuB,EAAE,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC;YAC1F,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;gBACjB,OAAO,GAAG,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,8BAA8B,EAAE,CAAC,CAAC;YAChF,CAAC;YACD,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,aAAa,CAAC,KAAK,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC;YACpG,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,CAAC,SAAS,KAAK,SAAS,IAAI,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;QACtF,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { type VersionFetch } from '@aeolus-fleet/common';
2
2
  /** The oldest core the trierarch plugin runs against (decision 0049, docs/compatibility.md). */
3
- export declare const MINIMUM_CORE_VERSION = "0.38.0";
3
+ export declare const MINIMUM_CORE_VERSION = "0.38.4";
4
4
  /** What the check reads the version with and waits on; tests replace them. */
5
5
  export interface CoreVersionOptions {
6
6
  readonly fetch?: VersionFetch;
@@ -2,7 +2,7 @@ import { coreVersionRefusal } from '@aeolus-fleet/common';
2
2
  import { ConfigError } from '../../config.js';
3
3
  import { runningVersion } from '../http/version.js';
4
4
  /** The oldest core the trierarch plugin runs against (decision 0049, docs/compatibility.md). */
5
- export const MINIMUM_CORE_VERSION = '0.38.0';
5
+ export const MINIMUM_CORE_VERSION = '0.38.4';
6
6
  /** How long the start waits for a core that does not answer, such as one restarting beside it. */
7
7
  const CORE_WAIT_MS = 60_000;
8
8
  const CORE_RETRY_INTERVAL_MS = 2_000;
@@ -116,8 +116,8 @@ export function createRestFleetDoor(fleetUrl, options = {}) {
116
116
  }
117
117
  return ok({ shipId, prompt, crewLines, secret });
118
118
  },
119
- listShips: async (crewToken) => {
120
- const listed = await listEveryPage((cursor) => call({ path: '/fleet/list', method: 'POST', crewToken, body: { cursor, limit: PAGE_SIZE_MAX }, answers: fleetListOutputSchema }));
119
+ listShips: async (crewToken, filter) => {
120
+ const listed = await listEveryPage((cursor) => call({ path: '/fleet/list', method: 'POST', crewToken, body: { cursor, limit: PAGE_SIZE_MAX, ...(filter === undefined ? {} : { status: filter.statuses }) }, answers: fleetListOutputSchema }));
121
121
  return listed.isOk
122
122
  ? ok(
123
123
  // A ship outside read reach shows too little to crew (decision 0034).
@@ -135,6 +135,7 @@ export function createRestFleetDoor(fleetUrl, options = {}) {
135
135
  reason: crewRequest.reason,
136
136
  startedAt: dateOf(crewRequest.startedAt),
137
137
  givenBack: crewRequest.givenBack.map((back) => ({ trierarchShipId: back.trierarch.id, reason: back.reason })),
138
+ requestedBy: crewRequest.requestedBy && { shipId: crewRequest.requestedBy.id, name: crewRequest.requestedBy.name },
138
139
  },
139
140
  labels: labels.map(({ labelId, valueId }) => ({ labelId, valueId })),
140
141
  })))
@@ -189,12 +190,12 @@ export function createRestFleetDoor(fleetUrl, options = {}) {
189
190
  });
190
191
  return sent.isOk ? ok(undefined) : sent;
191
192
  },
192
- send: async (crewToken, { shipId, contentType, payload, idempotencyKey }) => {
193
+ send: async (crewToken, { shipId, contentType, payload, idempotencyKey, inReplyTo }) => {
193
194
  const sent = await call({
194
195
  path: '/ship/send',
195
196
  method: 'POST',
196
197
  crewToken,
197
- body: { selector: { kind: 'ship', shipId }, payload, contentType, idempotencyKey },
198
+ body: { selector: { kind: 'ship', shipId }, payload, contentType, idempotencyKey, ...(inReplyTo === undefined ? {} : { inReplyTo }) },
198
199
  answers: z.unknown(),
199
200
  });
200
201
  return sent.isOk ? ok(undefined) : sent;
@@ -203,7 +204,7 @@ export function createRestFleetDoor(fleetUrl, options = {}) {
203
204
  inbox: {
204
205
  receive: async (crewToken, max) => {
205
206
  const taken = await call({ path: '/ship/receive', method: 'POST', crewToken, body: { max }, answers: receiveOutputSchema });
206
- return taken.isOk ? ok(taken.value.deliveries.map(({ deliveryId, contentType, senderShipId, senderType, payload }) => ({ deliveryId, contentType, senderShipId, senderType, payload }))) : taken;
207
+ return taken.isOk ? ok(taken.value.deliveries.map(({ deliveryId, messageId, contentType, senderShipId, senderType, senderStatus, payload }) => ({ deliveryId, messageId, contentType, senderShipId, senderType, senderStatus, payload }))) : taken;
207
208
  },
208
209
  ack: async (crewToken, deliveryId) => {
209
210
  const acked = await call({ path: '/ship/ack', method: 'POST', crewToken, body: { deliveryId }, answers: z.unknown() });
@@ -1 +1 @@
1
- {"version":3,"file":"rest-fleet-door.js","sourceRoot":"","sources":["../../../src/adapters/fleet/rest-fleet-door.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,UAAU,IAAI,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAE,UAAU,EAAE,0BAA0B,EAAE,+BAA+B,EAAE,yBAAyB,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,QAAQ,EAAE,aAAa,EAAE,kBAAkB,EAAE,aAAa,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC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,EAAE;gBACnC,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;gBACvH,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;YAC5C,CAAC;YACD,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,EAAE;gBACpC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;gBACzH,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;YAC9C,CAAC;SACF;KACF,CAAC;AACJ,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import type { FleetForgetter } from '../../core/installation/ports.js';
2
2
  import type { PrismaClient } from './client.js';
3
- /** Forgets every record the trierarch plugin holds of a fleet, in one transaction: its connection, its switch, its enabled models, its usage history and the requests that name it. */
3
+ /** Forgets every record the trierarch plugin holds of a fleet, in one transaction: its connection, its switch, its enabled models, its usage history, its MCP configuration with its secrets, events and deliveries, and the requests that name it. */
4
4
  export declare function createPrismaFleetForgetter(db: PrismaClient): FleetForgetter;
@@ -1,9 +1,9 @@
1
- /** Forgets every record the trierarch plugin holds of a fleet, in one transaction: its connection, its switch, its enabled models, its usage history and the requests that name it. */
1
+ /** Forgets every record the trierarch plugin holds of a fleet, in one transaction: its connection, its switch, its enabled models, its usage history, its MCP configuration with its secrets, events and deliveries, and the requests that name it. */
2
2
  export function createPrismaFleetForgetter(db) {
3
3
  return {
4
4
  forget: async (fleetId) => {
5
5
  const where = { where: { fleetId } };
6
- await db.$transaction([db.connection.deleteMany(where), db.fleetSwitch.deleteMany(where), db.enabledModel.deleteMany(where), db.usageHour.deleteMany(where), db.usageDay.deleteMany(where), db.subscriptionReading.deleteMany(where), db.installationRequest.deleteMany(where)]);
6
+ await db.$transaction([db.connection.deleteMany(where), db.fleetSwitch.deleteMany(where), db.enabledModel.deleteMany(where), db.usageHour.deleteMany(where), db.usageDay.deleteMany(where), db.subscriptionReading.deleteMany(where), db.mcpConfiguration.deleteMany(where), db.mcpSecret.deleteMany(where), db.mcpConfigurationEvent.deleteMany(where), db.mcpDelivery.deleteMany(where), db.installationRequest.deleteMany(where)]);
7
7
  },
8
8
  };
9
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"fleet-forgetter.js","sourceRoot":"","sources":["../../../src/adapters/prisma/fleet-forgetter.ts"],"names":[],"mappings":"AAGA,uLAAuL;AACvL,MAAM,UAAU,0BAA0B,CAAC,EAAgB;IACzD,OAAO;QACL,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;YACxB,MAAM,KAAK,GAAG,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,CAAC;YACrC,MAAM,EAAE,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,mBAAmB,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,mBAAmB,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACnR,CAAC;KACF,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"fleet-forgetter.js","sourceRoot":"","sources":["../../../src/adapters/prisma/fleet-forgetter.ts"],"names":[],"mappings":"AAGA,uPAAuP;AACvP,MAAM,UAAU,0BAA0B,CAAC,EAAgB;IACzD,OAAO;QACL,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;YACxB,MAAM,KAAK,GAAG,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,CAAC;YACrC,MAAM,EAAE,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,mBAAmB,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,gBAAgB,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,qBAAqB,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,mBAAmB,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACxa,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -52,3 +52,35 @@ export type UsageDay = Prisma.UsageDayModel;
52
52
  * trierarch read it. Kept once: a repeat changes nothing.
53
53
  */
54
54
  export type SubscriptionReading = Prisma.SubscriptionReadingModel;
55
+ /**
56
+ * Model McpConfiguration
57
+ * Each fleet's one current MCP configuration (the fleet crew MCP design,
58
+ * section 4): its version, which guards every replacement, and its servers as
59
+ * the model saved them. No row before the fleet's first replacement: version 0
60
+ * with nothing. Its secrets are in mcp_secrets, so this row holds no value.
61
+ */
62
+ export type McpConfiguration = Prisma.McpConfigurationModel;
63
+ /**
64
+ * Model McpSecret
65
+ * The secrets of each fleet's MCP configuration, with their values: the
66
+ * plugin's credential store, readable to the service and its database
67
+ * administrators. Replaced with the set, in the same transaction.
68
+ */
69
+ export type McpSecret = Prisma.McpSecretModel;
70
+ /**
71
+ * Model McpConfigurationEvent
72
+ * One row per replacement of a fleet's MCP configuration, written in the same
73
+ * transaction: the version it saved, the console session's kind and account,
74
+ * and the server and secret names it changed. Never a value.
75
+ */
76
+ export type McpConfigurationEvent = Prisma.McpConfigurationEventModel;
77
+ /**
78
+ * Model McpDelivery
79
+ * The delivery of a fleet's MCP configuration to one of its trierarch ships
80
+ * (the fleet crew MCP design, section 5): the attempt last made, kept under its
81
+ * idempotency key before it is sent, with the very message, as the fleet takes
82
+ * a key only for one message; the version and key the trierarch confirmed it
83
+ * applied; and whether it asked for the set since. Its secrets are only sealed
84
+ * to the trierarch's key. Forgotten when the trierarch is seen not crewed.
85
+ */
86
+ export type McpDelivery = Prisma.McpDeliveryModel;
@@ -71,3 +71,35 @@ export type UsageDay = Prisma.UsageDayModel;
71
71
  * trierarch read it. Kept once: a repeat changes nothing.
72
72
  */
73
73
  export type SubscriptionReading = Prisma.SubscriptionReadingModel;
74
+ /**
75
+ * Model McpConfiguration
76
+ * Each fleet's one current MCP configuration (the fleet crew MCP design,
77
+ * section 4): its version, which guards every replacement, and its servers as
78
+ * the model saved them. No row before the fleet's first replacement: version 0
79
+ * with nothing. Its secrets are in mcp_secrets, so this row holds no value.
80
+ */
81
+ export type McpConfiguration = Prisma.McpConfigurationModel;
82
+ /**
83
+ * Model McpSecret
84
+ * The secrets of each fleet's MCP configuration, with their values: the
85
+ * plugin's credential store, readable to the service and its database
86
+ * administrators. Replaced with the set, in the same transaction.
87
+ */
88
+ export type McpSecret = Prisma.McpSecretModel;
89
+ /**
90
+ * Model McpConfigurationEvent
91
+ * One row per replacement of a fleet's MCP configuration, written in the same
92
+ * transaction: the version it saved, the console session's kind and account,
93
+ * and the server and secret names it changed. Never a value.
94
+ */
95
+ export type McpConfigurationEvent = Prisma.McpConfigurationEventModel;
96
+ /**
97
+ * Model McpDelivery
98
+ * The delivery of a fleet's MCP configuration to one of its trierarch ships
99
+ * (the fleet crew MCP design, section 5): the attempt last made, kept under its
100
+ * idempotency key before it is sent, with the very message, as the fleet takes
101
+ * a key only for one message; the version and key the trierarch confirmed it
102
+ * applied; and whether it asked for the set since. Its secrets are only sealed
103
+ * to the trierarch's key. Forgotten when the trierarch is seen not crewed.
104
+ */
105
+ export type McpDelivery = Prisma.McpDeliveryModel;
@@ -211,6 +211,91 @@ export type IntWithAggregatesFilter<$PrismaModel = never> = {
211
211
  _min?: Prisma.NestedIntFilter<$PrismaModel>;
212
212
  _max?: Prisma.NestedIntFilter<$PrismaModel>;
213
213
  };
214
+ export type JsonFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<JsonFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonFilterBase<$PrismaModel>>, 'path'>>, Required<JsonFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<JsonFilterBase<$PrismaModel>>, 'path'>>;
215
+ export type JsonFilterBase<$PrismaModel = never> = {
216
+ equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
217
+ path?: string[];
218
+ mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
219
+ string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
220
+ string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
221
+ string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
222
+ array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
223
+ array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
224
+ array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
225
+ lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
226
+ lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
227
+ gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
228
+ gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
229
+ not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
230
+ };
231
+ export type JsonWithAggregatesFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<JsonWithAggregatesFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonWithAggregatesFilterBase<$PrismaModel>>, 'path'>>, Required<JsonWithAggregatesFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<JsonWithAggregatesFilterBase<$PrismaModel>>, 'path'>>;
232
+ export type JsonWithAggregatesFilterBase<$PrismaModel = never> = {
233
+ equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
234
+ path?: string[];
235
+ mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
236
+ string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
237
+ string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
238
+ string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
239
+ array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
240
+ array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
241
+ array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
242
+ lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
243
+ lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
244
+ gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
245
+ gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
246
+ not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
247
+ _count?: Prisma.NestedIntFilter<$PrismaModel>;
248
+ _min?: Prisma.NestedJsonFilter<$PrismaModel>;
249
+ _max?: Prisma.NestedJsonFilter<$PrismaModel>;
250
+ };
251
+ export type IntNullableFilter<$PrismaModel = never> = {
252
+ equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null;
253
+ in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null;
254
+ notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null;
255
+ lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
256
+ lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
257
+ gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
258
+ gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
259
+ not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null;
260
+ };
261
+ export type DateTimeNullableFilter<$PrismaModel = never> = {
262
+ equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
263
+ in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
264
+ notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
265
+ lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
266
+ lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
267
+ gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
268
+ gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
269
+ not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null;
270
+ };
271
+ export type IntNullableWithAggregatesFilter<$PrismaModel = never> = {
272
+ equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null;
273
+ in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null;
274
+ notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null;
275
+ lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
276
+ lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
277
+ gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
278
+ gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
279
+ not?: Prisma.NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null;
280
+ _count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
281
+ _avg?: Prisma.NestedFloatNullableFilter<$PrismaModel>;
282
+ _sum?: Prisma.NestedIntNullableFilter<$PrismaModel>;
283
+ _min?: Prisma.NestedIntNullableFilter<$PrismaModel>;
284
+ _max?: Prisma.NestedIntNullableFilter<$PrismaModel>;
285
+ };
286
+ export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
287
+ equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
288
+ in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
289
+ notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
290
+ lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
291
+ lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
292
+ gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
293
+ gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
294
+ not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null;
295
+ _count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
296
+ _min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
297
+ _max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
298
+ };
214
299
  export type NestedStringFilter<$PrismaModel = never> = {
215
300
  equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
216
301
  in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
@@ -434,3 +519,68 @@ export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
434
519
  _min?: Prisma.NestedIntFilter<$PrismaModel>;
435
520
  _max?: Prisma.NestedIntFilter<$PrismaModel>;
436
521
  };
522
+ export type NestedJsonFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<NestedJsonFilterBase<$PrismaModel>>, Exclude<keyof Required<NestedJsonFilterBase<$PrismaModel>>, 'path'>>, Required<NestedJsonFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<NestedJsonFilterBase<$PrismaModel>>, 'path'>>;
523
+ export type NestedJsonFilterBase<$PrismaModel = never> = {
524
+ equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
525
+ path?: string[];
526
+ mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
527
+ string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
528
+ string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
529
+ string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
530
+ array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
531
+ array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
532
+ array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
533
+ lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
534
+ lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
535
+ gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
536
+ gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
537
+ not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
538
+ };
539
+ export type NestedDateTimeNullableFilter<$PrismaModel = never> = {
540
+ equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
541
+ in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
542
+ notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
543
+ lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
544
+ lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
545
+ gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
546
+ gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
547
+ not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null;
548
+ };
549
+ export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = {
550
+ equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null;
551
+ in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null;
552
+ notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null;
553
+ lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
554
+ lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
555
+ gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
556
+ gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
557
+ not?: Prisma.NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null;
558
+ _count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
559
+ _avg?: Prisma.NestedFloatNullableFilter<$PrismaModel>;
560
+ _sum?: Prisma.NestedIntNullableFilter<$PrismaModel>;
561
+ _min?: Prisma.NestedIntNullableFilter<$PrismaModel>;
562
+ _max?: Prisma.NestedIntNullableFilter<$PrismaModel>;
563
+ };
564
+ export type NestedFloatNullableFilter<$PrismaModel = never> = {
565
+ equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null;
566
+ in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null;
567
+ notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null;
568
+ lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
569
+ lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
570
+ gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
571
+ gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
572
+ not?: Prisma.NestedFloatNullableFilter<$PrismaModel> | number | null;
573
+ };
574
+ export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
575
+ equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
576
+ in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
577
+ notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
578
+ lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
579
+ lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
580
+ gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
581
+ gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
582
+ not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null;
583
+ _count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
584
+ _min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
585
+ _max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
586
+ };
@@ -194,5 +194,49 @@ export interface PrismaClient<in LogOpts extends Prisma.LogLevel = never, in out
194
194
  get subscriptionReading(): Prisma.SubscriptionReadingDelegate<ExtArgs, {
195
195
  omit: OmitOpts;
196
196
  }>;
197
+ /**
198
+ * `prisma.mcpConfiguration`: Exposes CRUD operations for the **McpConfiguration** model.
199
+ * Example usage:
200
+ * ```ts
201
+ * // Fetch zero or more McpConfigurations
202
+ * const mcpConfigurations = await prisma.mcpConfiguration.findMany()
203
+ * ```
204
+ */
205
+ get mcpConfiguration(): Prisma.McpConfigurationDelegate<ExtArgs, {
206
+ omit: OmitOpts;
207
+ }>;
208
+ /**
209
+ * `prisma.mcpSecret`: Exposes CRUD operations for the **McpSecret** model.
210
+ * Example usage:
211
+ * ```ts
212
+ * // Fetch zero or more McpSecrets
213
+ * const mcpSecrets = await prisma.mcpSecret.findMany()
214
+ * ```
215
+ */
216
+ get mcpSecret(): Prisma.McpSecretDelegate<ExtArgs, {
217
+ omit: OmitOpts;
218
+ }>;
219
+ /**
220
+ * `prisma.mcpConfigurationEvent`: Exposes CRUD operations for the **McpConfigurationEvent** model.
221
+ * Example usage:
222
+ * ```ts
223
+ * // Fetch zero or more McpConfigurationEvents
224
+ * const mcpConfigurationEvents = await prisma.mcpConfigurationEvent.findMany()
225
+ * ```
226
+ */
227
+ get mcpConfigurationEvent(): Prisma.McpConfigurationEventDelegate<ExtArgs, {
228
+ omit: OmitOpts;
229
+ }>;
230
+ /**
231
+ * `prisma.mcpDelivery`: Exposes CRUD operations for the **McpDelivery** model.
232
+ * Example usage:
233
+ * ```ts
234
+ * // Fetch zero or more McpDeliveries
235
+ * const mcpDeliveries = await prisma.mcpDelivery.findMany()
236
+ * ```
237
+ */
238
+ get mcpDelivery(): Prisma.McpDeliveryDelegate<ExtArgs, {
239
+ omit: OmitOpts;
240
+ }>;
197
241
  }
198
242
  export declare function getPrismaClientClass(): PrismaClientConstructor;