@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,448 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Linear Plugin — Conductor
|
|
3
|
+
*
|
|
4
|
+
* Interact with Linear issues, teams, projects, and cycles via the
|
|
5
|
+
* Linear GraphQL API. Requires a personal API key.
|
|
6
|
+
*
|
|
7
|
+
* Setup: Linear Settings > API > Personal API Keys
|
|
8
|
+
* Keychain entry: linear / api_key
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import { Plugin, PluginTool } from '../manager.js';
|
|
12
|
+
import { Conductor } from '../../core/conductor.js';
|
|
13
|
+
import { Keychain } from '../../security/keychain.js';
|
|
14
|
+
|
|
15
|
+
const LINEAR_GRAPHQL = 'https://api.linear.app/graphql';
|
|
16
|
+
|
|
17
|
+
export class LinearPlugin implements Plugin {
|
|
18
|
+
name = 'linear';
|
|
19
|
+
description = 'Manage Linear issues, teams, projects, and cycles — requires Linear API key';
|
|
20
|
+
version = '1.0.0';
|
|
21
|
+
|
|
22
|
+
configSchema = {
|
|
23
|
+
fields: [
|
|
24
|
+
{
|
|
25
|
+
key: 'api_key',
|
|
26
|
+
label: 'Linear API Key',
|
|
27
|
+
type: 'password' as const,
|
|
28
|
+
required: true,
|
|
29
|
+
secret: true,
|
|
30
|
+
service: 'linear',
|
|
31
|
+
description: 'Create a personal API key at Linear Settings > API > Personal API Keys.',
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
setupInstructions:
|
|
35
|
+
'Get your API key from Linear Settings > API > Personal API Keys. The key starts with "lin_api_".',
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
private keychain!: Keychain;
|
|
39
|
+
|
|
40
|
+
async initialize(conductor: Conductor): Promise<void> {
|
|
41
|
+
this.keychain = new Keychain(conductor.getConfig().getConfigDir());
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
isConfigured(): boolean {
|
|
45
|
+
return true; // checked at tool call time
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
private async getApiKey(): Promise<string> {
|
|
49
|
+
const key = await this.keychain.get('linear', 'api_key');
|
|
50
|
+
if (!key) {
|
|
51
|
+
throw new Error('Linear API key not configured. Run: conductor plugins setup linear');
|
|
52
|
+
}
|
|
53
|
+
return key;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
private async linearQuery(query: string, variables?: Record<string, any>): Promise<any> {
|
|
57
|
+
const apiKey = await this.getApiKey();
|
|
58
|
+
const res = await fetch(LINEAR_GRAPHQL, {
|
|
59
|
+
method: 'POST',
|
|
60
|
+
headers: {
|
|
61
|
+
'Content-Type': 'application/json',
|
|
62
|
+
Authorization: apiKey,
|
|
63
|
+
},
|
|
64
|
+
body: JSON.stringify({ query, variables }),
|
|
65
|
+
});
|
|
66
|
+
if (!res.ok) {
|
|
67
|
+
const errText = await res.text().catch(() => res.statusText);
|
|
68
|
+
throw new Error(`Linear API ${res.status}: ${errText}`);
|
|
69
|
+
}
|
|
70
|
+
const json = (await res.json()) as { errors?: { message: string }[]; data?: unknown };
|
|
71
|
+
if (json.errors?.length) {
|
|
72
|
+
throw new Error(`Linear GraphQL error: ${json.errors.map((e) => e.message).join(', ')}`);
|
|
73
|
+
}
|
|
74
|
+
return json.data;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
getTools(): PluginTool[] {
|
|
78
|
+
return [
|
|
79
|
+
// ── Me ───────────────────────────────────────────────────────────────
|
|
80
|
+
|
|
81
|
+
{
|
|
82
|
+
name: 'linear_me',
|
|
83
|
+
description: 'Get current Linear user info',
|
|
84
|
+
inputSchema: { type: 'object', properties: {} },
|
|
85
|
+
handler: async () => {
|
|
86
|
+
const data = await this.linearQuery(`query { viewer { id name email displayName avatarUrl createdAt } }`);
|
|
87
|
+
return data.viewer;
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
|
|
91
|
+
// ── Teams ────────────────────────────────────────────────────────────
|
|
92
|
+
|
|
93
|
+
{
|
|
94
|
+
name: 'linear_teams',
|
|
95
|
+
description: 'List all teams in the Linear workspace',
|
|
96
|
+
inputSchema: { type: 'object', properties: {} },
|
|
97
|
+
handler: async () => {
|
|
98
|
+
const data = await this.linearQuery(`
|
|
99
|
+
query {
|
|
100
|
+
teams {
|
|
101
|
+
nodes { id key name description memberCount createdAt }
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
`);
|
|
105
|
+
return data.teams.nodes;
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
|
|
109
|
+
// ── Issues ───────────────────────────────────────────────────────────
|
|
110
|
+
|
|
111
|
+
{
|
|
112
|
+
name: 'linear_issues',
|
|
113
|
+
description: 'List issues with optional filters (team, state, assignee, priority)',
|
|
114
|
+
inputSchema: {
|
|
115
|
+
type: 'object',
|
|
116
|
+
properties: {
|
|
117
|
+
team_key: { type: 'string', description: 'Team key (e.g. "ENG") — use linear_teams to find keys' },
|
|
118
|
+
state: { type: 'string', description: 'State name filter (e.g. "In Progress", "Todo")' },
|
|
119
|
+
assignee_name: { type: 'string', description: 'Assignee display name filter' },
|
|
120
|
+
priority: {
|
|
121
|
+
type: 'number',
|
|
122
|
+
description: 'Priority filter: 0=No priority, 1=Urgent, 2=High, 3=Medium, 4=Low',
|
|
123
|
+
},
|
|
124
|
+
first: { type: 'number', description: 'Number of issues to return (default 25, max 50)' },
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
handler: async (input: {
|
|
128
|
+
team_key?: string;
|
|
129
|
+
state?: string;
|
|
130
|
+
assignee_name?: string;
|
|
131
|
+
priority?: number;
|
|
132
|
+
first?: number;
|
|
133
|
+
}) => {
|
|
134
|
+
const filterParts: string[] = [];
|
|
135
|
+
if (input.team_key) filterParts.push(`team: { key: { eq: "${input.team_key}" } }`);
|
|
136
|
+
if (input.state) filterParts.push(`state: { name: { eq: "${input.state}" } }`);
|
|
137
|
+
if (input.assignee_name) filterParts.push(`assignee: { displayName: { eq: "${input.assignee_name}" } }`);
|
|
138
|
+
if (input.priority !== undefined) filterParts.push(`priority: { eq: ${input.priority} }`);
|
|
139
|
+
|
|
140
|
+
const filterArg = filterParts.length ? `filter: { ${filterParts.join(', ')} }` : '';
|
|
141
|
+
const first = Math.min(input.first ?? 25, 50);
|
|
142
|
+
|
|
143
|
+
const data = await this.linearQuery(`
|
|
144
|
+
query {
|
|
145
|
+
issues(${filterArg}, first: ${first}, orderBy: updatedAt) {
|
|
146
|
+
nodes {
|
|
147
|
+
id identifier title
|
|
148
|
+
state { name color }
|
|
149
|
+
priority priorityLabel
|
|
150
|
+
assignee { name displayName }
|
|
151
|
+
team { key name }
|
|
152
|
+
createdAt updatedAt
|
|
153
|
+
url
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
`);
|
|
158
|
+
return data.issues.nodes.map((i: any) => ({
|
|
159
|
+
id: i.id,
|
|
160
|
+
identifier: i.identifier,
|
|
161
|
+
title: i.title,
|
|
162
|
+
state: i.state?.name,
|
|
163
|
+
priority: i.priorityLabel,
|
|
164
|
+
assignee: i.assignee?.displayName ?? i.assignee?.name,
|
|
165
|
+
team: i.team?.key,
|
|
166
|
+
created: i.createdAt,
|
|
167
|
+
updated: i.updatedAt,
|
|
168
|
+
url: i.url,
|
|
169
|
+
}));
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
|
|
173
|
+
{
|
|
174
|
+
name: 'linear_issue',
|
|
175
|
+
description: 'Get detailed info for a single issue by ID or identifier (e.g. ENG-123)',
|
|
176
|
+
inputSchema: {
|
|
177
|
+
type: 'object',
|
|
178
|
+
properties: {
|
|
179
|
+
id: { type: 'string', description: 'Issue UUID or identifier like "ENG-123"' },
|
|
180
|
+
},
|
|
181
|
+
required: ['id'],
|
|
182
|
+
},
|
|
183
|
+
handler: async (input: { id: string }) => {
|
|
184
|
+
// Linear accepts both UUIDs and identifiers in the issue() query
|
|
185
|
+
const data = await this.linearQuery(
|
|
186
|
+
`
|
|
187
|
+
query($id: String!) {
|
|
188
|
+
issue(id: $id) {
|
|
189
|
+
id identifier title description
|
|
190
|
+
state { name }
|
|
191
|
+
priority priorityLabel
|
|
192
|
+
assignee { name displayName email }
|
|
193
|
+
team { key name }
|
|
194
|
+
labels { nodes { name color } }
|
|
195
|
+
comments { nodes { body user { name } createdAt } }
|
|
196
|
+
createdAt updatedAt dueDate
|
|
197
|
+
url
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
`,
|
|
201
|
+
{ id: input.id },
|
|
202
|
+
);
|
|
203
|
+
const i = data.issue;
|
|
204
|
+
return {
|
|
205
|
+
id: i.id,
|
|
206
|
+
identifier: i.identifier,
|
|
207
|
+
title: i.title,
|
|
208
|
+
description: i.description,
|
|
209
|
+
state: i.state?.name,
|
|
210
|
+
priority: i.priorityLabel,
|
|
211
|
+
assignee: i.assignee?.displayName ?? i.assignee?.name,
|
|
212
|
+
team: i.team?.key,
|
|
213
|
+
labels: i.labels?.nodes?.map((l: any) => l.name),
|
|
214
|
+
comments: i.comments?.nodes?.map((c: any) => ({
|
|
215
|
+
body: c.body,
|
|
216
|
+
author: c.user?.name,
|
|
217
|
+
created: c.createdAt,
|
|
218
|
+
})),
|
|
219
|
+
created: i.createdAt,
|
|
220
|
+
updated: i.updatedAt,
|
|
221
|
+
due: i.dueDate,
|
|
222
|
+
url: i.url,
|
|
223
|
+
};
|
|
224
|
+
},
|
|
225
|
+
},
|
|
226
|
+
|
|
227
|
+
{
|
|
228
|
+
name: 'linear_create_issue',
|
|
229
|
+
description: 'Create a new Linear issue',
|
|
230
|
+
inputSchema: {
|
|
231
|
+
type: 'object',
|
|
232
|
+
properties: {
|
|
233
|
+
title: { type: 'string', description: 'Issue title' },
|
|
234
|
+
description: { type: 'string', description: 'Issue description (markdown)' },
|
|
235
|
+
team_key: { type: 'string', description: 'Team key (e.g. "ENG") — required' },
|
|
236
|
+
priority: {
|
|
237
|
+
type: 'number',
|
|
238
|
+
description: 'Priority: 0=No priority, 1=Urgent, 2=High, 3=Medium, 4=Low',
|
|
239
|
+
},
|
|
240
|
+
assignee_id: { type: 'string', description: 'Assignee user ID' },
|
|
241
|
+
state_id: { type: 'string', description: 'State ID to set' },
|
|
242
|
+
},
|
|
243
|
+
required: ['title', 'team_key'],
|
|
244
|
+
},
|
|
245
|
+
requiresApproval: true,
|
|
246
|
+
handler: async (input: {
|
|
247
|
+
title: string;
|
|
248
|
+
description?: string;
|
|
249
|
+
team_key: string;
|
|
250
|
+
priority?: number;
|
|
251
|
+
assignee_id?: string;
|
|
252
|
+
state_id?: string;
|
|
253
|
+
}) => {
|
|
254
|
+
// First resolve team key to ID
|
|
255
|
+
const teamsData = await this.linearQuery(`query { teams { nodes { id key } } }`);
|
|
256
|
+
const team = teamsData.teams.nodes.find((t: any) => t.key === input.team_key);
|
|
257
|
+
if (!team) throw new Error(`Team "${input.team_key}" not found`);
|
|
258
|
+
|
|
259
|
+
const issueInput: Record<string, any> = {
|
|
260
|
+
title: input.title,
|
|
261
|
+
teamId: team.id,
|
|
262
|
+
};
|
|
263
|
+
if (input.description) issueInput.description = input.description;
|
|
264
|
+
if (input.priority !== undefined) issueInput.priority = input.priority;
|
|
265
|
+
if (input.assignee_id) issueInput.assigneeId = input.assignee_id;
|
|
266
|
+
if (input.state_id) issueInput.stateId = input.state_id;
|
|
267
|
+
|
|
268
|
+
const data = await this.linearQuery(
|
|
269
|
+
`
|
|
270
|
+
mutation($input: IssueCreateInput!) {
|
|
271
|
+
issueCreate(input: $input) {
|
|
272
|
+
success
|
|
273
|
+
issue { id identifier title url }
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
`,
|
|
277
|
+
{ input: issueInput },
|
|
278
|
+
);
|
|
279
|
+
return data.issueCreate.issue;
|
|
280
|
+
},
|
|
281
|
+
},
|
|
282
|
+
|
|
283
|
+
{
|
|
284
|
+
name: 'linear_update_issue',
|
|
285
|
+
description: 'Update issue state, priority, or assignee',
|
|
286
|
+
inputSchema: {
|
|
287
|
+
type: 'object',
|
|
288
|
+
properties: {
|
|
289
|
+
id: { type: 'string', description: 'Issue UUID or identifier (e.g. ENG-123)' },
|
|
290
|
+
state_id: { type: 'string', description: 'New state ID' },
|
|
291
|
+
priority: { type: 'number', description: 'New priority (0-4)' },
|
|
292
|
+
assignee_id: { type: 'string', description: 'New assignee user ID' },
|
|
293
|
+
title: { type: 'string', description: 'New title' },
|
|
294
|
+
description: { type: 'string', description: 'New description' },
|
|
295
|
+
},
|
|
296
|
+
required: ['id'],
|
|
297
|
+
},
|
|
298
|
+
requiresApproval: true,
|
|
299
|
+
handler: async (input: {
|
|
300
|
+
id: string;
|
|
301
|
+
state_id?: string;
|
|
302
|
+
priority?: number;
|
|
303
|
+
assignee_id?: string;
|
|
304
|
+
title?: string;
|
|
305
|
+
description?: string;
|
|
306
|
+
}) => {
|
|
307
|
+
const updateInput: Record<string, any> = {};
|
|
308
|
+
if (input.state_id) updateInput.stateId = input.state_id;
|
|
309
|
+
if (input.priority !== undefined) updateInput.priority = input.priority;
|
|
310
|
+
if (input.assignee_id) updateInput.assigneeId = input.assignee_id;
|
|
311
|
+
if (input.title) updateInput.title = input.title;
|
|
312
|
+
if (input.description) updateInput.description = input.description;
|
|
313
|
+
|
|
314
|
+
const data = await this.linearQuery(
|
|
315
|
+
`
|
|
316
|
+
mutation($id: String!, $input: IssueUpdateInput!) {
|
|
317
|
+
issueUpdate(id: $id, input: $input) {
|
|
318
|
+
success
|
|
319
|
+
issue { id identifier title url }
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
`,
|
|
323
|
+
{ id: input.id, input: updateInput },
|
|
324
|
+
);
|
|
325
|
+
return data.issueUpdate.issue;
|
|
326
|
+
},
|
|
327
|
+
},
|
|
328
|
+
|
|
329
|
+
{
|
|
330
|
+
name: 'linear_comment',
|
|
331
|
+
description: 'Add a comment to a Linear issue',
|
|
332
|
+
inputSchema: {
|
|
333
|
+
type: 'object',
|
|
334
|
+
properties: {
|
|
335
|
+
issue_id: { type: 'string', description: 'Issue UUID or identifier (e.g. ENG-123)' },
|
|
336
|
+
body: { type: 'string', description: 'Comment text (markdown)' },
|
|
337
|
+
},
|
|
338
|
+
required: ['issue_id', 'body'],
|
|
339
|
+
},
|
|
340
|
+
requiresApproval: true,
|
|
341
|
+
handler: async (input: { issue_id: string; body: string }) => {
|
|
342
|
+
const data = await this.linearQuery(
|
|
343
|
+
`
|
|
344
|
+
mutation($input: CommentCreateInput!) {
|
|
345
|
+
commentCreate(input: $input) {
|
|
346
|
+
success
|
|
347
|
+
comment { id body createdAt }
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
`,
|
|
351
|
+
{ input: { issueId: input.issue_id, body: input.body } },
|
|
352
|
+
);
|
|
353
|
+
return data.commentCreate.comment;
|
|
354
|
+
},
|
|
355
|
+
},
|
|
356
|
+
|
|
357
|
+
// ── Projects ─────────────────────────────────────────────────────────
|
|
358
|
+
|
|
359
|
+
{
|
|
360
|
+
name: 'linear_projects',
|
|
361
|
+
description: 'List projects in the Linear workspace',
|
|
362
|
+
inputSchema: {
|
|
363
|
+
type: 'object',
|
|
364
|
+
properties: {
|
|
365
|
+
first: { type: 'number', description: 'Number of projects to return (default 20)' },
|
|
366
|
+
},
|
|
367
|
+
},
|
|
368
|
+
handler: async (input: { first?: number }) => {
|
|
369
|
+
const first = Math.min(input.first ?? 20, 50);
|
|
370
|
+
const data = await this.linearQuery(`
|
|
371
|
+
query {
|
|
372
|
+
projects(first: ${first}) {
|
|
373
|
+
nodes {
|
|
374
|
+
id name description
|
|
375
|
+
state
|
|
376
|
+
progress
|
|
377
|
+
startDate targetDate
|
|
378
|
+
teams { nodes { key name } }
|
|
379
|
+
createdAt updatedAt
|
|
380
|
+
url
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
`);
|
|
385
|
+
return data.projects.nodes.map((p: any) => ({
|
|
386
|
+
id: p.id,
|
|
387
|
+
name: p.name,
|
|
388
|
+
description: p.description,
|
|
389
|
+
state: p.state,
|
|
390
|
+
progress: p.progress,
|
|
391
|
+
start: p.startDate,
|
|
392
|
+
target: p.targetDate,
|
|
393
|
+
teams: p.teams?.nodes?.map((t: any) => t.key),
|
|
394
|
+
url: p.url,
|
|
395
|
+
}));
|
|
396
|
+
},
|
|
397
|
+
},
|
|
398
|
+
|
|
399
|
+
// ── Cycles ───────────────────────────────────────────────────────────
|
|
400
|
+
|
|
401
|
+
{
|
|
402
|
+
name: 'linear_cycles',
|
|
403
|
+
description: 'List cycles (sprints) for a team',
|
|
404
|
+
inputSchema: {
|
|
405
|
+
type: 'object',
|
|
406
|
+
properties: {
|
|
407
|
+
team_key: { type: 'string', description: 'Team key (e.g. "ENG")' },
|
|
408
|
+
first: { type: 'number', description: 'Number of cycles to return (default 10)' },
|
|
409
|
+
},
|
|
410
|
+
required: ['team_key'],
|
|
411
|
+
},
|
|
412
|
+
handler: async (input: { team_key: string; first?: number }) => {
|
|
413
|
+
const first = Math.min(input.first ?? 10, 25);
|
|
414
|
+
const data = await this.linearQuery(
|
|
415
|
+
`
|
|
416
|
+
query($filter: CycleFilter) {
|
|
417
|
+
cycles(filter: $filter, first: ${first}, orderBy: createdAt) {
|
|
418
|
+
nodes {
|
|
419
|
+
id number name
|
|
420
|
+
startsAt endsAt
|
|
421
|
+
progress
|
|
422
|
+
isActive isNext
|
|
423
|
+
issues { totalCount }
|
|
424
|
+
completedIssues: issues(filter: { completedAt: { null: false } }) { totalCount }
|
|
425
|
+
team { key }
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
`,
|
|
430
|
+
{ filter: { team: { key: { eq: input.team_key } } } },
|
|
431
|
+
);
|
|
432
|
+
return data.cycles.nodes.map((c: any) => ({
|
|
433
|
+
id: c.id,
|
|
434
|
+
number: c.number,
|
|
435
|
+
name: c.name,
|
|
436
|
+
starts: c.startsAt,
|
|
437
|
+
ends: c.endsAt,
|
|
438
|
+
progress: c.progress,
|
|
439
|
+
active: c.isActive,
|
|
440
|
+
next: c.isNext,
|
|
441
|
+
total_issues: c.issues?.totalCount,
|
|
442
|
+
completed_issues: c.completedIssues?.totalCount,
|
|
443
|
+
}));
|
|
444
|
+
},
|
|
445
|
+
},
|
|
446
|
+
];
|
|
447
|
+
}
|
|
448
|
+
}
|