@copilotkitnext/runtime 0.0.0-0.0.0-max-changeset-10101010101010-20260109191632

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.
@@ -0,0 +1,109 @@
1
+ import { C as CopilotRuntime, A as AgentRunner, a as AgentRunnerRunRequest, b as AgentRunnerConnectRequest, c as AgentRunnerIsRunningRequest, d as AgentRunnerStopRequest } from './runtime-BEcxV64L.mjs';
2
+ export { e as CopilotRuntimeOptions, V as VERSION } from './runtime-BEcxV64L.mjs';
3
+ import * as hono_hono_base from 'hono/hono-base';
4
+ import * as hono_utils_http_status from 'hono/utils/http-status';
5
+ import { Observable } from 'rxjs';
6
+ import { BaseEvent } from '@ag-ui/client';
7
+ export { finalizeRunEvents } from '@copilotkitnext/shared';
8
+
9
+ interface CopilotEndpointParams {
10
+ runtime: CopilotRuntime;
11
+ basePath: string;
12
+ }
13
+ type CopilotEndpointContext$1 = {
14
+ Variables: {
15
+ modifiedRequest?: Request;
16
+ };
17
+ };
18
+ declare function createCopilotEndpoint({ runtime, basePath }: CopilotEndpointParams): hono_hono_base.HonoBase<CopilotEndpointContext$1, {
19
+ [x: `${string}/agent/:agentId/run`]: {
20
+ $post: {
21
+ input: {
22
+ param: {
23
+ agentId: string;
24
+ };
25
+ };
26
+ output: {};
27
+ outputFormat: string;
28
+ status: hono_utils_http_status.StatusCode;
29
+ };
30
+ };
31
+ } & {
32
+ [x: `${string}/agent/:agentId/connect`]: {
33
+ $post: {
34
+ input: {
35
+ param: {
36
+ agentId: string;
37
+ };
38
+ };
39
+ output: {};
40
+ outputFormat: string;
41
+ status: hono_utils_http_status.StatusCode;
42
+ };
43
+ };
44
+ } & {
45
+ [x: `${string}/agent/:agentId/stop/:threadId`]: {
46
+ $post: {
47
+ input: {
48
+ param: {
49
+ agentId: string;
50
+ } & {
51
+ threadId: string;
52
+ };
53
+ };
54
+ output: {};
55
+ outputFormat: string;
56
+ status: hono_utils_http_status.StatusCode;
57
+ };
58
+ };
59
+ } & {
60
+ [x: `${string}/info`]: {
61
+ $get: {
62
+ input: {};
63
+ output: {};
64
+ outputFormat: string;
65
+ status: hono_utils_http_status.StatusCode;
66
+ };
67
+ };
68
+ } & {
69
+ [x: `${string}/transcribe`]: {
70
+ $post: {
71
+ input: {};
72
+ output: {};
73
+ outputFormat: string;
74
+ status: hono_utils_http_status.StatusCode;
75
+ };
76
+ };
77
+ }, string, `${string}/transcribe`>;
78
+
79
+ interface CopilotSingleEndpointParams {
80
+ runtime: CopilotRuntime;
81
+ /**
82
+ * Absolute path at which to mount the single-route endpoint (e.g. "/api/copilotkit").
83
+ */
84
+ basePath: string;
85
+ }
86
+ type CopilotEndpointContext = {
87
+ Variables: {
88
+ modifiedRequest?: Request;
89
+ };
90
+ };
91
+ declare function createCopilotEndpointSingleRoute({ runtime, basePath }: CopilotSingleEndpointParams): hono_hono_base.HonoBase<CopilotEndpointContext, {
92
+ [x: string]: {
93
+ $post: {
94
+ input: {};
95
+ output: {};
96
+ outputFormat: string;
97
+ status: hono_utils_http_status.StatusCode;
98
+ };
99
+ };
100
+ }, string, string>;
101
+
102
+ declare class InMemoryAgentRunner extends AgentRunner {
103
+ run(request: AgentRunnerRunRequest): Observable<BaseEvent>;
104
+ connect(request: AgentRunnerConnectRequest): Observable<BaseEvent>;
105
+ isRunning(request: AgentRunnerIsRunningRequest): Promise<boolean>;
106
+ stop(request: AgentRunnerStopRequest): Promise<boolean | undefined>;
107
+ }
108
+
109
+ export { AgentRunner, AgentRunnerConnectRequest, AgentRunnerIsRunningRequest, AgentRunnerRunRequest, AgentRunnerStopRequest, CopilotRuntime, InMemoryAgentRunner, createCopilotEndpoint, createCopilotEndpointSingleRoute };
@@ -0,0 +1,109 @@
1
+ import { C as CopilotRuntime, A as AgentRunner, a as AgentRunnerRunRequest, b as AgentRunnerConnectRequest, c as AgentRunnerIsRunningRequest, d as AgentRunnerStopRequest } from './runtime-BEcxV64L.js';
2
+ export { e as CopilotRuntimeOptions, V as VERSION } from './runtime-BEcxV64L.js';
3
+ import * as hono_hono_base from 'hono/hono-base';
4
+ import * as hono_utils_http_status from 'hono/utils/http-status';
5
+ import { Observable } from 'rxjs';
6
+ import { BaseEvent } from '@ag-ui/client';
7
+ export { finalizeRunEvents } from '@copilotkitnext/shared';
8
+
9
+ interface CopilotEndpointParams {
10
+ runtime: CopilotRuntime;
11
+ basePath: string;
12
+ }
13
+ type CopilotEndpointContext$1 = {
14
+ Variables: {
15
+ modifiedRequest?: Request;
16
+ };
17
+ };
18
+ declare function createCopilotEndpoint({ runtime, basePath }: CopilotEndpointParams): hono_hono_base.HonoBase<CopilotEndpointContext$1, {
19
+ [x: `${string}/agent/:agentId/run`]: {
20
+ $post: {
21
+ input: {
22
+ param: {
23
+ agentId: string;
24
+ };
25
+ };
26
+ output: {};
27
+ outputFormat: string;
28
+ status: hono_utils_http_status.StatusCode;
29
+ };
30
+ };
31
+ } & {
32
+ [x: `${string}/agent/:agentId/connect`]: {
33
+ $post: {
34
+ input: {
35
+ param: {
36
+ agentId: string;
37
+ };
38
+ };
39
+ output: {};
40
+ outputFormat: string;
41
+ status: hono_utils_http_status.StatusCode;
42
+ };
43
+ };
44
+ } & {
45
+ [x: `${string}/agent/:agentId/stop/:threadId`]: {
46
+ $post: {
47
+ input: {
48
+ param: {
49
+ agentId: string;
50
+ } & {
51
+ threadId: string;
52
+ };
53
+ };
54
+ output: {};
55
+ outputFormat: string;
56
+ status: hono_utils_http_status.StatusCode;
57
+ };
58
+ };
59
+ } & {
60
+ [x: `${string}/info`]: {
61
+ $get: {
62
+ input: {};
63
+ output: {};
64
+ outputFormat: string;
65
+ status: hono_utils_http_status.StatusCode;
66
+ };
67
+ };
68
+ } & {
69
+ [x: `${string}/transcribe`]: {
70
+ $post: {
71
+ input: {};
72
+ output: {};
73
+ outputFormat: string;
74
+ status: hono_utils_http_status.StatusCode;
75
+ };
76
+ };
77
+ }, string, `${string}/transcribe`>;
78
+
79
+ interface CopilotSingleEndpointParams {
80
+ runtime: CopilotRuntime;
81
+ /**
82
+ * Absolute path at which to mount the single-route endpoint (e.g. "/api/copilotkit").
83
+ */
84
+ basePath: string;
85
+ }
86
+ type CopilotEndpointContext = {
87
+ Variables: {
88
+ modifiedRequest?: Request;
89
+ };
90
+ };
91
+ declare function createCopilotEndpointSingleRoute({ runtime, basePath }: CopilotSingleEndpointParams): hono_hono_base.HonoBase<CopilotEndpointContext, {
92
+ [x: string]: {
93
+ $post: {
94
+ input: {};
95
+ output: {};
96
+ outputFormat: string;
97
+ status: hono_utils_http_status.StatusCode;
98
+ };
99
+ };
100
+ }, string, string>;
101
+
102
+ declare class InMemoryAgentRunner extends AgentRunner {
103
+ run(request: AgentRunnerRunRequest): Observable<BaseEvent>;
104
+ connect(request: AgentRunnerConnectRequest): Observable<BaseEvent>;
105
+ isRunning(request: AgentRunnerIsRunningRequest): Promise<boolean>;
106
+ stop(request: AgentRunnerStopRequest): Promise<boolean | undefined>;
107
+ }
108
+
109
+ export { AgentRunner, AgentRunnerConnectRequest, AgentRunnerIsRunningRequest, AgentRunnerRunRequest, AgentRunnerStopRequest, CopilotRuntime, InMemoryAgentRunner, createCopilotEndpoint, createCopilotEndpointSingleRoute };