@hcu-lab.me/mcp-device 1.0.9 → 1.0.12
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/PRIVACY.md +21 -0
- package/README.md +58 -3
- package/SECURITY.md +67 -0
- package/config/revoked-approvals.json +1 -0
- package/control-plane/config/mcp-servers.example.toml +52 -0
- package/control-plane/config/mcp-servers.toml +52 -0
- package/control-plane/contracts/device-public-contract-v1.json +733 -0
- package/control-plane/scripts/GATEWAY-LICENSE.txt +7 -0
- package/control-plane/scripts/account-http.mjs +220 -0
- package/control-plane/scripts/account-store.mjs +368 -0
- package/control-plane/scripts/admin.mjs +68 -0
- package/control-plane/scripts/auth-session.mjs +411 -0
- package/control-plane/scripts/authenticated-mcp-wrapper.mjs +1281 -0
- package/control-plane/scripts/benchmark-command.mjs +9 -0
- package/control-plane/scripts/benchmark-mcp-catalog.mjs +174 -0
- package/control-plane/scripts/catalog-budget.mjs +87 -0
- package/control-plane/scripts/check-device-public-contract.mjs +20 -0
- package/control-plane/scripts/custom-tools/index.mjs +221 -0
- package/control-plane/scripts/custom-tools/path-utils.mjs +117 -0
- package/control-plane/scripts/custom-tools/response-utils.mjs +34 -0
- package/control-plane/scripts/dashboard-http.mjs +598 -0
- package/control-plane/scripts/device-access-policy.mjs +205 -0
- package/control-plane/scripts/device-admin.mjs +43 -0
- package/control-plane/scripts/device-audit.mjs +63 -0
- package/control-plane/scripts/device-broker.mjs +1461 -0
- package/control-plane/scripts/device-execution-tool-definitions.mjs +217 -0
- package/control-plane/scripts/device-inventory.mjs +128 -0
- package/control-plane/scripts/device-pairing-http.mjs +109 -0
- package/control-plane/scripts/device-pairing-store.mjs +245 -0
- package/control-plane/scripts/device-public-contract.mjs +165 -0
- package/control-plane/scripts/device-release.mjs +95 -0
- package/control-plane/scripts/device-secure-transport.mjs +128 -0
- package/control-plane/scripts/device-store.mjs +283 -0
- package/control-plane/scripts/device-usage.mjs +657 -0
- package/control-plane/scripts/embedded-device.mjs +149 -0
- package/control-plane/scripts/enduser-ui.mjs +45 -0
- package/control-plane/scripts/external-tool-broker.mjs +179 -0
- package/control-plane/scripts/oauth-authorization-server.mjs +589 -0
- package/control-plane/scripts/operator-dashboard-http.mjs +81 -0
- package/control-plane/scripts/project-inspection.mjs +227 -0
- package/control-plane/scripts/projects/project-id.mjs +69 -0
- package/control-plane/scripts/projects/trusted-roots-projects.mjs +375 -0
- package/control-plane/scripts/prompts/index.mjs +60 -0
- package/control-plane/scripts/remote-process-sessions.mjs +78 -0
- package/control-plane/scripts/remote-tool-result.mjs +9 -0
- package/control-plane/scripts/resources/index.mjs +166 -0
- package/control-plane/scripts/runtime-profile.mjs +54 -0
- package/control-plane/scripts/shell-tool-descriptor.mjs +17 -0
- package/control-plane/scripts/skill-source-safety.mjs +46 -0
- package/control-plane/scripts/skills/README.md +70 -0
- package/control-plane/scripts/skills/_upstream_licenses/anthropic-THIRD_PARTY_NOTICES.md +405 -0
- package/control-plane/scripts/skills/_upstream_licenses/hallmark-LICENSE.txt +21 -0
- package/control-plane/scripts/skills/_upstream_licenses/ponytail-LICENSE.txt +21 -0
- package/control-plane/scripts/skills/_upstream_licenses/stitch-skills-LICENSE.txt +201 -0
- package/control-plane/scripts/skills/_upstream_licenses/superpowers-LICENSE.txt +21 -0
- package/control-plane/scripts/skills/algorithmic-art/LICENSE.txt +202 -0
- package/control-plane/scripts/skills/algorithmic-art/SKILL.md +405 -0
- package/control-plane/scripts/skills/algorithmic-art/templates/generator_template.js +223 -0
- package/control-plane/scripts/skills/algorithmic-art/templates/viewer.html +599 -0
- package/control-plane/scripts/skills/brainstorming/SKILL.md +285 -0
- package/control-plane/scripts/skills/brainstorming/scripts/frame-template.html +213 -0
- package/control-plane/scripts/skills/brainstorming/scripts/helper.js +167 -0
- package/control-plane/scripts/skills/brainstorming/scripts/server.cjs +723 -0
- package/control-plane/scripts/skills/brainstorming/scripts/start-server.sh +209 -0
- package/control-plane/scripts/skills/brainstorming/scripts/stop-server.sh +120 -0
- package/control-plane/scripts/skills/brainstorming/spec-document-reviewer-prompt.md +49 -0
- package/control-plane/scripts/skills/brainstorming/visual-companion.md +299 -0
- package/control-plane/scripts/skills/brand-guidelines/LICENSE.txt +202 -0
- package/control-plane/scripts/skills/brand-guidelines/SKILL.md +73 -0
- package/control-plane/scripts/skills/claude-api/LICENSE.txt +202 -0
- package/control-plane/scripts/skills/claude-api/SKILL.md +570 -0
- package/control-plane/scripts/skills/claude-api/csharp/claude-api/README.md +362 -0
- package/control-plane/scripts/skills/claude-api/csharp/claude-api/batches.md +14 -0
- package/control-plane/scripts/skills/claude-api/csharp/claude-api/files-api.md +25 -0
- package/control-plane/scripts/skills/claude-api/csharp/claude-api/streaming.md +28 -0
- package/control-plane/scripts/skills/claude-api/csharp/claude-api/tool-use.md +164 -0
- package/control-plane/scripts/skills/claude-api/curl/examples.md +256 -0
- package/control-plane/scripts/skills/claude-api/curl/managed-agents.md +371 -0
- package/control-plane/scripts/skills/claude-api/go/claude-api/README.md +188 -0
- package/control-plane/scripts/skills/claude-api/go/claude-api/files-api.md +23 -0
- package/control-plane/scripts/skills/claude-api/go/claude-api/streaming.md +43 -0
- package/control-plane/scripts/skills/claude-api/go/claude-api/tool-use.md +220 -0
- package/control-plane/scripts/skills/claude-api/go/managed-agents/README.md +564 -0
- package/control-plane/scripts/skills/claude-api/java/claude-api/README.md +238 -0
- package/control-plane/scripts/skills/claude-api/java/claude-api/files-api.md +27 -0
- package/control-plane/scripts/skills/claude-api/java/claude-api/streaming.md +24 -0
- package/control-plane/scripts/skills/claude-api/java/claude-api/tool-use.md +228 -0
- package/control-plane/scripts/skills/claude-api/java/managed-agents/README.md +443 -0
- package/control-plane/scripts/skills/claude-api/php/claude-api/README.md +174 -0
- package/control-plane/scripts/skills/claude-api/php/claude-api/batches.md +15 -0
- package/control-plane/scripts/skills/claude-api/php/claude-api/files-api.md +13 -0
- package/control-plane/scripts/skills/claude-api/php/claude-api/streaming.md +27 -0
- package/control-plane/scripts/skills/claude-api/php/claude-api/tool-use.md +253 -0
- package/control-plane/scripts/skills/claude-api/php/managed-agents/README.md +443 -0
- package/control-plane/scripts/skills/claude-api/python/claude-api/README.md +565 -0
- package/control-plane/scripts/skills/claude-api/python/claude-api/batches.md +198 -0
- package/control-plane/scripts/skills/claude-api/python/claude-api/files-api.md +170 -0
- package/control-plane/scripts/skills/claude-api/python/claude-api/sdk-upgrade.md +286 -0
- package/control-plane/scripts/skills/claude-api/python/claude-api/streaming.md +179 -0
- package/control-plane/scripts/skills/claude-api/python/claude-api/tool-use.md +627 -0
- package/control-plane/scripts/skills/claude-api/python/managed-agents/README.md +335 -0
- package/control-plane/scripts/skills/claude-api/ruby/claude-api/README.md +134 -0
- package/control-plane/scripts/skills/claude-api/ruby/claude-api/streaming.md +16 -0
- package/control-plane/scripts/skills/claude-api/ruby/claude-api/tool-use.md +41 -0
- package/control-plane/scripts/skills/claude-api/ruby/managed-agents/README.md +394 -0
- package/control-plane/scripts/skills/claude-api/shared/admin-api.md +179 -0
- package/control-plane/scripts/skills/claude-api/shared/agent-design.md +101 -0
- package/control-plane/scripts/skills/claude-api/shared/anthropic-cli.md +269 -0
- package/control-plane/scripts/skills/claude-api/shared/claude-platform-on-aws.md +59 -0
- package/control-plane/scripts/skills/claude-api/shared/cost-optimization.md +233 -0
- package/control-plane/scripts/skills/claude-api/shared/error-codes.md +262 -0
- package/control-plane/scripts/skills/claude-api/shared/live-sources.md +166 -0
- package/control-plane/scripts/skills/claude-api/shared/managed-agents-api-reference.md +455 -0
- package/control-plane/scripts/skills/claude-api/shared/managed-agents-client-patterns.md +220 -0
- package/control-plane/scripts/skills/claude-api/shared/managed-agents-core.md +359 -0
- package/control-plane/scripts/skills/claude-api/shared/managed-agents-environments.md +226 -0
- package/control-plane/scripts/skills/claude-api/shared/managed-agents-events.md +290 -0
- package/control-plane/scripts/skills/claude-api/shared/managed-agents-memory.md +201 -0
- package/control-plane/scripts/skills/claude-api/shared/managed-agents-multiagent.md +260 -0
- package/control-plane/scripts/skills/claude-api/shared/managed-agents-onboarding.md +82 -0
- package/control-plane/scripts/skills/claude-api/shared/managed-agents-outcomes.md +108 -0
- package/control-plane/scripts/skills/claude-api/shared/managed-agents-overview.md +77 -0
- package/control-plane/scripts/skills/claude-api/shared/managed-agents-scheduled-deployments.md +156 -0
- package/control-plane/scripts/skills/claude-api/shared/managed-agents-self-hosted-sandboxes.md +282 -0
- package/control-plane/scripts/skills/claude-api/shared/managed-agents-tools.md +504 -0
- package/control-plane/scripts/skills/claude-api/shared/managed-agents-webhooks.md +143 -0
- package/control-plane/scripts/skills/claude-api/shared/model-migration.md +1872 -0
- package/control-plane/scripts/skills/claude-api/shared/models.md +142 -0
- package/control-plane/scripts/skills/claude-api/shared/platform-availability.md +52 -0
- package/control-plane/scripts/skills/claude-api/shared/prompt-audit.md +223 -0
- package/control-plane/scripts/skills/claude-api/shared/prompt-caching.md +292 -0
- package/control-plane/scripts/skills/claude-api/shared/token-counting.md +56 -0
- package/control-plane/scripts/skills/claude-api/shared/tool-use-concepts.md +526 -0
- package/control-plane/scripts/skills/claude-api/typescript/claude-api/README.md +405 -0
- package/control-plane/scripts/skills/claude-api/typescript/claude-api/batches.md +106 -0
- package/control-plane/scripts/skills/claude-api/typescript/claude-api/files-api.md +98 -0
- package/control-plane/scripts/skills/claude-api/typescript/claude-api/streaming.md +178 -0
- package/control-plane/scripts/skills/claude-api/typescript/claude-api/tool-use.md +586 -0
- package/control-plane/scripts/skills/claude-api/typescript/managed-agents/README.md +359 -0
- package/control-plane/scripts/skills/dispatching-parallel-agents/SKILL.md +167 -0
- package/control-plane/scripts/skills/enhance-prompt/README.md +34 -0
- package/control-plane/scripts/skills/enhance-prompt/SKILL.md +204 -0
- package/control-plane/scripts/skills/enhance-prompt/references/KEYWORDS.md +114 -0
- package/control-plane/scripts/skills/executing-plans/SKILL.md +371 -0
- package/control-plane/scripts/skills/executing-plans/scripts/task-done +52 -0
- package/control-plane/scripts/skills/executing-plans/scripts/task-start +28 -0
- package/control-plane/scripts/skills/extract-design-md/SKILL.md +358 -0
- package/control-plane/scripts/skills/extract-design-md/examples/DESIGN.md +210 -0
- package/control-plane/scripts/skills/extract-design-md/references/angular.md +122 -0
- package/control-plane/scripts/skills/extract-design-md/references/plain-css.md +161 -0
- package/control-plane/scripts/skills/extract-design-md/references/react-tailwind.md +157 -0
- package/control-plane/scripts/skills/extract-design-md/references/svelte.md +101 -0
- package/control-plane/scripts/skills/extract-design-md/references/vue.md +107 -0
- package/control-plane/scripts/skills/finishing-a-development-branch/SKILL.md +225 -0
- package/control-plane/scripts/skills/frontend-design/LICENSE.txt +177 -0
- package/control-plane/scripts/skills/frontend-design/SKILL.md +71 -0
- package/control-plane/scripts/skills/hallmark/SKILL.md +558 -0
- package/control-plane/scripts/skills/hallmark/references/anti-patterns.md +418 -0
- package/control-plane/scripts/skills/hallmark/references/assets.md +406 -0
- package/control-plane/scripts/skills/hallmark/references/color.md +95 -0
- package/control-plane/scripts/skills/hallmark/references/component-cookbook.md +263 -0
- package/control-plane/scripts/skills/hallmark/references/components/c1-outlined-chip.md +12 -0
- package/control-plane/scripts/skills/hallmark/references/components/c2-inline-form-as-cta.md +16 -0
- package/control-plane/scripts/skills/hallmark/references/components/c3-typographic-link.md +8 -0
- package/control-plane/scripts/skills/hallmark/references/components/c4-sticky-bottom-bar.md +16 -0
- package/control-plane/scripts/skills/hallmark/references/components/f1-bento-grid.md +20 -0
- package/control-plane/scripts/skills/hallmark/references/components/f2-sticky-scroll-stack.md +20 -0
- package/control-plane/scripts/skills/hallmark/references/components/f3-tabular-spec-sheet.md +11 -0
- package/control-plane/scripts/skills/hallmark/references/components/f4-step-sequence.md +11 -0
- package/control-plane/scripts/skills/hallmark/references/components/f5-annotated-screenshot.md +11 -0
- package/control-plane/scripts/skills/hallmark/references/components/f6-product-card-grid.md +41 -0
- package/control-plane/scripts/skills/hallmark/references/components/ft1-mast-headed.md +13 -0
- package/control-plane/scripts/skills/hallmark/references/components/ft2-inline-rule-single-line.md +10 -0
- package/control-plane/scripts/skills/hallmark/references/components/ft3-index-style-category-list.md +12 -0
- package/control-plane/scripts/skills/hallmark/references/components/ft4-dense-typographic.md +10 -0
- package/control-plane/scripts/skills/hallmark/references/components/ft5-statement.md +21 -0
- package/control-plane/scripts/skills/hallmark/references/components/ft6-letter-close.md +19 -0
- package/control-plane/scripts/skills/hallmark/references/components/ft7-newsletter-first.md +27 -0
- package/control-plane/scripts/skills/hallmark/references/components/ft8-marquee-scroll.md +25 -0
- package/control-plane/scripts/skills/hallmark/references/components/h1-marquee.md +15 -0
- package/control-plane/scripts/skills/hallmark/references/components/h2-split-diptych.md +15 -0
- package/control-plane/scripts/skills/hallmark/references/components/h3-quote-led.md +11 -0
- package/control-plane/scripts/skills/hallmark/references/components/h4-stat-led.md +14 -0
- package/control-plane/scripts/skills/hallmark/references/components/h5-letter-hero.md +11 -0
- package/control-plane/scripts/skills/hallmark/references/components/h6-photographic-fold.md +16 -0
- package/control-plane/scripts/skills/hallmark/references/components/h7-demo-video-clipped-by-viewport-edge.md +27 -0
- package/control-plane/scripts/skills/hallmark/references/components/h8-mockup-split-browser-framed.md +23 -0
- package/control-plane/scripts/skills/hallmark/references/components/h9-custom-illustration-centerpiece.md +27 -0
- package/control-plane/scripts/skills/hallmark/references/components/n1-wordmark-2-links.md +12 -0
- package/control-plane/scripts/skills/hallmark/references/components/n10-floating-on-scroll-morph.md +19 -0
- package/control-plane/scripts/skills/hallmark/references/components/n11-mega-menu.md +40 -0
- package/control-plane/scripts/skills/hallmark/references/components/n12-banner-retract.md +34 -0
- package/control-plane/scripts/skills/hallmark/references/components/n13-inline-cmdk-pill.md +39 -0
- package/control-plane/scripts/skills/hallmark/references/components/n1b-saas-three-section.md +35 -0
- package/control-plane/scripts/skills/hallmark/references/components/n2-floating-chip.md +14 -0
- package/control-plane/scripts/skills/hallmark/references/components/n3-side-rail.md +14 -0
- package/control-plane/scripts/skills/hallmark/references/components/n4-hidden-behind-k.md +9 -0
- package/control-plane/scripts/skills/hallmark/references/components/n5-floating-pill.md +28 -0
- package/control-plane/scripts/skills/hallmark/references/components/n6-newspaper-masthead.md +24 -0
- package/control-plane/scripts/skills/hallmark/references/components/n7-brutal-slab.md +22 -0
- package/control-plane/scripts/skills/hallmark/references/components/n8-terminal-command.md +21 -0
- package/control-plane/scripts/skills/hallmark/references/components/n9-edge-aligned-minimal.md +17 -0
- package/control-plane/scripts/skills/hallmark/references/components/s1-left-margin-numbered.md +15 -0
- package/control-plane/scripts/skills/hallmark/references/components/s2-hanging.md +13 -0
- package/control-plane/scripts/skills/hallmark/references/components/s3-sticky-pinned.md +19 -0
- package/control-plane/scripts/skills/hallmark/references/components/s4-inline-no-break.md +11 -0
- package/control-plane/scripts/skills/hallmark/references/components/s5-bottom-anchored.md +13 -0
- package/control-plane/scripts/skills/hallmark/references/components/t1-pull-quote-with-marginalia.md +12 -0
- package/control-plane/scripts/skills/hallmark/references/components/t2-logo-wall-hairline.md +19 -0
- package/control-plane/scripts/skills/hallmark/references/components/t3-single-huge-quote.md +11 -0
- package/control-plane/scripts/skills/hallmark/references/components/t4-numbered-stat-strip.md +14 -0
- package/control-plane/scripts/skills/hallmark/references/contract.md +25 -0
- package/control-plane/scripts/skills/hallmark/references/copy.md +182 -0
- package/control-plane/scripts/skills/hallmark/references/custom-craft.md +626 -0
- package/control-plane/scripts/skills/hallmark/references/custom-theme.md +367 -0
- package/control-plane/scripts/skills/hallmark/references/design-md.md +116 -0
- package/control-plane/scripts/skills/hallmark/references/export-formats.md +329 -0
- package/control-plane/scripts/skills/hallmark/references/floating-nav.md +89 -0
- package/control-plane/scripts/skills/hallmark/references/genres/atmospheric.md +69 -0
- package/control-plane/scripts/skills/hallmark/references/genres/editorial.md +72 -0
- package/control-plane/scripts/skills/hallmark/references/genres/modern-minimal.md +71 -0
- package/control-plane/scripts/skills/hallmark/references/genres/playful.md +70 -0
- package/control-plane/scripts/skills/hallmark/references/hero-enrichment.md +475 -0
- package/control-plane/scripts/skills/hallmark/references/imagery-kit.md +170 -0
- package/control-plane/scripts/skills/hallmark/references/interaction-and-states.md +208 -0
- package/control-plane/scripts/skills/hallmark/references/layout-and-space.md +112 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/01-bento-grid.md +35 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/02-long-document.md +34 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/03-marquee-hero.md +31 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/04-stat-led.md +34 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/05-workbench.md +32 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/06-conversational-faq.md +33 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/07-manifesto.md +32 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/08-photographic.md +34 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/09-quote-led.md +32 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/10-specimen.md +32 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/11-catalogue.md +23 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/12-letter.md +23 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/13-index-first.md +23 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/14-narrative-workflow.md +23 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/15-split-studio.md +23 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/16-feature-stack.md +23 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/17-type-specimen.md +23 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/18-portfolio-grid.md +23 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/19-map-diagram.md +23 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/20-ecosystem-index.md +23 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/21-component-playground.md +23 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures.md +89 -0
- package/control-plane/scripts/skills/hallmark/references/microinteractions.md +258 -0
- package/control-plane/scripts/skills/hallmark/references/motion.md +109 -0
- package/control-plane/scripts/skills/hallmark/references/preview-examples.md +49 -0
- package/control-plane/scripts/skills/hallmark/references/responsive.md +138 -0
- package/control-plane/scripts/skills/hallmark/references/slop-test.md +192 -0
- package/control-plane/scripts/skills/hallmark/references/structure.md +160 -0
- package/control-plane/scripts/skills/hallmark/references/study.md +509 -0
- package/control-plane/scripts/skills/hallmark/references/themes/carnival.md +301 -0
- package/control-plane/scripts/skills/hallmark/references/themes/cobalt.md +146 -0
- package/control-plane/scripts/skills/hallmark/references/themes/grid.md +161 -0
- package/control-plane/scripts/skills/hallmark/references/themes/hum.md +403 -0
- package/control-plane/scripts/skills/hallmark/references/themes/lumen.md +478 -0
- package/control-plane/scripts/skills/hallmark/references/typography.md +243 -0
- package/control-plane/scripts/skills/hallmark/references/upstream/recipes.md +186 -0
- package/control-plane/scripts/skills/hallmark/references/upstream/study-examples.md +176 -0
- package/control-plane/scripts/skills/hallmark/references/upstream/tokens.css +1221 -0
- package/control-plane/scripts/skills/hallmark/references/verbs/audit.md +25 -0
- package/control-plane/scripts/skills/hallmark/references/verbs/redesign.md +269 -0
- package/control-plane/scripts/skills/human-comms/SKILL.md +29 -0
- package/control-plane/scripts/skills/index.mjs +432 -0
- package/control-plane/scripts/skills/internal-comms/LICENSE.txt +202 -0
- package/control-plane/scripts/skills/internal-comms/SKILL.md +32 -0
- package/control-plane/scripts/skills/internal-comms/examples/3p-updates.md +47 -0
- package/control-plane/scripts/skills/internal-comms/examples/company-newsletter.md +65 -0
- package/control-plane/scripts/skills/internal-comms/examples/faq-answers.md +30 -0
- package/control-plane/scripts/skills/internal-comms/examples/general-comms.md +16 -0
- package/control-plane/scripts/skills/mcp-adapter.mjs +94 -0
- package/control-plane/scripts/skills/mcp-builder/LICENSE.txt +202 -0
- package/control-plane/scripts/skills/mcp-builder/SKILL.md +236 -0
- package/control-plane/scripts/skills/mcp-builder/reference/evaluation.md +602 -0
- package/control-plane/scripts/skills/mcp-builder/reference/mcp_best_practices.md +249 -0
- package/control-plane/scripts/skills/mcp-builder/reference/node_mcp_server.md +970 -0
- package/control-plane/scripts/skills/mcp-builder/reference/python_mcp_server.md +719 -0
- package/control-plane/scripts/skills/mcp-builder/scripts/connections.py +151 -0
- package/control-plane/scripts/skills/mcp-builder/scripts/evaluation.py +373 -0
- package/control-plane/scripts/skills/mcp-builder/scripts/example_evaluation.xml +22 -0
- package/control-plane/scripts/skills/mcp-builder/scripts/requirements.txt +2 -0
- package/control-plane/scripts/skills/ponytail/SKILL.md +120 -0
- package/control-plane/scripts/skills/ponytail-audit/SKILL.md +41 -0
- package/control-plane/scripts/skills/ponytail-debt/SKILL.md +44 -0
- package/control-plane/scripts/skills/ponytail-gain/SKILL.md +50 -0
- package/control-plane/scripts/skills/ponytail-help/SKILL.md +71 -0
- package/control-plane/scripts/skills/ponytail-review/SKILL.md +57 -0
- package/control-plane/scripts/skills/receiving-code-review/SKILL.md +205 -0
- package/control-plane/scripts/skills/requesting-code-review/SKILL.md +95 -0
- package/control-plane/scripts/skills/requesting-code-review/code-reviewer.md +198 -0
- package/control-plane/scripts/skills/skill-creator/LICENSE.txt +202 -0
- package/control-plane/scripts/skills/skill-creator/SKILL.md +485 -0
- package/control-plane/scripts/skills/skill-creator/agents/analyzer.md +274 -0
- package/control-plane/scripts/skills/skill-creator/agents/comparator.md +202 -0
- package/control-plane/scripts/skills/skill-creator/agents/grader.md +223 -0
- package/control-plane/scripts/skills/skill-creator/assets/eval_review.html +146 -0
- package/control-plane/scripts/skills/skill-creator/eval-viewer/generate_review.py +471 -0
- package/control-plane/scripts/skills/skill-creator/eval-viewer/viewer.html +1325 -0
- package/control-plane/scripts/skills/skill-creator/references/schemas.md +430 -0
- package/control-plane/scripts/skills/skill-creator/scripts/__init__.py +0 -0
- package/control-plane/scripts/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
- package/control-plane/scripts/skills/skill-creator/scripts/generate_report.py +326 -0
- package/control-plane/scripts/skills/skill-creator/scripts/improve_description.py +247 -0
- package/control-plane/scripts/skills/skill-creator/scripts/package_skill.py +136 -0
- package/control-plane/scripts/skills/skill-creator/scripts/quick_validate.py +103 -0
- package/control-plane/scripts/skills/skill-creator/scripts/run_eval.py +310 -0
- package/control-plane/scripts/skills/skill-creator/scripts/run_loop.py +328 -0
- package/control-plane/scripts/skills/skill-creator/scripts/utils.py +47 -0
- package/control-plane/scripts/skills/slack-gif-creator/LICENSE.txt +202 -0
- package/control-plane/scripts/skills/slack-gif-creator/SKILL.md +254 -0
- package/control-plane/scripts/skills/slack-gif-creator/core/easing.py +234 -0
- package/control-plane/scripts/skills/slack-gif-creator/core/frame_composer.py +176 -0
- package/control-plane/scripts/skills/slack-gif-creator/core/gif_builder.py +269 -0
- package/control-plane/scripts/skills/slack-gif-creator/core/validators.py +136 -0
- package/control-plane/scripts/skills/slack-gif-creator/requirements.txt +4 -0
- package/control-plane/scripts/skills/sources.json +401 -0
- package/control-plane/scripts/skills/sources.lock.json +416 -0
- package/control-plane/scripts/skills/subagent-driven-development/SKILL.md +570 -0
- package/control-plane/scripts/skills/subagent-driven-development/implementer-prompt.md +154 -0
- package/control-plane/scripts/skills/subagent-driven-development/re-review-prompt.md +115 -0
- package/control-plane/scripts/skills/subagent-driven-development/scripts/review-package +53 -0
- package/control-plane/scripts/skills/subagent-driven-development/scripts/sdd-workspace +82 -0
- package/control-plane/scripts/skills/subagent-driven-development/scripts/task-brief +43 -0
- package/control-plane/scripts/skills/subagent-driven-development/task-reviewer-prompt.md +207 -0
- package/control-plane/scripts/skills/systematic-debugging/CREATION-LOG.md +119 -0
- package/control-plane/scripts/skills/systematic-debugging/SKILL.md +283 -0
- package/control-plane/scripts/skills/systematic-debugging/condition-based-waiting-example.ts +158 -0
- package/control-plane/scripts/skills/systematic-debugging/condition-based-waiting.md +115 -0
- package/control-plane/scripts/skills/systematic-debugging/defense-in-depth.md +122 -0
- package/control-plane/scripts/skills/systematic-debugging/find-polluter.sh +72 -0
- package/control-plane/scripts/skills/systematic-debugging/root-cause-tracing.md +169 -0
- package/control-plane/scripts/skills/systematic-debugging/test-academic.md +14 -0
- package/control-plane/scripts/skills/systematic-debugging/test-pressure-1.md +58 -0
- package/control-plane/scripts/skills/systematic-debugging/test-pressure-2.md +68 -0
- package/control-plane/scripts/skills/systematic-debugging/test-pressure-3.md +69 -0
- package/control-plane/scripts/skills/test-driven-development/SKILL.md +330 -0
- package/control-plane/scripts/skills/test-driven-development/writing-good-tests.md +198 -0
- package/control-plane/scripts/skills/theme-factory/LICENSE.txt +202 -0
- package/control-plane/scripts/skills/theme-factory/SKILL.md +59 -0
- package/control-plane/scripts/skills/theme-factory/theme-showcase.pdf +0 -0
- package/control-plane/scripts/skills/theme-factory/themes/arctic-frost.md +19 -0
- package/control-plane/scripts/skills/theme-factory/themes/botanical-garden.md +19 -0
- package/control-plane/scripts/skills/theme-factory/themes/desert-rose.md +19 -0
- package/control-plane/scripts/skills/theme-factory/themes/forest-canopy.md +19 -0
- package/control-plane/scripts/skills/theme-factory/themes/golden-hour.md +19 -0
- package/control-plane/scripts/skills/theme-factory/themes/midnight-galaxy.md +19 -0
- package/control-plane/scripts/skills/theme-factory/themes/modern-minimalist.md +19 -0
- package/control-plane/scripts/skills/theme-factory/themes/ocean-depths.md +19 -0
- package/control-plane/scripts/skills/theme-factory/themes/sunset-boulevard.md +19 -0
- package/control-plane/scripts/skills/theme-factory/themes/tech-innovation.md +19 -0
- package/control-plane/scripts/skills/using-git-worktrees/SKILL.md +167 -0
- package/control-plane/scripts/skills/verification-before-completion/SKILL.md +120 -0
- package/control-plane/scripts/skills/web-artifacts-builder/LICENSE.txt +202 -0
- package/control-plane/scripts/skills/web-artifacts-builder/SKILL.md +74 -0
- package/control-plane/scripts/skills/web-artifacts-builder/scripts/bundle-artifact.sh +54 -0
- package/control-plane/scripts/skills/web-artifacts-builder/scripts/init-artifact.sh +322 -0
- package/control-plane/scripts/skills/web-artifacts-builder/scripts/shadcn-components.tar.gz +0 -0
- package/control-plane/scripts/skills/webapp-testing/LICENSE.txt +202 -0
- package/control-plane/scripts/skills/webapp-testing/SKILL.md +96 -0
- package/control-plane/scripts/skills/webapp-testing/examples/console_logging.py +35 -0
- package/control-plane/scripts/skills/webapp-testing/examples/element_discovery.py +40 -0
- package/control-plane/scripts/skills/webapp-testing/examples/static_html_automation.py +33 -0
- package/control-plane/scripts/skills/webapp-testing/scripts/with_server.py +106 -0
- package/control-plane/scripts/skills/writing-plans/SKILL.md +192 -0
- package/control-plane/scripts/skills/writing-plans/plan-document-reviewer-prompt.md +49 -0
- package/control-plane/scripts/skills/writing-skills/SKILL.md +681 -0
- package/control-plane/scripts/skills/writing-skills/anthropic-best-practices.md +1150 -0
- package/control-plane/scripts/skills/writing-skills/examples/CLAUDE_MD_TESTING.md +189 -0
- package/control-plane/scripts/skills/writing-skills/graphviz-conventions.dot +172 -0
- package/control-plane/scripts/skills/writing-skills/persuasion-principles.md +187 -0
- package/control-plane/scripts/skills/writing-skills/render-graphs.js +169 -0
- package/control-plane/scripts/skills/writing-skills/testing-skills-with-subagents.md +384 -0
- package/control-plane/scripts/smoke-mcp-schemas.mjs +30 -0
- package/control-plane/scripts/surface-config.mjs +45 -0
- package/control-plane/scripts/sync-skills.mjs +370 -0
- package/control-plane/scripts/tool-metrics.mjs +74 -0
- package/control-plane/scripts/tool-risk.mjs +156 -0
- package/control-plane/scripts/tool-surface-stability.mjs +38 -0
- package/control-plane/scripts/upstreams/catalog-cache.mjs +28 -0
- package/control-plane/scripts/upstreams/config.mjs +158 -0
- package/control-plane/scripts/upstreams/diagnostics.mjs +21 -0
- package/control-plane/scripts/upstreams/http-client.mjs +67 -0
- package/control-plane/scripts/upstreams/manager.mjs +535 -0
- package/control-plane/scripts/upstreams/names.mjs +55 -0
- package/control-plane/scripts/upstreams/presets.mjs +60 -0
- package/control-plane/scripts/upstreams/resource-uri.mjs +29 -0
- package/control-plane/scripts/upstreams/stdio-client.mjs +73 -0
- package/control-plane/scripts/workspace-registry.mjs +147 -0
- package/dist/context/authorization.d.ts +5 -0
- package/dist/context/authorization.js +70 -0
- package/dist/context/capture.d.ts +46 -0
- package/dist/context/capture.js +187 -0
- package/dist/context/cli.d.ts +47 -0
- package/dist/context/cli.js +287 -0
- package/dist/context/device-adapter.d.ts +102 -0
- package/dist/context/device-adapter.js +79 -0
- package/dist/context/gateway.d.ts +354 -0
- package/dist/context/gateway.js +50 -0
- package/dist/context/graph.d.ts +63 -0
- package/dist/context/graph.js +214 -0
- package/dist/context/importer.d.ts +8 -0
- package/dist/context/importer.js +69 -0
- package/dist/context/indexer.d.ts +14 -0
- package/dist/context/indexer.js +57 -0
- package/dist/context/migrations/index.d.ts +4 -0
- package/dist/context/migrations/index.js +87 -0
- package/dist/context/redact.d.ts +15 -0
- package/dist/context/redact.js +43 -0
- package/dist/context/repositories.d.ts +9 -0
- package/dist/context/repositories.js +45 -0
- package/dist/context/search.d.ts +63 -0
- package/dist/context/search.js +207 -0
- package/dist/context/service.d.ts +278 -0
- package/dist/context/service.js +160 -0
- package/dist/context/store.d.ts +134 -0
- package/dist/context/store.js +722 -0
- package/dist/context/text.d.ts +4 -0
- package/dist/context/text.js +14 -0
- package/dist/context/tool-contract.d.ts +534 -0
- package/dist/context/tool-contract.js +45 -0
- package/dist/device/core.d.ts +29 -0
- package/dist/device/core.js +66 -0
- package/dist/device/device.d.ts +5 -0
- package/dist/device/device.js +94 -37
- package/dist/device/gateway-channel.d.ts +8 -1
- package/dist/device/gateway-channel.js +51 -3
- package/dist/device/gateway-tool-adapter.d.ts +11 -3
- package/dist/device/gateway-tool-adapter.js +141 -98
- package/dist/device/official-trust.d.ts +12 -0
- package/dist/device/official-trust.js +25 -1
- package/dist/device/runtime-owner.js +9 -1
- package/dist/distribution.d.ts +4 -0
- package/dist/distribution.js +8 -0
- package/dist/handlers/filesystem-handlers.js +53 -37
- package/dist/handlers/search-handlers.d.ts +1 -0
- package/dist/handlers/search-handlers.js +51 -1
- package/dist/log-palace/cli.d.ts +7 -0
- package/dist/log-palace/cli.js +89 -0
- package/dist/log-palace/formats.d.ts +26 -0
- package/dist/log-palace/formats.js +126 -0
- package/dist/log-palace/store.d.ts +129 -0
- package/dist/log-palace/store.js +856 -0
- package/dist/mcp-device.d.ts +1 -1
- package/dist/mcp-device.js +28 -6
- package/dist/npm-scripts/remote.js +1 -0
- package/dist/platform/activity-journal.d.ts +16 -0
- package/dist/platform/activity-journal.js +68 -0
- package/dist/platform/cli.d.ts +1 -0
- package/dist/platform/cli.js +300 -0
- package/dist/platform/coordination-lock.d.ts +45 -0
- package/dist/platform/coordination-lock.js +233 -0
- package/dist/platform/device-runtime.d.ts +16 -0
- package/dist/platform/device-runtime.js +83 -0
- package/dist/platform/knowledge-contract.d.ts +46 -0
- package/dist/platform/knowledge-contract.js +1 -0
- package/dist/platform/knowledge-mcp.d.ts +29 -0
- package/dist/platform/knowledge-mcp.js +95 -0
- package/dist/platform/knowledge-router.d.ts +64 -0
- package/dist/platform/knowledge-router.js +320 -0
- package/dist/platform/plugin-child.d.ts +1 -0
- package/dist/platform/plugin-child.js +115 -0
- package/dist/platform/plugin-contract.d.ts +76 -0
- package/dist/platform/plugin-contract.js +53 -0
- package/dist/platform/plugin-driver.d.ts +8 -0
- package/dist/platform/plugin-driver.js +443 -0
- package/dist/platform/plugin-host.d.ts +88 -0
- package/dist/platform/plugin-host.js +817 -0
- package/dist/platform/plugin-policy.d.ts +3 -0
- package/dist/platform/plugin-policy.js +29 -0
- package/dist/platform/plugin-services.d.ts +14 -0
- package/dist/platform/plugin-services.js +32 -0
- package/dist/platform/process-identity.d.ts +9 -0
- package/dist/platform/process-identity.js +68 -0
- package/dist/platform/runtime-lease.d.ts +4 -0
- package/dist/platform/runtime-lease.js +58 -0
- package/dist/platform/runtime-root.d.ts +9 -0
- package/dist/platform/runtime-root.js +61 -0
- package/dist/platform/state-backup.d.ts +92 -0
- package/dist/platform/state-backup.js +399 -0
- package/dist/plugins/reference/plugin.d.ts +3 -0
- package/dist/plugins/reference/plugin.js +13 -0
- package/dist/search-manager.d.ts +6 -0
- package/dist/search-manager.js +123 -0
- package/dist/server.d.ts +13 -0
- package/dist/server.js +7 -3
- package/dist/terminal-manager.d.ts +16 -0
- package/dist/terminal-manager.js +137 -42
- package/dist/tool-dispatcher.d.ts +11 -0
- package/dist/tool-dispatcher.js +228 -0
- package/dist/tools/edit.js +72 -1
- package/dist/tools/filesystem.d.ts +1 -1
- package/dist/tools/filesystem.js +2 -2
- package/dist/tools/improved-process-tools.js +91 -108
- package/dist/tools/schemas.d.ts +94 -2
- package/dist/tools/schemas.js +20 -6
- package/dist/types.d.ts +8 -0
- package/dist/utils/output-budget.d.ts +6 -0
- package/dist/utils/output-budget.js +15 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +29 -6
- package/skills/mcp-device-context/SKILL.md +40 -0
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
# Claude API - cURL / Raw HTTP
|
|
2
|
+
|
|
3
|
+
Use these examples when the user needs raw HTTP requests or is working in a language without an official SDK.
|
|
4
|
+
|
|
5
|
+
## Setup
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
export ANTHROPIC_API_KEY="your-api-key"
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Basic Message Request
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
curl https://api.anthropic.com/v1/messages \
|
|
17
|
+
-H "Content-Type: application/json" \
|
|
18
|
+
-H "x-api-key: $ANTHROPIC_API_KEY" \
|
|
19
|
+
-H "anthropic-version: 2023-06-01" \
|
|
20
|
+
-d '{
|
|
21
|
+
"model": "claude-opus-5",
|
|
22
|
+
"max_tokens": 16000,
|
|
23
|
+
"messages": [
|
|
24
|
+
{"role": "user", "content": "What is the capital of France?"}
|
|
25
|
+
]
|
|
26
|
+
}'
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Parsing the response
|
|
30
|
+
|
|
31
|
+
Use `jq` to extract fields from the JSON response. Do not use `grep`/`sed` -
|
|
32
|
+
JSON strings can contain any character and regex parsing will break on quotes,
|
|
33
|
+
escapes, or multi-line content.
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
# Capture the response, then extract fields
|
|
37
|
+
response=$(curl -s https://api.anthropic.com/v1/messages \
|
|
38
|
+
-H "Content-Type: application/json" \
|
|
39
|
+
-H "x-api-key: $ANTHROPIC_API_KEY" \
|
|
40
|
+
-H "anthropic-version: 2023-06-01" \
|
|
41
|
+
-d '{"model":"claude-opus-5","max_tokens":16000,"messages":[{"role":"user","content":"Hello"}]}')
|
|
42
|
+
|
|
43
|
+
# Print the first text block (-r strips the JSON quotes)
|
|
44
|
+
echo "$response" | jq -r '.content[0].text'
|
|
45
|
+
|
|
46
|
+
# Read usage fields
|
|
47
|
+
input_tokens=$(echo "$response" | jq -r '.usage.input_tokens')
|
|
48
|
+
output_tokens=$(echo "$response" | jq -r '.usage.output_tokens')
|
|
49
|
+
|
|
50
|
+
# Read stop reason (for tool-use loops)
|
|
51
|
+
stop_reason=$(echo "$response" | jq -r '.stop_reason')
|
|
52
|
+
|
|
53
|
+
# Extract all text blocks (content is an array; filter to type=="text")
|
|
54
|
+
echo "$response" | jq -r '.content[] | select(.type == "text") | .text'
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Streaming (SSE)
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
curl https://api.anthropic.com/v1/messages \
|
|
64
|
+
-H "Content-Type: application/json" \
|
|
65
|
+
-H "x-api-key: $ANTHROPIC_API_KEY" \
|
|
66
|
+
-H "anthropic-version: 2023-06-01" \
|
|
67
|
+
-d '{
|
|
68
|
+
"model": "claude-opus-5",
|
|
69
|
+
"max_tokens": 64000,
|
|
70
|
+
"stream": true,
|
|
71
|
+
"messages": [{"role": "user", "content": "Write a haiku"}]
|
|
72
|
+
}'
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
The response is a stream of Server-Sent Events:
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
event: message_start
|
|
79
|
+
data: {"type":"message_start","message":{"id":"msg_...","type":"message",...}}
|
|
80
|
+
|
|
81
|
+
event: content_block_start
|
|
82
|
+
data: {"type":"content_block_start","index":0,"content_block":{"type":"text","text":""}}
|
|
83
|
+
|
|
84
|
+
event: content_block_delta
|
|
85
|
+
data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"Hello"}}
|
|
86
|
+
|
|
87
|
+
event: content_block_stop
|
|
88
|
+
data: {"type":"content_block_stop","index":0}
|
|
89
|
+
|
|
90
|
+
event: message_delta
|
|
91
|
+
data: {"type":"message_delta","delta":{"stop_reason":"end_turn"},"usage":{"output_tokens":12}}
|
|
92
|
+
|
|
93
|
+
event: message_stop
|
|
94
|
+
data: {"type":"message_stop"}
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
## Tool Use
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
curl https://api.anthropic.com/v1/messages \
|
|
103
|
+
-H "Content-Type: application/json" \
|
|
104
|
+
-H "x-api-key: $ANTHROPIC_API_KEY" \
|
|
105
|
+
-H "anthropic-version: 2023-06-01" \
|
|
106
|
+
-d '{
|
|
107
|
+
"model": "claude-opus-5",
|
|
108
|
+
"max_tokens": 16000,
|
|
109
|
+
"tools": [{
|
|
110
|
+
"name": "get_weather",
|
|
111
|
+
"description": "Get current weather for a location",
|
|
112
|
+
"input_schema": {
|
|
113
|
+
"type": "object",
|
|
114
|
+
"properties": {
|
|
115
|
+
"location": {"type": "string", "description": "City name"}
|
|
116
|
+
},
|
|
117
|
+
"required": ["location"]
|
|
118
|
+
}
|
|
119
|
+
}],
|
|
120
|
+
"messages": [{"role": "user", "content": "What is the weather in Paris?"}]
|
|
121
|
+
}'
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
When Claude responds with a `tool_use` block, send the result back:
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
curl https://api.anthropic.com/v1/messages \
|
|
128
|
+
-H "Content-Type: application/json" \
|
|
129
|
+
-H "x-api-key: $ANTHROPIC_API_KEY" \
|
|
130
|
+
-H "anthropic-version: 2023-06-01" \
|
|
131
|
+
-d '{
|
|
132
|
+
"model": "claude-opus-5",
|
|
133
|
+
"max_tokens": 16000,
|
|
134
|
+
"tools": [{
|
|
135
|
+
"name": "get_weather",
|
|
136
|
+
"description": "Get current weather for a location",
|
|
137
|
+
"input_schema": {
|
|
138
|
+
"type": "object",
|
|
139
|
+
"properties": {
|
|
140
|
+
"location": {"type": "string", "description": "City name"}
|
|
141
|
+
},
|
|
142
|
+
"required": ["location"]
|
|
143
|
+
}
|
|
144
|
+
}],
|
|
145
|
+
"messages": [
|
|
146
|
+
{"role": "user", "content": "What is the weather in Paris?"},
|
|
147
|
+
{"role": "assistant", "content": [
|
|
148
|
+
{"type": "text", "text": "Let me check the weather."},
|
|
149
|
+
{"type": "tool_use", "id": "toolu_abc123", "name": "get_weather", "input": {"location": "Paris"}}
|
|
150
|
+
]},
|
|
151
|
+
{"role": "user", "content": [
|
|
152
|
+
{"type": "tool_result", "tool_use_id": "toolu_abc123", "content": "72°F and sunny"}
|
|
153
|
+
]}
|
|
154
|
+
]
|
|
155
|
+
}'
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
## Prompt Caching
|
|
161
|
+
|
|
162
|
+
Put `cache_control` on the last block of the stable prefix. See `shared/prompt-caching.md` for placement patterns and the silent-invalidator audit checklist.
|
|
163
|
+
|
|
164
|
+
```bash
|
|
165
|
+
curl https://api.anthropic.com/v1/messages \
|
|
166
|
+
-H "Content-Type: application/json" \
|
|
167
|
+
-H "x-api-key: $ANTHROPIC_API_KEY" \
|
|
168
|
+
-H "anthropic-version: 2023-06-01" \
|
|
169
|
+
-d '{
|
|
170
|
+
"model": "claude-opus-5",
|
|
171
|
+
"max_tokens": 16000,
|
|
172
|
+
"system": [
|
|
173
|
+
{"type": "text", "text": "<large shared prompt...>", "cache_control": {"type": "ephemeral"}}
|
|
174
|
+
],
|
|
175
|
+
"messages": [{"role": "user", "content": "Summarize the key points"}]
|
|
176
|
+
}'
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
For 1-hour TTL: `"cache_control": {"type": "ephemeral", "ttl": "1h"}`. Top-level `"cache_control"` on the request body auto-places on the last cacheable block. Verify hits via the response `usage.cache_creation_input_tokens` / `usage.cache_read_input_tokens` fields.
|
|
180
|
+
|
|
181
|
+
---
|
|
182
|
+
|
|
183
|
+
## Extended Thinking
|
|
184
|
+
|
|
185
|
+
> **Fable 5, Claude Opus 5, Opus 4.8, Opus 4.7, Opus 4.6, and Sonnet 4.6:** Use adaptive thinking. `budget_tokens` is removed on Fable 5, Claude Opus 5, Opus 4.8, and 4.7 (400 if sent); deprecated on Opus 4.6 and Sonnet 4.6.
|
|
186
|
+
> **Claude Opus 5:** thinking is on by default - omitting `"thinking"` runs adaptive (`{"type": "adaptive"}` is equivalent), unlike Opus 4.8/4.7 where omitting it meant no thinking. `{"type": "disabled"}` is accepted only at effort `high` or lower; pairing it with `xhigh`/`max` returns a 400.
|
|
187
|
+
> **Older models:** Use `"type": "enabled"` with `"budget_tokens": N` (must be < `max_tokens`, min 1024).
|
|
188
|
+
|
|
189
|
+
```bash
|
|
190
|
+
# Fable 5 / Claude Opus 5 / Opus 4.8 / 4.7 / 4.6: adaptive thinking (recommended)
|
|
191
|
+
curl https://api.anthropic.com/v1/messages \
|
|
192
|
+
-H "Content-Type: application/json" \
|
|
193
|
+
-H "x-api-key: $ANTHROPIC_API_KEY" \
|
|
194
|
+
-H "anthropic-version: 2023-06-01" \
|
|
195
|
+
-d '{
|
|
196
|
+
"model": "claude-opus-5",
|
|
197
|
+
"max_tokens": 16000,
|
|
198
|
+
"thinking": {
|
|
199
|
+
"type": "adaptive",
|
|
200
|
+
"display": "summarized"
|
|
201
|
+
},
|
|
202
|
+
"output_config": {
|
|
203
|
+
"effort": "high"
|
|
204
|
+
},
|
|
205
|
+
"messages": [{"role": "user", "content": "Solve this step by step..."}]
|
|
206
|
+
}'
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
---
|
|
210
|
+
|
|
211
|
+
## Refusal Fallbacks (Claude Fable 5.1) - opt in by default
|
|
212
|
+
|
|
213
|
+
On `claude-fable-5-1`, safety classifiers may decline a request (HTTP 200 with `stop_reason: "refusal"`). Fallbacks are **opt-in**: without them the request simply stops. Include the `fallbacks` parameter and its beta header by default - on a policy decline the API re-runs the same request on the fallback model inside the same call. A decline before any output isn't billed (a mid-stream decline bills the streamed partial); the rescue bills at the fallback model's own rates.
|
|
214
|
+
|
|
215
|
+
```bash
|
|
216
|
+
response=$(curl -s https://api.anthropic.com/v1/messages \
|
|
217
|
+
-H "Content-Type: application/json" \
|
|
218
|
+
-H "x-api-key: $ANTHROPIC_API_KEY" \
|
|
219
|
+
-H "anthropic-version: 2023-06-01" \
|
|
220
|
+
-H "anthropic-beta: server-side-fallback-2026-06-01" \
|
|
221
|
+
-d '{
|
|
222
|
+
"model": "claude-fable-5-1",
|
|
223
|
+
"max_tokens": 16000,
|
|
224
|
+
"fallbacks": [{"model": "claude-opus-4-8"}],
|
|
225
|
+
"messages": [{"role": "user", "content": "Hello"}]
|
|
226
|
+
}')
|
|
227
|
+
|
|
228
|
+
# Which model produced the message
|
|
229
|
+
echo "$response" | jq -r '.model'
|
|
230
|
+
|
|
231
|
+
# Refusal on the final response means the whole chain refused
|
|
232
|
+
echo "$response" | jq -r '.stop_reason'
|
|
233
|
+
|
|
234
|
+
# Switch points: one fallback block per model that ran and declined this turn
|
|
235
|
+
echo "$response" | jq -r '.content[] | select(.type == "fallback") | "\(.from.model) declined; \(.to.model) continued"'
|
|
236
|
+
|
|
237
|
+
# Served-by signal - covers sticky turns, which carry no fallback block.
|
|
238
|
+
# Pair with stop_reason: the fallback model can itself refuse.
|
|
239
|
+
if [ "$(echo "$response" | jq -r '.stop_reason')" != "refusal" ] && \
|
|
240
|
+
echo "$response" | jq -e '[.usage.iterations[]? | select(.type == "fallback_message")] | length > 0' > /dev/null; then
|
|
241
|
+
echo "fallback model served this turn"
|
|
242
|
+
fi
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
The header must be exactly `server-side-fallback-2026-06-01` **for this array form**; the newer `fallbacks: "default"` scalar form uses `server-side-fallback-2026-07-01` instead (see `shared/model-migration.md` -> Migrating to Claude Opus 5 -> New API features), and pairing either header with the other form returns a 400. The parameter is rejected on the Batches API and unavailable on Amazon Bedrock, Vertex AI, and Microsoft Foundry. Full semantics (sticky routing, billing, streaming, echoing fallback turns back): `shared/model-migration.md` -> Migrating to Claude Fable 5.1 -> `refusal` stop reason.
|
|
246
|
+
|
|
247
|
+
---
|
|
248
|
+
|
|
249
|
+
## Required Headers
|
|
250
|
+
|
|
251
|
+
| Header | Value | Description |
|
|
252
|
+
| ------------------- | ------------------ | -------------------------- |
|
|
253
|
+
| `Content-Type` | `application/json` | Required |
|
|
254
|
+
| `x-api-key` | Your API key | Authentication |
|
|
255
|
+
| `anthropic-version` | `2023-06-01` | API version |
|
|
256
|
+
| `anthropic-beta` | Beta feature IDs | Required for beta features |
|
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
# Managed Agents - cURL / Raw HTTP
|
|
2
|
+
|
|
3
|
+
Use these examples when the user needs raw HTTP requests or is working without an SDK.
|
|
4
|
+
|
|
5
|
+
## Setup
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
export ANTHROPIC_API_KEY="your-api-key"
|
|
9
|
+
|
|
10
|
+
# Common headers
|
|
11
|
+
HEADERS=(
|
|
12
|
+
-H "Content-Type: application/json"
|
|
13
|
+
-H "x-api-key: $ANTHROPIC_API_KEY"
|
|
14
|
+
-H "anthropic-version: 2023-06-01"
|
|
15
|
+
-H "anthropic-beta: managed-agents-2026-04-01"
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Create an Environment
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
curl -X POST https://api.anthropic.com/v1/environments \
|
|
25
|
+
"${HEADERS[@]}" \
|
|
26
|
+
-d '{
|
|
27
|
+
"name": "my-dev-env",
|
|
28
|
+
"config": {
|
|
29
|
+
"type": "cloud",
|
|
30
|
+
"networking": { "type": "unrestricted" }
|
|
31
|
+
}
|
|
32
|
+
}'
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### With restricted networking
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
curl -X POST https://api.anthropic.com/v1/environments \
|
|
39
|
+
"${HEADERS[@]}" \
|
|
40
|
+
-d '{
|
|
41
|
+
"name": "restricted-env",
|
|
42
|
+
"config": {
|
|
43
|
+
"type": "cloud",
|
|
44
|
+
"networking": {
|
|
45
|
+
"type": "limited",
|
|
46
|
+
"allow_package_managers": true,
|
|
47
|
+
"allow_mcp_servers": true,
|
|
48
|
+
"allowed_hosts": ["api.example.com"]
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}'
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## Create an Agent (required first step)
|
|
57
|
+
|
|
58
|
+
> Warning: **There is no inline agent config.** Under `managed-agents-2026-04-01`, `model`/`system`/`tools` are top-level fields on `POST /v1/agents`, not on the session. Always create the agent first - the session only takes `"agent": {"type": "agent", "id": "..."}`.
|
|
59
|
+
|
|
60
|
+
### Minimal
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
# 1. Create the agent
|
|
64
|
+
curl -X POST https://api.anthropic.com/v1/agents \
|
|
65
|
+
"${HEADERS[@]}" \
|
|
66
|
+
-d '{
|
|
67
|
+
"name": "Coding Assistant",
|
|
68
|
+
"model": "claude-opus-5",
|
|
69
|
+
"tools": [{ "type": "agent_toolset_20260401" }]
|
|
70
|
+
}'
|
|
71
|
+
# -> { "id": "agent_abc123", ... }
|
|
72
|
+
|
|
73
|
+
# 2. Start a session
|
|
74
|
+
curl -X POST https://api.anthropic.com/v1/sessions \
|
|
75
|
+
"${HEADERS[@]}" \
|
|
76
|
+
-d '{
|
|
77
|
+
"agent": { "type": "agent", "id": "agent_abc123", "version": 1 },
|
|
78
|
+
"environment_id": "env_abc123"
|
|
79
|
+
}'
|
|
80
|
+
# -> { "id": "sesn_abc123", ... }
|
|
81
|
+
# Trace: https://platform.claude.com/workspaces/default/sessions/sesn_abc123 (swap 'default' for your workspace ID if the API key is not in the Default workspace)
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### With system prompt, custom tools, and GitHub repo
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
# 1. Create the agent
|
|
88
|
+
curl -X POST https://api.anthropic.com/v1/agents \
|
|
89
|
+
"${HEADERS[@]}" \
|
|
90
|
+
-d '{
|
|
91
|
+
"name": "Code Reviewer",
|
|
92
|
+
"model": "claude-opus-5",
|
|
93
|
+
"system": "You are a senior code reviewer. Be thorough and constructive.",
|
|
94
|
+
"tools": [
|
|
95
|
+
{ "type": "agent_toolset_20260401" },
|
|
96
|
+
{
|
|
97
|
+
"type": "custom",
|
|
98
|
+
"name": "run_linter",
|
|
99
|
+
"description": "Run the project linter on a file",
|
|
100
|
+
"input_schema": {
|
|
101
|
+
"type": "object",
|
|
102
|
+
"properties": {
|
|
103
|
+
"file_path": { "type": "string", "description": "Path to lint" }
|
|
104
|
+
},
|
|
105
|
+
"required": ["file_path"]
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
}'
|
|
110
|
+
|
|
111
|
+
# 2. Start a session with the repo mounted
|
|
112
|
+
curl -X POST https://api.anthropic.com/v1/sessions \
|
|
113
|
+
"${HEADERS[@]}" \
|
|
114
|
+
-d '{
|
|
115
|
+
"agent": { "type": "agent", "id": "agent_abc123", "version": 1 },
|
|
116
|
+
"environment_id": "env_abc123",
|
|
117
|
+
"title": "Code review session",
|
|
118
|
+
"resources": [
|
|
119
|
+
{
|
|
120
|
+
"type": "github_repository",
|
|
121
|
+
"url": "https://github.com/owner/repo",
|
|
122
|
+
"mount_path": "/workspace/repo",
|
|
123
|
+
"authorization_token": "ghp_...",
|
|
124
|
+
"branch": "feature-branch"
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
}'
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### With a session budget
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
# Create a session with a hard $25.00 spend cap (list-priced; USD only; create-only).
|
|
134
|
+
# amount is in minor units (cents) as an integer string: "2500" = $25.00
|
|
135
|
+
curl -X POST https://api.anthropic.com/v1/sessions \
|
|
136
|
+
"${HEADERS[@]}" \
|
|
137
|
+
-d '{
|
|
138
|
+
"agent": { "type": "agent", "id": "agent_abc123" },
|
|
139
|
+
"environment_id": "env_abc123",
|
|
140
|
+
"budget": {
|
|
141
|
+
"type": "limit",
|
|
142
|
+
"max_list_cost": { "amount": "2500", "currency": "USD" }
|
|
143
|
+
}
|
|
144
|
+
}'
|
|
145
|
+
|
|
146
|
+
# Change the cap - higher or lower, but it must exceed the consumed list cost.
|
|
147
|
+
# An accepted update resumes work paused at budget_reached
|
|
148
|
+
curl -X POST https://api.anthropic.com/v1/sessions/$SESSION_ID \
|
|
149
|
+
"${HEADERS[@]}" \
|
|
150
|
+
-d '{ "budget": { "type": "limit", "max_list_cost": { "amount": "4000", "currency": "USD" } } }'
|
|
151
|
+
|
|
152
|
+
# Remove the cap entirely - one-way; a removed budget can never be re-added
|
|
153
|
+
curl -X POST https://api.anthropic.com/v1/sessions/$SESSION_ID \
|
|
154
|
+
"${HEADERS[@]}" \
|
|
155
|
+
-d '{ "budget": null }'
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
See `shared/managed-agents-core.md` § Session budgets for list-cost composition, the settle-event allowlist at the cap, and multiagent semantics.
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
## Send a User Message
|
|
163
|
+
|
|
164
|
+
```bash
|
|
165
|
+
curl -X POST https://api.anthropic.com/v1/sessions/$SESSION_ID/events \
|
|
166
|
+
"${HEADERS[@]}" \
|
|
167
|
+
-d '{
|
|
168
|
+
"events": [
|
|
169
|
+
{
|
|
170
|
+
"type": "user.message",
|
|
171
|
+
"content": [{ "type": "text", "text": "Review the auth module for security issues" }]
|
|
172
|
+
}
|
|
173
|
+
]
|
|
174
|
+
}'
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
---
|
|
178
|
+
|
|
179
|
+
## Stream Events (SSE)
|
|
180
|
+
|
|
181
|
+
```bash
|
|
182
|
+
curl -N https://api.anthropic.com/v1/sessions/$SESSION_ID/events/stream \
|
|
183
|
+
"${HEADERS[@]}"
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
Response format:
|
|
187
|
+
|
|
188
|
+
```
|
|
189
|
+
event: session.status_running
|
|
190
|
+
data: {"type":"session.status_running","id":"sevt_...","processed_at":"..."}
|
|
191
|
+
|
|
192
|
+
event: agent.message
|
|
193
|
+
data: {"type":"agent.message","id":"sevt_...","content":[{"type":"text","text":"I'll review..."}],"processed_at":"..."}
|
|
194
|
+
|
|
195
|
+
event: session.status_idle
|
|
196
|
+
data: {"type":"session.status_idle","id":"sevt_...","processed_at":"..."}
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
---
|
|
200
|
+
|
|
201
|
+
## Poll Events
|
|
202
|
+
|
|
203
|
+
```bash
|
|
204
|
+
# Get all events
|
|
205
|
+
curl https://api.anthropic.com/v1/sessions/$SESSION_ID/events \
|
|
206
|
+
"${HEADERS[@]}"
|
|
207
|
+
|
|
208
|
+
# Paginated - get next page of events
|
|
209
|
+
curl "https://api.anthropic.com/v1/sessions/$SESSION_ID/events?page=page_abc123" \
|
|
210
|
+
"${HEADERS[@]}"
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
---
|
|
214
|
+
|
|
215
|
+
## Provide Custom Tool Result
|
|
216
|
+
|
|
217
|
+
When the agent calls a custom tool, send the result back:
|
|
218
|
+
|
|
219
|
+
```bash
|
|
220
|
+
curl -X POST https://api.anthropic.com/v1/sessions/$SESSION_ID/events \
|
|
221
|
+
"${HEADERS[@]}" \
|
|
222
|
+
-d '{
|
|
223
|
+
"events": [
|
|
224
|
+
{
|
|
225
|
+
"type": "user.custom_tool_result",
|
|
226
|
+
"custom_tool_use_id": "sevt_abc123",
|
|
227
|
+
"content": [{ "type": "text", "text": "No linting errors found." }]
|
|
228
|
+
}
|
|
229
|
+
]
|
|
230
|
+
}'
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
---
|
|
234
|
+
|
|
235
|
+
## Interrupt a Running Session
|
|
236
|
+
|
|
237
|
+
```bash
|
|
238
|
+
curl -X POST https://api.anthropic.com/v1/sessions/$SESSION_ID/events \
|
|
239
|
+
"${HEADERS[@]}" \
|
|
240
|
+
-d '{
|
|
241
|
+
"events": [
|
|
242
|
+
{
|
|
243
|
+
"type": "user.interrupt"
|
|
244
|
+
}
|
|
245
|
+
]
|
|
246
|
+
}'
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
---
|
|
250
|
+
|
|
251
|
+
## Get Session Details
|
|
252
|
+
|
|
253
|
+
```bash
|
|
254
|
+
curl https://api.anthropic.com/v1/sessions/$SESSION_ID \
|
|
255
|
+
"${HEADERS[@]}"
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
---
|
|
259
|
+
|
|
260
|
+
## List Sessions
|
|
261
|
+
|
|
262
|
+
```bash
|
|
263
|
+
curl https://api.anthropic.com/v1/sessions \
|
|
264
|
+
"${HEADERS[@]}"
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
---
|
|
268
|
+
|
|
269
|
+
## Delete a Session
|
|
270
|
+
|
|
271
|
+
```bash
|
|
272
|
+
curl -X DELETE https://api.anthropic.com/v1/sessions/$SESSION_ID \
|
|
273
|
+
"${HEADERS[@]}"
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
---
|
|
277
|
+
|
|
278
|
+
## Upload a File
|
|
279
|
+
|
|
280
|
+
```bash
|
|
281
|
+
curl -X POST https://api.anthropic.com/v1/files \
|
|
282
|
+
-H "x-api-key: $ANTHROPIC_API_KEY" \
|
|
283
|
+
-H "anthropic-version: 2023-06-01" \
|
|
284
|
+
-H "anthropic-beta: files-api-2025-04-14" \
|
|
285
|
+
-F "file=@path/to/file.txt" \
|
|
286
|
+
-F "purpose=agent"
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
---
|
|
290
|
+
|
|
291
|
+
## List and Download Session Files
|
|
292
|
+
|
|
293
|
+
List files the agent wrote to `/mnt/session/outputs/` during a session, then download them.
|
|
294
|
+
|
|
295
|
+
```bash
|
|
296
|
+
# List files associated with a session
|
|
297
|
+
curl "https://api.anthropic.com/v1/files?scope_id=$SESSION_ID" \
|
|
298
|
+
-H "x-api-key: $ANTHROPIC_API_KEY" \
|
|
299
|
+
-H "anthropic-version: 2023-06-01" \
|
|
300
|
+
-H "anthropic-beta: files-api-2025-04-14,managed-agents-2026-04-01"
|
|
301
|
+
|
|
302
|
+
# Download a specific file
|
|
303
|
+
curl "https://api.anthropic.com/v1/files/$FILE_ID/content" \
|
|
304
|
+
-H "x-api-key: $ANTHROPIC_API_KEY" \
|
|
305
|
+
-H "anthropic-version: 2023-06-01" \
|
|
306
|
+
-H "anthropic-beta: files-api-2025-04-14,managed-agents-2026-04-01" \
|
|
307
|
+
-o downloaded_file.txt
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
---
|
|
311
|
+
|
|
312
|
+
## List Agents
|
|
313
|
+
|
|
314
|
+
```bash
|
|
315
|
+
curl https://api.anthropic.com/v1/agents \
|
|
316
|
+
"${HEADERS[@]}"
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
---
|
|
320
|
+
|
|
321
|
+
## MCP Server Integration
|
|
322
|
+
|
|
323
|
+
```bash
|
|
324
|
+
# 1. Agent declares MCP server (no auth here - auth goes in a vault)
|
|
325
|
+
curl -X POST https://api.anthropic.com/v1/agents \
|
|
326
|
+
"${HEADERS[@]}" \
|
|
327
|
+
-d '{
|
|
328
|
+
"name": "MCP Agent",
|
|
329
|
+
"model": "claude-opus-5",
|
|
330
|
+
"mcp_servers": [
|
|
331
|
+
{ "type": "url", "name": "my-tools", "url": "https://my-mcp-server.example.com/sse" }
|
|
332
|
+
],
|
|
333
|
+
"tools": [
|
|
334
|
+
{ "type": "agent_toolset_20260401" },
|
|
335
|
+
{ "type": "mcp_toolset", "mcp_server_name": "my-tools" }
|
|
336
|
+
]
|
|
337
|
+
}'
|
|
338
|
+
|
|
339
|
+
# 2. Session attaches vault containing credentials for that MCP server URL
|
|
340
|
+
curl -X POST https://api.anthropic.com/v1/sessions \
|
|
341
|
+
"${HEADERS[@]}" \
|
|
342
|
+
-d '{
|
|
343
|
+
"agent": "agent_abc123",
|
|
344
|
+
"environment_id": "env_abc123",
|
|
345
|
+
"vault_ids": ["vlt_abc123"]
|
|
346
|
+
}'
|
|
347
|
+
```
|
|
348
|
+
|
|
349
|
+
See `shared/managed-agents-tools.md` §Vaults for creating vaults and adding credentials.
|
|
350
|
+
|
|
351
|
+
---
|
|
352
|
+
|
|
353
|
+
## Tool Configuration
|
|
354
|
+
|
|
355
|
+
```bash
|
|
356
|
+
curl -X POST https://api.anthropic.com/v1/agents \
|
|
357
|
+
"${HEADERS[@]}" \
|
|
358
|
+
-d '{
|
|
359
|
+
"name": "Restricted Agent",
|
|
360
|
+
"model": "claude-opus-5",
|
|
361
|
+
"tools": [
|
|
362
|
+
{
|
|
363
|
+
"type": "agent_toolset_20260401",
|
|
364
|
+
"default_config": { "enabled": true },
|
|
365
|
+
"configs": [
|
|
366
|
+
{ "name": "bash", "enabled": false }
|
|
367
|
+
]
|
|
368
|
+
}
|
|
369
|
+
]
|
|
370
|
+
}'
|
|
371
|
+
```
|