@bluelibs/runner-dev 4.0.0
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/AI.md +411 -0
- package/README.md +1103 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +58 -0
- package/dist/cli.js.map +1 -0
- package/dist/client/documentation.d.ts +8 -0
- package/dist/client/documentation.js +144 -0
- package/dist/client/documentation.js.map +1 -0
- package/dist/components/Documentation/Documentation.d.ts +8 -0
- package/dist/components/Documentation/Documentation.js +283 -0
- package/dist/components/Documentation/Documentation.js.map +1 -0
- package/dist/components/Documentation/components/DiagnosticsPanel.d.ts +7 -0
- package/dist/components/Documentation/components/DiagnosticsPanel.js +126 -0
- package/dist/components/Documentation/components/DiagnosticsPanel.js.map +1 -0
- package/dist/components/Documentation/components/EventCard.d.ts +8 -0
- package/dist/components/Documentation/components/EventCard.js +164 -0
- package/dist/components/Documentation/components/EventCard.js.map +1 -0
- package/dist/components/Documentation/components/HookCard.d.ts +8 -0
- package/dist/components/Documentation/components/HookCard.js +111 -0
- package/dist/components/Documentation/components/HookCard.js.map +1 -0
- package/dist/components/Documentation/components/MiddlewareCard.d.ts +8 -0
- package/dist/components/Documentation/components/MiddlewareCard.js +159 -0
- package/dist/components/Documentation/components/MiddlewareCard.js.map +1 -0
- package/dist/components/Documentation/components/ResourceCard.d.ts +8 -0
- package/dist/components/Documentation/components/ResourceCard.js +94 -0
- package/dist/components/Documentation/components/ResourceCard.js.map +1 -0
- package/dist/components/Documentation/components/Sidebar.d.ts +13 -0
- package/dist/components/Documentation/components/Sidebar.js +129 -0
- package/dist/components/Documentation/components/Sidebar.js.map +1 -0
- package/dist/components/Documentation/components/TagCard.d.ts +7 -0
- package/dist/components/Documentation/components/TagCard.js +75 -0
- package/dist/components/Documentation/components/TagCard.js.map +1 -0
- package/dist/components/Documentation/components/TaskCard.d.ts +8 -0
- package/dist/components/Documentation/components/TaskCard.js +77 -0
- package/dist/components/Documentation/components/TaskCard.js.map +1 -0
- package/dist/components/Documentation/index.d.ts +2 -0
- package/dist/components/Documentation/index.js +6 -0
- package/dist/components/Documentation/index.js.map +1 -0
- package/dist/components/Documentation/utils/formatting.d.ts +8 -0
- package/dist/components/Documentation/utils/formatting.js +84 -0
- package/dist/components/Documentation/utils/formatting.js.map +1 -0
- package/dist/components/ExampleComponent.d.ts +10 -0
- package/dist/components/ExampleComponent.js +48 -0
- package/dist/components/ExampleComponent.js.map +1 -0
- package/dist/generated/resolvers-types.d.ts +1523 -0
- package/dist/generated/resolvers-types.js +3 -0
- package/dist/generated/resolvers-types.js.map +1 -0
- package/dist/index.d.ts +61 -0
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +3 -0
- package/dist/main.js.map +1 -0
- package/dist/mcp/env.d.ts +5 -0
- package/dist/mcp/env.js +42 -0
- package/dist/mcp/env.js.map +1 -0
- package/dist/mcp/format.d.ts +50 -0
- package/dist/mcp/format.js +249 -0
- package/dist/mcp/format.js.map +1 -0
- package/dist/mcp/help.d.ts +20 -0
- package/dist/mcp/help.js +121 -0
- package/dist/mcp/help.js.map +1 -0
- package/dist/mcp/http.d.ts +6 -0
- package/dist/mcp/http.js +47 -0
- package/dist/mcp/http.js.map +1 -0
- package/dist/mcp/projectOverview.d.ts +2 -0
- package/dist/mcp/projectOverview.js +210 -0
- package/dist/mcp/projectOverview.js.map +1 -0
- package/dist/mcp/schema.d.ts +1 -0
- package/dist/mcp/schema.js +17 -0
- package/dist/mcp/schema.js.map +1 -0
- package/dist/mcp/tools/graphql.introspect.d.ts +2 -0
- package/dist/mcp/tools/graphql.introspect.js +19 -0
- package/dist/mcp/tools/graphql.introspect.js.map +1 -0
- package/dist/mcp/tools/graphql.mutation.d.ts +2 -0
- package/dist/mcp/tools/graphql.mutation.js +43 -0
- package/dist/mcp/tools/graphql.mutation.js.map +1 -0
- package/dist/mcp/tools/graphql.ping.d.ts +2 -0
- package/dist/mcp/tools/graphql.ping.js +23 -0
- package/dist/mcp/tools/graphql.ping.js.map +1 -0
- package/dist/mcp/tools/graphql.query.d.ts +2 -0
- package/dist/mcp/tools/graphql.query.js +42 -0
- package/dist/mcp/tools/graphql.query.js.map +1 -0
- package/dist/mcp/tools/graphql.schemaSdl.d.ts +2 -0
- package/dist/mcp/tools/graphql.schemaSdl.js +15 -0
- package/dist/mcp/tools/graphql.schemaSdl.js.map +1 -0
- package/dist/mcp/tools/help.read.d.ts +2 -0
- package/dist/mcp/tools/help.read.js +67 -0
- package/dist/mcp/tools/help.read.js.map +1 -0
- package/dist/mcp/tools/help.runner.d.ts +2 -0
- package/dist/mcp/tools/help.runner.js +55 -0
- package/dist/mcp/tools/help.runner.js.map +1 -0
- package/dist/mcp/tools/help.runnerDev.d.ts +2 -0
- package/dist/mcp/tools/help.runnerDev.js +56 -0
- package/dist/mcp/tools/help.runnerDev.js.map +1 -0
- package/dist/mcp.d.ts +1 -0
- package/dist/mcp.js +75 -0
- package/dist/mcp.js.map +1 -0
- package/dist/resources/dev.resource.d.ts +5 -0
- package/dist/resources/dev.resource.js +26 -0
- package/dist/resources/dev.resource.js.map +1 -0
- package/dist/resources/docs.generator.resource.d.ts +17 -0
- package/dist/resources/docs.generator.resource.js +230 -0
- package/dist/resources/docs.generator.resource.js.map +1 -0
- package/dist/resources/graphql-accumulator.resource.d.ts +7 -0
- package/dist/resources/graphql-accumulator.resource.js +41 -0
- package/dist/resources/graphql-accumulator.resource.js.map +1 -0
- package/dist/resources/introspector.resource.d.ts +129 -0
- package/dist/resources/introspector.resource.js +266 -0
- package/dist/resources/introspector.resource.js.map +1 -0
- package/dist/resources/introspector.tools.d.ts +47 -0
- package/dist/resources/introspector.tools.js +505 -0
- package/dist/resources/introspector.tools.js.map +1 -0
- package/dist/resources/live.resource.d.ts +80 -0
- package/dist/resources/live.resource.js +231 -0
- package/dist/resources/live.resource.js.map +1 -0
- package/dist/resources/server.resource.d.ts +38 -0
- package/dist/resources/server.resource.js +106 -0
- package/dist/resources/server.resource.js.map +1 -0
- package/dist/resources/swap.resource.d.ts +43 -0
- package/dist/resources/swap.resource.js +251 -0
- package/dist/resources/swap.resource.js.map +1 -0
- package/dist/resources/swap.tools.d.ts +31 -0
- package/dist/resources/swap.tools.js +207 -0
- package/dist/resources/swap.tools.js.map +1 -0
- package/dist/resources/telemetry.chain.d.ts +13 -0
- package/dist/resources/telemetry.chain.js +32 -0
- package/dist/resources/telemetry.chain.js.map +1 -0
- package/dist/resources/telemetry.resource.d.ts +1 -0
- package/dist/resources/telemetry.resource.js +90 -0
- package/dist/resources/telemetry.resource.js.map +1 -0
- package/dist/schema/context.d.ts +11 -0
- package/dist/schema/context.js +3 -0
- package/dist/schema/context.js.map +1 -0
- package/dist/schema/index.d.ts +7 -0
- package/dist/schema/index.js +72 -0
- package/dist/schema/index.js.map +1 -0
- package/dist/schema/model.d.ts +97 -0
- package/dist/schema/model.js +5 -0
- package/dist/schema/model.js.map +1 -0
- package/dist/schema/mutation.d.ts +3 -0
- package/dist/schema/mutation.js +112 -0
- package/dist/schema/mutation.js.map +1 -0
- package/dist/schema/query.d.ts +3 -0
- package/dist/schema/query.js +295 -0
- package/dist/schema/query.js.map +1 -0
- package/dist/schema/types/AllType.d.ts +3 -0
- package/dist/schema/types/AllType.js +149 -0
- package/dist/schema/types/AllType.js.map +1 -0
- package/dist/schema/types/BaseElementCommon.d.ts +11 -0
- package/dist/schema/types/BaseElementCommon.js +61 -0
- package/dist/schema/types/BaseElementCommon.js.map +1 -0
- package/dist/schema/types/DiagnosticsType.d.ts +2 -0
- package/dist/schema/types/DiagnosticsType.js +15 -0
- package/dist/schema/types/DiagnosticsType.js.map +1 -0
- package/dist/schema/types/EventType.d.ts +4 -0
- package/dist/schema/types/EventType.js +97 -0
- package/dist/schema/types/EventType.js.map +1 -0
- package/dist/schema/types/HookType.d.ts +4 -0
- package/dist/schema/types/HookType.js +123 -0
- package/dist/schema/types/HookType.js.map +1 -0
- package/dist/schema/types/LiveType.d.ts +33 -0
- package/dist/schema/types/LiveType.js +553 -0
- package/dist/schema/types/LiveType.js.map +1 -0
- package/dist/schema/types/MetaType.d.ts +3 -0
- package/dist/schema/types/MetaType.js +31 -0
- package/dist/schema/types/MetaType.js.map +1 -0
- package/dist/schema/types/MiddlewareType.d.ts +4 -0
- package/dist/schema/types/MiddlewareType.js +26 -0
- package/dist/schema/types/MiddlewareType.js.map +1 -0
- package/dist/schema/types/ResourceType.d.ts +2 -0
- package/dist/schema/types/ResourceType.js +145 -0
- package/dist/schema/types/ResourceType.js.map +1 -0
- package/dist/schema/types/RunTypes.d.ts +7 -0
- package/dist/schema/types/RunTypes.js +95 -0
- package/dist/schema/types/RunTypes.js.map +1 -0
- package/dist/schema/types/SwapType.d.ts +5 -0
- package/dist/schema/types/SwapType.js +42 -0
- package/dist/schema/types/SwapType.js.map +1 -0
- package/dist/schema/types/TagType.d.ts +6 -0
- package/dist/schema/types/TagType.js +48 -0
- package/dist/schema/types/TagType.js.map +1 -0
- package/dist/schema/types/TaskLikeCommon.d.ts +7 -0
- package/dist/schema/types/TaskLikeCommon.js +86 -0
- package/dist/schema/types/TaskLikeCommon.js.map +1 -0
- package/dist/schema/types/TaskType.d.ts +11 -0
- package/dist/schema/types/TaskType.js +188 -0
- package/dist/schema/types/TaskType.js.map +1 -0
- package/dist/schema/types/index.d.ts +13 -0
- package/dist/schema/types/index.js +44 -0
- package/dist/schema/types/index.js.map +1 -0
- package/dist/schema/types/middleware/UsageTypes.d.ts +3 -0
- package/dist/schema/types/middleware/UsageTypes.js +23 -0
- package/dist/schema/types/middleware/UsageTypes.js.map +1 -0
- package/dist/schema/types/middleware/common.d.ts +6 -0
- package/dist/schema/types/middleware/common.js +156 -0
- package/dist/schema/types/middleware/common.js.map +1 -0
- package/dist/schema/utils.d.ts +12 -0
- package/dist/schema/utils.js +35 -0
- package/dist/schema/utils.js.map +1 -0
- package/dist/ui/index.html +20 -0
- package/dist/ui/static/index-D-NS5aw1.js +40 -0
- package/dist/utils/json-schema-to-readable.d.ts +1 -0
- package/dist/utils/json-schema-to-readable.js +256 -0
- package/dist/utils/json-schema-to-readable.js.map +1 -0
- package/dist/utils/path.d.ts +16 -0
- package/dist/utils/path.js +101 -0
- package/dist/utils/path.js.map +1 -0
- package/dist/utils/react-ssr.d.ts +9 -0
- package/dist/utils/react-ssr.js +36 -0
- package/dist/utils/react-ssr.js.map +1 -0
- package/dist/utils/zod.d.ts +6 -0
- package/dist/utils/zod.js +39 -0
- package/dist/utils/zod.js.map +1 -0
- package/package.json +83 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Store } from "@bluelibs/runner";
|
|
2
|
+
import type { Introspector } from "../resources/introspector.resource";
|
|
3
|
+
import type { Live } from "../resources/live.resource";
|
|
4
|
+
import type { SwapManager } from "../resources/swap.resource";
|
|
5
|
+
export interface CustomGraphQLContext {
|
|
6
|
+
store: Store;
|
|
7
|
+
logger: any;
|
|
8
|
+
introspector: Introspector;
|
|
9
|
+
live: Live;
|
|
10
|
+
swapManager: SwapManager;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/schema/context.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { GraphQLSchema } from "graphql";
|
|
2
|
+
import type { SwapManager } from "../resources/swap.resource";
|
|
3
|
+
export declare const createSchema: (swapManager?: SwapManager) => GraphQLSchema;
|
|
4
|
+
export declare const schema: GraphQLSchema;
|
|
5
|
+
export * from "./types/index";
|
|
6
|
+
export * from "./model";
|
|
7
|
+
export { QueryType } from "./query";
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.QueryType = exports.schema = exports.createSchema = void 0;
|
|
18
|
+
const graphql_1 = require("graphql");
|
|
19
|
+
const query_1 = require("./query");
|
|
20
|
+
const mutation_1 = require("./mutation");
|
|
21
|
+
const index_1 = require("./types/index");
|
|
22
|
+
const createSchema = (swapManager) => {
|
|
23
|
+
return new graphql_1.GraphQLSchema({
|
|
24
|
+
query: query_1.QueryType,
|
|
25
|
+
mutation: mutation_1.MutationType,
|
|
26
|
+
types: [
|
|
27
|
+
index_1.AllType,
|
|
28
|
+
index_1.BaseElementInterface,
|
|
29
|
+
index_1.EventType,
|
|
30
|
+
index_1.HookType,
|
|
31
|
+
index_1.MiddlewareGlobalType,
|
|
32
|
+
index_1.MiddlewareType,
|
|
33
|
+
index_1.TaskMiddlewareType,
|
|
34
|
+
index_1.ResourceMiddlewareType,
|
|
35
|
+
index_1.MetaType,
|
|
36
|
+
index_1.ResourceType,
|
|
37
|
+
index_1.TaskType,
|
|
38
|
+
index_1.LiveType,
|
|
39
|
+
index_1.DiagnosticType,
|
|
40
|
+
index_1.SwapResultType,
|
|
41
|
+
index_1.SwappedTaskType,
|
|
42
|
+
],
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
exports.createSchema = createSchema;
|
|
46
|
+
// Backward compatibility - basic schema without mutations
|
|
47
|
+
exports.schema = new graphql_1.GraphQLSchema({
|
|
48
|
+
query: query_1.QueryType,
|
|
49
|
+
types: [
|
|
50
|
+
index_1.AllType,
|
|
51
|
+
index_1.BaseElementInterface,
|
|
52
|
+
index_1.EventType,
|
|
53
|
+
index_1.HookType,
|
|
54
|
+
index_1.MiddlewareGlobalType,
|
|
55
|
+
index_1.MiddlewareType,
|
|
56
|
+
index_1.TaskMiddlewareType,
|
|
57
|
+
index_1.ResourceMiddlewareType,
|
|
58
|
+
index_1.MetaType,
|
|
59
|
+
index_1.ResourceType,
|
|
60
|
+
index_1.TaskType,
|
|
61
|
+
index_1.LiveType,
|
|
62
|
+
index_1.DiagnosticType,
|
|
63
|
+
index_1.SwapResultType,
|
|
64
|
+
index_1.SwappedTaskType,
|
|
65
|
+
],
|
|
66
|
+
});
|
|
67
|
+
// Re-export all types for external usage
|
|
68
|
+
__exportStar(require("./types/index"), exports);
|
|
69
|
+
__exportStar(require("./model"), exports);
|
|
70
|
+
var query_2 = require("./query");
|
|
71
|
+
Object.defineProperty(exports, "QueryType", { enumerable: true, get: function () { return query_2.QueryType; } });
|
|
72
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qCAAwC;AACxC,mCAAoC;AACpC,yCAA0C;AAE1C,yCAgBuB;AAEhB,MAAM,YAAY,GAAG,CAAC,WAAyB,EAAE,EAAE;IACxD,OAAO,IAAI,uBAAa,CAAC;QACvB,KAAK,EAAE,iBAAS;QAChB,QAAQ,EAAE,uBAAY;QACtB,KAAK,EAAE;YACL,eAAO;YACP,4BAAoB;YACpB,iBAAS;YACT,gBAAQ;YACR,4BAAoB;YACpB,sBAAc;YACd,0BAAkB;YAClB,8BAAsB;YACtB,gBAAQ;YACR,oBAAY;YACZ,gBAAQ;YACR,gBAAQ;YACR,sBAAc;YACd,sBAAc;YACd,uBAAe;SAChB;KACF,CAAC,CAAC;AACL,CAAC,CAAC;AAtBW,QAAA,YAAY,gBAsBvB;AAEF,0DAA0D;AAC7C,QAAA,MAAM,GAAG,IAAI,uBAAa,CAAC;IACtC,KAAK,EAAE,iBAAS;IAChB,KAAK,EAAE;QACL,eAAO;QACP,4BAAoB;QACpB,iBAAS;QACT,gBAAQ;QACR,4BAAoB;QACpB,sBAAc;QACd,0BAAkB;QAClB,8BAAsB;QACtB,gBAAQ;QACR,oBAAY;QACZ,gBAAQ;QACR,gBAAQ;QACR,sBAAc;QACd,sBAAc;QACd,uBAAe;KAChB;CACF,CAAC,CAAC;AAEH,yCAAyC;AACzC,gDAA8B;AAC9B,0CAAwB;AACxB,iCAAoC;AAA3B,kGAAA,SAAS,OAAA"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
export interface TagUsage {
|
|
2
|
+
id: string;
|
|
3
|
+
config?: string | null;
|
|
4
|
+
}
|
|
5
|
+
export interface Meta {
|
|
6
|
+
title?: string | null;
|
|
7
|
+
description?: string | null;
|
|
8
|
+
tags?: string[] | null;
|
|
9
|
+
tagsDetailed?: TagUsage[] | null;
|
|
10
|
+
}
|
|
11
|
+
export interface BaseElement {
|
|
12
|
+
id: string;
|
|
13
|
+
meta?: Meta | null;
|
|
14
|
+
filePath?: string | null;
|
|
15
|
+
registeredBy?: string | null;
|
|
16
|
+
overriddenBy?: string | null;
|
|
17
|
+
}
|
|
18
|
+
export interface All extends BaseElement {
|
|
19
|
+
id: string;
|
|
20
|
+
meta?: Meta | null;
|
|
21
|
+
filePath?: string | null;
|
|
22
|
+
}
|
|
23
|
+
export interface Event extends Omit<BaseElement, "overriddenBy"> {
|
|
24
|
+
id: string;
|
|
25
|
+
meta?: Meta | null;
|
|
26
|
+
filePath?: string | null;
|
|
27
|
+
listenedToBy: string[];
|
|
28
|
+
payloadSchema?: string | null;
|
|
29
|
+
}
|
|
30
|
+
export interface Tag {
|
|
31
|
+
id: string;
|
|
32
|
+
tasks: Task[];
|
|
33
|
+
hooks: Hook[];
|
|
34
|
+
resources: Resource[];
|
|
35
|
+
middlewares: Middleware[];
|
|
36
|
+
events: Event[];
|
|
37
|
+
}
|
|
38
|
+
export type ElementKind = "ALL" | "TASK" | "HOOK" | "RESOURCE" | "MIDDLEWARE" | "EVENT";
|
|
39
|
+
export declare const elementKindSymbol: unique symbol;
|
|
40
|
+
export type WithElementKind<T> = T & {
|
|
41
|
+
[elementKindSymbol]?: ElementKind;
|
|
42
|
+
};
|
|
43
|
+
export interface MiddlewareGlobal {
|
|
44
|
+
enabled: boolean;
|
|
45
|
+
tasks: boolean;
|
|
46
|
+
resources: boolean;
|
|
47
|
+
}
|
|
48
|
+
export interface MiddlewareUsage {
|
|
49
|
+
id: string;
|
|
50
|
+
config?: string | null;
|
|
51
|
+
}
|
|
52
|
+
export interface Middleware extends BaseElement {
|
|
53
|
+
id: string;
|
|
54
|
+
meta?: Meta | null;
|
|
55
|
+
filePath?: string | null;
|
|
56
|
+
global?: MiddlewareGlobal | null;
|
|
57
|
+
usedByTasks: string[];
|
|
58
|
+
usedByResources: string[];
|
|
59
|
+
configSchema?: string | null;
|
|
60
|
+
}
|
|
61
|
+
export interface Task extends BaseElement {
|
|
62
|
+
id: string;
|
|
63
|
+
meta?: Meta | null;
|
|
64
|
+
filePath?: string | null;
|
|
65
|
+
emits: string[];
|
|
66
|
+
dependsOn: string[];
|
|
67
|
+
middleware: string[];
|
|
68
|
+
middlewareDetailed?: MiddlewareUsage[];
|
|
69
|
+
inputSchema?: string | null;
|
|
70
|
+
}
|
|
71
|
+
export interface Hook extends BaseElement {
|
|
72
|
+
event: string;
|
|
73
|
+
hookOrder?: number | null;
|
|
74
|
+
dependsOn: string[];
|
|
75
|
+
emits: string[];
|
|
76
|
+
}
|
|
77
|
+
export interface Resource extends BaseElement {
|
|
78
|
+
id: string;
|
|
79
|
+
meta?: Meta | null;
|
|
80
|
+
filePath?: string | null;
|
|
81
|
+
emits?: string[];
|
|
82
|
+
dependsOn: string[];
|
|
83
|
+
config?: string | null;
|
|
84
|
+
configSchema?: string | null;
|
|
85
|
+
middleware: string[];
|
|
86
|
+
middlewareDetailed?: MiddlewareUsage[];
|
|
87
|
+
overrides: string[];
|
|
88
|
+
registers: string[];
|
|
89
|
+
context?: string | null;
|
|
90
|
+
}
|
|
91
|
+
export interface DiagnosticItem {
|
|
92
|
+
severity: string;
|
|
93
|
+
code: string;
|
|
94
|
+
message: string;
|
|
95
|
+
nodeId?: string;
|
|
96
|
+
nodeKind?: string;
|
|
97
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/schema/model.ts"],"names":[],"mappings":";;;AA2Da,QAAA,iBAAiB,GAAkB,MAAM,CACpD,wBAAwB,CACzB,CAAC"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MutationType = void 0;
|
|
4
|
+
const graphql_1 = require("graphql");
|
|
5
|
+
const SwapType_1 = require("./types/SwapType");
|
|
6
|
+
exports.MutationType = new graphql_1.GraphQLObjectType({
|
|
7
|
+
name: "Mutation",
|
|
8
|
+
description: "Mutations for hot-swapping, restoring and remotely invoking Runner tasks.",
|
|
9
|
+
fields: () => ({
|
|
10
|
+
swapTask: {
|
|
11
|
+
description: "Hot-swaps the `run()` function of a task with new TypeScript or JavaScript code. The new code can be a full function definition, an arrow function, or just the function body.",
|
|
12
|
+
type: new graphql_1.GraphQLNonNull(SwapType_1.SwapResultType),
|
|
13
|
+
args: {
|
|
14
|
+
taskId: {
|
|
15
|
+
description: "Id of the task to swap",
|
|
16
|
+
type: new graphql_1.GraphQLNonNull(graphql_1.GraphQLID),
|
|
17
|
+
},
|
|
18
|
+
runCode: {
|
|
19
|
+
description: "The TypeScript/JavaScript code for the new `run` function. Can be a full function `async function run(input, deps) { ... }`, an arrow function `() => { ... }`, or just the body of the function.",
|
|
20
|
+
type: new graphql_1.GraphQLNonNull(graphql_1.GraphQLString),
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
async resolve(_parent, { taskId, runCode }, ctx) {
|
|
24
|
+
return await ctx.swapManager.swap(taskId, runCode);
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
unswapTask: {
|
|
28
|
+
description: "Restore the original implementation of a previously swapped task.",
|
|
29
|
+
type: new graphql_1.GraphQLNonNull(SwapType_1.SwapResultType),
|
|
30
|
+
args: {
|
|
31
|
+
taskId: {
|
|
32
|
+
description: "Id of the task to restore",
|
|
33
|
+
type: new graphql_1.GraphQLNonNull(graphql_1.GraphQLID),
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
async resolve(_parent, { taskId }, ctx) {
|
|
37
|
+
return await ctx.swapManager.unswap(taskId);
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
unswapAllTasks: {
|
|
41
|
+
description: "Restore all tasks to their original implementations.",
|
|
42
|
+
type: new graphql_1.GraphQLNonNull(new graphql_1.GraphQLList(new graphql_1.GraphQLNonNull(SwapType_1.SwapResultType))),
|
|
43
|
+
args: {},
|
|
44
|
+
async resolve(_parent, _args, ctx) {
|
|
45
|
+
return await ctx.swapManager.unswapAll();
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
invokeTask: {
|
|
49
|
+
description: "Invokes a task remotely with a given input. Supports bypassing middleware for 'pure' execution and evaluating input as JavaScript for dynamic testing.",
|
|
50
|
+
type: new graphql_1.GraphQLNonNull(SwapType_1.InvokeResultType),
|
|
51
|
+
args: {
|
|
52
|
+
taskId: {
|
|
53
|
+
description: "Id of the task to invoke",
|
|
54
|
+
type: new graphql_1.GraphQLNonNull(graphql_1.GraphQLID),
|
|
55
|
+
},
|
|
56
|
+
inputJson: {
|
|
57
|
+
description: "The input for the task, as a string. By default, it's parsed as JSON. If `evalInput` is true, it's evaluated as a JavaScript expression.",
|
|
58
|
+
type: graphql_1.GraphQLString,
|
|
59
|
+
},
|
|
60
|
+
pure: {
|
|
61
|
+
description: "When true, executes the task directly with its dependencies, bypassing the middleware pipeline for a clean, isolated test run.",
|
|
62
|
+
type: graphql_1.GraphQLBoolean,
|
|
63
|
+
defaultValue: false,
|
|
64
|
+
},
|
|
65
|
+
evalInput: {
|
|
66
|
+
description: "When true, `inputJson` is evaluated as a JavaScript expression, allowing for dynamic and complex inputs beyond simple JSON.",
|
|
67
|
+
type: graphql_1.GraphQLBoolean,
|
|
68
|
+
defaultValue: false,
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
async resolve(_parent, { taskId, inputJson, pure, evalInput }, ctx) {
|
|
72
|
+
return await ctx.swapManager.invokeTask(taskId, inputJson, pure, evalInput);
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
eval: {
|
|
76
|
+
description: [
|
|
77
|
+
"Eval context (via the eval mutation):",
|
|
78
|
+
"- User code executes as: async function run(deps)",
|
|
79
|
+
"- deps: provides a minimal, safe context:",
|
|
80
|
+
" - store: Runner store (read-only access patterns recommended)",
|
|
81
|
+
" - eventManager: Runner event manager (read-only access patterns recommended)",
|
|
82
|
+
" - taskRunner: Runner task runner (read-only access patterns recommended)",
|
|
83
|
+
" - introspector: Introspector API for tasks/hooks/resources/middleware/events",
|
|
84
|
+
"",
|
|
85
|
+
"Security: eval is disabled by default in production; enable with RUNNER_DEV_EVAL=1.",
|
|
86
|
+
].join("\n"),
|
|
87
|
+
type: new graphql_1.GraphQLNonNull(SwapType_1.EvalResultType),
|
|
88
|
+
args: {
|
|
89
|
+
code: {
|
|
90
|
+
description: [
|
|
91
|
+
"The JavaScript/TypeScript code to execute. Given access to dependencies",
|
|
92
|
+
"You should pass the complete signature (including async): async function run(deps) { CODE }",
|
|
93
|
+
].join("\n"),
|
|
94
|
+
type: new graphql_1.GraphQLNonNull(graphql_1.GraphQLString),
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
async resolve(_parent, { code }, ctx) {
|
|
98
|
+
// Basic safeguard: allow only in non-production by default
|
|
99
|
+
const allowEval = process.env.RUNNER_DEV_EVAL === "1" ||
|
|
100
|
+
process.env.NODE_ENV !== "production";
|
|
101
|
+
if (!allowEval) {
|
|
102
|
+
return {
|
|
103
|
+
success: false,
|
|
104
|
+
error: "Eval is disabled in this environment",
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
return await ctx.swapManager.runnerEval(code);
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
}),
|
|
111
|
+
});
|
|
112
|
+
//# sourceMappingURL=mutation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mutation.js","sourceRoot":"","sources":["../../src/schema/mutation.ts"],"names":[],"mappings":";;;AAAA,qCAOiB;AACjB,+CAI0B;AAIb,QAAA,YAAY,GAAG,IAAI,2BAAiB,CAAC;IAChD,IAAI,EAAE,UAAU;IAChB,WAAW,EACT,2EAA2E;IAC7E,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;QACb,QAAQ,EAAE;YACR,WAAW,EACT,gLAAgL;YAClL,IAAI,EAAE,IAAI,wBAAc,CAAC,yBAAc,CAAC;YACxC,IAAI,EAAE;gBACJ,MAAM,EAAE;oBACN,WAAW,EAAE,wBAAwB;oBACrC,IAAI,EAAE,IAAI,wBAAc,CAAC,mBAAS,CAAC;iBACpC;gBACD,OAAO,EAAE;oBACP,WAAW,EACT,mMAAmM;oBACrM,IAAI,EAAE,IAAI,wBAAc,CAAC,uBAAa,CAAC;iBACxC;aACF;YACD,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,GAAyB;gBACnE,OAAO,MAAM,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;YACrD,CAAC;SACF;QAED,UAAU,EAAE;YACV,WAAW,EACT,mEAAmE;YACrE,IAAI,EAAE,IAAI,wBAAc,CAAC,yBAAc,CAAC;YACxC,IA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AAC,WAAW,CAAC,UAAU,CACrC,MAAM,EACN,SAAS,EACT,IAAI,EACJ,SAAS,CACV,CAAC;YACJ,CAAC;SACF;QACD,IAAI,EAAE;YACJ,WAAW,EAAE;gBACX,uCAAuC;gBACvC,mDAAmD;gBACnD,2CAA2C;gBAC3C,iEAAiE;gBACjE,gFAAgF;gBAChF,4EAA4E;gBAC5E,gFAAgF;gBAChF,EAAE;gBACF,qFAAqF;aACtF,CAAC,IAAI,CAAC,IAAI,CAAC;YACZ,IAAI,EAAE,IAAI,wBAAc,CAAC,yBAAc,CAAC;YACxC,IAAI,EAAE;gBACJ,IAAI,EAAE;oBACJ,WAAW,EAAE;wBACX,yEAAyE;wBACzE,6FAA6F;qBAC9F,CAAC,IAAI,CAAC,IAAI,CAAC;oBACZ,IAAI,EAAE,IAAI,wBAAc,CAAC,uBAAa,CAAC;iBACxC;aACF;YACD,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,GAAyB;gBACxD,2DAA2D;gBAC3D,MAAM,SAAS,GACb,OAAO,CAAC,GAAG,CAAC,eAAe,KAAK,GAAG;oBACnC,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,CAAC;gBACxC,IAAI,CAAC,SAAS,EAAE,CAAC;oBACf,OAAO;wBACL,OAAO,EAAE,KAAK;wBACd,KAAK,EAAE,sCAAsC;qBAC9C,CAAC;gBACJ,CAAC;gBACD,OAAO,MAAM,GAAG,CAAC,WAAW,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;YAChD,CAAC;SACF;KACF,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QueryType = void 0;
|
|
4
|
+
const graphql_1 = require("graphql");
|
|
5
|
+
const index_1 = require("./types/index");
|
|
6
|
+
const SwapType_1 = require("./types/SwapType");
|
|
7
|
+
const introspector_tools_1 = require("../resources/introspector.tools");
|
|
8
|
+
exports.QueryType = new graphql_1.GraphQLObjectType({
|
|
9
|
+
name: "Query",
|
|
10
|
+
description: "Root queries for introspection, live telemetry, and debugging of Runner apps.",
|
|
11
|
+
fields: () => ({
|
|
12
|
+
tags: {
|
|
13
|
+
description: "List all tags discovered across all elements.",
|
|
14
|
+
type: new graphql_1.GraphQLNonNull(new graphql_1.GraphQLList(new graphql_1.GraphQLNonNull(index_1.TagType))),
|
|
15
|
+
resolve: (_root, _args, ctx) => ctx.introspector.getAllTags(),
|
|
16
|
+
},
|
|
17
|
+
tag: {
|
|
18
|
+
description: "Get reverse usage for a tag id. Returns usedBy lists split by kind.",
|
|
19
|
+
type: new graphql_1.GraphQLNonNull(new graphql_1.GraphQLObjectType({
|
|
20
|
+
name: "TagUsage",
|
|
21
|
+
fields: () => ({
|
|
22
|
+
id: { type: new graphql_1.GraphQLNonNull(graphql_1.GraphQLID) },
|
|
23
|
+
all: {
|
|
24
|
+
type: new graphql_1.GraphQLNonNull(new graphql_1.GraphQLList(new graphql_1.GraphQLNonNull(index_1.BaseElementInterface))),
|
|
25
|
+
},
|
|
26
|
+
tasks: {
|
|
27
|
+
type: new graphql_1.GraphQLNonNull(new graphql_1.GraphQLList(new graphql_1.GraphQLNonNull(index_1.TaskType))),
|
|
28
|
+
},
|
|
29
|
+
hooks: {
|
|
30
|
+
type: new graphql_1.GraphQLNonNull(new graphql_1.GraphQLList(new graphql_1.GraphQLNonNull(index_1.HookType))),
|
|
31
|
+
},
|
|
32
|
+
resources: {
|
|
33
|
+
type: new graphql_1.GraphQLNonNull(new graphql_1.GraphQLList(new graphql_1.GraphQLNonNull(index_1.ResourceType))),
|
|
34
|
+
},
|
|
35
|
+
middlewares: {
|
|
36
|
+
type: new graphql_1.GraphQLNonNull(new graphql_1.GraphQLList(new graphql_1.GraphQLNonNull(index_1.MiddlewareType))),
|
|
37
|
+
},
|
|
38
|
+
events: {
|
|
39
|
+
type: new graphql_1.GraphQLNonNull(new graphql_1.GraphQLList(new graphql_1.GraphQLNonNull(index_1.EventType))),
|
|
40
|
+
},
|
|
41
|
+
}),
|
|
42
|
+
})),
|
|
43
|
+
args: {
|
|
44
|
+
id: { description: "Tag id", type: new graphql_1.GraphQLNonNull(graphql_1.GraphQLID) },
|
|
45
|
+
},
|
|
46
|
+
resolve: (_root, args, ctx) => {
|
|
47
|
+
const id = String(args.id);
|
|
48
|
+
const tasks = ctx.introspector.getTasksWithTag(id);
|
|
49
|
+
const hooks = ctx.introspector.getHooksWithTag(id);
|
|
50
|
+
const resources = ctx.introspector.getResourcesWithTag(id);
|
|
51
|
+
const middlewares = ctx.introspector.getMiddlewaresWithTag(id);
|
|
52
|
+
const events = ctx.introspector.getEventsWithTag(id);
|
|
53
|
+
return {
|
|
54
|
+
id,
|
|
55
|
+
all: [...tasks, ...hooks, ...resources, ...middlewares, ...events],
|
|
56
|
+
tasks,
|
|
57
|
+
hooks,
|
|
58
|
+
resources,
|
|
59
|
+
middlewares,
|
|
60
|
+
events,
|
|
61
|
+
};
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
root: {
|
|
65
|
+
description: "Root application 'resource'. This is what the main run() received as argument.",
|
|
66
|
+
type: index_1.ResourceType,
|
|
67
|
+
resolve: (_root, _args, ctx) => ctx.introspector.getRoot(),
|
|
68
|
+
},
|
|
69
|
+
all: {
|
|
70
|
+
description: "Unified view of all elements (tasks, hooks, resources, middleware, events). Prefer specific queries for efficiency.",
|
|
71
|
+
type: new graphql_1.GraphQLNonNull(new graphql_1.GraphQLList(new graphql_1.GraphQLNonNull(index_1.BaseElementInterface))),
|
|
72
|
+
args: {
|
|
73
|
+
idIncludes: {
|
|
74
|
+
description: "Return only elements whose id contains this substring.",
|
|
75
|
+
type: graphql_1.GraphQLID,
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
resolve: (_root, args, ctx) => {
|
|
79
|
+
let result = [
|
|
80
|
+
...ctx.introspector.getTasks(),
|
|
81
|
+
...ctx.introspector.getHooks(),
|
|
82
|
+
...ctx.introspector.getResources(),
|
|
83
|
+
...ctx.introspector.getMiddlewares(),
|
|
84
|
+
...ctx.introspector.getEvents(),
|
|
85
|
+
];
|
|
86
|
+
if (args?.idIncludes) {
|
|
87
|
+
const sub = String(args.idIncludes);
|
|
88
|
+
result = result.filter((e) => String(e.id).includes(sub));
|
|
89
|
+
}
|
|
90
|
+
return result;
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
event: {
|
|
94
|
+
description: "Get a single event by its id.",
|
|
95
|
+
type: index_1.EventType,
|
|
96
|
+
args: {
|
|
97
|
+
id: {
|
|
98
|
+
description: "Event id",
|
|
99
|
+
type: new graphql_1.GraphQLNonNull(graphql_1.GraphQLID),
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
resolve: (_root, args, ctx) => ctx.introspector.getEvent(args.id),
|
|
103
|
+
},
|
|
104
|
+
events: {
|
|
105
|
+
description: "List events with optional filters.",
|
|
106
|
+
type: new graphql_1.GraphQLNonNull(new graphql_1.GraphQLList(new graphql_1.GraphQLNonNull(index_1.EventType))),
|
|
107
|
+
args: {
|
|
108
|
+
filter: {
|
|
109
|
+
description: "Filter events. Use hideSystem to hide internal/system events.",
|
|
110
|
+
type: index_1.EventFilterInput,
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
resolve: (_root, args, ctx) => {
|
|
114
|
+
let result = ctx.introspector.getEvents();
|
|
115
|
+
const filter = args.filter || {
|
|
116
|
+
hideSystem: false,
|
|
117
|
+
hasNoHooks: false,
|
|
118
|
+
idIncludes: undefined,
|
|
119
|
+
};
|
|
120
|
+
if (filter.hideSystem) {
|
|
121
|
+
result = result.filter((e) => !e.id.startsWith("runner-dev.") &&
|
|
122
|
+
!e.id.startsWith("globals.events") &&
|
|
123
|
+
!(0, introspector_tools_1.isSystemEventId)(e.id));
|
|
124
|
+
}
|
|
125
|
+
if (filter.idIncludes) {
|
|
126
|
+
const sub = String(filter.idIncludes);
|
|
127
|
+
result = result.filter((e) => String(e.id).includes(sub));
|
|
128
|
+
}
|
|
129
|
+
if (typeof filter.hasNoHooks === "boolean") {
|
|
130
|
+
result = result.filter((e) => filter.hasNoHooks
|
|
131
|
+
? (e.listenedToBy ?? []).length === 0
|
|
132
|
+
: (e.listenedToBy ?? []).length > 0);
|
|
133
|
+
}
|
|
134
|
+
return result;
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
task: {
|
|
138
|
+
description: "Get a single task by its id.",
|
|
139
|
+
type: index_1.TaskType,
|
|
140
|
+
args: {
|
|
141
|
+
id: {
|
|
142
|
+
description: "Task id",
|
|
143
|
+
type: new graphql_1.GraphQLNonNull(graphql_1.GraphQLID),
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
resolve: (_root, args, ctx) => ctx.introspector.getTask(args.id),
|
|
147
|
+
},
|
|
148
|
+
tasks: {
|
|
149
|
+
description: "Get all tasks (optionally filter by id prefix).",
|
|
150
|
+
type: new graphql_1.GraphQLNonNull(new graphql_1.GraphQLList(new graphql_1.GraphQLNonNull(index_1.TaskType))),
|
|
151
|
+
args: {
|
|
152
|
+
idIncludes: {
|
|
153
|
+
description: "Return only tasks whose id contains this substring.",
|
|
154
|
+
type: graphql_1.GraphQLID,
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
resolve: (_root, args, ctx) => {
|
|
158
|
+
let result = ctx.introspector.getTasks();
|
|
159
|
+
if (args?.idIncludes) {
|
|
160
|
+
const sub = String(args.idIncludes);
|
|
161
|
+
result = result.filter((t) => String(t.id).includes(sub));
|
|
162
|
+
}
|
|
163
|
+
return result;
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
hooks: {
|
|
167
|
+
description: "Get all hooks (optionally filter by id prefix).",
|
|
168
|
+
type: new graphql_1.GraphQLNonNull(new graphql_1.GraphQLList(new graphql_1.GraphQLNonNull(index_1.HookType))),
|
|
169
|
+
args: {
|
|
170
|
+
idIncludes: {
|
|
171
|
+
description: "Return only hooks whose id contains this substring.",
|
|
172
|
+
type: graphql_1.GraphQLID,
|
|
173
|
+
},
|
|
174
|
+
},
|
|
175
|
+
resolve: (_root, args, ctx) => {
|
|
176
|
+
let result = ctx.introspector.getHooks();
|
|
177
|
+
if (args?.idIncludes) {
|
|
178
|
+
const sub = String(args.idIncludes);
|
|
179
|
+
result = result.filter((l) => String(l.id).includes(sub));
|
|
180
|
+
}
|
|
181
|
+
return result;
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
middleware: {
|
|
185
|
+
description: "Get a single middleware by its id.",
|
|
186
|
+
type: index_1.MiddlewareType,
|
|
187
|
+
args: {
|
|
188
|
+
id: {
|
|
189
|
+
description: "Middleware id",
|
|
190
|
+
type: new graphql_1.GraphQLNonNull(graphql_1.GraphQLID),
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
resolve: (_root, args, ctx) => ctx.introspector.getMiddleware(args.id),
|
|
194
|
+
},
|
|
195
|
+
middlewares: {
|
|
196
|
+
description: "Get all middleware (optionally filter by id prefix).",
|
|
197
|
+
type: new graphql_1.GraphQLNonNull(new graphql_1.GraphQLList(new graphql_1.GraphQLNonNull(index_1.MiddlewareType))),
|
|
198
|
+
args: {
|
|
199
|
+
idIncludes: {
|
|
200
|
+
description: "Return only middleware whose id contains this substring.",
|
|
201
|
+
type: graphql_1.GraphQLID,
|
|
202
|
+
},
|
|
203
|
+
},
|
|
204
|
+
resolve: (_root, args, ctx) => {
|
|
205
|
+
let result = ctx.introspector.getMiddlewares();
|
|
206
|
+
if (args?.idIncludes) {
|
|
207
|
+
const sub = String(args.idIncludes);
|
|
208
|
+
result = result.filter((m) => String(m.id).includes(sub));
|
|
209
|
+
}
|
|
210
|
+
return result;
|
|
211
|
+
},
|
|
212
|
+
},
|
|
213
|
+
taskMiddlewares: {
|
|
214
|
+
description: "Get all task middlewares (optionally filter by id prefix).",
|
|
215
|
+
type: new graphql_1.GraphQLNonNull(new graphql_1.GraphQLList(new graphql_1.GraphQLNonNull(index_1.TaskMiddlewareType))),
|
|
216
|
+
args: {
|
|
217
|
+
idIncludes: {
|
|
218
|
+
description: "Return only middlewares whose id contains this substring.",
|
|
219
|
+
type: graphql_1.GraphQLID,
|
|
220
|
+
},
|
|
221
|
+
},
|
|
222
|
+
resolve: (_root, args, ctx) => {
|
|
223
|
+
let result = ctx.introspector.getTaskMiddlewares();
|
|
224
|
+
if (args?.idIncludes) {
|
|
225
|
+
const sub = String(args.idIncludes);
|
|
226
|
+
result = result.filter((m) => String(m.id).includes(sub));
|
|
227
|
+
}
|
|
228
|
+
return result;
|
|
229
|
+
},
|
|
230
|
+
},
|
|
231
|
+
resourceMiddlewares: {
|
|
232
|
+
description: "Get all resource middlewares (optionally filter by id prefix).",
|
|
233
|
+
type: new graphql_1.GraphQLNonNull(new graphql_1.GraphQLList(new graphql_1.GraphQLNonNull(index_1.ResourceMiddlewareType))),
|
|
234
|
+
args: {
|
|
235
|
+
idIncludes: {
|
|
236
|
+
description: "Return only middlewares whose id contains this substring.",
|
|
237
|
+
type: graphql_1.GraphQLID,
|
|
238
|
+
},
|
|
239
|
+
},
|
|
240
|
+
resolve: (_root, args, ctx) => {
|
|
241
|
+
let result = ctx.introspector.getResourceMiddlewares();
|
|
242
|
+
if (args?.idIncludes) {
|
|
243
|
+
const sub = String(args.idIncludes);
|
|
244
|
+
result = result.filter((m) => String(m.id).includes(sub));
|
|
245
|
+
}
|
|
246
|
+
return result;
|
|
247
|
+
},
|
|
248
|
+
},
|
|
249
|
+
resource: {
|
|
250
|
+
description: "Get a single resource by its id.",
|
|
251
|
+
type: index_1.ResourceType,
|
|
252
|
+
args: {
|
|
253
|
+
id: {
|
|
254
|
+
description: "Resource id",
|
|
255
|
+
type: new graphql_1.GraphQLNonNull(graphql_1.GraphQLID),
|
|
256
|
+
},
|
|
257
|
+
},
|
|
258
|
+
resolve: (_root, args, ctx) => ctx.introspector.getResource(args.id),
|
|
259
|
+
},
|
|
260
|
+
resources: {
|
|
261
|
+
description: "Get all resources (optionally filter by id prefix).",
|
|
262
|
+
type: new graphql_1.GraphQLNonNull(new graphql_1.GraphQLList(new graphql_1.GraphQLNonNull(index_1.ResourceType))),
|
|
263
|
+
args: {
|
|
264
|
+
idIncludes: {
|
|
265
|
+
description: "Return only resources whose id contains this substring.",
|
|
266
|
+
type: graphql_1.GraphQLID,
|
|
267
|
+
},
|
|
268
|
+
},
|
|
269
|
+
resolve: (_root, args, ctx) => {
|
|
270
|
+
let result = ctx.introspector.getResources();
|
|
271
|
+
if (args?.idIncludes) {
|
|
272
|
+
const sub = String(args.idIncludes);
|
|
273
|
+
result = result.filter((r) => String(r.id).includes(sub));
|
|
274
|
+
}
|
|
275
|
+
return result;
|
|
276
|
+
},
|
|
277
|
+
},
|
|
278
|
+
live: {
|
|
279
|
+
description: "Access live telemetry (logs, emissions, errors, runs, system stats). Always use filters and last to limit payload.",
|
|
280
|
+
type: new graphql_1.GraphQLNonNull(index_1.LiveType),
|
|
281
|
+
resolve: () => ({}),
|
|
282
|
+
},
|
|
283
|
+
diagnostics: {
|
|
284
|
+
description: "Diagnostics for potential issues discovered by the introspector.",
|
|
285
|
+
type: new graphql_1.GraphQLNonNull(new graphql_1.GraphQLList(new graphql_1.GraphQLNonNull(index_1.DiagnosticType))),
|
|
286
|
+
resolve: (_root, _args, ctx) => ctx.introspector.getDiagnostics(),
|
|
287
|
+
},
|
|
288
|
+
swappedTasks: {
|
|
289
|
+
description: "List of tasks currently hot-swapped.",
|
|
290
|
+
type: new graphql_1.GraphQLNonNull(new graphql_1.GraphQLList(new graphql_1.GraphQLNonNull(SwapType_1.SwappedTaskType))),
|
|
291
|
+
resolve: (_root, _args, ctx) => ctx.swapManager.getSwappedTasks(),
|
|
292
|
+
},
|
|
293
|
+
}),
|
|
294
|
+
});
|
|
295
|
+
//# sourceMappingURL=query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../src/schema/query.ts"],"names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