@catamorphic/fastify-plugin 0.0.0-stage → 0.1.0-alpha.30
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/LICENSE.txt +202 -0
- package/NOTICE.txt +32 -0
- package/README.md +143 -2
- package/dist/app-presentation-tools.d.ts +4 -0
- package/dist/app-presentation-tools.d.ts.map +1 -0
- package/dist/app.d.ts +27 -0
- package/dist/app.d.ts.map +1 -0
- package/dist/chunk-baagvvm3.js +164 -0
- package/dist/chunk-baagvvm3.js.map +10 -0
- package/dist/http-identity.d.ts +52 -0
- package/dist/http-identity.d.ts.map +1 -0
- package/dist/hung-up.d.ts +7 -0
- package/dist/hung-up.d.ts.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +10884 -0
- package/dist/index.js.map +56 -0
- package/dist/mcp-shared.d.ts +117 -0
- package/dist/mcp-shared.d.ts.map +1 -0
- package/dist/mcp.d.ts +6 -0
- package/dist/mcp.d.ts.map +1 -0
- package/dist/mcp.js +13 -0
- package/dist/mcp.js.map +9 -0
- package/dist/plugin.d.ts +113 -0
- package/dist/plugin.d.ts.map +1 -0
- package/dist/project-capabilities.d.ts +25 -0
- package/dist/project-capabilities.d.ts.map +1 -0
- package/dist/project-mcp-program.d.ts +15 -0
- package/dist/project-mcp-program.d.ts.map +1 -0
- package/dist/project-mcp-surface.d.ts +16 -0
- package/dist/project-mcp-surface.d.ts.map +1 -0
- package/dist/request-logging.d.ts +18 -0
- package/dist/request-logging.d.ts.map +1 -0
- package/dist/routes/agent-capabilities.d.ts +4 -0
- package/dist/routes/agent-capabilities.d.ts.map +1 -0
- package/dist/routes/agent.d.ts +4 -0
- package/dist/routes/agent.d.ts.map +1 -0
- package/dist/routes/apps-mcp.d.ts +4 -0
- package/dist/routes/apps-mcp.d.ts.map +1 -0
- package/dist/routes/apps.d.ts +12 -0
- package/dist/routes/apps.d.ts.map +1 -0
- package/dist/routes/client-runners.d.ts +11 -0
- package/dist/routes/client-runners.d.ts.map +1 -0
- package/dist/routes/code-hosts.d.ts +11 -0
- package/dist/routes/code-hosts.d.ts.map +1 -0
- package/dist/routes/connection-mcp.d.ts +10 -0
- package/dist/routes/connection-mcp.d.ts.map +1 -0
- package/dist/routes/connections.d.ts +4 -0
- package/dist/routes/connections.d.ts.map +1 -0
- package/dist/routes/documents.d.ts +11 -0
- package/dist/routes/documents.d.ts.map +1 -0
- package/dist/routes/environments.d.ts +4 -0
- package/dist/routes/environments.d.ts.map +1 -0
- package/dist/routes/git-gateway.d.ts +21 -0
- package/dist/routes/git-gateway.d.ts.map +1 -0
- package/dist/routes/http-gateway.d.ts +13 -0
- package/dist/routes/http-gateway.d.ts.map +1 -0
- package/dist/routes/me.d.ts +12 -0
- package/dist/routes/me.d.ts.map +1 -0
- package/dist/routes/memberships.d.ts +12 -0
- package/dist/routes/memberships.d.ts.map +1 -0
- package/dist/routes/model-gateway.d.ts +12 -0
- package/dist/routes/model-gateway.d.ts.map +1 -0
- package/dist/routes/notifications.d.ts +4 -0
- package/dist/routes/notifications.d.ts.map +1 -0
- package/dist/routes/parse.d.ts +5 -0
- package/dist/routes/parse.d.ts.map +1 -0
- package/dist/routes/personal-environment.d.ts +13 -0
- package/dist/routes/personal-environment.d.ts.map +1 -0
- package/dist/routes/plugins.d.ts +4 -0
- package/dist/routes/plugins.d.ts.map +1 -0
- package/dist/routes/project-mcp.d.ts +25 -0
- package/dist/routes/project-mcp.d.ts.map +1 -0
- package/dist/routes/projects.d.ts +4 -0
- package/dist/routes/projects.d.ts.map +1 -0
- package/dist/routes/publications.d.ts +15 -0
- package/dist/routes/publications.d.ts.map +1 -0
- package/dist/routes/run-errors.d.ts +8 -0
- package/dist/routes/run-errors.d.ts.map +1 -0
- package/dist/routes/runs.d.ts +4 -0
- package/dist/routes/runs.d.ts.map +1 -0
- package/dist/routes/session-artifacts.d.ts +27 -0
- package/dist/routes/session-artifacts.d.ts.map +1 -0
- package/dist/routes/session-mailboxes.d.ts +4 -0
- package/dist/routes/session-mailboxes.d.ts.map +1 -0
- package/dist/routes/session-previews.d.ts +40 -0
- package/dist/routes/session-previews.d.ts.map +1 -0
- package/dist/routes/session-terminals.d.ts +15 -0
- package/dist/routes/session-terminals.d.ts.map +1 -0
- package/dist/routes/triggers.d.ts +20 -0
- package/dist/routes/triggers.d.ts.map +1 -0
- package/dist/routes/watchers.d.ts +4 -0
- package/dist/routes/watchers.d.ts.map +1 -0
- package/dist/routes/webhooks.d.ts +11 -0
- package/dist/routes/webhooks.d.ts.map +1 -0
- package/dist/routes/workflow-enablements.d.ts +4 -0
- package/dist/routes/workflow-enablements.d.ts.map +1 -0
- package/dist/routes/workflows.d.ts +4 -0
- package/dist/routes/workflows.d.ts.map +1 -0
- package/dist/schemas.d.ts +17776 -0
- package/dist/schemas.d.ts.map +1 -0
- package/dist/session-artifact-tools.d.ts +5 -0
- package/dist/session-artifact-tools.d.ts.map +1 -0
- package/dist/session-event-stream.d.ts +45 -0
- package/dist/session-event-stream.d.ts.map +1 -0
- package/dist/spa.d.ts +24 -0
- package/dist/spa.d.ts.map +1 -0
- package/dist/telemetry.d.ts +4 -0
- package/dist/telemetry.d.ts.map +1 -0
- package/package.json +73 -4
- package/src/app-presentation-tools.ts +46 -0
- package/src/app.ts +115 -0
- package/src/http-identity.ts +145 -0
- package/src/hung-up.ts +13 -0
- package/src/index.ts +25 -0
- package/src/mcp-shared.ts +331 -0
- package/src/mcp.ts +10 -0
- package/src/plugin.ts +332 -0
- package/src/project-capabilities.ts +153 -0
- package/src/project-mcp-program.ts +607 -0
- package/src/project-mcp-surface.ts +881 -0
- package/src/request-logging.ts +47 -0
- package/src/routes/agent-capabilities.ts +109 -0
- package/src/routes/agent.ts +1566 -0
- package/src/routes/apps-mcp.ts +303 -0
- package/src/routes/apps.ts +692 -0
- package/src/routes/client-runners.ts +251 -0
- package/src/routes/code-hosts.ts +247 -0
- package/src/routes/connection-mcp.ts +135 -0
- package/src/routes/connections.ts +494 -0
- package/src/routes/documents.ts +538 -0
- package/src/routes/environments.ts +72 -0
- package/src/routes/git-gateway.ts +106 -0
- package/src/routes/http-gateway.ts +141 -0
- package/src/routes/me.ts +122 -0
- package/src/routes/memberships.ts +173 -0
- package/src/routes/model-gateway.ts +134 -0
- package/src/routes/notifications.ts +101 -0
- package/src/routes/parse.ts +32 -0
- package/src/routes/personal-environment.ts +146 -0
- package/src/routes/plugins.ts +341 -0
- package/src/routes/project-mcp.ts +394 -0
- package/src/routes/projects.ts +708 -0
- package/src/routes/publications.ts +222 -0
- package/src/routes/run-errors.ts +86 -0
- package/src/routes/runs.ts +253 -0
- package/src/routes/session-artifacts.ts +293 -0
- package/src/routes/session-mailboxes.ts +80 -0
- package/src/routes/session-previews.ts +224 -0
- package/src/routes/session-terminals.ts +209 -0
- package/src/routes/triggers.ts +241 -0
- package/src/routes/watchers.ts +94 -0
- package/src/routes/webhooks.ts +171 -0
- package/src/routes/workflow-enablements.ts +331 -0
- package/src/routes/workflows.ts +323 -0
- package/src/schemas.ts +2735 -0
- package/src/session-artifact-tools.ts +170 -0
- package/src/session-event-stream.ts +122 -0
- package/src/spa.ts +135 -0
- package/src/telemetry.ts +93 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { FastifyInstance } from "fastify";
|
|
2
|
+
import type { RouteContext } from "../app.js";
|
|
3
|
+
/** Parse in-flight draft files into a graph (the browser cannot run the parser). */
|
|
4
|
+
export declare function registerParseRoutes(app: FastifyInstance, ctx: RouteContext): void;
|
|
5
|
+
//# sourceMappingURL=parse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../src/routes/parse.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAO9C,oFAAoF;AACpF,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,eAAe,EAAE,GAAG,EAAE,YAAY,QAoB1E"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { FastifyInstance } from "fastify";
|
|
2
|
+
import type { RouteContext } from "../app.js";
|
|
3
|
+
/**
|
|
4
|
+
* The caller's own personal environment for a project (ADR 0184): their
|
|
5
|
+
* listed files, which reach only their own chats' sandboxes in
|
|
6
|
+
* Environments that allow personal credentials, and their own setup
|
|
7
|
+
* command, which runs there after the Environment's (ADR 0208). Sign-ins
|
|
8
|
+
* are not part of it: they stay on the machine they were made on (ADR
|
|
9
|
+
* 0199). Every route acts on the caller's own set; none returns a file's
|
|
10
|
+
* value.
|
|
11
|
+
*/
|
|
12
|
+
export declare function registerPersonalEnvironmentRoutes(app: FastifyInstance, ctx: RouteContext): void;
|
|
13
|
+
//# sourceMappingURL=personal-environment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"personal-environment.d.ts","sourceRoot":"","sources":["../../src/routes/personal-environment.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,eAAe,EAAgB,MAAM,SAAS,CAAC;AAG7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAU9C;;;;;;;;GAQG;AACH,wBAAgB,iCAAiC,CAC/C,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,YAAY,GAChB,IAAI,CAkHN"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/routes/plugins.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,eAAe,EAAkB,MAAM,SAAS,CAAC;AAG/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAkC9C,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,eAAe,EAAE,GAAG,EAAE,YAAY,QAoS3E"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { CatamorphicCore, Identity, McpToolMetadata, TriggerBindingInfo } from "@catamorphic/core";
|
|
2
|
+
import type { FastifyInstance } from "fastify";
|
|
3
|
+
import type { RouteContext } from "../app.js";
|
|
4
|
+
interface ProjectTool {
|
|
5
|
+
name: string;
|
|
6
|
+
kind: string;
|
|
7
|
+
metadata: McpToolMetadata;
|
|
8
|
+
binding: TriggerBindingInfo;
|
|
9
|
+
/**
|
|
10
|
+
* Non-object workflow inputs cannot be MCP tool arguments directly; the
|
|
11
|
+
* tool then takes `{"input": ...}` and unwraps it before firing.
|
|
12
|
+
*/
|
|
13
|
+
wrapped: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare function registerProjectMcpRoutes(app: FastifyInstance, ctx: RouteContext): void;
|
|
16
|
+
/**
|
|
17
|
+
* The project's tool roster at its production commit: every binding of
|
|
18
|
+
* every registered tool kind, from one scan. Name uniqueness is enforced
|
|
19
|
+
* at deploy scan; the throw here is a backstop for pre-validation commits.
|
|
20
|
+
*/
|
|
21
|
+
export declare function loadProjectTools(core: CatamorphicCore, identity: Identity, projectId: string): Promise<ProjectTool[]>;
|
|
22
|
+
export declare function toolDefinition(tool: ProjectTool): Record<string, unknown>;
|
|
23
|
+
export declare function callTool(core: CatamorphicCore, identity: Identity, projectId: string, name: string, args: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=project-mcp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-mcp.d.ts","sourceRoot":"","sources":["../../src/routes/project-mcp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,QAAQ,EACR,eAAe,EACf,kBAAkB,EAEnB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAqD9C,UAAU,WAAW;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,eAAe,CAAC;IAC1B,OAAO,EAAE,kBAAkB,CAAC;IAC5B;;;OAGG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,YAAY,QAkKlB;AAED;;;;GAIG;AACH,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,eAAe,EACrB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,WAAW,EAAE,CAAC,CA6BxB;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAmCzE;AAED,wBAAsB,QAAQ,CAC5B,IAAI,EAAE,eAAe,EACrB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CA2DlC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../../src/routes/projects.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAG/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AA6C9C,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,eAAe,EAAE,GAAG,EAAE,YAAY,QAmnB5E"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { FastifyInstance } from "fastify";
|
|
2
|
+
import type { RouteContext } from "../app.js";
|
|
3
|
+
/**
|
|
4
|
+
* Publications (ADR 0055): publish / list / revoke for the project's
|
|
5
|
+
* members, and two serving routes —
|
|
6
|
+
* GET /projects/:id/publications/:slug members (host auth), or public
|
|
7
|
+
* GET /public/:id/:slug public only, no auth (route
|
|
8
|
+
* config `public: true` skips the
|
|
9
|
+
* identity requirement)
|
|
10
|
+
* both stream the document as the audience's identity: an anonymous
|
|
11
|
+
* document-scoped one for public, the member narrowed to the document
|
|
12
|
+
* otherwise. Nothing else on the plugin is reachable anonymously.
|
|
13
|
+
*/
|
|
14
|
+
export declare function registerPublicationRoutes(app: FastifyInstance, ctx: RouteContext): void;
|
|
15
|
+
//# sourceMappingURL=publications.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"publications.d.ts","sourceRoot":"","sources":["../../src/routes/publications.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,eAAe,EAAgB,MAAM,SAAS,CAAC;AAG7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAU9C;;;;;;;;;;GAUG;AACH,wBAAgB,yBAAyB,CACvC,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,YAAY,QA0LlB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { FastifyReply } from "fastify";
|
|
2
|
+
/**
|
|
3
|
+
* Maps the errors a run trigger (async start or sync call) can raise onto
|
|
4
|
+
* HTTP statuses. Returns the reply when handled, `null` when the error is
|
|
5
|
+
* not a trigger error and should propagate.
|
|
6
|
+
*/
|
|
7
|
+
export declare function replyForTriggerError(err: unknown, reply: FastifyReply): FastifyReply | null;
|
|
8
|
+
//# sourceMappingURL=run-errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-errors.d.ts","sourceRoot":"","sources":["../../src/routes/run-errors.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,OAAO,EACZ,KAAK,EAAE,YAAY,GAClB,YAAY,GAAG,IAAI,CAyDrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runs.d.ts","sourceRoot":"","sources":["../../src/routes/runs.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,eAAe,EAAgB,MAAM,SAAS,CAAC;AAG7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAkB9C,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,eAAe,EAAE,GAAG,EAAE,YAAY,QAiNxE"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { FastifyInstance } from "fastify";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import type { RouteContext } from "../app.js";
|
|
4
|
+
export declare const SessionArtifactSchema: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
projectId: z.ZodString;
|
|
7
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
8
|
+
kind: z.ZodEnum<{
|
|
9
|
+
app: "app";
|
|
10
|
+
workflow: "workflow";
|
|
11
|
+
}>;
|
|
12
|
+
name: z.ZodString;
|
|
13
|
+
title: z.ZodString;
|
|
14
|
+
sourcePath: z.ZodString;
|
|
15
|
+
remoteBranch: z.ZodString;
|
|
16
|
+
commitSha: z.ZodString;
|
|
17
|
+
revision: z.ZodNumber;
|
|
18
|
+
status: z.ZodEnum<{
|
|
19
|
+
active: "active";
|
|
20
|
+
discarded: "discarded";
|
|
21
|
+
}>;
|
|
22
|
+
appName: z.ZodNullable<z.ZodString>;
|
|
23
|
+
createdAt: z.ZodString;
|
|
24
|
+
updatedAt: z.ZodString;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
export declare function registerSessionArtifactRoutes(app: FastifyInstance, ctx: RouteContext): void;
|
|
27
|
+
//# sourceMappingURL=session-artifacts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-artifacts.d.ts","sourceRoot":"","sources":["../../src/routes/session-artifacts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAS9C,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;iBAehC,CAAC;AAiBH,wBAAgB,6BAA6B,CAC3C,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,YAAY,QAoPlB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-mailboxes.d.ts","sourceRoot":"","sources":["../../src/routes/session-mailboxes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAY9C,wBAAgB,4BAA4B,CAC1C,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,YAAY,QA8DlB"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { FastifyInstance } from "fastify";
|
|
2
|
+
import type { RouteContext } from "../app.js";
|
|
3
|
+
/**
|
|
4
|
+
* Marks an answer as the preview route's own refusal (the workspace is not
|
|
5
|
+
* running, nothing listens on the port), never the previewed server's.
|
|
6
|
+
*/
|
|
7
|
+
export declare const PREVIEW_REFUSAL_HEADER = "x-work-preview-refusal";
|
|
8
|
+
/**
|
|
9
|
+
* Previews of servers running in a chat's workspace (ADR 0209):
|
|
10
|
+
* `<prefix>/projects/:projectId/agent/sessions/:sessionId/previews/:port/*`,
|
|
11
|
+
* any method, forwarded to that port inside the workspace by the
|
|
12
|
+
* sandbox's own runtime. The body travels byte for byte; the answer comes
|
|
13
|
+
* back with its status and headers, every `Set-Cookie` kept, and a
|
|
14
|
+
* redirect to the server itself pointed back below the preview's prefix.
|
|
15
|
+
* WebSocket upgrades are not forwarded. Hidden from the API spec: browsers
|
|
16
|
+
* speak it, through a client that adds the member's credentials.
|
|
17
|
+
*/
|
|
18
|
+
export declare function registerSessionPreviewRoutes(app: FastifyInstance, ctx: RouteContext): void;
|
|
19
|
+
/**
|
|
20
|
+
* The preview's prefix (everything through `/previews/<port>`, as the
|
|
21
|
+
* caller addressed it) and the path below it, still percent-encoded.
|
|
22
|
+
*/
|
|
23
|
+
export declare function previewTarget(input: {
|
|
24
|
+
url: string;
|
|
25
|
+
port: number;
|
|
26
|
+
}): {
|
|
27
|
+
prefix: string;
|
|
28
|
+
path: string;
|
|
29
|
+
} | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* A redirect within the previewed server, below the preview's prefix: a
|
|
32
|
+
* root-relative location, or an absolute one naming the server itself on
|
|
33
|
+
* a loopback host. Anything else (relative, elsewhere) is left alone.
|
|
34
|
+
*/
|
|
35
|
+
export declare function rewritePreviewLocation(input: {
|
|
36
|
+
location: string;
|
|
37
|
+
prefix: string;
|
|
38
|
+
port: number;
|
|
39
|
+
}): string;
|
|
40
|
+
//# sourceMappingURL=session-previews.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-previews.d.ts","sourceRoot":"","sources":["../../src/routes/session-previews.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAgC,MAAM,SAAS,CAAC;AAC7E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAU9C;;;GAGG;AACH,eAAO,MAAM,sBAAsB,2BAA2B,CAAC;AAU/D;;;;;;;;;GASG;AACH,wBAAgB,4BAA4B,CAC1C,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,YAAY,GAChB,IAAI,CA8BN;AA8DD;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE;IACnC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAW/C;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE;IAC5C,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd,GAAG,MAAM,CAmBT"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { FastifyInstance, FastifyReply } from "fastify";
|
|
2
|
+
import type { RouteContext } from "../app.js";
|
|
3
|
+
/**
|
|
4
|
+
* The answer for what stops a person from working in a chat's workspace,
|
|
5
|
+
* or undefined for any other error. Shared with the preview routes.
|
|
6
|
+
*/
|
|
7
|
+
export declare function workspaceRefusal(reply: FastifyReply, error: unknown): FastifyReply | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* Terminals in a chat's workspace (ADR 0209): open one (starting the
|
|
10
|
+
* workspace when it was given back), read its output by cursor with a
|
|
11
|
+
* wait, type into it, resize it, close it. Only the person who opened a
|
|
12
|
+
* terminal reaches it.
|
|
13
|
+
*/
|
|
14
|
+
export declare function registerSessionTerminalRoutes(app: FastifyInstance, ctx: RouteContext): void;
|
|
15
|
+
//# sourceMappingURL=session-terminals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-terminals.d.ts","sourceRoot":"","sources":["../../src/routes/session-terminals.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAkB9C;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,YAAY,EACnB,KAAK,EAAE,OAAO,GACb,YAAY,GAAG,SAAS,CAsB1B;AAED;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAC3C,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,YAAY,QA4IlB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { FastifyInstance } from "fastify";
|
|
2
|
+
import type { RouteContext } from "../app.js";
|
|
3
|
+
/**
|
|
4
|
+
* Resolves each graph trigger binding's display metadata from the host's
|
|
5
|
+
* registered kinds. Serving-layer concern: the parser only knows kind names.
|
|
6
|
+
*/
|
|
7
|
+
export declare function attachTriggerKindDisplays<Graph extends {
|
|
8
|
+
nodes: Array<{
|
|
9
|
+
triggerBindings?: Array<{
|
|
10
|
+
kind: string;
|
|
11
|
+
display?: {
|
|
12
|
+
label?: string;
|
|
13
|
+
icon?: string;
|
|
14
|
+
color?: string;
|
|
15
|
+
};
|
|
16
|
+
}>;
|
|
17
|
+
}>;
|
|
18
|
+
}>(core: RouteContext["core"], graph: Graph): Graph;
|
|
19
|
+
export declare function registerTriggerRoutes(app: FastifyInstance, ctx: RouteContext): void;
|
|
20
|
+
//# sourceMappingURL=triggers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"triggers.d.ts","sourceRoot":"","sources":["../../src/routes/triggers.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAG/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAc9C;;;GAGG;AACH,wBAAgB,yBAAyB,CACvC,KAAK,SAAS;IACZ,KAAK,EAAE,KAAK,CAAC;QACX,eAAe,CAAC,EAAE,KAAK,CAAC;YACtB,IAAI,EAAE,MAAM,CAAC;YACb,OAAO,CAAC,EAAE;gBAAE,KAAK,CAAC,EAAE,MAAM,CAAC;gBAAC,IAAI,CAAC,EAAE,MAAM,CAAC;gBAAC,KAAK,CAAC,EAAE,MAAM,CAAA;aAAE,CAAC;SAC7D,CAAC,CAAC;KACJ,CAAC,CAAC;CACJ,EACD,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,KAAK,GAAG,KAAK,CASjD;AAED,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,eAAe,EAAE,GAAG,EAAE,YAAY,QAmI5E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"watchers.d.ts","sourceRoot":"","sources":["../../src/routes/watchers.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAW9C,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,eAAe,EAAE,GAAG,EAAE,YAAY,QA4E5E"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { FastifyInstance } from "fastify";
|
|
2
|
+
import type { RouteContext } from "../app.js";
|
|
3
|
+
/**
|
|
4
|
+
* Project webhooks (ADRs 0156, 0171). The intake is public: the token in
|
|
5
|
+
* its path is the sender's credential, checked with the declared
|
|
6
|
+
* verification before anything is stored. A declared handshake is answered
|
|
7
|
+
* 200 with its echoed value; any other request is stored and answered 202.
|
|
8
|
+
* `webhooks:read` lists the URLs; `webhooks:write` rotates their tokens.
|
|
9
|
+
*/
|
|
10
|
+
export declare function registerWebhookRoutes(app: FastifyInstance, ctx: RouteContext): void;
|
|
11
|
+
//# sourceMappingURL=webhooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../../src/routes/webhooks.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,eAAe,EAAkB,MAAM,SAAS,CAAC;AAG/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAY9C;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,YAAY,GAChB,IAAI,CA+HN"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-enablements.d.ts","sourceRoot":"","sources":["../../src/routes/workflow-enablements.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,eAAe,EAAgB,MAAM,SAAS,CAAC;AAG7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAgC9C,wBAAgB,gCAAgC,CAC9C,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,YAAY,GAChB,IAAI,CAuON"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../src/routes/workflows.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAG/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAqB9C,wBAAgB,sBAAsB,CACpC,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,YAAY,QAiSlB"}
|