@copilotkit/runtime 1.5.15-next.3 → 1.5.15-next.5
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/CHANGELOG.md +16 -0
- package/__snapshots__/schema/schema.graphql +26 -0
- package/dist/{chunk-WPJHMQDF.mjs → chunk-6AZ56PM7.mjs} +2 -2
- package/dist/{chunk-KPOZF6JI.mjs → chunk-AKPE4ICY.mjs} +2 -2
- package/dist/{chunk-EV3MMEAZ.mjs → chunk-IARJ7RBP.mjs} +513 -295
- package/dist/chunk-IARJ7RBP.mjs.map +1 -0
- package/dist/{chunk-I2OII4XX.mjs → chunk-NKM2XMY5.mjs} +2 -2
- package/dist/{copilot-runtime-e6c34790.d.ts → copilot-runtime-a113045f.d.ts} +13 -1
- package/dist/{groq-adapter-acb6ed0b.d.ts → groq-adapter-248058e8.d.ts} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +787 -571
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/{langserve-9614171f.d.ts → langserve-9580bd66.d.ts} +16 -2
- package/dist/lib/index.d.ts +3 -3
- package/dist/lib/index.js +787 -571
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +4 -4
- package/dist/lib/integrations/index.d.ts +3 -3
- package/dist/lib/integrations/index.js +500 -319
- package/dist/lib/integrations/index.js.map +1 -1
- package/dist/lib/integrations/index.mjs +4 -4
- package/dist/lib/integrations/nest/index.d.ts +2 -2
- package/dist/lib/integrations/nest/index.js +500 -319
- package/dist/lib/integrations/nest/index.js.map +1 -1
- package/dist/lib/integrations/nest/index.mjs +2 -2
- package/dist/lib/integrations/node-express/index.d.ts +2 -2
- package/dist/lib/integrations/node-express/index.js +500 -319
- package/dist/lib/integrations/node-express/index.js.map +1 -1
- package/dist/lib/integrations/node-express/index.mjs +2 -2
- package/dist/lib/integrations/node-http/index.d.ts +2 -2
- package/dist/lib/integrations/node-http/index.js +500 -319
- package/dist/lib/integrations/node-http/index.js.map +1 -1
- package/dist/lib/integrations/node-http/index.mjs +1 -1
- package/dist/service-adapters/index.d.ts +3 -3
- package/package.json +3 -3
- package/src/agents/langgraph/event-source.ts +14 -2
- package/src/agents/langgraph/events.ts +12 -1
- package/src/graphql/inputs/generate-copilot-response.input.ts +4 -0
- package/src/graphql/inputs/meta-event.input.ts +17 -0
- package/src/graphql/resolvers/copilot.resolver.ts +67 -22
- package/src/graphql/types/copilot-response.type.ts +6 -0
- package/src/graphql/types/meta-events.type.ts +31 -0
- package/src/lib/runtime/copilot-runtime.ts +4 -0
- package/src/lib/runtime/remote-action-constructors.ts +5 -1
- package/src/lib/runtime/remote-actions.ts +2 -0
- package/src/lib/runtime/remote-lg-action.ts +35 -8
- package/src/service-adapters/events.ts +20 -1
- package/dist/chunk-EV3MMEAZ.mjs.map +0 -1
- /package/dist/{chunk-WPJHMQDF.mjs.map → chunk-6AZ56PM7.mjs.map} +0 -0
- /package/dist/{chunk-KPOZF6JI.mjs.map → chunk-AKPE4ICY.mjs.map} +0 -0
- /package/dist/{chunk-I2OII4XX.mjs.map → chunk-NKM2XMY5.mjs.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -44,7 +44,7 @@ var require_package = __commonJS({
|
|
|
44
44
|
publishConfig: {
|
|
45
45
|
access: "public"
|
|
46
46
|
},
|
|
47
|
-
version: "1.5.15-next.
|
|
47
|
+
version: "1.5.15-next.5",
|
|
48
48
|
sideEffects: false,
|
|
49
49
|
main: "./dist/index.js",
|
|
50
50
|
module: "./dist/index.mjs",
|
|
@@ -87,7 +87,7 @@ var require_package = __commonJS({
|
|
|
87
87
|
"@langchain/community": "^0.0.53",
|
|
88
88
|
"@langchain/core": "^0.3.13",
|
|
89
89
|
"@langchain/google-gauth": "^0.1.0",
|
|
90
|
-
"@langchain/langgraph-sdk": "^0.0.
|
|
90
|
+
"@langchain/langgraph-sdk": "^0.0.36",
|
|
91
91
|
"@langchain/openai": "^0.0.28",
|
|
92
92
|
"class-transformer": "^0.5.1",
|
|
93
93
|
express: "^4.19.2",
|
|
@@ -1590,7 +1590,12 @@ var LangGraphEventTypes;
|
|
|
1590
1590
|
LangGraphEventTypes2["OnCopilotKitEmitMessage"] = "on_copilotkit_emit_message";
|
|
1591
1591
|
LangGraphEventTypes2["OnCopilotKitEmitToolCall"] = "on_copilotkit_emit_tool_call";
|
|
1592
1592
|
LangGraphEventTypes2["OnCustomEvent"] = "on_custom_event";
|
|
1593
|
+
LangGraphEventTypes2["OnInterrupt"] = "on_interrupt";
|
|
1593
1594
|
})(LangGraphEventTypes || (LangGraphEventTypes = {}));
|
|
1595
|
+
var MetaEventNames;
|
|
1596
|
+
(function(MetaEventNames2) {
|
|
1597
|
+
MetaEventNames2["LangGraphInterruptEvent"] = "LangGraphInterruptEvent";
|
|
1598
|
+
})(MetaEventNames || (MetaEventNames = {}));
|
|
1594
1599
|
var CustomEventNames;
|
|
1595
1600
|
(function(CustomEventNames2) {
|
|
1596
1601
|
CustomEventNames2["CopilotKitManuallyEmitMessage"] = "copilotkit_manually_emit_message";
|
|
@@ -1687,6 +1692,13 @@ var RemoteLangGraphEventSource = class {
|
|
|
1687
1692
|
shouldEmitMessages = acc.event.metadata["copilotkit:emit-messages"];
|
|
1688
1693
|
}
|
|
1689
1694
|
}
|
|
1695
|
+
if (acc.event.event === LangGraphEventTypes.OnInterrupt) {
|
|
1696
|
+
events.push({
|
|
1697
|
+
type: RuntimeEventTypes.MetaEvent,
|
|
1698
|
+
name: RuntimeMetaEventName.LangGraphInterruptEvent,
|
|
1699
|
+
value: acc.event.value
|
|
1700
|
+
});
|
|
1701
|
+
}
|
|
1690
1702
|
const responseMetadata = this.getResponseMetadata(acc.event);
|
|
1691
1703
|
if ((responseMetadata == null ? void 0 : responseMetadata.finish_reason) === "tool_calls" && this.shouldEmitToolCall(shouldEmitToolCalls, acc.lastToolCallName)) {
|
|
1692
1704
|
events.push({
|
|
@@ -1854,6 +1866,74 @@ var ActionInputAvailability;
|
|
|
1854
1866
|
description: "The availability of the frontend action"
|
|
1855
1867
|
});
|
|
1856
1868
|
|
|
1869
|
+
// src/graphql/types/meta-events.type.ts
|
|
1870
|
+
var import_type_graphql2 = require("type-graphql");
|
|
1871
|
+
function _ts_decorate(decorators, target, key, desc) {
|
|
1872
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1873
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1874
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
1875
|
+
else
|
|
1876
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
1877
|
+
if (d = decorators[i])
|
|
1878
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1879
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1880
|
+
}
|
|
1881
|
+
__name(_ts_decorate, "_ts_decorate");
|
|
1882
|
+
function _ts_metadata(k, v) {
|
|
1883
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
1884
|
+
return Reflect.metadata(k, v);
|
|
1885
|
+
}
|
|
1886
|
+
__name(_ts_metadata, "_ts_metadata");
|
|
1887
|
+
var MetaEventName;
|
|
1888
|
+
(function(MetaEventName2) {
|
|
1889
|
+
MetaEventName2["LangGraphInterruptEvent"] = "LangGraphInterruptEvent";
|
|
1890
|
+
})(MetaEventName || (MetaEventName = {}));
|
|
1891
|
+
(0, import_type_graphql2.registerEnumType)(MetaEventName, {
|
|
1892
|
+
name: "MetaEventName",
|
|
1893
|
+
description: "Meta event types"
|
|
1894
|
+
});
|
|
1895
|
+
var BaseMetaEvent = class {
|
|
1896
|
+
type = "MetaEvent";
|
|
1897
|
+
name;
|
|
1898
|
+
};
|
|
1899
|
+
__name(BaseMetaEvent, "BaseMetaEvent");
|
|
1900
|
+
_ts_decorate([
|
|
1901
|
+
(0, import_type_graphql2.Field)(() => String),
|
|
1902
|
+
_ts_metadata("design:type", String)
|
|
1903
|
+
], BaseMetaEvent.prototype, "type", void 0);
|
|
1904
|
+
_ts_decorate([
|
|
1905
|
+
(0, import_type_graphql2.Field)(() => MetaEventName),
|
|
1906
|
+
_ts_metadata("design:type", String)
|
|
1907
|
+
], BaseMetaEvent.prototype, "name", void 0);
|
|
1908
|
+
BaseMetaEvent = _ts_decorate([
|
|
1909
|
+
(0, import_type_graphql2.InterfaceType)()
|
|
1910
|
+
], BaseMetaEvent);
|
|
1911
|
+
var LangGraphInterruptEvent = class {
|
|
1912
|
+
name = "LangGraphInterruptEvent";
|
|
1913
|
+
value;
|
|
1914
|
+
response;
|
|
1915
|
+
};
|
|
1916
|
+
__name(LangGraphInterruptEvent, "LangGraphInterruptEvent");
|
|
1917
|
+
_ts_decorate([
|
|
1918
|
+
(0, import_type_graphql2.Field)(() => MetaEventName),
|
|
1919
|
+
_ts_metadata("design:type", typeof MetaEventName === "undefined" || false ? Object : "LangGraphInterruptEvent")
|
|
1920
|
+
], LangGraphInterruptEvent.prototype, "name", void 0);
|
|
1921
|
+
_ts_decorate([
|
|
1922
|
+
(0, import_type_graphql2.Field)(() => String),
|
|
1923
|
+
_ts_metadata("design:type", String)
|
|
1924
|
+
], LangGraphInterruptEvent.prototype, "value", void 0);
|
|
1925
|
+
_ts_decorate([
|
|
1926
|
+
(0, import_type_graphql2.Field)(() => String, {
|
|
1927
|
+
nullable: true
|
|
1928
|
+
}),
|
|
1929
|
+
_ts_metadata("design:type", String)
|
|
1930
|
+
], LangGraphInterruptEvent.prototype, "response", void 0);
|
|
1931
|
+
LangGraphInterruptEvent = _ts_decorate([
|
|
1932
|
+
(0, import_type_graphql2.ObjectType)({
|
|
1933
|
+
implements: BaseMetaEvent
|
|
1934
|
+
})
|
|
1935
|
+
], LangGraphInterruptEvent);
|
|
1936
|
+
|
|
1857
1937
|
// src/lib/runtime/remote-lg-action.ts
|
|
1858
1938
|
async function execute(args) {
|
|
1859
1939
|
return new ReadableStream({
|
|
@@ -1868,8 +1948,8 @@ async function execute(args) {
|
|
|
1868
1948
|
}
|
|
1869
1949
|
__name(execute, "execute");
|
|
1870
1950
|
async function streamEvents(controller, args) {
|
|
1871
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1872
|
-
const { deploymentUrl, langsmithApiKey, threadId: argsInitialThreadId, agent, nodeName: initialNodeName, state: initialState, messages, actions, logger: logger2, properties } = args;
|
|
1951
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1952
|
+
const { deploymentUrl, langsmithApiKey, threadId: argsInitialThreadId, agent, nodeName: initialNodeName, state: initialState, messages, actions, logger: logger2, properties, metaEvents } = args;
|
|
1873
1953
|
let nodeName = initialNodeName;
|
|
1874
1954
|
let state = initialState;
|
|
1875
1955
|
const { name, assistantId: initialAssistantId } = agent;
|
|
@@ -1915,7 +1995,8 @@ async function streamEvents(controller, args) {
|
|
|
1915
1995
|
logger2.error(e, `Error event thrown: ${e.message}`);
|
|
1916
1996
|
}
|
|
1917
1997
|
state = langGraphDefaultMergeState(state, formattedMessages, actions, name);
|
|
1918
|
-
|
|
1998
|
+
const lgInterruptEvent = metaEvents == null ? void 0 : metaEvents.find((ev) => ev.name === MetaEventName.LangGraphInterruptEvent);
|
|
1999
|
+
if (mode === "continue" && !lgInterruptEvent) {
|
|
1919
2000
|
await client.threads.updateState(threadId, {
|
|
1920
2001
|
values: state,
|
|
1921
2002
|
asNode: nodeName
|
|
@@ -1948,13 +2029,21 @@ async function streamEvents(controller, args) {
|
|
|
1948
2029
|
let emitIntermediateStateUntilEnd = null;
|
|
1949
2030
|
let shouldExit = false;
|
|
1950
2031
|
let externalRunId = null;
|
|
1951
|
-
const
|
|
2032
|
+
const payload = {
|
|
1952
2033
|
input: streamInput,
|
|
1953
2034
|
streamMode: [
|
|
1954
2035
|
"events",
|
|
1955
|
-
"values"
|
|
1956
|
-
|
|
1957
|
-
|
|
2036
|
+
"values",
|
|
2037
|
+
"updates"
|
|
2038
|
+
],
|
|
2039
|
+
command: void 0
|
|
2040
|
+
};
|
|
2041
|
+
if (lgInterruptEvent == null ? void 0 : lgInterruptEvent.response) {
|
|
2042
|
+
payload.command = {
|
|
2043
|
+
resume: lgInterruptEvent.response
|
|
2044
|
+
};
|
|
2045
|
+
}
|
|
2046
|
+
const streamResponse2 = client.runs.stream(threadId, assistantId, payload);
|
|
1958
2047
|
const emit = /* @__PURE__ */ __name((message) => controller.enqueue(new TextEncoder().encode(message)), "emit");
|
|
1959
2048
|
let latestStateValues = {};
|
|
1960
2049
|
let updatedState = state;
|
|
@@ -1967,12 +2056,22 @@ async function streamEvents(controller, args) {
|
|
|
1967
2056
|
if (![
|
|
1968
2057
|
"events",
|
|
1969
2058
|
"values",
|
|
1970
|
-
"error"
|
|
2059
|
+
"error",
|
|
2060
|
+
"updates"
|
|
1971
2061
|
].includes(chunk.event))
|
|
1972
2062
|
continue;
|
|
1973
2063
|
if (chunk.event === "error") {
|
|
1974
2064
|
throw new Error(`Error event thrown: ${chunk.data.message}`);
|
|
1975
2065
|
}
|
|
2066
|
+
if (chunk.event === "updates" && chunk.data.__interrupt__) {
|
|
2067
|
+
emit(JSON.stringify({
|
|
2068
|
+
event: LangGraphEventTypes.OnInterrupt,
|
|
2069
|
+
value: chunk.data.__interrupt__[0].value
|
|
2070
|
+
}) + "\n");
|
|
2071
|
+
continue;
|
|
2072
|
+
}
|
|
2073
|
+
if (chunk.event === "updates")
|
|
2074
|
+
continue;
|
|
1976
2075
|
if (chunk.event === "values") {
|
|
1977
2076
|
latestStateValues = chunk.data;
|
|
1978
2077
|
continue;
|
|
@@ -2053,8 +2152,9 @@ async function streamEvents(controller, args) {
|
|
|
2053
2152
|
emit(JSON.stringify(event) + "\n");
|
|
2054
2153
|
}
|
|
2055
2154
|
state = await client.threads.getState(threadId);
|
|
2056
|
-
const
|
|
2057
|
-
nodeName = Object.keys(state.metadata.writes)[0];
|
|
2155
|
+
const interrupts = (_h = (_g = state.tasks) == null ? void 0 : _g[0]) == null ? void 0 : _h.interrupts;
|
|
2156
|
+
nodeName = interrupts ? nodeName : Object.keys(state.metadata.writes)[0];
|
|
2157
|
+
const isEndNode = state.next.length === 0 && !interrupts;
|
|
2058
2158
|
telemetry_client_default.capture("oss.runtime.agent_execution_stream_ended", streamInfo);
|
|
2059
2159
|
emit(getStateSyncEvent({
|
|
2060
2160
|
threadId,
|
|
@@ -2335,7 +2435,7 @@ function constructLGCRemoteAction({ endpoint, graphqlContext, logger: logger2, m
|
|
|
2335
2435
|
parameters: [],
|
|
2336
2436
|
handler: async (_args) => {
|
|
2337
2437
|
},
|
|
2338
|
-
langGraphAgentHandler: async ({ name, actionInputsWithoutAgents, threadId, nodeName, additionalMessages = [] }) => {
|
|
2438
|
+
langGraphAgentHandler: async ({ name, actionInputsWithoutAgents, threadId, nodeName, additionalMessages = [], metaEvents }) => {
|
|
2339
2439
|
var _a;
|
|
2340
2440
|
logger2.debug({
|
|
2341
2441
|
actionName: agent.name
|
|
@@ -2355,7 +2455,9 @@ function constructLGCRemoteAction({ endpoint, graphqlContext, logger: logger2, m
|
|
|
2355
2455
|
}
|
|
2356
2456
|
try {
|
|
2357
2457
|
const response = await execute({
|
|
2358
|
-
logger: logger2
|
|
2458
|
+
logger: logger2.child({
|
|
2459
|
+
component: "remote-actions.remote-lg-action.streamEvents"
|
|
2460
|
+
}),
|
|
2359
2461
|
deploymentUrl: endpoint.deploymentUrl,
|
|
2360
2462
|
langsmithApiKey: endpoint.langsmithApiKey,
|
|
2361
2463
|
agent,
|
|
@@ -2371,7 +2473,8 @@ function constructLGCRemoteAction({ endpoint, graphqlContext, logger: logger2, m
|
|
|
2371
2473
|
name: action.name,
|
|
2372
2474
|
description: action.description,
|
|
2373
2475
|
parameters: JSON.parse(action.jsonSchema)
|
|
2374
|
-
}))
|
|
2476
|
+
})),
|
|
2477
|
+
metaEvents
|
|
2375
2478
|
});
|
|
2376
2479
|
const eventSource = new RemoteLangGraphEventSource();
|
|
2377
2480
|
streamResponse(response, eventSource.eventStream$);
|
|
@@ -2451,7 +2554,7 @@ function constructRemoteActions({ json, url, onBeforeRequest, graphqlContext, lo
|
|
|
2451
2554
|
parameters: [],
|
|
2452
2555
|
handler: async (_args) => {
|
|
2453
2556
|
},
|
|
2454
|
-
langGraphAgentHandler: async ({ name, actionInputsWithoutAgents, threadId, nodeName, additionalMessages = [] }) => {
|
|
2557
|
+
langGraphAgentHandler: async ({ name, actionInputsWithoutAgents, threadId, nodeName, additionalMessages = [], metaEvents }) => {
|
|
2455
2558
|
var _a;
|
|
2456
2559
|
logger2.debug({
|
|
2457
2560
|
actionName: agent.name
|
|
@@ -2488,7 +2591,8 @@ function constructRemoteActions({ json, url, onBeforeRequest, graphqlContext, lo
|
|
|
2488
2591
|
name: action.name,
|
|
2489
2592
|
description: action.description,
|
|
2490
2593
|
parameters: JSON.parse(action.jsonSchema)
|
|
2491
|
-
}))
|
|
2594
|
+
})),
|
|
2595
|
+
metaEvents
|
|
2492
2596
|
})
|
|
2493
2597
|
});
|
|
2494
2598
|
if (!response.ok) {
|
|
@@ -2736,8 +2840,8 @@ __name(getRuntimeInstanceTelemetryInfo, "getRuntimeInstanceTelemetryInfo");
|
|
|
2736
2840
|
var telemetry_client_default = telemetryClient;
|
|
2737
2841
|
|
|
2738
2842
|
// src/graphql/types/base/index.ts
|
|
2739
|
-
var
|
|
2740
|
-
function
|
|
2843
|
+
var import_type_graphql3 = require("type-graphql");
|
|
2844
|
+
function _ts_decorate2(decorators, target, key, desc) {
|
|
2741
2845
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2742
2846
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
2743
2847
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -2747,27 +2851,27 @@ function _ts_decorate(decorators, target, key, desc) {
|
|
|
2747
2851
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2748
2852
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2749
2853
|
}
|
|
2750
|
-
__name(
|
|
2751
|
-
function
|
|
2854
|
+
__name(_ts_decorate2, "_ts_decorate");
|
|
2855
|
+
function _ts_metadata2(k, v) {
|
|
2752
2856
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
2753
2857
|
return Reflect.metadata(k, v);
|
|
2754
2858
|
}
|
|
2755
|
-
__name(
|
|
2859
|
+
__name(_ts_metadata2, "_ts_metadata");
|
|
2756
2860
|
var BaseMessageInput = class {
|
|
2757
2861
|
id;
|
|
2758
2862
|
createdAt;
|
|
2759
2863
|
};
|
|
2760
2864
|
__name(BaseMessageInput, "BaseMessageInput");
|
|
2761
|
-
|
|
2762
|
-
(0,
|
|
2763
|
-
|
|
2865
|
+
_ts_decorate2([
|
|
2866
|
+
(0, import_type_graphql3.Field)(() => String),
|
|
2867
|
+
_ts_metadata2("design:type", String)
|
|
2764
2868
|
], BaseMessageInput.prototype, "id", void 0);
|
|
2765
|
-
|
|
2766
|
-
(0,
|
|
2767
|
-
|
|
2869
|
+
_ts_decorate2([
|
|
2870
|
+
(0, import_type_graphql3.Field)(() => Date),
|
|
2871
|
+
_ts_metadata2("design:type", typeof Date === "undefined" ? Object : Date)
|
|
2768
2872
|
], BaseMessageInput.prototype, "createdAt", void 0);
|
|
2769
|
-
BaseMessageInput =
|
|
2770
|
-
(0,
|
|
2873
|
+
BaseMessageInput = _ts_decorate2([
|
|
2874
|
+
(0, import_type_graphql3.InputType)()
|
|
2771
2875
|
], BaseMessageInput);
|
|
2772
2876
|
|
|
2773
2877
|
// src/graphql/types/converted/index.ts
|
|
@@ -2896,7 +3000,13 @@ var RuntimeEventTypes;
|
|
|
2896
3000
|
RuntimeEventTypes2["ActionExecutionEnd"] = "ActionExecutionEnd";
|
|
2897
3001
|
RuntimeEventTypes2["ActionExecutionResult"] = "ActionExecutionResult";
|
|
2898
3002
|
RuntimeEventTypes2["AgentStateMessage"] = "AgentStateMessage";
|
|
3003
|
+
RuntimeEventTypes2["MetaEvent"] = "MetaEvent";
|
|
2899
3004
|
})(RuntimeEventTypes || (RuntimeEventTypes = {}));
|
|
3005
|
+
var RuntimeMetaEventName;
|
|
3006
|
+
(function(RuntimeMetaEventName2) {
|
|
3007
|
+
RuntimeMetaEventName2["LangGraphInterruptEvent"] = "LangGraphInterruptEvent";
|
|
3008
|
+
RuntimeMetaEventName2["LangGraphInterruptResumeEvent"] = "LangGraphInterruptResumeEvent";
|
|
3009
|
+
})(RuntimeMetaEventName || (RuntimeMetaEventName = {}));
|
|
2900
3010
|
var RuntimeEventSubject = class extends import_rxjs2.ReplaySubject {
|
|
2901
3011
|
constructor() {
|
|
2902
3012
|
super();
|
|
@@ -3442,7 +3552,7 @@ please use an LLM adapter instead.`
|
|
|
3442
3552
|
}
|
|
3443
3553
|
async processAgentRequest(request) {
|
|
3444
3554
|
var _a;
|
|
3445
|
-
const { messages: rawMessages, outputMessagesPromise, graphqlContext, agentSession, threadId: threadIdFromRequest } = request;
|
|
3555
|
+
const { messages: rawMessages, outputMessagesPromise, graphqlContext, agentSession, threadId: threadIdFromRequest, metaEvents } = request;
|
|
3446
3556
|
const { agentName, nodeName } = agentSession;
|
|
3447
3557
|
const threadId = threadIdFromRequest ?? agentSession.threadId;
|
|
3448
3558
|
const serverSideActions = await this.getServerSideActions(request);
|
|
@@ -3474,7 +3584,8 @@ please use an LLM adapter instead.`
|
|
|
3474
3584
|
name: agentName,
|
|
3475
3585
|
threadId,
|
|
3476
3586
|
nodeName,
|
|
3477
|
-
actionInputsWithoutAgents
|
|
3587
|
+
actionInputsWithoutAgents,
|
|
3588
|
+
metaEvents
|
|
3478
3589
|
});
|
|
3479
3590
|
eventSource.stream(async (eventStream$) => {
|
|
3480
3591
|
(0, import_rxjs3.from)(stream).subscribe({
|
|
@@ -3584,18 +3695,18 @@ function resolveEndpointType(endpoint) {
|
|
|
3584
3695
|
__name(resolveEndpointType, "resolveEndpointType");
|
|
3585
3696
|
|
|
3586
3697
|
// src/lib/integrations/shared.ts
|
|
3587
|
-
var
|
|
3698
|
+
var import_type_graphql26 = require("type-graphql");
|
|
3588
3699
|
|
|
3589
3700
|
// src/graphql/resolvers/copilot.resolver.ts
|
|
3590
|
-
var
|
|
3701
|
+
var import_type_graphql20 = require("type-graphql");
|
|
3591
3702
|
var import_rxjs4 = require("rxjs");
|
|
3592
3703
|
|
|
3593
3704
|
// src/graphql/inputs/generate-copilot-response.input.ts
|
|
3594
|
-
var
|
|
3705
|
+
var import_type_graphql14 = require("type-graphql");
|
|
3595
3706
|
|
|
3596
3707
|
// src/graphql/inputs/message.input.ts
|
|
3597
|
-
var
|
|
3598
|
-
function
|
|
3708
|
+
var import_type_graphql4 = require("type-graphql");
|
|
3709
|
+
function _ts_decorate3(decorators, target, key, desc) {
|
|
3599
3710
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3600
3711
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3601
3712
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3605,12 +3716,12 @@ function _ts_decorate2(decorators, target, key, desc) {
|
|
|
3605
3716
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3606
3717
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3607
3718
|
}
|
|
3608
|
-
__name(
|
|
3609
|
-
function
|
|
3719
|
+
__name(_ts_decorate3, "_ts_decorate");
|
|
3720
|
+
function _ts_metadata3(k, v) {
|
|
3610
3721
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
3611
3722
|
return Reflect.metadata(k, v);
|
|
3612
3723
|
}
|
|
3613
|
-
__name(
|
|
3724
|
+
__name(_ts_metadata3, "_ts_metadata");
|
|
3614
3725
|
var MessageInput = class extends BaseMessageInput {
|
|
3615
3726
|
textMessage;
|
|
3616
3727
|
actionExecutionMessage;
|
|
@@ -3618,32 +3729,32 @@ var MessageInput = class extends BaseMessageInput {
|
|
|
3618
3729
|
agentStateMessage;
|
|
3619
3730
|
};
|
|
3620
3731
|
__name(MessageInput, "MessageInput");
|
|
3621
|
-
|
|
3622
|
-
(0,
|
|
3732
|
+
_ts_decorate3([
|
|
3733
|
+
(0, import_type_graphql4.Field)(() => TextMessageInput, {
|
|
3623
3734
|
nullable: true
|
|
3624
3735
|
}),
|
|
3625
|
-
|
|
3736
|
+
_ts_metadata3("design:type", typeof TextMessageInput === "undefined" ? Object : TextMessageInput)
|
|
3626
3737
|
], MessageInput.prototype, "textMessage", void 0);
|
|
3627
|
-
|
|
3628
|
-
(0,
|
|
3738
|
+
_ts_decorate3([
|
|
3739
|
+
(0, import_type_graphql4.Field)(() => ActionExecutionMessageInput, {
|
|
3629
3740
|
nullable: true
|
|
3630
3741
|
}),
|
|
3631
|
-
|
|
3742
|
+
_ts_metadata3("design:type", typeof ActionExecutionMessageInput === "undefined" ? Object : ActionExecutionMessageInput)
|
|
3632
3743
|
], MessageInput.prototype, "actionExecutionMessage", void 0);
|
|
3633
|
-
|
|
3634
|
-
(0,
|
|
3744
|
+
_ts_decorate3([
|
|
3745
|
+
(0, import_type_graphql4.Field)(() => ResultMessageInput, {
|
|
3635
3746
|
nullable: true
|
|
3636
3747
|
}),
|
|
3637
|
-
|
|
3748
|
+
_ts_metadata3("design:type", typeof ResultMessageInput === "undefined" ? Object : ResultMessageInput)
|
|
3638
3749
|
], MessageInput.prototype, "resultMessage", void 0);
|
|
3639
|
-
|
|
3640
|
-
(0,
|
|
3750
|
+
_ts_decorate3([
|
|
3751
|
+
(0, import_type_graphql4.Field)(() => AgentStateMessageInput, {
|
|
3641
3752
|
nullable: true
|
|
3642
3753
|
}),
|
|
3643
|
-
|
|
3754
|
+
_ts_metadata3("design:type", typeof AgentStateMessageInput === "undefined" ? Object : AgentStateMessageInput)
|
|
3644
3755
|
], MessageInput.prototype, "agentStateMessage", void 0);
|
|
3645
|
-
MessageInput =
|
|
3646
|
-
(0,
|
|
3756
|
+
MessageInput = _ts_decorate3([
|
|
3757
|
+
(0, import_type_graphql4.InputType)()
|
|
3647
3758
|
], MessageInput);
|
|
3648
3759
|
var TextMessageInput = class {
|
|
3649
3760
|
content;
|
|
@@ -3651,22 +3762,22 @@ var TextMessageInput = class {
|
|
|
3651
3762
|
role;
|
|
3652
3763
|
};
|
|
3653
3764
|
__name(TextMessageInput, "TextMessageInput");
|
|
3654
|
-
|
|
3655
|
-
(0,
|
|
3656
|
-
|
|
3765
|
+
_ts_decorate3([
|
|
3766
|
+
(0, import_type_graphql4.Field)(() => String),
|
|
3767
|
+
_ts_metadata3("design:type", String)
|
|
3657
3768
|
], TextMessageInput.prototype, "content", void 0);
|
|
3658
|
-
|
|
3659
|
-
(0,
|
|
3769
|
+
_ts_decorate3([
|
|
3770
|
+
(0, import_type_graphql4.Field)(() => String, {
|
|
3660
3771
|
nullable: true
|
|
3661
3772
|
}),
|
|
3662
|
-
|
|
3773
|
+
_ts_metadata3("design:type", String)
|
|
3663
3774
|
], TextMessageInput.prototype, "parentMessageId", void 0);
|
|
3664
|
-
|
|
3665
|
-
(0,
|
|
3666
|
-
|
|
3775
|
+
_ts_decorate3([
|
|
3776
|
+
(0, import_type_graphql4.Field)(() => MessageRole),
|
|
3777
|
+
_ts_metadata3("design:type", typeof MessageRole === "undefined" ? Object : MessageRole)
|
|
3667
3778
|
], TextMessageInput.prototype, "role", void 0);
|
|
3668
|
-
TextMessageInput =
|
|
3669
|
-
(0,
|
|
3779
|
+
TextMessageInput = _ts_decorate3([
|
|
3780
|
+
(0, import_type_graphql4.InputType)()
|
|
3670
3781
|
], TextMessageInput);
|
|
3671
3782
|
var ActionExecutionMessageInput = class {
|
|
3672
3783
|
name;
|
|
@@ -3675,29 +3786,29 @@ var ActionExecutionMessageInput = class {
|
|
|
3675
3786
|
scope;
|
|
3676
3787
|
};
|
|
3677
3788
|
__name(ActionExecutionMessageInput, "ActionExecutionMessageInput");
|
|
3678
|
-
|
|
3679
|
-
(0,
|
|
3680
|
-
|
|
3789
|
+
_ts_decorate3([
|
|
3790
|
+
(0, import_type_graphql4.Field)(() => String),
|
|
3791
|
+
_ts_metadata3("design:type", String)
|
|
3681
3792
|
], ActionExecutionMessageInput.prototype, "name", void 0);
|
|
3682
|
-
|
|
3683
|
-
(0,
|
|
3684
|
-
|
|
3793
|
+
_ts_decorate3([
|
|
3794
|
+
(0, import_type_graphql4.Field)(() => String),
|
|
3795
|
+
_ts_metadata3("design:type", String)
|
|
3685
3796
|
], ActionExecutionMessageInput.prototype, "arguments", void 0);
|
|
3686
|
-
|
|
3687
|
-
(0,
|
|
3797
|
+
_ts_decorate3([
|
|
3798
|
+
(0, import_type_graphql4.Field)(() => String, {
|
|
3688
3799
|
nullable: true
|
|
3689
3800
|
}),
|
|
3690
|
-
|
|
3801
|
+
_ts_metadata3("design:type", String)
|
|
3691
3802
|
], ActionExecutionMessageInput.prototype, "parentMessageId", void 0);
|
|
3692
|
-
|
|
3693
|
-
(0,
|
|
3803
|
+
_ts_decorate3([
|
|
3804
|
+
(0, import_type_graphql4.Field)(() => String, {
|
|
3694
3805
|
nullable: true,
|
|
3695
3806
|
deprecationReason: "This field will be removed in a future version"
|
|
3696
3807
|
}),
|
|
3697
|
-
|
|
3808
|
+
_ts_metadata3("design:type", typeof String === "undefined" ? Object : String)
|
|
3698
3809
|
], ActionExecutionMessageInput.prototype, "scope", void 0);
|
|
3699
|
-
ActionExecutionMessageInput =
|
|
3700
|
-
(0,
|
|
3810
|
+
ActionExecutionMessageInput = _ts_decorate3([
|
|
3811
|
+
(0, import_type_graphql4.InputType)()
|
|
3701
3812
|
], ActionExecutionMessageInput);
|
|
3702
3813
|
var ResultMessageInput = class {
|
|
3703
3814
|
actionExecutionId;
|
|
@@ -3706,26 +3817,26 @@ var ResultMessageInput = class {
|
|
|
3706
3817
|
result;
|
|
3707
3818
|
};
|
|
3708
3819
|
__name(ResultMessageInput, "ResultMessageInput");
|
|
3709
|
-
|
|
3710
|
-
(0,
|
|
3711
|
-
|
|
3820
|
+
_ts_decorate3([
|
|
3821
|
+
(0, import_type_graphql4.Field)(() => String),
|
|
3822
|
+
_ts_metadata3("design:type", String)
|
|
3712
3823
|
], ResultMessageInput.prototype, "actionExecutionId", void 0);
|
|
3713
|
-
|
|
3714
|
-
(0,
|
|
3715
|
-
|
|
3824
|
+
_ts_decorate3([
|
|
3825
|
+
(0, import_type_graphql4.Field)(() => String),
|
|
3826
|
+
_ts_metadata3("design:type", String)
|
|
3716
3827
|
], ResultMessageInput.prototype, "actionName", void 0);
|
|
3717
|
-
|
|
3718
|
-
(0,
|
|
3828
|
+
_ts_decorate3([
|
|
3829
|
+
(0, import_type_graphql4.Field)(() => String, {
|
|
3719
3830
|
nullable: true
|
|
3720
3831
|
}),
|
|
3721
|
-
|
|
3832
|
+
_ts_metadata3("design:type", String)
|
|
3722
3833
|
], ResultMessageInput.prototype, "parentMessageId", void 0);
|
|
3723
|
-
|
|
3724
|
-
(0,
|
|
3725
|
-
|
|
3834
|
+
_ts_decorate3([
|
|
3835
|
+
(0, import_type_graphql4.Field)(() => String),
|
|
3836
|
+
_ts_metadata3("design:type", String)
|
|
3726
3837
|
], ResultMessageInput.prototype, "result", void 0);
|
|
3727
|
-
ResultMessageInput =
|
|
3728
|
-
(0,
|
|
3838
|
+
ResultMessageInput = _ts_decorate3([
|
|
3839
|
+
(0, import_type_graphql4.InputType)()
|
|
3729
3840
|
], ResultMessageInput);
|
|
3730
3841
|
var AgentStateMessageInput = class {
|
|
3731
3842
|
threadId;
|
|
@@ -3738,48 +3849,48 @@ var AgentStateMessageInput = class {
|
|
|
3738
3849
|
active;
|
|
3739
3850
|
};
|
|
3740
3851
|
__name(AgentStateMessageInput, "AgentStateMessageInput");
|
|
3741
|
-
|
|
3742
|
-
(0,
|
|
3743
|
-
|
|
3852
|
+
_ts_decorate3([
|
|
3853
|
+
(0, import_type_graphql4.Field)(() => String),
|
|
3854
|
+
_ts_metadata3("design:type", String)
|
|
3744
3855
|
], AgentStateMessageInput.prototype, "threadId", void 0);
|
|
3745
|
-
|
|
3746
|
-
(0,
|
|
3747
|
-
|
|
3856
|
+
_ts_decorate3([
|
|
3857
|
+
(0, import_type_graphql4.Field)(() => String),
|
|
3858
|
+
_ts_metadata3("design:type", String)
|
|
3748
3859
|
], AgentStateMessageInput.prototype, "agentName", void 0);
|
|
3749
|
-
|
|
3750
|
-
(0,
|
|
3751
|
-
|
|
3860
|
+
_ts_decorate3([
|
|
3861
|
+
(0, import_type_graphql4.Field)(() => MessageRole),
|
|
3862
|
+
_ts_metadata3("design:type", typeof MessageRole === "undefined" ? Object : MessageRole)
|
|
3752
3863
|
], AgentStateMessageInput.prototype, "role", void 0);
|
|
3753
|
-
|
|
3754
|
-
(0,
|
|
3755
|
-
|
|
3864
|
+
_ts_decorate3([
|
|
3865
|
+
(0, import_type_graphql4.Field)(() => String),
|
|
3866
|
+
_ts_metadata3("design:type", String)
|
|
3756
3867
|
], AgentStateMessageInput.prototype, "state", void 0);
|
|
3757
|
-
|
|
3758
|
-
(0,
|
|
3759
|
-
|
|
3868
|
+
_ts_decorate3([
|
|
3869
|
+
(0, import_type_graphql4.Field)(() => Boolean),
|
|
3870
|
+
_ts_metadata3("design:type", Boolean)
|
|
3760
3871
|
], AgentStateMessageInput.prototype, "running", void 0);
|
|
3761
|
-
|
|
3762
|
-
(0,
|
|
3763
|
-
|
|
3872
|
+
_ts_decorate3([
|
|
3873
|
+
(0, import_type_graphql4.Field)(() => String),
|
|
3874
|
+
_ts_metadata3("design:type", String)
|
|
3764
3875
|
], AgentStateMessageInput.prototype, "nodeName", void 0);
|
|
3765
|
-
|
|
3766
|
-
(0,
|
|
3767
|
-
|
|
3876
|
+
_ts_decorate3([
|
|
3877
|
+
(0, import_type_graphql4.Field)(() => String),
|
|
3878
|
+
_ts_metadata3("design:type", String)
|
|
3768
3879
|
], AgentStateMessageInput.prototype, "runId", void 0);
|
|
3769
|
-
|
|
3770
|
-
(0,
|
|
3771
|
-
|
|
3880
|
+
_ts_decorate3([
|
|
3881
|
+
(0, import_type_graphql4.Field)(() => Boolean),
|
|
3882
|
+
_ts_metadata3("design:type", Boolean)
|
|
3772
3883
|
], AgentStateMessageInput.prototype, "active", void 0);
|
|
3773
|
-
AgentStateMessageInput =
|
|
3774
|
-
(0,
|
|
3884
|
+
AgentStateMessageInput = _ts_decorate3([
|
|
3885
|
+
(0, import_type_graphql4.InputType)()
|
|
3775
3886
|
], AgentStateMessageInput);
|
|
3776
3887
|
|
|
3777
3888
|
// src/graphql/inputs/frontend.input.ts
|
|
3778
|
-
var
|
|
3889
|
+
var import_type_graphql6 = require("type-graphql");
|
|
3779
3890
|
|
|
3780
3891
|
// src/graphql/inputs/action.input.ts
|
|
3781
|
-
var
|
|
3782
|
-
function
|
|
3892
|
+
var import_type_graphql5 = require("type-graphql");
|
|
3893
|
+
function _ts_decorate4(decorators, target, key, desc) {
|
|
3783
3894
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3784
3895
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3785
3896
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3789,12 +3900,12 @@ function _ts_decorate3(decorators, target, key, desc) {
|
|
|
3789
3900
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3790
3901
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3791
3902
|
}
|
|
3792
|
-
__name(
|
|
3793
|
-
function
|
|
3903
|
+
__name(_ts_decorate4, "_ts_decorate");
|
|
3904
|
+
function _ts_metadata4(k, v) {
|
|
3794
3905
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
3795
3906
|
return Reflect.metadata(k, v);
|
|
3796
3907
|
}
|
|
3797
|
-
__name(
|
|
3908
|
+
__name(_ts_metadata4, "_ts_metadata");
|
|
3798
3909
|
var ActionInput = class {
|
|
3799
3910
|
name;
|
|
3800
3911
|
description;
|
|
@@ -3802,30 +3913,30 @@ var ActionInput = class {
|
|
|
3802
3913
|
available;
|
|
3803
3914
|
};
|
|
3804
3915
|
__name(ActionInput, "ActionInput");
|
|
3805
|
-
|
|
3806
|
-
(0,
|
|
3807
|
-
|
|
3916
|
+
_ts_decorate4([
|
|
3917
|
+
(0, import_type_graphql5.Field)(() => String),
|
|
3918
|
+
_ts_metadata4("design:type", String)
|
|
3808
3919
|
], ActionInput.prototype, "name", void 0);
|
|
3809
|
-
|
|
3810
|
-
(0,
|
|
3811
|
-
|
|
3920
|
+
_ts_decorate4([
|
|
3921
|
+
(0, import_type_graphql5.Field)(() => String),
|
|
3922
|
+
_ts_metadata4("design:type", String)
|
|
3812
3923
|
], ActionInput.prototype, "description", void 0);
|
|
3813
|
-
|
|
3814
|
-
(0,
|
|
3815
|
-
|
|
3924
|
+
_ts_decorate4([
|
|
3925
|
+
(0, import_type_graphql5.Field)(() => String),
|
|
3926
|
+
_ts_metadata4("design:type", String)
|
|
3816
3927
|
], ActionInput.prototype, "jsonSchema", void 0);
|
|
3817
|
-
|
|
3818
|
-
(0,
|
|
3928
|
+
_ts_decorate4([
|
|
3929
|
+
(0, import_type_graphql5.Field)(() => ActionInputAvailability, {
|
|
3819
3930
|
nullable: true
|
|
3820
3931
|
}),
|
|
3821
|
-
|
|
3932
|
+
_ts_metadata4("design:type", typeof ActionInputAvailability === "undefined" ? Object : ActionInputAvailability)
|
|
3822
3933
|
], ActionInput.prototype, "available", void 0);
|
|
3823
|
-
ActionInput =
|
|
3824
|
-
(0,
|
|
3934
|
+
ActionInput = _ts_decorate4([
|
|
3935
|
+
(0, import_type_graphql5.InputType)()
|
|
3825
3936
|
], ActionInput);
|
|
3826
3937
|
|
|
3827
3938
|
// src/graphql/inputs/frontend.input.ts
|
|
3828
|
-
function
|
|
3939
|
+
function _ts_decorate5(decorators, target, key, desc) {
|
|
3829
3940
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3830
3941
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3831
3942
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3835,46 +3946,46 @@ function _ts_decorate4(decorators, target, key, desc) {
|
|
|
3835
3946
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3836
3947
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3837
3948
|
}
|
|
3838
|
-
__name(
|
|
3839
|
-
function
|
|
3949
|
+
__name(_ts_decorate5, "_ts_decorate");
|
|
3950
|
+
function _ts_metadata5(k, v) {
|
|
3840
3951
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
3841
3952
|
return Reflect.metadata(k, v);
|
|
3842
3953
|
}
|
|
3843
|
-
__name(
|
|
3954
|
+
__name(_ts_metadata5, "_ts_metadata");
|
|
3844
3955
|
var FrontendInput = class {
|
|
3845
3956
|
toDeprecate_fullContext;
|
|
3846
3957
|
actions;
|
|
3847
3958
|
url;
|
|
3848
3959
|
};
|
|
3849
3960
|
__name(FrontendInput, "FrontendInput");
|
|
3850
|
-
|
|
3851
|
-
(0,
|
|
3961
|
+
_ts_decorate5([
|
|
3962
|
+
(0, import_type_graphql6.Field)(() => String, {
|
|
3852
3963
|
nullable: true
|
|
3853
3964
|
}),
|
|
3854
|
-
|
|
3965
|
+
_ts_metadata5("design:type", String)
|
|
3855
3966
|
], FrontendInput.prototype, "toDeprecate_fullContext", void 0);
|
|
3856
|
-
|
|
3857
|
-
(0,
|
|
3967
|
+
_ts_decorate5([
|
|
3968
|
+
(0, import_type_graphql6.Field)(() => [
|
|
3858
3969
|
ActionInput
|
|
3859
3970
|
]),
|
|
3860
|
-
|
|
3971
|
+
_ts_metadata5("design:type", Array)
|
|
3861
3972
|
], FrontendInput.prototype, "actions", void 0);
|
|
3862
|
-
|
|
3863
|
-
(0,
|
|
3973
|
+
_ts_decorate5([
|
|
3974
|
+
(0, import_type_graphql6.Field)(() => String, {
|
|
3864
3975
|
nullable: true
|
|
3865
3976
|
}),
|
|
3866
|
-
|
|
3977
|
+
_ts_metadata5("design:type", String)
|
|
3867
3978
|
], FrontendInput.prototype, "url", void 0);
|
|
3868
|
-
FrontendInput =
|
|
3869
|
-
(0,
|
|
3979
|
+
FrontendInput = _ts_decorate5([
|
|
3980
|
+
(0, import_type_graphql6.InputType)()
|
|
3870
3981
|
], FrontendInput);
|
|
3871
3982
|
|
|
3872
3983
|
// src/graphql/inputs/cloud.input.ts
|
|
3873
|
-
var
|
|
3984
|
+
var import_type_graphql8 = require("type-graphql");
|
|
3874
3985
|
|
|
3875
3986
|
// src/graphql/inputs/cloud-guardrails.input.ts
|
|
3876
|
-
var
|
|
3877
|
-
function
|
|
3987
|
+
var import_type_graphql7 = require("type-graphql");
|
|
3988
|
+
function _ts_decorate6(decorators, target, key, desc) {
|
|
3878
3989
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3879
3990
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3880
3991
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3884,52 +3995,52 @@ function _ts_decorate5(decorators, target, key, desc) {
|
|
|
3884
3995
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3885
3996
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3886
3997
|
}
|
|
3887
|
-
__name(
|
|
3888
|
-
function
|
|
3998
|
+
__name(_ts_decorate6, "_ts_decorate");
|
|
3999
|
+
function _ts_metadata6(k, v) {
|
|
3889
4000
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
3890
4001
|
return Reflect.metadata(k, v);
|
|
3891
4002
|
}
|
|
3892
|
-
__name(
|
|
4003
|
+
__name(_ts_metadata6, "_ts_metadata");
|
|
3893
4004
|
var GuardrailsRuleInput = class {
|
|
3894
4005
|
allowList = [];
|
|
3895
4006
|
denyList = [];
|
|
3896
4007
|
};
|
|
3897
4008
|
__name(GuardrailsRuleInput, "GuardrailsRuleInput");
|
|
3898
|
-
|
|
3899
|
-
(0,
|
|
4009
|
+
_ts_decorate6([
|
|
4010
|
+
(0, import_type_graphql7.Field)(() => [
|
|
3900
4011
|
String
|
|
3901
4012
|
], {
|
|
3902
4013
|
nullable: true
|
|
3903
4014
|
}),
|
|
3904
|
-
|
|
4015
|
+
_ts_metadata6("design:type", Array)
|
|
3905
4016
|
], GuardrailsRuleInput.prototype, "allowList", void 0);
|
|
3906
|
-
|
|
3907
|
-
(0,
|
|
4017
|
+
_ts_decorate6([
|
|
4018
|
+
(0, import_type_graphql7.Field)(() => [
|
|
3908
4019
|
String
|
|
3909
4020
|
], {
|
|
3910
4021
|
nullable: true
|
|
3911
4022
|
}),
|
|
3912
|
-
|
|
4023
|
+
_ts_metadata6("design:type", Array)
|
|
3913
4024
|
], GuardrailsRuleInput.prototype, "denyList", void 0);
|
|
3914
|
-
GuardrailsRuleInput =
|
|
3915
|
-
(0,
|
|
4025
|
+
GuardrailsRuleInput = _ts_decorate6([
|
|
4026
|
+
(0, import_type_graphql7.InputType)()
|
|
3916
4027
|
], GuardrailsRuleInput);
|
|
3917
4028
|
var GuardrailsInput = class {
|
|
3918
4029
|
inputValidationRules;
|
|
3919
4030
|
};
|
|
3920
4031
|
__name(GuardrailsInput, "GuardrailsInput");
|
|
3921
|
-
|
|
3922
|
-
(0,
|
|
4032
|
+
_ts_decorate6([
|
|
4033
|
+
(0, import_type_graphql7.Field)(() => GuardrailsRuleInput, {
|
|
3923
4034
|
nullable: false
|
|
3924
4035
|
}),
|
|
3925
|
-
|
|
4036
|
+
_ts_metadata6("design:type", typeof GuardrailsRuleInput === "undefined" ? Object : GuardrailsRuleInput)
|
|
3926
4037
|
], GuardrailsInput.prototype, "inputValidationRules", void 0);
|
|
3927
|
-
GuardrailsInput =
|
|
3928
|
-
(0,
|
|
4038
|
+
GuardrailsInput = _ts_decorate6([
|
|
4039
|
+
(0, import_type_graphql7.InputType)()
|
|
3929
4040
|
], GuardrailsInput);
|
|
3930
4041
|
|
|
3931
4042
|
// src/graphql/inputs/cloud.input.ts
|
|
3932
|
-
function
|
|
4043
|
+
function _ts_decorate7(decorators, target, key, desc) {
|
|
3933
4044
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3934
4045
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3935
4046
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3939,29 +4050,29 @@ function _ts_decorate6(decorators, target, key, desc) {
|
|
|
3939
4050
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3940
4051
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3941
4052
|
}
|
|
3942
|
-
__name(
|
|
3943
|
-
function
|
|
4053
|
+
__name(_ts_decorate7, "_ts_decorate");
|
|
4054
|
+
function _ts_metadata7(k, v) {
|
|
3944
4055
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
3945
4056
|
return Reflect.metadata(k, v);
|
|
3946
4057
|
}
|
|
3947
|
-
__name(
|
|
4058
|
+
__name(_ts_metadata7, "_ts_metadata");
|
|
3948
4059
|
var CloudInput = class {
|
|
3949
4060
|
guardrails;
|
|
3950
4061
|
};
|
|
3951
4062
|
__name(CloudInput, "CloudInput");
|
|
3952
|
-
|
|
3953
|
-
(0,
|
|
4063
|
+
_ts_decorate7([
|
|
4064
|
+
(0, import_type_graphql8.Field)(() => GuardrailsInput, {
|
|
3954
4065
|
nullable: true
|
|
3955
4066
|
}),
|
|
3956
|
-
|
|
4067
|
+
_ts_metadata7("design:type", typeof GuardrailsInput === "undefined" ? Object : GuardrailsInput)
|
|
3957
4068
|
], CloudInput.prototype, "guardrails", void 0);
|
|
3958
|
-
CloudInput =
|
|
3959
|
-
(0,
|
|
4069
|
+
CloudInput = _ts_decorate7([
|
|
4070
|
+
(0, import_type_graphql8.InputType)()
|
|
3960
4071
|
], CloudInput);
|
|
3961
4072
|
|
|
3962
4073
|
// src/graphql/inputs/forwarded-parameters.input.ts
|
|
3963
|
-
var
|
|
3964
|
-
function
|
|
4074
|
+
var import_type_graphql9 = require("type-graphql");
|
|
4075
|
+
function _ts_decorate8(decorators, target, key, desc) {
|
|
3965
4076
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3966
4077
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3967
4078
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3971,12 +4082,12 @@ function _ts_decorate7(decorators, target, key, desc) {
|
|
|
3971
4082
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3972
4083
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3973
4084
|
}
|
|
3974
|
-
__name(
|
|
3975
|
-
function
|
|
4085
|
+
__name(_ts_decorate8, "_ts_decorate");
|
|
4086
|
+
function _ts_metadata8(k, v) {
|
|
3976
4087
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
3977
4088
|
return Reflect.metadata(k, v);
|
|
3978
4089
|
}
|
|
3979
|
-
__name(
|
|
4090
|
+
__name(_ts_metadata8, "_ts_metadata");
|
|
3980
4091
|
var ForwardedParametersInput = class {
|
|
3981
4092
|
model;
|
|
3982
4093
|
maxTokens;
|
|
@@ -3986,51 +4097,51 @@ var ForwardedParametersInput = class {
|
|
|
3986
4097
|
temperature;
|
|
3987
4098
|
};
|
|
3988
4099
|
__name(ForwardedParametersInput, "ForwardedParametersInput");
|
|
3989
|
-
|
|
3990
|
-
(0,
|
|
4100
|
+
_ts_decorate8([
|
|
4101
|
+
(0, import_type_graphql9.Field)(() => String, {
|
|
3991
4102
|
nullable: true
|
|
3992
4103
|
}),
|
|
3993
|
-
|
|
4104
|
+
_ts_metadata8("design:type", String)
|
|
3994
4105
|
], ForwardedParametersInput.prototype, "model", void 0);
|
|
3995
|
-
|
|
3996
|
-
(0,
|
|
4106
|
+
_ts_decorate8([
|
|
4107
|
+
(0, import_type_graphql9.Field)(() => Number, {
|
|
3997
4108
|
nullable: true
|
|
3998
4109
|
}),
|
|
3999
|
-
|
|
4110
|
+
_ts_metadata8("design:type", Number)
|
|
4000
4111
|
], ForwardedParametersInput.prototype, "maxTokens", void 0);
|
|
4001
|
-
|
|
4002
|
-
(0,
|
|
4112
|
+
_ts_decorate8([
|
|
4113
|
+
(0, import_type_graphql9.Field)(() => [
|
|
4003
4114
|
String
|
|
4004
4115
|
], {
|
|
4005
4116
|
nullable: true
|
|
4006
4117
|
}),
|
|
4007
|
-
|
|
4118
|
+
_ts_metadata8("design:type", Array)
|
|
4008
4119
|
], ForwardedParametersInput.prototype, "stop", void 0);
|
|
4009
|
-
|
|
4010
|
-
(0,
|
|
4120
|
+
_ts_decorate8([
|
|
4121
|
+
(0, import_type_graphql9.Field)(() => String, {
|
|
4011
4122
|
nullable: true
|
|
4012
4123
|
}),
|
|
4013
|
-
|
|
4124
|
+
_ts_metadata8("design:type", typeof String === "undefined" ? Object : String)
|
|
4014
4125
|
], ForwardedParametersInput.prototype, "toolChoice", void 0);
|
|
4015
|
-
|
|
4016
|
-
(0,
|
|
4126
|
+
_ts_decorate8([
|
|
4127
|
+
(0, import_type_graphql9.Field)(() => String, {
|
|
4017
4128
|
nullable: true
|
|
4018
4129
|
}),
|
|
4019
|
-
|
|
4130
|
+
_ts_metadata8("design:type", String)
|
|
4020
4131
|
], ForwardedParametersInput.prototype, "toolChoiceFunctionName", void 0);
|
|
4021
|
-
|
|
4022
|
-
(0,
|
|
4132
|
+
_ts_decorate8([
|
|
4133
|
+
(0, import_type_graphql9.Field)(() => Number, {
|
|
4023
4134
|
nullable: true
|
|
4024
4135
|
}),
|
|
4025
|
-
|
|
4136
|
+
_ts_metadata8("design:type", Number)
|
|
4026
4137
|
], ForwardedParametersInput.prototype, "temperature", void 0);
|
|
4027
|
-
ForwardedParametersInput =
|
|
4028
|
-
(0,
|
|
4138
|
+
ForwardedParametersInput = _ts_decorate8([
|
|
4139
|
+
(0, import_type_graphql9.InputType)()
|
|
4029
4140
|
], ForwardedParametersInput);
|
|
4030
4141
|
|
|
4031
4142
|
// src/graphql/inputs/agent-session.input.ts
|
|
4032
|
-
var
|
|
4033
|
-
function
|
|
4143
|
+
var import_type_graphql10 = require("type-graphql");
|
|
4144
|
+
function _ts_decorate9(decorators, target, key, desc) {
|
|
4034
4145
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4035
4146
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4036
4147
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4040,41 +4151,41 @@ function _ts_decorate8(decorators, target, key, desc) {
|
|
|
4040
4151
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4041
4152
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4042
4153
|
}
|
|
4043
|
-
__name(
|
|
4044
|
-
function
|
|
4154
|
+
__name(_ts_decorate9, "_ts_decorate");
|
|
4155
|
+
function _ts_metadata9(k, v) {
|
|
4045
4156
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4046
4157
|
return Reflect.metadata(k, v);
|
|
4047
4158
|
}
|
|
4048
|
-
__name(
|
|
4159
|
+
__name(_ts_metadata9, "_ts_metadata");
|
|
4049
4160
|
var AgentSessionInput = class {
|
|
4050
4161
|
agentName;
|
|
4051
4162
|
threadId;
|
|
4052
4163
|
nodeName;
|
|
4053
4164
|
};
|
|
4054
4165
|
__name(AgentSessionInput, "AgentSessionInput");
|
|
4055
|
-
|
|
4056
|
-
(0,
|
|
4057
|
-
|
|
4166
|
+
_ts_decorate9([
|
|
4167
|
+
(0, import_type_graphql10.Field)(() => String),
|
|
4168
|
+
_ts_metadata9("design:type", String)
|
|
4058
4169
|
], AgentSessionInput.prototype, "agentName", void 0);
|
|
4059
|
-
|
|
4060
|
-
(0,
|
|
4170
|
+
_ts_decorate9([
|
|
4171
|
+
(0, import_type_graphql10.Field)(() => String, {
|
|
4061
4172
|
nullable: true
|
|
4062
4173
|
}),
|
|
4063
|
-
|
|
4174
|
+
_ts_metadata9("design:type", String)
|
|
4064
4175
|
], AgentSessionInput.prototype, "threadId", void 0);
|
|
4065
|
-
|
|
4066
|
-
(0,
|
|
4176
|
+
_ts_decorate9([
|
|
4177
|
+
(0, import_type_graphql10.Field)(() => String, {
|
|
4067
4178
|
nullable: true
|
|
4068
4179
|
}),
|
|
4069
|
-
|
|
4180
|
+
_ts_metadata9("design:type", String)
|
|
4070
4181
|
], AgentSessionInput.prototype, "nodeName", void 0);
|
|
4071
|
-
AgentSessionInput =
|
|
4072
|
-
(0,
|
|
4182
|
+
AgentSessionInput = _ts_decorate9([
|
|
4183
|
+
(0, import_type_graphql10.InputType)()
|
|
4073
4184
|
], AgentSessionInput);
|
|
4074
4185
|
|
|
4075
4186
|
// src/graphql/inputs/agent-state.input.ts
|
|
4076
|
-
var
|
|
4077
|
-
function
|
|
4187
|
+
var import_type_graphql11 = require("type-graphql");
|
|
4188
|
+
function _ts_decorate10(decorators, target, key, desc) {
|
|
4078
4189
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4079
4190
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4080
4191
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4084,32 +4195,32 @@ function _ts_decorate9(decorators, target, key, desc) {
|
|
|
4084
4195
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4085
4196
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4086
4197
|
}
|
|
4087
|
-
__name(
|
|
4088
|
-
function
|
|
4198
|
+
__name(_ts_decorate10, "_ts_decorate");
|
|
4199
|
+
function _ts_metadata10(k, v) {
|
|
4089
4200
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4090
4201
|
return Reflect.metadata(k, v);
|
|
4091
4202
|
}
|
|
4092
|
-
__name(
|
|
4203
|
+
__name(_ts_metadata10, "_ts_metadata");
|
|
4093
4204
|
var AgentStateInput = class {
|
|
4094
4205
|
agentName;
|
|
4095
4206
|
state;
|
|
4096
4207
|
};
|
|
4097
4208
|
__name(AgentStateInput, "AgentStateInput");
|
|
4098
|
-
|
|
4099
|
-
(0,
|
|
4100
|
-
|
|
4209
|
+
_ts_decorate10([
|
|
4210
|
+
(0, import_type_graphql11.Field)(() => String),
|
|
4211
|
+
_ts_metadata10("design:type", String)
|
|
4101
4212
|
], AgentStateInput.prototype, "agentName", void 0);
|
|
4102
|
-
|
|
4103
|
-
(0,
|
|
4104
|
-
|
|
4213
|
+
_ts_decorate10([
|
|
4214
|
+
(0, import_type_graphql11.Field)(() => String),
|
|
4215
|
+
_ts_metadata10("design:type", String)
|
|
4105
4216
|
], AgentStateInput.prototype, "state", void 0);
|
|
4106
|
-
AgentStateInput =
|
|
4107
|
-
(0,
|
|
4217
|
+
AgentStateInput = _ts_decorate10([
|
|
4218
|
+
(0, import_type_graphql11.InputType)()
|
|
4108
4219
|
], AgentStateInput);
|
|
4109
4220
|
|
|
4110
4221
|
// src/graphql/inputs/extensions.input.ts
|
|
4111
|
-
var
|
|
4112
|
-
function
|
|
4222
|
+
var import_type_graphql12 = require("type-graphql");
|
|
4223
|
+
function _ts_decorate11(decorators, target, key, desc) {
|
|
4113
4224
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4114
4225
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4115
4226
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4119,48 +4230,95 @@ function _ts_decorate10(decorators, target, key, desc) {
|
|
|
4119
4230
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4120
4231
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4121
4232
|
}
|
|
4122
|
-
__name(
|
|
4123
|
-
function
|
|
4233
|
+
__name(_ts_decorate11, "_ts_decorate");
|
|
4234
|
+
function _ts_metadata11(k, v) {
|
|
4124
4235
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4125
4236
|
return Reflect.metadata(k, v);
|
|
4126
4237
|
}
|
|
4127
|
-
__name(
|
|
4238
|
+
__name(_ts_metadata11, "_ts_metadata");
|
|
4128
4239
|
var ExtensionsInput = class {
|
|
4129
4240
|
openaiAssistantAPI;
|
|
4130
4241
|
};
|
|
4131
4242
|
__name(ExtensionsInput, "ExtensionsInput");
|
|
4132
|
-
|
|
4133
|
-
(0,
|
|
4243
|
+
_ts_decorate11([
|
|
4244
|
+
(0, import_type_graphql12.Field)(() => OpenAIApiAssistantAPIInput, {
|
|
4134
4245
|
nullable: true
|
|
4135
4246
|
}),
|
|
4136
|
-
|
|
4247
|
+
_ts_metadata11("design:type", typeof OpenAIApiAssistantAPIInput === "undefined" ? Object : OpenAIApiAssistantAPIInput)
|
|
4137
4248
|
], ExtensionsInput.prototype, "openaiAssistantAPI", void 0);
|
|
4138
|
-
ExtensionsInput =
|
|
4139
|
-
(0,
|
|
4249
|
+
ExtensionsInput = _ts_decorate11([
|
|
4250
|
+
(0, import_type_graphql12.InputType)()
|
|
4140
4251
|
], ExtensionsInput);
|
|
4141
4252
|
var OpenAIApiAssistantAPIInput = class {
|
|
4142
4253
|
runId;
|
|
4143
4254
|
threadId;
|
|
4144
4255
|
};
|
|
4145
4256
|
__name(OpenAIApiAssistantAPIInput, "OpenAIApiAssistantAPIInput");
|
|
4146
|
-
|
|
4147
|
-
(0,
|
|
4257
|
+
_ts_decorate11([
|
|
4258
|
+
(0, import_type_graphql12.Field)(() => String, {
|
|
4148
4259
|
nullable: true
|
|
4149
4260
|
}),
|
|
4150
|
-
|
|
4261
|
+
_ts_metadata11("design:type", String)
|
|
4151
4262
|
], OpenAIApiAssistantAPIInput.prototype, "runId", void 0);
|
|
4152
|
-
|
|
4153
|
-
(0,
|
|
4263
|
+
_ts_decorate11([
|
|
4264
|
+
(0, import_type_graphql12.Field)(() => String, {
|
|
4154
4265
|
nullable: true
|
|
4155
4266
|
}),
|
|
4156
|
-
|
|
4267
|
+
_ts_metadata11("design:type", String)
|
|
4157
4268
|
], OpenAIApiAssistantAPIInput.prototype, "threadId", void 0);
|
|
4158
|
-
OpenAIApiAssistantAPIInput =
|
|
4159
|
-
(0,
|
|
4269
|
+
OpenAIApiAssistantAPIInput = _ts_decorate11([
|
|
4270
|
+
(0, import_type_graphql12.InputType)()
|
|
4160
4271
|
], OpenAIApiAssistantAPIInput);
|
|
4161
4272
|
|
|
4273
|
+
// src/graphql/inputs/meta-event.input.ts
|
|
4274
|
+
var import_type_graphql13 = require("type-graphql");
|
|
4275
|
+
function _ts_decorate12(decorators, target, key, desc) {
|
|
4276
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4277
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4278
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
4279
|
+
else
|
|
4280
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
4281
|
+
if (d = decorators[i])
|
|
4282
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4283
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4284
|
+
}
|
|
4285
|
+
__name(_ts_decorate12, "_ts_decorate");
|
|
4286
|
+
function _ts_metadata12(k, v) {
|
|
4287
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4288
|
+
return Reflect.metadata(k, v);
|
|
4289
|
+
}
|
|
4290
|
+
__name(_ts_metadata12, "_ts_metadata");
|
|
4291
|
+
var MetaEventInput = class {
|
|
4292
|
+
type = "MetaEvent";
|
|
4293
|
+
name;
|
|
4294
|
+
value;
|
|
4295
|
+
response;
|
|
4296
|
+
};
|
|
4297
|
+
__name(MetaEventInput, "MetaEventInput");
|
|
4298
|
+
_ts_decorate12([
|
|
4299
|
+
(0, import_type_graphql13.Field)(() => String),
|
|
4300
|
+
_ts_metadata12("design:type", String)
|
|
4301
|
+
], MetaEventInput.prototype, "type", void 0);
|
|
4302
|
+
_ts_decorate12([
|
|
4303
|
+
(0, import_type_graphql13.Field)(() => MetaEventName),
|
|
4304
|
+
_ts_metadata12("design:type", typeof MetaEventName === "undefined" ? Object : MetaEventName)
|
|
4305
|
+
], MetaEventInput.prototype, "name", void 0);
|
|
4306
|
+
_ts_decorate12([
|
|
4307
|
+
(0, import_type_graphql13.Field)(() => String),
|
|
4308
|
+
_ts_metadata12("design:type", String)
|
|
4309
|
+
], MetaEventInput.prototype, "value", void 0);
|
|
4310
|
+
_ts_decorate12([
|
|
4311
|
+
(0, import_type_graphql13.Field)(() => String, {
|
|
4312
|
+
nullable: true
|
|
4313
|
+
}),
|
|
4314
|
+
_ts_metadata12("design:type", String)
|
|
4315
|
+
], MetaEventInput.prototype, "response", void 0);
|
|
4316
|
+
MetaEventInput = _ts_decorate12([
|
|
4317
|
+
(0, import_type_graphql13.InputType)()
|
|
4318
|
+
], MetaEventInput);
|
|
4319
|
+
|
|
4162
4320
|
// src/graphql/inputs/generate-copilot-response.input.ts
|
|
4163
|
-
function
|
|
4321
|
+
function _ts_decorate13(decorators, target, key, desc) {
|
|
4164
4322
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4165
4323
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4166
4324
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4170,24 +4328,24 @@ function _ts_decorate11(decorators, target, key, desc) {
|
|
|
4170
4328
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4171
4329
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4172
4330
|
}
|
|
4173
|
-
__name(
|
|
4174
|
-
function
|
|
4331
|
+
__name(_ts_decorate13, "_ts_decorate");
|
|
4332
|
+
function _ts_metadata13(k, v) {
|
|
4175
4333
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4176
4334
|
return Reflect.metadata(k, v);
|
|
4177
4335
|
}
|
|
4178
|
-
__name(
|
|
4336
|
+
__name(_ts_metadata13, "_ts_metadata");
|
|
4179
4337
|
var GenerateCopilotResponseMetadataInput = class {
|
|
4180
4338
|
requestType;
|
|
4181
4339
|
};
|
|
4182
4340
|
__name(GenerateCopilotResponseMetadataInput, "GenerateCopilotResponseMetadataInput");
|
|
4183
|
-
|
|
4184
|
-
(0,
|
|
4341
|
+
_ts_decorate13([
|
|
4342
|
+
(0, import_type_graphql14.Field)(() => CopilotRequestType, {
|
|
4185
4343
|
nullable: true
|
|
4186
4344
|
}),
|
|
4187
|
-
|
|
4345
|
+
_ts_metadata13("design:type", typeof CopilotRequestType === "undefined" ? Object : CopilotRequestType)
|
|
4188
4346
|
], GenerateCopilotResponseMetadataInput.prototype, "requestType", void 0);
|
|
4189
|
-
GenerateCopilotResponseMetadataInput =
|
|
4190
|
-
(0,
|
|
4347
|
+
GenerateCopilotResponseMetadataInput = _ts_decorate13([
|
|
4348
|
+
(0, import_type_graphql14.InputType)()
|
|
4191
4349
|
], GenerateCopilotResponseMetadataInput);
|
|
4192
4350
|
var GenerateCopilotResponseInput = class {
|
|
4193
4351
|
metadata;
|
|
@@ -4201,84 +4359,93 @@ var GenerateCopilotResponseInput = class {
|
|
|
4201
4359
|
agentState;
|
|
4202
4360
|
agentStates;
|
|
4203
4361
|
extensions;
|
|
4362
|
+
metaEvents;
|
|
4204
4363
|
};
|
|
4205
4364
|
__name(GenerateCopilotResponseInput, "GenerateCopilotResponseInput");
|
|
4206
|
-
|
|
4207
|
-
(0,
|
|
4365
|
+
_ts_decorate13([
|
|
4366
|
+
(0, import_type_graphql14.Field)(() => GenerateCopilotResponseMetadataInput, {
|
|
4208
4367
|
nullable: false
|
|
4209
4368
|
}),
|
|
4210
|
-
|
|
4369
|
+
_ts_metadata13("design:type", typeof GenerateCopilotResponseMetadataInput === "undefined" ? Object : GenerateCopilotResponseMetadataInput)
|
|
4211
4370
|
], GenerateCopilotResponseInput.prototype, "metadata", void 0);
|
|
4212
|
-
|
|
4213
|
-
(0,
|
|
4371
|
+
_ts_decorate13([
|
|
4372
|
+
(0, import_type_graphql14.Field)(() => String, {
|
|
4214
4373
|
nullable: true
|
|
4215
4374
|
}),
|
|
4216
|
-
|
|
4375
|
+
_ts_metadata13("design:type", String)
|
|
4217
4376
|
], GenerateCopilotResponseInput.prototype, "threadId", void 0);
|
|
4218
|
-
|
|
4219
|
-
(0,
|
|
4377
|
+
_ts_decorate13([
|
|
4378
|
+
(0, import_type_graphql14.Field)(() => String, {
|
|
4220
4379
|
nullable: true
|
|
4221
4380
|
}),
|
|
4222
|
-
|
|
4381
|
+
_ts_metadata13("design:type", String)
|
|
4223
4382
|
], GenerateCopilotResponseInput.prototype, "runId", void 0);
|
|
4224
|
-
|
|
4225
|
-
(0,
|
|
4383
|
+
_ts_decorate13([
|
|
4384
|
+
(0, import_type_graphql14.Field)(() => [
|
|
4226
4385
|
MessageInput
|
|
4227
4386
|
]),
|
|
4228
|
-
|
|
4387
|
+
_ts_metadata13("design:type", Array)
|
|
4229
4388
|
], GenerateCopilotResponseInput.prototype, "messages", void 0);
|
|
4230
|
-
|
|
4231
|
-
(0,
|
|
4232
|
-
|
|
4389
|
+
_ts_decorate13([
|
|
4390
|
+
(0, import_type_graphql14.Field)(() => FrontendInput),
|
|
4391
|
+
_ts_metadata13("design:type", typeof FrontendInput === "undefined" ? Object : FrontendInput)
|
|
4233
4392
|
], GenerateCopilotResponseInput.prototype, "frontend", void 0);
|
|
4234
|
-
|
|
4235
|
-
(0,
|
|
4393
|
+
_ts_decorate13([
|
|
4394
|
+
(0, import_type_graphql14.Field)(() => CloudInput, {
|
|
4236
4395
|
nullable: true
|
|
4237
4396
|
}),
|
|
4238
|
-
|
|
4397
|
+
_ts_metadata13("design:type", typeof CloudInput === "undefined" ? Object : CloudInput)
|
|
4239
4398
|
], GenerateCopilotResponseInput.prototype, "cloud", void 0);
|
|
4240
|
-
|
|
4241
|
-
(0,
|
|
4399
|
+
_ts_decorate13([
|
|
4400
|
+
(0, import_type_graphql14.Field)(() => ForwardedParametersInput, {
|
|
4242
4401
|
nullable: true
|
|
4243
4402
|
}),
|
|
4244
|
-
|
|
4403
|
+
_ts_metadata13("design:type", typeof ForwardedParametersInput === "undefined" ? Object : ForwardedParametersInput)
|
|
4245
4404
|
], GenerateCopilotResponseInput.prototype, "forwardedParameters", void 0);
|
|
4246
|
-
|
|
4247
|
-
(0,
|
|
4405
|
+
_ts_decorate13([
|
|
4406
|
+
(0, import_type_graphql14.Field)(() => AgentSessionInput, {
|
|
4248
4407
|
nullable: true
|
|
4249
4408
|
}),
|
|
4250
|
-
|
|
4409
|
+
_ts_metadata13("design:type", typeof AgentSessionInput === "undefined" ? Object : AgentSessionInput)
|
|
4251
4410
|
], GenerateCopilotResponseInput.prototype, "agentSession", void 0);
|
|
4252
|
-
|
|
4253
|
-
(0,
|
|
4411
|
+
_ts_decorate13([
|
|
4412
|
+
(0, import_type_graphql14.Field)(() => AgentStateInput, {
|
|
4254
4413
|
nullable: true
|
|
4255
4414
|
}),
|
|
4256
|
-
|
|
4415
|
+
_ts_metadata13("design:type", typeof AgentStateInput === "undefined" ? Object : AgentStateInput)
|
|
4257
4416
|
], GenerateCopilotResponseInput.prototype, "agentState", void 0);
|
|
4258
|
-
|
|
4259
|
-
(0,
|
|
4417
|
+
_ts_decorate13([
|
|
4418
|
+
(0, import_type_graphql14.Field)(() => [
|
|
4260
4419
|
AgentStateInput
|
|
4261
4420
|
], {
|
|
4262
4421
|
nullable: true
|
|
4263
4422
|
}),
|
|
4264
|
-
|
|
4423
|
+
_ts_metadata13("design:type", Array)
|
|
4265
4424
|
], GenerateCopilotResponseInput.prototype, "agentStates", void 0);
|
|
4266
|
-
|
|
4267
|
-
(0,
|
|
4425
|
+
_ts_decorate13([
|
|
4426
|
+
(0, import_type_graphql14.Field)(() => ExtensionsInput, {
|
|
4268
4427
|
nullable: true
|
|
4269
4428
|
}),
|
|
4270
|
-
|
|
4429
|
+
_ts_metadata13("design:type", typeof ExtensionsInput === "undefined" ? Object : ExtensionsInput)
|
|
4271
4430
|
], GenerateCopilotResponseInput.prototype, "extensions", void 0);
|
|
4272
|
-
|
|
4273
|
-
(0,
|
|
4431
|
+
_ts_decorate13([
|
|
4432
|
+
(0, import_type_graphql14.Field)(() => [
|
|
4433
|
+
MetaEventInput
|
|
4434
|
+
], {
|
|
4435
|
+
nullable: true
|
|
4436
|
+
}),
|
|
4437
|
+
_ts_metadata13("design:type", Array)
|
|
4438
|
+
], GenerateCopilotResponseInput.prototype, "metaEvents", void 0);
|
|
4439
|
+
GenerateCopilotResponseInput = _ts_decorate13([
|
|
4440
|
+
(0, import_type_graphql14.InputType)()
|
|
4274
4441
|
], GenerateCopilotResponseInput);
|
|
4275
4442
|
|
|
4276
4443
|
// src/graphql/types/copilot-response.type.ts
|
|
4277
|
-
var
|
|
4444
|
+
var import_type_graphql18 = require("type-graphql");
|
|
4278
4445
|
|
|
4279
4446
|
// src/graphql/types/message-status.type.ts
|
|
4280
|
-
var
|
|
4281
|
-
function
|
|
4447
|
+
var import_type_graphql15 = require("type-graphql");
|
|
4448
|
+
function _ts_decorate14(decorators, target, key, desc) {
|
|
4282
4449
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4283
4450
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4284
4451
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4288,58 +4455,58 @@ function _ts_decorate12(decorators, target, key, desc) {
|
|
|
4288
4455
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4289
4456
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4290
4457
|
}
|
|
4291
|
-
__name(
|
|
4292
|
-
function
|
|
4458
|
+
__name(_ts_decorate14, "_ts_decorate");
|
|
4459
|
+
function _ts_metadata14(k, v) {
|
|
4293
4460
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4294
4461
|
return Reflect.metadata(k, v);
|
|
4295
4462
|
}
|
|
4296
|
-
__name(
|
|
4463
|
+
__name(_ts_metadata14, "_ts_metadata");
|
|
4297
4464
|
var MessageStatusCode;
|
|
4298
4465
|
(function(MessageStatusCode2) {
|
|
4299
4466
|
MessageStatusCode2["Pending"] = "pending";
|
|
4300
4467
|
MessageStatusCode2["Success"] = "success";
|
|
4301
4468
|
MessageStatusCode2["Failed"] = "failed";
|
|
4302
4469
|
})(MessageStatusCode || (MessageStatusCode = {}));
|
|
4303
|
-
(0,
|
|
4470
|
+
(0, import_type_graphql15.registerEnumType)(MessageStatusCode, {
|
|
4304
4471
|
name: "MessageStatusCode"
|
|
4305
4472
|
});
|
|
4306
4473
|
var BaseMessageStatus = /* @__PURE__ */ __name(class BaseMessageStatus2 {
|
|
4307
4474
|
code;
|
|
4308
4475
|
}, "BaseMessageStatus");
|
|
4309
|
-
|
|
4310
|
-
(0,
|
|
4311
|
-
|
|
4476
|
+
_ts_decorate14([
|
|
4477
|
+
(0, import_type_graphql15.Field)(() => MessageStatusCode),
|
|
4478
|
+
_ts_metadata14("design:type", String)
|
|
4312
4479
|
], BaseMessageStatus.prototype, "code", void 0);
|
|
4313
|
-
BaseMessageStatus =
|
|
4314
|
-
(0,
|
|
4480
|
+
BaseMessageStatus = _ts_decorate14([
|
|
4481
|
+
(0, import_type_graphql15.ObjectType)()
|
|
4315
4482
|
], BaseMessageStatus);
|
|
4316
4483
|
var PendingMessageStatus = class extends BaseMessageStatus {
|
|
4317
4484
|
code = "pending";
|
|
4318
4485
|
};
|
|
4319
4486
|
__name(PendingMessageStatus, "PendingMessageStatus");
|
|
4320
|
-
PendingMessageStatus =
|
|
4321
|
-
(0,
|
|
4487
|
+
PendingMessageStatus = _ts_decorate14([
|
|
4488
|
+
(0, import_type_graphql15.ObjectType)()
|
|
4322
4489
|
], PendingMessageStatus);
|
|
4323
4490
|
var SuccessMessageStatus = class extends BaseMessageStatus {
|
|
4324
4491
|
code = "success";
|
|
4325
4492
|
};
|
|
4326
4493
|
__name(SuccessMessageStatus, "SuccessMessageStatus");
|
|
4327
|
-
SuccessMessageStatus =
|
|
4328
|
-
(0,
|
|
4494
|
+
SuccessMessageStatus = _ts_decorate14([
|
|
4495
|
+
(0, import_type_graphql15.ObjectType)()
|
|
4329
4496
|
], SuccessMessageStatus);
|
|
4330
4497
|
var FailedMessageStatus = class extends BaseMessageStatus {
|
|
4331
4498
|
code = "failed";
|
|
4332
4499
|
reason;
|
|
4333
4500
|
};
|
|
4334
4501
|
__name(FailedMessageStatus, "FailedMessageStatus");
|
|
4335
|
-
|
|
4336
|
-
(0,
|
|
4337
|
-
|
|
4502
|
+
_ts_decorate14([
|
|
4503
|
+
(0, import_type_graphql15.Field)(() => String),
|
|
4504
|
+
_ts_metadata14("design:type", String)
|
|
4338
4505
|
], FailedMessageStatus.prototype, "reason", void 0);
|
|
4339
|
-
FailedMessageStatus =
|
|
4340
|
-
(0,
|
|
4506
|
+
FailedMessageStatus = _ts_decorate14([
|
|
4507
|
+
(0, import_type_graphql15.ObjectType)()
|
|
4341
4508
|
], FailedMessageStatus);
|
|
4342
|
-
var MessageStatusUnion = (0,
|
|
4509
|
+
var MessageStatusUnion = (0, import_type_graphql15.createUnionType)({
|
|
4343
4510
|
name: "MessageStatus",
|
|
4344
4511
|
types: () => [
|
|
4345
4512
|
PendingMessageStatus,
|
|
@@ -4350,8 +4517,8 @@ var MessageStatusUnion = (0, import_type_graphql13.createUnionType)({
|
|
|
4350
4517
|
|
|
4351
4518
|
// src/graphql/types/response-status.type.ts
|
|
4352
4519
|
var import_graphql_scalars = require("graphql-scalars");
|
|
4353
|
-
var
|
|
4354
|
-
function
|
|
4520
|
+
var import_type_graphql16 = require("type-graphql");
|
|
4521
|
+
function _ts_decorate15(decorators, target, key, desc) {
|
|
4355
4522
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4356
4523
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4357
4524
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4361,30 +4528,30 @@ function _ts_decorate13(decorators, target, key, desc) {
|
|
|
4361
4528
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4362
4529
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4363
4530
|
}
|
|
4364
|
-
__name(
|
|
4365
|
-
function
|
|
4531
|
+
__name(_ts_decorate15, "_ts_decorate");
|
|
4532
|
+
function _ts_metadata15(k, v) {
|
|
4366
4533
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4367
4534
|
return Reflect.metadata(k, v);
|
|
4368
4535
|
}
|
|
4369
|
-
__name(
|
|
4536
|
+
__name(_ts_metadata15, "_ts_metadata");
|
|
4370
4537
|
var ResponseStatusCode;
|
|
4371
4538
|
(function(ResponseStatusCode2) {
|
|
4372
4539
|
ResponseStatusCode2["Pending"] = "pending";
|
|
4373
4540
|
ResponseStatusCode2["Success"] = "success";
|
|
4374
4541
|
ResponseStatusCode2["Failed"] = "failed";
|
|
4375
4542
|
})(ResponseStatusCode || (ResponseStatusCode = {}));
|
|
4376
|
-
(0,
|
|
4543
|
+
(0, import_type_graphql16.registerEnumType)(ResponseStatusCode, {
|
|
4377
4544
|
name: "ResponseStatusCode"
|
|
4378
4545
|
});
|
|
4379
4546
|
var BaseResponseStatus = /* @__PURE__ */ __name(class BaseResponseStatus2 {
|
|
4380
4547
|
code;
|
|
4381
4548
|
}, "BaseResponseStatus");
|
|
4382
|
-
|
|
4383
|
-
(0,
|
|
4384
|
-
|
|
4549
|
+
_ts_decorate15([
|
|
4550
|
+
(0, import_type_graphql16.Field)(() => ResponseStatusCode),
|
|
4551
|
+
_ts_metadata15("design:type", String)
|
|
4385
4552
|
], BaseResponseStatus.prototype, "code", void 0);
|
|
4386
|
-
BaseResponseStatus =
|
|
4387
|
-
(0,
|
|
4553
|
+
BaseResponseStatus = _ts_decorate15([
|
|
4554
|
+
(0, import_type_graphql16.InterfaceType)({
|
|
4388
4555
|
resolveType(value) {
|
|
4389
4556
|
if (value.code === "success") {
|
|
4390
4557
|
return SuccessResponseStatus;
|
|
@@ -4396,14 +4563,14 @@ BaseResponseStatus = _ts_decorate13([
|
|
|
4396
4563
|
return void 0;
|
|
4397
4564
|
}
|
|
4398
4565
|
}),
|
|
4399
|
-
(0,
|
|
4566
|
+
(0, import_type_graphql16.ObjectType)()
|
|
4400
4567
|
], BaseResponseStatus);
|
|
4401
4568
|
var PendingResponseStatus = class extends BaseResponseStatus {
|
|
4402
4569
|
code = "pending";
|
|
4403
4570
|
};
|
|
4404
4571
|
__name(PendingResponseStatus, "PendingResponseStatus");
|
|
4405
|
-
PendingResponseStatus =
|
|
4406
|
-
(0,
|
|
4572
|
+
PendingResponseStatus = _ts_decorate15([
|
|
4573
|
+
(0, import_type_graphql16.ObjectType)({
|
|
4407
4574
|
implements: BaseResponseStatus
|
|
4408
4575
|
})
|
|
4409
4576
|
], PendingResponseStatus);
|
|
@@ -4411,8 +4578,8 @@ var SuccessResponseStatus = class extends BaseResponseStatus {
|
|
|
4411
4578
|
code = "success";
|
|
4412
4579
|
};
|
|
4413
4580
|
__name(SuccessResponseStatus, "SuccessResponseStatus");
|
|
4414
|
-
SuccessResponseStatus =
|
|
4415
|
-
(0,
|
|
4581
|
+
SuccessResponseStatus = _ts_decorate15([
|
|
4582
|
+
(0, import_type_graphql16.ObjectType)({
|
|
4416
4583
|
implements: BaseResponseStatus
|
|
4417
4584
|
})
|
|
4418
4585
|
], SuccessResponseStatus);
|
|
@@ -4422,7 +4589,7 @@ var FailedResponseStatusReason;
|
|
|
4422
4589
|
FailedResponseStatusReason2["MESSAGE_STREAM_INTERRUPTED"] = "MESSAGE_STREAM_INTERRUPTED";
|
|
4423
4590
|
FailedResponseStatusReason2["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
|
|
4424
4591
|
})(FailedResponseStatusReason || (FailedResponseStatusReason = {}));
|
|
4425
|
-
(0,
|
|
4592
|
+
(0, import_type_graphql16.registerEnumType)(FailedResponseStatusReason, {
|
|
4426
4593
|
name: "FailedResponseStatusReason"
|
|
4427
4594
|
});
|
|
4428
4595
|
var FailedResponseStatus = class extends BaseResponseStatus {
|
|
@@ -4431,22 +4598,22 @@ var FailedResponseStatus = class extends BaseResponseStatus {
|
|
|
4431
4598
|
details = null;
|
|
4432
4599
|
};
|
|
4433
4600
|
__name(FailedResponseStatus, "FailedResponseStatus");
|
|
4434
|
-
|
|
4435
|
-
(0,
|
|
4436
|
-
|
|
4601
|
+
_ts_decorate15([
|
|
4602
|
+
(0, import_type_graphql16.Field)(() => FailedResponseStatusReason),
|
|
4603
|
+
_ts_metadata15("design:type", String)
|
|
4437
4604
|
], FailedResponseStatus.prototype, "reason", void 0);
|
|
4438
|
-
|
|
4439
|
-
(0,
|
|
4605
|
+
_ts_decorate15([
|
|
4606
|
+
(0, import_type_graphql16.Field)(() => import_graphql_scalars.GraphQLJSON, {
|
|
4440
4607
|
nullable: true
|
|
4441
4608
|
}),
|
|
4442
|
-
|
|
4609
|
+
_ts_metadata15("design:type", typeof Record === "undefined" ? Object : Record)
|
|
4443
4610
|
], FailedResponseStatus.prototype, "details", void 0);
|
|
4444
|
-
FailedResponseStatus =
|
|
4445
|
-
(0,
|
|
4611
|
+
FailedResponseStatus = _ts_decorate15([
|
|
4612
|
+
(0, import_type_graphql16.ObjectType)({
|
|
4446
4613
|
implements: BaseResponseStatus
|
|
4447
4614
|
})
|
|
4448
4615
|
], FailedResponseStatus);
|
|
4449
|
-
var ResponseStatusUnion = (0,
|
|
4616
|
+
var ResponseStatusUnion = (0, import_type_graphql16.createUnionType)({
|
|
4450
4617
|
name: "ResponseStatus",
|
|
4451
4618
|
types: () => [
|
|
4452
4619
|
PendingResponseStatus,
|
|
@@ -4456,8 +4623,8 @@ var ResponseStatusUnion = (0, import_type_graphql14.createUnionType)({
|
|
|
4456
4623
|
});
|
|
4457
4624
|
|
|
4458
4625
|
// src/graphql/types/extensions-response.type.ts
|
|
4459
|
-
var
|
|
4460
|
-
function
|
|
4626
|
+
var import_type_graphql17 = require("type-graphql");
|
|
4627
|
+
function _ts_decorate16(decorators, target, key, desc) {
|
|
4461
4628
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4462
4629
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4463
4630
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4467,48 +4634,48 @@ function _ts_decorate14(decorators, target, key, desc) {
|
|
|
4467
4634
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4468
4635
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4469
4636
|
}
|
|
4470
|
-
__name(
|
|
4471
|
-
function
|
|
4637
|
+
__name(_ts_decorate16, "_ts_decorate");
|
|
4638
|
+
function _ts_metadata16(k, v) {
|
|
4472
4639
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4473
4640
|
return Reflect.metadata(k, v);
|
|
4474
4641
|
}
|
|
4475
|
-
__name(
|
|
4642
|
+
__name(_ts_metadata16, "_ts_metadata");
|
|
4476
4643
|
var ExtensionsResponse = class {
|
|
4477
4644
|
openaiAssistantAPI;
|
|
4478
4645
|
};
|
|
4479
4646
|
__name(ExtensionsResponse, "ExtensionsResponse");
|
|
4480
|
-
|
|
4481
|
-
(0,
|
|
4647
|
+
_ts_decorate16([
|
|
4648
|
+
(0, import_type_graphql17.Field)(() => OpenAIApiAssistantAPIResponse, {
|
|
4482
4649
|
nullable: true
|
|
4483
4650
|
}),
|
|
4484
|
-
|
|
4651
|
+
_ts_metadata16("design:type", typeof OpenAIApiAssistantAPIResponse === "undefined" ? Object : OpenAIApiAssistantAPIResponse)
|
|
4485
4652
|
], ExtensionsResponse.prototype, "openaiAssistantAPI", void 0);
|
|
4486
|
-
ExtensionsResponse =
|
|
4487
|
-
(0,
|
|
4653
|
+
ExtensionsResponse = _ts_decorate16([
|
|
4654
|
+
(0, import_type_graphql17.ObjectType)()
|
|
4488
4655
|
], ExtensionsResponse);
|
|
4489
4656
|
var OpenAIApiAssistantAPIResponse = class {
|
|
4490
4657
|
runId;
|
|
4491
4658
|
threadId;
|
|
4492
4659
|
};
|
|
4493
4660
|
__name(OpenAIApiAssistantAPIResponse, "OpenAIApiAssistantAPIResponse");
|
|
4494
|
-
|
|
4495
|
-
(0,
|
|
4661
|
+
_ts_decorate16([
|
|
4662
|
+
(0, import_type_graphql17.Field)(() => String, {
|
|
4496
4663
|
nullable: true
|
|
4497
4664
|
}),
|
|
4498
|
-
|
|
4665
|
+
_ts_metadata16("design:type", String)
|
|
4499
4666
|
], OpenAIApiAssistantAPIResponse.prototype, "runId", void 0);
|
|
4500
|
-
|
|
4501
|
-
(0,
|
|
4667
|
+
_ts_decorate16([
|
|
4668
|
+
(0, import_type_graphql17.Field)(() => String, {
|
|
4502
4669
|
nullable: true
|
|
4503
4670
|
}),
|
|
4504
|
-
|
|
4671
|
+
_ts_metadata16("design:type", String)
|
|
4505
4672
|
], OpenAIApiAssistantAPIResponse.prototype, "threadId", void 0);
|
|
4506
|
-
OpenAIApiAssistantAPIResponse =
|
|
4507
|
-
(0,
|
|
4673
|
+
OpenAIApiAssistantAPIResponse = _ts_decorate16([
|
|
4674
|
+
(0, import_type_graphql17.ObjectType)()
|
|
4508
4675
|
], OpenAIApiAssistantAPIResponse);
|
|
4509
4676
|
|
|
4510
4677
|
// src/graphql/types/copilot-response.type.ts
|
|
4511
|
-
function
|
|
4678
|
+
function _ts_decorate17(decorators, target, key, desc) {
|
|
4512
4679
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4513
4680
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4514
4681
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4518,32 +4685,32 @@ function _ts_decorate15(decorators, target, key, desc) {
|
|
|
4518
4685
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4519
4686
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4520
4687
|
}
|
|
4521
|
-
__name(
|
|
4522
|
-
function
|
|
4688
|
+
__name(_ts_decorate17, "_ts_decorate");
|
|
4689
|
+
function _ts_metadata17(k, v) {
|
|
4523
4690
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4524
4691
|
return Reflect.metadata(k, v);
|
|
4525
4692
|
}
|
|
4526
|
-
__name(
|
|
4693
|
+
__name(_ts_metadata17, "_ts_metadata");
|
|
4527
4694
|
var BaseMessageOutput = class {
|
|
4528
4695
|
id;
|
|
4529
4696
|
createdAt;
|
|
4530
4697
|
status;
|
|
4531
4698
|
};
|
|
4532
4699
|
__name(BaseMessageOutput, "BaseMessageOutput");
|
|
4533
|
-
|
|
4534
|
-
(0,
|
|
4535
|
-
|
|
4700
|
+
_ts_decorate17([
|
|
4701
|
+
(0, import_type_graphql18.Field)(() => String),
|
|
4702
|
+
_ts_metadata17("design:type", String)
|
|
4536
4703
|
], BaseMessageOutput.prototype, "id", void 0);
|
|
4537
|
-
|
|
4538
|
-
(0,
|
|
4539
|
-
|
|
4704
|
+
_ts_decorate17([
|
|
4705
|
+
(0, import_type_graphql18.Field)(() => Date),
|
|
4706
|
+
_ts_metadata17("design:type", typeof Date === "undefined" ? Object : Date)
|
|
4540
4707
|
], BaseMessageOutput.prototype, "createdAt", void 0);
|
|
4541
|
-
|
|
4542
|
-
(0,
|
|
4543
|
-
|
|
4708
|
+
_ts_decorate17([
|
|
4709
|
+
(0, import_type_graphql18.Field)(() => MessageStatusUnion),
|
|
4710
|
+
_ts_metadata17("design:type", Object)
|
|
4544
4711
|
], BaseMessageOutput.prototype, "status", void 0);
|
|
4545
|
-
BaseMessageOutput =
|
|
4546
|
-
(0,
|
|
4712
|
+
BaseMessageOutput = _ts_decorate17([
|
|
4713
|
+
(0, import_type_graphql18.InterfaceType)({
|
|
4547
4714
|
resolveType(value) {
|
|
4548
4715
|
if (value.hasOwnProperty("content")) {
|
|
4549
4716
|
return TextMessageOutput;
|
|
@@ -4553,6 +4720,8 @@ BaseMessageOutput = _ts_decorate15([
|
|
|
4553
4720
|
return ResultMessageOutput;
|
|
4554
4721
|
} else if (value.hasOwnProperty("state")) {
|
|
4555
4722
|
return AgentStateMessageOutput;
|
|
4723
|
+
} else if (value.name === MetaEventName.LangGraphInterruptEvent) {
|
|
4724
|
+
return LangGraphInterruptEvent;
|
|
4556
4725
|
}
|
|
4557
4726
|
return void 0;
|
|
4558
4727
|
}
|
|
@@ -4564,24 +4733,24 @@ var TextMessageOutput = class {
|
|
|
4564
4733
|
parentMessageId;
|
|
4565
4734
|
};
|
|
4566
4735
|
__name(TextMessageOutput, "TextMessageOutput");
|
|
4567
|
-
|
|
4568
|
-
(0,
|
|
4569
|
-
|
|
4736
|
+
_ts_decorate17([
|
|
4737
|
+
(0, import_type_graphql18.Field)(() => MessageRole),
|
|
4738
|
+
_ts_metadata17("design:type", typeof MessageRole === "undefined" ? Object : MessageRole)
|
|
4570
4739
|
], TextMessageOutput.prototype, "role", void 0);
|
|
4571
|
-
|
|
4572
|
-
(0,
|
|
4740
|
+
_ts_decorate17([
|
|
4741
|
+
(0, import_type_graphql18.Field)(() => [
|
|
4573
4742
|
String
|
|
4574
4743
|
]),
|
|
4575
|
-
|
|
4744
|
+
_ts_metadata17("design:type", Array)
|
|
4576
4745
|
], TextMessageOutput.prototype, "content", void 0);
|
|
4577
|
-
|
|
4578
|
-
(0,
|
|
4746
|
+
_ts_decorate17([
|
|
4747
|
+
(0, import_type_graphql18.Field)(() => String, {
|
|
4579
4748
|
nullable: true
|
|
4580
4749
|
}),
|
|
4581
|
-
|
|
4750
|
+
_ts_metadata17("design:type", String)
|
|
4582
4751
|
], TextMessageOutput.prototype, "parentMessageId", void 0);
|
|
4583
|
-
TextMessageOutput =
|
|
4584
|
-
(0,
|
|
4752
|
+
TextMessageOutput = _ts_decorate17([
|
|
4753
|
+
(0, import_type_graphql18.ObjectType)({
|
|
4585
4754
|
implements: BaseMessageOutput
|
|
4586
4755
|
})
|
|
4587
4756
|
], TextMessageOutput);
|
|
@@ -4592,31 +4761,31 @@ var ActionExecutionMessageOutput = class {
|
|
|
4592
4761
|
parentMessageId;
|
|
4593
4762
|
};
|
|
4594
4763
|
__name(ActionExecutionMessageOutput, "ActionExecutionMessageOutput");
|
|
4595
|
-
|
|
4596
|
-
(0,
|
|
4597
|
-
|
|
4764
|
+
_ts_decorate17([
|
|
4765
|
+
(0, import_type_graphql18.Field)(() => String),
|
|
4766
|
+
_ts_metadata17("design:type", String)
|
|
4598
4767
|
], ActionExecutionMessageOutput.prototype, "name", void 0);
|
|
4599
|
-
|
|
4600
|
-
(0,
|
|
4768
|
+
_ts_decorate17([
|
|
4769
|
+
(0, import_type_graphql18.Field)(() => String, {
|
|
4601
4770
|
nullable: true,
|
|
4602
4771
|
deprecationReason: "This field will be removed in a future version"
|
|
4603
4772
|
}),
|
|
4604
|
-
|
|
4773
|
+
_ts_metadata17("design:type", String)
|
|
4605
4774
|
], ActionExecutionMessageOutput.prototype, "scope", void 0);
|
|
4606
|
-
|
|
4607
|
-
(0,
|
|
4775
|
+
_ts_decorate17([
|
|
4776
|
+
(0, import_type_graphql18.Field)(() => [
|
|
4608
4777
|
String
|
|
4609
4778
|
]),
|
|
4610
|
-
|
|
4779
|
+
_ts_metadata17("design:type", Array)
|
|
4611
4780
|
], ActionExecutionMessageOutput.prototype, "arguments", void 0);
|
|
4612
|
-
|
|
4613
|
-
(0,
|
|
4781
|
+
_ts_decorate17([
|
|
4782
|
+
(0, import_type_graphql18.Field)(() => String, {
|
|
4614
4783
|
nullable: true
|
|
4615
4784
|
}),
|
|
4616
|
-
|
|
4785
|
+
_ts_metadata17("design:type", String)
|
|
4617
4786
|
], ActionExecutionMessageOutput.prototype, "parentMessageId", void 0);
|
|
4618
|
-
ActionExecutionMessageOutput =
|
|
4619
|
-
(0,
|
|
4787
|
+
ActionExecutionMessageOutput = _ts_decorate17([
|
|
4788
|
+
(0, import_type_graphql18.ObjectType)({
|
|
4620
4789
|
implements: BaseMessageOutput
|
|
4621
4790
|
})
|
|
4622
4791
|
], ActionExecutionMessageOutput);
|
|
@@ -4626,20 +4795,20 @@ var ResultMessageOutput = class {
|
|
|
4626
4795
|
result;
|
|
4627
4796
|
};
|
|
4628
4797
|
__name(ResultMessageOutput, "ResultMessageOutput");
|
|
4629
|
-
|
|
4630
|
-
(0,
|
|
4631
|
-
|
|
4798
|
+
_ts_decorate17([
|
|
4799
|
+
(0, import_type_graphql18.Field)(() => String),
|
|
4800
|
+
_ts_metadata17("design:type", String)
|
|
4632
4801
|
], ResultMessageOutput.prototype, "actionExecutionId", void 0);
|
|
4633
|
-
|
|
4634
|
-
(0,
|
|
4635
|
-
|
|
4802
|
+
_ts_decorate17([
|
|
4803
|
+
(0, import_type_graphql18.Field)(() => String),
|
|
4804
|
+
_ts_metadata17("design:type", String)
|
|
4636
4805
|
], ResultMessageOutput.prototype, "actionName", void 0);
|
|
4637
|
-
|
|
4638
|
-
(0,
|
|
4639
|
-
|
|
4806
|
+
_ts_decorate17([
|
|
4807
|
+
(0, import_type_graphql18.Field)(() => String),
|
|
4808
|
+
_ts_metadata17("design:type", String)
|
|
4640
4809
|
], ResultMessageOutput.prototype, "result", void 0);
|
|
4641
|
-
ResultMessageOutput =
|
|
4642
|
-
(0,
|
|
4810
|
+
ResultMessageOutput = _ts_decorate17([
|
|
4811
|
+
(0, import_type_graphql18.ObjectType)({
|
|
4643
4812
|
implements: BaseMessageOutput
|
|
4644
4813
|
})
|
|
4645
4814
|
], ResultMessageOutput);
|
|
@@ -4654,40 +4823,40 @@ var AgentStateMessageOutput = class {
|
|
|
4654
4823
|
running;
|
|
4655
4824
|
};
|
|
4656
4825
|
__name(AgentStateMessageOutput, "AgentStateMessageOutput");
|
|
4657
|
-
|
|
4658
|
-
(0,
|
|
4659
|
-
|
|
4826
|
+
_ts_decorate17([
|
|
4827
|
+
(0, import_type_graphql18.Field)(() => String),
|
|
4828
|
+
_ts_metadata17("design:type", String)
|
|
4660
4829
|
], AgentStateMessageOutput.prototype, "threadId", void 0);
|
|
4661
|
-
|
|
4662
|
-
(0,
|
|
4663
|
-
|
|
4830
|
+
_ts_decorate17([
|
|
4831
|
+
(0, import_type_graphql18.Field)(() => String),
|
|
4832
|
+
_ts_metadata17("design:type", String)
|
|
4664
4833
|
], AgentStateMessageOutput.prototype, "agentName", void 0);
|
|
4665
|
-
|
|
4666
|
-
(0,
|
|
4667
|
-
|
|
4834
|
+
_ts_decorate17([
|
|
4835
|
+
(0, import_type_graphql18.Field)(() => String),
|
|
4836
|
+
_ts_metadata17("design:type", String)
|
|
4668
4837
|
], AgentStateMessageOutput.prototype, "nodeName", void 0);
|
|
4669
|
-
|
|
4670
|
-
(0,
|
|
4671
|
-
|
|
4838
|
+
_ts_decorate17([
|
|
4839
|
+
(0, import_type_graphql18.Field)(() => String),
|
|
4840
|
+
_ts_metadata17("design:type", String)
|
|
4672
4841
|
], AgentStateMessageOutput.prototype, "runId", void 0);
|
|
4673
|
-
|
|
4674
|
-
(0,
|
|
4675
|
-
|
|
4842
|
+
_ts_decorate17([
|
|
4843
|
+
(0, import_type_graphql18.Field)(() => Boolean),
|
|
4844
|
+
_ts_metadata17("design:type", Boolean)
|
|
4676
4845
|
], AgentStateMessageOutput.prototype, "active", void 0);
|
|
4677
|
-
|
|
4678
|
-
(0,
|
|
4679
|
-
|
|
4846
|
+
_ts_decorate17([
|
|
4847
|
+
(0, import_type_graphql18.Field)(() => MessageRole),
|
|
4848
|
+
_ts_metadata17("design:type", typeof MessageRole === "undefined" ? Object : MessageRole)
|
|
4680
4849
|
], AgentStateMessageOutput.prototype, "role", void 0);
|
|
4681
|
-
|
|
4682
|
-
(0,
|
|
4683
|
-
|
|
4850
|
+
_ts_decorate17([
|
|
4851
|
+
(0, import_type_graphql18.Field)(() => String),
|
|
4852
|
+
_ts_metadata17("design:type", String)
|
|
4684
4853
|
], AgentStateMessageOutput.prototype, "state", void 0);
|
|
4685
|
-
|
|
4686
|
-
(0,
|
|
4687
|
-
|
|
4854
|
+
_ts_decorate17([
|
|
4855
|
+
(0, import_type_graphql18.Field)(() => Boolean),
|
|
4856
|
+
_ts_metadata17("design:type", Boolean)
|
|
4688
4857
|
], AgentStateMessageOutput.prototype, "running", void 0);
|
|
4689
|
-
AgentStateMessageOutput =
|
|
4690
|
-
(0,
|
|
4858
|
+
AgentStateMessageOutput = _ts_decorate17([
|
|
4859
|
+
(0, import_type_graphql18.ObjectType)({
|
|
4691
4860
|
implements: BaseMessageOutput
|
|
4692
4861
|
})
|
|
4693
4862
|
], AgentStateMessageOutput);
|
|
@@ -4697,36 +4866,45 @@ var CopilotResponse = class {
|
|
|
4697
4866
|
runId;
|
|
4698
4867
|
messages;
|
|
4699
4868
|
extensions;
|
|
4869
|
+
metaEvents;
|
|
4700
4870
|
};
|
|
4701
4871
|
__name(CopilotResponse, "CopilotResponse");
|
|
4702
|
-
|
|
4703
|
-
(0,
|
|
4704
|
-
|
|
4872
|
+
_ts_decorate17([
|
|
4873
|
+
(0, import_type_graphql18.Field)(() => String),
|
|
4874
|
+
_ts_metadata17("design:type", String)
|
|
4705
4875
|
], CopilotResponse.prototype, "threadId", void 0);
|
|
4706
|
-
|
|
4707
|
-
(0,
|
|
4708
|
-
|
|
4876
|
+
_ts_decorate17([
|
|
4877
|
+
(0, import_type_graphql18.Field)(() => ResponseStatusUnion),
|
|
4878
|
+
_ts_metadata17("design:type", Object)
|
|
4709
4879
|
], CopilotResponse.prototype, "status", void 0);
|
|
4710
|
-
|
|
4711
|
-
(0,
|
|
4880
|
+
_ts_decorate17([
|
|
4881
|
+
(0, import_type_graphql18.Field)({
|
|
4712
4882
|
nullable: true
|
|
4713
4883
|
}),
|
|
4714
|
-
|
|
4884
|
+
_ts_metadata17("design:type", String)
|
|
4715
4885
|
], CopilotResponse.prototype, "runId", void 0);
|
|
4716
|
-
|
|
4717
|
-
(0,
|
|
4886
|
+
_ts_decorate17([
|
|
4887
|
+
(0, import_type_graphql18.Field)(() => [
|
|
4718
4888
|
BaseMessageOutput
|
|
4719
4889
|
]),
|
|
4720
|
-
|
|
4890
|
+
_ts_metadata17("design:type", Array)
|
|
4721
4891
|
], CopilotResponse.prototype, "messages", void 0);
|
|
4722
|
-
|
|
4723
|
-
(0,
|
|
4892
|
+
_ts_decorate17([
|
|
4893
|
+
(0, import_type_graphql18.Field)(() => ExtensionsResponse, {
|
|
4724
4894
|
nullable: true
|
|
4725
4895
|
}),
|
|
4726
|
-
|
|
4896
|
+
_ts_metadata17("design:type", typeof ExtensionsResponse === "undefined" ? Object : ExtensionsResponse)
|
|
4727
4897
|
], CopilotResponse.prototype, "extensions", void 0);
|
|
4728
|
-
|
|
4729
|
-
(0,
|
|
4898
|
+
_ts_decorate17([
|
|
4899
|
+
(0, import_type_graphql18.Field)(() => [
|
|
4900
|
+
BaseMetaEvent
|
|
4901
|
+
], {
|
|
4902
|
+
nullable: true
|
|
4903
|
+
}),
|
|
4904
|
+
_ts_metadata17("design:type", Array)
|
|
4905
|
+
], CopilotResponse.prototype, "metaEvents", void 0);
|
|
4906
|
+
CopilotResponse = _ts_decorate17([
|
|
4907
|
+
(0, import_type_graphql18.ObjectType)()
|
|
4730
4908
|
], CopilotResponse);
|
|
4731
4909
|
|
|
4732
4910
|
// src/graphql/resolvers/copilot.resolver.ts
|
|
@@ -4772,8 +4950,8 @@ __name(UnknownErrorResponse, "UnknownErrorResponse");
|
|
|
4772
4950
|
var import_shared16 = require("@copilotkit/shared");
|
|
4773
4951
|
|
|
4774
4952
|
// src/graphql/types/agents-response.type.ts
|
|
4775
|
-
var
|
|
4776
|
-
function
|
|
4953
|
+
var import_type_graphql19 = require("type-graphql");
|
|
4954
|
+
function _ts_decorate18(decorators, target, key, desc) {
|
|
4777
4955
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4778
4956
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4779
4957
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4783,49 +4961,49 @@ function _ts_decorate16(decorators, target, key, desc) {
|
|
|
4783
4961
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4784
4962
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4785
4963
|
}
|
|
4786
|
-
__name(
|
|
4787
|
-
function
|
|
4964
|
+
__name(_ts_decorate18, "_ts_decorate");
|
|
4965
|
+
function _ts_metadata18(k, v) {
|
|
4788
4966
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4789
4967
|
return Reflect.metadata(k, v);
|
|
4790
4968
|
}
|
|
4791
|
-
__name(
|
|
4969
|
+
__name(_ts_metadata18, "_ts_metadata");
|
|
4792
4970
|
var Agent = class {
|
|
4793
4971
|
id;
|
|
4794
4972
|
name;
|
|
4795
4973
|
description;
|
|
4796
4974
|
};
|
|
4797
4975
|
__name(Agent, "Agent");
|
|
4798
|
-
|
|
4799
|
-
(0,
|
|
4800
|
-
|
|
4976
|
+
_ts_decorate18([
|
|
4977
|
+
(0, import_type_graphql19.Field)(() => String),
|
|
4978
|
+
_ts_metadata18("design:type", String)
|
|
4801
4979
|
], Agent.prototype, "id", void 0);
|
|
4802
|
-
|
|
4803
|
-
(0,
|
|
4804
|
-
|
|
4980
|
+
_ts_decorate18([
|
|
4981
|
+
(0, import_type_graphql19.Field)(() => String),
|
|
4982
|
+
_ts_metadata18("design:type", String)
|
|
4805
4983
|
], Agent.prototype, "name", void 0);
|
|
4806
|
-
|
|
4807
|
-
(0,
|
|
4808
|
-
|
|
4984
|
+
_ts_decorate18([
|
|
4985
|
+
(0, import_type_graphql19.Field)(() => String),
|
|
4986
|
+
_ts_metadata18("design:type", String)
|
|
4809
4987
|
], Agent.prototype, "description", void 0);
|
|
4810
|
-
Agent =
|
|
4811
|
-
(0,
|
|
4988
|
+
Agent = _ts_decorate18([
|
|
4989
|
+
(0, import_type_graphql19.ObjectType)()
|
|
4812
4990
|
], Agent);
|
|
4813
4991
|
var AgentsResponse = class {
|
|
4814
4992
|
agents;
|
|
4815
4993
|
};
|
|
4816
4994
|
__name(AgentsResponse, "AgentsResponse");
|
|
4817
|
-
|
|
4818
|
-
(0,
|
|
4995
|
+
_ts_decorate18([
|
|
4996
|
+
(0, import_type_graphql19.Field)(() => [
|
|
4819
4997
|
Agent
|
|
4820
4998
|
]),
|
|
4821
|
-
|
|
4999
|
+
_ts_metadata18("design:type", Array)
|
|
4822
5000
|
], AgentsResponse.prototype, "agents", void 0);
|
|
4823
|
-
AgentsResponse =
|
|
4824
|
-
(0,
|
|
5001
|
+
AgentsResponse = _ts_decorate18([
|
|
5002
|
+
(0, import_type_graphql19.ObjectType)()
|
|
4825
5003
|
], AgentsResponse);
|
|
4826
5004
|
|
|
4827
5005
|
// src/graphql/resolvers/copilot.resolver.ts
|
|
4828
|
-
function
|
|
5006
|
+
function _ts_decorate19(decorators, target, key, desc) {
|
|
4829
5007
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4830
5008
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4831
5009
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4835,12 +5013,12 @@ function _ts_decorate17(decorators, target, key, desc) {
|
|
|
4835
5013
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4836
5014
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4837
5015
|
}
|
|
4838
|
-
__name(
|
|
4839
|
-
function
|
|
5016
|
+
__name(_ts_decorate19, "_ts_decorate");
|
|
5017
|
+
function _ts_metadata19(k, v) {
|
|
4840
5018
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4841
5019
|
return Reflect.metadata(k, v);
|
|
4842
5020
|
}
|
|
4843
|
-
__name(
|
|
5021
|
+
__name(_ts_metadata19, "_ts_metadata");
|
|
4844
5022
|
function _ts_param(paramIndex, decorator) {
|
|
4845
5023
|
return function(target, key) {
|
|
4846
5024
|
decorator(target, key, paramIndex);
|
|
@@ -4894,7 +5072,7 @@ var CopilotResolver = class {
|
|
|
4894
5072
|
};
|
|
4895
5073
|
}
|
|
4896
5074
|
async generateCopilotResponse(ctx, data, properties) {
|
|
4897
|
-
var _a, _b, _c;
|
|
5075
|
+
var _a, _b, _c, _d;
|
|
4898
5076
|
telemetry_client_default.capture("oss.runtime.copilot_request_created", {
|
|
4899
5077
|
"cloud.guardrails.enabled": ((_a = data.cloud) == null ? void 0 : _a.guardrails) !== void 0,
|
|
4900
5078
|
requestType: data.metadata.requestType
|
|
@@ -4965,16 +5143,68 @@ var CopilotResolver = class {
|
|
|
4965
5143
|
agentSession: data.agentSession,
|
|
4966
5144
|
agentStates: data.agentStates,
|
|
4967
5145
|
url: data.frontend.url,
|
|
4968
|
-
extensions: data.extensions
|
|
5146
|
+
extensions: data.extensions,
|
|
5147
|
+
metaEvents: data.metaEvents
|
|
4969
5148
|
});
|
|
4970
5149
|
logger2.debug("Event source created, creating response");
|
|
5150
|
+
const eventStream = eventSource.processRuntimeEvents({
|
|
5151
|
+
serverSideActions,
|
|
5152
|
+
guardrailsResult$: ((_d = data.cloud) == null ? void 0 : _d.guardrails) ? guardrailsResult$ : null,
|
|
5153
|
+
actionInputsWithoutAgents: actionInputsWithoutAgents.filter(
|
|
5154
|
+
// TODO-AGENTS: do not exclude ALL server side actions
|
|
5155
|
+
(action) => !serverSideActions.find((serverSideAction) => serverSideAction.name == action.name)
|
|
5156
|
+
),
|
|
5157
|
+
threadId
|
|
5158
|
+
}).pipe(
|
|
5159
|
+
// shareReplay() ensures that later subscribers will see the whole stream instead of
|
|
5160
|
+
// just the events that were emitted after the subscriber was added.
|
|
5161
|
+
(0, import_rxjs4.shareReplay)(),
|
|
5162
|
+
(0, import_rxjs4.finalize)(() => {
|
|
5163
|
+
logger2.debug("Event stream finalized");
|
|
5164
|
+
})
|
|
5165
|
+
);
|
|
4971
5166
|
const response = {
|
|
4972
5167
|
threadId,
|
|
4973
5168
|
runId,
|
|
4974
5169
|
status: (0, import_rxjs4.firstValueFrom)(responseStatus$),
|
|
4975
5170
|
extensions,
|
|
5171
|
+
metaEvents: new import_graphql_yoga.Repeater(async (push, stop) => {
|
|
5172
|
+
let eventStreamSubscription;
|
|
5173
|
+
eventStreamSubscription = eventStream.subscribe({
|
|
5174
|
+
next: async (event) => {
|
|
5175
|
+
if (event.type != RuntimeEventTypes.MetaEvent) {
|
|
5176
|
+
return;
|
|
5177
|
+
}
|
|
5178
|
+
switch (event.name) {
|
|
5179
|
+
case RuntimeMetaEventName.LangGraphInterruptEvent:
|
|
5180
|
+
push((0, import_class_transformer3.plainToInstance)(LangGraphInterruptEvent, {
|
|
5181
|
+
type: event.type,
|
|
5182
|
+
name: event.name,
|
|
5183
|
+
value: event.value
|
|
5184
|
+
}));
|
|
5185
|
+
break;
|
|
5186
|
+
}
|
|
5187
|
+
},
|
|
5188
|
+
error: (err) => {
|
|
5189
|
+
logger2.error({
|
|
5190
|
+
err
|
|
5191
|
+
}, "Error in meta events stream");
|
|
5192
|
+
responseStatus$.next(new UnknownErrorResponse({
|
|
5193
|
+
description: `An unknown error has occurred in the event stream`
|
|
5194
|
+
}));
|
|
5195
|
+
eventStreamSubscription == null ? void 0 : eventStreamSubscription.unsubscribe();
|
|
5196
|
+
stop();
|
|
5197
|
+
},
|
|
5198
|
+
complete: async () => {
|
|
5199
|
+
logger2.debug("Meta events stream completed");
|
|
5200
|
+
responseStatus$.next(new SuccessResponseStatus());
|
|
5201
|
+
eventStreamSubscription == null ? void 0 : eventStreamSubscription.unsubscribe();
|
|
5202
|
+
stop();
|
|
5203
|
+
}
|
|
5204
|
+
});
|
|
5205
|
+
}),
|
|
4976
5206
|
messages: new import_graphql_yoga.Repeater(async (pushMessage, stopStreamingMessages) => {
|
|
4977
|
-
var _a2
|
|
5207
|
+
var _a2;
|
|
4978
5208
|
logger2.debug("Messages repeater created");
|
|
4979
5209
|
if ((_a2 = data.cloud) == null ? void 0 : _a2.guardrails) {
|
|
4980
5210
|
logger2 = logger2.child({
|
|
@@ -5023,26 +5253,12 @@ var CopilotResolver = class {
|
|
|
5023
5253
|
});
|
|
5024
5254
|
}
|
|
5025
5255
|
let eventStreamSubscription;
|
|
5026
|
-
const eventStream = eventSource.processRuntimeEvents({
|
|
5027
|
-
serverSideActions,
|
|
5028
|
-
guardrailsResult$: ((_b2 = data.cloud) == null ? void 0 : _b2.guardrails) ? guardrailsResult$ : null,
|
|
5029
|
-
actionInputsWithoutAgents: actionInputsWithoutAgents.filter(
|
|
5030
|
-
// TODO-AGENTS: do not exclude ALL server side actions
|
|
5031
|
-
(action) => !serverSideActions.find((serverSideAction) => serverSideAction.name == action.name)
|
|
5032
|
-
),
|
|
5033
|
-
threadId
|
|
5034
|
-
}).pipe(
|
|
5035
|
-
// shareReplay() ensures that later subscribers will see the whole stream instead of
|
|
5036
|
-
// just the events that were emitted after the subscriber was added.
|
|
5037
|
-
(0, import_rxjs4.shareReplay)(),
|
|
5038
|
-
(0, import_rxjs4.finalize)(() => {
|
|
5039
|
-
logger2.debug("Event stream finalized");
|
|
5040
|
-
})
|
|
5041
|
-
);
|
|
5042
5256
|
logger2.debug("Event stream created, subscribing to event stream");
|
|
5043
5257
|
eventStreamSubscription = eventStream.subscribe({
|
|
5044
5258
|
next: async (event) => {
|
|
5045
5259
|
switch (event.type) {
|
|
5260
|
+
case RuntimeEventTypes.MetaEvent:
|
|
5261
|
+
break;
|
|
5046
5262
|
case RuntimeEventTypes.TextMessageStart:
|
|
5047
5263
|
const textMessageContentStream = eventStream.pipe(
|
|
5048
5264
|
// skip until this message start event
|
|
@@ -5248,38 +5464,38 @@ var CopilotResolver = class {
|
|
|
5248
5464
|
}
|
|
5249
5465
|
};
|
|
5250
5466
|
__name(CopilotResolver, "CopilotResolver");
|
|
5251
|
-
|
|
5252
|
-
(0,
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5467
|
+
_ts_decorate19([
|
|
5468
|
+
(0, import_type_graphql20.Query)(() => String),
|
|
5469
|
+
_ts_metadata19("design:type", Function),
|
|
5470
|
+
_ts_metadata19("design:paramtypes", []),
|
|
5471
|
+
_ts_metadata19("design:returntype", Promise)
|
|
5256
5472
|
], CopilotResolver.prototype, "hello", null);
|
|
5257
|
-
|
|
5258
|
-
(0,
|
|
5259
|
-
_ts_param(0, (0,
|
|
5260
|
-
|
|
5261
|
-
|
|
5473
|
+
_ts_decorate19([
|
|
5474
|
+
(0, import_type_graphql20.Query)(() => AgentsResponse),
|
|
5475
|
+
_ts_param(0, (0, import_type_graphql20.Ctx)()),
|
|
5476
|
+
_ts_metadata19("design:type", Function),
|
|
5477
|
+
_ts_metadata19("design:paramtypes", [
|
|
5262
5478
|
typeof GraphQLContext === "undefined" ? Object : GraphQLContext
|
|
5263
5479
|
]),
|
|
5264
|
-
|
|
5480
|
+
_ts_metadata19("design:returntype", Promise)
|
|
5265
5481
|
], CopilotResolver.prototype, "availableAgents", null);
|
|
5266
|
-
|
|
5267
|
-
(0,
|
|
5268
|
-
_ts_param(0, (0,
|
|
5269
|
-
_ts_param(1, (0,
|
|
5270
|
-
_ts_param(2, (0,
|
|
5482
|
+
_ts_decorate19([
|
|
5483
|
+
(0, import_type_graphql20.Mutation)(() => CopilotResponse),
|
|
5484
|
+
_ts_param(0, (0, import_type_graphql20.Ctx)()),
|
|
5485
|
+
_ts_param(1, (0, import_type_graphql20.Arg)("data")),
|
|
5486
|
+
_ts_param(2, (0, import_type_graphql20.Arg)("properties", () => import_graphql_scalars2.GraphQLJSONObject, {
|
|
5271
5487
|
nullable: true
|
|
5272
5488
|
})),
|
|
5273
|
-
|
|
5274
|
-
|
|
5489
|
+
_ts_metadata19("design:type", Function),
|
|
5490
|
+
_ts_metadata19("design:paramtypes", [
|
|
5275
5491
|
typeof GraphQLContext === "undefined" ? Object : GraphQLContext,
|
|
5276
5492
|
typeof GenerateCopilotResponseInput === "undefined" ? Object : GenerateCopilotResponseInput,
|
|
5277
5493
|
typeof CopilotRequestContextProperties === "undefined" ? Object : CopilotRequestContextProperties
|
|
5278
5494
|
]),
|
|
5279
|
-
|
|
5495
|
+
_ts_metadata19("design:returntype", Promise)
|
|
5280
5496
|
], CopilotResolver.prototype, "generateCopilotResponse", null);
|
|
5281
|
-
CopilotResolver =
|
|
5282
|
-
(0,
|
|
5497
|
+
CopilotResolver = _ts_decorate19([
|
|
5498
|
+
(0, import_type_graphql20.Resolver)(() => CopilotResponse)
|
|
5283
5499
|
], CopilotResolver);
|
|
5284
5500
|
|
|
5285
5501
|
// src/lib/integrations/shared.ts
|
|
@@ -5314,13 +5530,13 @@ function createLogger(options) {
|
|
|
5314
5530
|
__name(createLogger, "createLogger");
|
|
5315
5531
|
|
|
5316
5532
|
// src/graphql/resolvers/state.resolver.ts
|
|
5317
|
-
var import_type_graphql21 = require("type-graphql");
|
|
5318
|
-
var import_type_graphql22 = require("type-graphql");
|
|
5319
5533
|
var import_type_graphql23 = require("type-graphql");
|
|
5534
|
+
var import_type_graphql24 = require("type-graphql");
|
|
5535
|
+
var import_type_graphql25 = require("type-graphql");
|
|
5320
5536
|
|
|
5321
5537
|
// src/graphql/types/load-agent-state-response.type.ts
|
|
5322
|
-
var
|
|
5323
|
-
function
|
|
5538
|
+
var import_type_graphql21 = require("type-graphql");
|
|
5539
|
+
function _ts_decorate20(decorators, target, key, desc) {
|
|
5324
5540
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5325
5541
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
5326
5542
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -5330,12 +5546,12 @@ function _ts_decorate18(decorators, target, key, desc) {
|
|
|
5330
5546
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5331
5547
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5332
5548
|
}
|
|
5333
|
-
__name(
|
|
5334
|
-
function
|
|
5549
|
+
__name(_ts_decorate20, "_ts_decorate");
|
|
5550
|
+
function _ts_metadata20(k, v) {
|
|
5335
5551
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
5336
5552
|
return Reflect.metadata(k, v);
|
|
5337
5553
|
}
|
|
5338
|
-
__name(
|
|
5554
|
+
__name(_ts_metadata20, "_ts_metadata");
|
|
5339
5555
|
var LoadAgentStateResponse = class {
|
|
5340
5556
|
threadId;
|
|
5341
5557
|
threadExists;
|
|
@@ -5343,29 +5559,29 @@ var LoadAgentStateResponse = class {
|
|
|
5343
5559
|
messages;
|
|
5344
5560
|
};
|
|
5345
5561
|
__name(LoadAgentStateResponse, "LoadAgentStateResponse");
|
|
5346
|
-
|
|
5347
|
-
(0,
|
|
5348
|
-
|
|
5562
|
+
_ts_decorate20([
|
|
5563
|
+
(0, import_type_graphql21.Field)(() => String),
|
|
5564
|
+
_ts_metadata20("design:type", String)
|
|
5349
5565
|
], LoadAgentStateResponse.prototype, "threadId", void 0);
|
|
5350
|
-
|
|
5351
|
-
(0,
|
|
5352
|
-
|
|
5566
|
+
_ts_decorate20([
|
|
5567
|
+
(0, import_type_graphql21.Field)(() => Boolean),
|
|
5568
|
+
_ts_metadata20("design:type", Boolean)
|
|
5353
5569
|
], LoadAgentStateResponse.prototype, "threadExists", void 0);
|
|
5354
|
-
|
|
5355
|
-
(0,
|
|
5356
|
-
|
|
5570
|
+
_ts_decorate20([
|
|
5571
|
+
(0, import_type_graphql21.Field)(() => String),
|
|
5572
|
+
_ts_metadata20("design:type", String)
|
|
5357
5573
|
], LoadAgentStateResponse.prototype, "state", void 0);
|
|
5358
|
-
|
|
5359
|
-
(0,
|
|
5360
|
-
|
|
5574
|
+
_ts_decorate20([
|
|
5575
|
+
(0, import_type_graphql21.Field)(() => String),
|
|
5576
|
+
_ts_metadata20("design:type", String)
|
|
5361
5577
|
], LoadAgentStateResponse.prototype, "messages", void 0);
|
|
5362
|
-
LoadAgentStateResponse =
|
|
5363
|
-
(0,
|
|
5578
|
+
LoadAgentStateResponse = _ts_decorate20([
|
|
5579
|
+
(0, import_type_graphql21.ObjectType)()
|
|
5364
5580
|
], LoadAgentStateResponse);
|
|
5365
5581
|
|
|
5366
5582
|
// src/graphql/inputs/load-agent-state.input.ts
|
|
5367
|
-
var
|
|
5368
|
-
function
|
|
5583
|
+
var import_type_graphql22 = require("type-graphql");
|
|
5584
|
+
function _ts_decorate21(decorators, target, key, desc) {
|
|
5369
5585
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5370
5586
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
5371
5587
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -5375,31 +5591,31 @@ function _ts_decorate19(decorators, target, key, desc) {
|
|
|
5375
5591
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5376
5592
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5377
5593
|
}
|
|
5378
|
-
__name(
|
|
5379
|
-
function
|
|
5594
|
+
__name(_ts_decorate21, "_ts_decorate");
|
|
5595
|
+
function _ts_metadata21(k, v) {
|
|
5380
5596
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
5381
5597
|
return Reflect.metadata(k, v);
|
|
5382
5598
|
}
|
|
5383
|
-
__name(
|
|
5599
|
+
__name(_ts_metadata21, "_ts_metadata");
|
|
5384
5600
|
var LoadAgentStateInput = class {
|
|
5385
5601
|
threadId;
|
|
5386
5602
|
agentName;
|
|
5387
5603
|
};
|
|
5388
5604
|
__name(LoadAgentStateInput, "LoadAgentStateInput");
|
|
5389
|
-
|
|
5390
|
-
(0,
|
|
5391
|
-
|
|
5605
|
+
_ts_decorate21([
|
|
5606
|
+
(0, import_type_graphql22.Field)(() => String),
|
|
5607
|
+
_ts_metadata21("design:type", String)
|
|
5392
5608
|
], LoadAgentStateInput.prototype, "threadId", void 0);
|
|
5393
|
-
|
|
5394
|
-
(0,
|
|
5395
|
-
|
|
5609
|
+
_ts_decorate21([
|
|
5610
|
+
(0, import_type_graphql22.Field)(() => String),
|
|
5611
|
+
_ts_metadata21("design:type", String)
|
|
5396
5612
|
], LoadAgentStateInput.prototype, "agentName", void 0);
|
|
5397
|
-
LoadAgentStateInput =
|
|
5398
|
-
(0,
|
|
5613
|
+
LoadAgentStateInput = _ts_decorate21([
|
|
5614
|
+
(0, import_type_graphql22.InputType)()
|
|
5399
5615
|
], LoadAgentStateInput);
|
|
5400
5616
|
|
|
5401
5617
|
// src/graphql/resolvers/state.resolver.ts
|
|
5402
|
-
function
|
|
5618
|
+
function _ts_decorate22(decorators, target, key, desc) {
|
|
5403
5619
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5404
5620
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
5405
5621
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -5409,12 +5625,12 @@ function _ts_decorate20(decorators, target, key, desc) {
|
|
|
5409
5625
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5410
5626
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5411
5627
|
}
|
|
5412
|
-
__name(
|
|
5413
|
-
function
|
|
5628
|
+
__name(_ts_decorate22, "_ts_decorate");
|
|
5629
|
+
function _ts_metadata22(k, v) {
|
|
5414
5630
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
5415
5631
|
return Reflect.metadata(k, v);
|
|
5416
5632
|
}
|
|
5417
|
-
__name(
|
|
5633
|
+
__name(_ts_metadata22, "_ts_metadata");
|
|
5418
5634
|
function _ts_param2(paramIndex, decorator) {
|
|
5419
5635
|
return function(target, key) {
|
|
5420
5636
|
decorator(target, key, paramIndex);
|
|
@@ -5433,19 +5649,19 @@ var StateResolver = class {
|
|
|
5433
5649
|
}
|
|
5434
5650
|
};
|
|
5435
5651
|
__name(StateResolver, "StateResolver");
|
|
5436
|
-
|
|
5437
|
-
(0,
|
|
5438
|
-
_ts_param2(0, (0,
|
|
5439
|
-
_ts_param2(1, (0,
|
|
5440
|
-
|
|
5441
|
-
|
|
5652
|
+
_ts_decorate22([
|
|
5653
|
+
(0, import_type_graphql25.Query)(() => LoadAgentStateResponse),
|
|
5654
|
+
_ts_param2(0, (0, import_type_graphql24.Ctx)()),
|
|
5655
|
+
_ts_param2(1, (0, import_type_graphql23.Arg)("data")),
|
|
5656
|
+
_ts_metadata22("design:type", Function),
|
|
5657
|
+
_ts_metadata22("design:paramtypes", [
|
|
5442
5658
|
typeof GraphQLContext === "undefined" ? Object : GraphQLContext,
|
|
5443
5659
|
typeof LoadAgentStateInput === "undefined" ? Object : LoadAgentStateInput
|
|
5444
5660
|
]),
|
|
5445
|
-
|
|
5661
|
+
_ts_metadata22("design:returntype", Promise)
|
|
5446
5662
|
], StateResolver.prototype, "loadAgentState", null);
|
|
5447
|
-
StateResolver =
|
|
5448
|
-
(0,
|
|
5663
|
+
StateResolver = _ts_decorate22([
|
|
5664
|
+
(0, import_type_graphql23.Resolver)(() => LoadAgentStateResponse)
|
|
5449
5665
|
], StateResolver);
|
|
5450
5666
|
|
|
5451
5667
|
// src/lib/integrations/shared.ts
|
|
@@ -5469,7 +5685,7 @@ async function createContext(initialContext, copilotKitContext, contextLogger, p
|
|
|
5469
5685
|
__name(createContext, "createContext");
|
|
5470
5686
|
function buildSchema(options = {}) {
|
|
5471
5687
|
logger.debug("Building GraphQL schema...");
|
|
5472
|
-
const schema = (0,
|
|
5688
|
+
const schema = (0, import_type_graphql26.buildSchemaSync)({
|
|
5473
5689
|
resolvers: [
|
|
5474
5690
|
CopilotResolver,
|
|
5475
5691
|
StateResolver
|