vzcode 0.32.0 → 0.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.html
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
href="https://unpkg.com/boxicons@2.0.7/css/boxicons.min.css"
|
|
25
25
|
rel="stylesheet"
|
|
26
26
|
/>
|
|
27
|
-
<script type="module" crossorigin src="/assets/index-
|
|
27
|
+
<script type="module" crossorigin src="/assets/index-bQHQ5tUl.js"></script>
|
|
28
28
|
<link rel="stylesheet" crossorigin href="/assets/index-esdlTXtH.css">
|
|
29
29
|
</head>
|
|
30
30
|
<body>
|
package/package.json
CHANGED
package/src/client/AIAssist.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EditorView, keymap } from '@codemirror/view';
|
|
2
|
+
import json1 from 'ot-json1';
|
|
2
3
|
import {
|
|
3
4
|
FileId,
|
|
4
5
|
File,
|
|
@@ -6,10 +7,11 @@ import {
|
|
|
6
7
|
VZCodeContent,
|
|
7
8
|
} from '../types';
|
|
8
9
|
import { generateRequestId } from './CodeEditor/typeScriptCompletions';
|
|
9
|
-
import { insertOp, replaceOp } from 'ot-json1';
|
|
10
10
|
|
|
11
11
|
import { TabState } from './vzReducer';
|
|
12
12
|
|
|
13
|
+
const { insertOp, replaceOp } = json1;
|
|
14
|
+
|
|
13
15
|
export const AIAssist = ({
|
|
14
16
|
shareDBDoc,
|
|
15
17
|
// The file id of the file the AI should assist with.
|
package/src/types.ts
CHANGED
|
@@ -161,7 +161,7 @@ export type VZCodeContent = {
|
|
|
161
161
|
// client and server.
|
|
162
162
|
// * This can power the transition of the icon from
|
|
163
163
|
// lightning bolt to stop sign and back (when stream finishes)
|
|
164
|
-
aiStreams
|
|
164
|
+
aiStreams?: {
|
|
165
165
|
// These need to be removed at some point?
|
|
166
166
|
[aiStreamId: AIStreamId]: {
|
|
167
167
|
AIStreamStatus: AIStreamStatus;
|