@useconductor/conductor 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +33 -0
- package/.claude-plugin/plugin.json +23 -0
- package/.eslintrc.json +23 -0
- package/.gitattributes +6 -0
- package/.github/FUNDING.yml +15 -0
- package/.github/ISSUE_TEMPLATE/bug_report.yml +91 -0
- package/.github/ISSUE_TEMPLATE/config.yml +8 -0
- package/.github/ISSUE_TEMPLATE/feature_request.yml +63 -0
- package/.github/ISSUE_TEMPLATE/plugin_request.yml +71 -0
- package/.github/README.md +13 -0
- package/.github/workflows/README.md +22 -0
- package/.github/workflows/auto-release.yml +112 -0
- package/.github/workflows/ci.yml +49 -0
- package/.github/workflows/claude-code-review.yml +44 -0
- package/.github/workflows/claude.yml +36 -0
- package/.github/workflows/sync-install.yml +47 -0
- package/.mcp.json +9 -0
- package/.prettierrc.json +7 -0
- package/C.png +0 -0
- package/CHANGELOG.md +74 -0
- package/CLAUDE.md +118 -0
- package/CONTRIBUTING.md +231 -0
- package/LICENSE +201 -0
- package/README.md +179 -0
- package/SECURITY.md +47 -0
- package/commands/conductor-setup.md +11 -0
- package/commands/conductor-status.md +7 -0
- package/dist/ai/base.d.ts +44 -0
- package/dist/ai/base.d.ts.map +1 -0
- package/dist/ai/base.js +47 -0
- package/dist/ai/base.js.map +1 -0
- package/dist/ai/claude.d.ts +11 -0
- package/dist/ai/claude.d.ts.map +1 -0
- package/dist/ai/claude.js +149 -0
- package/dist/ai/claude.js.map +1 -0
- package/dist/ai/gemini.d.ts +15 -0
- package/dist/ai/gemini.d.ts.map +1 -0
- package/dist/ai/gemini.js +156 -0
- package/dist/ai/gemini.js.map +1 -0
- package/dist/ai/maestro.d.ts +22 -0
- package/dist/ai/maestro.d.ts.map +1 -0
- package/dist/ai/maestro.js +142 -0
- package/dist/ai/maestro.js.map +1 -0
- package/dist/ai/manager.d.ts +47 -0
- package/dist/ai/manager.d.ts.map +1 -0
- package/dist/ai/manager.js +450 -0
- package/dist/ai/manager.js.map +1 -0
- package/dist/ai/ollama.d.ts +16 -0
- package/dist/ai/ollama.d.ts.map +1 -0
- package/dist/ai/ollama.js +151 -0
- package/dist/ai/ollama.js.map +1 -0
- package/dist/ai/openai.d.ts +11 -0
- package/dist/ai/openai.d.ts.map +1 -0
- package/dist/ai/openai.js +132 -0
- package/dist/ai/openai.js.map +1 -0
- package/dist/ai/openrouter.d.ts +11 -0
- package/dist/ai/openrouter.d.ts.map +1 -0
- package/dist/ai/openrouter.js +139 -0
- package/dist/ai/openrouter.js.map +1 -0
- package/dist/bot/slack.d.ts +17 -0
- package/dist/bot/slack.d.ts.map +1 -0
- package/dist/bot/slack.js +144 -0
- package/dist/bot/slack.js.map +1 -0
- package/dist/bot/telegram.d.ts +19 -0
- package/dist/bot/telegram.d.ts.map +1 -0
- package/dist/bot/telegram.js +157 -0
- package/dist/bot/telegram.js.map +1 -0
- package/dist/cli/commands/ai.d.ts +4 -0
- package/dist/cli/commands/ai.d.ts.map +1 -0
- package/dist/cli/commands/ai.js +161 -0
- package/dist/cli/commands/ai.js.map +1 -0
- package/dist/cli/commands/doctor.d.ts +18 -0
- package/dist/cli/commands/doctor.d.ts.map +1 -0
- package/dist/cli/commands/doctor.js +213 -0
- package/dist/cli/commands/doctor.js.map +1 -0
- package/dist/cli/commands/init.d.ts +15 -0
- package/dist/cli/commands/init.d.ts.map +1 -0
- package/dist/cli/commands/init.js +281 -0
- package/dist/cli/commands/init.js.map +1 -0
- package/dist/cli/commands/install.d.ts +16 -0
- package/dist/cli/commands/install.d.ts.map +1 -0
- package/dist/cli/commands/install.js +750 -0
- package/dist/cli/commands/install.js.map +1 -0
- package/dist/cli/commands/lifecycle.d.ts +4 -0
- package/dist/cli/commands/lifecycle.d.ts.map +1 -0
- package/dist/cli/commands/lifecycle.js +84 -0
- package/dist/cli/commands/lifecycle.js.map +1 -0
- package/dist/cli/commands/marketplace.d.ts +13 -0
- package/dist/cli/commands/marketplace.d.ts.map +1 -0
- package/dist/cli/commands/marketplace.js +197 -0
- package/dist/cli/commands/marketplace.js.map +1 -0
- package/dist/cli/commands/mcp.d.ts +6 -0
- package/dist/cli/commands/mcp.d.ts.map +1 -0
- package/dist/cli/commands/mcp.js +83 -0
- package/dist/cli/commands/mcp.js.map +1 -0
- package/dist/cli/commands/onboard.d.ts +10 -0
- package/dist/cli/commands/onboard.d.ts.map +1 -0
- package/dist/cli/commands/onboard.js +207 -0
- package/dist/cli/commands/onboard.js.map +1 -0
- package/dist/cli/commands/plugin-create.d.ts +13 -0
- package/dist/cli/commands/plugin-create.d.ts.map +1 -0
- package/dist/cli/commands/plugin-create.js +122 -0
- package/dist/cli/commands/plugin-create.js.map +1 -0
- package/dist/cli/commands/plugins.d.ts +5 -0
- package/dist/cli/commands/plugins.d.ts.map +1 -0
- package/dist/cli/commands/plugins.js +30 -0
- package/dist/cli/commands/plugins.js.map +1 -0
- package/dist/cli/commands/release.d.ts +13 -0
- package/dist/cli/commands/release.d.ts.map +1 -0
- package/dist/cli/commands/release.js +243 -0
- package/dist/cli/commands/release.js.map +1 -0
- package/dist/cli/commands/telegram.d.ts +3 -0
- package/dist/cli/commands/telegram.d.ts.map +1 -0
- package/dist/cli/commands/telegram.js +20 -0
- package/dist/cli/commands/telegram.js.map +1 -0
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +402 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/config/oauth.d.ts +8 -0
- package/dist/config/oauth.d.ts.map +1 -0
- package/dist/config/oauth.js +13 -0
- package/dist/config/oauth.js.map +1 -0
- package/dist/core/audit.d.ts +91 -0
- package/dist/core/audit.d.ts.map +1 -0
- package/dist/core/audit.js +233 -0
- package/dist/core/audit.js.map +1 -0
- package/dist/core/circuit-breaker.d.ts +56 -0
- package/dist/core/circuit-breaker.d.ts.map +1 -0
- package/dist/core/circuit-breaker.js +107 -0
- package/dist/core/circuit-breaker.js.map +1 -0
- package/dist/core/conductor.d.ts +44 -0
- package/dist/core/conductor.d.ts.map +1 -0
- package/dist/core/conductor.js +200 -0
- package/dist/core/conductor.js.map +1 -0
- package/dist/core/config.d.ts +66 -0
- package/dist/core/config.d.ts.map +1 -0
- package/dist/core/config.js +86 -0
- package/dist/core/config.js.map +1 -0
- package/dist/core/database.d.ts +59 -0
- package/dist/core/database.d.ts.map +1 -0
- package/dist/core/database.js +342 -0
- package/dist/core/database.js.map +1 -0
- package/dist/core/errors.d.ts +231 -0
- package/dist/core/errors.d.ts.map +1 -0
- package/dist/core/errors.js +254 -0
- package/dist/core/errors.js.map +1 -0
- package/dist/core/health.d.ts +72 -0
- package/dist/core/health.d.ts.map +1 -0
- package/dist/core/health.js +116 -0
- package/dist/core/health.js.map +1 -0
- package/dist/core/interfaces.d.ts +62 -0
- package/dist/core/interfaces.d.ts.map +1 -0
- package/dist/core/interfaces.js +8 -0
- package/dist/core/interfaces.js.map +1 -0
- package/dist/core/logger.d.ts +15 -0
- package/dist/core/logger.d.ts.map +1 -0
- package/dist/core/logger.js +30 -0
- package/dist/core/logger.js.map +1 -0
- package/dist/core/rbac.d.ts +132 -0
- package/dist/core/rbac.d.ts.map +1 -0
- package/dist/core/rbac.js +230 -0
- package/dist/core/rbac.js.map +1 -0
- package/dist/core/retry.d.ts +22 -0
- package/dist/core/retry.d.ts.map +1 -0
- package/dist/core/retry.js +41 -0
- package/dist/core/retry.js.map +1 -0
- package/dist/core/webhooks.d.ts +92 -0
- package/dist/core/webhooks.d.ts.map +1 -0
- package/dist/core/webhooks.js +176 -0
- package/dist/core/webhooks.js.map +1 -0
- package/dist/core/zero-config.d.ts +22 -0
- package/dist/core/zero-config.d.ts.map +1 -0
- package/dist/core/zero-config.js +59 -0
- package/dist/core/zero-config.js.map +1 -0
- package/dist/dashboard/cli.d.ts +6 -0
- package/dist/dashboard/cli.d.ts.map +1 -0
- package/dist/dashboard/cli.js +42 -0
- package/dist/dashboard/cli.js.map +1 -0
- package/dist/dashboard/index.html +3426 -0
- package/dist/dashboard/server.d.ts +7 -0
- package/dist/dashboard/server.d.ts.map +1 -0
- package/dist/dashboard/server.js +1427 -0
- package/dist/dashboard/server.js.map +1 -0
- package/dist/mcp/server.d.ts +27 -0
- package/dist/mcp/server.d.ts.map +1 -0
- package/dist/mcp/server.js +380 -0
- package/dist/mcp/server.js.map +1 -0
- package/dist/mcp/tools/misc.d.ts +15 -0
- package/dist/mcp/tools/misc.d.ts.map +1 -0
- package/dist/mcp/tools/misc.js +49 -0
- package/dist/mcp/tools/misc.js.map +1 -0
- package/dist/plugins/builtin/calculator.d.ts +11 -0
- package/dist/plugins/builtin/calculator.d.ts.map +1 -0
- package/dist/plugins/builtin/calculator.js +166 -0
- package/dist/plugins/builtin/calculator.js.map +1 -0
- package/dist/plugins/builtin/colors.d.ts +15 -0
- package/dist/plugins/builtin/colors.d.ts.map +1 -0
- package/dist/plugins/builtin/colors.js +193 -0
- package/dist/plugins/builtin/colors.js.map +1 -0
- package/dist/plugins/builtin/cron.d.ts +40 -0
- package/dist/plugins/builtin/cron.d.ts.map +1 -0
- package/dist/plugins/builtin/cron.js +578 -0
- package/dist/plugins/builtin/cron.js.map +1 -0
- package/dist/plugins/builtin/crypto.d.ts +11 -0
- package/dist/plugins/builtin/crypto.d.ts.map +1 -0
- package/dist/plugins/builtin/crypto.js +83 -0
- package/dist/plugins/builtin/crypto.js.map +1 -0
- package/dist/plugins/builtin/database.d.ts +29 -0
- package/dist/plugins/builtin/database.d.ts.map +1 -0
- package/dist/plugins/builtin/database.js +230 -0
- package/dist/plugins/builtin/database.js.map +1 -0
- package/dist/plugins/builtin/docker.d.ts +12 -0
- package/dist/plugins/builtin/docker.d.ts.map +1 -0
- package/dist/plugins/builtin/docker.js +436 -0
- package/dist/plugins/builtin/docker.js.map +1 -0
- package/dist/plugins/builtin/fun.d.ts +11 -0
- package/dist/plugins/builtin/fun.d.ts.map +1 -0
- package/dist/plugins/builtin/fun.js +114 -0
- package/dist/plugins/builtin/fun.js.map +1 -0
- package/dist/plugins/builtin/gcal.d.ts +38 -0
- package/dist/plugins/builtin/gcal.d.ts.map +1 -0
- package/dist/plugins/builtin/gcal.js +280 -0
- package/dist/plugins/builtin/gcal.js.map +1 -0
- package/dist/plugins/builtin/gdrive.d.ts +26 -0
- package/dist/plugins/builtin/gdrive.d.ts.map +1 -0
- package/dist/plugins/builtin/gdrive.js +295 -0
- package/dist/plugins/builtin/gdrive.js.map +1 -0
- package/dist/plugins/builtin/github-actions.d.ts +38 -0
- package/dist/plugins/builtin/github-actions.d.ts.map +1 -0
- package/dist/plugins/builtin/github-actions.js +629 -0
- package/dist/plugins/builtin/github-actions.js.map +1 -0
- package/dist/plugins/builtin/github.d.ts +26 -0
- package/dist/plugins/builtin/github.d.ts.map +1 -0
- package/dist/plugins/builtin/github.js +800 -0
- package/dist/plugins/builtin/github.js.map +1 -0
- package/dist/plugins/builtin/gmail.d.ts +50 -0
- package/dist/plugins/builtin/gmail.d.ts.map +1 -0
- package/dist/plugins/builtin/gmail.js +445 -0
- package/dist/plugins/builtin/gmail.js.map +1 -0
- package/dist/plugins/builtin/hash.d.ts +11 -0
- package/dist/plugins/builtin/hash.d.ts.map +1 -0
- package/dist/plugins/builtin/hash.js +95 -0
- package/dist/plugins/builtin/hash.js.map +1 -0
- package/dist/plugins/builtin/homekit.d.ts +53 -0
- package/dist/plugins/builtin/homekit.d.ts.map +1 -0
- package/dist/plugins/builtin/homekit.js +341 -0
- package/dist/plugins/builtin/homekit.js.map +1 -0
- package/dist/plugins/builtin/index.d.ts +4 -0
- package/dist/plugins/builtin/index.d.ts.map +1 -0
- package/dist/plugins/builtin/index.js +96 -0
- package/dist/plugins/builtin/index.js.map +1 -0
- package/dist/plugins/builtin/jira.d.ts +50 -0
- package/dist/plugins/builtin/jira.d.ts.map +1 -0
- package/dist/plugins/builtin/jira.js +353 -0
- package/dist/plugins/builtin/jira.js.map +1 -0
- package/dist/plugins/builtin/linear.d.ts +35 -0
- package/dist/plugins/builtin/linear.d.ts.map +1 -0
- package/dist/plugins/builtin/linear.js +397 -0
- package/dist/plugins/builtin/linear.js.map +1 -0
- package/dist/plugins/builtin/lumen.d.ts +21 -0
- package/dist/plugins/builtin/lumen.d.ts.map +1 -0
- package/dist/plugins/builtin/lumen.js +404 -0
- package/dist/plugins/builtin/lumen.js.map +1 -0
- package/dist/plugins/builtin/memory.d.ts +22 -0
- package/dist/plugins/builtin/memory.d.ts.map +1 -0
- package/dist/plugins/builtin/memory.js +184 -0
- package/dist/plugins/builtin/memory.js.map +1 -0
- package/dist/plugins/builtin/n8n.d.ts +60 -0
- package/dist/plugins/builtin/n8n.d.ts.map +1 -0
- package/dist/plugins/builtin/n8n.js +519 -0
- package/dist/plugins/builtin/n8n.js.map +1 -0
- package/dist/plugins/builtin/network.d.ts +11 -0
- package/dist/plugins/builtin/network.d.ts.map +1 -0
- package/dist/plugins/builtin/network.js +88 -0
- package/dist/plugins/builtin/network.js.map +1 -0
- package/dist/plugins/builtin/notes.d.ts +47 -0
- package/dist/plugins/builtin/notes.d.ts.map +1 -0
- package/dist/plugins/builtin/notes.js +641 -0
- package/dist/plugins/builtin/notes.js.map +1 -0
- package/dist/plugins/builtin/notion.d.ts +47 -0
- package/dist/plugins/builtin/notion.d.ts.map +1 -0
- package/dist/plugins/builtin/notion.js +317 -0
- package/dist/plugins/builtin/notion.js.map +1 -0
- package/dist/plugins/builtin/shell.d.ts +12 -0
- package/dist/plugins/builtin/shell.d.ts.map +1 -0
- package/dist/plugins/builtin/shell.js +310 -0
- package/dist/plugins/builtin/shell.js.map +1 -0
- package/dist/plugins/builtin/slack.d.ts +31 -0
- package/dist/plugins/builtin/slack.d.ts.map +1 -0
- package/dist/plugins/builtin/slack.js +295 -0
- package/dist/plugins/builtin/slack.js.map +1 -0
- package/dist/plugins/builtin/spotify.d.ts +55 -0
- package/dist/plugins/builtin/spotify.d.ts.map +1 -0
- package/dist/plugins/builtin/spotify.js +623 -0
- package/dist/plugins/builtin/spotify.js.map +1 -0
- package/dist/plugins/builtin/stripe.d.ts +35 -0
- package/dist/plugins/builtin/stripe.d.ts.map +1 -0
- package/dist/plugins/builtin/stripe.js +376 -0
- package/dist/plugins/builtin/stripe.js.map +1 -0
- package/dist/plugins/builtin/system.d.ts +11 -0
- package/dist/plugins/builtin/system.d.ts.map +1 -0
- package/dist/plugins/builtin/system.js +91 -0
- package/dist/plugins/builtin/system.js.map +1 -0
- package/dist/plugins/builtin/text-tools.d.ts +11 -0
- package/dist/plugins/builtin/text-tools.d.ts.map +1 -0
- package/dist/plugins/builtin/text-tools.js +146 -0
- package/dist/plugins/builtin/text-tools.js.map +1 -0
- package/dist/plugins/builtin/timezone.d.ts +13 -0
- package/dist/plugins/builtin/timezone.d.ts.map +1 -0
- package/dist/plugins/builtin/timezone.js +164 -0
- package/dist/plugins/builtin/timezone.js.map +1 -0
- package/dist/plugins/builtin/todoist.d.ts +49 -0
- package/dist/plugins/builtin/todoist.d.ts.map +1 -0
- package/dist/plugins/builtin/todoist.js +540 -0
- package/dist/plugins/builtin/todoist.js.map +1 -0
- package/dist/plugins/builtin/translate.d.ts +11 -0
- package/dist/plugins/builtin/translate.d.ts.map +1 -0
- package/dist/plugins/builtin/translate.js +42 -0
- package/dist/plugins/builtin/translate.js.map +1 -0
- package/dist/plugins/builtin/url-tools.d.ts +11 -0
- package/dist/plugins/builtin/url-tools.d.ts.map +1 -0
- package/dist/plugins/builtin/url-tools.js +70 -0
- package/dist/plugins/builtin/url-tools.js.map +1 -0
- package/dist/plugins/builtin/vercel.d.ts +55 -0
- package/dist/plugins/builtin/vercel.d.ts.map +1 -0
- package/dist/plugins/builtin/vercel.js +514 -0
- package/dist/plugins/builtin/vercel.js.map +1 -0
- package/dist/plugins/builtin/weather.d.ts +13 -0
- package/dist/plugins/builtin/weather.d.ts.map +1 -0
- package/dist/plugins/builtin/weather.js +103 -0
- package/dist/plugins/builtin/weather.js.map +1 -0
- package/dist/plugins/builtin/x.d.ts +54 -0
- package/dist/plugins/builtin/x.d.ts.map +1 -0
- package/dist/plugins/builtin/x.js +402 -0
- package/dist/plugins/builtin/x.js.map +1 -0
- package/dist/plugins/manager.d.ts +77 -0
- package/dist/plugins/manager.d.ts.map +1 -0
- package/dist/plugins/manager.js +141 -0
- package/dist/plugins/manager.js.map +1 -0
- package/dist/plugins/validation.d.ts +18 -0
- package/dist/plugins/validation.d.ts.map +1 -0
- package/dist/plugins/validation.js +81 -0
- package/dist/plugins/validation.js.map +1 -0
- package/dist/security/auth.d.ts +23 -0
- package/dist/security/auth.d.ts.map +1 -0
- package/dist/security/auth.js +56 -0
- package/dist/security/auth.js.map +1 -0
- package/dist/security/keychain.d.ts +60 -0
- package/dist/security/keychain.d.ts.map +1 -0
- package/dist/security/keychain.js +213 -0
- package/dist/security/keychain.js.map +1 -0
- package/dist/utils/google-auth.d.ts +21 -0
- package/dist/utils/google-auth.d.ts.map +1 -0
- package/dist/utils/google-auth.js +135 -0
- package/dist/utils/google-auth.js.map +1 -0
- package/dist/utils/retry.d.ts +5 -0
- package/dist/utils/retry.d.ts.map +1 -0
- package/dist/utils/retry.js +34 -0
- package/dist/utils/retry.js.map +1 -0
- package/docs/README.md +13 -0
- package/docs/api.md +210 -0
- package/docs/getting-started.md +100 -0
- package/docs/plugins.md +306 -0
- package/docs-site/.vitepress/config.ts +59 -0
- package/docs-site/README.md +12 -0
- package/docs-site/index.md +30 -0
- package/eslint.config.js +29 -0
- package/install.ps1 +334 -0
- package/install.sh +1119 -0
- package/local-install.sh +304 -0
- package/package.json +90 -0
- package/packages/README.md +11 -0
- package/packages/plugin-sdk/README.md +12 -0
- package/packages/plugin-sdk/package.json +22 -0
- package/packages/plugin-sdk/src/README.md +11 -0
- package/packages/plugin-sdk/src/index.ts +191 -0
- package/sdks/README.md +26 -0
- package/sdks/csharp/ConductorClient.cs +65 -0
- package/sdks/csharp/README.md +11 -0
- package/sdks/go/README.md +11 -0
- package/sdks/go/conductor.go +257 -0
- package/sdks/java/ConductorClient.java +27 -0
- package/sdks/java/README.md +11 -0
- package/sdks/php/README.md +11 -0
- package/sdks/php/src/Client.php +72 -0
- package/sdks/python/README.md +12 -0
- package/sdks/python/conductor/__init__.py +227 -0
- package/sdks/python/pyproject.toml +30 -0
- package/sdks/ruby/README.md +11 -0
- package/sdks/ruby/lib/conductor.rb +46 -0
- package/sdks/rust/Cargo.toml +14 -0
- package/sdks/rust/README.md +11 -0
- package/sdks/swift/README.md +11 -0
- package/sdks/swift/Sources/Conductor/ConductorClient.swift +65 -0
- package/skills/conductor-mcp/SKILL.md +38 -0
- package/src/README.md +20 -0
- package/src/ai/README.md +18 -0
- package/src/ai/base.ts +93 -0
- package/src/ai/claude.ts +162 -0
- package/src/ai/gemini.ts +188 -0
- package/src/ai/maestro.ts +168 -0
- package/src/ai/manager.ts +537 -0
- package/src/ai/ollama.ts +186 -0
- package/src/ai/openai.ts +147 -0
- package/src/ai/openrouter.ts +152 -0
- package/src/bot/README.md +12 -0
- package/src/bot/slack.ts +164 -0
- package/src/bot/telegram.ts +185 -0
- package/src/cli/README.md +24 -0
- package/src/cli/commands/README.md +20 -0
- package/src/cli/commands/ai.ts +170 -0
- package/src/cli/commands/doctor.ts +221 -0
- package/src/cli/commands/init.ts +348 -0
- package/src/cli/commands/install.ts +792 -0
- package/src/cli/commands/lifecycle.ts +95 -0
- package/src/cli/commands/marketplace.ts +253 -0
- package/src/cli/commands/mcp.ts +92 -0
- package/src/cli/commands/onboard.ts +248 -0
- package/src/cli/commands/plugin-create.ts +130 -0
- package/src/cli/commands/plugins.ts +36 -0
- package/src/cli/commands/release.ts +251 -0
- package/src/cli/commands/telegram.ts +25 -0
- package/src/cli/index.ts +450 -0
- package/src/config/README.md +11 -0
- package/src/config/oauth.ts +26 -0
- package/src/core/README.md +22 -0
- package/src/core/audit.ts +291 -0
- package/src/core/circuit-breaker.ts +129 -0
- package/src/core/conductor.ts +240 -0
- package/src/core/config.ts +149 -0
- package/src/core/database.ts +411 -0
- package/src/core/errors.ts +275 -0
- package/src/core/health.ts +159 -0
- package/src/core/interfaces.ts +75 -0
- package/src/core/logger.ts +33 -0
- package/src/core/rbac.ts +321 -0
- package/src/core/retry.ts +61 -0
- package/src/core/webhooks.ts +234 -0
- package/src/core/zero-config.ts +72 -0
- package/src/dashboard/README.md +15 -0
- package/src/dashboard/cli.ts +48 -0
- package/src/dashboard/index.html +3426 -0
- package/src/dashboard/server.ts +1544 -0
- package/src/mcp/README.md +20 -0
- package/src/mcp/server.ts +475 -0
- package/src/mcp/tools/README.md +11 -0
- package/src/mcp/tools/misc.ts +61 -0
- package/src/plugins/README.md +28 -0
- package/src/plugins/builtin/README.md +23 -0
- package/src/plugins/builtin/calculator.ts +178 -0
- package/src/plugins/builtin/colors.ts +201 -0
- package/src/plugins/builtin/cron.ts +649 -0
- package/src/plugins/builtin/crypto.ts +85 -0
- package/src/plugins/builtin/database.ts +235 -0
- package/src/plugins/builtin/docker.ts +426 -0
- package/src/plugins/builtin/fun.ts +118 -0
- package/src/plugins/builtin/gcal.ts +305 -0
- package/src/plugins/builtin/gdrive.ts +326 -0
- package/src/plugins/builtin/github-actions.ts +666 -0
- package/src/plugins/builtin/github.ts +912 -0
- package/src/plugins/builtin/gmail.ts +492 -0
- package/src/plugins/builtin/hash.ts +98 -0
- package/src/plugins/builtin/homekit.ts +389 -0
- package/src/plugins/builtin/index.ts +116 -0
- package/src/plugins/builtin/jira.ts +380 -0
- package/src/plugins/builtin/linear.ts +448 -0
- package/src/plugins/builtin/lumen.ts +497 -0
- package/src/plugins/builtin/memory.ts +200 -0
- package/src/plugins/builtin/n8n.ts +565 -0
- package/src/plugins/builtin/network.ts +92 -0
- package/src/plugins/builtin/notes.ts +689 -0
- package/src/plugins/builtin/notion.ts +348 -0
- package/src/plugins/builtin/shell.ts +334 -0
- package/src/plugins/builtin/slack.ts +327 -0
- package/src/plugins/builtin/spotify.ts +665 -0
- package/src/plugins/builtin/stripe.ts +388 -0
- package/src/plugins/builtin/system.ts +93 -0
- package/src/plugins/builtin/text-tools.ts +150 -0
- package/src/plugins/builtin/timezone.ts +173 -0
- package/src/plugins/builtin/todoist.ts +625 -0
- package/src/plugins/builtin/translate.ts +47 -0
- package/src/plugins/builtin/url-tools.ts +73 -0
- package/src/plugins/builtin/vercel.ts +546 -0
- package/src/plugins/builtin/weather.ts +112 -0
- package/src/plugins/builtin/x.ts +440 -0
- package/src/plugins/manager.ts +213 -0
- package/src/plugins/validation.ts +94 -0
- package/src/security/README.md +12 -0
- package/src/security/auth.ts +72 -0
- package/src/security/keychain.ts +226 -0
- package/src/utils/README.md +12 -0
- package/src/utils/google-auth.ts +159 -0
- package/src/utils/retry.ts +41 -0
- package/test-all.mjs +1256 -0
- package/test.mjs +633 -0
- package/tests/README.md +19 -0
- package/tests/calculator.test.ts +54 -0
- package/tests/docker.test.ts +42 -0
- package/tests/load.test.ts +129 -0
- package/tests/mcp.test.ts +14 -0
- package/tests/shell.test.ts +42 -0
- package/tsconfig.json +21 -0
- package/vitest.config.ts +14 -0
|
@@ -0,0 +1,380 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Jira Plugin — Conductor
|
|
3
|
+
*
|
|
4
|
+
* Search issues, create/update tickets, add comments, list projects,
|
|
5
|
+
* and transition issues using the Jira Cloud REST API v3.
|
|
6
|
+
*
|
|
7
|
+
* Setup:
|
|
8
|
+
* 1. Go to https://id.atlassian.com/manage-profile/security/api-tokens
|
|
9
|
+
* 2. Create an API token
|
|
10
|
+
* 3. Your domain is the subdomain of your Jira URL (e.g. "acme" for acme.atlassian.net)
|
|
11
|
+
*
|
|
12
|
+
* Keychain entry: jira / api_token
|
|
13
|
+
* Config entries: jira.domain, jira.email
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
import { Plugin, PluginTool } from '../manager.js';
|
|
17
|
+
import { Conductor } from '../../core/conductor.js';
|
|
18
|
+
import { Keychain } from '../../security/keychain.js';
|
|
19
|
+
|
|
20
|
+
export class JiraPlugin implements Plugin {
|
|
21
|
+
name = 'jira';
|
|
22
|
+
description = 'Search Jira issues, create/update tickets, add comments, and transition issues';
|
|
23
|
+
version = '1.0.0';
|
|
24
|
+
|
|
25
|
+
private keychain!: Keychain;
|
|
26
|
+
private conductor!: Conductor;
|
|
27
|
+
|
|
28
|
+
configSchema = {
|
|
29
|
+
fields: [
|
|
30
|
+
{
|
|
31
|
+
key: 'domain',
|
|
32
|
+
label: 'Jira Domain',
|
|
33
|
+
type: 'string' as const,
|
|
34
|
+
required: true,
|
|
35
|
+
description: 'Your Atlassian subdomain (e.g. acme for acme.atlassian.net)',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
key: 'email',
|
|
39
|
+
label: 'Atlassian Account Email',
|
|
40
|
+
type: 'string' as const,
|
|
41
|
+
required: true,
|
|
42
|
+
description: 'The email you use to log into Jira',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
key: 'api_token',
|
|
46
|
+
label: 'API Token',
|
|
47
|
+
type: 'password' as const,
|
|
48
|
+
required: true,
|
|
49
|
+
secret: true,
|
|
50
|
+
service: 'jira',
|
|
51
|
+
description: 'Create at https://id.atlassian.com/manage-profile/security/api-tokens',
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
setupInstructions:
|
|
55
|
+
'Create a Jira API token at https://id.atlassian.com/manage-profile/security/api-tokens. Your domain is the subdomain before .atlassian.net.',
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
async initialize(conductor: Conductor): Promise<void> {
|
|
59
|
+
this.keychain = new Keychain(conductor.getConfig().getConfigDir());
|
|
60
|
+
this.conductor = conductor;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
isConfigured(): boolean {
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
private async getCredentials(): Promise<{ domain: string; email: string; token: string }> {
|
|
68
|
+
const config = this.conductor.getConfig();
|
|
69
|
+
const domain = config.get<string>('plugins.jira.domain');
|
|
70
|
+
const email = config.get<string>('plugins.jira.email');
|
|
71
|
+
const token = await this.keychain.get('jira', 'api_token');
|
|
72
|
+
|
|
73
|
+
if (!domain || !email || !token) {
|
|
74
|
+
throw new Error('Jira not configured. Run: conductor plugins setup jira');
|
|
75
|
+
}
|
|
76
|
+
return { domain, email, token };
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
private async jiraFetch(
|
|
80
|
+
path: string,
|
|
81
|
+
body?: Record<string, unknown>,
|
|
82
|
+
method = 'GET',
|
|
83
|
+
): Promise<any> {
|
|
84
|
+
const { domain, email, token } = await this.getCredentials();
|
|
85
|
+
const auth = Buffer.from(`${email}:${token}`).toString('base64');
|
|
86
|
+
const base = `https://${domain}.atlassian.net/rest/api/3`;
|
|
87
|
+
|
|
88
|
+
const res = await fetch(`${base}${path}`, {
|
|
89
|
+
method,
|
|
90
|
+
headers: {
|
|
91
|
+
Authorization: `Basic ${auth}`,
|
|
92
|
+
'Content-Type': 'application/json',
|
|
93
|
+
Accept: 'application/json',
|
|
94
|
+
},
|
|
95
|
+
body: body ? JSON.stringify(body) : undefined,
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
if (!res.ok) {
|
|
99
|
+
const err = await res.text().catch(() => res.statusText);
|
|
100
|
+
throw new Error(`Jira API error ${res.status}: ${err}`);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
if (res.status === 204) return { ok: true };
|
|
104
|
+
return res.json();
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
private formatIssue(i: any) {
|
|
108
|
+
return {
|
|
109
|
+
id: i.id,
|
|
110
|
+
key: i.key,
|
|
111
|
+
summary: i.fields?.summary,
|
|
112
|
+
status: i.fields?.status?.name,
|
|
113
|
+
statusCategory: i.fields?.status?.statusCategory?.name,
|
|
114
|
+
priority: i.fields?.priority?.name,
|
|
115
|
+
assignee: i.fields?.assignee?.displayName ?? null,
|
|
116
|
+
reporter: i.fields?.reporter?.displayName ?? null,
|
|
117
|
+
type: i.fields?.issuetype?.name,
|
|
118
|
+
project: i.fields?.project?.key,
|
|
119
|
+
created: i.fields?.created,
|
|
120
|
+
updated: i.fields?.updated,
|
|
121
|
+
labels: i.fields?.labels ?? [],
|
|
122
|
+
url: `https://${i.self?.split('/rest/')[0]?.split('https://')[1]}/browse/${i.key}`,
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
getTools(): PluginTool[] {
|
|
127
|
+
return [
|
|
128
|
+
// ── Search / list ─────────────────────────────────────────────────────
|
|
129
|
+
{
|
|
130
|
+
name: 'jira_issues',
|
|
131
|
+
description: 'Search Jira issues using JQL (Jira Query Language)',
|
|
132
|
+
inputSchema: {
|
|
133
|
+
type: 'object',
|
|
134
|
+
properties: {
|
|
135
|
+
jql: {
|
|
136
|
+
type: 'string',
|
|
137
|
+
description:
|
|
138
|
+
'JQL query. Examples: "assignee = currentUser()", "project = ENG AND status = \\"In Progress\\"", "sprint in openSprints()"',
|
|
139
|
+
},
|
|
140
|
+
max: { type: 'number', description: 'Max results (default 20, max 50)' },
|
|
141
|
+
},
|
|
142
|
+
required: ['jql'],
|
|
143
|
+
},
|
|
144
|
+
handler: async ({ jql, max = 20 }: any) => {
|
|
145
|
+
const data = await this.jiraFetch(
|
|
146
|
+
`/search?jql=${encodeURIComponent(jql)}&maxResults=${Math.min(max, 50)}&fields=summary,status,priority,assignee,reporter,issuetype,project,created,updated,labels`,
|
|
147
|
+
);
|
|
148
|
+
return {
|
|
149
|
+
total: data.total,
|
|
150
|
+
count: data.issues.length,
|
|
151
|
+
issues: data.issues.map(this.formatIssue.bind(this)),
|
|
152
|
+
};
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
|
|
156
|
+
{
|
|
157
|
+
name: 'jira_my_issues',
|
|
158
|
+
description: 'List issues assigned to the current user (open issues)',
|
|
159
|
+
inputSchema: {
|
|
160
|
+
type: 'object',
|
|
161
|
+
properties: {
|
|
162
|
+
project: { type: 'string', description: 'Filter by project key (optional)' },
|
|
163
|
+
max: { type: 'number', description: 'Max results (default 25)' },
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
handler: async ({ project, max = 25 }: any) => {
|
|
167
|
+
let jql = 'assignee = currentUser() AND statusCategory != Done ORDER BY updated DESC';
|
|
168
|
+
if (project) jql = `project = ${project} AND ` + jql;
|
|
169
|
+
const data = await this.jiraFetch(
|
|
170
|
+
`/search?jql=${encodeURIComponent(jql)}&maxResults=${Math.min(max, 50)}&fields=summary,status,priority,assignee,issuetype,project,updated`,
|
|
171
|
+
);
|
|
172
|
+
return {
|
|
173
|
+
total: data.total,
|
|
174
|
+
count: data.issues.length,
|
|
175
|
+
issues: data.issues.map(this.formatIssue.bind(this)),
|
|
176
|
+
};
|
|
177
|
+
},
|
|
178
|
+
},
|
|
179
|
+
|
|
180
|
+
{
|
|
181
|
+
name: 'jira_issue',
|
|
182
|
+
description: 'Get a single Jira issue by key (e.g. ENG-123)',
|
|
183
|
+
inputSchema: {
|
|
184
|
+
type: 'object',
|
|
185
|
+
properties: {
|
|
186
|
+
key: { type: 'string', description: 'Issue key (e.g. ENG-123)' },
|
|
187
|
+
},
|
|
188
|
+
required: ['key'],
|
|
189
|
+
},
|
|
190
|
+
handler: async ({ key }: any) => {
|
|
191
|
+
const i = await this.jiraFetch(`/issue/${key}?fields=summary,status,priority,assignee,reporter,issuetype,project,created,updated,labels,description,comment`);
|
|
192
|
+
const base = this.formatIssue(i);
|
|
193
|
+
const comments = (i.fields?.comment?.comments ?? []).slice(-5).map((c: any) => ({
|
|
194
|
+
author: c.author?.displayName,
|
|
195
|
+
created: c.created,
|
|
196
|
+
body: c.body?.content?.[0]?.content?.[0]?.text ?? '',
|
|
197
|
+
}));
|
|
198
|
+
return { ...base, comments };
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
|
|
202
|
+
// ── Create / update ───────────────────────────────────────────────────
|
|
203
|
+
{
|
|
204
|
+
name: 'jira_create_issue',
|
|
205
|
+
description: 'Create a new Jira issue',
|
|
206
|
+
inputSchema: {
|
|
207
|
+
type: 'object',
|
|
208
|
+
properties: {
|
|
209
|
+
project: { type: 'string', description: 'Project key (e.g. ENG)' },
|
|
210
|
+
summary: { type: 'string', description: 'Issue title/summary' },
|
|
211
|
+
description: { type: 'string', description: 'Detailed description (plain text)' },
|
|
212
|
+
issue_type: {
|
|
213
|
+
type: 'string',
|
|
214
|
+
description: 'Issue type: Task, Bug, Story, Epic (default: Task)',
|
|
215
|
+
},
|
|
216
|
+
priority: {
|
|
217
|
+
type: 'string',
|
|
218
|
+
description: 'Priority: Highest, High, Medium, Low, Lowest',
|
|
219
|
+
},
|
|
220
|
+
assignee: { type: 'string', description: 'Assignee account ID' },
|
|
221
|
+
labels: { type: 'array', items: { type: 'string' }, description: 'Labels to add' },
|
|
222
|
+
},
|
|
223
|
+
required: ['project', 'summary'],
|
|
224
|
+
},
|
|
225
|
+
requiresApproval: true,
|
|
226
|
+
handler: async ({ project, summary, description, issue_type = 'Task', priority, assignee, labels }: any) => {
|
|
227
|
+
const fields: Record<string, unknown> = {
|
|
228
|
+
project: { key: project },
|
|
229
|
+
summary,
|
|
230
|
+
issuetype: { name: issue_type },
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
if (description) {
|
|
234
|
+
fields.description = {
|
|
235
|
+
type: 'doc',
|
|
236
|
+
version: 1,
|
|
237
|
+
content: [{ type: 'paragraph', content: [{ type: 'text', text: description }] }],
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
if (priority) fields.priority = { name: priority };
|
|
241
|
+
if (assignee) fields.assignee = { accountId: assignee };
|
|
242
|
+
if (labels?.length) fields.labels = labels;
|
|
243
|
+
|
|
244
|
+
const data = await this.jiraFetch('/issue', { fields }, 'POST');
|
|
245
|
+
return { id: data.id, key: data.key, url: data.self };
|
|
246
|
+
},
|
|
247
|
+
},
|
|
248
|
+
|
|
249
|
+
{
|
|
250
|
+
name: 'jira_update_issue',
|
|
251
|
+
description: 'Update a Jira issue fields (summary, priority, assignee)',
|
|
252
|
+
inputSchema: {
|
|
253
|
+
type: 'object',
|
|
254
|
+
properties: {
|
|
255
|
+
key: { type: 'string', description: 'Issue key (e.g. ENG-123)' },
|
|
256
|
+
summary: { type: 'string', description: 'New summary' },
|
|
257
|
+
priority: { type: 'string', description: 'New priority: Highest, High, Medium, Low, Lowest' },
|
|
258
|
+
assignee: { type: 'string', description: 'New assignee account ID (null to unassign)' },
|
|
259
|
+
labels: { type: 'array', items: { type: 'string' }, description: 'Replace labels with these' },
|
|
260
|
+
},
|
|
261
|
+
required: ['key'],
|
|
262
|
+
},
|
|
263
|
+
requiresApproval: true,
|
|
264
|
+
handler: async ({ key, summary, priority, assignee, labels }: any) => {
|
|
265
|
+
const fields: Record<string, unknown> = {};
|
|
266
|
+
if (summary) fields.summary = summary;
|
|
267
|
+
if (priority) fields.priority = { name: priority };
|
|
268
|
+
if (assignee !== undefined) fields.assignee = assignee ? { accountId: assignee } : null;
|
|
269
|
+
if (labels) fields.labels = labels;
|
|
270
|
+
|
|
271
|
+
await this.jiraFetch(`/issue/${key}`, { fields }, 'PUT');
|
|
272
|
+
return { ok: true, key, updated: Object.keys(fields) };
|
|
273
|
+
},
|
|
274
|
+
},
|
|
275
|
+
|
|
276
|
+
// ── Comments ──────────────────────────────────────────────────────────
|
|
277
|
+
{
|
|
278
|
+
name: 'jira_comment',
|
|
279
|
+
description: 'Add a comment to a Jira issue',
|
|
280
|
+
inputSchema: {
|
|
281
|
+
type: 'object',
|
|
282
|
+
properties: {
|
|
283
|
+
key: { type: 'string', description: 'Issue key (e.g. ENG-123)' },
|
|
284
|
+
body: { type: 'string', description: 'Comment text' },
|
|
285
|
+
},
|
|
286
|
+
required: ['key', 'body'],
|
|
287
|
+
},
|
|
288
|
+
requiresApproval: true,
|
|
289
|
+
handler: async ({ key, body }: any) => {
|
|
290
|
+
const data = await this.jiraFetch(`/issue/${key}/comment`, {
|
|
291
|
+
body: {
|
|
292
|
+
type: 'doc',
|
|
293
|
+
version: 1,
|
|
294
|
+
content: [{ type: 'paragraph', content: [{ type: 'text', text: body }] }],
|
|
295
|
+
},
|
|
296
|
+
}, 'POST');
|
|
297
|
+
return { id: data.id, author: data.author?.displayName, created: data.created };
|
|
298
|
+
},
|
|
299
|
+
},
|
|
300
|
+
|
|
301
|
+
// ── Projects ──────────────────────────────────────────────────────────
|
|
302
|
+
{
|
|
303
|
+
name: 'jira_projects',
|
|
304
|
+
description: 'List all accessible Jira projects',
|
|
305
|
+
inputSchema: { type: 'object', properties: {} },
|
|
306
|
+
handler: async () => {
|
|
307
|
+
const data = await this.jiraFetch('/project/search?maxResults=50&orderBy=name');
|
|
308
|
+
return {
|
|
309
|
+
count: data.values.length,
|
|
310
|
+
projects: data.values.map((p: any) => ({
|
|
311
|
+
id: p.id,
|
|
312
|
+
key: p.key,
|
|
313
|
+
name: p.name,
|
|
314
|
+
type: p.projectTypeKey,
|
|
315
|
+
lead: p.lead?.displayName,
|
|
316
|
+
})),
|
|
317
|
+
};
|
|
318
|
+
},
|
|
319
|
+
},
|
|
320
|
+
|
|
321
|
+
// ── Transitions ───────────────────────────────────────────────────────
|
|
322
|
+
{
|
|
323
|
+
name: 'jira_transitions',
|
|
324
|
+
description: 'List available transitions (status moves) for a Jira issue',
|
|
325
|
+
inputSchema: {
|
|
326
|
+
type: 'object',
|
|
327
|
+
properties: {
|
|
328
|
+
key: { type: 'string', description: 'Issue key (e.g. ENG-123)' },
|
|
329
|
+
},
|
|
330
|
+
required: ['key'],
|
|
331
|
+
},
|
|
332
|
+
handler: async ({ key }: any) => {
|
|
333
|
+
const data = await this.jiraFetch(`/issue/${key}/transitions`);
|
|
334
|
+
return {
|
|
335
|
+
issue: key,
|
|
336
|
+
transitions: data.transitions.map((t: any) => ({
|
|
337
|
+
id: t.id,
|
|
338
|
+
name: t.name,
|
|
339
|
+
to: t.to?.name,
|
|
340
|
+
category: t.to?.statusCategory?.name,
|
|
341
|
+
})),
|
|
342
|
+
};
|
|
343
|
+
},
|
|
344
|
+
},
|
|
345
|
+
|
|
346
|
+
{
|
|
347
|
+
name: 'jira_transition_issue',
|
|
348
|
+
description: 'Move a Jira issue to a new status using a transition ID',
|
|
349
|
+
inputSchema: {
|
|
350
|
+
type: 'object',
|
|
351
|
+
properties: {
|
|
352
|
+
key: { type: 'string', description: 'Issue key (e.g. ENG-123)' },
|
|
353
|
+
transition_id: { type: 'string', description: 'Transition ID (get with jira_transitions)' },
|
|
354
|
+
comment: { type: 'string', description: 'Optional comment to add when transitioning' },
|
|
355
|
+
},
|
|
356
|
+
required: ['key', 'transition_id'],
|
|
357
|
+
},
|
|
358
|
+
requiresApproval: true,
|
|
359
|
+
handler: async ({ key, transition_id, comment }: any) => {
|
|
360
|
+
const body: Record<string, unknown> = { transition: { id: transition_id } };
|
|
361
|
+
if (comment) {
|
|
362
|
+
body.update = {
|
|
363
|
+
comment: [{
|
|
364
|
+
add: {
|
|
365
|
+
body: {
|
|
366
|
+
type: 'doc',
|
|
367
|
+
version: 1,
|
|
368
|
+
content: [{ type: 'paragraph', content: [{ type: 'text', text: comment }] }],
|
|
369
|
+
},
|
|
370
|
+
},
|
|
371
|
+
}],
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
await this.jiraFetch(`/issue/${key}/transitions`, body, 'POST');
|
|
375
|
+
return { ok: true, key, transitioned: transition_id };
|
|
376
|
+
},
|
|
377
|
+
},
|
|
378
|
+
];
|
|
379
|
+
}
|
|
380
|
+
}
|