invos 1.0.0 → 2.0.2
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/README.md +21 -28
- package/bin/invos.js +33 -27
- package/kit/.agents/skills/abrir/SKILL.md +41 -0
- package/kit/.agents/skills/analisar-dados/SKILL.md +95 -0
- package/kit/.agents/skills/anuncio-google/SKILL.md +174 -0
- package/kit/.agents/skills/aprovar-post/SKILL.md +151 -0
- package/kit/.agents/skills/atualizar/SKILL.md +57 -0
- package/kit/.agents/skills/canvas-design/LICENSE.txt +202 -0
- package/kit/.agents/skills/canvas-design/SKILL.md +134 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/ArsenalSC-OFL.txt +93 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/ArsenalSC-Regular.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/BigShoulders-Bold.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/BigShoulders-OFL.txt +93 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/BigShoulders-Regular.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/Boldonse-OFL.txt +93 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/Boldonse-Regular.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/BricolageGrotesque-Bold.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/BricolageGrotesque-OFL.txt +93 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/BricolageGrotesque-Regular.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/CrimsonPro-Bold.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/CrimsonPro-Italic.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/CrimsonPro-OFL.txt +93 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/CrimsonPro-Regular.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/DMMono-OFL.txt +93 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/DMMono-Regular.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/EricaOne-OFL.txt +94 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/EricaOne-Regular.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/GeistMono-Bold.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/GeistMono-OFL.txt +93 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/GeistMono-Regular.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/Gloock-OFL.txt +93 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/Gloock-Regular.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/IBMPlexMono-Bold.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/IBMPlexMono-OFL.txt +93 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/IBMPlexMono-Regular.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/IBMPlexSerif-Bold.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/IBMPlexSerif-BoldItalic.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/IBMPlexSerif-Italic.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/IBMPlexSerif-Regular.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/InstrumentSans-Bold.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/InstrumentSans-BoldItalic.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/InstrumentSans-Italic.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/InstrumentSans-OFL.txt +93 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/InstrumentSans-Regular.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/InstrumentSerif-Italic.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/InstrumentSerif-Regular.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/Italiana-OFL.txt +93 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/Italiana-Regular.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/JetBrainsMono-Bold.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/JetBrainsMono-OFL.txt +93 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/JetBrainsMono-Regular.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/Jura-Light.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/Jura-Medium.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/Jura-OFL.txt +93 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/LibreBaskerville-OFL.txt +93 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/LibreBaskerville-Regular.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/Lora-Bold.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/Lora-BoldItalic.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/Lora-Italic.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/Lora-OFL.txt +93 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/Lora-Regular.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/NationalPark-Bold.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/NationalPark-OFL.txt +93 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/NationalPark-Regular.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/NothingYouCouldDo-OFL.txt +93 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/NothingYouCouldDo-Regular.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/Outfit-Bold.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/Outfit-OFL.txt +93 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/Outfit-Regular.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/PixelifySans-Medium.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/PixelifySans-OFL.txt +93 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/PoiretOne-OFL.txt +93 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/PoiretOne-Regular.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/RedHatMono-Bold.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/RedHatMono-OFL.txt +93 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/RedHatMono-Regular.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/Silkscreen-OFL.txt +93 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/Silkscreen-Regular.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/SmoochSans-Medium.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/SmoochSans-OFL.txt +93 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/Tektur-Medium.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/Tektur-OFL.txt +93 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/Tektur-Regular.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/WorkSans-Bold.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/WorkSans-BoldItalic.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/WorkSans-Italic.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/WorkSans-OFL.txt +93 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/WorkSans-Regular.ttf +0 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/YoungSerif-OFL.txt +93 -0
- package/kit/.agents/skills/canvas-design/canvas-fonts/YoungSerif-Regular.ttf +0 -0
- package/kit/.agents/skills/carrossel/SKILL.md +272 -0
- package/kit/.agents/skills/email-profissional/SKILL.md +70 -0
- package/kit/.agents/skills/frontend-design/LICENSE.txt +177 -0
- package/kit/.agents/skills/frontend-design/SKILL.md +55 -0
- package/kit/.agents/skills/instalar/SKILL.md +170 -0
- package/kit/.agents/skills/mapear-rotinas/SKILL.md +75 -0
- package/kit/.agents/skills/notion/SKILL.md +134 -0
- package/kit/.agents/skills/novo-projeto/SKILL.md +94 -0
- package/kit/.agents/skills/publicar-tema/SKILL.md +154 -0
- package/kit/.agents/skills/relatorio-ads/SKILL.md +163 -0
- package/kit/.agents/skills/responder-avaliacoes/SKILL.md +100 -0
- package/kit/.agents/skills/salvar/SKILL.md +49 -0
- package/kit/.agents/skills/seo/SKILL.md +310 -0
- package/kit/.agents/skills/youtube-summarizer/SKILL.md +223 -0
- package/kit/.agents/squads/README.md +84 -0
- package/kit/.agents/squads/hormozi-squad/README.md +1 -2
- package/kit/AGENTS.md +96 -137
- package/kit/INVOS.json +28 -20
- package/kit/{.agents/skills/stop-slop/LICENSE → LICENSE} +1 -1
- package/kit/README.md +87 -399
- package/kit/_memoria/empresa.md +18 -0
- package/kit/_memoria/estrategia.md +25 -0
- package/kit/_memoria/preferencias.md +12 -0
- package/kit/dados/README.md +15 -0
- package/kit/marca/design-guide.md +59 -0
- package/kit/marketing/README.md +44 -0
- package/kit/saidas/README.md +29 -0
- package/kit/scripts/README.md +51 -0
- package/kit/templates/perfis/agents-agencia.md +70 -0
- package/kit/templates/perfis/agents-empresa.md +75 -0
- package/kit/templates/perfis/agents-freelancer.md +68 -0
- package/kit/templates/perfis/agents-solopreneur.md +68 -0
- package/package.json +6 -11
- package/src/commands/doctor.js +63 -78
- package/src/commands/init.js +35 -24
- package/src/commands/install.js +16 -20
- package/src/commands/update.js +28 -66
- package/src/lock.js +9 -11
- package/src/manifest.js +1 -1
- package/src/resolve-kit.js +27 -12
- package/src/symlinks.js +36 -53
- package/src/utils.js +43 -66
- package/kit/.agents/skills/apple/DESCRIPTION.md +0 -2
- package/kit/.agents/skills/apple/apple-notes/SKILL.md +0 -90
- package/kit/.agents/skills/apple/apple-reminders/SKILL.md +0 -130
- package/kit/.agents/skills/audit/SKILL.md +0 -177
- package/kit/.agents/skills/design-marca/SKILL.md +0 -92
- package/kit/.agents/skills/instagram-carrossel/SKILL.md +0 -79
- package/kit/.agents/skills/instagram-carrossel/references/fetch-assets.md +0 -77
- package/kit/.agents/skills/instagram-carrossel/references/publish.md +0 -48
- package/kit/.agents/skills/instagram-carrossel/references/render-png.md +0 -147
- package/kit/.agents/skills/instagram-carrossel/scripts/publish.js +0 -165
- package/kit/.agents/skills/llm-wiki/SKILL.md +0 -507
- package/kit/.agents/skills/onboard/SKILL.md +0 -152
- package/kit/.agents/skills/pd-ikigai/SKILL.md +0 -269
- package/kit/.agents/skills/productivity/DESCRIPTION.md +0 -3
- package/kit/.agents/skills/productivity/google-workspace/SKILL.md +0 -335
- package/kit/.agents/skills/productivity/google-workspace/references/gmail-search-syntax.md +0 -63
- package/kit/.agents/skills/productivity/google-workspace/scripts/_hermes_home.py +0 -42
- package/kit/.agents/skills/productivity/google-workspace/scripts/google_api.py +0 -1225
- package/kit/.agents/skills/productivity/google-workspace/scripts/gws_bridge.py +0 -111
- package/kit/.agents/skills/productivity/google-workspace/scripts/setup.py +0 -481
- package/kit/.agents/skills/productivity/nano-pdf/SKILL.md +0 -52
- package/kit/.agents/skills/productivity/notion/SKILL.md +0 -448
- package/kit/.agents/skills/productivity/notion/references/block-types.md +0 -112
- package/kit/.agents/skills/productivity/ocr-and-documents/DESCRIPTION.md +0 -3
- package/kit/.agents/skills/productivity/ocr-and-documents/SKILL.md +0 -172
- package/kit/.agents/skills/productivity/ocr-and-documents/scripts/extract_marker.py +0 -87
- package/kit/.agents/skills/productivity/ocr-and-documents/scripts/extract_pymupdf.py +0 -98
- package/kit/.agents/skills/productivity/powerpoint/LICENSE.txt +0 -30
- package/kit/.agents/skills/productivity/powerpoint/SKILL.md +0 -237
- package/kit/.agents/skills/productivity/powerpoint/editing.md +0 -205
- package/kit/.agents/skills/productivity/powerpoint/pptxgenjs.md +0 -420
- package/kit/.agents/skills/productivity/powerpoint/scripts/__init__.py +0 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/add_slide.py +0 -195
- package/kit/.agents/skills/productivity/powerpoint/scripts/clean.py +0 -286
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/helpers/__init__.py +0 -0
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/helpers/merge_runs.py +0 -199
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/helpers/simplify_redlines.py +0 -197
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/pack.py +0 -159
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +0 -1499
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +0 -146
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +0 -1085
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +0 -11
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd +0 -3081
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +0 -23
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +0 -185
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +0 -287
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd +0 -1676
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +0 -28
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +0 -144
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +0 -174
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +0 -25
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +0 -18
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +0 -59
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +0 -56
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +0 -195
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd +0 -582
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +0 -25
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd +0 -4439
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd +0 -570
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +0 -509
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +0 -12
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +0 -108
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +0 -96
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd +0 -3646
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd +0 -116
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ecma/fourth-edition/opc-contentTypes.xsd +0 -42
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ecma/fourth-edition/opc-coreProperties.xsd +0 -50
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ecma/fourth-edition/opc-digSig.xsd +0 -49
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/ecma/fourth-edition/opc-relationships.xsd +0 -33
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/mce/mc.xsd +0 -75
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/microsoft/wml-2010.xsd +0 -560
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/microsoft/wml-2012.xsd +0 -67
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/microsoft/wml-2018.xsd +0 -14
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/microsoft/wml-cex-2018.xsd +0 -20
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/microsoft/wml-cid-2016.xsd +0 -13
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd +0 -4
- package/kit/.agents/skills/productivity/powerpoint/scripts/office/schemas/microsoft/wml-symex-2015.xsd +0 -8
- package/kit/.agents/skills/proposta/SKILL.md +0 -159
- package/kit/.agents/skills/proposta/references/proposta-avancada.md +0 -17
- package/kit/.agents/skills/proposta/references/proposta.html +0 -187
- package/kit/.agents/skills/session-checkpoint/SKILL.md +0 -80
- package/kit/.agents/skills/session-end/SKILL.md +0 -166
- package/kit/.agents/skills/session-start/SKILL.md +0 -149
- package/kit/.agents/skills/social-content/SKILL.md +0 -119
- package/kit/.agents/skills/stop-slop/CHANGELOG.md +0 -24
- package/kit/.agents/skills/stop-slop/README.md +0 -62
- package/kit/.agents/skills/stop-slop/SKILL.md +0 -68
- package/kit/.agents/skills/stop-slop/references/examples.md +0 -59
- package/kit/.agents/skills/stop-slop/references/phrases.md +0 -128
- package/kit/.agents/skills/stop-slop/references/structures.md +0 -134
- package/kit/.agents/squads/index.md +0 -14
- package/kit/.agents/squads/instagram-carrossel/DEPENDENCIES.md +0 -75
- package/kit/.agents/squads/instagram-carrossel/README.md +0 -52
- package/kit/.agents/squads/instagram-carrossel/RUN.md +0 -115
- package/kit/.agents/squads/instagram-carrossel/_memory/memories.md +0 -16
- package/kit/.agents/squads/instagram-carrossel/agents/copywriter/tasks/create-slides.md +0 -96
- package/kit/.agents/squads/instagram-carrossel/agents/copywriter/tasks/generate-angles.md +0 -111
- package/kit/.agents/squads/instagram-carrossel/agents/copywriter/tasks/optimize-copy.md +0 -81
- package/kit/.agents/squads/instagram-carrossel/agents/copywriter.custom.md +0 -73
- package/kit/.agents/squads/instagram-carrossel/agents/image-designer/tasks/create-slides.md +0 -132
- package/kit/.agents/squads/instagram-carrossel/agents/image-designer/tasks/propose-visual-identities.md +0 -89
- package/kit/.agents/squads/instagram-carrossel/agents/image-designer/tasks/render-export.md +0 -100
- package/kit/.agents/squads/instagram-carrossel/agents/image-designer.custom.md +0 -47
- package/kit/.agents/squads/instagram-carrossel/agents/publisher/tasks/validate-publish.md +0 -50
- package/kit/.agents/squads/instagram-carrossel/agents/publisher.custom.md +0 -26
- package/kit/.agents/squads/instagram-carrossel/agents/researcher/tasks/find-and-rank-news.md +0 -105
- package/kit/.agents/squads/instagram-carrossel/agents/researcher.custom.md +0 -46
- package/kit/.agents/squads/instagram-carrossel/agents/reviewer/tasks/generate-feedback.md +0 -91
- package/kit/.agents/squads/instagram-carrossel/agents/reviewer/tasks/score-content.md +0 -103
- package/kit/.agents/squads/instagram-carrossel/agents/reviewer.custom.md +0 -53
- package/kit/.agents/squads/instagram-carrossel/output/.gitkeep +0 -0
- package/kit/.agents/squads/instagram-carrossel/output/slides/.gitkeep +0 -0
- package/kit/.agents/squads/instagram-carrossel/output/slides/rendered/.gitkeep +0 -0
- package/kit/.agents/squads/instagram-carrossel/pipeline/data/anti-patterns.md +0 -125
- package/kit/.agents/squads/instagram-carrossel/pipeline/data/domain-framework.md +0 -92
- package/kit/.agents/squads/instagram-carrossel/pipeline/data/instagram-feed-best-practices.md +0 -235
- package/kit/.agents/squads/instagram-carrossel/pipeline/data/output-examples.md +0 -244
- package/kit/.agents/squads/instagram-carrossel/pipeline/data/quality-criteria.md +0 -120
- package/kit/.agents/squads/instagram-carrossel/pipeline/data/research-brief.md +0 -135
- package/kit/.agents/squads/instagram-carrossel/pipeline/data/tone-of-voice.md +0 -32
- package/kit/.agents/squads/instagram-carrossel/pipeline/pipeline.yaml +0 -136
- package/kit/.agents/squads/instagram-carrossel/pipeline/steps/step-01-input-content.md +0 -38
- package/kit/.agents/squads/instagram-carrossel/pipeline/steps/step-02-find-news.md +0 -42
- package/kit/.agents/squads/instagram-carrossel/pipeline/steps/step-03-select-story.md +0 -59
- package/kit/.agents/squads/instagram-carrossel/pipeline/steps/step-04-generate-angles.md +0 -45
- package/kit/.agents/squads/instagram-carrossel/pipeline/steps/step-05-select-angle.md +0 -64
- package/kit/.agents/squads/instagram-carrossel/pipeline/steps/step-06-create-copy.md +0 -51
- package/kit/.agents/squads/instagram-carrossel/pipeline/steps/step-07-approve-copy.md +0 -52
- package/kit/.agents/squads/instagram-carrossel/pipeline/steps/step-08-propose-visuals.md +0 -42
- package/kit/.agents/squads/instagram-carrossel/pipeline/steps/step-09-select-visual.md +0 -61
- package/kit/.agents/squads/instagram-carrossel/pipeline/steps/step-10-create-slides.md +0 -55
- package/kit/.agents/squads/instagram-carrossel/pipeline/steps/step-11-approve-images.md +0 -60
- package/kit/.agents/squads/instagram-carrossel/pipeline/steps/step-12-review.md +0 -55
- package/kit/.agents/squads/instagram-carrossel/pipeline/steps/step-13-publish.md +0 -79
- package/kit/.agents/squads/instagram-carrossel/squad-party.csv +0 -6
- package/kit/.agents/squads/instagram-carrossel/squad.yaml +0 -70
- package/kit/COMECE-AQUI.md +0 -207
- package/kit/MEMORY.md +0 -31
- package/kit/SECURITY.md +0 -39
- package/kit/clientes/README.md +0 -72
- package/kit/clientes/_index.md +0 -32
- package/kit/clientes/_template/arquivos/.gitkeep +0 -0
- package/kit/clientes/_template/contexto.md +0 -21
- package/kit/clientes/_template/entregas.md +0 -20
- package/kit/clientes/_template/perfil.md +0 -47
- package/kit/clientes/_template/propostas/.gitkeep +0 -0
- package/kit/conteudo/README.md +0 -12
- package/kit/conteudo/_fila.md +0 -12
- package/kit/conteudo/carrosseis/.gitkeep +0 -0
- package/kit/conteudo/publicados/.gitkeep +0 -0
- package/kit/docs/audit-enxugamento-sieve.md +0 -187
- package/kit/docs/cli.md +0 -62
- package/kit/docs/hotmart-webhook.md +0 -96
- package/kit/docs/lab-user.md +0 -35
- package/kit/docs/prd-invos-cli.md +0 -264
- package/kit/integracoes/README.md +0 -31
- package/kit/integracoes/composio/README.md +0 -128
- package/kit/integracoes/composio/marketing-tools.md +0 -61
- package/kit/marca/README.md +0 -13
- package/kit/marca/assets/.gitkeep +0 -0
- package/kit/marca/marca.md +0 -57
- package/kit/memoria/ativo.md +0 -18
- package/kit/memoria/decisoes.md +0 -26
- package/kit/memoria/empresa.md +0 -46
- package/kit/memoria/historico/README.md +0 -8
- package/kit/memoria/insights.md +0 -11
- package/kit/memoria/perfil.md +0 -29
- package/kit/memoria/projetos.md +0 -27
- package/kit/memoria/regras/_TEMPLATE-exemplo.md +0 -15
- package/kit/memoria/regras/task-com-dono.md +0 -18
- package/kit/scripts/smoke-estado.sh +0 -32
- package/kit/scripts/validar.sh +0 -206
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: instagram-carrossel
|
|
3
|
-
description: >-
|
|
4
|
-
Instagram no INVOS: carrossel (default MVP 1–2 slides HTML + caption + handoff),
|
|
5
|
-
opcional render PNG, opcional publish Graph API. Use quando: carrossel, slides IG,
|
|
6
|
-
fábrica de carrossel, pack carrossel, render PNG dos slides, publica no Instagram
|
|
7
|
-
(Business + .env). NÃO use para só legenda texto (social-content).
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
# Instagram carrossel (pacote único)
|
|
11
|
-
|
|
12
|
-
Uma skill de entrada. Dependências antigas (`image-creator`, `image-fetcher`, `instagram-publisher`) vivem em **`references/`** — o agente carrega o subdoc **só quando o passo exigir**.
|
|
13
|
-
|
|
14
|
-
```text
|
|
15
|
-
User: carrossel / slides
|
|
16
|
-
→ este SKILL (MVP ou full)
|
|
17
|
-
User: gera PNG / render
|
|
18
|
-
→ references/render-png.md
|
|
19
|
-
User: busca imagem / screenshot pra slide
|
|
20
|
-
→ references/fetch-assets.md
|
|
21
|
-
User: publica no IG (API)
|
|
22
|
-
→ references/publish.md + scripts/publish.js
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
---
|
|
26
|
-
|
|
27
|
-
## Default: modo MVP (dia a dia)
|
|
28
|
-
|
|
29
|
-
Prestador em 5–15 min — **não** rode 13 steps do squad.
|
|
30
|
-
|
|
31
|
-
1. Leia `marca/marca.md` + `memoria/empresa.md` (+ prova em `clientes/` se houver).
|
|
32
|
-
2. Pasta `conteudo/carrosseis/YYYY-MM-DD-kebab/`.
|
|
33
|
-
3. Entregue:
|
|
34
|
-
- `caption.txt`
|
|
35
|
-
- `slide-01.html` (+ opcional `slide-02.html`) — 1080×1350, cores da marca
|
|
36
|
-
- `README.md` (abrir browser / print / ⚠️ postar no app)
|
|
37
|
-
4. `conteudo/_fila.md` atualizado.
|
|
38
|
-
5. Chat: paths + `⚠️ Sua vez: subir no Instagram`.
|
|
39
|
-
|
|
40
|
-
**PNG:** só se user pedir **e** Chrome/Python ok → siga `references/render-png.md`.
|
|
41
|
-
Senão: HTML + handoff. **Não finja** pipeline completo.
|
|
42
|
-
|
|
43
|
-
## Fábrica completa (opcional)
|
|
44
|
-
|
|
45
|
-
Só se user disser: **“fábrica completa”**, **“modo squad”**, **“pipeline full”**, **“com research e ângulos”**.
|
|
46
|
-
|
|
47
|
-
1. `.agents/squads/instagram-carrossel/RUN.md`
|
|
48
|
-
2. `squad.yaml` + `pipeline/`
|
|
49
|
-
3. Preferir modo turbo do RUN.
|
|
50
|
-
|
|
51
|
-
## Publicar no Instagram (opcional)
|
|
52
|
-
|
|
53
|
-
Só se user disser **“publica” / “pode postar”** **e** `.env` com tokens Business.
|
|
54
|
-
|
|
55
|
-
1. Leia `references/publish.md`
|
|
56
|
-
2. Script: `node --env-file=.env .agents/skills/instagram-carrossel/scripts/publish.js …`
|
|
57
|
-
3. Sem env / falha → handoff humano. **Nunca** invente permalink.
|
|
58
|
-
|
|
59
|
-
## Atalhos
|
|
60
|
-
|
|
61
|
-
| User diz | O que rodar |
|
|
62
|
-
|----------|-------------|
|
|
63
|
-
| “faz um carrossel” / tema | **MVP** deste arquivo |
|
|
64
|
-
| “gera PNG” / “exporta slides” | MVP (se falta HTML) + `references/render-png.md` |
|
|
65
|
-
| “busca imagem pro slide” | `references/fetch-assets.md` |
|
|
66
|
-
| “publica no IG” | pack pronto + `references/publish.md` ou ⚠️ |
|
|
67
|
-
| “só legenda” | **Não** esta skill → `social-content` |
|
|
68
|
-
|
|
69
|
-
## Relação
|
|
70
|
-
|
|
71
|
-
| Skill / path | Quando |
|
|
72
|
-
|--------------|--------|
|
|
73
|
-
| `social-content` | Texto/legenda sem slides |
|
|
74
|
-
| `design-marca` | Marca vazia |
|
|
75
|
-
| Squad `instagram-carrossel` | Só no modo full |
|
|
76
|
-
|
|
77
|
-
## Dono
|
|
78
|
-
|
|
79
|
-
Mínimo: subir pack no app. API e PNG são extras.
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
# Fetch assets (subdoc de instagram-carrossel)
|
|
2
|
-
|
|
3
|
-
**Não é skill separada.** Carregar só se precisar stock/screenshot/arquivo do user nos slides.
|
|
4
|
-
|
|
5
|
-
## When to use
|
|
6
|
-
|
|
7
|
-
Assets visuais: busca web, screenshot (Playwright **ou** Chrome se existir), arquivos do user.
|
|
8
|
-
**Opcional** no carrossel — a maioria das runs só precisa de HTML tipográfico + `marca/`.
|
|
9
|
-
|
|
10
|
-
## When to use (detail)
|
|
11
|
-
|
|
12
|
-
Three modes: web image search, live website screenshots, user-provided files. Save under squad `output/` or `conteudo/carrosseis/$SLUG/assets/`.
|
|
13
|
-
|
|
14
|
-
## Instructions
|
|
15
|
-
|
|
16
|
-
### Capabilities
|
|
17
|
-
|
|
18
|
-
1. **Web Image Search** -- Use the native web_search tool to find images by keyword. Evaluate results and download the best match.
|
|
19
|
-
|
|
20
|
-
2. **Live Screenshot** -- Use Playwright MCP to navigate to a URL, set viewport dimensions, and capture a screenshot.
|
|
21
|
-
|
|
22
|
-
3. **Asset Organization** -- Save all acquired assets with descriptive filenames in the squad's reference/ or output/ folder.
|
|
23
|
-
|
|
24
|
-
### Screenshot Modes
|
|
25
|
-
|
|
26
|
-
- **viewport** -- Capture only the visible viewport area (default)
|
|
27
|
-
- **full_page** -- Capture the entire scrollable page
|
|
28
|
-
- **selector** -- Capture a specific CSS selector element
|
|
29
|
-
|
|
30
|
-
### Screenshot Workflow
|
|
31
|
-
|
|
32
|
-
When taking a screenshot:
|
|
33
|
-
1. Navigate to the URL with `browser_navigate`
|
|
34
|
-
2. Set viewport: `browser_resize` with width/height for target format
|
|
35
|
-
- Instagram post: 1080x1080
|
|
36
|
-
- Instagram carousel: 1080x1440
|
|
37
|
-
- Story/Reel: 1080x1920
|
|
38
|
-
- Generic: 1280x720
|
|
39
|
-
3. Wait for page load (`browser_wait_for` if needed)
|
|
40
|
-
4. Capture: `browser_take_screenshot`
|
|
41
|
-
5. Save to reference folder with descriptive filename
|
|
42
|
-
|
|
43
|
-
### Asset Metadata
|
|
44
|
-
|
|
45
|
-
After acquiring each asset, document in your output:
|
|
46
|
-
- `path`: local file path
|
|
47
|
-
- `width/height`: image dimensions
|
|
48
|
-
- `source_type`: "web_search" | "screenshot" | "user_provided"
|
|
49
|
-
- `original_url`: source URL (if applicable)
|
|
50
|
-
|
|
51
|
-
### Cache Policy
|
|
52
|
-
|
|
53
|
-
Before fetching an asset:
|
|
54
|
-
- Check if the reference folder already has a matching file
|
|
55
|
-
- Use deterministic filenames based on source (e.g., URL slug + viewport)
|
|
56
|
-
- Reuse existing assets to avoid redundant fetches
|
|
57
|
-
|
|
58
|
-
### Safety
|
|
59
|
-
|
|
60
|
-
- Timeout: max 30s per screenshot, skip and warn if exceeded
|
|
61
|
-
- Maximum screenshot dimensions: 1920x1920px
|
|
62
|
-
- Block `file://` protocol URLs
|
|
63
|
-
- Block localhost and private IP ranges (127.0.0.1, 10.x, 192.168.x)
|
|
64
|
-
|
|
65
|
-
### Best Practices
|
|
66
|
-
|
|
67
|
-
- Prefer screenshots over web search for product/tool pages (images are often outdated)
|
|
68
|
-
- Save with descriptive names: `gemini-benchmark-chart.png` not `image1.png`
|
|
69
|
-
- Normalize URLs before caching (strip tracking params)
|
|
70
|
-
- Document all acquired assets with metadata for downstream tools
|
|
71
|
-
|
|
72
|
-
## Available operations
|
|
73
|
-
|
|
74
|
-
- **Web Image Search** -- Find and download images by keyword from the web
|
|
75
|
-
- **Live Screenshot** -- Capture viewport, full-page, or element screenshots of any URL
|
|
76
|
-
- **Asset Organization** -- Save and catalog assets with descriptive filenames and metadata
|
|
77
|
-
- **Cache Check** -- Detect and reuse previously fetched assets to avoid redundant downloads
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# Publish Instagram (subdoc de instagram-carrossel)
|
|
2
|
-
|
|
3
|
-
**Não é skill separada.** Carregar só se user disser “publica/pode postar” e houver `.env`.
|
|
4
|
-
|
|
5
|
-
## Default no INVOS (sem erro se faltar API)
|
|
6
|
-
|
|
7
|
-
**Não é obrigatório.** O skill `instagram-carrossel` termina com pack em `conteudo/carrosseis/` +
|
|
8
|
-
|
|
9
|
-
```text
|
|
10
|
-
⚠️ Sua vez: subir PNGs no Instagram + colar caption.txt
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
Só use publish automático se:
|
|
14
|
-
|
|
15
|
-
1. User disse **“publica” / “pode postar”**
|
|
16
|
-
2. `.env` tem as variáveis (nunca commitar)
|
|
17
|
-
3. Conta Instagram **Business** + Página Facebook
|
|
18
|
-
|
|
19
|
-
## Env (local only)
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
# .env (gitignore)
|
|
23
|
-
INSTAGRAM_ACCESS_TOKEN=
|
|
24
|
-
INSTAGRAM_USER_ID=
|
|
25
|
-
IMGBB_API_KEY=
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
## Script
|
|
29
|
-
|
|
30
|
-
```bash
|
|
31
|
-
node --env-file=.env .agents/skills/instagram-carrossel/scripts/publish.js \
|
|
32
|
-
--images "path/slide-01.png,path/slide-02.png" \
|
|
33
|
-
--caption "legenda..."
|
|
34
|
-
# dry-run:
|
|
35
|
-
# ... --dry-run
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
Imagens: JPEG/PNG conforme o script; preferir 2–10 slides. Caption max 2200 chars.
|
|
39
|
-
|
|
40
|
-
## Setup token (resumo)
|
|
41
|
-
|
|
42
|
-
Ver Meta Graph API Explorer: permissões `instagram_content_publish`, `instagram_basic`, `pages_read_engagement`.
|
|
43
|
-
User ID: Page → `instagram_business_account.id`.
|
|
44
|
-
Token longa duração (~60 dias).
|
|
45
|
-
|
|
46
|
-
## Se faltar chave / script falhar
|
|
47
|
-
|
|
48
|
-
Reportar erro real → manter handoff humano. **Nunca** inventar permalink de post.
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
# Render PNG (subdoc de instagram-carrossel)
|
|
2
|
-
|
|
3
|
-
**Não é skill separada.** Carregar só quando o user pedir PNG/export ou o passo de render do squad full.
|
|
4
|
-
|
|
5
|
-
Renderiza HTML/CSS em PNG (Chrome headless padrão INVOS; Playwright opcional).
|
|
6
|
-
|
|
7
|
-
## Quando usar
|
|
8
|
-
|
|
9
|
-
Gerar slides de carrossel, gráficos sociais, qualquer HTML self-contained → PNG.
|
|
10
|
-
|
|
11
|
-
## Ordem de render (obrigatória)
|
|
12
|
-
|
|
13
|
-
1. **Chrome/Chromium headless** (padrão INVOS — sem MCP)
|
|
14
|
-
2. Playwright MCP se o harness tiver
|
|
15
|
-
3. Se nada existir: deixe HTML + instrução “abrir no browser / print” e **não** finja PNG
|
|
16
|
-
|
|
17
|
-
### Core Workflow
|
|
18
|
-
|
|
19
|
-
1. **Generate HTML** — arquivo self-contained (CSS inline, Google Fonts via `@import` ok).
|
|
20
|
-
|
|
21
|
-
2. **Save HTML** — ex.:
|
|
22
|
-
`.agents/squads/instagram-carrossel/output/slides/slide-01.html`
|
|
23
|
-
e espelho em `conteudo/carrosseis/$SLUG/slides/`.
|
|
24
|
-
|
|
25
|
-
3. **Start HTTP server** na pasta dos HTML:
|
|
26
|
-
```bash
|
|
27
|
-
python3 -m http.server 8765 --directory "OUTPUT_DIR" &
|
|
28
|
-
for i in $(seq 1 30); do curl -s http://localhost:8765 >/dev/null 2>&1 && break || sleep 0.1; done
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
4. **Render com Chrome headless** (macOS path padrão):
|
|
32
|
-
```bash
|
|
33
|
-
CHROME="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
|
|
34
|
-
# Linux: google-chrome || chromium
|
|
35
|
-
W=1080 H=1350 # INVOS default 4:5; squad legado pode pedir 1440
|
|
36
|
-
"$CHROME" --headless=new --no-sandbox --disable-gpu --hide-scrollbars \
|
|
37
|
-
--window-size=${W},${H} \
|
|
38
|
-
--screenshot="OUTPUT_DIR/rendered/slide-01.png" \
|
|
39
|
-
--virtual-time-budget=4000 \
|
|
40
|
-
"http://localhost:8765/slide-01.html"
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
5. **Verify** — inspecionar PNG; re-render se quebrar.
|
|
44
|
-
|
|
45
|
-
6. **Stop server**:
|
|
46
|
-
```bash
|
|
47
|
-
pkill -f "http.server 8765" 2>/dev/null || true
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
### Viewport Presets (width x height)
|
|
51
|
-
|
|
52
|
-
Use these standard dimensions:
|
|
53
|
-
- Instagram Post: 1080 x 1080
|
|
54
|
-
- Instagram Carousel: 1080 x 1440
|
|
55
|
-
- Instagram Story/Reel: 1080 x 1920
|
|
56
|
-
- Facebook Post: 1200 x 630
|
|
57
|
-
- Twitter/X Post: 1200 x 675
|
|
58
|
-
- LinkedIn Post: 1200 x 627
|
|
59
|
-
- YouTube Thumbnail: 1280 x 720
|
|
60
|
-
- Custom: as specified by the squad
|
|
61
|
-
|
|
62
|
-
### HTML Template Guidelines
|
|
63
|
-
|
|
64
|
-
The HTML you generate MUST:
|
|
65
|
-
- Be self-contained (inline CSS, no external dependencies)
|
|
66
|
-
- Use web-safe fonts OR Google Fonts via `@import`
|
|
67
|
-
- Embed images as absolute paths or base64 data URIs
|
|
68
|
-
- Set exact body dimensions matching the viewport
|
|
69
|
-
- Use `margin: 0; padding: 0; overflow: hidden` on body
|
|
70
|
-
- Account for device pixel ratio if high-res needed
|
|
71
|
-
|
|
72
|
-
Example minimal structure:
|
|
73
|
-
```html
|
|
74
|
-
<!DOCTYPE html>
|
|
75
|
-
<html>
|
|
76
|
-
<head>
|
|
77
|
-
<meta charset="UTF-8">
|
|
78
|
-
<style>
|
|
79
|
-
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
80
|
-
body { width: 1080px; height: 1440px; overflow: hidden; }
|
|
81
|
-
/* ... your design ... */
|
|
82
|
-
</style>
|
|
83
|
-
</head>
|
|
84
|
-
<body>
|
|
85
|
-
<!-- Your content -->
|
|
86
|
-
</body>
|
|
87
|
-
</html>
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
### Batch Rendering (Carousels/Multi-slide)
|
|
91
|
-
|
|
92
|
-
For multi-image outputs like carousels:
|
|
93
|
-
1. Generate one HTML file per slide
|
|
94
|
-
2. Start the HTTP server **once** before the batch (step 3 of Core Workflow)
|
|
95
|
-
3. Render each slide sequentially (step 4 repeated per slide)
|
|
96
|
-
4. Stop the HTTP server **once** after all slides are done (step 6 of Core Workflow)
|
|
97
|
-
5. Name output files with zero-padded numbers: slide-01.png, slide-02.png, slide-03.png
|
|
98
|
-
6. Keep all slides at the same viewport dimensions
|
|
99
|
-
|
|
100
|
-
### Best Practices
|
|
101
|
-
|
|
102
|
-
- Always verify the first rendered image before batch rendering
|
|
103
|
-
- Use CSS Grid/Flexbox for layout -- most reliable across renderers
|
|
104
|
-
- Avoid animations/transitions (static screenshot only)
|
|
105
|
-
- For rounded corners on images, use CSS `border-radius` + `overflow`
|
|
106
|
-
- For emoji rendering, rely on system fonts (Windows: Segoe UI Emoji)
|
|
107
|
-
- Test text overflow -- ensure no content is clipped unexpectedly
|
|
108
|
-
- Keep HTML files alongside output PNGs for easy re-rendering
|
|
109
|
-
|
|
110
|
-
### Typography & Readability Rules
|
|
111
|
-
|
|
112
|
-
Text must be legible in the target platform's smallest viewing context (mobile feed for social platforms). Text inside linked or embedded image files (JPG, PNG, base64 assets) is decorative and exempt. All HTML text nodes and inline SVG text are subject to these rules.
|
|
113
|
-
|
|
114
|
-
These are HARD minimums -- never go below them for readable text.
|
|
115
|
-
|
|
116
|
-
#### Minimum Font Sizes by Platform
|
|
117
|
-
|
|
118
|
-
| Text Role | Instagram Post/Carousel | Instagram Story/Reel | LinkedIn/Facebook | YouTube Thumb |
|
|
119
|
-
|------------------|------------------------|----------------------|-------------------|---------------|
|
|
120
|
-
| Hero / Display | 58px | 56px | 40px | 60px |
|
|
121
|
-
| Heading | 43px | 42px | 32px | 36px |
|
|
122
|
-
| Body / Bullets | 34px | 32px | 24px | 36px |
|
|
123
|
-
| Caption / Footer | 24px | 20px | 20px | 32px |
|
|
124
|
-
|
|
125
|
-
**Universal rule**: No text element meant to be read may use a font size smaller than 20px, on any platform.
|
|
126
|
-
|
|
127
|
-
#### Font Weight
|
|
128
|
-
|
|
129
|
-
- Body text and above: use font-weight 500+ (medium/semibold/bold)
|
|
130
|
-
- Caption text: font-weight 500+ strongly recommended; 400 only with explicit high-contrast background (4.5:1 ratio minimum)
|
|
131
|
-
- Avoid thin/light weights (100-300) for any readable text
|
|
132
|
-
|
|
133
|
-
#### Verification Checklist
|
|
134
|
-
|
|
135
|
-
Before calling `browser_take_screenshot`, scan your HTML and confirm:
|
|
136
|
-
- All text elements use explicit px sizes (not em/rem that could resolve smaller)
|
|
137
|
-
- No heading is below the Heading minimum for the target platform
|
|
138
|
-
- No body/bullet text is below the Body minimum
|
|
139
|
-
- No footer or metadata text is below the Caption minimum
|
|
140
|
-
- No readable text uses font-weight below 500 (caption at 400 only with 4.5:1 contrast background)
|
|
141
|
-
|
|
142
|
-
## Available operations
|
|
143
|
-
|
|
144
|
-
- **Render HTML to PNG** -- Convert self-contained HTML/CSS into a pixel-perfect screenshot
|
|
145
|
-
- **Batch Render** -- Render multiple slides/pages sequentially for carousels and multi-image content
|
|
146
|
-
- **Viewport Resize** -- Set precise viewport dimensions for any target platform
|
|
147
|
-
- **Quality Verification** -- Visually inspect rendered output and re-render if needed
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// Instagram Carousel Publisher
|
|
3
|
-
// Usage: node --env-file=.env publish.js --images "slide1.jpg,slide2.jpg" --caption "..." [--dry-run]
|
|
4
|
-
|
|
5
|
-
import { readFileSync } from 'node:fs';
|
|
6
|
-
import { resolve } from 'node:path';
|
|
7
|
-
import { fileURLToPath } from 'node:url';
|
|
8
|
-
|
|
9
|
-
// ── Argument parsing ──────────────────────────────────────────
|
|
10
|
-
|
|
11
|
-
export function parseArgs(argv) {
|
|
12
|
-
const args = { images: [], caption: '', dryRun: false };
|
|
13
|
-
for (let i = 2; i < argv.length; i++) {
|
|
14
|
-
if (argv[i] === '--images') {
|
|
15
|
-
if (i + 1 < argv.length) args.images = argv[++i].split(',').map(s => s.trim());
|
|
16
|
-
}
|
|
17
|
-
else if (argv[i] === '--caption') {
|
|
18
|
-
if (i + 1 < argv.length) args.caption = argv[++i];
|
|
19
|
-
}
|
|
20
|
-
else if (argv[i] === '--dry-run') args.dryRun = true;
|
|
21
|
-
}
|
|
22
|
-
return args;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
// ── Image upload (imgBB) ──────────────────────────────────────
|
|
26
|
-
|
|
27
|
-
export async function uploadToImgBB(imagePath, apiKey) {
|
|
28
|
-
const absolutePath = resolve(imagePath);
|
|
29
|
-
const fileBuffer = readFileSync(absolutePath);
|
|
30
|
-
const base64Image = fileBuffer.toString('base64');
|
|
31
|
-
const form = new FormData();
|
|
32
|
-
form.append('key', apiKey);
|
|
33
|
-
form.append('image', base64Image);
|
|
34
|
-
const res = await fetch('https://api.imgbb.com/1/upload', {
|
|
35
|
-
method: 'POST',
|
|
36
|
-
body: form,
|
|
37
|
-
});
|
|
38
|
-
if (!res.ok) throw new Error(`imgBB upload failed [${res.status}]: ${await res.text()}`);
|
|
39
|
-
const json = await res.json();
|
|
40
|
-
if (!json.success) throw new Error(`imgBB upload failed: ${JSON.stringify(json)}`);
|
|
41
|
-
return json.data.url;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// ── Instagram Graph API ───────────────────────────────────────
|
|
45
|
-
|
|
46
|
-
const IG_BASE = 'https://graph.facebook.com/v21.0';
|
|
47
|
-
|
|
48
|
-
export async function createChildContainer(userId, imageUrl, accessToken) {
|
|
49
|
-
const params = new URLSearchParams({
|
|
50
|
-
image_url: imageUrl,
|
|
51
|
-
is_carousel_item: 'true',
|
|
52
|
-
access_token: accessToken,
|
|
53
|
-
});
|
|
54
|
-
const res = await fetch(`${IG_BASE}/${userId}/media?${params}`, { method: 'POST' });
|
|
55
|
-
if (!res.ok) throw new Error(`createChildContainer failed [${res.status}]: ${await res.text()}`);
|
|
56
|
-
return (await res.json()).id;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export async function getContainerStatus(containerId, accessToken) {
|
|
60
|
-
const params = new URLSearchParams({ fields: 'status_code', access_token: accessToken });
|
|
61
|
-
const res = await fetch(`${IG_BASE}/${containerId}?${params}`);
|
|
62
|
-
if (!res.ok) throw new Error(`getContainerStatus failed [${res.status}]: ${await res.text()}`);
|
|
63
|
-
return (await res.json()).status_code;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export async function pollUntilFinished(containerId, accessToken, timeoutMs = 60_000, intervalMs = 3_000) {
|
|
67
|
-
const deadline = Date.now() + timeoutMs;
|
|
68
|
-
while (Date.now() < deadline) {
|
|
69
|
-
const status = await getContainerStatus(containerId, accessToken);
|
|
70
|
-
if (status === 'FINISHED') return;
|
|
71
|
-
if (status === 'ERROR') throw new Error(`Container ${containerId} entered ERROR state`);
|
|
72
|
-
await new Promise(r => setTimeout(r, intervalMs));
|
|
73
|
-
}
|
|
74
|
-
throw new Error(`Container ${containerId} timed out after ${timeoutMs}ms`);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export async function createCarouselContainer(userId, childIds, caption, accessToken) {
|
|
78
|
-
const params = new URLSearchParams({
|
|
79
|
-
media_type: 'CAROUSEL',
|
|
80
|
-
children: childIds.join(','),
|
|
81
|
-
caption,
|
|
82
|
-
access_token: accessToken,
|
|
83
|
-
});
|
|
84
|
-
const res = await fetch(`${IG_BASE}/${userId}/media?${params}`, { method: 'POST' });
|
|
85
|
-
if (!res.ok) throw new Error(`createCarouselContainer failed [${res.status}]: ${await res.text()}`);
|
|
86
|
-
return (await res.json()).id;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export async function publishMedia(userId, containerId, accessToken) {
|
|
90
|
-
const params = new URLSearchParams({ creation_id: containerId, access_token: accessToken });
|
|
91
|
-
const res = await fetch(`${IG_BASE}/${userId}/media_publish?${params}`, { method: 'POST' });
|
|
92
|
-
if (!res.ok) throw new Error(`publishMedia failed [${res.status}]: ${await res.text()}`);
|
|
93
|
-
return (await res.json()).id;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export async function getPermalink(mediaId, accessToken) {
|
|
97
|
-
const params = new URLSearchParams({ fields: 'permalink', access_token: accessToken });
|
|
98
|
-
const res = await fetch(`${IG_BASE}/${mediaId}?${params}`);
|
|
99
|
-
if (!res.ok) return null; // non-fatal — just skip the URL display
|
|
100
|
-
const json = await res.json();
|
|
101
|
-
return json.permalink ?? null;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
// ── Main ──────────────────────────────────────────────────────
|
|
105
|
-
|
|
106
|
-
async function main() {
|
|
107
|
-
const { images, caption, dryRun } = parseArgs(process.argv);
|
|
108
|
-
|
|
109
|
-
if (!images.length) throw new Error('--images is required (e.g. --images "slide1.jpg,slide2.jpg")');
|
|
110
|
-
if (!caption) throw new Error('--caption is required');
|
|
111
|
-
if (images.length < 2 || images.length > 10) {
|
|
112
|
-
throw new Error(`Instagram carousels require 2–10 images (got ${images.length})`);
|
|
113
|
-
}
|
|
114
|
-
if (caption.length > 2200) {
|
|
115
|
-
throw new Error(`Caption exceeds Instagram's 2200-character limit (got ${caption.length})`);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
const { INSTAGRAM_ACCESS_TOKEN, INSTAGRAM_USER_ID, IMGBB_API_KEY } = process.env;
|
|
119
|
-
if (!INSTAGRAM_ACCESS_TOKEN) throw new Error('INSTAGRAM_ACCESS_TOKEN is not set in environment');
|
|
120
|
-
if (!INSTAGRAM_USER_ID) throw new Error('INSTAGRAM_USER_ID is not set in environment');
|
|
121
|
-
if (!IMGBB_API_KEY) throw new Error('IMGBB_API_KEY is not set in environment. Get one at https://api.imgbb.com/');
|
|
122
|
-
|
|
123
|
-
console.log(`📸 Uploading ${images.length} image(s) to imgBB...`);
|
|
124
|
-
const imageUrls = await Promise.all(images.map(p => uploadToImgBB(p, IMGBB_API_KEY)));
|
|
125
|
-
imageUrls.forEach((url, i) => console.log(` [${i + 1}] ${url}`));
|
|
126
|
-
|
|
127
|
-
console.log('\n📦 Creating Instagram media containers...');
|
|
128
|
-
const childIds = await Promise.all(
|
|
129
|
-
imageUrls.map(url => createChildContainer(INSTAGRAM_USER_ID, url, INSTAGRAM_ACCESS_TOKEN))
|
|
130
|
-
);
|
|
131
|
-
console.log(` Container IDs: ${childIds.join(', ')}`);
|
|
132
|
-
|
|
133
|
-
console.log('\n⏳ Waiting for containers to finish processing...');
|
|
134
|
-
await Promise.all(childIds.map(id => pollUntilFinished(id, INSTAGRAM_ACCESS_TOKEN)));
|
|
135
|
-
console.log(' All containers ready.');
|
|
136
|
-
|
|
137
|
-
console.log('\n🎠 Creating carousel container...');
|
|
138
|
-
const carouselId = await createCarouselContainer(
|
|
139
|
-
INSTAGRAM_USER_ID, childIds, caption, INSTAGRAM_ACCESS_TOKEN
|
|
140
|
-
);
|
|
141
|
-
await pollUntilFinished(carouselId, INSTAGRAM_ACCESS_TOKEN);
|
|
142
|
-
console.log(` Carousel container ID: ${carouselId}`);
|
|
143
|
-
|
|
144
|
-
if (dryRun) {
|
|
145
|
-
console.log('\n✅ DRY RUN complete — skipping final publish call.');
|
|
146
|
-
console.log(` Carousel container ready: ${carouselId}`);
|
|
147
|
-
return;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
console.log('\n🚀 Publishing to Instagram...');
|
|
151
|
-
const postId = await publishMedia(INSTAGRAM_USER_ID, carouselId, INSTAGRAM_ACCESS_TOKEN);
|
|
152
|
-
const permalink = await getPermalink(postId, INSTAGRAM_ACCESS_TOKEN);
|
|
153
|
-
console.log(`\n✅ Published successfully!`);
|
|
154
|
-
console.log(` Post ID: ${postId}`);
|
|
155
|
-
if (permalink) console.log(` URL: ${permalink}`);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
// Run only when executed directly (not when imported for tests)
|
|
159
|
-
const isMain = process.argv[1] === fileURLToPath(import.meta.url);
|
|
160
|
-
if (isMain) {
|
|
161
|
-
main().catch(err => {
|
|
162
|
-
console.error(`\n❌ ${err.message}`);
|
|
163
|
-
process.exit(1);
|
|
164
|
-
});
|
|
165
|
-
}
|