@caddis/cli 0.1.0 β 0.2.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/README.md +29 -16
- package/bundles/antigravity-plugin-extras/plugin.json +5 -0
- package/bundles/antigravity-plugin-extras/skills/_registry.md +154 -0
- package/bundles/antigravity-plugin-extras/skills/agent-md-refactor/SKILL.md +356 -0
- package/bundles/antigravity-plugin-extras/skills/agent-orchestration/SKILL.md +517 -0
- package/bundles/antigravity-plugin-extras/skills/algorithmic-art/SKILL.md +293 -0
- package/bundles/antigravity-plugin-extras/skills/anchor-review/SKILL.md +135 -0
- package/bundles/antigravity-plugin-extras/skills/api-client-patterns/SKILL.md +367 -0
- package/bundles/antigravity-plugin-extras/skills/architecture-design/SKILL.md +244 -0
- package/bundles/antigravity-plugin-extras/skills/architecture-diagram/SKILL.md +156 -0
- package/bundles/antigravity-plugin-extras/skills/architecture-document/SKILL.md +321 -0
- package/bundles/antigravity-plugin-extras/skills/artifacts-builder/LICENSE.txt +202 -0
- package/bundles/antigravity-plugin-extras/skills/artifacts-builder/SKILL.md +74 -0
- package/bundles/antigravity-plugin-extras/skills/artifacts-builder/scripts/bundle-artifact.sh +54 -0
- package/bundles/antigravity-plugin-extras/skills/artifacts-builder/scripts/init-artifact.sh +322 -0
- package/bundles/antigravity-plugin-extras/skills/artifacts-builder/scripts/shadcn-components.tar.gz +0 -0
- package/bundles/antigravity-plugin-extras/skills/ascii-art/SKILL.md +144 -0
- package/bundles/antigravity-plugin-extras/skills/asking-questions/SKILL.md +81 -0
- package/bundles/antigravity-plugin-extras/skills/aws-agentic-ai/SKILL.md +118 -0
- package/bundles/antigravity-plugin-extras/skills/aws-agentic-ai/cross-service/credential-management.md +450 -0
- package/bundles/antigravity-plugin-extras/skills/aws-agentic-ai/services/browser/README.md +363 -0
- package/bundles/antigravity-plugin-extras/skills/aws-agentic-ai/services/code-interpreter/README.md +232 -0
- package/bundles/antigravity-plugin-extras/skills/aws-agentic-ai/services/gateway/README.md +100 -0
- package/bundles/antigravity-plugin-extras/skills/aws-agentic-ai/services/gateway/deploy-template.sh +117 -0
- package/bundles/antigravity-plugin-extras/skills/aws-agentic-ai/services/gateway/deployment-strategies.md +416 -0
- package/bundles/antigravity-plugin-extras/skills/aws-agentic-ai/services/gateway/troubleshooting-guide.md +384 -0
- package/bundles/antigravity-plugin-extras/skills/aws-agentic-ai/services/gateway/validate-deployment.sh +186 -0
- package/bundles/antigravity-plugin-extras/skills/aws-agentic-ai/services/identity/README.md +186 -0
- package/bundles/antigravity-plugin-extras/skills/aws-agentic-ai/services/memory/README.md +253 -0
- package/bundles/antigravity-plugin-extras/skills/aws-agentic-ai/services/observability/README.md +517 -0
- package/bundles/antigravity-plugin-extras/skills/aws-agentic-ai/services/runtime/README.md +215 -0
- package/bundles/antigravity-plugin-extras/skills/aws-cdk-development/SKILL.md +279 -0
- package/bundles/antigravity-plugin-extras/skills/aws-cdk-development/references/cdk-patterns.md +431 -0
- package/bundles/antigravity-plugin-extras/skills/aws-cdk-development/scripts/validate-stack.sh +240 -0
- package/bundles/antigravity-plugin-extras/skills/aws-cost-operations/SKILL.md +318 -0
- package/bundles/antigravity-plugin-extras/skills/aws-cost-operations/references/cloudwatch-alarms.md +567 -0
- package/bundles/antigravity-plugin-extras/skills/aws-cost-operations/references/operations-patterns.md +394 -0
- package/bundles/antigravity-plugin-extras/skills/aws-serverless-eda/SKILL.md +758 -0
- package/bundles/antigravity-plugin-extras/skills/aws-serverless-eda/references/deployment-best-practices.md +830 -0
- package/bundles/antigravity-plugin-extras/skills/aws-serverless-eda/references/eda-patterns.md +1002 -0
- package/bundles/antigravity-plugin-extras/skills/aws-serverless-eda/references/observability-best-practices.md +770 -0
- package/bundles/antigravity-plugin-extras/skills/aws-serverless-eda/references/performance-optimization.md +671 -0
- package/bundles/antigravity-plugin-extras/skills/aws-serverless-eda/references/security-best-practices.md +625 -0
- package/bundles/antigravity-plugin-extras/skills/aws-serverless-eda/references/serverless-patterns.md +838 -0
- package/bundles/antigravity-plugin-extras/skills/backend-to-frontend-handoff/SKILL.md +139 -0
- package/bundles/antigravity-plugin-extras/skills/banner-design/SKILL.md +188 -0
- package/bundles/antigravity-plugin-extras/skills/brand-design/SKILL.md +298 -0
- package/bundles/antigravity-plugin-extras/skills/brand-guidelines/LICENSE.txt +202 -0
- package/bundles/antigravity-plugin-extras/skills/brand-guidelines/SKILL.md +118 -0
- package/bundles/antigravity-plugin-extras/skills/brand-voice/SKILL.md +93 -0
- package/bundles/antigravity-plugin-extras/skills/building-ai-agent-on-cloudflare/SKILL.md +392 -0
- package/bundles/antigravity-plugin-extras/skills/building-ai-agent-on-cloudflare/references/agent-patterns.md +461 -0
- package/bundles/antigravity-plugin-extras/skills/building-ai-agent-on-cloudflare/references/examples.md +188 -0
- package/bundles/antigravity-plugin-extras/skills/building-ai-agent-on-cloudflare/references/state-patterns.md +360 -0
- package/bundles/antigravity-plugin-extras/skills/building-ai-agent-on-cloudflare/references/troubleshooting.md +362 -0
- package/bundles/antigravity-plugin-extras/skills/building-mcp-server-on-cloudflare/SKILL.md +266 -0
- package/bundles/antigravity-plugin-extras/skills/building-mcp-server-on-cloudflare/references/examples.md +115 -0
- package/bundles/antigravity-plugin-extras/skills/building-mcp-server-on-cloudflare/references/oauth-setup.md +338 -0
- package/bundles/antigravity-plugin-extras/skills/building-mcp-server-on-cloudflare/references/troubleshooting.md +317 -0
- package/bundles/antigravity-plugin-extras/skills/caching-patterns/SKILL.md +385 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/LICENSE.txt +202 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/SKILL.md +91 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/ArsenalSC-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/ArsenalSC-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/BigShoulders-Bold.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/BigShoulders-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/BigShoulders-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Boldonse-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Boldonse-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/BricolageGrotesque-Bold.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/BricolageGrotesque-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/BricolageGrotesque-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/CrimsonPro-Bold.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/CrimsonPro-Italic.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/CrimsonPro-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/CrimsonPro-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/DMMono-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/DMMono-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/EricaOne-OFL.txt +94 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/EricaOne-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/GeistMono-Bold.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/GeistMono-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/GeistMono-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Gloock-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Gloock-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/IBMPlexMono-Bold.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/IBMPlexMono-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/IBMPlexMono-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/IBMPlexSerif-Bold.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/IBMPlexSerif-BoldItalic.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/IBMPlexSerif-Italic.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/IBMPlexSerif-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/InstrumentSans-Bold.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/InstrumentSans-BoldItalic.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/InstrumentSans-Italic.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/InstrumentSans-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/InstrumentSans-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/InstrumentSerif-Italic.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/InstrumentSerif-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Italiana-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Italiana-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/JetBrainsMono-Bold.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/JetBrainsMono-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/JetBrainsMono-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Jura-Light.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Jura-Medium.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Jura-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/LibreBaskerville-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/LibreBaskerville-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Lora-Bold.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Lora-BoldItalic.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Lora-Italic.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Lora-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Lora-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/NationalPark-Bold.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/NationalPark-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/NationalPark-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/NothingYouCouldDo-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/NothingYouCouldDo-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Outfit-Bold.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Outfit-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Outfit-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/PixelifySans-Medium.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/PixelifySans-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/PoiretOne-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/PoiretOne-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/RedHatMono-Bold.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/RedHatMono-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/RedHatMono-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Silkscreen-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Silkscreen-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/SmoochSans-Medium.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/SmoochSans-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Tektur-Medium.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Tektur-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Tektur-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/WorkSans-Bold.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/WorkSans-BoldItalic.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/WorkSans-Italic.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/WorkSans-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/WorkSans-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/YoungSerif-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/YoungSerif-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/changelog-generator/SKILL.md +105 -0
- package/bundles/antigravity-plugin-extras/skills/code-explainer/SKILL.md +91 -0
- package/bundles/antigravity-plugin-extras/skills/competitive-ads-extractor/SKILL.md +294 -0
- package/bundles/antigravity-plugin-extras/skills/component-testing/SKILL.md +310 -0
- package/bundles/antigravity-plugin-extras/skills/content-research-writer/SKILL.md +539 -0
- package/bundles/antigravity-plugin-extras/skills/cross-review/SKILL.md +51 -0
- package/bundles/antigravity-plugin-extras/skills/data-analysis/SKILL.md +111 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/README.md +248 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/SKILL.md +203 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/assets/adapter.py.template +44 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/assets/api-router.py.template +43 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/assets/contract-test.py.template +384 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/assets/display-dto.py.template +39 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/assets/frontend-service.ts.template +46 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/assets/frontend-types.ts.template +38 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/assets/ingestion-model.py.template +42 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/assets/mapping-doc.md.template +46 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/assets/normalizer.py.template +48 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/assets/prompts/extract_requirements.md +36 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/assets/prompts/extract_ui_demand.md +35 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/assets/prompts/reconcile_mapping.md +66 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/assets/query-catalog.md.template +62 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/references/consumer-driven-contracts.md +131 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/references/drift-check-catalog.md +305 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/references/layer-responsibilities.md +333 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/scripts/discover_connections.py +170 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/scripts/discover_sources.py +161 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/scripts/drift_check.py +171 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/scripts/extract_schema.py +1363 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/scripts/generate_gap_report.py +81 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/scripts/generate_mapping_doc.py +294 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/scripts/ts_dto_compare.py +214 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/scripts/validate_lineage.py +51 -0
- package/bundles/antigravity-plugin-extras/skills/data-loader/SKILL.md +753 -0
- package/bundles/antigravity-plugin-extras/skills/data-validation/SKILL.md +220 -0
- package/bundles/antigravity-plugin-extras/skills/db-testing/SKILL.md +117 -0
- package/bundles/antigravity-plugin-extras/skills/deploy-local/SKILL.md +259 -0
- package/bundles/antigravity-plugin-extras/skills/design-md/SKILL.md +167 -0
- package/bundles/antigravity-plugin-extras/skills/design-system-tokens/SKILL.md +240 -0
- package/bundles/antigravity-plugin-extras/skills/design-system-tokens/references/DESIGN-SYSTEM-TEMPLATE.md +577 -0
- package/bundles/antigravity-plugin-extras/skills/developer-growth-analysis/SKILL.md +323 -0
- package/bundles/antigravity-plugin-extras/skills/doc-coauthoring/SKILL.md +378 -0
- package/bundles/antigravity-plugin-extras/skills/documentation-analyzer/SKILL.md +78 -0
- package/bundles/antigravity-plugin-extras/skills/domain-name-brainstormer/SKILL.md +213 -0
- package/bundles/antigravity-plugin-extras/skills/enterprise-dashboard-aesthetic-system/SKILL.md +120 -0
- package/bundles/antigravity-plugin-extras/skills/excalidraw/SKILL.md +193 -0
- package/bundles/antigravity-plugin-extras/skills/excalidraw/references/element-types.md +497 -0
- package/bundles/antigravity-plugin-extras/skills/excalidraw/references/excalidraw-schema.md +356 -0
- package/bundles/antigravity-plugin-extras/skills/excalidraw/references/reliable-diagrams.md +115 -0
- package/bundles/antigravity-plugin-extras/skills/excalidraw/scripts/README.md +60 -0
- package/bundles/antigravity-plugin-extras/skills/excalidraw/scripts/add-arrow.py +354 -0
- package/bundles/antigravity-plugin-extras/skills/excalidraw/scripts/add-icon-to-diagram.py +412 -0
- package/bundles/antigravity-plugin-extras/skills/excalidraw/scripts/split-excalidraw-library.py +183 -0
- package/bundles/antigravity-plugin-extras/skills/excalidraw/templates/business-flow-swimlane-template.excalidraw +334 -0
- package/bundles/antigravity-plugin-extras/skills/excalidraw/templates/class-diagram-template.excalidraw +558 -0
- package/bundles/antigravity-plugin-extras/skills/excalidraw/templates/data-flow-diagram-template.excalidraw +279 -0
- package/bundles/antigravity-plugin-extras/skills/excalidraw/templates/er-diagram-template.excalidraw +662 -0
- package/bundles/antigravity-plugin-extras/skills/excalidraw/templates/flowchart-template.excalidraw +179 -0
- package/bundles/antigravity-plugin-extras/skills/excalidraw/templates/mindmap-template.excalidraw +244 -0
- package/bundles/antigravity-plugin-extras/skills/excalidraw/templates/relationship-template.excalidraw +145 -0
- package/bundles/antigravity-plugin-extras/skills/excalidraw/templates/reliable-flowchart.excalidraw +1 -0
- package/bundles/antigravity-plugin-extras/skills/excalidraw/templates/sequence-diagram-template.excalidraw +509 -0
- package/bundles/antigravity-plugin-extras/skills/file-organizer/SKILL.md +434 -0
- package/bundles/antigravity-plugin-extras/skills/game-changing-features/README.md +221 -0
- package/bundles/antigravity-plugin-extras/skills/game-changing-features/SKILL.md +265 -0
- package/bundles/antigravity-plugin-extras/skills/github-issues/SKILL.md +359 -0
- package/bundles/antigravity-plugin-extras/skills/github-issues/references/templates.md +90 -0
- package/bundles/antigravity-plugin-extras/skills/golden-nuggets/SKILL.md +192 -0
- package/bundles/antigravity-plugin-extras/skills/humanizer/SKILL.md +194 -0
- package/bundles/antigravity-plugin-extras/skills/image-enhancer/SKILL.md +100 -0
- package/bundles/antigravity-plugin-extras/skills/intent-writer/SKILL.md +201 -0
- package/bundles/antigravity-plugin-extras/skills/internal-comms/LICENSE.txt +202 -0
- package/bundles/antigravity-plugin-extras/skills/internal-comms/SKILL.md +124 -0
- package/bundles/antigravity-plugin-extras/skills/internal-comms/examples/3p-updates.md +47 -0
- package/bundles/antigravity-plugin-extras/skills/internal-comms/examples/company-newsletter.md +65 -0
- package/bundles/antigravity-plugin-extras/skills/internal-comms/examples/faq-answers.md +30 -0
- package/bundles/antigravity-plugin-extras/skills/internal-comms/examples/general-comms.md +16 -0
- package/bundles/antigravity-plugin-extras/skills/invoice-organizer/SKILL.md +447 -0
- package/bundles/antigravity-plugin-extras/skills/jira-issues/SKILL.md +182 -0
- package/bundles/antigravity-plugin-extras/skills/job-application/SKILL.md +188 -0
- package/bundles/antigravity-plugin-extras/skills/lead-research-assistant/SKILL.md +200 -0
- package/bundles/antigravity-plugin-extras/skills/llm-application-dev/SKILL.md +217 -0
- package/bundles/antigravity-plugin-extras/skills/mcp-builder/LICENSE.txt +202 -0
- package/bundles/antigravity-plugin-extras/skills/mcp-builder/SKILL.md +100 -0
- package/bundles/antigravity-plugin-extras/skills/mcp-builder/references/evaluation.md +602 -0
- package/bundles/antigravity-plugin-extras/skills/mcp-builder/references/mcp_best_practices.md +915 -0
- package/bundles/antigravity-plugin-extras/skills/mcp-builder/references/node_mcp_server.md +916 -0
- package/bundles/antigravity-plugin-extras/skills/mcp-builder/references/python_mcp_server.md +752 -0
- package/bundles/antigravity-plugin-extras/skills/mcp-builder/scripts/connections.py +151 -0
- package/bundles/antigravity-plugin-extras/skills/mcp-builder/scripts/evaluation.py +373 -0
- package/bundles/antigravity-plugin-extras/skills/mcp-builder/scripts/example_evaluation.xml +22 -0
- package/bundles/antigravity-plugin-extras/skills/mcp-builder/scripts/requirements.txt +2 -0
- package/bundles/antigravity-plugin-extras/skills/meeting-insights-analyzer/SKILL.md +328 -0
- package/bundles/antigravity-plugin-extras/skills/monorepo/SKILL.md +267 -0
- package/bundles/antigravity-plugin-extras/skills/naming-analyzer/SKILL.md +376 -0
- package/bundles/antigravity-plugin-extras/skills/nextjs-app-router/SKILL.md +271 -0
- package/bundles/antigravity-plugin-extras/skills/notebooklm/AUTHENTICATION.md +154 -0
- package/bundles/antigravity-plugin-extras/skills/notebooklm/SKILL.md +270 -0
- package/bundles/antigravity-plugin-extras/skills/notebooklm/references/api_reference.md +309 -0
- package/bundles/antigravity-plugin-extras/skills/notebooklm/references/troubleshooting.md +376 -0
- package/bundles/antigravity-plugin-extras/skills/notebooklm/references/usage_patterns.md +338 -0
- package/bundles/antigravity-plugin-extras/skills/notebooklm/scripts/__init__.py +81 -0
- package/bundles/antigravity-plugin-extras/skills/notebooklm/scripts/ask_question.py +256 -0
- package/bundles/antigravity-plugin-extras/skills/notebooklm/scripts/auth_manager.py +358 -0
- package/bundles/antigravity-plugin-extras/skills/notebooklm/scripts/browser_session.py +255 -0
- package/bundles/antigravity-plugin-extras/skills/notebooklm/scripts/browser_utils.py +107 -0
- package/bundles/antigravity-plugin-extras/skills/notebooklm/scripts/cleanup_manager.py +302 -0
- package/bundles/antigravity-plugin-extras/skills/notebooklm/scripts/config.py +44 -0
- package/bundles/antigravity-plugin-extras/skills/notebooklm/scripts/notebook_manager.py +410 -0
- package/bundles/antigravity-plugin-extras/skills/notebooklm/scripts/run.py +102 -0
- package/bundles/antigravity-plugin-extras/skills/notebooklm/scripts/setup_environment.py +204 -0
- package/bundles/antigravity-plugin-extras/skills/observability/SKILL.md +371 -0
- package/bundles/antigravity-plugin-extras/skills/onboard-project/SKILL.md +192 -0
- package/bundles/antigravity-plugin-extras/skills/performance-testing/SKILL.md +226 -0
- package/bundles/antigravity-plugin-extras/skills/pipeline-state/SKILL.md +208 -0
- package/bundles/antigravity-plugin-extras/skills/plantuml/SKILL.md +228 -0
- package/bundles/antigravity-plugin-extras/skills/popular-web-designs/SKILL.md +142 -0
- package/bundles/antigravity-plugin-extras/skills/popular-web-designs/templates/linear.app.md +196 -0
- package/bundles/antigravity-plugin-extras/skills/popular-web-designs/templates/stripe.md +214 -0
- package/bundles/antigravity-plugin-extras/skills/popular-web-designs/templates/vercel.md +218 -0
- package/bundles/antigravity-plugin-extras/skills/prd-to-code/SKILL.md +127 -0
- package/bundles/antigravity-plugin-extras/skills/raffle-winner-picker/SKILL.md +159 -0
- package/bundles/antigravity-plugin-extras/skills/react-useeffect/README.md +320 -0
- package/bundles/antigravity-plugin-extras/skills/react-useeffect/SKILL.md +53 -0
- package/bundles/antigravity-plugin-extras/skills/react-useeffect/alternatives.md +258 -0
- package/bundles/antigravity-plugin-extras/skills/react-useeffect/anti-patterns.md +290 -0
- package/bundles/antigravity-plugin-extras/skills/receiving-code-review/SKILL.md +213 -0
- package/bundles/antigravity-plugin-extras/skills/relay/SKILL.md +246 -0
- package/bundles/antigravity-plugin-extras/skills/requesting-code-review/SKILL.md +105 -0
- package/bundles/antigravity-plugin-extras/skills/requesting-code-review/code-reviewer.md +146 -0
- package/bundles/antigravity-plugin-extras/skills/responsive-mobile-native/SKILL.md +350 -0
- package/bundles/antigravity-plugin-extras/skills/responsive-mobile-native/references/pwa-checklist.md +226 -0
- package/bundles/antigravity-plugin-extras/skills/responsive-mobile-native/references/touch-and-interaction.md +265 -0
- package/bundles/antigravity-plugin-extras/skills/responsive-mobile-native/references/transformation-catalogue.md +326 -0
- package/bundles/antigravity-plugin-extras/skills/schema-migration/SKILL.md +275 -0
- package/bundles/antigravity-plugin-extras/skills/setup-project-ai/SKILL.md +120 -0
- package/bundles/antigravity-plugin-extras/skills/shadcn-radix/SKILL.md +330 -0
- package/bundles/antigravity-plugin-extras/skills/sketch/SKILL.md +104 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/LICENSE.txt +202 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/SKILL.md +646 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/core/color_palettes.py +302 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/core/easing.py +230 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/core/frame_composer.py +469 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/core/gif_builder.py +246 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/core/typography.py +357 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/core/validators.py +264 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/core/visual_effects.py +494 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/requirements.txt +4 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/templates/bounce.py +106 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/templates/explode.py +331 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/templates/fade.py +329 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/templates/flip.py +291 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/templates/kaleidoscope.py +211 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/templates/morph.py +329 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/templates/move.py +293 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/templates/pulse.py +268 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/templates/shake.py +127 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/templates/slide.py +291 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/templates/spin.py +269 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/templates/wiggle.py +300 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/templates/zoom.py +312 -0
- package/bundles/antigravity-plugin-extras/skills/slides/SKILL.md +38 -0
- package/bundles/antigravity-plugin-extras/skills/state-tracking/SKILL.md +131 -0
- package/bundles/antigravity-plugin-extras/skills/streamlit-dev/SKILL.md +268 -0
- package/bundles/antigravity-plugin-extras/skills/svg-create/SKILL.md +251 -0
- package/bundles/antigravity-plugin-extras/skills/theme-factory/LICENSE.txt +202 -0
- package/bundles/antigravity-plugin-extras/skills/theme-factory/SKILL.md +59 -0
- package/bundles/antigravity-plugin-extras/skills/theme-factory/theme-showcase.pdf +0 -0
- package/bundles/antigravity-plugin-extras/skills/theme-factory/themes/arctic-frost.md +19 -0
- package/bundles/antigravity-plugin-extras/skills/theme-factory/themes/botanical-garden.md +19 -0
- package/bundles/antigravity-plugin-extras/skills/theme-factory/themes/desert-rose.md +19 -0
- package/bundles/antigravity-plugin-extras/skills/theme-factory/themes/forest-canopy.md +19 -0
- package/bundles/antigravity-plugin-extras/skills/theme-factory/themes/golden-hour.md +19 -0
- package/bundles/antigravity-plugin-extras/skills/theme-factory/themes/midnight-galaxy.md +19 -0
- package/bundles/antigravity-plugin-extras/skills/theme-factory/themes/modern-minimalist.md +19 -0
- package/bundles/antigravity-plugin-extras/skills/theme-factory/themes/ocean-depths.md +19 -0
- package/bundles/antigravity-plugin-extras/skills/theme-factory/themes/sunset-boulevard.md +19 -0
- package/bundles/antigravity-plugin-extras/skills/theme-factory/themes/tech-innovation.md +19 -0
- package/bundles/antigravity-plugin-extras/skills/ui-styling-patterns/LICENSE.txt +202 -0
- package/bundles/antigravity-plugin-extras/skills/ui-styling-patterns/SKILL.md +320 -0
- package/bundles/antigravity-plugin-extras/skills/ui-testing/SKILL.md +660 -0
- package/bundles/antigravity-plugin-extras/skills/ui-ux-intelligence/SKILL.md +660 -0
- package/bundles/antigravity-plugin-extras/skills/ui-ux-intelligence/data/_sync_all.py +414 -0
- package/bundles/antigravity-plugin-extras/skills/ui-ux-intelligence/data/app-interface.csv +31 -0
- package/bundles/antigravity-plugin-extras/skills/ui-ux-intelligence/data/charts.csv +26 -0
- package/bundles/antigravity-plugin-extras/skills/ui-ux-intelligence/data/colors.csv +162 -0
- package/bundles/antigravity-plugin-extras/skills/ui-ux-intelligence/data/design.csv +1776 -0
- package/bundles/antigravity-plugin-extras/skills/ui-ux-intelligence/data/draft.csv +1779 -0
- package/bundles/antigravity-plugin-extras/skills/ui-ux-intelligence/data/google-fonts.csv +1924 -0
- package/bundles/antigravity-plugin-extras/skills/ui-ux-intelligence/data/icons.csv +106 -0
- package/bundles/antigravity-plugin-extras/skills/ui-ux-intelligence/data/landing.csv +35 -0
- package/bundles/antigravity-plugin-extras/skills/ui-ux-intelligence/data/products.csv +162 -0
- package/bundles/antigravity-plugin-extras/skills/ui-ux-intelligence/data/react-performance.csv +45 -0
- package/bundles/antigravity-plugin-extras/skills/ui-ux-intelligence/data/styles.csv +85 -0
- package/bundles/antigravity-plugin-extras/skills/ui-ux-intelligence/data/typography.csv +74 -0
- package/bundles/antigravity-plugin-extras/skills/ui-ux-intelligence/data/ui-reasoning.csv +162 -0
- package/bundles/antigravity-plugin-extras/skills/ui-ux-intelligence/data/ux-guidelines.csv +100 -0
- package/bundles/antigravity-plugin-extras/skills/ui-ux-intelligence/scripts/core.py +247 -0
- package/bundles/antigravity-plugin-extras/skills/ui-ux-intelligence/scripts/design_system.py +1067 -0
- package/bundles/antigravity-plugin-extras/skills/ui-ux-intelligence/scripts/search.py +114 -0
- package/bundles/antigravity-plugin-extras/skills/understand-anything/SKILL.md +140 -0
- package/bundles/antigravity-plugin-extras/skills/understand-anything/references/commands.md +252 -0
- package/bundles/antigravity-plugin-extras/skills/understand-anything/references/graph-schema.md +116 -0
- package/bundles/antigravity-plugin-extras/skills/understand-anything/references/pipeline.md +331 -0
- package/bundles/antigravity-plugin-extras/skills/update-readme/SKILL.md +74 -0
- package/bundles/antigravity-plugin-extras/skills/verification-loop/SKILL.md +209 -0
- package/bundles/antigravity-plugin-extras/skills/video-downloader/SKILL.md +107 -0
- package/bundles/antigravity-plugin-extras/skills/webapp-development/SKILL.md +288 -0
- package/bundles/antigravity-plugin-extras/skills/word-cloud/SKILL.md +339 -0
- package/bundles/antigravity-plugin-extras/skills/word-cloud/agents/agent-interface.md +175 -0
- package/bundles/antigravity-plugin-extras/skills/word-cloud/references/html.md +384 -0
- package/bundles/antigravity-plugin-extras/skills/word-cloud/references/nlp-keywords.md +127 -0
- package/bundles/antigravity-plugin-extras/skills/word-cloud/references/palettes.md +149 -0
- package/bundles/antigravity-plugin-extras/skills/word-cloud/references/python.md +249 -0
- package/bundles/antigravity-plugin-extras/skills/word-cloud/references/react.md +427 -0
- package/bundles/antigravity-plugin-extras/skills/word-cloud/references/shapes.md +135 -0
- package/bundles/antigravity-plugin-extras/skills/word-cloud/references/stopwords.md +115 -0
- package/bundles/antigravity-plugin-extras/skills/youtube-transcript/SKILL.md +416 -0
- package/bundles/manifest.json +2 -1
- package/dist/cli.js +166 -37
- package/package.json +1 -1
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Browser Utilities for NotebookLM Skill
|
|
3
|
+
Handles browser launching, stealth features, and common interactions
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import json
|
|
7
|
+
import time
|
|
8
|
+
import random
|
|
9
|
+
from typing import Optional, List
|
|
10
|
+
|
|
11
|
+
from patchright.sync_api import Playwright, BrowserContext, Page
|
|
12
|
+
from config import BROWSER_PROFILE_DIR, STATE_FILE, BROWSER_ARGS, USER_AGENT
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class BrowserFactory:
|
|
16
|
+
"""Factory for creating configured browser contexts"""
|
|
17
|
+
|
|
18
|
+
@staticmethod
|
|
19
|
+
def launch_persistent_context(
|
|
20
|
+
playwright: Playwright,
|
|
21
|
+
headless: bool = True,
|
|
22
|
+
user_data_dir: str = str(BROWSER_PROFILE_DIR)
|
|
23
|
+
) -> BrowserContext:
|
|
24
|
+
"""
|
|
25
|
+
Launch a persistent browser context with anti-detection features
|
|
26
|
+
and cookie workaround.
|
|
27
|
+
"""
|
|
28
|
+
# Launch persistent context
|
|
29
|
+
context = playwright.chromium.launch_persistent_context(
|
|
30
|
+
user_data_dir=user_data_dir,
|
|
31
|
+
channel="chrome", # Use real Chrome
|
|
32
|
+
headless=headless,
|
|
33
|
+
no_viewport=True,
|
|
34
|
+
ignore_default_args=["--enable-automation"],
|
|
35
|
+
user_agent=USER_AGENT,
|
|
36
|
+
args=BROWSER_ARGS
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
# Cookie Workaround for Playwright bug #36139
|
|
40
|
+
# Session cookies (expires=-1) don't persist in user_data_dir automatically
|
|
41
|
+
BrowserFactory._inject_cookies(context)
|
|
42
|
+
|
|
43
|
+
return context
|
|
44
|
+
|
|
45
|
+
@staticmethod
|
|
46
|
+
def _inject_cookies(context: BrowserContext):
|
|
47
|
+
"""Inject cookies from state.json if available"""
|
|
48
|
+
if STATE_FILE.exists():
|
|
49
|
+
try:
|
|
50
|
+
with open(STATE_FILE, 'r') as f:
|
|
51
|
+
state = json.load(f)
|
|
52
|
+
if 'cookies' in state and len(state['cookies']) > 0:
|
|
53
|
+
context.add_cookies(state['cookies'])
|
|
54
|
+
# print(f" π§ Injected {len(state['cookies'])} cookies from state.json")
|
|
55
|
+
except Exception as e:
|
|
56
|
+
print(f" β οΈ Could not load state.json: {e}")
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
class StealthUtils:
|
|
60
|
+
"""Human-like interaction utilities"""
|
|
61
|
+
|
|
62
|
+
@staticmethod
|
|
63
|
+
def random_delay(min_ms: int = 100, max_ms: int = 500):
|
|
64
|
+
"""Add random delay"""
|
|
65
|
+
time.sleep(random.uniform(min_ms / 1000, max_ms / 1000))
|
|
66
|
+
|
|
67
|
+
@staticmethod
|
|
68
|
+
def human_type(page: Page, selector: str, text: str, wpm_min: int = 320, wpm_max: int = 480):
|
|
69
|
+
"""Type with human-like speed"""
|
|
70
|
+
element = page.query_selector(selector)
|
|
71
|
+
if not element:
|
|
72
|
+
# Try waiting if not immediately found
|
|
73
|
+
try:
|
|
74
|
+
element = page.wait_for_selector(selector, timeout=2000)
|
|
75
|
+
except:
|
|
76
|
+
pass
|
|
77
|
+
|
|
78
|
+
if not element:
|
|
79
|
+
print(f"β οΈ Element not found for typing: {selector}")
|
|
80
|
+
return
|
|
81
|
+
|
|
82
|
+
# Click to focus
|
|
83
|
+
element.click()
|
|
84
|
+
|
|
85
|
+
# Type
|
|
86
|
+
for char in text:
|
|
87
|
+
element.type(char, delay=random.uniform(25, 75))
|
|
88
|
+
if random.random() < 0.05:
|
|
89
|
+
time.sleep(random.uniform(0.15, 0.4))
|
|
90
|
+
|
|
91
|
+
@staticmethod
|
|
92
|
+
def realistic_click(page: Page, selector: str):
|
|
93
|
+
"""Click with realistic movement"""
|
|
94
|
+
element = page.query_selector(selector)
|
|
95
|
+
if not element:
|
|
96
|
+
return
|
|
97
|
+
|
|
98
|
+
# Optional: Move mouse to element (simplified)
|
|
99
|
+
box = element.bounding_box()
|
|
100
|
+
if box:
|
|
101
|
+
x = box['x'] + box['width'] / 2
|
|
102
|
+
y = box['y'] + box['height'] / 2
|
|
103
|
+
page.mouse.move(x, y, steps=5)
|
|
104
|
+
|
|
105
|
+
StealthUtils.random_delay(100, 300)
|
|
106
|
+
element.click()
|
|
107
|
+
StealthUtils.random_delay(100, 300)
|
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
Cleanup Manager for NotebookLM Skill
|
|
4
|
+
Manages cleanup of skill data and browser state
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
import shutil
|
|
8
|
+
import argparse
|
|
9
|
+
from pathlib import Path
|
|
10
|
+
from typing import Dict, List, Any
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class CleanupManager:
|
|
14
|
+
"""
|
|
15
|
+
Manages cleanup of NotebookLM skill data
|
|
16
|
+
|
|
17
|
+
Features:
|
|
18
|
+
- Preview what will be deleted
|
|
19
|
+
- Selective cleanup options
|
|
20
|
+
- Library preservation
|
|
21
|
+
- Safe deletion with confirmation
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
def __init__(self):
|
|
25
|
+
"""Initialize the cleanup manager"""
|
|
26
|
+
# Skill directory paths
|
|
27
|
+
self.skill_dir = Path(__file__).parent.parent
|
|
28
|
+
self.data_dir = self.skill_dir / "data"
|
|
29
|
+
|
|
30
|
+
def get_cleanup_paths(self, preserve_library: bool = False) -> Dict[str, Any]:
|
|
31
|
+
"""
|
|
32
|
+
Get paths that would be cleaned up
|
|
33
|
+
|
|
34
|
+
Args:
|
|
35
|
+
preserve_library: Keep library.json if True
|
|
36
|
+
|
|
37
|
+
Returns:
|
|
38
|
+
Dict with paths and sizes
|
|
39
|
+
|
|
40
|
+
Note: .venv is NEVER deleted - it's part of the skill infrastructure
|
|
41
|
+
"""
|
|
42
|
+
paths = {
|
|
43
|
+
'browser_state': [],
|
|
44
|
+
'sessions': [],
|
|
45
|
+
'library': [],
|
|
46
|
+
'auth': [],
|
|
47
|
+
'other': []
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
total_size = 0
|
|
51
|
+
|
|
52
|
+
if self.data_dir.exists():
|
|
53
|
+
# Browser state
|
|
54
|
+
browser_state_dir = self.data_dir / "browser_state"
|
|
55
|
+
if browser_state_dir.exists():
|
|
56
|
+
for item in browser_state_dir.iterdir():
|
|
57
|
+
size = self._get_size(item)
|
|
58
|
+
paths['browser_state'].append({
|
|
59
|
+
'path': str(item),
|
|
60
|
+
'size': size,
|
|
61
|
+
'type': 'dir' if item.is_dir() else 'file'
|
|
62
|
+
})
|
|
63
|
+
total_size += size
|
|
64
|
+
|
|
65
|
+
# Sessions
|
|
66
|
+
sessions_file = self.data_dir / "sessions.json"
|
|
67
|
+
if sessions_file.exists():
|
|
68
|
+
size = sessions_file.stat().st_size
|
|
69
|
+
paths['sessions'].append({
|
|
70
|
+
'path': str(sessions_file),
|
|
71
|
+
'size': size,
|
|
72
|
+
'type': 'file'
|
|
73
|
+
})
|
|
74
|
+
total_size += size
|
|
75
|
+
|
|
76
|
+
# Library (unless preserved)
|
|
77
|
+
if not preserve_library:
|
|
78
|
+
library_file = self.data_dir / "library.json"
|
|
79
|
+
if library_file.exists():
|
|
80
|
+
size = library_file.stat().st_size
|
|
81
|
+
paths['library'].append({
|
|
82
|
+
'path': str(library_file),
|
|
83
|
+
'size': size,
|
|
84
|
+
'type': 'file'
|
|
85
|
+
})
|
|
86
|
+
total_size += size
|
|
87
|
+
|
|
88
|
+
# Auth info
|
|
89
|
+
auth_info = self.data_dir / "auth_info.json"
|
|
90
|
+
if auth_info.exists():
|
|
91
|
+
size = auth_info.stat().st_size
|
|
92
|
+
paths['auth'].append({
|
|
93
|
+
'path': str(auth_info),
|
|
94
|
+
'size': size,
|
|
95
|
+
'type': 'file'
|
|
96
|
+
})
|
|
97
|
+
total_size += size
|
|
98
|
+
|
|
99
|
+
# Other files in data dir (but NEVER .venv!)
|
|
100
|
+
for item in self.data_dir.iterdir():
|
|
101
|
+
if item.name not in ['browser_state', 'sessions.json', 'library.json', 'auth_info.json']:
|
|
102
|
+
size = self._get_size(item)
|
|
103
|
+
paths['other'].append({
|
|
104
|
+
'path': str(item),
|
|
105
|
+
'size': size,
|
|
106
|
+
'type': 'dir' if item.is_dir() else 'file'
|
|
107
|
+
})
|
|
108
|
+
total_size += size
|
|
109
|
+
|
|
110
|
+
return {
|
|
111
|
+
'categories': paths,
|
|
112
|
+
'total_size': total_size,
|
|
113
|
+
'total_items': sum(len(items) for items in paths.values())
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
def _get_size(self, path: Path) -> int:
|
|
117
|
+
"""Get size of file or directory in bytes"""
|
|
118
|
+
if path.is_file():
|
|
119
|
+
return path.stat().st_size
|
|
120
|
+
elif path.is_dir():
|
|
121
|
+
total = 0
|
|
122
|
+
try:
|
|
123
|
+
for item in path.rglob('*'):
|
|
124
|
+
if item.is_file():
|
|
125
|
+
total += item.stat().st_size
|
|
126
|
+
except Exception:
|
|
127
|
+
pass
|
|
128
|
+
return total
|
|
129
|
+
return 0
|
|
130
|
+
|
|
131
|
+
def _format_size(self, size: int) -> str:
|
|
132
|
+
"""Format size in human-readable form"""
|
|
133
|
+
for unit in ['B', 'KB', 'MB', 'GB']:
|
|
134
|
+
if size < 1024:
|
|
135
|
+
return f"{size:.1f} {unit}"
|
|
136
|
+
size /= 1024
|
|
137
|
+
return f"{size:.1f} TB"
|
|
138
|
+
|
|
139
|
+
def perform_cleanup(
|
|
140
|
+
self,
|
|
141
|
+
preserve_library: bool = False,
|
|
142
|
+
dry_run: bool = False
|
|
143
|
+
) -> Dict[str, Any]:
|
|
144
|
+
"""
|
|
145
|
+
Perform the actual cleanup
|
|
146
|
+
|
|
147
|
+
Args:
|
|
148
|
+
preserve_library: Keep library.json if True
|
|
149
|
+
dry_run: Preview only, don't delete
|
|
150
|
+
|
|
151
|
+
Returns:
|
|
152
|
+
Dict with cleanup results
|
|
153
|
+
"""
|
|
154
|
+
cleanup_data = self.get_cleanup_paths(preserve_library)
|
|
155
|
+
deleted_items = []
|
|
156
|
+
failed_items = []
|
|
157
|
+
deleted_size = 0
|
|
158
|
+
|
|
159
|
+
if dry_run:
|
|
160
|
+
return {
|
|
161
|
+
'dry_run': True,
|
|
162
|
+
'would_delete': cleanup_data['total_items'],
|
|
163
|
+
'would_free': cleanup_data['total_size']
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
# Perform deletion
|
|
167
|
+
for category, items in cleanup_data['categories'].items():
|
|
168
|
+
for item_info in items:
|
|
169
|
+
path = Path(item_info['path'])
|
|
170
|
+
try:
|
|
171
|
+
if path.exists():
|
|
172
|
+
if path.is_dir():
|
|
173
|
+
shutil.rmtree(path)
|
|
174
|
+
else:
|
|
175
|
+
path.unlink()
|
|
176
|
+
deleted_items.append(str(path))
|
|
177
|
+
deleted_size += item_info['size']
|
|
178
|
+
print(f" β
Deleted: {path.name}")
|
|
179
|
+
except Exception as e:
|
|
180
|
+
failed_items.append({
|
|
181
|
+
'path': str(path),
|
|
182
|
+
'error': str(e)
|
|
183
|
+
})
|
|
184
|
+
print(f" β Failed: {path.name} ({e})")
|
|
185
|
+
|
|
186
|
+
# Recreate browser_state dir if everything was deleted
|
|
187
|
+
if not preserve_library and not failed_items:
|
|
188
|
+
browser_state_dir = self.data_dir / "browser_state"
|
|
189
|
+
browser_state_dir.mkdir(parents=True, exist_ok=True)
|
|
190
|
+
|
|
191
|
+
return {
|
|
192
|
+
'deleted_items': deleted_items,
|
|
193
|
+
'failed_items': failed_items,
|
|
194
|
+
'deleted_size': deleted_size,
|
|
195
|
+
'deleted_count': len(deleted_items),
|
|
196
|
+
'failed_count': len(failed_items)
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
def print_cleanup_preview(self, preserve_library: bool = False):
|
|
200
|
+
"""Print a preview of what will be cleaned"""
|
|
201
|
+
data = self.get_cleanup_paths(preserve_library)
|
|
202
|
+
|
|
203
|
+
print("\nπ Cleanup Preview")
|
|
204
|
+
print("=" * 60)
|
|
205
|
+
|
|
206
|
+
for category, items in data['categories'].items():
|
|
207
|
+
if items:
|
|
208
|
+
print(f"\nπ {category.replace('_', ' ').title()}:")
|
|
209
|
+
for item in items:
|
|
210
|
+
path = Path(item['path'])
|
|
211
|
+
size_str = self._format_size(item['size'])
|
|
212
|
+
type_icon = "π" if item['type'] == 'dir' else "π"
|
|
213
|
+
print(f" {type_icon} {path.name:<30} {size_str:>10}")
|
|
214
|
+
|
|
215
|
+
print("\n" + "=" * 60)
|
|
216
|
+
print(f"Total items: {data['total_items']}")
|
|
217
|
+
print(f"Total size: {self._format_size(data['total_size'])}")
|
|
218
|
+
|
|
219
|
+
if preserve_library:
|
|
220
|
+
print("\nπ Library will be preserved")
|
|
221
|
+
|
|
222
|
+
print("\nThis preview shows what would be deleted.")
|
|
223
|
+
print("Use --confirm to actually perform the cleanup.")
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
def main():
|
|
227
|
+
"""Command-line interface for cleanup management"""
|
|
228
|
+
parser = argparse.ArgumentParser(
|
|
229
|
+
description='Clean up NotebookLM skill data',
|
|
230
|
+
formatter_class=argparse.RawDescriptionHelpFormatter,
|
|
231
|
+
epilog="""
|
|
232
|
+
Examples:
|
|
233
|
+
# Preview what will be deleted
|
|
234
|
+
python cleanup_manager.py
|
|
235
|
+
|
|
236
|
+
# Perform cleanup (delete everything)
|
|
237
|
+
python cleanup_manager.py --confirm
|
|
238
|
+
|
|
239
|
+
# Cleanup but keep library
|
|
240
|
+
python cleanup_manager.py --confirm --preserve-library
|
|
241
|
+
|
|
242
|
+
# Force cleanup without preview
|
|
243
|
+
python cleanup_manager.py --confirm --force
|
|
244
|
+
"""
|
|
245
|
+
)
|
|
246
|
+
|
|
247
|
+
parser.add_argument(
|
|
248
|
+
'--confirm',
|
|
249
|
+
action='store_true',
|
|
250
|
+
help='Actually perform the cleanup (without this, only preview)'
|
|
251
|
+
)
|
|
252
|
+
|
|
253
|
+
parser.add_argument(
|
|
254
|
+
'--preserve-library',
|
|
255
|
+
action='store_true',
|
|
256
|
+
help='Keep the notebook library (library.json)'
|
|
257
|
+
)
|
|
258
|
+
|
|
259
|
+
parser.add_argument(
|
|
260
|
+
'--force',
|
|
261
|
+
action='store_true',
|
|
262
|
+
help='Skip confirmation prompt'
|
|
263
|
+
)
|
|
264
|
+
|
|
265
|
+
args = parser.parse_args()
|
|
266
|
+
|
|
267
|
+
# Initialize manager
|
|
268
|
+
manager = CleanupManager()
|
|
269
|
+
|
|
270
|
+
if args.confirm:
|
|
271
|
+
# Show preview first unless forced
|
|
272
|
+
if not args.force:
|
|
273
|
+
manager.print_cleanup_preview(args.preserve_library)
|
|
274
|
+
|
|
275
|
+
print("\nβ οΈ WARNING: This will delete the files shown above!")
|
|
276
|
+
print(" Note: .venv is preserved (part of skill infrastructure)")
|
|
277
|
+
response = input("Are you sure? (yes/no): ")
|
|
278
|
+
|
|
279
|
+
if response.lower() != 'yes':
|
|
280
|
+
print("Cleanup cancelled.")
|
|
281
|
+
return
|
|
282
|
+
|
|
283
|
+
# Perform cleanup
|
|
284
|
+
print("\nποΈ Performing cleanup...")
|
|
285
|
+
result = manager.perform_cleanup(args.preserve_library, dry_run=False)
|
|
286
|
+
|
|
287
|
+
print(f"\nβ
Cleanup complete!")
|
|
288
|
+
print(f" Deleted: {result['deleted_count']} items")
|
|
289
|
+
print(f" Freed: {manager._format_size(result['deleted_size'])}")
|
|
290
|
+
|
|
291
|
+
if result['failed_count'] > 0:
|
|
292
|
+
print(f" β οΈ Failed: {result['failed_count']} items")
|
|
293
|
+
|
|
294
|
+
else:
|
|
295
|
+
# Just show preview
|
|
296
|
+
manager.print_cleanup_preview(args.preserve_library)
|
|
297
|
+
print("\nπ‘ Note: Virtual environment (.venv) is never deleted")
|
|
298
|
+
print(" It's part of the skill infrastructure, not user data")
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
if __name__ == "__main__":
|
|
302
|
+
main()
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Configuration for NotebookLM Skill
|
|
3
|
+
Centralizes constants, selectors, and paths
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
from pathlib import Path
|
|
7
|
+
|
|
8
|
+
# Paths
|
|
9
|
+
SKILL_DIR = Path(__file__).parent.parent
|
|
10
|
+
DATA_DIR = SKILL_DIR / "data"
|
|
11
|
+
BROWSER_STATE_DIR = DATA_DIR / "browser_state"
|
|
12
|
+
BROWSER_PROFILE_DIR = BROWSER_STATE_DIR / "browser_profile"
|
|
13
|
+
STATE_FILE = BROWSER_STATE_DIR / "state.json"
|
|
14
|
+
AUTH_INFO_FILE = DATA_DIR / "auth_info.json"
|
|
15
|
+
LIBRARY_FILE = DATA_DIR / "library.json"
|
|
16
|
+
|
|
17
|
+
# NotebookLM Selectors
|
|
18
|
+
QUERY_INPUT_SELECTORS = [
|
|
19
|
+
"textarea.query-box-input", # Primary
|
|
20
|
+
'textarea[aria-label="Feld fΓΌr Anfragen"]', # Fallback German
|
|
21
|
+
'textarea[aria-label="Input for queries"]', # Fallback English
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
RESPONSE_SELECTORS = [
|
|
25
|
+
".to-user-container .message-text-content", # Primary
|
|
26
|
+
"[data-message-author='bot']",
|
|
27
|
+
"[data-message-author='assistant']",
|
|
28
|
+
]
|
|
29
|
+
|
|
30
|
+
# Browser Configuration
|
|
31
|
+
BROWSER_ARGS = [
|
|
32
|
+
'--disable-blink-features=AutomationControlled', # Patches navigator.webdriver
|
|
33
|
+
'--disable-dev-shm-usage',
|
|
34
|
+
'--no-sandbox',
|
|
35
|
+
'--no-first-run',
|
|
36
|
+
'--no-default-browser-check'
|
|
37
|
+
]
|
|
38
|
+
|
|
39
|
+
USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36'
|
|
40
|
+
|
|
41
|
+
# Timeouts
|
|
42
|
+
LOGIN_TIMEOUT_MINUTES = 10
|
|
43
|
+
QUERY_TIMEOUT_SECONDS = 120
|
|
44
|
+
PAGE_LOAD_TIMEOUT = 30000
|