@cliangdev/conductor 0.46.0 → 0.47.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/assets/cli-manifest.json +22 -1
- package/assets/fonts/OFL-courier-prime.txt +93 -0
- package/assets/fonts/OFL-inter.txt +92 -0
- package/assets/fonts/OFL-source-serif-4.txt +93 -0
- package/assets/fonts/courier-prime-400.ttf +0 -0
- package/assets/fonts/courier-prime-700.ttf +0 -0
- package/assets/fonts/inter-400.woff2 +0 -0
- package/assets/fonts/inter-600.woff2 +0 -0
- package/assets/fonts/inter-700.woff2 +0 -0
- package/assets/fonts/source-serif-4-400.woff2 +0 -0
- package/assets/fonts/source-serif-4-700.woff2 +0 -0
- package/dist/commands/creative.d.ts.map +1 -1
- package/dist/commands/creative.js +71 -22
- package/dist/commands/creative.js.map +1 -1
- package/dist/lib/slideshow/compose.d.ts +10 -1
- package/dist/lib/slideshow/compose.d.ts.map +1 -1
- package/dist/lib/slideshow/compose.js +27 -3
- package/dist/lib/slideshow/compose.js.map +1 -1
- package/dist/lib/slideshow/css.d.ts +26 -3
- package/dist/lib/slideshow/css.d.ts.map +1 -1
- package/dist/lib/slideshow/css.js +26 -10
- package/dist/lib/slideshow/css.js.map +1 -1
- package/dist/lib/slideshow/html.d.ts +4 -1
- package/dist/lib/slideshow/html.d.ts.map +1 -1
- package/dist/lib/slideshow/html.js +113 -3
- package/dist/lib/slideshow/html.js.map +1 -1
- package/dist/lib/slideshow/index.d.ts +4 -1
- package/dist/lib/slideshow/index.d.ts.map +1 -1
- package/dist/lib/slideshow/index.js +4 -1
- package/dist/lib/slideshow/index.js.map +1 -1
- package/dist/lib/slideshow/spec-transport.d.ts +44 -0
- package/dist/lib/slideshow/spec-transport.d.ts.map +1 -0
- package/dist/lib/slideshow/spec-transport.js +77 -0
- package/dist/lib/slideshow/spec-transport.js.map +1 -0
- package/dist/lib/slideshow/text-fields.d.ts +50 -0
- package/dist/lib/slideshow/text-fields.d.ts.map +1 -0
- package/dist/lib/slideshow/text-fields.js +154 -0
- package/dist/lib/slideshow/text-fields.js.map +1 -0
- package/dist/mcp/index.d.ts +288 -0
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +25 -5
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/tools/creative-drafts.d.ts +22 -0
- package/dist/mcp/tools/creative-drafts.d.ts.map +1 -1
- package/dist/mcp/tools/creative-drafts.js +79 -5
- package/dist/mcp/tools/creative-drafts.js.map +1 -1
- package/dist/mcp/tools/creatives.d.ts +3 -0
- package/dist/mcp/tools/creatives.d.ts.map +1 -1
- package/dist/mcp/tools/creatives.js +4 -0
- package/dist/mcp/tools/creatives.js.map +1 -1
- package/dist/mcp/tools/slideshow-spec.d.ts +116 -0
- package/dist/mcp/tools/slideshow-spec.d.ts.map +1 -0
- package/dist/mcp/tools/slideshow-spec.js +318 -0
- package/dist/mcp/tools/slideshow-spec.js.map +1 -0
- package/dist/mcp/tools/slideshow.d.ts +2 -1
- package/dist/mcp/tools/slideshow.d.ts.map +1 -1
- package/dist/mcp/tools/slideshow.js +4 -2
- package/dist/mcp/tools/slideshow.js.map +1 -1
- package/package.json +1 -1
package/assets/cli-manifest.json
CHANGED
|
@@ -147,6 +147,18 @@
|
|
|
147
147
|
"description": "Attribute this render to a Workflow run"
|
|
148
148
|
}
|
|
149
149
|
]
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"name": "creative attach-spec",
|
|
153
|
+
"syntax": "conductor creative attach-spec <creativeId> <specPath>",
|
|
154
|
+
"description": "Backfill a slideshow spec onto a CAROUSEL Creative committed without one, so its text becomes editable. Re-composes the spec locally, compares each slide with the stored image and refuses on a mismatch unless forced; then uploads the spec's images and saves the spec.",
|
|
155
|
+
"category": "marketing",
|
|
156
|
+
"options": [
|
|
157
|
+
{
|
|
158
|
+
"flag": "--force",
|
|
159
|
+
"description": "Attach even when slides differ from a fresh render, or when the Creative already has a spec"
|
|
160
|
+
}
|
|
161
|
+
]
|
|
150
162
|
}
|
|
151
163
|
],
|
|
152
164
|
"claudeIntegration": {
|
|
@@ -886,9 +898,18 @@
|
|
|
886
898
|
},
|
|
887
899
|
{
|
|
888
900
|
"name": "compose_slideshow",
|
|
889
|
-
"description": "Compose organic slideshow slides (TikTok/Reels style) from a spec on this machine, with layout checks. Native look by default; brandKitId applies a kit's slideshow style and style overrides on top. Returns the resolved style to pass as slideStyle to preview_creative_draft as a CAROUSEL.",
|
|
901
|
+
"description": "Compose organic slideshow slides (TikTok/Reels style) from a spec on this machine, with layout checks. Native look by default; brandKitId applies a kit's slideshow style and style overrides on top. Returns the resolved style to pass as slideStyle to preview_creative_draft as a CAROUSEL; its spec.json travels with the Creative at commit, making the text editable later.",
|
|
890
902
|
"category": "marketing"
|
|
891
903
|
},
|
|
904
|
+
{
|
|
905
|
+
"name": "attach_slideshow_spec",
|
|
906
|
+
"description": "Backfill a slideshow spec onto a CAROUSEL Creative committed without one: re-composes it locally, compares every slide with the stored image (SSIM, refuses below 0.95 unless force), uploads the spec's images and saves the spec. Call get_creative to verify slideshowSpec and textFields.",
|
|
907
|
+
"category": "marketing",
|
|
908
|
+
"requiredParams": [
|
|
909
|
+
"creativeId",
|
|
910
|
+
"specPath"
|
|
911
|
+
]
|
|
912
|
+
},
|
|
892
913
|
{
|
|
893
914
|
"name": "preview_creative_draft",
|
|
894
915
|
"description": "Look at a Creative before anything is saved: renders a draft locally from the create_creative fields plus local files (photoPath, clipPath, audioPath) and returns the contact sheet as an image; a CAROUSEL with a track also renders its slideshow MP4 and returns the path. Never writes to Conductor; commit only after the person approves.",
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2015 The Courier Prime Project Authors (https://github.com/quoteunquoteapps/CourierPrime).
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
-----------------------------------------------------------
|
|
8
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
9
|
+
-----------------------------------------------------------
|
|
10
|
+
|
|
11
|
+
PREAMBLE
|
|
12
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
13
|
+
development of collaborative font projects, to support the font creation
|
|
14
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
15
|
+
open framework in which fonts may be shared and improved in partnership
|
|
16
|
+
with others.
|
|
17
|
+
|
|
18
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
19
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
20
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
21
|
+
redistributed and/or sold with any software provided that any reserved
|
|
22
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
23
|
+
however, cannot be released under any other type of license. The
|
|
24
|
+
requirement for fonts to remain under this license does not apply
|
|
25
|
+
to any document created using the fonts or their derivatives.
|
|
26
|
+
|
|
27
|
+
DEFINITIONS
|
|
28
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
29
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
30
|
+
include source files, build scripts and documentation.
|
|
31
|
+
|
|
32
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
33
|
+
copyright statement(s).
|
|
34
|
+
|
|
35
|
+
"Original Version" refers to the collection of Font Software components as
|
|
36
|
+
distributed by the Copyright Holder(s).
|
|
37
|
+
|
|
38
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
39
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
40
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
41
|
+
new environment.
|
|
42
|
+
|
|
43
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
44
|
+
writer or other person who contributed to the Font Software.
|
|
45
|
+
|
|
46
|
+
PERMISSION AND CONDITIONS
|
|
47
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
48
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
49
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
50
|
+
Software, subject to the following conditions:
|
|
51
|
+
|
|
52
|
+
1) Neither the Font Software nor any of its individual components,
|
|
53
|
+
in Original or Modified Versions, may be sold by itself.
|
|
54
|
+
|
|
55
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
56
|
+
redistributed and/or sold with any software, provided that each copy
|
|
57
|
+
contains the above copyright notice and this license. These can be
|
|
58
|
+
included either as stand-alone text files, human-readable headers or
|
|
59
|
+
in the appropriate machine-readable metadata fields within text or
|
|
60
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
61
|
+
|
|
62
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
63
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
64
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
65
|
+
presented to the users.
|
|
66
|
+
|
|
67
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
68
|
+
Software shall not be used to promote, endorse or advertise any
|
|
69
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
70
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
71
|
+
permission.
|
|
72
|
+
|
|
73
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
74
|
+
must be distributed entirely under this license, and must not be
|
|
75
|
+
distributed under any other license. The requirement for fonts to
|
|
76
|
+
remain under this license does not apply to any document created
|
|
77
|
+
using the Font Software.
|
|
78
|
+
|
|
79
|
+
TERMINATION
|
|
80
|
+
This license becomes null and void if any of the above conditions are
|
|
81
|
+
not met.
|
|
82
|
+
|
|
83
|
+
DISCLAIMER
|
|
84
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
85
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
86
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
87
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
88
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
89
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
90
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
91
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
92
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2014 - 2023 Adobe (http://www.adobe.com/), with Reserved Font Name ‘Source’. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries.
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
|
|
5
|
+
This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creative.d.ts","sourceRoot":"","sources":["../../src/commands/creative.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"creative.d.ts","sourceRoot":"","sources":["../../src/commands/creative.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAMnC;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,MAAM,CAShG;AAkCD,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA8FvD"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { getConfig, resolveProject } from '../mcp/config.js';
|
|
2
2
|
import { resolveCreativeId } from '../lib/creative-id.js';
|
|
3
3
|
import { renderCreative } from '../lib/creative-render.js';
|
|
4
|
+
import { attachSlideshowSpec } from '../mcp/tools/slideshow-spec.js';
|
|
4
5
|
/**
|
|
5
6
|
* Headless runs (a workflow's docker step) have no ~/.conductor/config.json; the step supplies
|
|
6
7
|
* CONDUCTOR_API_URL, CONDUCTOR_API_KEY and CONDUCTOR_PROJECT_ID instead. When config can't be loaded,
|
|
@@ -16,8 +17,37 @@ export function describeConfigFailure(err, env = process.env) {
|
|
|
16
17
|
return (`${message}. Without a login, set the environment variable${missing.length > 1 ? 's' : ''} ` +
|
|
17
18
|
`${missing.join(' and ')} (and CONDUCTOR_PROJECT_ID) instead.`);
|
|
18
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* The config a creative command runs with, or undefined after printing why it cannot (and setting a failing exit
|
|
22
|
+
* code): no login, or a git repository not linked to a Conductor project, or no project selected.
|
|
23
|
+
*/
|
|
24
|
+
function loadCreativeConfig() {
|
|
25
|
+
let config;
|
|
26
|
+
try {
|
|
27
|
+
config = getConfig();
|
|
28
|
+
}
|
|
29
|
+
catch (err) {
|
|
30
|
+
console.error(describeConfigFailure(err));
|
|
31
|
+
process.exitCode = 1;
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
const resolution = resolveProject(config);
|
|
35
|
+
if (resolution.mismatch) {
|
|
36
|
+
console.error(`Refusing to act: the current directory (${process.cwd()}) is a git repository not linked to any ` +
|
|
37
|
+
'configured Conductor project. Run `conductor init` here, or set CONDUCTOR_PROJECT_ID.');
|
|
38
|
+
process.exitCode = 1;
|
|
39
|
+
return undefined;
|
|
40
|
+
}
|
|
41
|
+
config.projectId = resolution.projectId;
|
|
42
|
+
if (!config.projectId) {
|
|
43
|
+
console.error('No project selected — set CONDUCTOR_PROJECT_ID (or run `conductor login`).');
|
|
44
|
+
process.exitCode = 1;
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
return config;
|
|
48
|
+
}
|
|
19
49
|
export function registerCreative(program) {
|
|
20
|
-
const creative = program.command('creative').description('
|
|
50
|
+
const creative = program.command('creative').description('Work with Conductor Creatives locally: render them with Playwright, or attach a slideshow spec');
|
|
21
51
|
creative
|
|
22
52
|
.command('render <creativeId>')
|
|
23
53
|
.description('Render a Creative to upload-ready JPEG frames (or a preview contact sheet) using a local browser')
|
|
@@ -30,28 +60,9 @@ Examples:
|
|
|
30
60
|
conductor creative render 12a --preview
|
|
31
61
|
conductor creative render 12a --renderer workflow --workflow-run-id run_123`)
|
|
32
62
|
.action(async (creativeId, options) => {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
config = getConfig();
|
|
36
|
-
}
|
|
37
|
-
catch (err) {
|
|
38
|
-
console.error(describeConfigFailure(err));
|
|
39
|
-
process.exitCode = 1;
|
|
63
|
+
const config = loadCreativeConfig();
|
|
64
|
+
if (!config)
|
|
40
65
|
return;
|
|
41
|
-
}
|
|
42
|
-
const resolution = resolveProject(config);
|
|
43
|
-
if (resolution.mismatch) {
|
|
44
|
-
console.error(`Refusing to act: the current directory (${process.cwd()}) is a git repository not linked to any ` +
|
|
45
|
-
'configured Conductor project. Run `conductor init` here, or set CONDUCTOR_PROJECT_ID.');
|
|
46
|
-
process.exitCode = 1;
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
config.projectId = resolution.projectId;
|
|
50
|
-
if (!config.projectId) {
|
|
51
|
-
console.error('No project selected — set CONDUCTOR_PROJECT_ID (or run `conductor login`).');
|
|
52
|
-
process.exitCode = 1;
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
66
|
try {
|
|
56
67
|
const result = await renderCreative({
|
|
57
68
|
creativeId: await resolveCreativeId(creativeId, config),
|
|
@@ -81,5 +92,43 @@ Examples:
|
|
|
81
92
|
process.exitCode = 1;
|
|
82
93
|
}
|
|
83
94
|
});
|
|
95
|
+
creative
|
|
96
|
+
.command('attach-spec <creativeId> <specPath>')
|
|
97
|
+
.description('Store a slideshow spec on a CAROUSEL Creative committed without one, so its text becomes editable')
|
|
98
|
+
.option('--force', 'Attach even when slides differ from a fresh render, or when the Creative already has a spec')
|
|
99
|
+
.addHelpText('after', `
|
|
100
|
+
Re-composes the spec on this machine at each ratio the Creative has, compares every slide with the stored image
|
|
101
|
+
(SSIM) and refuses below 0.95 unless --force. Then uploads the spec's images and saves the spec.
|
|
102
|
+
<specPath> is a source spec (relative image paths resolve against its folder) or a compose_slideshow output spec.json.
|
|
103
|
+
|
|
104
|
+
Examples:
|
|
105
|
+
conductor creative attach-spec 12a ./specs/nov02.json
|
|
106
|
+
conductor creative attach-spec 12a .conductor/slideshows/20261102-101500-nov02/spec.json --force`)
|
|
107
|
+
.action(async (creativeId, specPath, options) => {
|
|
108
|
+
const config = loadCreativeConfig();
|
|
109
|
+
if (!config)
|
|
110
|
+
return;
|
|
111
|
+
try {
|
|
112
|
+
const result = await attachSlideshowSpec({ creativeId: await resolveCreativeId(creativeId, config), specPath, force: !!options.force }, config, { log: (message) => console.log(message) });
|
|
113
|
+
if (!result.ok) {
|
|
114
|
+
console.error(result.error);
|
|
115
|
+
process.exitCode = 1;
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
console.log(result.nextStep);
|
|
119
|
+
if (result.compared > 0) {
|
|
120
|
+
console.log(` compared ${result.compared} slides, lowest similarity ${result.minSimilarity}${result.forced ? ' (below the threshold; attached with --force)' : ''}`);
|
|
121
|
+
}
|
|
122
|
+
if (result.skipped.length)
|
|
123
|
+
console.log(` not compared: ${result.skipped.join('; ')}`);
|
|
124
|
+
console.log(` uploaded ${result.images} image${result.images === 1 ? '' : 's'}${result.slideStyleSet ? '; slide style recorded from the spec' : ''}`);
|
|
125
|
+
for (const warning of result.warnings)
|
|
126
|
+
console.log(` warning: ${warning}`);
|
|
127
|
+
}
|
|
128
|
+
catch (err) {
|
|
129
|
+
console.error(err instanceof Error ? err.message : String(err));
|
|
130
|
+
process.exitCode = 1;
|
|
131
|
+
}
|
|
132
|
+
});
|
|
84
133
|
}
|
|
85
134
|
//# sourceMappingURL=creative.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creative.js","sourceRoot":"","sources":["../../src/commands/creative.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"creative.js","sourceRoot":"","sources":["../../src/commands/creative.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAA;AAEpE;;;;GAIG;AACH,MAAM,UAAU,qBAAqB,CAAC,GAAY,EAAE,MAAyB,OAAO,CAAC,GAAG;IACtF,MAAM,OAAO,GAAG,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;IAChE,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC;QAAE,OAAO,OAAO,CAAA;IAC3D,MAAM,OAAO,GAAG,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAA;IACvF,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,OAAO,CAAA;IACxC,OAAO,CACL,GAAG,OAAO,kDAAkD,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG;QAC5F,GAAG,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,sCAAsC,CAC/D,CAAA;AACH,CAAC;AAED;;;GAGG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M,OAAO,IAAI,MAAM,CAAC,QAAQ;gBAAE,OAAO,CAAC,GAAG,CAAC,cAAc,OAAO,EAAE,CAAC,CAAA;QAC7E,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,OAAO,CAAC,KAAK,CAAC,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAA;YAC/D,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAA;QACtB,CAAC;IACH,CAAC,CAAC,CAAA;AACN,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import type { Page } from 'playwright-core';
|
|
1
2
|
import { type BrowserFactory } from '../creative-browser.js';
|
|
2
3
|
import { type ResolvedSlideshowStyle, type SlideshowStyle } from './style.js';
|
|
3
4
|
import { type SlideRatio, type SlideshowSpec } from './spec.js';
|
|
4
5
|
export interface SlideshowCheck {
|
|
5
6
|
slide: number;
|
|
6
7
|
ratio: SlideRatio;
|
|
7
|
-
rule: 'safeZone' | 'spill' | 'textSize' | 'wordsPerLine' | 'image' | 'font' | 'provenance' | 'render';
|
|
8
|
+
rule: 'safeZone' | 'spill' | 'textSize' | 'wordsPerLine' | 'contrast' | 'image' | 'font' | 'provenance' | 'render';
|
|
8
9
|
severity: 'error' | 'warning';
|
|
9
10
|
message: string;
|
|
10
11
|
}
|
|
@@ -39,7 +40,15 @@ export interface ComposeResult {
|
|
|
39
40
|
}
|
|
40
41
|
/** Bundled TikTok Sans lives in <package>/assets/fonts; this file is at src/lib/slideshow or dist/lib/slideshow. */
|
|
41
42
|
export declare function fontsDir(): string;
|
|
43
|
+
/** Maps every image reference in the spec through `fn`, returning a copy. */
|
|
44
|
+
export declare function mapSpecImages(spec: SlideshowSpec, fn: (value: string | undefined, where: string) => string | undefined): SlideshowSpec;
|
|
42
45
|
/** Resolves relative image paths against `specDir`; refuses http(s). Exported for the MCP tool and tests. */
|
|
43
46
|
export declare function resolveSpecImages(spec: SlideshowSpec, specDir: string): SlideshowSpec;
|
|
47
|
+
/**
|
|
48
|
+
* Contrast of text that sits straight on the slide (no box, no outline). The page cannot read a file: image's pixels
|
|
49
|
+
* (it taints a canvas), so the slide is shot again with its text hidden and that screenshot, which has no origin, is
|
|
50
|
+
* measured in the page. Any failure skips the check: a guess would be worse than none.
|
|
51
|
+
*/
|
|
52
|
+
export declare function overImageContrast(page: Page): Promise<SlideshowCheck[]>;
|
|
44
53
|
export declare function composeSlideshow(specInput: unknown, outDir: string, options?: ComposeOptions): Promise<ComposeResult>;
|
|
45
54
|
//# sourceMappingURL=compose.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compose.d.ts","sourceRoot":"","sources":["../../../src/lib/slideshow/compose.ts"],"names":[],"mappings":"AAGA,OAAO,EAAsB,KAAK,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAGhF,OAAO,EAAsB,KAAK,sBAAsB,EAAE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAA;AACjG,OAAO,EAA0C,KAAK,UAAU,EAAE,KAAK,aAAa,EAAE,MAAM,WAAW,CAAA;AAEvG,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,UAAU,CAAA;IACjB,IAAI,EAAE,UAAU,GAAG,OAAO,GAAG,UAAU,GAAG,cAAc,GAAG,OAAO,GAAG,MAAM,GAAG,YAAY,GAAG,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"compose.d.ts","sourceRoot":"","sources":["../../../src/lib/slideshow/compose.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAsB,KAAK,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAGhF,OAAO,EAAsB,KAAK,sBAAsB,EAAE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAA;AACjG,OAAO,EAA0C,KAAK,UAAU,EAA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D,6EAA6E;AAC7E,wBAAgB,aAAa,CAAC,IAAI,EAAE,aAAa,EAAE,EAAE,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,GAAG,aAAa,CAUtI;AAKD,6GAA6G;AAC7G,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,GAAG,aAAa,CAErF;AA+CD;;;;GAIG;AACH,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,CAc7E;AAED,wBAAsB,gBAAgB,CAAC,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAE,cAAmB,GAAG,OAAO,CAAC,aAAa,CAAC,CA2E/H"}
|
|
@@ -21,7 +21,7 @@ function resolveImage(value, specDir, where) {
|
|
|
21
21
|
return isAbsolute(value) ? value : resolve(specDir, value);
|
|
22
22
|
}
|
|
23
23
|
/** Maps every image reference in the spec through `fn`, returning a copy. */
|
|
24
|
-
function
|
|
24
|
+
export function mapSpecImages(spec, fn) {
|
|
25
25
|
const copy = structuredClone(spec);
|
|
26
26
|
copy.slides.forEach((sl, i) => {
|
|
27
27
|
const at = `slides[${i}]`;
|
|
@@ -38,7 +38,7 @@ function mapImages(spec, fn) {
|
|
|
38
38
|
const toUrl = (value) => !value || value.startsWith('file:') || value.startsWith('data:') ? value : pathToFileURL(value).href;
|
|
39
39
|
/** Resolves relative image paths against `specDir`; refuses http(s). Exported for the MCP tool and tests. */
|
|
40
40
|
export function resolveSpecImages(spec, specDir) {
|
|
41
|
-
return
|
|
41
|
+
return mapSpecImages(spec, (v, where) => resolveImage(v, specDir, where));
|
|
42
42
|
}
|
|
43
43
|
const MAX_FIELD = 200;
|
|
44
44
|
const clip = (text) => (text.length > MAX_FIELD ? `${text.slice(0, MAX_FIELD - 1)}…` : text);
|
|
@@ -85,6 +85,29 @@ async function slideProvenance(images) {
|
|
|
85
85
|
anyAi,
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
|
+
/**
|
|
89
|
+
* Contrast of text that sits straight on the slide (no box, no outline). The page cannot read a file: image's pixels
|
|
90
|
+
* (it taints a canvas), so the slide is shot again with its text hidden and that screenshot, which has no origin, is
|
|
91
|
+
* measured in the page. Any failure skips the check: a guess would be worse than none.
|
|
92
|
+
*/
|
|
93
|
+
export async function overImageContrast(page) {
|
|
94
|
+
try {
|
|
95
|
+
if (!(await page.evaluate('(window.__overImage || []).length')))
|
|
96
|
+
return [];
|
|
97
|
+
await page.evaluate('window.__hideText(true)');
|
|
98
|
+
try {
|
|
99
|
+
const shot = await page.screenshot({ type: 'png' });
|
|
100
|
+
const measure = (url) => globalThis.__sampleContrast(url);
|
|
101
|
+
return (await page.evaluate(measure, `data:image/png;base64,${shot.toString('base64')}`)) ?? [];
|
|
102
|
+
}
|
|
103
|
+
finally {
|
|
104
|
+
await page.evaluate('window.__hideText(false)');
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
catch {
|
|
108
|
+
return [];
|
|
109
|
+
}
|
|
110
|
+
}
|
|
88
111
|
export async function composeSlideshow(specInput, outDir, options = {}) {
|
|
89
112
|
assertValidSlideshowSpec(specInput);
|
|
90
113
|
const ratios = options.ratios ?? ['9x16', '4x5'];
|
|
@@ -101,7 +124,7 @@ export async function composeSlideshow(specInput, outDir, options = {}) {
|
|
|
101
124
|
const { resolvedStyle: _ignored, ...input } = specInput;
|
|
102
125
|
void _ignored;
|
|
103
126
|
const resolved = { ...resolveSpecImages(input, specDir), resolvedStyle: style };
|
|
104
|
-
const htmlSpec =
|
|
127
|
+
const htmlSpec = mapSpecImages(resolved, (v) => toUrl(v));
|
|
105
128
|
const out = resolve(outDir);
|
|
106
129
|
await mkdir(out, { recursive: true });
|
|
107
130
|
const specPath = join(out, 'spec.json');
|
|
@@ -145,6 +168,7 @@ export async function composeSlideshow(specInput, outDir, options = {}) {
|
|
|
145
168
|
const png = join(out, `${htmlSpec.id}-${ratio}-${nn}.png`);
|
|
146
169
|
await page.screenshot({ path: png });
|
|
147
170
|
files.push(png);
|
|
171
|
+
checks.push(...(await overImageContrast(page)));
|
|
148
172
|
const sidecar = perSlide[i].sidecar;
|
|
149
173
|
if (sidecar) {
|
|
150
174
|
await writeProvenanceSidecar(png, sidecar);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compose.js","sourceRoot":"","sources":["../../../src/lib/slideshow/compose.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACvD,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAC9D,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"compose.js","sourceRoot":"","sources":["../../../src/lib/slideshow/compose.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACvD,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAC9D,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAEvD,OAAO,EAAE,kBAAkB,EAAuB,MAAM,wBAAwB,CAAA;AAChF,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAA0B,MAAM,0BAA0B,CAAA;AAChH,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAC5D,OAAO,EAAE,kBAAkB,EAAoD,MAAM,YAAY,CAAA;AACjG,OAAO,EAAE,wBAAwB,EAAE,YAAY,EAAuC,MAAM,WAAW,CAAA;AAqCvG,oHAAoH;AACpH,MAAM,UAAU,QAAQ;IACtB,OAAO,OAAO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