@copilotkit/shared 0.9.0-mme-cloud.1 → 0.9.0-mme-cloud.3

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.
@@ -1,8 +1,8 @@
1
1
 
2
- > @copilotkit/shared@0.9.0-mme-cloud.1 build /home/runner/work/CopilotKit/CopilotKit/CopilotKit/packages/shared
2
+ > @copilotkit/shared@0.9.0-mme-cloud.3 build /home/runner/work/CopilotKit/CopilotKit/CopilotKit/packages/shared
3
3
  > tsup --clean
4
4
 
5
- CLI Building entry: src/index.ts, src/constants/copilot-protocol.ts, src/constants/index.ts, src/types/action.ts, src/types/annotated-function.ts, src/types/index.ts, src/types/openai-assistant.ts, src/utils/annotated-function.ts, src/utils/decode-chat-completion-as-text.ts, src/utils/decode-chat-completion.ts, src/utils/index.ts, src/utils/parse-chat-completion.ts, src/utils/utils.test.ts, src/utils/utils.ts
5
+ CLI Building entry: src/index.ts, src/constants/copilot-protocol.ts, src/constants/index.ts, src/types/action.ts, src/types/annotated-function.ts, src/types/copilot-cloud-config.ts, src/types/index.ts, src/types/openai-assistant.ts, src/utils/annotated-function.ts, src/utils/decode-chat-completion-as-text.ts, src/utils/decode-chat-completion.ts, src/utils/index.ts, src/utils/parse-chat-completion.ts, src/utils/utils.test.ts, src/utils/utils.ts
6
6
  CLI Using tsconfig: tsconfig.json
7
7
  CLI tsup v6.7.0
8
8
  CLI Using tsup config: /home/runner/work/CopilotKit/CopilotKit/CopilotKit/packages/shared/tsup.config.ts
@@ -16,55 +16,60 @@
16
16
  CJS dist/utils/annotated-function.js 5.84 KB
17
17
  CJS dist/constants/index.js 1.77 KB
18
18
  CJS dist/types/annotated-function.js 849.00 B
19
+ CJS dist/types/copilot-cloud-config.js 857.00 B
19
20
  CJS dist/types/index.js 797.00 B
20
21
  CJS dist/types/openai-assistant.js 841.00 B
21
22
  CJS dist/utils/decode-chat-completion-as-text.js 1.82 KB
22
23
  CJS dist/utils/decode-chat-completion.js 4.42 KB
23
24
  CJS dist/utils/index.js 16.77 KB
24
25
  CJS dist/utils/parse-chat-completion.js 2.68 KB
25
- CJS dist/utils/utils.test.js 184.00 B
26
26
  CJS dist/utils/utils.js 6.25 KB
27
+ CJS dist/utils/utils.test.js 184.00 B
27
28
  CJS dist/index.js.map 33.14 KB
28
29
  CJS dist/constants/copilot-protocol.js.map 261.00 B
29
30
  CJS dist/types/action.js.map 4.62 KB
30
31
  CJS dist/utils/annotated-function.js.map 8.45 KB
31
32
  CJS dist/constants/index.js.map 666.00 B
32
33
  CJS dist/types/annotated-function.js.map 871.00 B
33
- CJS dist/types/index.js.map 234.00 B
34
+ CJS dist/types/copilot-cloud-config.js.map 356.00 B
35
+ CJS dist/types/index.js.map 277.00 B
34
36
  CJS dist/types/openai-assistant.js.map 2.86 KB
35
37
  CJS dist/utils/decode-chat-completion-as-text.js.map 1.34 KB
36
38
  CJS dist/utils/decode-chat-completion.js.map 6.89 KB
37
39
  CJS dist/utils/index.js.map 32.75 KB
38
40
  CJS dist/utils/parse-chat-completion.js.map 4.15 KB
39
- CJS dist/utils/utils.test.js.map 354.00 B
40
41
  CJS dist/utils/utils.js.map 12.09 KB
41
- CJS ⚡️ Build success in 62ms
42
+ CJS dist/utils/utils.test.js.map 354.00 B
43
+ CJS ⚡️ Build success in 52ms
44
+ ESM dist/utils/annotated-function.mjs 314.00 B
42
45
  ESM dist/utils/decode-chat-completion-as-text.mjs 170.00 B
43
46
  ESM dist/utils/decode-chat-completion.mjs 150.00 B
44
47
  ESM dist/utils/index.mjs 1001.00 B
45
48
  ESM dist/utils/parse-chat-completion.mjs 147.00 B
46
49
  ESM dist/utils/utils.test.mjs 170.00 B
47
50
  ESM dist/utils/utils.mjs 439.00 B
48
- ESM dist/index.mjs 1.41 KB
51
+ ESM dist/index.mjs 1.44 KB
49
52
  ESM dist/chunk-UAPRMZEY.mjs 43.00 B
53
+ ESM dist/chunk-S4HGLK2E.mjs 4.62 KB
50
54
  ESM dist/chunk-4MTSDAP6.mjs 729.00 B
51
55
  ESM dist/chunk-NKEDWRKJ.mjs 3.36 KB
52
56
  ESM dist/chunk-TYZD5BQY.mjs 1.63 KB
53
57
  ESM dist/chunk-DBW3BY7E.mjs 4.92 KB
54
- ESM dist/constants/copilot-protocol.mjs 166.00 B
55
58
  ESM dist/constants/index.mjs 375.00 B
56
59
  ESM dist/chunk-FFQUB5LF.mjs 391.00 B
60
+ ESM dist/constants/copilot-protocol.mjs 166.00 B
57
61
  ESM dist/chunk-3ZU7SB62.mjs 200.00 B
58
62
  ESM dist/types/action.mjs 67.00 B
59
63
  ESM dist/types/annotated-function.mjs 79.00 B
60
- ESM dist/types/index.mjs 162.00 B
61
- ESM dist/chunk-DE5K76I2.mjs 43.00 B
64
+ ESM dist/types/copilot-cloud-config.mjs 81.00 B
65
+ ESM dist/types/index.mjs 194.00 B
66
+ ESM dist/chunk-BANDZXMP.mjs 43.00 B
62
67
  ESM dist/chunk-NAFEBKSO.mjs 43.00 B
63
68
  ESM dist/chunk-YBHX4Y25.mjs 43.00 B
69
+ ESM dist/chunk-MSUB6DGR.mjs 43.00 B
64
70
  ESM dist/types/openai-assistant.mjs 77.00 B
65
71
  ESM dist/chunk-IAFBVORQ.mjs 43.00 B
66
- ESM dist/utils/annotated-function.mjs 314.00 B
67
- ESM dist/chunk-S4HGLK2E.mjs 4.62 KB
72
+ ESM dist/utils/annotated-function.mjs.map 71.00 B
68
73
  ESM dist/utils/decode-chat-completion-as-text.mjs.map 71.00 B
69
74
  ESM dist/utils/decode-chat-completion.mjs.map 71.00 B
70
75
  ESM dist/utils/index.mjs.map 71.00 B
@@ -73,31 +78,33 @@
73
78
  ESM dist/utils/utils.mjs.map 71.00 B
74
79
  ESM dist/index.mjs.map 71.00 B
75
80
  ESM dist/chunk-UAPRMZEY.mjs.map 71.00 B
81
+ ESM dist/chunk-S4HGLK2E.mjs.map 8.40 KB
76
82
  ESM dist/chunk-4MTSDAP6.mjs.map 1.30 KB
77
83
  ESM dist/chunk-NKEDWRKJ.mjs.map 6.85 KB
78
84
  ESM dist/chunk-TYZD5BQY.mjs.map 4.10 KB
79
85
  ESM dist/chunk-DBW3BY7E.mjs.map 12.00 KB
80
- ESM dist/constants/copilot-protocol.mjs.map 71.00 B
81
86
  ESM dist/constants/index.mjs.map 71.00 B
82
87
  ESM dist/chunk-FFQUB5LF.mjs.map 452.00 B
88
+ ESM dist/constants/copilot-protocol.mjs.map 71.00 B
83
89
  ESM dist/chunk-3ZU7SB62.mjs.map 214.00 B
84
90
  ESM dist/types/action.mjs.map 71.00 B
85
91
  ESM dist/types/annotated-function.mjs.map 71.00 B
92
+ ESM dist/types/copilot-cloud-config.mjs.map 71.00 B
86
93
  ESM dist/types/index.mjs.map 71.00 B
87
- ESM dist/chunk-DE5K76I2.mjs.map 71.00 B
94
+ ESM dist/chunk-BANDZXMP.mjs.map 71.00 B
88
95
  ESM dist/chunk-NAFEBKSO.mjs.map 71.00 B
89
96
  ESM dist/chunk-YBHX4Y25.mjs.map 71.00 B
97
+ ESM dist/chunk-MSUB6DGR.mjs.map 71.00 B
90
98
  ESM dist/types/openai-assistant.mjs.map 71.00 B
91
99
  ESM dist/chunk-IAFBVORQ.mjs.map 71.00 B
92
- ESM dist/utils/annotated-function.mjs.map 71.00 B
93
- ESM dist/chunk-S4HGLK2E.mjs.map 8.40 KB
94
- ESM ⚡️ Build success in 67ms
100
+ ESM ⚡️ Build success in 61ms
95
101
  DTS Build start
96
- DTS ⚡️ Build success in 2234ms
97
- DTS dist/index.d.ts 1.39 KB
102
+ DTS ⚡️ Build success in 2092ms
103
+ DTS dist/index.d.ts 1.46 KB
98
104
  DTS dist/types/openai-assistant.d.ts 2.79 KB
99
105
  DTS dist/types/annotated-function.d.ts 766.00 B
100
106
  DTS dist/types/action.d.ts 2.09 KB
107
+ DTS dist/types/copilot-cloud-config.d.ts 278.00 B
101
108
  DTS dist/utils/utils.d.ts 4.32 KB
102
109
  DTS dist/utils/parse-chat-completion.d.ts 805.00 B
103
110
  DTS dist/utils/decode-chat-completion.d.ts 955.00 B
@@ -105,6 +112,6 @@
105
112
  DTS dist/utils/annotated-function.d.ts 600.00 B
106
113
  DTS dist/constants/index.d.ts 427.00 B
107
114
  DTS dist/constants/copilot-protocol.d.ts 128.00 B
108
- DTS dist/types/index.d.ts 428.00 B
115
+ DTS dist/types/index.d.ts 492.00 B
109
116
  DTS dist/utils/index.d.ts 853.00 B
110
117
  DTS dist/utils/utils.test.d.ts 12.00 B
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @copilotkit/shared
2
2
 
3
+ ## 0.9.0-mme-cloud.3
4
+
5
+ ### Minor Changes
6
+
7
+ - Retrieve public API key
8
+
9
+ ## 0.9.0-mme-cloud.2
10
+
11
+ ### Minor Changes
12
+
13
+ - streamline cloud configuration
14
+
3
15
  ## 0.9.0-mme-cloud.1
4
16
 
5
17
  ### Minor Changes
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=chunk-BANDZXMP.mjs.map
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=chunk-MSUB6DGR.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export { AssistantMessage, FunctionCall, FunctionCallHandler, FunctionDefinition, JSONValue, Message, Role, ToolDefinition } from './types/openai-assistant.js';
2
2
  export { AnnotatedFunction, AnnotatedFunctionArgument, AnnotatedFunctionArrayArgument, AnnotatedFunctionSimpleArgument } from './types/annotated-function.js';
3
3
  export { Action, BaseParameter, MappedParameterTypes, ObjectParameter, Parameter, StringParameter } from './types/action.js';
4
+ export { CopilotCloudConfig } from './types/copilot-cloud-config.js';
4
5
  export { COMPLEX_HEADER, StreamPart, StreamPartType, StreamString, StreamStringPrefixes, decodeResult, encodeResult, formatStreamPart, isStreamStringEqualToType, parseStreamPart, streamPartsByCode, validCodes } from './utils/utils.js';
5
6
  export { ChatCompletionChunk, parseChatCompletion } from './utils/parse-chat-completion.js';
6
7
  export { ChatCompletionContentEvent, ChatCompletionEvent, ChatCompletionFunctionEvent, ChatCompletionPartialEvent, ChatCompletionResultEvent, decodeChatCompletion } from './utils/decode-chat-completion.js';
package/dist/index.mjs CHANGED
@@ -1,4 +1,9 @@
1
1
  import "./chunk-UAPRMZEY.mjs";
2
+ import {
3
+ actionToChatCompletionFunction,
4
+ annotatedFunctionToAction,
5
+ annotatedFunctionToChatCompletionFunction
6
+ } from "./chunk-S4HGLK2E.mjs";
2
7
  import {
3
8
  decodeChatCompletionAsText
4
9
  } from "./chunk-4MTSDAP6.mjs";
@@ -27,15 +32,11 @@ import {
27
32
  import {
28
33
  EXCLUDE_FROM_FORWARD_PROPS_KEYS
29
34
  } from "./chunk-3ZU7SB62.mjs";
30
- import "./chunk-DE5K76I2.mjs";
35
+ import "./chunk-BANDZXMP.mjs";
31
36
  import "./chunk-NAFEBKSO.mjs";
32
37
  import "./chunk-YBHX4Y25.mjs";
38
+ import "./chunk-MSUB6DGR.mjs";
33
39
  import "./chunk-IAFBVORQ.mjs";
34
- import {
35
- actionToChatCompletionFunction,
36
- annotatedFunctionToAction,
37
- annotatedFunctionToChatCompletionFunction
38
- } from "./chunk-S4HGLK2E.mjs";
39
40
  export {
40
41
  COMPLEX_HEADER,
41
42
  COPILOT_CLOUD_API_URL,
@@ -0,0 +1,13 @@
1
+ interface CopilotCloudConfig {
2
+ guardrails: {
3
+ input: {
4
+ restrictToTopic: {
5
+ enabled: boolean;
6
+ validTopics: string[];
7
+ invalidTopics: string[];
8
+ };
9
+ };
10
+ };
11
+ }
12
+
13
+ export { CopilotCloudConfig };
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // src/types/copilot-cloud-config.ts
17
+ var copilot_cloud_config_exports = {};
18
+ module.exports = __toCommonJS(copilot_cloud_config_exports);
19
+ //# sourceMappingURL=copilot-cloud-config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/types/copilot-cloud-config.ts"],"sourcesContent":["export interface CopilotCloudConfig {\n guardrails: {\n input: {\n restrictToTopic: {\n enabled: boolean;\n validTopics: string[];\n invalidTopics: string[];\n };\n };\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -0,0 +1,2 @@
1
+ import "../chunk-MSUB6DGR.mjs";
2
+ //# sourceMappingURL=copilot-cloud-config.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,3 +1,4 @@
1
1
  export { AssistantMessage, FunctionCall, FunctionCallHandler, FunctionDefinition, JSONValue, Message, Role, ToolDefinition } from './openai-assistant.js';
2
2
  export { AnnotatedFunction, AnnotatedFunctionArgument, AnnotatedFunctionArrayArgument, AnnotatedFunctionSimpleArgument } from './annotated-function.js';
3
3
  export { Action, BaseParameter, MappedParameterTypes, ObjectParameter, Parameter, StringParameter } from './action.js';
4
+ export { CopilotCloudConfig } from './copilot-cloud-config.js';
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/types/index.ts"],"sourcesContent":["export * from \"./openai-assistant\";\nexport * from \"./annotated-function\";\nexport * from \"./action\";\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
1
+ {"version":3,"sources":["../../src/types/index.ts"],"sourcesContent":["export * from \"./openai-assistant\";\nexport * from \"./annotated-function\";\nexport * from \"./action\";\nexport * from \"./copilot-cloud-config\";\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -1,5 +1,6 @@
1
- import "../chunk-DE5K76I2.mjs";
1
+ import "../chunk-BANDZXMP.mjs";
2
2
  import "../chunk-NAFEBKSO.mjs";
3
3
  import "../chunk-YBHX4Y25.mjs";
4
+ import "../chunk-MSUB6DGR.mjs";
4
5
  import "../chunk-IAFBVORQ.mjs";
5
6
  //# sourceMappingURL=index.mjs.map
@@ -1,4 +1,9 @@
1
1
  import "../chunk-UAPRMZEY.mjs";
2
+ import {
3
+ actionToChatCompletionFunction,
4
+ annotatedFunctionToAction,
5
+ annotatedFunctionToChatCompletionFunction
6
+ } from "../chunk-S4HGLK2E.mjs";
2
7
  import {
3
8
  decodeChatCompletionAsText
4
9
  } from "../chunk-4MTSDAP6.mjs";
@@ -19,11 +24,6 @@ import {
19
24
  streamPartsByCode,
20
25
  validCodes
21
26
  } from "../chunk-DBW3BY7E.mjs";
22
- import {
23
- actionToChatCompletionFunction,
24
- annotatedFunctionToAction,
25
- annotatedFunctionToChatCompletionFunction
26
- } from "../chunk-S4HGLK2E.mjs";
27
27
  export {
28
28
  COMPLEX_HEADER,
29
29
  StreamStringPrefixes,
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.9.0-mme-cloud.1",
7
+ "version": "0.9.0-mme-cloud.3",
8
8
  "sideEffects": false,
9
9
  "main": "./dist/index.js",
10
10
  "module": "./dist/index.mjs",
@@ -25,8 +25,8 @@
25
25
  "ts-jest": "^29.1.1",
26
26
  "tsup": "^6.7.0",
27
27
  "typescript": "^5.2.3",
28
- "eslint-config-custom": "0.10.0-mme-cloud.1",
29
- "tsconfig": "0.14.0-mme-cloud.1"
28
+ "eslint-config-custom": "0.10.0-mme-cloud.3",
29
+ "tsconfig": "0.14.0-mme-cloud.3"
30
30
  },
31
31
  "dependencies": {},
32
32
  "scripts": {
@@ -0,0 +1,11 @@
1
+ export interface CopilotCloudConfig {
2
+ guardrails: {
3
+ input: {
4
+ restrictToTopic: {
5
+ enabled: boolean;
6
+ validTopics: string[];
7
+ invalidTopics: string[];
8
+ };
9
+ };
10
+ };
11
+ }
@@ -1,3 +1,4 @@
1
1
  export * from "./openai-assistant";
2
2
  export * from "./annotated-function";
3
3
  export * from "./action";
4
+ export * from "./copilot-cloud-config";
@@ -1 +0,0 @@
1
- //# sourceMappingURL=chunk-DE5K76I2.mjs.map