anymous 1.2.7 → 1.3.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/bin/anymous.cjs +1 -1
- package/package.json +1 -1
- package/script/postinstall.mjs +214 -0
- package/skills/algorithmic-art/LICENSE.txt +202 -0
- package/skills/algorithmic-art/SKILL.md +405 -0
- package/skills/algorithmic-art/templates/generator_template.js +223 -0
- package/skills/algorithmic-art/templates/viewer.html +599 -0
- package/skills/artifacts-builder/LICENSE.txt +202 -0
- package/skills/artifacts-builder/SKILL.md +74 -0
- package/skills/artifacts-builder/scripts/bundle-artifact.sh +54 -0
- package/skills/artifacts-builder/scripts/init-artifact.sh +322 -0
- package/skills/artifacts-builder/scripts/shadcn-components.tar.gz +0 -0
- package/skills/brainstorming/SKILL.md +151 -0
- package/skills/brainstorming/scripts/frame-template.html +213 -0
- package/skills/brainstorming/scripts/helper.js +167 -0
- package/skills/brainstorming/scripts/server.cjs +723 -0
- package/skills/brainstorming/scripts/start-server.sh +209 -0
- package/skills/brainstorming/scripts/stop-server.sh +120 -0
- package/skills/brainstorming/spec-document-reviewer-prompt.md +49 -0
- package/skills/brainstorming/visual-companion.md +298 -0
- package/skills/brand-guidelines/LICENSE.txt +202 -0
- package/skills/brand-guidelines/SKILL.md +73 -0
- package/skills/canvas-design/LICENSE.txt +202 -0
- package/skills/canvas-design/SKILL.md +130 -0
- package/skills/canvas-design/canvas-fonts/ArsenalSC-OFL.txt +93 -0
- package/skills/canvas-design/canvas-fonts/ArsenalSC-Regular.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/BigShoulders-Bold.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/BigShoulders-OFL.txt +93 -0
- package/skills/canvas-design/canvas-fonts/BigShoulders-Regular.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/Boldonse-OFL.txt +93 -0
- package/skills/canvas-design/canvas-fonts/Boldonse-Regular.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/BricolageGrotesque-Bold.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/BricolageGrotesque-OFL.txt +93 -0
- package/skills/canvas-design/canvas-fonts/BricolageGrotesque-Regular.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/CrimsonPro-Bold.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/CrimsonPro-Italic.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/CrimsonPro-OFL.txt +93 -0
- package/skills/canvas-design/canvas-fonts/CrimsonPro-Regular.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/DMMono-OFL.txt +93 -0
- package/skills/canvas-design/canvas-fonts/DMMono-Regular.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/EricaOne-OFL.txt +94 -0
- package/skills/canvas-design/canvas-fonts/EricaOne-Regular.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/GeistMono-Bold.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/GeistMono-OFL.txt +93 -0
- package/skills/canvas-design/canvas-fonts/GeistMono-Regular.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/Gloock-OFL.txt +93 -0
- package/skills/canvas-design/canvas-fonts/Gloock-Regular.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/IBMPlexMono-Bold.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/IBMPlexMono-OFL.txt +93 -0
- package/skills/canvas-design/canvas-fonts/IBMPlexMono-Regular.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/IBMPlexSerif-Bold.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/IBMPlexSerif-BoldItalic.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/IBMPlexSerif-Italic.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/IBMPlexSerif-Regular.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/InstrumentSans-Bold.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/InstrumentSans-BoldItalic.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/InstrumentSans-Italic.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/InstrumentSans-OFL.txt +93 -0
- package/skills/canvas-design/canvas-fonts/InstrumentSans-Regular.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/InstrumentSerif-Italic.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/InstrumentSerif-Regular.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/Italiana-OFL.txt +93 -0
- package/skills/canvas-design/canvas-fonts/Italiana-Regular.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/JetBrainsMono-Bold.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/JetBrainsMono-OFL.txt +93 -0
- package/skills/canvas-design/canvas-fonts/JetBrainsMono-Regular.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/Jura-Light.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/Jura-Medium.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/Jura-OFL.txt +93 -0
- package/skills/canvas-design/canvas-fonts/LibreBaskerville-OFL.txt +93 -0
- package/skills/canvas-design/canvas-fonts/LibreBaskerville-Regular.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/Lora-Bold.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/Lora-BoldItalic.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/Lora-Italic.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/Lora-OFL.txt +93 -0
- package/skills/canvas-design/canvas-fonts/Lora-Regular.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/NationalPark-Bold.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/NationalPark-OFL.txt +93 -0
- package/skills/canvas-design/canvas-fonts/NationalPark-Regular.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/NothingYouCouldDo-OFL.txt +93 -0
- package/skills/canvas-design/canvas-fonts/NothingYouCouldDo-Regular.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/Outfit-Bold.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/Outfit-OFL.txt +93 -0
- package/skills/canvas-design/canvas-fonts/Outfit-Regular.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/PixelifySans-Medium.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/PixelifySans-OFL.txt +93 -0
- package/skills/canvas-design/canvas-fonts/PoiretOne-OFL.txt +93 -0
- package/skills/canvas-design/canvas-fonts/PoiretOne-Regular.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/RedHatMono-Bold.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/RedHatMono-OFL.txt +93 -0
- package/skills/canvas-design/canvas-fonts/RedHatMono-Regular.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/Silkscreen-OFL.txt +93 -0
- package/skills/canvas-design/canvas-fonts/Silkscreen-Regular.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/SmoochSans-Medium.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/SmoochSans-OFL.txt +93 -0
- package/skills/canvas-design/canvas-fonts/Tektur-Medium.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/Tektur-OFL.txt +93 -0
- package/skills/canvas-design/canvas-fonts/Tektur-Regular.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/WorkSans-Bold.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/WorkSans-BoldItalic.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/WorkSans-Italic.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/WorkSans-OFL.txt +93 -0
- package/skills/canvas-design/canvas-fonts/WorkSans-Regular.ttf +0 -0
- package/skills/canvas-design/canvas-fonts/YoungSerif-OFL.txt +93 -0
- package/skills/canvas-design/canvas-fonts/YoungSerif-Regular.ttf +0 -0
- package/skills/changelog-generator/SKILL.md +110 -0
- package/skills/claude-api/LICENSE.txt +202 -0
- package/skills/claude-api/SKILL.md +546 -0
- package/skills/claude-api/csharp/claude-api/README.md +362 -0
- package/skills/claude-api/csharp/claude-api/batches.md +14 -0
- package/skills/claude-api/csharp/claude-api/files-api.md +23 -0
- package/skills/claude-api/csharp/claude-api/streaming.md +28 -0
- package/skills/claude-api/csharp/claude-api/tool-use.md +164 -0
- package/skills/claude-api/curl/examples.md +256 -0
- package/skills/claude-api/curl/managed-agents.md +340 -0
- package/skills/claude-api/go/claude-api/README.md +188 -0
- package/skills/claude-api/go/claude-api/files-api.md +21 -0
- package/skills/claude-api/go/claude-api/streaming.md +43 -0
- package/skills/claude-api/go/claude-api/tool-use.md +220 -0
- package/skills/claude-api/go/managed-agents/README.md +564 -0
- package/skills/claude-api/java/claude-api/README.md +238 -0
- package/skills/claude-api/java/claude-api/files-api.md +25 -0
- package/skills/claude-api/java/claude-api/streaming.md +24 -0
- package/skills/claude-api/java/claude-api/tool-use.md +228 -0
- package/skills/claude-api/java/managed-agents/README.md +443 -0
- package/skills/claude-api/php/claude-api/README.md +174 -0
- package/skills/claude-api/php/claude-api/batches.md +15 -0
- package/skills/claude-api/php/claude-api/files-api.md +11 -0
- package/skills/claude-api/php/claude-api/streaming.md +27 -0
- package/skills/claude-api/php/claude-api/tool-use.md +253 -0
- package/skills/claude-api/php/managed-agents/README.md +443 -0
- package/skills/claude-api/python/claude-api/README.md +565 -0
- package/skills/claude-api/python/claude-api/batches.md +198 -0
- package/skills/claude-api/python/claude-api/files-api.md +170 -0
- package/skills/claude-api/python/claude-api/streaming.md +179 -0
- package/skills/claude-api/python/claude-api/tool-use.md +629 -0
- package/skills/claude-api/python/managed-agents/README.md +335 -0
- package/skills/claude-api/ruby/claude-api/README.md +134 -0
- package/skills/claude-api/ruby/claude-api/streaming.md +16 -0
- package/skills/claude-api/ruby/claude-api/tool-use.md +41 -0
- package/skills/claude-api/ruby/managed-agents/README.md +394 -0
- package/skills/claude-api/shared/agent-design.md +101 -0
- package/skills/claude-api/shared/anthropic-cli.md +246 -0
- package/skills/claude-api/shared/claude-platform-on-aws.md +59 -0
- package/skills/claude-api/shared/error-codes.md +257 -0
- package/skills/claude-api/shared/live-sources.md +143 -0
- package/skills/claude-api/shared/managed-agents-api-reference.md +448 -0
- package/skills/claude-api/shared/managed-agents-client-patterns.md +217 -0
- package/skills/claude-api/shared/managed-agents-core.md +319 -0
- package/skills/claude-api/shared/managed-agents-environments.md +219 -0
- package/skills/claude-api/shared/managed-agents-events.md +270 -0
- package/skills/claude-api/shared/managed-agents-memory.md +199 -0
- package/skills/claude-api/shared/managed-agents-multiagent.md +125 -0
- package/skills/claude-api/shared/managed-agents-onboarding.md +82 -0
- package/skills/claude-api/shared/managed-agents-outcomes.md +108 -0
- package/skills/claude-api/shared/managed-agents-overview.md +71 -0
- package/skills/claude-api/shared/managed-agents-scheduled-deployments.md +146 -0
- package/skills/claude-api/shared/managed-agents-self-hosted-sandboxes.md +174 -0
- package/skills/claude-api/shared/managed-agents-tools.md +371 -0
- package/skills/claude-api/shared/managed-agents-webhooks.md +143 -0
- package/skills/claude-api/shared/model-migration.md +1548 -0
- package/skills/claude-api/shared/models.md +138 -0
- package/skills/claude-api/shared/platform-availability.md +97 -0
- package/skills/claude-api/shared/prompt-caching.md +235 -0
- package/skills/claude-api/shared/token-counting.md +56 -0
- package/skills/claude-api/shared/tool-use-concepts.md +514 -0
- package/skills/claude-api/typescript/claude-api/README.md +405 -0
- package/skills/claude-api/typescript/claude-api/batches.md +106 -0
- package/skills/claude-api/typescript/claude-api/files-api.md +98 -0
- package/skills/claude-api/typescript/claude-api/streaming.md +178 -0
- package/skills/claude-api/typescript/claude-api/tool-use.md +589 -0
- package/skills/claude-api/typescript/managed-agents/README.md +358 -0
- package/skills/code-security-auditor/SKILL.md +164 -0
- package/skills/code-security-auditor/references/package_checks.md +59 -0
- package/skills/competitive-ads-extractor/SKILL.md +298 -0
- package/skills/content-research-writer/SKILL.md +538 -0
- package/skills/developer-growth-analysis/SKILL.md +322 -0
- package/skills/dispatching-parallel-agents/SKILL.md +167 -0
- package/skills/doc-coauthoring/SKILL.md +375 -0
- package/skills/docx/LICENSE.txt +30 -0
- package/skills/docx/SKILL.md +91 -0
- package/skills/docx/scripts/__init__.py +1 -0
- package/skills/docx/scripts/accept_changes.py +135 -0
- package/skills/docx/scripts/comment.py +368 -0
- package/skills/docx/scripts/merge_runs.py +310 -0
- package/skills/docx/scripts/office/helpers/__init__.py +111 -0
- package/skills/docx/scripts/office/helpers/pptx_chart.py +170 -0
- package/skills/docx/scripts/office/helpers/pptx_slide.py +60 -0
- package/skills/docx/scripts/office/helpers/pptx_theme.py +114 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
- package/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
- package/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
- package/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
- package/skills/docx/scripts/office/schemas/mce/mc.xsd +75 -0
- package/skills/docx/scripts/office/schemas/microsoft/wml-2010.xsd +560 -0
- package/skills/docx/scripts/office/schemas/microsoft/wml-2012.xsd +67 -0
- package/skills/docx/scripts/office/schemas/microsoft/wml-2018.xsd +14 -0
- package/skills/docx/scripts/office/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/skills/docx/scripts/office/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/skills/docx/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/skills/docx/scripts/office/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/skills/docx/scripts/office/soffice.py +192 -0
- package/skills/docx/scripts/office/validate.py +173 -0
- package/skills/docx/scripts/office/validators/__init__.py +15 -0
- package/skills/docx/scripts/office/validators/base.py +875 -0
- package/skills/docx/scripts/office/validators/docx.py +466 -0
- package/skills/docx/scripts/office/validators/pptx.py +441 -0
- package/skills/docx/scripts/office/validators/redlining.py +299 -0
- package/skills/docx/scripts/templates/comments.xml +3 -0
- package/skills/docx/scripts/templates/commentsExtended.xml +3 -0
- package/skills/docx/scripts/templates/commentsExtensible.xml +3 -0
- package/skills/docx/scripts/templates/commentsIds.xml +3 -0
- package/skills/docx/scripts/templates/people.xml +3 -0
- package/skills/domain-name-brainstormer/SKILL.md +217 -0
- package/skills/executing-plans/SKILL.md +64 -0
- package/skills/file-organizer/SKILL.md +433 -0
- package/skills/finishing-a-development-branch/SKILL.md +201 -0
- package/skills/frontend-design/LICENSE.txt +177 -0
- package/skills/frontend-design/SKILL.md +55 -0
- package/skills/image-enhancer/SKILL.md +106 -0
- package/skills/internal-comms/LICENSE.txt +202 -0
- package/skills/internal-comms/SKILL.md +32 -0
- package/skills/internal-comms/examples/3p-updates.md +47 -0
- package/skills/internal-comms/examples/company-newsletter.md +65 -0
- package/skills/internal-comms/examples/faq-answers.md +30 -0
- package/skills/internal-comms/examples/general-comms.md +16 -0
- package/skills/invoice-organizer/SKILL.md +452 -0
- package/skills/lead-research-assistant/SKILL.md +205 -0
- package/skills/mcp-builder/LICENSE.txt +202 -0
- package/skills/mcp-builder/SKILL.md +236 -0
- package/skills/mcp-builder/reference/evaluation.md +602 -0
- package/skills/mcp-builder/reference/mcp_best_practices.md +249 -0
- package/skills/mcp-builder/reference/node_mcp_server.md +970 -0
- package/skills/mcp-builder/reference/python_mcp_server.md +719 -0
- package/skills/mcp-builder/scripts/connections.py +151 -0
- package/skills/mcp-builder/scripts/evaluation.py +373 -0
- package/skills/mcp-builder/scripts/example_evaluation.xml +22 -0
- package/skills/mcp-builder/scripts/requirements.txt +2 -0
- package/skills/meeting-insights-analyzer/SKILL.md +327 -0
- package/skills/pdf/LICENSE.txt +30 -0
- package/skills/pdf/SKILL.md +314 -0
- package/skills/pdf/forms.md +294 -0
- package/skills/pdf/reference.md +612 -0
- package/skills/pdf/scripts/check_bounding_boxes.py +65 -0
- package/skills/pdf/scripts/check_fillable_fields.py +11 -0
- package/skills/pdf/scripts/convert_pdf_to_images.py +33 -0
- package/skills/pdf/scripts/create_validation_image.py +37 -0
- package/skills/pdf/scripts/extract_form_field_info.py +122 -0
- package/skills/pdf/scripts/extract_form_structure.py +115 -0
- package/skills/pdf/scripts/fill_fillable_fields.py +98 -0
- package/skills/pdf/scripts/fill_pdf_form_with_annotations.py +107 -0
- package/skills/pptx/LICENSE.txt +30 -0
- package/skills/pptx/SKILL.md +238 -0
- package/skills/pptx/scripts/__init__.py +0 -0
- package/skills/pptx/scripts/add_slide.py +367 -0
- package/skills/pptx/scripts/clean.py +309 -0
- package/skills/pptx/scripts/office/helpers/__init__.py +111 -0
- package/skills/pptx/scripts/office/helpers/pptx_chart.py +170 -0
- package/skills/pptx/scripts/office/helpers/pptx_slide.py +60 -0
- package/skills/pptx/scripts/office/helpers/pptx_theme.py +114 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/skills/pptx/scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
- package/skills/pptx/scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
- package/skills/pptx/scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
- package/skills/pptx/scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
- package/skills/pptx/scripts/office/schemas/mce/mc.xsd +75 -0
- package/skills/pptx/scripts/office/schemas/microsoft/wml-2010.xsd +560 -0
- package/skills/pptx/scripts/office/schemas/microsoft/wml-2012.xsd +67 -0
- package/skills/pptx/scripts/office/schemas/microsoft/wml-2018.xsd +14 -0
- package/skills/pptx/scripts/office/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/skills/pptx/scripts/office/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/skills/pptx/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/skills/pptx/scripts/office/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/skills/pptx/scripts/office/soffice.py +192 -0
- package/skills/pptx/scripts/office/validate.py +173 -0
- package/skills/pptx/scripts/office/validators/__init__.py +15 -0
- package/skills/pptx/scripts/office/validators/base.py +875 -0
- package/skills/pptx/scripts/office/validators/docx.py +466 -0
- package/skills/pptx/scripts/office/validators/pptx.py +441 -0
- package/skills/pptx/scripts/office/validators/redlining.py +299 -0
- package/skills/pptx/scripts/thumbnail.py +311 -0
- package/skills/raffle-winner-picker/SKILL.md +165 -0
- package/skills/receiving-code-review/SKILL.md +205 -0
- package/skills/requesting-code-review/SKILL.md +95 -0
- package/skills/requesting-code-review/code-reviewer.md +172 -0
- package/skills/skill-creator/LICENSE.txt +202 -0
- package/skills/skill-creator/SKILL.md +485 -0
- package/skills/skill-creator/agents/analyzer.md +274 -0
- package/skills/skill-creator/agents/comparator.md +202 -0
- package/skills/skill-creator/agents/grader.md +223 -0
- package/skills/skill-creator/assets/eval_review.html +146 -0
- package/skills/skill-creator/eval-viewer/generate_review.py +471 -0
- package/skills/skill-creator/eval-viewer/viewer.html +1325 -0
- package/skills/skill-creator/references/schemas.md +430 -0
- package/skills/skill-creator/scripts/__init__.py +0 -0
- package/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
- package/skills/skill-creator/scripts/generate_report.py +326 -0
- package/skills/skill-creator/scripts/improve_description.py +247 -0
- package/skills/skill-creator/scripts/package_skill.py +136 -0
- package/skills/skill-creator/scripts/quick_validate.py +103 -0
- package/skills/skill-creator/scripts/run_eval.py +310 -0
- package/skills/skill-creator/scripts/run_loop.py +328 -0
- package/skills/skill-creator/scripts/utils.py +47 -0
- package/skills/skill-share/SKILL.md +80 -0
- package/skills/slack-gif-creator/LICENSE.txt +202 -0
- package/skills/slack-gif-creator/SKILL.md +254 -0
- package/skills/slack-gif-creator/core/easing.py +234 -0
- package/skills/slack-gif-creator/core/frame_composer.py +176 -0
- package/skills/slack-gif-creator/core/gif_builder.py +269 -0
- package/skills/slack-gif-creator/core/validators.py +136 -0
- package/skills/slack-gif-creator/requirements.txt +4 -0
- package/skills/staff-engineer-review/SKILL.md +172 -0
- package/skills/subagent-driven-development/SKILL.md +503 -0
- package/skills/subagent-driven-development/implementer-prompt.md +142 -0
- package/skills/subagent-driven-development/re-review-prompt.md +106 -0
- package/skills/subagent-driven-development/scripts/review-package +46 -0
- package/skills/subagent-driven-development/scripts/sdd-workspace +40 -0
- package/skills/subagent-driven-development/scripts/task-brief +41 -0
- package/skills/subagent-driven-development/task-reviewer-prompt.md +185 -0
- package/skills/systematic-debugging/CREATION-LOG.md +119 -0
- package/skills/systematic-debugging/SKILL.md +283 -0
- package/skills/systematic-debugging/condition-based-waiting-example.ts +158 -0
- package/skills/systematic-debugging/condition-based-waiting.md +115 -0
- package/skills/systematic-debugging/defense-in-depth.md +122 -0
- package/skills/systematic-debugging/find-polluter.sh +72 -0
- package/skills/systematic-debugging/root-cause-tracing.md +169 -0
- package/skills/systematic-debugging/test-academic.md +14 -0
- package/skills/systematic-debugging/test-pressure-1.md +58 -0
- package/skills/systematic-debugging/test-pressure-2.md +68 -0
- package/skills/systematic-debugging/test-pressure-3.md +69 -0
- package/skills/test-driven-development/SKILL.md +320 -0
- package/skills/test-driven-development/writing-good-tests.md +198 -0
- package/skills/theme-factory/LICENSE.txt +202 -0
- package/skills/theme-factory/SKILL.md +59 -0
- package/skills/theme-factory/theme-showcase.pdf +0 -0
- package/skills/theme-factory/themes/arctic-frost.md +19 -0
- package/skills/theme-factory/themes/botanical-garden.md +19 -0
- package/skills/theme-factory/themes/desert-rose.md +19 -0
- package/skills/theme-factory/themes/forest-canopy.md +19 -0
- package/skills/theme-factory/themes/golden-hour.md +19 -0
- package/skills/theme-factory/themes/midnight-galaxy.md +19 -0
- package/skills/theme-factory/themes/modern-minimalist.md +19 -0
- package/skills/theme-factory/themes/ocean-depths.md +19 -0
- package/skills/theme-factory/themes/sunset-boulevard.md +19 -0
- package/skills/theme-factory/themes/tech-innovation.md +19 -0
- package/skills/using-git-worktrees/SKILL.md +167 -0
- package/skills/using-superpowers/SKILL.md +62 -0
- package/skills/using-superpowers/references/antigravity-tools.md +23 -0
- package/skills/using-superpowers/references/codex-tools.md +39 -0
- package/skills/using-superpowers/references/gemini-tools.md +63 -0
- package/skills/using-superpowers/references/pi-tools.md +16 -0
- package/skills/verification-before-completion/SKILL.md +120 -0
- package/skills/video-downloader/SKILL.md +112 -0
- package/skills/web-artifacts-builder/LICENSE.txt +202 -0
- package/skills/web-artifacts-builder/SKILL.md +74 -0
- package/skills/web-artifacts-builder/scripts/bundle-artifact.sh +54 -0
- package/skills/web-artifacts-builder/scripts/init-artifact.sh +322 -0
- package/skills/web-artifacts-builder/scripts/shadcn-components.tar.gz +0 -0
- package/skills/webapp-testing/LICENSE.txt +202 -0
- package/skills/webapp-testing/SKILL.md +96 -0
- package/skills/webapp-testing/examples/console_logging.py +35 -0
- package/skills/webapp-testing/examples/element_discovery.py +40 -0
- package/skills/webapp-testing/examples/static_html_automation.py +33 -0
- package/skills/webapp-testing/scripts/with_server.py +106 -0
- package/skills/writing-plans/SKILL.md +168 -0
- package/skills/writing-plans/plan-document-reviewer-prompt.md +49 -0
- package/skills/writing-skills/SKILL.md +679 -0
- package/skills/writing-skills/anthropic-best-practices.md +1150 -0
- package/skills/writing-skills/examples/CLAUDE_MD_TESTING.md +189 -0
- package/skills/writing-skills/graphviz-conventions.dot +172 -0
- package/skills/writing-skills/persuasion-principles.md +187 -0
- package/skills/writing-skills/render-graphs.js +168 -0
- package/skills/writing-skills/testing-skills-with-subagents.md +384 -0
- package/skills/xlsx/LICENSE.txt +30 -0
- package/skills/xlsx/SKILL.md +99 -0
- package/skills/xlsx/scripts/office/helpers/__init__.py +111 -0
- package/skills/xlsx/scripts/office/helpers/pptx_chart.py +170 -0
- package/skills/xlsx/scripts/office/helpers/pptx_slide.py +60 -0
- package/skills/xlsx/scripts/office/helpers/pptx_theme.py +114 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
- package/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
- package/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
- package/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
- package/skills/xlsx/scripts/office/schemas/mce/mc.xsd +75 -0
- package/skills/xlsx/scripts/office/schemas/microsoft/wml-2010.xsd +560 -0
- package/skills/xlsx/scripts/office/schemas/microsoft/wml-2012.xsd +67 -0
- package/skills/xlsx/scripts/office/schemas/microsoft/wml-2018.xsd +14 -0
- package/skills/xlsx/scripts/office/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/skills/xlsx/scripts/office/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/skills/xlsx/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/skills/xlsx/scripts/office/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/skills/xlsx/scripts/office/soffice.py +192 -0
- package/skills/xlsx/scripts/office/validate.py +173 -0
- package/skills/xlsx/scripts/office/validators/__init__.py +15 -0
- package/skills/xlsx/scripts/office/validators/base.py +875 -0
- package/skills/xlsx/scripts/office/validators/docx.py +466 -0
- package/skills/xlsx/scripts/office/validators/pptx.py +441 -0
- package/skills/xlsx/scripts/office/validators/redlining.py +299 -0
- package/skills/xlsx/scripts/recalc.py +308 -0
- package/src/account/account.ts +1 -2
- package/src/account/repo.ts +2 -1
- package/src/acp/content.ts +1 -1
- package/src/acp/directory.ts +2 -2
- package/src/acp/event.ts +1 -1
- package/src/acp/session.ts +2 -2
- package/src/agent/agent.ts +62 -31
- package/src/agent/subagent-permissions.ts +1 -1
- package/src/cli/cmd/account.ts +2 -1
- package/src/cli/cmd/debug/agent.handler.ts +1 -1
- package/src/cli/cmd/export.ts +1 -1
- package/src/cli/cmd/github.handler.ts +4 -2
- package/src/cli/cmd/mcp.ts +2 -2
- package/src/cli/cmd/run/footer.prompt.tsx +7 -2
- package/src/cli/cmd/stats.ts +1 -1
- package/src/cli/network.ts +1 -1
- package/src/config/config.ts +3 -5
- package/src/config/plugin.ts +1 -1
- package/src/control-plane/workspace.ts +3 -2
- package/src/effect/app-node-builder-v1.ts +1 -1
- package/src/effect/instance-state.ts +2 -1
- package/src/effect/runner.ts +2 -1
- package/src/effect/runtime-flags.ts +2 -1
- package/src/image/image.ts +1 -1
- package/src/installation/index.ts +4 -8
- package/src/lsp/diagnostic.ts +1 -1
- package/src/mcp/catalog.ts +1 -1
- package/src/mcp/index.ts +2 -2
- package/src/mcp/oauth-provider.ts +1 -1
- package/src/permission/index.ts +7 -3
- package/src/plugin/index.ts +7 -3
- package/src/plugin/loader.ts +1 -1
- package/src/plugin/tui/runtime.ts +1 -1
- package/src/project/bootstrap-service.ts +2 -1
- package/src/project/project.ts +3 -2
- package/src/project/vcs.ts +1 -1
- package/src/provider/error.ts +1 -1
- package/src/provider/provider.ts +3 -2
- package/src/question/index.ts +1 -1
- package/src/server/auth.ts +2 -1
- package/src/server/routes/instance/httpapi/groups/metadata.ts +1 -1
- package/src/server/routes/instance/httpapi/handlers/control-plane.ts +2 -1
- package/src/server/routes/instance/httpapi/handlers/control.ts +2 -2
- package/src/server/routes/instance/httpapi/handlers/experimental.ts +2 -1
- package/src/server/routes/instance/httpapi/handlers/global.ts +2 -1
- package/src/server/routes/instance/httpapi/handlers/mcp.ts +2 -1
- package/src/server/routes/instance/httpapi/handlers/permission.ts +1 -1
- package/src/server/routes/instance/httpapi/handlers/project-copy.ts +1 -1
- package/src/server/routes/instance/httpapi/handlers/provider.ts +3 -2
- package/src/server/routes/instance/httpapi/handlers/pty.ts +1 -1
- package/src/server/routes/instance/httpapi/handlers/question.ts +1 -1
- package/src/server/routes/instance/httpapi/handlers/session.ts +5 -5
- package/src/server/routes/instance/httpapi/handlers/sync.ts +2 -2
- package/src/server/routes/instance/httpapi/handlers/tui.ts +1 -1
- package/src/server/routes/instance/httpapi/handlers/workspace.ts +2 -1
- package/src/server/routes/instance/httpapi/lifecycle.ts +2 -1
- package/src/server/routes/instance/httpapi/middleware/instance-context.ts +1 -1
- package/src/server/routes/instance/httpapi/middleware/proxy.ts +2 -1
- package/src/server/routes/instance/httpapi/server.ts +2 -1
- package/src/server/shared/fence.ts +1 -1
- package/src/server/shared/ui.ts +2 -1
- package/src/session/compaction.ts +5 -4
- package/src/session/instruction.ts +1 -1
- package/src/session/llm/native-runtime.ts +2 -1
- package/src/session/llm/request.ts +2 -2
- package/src/session/llm.ts +2 -2
- package/src/session/message-v2.ts +5 -16
- package/src/session/overflow.ts +2 -2
- package/src/session/prompt.ts +4 -3
- package/src/session/reminders.ts +2 -2
- package/src/session/revert.ts +1 -1
- package/src/session/run-state.ts +4 -3
- package/src/session/session.ts +2 -1
- package/src/session/status.ts +1 -1
- package/src/session/summary.ts +1 -1
- package/src/session/system.ts +1 -1
- package/src/session/todo.ts +1 -1
- package/src/session/tools.ts +6 -6
- package/src/share/session.ts +1 -1
- package/src/share/share-next.ts +1 -1
- package/src/tool/computer.ts +195 -136
- package/src/tool/edit.ts +1 -1
- package/src/tool/mcp-websearch.ts +2 -1
- package/src/tool/plan.ts +1 -1
- package/src/tool/registry.ts +2 -2
- package/src/tool/task.ts +1 -1
- package/src/tool/tool.ts +2 -2
- package/src/util/bom.ts +1 -1
|
@@ -38,7 +38,7 @@ import { Flag } from "@anymous-ai/core/flag/flag"
|
|
|
38
38
|
import { internalTuiPlugins, type InternalTuiPlugin } from "./internal"
|
|
39
39
|
import type { HostPluginApi, HostSlots } from "@anymous-ai/tui/plugin/slots"
|
|
40
40
|
import { ConfigPlugin } from "@/config/plugin"
|
|
41
|
-
import { ConfigPluginV1 } from "@anymous-ai/core/v1/config/plugin"
|
|
41
|
+
import type { ConfigPluginV1 } from "@anymous-ai/core/v1/config/plugin"
|
|
42
42
|
import { createCommandShim } from "@anymous-ai/tui/plugin/command-shim"
|
|
43
43
|
import { RuntimeFlags } from "@/effect/runtime-flags"
|
|
44
44
|
import { Effect } from "effect"
|
package/src/project/project.ts
CHANGED
|
@@ -10,7 +10,8 @@ import { GlobalBus } from "@/bus/global"
|
|
|
10
10
|
import { which } from "@anymous-ai/core/util/which"
|
|
11
11
|
import { Command } from "@/command"
|
|
12
12
|
import { InstanceState } from "@/effect/instance-state"
|
|
13
|
-
import {
|
|
13
|
+
import type { Types } from "effect"
|
|
14
|
+
import { Effect, Layer, Scope, Context, Stream, Schema } from "effect"
|
|
14
15
|
import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process"
|
|
15
16
|
import { FSUtil } from "@anymous-ai/core/fs-util"
|
|
16
17
|
import { AppProcess } from "@anymous-ai/core/process"
|
|
@@ -20,7 +21,7 @@ import { AbsolutePath } from "@anymous-ai/core/schema"
|
|
|
20
21
|
import { serviceUse } from "@anymous-ai/core/effect/service-use"
|
|
21
22
|
import { RuntimeFlags } from "@/effect/runtime-flags"
|
|
22
23
|
import { EventV2Bridge } from "@/event-v2-bridge"
|
|
23
|
-
import { EventV2 } from "@anymous-ai/core/event"
|
|
24
|
+
import type { EventV2 } from "@anymous-ai/core/event"
|
|
24
25
|
import { Project } from "@anymous-ai/schema/project"
|
|
25
26
|
|
|
26
27
|
export const Info = Project.Info
|
package/src/project/vcs.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { InstanceState } from "@/effect/instance-state"
|
|
|
5
5
|
import { Watcher } from "@anymous-ai/core/filesystem/watcher"
|
|
6
6
|
import { Git } from "@/git"
|
|
7
7
|
import { EventV2Bridge } from "@/event-v2-bridge"
|
|
8
|
-
import { EventV2 } from "@anymous-ai/core/event"
|
|
8
|
+
import type { EventV2 } from "@anymous-ai/core/event"
|
|
9
9
|
import { VcsEvent } from "@anymous-ai/schema/vcs-event"
|
|
10
10
|
|
|
11
11
|
const PATCH_CONTEXT_LINES = 2_147_483_647
|
package/src/provider/error.ts
CHANGED
package/src/provider/provider.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LayerNode } from "@anymous-ai/core/effect/layer-node"
|
|
2
2
|
import os from "os"
|
|
3
|
-
import { ConfigV1 } from "@anymous-ai/core/v1/config/config"
|
|
3
|
+
import type { ConfigV1 } from "@anymous-ai/core/v1/config/config"
|
|
4
4
|
import fuzzysort from "fuzzysort"
|
|
5
5
|
import { Config } from "@/config/config"
|
|
6
6
|
import { mapValues, mergeDeep, omit, pickBy, sortBy } from "remeda"
|
|
@@ -18,7 +18,8 @@ import { iife } from "@/util/iife"
|
|
|
18
18
|
import { Global } from "@anymous-ai/core/global"
|
|
19
19
|
import path from "path"
|
|
20
20
|
import { pathToFileURL } from "url"
|
|
21
|
-
import {
|
|
21
|
+
import type { Types } from "effect"
|
|
22
|
+
import { Effect, Layer, Context, Schema } from "effect"
|
|
22
23
|
import { EffectBridge } from "@/effect/bridge"
|
|
23
24
|
import { InstanceState } from "@/effect/instance-state"
|
|
24
25
|
import { EffectPromise } from "@/effect/promise"
|
package/src/question/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LayerNode } from "@anymous-ai/core/effect/layer-node"
|
|
2
2
|
import { Deferred, Effect, Layer, Schema, Context } from "effect"
|
|
3
3
|
import { InstanceState } from "@/effect/instance-state"
|
|
4
|
-
import { SessionID } from "@/session/schema"
|
|
4
|
+
import type { SessionID } from "@/session/schema"
|
|
5
5
|
import { QuestionID } from "./schema"
|
|
6
6
|
import { EventV2Bridge } from "@/event-v2-bridge"
|
|
7
7
|
import { QuestionV1 } from "@anymous-ai/schema/question-v1"
|
package/src/server/auth.ts
CHANGED
|
@@ -2,7 +2,8 @@ export * as ServerAuth from "./auth"
|
|
|
2
2
|
|
|
3
3
|
import { ConfigService } from "@/effect/config-service"
|
|
4
4
|
import { Flag } from "@anymous-ai/core/flag/flag"
|
|
5
|
-
import {
|
|
5
|
+
import type { Context } from "effect"
|
|
6
|
+
import { Config as EffectConfig, Option, Redacted } from "effect"
|
|
6
7
|
|
|
7
8
|
export type Credentials = {
|
|
8
9
|
password?: string
|
|
@@ -3,7 +3,8 @@ import { SessionV2 } from "@anymous-ai/core/session"
|
|
|
3
3
|
import { Effect } from "effect"
|
|
4
4
|
import { HttpApiBuilder } from "effect/unstable/httpapi"
|
|
5
5
|
import { RootHttpApi } from "../api"
|
|
6
|
-
import {
|
|
6
|
+
import type { MoveSessionPayload } from "../groups/control-plane"
|
|
7
|
+
import { ApiMoveSessionError } from "../groups/control-plane"
|
|
7
8
|
|
|
8
9
|
export const controlPlaneHandlers = HttpApiBuilder.group(RootHttpApi, "controlPlane", (handlers) =>
|
|
9
10
|
Effect.gen(function* () {
|
|
@@ -3,8 +3,8 @@ import { Auth } from "@/auth"
|
|
|
3
3
|
import { Effect } from "effect"
|
|
4
4
|
import { HttpApiBuilder } from "effect/unstable/httpapi"
|
|
5
5
|
import { RootHttpApi } from "../api"
|
|
6
|
-
import { LogInput } from "../groups/control"
|
|
7
|
-
import { ProviderV2 } from "@anymous-ai/core/provider"
|
|
6
|
+
import type { LogInput } from "../groups/control"
|
|
7
|
+
import type { ProviderV2 } from "@anymous-ai/core/provider"
|
|
8
8
|
|
|
9
9
|
export const controlHandlers = HttpApiBuilder.group(RootHttpApi, "control", (handlers) =>
|
|
10
10
|
Effect.gen(function* () {
|
|
@@ -15,7 +15,8 @@ import { Effect, Option } from "effect"
|
|
|
15
15
|
import * as HttpServerResponse from "effect/unstable/http/HttpServerResponse"
|
|
16
16
|
import { HttpApiBuilder, HttpApiError } from "effect/unstable/httpapi"
|
|
17
17
|
import { InstanceHttpApi } from "../api"
|
|
18
|
-
import { ConsoleSwitchPayload, SessionListQuery, ToolListQuery
|
|
18
|
+
import type { ConsoleSwitchPayload, SessionListQuery, ToolListQuery } from "../groups/experimental"
|
|
19
|
+
import { WorktreeApiError } from "../groups/experimental"
|
|
19
20
|
|
|
20
21
|
function mapWorktreeError<A, R>(self: Effect.Effect<A, Worktree.Error, R>) {
|
|
21
22
|
return self.pipe(
|
|
@@ -7,7 +7,8 @@ import { disposeAllInstancesAndEmitGlobalDisposed } from "@/server/global-lifecy
|
|
|
7
7
|
import { InstallationVersion } from "@anymous-ai/core/installation/version"
|
|
8
8
|
import { Effect, Queue, Schema } from "effect"
|
|
9
9
|
import * as Stream from "effect/Stream"
|
|
10
|
-
import { HttpServerRequest
|
|
10
|
+
import type { HttpServerRequest } from "effect/unstable/http"
|
|
11
|
+
import { HttpServerResponse } from "effect/unstable/http"
|
|
11
12
|
import { HttpApiBuilder } from "effect/unstable/httpapi"
|
|
12
13
|
import * as Sse from "effect/unstable/encoding/Sse"
|
|
13
14
|
import { RootHttpApi } from "../api"
|
|
@@ -3,7 +3,8 @@ import { Effect, Schema } from "effect"
|
|
|
3
3
|
import { HttpApiBuilder, HttpApiError } from "effect/unstable/httpapi"
|
|
4
4
|
import { InstanceHttpApi } from "../api"
|
|
5
5
|
import { McpServerNotFoundError } from "../errors"
|
|
6
|
-
import { AddPayload, AuthCallbackPayload
|
|
6
|
+
import type { AddPayload, AuthCallbackPayload } from "../groups/mcp"
|
|
7
|
+
import { StatusMap, UnsupportedOAuthError } from "../groups/mcp"
|
|
7
8
|
|
|
8
9
|
export const mcpHandlers = HttpApiBuilder.group(InstanceHttpApi, "mcp", (handlers) =>
|
|
9
10
|
Effect.gen(function* () {
|
|
@@ -5,11 +5,12 @@ import { Provider } from "@/provider/provider"
|
|
|
5
5
|
|
|
6
6
|
import { mapValues } from "remeda"
|
|
7
7
|
import { Effect, Schema } from "effect"
|
|
8
|
-
import { HttpServerRequest
|
|
8
|
+
import type { HttpServerRequest } from "effect/unstable/http"
|
|
9
|
+
import { HttpServerResponse } from "effect/unstable/http"
|
|
9
10
|
import { HttpApiBuilder } from "effect/unstable/httpapi"
|
|
10
11
|
import { InstanceHttpApi } from "../api"
|
|
11
12
|
import { ProviderAuthApiError } from "../groups/provider"
|
|
12
|
-
import { ProviderV2 } from "@anymous-ai/core/provider"
|
|
13
|
+
import type { ProviderV2 } from "@anymous-ai/core/provider"
|
|
13
14
|
|
|
14
15
|
function mapProviderAuthError<A, R>(self: Effect.Effect<A, ProviderAuth.Error, R>) {
|
|
15
16
|
return self.pipe(
|
|
@@ -4,7 +4,7 @@ import { InstanceRef, WorkspaceRef } from "@/effect/instance-ref"
|
|
|
4
4
|
import { Plugin } from "@/plugin"
|
|
5
5
|
import { Pty } from "@anymous-ai/core/pty"
|
|
6
6
|
import { PtyProtocol } from "@anymous-ai/core/pty/protocol"
|
|
7
|
-
import { PtyID } from "@anymous-ai/core/pty/schema"
|
|
7
|
+
import type { PtyID } from "@anymous-ai/core/pty/schema"
|
|
8
8
|
import { PtyTicket } from "@anymous-ai/core/pty/ticket"
|
|
9
9
|
import { LocationServiceMap, locationServiceMapLayer } from "@anymous-ai/core/location-services"
|
|
10
10
|
import { Location } from "@anymous-ai/core/location"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Question } from "@/question"
|
|
2
|
-
import { QuestionID } from "@/question/schema"
|
|
2
|
+
import type { QuestionID } from "@/question/schema"
|
|
3
3
|
import { Effect } from "effect"
|
|
4
4
|
import { HttpApiBuilder } from "effect/unstable/httpapi"
|
|
5
5
|
import { InstanceHttpApi } from "../api"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PermissionV1 } from "@anymous-ai/core/v1/permission"
|
|
1
|
+
import type { PermissionV1 } from "@anymous-ai/core/v1/permission"
|
|
2
2
|
import { Agent } from "@/agent/agent"
|
|
3
|
-
import { SessionV1 } from "@anymous-ai/core/v1/session"
|
|
3
|
+
import type { SessionV1 } from "@anymous-ai/core/v1/session"
|
|
4
4
|
import { EventV2Bridge } from "@/event-v2-bridge"
|
|
5
5
|
import { Command } from "@/command"
|
|
6
6
|
import { Permission } from "@/permission"
|
|
@@ -14,7 +14,7 @@ import { SessionRunState } from "@/session/run-state"
|
|
|
14
14
|
import { SessionStatus } from "@/session/status"
|
|
15
15
|
import { SessionSummary } from "@/session/summary"
|
|
16
16
|
import { Todo } from "@/session/todo"
|
|
17
|
-
import { MessageID, PartID, SessionID } from "@/session/schema"
|
|
17
|
+
import type { MessageID, PartID, SessionID } from "@/session/schema"
|
|
18
18
|
import { NamedError } from "@anymous-ai/core/util/error"
|
|
19
19
|
import { Cause, Effect, Option, Schema, Scope } from "effect"
|
|
20
20
|
import * as Stream from "effect/Stream"
|
|
@@ -22,10 +22,9 @@ import { InstanceState } from "@/effect/instance-state"
|
|
|
22
22
|
import { HttpServerRequest, HttpServerResponse } from "effect/unstable/http"
|
|
23
23
|
import { HttpApiBuilder, HttpApiError, HttpApiSchema } from "effect/unstable/httpapi"
|
|
24
24
|
import { InstanceHttpApi } from "../api"
|
|
25
|
-
import {
|
|
25
|
+
import type {
|
|
26
26
|
CommandPayload,
|
|
27
27
|
DiffQuery,
|
|
28
|
-
ForkPayload,
|
|
29
28
|
InitPayload,
|
|
30
29
|
ListQuery,
|
|
31
30
|
MessagesQuery,
|
|
@@ -36,6 +35,7 @@ import {
|
|
|
36
35
|
SummarizePayload,
|
|
37
36
|
UpdatePayload,
|
|
38
37
|
} from "../groups/session"
|
|
38
|
+
import { ForkPayload } from "../groups/session"
|
|
39
39
|
import { PermissionNotFoundError } from "../errors"
|
|
40
40
|
import * as SessionError from "./session-errors"
|
|
41
41
|
|
|
@@ -2,7 +2,7 @@ import { Workspace } from "@/control-plane/workspace"
|
|
|
2
2
|
import * as InstanceState from "@/effect/instance-state"
|
|
3
3
|
import { Session } from "@/session/session"
|
|
4
4
|
import { Database } from "@anymous-ai/core/database/database"
|
|
5
|
-
import { EventV2 } from "@anymous-ai/core/event"
|
|
5
|
+
import type { EventV2 } from "@anymous-ai/core/event"
|
|
6
6
|
import { EventV2Bridge } from "@/event-v2-bridge"
|
|
7
7
|
import { EventTable } from "@anymous-ai/core/event/sql"
|
|
8
8
|
import { asc } from "drizzle-orm"
|
|
@@ -14,7 +14,7 @@ import { or } from "drizzle-orm"
|
|
|
14
14
|
import { Effect, Scope } from "effect"
|
|
15
15
|
import { HttpApiBuilder, HttpApiError } from "effect/unstable/httpapi"
|
|
16
16
|
import { InstanceHttpApi } from "../api"
|
|
17
|
-
import { HistoryPayload, ReplayPayload, SessionPayload } from "../groups/sync"
|
|
17
|
+
import type { HistoryPayload, ReplayPayload, SessionPayload } from "../groups/sync"
|
|
18
18
|
|
|
19
19
|
export const syncHandlers = HttpApiBuilder.group(InstanceHttpApi, "sync", (handlers) =>
|
|
20
20
|
Effect.gen(function* () {
|
|
@@ -5,7 +5,7 @@ import { Effect } from "effect"
|
|
|
5
5
|
import { HttpApiBuilder, HttpApiError } from "effect/unstable/httpapi"
|
|
6
6
|
import { nextTuiRequest, submitTuiResponse } from "@/server/shared/tui-control"
|
|
7
7
|
import { InstanceHttpApi } from "../api"
|
|
8
|
-
import { CommandPayload, TuiPublishPayload } from "../groups/tui"
|
|
8
|
+
import type { CommandPayload, TuiPublishPayload } from "../groups/tui"
|
|
9
9
|
import * as SessionError from "./session-errors"
|
|
10
10
|
|
|
11
11
|
const commandAliases = {
|
|
@@ -7,7 +7,8 @@ import { HttpApiBuilder } from "effect/unstable/httpapi"
|
|
|
7
7
|
import { InstanceHttpApi } from "../api"
|
|
8
8
|
import { notFound } from "../errors"
|
|
9
9
|
import { ApiVcsApplyError } from "../groups/instance"
|
|
10
|
-
import {
|
|
10
|
+
import type { CreatePayload, WarpPayload } from "../groups/workspace"
|
|
11
|
+
import { ApiWorkspaceCreateError, ApiWorkspaceWarpError } from "../groups/workspace"
|
|
11
12
|
|
|
12
13
|
export const workspaceHandlers = HttpApiBuilder.group(InstanceHttpApi, "workspace", (handlers) =>
|
|
13
14
|
Effect.gen(function* () {
|
|
@@ -2,7 +2,8 @@ import { EffectBridge } from "@/effect/bridge"
|
|
|
2
2
|
import type { InstanceContext } from "@/project/instance-context"
|
|
3
3
|
import { InstanceStore } from "@/project/instance-store"
|
|
4
4
|
import { Effect } from "effect"
|
|
5
|
-
import {
|
|
5
|
+
import type { HttpMiddleware } from "effect/unstable/http"
|
|
6
|
+
import { HttpEffect, HttpServerRequest } from "effect/unstable/http"
|
|
6
7
|
|
|
7
8
|
type MarkedInstance = {
|
|
8
9
|
ctx: InstanceContext
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { InstanceRef, WorkspaceRef } from "@/effect/instance-ref"
|
|
2
2
|
import { InstanceStore } from "@/project/instance-store"
|
|
3
3
|
import { Effect, Layer } from "effect"
|
|
4
|
-
import { HttpServerResponse } from "effect/unstable/http"
|
|
4
|
+
import type { HttpServerResponse } from "effect/unstable/http"
|
|
5
5
|
import { HttpApiMiddleware } from "effect/unstable/httpapi"
|
|
6
6
|
import { WorkspaceRouteContext } from "./workspace-routing"
|
|
7
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ProxyUtil } from "@/server/proxy-util"
|
|
2
2
|
import { Effect, Stream } from "effect"
|
|
3
|
-
import {
|
|
3
|
+
import type { HttpClient, HttpServerRequest } from "effect/unstable/http"
|
|
4
|
+
import { HttpBody, HttpClientRequest, HttpServerResponse } from "effect/unstable/http"
|
|
4
5
|
import * as Socket from "effect/unstable/socket/Socket"
|
|
5
6
|
import { WebSocketTracker } from "../websocket-tracker"
|
|
6
7
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Config as EffectConfig
|
|
1
|
+
import type { Config as EffectConfig } from "effect"
|
|
2
|
+
import { Context, Effect, Layer } from "effect"
|
|
2
3
|
import { HttpApiBuilder, OpenApi } from "effect/unstable/httpapi"
|
|
3
4
|
import { HttpClient, HttpMiddleware, HttpRouter, HttpServer, HttpServerResponse } from "effect/unstable/http"
|
|
4
5
|
import * as Socket from "effect/unstable/socket/Socket"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Database } from "@anymous-ai/core/database/database"
|
|
1
|
+
import type { Database } from "@anymous-ai/core/database/database"
|
|
2
2
|
import { inArray } from "drizzle-orm"
|
|
3
3
|
import { EventSequenceTable } from "@anymous-ai/core/event/sql"
|
|
4
4
|
import { Workspace } from "@/control-plane/workspace"
|
package/src/server/shared/ui.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FSUtil } from "@anymous-ai/core/fs-util"
|
|
2
2
|
import { Effect, Stream } from "effect"
|
|
3
|
-
import {
|
|
3
|
+
import type { HttpClient, HttpServerRequest } from "effect/unstable/http"
|
|
4
|
+
import { HttpBody, HttpClientRequest, HttpServerResponse } from "effect/unstable/http"
|
|
4
5
|
import { createHash } from "node:crypto"
|
|
5
6
|
import { ProxyUtil } from "../proxy-util"
|
|
6
7
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { LayerNode } from "@anymous-ai/core/effect/layer-node"
|
|
2
2
|
import { SessionV1 } from "@anymous-ai/core/v1/session"
|
|
3
|
-
import { ConfigV1 } from "@anymous-ai/core/v1/config/config"
|
|
3
|
+
import type { ConfigV1 } from "@anymous-ai/core/v1/config/config"
|
|
4
4
|
import { Session } from "./session"
|
|
5
|
-
import { SessionID
|
|
5
|
+
import type { SessionID } from "./schema"
|
|
6
|
+
import { MessageID, PartID } from "./schema"
|
|
6
7
|
import { Provider } from "@/provider/provider"
|
|
7
8
|
import { MessageV2 } from "./message-v2"
|
|
8
9
|
import { Token } from "@/util/token"
|
|
@@ -18,8 +19,8 @@ import { isOverflow as overflow, usable } from "./overflow"
|
|
|
18
19
|
import { serviceUse } from "@anymous-ai/core/effect/service-use"
|
|
19
20
|
import { RuntimeFlags } from "@/effect/runtime-flags"
|
|
20
21
|
import { EventV2Bridge } from "@/event-v2-bridge"
|
|
21
|
-
import { ProviderV2 } from "@anymous-ai/core/provider"
|
|
22
|
-
import { ModelV2 } from "@anymous-ai/core/model"
|
|
22
|
+
import type { ProviderV2 } from "@anymous-ai/core/provider"
|
|
23
|
+
import type { ModelV2 } from "@anymous-ai/core/model"
|
|
23
24
|
import { buildPrompt } from "@anymous-ai/core/session/compaction"
|
|
24
25
|
import { SessionCompactionEvent } from "@anymous-ai/schema/session-compaction-event"
|
|
25
26
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LayerNode } from "@anymous-ai/core/effect/layer-node"
|
|
2
2
|
import { httpClient } from "@anymous-ai/core/effect/app-node-platform"
|
|
3
3
|
import path from "path"
|
|
4
|
-
import { SessionV1 } from "@anymous-ai/core/v1/session"
|
|
4
|
+
import type { SessionV1 } from "@anymous-ai/core/v1/session"
|
|
5
5
|
import { Effect, Layer, Context } from "effect"
|
|
6
6
|
import { FetchHttpClient, HttpClient, HttpClientRequest } from "effect/unstable/http"
|
|
7
7
|
import { Config } from "@/config/config"
|
|
@@ -4,7 +4,8 @@ import { ProviderTransform } from "@/provider/transform"
|
|
|
4
4
|
import { errorMessage } from "@/util/error"
|
|
5
5
|
import { isRecord } from "@/util/record"
|
|
6
6
|
import { asSchema, type ModelMessage, type Tool } from "ai"
|
|
7
|
-
import { Cause
|
|
7
|
+
import type { Cause } from "effect"
|
|
8
|
+
import { Effect, FiberSet, Queue } from "effect"
|
|
8
9
|
import * as Stream from "effect/Stream"
|
|
9
10
|
import { FetchHttpClient } from "effect/unstable/http"
|
|
10
11
|
import {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PermissionV1 } from "@anymous-ai/core/v1/permission"
|
|
1
|
+
import type { PermissionV1 } from "@anymous-ai/core/v1/permission"
|
|
2
2
|
import type { Auth } from "@/auth"
|
|
3
|
-
import { SessionV1 } from "@anymous-ai/core/v1/session"
|
|
3
|
+
import type { SessionV1 } from "@anymous-ai/core/v1/session"
|
|
4
4
|
import type { RuntimeFlags } from "@/effect/runtime-flags"
|
|
5
5
|
import { InstanceState } from "@/effect/instance-state"
|
|
6
6
|
import { Permission } from "@/permission"
|
package/src/session/llm.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { LayerNode } from "@anymous-ai/core/effect/layer-node"
|
|
|
2
2
|
import { llmClient } from "@anymous-ai/core/effect/app-node-platform"
|
|
3
3
|
import { PermissionV1 } from "@anymous-ai/core/v1/permission"
|
|
4
4
|
import { Provider } from "@/provider/provider"
|
|
5
|
-
import { SessionV1 } from "@anymous-ai/core/v1/session"
|
|
5
|
+
import type { SessionV1 } from "@anymous-ai/core/v1/session"
|
|
6
6
|
import { serviceUse } from "@anymous-ai/core/effect/service-use"
|
|
7
7
|
import { Context, Effect, Layer } from "effect"
|
|
8
8
|
import * as Stream from "effect/Stream"
|
|
@@ -18,7 +18,7 @@ import type { MessageV2 } from "./message-v2"
|
|
|
18
18
|
import { Plugin } from "@/plugin"
|
|
19
19
|
import { Permission } from "@/permission"
|
|
20
20
|
import { EventV2Bridge } from "@/event-v2-bridge"
|
|
21
|
-
import { EventV2 } from "@anymous-ai/core/event"
|
|
21
|
+
import type { EventV2 } from "@anymous-ai/core/event"
|
|
22
22
|
import { Wildcard } from "@/util/wildcard"
|
|
23
23
|
import { SessionID } from "@/session/schema"
|
|
24
24
|
import { Auth } from "@/auth"
|
|
@@ -1,20 +1,9 @@
|
|
|
1
|
-
import { SessionID
|
|
1
|
+
import type { SessionID } from "./schema"
|
|
2
|
+
import { MessageID } from "./schema"
|
|
2
3
|
import { SessionV1 } from "@anymous-ai/core/v1/session"
|
|
3
|
-
import { ProviderV2 } from "@anymous-ai/core/provider"
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
AbortedError,
|
|
7
|
-
Assistant,
|
|
8
|
-
AuthError,
|
|
9
|
-
CompactionPart,
|
|
10
|
-
ContextOverflowError,
|
|
11
|
-
Info,
|
|
12
|
-
OutputLengthError,
|
|
13
|
-
Part,
|
|
14
|
-
SubtaskPart,
|
|
15
|
-
User,
|
|
16
|
-
WithParts,
|
|
17
|
-
} from "@anymous-ai/core/v1/session"
|
|
4
|
+
import type { ProviderV2 } from "@anymous-ai/core/provider"
|
|
5
|
+
import type { Assistant, CompactionPart, Info, Part, SubtaskPart, User, WithParts } from "@anymous-ai/core/v1/session"
|
|
6
|
+
import { APIError, AbortedError, AuthError, ContextOverflowError, OutputLengthError } from "@anymous-ai/core/v1/session"
|
|
18
7
|
|
|
19
8
|
import { NamedError } from "@anymous-ai/core/util/error"
|
|
20
9
|
import { APICallError, convertToModelMessages, LoadAPIKeyError, type ModelMessage, type UIMessage } from "ai"
|
package/src/session/overflow.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Config } from "@/config/config"
|
|
2
|
-
import { ConfigV1 } from "@anymous-ai/core/v1/config/config"
|
|
3
|
-
import { SessionV1 } from "@anymous-ai/core/v1/session"
|
|
2
|
+
import type { ConfigV1 } from "@anymous-ai/core/v1/config/config"
|
|
3
|
+
import type { SessionV1 } from "@anymous-ai/core/v1/session"
|
|
4
4
|
import type { Provider } from "@/provider/provider"
|
|
5
5
|
import { ProviderTransform } from "@/provider/transform"
|
|
6
6
|
import type { MessageV2 } from "./message-v2"
|
package/src/session/prompt.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LayerNode } from "@anymous-ai/core/effect/layer-node"
|
|
2
|
-
import { PermissionV1 } from "@anymous-ai/core/v1/permission"
|
|
2
|
+
import type { PermissionV1 } from "@anymous-ai/core/v1/permission"
|
|
3
3
|
import path from "path"
|
|
4
4
|
import { SessionV1 } from "@anymous-ai/core/v1/session"
|
|
5
5
|
import os from "os"
|
|
@@ -31,7 +31,7 @@ import { ConfigMarkdown } from "@/config/markdown"
|
|
|
31
31
|
import { SessionSummary } from "./summary"
|
|
32
32
|
import { NamedError } from "@anymous-ai/core/util/error"
|
|
33
33
|
import { SessionProcessor } from "./processor"
|
|
34
|
-
import { Tool } from "@/tool/tool"
|
|
34
|
+
import type { Tool } from "@/tool/tool"
|
|
35
35
|
import { Permission } from "@/permission"
|
|
36
36
|
import { SessionStatus } from "./status"
|
|
37
37
|
import { LLM } from "./llm"
|
|
@@ -42,7 +42,8 @@ import { Truncate } from "@/tool/truncate"
|
|
|
42
42
|
import { Image } from "@/image/image"
|
|
43
43
|
import { decodeDataUrl } from "@/util/data-url"
|
|
44
44
|
import { Process } from "@/util/process"
|
|
45
|
-
import {
|
|
45
|
+
import type { Types } from "effect"
|
|
46
|
+
import { Cause, Effect, Exit, Latch, Layer, Option, Scope, Context, Schema } from "effect"
|
|
46
47
|
import { InstanceState } from "@/effect/instance-state"
|
|
47
48
|
import { TaskTool, type TaskPromptOps } from "@/tool/task"
|
|
48
49
|
import { SessionRunState } from "./run-state"
|
package/src/session/reminders.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import path from "path"
|
|
2
|
-
import { SessionV1 } from "@anymous-ai/core/v1/session"
|
|
2
|
+
import type { SessionV1 } from "@anymous-ai/core/v1/session"
|
|
3
3
|
import { Effect } from "effect"
|
|
4
|
-
import { Agent } from "@/agent/agent"
|
|
4
|
+
import type { Agent } from "@/agent/agent"
|
|
5
5
|
import { FSUtil } from "@anymous-ai/core/fs-util"
|
|
6
6
|
import { InstanceState } from "@/effect/instance-state"
|
|
7
7
|
import { RuntimeFlags } from "@/effect/runtime-flags"
|
package/src/session/revert.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LayerNode } from "@anymous-ai/core/effect/layer-node"
|
|
2
2
|
import { Effect, Layer, Context, Schema } from "effect"
|
|
3
|
-
import { SessionV1 } from "@anymous-ai/core/v1/session"
|
|
3
|
+
import type { SessionV1 } from "@anymous-ai/core/v1/session"
|
|
4
4
|
import { EventV2Bridge } from "@/event-v2-bridge"
|
|
5
5
|
import { Snapshot } from "../snapshot"
|
|
6
6
|
import { Storage } from "@/storage/storage"
|
package/src/session/run-state.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { LayerNode } from "@anymous-ai/core/effect/layer-node"
|
|
2
2
|
import { InstanceState } from "@/effect/instance-state"
|
|
3
|
-
import { SessionV1 } from "@anymous-ai/core/v1/session"
|
|
3
|
+
import type { SessionV1 } from "@anymous-ai/core/v1/session"
|
|
4
4
|
import { Runner } from "@/effect/runner"
|
|
5
5
|
import { BackgroundJob } from "@/background/job"
|
|
6
|
-
import {
|
|
6
|
+
import type { Latch } from "effect"
|
|
7
|
+
import { Effect, Layer, Scope, Context } from "effect"
|
|
7
8
|
import { Session } from "./session"
|
|
8
|
-
import { SessionID } from "./schema"
|
|
9
|
+
import type { SessionID } from "./schema"
|
|
9
10
|
import { SessionStatus } from "./status"
|
|
10
11
|
|
|
11
12
|
export interface Interface {
|
package/src/session/session.ts
CHANGED
|
@@ -38,7 +38,8 @@ import { SessionID, MessageID, PartID } from "./schema"
|
|
|
38
38
|
|
|
39
39
|
import type { Provider } from "@/provider/provider"
|
|
40
40
|
import { Global } from "@anymous-ai/core/global"
|
|
41
|
-
import {
|
|
41
|
+
import type { Types } from "effect"
|
|
42
|
+
import { Effect, Layer, Option, Context, Schema } from "effect"
|
|
42
43
|
import { NonNegativeInt, optional } from "@anymous-ai/core/schema"
|
|
43
44
|
import { RuntimeFlags } from "@/effect/runtime-flags"
|
|
44
45
|
import { ProviderV2 } from "@anymous-ai/core/provider"
|
package/src/session/status.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LayerNode } from "@anymous-ai/core/effect/layer-node"
|
|
2
2
|
import { InstanceState } from "@/effect/instance-state"
|
|
3
|
-
import { SessionID } from "./schema"
|
|
3
|
+
import type { SessionID } from "./schema"
|
|
4
4
|
import { Effect, Layer, Context } from "effect"
|
|
5
5
|
import { EventV2Bridge } from "@/event-v2-bridge"
|
|
6
6
|
import { SessionStatusEvent } from "@anymous-ai/schema/session-status-event"
|
package/src/session/summary.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LayerNode } from "@anymous-ai/core/effect/layer-node"
|
|
2
2
|
import { Effect, Layer, Context, Schema } from "effect"
|
|
3
|
-
import { SessionV1 } from "@anymous-ai/core/v1/session"
|
|
3
|
+
import type { SessionV1 } from "@anymous-ai/core/v1/session"
|
|
4
4
|
import { EventV2Bridge } from "@/event-v2-bridge"
|
|
5
5
|
import { Snapshot } from "@/snapshot"
|
|
6
6
|
import { Session } from "./session"
|
package/src/session/system.ts
CHANGED
|
@@ -22,7 +22,7 @@ import { Location } from "@anymous-ai/core/location"
|
|
|
22
22
|
import { LocationServiceMap, locationServiceMapLayer } from "@anymous-ai/core/location-services"
|
|
23
23
|
import { Reference } from "@anymous-ai/core/reference"
|
|
24
24
|
import { MCP } from "@/mcp"
|
|
25
|
-
import { PermissionV1 } from "@anymous-ai/core/v1/permission"
|
|
25
|
+
import type { PermissionV1 } from "@anymous-ai/core/v1/permission"
|
|
26
26
|
|
|
27
27
|
export function provider(model: Provider.Model) {
|
|
28
28
|
if (model.api.id.includes("muse-spark")) return [PROMPT_META]
|
package/src/session/todo.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LayerNode } from "@anymous-ai/core/effect/layer-node"
|
|
2
|
-
import { SessionID } from "./schema"
|
|
2
|
+
import type { SessionID } from "./schema"
|
|
3
3
|
import { Effect, Layer, Context } from "effect"
|
|
4
4
|
import { Database } from "@anymous-ai/core/database/database"
|
|
5
5
|
import { eq } from "drizzle-orm"
|
package/src/session/tools.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Agent } from "@/agent/agent"
|
|
2
|
-
import { SessionV1 } from "@anymous-ai/core/v1/session"
|
|
3
|
-
import { Provider } from "@/provider/provider"
|
|
1
|
+
import type { Agent } from "@/agent/agent"
|
|
2
|
+
import type { SessionV1 } from "@anymous-ai/core/v1/session"
|
|
3
|
+
import type { Provider } from "@/provider/provider"
|
|
4
4
|
import { ProviderTransform } from "@/provider/transform"
|
|
5
5
|
import { MCP } from "@/mcp"
|
|
6
6
|
import { McpCatalog } from "@/mcp/catalog"
|
|
7
7
|
import { Permission } from "@/permission"
|
|
8
|
-
import { Tool } from "@/tool/tool"
|
|
8
|
+
import type { Tool } from "@/tool/tool"
|
|
9
9
|
import { ToolJsonSchema } from "@/tool/json-schema"
|
|
10
10
|
import { ToolRegistry } from "@/tool/registry"
|
|
11
11
|
import { Truncate } from "@/tool/truncate"
|
|
@@ -15,8 +15,8 @@ import type { TaskPromptOps } from "@/tool/task"
|
|
|
15
15
|
import { type Tool as AITool, tool, jsonSchema, type ToolExecutionOptions, asSchema } from "ai"
|
|
16
16
|
import { Effect } from "effect"
|
|
17
17
|
import { MessageV2 } from "./message-v2"
|
|
18
|
-
import { Session } from "./session"
|
|
19
|
-
import { SessionProcessor } from "./processor"
|
|
18
|
+
import type { Session } from "./session"
|
|
19
|
+
import type { SessionProcessor } from "./processor"
|
|
20
20
|
import { PartID } from "./schema"
|
|
21
21
|
import { EffectBridge } from "@/effect/bridge"
|
|
22
22
|
import { ProviderV2 } from "@anymous-ai/core/provider"
|
package/src/share/session.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LayerNode } from "@anymous-ai/core/effect/layer-node"
|
|
2
2
|
import { Session } from "@/session/session"
|
|
3
|
-
import { SessionID } from "@/session/schema"
|
|
3
|
+
import type { SessionID } from "@/session/schema"
|
|
4
4
|
import { Effect, Layer, Scope, Context } from "effect"
|
|
5
5
|
import { Config } from "@/config/config"
|
|
6
6
|
import { RuntimeFlags } from "@/effect/runtime-flags"
|