@byline/ai 1.9.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/LICENSE +21 -0
- package/README.md +4 -0
- package/dist/@types.d.ts +103 -0
- package/dist/@types.d.ts.map +1 -0
- package/dist/@types.js +68 -0
- package/dist/@types.js.map +1 -0
- package/dist/config/ai-config.d.ts +76 -0
- package/dist/config/ai-config.d.ts.map +1 -0
- package/dist/config/ai-config.js +108 -0
- package/dist/config/ai-config.js.map +1 -0
- package/dist/config/ai-config.test.node.d.ts +9 -0
- package/dist/config/ai-config.test.node.d.ts.map +1 -0
- package/dist/config/ai-config.test.node.js +31 -0
- package/dist/config/ai-config.test.node.js.map +1 -0
- package/dist/config/ai-provider.d.ts +17 -0
- package/dist/config/ai-provider.d.ts.map +1 -0
- package/dist/config/ai-provider.js +32 -0
- package/dist/config/ai-provider.js.map +1 -0
- package/dist/execute.d.ts +15 -0
- package/dist/execute.d.ts.map +1 -0
- package/dist/execute.js +473 -0
- package/dist/execute.js.map +1 -0
- package/dist/generate.d.ts +64 -0
- package/dist/generate.d.ts.map +1 -0
- package/dist/generate.js +235 -0
- package/dist/generate.js.map +1 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +43 -0
- package/dist/index.js.map +1 -0
- package/dist/lexical-text-edits.d.ts +23 -0
- package/dist/lexical-text-edits.d.ts.map +1 -0
- package/dist/lexical-text-edits.js +62 -0
- package/dist/lexical-text-edits.js.map +1 -0
- package/dist/lib/logger.d.ts +10 -0
- package/dist/lib/logger.d.ts.map +1 -0
- package/dist/lib/logger.js +16 -0
- package/dist/lib/logger.js.map +1 -0
- package/dist/models/anthropic/anthropic-models.d.ts +14 -0
- package/dist/models/anthropic/anthropic-models.d.ts.map +1 -0
- package/dist/models/anthropic/anthropic-models.js +41 -0
- package/dist/models/anthropic/anthropic-models.js.map +1 -0
- package/dist/models/anthropic/anthropic.d.ts +9 -0
- package/dist/models/anthropic/anthropic.d.ts.map +1 -0
- package/dist/models/anthropic/anthropic.js +20 -0
- package/dist/models/anthropic/anthropic.js.map +1 -0
- package/dist/models/anthropic/generate-native.d.ts +59 -0
- package/dist/models/anthropic/generate-native.d.ts.map +1 -0
- package/dist/models/anthropic/generate-native.js +271 -0
- package/dist/models/anthropic/generate-native.js.map +1 -0
- package/dist/models/anthropic/generate-vercel.d.ts +59 -0
- package/dist/models/anthropic/generate-vercel.d.ts.map +1 -0
- package/dist/models/anthropic/generate-vercel.js +126 -0
- package/dist/models/anthropic/generate-vercel.js.map +1 -0
- package/dist/models/anthropic/generate.d.ts +16 -0
- package/dist/models/anthropic/generate.d.ts.map +1 -0
- package/dist/models/anthropic/generate.js +28 -0
- package/dist/models/anthropic/generate.js.map +1 -0
- package/dist/models/anthropic/generate.test.node.d.ts +9 -0
- package/dist/models/anthropic/generate.test.node.d.ts.map +1 -0
- package/dist/models/anthropic/generate.test.node.js +106 -0
- package/dist/models/anthropic/generate.test.node.js.map +1 -0
- package/dist/models/anthropic/patch-native.d.ts +33 -0
- package/dist/models/anthropic/patch-native.d.ts.map +1 -0
- package/dist/models/anthropic/patch-native.js +152 -0
- package/dist/models/anthropic/patch-native.js.map +1 -0
- package/dist/models/anthropic/patch-vercel.d.ts +33 -0
- package/dist/models/anthropic/patch-vercel.d.ts.map +1 -0
- package/dist/models/anthropic/patch-vercel.js +47 -0
- package/dist/models/anthropic/patch-vercel.js.map +1 -0
- package/dist/models/anthropic/patch.d.ts +12 -0
- package/dist/models/anthropic/patch.d.ts.map +1 -0
- package/dist/models/anthropic/patch.js +16 -0
- package/dist/models/anthropic/patch.js.map +1 -0
- package/dist/models/anthropic/patch.test.node.d.ts +9 -0
- package/dist/models/anthropic/patch.test.node.d.ts.map +1 -0
- package/dist/models/anthropic/patch.test.node.js +110 -0
- package/dist/models/anthropic/patch.test.node.js.map +1 -0
- package/dist/models/anthropic/schema.d.ts +212 -0
- package/dist/models/anthropic/schema.d.ts.map +1 -0
- package/dist/models/anthropic/schema.js +131 -0
- package/dist/models/anthropic/schema.js.map +1 -0
- package/dist/models/google/generate-native.d.ts +59 -0
- package/dist/models/google/generate-native.d.ts.map +1 -0
- package/dist/models/google/generate-native.js +244 -0
- package/dist/models/google/generate-native.js.map +1 -0
- package/dist/models/google/generate-vercel.d.ts +59 -0
- package/dist/models/google/generate-vercel.d.ts.map +1 -0
- package/dist/models/google/generate-vercel.js +133 -0
- package/dist/models/google/generate-vercel.js.map +1 -0
- package/dist/models/google/generate.d.ts +16 -0
- package/dist/models/google/generate.d.ts.map +1 -0
- package/dist/models/google/generate.js +28 -0
- package/dist/models/google/generate.js.map +1 -0
- package/dist/models/google/generate.test.node.d.ts +9 -0
- package/dist/models/google/generate.test.node.d.ts.map +1 -0
- package/dist/models/google/generate.test.node.js +106 -0
- package/dist/models/google/generate.test.node.js.map +1 -0
- package/dist/models/google/google-models.d.ts +14 -0
- package/dist/models/google/google-models.d.ts.map +1 -0
- package/dist/models/google/google-models.js +25 -0
- package/dist/models/google/google-models.js.map +1 -0
- package/dist/models/google/normalize-generated-doc.d.ts +10 -0
- package/dist/models/google/normalize-generated-doc.d.ts.map +1 -0
- package/dist/models/google/normalize-generated-doc.js +48 -0
- package/dist/models/google/normalize-generated-doc.js.map +1 -0
- package/dist/models/google/patch-native.d.ts +33 -0
- package/dist/models/google/patch-native.d.ts.map +1 -0
- package/dist/models/google/patch-native.js +164 -0
- package/dist/models/google/patch-native.js.map +1 -0
- package/dist/models/google/patch-vercel.d.ts +33 -0
- package/dist/models/google/patch-vercel.d.ts.map +1 -0
- package/dist/models/google/patch-vercel.js +49 -0
- package/dist/models/google/patch-vercel.js.map +1 -0
- package/dist/models/google/patch.d.ts +12 -0
- package/dist/models/google/patch.d.ts.map +1 -0
- package/dist/models/google/patch.js +16 -0
- package/dist/models/google/patch.js.map +1 -0
- package/dist/models/google/patch.test.node.d.ts +9 -0
- package/dist/models/google/patch.test.node.d.ts.map +1 -0
- package/dist/models/google/patch.test.node.js +110 -0
- package/dist/models/google/patch.test.node.js.map +1 -0
- package/dist/models/google/schema.d.ts +416 -0
- package/dist/models/google/schema.d.ts.map +1 -0
- package/dist/models/google/schema.js +254 -0
- package/dist/models/google/schema.js.map +1 -0
- package/dist/models/openai/generate-native.d.ts +65 -0
- package/dist/models/openai/generate-native.d.ts.map +1 -0
- package/dist/models/openai/generate-native.js +276 -0
- package/dist/models/openai/generate-native.js.map +1 -0
- package/dist/models/openai/generate-vercel.d.ts +59 -0
- package/dist/models/openai/generate-vercel.d.ts.map +1 -0
- package/dist/models/openai/generate-vercel.js +132 -0
- package/dist/models/openai/generate-vercel.js.map +1 -0
- package/dist/models/openai/generate.d.ts +16 -0
- package/dist/models/openai/generate.d.ts.map +1 -0
- package/dist/models/openai/generate.js +28 -0
- package/dist/models/openai/generate.js.map +1 -0
- package/dist/models/openai/generate.test.node.d.ts +9 -0
- package/dist/models/openai/generate.test.node.d.ts.map +1 -0
- package/dist/models/openai/generate.test.node.js +106 -0
- package/dist/models/openai/generate.test.node.js.map +1 -0
- package/dist/models/openai/openai-models.d.ts +14 -0
- package/dist/models/openai/openai-models.d.ts.map +1 -0
- package/dist/models/openai/openai-models.js +23 -0
- package/dist/models/openai/openai-models.js.map +1 -0
- package/dist/models/openai/patch-native.d.ts +33 -0
- package/dist/models/openai/patch-native.d.ts.map +1 -0
- package/dist/models/openai/patch-native.js +151 -0
- package/dist/models/openai/patch-native.js.map +1 -0
- package/dist/models/openai/patch-vercel.d.ts +33 -0
- package/dist/models/openai/patch-vercel.d.ts.map +1 -0
- package/dist/models/openai/patch-vercel.js +49 -0
- package/dist/models/openai/patch-vercel.js.map +1 -0
- package/dist/models/openai/patch.d.ts +12 -0
- package/dist/models/openai/patch.d.ts.map +1 -0
- package/dist/models/openai/patch.js +16 -0
- package/dist/models/openai/patch.js.map +1 -0
- package/dist/models/openai/patch.test.node.d.ts +9 -0
- package/dist/models/openai/patch.test.node.d.ts.map +1 -0
- package/dist/models/openai/patch.test.node.js +110 -0
- package/dist/models/openai/patch.test.node.js.map +1 -0
- package/dist/models/openai/schema.d.ts +460 -0
- package/dist/models/openai/schema.d.ts.map +1 -0
- package/dist/models/openai/schema.js +327 -0
- package/dist/models/openai/schema.js.map +1 -0
- package/dist/patch.d.ts +45 -0
- package/dist/patch.d.ts.map +1 -0
- package/dist/patch.js +138 -0
- package/dist/patch.js.map +1 -0
- package/dist/plugins/ai-plugin-base.d.ts +40 -0
- package/dist/plugins/ai-plugin-base.d.ts.map +1 -0
- package/dist/plugins/ai-plugin-base.js +218 -0
- package/dist/plugins/ai-plugin-base.js.map +1 -0
- package/dist/plugins/ai-plugin.css +181 -0
- package/dist/plugins/lexical/create-empty-editor-state.d.ts +32 -0
- package/dist/plugins/lexical/create-empty-editor-state.d.ts.map +1 -0
- package/dist/plugins/lexical/create-empty-editor-state.js +51 -0
- package/dist/plugins/lexical/create-empty-editor-state.js.map +1 -0
- package/dist/plugins/lexical/import-html.d.ts +10 -0
- package/dist/plugins/lexical/import-html.d.ts.map +1 -0
- package/dist/plugins/lexical/import-html.js +31 -0
- package/dist/plugins/lexical/import-html.js.map +1 -0
- package/dist/plugins/lexical/index.d.ts +9 -0
- package/dist/plugins/lexical/index.d.ts.map +1 -0
- package/dist/plugins/lexical/index.js +9 -0
- package/dist/plugins/lexical/index.js.map +1 -0
- package/dist/plugins/lexical/plugin.d.ts +11 -0
- package/dist/plugins/lexical/plugin.d.ts.map +1 -0
- package/dist/plugins/lexical/plugin.js +305 -0
- package/dist/plugins/lexical/plugin.js.map +1 -0
- package/dist/plugins/storage.d.ts +18 -0
- package/dist/plugins/storage.d.ts.map +1 -0
- package/dist/plugins/storage.js +57 -0
- package/dist/plugins/storage.js.map +1 -0
- package/dist/plugins/streaming-preview.d.ts +12 -0
- package/dist/plugins/streaming-preview.d.ts.map +1 -0
- package/dist/plugins/streaming-preview.js +24 -0
- package/dist/plugins/streaming-preview.js.map +1 -0
- package/dist/plugins/text/index.d.ts +9 -0
- package/dist/plugins/text/index.d.ts.map +1 -0
- package/dist/plugins/text/index.js +9 -0
- package/dist/plugins/text/index.js.map +1 -0
- package/dist/plugins/text/plugin.d.ts +18 -0
- package/dist/plugins/text/plugin.d.ts.map +1 -0
- package/dist/plugins/text/plugin.js +261 -0
- package/dist/plugins/text/plugin.js.map +1 -0
- package/dist/prompts.d.ts +30 -0
- package/dist/prompts.d.ts.map +1 -0
- package/dist/prompts.js +83 -0
- package/dist/prompts.js.map +1 -0
- package/dist/schemas/lexical-json-schema.d.ts +68 -0
- package/dist/schemas/lexical-json-schema.d.ts.map +1 -0
- package/dist/schemas/lexical-json-schema.js +434 -0
- package/dist/schemas/lexical-json-schema.js.map +1 -0
- package/dist/scripts/list-models.d.ts +9 -0
- package/dist/scripts/list-models.d.ts.map +1 -0
- package/dist/scripts/list-models.js +55 -0
- package/dist/scripts/list-models.js.map +1 -0
- package/dist/server.d.ts +25 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +22 -0
- package/dist/server.js.map +1 -0
- package/dist/utils/convert-to-lexical.d.ts +62 -0
- package/dist/utils/convert-to-lexical.d.ts.map +1 -0
- package/dist/utils/convert-to-lexical.js +210 -0
- package/dist/utils/convert-to-lexical.js.map +1 -0
- package/dist/utils/create-empty-editor-state.d.ts +32 -0
- package/dist/utils/create-empty-editor-state.d.ts.map +1 -0
- package/dist/utils/create-empty-editor-state.js +51 -0
- package/dist/utils/create-empty-editor-state.js.map +1 -0
- package/dist/utils/has-text.d.ts +10 -0
- package/dist/utils/has-text.d.ts.map +1 -0
- package/dist/utils/has-text.js +35 -0
- package/dist/utils/has-text.js.map +1 -0
- package/dist/utils/has-text.test.d.ts +9 -0
- package/dist/utils/has-text.test.d.ts.map +1 -0
- package/dist/utils/has-text.test.js +69 -0
- package/dist/utils/has-text.test.js.map +1 -0
- package/dist/utils/is-object-schema.d.ts +17 -0
- package/dist/utils/is-object-schema.d.ts.map +1 -0
- package/dist/utils/is-object-schema.js +19 -0
- package/dist/utils/is-object-schema.js.map +1 -0
- package/dist/utils/lexical-text-edits.d.ts +23 -0
- package/dist/utils/lexical-text-edits.d.ts.map +1 -0
- package/dist/utils/lexical-text-edits.js +62 -0
- package/dist/utils/lexical-text-edits.js.map +1 -0
- package/package.json +111 -0
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This Source Code is subject to the terms of the Mozilla Public
|
|
3
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
4
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Infonomic Company Limited
|
|
7
|
+
*/
|
|
8
|
+
export const openaiHtmlGenerationSchema = {
|
|
9
|
+
name: 'html_generation',
|
|
10
|
+
strict: true,
|
|
11
|
+
schema: {
|
|
12
|
+
type: 'object',
|
|
13
|
+
additionalProperties: false,
|
|
14
|
+
properties: {
|
|
15
|
+
html: {
|
|
16
|
+
type: 'string',
|
|
17
|
+
description: 'The generated HTML content.',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
required: ['html'],
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
export const openaiGenerationSchema = {
|
|
24
|
+
name: 'lexical_doc_blocks_v1',
|
|
25
|
+
strict: true,
|
|
26
|
+
schema: {
|
|
27
|
+
type: 'object',
|
|
28
|
+
additionalProperties: false,
|
|
29
|
+
properties: {
|
|
30
|
+
title: { anyOf: [{ type: 'string' }, { type: 'null' }] },
|
|
31
|
+
blocks: {
|
|
32
|
+
type: 'array',
|
|
33
|
+
items: {
|
|
34
|
+
anyOf: [
|
|
35
|
+
{
|
|
36
|
+
// Heading
|
|
37
|
+
type: 'object',
|
|
38
|
+
additionalProperties: false,
|
|
39
|
+
properties: {
|
|
40
|
+
kind: { type: 'string', enum: ['heading'] },
|
|
41
|
+
level: { type: 'number', enum: [1, 2, 3] },
|
|
42
|
+
inlines: {
|
|
43
|
+
type: 'array',
|
|
44
|
+
items: {
|
|
45
|
+
anyOf: [
|
|
46
|
+
{
|
|
47
|
+
type: 'object',
|
|
48
|
+
additionalProperties: false,
|
|
49
|
+
properties: {
|
|
50
|
+
kind: { type: 'string', enum: ['text'] },
|
|
51
|
+
text: { type: 'string' },
|
|
52
|
+
marks: {
|
|
53
|
+
type: 'object',
|
|
54
|
+
additionalProperties: false,
|
|
55
|
+
properties: {
|
|
56
|
+
bold: { type: 'boolean' },
|
|
57
|
+
italic: { type: 'boolean' },
|
|
58
|
+
underline: { type: 'boolean' },
|
|
59
|
+
code: { type: 'boolean' },
|
|
60
|
+
},
|
|
61
|
+
required: ['bold', 'italic', 'underline', 'code'],
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
required: ['kind', 'text', 'marks'],
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
type: 'object',
|
|
68
|
+
additionalProperties: false,
|
|
69
|
+
properties: {
|
|
70
|
+
kind: { type: 'string', enum: ['link'] },
|
|
71
|
+
url: { type: 'string' },
|
|
72
|
+
text: { type: 'string' },
|
|
73
|
+
marks: {
|
|
74
|
+
type: 'object',
|
|
75
|
+
additionalProperties: false,
|
|
76
|
+
properties: {
|
|
77
|
+
bold: { type: 'boolean' },
|
|
78
|
+
italic: { type: 'boolean' },
|
|
79
|
+
underline: { type: 'boolean' },
|
|
80
|
+
code: { type: 'boolean' },
|
|
81
|
+
},
|
|
82
|
+
required: ['bold', 'italic', 'underline', 'code'],
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
required: ['kind', 'url', 'text', 'marks'],
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
type: 'object',
|
|
89
|
+
additionalProperties: false,
|
|
90
|
+
properties: { kind: { type: 'string', enum: ['br'] } },
|
|
91
|
+
required: ['kind'],
|
|
92
|
+
},
|
|
93
|
+
],
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
required: ['kind', 'level', 'inlines'],
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
// Paragraph
|
|
101
|
+
type: 'object',
|
|
102
|
+
additionalProperties: false,
|
|
103
|
+
properties: {
|
|
104
|
+
kind: { type: 'string', enum: ['paragraph'] },
|
|
105
|
+
align: { type: 'string', enum: ['start', 'center', 'right'] },
|
|
106
|
+
inlines: {
|
|
107
|
+
type: 'array',
|
|
108
|
+
items: {
|
|
109
|
+
anyOf: [
|
|
110
|
+
{
|
|
111
|
+
type: 'object',
|
|
112
|
+
additionalProperties: false,
|
|
113
|
+
properties: {
|
|
114
|
+
kind: { type: 'string', enum: ['text'] },
|
|
115
|
+
text: { type: 'string' },
|
|
116
|
+
marks: {
|
|
117
|
+
type: 'object',
|
|
118
|
+
additionalProperties: false,
|
|
119
|
+
properties: {
|
|
120
|
+
bold: { type: 'boolean' },
|
|
121
|
+
italic: { type: 'boolean' },
|
|
122
|
+
underline: { type: 'boolean' },
|
|
123
|
+
code: { type: 'boolean' },
|
|
124
|
+
},
|
|
125
|
+
required: ['bold', 'italic', 'underline', 'code'],
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
required: ['kind', 'text', 'marks'],
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
type: 'object',
|
|
132
|
+
additionalProperties: false,
|
|
133
|
+
properties: {
|
|
134
|
+
kind: { type: 'string', enum: ['link'] },
|
|
135
|
+
url: { type: 'string' },
|
|
136
|
+
text: { type: 'string' },
|
|
137
|
+
marks: {
|
|
138
|
+
type: 'object',
|
|
139
|
+
additionalProperties: false,
|
|
140
|
+
properties: {
|
|
141
|
+
bold: { type: 'boolean' },
|
|
142
|
+
italic: { type: 'boolean' },
|
|
143
|
+
underline: { type: 'boolean' },
|
|
144
|
+
code: { type: 'boolean' },
|
|
145
|
+
},
|
|
146
|
+
required: ['bold', 'italic', 'underline', 'code'],
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
required: ['kind', 'url', 'text', 'marks'],
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
type: 'object',
|
|
153
|
+
additionalProperties: false,
|
|
154
|
+
properties: { kind: { type: 'string', enum: ['br'] } },
|
|
155
|
+
required: ['kind'],
|
|
156
|
+
},
|
|
157
|
+
],
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
required: ['kind', 'align', 'inlines'],
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
// List
|
|
165
|
+
type: 'object',
|
|
166
|
+
additionalProperties: false,
|
|
167
|
+
properties: {
|
|
168
|
+
kind: { type: 'string', enum: ['list'] },
|
|
169
|
+
listType: { type: 'string', enum: ['bullet', 'number'] },
|
|
170
|
+
items: {
|
|
171
|
+
type: 'array',
|
|
172
|
+
items: {
|
|
173
|
+
type: 'object',
|
|
174
|
+
additionalProperties: false,
|
|
175
|
+
properties: {
|
|
176
|
+
indent: { type: 'number', enum: [0, 1] },
|
|
177
|
+
blocks: {
|
|
178
|
+
type: 'array',
|
|
179
|
+
items: {
|
|
180
|
+
anyOf: [
|
|
181
|
+
{
|
|
182
|
+
// paragraph inside list item (reuse shape inline)
|
|
183
|
+
type: 'object',
|
|
184
|
+
additionalProperties: false,
|
|
185
|
+
properties: {
|
|
186
|
+
kind: { type: 'string', enum: ['paragraph'] },
|
|
187
|
+
align: { type: 'string', enum: ['start', 'center', 'right'] },
|
|
188
|
+
inlines: {
|
|
189
|
+
type: 'array',
|
|
190
|
+
items: {
|
|
191
|
+
anyOf: [
|
|
192
|
+
{
|
|
193
|
+
type: 'object',
|
|
194
|
+
additionalProperties: false,
|
|
195
|
+
properties: {
|
|
196
|
+
kind: { type: 'string', enum: ['text'] },
|
|
197
|
+
text: { type: 'string' },
|
|
198
|
+
marks: {
|
|
199
|
+
type: 'object',
|
|
200
|
+
additionalProperties: false,
|
|
201
|
+
properties: {
|
|
202
|
+
bold: { type: 'boolean' },
|
|
203
|
+
italic: { type: 'boolean' },
|
|
204
|
+
underline: { type: 'boolean' },
|
|
205
|
+
code: { type: 'boolean' },
|
|
206
|
+
},
|
|
207
|
+
required: ['bold', 'italic', 'underline', 'code'],
|
|
208
|
+
},
|
|
209
|
+
},
|
|
210
|
+
required: ['kind', 'text', 'marks'],
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
type: 'object',
|
|
214
|
+
additionalProperties: false,
|
|
215
|
+
properties: {
|
|
216
|
+
kind: { type: 'string', enum: ['link'] },
|
|
217
|
+
url: { type: 'string' },
|
|
218
|
+
text: { type: 'string' },
|
|
219
|
+
marks: {
|
|
220
|
+
type: 'object',
|
|
221
|
+
additionalProperties: false,
|
|
222
|
+
properties: {
|
|
223
|
+
bold: { type: 'boolean' },
|
|
224
|
+
italic: { type: 'boolean' },
|
|
225
|
+
underline: { type: 'boolean' },
|
|
226
|
+
code: { type: 'boolean' },
|
|
227
|
+
},
|
|
228
|
+
required: ['bold', 'italic', 'underline', 'code'],
|
|
229
|
+
},
|
|
230
|
+
},
|
|
231
|
+
required: ['kind', 'url', 'text', 'marks'],
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
type: 'object',
|
|
235
|
+
additionalProperties: false,
|
|
236
|
+
properties: { kind: { type: 'string', enum: ['br'] } },
|
|
237
|
+
required: ['kind'],
|
|
238
|
+
},
|
|
239
|
+
],
|
|
240
|
+
},
|
|
241
|
+
},
|
|
242
|
+
},
|
|
243
|
+
required: ['kind', 'align', 'inlines'],
|
|
244
|
+
},
|
|
245
|
+
],
|
|
246
|
+
},
|
|
247
|
+
},
|
|
248
|
+
},
|
|
249
|
+
required: ['indent', 'blocks'],
|
|
250
|
+
},
|
|
251
|
+
},
|
|
252
|
+
},
|
|
253
|
+
required: ['kind', 'listType', 'items'],
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
// Quote
|
|
257
|
+
type: 'object',
|
|
258
|
+
additionalProperties: false,
|
|
259
|
+
properties: {
|
|
260
|
+
kind: { type: 'string', enum: ['quote'] },
|
|
261
|
+
blocks: {
|
|
262
|
+
type: 'array',
|
|
263
|
+
items: {
|
|
264
|
+
anyOf: [
|
|
265
|
+
{
|
|
266
|
+
type: 'object',
|
|
267
|
+
additionalProperties: false,
|
|
268
|
+
properties: {
|
|
269
|
+
kind: { type: 'string', enum: ['paragraph'] },
|
|
270
|
+
align: { type: 'string', enum: ['start', 'center', 'right'] },
|
|
271
|
+
inlines: {
|
|
272
|
+
type: 'array',
|
|
273
|
+
items: {
|
|
274
|
+
anyOf: [
|
|
275
|
+
{
|
|
276
|
+
type: 'object',
|
|
277
|
+
additionalProperties: false,
|
|
278
|
+
properties: {
|
|
279
|
+
kind: { type: 'string', enum: ['text'] },
|
|
280
|
+
text: { type: 'string' },
|
|
281
|
+
marks: {
|
|
282
|
+
type: 'object',
|
|
283
|
+
additionalProperties: false,
|
|
284
|
+
properties: {
|
|
285
|
+
bold: { type: 'boolean' },
|
|
286
|
+
italic: { type: 'boolean' },
|
|
287
|
+
underline: { type: 'boolean' },
|
|
288
|
+
code: { type: 'boolean' },
|
|
289
|
+
},
|
|
290
|
+
required: ['bold', 'italic', 'underline', 'code'],
|
|
291
|
+
},
|
|
292
|
+
},
|
|
293
|
+
required: ['kind', 'text', 'marks'],
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
type: 'object',
|
|
297
|
+
additionalProperties: false,
|
|
298
|
+
properties: { kind: { type: 'string', enum: ['br'] } },
|
|
299
|
+
required: ['kind'],
|
|
300
|
+
},
|
|
301
|
+
],
|
|
302
|
+
},
|
|
303
|
+
},
|
|
304
|
+
},
|
|
305
|
+
required: ['kind', 'align', 'inlines'],
|
|
306
|
+
},
|
|
307
|
+
],
|
|
308
|
+
},
|
|
309
|
+
},
|
|
310
|
+
},
|
|
311
|
+
required: ['kind', 'blocks'],
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
// Horizontal rule
|
|
315
|
+
type: 'object',
|
|
316
|
+
additionalProperties: false,
|
|
317
|
+
properties: { kind: { type: 'string', enum: ['hr'] } },
|
|
318
|
+
required: ['kind'],
|
|
319
|
+
},
|
|
320
|
+
],
|
|
321
|
+
},
|
|
322
|
+
},
|
|
323
|
+
},
|
|
324
|
+
required: ['title', 'blocks'],
|
|
325
|
+
},
|
|
326
|
+
};
|
|
327
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/models/openai/schema.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,IAAI,EAAE,iBAAiB;IACvB,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE;QACN,IAAI,EAAE,QAAQ;QACd,oBAAoB,EAAE,KAAK;QAC3B,UAAU,EAAE;YACV,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,6BAA6B;aAC3C;SACF;QACD,QAAQ,EAAE,CAAC,MAAM,CAAC;KACnB;CACF,CAAA;AAED,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,IAAI,EAAE,uBAAuB;IAC7B,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE;QACN,IAAI,EAAE,QAAQ;QACd,oBAAoB,EAAE,KAAK;QAC3B,UAAU,EAAE;YACV,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE;YACxD,MAAM,EAAE;gBACN,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE;oBACL,KAAK,EAAE;wBACL;4BACE,UAAU;4BACV,IAAI,EAAE,QAAQ;4BACd,oBAAoB,EAAE,KAAK;4BAC3B,UAAU,EAAE;gCACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,SAAS,CAAC,EAAE;gCAC3C,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC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qBACF;iBACF;aACF;SACF;QACD,QAAQ,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC;KAC9B;CACO,CAAA"}
|
package/dist/patch.d.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This Source Code is subject to the terms of the Mozilla Public
|
|
3
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
4
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Infonomic Company Limited
|
|
7
|
+
*/
|
|
8
|
+
import type { Provider, Sdk } from './@types';
|
|
9
|
+
export interface PatchOptions {
|
|
10
|
+
provider: Provider;
|
|
11
|
+
apiKey: string;
|
|
12
|
+
modelName: string;
|
|
13
|
+
prompt: string;
|
|
14
|
+
sdk: Sdk;
|
|
15
|
+
editorState: any;
|
|
16
|
+
signal?: AbortSignal;
|
|
17
|
+
}
|
|
18
|
+
export interface PatchResult {
|
|
19
|
+
success: true;
|
|
20
|
+
editor: any;
|
|
21
|
+
message: string;
|
|
22
|
+
}
|
|
23
|
+
export interface PatchError {
|
|
24
|
+
success: false;
|
|
25
|
+
message: string;
|
|
26
|
+
errors: Record<string, string[]>;
|
|
27
|
+
}
|
|
28
|
+
export type PatchStreamingResult = {
|
|
29
|
+
text: AsyncIterable<string>;
|
|
30
|
+
final: Promise<PatchResult | PatchError>;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Patches an existing Lexical document by extracting text nodes,
|
|
34
|
+
* sending them to an AI model for editing, and applying the edits
|
|
35
|
+
* back to the original document structure.
|
|
36
|
+
*
|
|
37
|
+
* This preserves all formatting (headings, lists, bold, italic, etc.)
|
|
38
|
+
* while only modifying the text content.
|
|
39
|
+
*/
|
|
40
|
+
export declare function patch(options: PatchOptions): Promise<PatchResult | PatchError>;
|
|
41
|
+
/**
|
|
42
|
+
* Streams a Lexical document patch. Only OpenAI supports streaming for now.
|
|
43
|
+
*/
|
|
44
|
+
export declare function patchStreaming(options: PatchOptions): PatchStreamingResult;
|
|
45
|
+
//# sourceMappingURL=patch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patch.d.ts","sourceRoot":"","sources":["../src/patch.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAeH,OAAO,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAE7C,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,QAAQ,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,EAAE,GAAG,CAAA;IACR,WAAW,EAAE,GAAG,CAAA;IAChB,MAAM,CAAC,EAAE,WAAW,CAAA;CACrB;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,IAAI,CAAA;IACb,MAAM,EAAE,GAAG,CAAA;IACX,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,KAAK,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAA;CACjC;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,CAAA;IAC3B,KAAK,EAAE,OAAO,CAAC,WAAW,GAAG,UAAU,CAAC,CAAA;CACzC,CAAA;AAmDD;;;;;;;GAOG;AACH,wBAAsB,KAAK,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,WAAW,GAAG,UAAU,CAAC,CAuCpF;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,YAAY,GAAG,oBAAoB,CAiD1E"}
|
package/dist/patch.js
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This Source Code is subject to the terms of the Mozilla Public
|
|
3
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
4
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Infonomic Company Limited
|
|
7
|
+
*/
|
|
8
|
+
import { extractTextNodesFromLexicalState, setAtPath } from './lexical-text-edits';
|
|
9
|
+
import { getPatchDoc as getPatchAnthropicDoc, getPatchDocStreaming as getPatchAnthropicDocStreaming, } from './models/anthropic/patch';
|
|
10
|
+
import { getPatchDoc as getPatchGeminiDoc, getPatchDocStreaming as getPatchGeminiDocStreaming, } from './models/google/patch';
|
|
11
|
+
import { getPatchDoc as getPatchOpenAIDoc, getPatchDocStreaming as getPatchOpenAIDocStreaming, } from './models/openai/patch';
|
|
12
|
+
const createEmptyTextStream = () => (async function* () {
|
|
13
|
+
// intentionally empty
|
|
14
|
+
})();
|
|
15
|
+
async function processPatchResult(result, extracted, editorState) {
|
|
16
|
+
const edits = result.edits;
|
|
17
|
+
if (edits.length !== extracted.length) {
|
|
18
|
+
return {
|
|
19
|
+
success: false,
|
|
20
|
+
message: 'AI returned an unexpected number of edits.',
|
|
21
|
+
errors: {},
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
const expectedIds = new Set(extracted.map((n) => n.id));
|
|
25
|
+
for (const edit of edits) {
|
|
26
|
+
if (!expectedIds.has(edit.id)) {
|
|
27
|
+
return {
|
|
28
|
+
success: false,
|
|
29
|
+
message: 'AI returned edits with unexpected ids.',
|
|
30
|
+
errors: {},
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
// Apply edits to the editor state (mutates editorState)
|
|
35
|
+
for (const edit of edits) {
|
|
36
|
+
const node = extracted[edit.id];
|
|
37
|
+
if (!node)
|
|
38
|
+
continue;
|
|
39
|
+
try {
|
|
40
|
+
setAtPath(editorState, node.path, edit.text);
|
|
41
|
+
}
|
|
42
|
+
catch {
|
|
43
|
+
// Ignore invalid paths; schema validation can be added later.
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
success: true,
|
|
48
|
+
editor: editorState,
|
|
49
|
+
message: 'Task completed successfully via AI instruction (patch mode).',
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Patches an existing Lexical document by extracting text nodes,
|
|
54
|
+
* sending them to an AI model for editing, and applying the edits
|
|
55
|
+
* back to the original document structure.
|
|
56
|
+
*
|
|
57
|
+
* This preserves all formatting (headings, lists, bold, italic, etc.)
|
|
58
|
+
* while only modifying the text content.
|
|
59
|
+
*/
|
|
60
|
+
export async function patch(options) {
|
|
61
|
+
const { provider, apiKey, modelName, prompt, sdk, editorState, signal } = options;
|
|
62
|
+
const extracted = extractTextNodesFromLexicalState(editorState);
|
|
63
|
+
const inputTextNodes = extracted.map(({ id, text }) => ({ id, text }));
|
|
64
|
+
if (inputTextNodes.length === 0) {
|
|
65
|
+
return {
|
|
66
|
+
success: false,
|
|
67
|
+
message: 'No text nodes found to edit.',
|
|
68
|
+
errors: { editor: ['No text nodes found to edit.'] },
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
// Simple guardrail for prototype: avoid accidental huge prompts.
|
|
72
|
+
if (inputTextNodes.length > 400) {
|
|
73
|
+
return {
|
|
74
|
+
success: false,
|
|
75
|
+
message: 'Document too large for the current prototype (too many text nodes).',
|
|
76
|
+
errors: { editor: ['Document too large for the current prototype.'] },
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
const patch = provider === 'openai'
|
|
80
|
+
? getPatchOpenAIDoc(sdk)
|
|
81
|
+
: provider === 'google'
|
|
82
|
+
? getPatchGeminiDoc(sdk)
|
|
83
|
+
: getPatchAnthropicDoc(sdk);
|
|
84
|
+
const result = await patch({
|
|
85
|
+
apiKey,
|
|
86
|
+
model: modelName,
|
|
87
|
+
prompt,
|
|
88
|
+
textNodes: inputTextNodes,
|
|
89
|
+
signal,
|
|
90
|
+
});
|
|
91
|
+
return processPatchResult(result, extracted, editorState);
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Streams a Lexical document patch. Only OpenAI supports streaming for now.
|
|
95
|
+
*/
|
|
96
|
+
export function patchStreaming(options) {
|
|
97
|
+
const { provider, apiKey, modelName, prompt, sdk, editorState, signal } = options;
|
|
98
|
+
const extracted = extractTextNodesFromLexicalState(editorState);
|
|
99
|
+
const inputTextNodes = extracted.map(({ id, text }) => ({ id, text }));
|
|
100
|
+
if (inputTextNodes.length === 0) {
|
|
101
|
+
return {
|
|
102
|
+
text: createEmptyTextStream(),
|
|
103
|
+
final: Promise.resolve({
|
|
104
|
+
success: false,
|
|
105
|
+
message: 'No text nodes found to edit.',
|
|
106
|
+
errors: { editor: ['No text nodes found to edit.'] },
|
|
107
|
+
}),
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
if (inputTextNodes.length > 400) {
|
|
111
|
+
return {
|
|
112
|
+
text: createEmptyTextStream(),
|
|
113
|
+
final: Promise.resolve({
|
|
114
|
+
success: false,
|
|
115
|
+
message: 'Document too large for the current prototype (too many text nodes).',
|
|
116
|
+
errors: { editor: ['Document too large for the current prototype.'] },
|
|
117
|
+
}),
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
const patchStreaming = provider === 'openai'
|
|
121
|
+
? getPatchOpenAIDocStreaming(sdk)
|
|
122
|
+
: provider === 'google'
|
|
123
|
+
? getPatchGeminiDocStreaming(sdk)
|
|
124
|
+
: getPatchAnthropicDocStreaming(sdk);
|
|
125
|
+
const streamResult = patchStreaming({
|
|
126
|
+
apiKey,
|
|
127
|
+
model: modelName,
|
|
128
|
+
prompt,
|
|
129
|
+
textNodes: inputTextNodes,
|
|
130
|
+
signal,
|
|
131
|
+
});
|
|
132
|
+
const final = (async () => {
|
|
133
|
+
const result = await streamResult.final;
|
|
134
|
+
return processPatchResult(result, extracted, editorState);
|
|
135
|
+
})();
|
|
136
|
+
return { text: streamResult.text, final };
|
|
137
|
+
}
|
|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AE,CAAC;QAChC,OAAO;YACL,IAAI,EAAE,qBAAqB,EAAE;YAC7B,KAAK,EAAE,OAAO,CAAC,OAAO,CAAC;gBACrB,OAAO,EAAE,KAAK;gBACd,OAAO,EAAE,qEAAqE;gBAC9E,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,+CAA+C,CAAC,EAAE;aACtE,CAAC;SACH,CAAA;IACH,CAAC;IAED,MAAM,cAAc,GAClB,QAAQ,KAAK,QAAQ;QACnB,CAAC,CAAC,0BAA0B,CAAC,GAAG,CAAC;QACjC,CAAC,CAAC,QAAQ,KAAK,QAAQ;YACrB,CAAC,CAAC,0BAA0B,CAAC,GAAG,CAAC;YACjC,CAAC,CAAC,6BAA6B,CAAC,GAAG,CAAC,CAAA;IAE1C,MAAM,YAAY,GAAG,cAAc,CAAC;QAClC,MAAM;QACN,KAAK,EAAE,SAAS;QAChB,MAAM;QACN,SAAS,EAAE,cAAc;QACzB,MAAM;KACP,CAAC,CAAA;IAEF,MAAM,KAAK,GAAG,CAAC,KAAK,IAAuC,EAAE;QAC3D,MAAM,MAAM,GAAG,MAAM,YAAY,CAAC,KAAK,CAAA;QACvC,OAAO,kBAAkB,CAAC,MAAM,EAAE,SAAS,EAAE,WAAW,CAAC,CAAA;IAC3D,CAAC,CAAC,EAAE,CAAA;IAEJ,OAAO,EAAE,IAAI,EAAE,YAAY,CAAC,IAAI,EAAE,KAAK,EAAE,CAAA;AAC3C,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This Source Code is subject to the terms of the Mozilla Public
|
|
3
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
4
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Infonomic Company Limited
|
|
7
|
+
*/
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
import type { InstructionState, Provider, Sdk } from '@byline/ai';
|
|
10
|
+
import './ai-plugin.css';
|
|
11
|
+
export type AiPluginSubmitContext = {
|
|
12
|
+
prompt: string;
|
|
13
|
+
mode: 'new' | 'new_with_context' | 'patch';
|
|
14
|
+
provider: Provider;
|
|
15
|
+
model: string;
|
|
16
|
+
sdk: Sdk;
|
|
17
|
+
isPending: boolean;
|
|
18
|
+
setIsPending: React.Dispatch<React.SetStateAction<boolean>>;
|
|
19
|
+
instructionState: InstructionState;
|
|
20
|
+
setInstructionState: React.Dispatch<React.SetStateAction<InstructionState>>;
|
|
21
|
+
abortControllerRef: React.RefObject<AbortController | null>;
|
|
22
|
+
appendStreamPreview: (chunk: string) => void;
|
|
23
|
+
resetStreamPreview: () => void;
|
|
24
|
+
useStreaming: boolean;
|
|
25
|
+
setUseStreaming: React.Dispatch<React.SetStateAction<boolean>>;
|
|
26
|
+
};
|
|
27
|
+
export type AiPluginBaseProps = {
|
|
28
|
+
onSubmit: (context: AiPluginSubmitContext) => Promise<void> | void;
|
|
29
|
+
onSubmitStreaming?: (context: AiPluginSubmitContext) => Promise<void> | void;
|
|
30
|
+
onCancel?: () => void;
|
|
31
|
+
onClear?: () => void;
|
|
32
|
+
onDebug?: () => void;
|
|
33
|
+
open?: boolean;
|
|
34
|
+
defaultOpen?: boolean;
|
|
35
|
+
onOpenChange?: (open: boolean) => void;
|
|
36
|
+
helpTitle?: React.ReactNode;
|
|
37
|
+
helpContent?: React.ReactNode;
|
|
38
|
+
};
|
|
39
|
+
export declare const AiPluginBase: React.MemoExoticComponent<(props: AiPluginBaseProps) => React.JSX.Element | undefined>;
|
|
40
|
+
//# sourceMappingURL=ai-plugin-base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-plugin-base.d.ts","sourceRoot":"","sources":["../../src/plugins/ai-plugin-base.tsx"],"names":[],"mappings":"AAEA;;;;;;GAMG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,GAAG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