@useactor/core 0.1.0 → 0.2.3
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/dist/auth/google-auth.d.ts +75 -0
- package/dist/auth/google-auth.d.ts.map +1 -0
- package/dist/auth/google-auth.js +447 -0
- package/dist/auth/google-auth.js.map +1 -0
- package/dist/auth/oauth-callback-page.d.ts +4 -0
- package/dist/auth/oauth-callback-page.d.ts.map +1 -0
- package/dist/auth/oauth-callback-page.js +131 -0
- package/dist/auth/oauth-callback-page.js.map +1 -0
- package/dist/auth/openai-auth.d.ts +48 -0
- package/dist/auth/openai-auth.d.ts.map +1 -0
- package/dist/auth/openai-auth.js +350 -0
- package/dist/auth/openai-auth.js.map +1 -0
- package/dist/{artifacts.d.ts → events/artifacts.d.ts} +1 -1
- package/dist/events/artifacts.d.ts.map +1 -0
- package/dist/events/artifacts.js.map +1 -0
- package/dist/{events.d.ts → events/events.d.ts} +16 -2
- package/dist/events/events.d.ts.map +1 -0
- package/dist/{events.js → events/events.js} +3 -0
- package/dist/events/events.js.map +1 -0
- package/dist/{feedback.d.ts → events/feedback.d.ts} +1 -1
- package/dist/events/feedback.d.ts.map +1 -0
- package/dist/events/feedback.js.map +1 -0
- package/dist/{local-event-logger.d.ts → events/local-event-logger.d.ts} +1 -1
- package/dist/events/local-event-logger.d.ts.map +1 -0
- package/dist/{local-event-logger.js → events/local-event-logger.js} +11 -0
- package/dist/events/local-event-logger.js.map +1 -0
- package/dist/{local-event-schema.d.ts → events/local-event-schema.d.ts} +10 -3
- package/dist/events/local-event-schema.d.ts.map +1 -0
- package/dist/events/local-event-schema.js.map +1 -0
- package/dist/index.d.ts +59 -35
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +59 -35
- package/dist/index.js.map +1 -1
- package/dist/integrations/built-in-integrations.d.ts +2 -0
- package/dist/integrations/built-in-integrations.d.ts.map +1 -0
- package/dist/integrations/built-in-integrations.js +2 -0
- package/dist/integrations/built-in-integrations.js.map +1 -0
- package/dist/integrations/first-party-cli-integration.d.ts +2 -0
- package/dist/integrations/first-party-cli-integration.d.ts.map +1 -0
- package/dist/integrations/first-party-cli-integration.js +2 -0
- package/dist/integrations/first-party-cli-integration.js.map +1 -0
- package/dist/integrations/google-workspace-integration.d.ts +2 -0
- package/dist/integrations/google-workspace-integration.d.ts.map +1 -0
- package/dist/integrations/google-workspace-integration.js +2 -0
- package/dist/integrations/google-workspace-integration.js.map +1 -0
- package/dist/integrations/integrations.d.ts +2 -0
- package/dist/integrations/integrations.d.ts.map +1 -0
- package/dist/integrations/integrations.js +2 -0
- package/dist/integrations/integrations.js.map +1 -0
- package/dist/integrations/monoid-integration.d.ts +2 -0
- package/dist/integrations/monoid-integration.d.ts.map +1 -0
- package/dist/integrations/monoid-integration.js +2 -0
- package/dist/integrations/monoid-integration.js.map +1 -0
- package/dist/integrations/pilfer-integration.d.ts +2 -0
- package/dist/integrations/pilfer-integration.d.ts.map +1 -0
- package/dist/integrations/pilfer-integration.js +2 -0
- package/dist/integrations/pilfer-integration.js.map +1 -0
- package/dist/integrations/wyrdos-integration.d.ts +2 -0
- package/dist/integrations/wyrdos-integration.d.ts.map +1 -0
- package/dist/integrations/wyrdos-integration.js +2 -0
- package/dist/integrations/wyrdos-integration.js.map +1 -0
- package/dist/keybindings/shell-keybindings.d.ts +139 -0
- package/dist/keybindings/shell-keybindings.d.ts.map +1 -0
- package/dist/keybindings/shell-keybindings.js +453 -0
- package/dist/keybindings/shell-keybindings.js.map +1 -0
- package/dist/plugins/built-in-integrations.d.ts +3 -0
- package/dist/plugins/built-in-integrations.d.ts.map +1 -0
- package/dist/plugins/built-in-integrations.js +13 -0
- package/dist/plugins/built-in-integrations.js.map +1 -0
- package/dist/plugins/first-party-cli-integration.d.ts +62 -0
- package/dist/plugins/first-party-cli-integration.d.ts.map +1 -0
- package/dist/plugins/first-party-cli-integration.js +524 -0
- package/dist/plugins/first-party-cli-integration.js.map +1 -0
- package/dist/plugins/google-docs.d.ts +30 -0
- package/dist/plugins/google-docs.d.ts.map +1 -0
- package/dist/plugins/google-docs.js +487 -0
- package/dist/plugins/google-docs.js.map +1 -0
- package/dist/plugins/google-drive.d.ts +84 -0
- package/dist/plugins/google-drive.d.ts.map +1 -0
- package/dist/plugins/google-drive.js +307 -0
- package/dist/plugins/google-drive.js.map +1 -0
- package/dist/plugins/google-sheets.d.ts +122 -0
- package/dist/plugins/google-sheets.d.ts.map +1 -0
- package/dist/plugins/google-sheets.js +290 -0
- package/dist/plugins/google-sheets.js.map +1 -0
- package/dist/plugins/google-slides.d.ts +125 -0
- package/dist/plugins/google-slides.d.ts.map +1 -0
- package/dist/plugins/google-slides.js +285 -0
- package/dist/plugins/google-slides.js.map +1 -0
- package/dist/plugins/google-workspace-api.d.ts +16 -0
- package/dist/plugins/google-workspace-api.d.ts.map +1 -0
- package/dist/plugins/google-workspace-api.js +42 -0
- package/dist/plugins/google-workspace-api.js.map +1 -0
- package/dist/plugins/google-workspace-integration.d.ts +22 -0
- package/dist/plugins/google-workspace-integration.d.ts.map +1 -0
- package/dist/plugins/google-workspace-integration.js +1353 -0
- package/dist/plugins/google-workspace-integration.js.map +1 -0
- package/dist/plugins/google-workspace-oauth.d.ts +80 -0
- package/dist/plugins/google-workspace-oauth.d.ts.map +1 -0
- package/dist/plugins/google-workspace-oauth.js +187 -0
- package/dist/plugins/google-workspace-oauth.js.map +1 -0
- package/dist/plugins/monoid-integration.d.ts +11 -0
- package/dist/plugins/monoid-integration.d.ts.map +1 -0
- package/dist/plugins/monoid-integration.js +14 -0
- package/dist/plugins/monoid-integration.js.map +1 -0
- package/dist/plugins/pilfer-integration.d.ts +10 -0
- package/dist/plugins/pilfer-integration.d.ts.map +1 -0
- package/dist/plugins/pilfer-integration.js +13 -0
- package/dist/plugins/pilfer-integration.js.map +1 -0
- package/dist/plugins/plugins.d.ts +78 -0
- package/dist/plugins/plugins.d.ts.map +1 -0
- package/dist/plugins/plugins.js +81 -0
- package/dist/plugins/plugins.js.map +1 -0
- package/dist/plugins/wyrdos-integration.d.ts +11 -0
- package/dist/plugins/wyrdos-integration.d.ts.map +1 -0
- package/dist/plugins/wyrdos-integration.js +14 -0
- package/dist/plugins/wyrdos-integration.js.map +1 -0
- package/dist/{ai-sdk-provider.d.ts → providers/ai-sdk-provider.d.ts} +2 -2
- package/dist/providers/ai-sdk-provider.d.ts.map +1 -0
- package/dist/{ai-sdk-provider.js → providers/ai-sdk-provider.js} +132 -37
- package/dist/providers/ai-sdk-provider.js.map +1 -0
- package/dist/providers/api-key-providers.d.ts +25 -0
- package/dist/providers/api-key-providers.d.ts.map +1 -0
- package/dist/providers/api-key-providers.js +67 -0
- package/dist/providers/api-key-providers.js.map +1 -0
- package/dist/providers/definitions/anthropic-provider.d.ts +421 -0
- package/dist/providers/definitions/anthropic-provider.d.ts.map +1 -0
- package/dist/providers/definitions/anthropic-provider.js +204 -0
- package/dist/providers/definitions/anthropic-provider.js.map +1 -0
- package/dist/{codex-oauth-provider.d.ts → providers/definitions/codex-oauth-provider.d.ts} +2 -2
- package/dist/providers/definitions/codex-oauth-provider.d.ts.map +1 -0
- package/dist/{codex-oauth-provider.js → providers/definitions/codex-oauth-provider.js} +1 -1
- package/dist/providers/definitions/codex-oauth-provider.js.map +1 -0
- package/dist/providers/definitions/deepseek-provider.d.ts +25 -0
- package/dist/providers/definitions/deepseek-provider.d.ts.map +1 -0
- package/dist/providers/definitions/deepseek-provider.js +28 -0
- package/dist/providers/definitions/deepseek-provider.js.map +1 -0
- package/dist/providers/definitions/google-ai-oauth.d.ts +79 -0
- package/dist/providers/definitions/google-ai-oauth.d.ts.map +1 -0
- package/dist/providers/definitions/google-ai-oauth.js +177 -0
- package/dist/providers/definitions/google-ai-oauth.js.map +1 -0
- package/dist/providers/definitions/google-provider.d.ts +166 -0
- package/dist/providers/definitions/google-provider.d.ts.map +1 -0
- package/dist/providers/definitions/google-provider.js +93 -0
- package/dist/providers/definitions/google-provider.js.map +1 -0
- package/dist/providers/definitions/moonshot-provider.d.ts +28 -0
- package/dist/providers/definitions/moonshot-provider.d.ts.map +1 -0
- package/dist/providers/definitions/moonshot-provider.js +34 -0
- package/dist/providers/definitions/moonshot-provider.js.map +1 -0
- package/dist/{openai-oauth.d.ts → providers/definitions/openai-oauth.d.ts} +1 -1
- package/dist/providers/definitions/openai-oauth.d.ts.map +1 -0
- package/dist/providers/definitions/openai-oauth.js.map +1 -0
- package/dist/providers/definitions/openai-provider.d.ts +177 -0
- package/dist/providers/definitions/openai-provider.d.ts.map +1 -0
- package/dist/{model-catalog.js → providers/definitions/openai-provider.js} +33 -21
- package/dist/providers/definitions/openai-provider.js.map +1 -0
- package/dist/providers/definitions/perplexity-provider.d.ts +34 -0
- package/dist/providers/definitions/perplexity-provider.d.ts.map +1 -0
- package/dist/providers/definitions/perplexity-provider.js +46 -0
- package/dist/providers/definitions/perplexity-provider.js.map +1 -0
- package/dist/providers/definitions/xai-provider.d.ts +68 -0
- package/dist/providers/definitions/xai-provider.d.ts.map +1 -0
- package/dist/providers/definitions/xai-provider.js +102 -0
- package/dist/providers/definitions/xai-provider.js.map +1 -0
- package/dist/{mock-provider.d.ts → providers/mock-provider.d.ts} +1 -1
- package/dist/providers/mock-provider.d.ts.map +1 -0
- package/dist/providers/mock-provider.js.map +1 -0
- package/dist/{model-catalog.d.ts → providers/model-catalog.d.ts} +2 -2
- package/dist/providers/model-catalog.d.ts.map +1 -0
- package/dist/providers/model-catalog.js +31 -0
- package/dist/providers/model-catalog.js.map +1 -0
- package/dist/providers/provider-failures.d.ts +14 -0
- package/dist/providers/provider-failures.d.ts.map +1 -0
- package/dist/providers/provider-failures.js +146 -0
- package/dist/providers/provider-failures.js.map +1 -0
- package/dist/providers/provider-status.d.ts +24 -0
- package/dist/providers/provider-status.d.ts.map +1 -0
- package/dist/providers/provider-status.js +63 -0
- package/dist/providers/provider-status.js.map +1 -0
- package/dist/{providers.d.ts → providers/providers.d.ts} +1 -1
- package/dist/providers/providers.d.ts.map +1 -0
- package/dist/providers/providers.js.map +1 -0
- package/dist/{secrets.d.ts → providers/secrets.d.ts} +24 -0
- package/dist/providers/secrets.d.ts.map +1 -0
- package/dist/{secrets.js → providers/secrets.js} +82 -2
- package/dist/providers/secrets.js.map +1 -0
- package/dist/{app-runtime.d.ts → runtime/app-runtime.d.ts} +8 -7
- package/dist/runtime/app-runtime.d.ts.map +1 -0
- package/dist/{app-runtime.js → runtime/app-runtime.js} +58 -28
- package/dist/runtime/app-runtime.js.map +1 -0
- package/dist/runtime/in-memory-runtime.d.ts +15 -0
- package/dist/runtime/in-memory-runtime.d.ts.map +1 -0
- package/dist/{in-memory-runtime.js → runtime/in-memory-runtime.js} +135 -29
- package/dist/runtime/in-memory-runtime.js.map +1 -0
- package/dist/runtime/renderer-api.d.ts +123 -0
- package/dist/runtime/renderer-api.d.ts.map +1 -0
- package/dist/{renderer-api.js.map → runtime/renderer-api.js.map} +1 -1
- package/dist/{runtime-tool-execution.d.ts → runtime/runtime-tool-execution.d.ts} +8 -3
- package/dist/runtime/runtime-tool-execution.d.ts.map +1 -0
- package/dist/runtime/runtime-tool-execution.js +733 -0
- package/dist/runtime/runtime-tool-execution.js.map +1 -0
- package/dist/{runtime.d.ts → runtime/runtime.d.ts} +31 -4
- package/dist/runtime/runtime.d.ts.map +1 -0
- package/dist/{runtime.js → runtime/runtime.js} +24 -0
- package/dist/runtime/runtime.js.map +1 -0
- package/dist/{history.d.ts → sessions/history.d.ts} +3 -2
- package/dist/sessions/history.d.ts.map +1 -0
- package/dist/{history.js → sessions/history.js} +55 -1
- package/dist/sessions/history.js.map +1 -0
- package/dist/{session-actions.d.ts → sessions/session-actions.d.ts} +2 -2
- package/dist/sessions/session-actions.d.ts.map +1 -0
- package/dist/{session-actions.js → sessions/session-actions.js} +2 -2
- package/dist/sessions/session-actions.js.map +1 -0
- package/dist/{cli-defined-tools.d.ts → tools/cli-defined-tools.d.ts} +2 -2
- package/dist/tools/cli-defined-tools.d.ts.map +1 -0
- package/dist/tools/cli-defined-tools.js.map +1 -0
- package/dist/tools/document-tools.d.ts +92 -0
- package/dist/tools/document-tools.d.ts.map +1 -0
- package/dist/tools/document-tools.js +430 -0
- package/dist/tools/document-tools.js.map +1 -0
- package/dist/{local-tools.d.ts → tools/local-tools.d.ts} +25 -0
- package/dist/tools/local-tools.d.ts.map +1 -0
- package/dist/tools/local-tools.js +944 -0
- package/dist/tools/local-tools.js.map +1 -0
- package/dist/tools/mcp-server-config.d.ts.map +1 -0
- package/dist/tools/mcp-server-config.js.map +1 -0
- package/dist/tools/permission-grant-store.d.ts.map +1 -0
- package/dist/tools/permission-grant-store.js.map +1 -0
- package/dist/{permission-grants.d.ts → tools/permission-grants.d.ts} +1 -1
- package/dist/tools/permission-grants.d.ts.map +1 -0
- package/dist/{permission-grants.js → tools/permission-grants.js} +31 -1
- package/dist/tools/permission-grants.js.map +1 -0
- package/dist/tools/project-app-defaults-tool.d.ts +4 -0
- package/dist/tools/project-app-defaults-tool.d.ts.map +1 -0
- package/dist/tools/project-app-defaults-tool.js +135 -0
- package/dist/tools/project-app-defaults-tool.js.map +1 -0
- package/dist/{project-tool-registry.d.ts → tools/project-tool-registry.d.ts} +2 -2
- package/dist/tools/project-tool-registry.d.ts.map +1 -0
- package/dist/{project-tool-registry.js → tools/project-tool-registry.js} +47 -9
- package/dist/tools/project-tool-registry.js.map +1 -0
- package/dist/{question-requests.d.ts → tools/question-requests.d.ts} +2 -2
- package/dist/tools/question-requests.d.ts.map +1 -0
- package/dist/{question-requests.js → tools/question-requests.js} +3 -2
- package/dist/tools/question-requests.js.map +1 -0
- package/dist/tools/subagent-task-tool.d.ts +8 -0
- package/dist/tools/subagent-task-tool.d.ts.map +1 -0
- package/dist/tools/subagent-task-tool.js +38 -0
- package/dist/tools/subagent-task-tool.js.map +1 -0
- package/dist/{tool-requests.d.ts → tools/tool-requests.d.ts} +4 -3
- package/dist/tools/tool-requests.d.ts.map +1 -0
- package/dist/{tool-requests.js → tools/tool-requests.js} +15 -4
- package/dist/tools/tool-requests.js.map +1 -0
- package/dist/{tools.d.ts → tools/tools.d.ts} +7 -1
- package/dist/tools/tools.d.ts.map +1 -0
- package/dist/{tools.js → tools/tools.js} +21 -0
- package/dist/tools/tools.js.map +1 -0
- package/dist/tools/update-plan-tool.d.ts +14 -0
- package/dist/tools/update-plan-tool.d.ts.map +1 -0
- package/dist/tools/update-plan-tool.js +83 -0
- package/dist/tools/update-plan-tool.js.map +1 -0
- package/dist/{personas.d.ts → workspace/personas.d.ts} +42 -1
- package/dist/workspace/personas.d.ts.map +1 -0
- package/dist/workspace/personas.js +457 -0
- package/dist/workspace/personas.js.map +1 -0
- package/dist/{projects.d.ts → workspace/projects.d.ts} +35 -5
- package/dist/workspace/projects.d.ts.map +1 -0
- package/dist/{projects.js → workspace/projects.js} +111 -3
- package/dist/workspace/projects.js.map +1 -0
- package/dist/{prompt-context.d.ts → workspace/prompt-context.d.ts} +5 -2
- package/dist/workspace/prompt-context.d.ts.map +1 -0
- package/dist/workspace/prompt-context.js +406 -0
- package/dist/workspace/prompt-context.js.map +1 -0
- package/dist/workspace/proposed-plan.d.ts.map +1 -0
- package/dist/workspace/proposed-plan.js.map +1 -0
- package/dist/workspace/repository-instructions.d.ts +20 -0
- package/dist/workspace/repository-instructions.d.ts.map +1 -0
- package/dist/workspace/repository-instructions.js +111 -0
- package/dist/workspace/repository-instructions.js.map +1 -0
- package/dist/{skills.d.ts → workspace/skills.d.ts} +23 -2
- package/dist/workspace/skills.d.ts.map +1 -0
- package/dist/{skills.js → workspace/skills.js} +129 -5
- package/dist/workspace/skills.js.map +1 -0
- package/package.json +15 -2
- package/dist/ai-sdk-provider.d.ts.map +0 -1
- package/dist/ai-sdk-provider.js.map +0 -1
- package/dist/app-runtime.d.ts.map +0 -1
- package/dist/app-runtime.js.map +0 -1
- package/dist/artifacts.d.ts.map +0 -1
- package/dist/artifacts.js.map +0 -1
- package/dist/cli-defined-tools.d.ts.map +0 -1
- package/dist/cli-defined-tools.js.map +0 -1
- package/dist/codex-oauth-provider.d.ts.map +0 -1
- package/dist/codex-oauth-provider.js.map +0 -1
- package/dist/events.d.ts.map +0 -1
- package/dist/events.js.map +0 -1
- package/dist/feedback.d.ts.map +0 -1
- package/dist/feedback.js.map +0 -1
- package/dist/history.d.ts.map +0 -1
- package/dist/history.js.map +0 -1
- package/dist/in-memory-runtime.d.ts +0 -12
- package/dist/in-memory-runtime.d.ts.map +0 -1
- package/dist/in-memory-runtime.js.map +0 -1
- package/dist/integrations.d.ts +0 -37
- package/dist/integrations.d.ts.map +0 -1
- package/dist/integrations.js +0 -48
- package/dist/integrations.js.map +0 -1
- package/dist/local-event-logger.d.ts.map +0 -1
- package/dist/local-event-logger.js.map +0 -1
- package/dist/local-event-schema.d.ts.map +0 -1
- package/dist/local-event-schema.js.map +0 -1
- package/dist/local-tools.d.ts.map +0 -1
- package/dist/local-tools.js +0 -418
- package/dist/local-tools.js.map +0 -1
- package/dist/mcp-server-config.d.ts.map +0 -1
- package/dist/mcp-server-config.js.map +0 -1
- package/dist/mock-provider.d.ts.map +0 -1
- package/dist/mock-provider.js.map +0 -1
- package/dist/model-catalog.d.ts.map +0 -1
- package/dist/model-catalog.js.map +0 -1
- package/dist/monoid-integration.d.ts +0 -33
- package/dist/monoid-integration.d.ts.map +0 -1
- package/dist/monoid-integration.js +0 -184
- package/dist/monoid-integration.js.map +0 -1
- package/dist/openai-oauth.d.ts.map +0 -1
- package/dist/openai-oauth.js.map +0 -1
- package/dist/permission-grant-store.d.ts.map +0 -1
- package/dist/permission-grant-store.js.map +0 -1
- package/dist/permission-grants.d.ts.map +0 -1
- package/dist/permission-grants.js.map +0 -1
- package/dist/personas.d.ts.map +0 -1
- package/dist/personas.js +0 -137
- package/dist/personas.js.map +0 -1
- package/dist/project-tool-registry.d.ts.map +0 -1
- package/dist/project-tool-registry.js.map +0 -1
- package/dist/projects.d.ts.map +0 -1
- package/dist/projects.js.map +0 -1
- package/dist/prompt-context.d.ts.map +0 -1
- package/dist/prompt-context.js +0 -170
- package/dist/prompt-context.js.map +0 -1
- package/dist/proposed-plan.d.ts.map +0 -1
- package/dist/proposed-plan.js.map +0 -1
- package/dist/providers.d.ts.map +0 -1
- package/dist/providers.js.map +0 -1
- package/dist/question-requests.d.ts.map +0 -1
- package/dist/question-requests.js.map +0 -1
- package/dist/renderer-api.d.ts +0 -52
- package/dist/renderer-api.d.ts.map +0 -1
- package/dist/runtime-tool-execution.d.ts.map +0 -1
- package/dist/runtime-tool-execution.js +0 -245
- package/dist/runtime-tool-execution.js.map +0 -1
- package/dist/runtime.d.ts.map +0 -1
- package/dist/runtime.js.map +0 -1
- package/dist/secrets.d.ts.map +0 -1
- package/dist/secrets.js.map +0 -1
- package/dist/session-actions.d.ts.map +0 -1
- package/dist/session-actions.js.map +0 -1
- package/dist/skills.d.ts.map +0 -1
- package/dist/skills.js.map +0 -1
- package/dist/tool-requests.d.ts.map +0 -1
- package/dist/tool-requests.js.map +0 -1
- package/dist/tools.d.ts.map +0 -1
- package/dist/tools.js.map +0 -1
- package/dist/wyrdos-integration.d.ts +0 -32
- package/dist/wyrdos-integration.d.ts.map +0 -1
- package/dist/wyrdos-integration.js +0 -183
- package/dist/wyrdos-integration.js.map +0 -1
- /package/dist/{artifacts.js → events/artifacts.js} +0 -0
- /package/dist/{feedback.js → events/feedback.js} +0 -0
- /package/dist/{local-event-schema.js → events/local-event-schema.js} +0 -0
- /package/dist/{openai-oauth.js → providers/definitions/openai-oauth.js} +0 -0
- /package/dist/{mock-provider.js → providers/mock-provider.js} +0 -0
- /package/dist/{providers.js → providers/providers.js} +0 -0
- /package/dist/{renderer-api.js → runtime/renderer-api.js} +0 -0
- /package/dist/{cli-defined-tools.js → tools/cli-defined-tools.js} +0 -0
- /package/dist/{mcp-server-config.d.ts → tools/mcp-server-config.d.ts} +0 -0
- /package/dist/{mcp-server-config.js → tools/mcp-server-config.js} +0 -0
- /package/dist/{permission-grant-store.d.ts → tools/permission-grant-store.d.ts} +0 -0
- /package/dist/{permission-grant-store.js → tools/permission-grant-store.js} +0 -0
- /package/dist/{proposed-plan.d.ts → workspace/proposed-plan.d.ts} +0 -0
- /package/dist/{proposed-plan.js → workspace/proposed-plan.js} +0 -0
|
@@ -0,0 +1,421 @@
|
|
|
1
|
+
import type { LanguageModel } from "ai";
|
|
2
|
+
import { type SecretStore } from "../secrets.js";
|
|
3
|
+
export declare const anthropicProviderId = "anthropic";
|
|
4
|
+
export declare const anthropicApiKeySecretId = "secret_anthropic_api_key";
|
|
5
|
+
export declare const defaultAnthropicModelId = "claude-sonnet-4-6";
|
|
6
|
+
export declare const defaultAnthropicModelIds: readonly ["claude-opus-4-8", "claude-opus-4-7", "claude-opus-4-6", "claude-sonnet-4-6", "claude-opus-4-5", "claude-haiku-4-5", "claude-sonnet-4-5", "claude-opus-4-1", "claude-opus-4-0", "claude-sonnet-4-0", "claude-sonnet-4", "claude-opus-4"];
|
|
7
|
+
export declare const anthropicReasoningLevels: readonly [{
|
|
8
|
+
readonly id: "none";
|
|
9
|
+
readonly label: "Standard";
|
|
10
|
+
readonly description: "Default responses without extended reasoning controls";
|
|
11
|
+
}, {
|
|
12
|
+
readonly id: "low";
|
|
13
|
+
readonly label: "Low";
|
|
14
|
+
readonly description: "Fast responses with lighter reasoning";
|
|
15
|
+
}, {
|
|
16
|
+
readonly id: "medium";
|
|
17
|
+
readonly label: "Medium";
|
|
18
|
+
readonly description: "Balances speed and reasoning depth for everyday tasks";
|
|
19
|
+
}, {
|
|
20
|
+
readonly id: "high";
|
|
21
|
+
readonly label: "High";
|
|
22
|
+
readonly description: "Greater reasoning depth for complex problems";
|
|
23
|
+
}, {
|
|
24
|
+
readonly id: "xhigh";
|
|
25
|
+
readonly label: "Extra high";
|
|
26
|
+
readonly description: "Extra high reasoning depth for complex problems";
|
|
27
|
+
}, {
|
|
28
|
+
readonly id: "max";
|
|
29
|
+
readonly label: "Max";
|
|
30
|
+
readonly description: "Maximum reasoning depth for the hardest requests";
|
|
31
|
+
}];
|
|
32
|
+
export declare const anthropicModelCatalog: readonly [{
|
|
33
|
+
readonly providerId: "anthropic";
|
|
34
|
+
readonly modelId: "claude-opus-4-8";
|
|
35
|
+
readonly contextWindow: 200000;
|
|
36
|
+
readonly outputLimit: 32000;
|
|
37
|
+
readonly defaultReasoningLevel: "high";
|
|
38
|
+
readonly supportedReasoningLevels: readonly [{
|
|
39
|
+
readonly id: "none";
|
|
40
|
+
readonly label: "Standard";
|
|
41
|
+
readonly description: "Default responses without extended reasoning controls";
|
|
42
|
+
}, {
|
|
43
|
+
readonly id: "low";
|
|
44
|
+
readonly label: "Low";
|
|
45
|
+
readonly description: "Fast responses with lighter reasoning";
|
|
46
|
+
}, {
|
|
47
|
+
readonly id: "medium";
|
|
48
|
+
readonly label: "Medium";
|
|
49
|
+
readonly description: "Balances speed and reasoning depth for everyday tasks";
|
|
50
|
+
}, {
|
|
51
|
+
readonly id: "high";
|
|
52
|
+
readonly label: "High";
|
|
53
|
+
readonly description: "Greater reasoning depth for complex problems";
|
|
54
|
+
}, {
|
|
55
|
+
readonly id: "xhigh";
|
|
56
|
+
readonly label: "Extra high";
|
|
57
|
+
readonly description: "Extra high reasoning depth for complex problems";
|
|
58
|
+
}, {
|
|
59
|
+
readonly id: "max";
|
|
60
|
+
readonly label: "Max";
|
|
61
|
+
readonly description: "Maximum reasoning depth for the hardest requests";
|
|
62
|
+
}];
|
|
63
|
+
}, {
|
|
64
|
+
readonly providerId: "anthropic";
|
|
65
|
+
readonly modelId: "claude-opus-4-7";
|
|
66
|
+
readonly contextWindow: 200000;
|
|
67
|
+
readonly outputLimit: 32000;
|
|
68
|
+
readonly defaultReasoningLevel: "high";
|
|
69
|
+
readonly supportedReasoningLevels: readonly [{
|
|
70
|
+
readonly id: "none";
|
|
71
|
+
readonly label: "Standard";
|
|
72
|
+
readonly description: "Default responses without extended reasoning controls";
|
|
73
|
+
}, {
|
|
74
|
+
readonly id: "low";
|
|
75
|
+
readonly label: "Low";
|
|
76
|
+
readonly description: "Fast responses with lighter reasoning";
|
|
77
|
+
}, {
|
|
78
|
+
readonly id: "medium";
|
|
79
|
+
readonly label: "Medium";
|
|
80
|
+
readonly description: "Balances speed and reasoning depth for everyday tasks";
|
|
81
|
+
}, {
|
|
82
|
+
readonly id: "high";
|
|
83
|
+
readonly label: "High";
|
|
84
|
+
readonly description: "Greater reasoning depth for complex problems";
|
|
85
|
+
}, {
|
|
86
|
+
readonly id: "xhigh";
|
|
87
|
+
readonly label: "Extra high";
|
|
88
|
+
readonly description: "Extra high reasoning depth for complex problems";
|
|
89
|
+
}, {
|
|
90
|
+
readonly id: "max";
|
|
91
|
+
readonly label: "Max";
|
|
92
|
+
readonly description: "Maximum reasoning depth for the hardest requests";
|
|
93
|
+
}];
|
|
94
|
+
}, {
|
|
95
|
+
readonly providerId: "anthropic";
|
|
96
|
+
readonly modelId: "claude-opus-4-6";
|
|
97
|
+
readonly contextWindow: 200000;
|
|
98
|
+
readonly outputLimit: 32000;
|
|
99
|
+
readonly defaultReasoningLevel: "high";
|
|
100
|
+
readonly supportedReasoningLevels: readonly [{
|
|
101
|
+
readonly id: "none";
|
|
102
|
+
readonly label: "Standard";
|
|
103
|
+
readonly description: "Default responses without extended reasoning controls";
|
|
104
|
+
}, {
|
|
105
|
+
readonly id: "low";
|
|
106
|
+
readonly label: "Low";
|
|
107
|
+
readonly description: "Fast responses with lighter reasoning";
|
|
108
|
+
}, {
|
|
109
|
+
readonly id: "medium";
|
|
110
|
+
readonly label: "Medium";
|
|
111
|
+
readonly description: "Balances speed and reasoning depth for everyday tasks";
|
|
112
|
+
}, {
|
|
113
|
+
readonly id: "high";
|
|
114
|
+
readonly label: "High";
|
|
115
|
+
readonly description: "Greater reasoning depth for complex problems";
|
|
116
|
+
}, {
|
|
117
|
+
readonly id: "xhigh";
|
|
118
|
+
readonly label: "Extra high";
|
|
119
|
+
readonly description: "Extra high reasoning depth for complex problems";
|
|
120
|
+
}, {
|
|
121
|
+
readonly id: "max";
|
|
122
|
+
readonly label: "Max";
|
|
123
|
+
readonly description: "Maximum reasoning depth for the hardest requests";
|
|
124
|
+
}];
|
|
125
|
+
}, {
|
|
126
|
+
readonly providerId: "anthropic";
|
|
127
|
+
readonly modelId: "claude-sonnet-4-6";
|
|
128
|
+
readonly contextWindow: 200000;
|
|
129
|
+
readonly outputLimit: 64000;
|
|
130
|
+
readonly defaultReasoningLevel: "medium";
|
|
131
|
+
readonly supportedReasoningLevels: readonly [{
|
|
132
|
+
readonly id: "none";
|
|
133
|
+
readonly label: "Standard";
|
|
134
|
+
readonly description: "Default responses without extended reasoning controls";
|
|
135
|
+
}, {
|
|
136
|
+
readonly id: "low";
|
|
137
|
+
readonly label: "Low";
|
|
138
|
+
readonly description: "Fast responses with lighter reasoning";
|
|
139
|
+
}, {
|
|
140
|
+
readonly id: "medium";
|
|
141
|
+
readonly label: "Medium";
|
|
142
|
+
readonly description: "Balances speed and reasoning depth for everyday tasks";
|
|
143
|
+
}, {
|
|
144
|
+
readonly id: "high";
|
|
145
|
+
readonly label: "High";
|
|
146
|
+
readonly description: "Greater reasoning depth for complex problems";
|
|
147
|
+
}, {
|
|
148
|
+
readonly id: "xhigh";
|
|
149
|
+
readonly label: "Extra high";
|
|
150
|
+
readonly description: "Extra high reasoning depth for complex problems";
|
|
151
|
+
}, {
|
|
152
|
+
readonly id: "max";
|
|
153
|
+
readonly label: "Max";
|
|
154
|
+
readonly description: "Maximum reasoning depth for the hardest requests";
|
|
155
|
+
}];
|
|
156
|
+
}, {
|
|
157
|
+
readonly providerId: "anthropic";
|
|
158
|
+
readonly modelId: "claude-opus-4-5";
|
|
159
|
+
readonly contextWindow: 200000;
|
|
160
|
+
readonly outputLimit: 32000;
|
|
161
|
+
readonly defaultReasoningLevel: "high";
|
|
162
|
+
readonly supportedReasoningLevels: readonly [{
|
|
163
|
+
readonly id: "none";
|
|
164
|
+
readonly label: "Standard";
|
|
165
|
+
readonly description: "Default responses without extended reasoning controls";
|
|
166
|
+
}, {
|
|
167
|
+
readonly id: "low";
|
|
168
|
+
readonly label: "Low";
|
|
169
|
+
readonly description: "Fast responses with lighter reasoning";
|
|
170
|
+
}, {
|
|
171
|
+
readonly id: "medium";
|
|
172
|
+
readonly label: "Medium";
|
|
173
|
+
readonly description: "Balances speed and reasoning depth for everyday tasks";
|
|
174
|
+
}, {
|
|
175
|
+
readonly id: "high";
|
|
176
|
+
readonly label: "High";
|
|
177
|
+
readonly description: "Greater reasoning depth for complex problems";
|
|
178
|
+
}, {
|
|
179
|
+
readonly id: "xhigh";
|
|
180
|
+
readonly label: "Extra high";
|
|
181
|
+
readonly description: "Extra high reasoning depth for complex problems";
|
|
182
|
+
}, {
|
|
183
|
+
readonly id: "max";
|
|
184
|
+
readonly label: "Max";
|
|
185
|
+
readonly description: "Maximum reasoning depth for the hardest requests";
|
|
186
|
+
}];
|
|
187
|
+
}, {
|
|
188
|
+
readonly providerId: "anthropic";
|
|
189
|
+
readonly modelId: "claude-haiku-4-5";
|
|
190
|
+
readonly contextWindow: 200000;
|
|
191
|
+
readonly outputLimit: 64000;
|
|
192
|
+
readonly defaultReasoningLevel: "low";
|
|
193
|
+
readonly supportedReasoningLevels: readonly [{
|
|
194
|
+
readonly id: "none";
|
|
195
|
+
readonly label: "Standard";
|
|
196
|
+
readonly description: "Default responses without extended reasoning controls";
|
|
197
|
+
}, {
|
|
198
|
+
readonly id: "low";
|
|
199
|
+
readonly label: "Low";
|
|
200
|
+
readonly description: "Fast responses with lighter reasoning";
|
|
201
|
+
}, {
|
|
202
|
+
readonly id: "medium";
|
|
203
|
+
readonly label: "Medium";
|
|
204
|
+
readonly description: "Balances speed and reasoning depth for everyday tasks";
|
|
205
|
+
}, {
|
|
206
|
+
readonly id: "high";
|
|
207
|
+
readonly label: "High";
|
|
208
|
+
readonly description: "Greater reasoning depth for complex problems";
|
|
209
|
+
}, {
|
|
210
|
+
readonly id: "xhigh";
|
|
211
|
+
readonly label: "Extra high";
|
|
212
|
+
readonly description: "Extra high reasoning depth for complex problems";
|
|
213
|
+
}, {
|
|
214
|
+
readonly id: "max";
|
|
215
|
+
readonly label: "Max";
|
|
216
|
+
readonly description: "Maximum reasoning depth for the hardest requests";
|
|
217
|
+
}];
|
|
218
|
+
}, {
|
|
219
|
+
readonly providerId: "anthropic";
|
|
220
|
+
readonly modelId: "claude-sonnet-4-5";
|
|
221
|
+
readonly contextWindow: 200000;
|
|
222
|
+
readonly outputLimit: 64000;
|
|
223
|
+
readonly defaultReasoningLevel: "medium";
|
|
224
|
+
readonly supportedReasoningLevels: readonly [{
|
|
225
|
+
readonly id: "none";
|
|
226
|
+
readonly label: "Standard";
|
|
227
|
+
readonly description: "Default responses without extended reasoning controls";
|
|
228
|
+
}, {
|
|
229
|
+
readonly id: "low";
|
|
230
|
+
readonly label: "Low";
|
|
231
|
+
readonly description: "Fast responses with lighter reasoning";
|
|
232
|
+
}, {
|
|
233
|
+
readonly id: "medium";
|
|
234
|
+
readonly label: "Medium";
|
|
235
|
+
readonly description: "Balances speed and reasoning depth for everyday tasks";
|
|
236
|
+
}, {
|
|
237
|
+
readonly id: "high";
|
|
238
|
+
readonly label: "High";
|
|
239
|
+
readonly description: "Greater reasoning depth for complex problems";
|
|
240
|
+
}, {
|
|
241
|
+
readonly id: "xhigh";
|
|
242
|
+
readonly label: "Extra high";
|
|
243
|
+
readonly description: "Extra high reasoning depth for complex problems";
|
|
244
|
+
}, {
|
|
245
|
+
readonly id: "max";
|
|
246
|
+
readonly label: "Max";
|
|
247
|
+
readonly description: "Maximum reasoning depth for the hardest requests";
|
|
248
|
+
}];
|
|
249
|
+
}, {
|
|
250
|
+
readonly providerId: "anthropic";
|
|
251
|
+
readonly modelId: "claude-opus-4-1";
|
|
252
|
+
readonly contextWindow: 200000;
|
|
253
|
+
readonly outputLimit: 32000;
|
|
254
|
+
readonly defaultReasoningLevel: "high";
|
|
255
|
+
readonly supportedReasoningLevels: readonly [{
|
|
256
|
+
readonly id: "none";
|
|
257
|
+
readonly label: "Standard";
|
|
258
|
+
readonly description: "Default responses without extended reasoning controls";
|
|
259
|
+
}, {
|
|
260
|
+
readonly id: "low";
|
|
261
|
+
readonly label: "Low";
|
|
262
|
+
readonly description: "Fast responses with lighter reasoning";
|
|
263
|
+
}, {
|
|
264
|
+
readonly id: "medium";
|
|
265
|
+
readonly label: "Medium";
|
|
266
|
+
readonly description: "Balances speed and reasoning depth for everyday tasks";
|
|
267
|
+
}, {
|
|
268
|
+
readonly id: "high";
|
|
269
|
+
readonly label: "High";
|
|
270
|
+
readonly description: "Greater reasoning depth for complex problems";
|
|
271
|
+
}, {
|
|
272
|
+
readonly id: "xhigh";
|
|
273
|
+
readonly label: "Extra high";
|
|
274
|
+
readonly description: "Extra high reasoning depth for complex problems";
|
|
275
|
+
}, {
|
|
276
|
+
readonly id: "max";
|
|
277
|
+
readonly label: "Max";
|
|
278
|
+
readonly description: "Maximum reasoning depth for the hardest requests";
|
|
279
|
+
}];
|
|
280
|
+
}, {
|
|
281
|
+
readonly providerId: "anthropic";
|
|
282
|
+
readonly modelId: "claude-opus-4-0";
|
|
283
|
+
readonly contextWindow: 200000;
|
|
284
|
+
readonly outputLimit: 32000;
|
|
285
|
+
readonly defaultReasoningLevel: "high";
|
|
286
|
+
readonly supportedReasoningLevels: readonly [{
|
|
287
|
+
readonly id: "none";
|
|
288
|
+
readonly label: "Standard";
|
|
289
|
+
readonly description: "Default responses without extended reasoning controls";
|
|
290
|
+
}, {
|
|
291
|
+
readonly id: "low";
|
|
292
|
+
readonly label: "Low";
|
|
293
|
+
readonly description: "Fast responses with lighter reasoning";
|
|
294
|
+
}, {
|
|
295
|
+
readonly id: "medium";
|
|
296
|
+
readonly label: "Medium";
|
|
297
|
+
readonly description: "Balances speed and reasoning depth for everyday tasks";
|
|
298
|
+
}, {
|
|
299
|
+
readonly id: "high";
|
|
300
|
+
readonly label: "High";
|
|
301
|
+
readonly description: "Greater reasoning depth for complex problems";
|
|
302
|
+
}, {
|
|
303
|
+
readonly id: "xhigh";
|
|
304
|
+
readonly label: "Extra high";
|
|
305
|
+
readonly description: "Extra high reasoning depth for complex problems";
|
|
306
|
+
}, {
|
|
307
|
+
readonly id: "max";
|
|
308
|
+
readonly label: "Max";
|
|
309
|
+
readonly description: "Maximum reasoning depth for the hardest requests";
|
|
310
|
+
}];
|
|
311
|
+
}, {
|
|
312
|
+
readonly providerId: "anthropic";
|
|
313
|
+
readonly modelId: "claude-sonnet-4-0";
|
|
314
|
+
readonly contextWindow: 200000;
|
|
315
|
+
readonly outputLimit: 64000;
|
|
316
|
+
readonly defaultReasoningLevel: "medium";
|
|
317
|
+
readonly supportedReasoningLevels: readonly [{
|
|
318
|
+
readonly id: "none";
|
|
319
|
+
readonly label: "Standard";
|
|
320
|
+
readonly description: "Default responses without extended reasoning controls";
|
|
321
|
+
}, {
|
|
322
|
+
readonly id: "low";
|
|
323
|
+
readonly label: "Low";
|
|
324
|
+
readonly description: "Fast responses with lighter reasoning";
|
|
325
|
+
}, {
|
|
326
|
+
readonly id: "medium";
|
|
327
|
+
readonly label: "Medium";
|
|
328
|
+
readonly description: "Balances speed and reasoning depth for everyday tasks";
|
|
329
|
+
}, {
|
|
330
|
+
readonly id: "high";
|
|
331
|
+
readonly label: "High";
|
|
332
|
+
readonly description: "Greater reasoning depth for complex problems";
|
|
333
|
+
}, {
|
|
334
|
+
readonly id: "xhigh";
|
|
335
|
+
readonly label: "Extra high";
|
|
336
|
+
readonly description: "Extra high reasoning depth for complex problems";
|
|
337
|
+
}, {
|
|
338
|
+
readonly id: "max";
|
|
339
|
+
readonly label: "Max";
|
|
340
|
+
readonly description: "Maximum reasoning depth for the hardest requests";
|
|
341
|
+
}];
|
|
342
|
+
}, {
|
|
343
|
+
readonly providerId: "anthropic";
|
|
344
|
+
readonly modelId: "claude-sonnet-4";
|
|
345
|
+
readonly contextWindow: 200000;
|
|
346
|
+
readonly outputLimit: 64000;
|
|
347
|
+
readonly defaultReasoningLevel: "medium";
|
|
348
|
+
readonly supportedReasoningLevels: readonly [{
|
|
349
|
+
readonly id: "none";
|
|
350
|
+
readonly label: "Standard";
|
|
351
|
+
readonly description: "Default responses without extended reasoning controls";
|
|
352
|
+
}, {
|
|
353
|
+
readonly id: "low";
|
|
354
|
+
readonly label: "Low";
|
|
355
|
+
readonly description: "Fast responses with lighter reasoning";
|
|
356
|
+
}, {
|
|
357
|
+
readonly id: "medium";
|
|
358
|
+
readonly label: "Medium";
|
|
359
|
+
readonly description: "Balances speed and reasoning depth for everyday tasks";
|
|
360
|
+
}, {
|
|
361
|
+
readonly id: "high";
|
|
362
|
+
readonly label: "High";
|
|
363
|
+
readonly description: "Greater reasoning depth for complex problems";
|
|
364
|
+
}, {
|
|
365
|
+
readonly id: "xhigh";
|
|
366
|
+
readonly label: "Extra high";
|
|
367
|
+
readonly description: "Extra high reasoning depth for complex problems";
|
|
368
|
+
}, {
|
|
369
|
+
readonly id: "max";
|
|
370
|
+
readonly label: "Max";
|
|
371
|
+
readonly description: "Maximum reasoning depth for the hardest requests";
|
|
372
|
+
}];
|
|
373
|
+
}, {
|
|
374
|
+
readonly providerId: "anthropic";
|
|
375
|
+
readonly modelId: "claude-opus-4";
|
|
376
|
+
readonly contextWindow: 200000;
|
|
377
|
+
readonly outputLimit: 32000;
|
|
378
|
+
readonly defaultReasoningLevel: "high";
|
|
379
|
+
readonly supportedReasoningLevels: readonly [{
|
|
380
|
+
readonly id: "none";
|
|
381
|
+
readonly label: "Standard";
|
|
382
|
+
readonly description: "Default responses without extended reasoning controls";
|
|
383
|
+
}, {
|
|
384
|
+
readonly id: "low";
|
|
385
|
+
readonly label: "Low";
|
|
386
|
+
readonly description: "Fast responses with lighter reasoning";
|
|
387
|
+
}, {
|
|
388
|
+
readonly id: "medium";
|
|
389
|
+
readonly label: "Medium";
|
|
390
|
+
readonly description: "Balances speed and reasoning depth for everyday tasks";
|
|
391
|
+
}, {
|
|
392
|
+
readonly id: "high";
|
|
393
|
+
readonly label: "High";
|
|
394
|
+
readonly description: "Greater reasoning depth for complex problems";
|
|
395
|
+
}, {
|
|
396
|
+
readonly id: "xhigh";
|
|
397
|
+
readonly label: "Extra high";
|
|
398
|
+
readonly description: "Extra high reasoning depth for complex problems";
|
|
399
|
+
}, {
|
|
400
|
+
readonly id: "max";
|
|
401
|
+
readonly label: "Max";
|
|
402
|
+
readonly description: "Maximum reasoning depth for the hardest requests";
|
|
403
|
+
}];
|
|
404
|
+
}];
|
|
405
|
+
export interface CreateAnthropicLanguageModelOptions {
|
|
406
|
+
readonly modelId: string;
|
|
407
|
+
readonly apiKey: string;
|
|
408
|
+
readonly fetch?: typeof fetch;
|
|
409
|
+
readonly baseURL?: string;
|
|
410
|
+
}
|
|
411
|
+
export interface ConfigureAnthropicApiKeyAuthOptions {
|
|
412
|
+
readonly env: NodeJS.ProcessEnv;
|
|
413
|
+
readonly apiKey: string;
|
|
414
|
+
readonly modelId?: string;
|
|
415
|
+
readonly secretStore: SecretStore;
|
|
416
|
+
}
|
|
417
|
+
export declare function createAnthropicLanguageModel(options: CreateAnthropicLanguageModelOptions): LanguageModel;
|
|
418
|
+
export declare function configureAnthropicApiKeyAuth(options: ConfigureAnthropicApiKeyAuthOptions): Promise<{
|
|
419
|
+
readonly modelId: string;
|
|
420
|
+
}>;
|
|
421
|
+
//# sourceMappingURL=anthropic-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anthropic-provider.d.ts","sourceRoot":"","sources":["../../../src/providers/definitions/anthropic-provider.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AACxC,OAAO,EAIL,KAAK,WAAW,EACjB,MAAM,eAAe,CAAC;AAMvB,eAAO,MAAM,mBAAmB,cAAc,CAAC;AAC/C,eAAO,MAAM,uBAAuB,6BAA6B,CAAC;AAClE,eAAO,MAAM,uBAAuB,sBAAsB,CAAC;AAC3D,eAAO,MAAM,wBAAwB,oPAa3B,CAAC;AAEX,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;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
|
2
|
+
import { createProviderConfig, getProviderConfig, updateProviderConfig, } from "../secrets.js";
|
|
3
|
+
export const anthropicProviderId = "anthropic";
|
|
4
|
+
export const anthropicApiKeySecretId = "secret_anthropic_api_key";
|
|
5
|
+
export const defaultAnthropicModelId = "claude-sonnet-4-6";
|
|
6
|
+
export const defaultAnthropicModelIds = [
|
|
7
|
+
"claude-opus-4-8",
|
|
8
|
+
"claude-opus-4-7",
|
|
9
|
+
"claude-opus-4-6",
|
|
10
|
+
"claude-sonnet-4-6",
|
|
11
|
+
"claude-opus-4-5",
|
|
12
|
+
"claude-haiku-4-5",
|
|
13
|
+
"claude-sonnet-4-5",
|
|
14
|
+
"claude-opus-4-1",
|
|
15
|
+
"claude-opus-4-0",
|
|
16
|
+
"claude-sonnet-4-0",
|
|
17
|
+
"claude-sonnet-4",
|
|
18
|
+
"claude-opus-4",
|
|
19
|
+
];
|
|
20
|
+
export const anthropicReasoningLevels = [
|
|
21
|
+
{
|
|
22
|
+
id: "none",
|
|
23
|
+
label: "Standard",
|
|
24
|
+
description: "Default responses without extended reasoning controls",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
id: "low",
|
|
28
|
+
label: "Low",
|
|
29
|
+
description: "Fast responses with lighter reasoning",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
id: "medium",
|
|
33
|
+
label: "Medium",
|
|
34
|
+
description: "Balances speed and reasoning depth for everyday tasks",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
id: "high",
|
|
38
|
+
label: "High",
|
|
39
|
+
description: "Greater reasoning depth for complex problems",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
id: "xhigh",
|
|
43
|
+
label: "Extra high",
|
|
44
|
+
description: "Extra high reasoning depth for complex problems",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
id: "max",
|
|
48
|
+
label: "Max",
|
|
49
|
+
description: "Maximum reasoning depth for the hardest requests",
|
|
50
|
+
},
|
|
51
|
+
];
|
|
52
|
+
export const anthropicModelCatalog = [
|
|
53
|
+
{
|
|
54
|
+
providerId: anthropicProviderId,
|
|
55
|
+
modelId: "claude-opus-4-8",
|
|
56
|
+
contextWindow: 200_000,
|
|
57
|
+
outputLimit: 32_000,
|
|
58
|
+
defaultReasoningLevel: "high",
|
|
59
|
+
supportedReasoningLevels: anthropicReasoningLevels,
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
providerId: anthropicProviderId,
|
|
63
|
+
modelId: "claude-opus-4-7",
|
|
64
|
+
contextWindow: 200_000,
|
|
65
|
+
outputLimit: 32_000,
|
|
66
|
+
defaultReasoningLevel: "high",
|
|
67
|
+
supportedReasoningLevels: anthropicReasoningLevels,
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
providerId: anthropicProviderId,
|
|
71
|
+
modelId: "claude-opus-4-6",
|
|
72
|
+
contextWindow: 200_000,
|
|
73
|
+
outputLimit: 32_000,
|
|
74
|
+
defaultReasoningLevel: "high",
|
|
75
|
+
supportedReasoningLevels: anthropicReasoningLevels,
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
providerId: anthropicProviderId,
|
|
79
|
+
modelId: "claude-sonnet-4-6",
|
|
80
|
+
contextWindow: 200_000,
|
|
81
|
+
outputLimit: 64_000,
|
|
82
|
+
defaultReasoningLevel: "medium",
|
|
83
|
+
supportedReasoningLevels: anthropicReasoningLevels,
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
providerId: anthropicProviderId,
|
|
87
|
+
modelId: "claude-opus-4-5",
|
|
88
|
+
contextWindow: 200_000,
|
|
89
|
+
outputLimit: 32_000,
|
|
90
|
+
defaultReasoningLevel: "high",
|
|
91
|
+
supportedReasoningLevels: anthropicReasoningLevels,
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
providerId: anthropicProviderId,
|
|
95
|
+
modelId: "claude-haiku-4-5",
|
|
96
|
+
contextWindow: 200_000,
|
|
97
|
+
outputLimit: 64_000,
|
|
98
|
+
defaultReasoningLevel: "low",
|
|
99
|
+
supportedReasoningLevels: anthropicReasoningLevels,
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
providerId: anthropicProviderId,
|
|
103
|
+
modelId: "claude-sonnet-4-5",
|
|
104
|
+
contextWindow: 200_000,
|
|
105
|
+
outputLimit: 64_000,
|
|
106
|
+
defaultReasoningLevel: "medium",
|
|
107
|
+
supportedReasoningLevels: anthropicReasoningLevels,
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
providerId: anthropicProviderId,
|
|
111
|
+
modelId: "claude-opus-4-1",
|
|
112
|
+
contextWindow: 200_000,
|
|
113
|
+
outputLimit: 32_000,
|
|
114
|
+
defaultReasoningLevel: "high",
|
|
115
|
+
supportedReasoningLevels: anthropicReasoningLevels,
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
providerId: anthropicProviderId,
|
|
119
|
+
modelId: "claude-opus-4-0",
|
|
120
|
+
contextWindow: 200_000,
|
|
121
|
+
outputLimit: 32_000,
|
|
122
|
+
defaultReasoningLevel: "high",
|
|
123
|
+
supportedReasoningLevels: anthropicReasoningLevels,
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
providerId: anthropicProviderId,
|
|
127
|
+
modelId: "claude-sonnet-4-0",
|
|
128
|
+
contextWindow: 200_000,
|
|
129
|
+
outputLimit: 64_000,
|
|
130
|
+
defaultReasoningLevel: "medium",
|
|
131
|
+
supportedReasoningLevels: anthropicReasoningLevels,
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
providerId: anthropicProviderId,
|
|
135
|
+
modelId: "claude-sonnet-4",
|
|
136
|
+
contextWindow: 200_000,
|
|
137
|
+
outputLimit: 64_000,
|
|
138
|
+
defaultReasoningLevel: "medium",
|
|
139
|
+
supportedReasoningLevels: anthropicReasoningLevels,
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
providerId: anthropicProviderId,
|
|
143
|
+
modelId: "claude-opus-4",
|
|
144
|
+
contextWindow: 200_000,
|
|
145
|
+
outputLimit: 32_000,
|
|
146
|
+
defaultReasoningLevel: "high",
|
|
147
|
+
supportedReasoningLevels: anthropicReasoningLevels,
|
|
148
|
+
},
|
|
149
|
+
];
|
|
150
|
+
export function createAnthropicLanguageModel(options) {
|
|
151
|
+
return createAnthropic({
|
|
152
|
+
apiKey: options.apiKey,
|
|
153
|
+
...(options.fetch ? { fetch: options.fetch } : {}),
|
|
154
|
+
...(options.baseURL ? { baseURL: options.baseURL } : {}),
|
|
155
|
+
})(options.modelId);
|
|
156
|
+
}
|
|
157
|
+
export async function configureAnthropicApiKeyAuth(options) {
|
|
158
|
+
const apiKey = options.apiKey.trim();
|
|
159
|
+
if (!apiKey) {
|
|
160
|
+
throw new Error("Anthropic API key is required.");
|
|
161
|
+
}
|
|
162
|
+
const modelId = options.modelId ?? defaultAnthropicModelId;
|
|
163
|
+
const availableModelIds = ensureModelAvailable(defaultAnthropicModelIds, modelId);
|
|
164
|
+
const secretRef = await options.secretStore.setSecret({
|
|
165
|
+
secretId: anthropicApiKeySecretId,
|
|
166
|
+
providerId: anthropicProviderId,
|
|
167
|
+
label: "Anthropic API key",
|
|
168
|
+
value: apiKey,
|
|
169
|
+
});
|
|
170
|
+
const input = {
|
|
171
|
+
providerId: anthropicProviderId,
|
|
172
|
+
name: "Anthropic",
|
|
173
|
+
authMethod: "apiKey",
|
|
174
|
+
defaultModelId: modelId,
|
|
175
|
+
availableModelIds,
|
|
176
|
+
contextWindowByModelId: getAnthropicContextWindows(availableModelIds),
|
|
177
|
+
secretRef: { secretId: secretRef.secretId },
|
|
178
|
+
disabled: false,
|
|
179
|
+
};
|
|
180
|
+
const existing = await getProviderConfig(anthropicProviderId, {
|
|
181
|
+
env: options.env,
|
|
182
|
+
});
|
|
183
|
+
if (existing) {
|
|
184
|
+
await updateProviderConfig({ env: options.env, input });
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
await createProviderConfig({ env: options.env, input });
|
|
188
|
+
}
|
|
189
|
+
return { modelId };
|
|
190
|
+
}
|
|
191
|
+
function ensureModelAvailable(modelIds, defaultModelId) {
|
|
192
|
+
return modelIds.includes(defaultModelId)
|
|
193
|
+
? modelIds
|
|
194
|
+
: [defaultModelId, ...modelIds];
|
|
195
|
+
}
|
|
196
|
+
function getAnthropicContextWindows(modelIds) {
|
|
197
|
+
return Object.fromEntries(modelIds.flatMap((modelId) => {
|
|
198
|
+
const entry = anthropicModelCatalog.find((candidate) => candidate.modelId === modelId);
|
|
199
|
+
return entry?.contextWindow
|
|
200
|
+
? [[modelId, entry.contextWindow]]
|
|
201
|
+
: [];
|
|
202
|
+
}));
|
|
203
|
+
}
|
|
204
|
+
//# sourceMappingURL=anthropic-provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anthropic-provider.js","sourceRoot":"","sources":["../../../src/providers/definitions/anthropic-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,oBAAoB,GAErB,MAAM,eAAe,CAAC;AAMvB,MAAM,CAAC,MAAM,mBAAmB,GAAG,WAAW,CAAC;AAC/C,MAAM,CAAC,MAAM,uBAAuB,GAAG,0BAA0B,CAAC;AAClE,MAAM,CAAC,MAAM,uBAAuB,GAAG,mBAAmB,CAAC;AAC3D,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,iBAAiB;IACjB,iBAAiB;IACjB,iBAAiB;IACjB,mBAAmB;IACnB,iBAAiB;IACjB,kBAAkB;IAClB,mBAAmB;IACnB,iBAAiB;IACjB,iBAAiB;IACjB,mBAAmB;IACnB,iBAAiB;IACjB,eAAe;CACP,CAAC;AAEX,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC;QACE,EAAE,EAAE,MAAM;QACV,KAAK,EAAE,UAAU;QACjB,WAAW,EAAE,uDAAuD;KACrE;IACD;QACE,EAAE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, ProviderAdapter, ProviderStreamChunk, SessionMessage } from "../../runtime/runtime.js";
|
|
2
|
+
import type { ProviderConfig, SecretStore } from "../secrets.js";
|
|
3
3
|
export interface CodexOAuthProviderAdapterOptions {
|
|
4
4
|
readonly providerConfig: ProviderConfig;
|
|
5
5
|
readonly secretStore: SecretStore;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codex-oauth-provider.d.ts","sourceRoot":"","sources":["../../../src/providers/definitions/codex-oauth-provider.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,QAAQ,EACR,eAAe,EACf,mBAAmB,EACnB,cAAc,EAEf,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjE,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;IACxC,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAClC,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;IAC9B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC5B;AAOD,wBAAgB,+BAA+B,CAC7C,OAAO,EAAE,gCAAgC,GACxC,eAAe,CAEjB;AAED,qBAAa,yBAA0B,YAAW,eAAe;IAC/D,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAE7B,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAiB;IAChD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAc;IAC1C,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAe;IACxC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;IAClC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;gBAEtB,OAAO,EAAE,gCAAgC;IAU9C,aAAa,CAAC,KAAK,EAAE;QAC1B,QAAQ,CAAC,QAAQ,EAAE,SAAS,cAAc,EAAE,CAAC;QAC7C,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC;QAC1B,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;KAC/B,GAAG,aAAa,CAAC,mBAAmB,CAAC;CA2CvC;AAiED,qBAAa,uBAAwB,SAAQ,KAAK;IAChD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;gBAEV,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;CAK1C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { appendFileSync } from "node:fs";
|
|
2
2
|
import { ensureFreshOpenAiOAuthCredential, getOpenAiOAuthHeaders, } from "./openai-oauth.js";
|
|
3
|
-
import { normalizeSessionMessage, sessionMessageText } from "
|
|
3
|
+
import { normalizeSessionMessage, sessionMessageText } from "../../runtime/runtime.js";
|
|
4
4
|
const defaultCodexEndpoint = "https://chatgpt.com/backend-api/codex/responses";
|
|
5
5
|
const defaultCodexClientId = "app_EMoamEEZ73f0CkXaXp7hrann";
|
|
6
6
|
const defaultCodexInstructions = "You are Actor, a helpful local coding assistant.";
|