@copilotkit/react-textarea 1.2.0 → 1.2.2-feat-runtime-remote-actions.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist/components/copilot-textarea/copilot-textarea.d.mts +3 -3
  3. package/dist/components/copilot-textarea/copilot-textarea.d.ts +3 -3
  4. package/dist/components/copilot-textarea/copilot-textarea.js +3 -4
  5. package/dist/components/copilot-textarea/copilot-textarea.js.map +1 -1
  6. package/dist/components/copilot-textarea/copilot-textarea.mjs +5 -4
  7. package/dist/components/copilot-textarea/copilot-textarea.mjs.map +1 -1
  8. package/dist/components/index.js +3 -4
  9. package/dist/components/index.js.map +1 -1
  10. package/dist/components/index.mjs +5 -4
  11. package/dist/components/index.mjs.map +1 -1
  12. package/dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.js +1 -2
  13. package/dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.js.map +1 -1
  14. package/dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.mjs +2 -2
  15. package/dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.mjs.map +1 -1
  16. package/dist/hooks/make-autosuggestions-function/use-make-standard-insertion-function.js +2 -2
  17. package/dist/hooks/make-autosuggestions-function/use-make-standard-insertion-function.js.map +1 -1
  18. package/dist/hooks/make-autosuggestions-function/use-make-standard-insertion-function.mjs +3 -2
  19. package/dist/hooks/make-autosuggestions-function/use-make-standard-insertion-function.mjs.map +1 -1
  20. package/dist/index.js +3 -4
  21. package/dist/index.js.map +1 -1
  22. package/dist/index.mjs +5 -4
  23. package/dist/index.mjs.map +1 -1
  24. package/package.json +7 -7
  25. package/src/components/copilot-textarea/copilot-textarea.tsx +3 -3
  26. package/src/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.tsx +2 -2
  27. package/src/hooks/make-autosuggestions-function/use-make-standard-insertion-function.tsx +3 -2
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "publishConfig": {
10
10
  "access": "public"
11
11
  },
12
- "version": "1.2.0",
12
+ "version": "1.2.2-feat-runtime-remote-actions.0",
13
13
  "sideEffects": [
14
14
  "**/*.css"
15
15
  ],
@@ -49,9 +49,9 @@
49
49
  "ts-jest": "^29.1.1",
50
50
  "tsup-async-inject-style": "0.0.2",
51
51
  "typescript": "^5.2.3",
52
- "eslint-config-custom": "1.2.0",
53
- "tailwind-config": "1.2.0",
54
- "tsconfig": "1.2.0"
52
+ "eslint-config-custom": "1.2.2-feat-runtime-remote-actions.0",
53
+ "tailwind-config": "1.2.2-feat-runtime-remote-actions.0",
54
+ "tsconfig": "1.2.2-feat-runtime-remote-actions.0"
55
55
  },
56
56
  "dependencies": {
57
57
  "@emotion/css": "^11.11.2",
@@ -73,9 +73,9 @@
73
73
  "slate-history": "^0.93.0",
74
74
  "slate-react": "^0.98.1",
75
75
  "tailwind-merge": "^1.13.2",
76
- "@copilotkit/react-core": "1.2.0",
77
- "@copilotkit/runtime-client-gql": "1.2.0",
78
- "@copilotkit/shared": "1.2.0"
76
+ "@copilotkit/react-core": "1.2.2-feat-runtime-remote-actions.0",
77
+ "@copilotkit/runtime-client-gql": "1.2.2-feat-runtime-remote-actions.0",
78
+ "@copilotkit/shared": "1.2.2-feat-runtime-remote-actions.0"
79
79
  },
80
80
  "keywords": [
81
81
  "copilotkit",
@@ -26,10 +26,10 @@
26
26
  *
27
27
  * ### Install Dependencies
28
28
  *
29
- * This component is part of the [@copilotkit/react-ui](https://npmjs.com/package/@copilotkit/react-ui) package.
29
+ * This component is part of the [@copilotkit/react-textarea](https://npmjs.com/package/@copilotkit/react-textarea) package.
30
30
  *
31
- * ```shell npm2yarn \"@copilotkit/react-ui"\
32
- * npm install @copilotkit/react-core @copilotkit/react-ui
31
+ * ```shell npm2yarn \"@copilotkit/react-textarea"\
32
+ * npm install @copilotkit/react-core @copilotkit/react-textarea
33
33
  * ```
34
34
  *
35
35
  * ### Usage
@@ -12,6 +12,7 @@ import {
12
12
  TextMessage,
13
13
  convertGqlOutputToMessages,
14
14
  convertMessagesToGqlInput,
15
+ filterAgentStateMessages,
15
16
  CopilotRequestType,
16
17
  } from "@copilotkit/runtime-client-gql";
17
18
 
@@ -81,7 +82,7 @@ export function useMakeStandardAutosuggestionFunction(
81
82
  actions: [],
82
83
  url: window.location.href,
83
84
  },
84
- messages: convertMessagesToGqlInput(messages),
85
+ messages: convertMessagesToGqlInput(filterAgentStateMessages(messages)),
85
86
  metadata: {
86
87
  requestType: CopilotRequestType.TextareaCompletion,
87
88
  },
@@ -104,7 +105,6 @@ export function useMakeStandardAutosuggestionFunction(
104
105
  }
105
106
  if (message instanceof TextMessage) {
106
107
  result += message.content;
107
- console.log(message.content);
108
108
  }
109
109
  }
110
110
 
@@ -8,6 +8,7 @@ import {
8
8
  TextMessage,
9
9
  convertGqlOutputToMessages,
10
10
  convertMessagesToGqlInput,
11
+ filterAgentStateMessages,
11
12
  CopilotRequestType,
12
13
  } from "@copilotkit/runtime-client-gql";
13
14
  import { retry } from "../../lib/retry";
@@ -126,7 +127,7 @@ export function useMakeStandardInsertionOrEditingFunction(
126
127
  actions: [],
127
128
  url: window.location.href,
128
129
  },
129
- messages: convertMessagesToGqlInput(messages),
130
+ messages: convertMessagesToGqlInput(filterAgentStateMessages(messages)),
130
131
  metadata: {
131
132
  requestType: CopilotRequestType.TextareaCompletion,
132
133
  },
@@ -191,7 +192,7 @@ export function useMakeStandardInsertionOrEditingFunction(
191
192
  actions: [],
192
193
  url: window.location.href,
193
194
  },
194
- messages: convertMessagesToGqlInput(messages),
195
+ messages: convertMessagesToGqlInput(filterAgentStateMessages(messages)),
195
196
  metadata: {
196
197
  requestType: CopilotRequestType.TextareaCompletion,
197
198
  },