superacli 1.0.1 → 1.1.2
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/.beads/.br_history/issues.20260308_200823_636718328.jsonl +20 -0
- package/.beads/.br_history/issues.20260308_200823_636718328.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_200827_033159453.jsonl +21 -0
- package/.beads/.br_history/issues.20260308_200827_033159453.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_200829_595900053.jsonl +22 -0
- package/.beads/.br_history/issues.20260308_200829_595900053.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_200834_079930100.jsonl +23 -0
- package/.beads/.br_history/issues.20260308_200834_079930100.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_200858_370924996.jsonl +24 -0
- package/.beads/.br_history/issues.20260308_200858_370924996.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_201031_019730855.jsonl +24 -0
- package/.beads/.br_history/issues.20260308_201031_019730855.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_201031_578974884.jsonl +24 -0
- package/.beads/.br_history/issues.20260308_201031_578974884.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_201054_780345548.jsonl +24 -0
- package/.beads/.br_history/issues.20260308_201054_780345548.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_201054_896980019.jsonl +24 -0
- package/.beads/.br_history/issues.20260308_201054_896980019.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_201128_599819688.jsonl +24 -0
- package/.beads/.br_history/issues.20260308_201128_599819688.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_201128_710221699.jsonl +24 -0
- package/.beads/.br_history/issues.20260308_201128_710221699.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_201204_745649213.jsonl +24 -0
- package/.beads/.br_history/issues.20260308_201204_745649213.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_201338_908436144.jsonl +24 -0
- package/.beads/.br_history/issues.20260308_201338_908436144.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_201344_734860714.jsonl +25 -0
- package/.beads/.br_history/issues.20260308_201344_734860714.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_201630_819282295.jsonl +25 -0
- package/.beads/.br_history/issues.20260308_201630_819282295.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_203538_054279699.jsonl +25 -0
- package/.beads/.br_history/issues.20260308_203538_054279699.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_203547_597113070.jsonl +26 -0
- package/.beads/.br_history/issues.20260308_203547_597113070.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_203547_775139216.jsonl +27 -0
- package/.beads/.br_history/issues.20260308_203547_775139216.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_203547_950724773.jsonl +28 -0
- package/.beads/.br_history/issues.20260308_203547_950724773.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_203548_107684523.jsonl +29 -0
- package/.beads/.br_history/issues.20260308_203548_107684523.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_203548_310389993.jsonl +30 -0
- package/.beads/.br_history/issues.20260308_203548_310389993.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_203825_953337320.jsonl +31 -0
- package/.beads/.br_history/issues.20260308_203825_953337320.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_204056_071377736.jsonl +32 -0
- package/.beads/.br_history/issues.20260308_204056_071377736.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_205141_517616844.jsonl +32 -0
- package/.beads/.br_history/issues.20260308_205141_517616844.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_205141_648994024.jsonl +32 -0
- package/.beads/.br_history/issues.20260308_205141_648994024.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_205141_867598036.jsonl +32 -0
- package/.beads/.br_history/issues.20260308_205141_867598036.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_205142_094157355.jsonl +32 -0
- package/.beads/.br_history/issues.20260308_205142_094157355.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_205142_327315677.jsonl +32 -0
- package/.beads/.br_history/issues.20260308_205142_327315677.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_205142_545563822.jsonl +32 -0
- package/.beads/.br_history/issues.20260308_205142_545563822.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_205213_061989333.jsonl +32 -0
- package/.beads/.br_history/issues.20260308_205213_061989333.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_205213_181103364.jsonl +32 -0
- package/.beads/.br_history/issues.20260308_205213_181103364.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_205213_408872234.jsonl +32 -0
- package/.beads/.br_history/issues.20260308_205213_408872234.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_205213_616681652.jsonl +32 -0
- package/.beads/.br_history/issues.20260308_205213_616681652.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_205213_821507069.jsonl +32 -0
- package/.beads/.br_history/issues.20260308_205213_821507069.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_205214_026661112.jsonl +32 -0
- package/.beads/.br_history/issues.20260308_205214_026661112.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_205454_955250554.jsonl +32 -0
- package/.beads/.br_history/issues.20260308_205454_955250554.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_205556_337800392.jsonl +33 -0
- package/.beads/.br_history/issues.20260308_205556_337800392.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_205824_274686694.jsonl +33 -0
- package/.beads/.br_history/issues.20260308_205824_274686694.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_210240_583768328.jsonl +34 -0
- package/.beads/.br_history/issues.20260308_210240_583768328.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_212223_641541494.jsonl +34 -0
- package/.beads/.br_history/issues.20260308_212223_641541494.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_212227_735550996.jsonl +35 -0
- package/.beads/.br_history/issues.20260308_212227_735550996.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_212232_547298548.jsonl +36 -0
- package/.beads/.br_history/issues.20260308_212232_547298548.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_212528_843628125.jsonl +37 -0
- package/.beads/.br_history/issues.20260308_212528_843628125.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_212529_094530502.jsonl +38 -0
- package/.beads/.br_history/issues.20260308_212529_094530502.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_212529_331000853.jsonl +39 -0
- package/.beads/.br_history/issues.20260308_212529_331000853.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_212529_587925652.jsonl +40 -0
- package/.beads/.br_history/issues.20260308_212529_587925652.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_212804_927764103.jsonl +41 -0
- package/.beads/.br_history/issues.20260308_212804_927764103.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_212805_153673453.jsonl +42 -0
- package/.beads/.br_history/issues.20260308_212805_153673453.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_212805_415982363.jsonl +43 -0
- package/.beads/.br_history/issues.20260308_212805_415982363.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_212805_657497741.jsonl +44 -0
- package/.beads/.br_history/issues.20260308_212805_657497741.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_212805_952838724.jsonl +45 -0
- package/.beads/.br_history/issues.20260308_212805_952838724.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_212806_325433779.jsonl +46 -0
- package/.beads/.br_history/issues.20260308_212806_325433779.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_212806_584685598.jsonl +47 -0
- package/.beads/.br_history/issues.20260308_212806_584685598.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_212806_827817208.jsonl +48 -0
- package/.beads/.br_history/issues.20260308_212806_827817208.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_212807_111320451.jsonl +49 -0
- package/.beads/.br_history/issues.20260308_212807_111320451.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_212807_409545536.jsonl +50 -0
- package/.beads/.br_history/issues.20260308_212807_409545536.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_212807_625063294.jsonl +51 -0
- package/.beads/.br_history/issues.20260308_212807_625063294.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_212807_843906551.jsonl +52 -0
- package/.beads/.br_history/issues.20260308_212807_843906551.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_212808_100304073.jsonl +53 -0
- package/.beads/.br_history/issues.20260308_212808_100304073.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_212808_324723976.jsonl +54 -0
- package/.beads/.br_history/issues.20260308_212808_324723976.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_212808_557513104.jsonl +55 -0
- package/.beads/.br_history/issues.20260308_212808_557513104.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_212808_788048322.jsonl +56 -0
- package/.beads/.br_history/issues.20260308_212808_788048322.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_213702_613249728.jsonl +57 -0
- package/.beads/.br_history/issues.20260308_213702_613249728.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_213715_115792063.jsonl +57 -0
- package/.beads/.br_history/issues.20260308_213715_115792063.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_213715_462220666.jsonl +57 -0
- package/.beads/.br_history/issues.20260308_213715_462220666.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_213727_191258923.jsonl +57 -0
- package/.beads/.br_history/issues.20260308_213727_191258923.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_213727_684383652.jsonl +57 -0
- package/.beads/.br_history/issues.20260308_213727_684383652.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_213735_751882991.jsonl +57 -0
- package/.beads/.br_history/issues.20260308_213735_751882991.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_222052_279844960.jsonl +57 -0
- package/.beads/.br_history/issues.20260308_222052_279844960.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_222056_873282114.jsonl +57 -0
- package/.beads/.br_history/issues.20260308_222056_873282114.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_222103_402410761.jsonl +57 -0
- package/.beads/.br_history/issues.20260308_222103_402410761.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_235202_180577215.jsonl +57 -0
- package/.beads/.br_history/issues.20260308_235202_180577215.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_235202_387414163.jsonl +57 -0
- package/.beads/.br_history/issues.20260308_235202_387414163.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_235202_564422794.jsonl +57 -0
- package/.beads/.br_history/issues.20260308_235202_564422794.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_235202_742600597.jsonl +57 -0
- package/.beads/.br_history/issues.20260308_235202_742600597.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_235208_133360069.jsonl +57 -0
- package/.beads/.br_history/issues.20260308_235208_133360069.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_235505_473406307.jsonl +57 -0
- package/.beads/.br_history/issues.20260308_235505_473406307.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_235505_662360489.jsonl +57 -0
- package/.beads/.br_history/issues.20260308_235505_662360489.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_235505_843935624.jsonl +57 -0
- package/.beads/.br_history/issues.20260308_235505_843935624.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260308_235506_044530221.jsonl +57 -0
- package/.beads/.br_history/issues.20260308_235506_044530221.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260309_002618_115728731.jsonl +57 -0
- package/.beads/.br_history/issues.20260309_002618_115728731.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260309_003748_878174586.jsonl +57 -0
- package/.beads/.br_history/issues.20260309_003748_878174586.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260309_004057_868755623.jsonl +57 -0
- package/.beads/.br_history/issues.20260309_004057_868755623.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260309_004058_512842163.jsonl +57 -0
- package/.beads/.br_history/issues.20260309_004058_512842163.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260309_004058_994445226.jsonl +57 -0
- package/.beads/.br_history/issues.20260309_004058_994445226.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260309_004059_475988596.jsonl +57 -0
- package/.beads/.br_history/issues.20260309_004059_475988596.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260309_161902_566857851.jsonl +57 -0
- package/.beads/.br_history/issues.20260309_161902_566857851.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260309_170512_277017739.jsonl +57 -0
- package/.beads/.br_history/issues.20260309_170512_277017739.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260309_170512_477876921.jsonl +57 -0
- package/.beads/.br_history/issues.20260309_170512_477876921.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260309_170512_664382701.jsonl +57 -0
- package/.beads/.br_history/issues.20260309_170512_664382701.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260309_170512_859400333.jsonl +57 -0
- package/.beads/.br_history/issues.20260309_170512_859400333.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260309_212326_082771164.jsonl +57 -0
- package/.beads/.br_history/issues.20260309_212326_082771164.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260309_212326_245619716.jsonl +58 -0
- package/.beads/.br_history/issues.20260309_212326_245619716.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260309_212326_403198317.jsonl +59 -0
- package/.beads/.br_history/issues.20260309_212326_403198317.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260309_212332_539197678.jsonl +60 -0
- package/.beads/.br_history/issues.20260309_212332_539197678.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260309_212332_731373599.jsonl +60 -0
- package/.beads/.br_history/issues.20260309_212332_731373599.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260309_212332_928710953.jsonl +60 -0
- package/.beads/.br_history/issues.20260309_212332_928710953.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260309_213021_341505240.jsonl +60 -0
- package/.beads/.br_history/issues.20260309_213021_341505240.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260309_213022_023136934.jsonl +60 -0
- package/.beads/.br_history/issues.20260309_213022_023136934.jsonl.meta.json +1 -0
- package/.beads/.br_history/issues.20260309_213022_400050719.jsonl +60 -0
- package/.beads/.br_history/issues.20260309_213022_400050719.jsonl.meta.json +1 -0
- package/.beads/config.yaml +4 -0
- package/.beads/issues.jsonl +60 -0
- package/.beads/metadata.json +4 -0
- package/README.md +226 -43
- package/__tests__/adapter-schema.test.js +119 -0
- package/__tests__/ask.test.js +327 -0
- package/__tests__/aws-plugin.test.js +84 -0
- package/__tests__/az-plugin.test.js +84 -0
- package/__tests__/builtin-adapter.test.js +29 -0
- package/__tests__/cline-plugin.test.js +109 -0
- package/__tests__/cline-skill.test.js +49 -0
- package/__tests__/config.test.js +297 -0
- package/__tests__/docker-plugin.test.js +95 -0
- package/__tests__/executor.test.js +303 -0
- package/__tests__/eza-plugin.test.js +81 -0
- package/__tests__/gcloud-plugin.test.js +86 -0
- package/__tests__/gh-plugin.test.js +86 -0
- package/__tests__/helm-plugin.test.js +81 -0
- package/__tests__/help-json.test.js +19 -0
- package/__tests__/http-adapter.test.js +118 -0
- package/__tests__/just-plugin.test.js +82 -0
- package/__tests__/kubectl-plugin.test.js +83 -0
- package/__tests__/linear-plugin.test.js +81 -0
- package/__tests__/mcp-adapter.test.js +187 -0
- package/__tests__/mcp-local.test.js +105 -0
- package/__tests__/namespace-passthrough.test.js +69 -0
- package/__tests__/nextest-plugin.test.js +82 -0
- package/__tests__/npm-plugin.test.js +81 -0
- package/__tests__/nullclaw-plugin.test.js +157 -0
- package/__tests__/openapi-adapter.test.js +199 -0
- package/__tests__/plan-runtime.test.js +43 -0
- package/__tests__/planner.test.js +47 -0
- package/__tests__/plugin-agency-agents.test.js +62 -0
- package/__tests__/plugin-nullclaw.test.js +78 -0
- package/__tests__/plugin-visual-explainer.test.js +62 -0
- package/__tests__/plugins-command.test.js +220 -0
- package/__tests__/plugins-manager.test.js +353 -0
- package/__tests__/plugins-registry.test.js +114 -0
- package/__tests__/plugins-store.test.js +115 -0
- package/__tests__/pnpm-plugin.test.js +81 -0
- package/__tests__/poetry-plugin.test.js +83 -0
- package/__tests__/process-adapter.test.js +143 -0
- package/__tests__/pulumi-plugin.test.js +81 -0
- package/__tests__/railway-plugin.test.js +84 -0
- package/__tests__/server-app.test.js +67 -0
- package/__tests__/server-config-service.test.js +79 -0
- package/__tests__/server-routes-ask.test.js +89 -0
- package/__tests__/server-routes-commands.test.js +55 -0
- package/__tests__/server-routes-config.test.js +87 -0
- package/__tests__/server-routes-jobs.test.js +53 -0
- package/__tests__/server-routes-misc.test.js +112 -0
- package/__tests__/server-storage-adapter.test.js +40 -0
- package/__tests__/server-storage-file.test.js +73 -0
- package/__tests__/server-storage-mongo.test.js +74 -0
- package/__tests__/shell-adapter.test.js +90 -0
- package/__tests__/skills-catalog.test.js +98 -0
- package/__tests__/skills.test.js +442 -0
- package/__tests__/stripe-plugin.test.js +81 -0
- package/__tests__/supabase-plugin.test.js +86 -0
- package/__tests__/terraform-plugin.test.js +83 -0
- package/__tests__/uv-plugin.test.js +81 -0
- package/__tests__/vercel-plugin.test.js +81 -0
- package/__tests__/watchexec-plugin.test.js +80 -0
- package/cli/adapter-schema.js +108 -0
- package/cli/adapters/builtin.js +43 -0
- package/cli/adapters/process.js +262 -0
- package/cli/adapters/shell.js +82 -0
- package/cli/config.js +12 -9
- package/cli/executor.js +6 -1
- package/cli/help-json.js +3 -1
- package/cli/namespace-passthrough.js +38 -0
- package/cli/plugin-install-guidance.js +320 -0
- package/cli/plugins-command.js +138 -0
- package/cli/plugins-manager.js +552 -0
- package/cli/plugins-registry.js +80 -0
- package/cli/plugins-store.js +56 -0
- package/cli/skills-catalog.js +237 -0
- package/cli/skills.js +180 -6
- package/cli/supercli.js +150 -58
- package/docs/docs.html +224 -0
- package/docs/feature-gaps.md +16 -0
- package/docs/index.html +164 -0
- package/docs/plugin-examples.md +397 -0
- package/docs/plugin-harness-guide.md +452 -0
- package/docs/plugins.md +44 -0
- package/docs/skills/cline-non-interactive/SKILL.md +59 -0
- package/docs/skills-catalog.md +81 -0
- package/docs/supported-harnesses.md +277 -0
- package/docs/visual-overview.md +21 -0
- package/jest.config.js +25 -0
- package/package.json +9 -3
- package/plugins/agency-agents/plugin.json +15 -0
- package/plugins/agency-agents/scripts/post-install.js +122 -0
- package/plugins/aws/README.md +46 -0
- package/plugins/aws/plugin.json +42 -0
- package/plugins/az/README.md +46 -0
- package/plugins/az/plugin.json +42 -0
- package/plugins/beads/plugin.json +202 -0
- package/plugins/clickup/plugin.json +38 -0
- package/plugins/clickup/scripts/post-install.js +107 -0
- package/plugins/clickup/scripts/post-uninstall.js +30 -0
- package/plugins/cline/README.md +48 -0
- package/plugins/cline/plugin.json +92 -0
- package/plugins/commiat/plugin.json +36 -0
- package/plugins/docker/MANIFEST.md +39 -0
- package/plugins/docker/README.md +35 -0
- package/plugins/docker/examples/build-image.sh +7 -0
- package/plugins/docker/examples/inspect-container.sh +6 -0
- package/plugins/docker/examples/list-containers.sh +4 -0
- package/plugins/docker/examples/multi-step-workflow.sh +10 -0
- package/plugins/docker/examples/run-container.sh +7 -0
- package/plugins/docker/plugin.json +266 -0
- package/plugins/eza/README.md +40 -0
- package/plugins/eza/plugin.json +42 -0
- package/plugins/gcloud/README.md +46 -0
- package/plugins/gcloud/plugin.json +42 -0
- package/plugins/gh/README.md +46 -0
- package/plugins/gh/plugin.json +43 -0
- package/plugins/gwc/plugin.json +35 -0
- package/plugins/helm/README.md +42 -0
- package/plugins/helm/plugin.json +42 -0
- package/plugins/just/README.md +42 -0
- package/plugins/just/plugin.json +42 -0
- package/plugins/kubectl/README.md +46 -0
- package/plugins/kubectl/plugin.json +42 -0
- package/plugins/linear/README.md +60 -0
- package/plugins/linear/plugin.json +42 -0
- package/plugins/nextest/README.md +42 -0
- package/plugins/nextest/plugin.json +42 -0
- package/plugins/npm/README.md +46 -0
- package/plugins/npm/plugin.json +42 -0
- package/plugins/nullclaw/README.md +45 -0
- package/plugins/nullclaw/plugin.json +64 -0
- package/plugins/nullclaw/scripts/post-install.js +189 -0
- package/plugins/nullclaw/scripts/post-uninstall.js +25 -0
- package/plugins/openfang/plugin.json +37 -0
- package/plugins/openfang/scripts/post-install.js +163 -0
- package/plugins/openfang/scripts/post-uninstall.js +30 -0
- package/plugins/plugins.json +295 -0
- package/plugins/pnpm/README.md +46 -0
- package/plugins/pnpm/plugin.json +42 -0
- package/plugins/poetry/README.md +46 -0
- package/plugins/poetry/plugin.json +42 -0
- package/plugins/pulumi/README.md +46 -0
- package/plugins/pulumi/plugin.json +42 -0
- package/plugins/railway/README.md +58 -0
- package/plugins/railway/plugin.json +43 -0
- package/plugins/stripe/README.md +49 -0
- package/plugins/stripe/plugin.json +52 -0
- package/plugins/supabase/README.md +55 -0
- package/plugins/supabase/plugin.json +42 -0
- package/plugins/superpowers/plugin.json +22 -0
- package/plugins/superpowers/scripts/post-install.js +124 -0
- package/plugins/superpowers/scripts/post-uninstall.js +30 -0
- package/plugins/terraform/README.md +46 -0
- package/plugins/terraform/plugin.json +42 -0
- package/plugins/uv/README.md +46 -0
- package/plugins/uv/plugin.json +42 -0
- package/plugins/vercel/README.md +47 -0
- package/plugins/vercel/plugin.json +42 -0
- package/plugins/visual-explainer/plugin.json +15 -0
- package/plugins/visual-explainer/scripts/post-install.js +111 -0
- package/plugins/watchexec/README.md +40 -0
- package/plugins/watchexec/plugin.json +42 -0
- package/tests/test-aws-smoke.sh +56 -0
- package/tests/test-az-smoke.sh +56 -0
- package/tests/test-cli.js +116 -2
- package/tests/test-cline-smoke.sh +37 -0
- package/tests/test-eza-smoke.sh +33 -0
- package/tests/test-gcloud-smoke.sh +56 -0
- package/tests/test-gh-smoke.sh +56 -0
- package/tests/test-helm-smoke.sh +33 -0
- package/tests/test-just-smoke.sh +40 -0
- package/tests/test-kubectl-smoke.sh +37 -0
- package/tests/test-linear-smoke.sh +97 -0
- package/tests/test-nextest-smoke.sh +33 -0
- package/tests/test-npm-smoke.sh +32 -0
- package/tests/test-nullclaw-smoke.sh +51 -0
- package/tests/test-plugins-registry.js +212 -0
- package/tests/test-pnpm-smoke.sh +33 -0
- package/tests/test-poetry-smoke.sh +33 -0
- package/tests/test-pulumi-smoke.sh +33 -0
- package/tests/test-railway-smoke.sh +95 -0
- package/tests/test-stripe-smoke.sh +55 -0
- package/tests/test-supabase-smoke.sh +95 -0
- package/tests/test-terraform-smoke.sh +33 -0
- package/tests/test-uv-smoke.sh +33 -0
- package/tests/test-vercel-smoke.sh +55 -0
- package/tests/test-watchexec-smoke.sh +33 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
const fs = require("fs")
|
|
2
|
+
const os = require("os")
|
|
3
|
+
const path = require("path")
|
|
4
|
+
const { execSync } = require("child_process")
|
|
5
|
+
|
|
6
|
+
const CLI = path.join(__dirname, "..", "cli", "supercli.js")
|
|
7
|
+
|
|
8
|
+
function runNoServer(args, options = {}) {
|
|
9
|
+
try {
|
|
10
|
+
const env = { ...process.env }
|
|
11
|
+
delete env.SUPERCLI_SERVER
|
|
12
|
+
const out = execSync(`node ${CLI} ${args}`, {
|
|
13
|
+
encoding: "utf-8",
|
|
14
|
+
timeout: 15000,
|
|
15
|
+
env: { ...env, ...(options.env || {}) }
|
|
16
|
+
})
|
|
17
|
+
return { ok: true, output: out.trim(), code: 0 }
|
|
18
|
+
} catch (err) {
|
|
19
|
+
return {
|
|
20
|
+
ok: false,
|
|
21
|
+
output: (err.stdout || "").trim(),
|
|
22
|
+
stderr: (err.stderr || "").trim(),
|
|
23
|
+
code: err.status
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function writeFakeStripeBinary(dir) {
|
|
29
|
+
const bin = path.join(dir, "stripe")
|
|
30
|
+
fs.writeFileSync(bin, [
|
|
31
|
+
"#!/usr/bin/env node",
|
|
32
|
+
"const args = process.argv.slice(2);",
|
|
33
|
+
"if (args.includes('--version')) { console.log('stripe version 1.21.0'); process.exit(0); }",
|
|
34
|
+
"console.log(JSON.stringify({ ok: true, args }));"
|
|
35
|
+
].join("\n"), "utf-8")
|
|
36
|
+
fs.chmodSync(bin, 0o755)
|
|
37
|
+
return bin
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
describe("stripe plugin", () => {
|
|
41
|
+
const fakeDir = fs.mkdtempSync(path.join(os.tmpdir(), "dcli-stripe-"))
|
|
42
|
+
const tempHome = fs.mkdtempSync(path.join(os.tmpdir(), "dcli-home-stripe-"))
|
|
43
|
+
writeFakeStripeBinary(fakeDir)
|
|
44
|
+
const env = { ...process.env, PATH: `${fakeDir}:${process.env.PATH || ""}`, SUPERCLI_HOME: tempHome }
|
|
45
|
+
|
|
46
|
+
beforeAll(() => {
|
|
47
|
+
runNoServer("plugins install ./plugins/stripe --on-conflict replace --json", { env })
|
|
48
|
+
})
|
|
49
|
+
|
|
50
|
+
afterAll(() => {
|
|
51
|
+
runNoServer("plugins remove stripe --json", { env })
|
|
52
|
+
fs.rmSync(fakeDir, { recursive: true, force: true })
|
|
53
|
+
fs.rmSync(tempHome, { recursive: true, force: true })
|
|
54
|
+
})
|
|
55
|
+
|
|
56
|
+
test("routes customers list command", () => {
|
|
57
|
+
const r = runNoServer("stripe customers list --limit 3 --json", { env })
|
|
58
|
+
expect(r.ok).toBe(true)
|
|
59
|
+
const data = JSON.parse(r.output)
|
|
60
|
+
expect(data.command).toBe("stripe.customers.list")
|
|
61
|
+
expect(data.data.args).toEqual(["customers", "list", "--limit", "3"])
|
|
62
|
+
})
|
|
63
|
+
|
|
64
|
+
test("supports namespace passthrough", () => {
|
|
65
|
+
const r = runNoServer("stripe trigger payment_intent.succeeded --json", { env })
|
|
66
|
+
expect(r.ok).toBe(true)
|
|
67
|
+
const data = JSON.parse(r.output)
|
|
68
|
+
expect(data.command).toBe("stripe.passthrough")
|
|
69
|
+
expect(data.data.args[0]).toBe("trigger")
|
|
70
|
+
expect(data.data.args[1]).toBe("payment_intent.succeeded")
|
|
71
|
+
expect(data.data.args).toContain("--json")
|
|
72
|
+
})
|
|
73
|
+
|
|
74
|
+
test("doctor reports stripe dependency as healthy", () => {
|
|
75
|
+
const r = runNoServer("plugins doctor stripe --json", { env })
|
|
76
|
+
expect(r.ok).toBe(true)
|
|
77
|
+
const data = JSON.parse(r.output)
|
|
78
|
+
expect(data.ok).toBe(true)
|
|
79
|
+
expect(data.checks.some(c => c.type === "binary" && c.binary === "stripe" && c.ok === true)).toBe(true)
|
|
80
|
+
})
|
|
81
|
+
})
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
const fs = require("fs")
|
|
2
|
+
const os = require("os")
|
|
3
|
+
const path = require("path")
|
|
4
|
+
const { execSync } = require("child_process")
|
|
5
|
+
|
|
6
|
+
const CLI = path.join(__dirname, "..", "cli", "supercli.js")
|
|
7
|
+
|
|
8
|
+
function runNoServer(args, options = {}) {
|
|
9
|
+
try {
|
|
10
|
+
const env = { ...process.env }
|
|
11
|
+
delete env.SUPERCLI_SERVER
|
|
12
|
+
const out = execSync(`node ${CLI} ${args}`, {
|
|
13
|
+
encoding: "utf-8",
|
|
14
|
+
timeout: 15000,
|
|
15
|
+
env: { ...env, ...(options.env || {}) }
|
|
16
|
+
})
|
|
17
|
+
return { ok: true, output: out.trim(), code: 0 }
|
|
18
|
+
} catch (err) {
|
|
19
|
+
return {
|
|
20
|
+
ok: false,
|
|
21
|
+
output: (err.stdout || "").trim(),
|
|
22
|
+
stderr: (err.stderr || "").trim(),
|
|
23
|
+
code: err.status
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function writeFakeSupabaseBinary(dir) {
|
|
29
|
+
const bin = path.join(dir, "supabase")
|
|
30
|
+
fs.writeFileSync(bin, [
|
|
31
|
+
"#!/usr/bin/env node",
|
|
32
|
+
"const args = process.argv.slice(2);",
|
|
33
|
+
"if (args.includes('--version')) { console.log('supabase 2.0.0-test'); process.exit(0); }",
|
|
34
|
+
"if (args[0] === 'projects' && args[1] === 'list' && args.includes('--output') && args.includes('json')) {",
|
|
35
|
+
" console.log(JSON.stringify([{ id: 'proj_1', name: 'mock-project' }]));",
|
|
36
|
+
" process.exit(0);",
|
|
37
|
+
"}",
|
|
38
|
+
"console.log(JSON.stringify({ ok: true, args }));"
|
|
39
|
+
].join("\n"), "utf-8")
|
|
40
|
+
fs.chmodSync(bin, 0o755)
|
|
41
|
+
return bin
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
describe("supabase plugin", () => {
|
|
45
|
+
const fakeDir = fs.mkdtempSync(path.join(os.tmpdir(), "dcli-supabase-"))
|
|
46
|
+
const tempHome = fs.mkdtempSync(path.join(os.tmpdir(), "dcli-home-supabase-"))
|
|
47
|
+
writeFakeSupabaseBinary(fakeDir)
|
|
48
|
+
const env = { ...process.env, PATH: `${fakeDir}:${process.env.PATH || ""}`, SUPERCLI_HOME: tempHome }
|
|
49
|
+
|
|
50
|
+
beforeAll(() => {
|
|
51
|
+
runNoServer("plugins install ./plugins/supabase --on-conflict replace --json", { env })
|
|
52
|
+
})
|
|
53
|
+
|
|
54
|
+
afterAll(() => {
|
|
55
|
+
runNoServer("plugins remove supabase --json", { env })
|
|
56
|
+
fs.rmSync(fakeDir, { recursive: true, force: true })
|
|
57
|
+
fs.rmSync(tempHome, { recursive: true, force: true })
|
|
58
|
+
})
|
|
59
|
+
|
|
60
|
+
test("routes projects list wrapped command", () => {
|
|
61
|
+
const r = runNoServer("supabase projects list --json", { env })
|
|
62
|
+
expect(r.ok).toBe(true)
|
|
63
|
+
const data = JSON.parse(r.output)
|
|
64
|
+
expect(data.command).toBe("supabase.projects.list")
|
|
65
|
+
expect(Array.isArray(data.data)).toBe(true)
|
|
66
|
+
expect(data.data[0].name).toBe("mock-project")
|
|
67
|
+
})
|
|
68
|
+
|
|
69
|
+
test("supports namespace passthrough", () => {
|
|
70
|
+
const r = runNoServer("supabase status --output json", { env })
|
|
71
|
+
expect(r.ok).toBe(true)
|
|
72
|
+
const data = JSON.parse(r.output)
|
|
73
|
+
expect(data.command).toBe("supabase.passthrough")
|
|
74
|
+
expect(data.data.args[0]).toBe("status")
|
|
75
|
+
expect(data.data.args).toContain("--output")
|
|
76
|
+
expect(data.data.args).toContain("json")
|
|
77
|
+
})
|
|
78
|
+
|
|
79
|
+
test("doctor reports supabase dependency as healthy", () => {
|
|
80
|
+
const r = runNoServer("plugins doctor supabase --json", { env })
|
|
81
|
+
expect(r.ok).toBe(true)
|
|
82
|
+
const data = JSON.parse(r.output)
|
|
83
|
+
expect(data.ok).toBe(true)
|
|
84
|
+
expect(data.checks.some(c => c.type === "binary" && c.binary === "supabase" && c.ok === true)).toBe(true)
|
|
85
|
+
})
|
|
86
|
+
})
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
const fs = require("fs")
|
|
2
|
+
const os = require("os")
|
|
3
|
+
const path = require("path")
|
|
4
|
+
const { execSync } = require("child_process")
|
|
5
|
+
|
|
6
|
+
const CLI = path.join(__dirname, "..", "cli", "supercli.js")
|
|
7
|
+
|
|
8
|
+
function runNoServer(args, options = {}) {
|
|
9
|
+
try {
|
|
10
|
+
const env = { ...process.env }
|
|
11
|
+
delete env.SUPERCLI_SERVER
|
|
12
|
+
const out = execSync(`node ${CLI} ${args}`, {
|
|
13
|
+
encoding: "utf-8",
|
|
14
|
+
timeout: 15000,
|
|
15
|
+
env: { ...env, ...(options.env || {}) }
|
|
16
|
+
})
|
|
17
|
+
return { ok: true, output: out.trim(), code: 0 }
|
|
18
|
+
} catch (err) {
|
|
19
|
+
return {
|
|
20
|
+
ok: false,
|
|
21
|
+
output: (err.stdout || "").trim(),
|
|
22
|
+
stderr: (err.stderr || "").trim(),
|
|
23
|
+
code: err.status
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function writeFakeTerraformBinary(dir) {
|
|
29
|
+
const bin = path.join(dir, "terraform")
|
|
30
|
+
fs.writeFileSync(bin, [
|
|
31
|
+
"#!/usr/bin/env node",
|
|
32
|
+
"const args = process.argv.slice(2);",
|
|
33
|
+
"if (args[0] === 'version' && args.includes('-json')) {",
|
|
34
|
+
" console.log(JSON.stringify({ terraform_version: '1.9.0-test', platform: 'linux_amd64' }));",
|
|
35
|
+
" process.exit(0);",
|
|
36
|
+
"}",
|
|
37
|
+
"console.log(JSON.stringify({ ok: true, args }));"
|
|
38
|
+
].join("\n"), "utf-8")
|
|
39
|
+
fs.chmodSync(bin, 0o755)
|
|
40
|
+
return bin
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
describe("terraform plugin", () => {
|
|
44
|
+
const fakeDir = fs.mkdtempSync(path.join(os.tmpdir(), "dcli-terraform-"))
|
|
45
|
+
const tempHome = fs.mkdtempSync(path.join(os.tmpdir(), "dcli-home-terraform-"))
|
|
46
|
+
writeFakeTerraformBinary(fakeDir)
|
|
47
|
+
const env = { ...process.env, PATH: `${fakeDir}:${process.env.PATH || ""}`, SUPERCLI_HOME: tempHome }
|
|
48
|
+
|
|
49
|
+
beforeAll(() => {
|
|
50
|
+
runNoServer("plugins install ./plugins/terraform --on-conflict replace --json", { env })
|
|
51
|
+
})
|
|
52
|
+
|
|
53
|
+
afterAll(() => {
|
|
54
|
+
runNoServer("plugins remove terraform --json", { env })
|
|
55
|
+
fs.rmSync(fakeDir, { recursive: true, force: true })
|
|
56
|
+
fs.rmSync(tempHome, { recursive: true, force: true })
|
|
57
|
+
})
|
|
58
|
+
|
|
59
|
+
test("routes cli version wrapped command", () => {
|
|
60
|
+
const r = runNoServer("terraform cli version --json", { env })
|
|
61
|
+
expect(r.ok).toBe(true)
|
|
62
|
+
const data = JSON.parse(r.output)
|
|
63
|
+
expect(data.command).toBe("terraform.cli.version")
|
|
64
|
+
expect(data.data.terraform_version).toBe("1.9.0-test")
|
|
65
|
+
})
|
|
66
|
+
|
|
67
|
+
test("supports namespace passthrough", () => {
|
|
68
|
+
const r = runNoServer("terraform output -json", { env })
|
|
69
|
+
expect(r.ok).toBe(true)
|
|
70
|
+
const data = JSON.parse(r.output)
|
|
71
|
+
expect(data.command).toBe("terraform.passthrough")
|
|
72
|
+
expect(data.data.args[0]).toBe("output")
|
|
73
|
+
expect(data.data.args).toContain("-json")
|
|
74
|
+
})
|
|
75
|
+
|
|
76
|
+
test("doctor reports terraform dependency as healthy", () => {
|
|
77
|
+
const r = runNoServer("plugins doctor terraform --json", { env })
|
|
78
|
+
expect(r.ok).toBe(true)
|
|
79
|
+
const data = JSON.parse(r.output)
|
|
80
|
+
expect(data.ok).toBe(true)
|
|
81
|
+
expect(data.checks.some(c => c.type === "binary" && c.binary === "terraform" && c.ok === true)).toBe(true)
|
|
82
|
+
})
|
|
83
|
+
})
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
const fs = require("fs")
|
|
2
|
+
const os = require("os")
|
|
3
|
+
const path = require("path")
|
|
4
|
+
const { execSync } = require("child_process")
|
|
5
|
+
|
|
6
|
+
const CLI = path.join(__dirname, "..", "cli", "supercli.js")
|
|
7
|
+
|
|
8
|
+
function runNoServer(args, options = {}) {
|
|
9
|
+
try {
|
|
10
|
+
const env = { ...process.env }
|
|
11
|
+
delete env.SUPERCLI_SERVER
|
|
12
|
+
const out = execSync(`node ${CLI} ${args}`, {
|
|
13
|
+
encoding: "utf-8",
|
|
14
|
+
timeout: 15000,
|
|
15
|
+
env: { ...env, ...(options.env || {}) }
|
|
16
|
+
})
|
|
17
|
+
return { ok: true, output: out.trim(), code: 0 }
|
|
18
|
+
} catch (err) {
|
|
19
|
+
return {
|
|
20
|
+
ok: false,
|
|
21
|
+
output: (err.stdout || "").trim(),
|
|
22
|
+
stderr: (err.stderr || "").trim(),
|
|
23
|
+
code: err.status
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function writeFakeUvBinary(dir) {
|
|
29
|
+
const bin = path.join(dir, "uv")
|
|
30
|
+
fs.writeFileSync(bin, [
|
|
31
|
+
"#!/usr/bin/env node",
|
|
32
|
+
"const args = process.argv.slice(2);",
|
|
33
|
+
"if (args[0] === '--version') { console.log('uv 0.6.5-test'); process.exit(0); }",
|
|
34
|
+
"console.log(JSON.stringify({ ok: true, args }));"
|
|
35
|
+
].join("\n"), "utf-8")
|
|
36
|
+
fs.chmodSync(bin, 0o755)
|
|
37
|
+
return bin
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
describe("uv plugin", () => {
|
|
41
|
+
const fakeDir = fs.mkdtempSync(path.join(os.tmpdir(), "dcli-uv-"))
|
|
42
|
+
const tempHome = fs.mkdtempSync(path.join(os.tmpdir(), "dcli-home-uv-"))
|
|
43
|
+
writeFakeUvBinary(fakeDir)
|
|
44
|
+
const env = { ...process.env, PATH: `${fakeDir}:${process.env.PATH || ""}`, SUPERCLI_HOME: tempHome }
|
|
45
|
+
|
|
46
|
+
beforeAll(() => {
|
|
47
|
+
runNoServer("plugins install ./plugins/uv --on-conflict replace --json", { env })
|
|
48
|
+
})
|
|
49
|
+
|
|
50
|
+
afterAll(() => {
|
|
51
|
+
runNoServer("plugins remove uv --json", { env })
|
|
52
|
+
fs.rmSync(fakeDir, { recursive: true, force: true })
|
|
53
|
+
fs.rmSync(tempHome, { recursive: true, force: true })
|
|
54
|
+
})
|
|
55
|
+
|
|
56
|
+
test("routes cli version wrapped command", () => {
|
|
57
|
+
const r = runNoServer("uv cli version --json", { env })
|
|
58
|
+
expect(r.ok).toBe(true)
|
|
59
|
+
const data = JSON.parse(r.output)
|
|
60
|
+
expect(data.command).toBe("uv.cli.version")
|
|
61
|
+
expect(data.data.raw).toBe("uv 0.6.5-test")
|
|
62
|
+
})
|
|
63
|
+
|
|
64
|
+
test("supports namespace passthrough", () => {
|
|
65
|
+
const r = runNoServer("uv python list --json", { env })
|
|
66
|
+
expect(r.ok).toBe(true)
|
|
67
|
+
const data = JSON.parse(r.output)
|
|
68
|
+
expect(data.command).toBe("uv.passthrough")
|
|
69
|
+
expect(data.data.args[0]).toBe("python")
|
|
70
|
+
expect(data.data.args[1]).toBe("list")
|
|
71
|
+
expect(data.data.args).toContain("--json")
|
|
72
|
+
})
|
|
73
|
+
|
|
74
|
+
test("doctor reports uv dependency as healthy", () => {
|
|
75
|
+
const r = runNoServer("plugins doctor uv --json", { env })
|
|
76
|
+
expect(r.ok).toBe(true)
|
|
77
|
+
const data = JSON.parse(r.output)
|
|
78
|
+
expect(data.ok).toBe(true)
|
|
79
|
+
expect(data.checks.some(c => c.type === "binary" && c.binary === "uv" && c.ok === true)).toBe(true)
|
|
80
|
+
})
|
|
81
|
+
})
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
const fs = require("fs")
|
|
2
|
+
const os = require("os")
|
|
3
|
+
const path = require("path")
|
|
4
|
+
const { execSync } = require("child_process")
|
|
5
|
+
|
|
6
|
+
const CLI = path.join(__dirname, "..", "cli", "supercli.js")
|
|
7
|
+
|
|
8
|
+
function runNoServer(args, options = {}) {
|
|
9
|
+
try {
|
|
10
|
+
const env = { ...process.env }
|
|
11
|
+
delete env.SUPERCLI_SERVER
|
|
12
|
+
const out = execSync(`node ${CLI} ${args}`, {
|
|
13
|
+
encoding: "utf-8",
|
|
14
|
+
timeout: 15000,
|
|
15
|
+
env: { ...env, ...(options.env || {}) }
|
|
16
|
+
})
|
|
17
|
+
return { ok: true, output: out.trim(), code: 0 }
|
|
18
|
+
} catch (err) {
|
|
19
|
+
return {
|
|
20
|
+
ok: false,
|
|
21
|
+
output: (err.stdout || "").trim(),
|
|
22
|
+
stderr: (err.stderr || "").trim(),
|
|
23
|
+
code: err.status
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function writeFakeVercelBinary(dir) {
|
|
29
|
+
const bin = path.join(dir, "vercel")
|
|
30
|
+
fs.writeFileSync(bin, [
|
|
31
|
+
"#!/usr/bin/env node",
|
|
32
|
+
"const args = process.argv.slice(2);",
|
|
33
|
+
"if (args.includes('--version')) { console.log('vercel 33.0.0'); process.exit(0); }",
|
|
34
|
+
"if (args[0] === 'whoami') { console.log('mock-vercel-user'); process.exit(0); }",
|
|
35
|
+
"console.log(JSON.stringify({ ok: true, args }));"
|
|
36
|
+
].join("\n"), "utf-8")
|
|
37
|
+
fs.chmodSync(bin, 0o755)
|
|
38
|
+
return bin
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
describe("vercel plugin", () => {
|
|
42
|
+
const fakeDir = fs.mkdtempSync(path.join(os.tmpdir(), "dcli-vercel-"))
|
|
43
|
+
const tempHome = fs.mkdtempSync(path.join(os.tmpdir(), "dcli-home-vercel-"))
|
|
44
|
+
writeFakeVercelBinary(fakeDir)
|
|
45
|
+
const env = { ...process.env, PATH: `${fakeDir}:${process.env.PATH || ""}`, SUPERCLI_HOME: tempHome }
|
|
46
|
+
|
|
47
|
+
beforeAll(() => {
|
|
48
|
+
runNoServer("plugins install ./plugins/vercel --on-conflict replace --json", { env })
|
|
49
|
+
})
|
|
50
|
+
|
|
51
|
+
afterAll(() => {
|
|
52
|
+
runNoServer("plugins remove vercel --json", { env })
|
|
53
|
+
fs.rmSync(fakeDir, { recursive: true, force: true })
|
|
54
|
+
fs.rmSync(tempHome, { recursive: true, force: true })
|
|
55
|
+
})
|
|
56
|
+
|
|
57
|
+
test("routes account whoami wrapped command", () => {
|
|
58
|
+
const r = runNoServer("vercel account whoami", { env })
|
|
59
|
+
expect(r.ok).toBe(true)
|
|
60
|
+
const data = JSON.parse(r.output)
|
|
61
|
+
expect(data.command).toBe("vercel.account.whoami")
|
|
62
|
+
expect(data.data.raw).toBe("mock-vercel-user")
|
|
63
|
+
})
|
|
64
|
+
|
|
65
|
+
test("supports namespace passthrough", () => {
|
|
66
|
+
const r = runNoServer("vercel project ls", { env })
|
|
67
|
+
expect(r.ok).toBe(true)
|
|
68
|
+
const data = JSON.parse(r.output)
|
|
69
|
+
expect(data.command).toBe("vercel.passthrough")
|
|
70
|
+
expect(data.data.args[0]).toBe("project")
|
|
71
|
+
expect(data.data.args[1]).toBe("ls")
|
|
72
|
+
})
|
|
73
|
+
|
|
74
|
+
test("doctor reports vercel dependency as healthy", () => {
|
|
75
|
+
const r = runNoServer("plugins doctor vercel --json", { env })
|
|
76
|
+
expect(r.ok).toBe(true)
|
|
77
|
+
const data = JSON.parse(r.output)
|
|
78
|
+
expect(data.ok).toBe(true)
|
|
79
|
+
expect(data.checks.some(c => c.type === "binary" && c.binary === "vercel" && c.ok === true)).toBe(true)
|
|
80
|
+
})
|
|
81
|
+
})
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
const fs = require("fs")
|
|
2
|
+
const os = require("os")
|
|
3
|
+
const path = require("path")
|
|
4
|
+
const { execSync } = require("child_process")
|
|
5
|
+
|
|
6
|
+
const CLI = path.join(__dirname, "..", "cli", "supercli.js")
|
|
7
|
+
|
|
8
|
+
function runNoServer(args, options = {}) {
|
|
9
|
+
try {
|
|
10
|
+
const env = { ...process.env }
|
|
11
|
+
delete env.SUPERCLI_SERVER
|
|
12
|
+
const out = execSync(`node ${CLI} ${args}`, {
|
|
13
|
+
encoding: "utf-8",
|
|
14
|
+
timeout: 15000,
|
|
15
|
+
env: { ...env, ...(options.env || {}) }
|
|
16
|
+
})
|
|
17
|
+
return { ok: true, output: out.trim(), code: 0 }
|
|
18
|
+
} catch (err) {
|
|
19
|
+
return {
|
|
20
|
+
ok: false,
|
|
21
|
+
output: (err.stdout || "").trim(),
|
|
22
|
+
stderr: (err.stderr || "").trim(),
|
|
23
|
+
code: err.status
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function writeFakeWatchexecBinary(dir) {
|
|
29
|
+
const bin = path.join(dir, "watchexec")
|
|
30
|
+
fs.writeFileSync(bin, [
|
|
31
|
+
"#!/usr/bin/env node",
|
|
32
|
+
"const args = process.argv.slice(2);",
|
|
33
|
+
"if (args[0] === '--version') { console.log('watchexec 2.5.0-test'); process.exit(0); }",
|
|
34
|
+
"console.log(JSON.stringify({ ok: true, args }));"
|
|
35
|
+
].join("\n"), "utf-8")
|
|
36
|
+
fs.chmodSync(bin, 0o755)
|
|
37
|
+
return bin
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
describe("watchexec plugin", () => {
|
|
41
|
+
const fakeDir = fs.mkdtempSync(path.join(os.tmpdir(), "dcli-watchexec-"))
|
|
42
|
+
const tempHome = fs.mkdtempSync(path.join(os.tmpdir(), "dcli-home-watchexec-"))
|
|
43
|
+
writeFakeWatchexecBinary(fakeDir)
|
|
44
|
+
const env = { ...process.env, PATH: `${fakeDir}:${process.env.PATH || ""}`, SUPERCLI_HOME: tempHome }
|
|
45
|
+
|
|
46
|
+
beforeAll(() => {
|
|
47
|
+
runNoServer("plugins install ./plugins/watchexec --on-conflict replace --json", { env })
|
|
48
|
+
})
|
|
49
|
+
|
|
50
|
+
afterAll(() => {
|
|
51
|
+
runNoServer("plugins remove watchexec --json", { env })
|
|
52
|
+
fs.rmSync(fakeDir, { recursive: true, force: true })
|
|
53
|
+
fs.rmSync(tempHome, { recursive: true, force: true })
|
|
54
|
+
})
|
|
55
|
+
|
|
56
|
+
test("routes cli version wrapped command", () => {
|
|
57
|
+
const r = runNoServer("watchexec cli version --json", { env })
|
|
58
|
+
expect(r.ok).toBe(true)
|
|
59
|
+
const data = JSON.parse(r.output)
|
|
60
|
+
expect(data.command).toBe("watchexec.cli.version")
|
|
61
|
+
expect(data.data.raw).toBe("watchexec 2.5.0-test")
|
|
62
|
+
})
|
|
63
|
+
|
|
64
|
+
test("supports namespace passthrough", () => {
|
|
65
|
+
const r = runNoServer("watchexec --help --json", { env })
|
|
66
|
+
expect(r.ok).toBe(true)
|
|
67
|
+
const data = JSON.parse(r.output)
|
|
68
|
+
expect(data.command).toBe("watchexec.passthrough")
|
|
69
|
+
expect(data.data.args).toContain("--help")
|
|
70
|
+
expect(data.data.args).toContain("--json")
|
|
71
|
+
})
|
|
72
|
+
|
|
73
|
+
test("doctor reports watchexec dependency as healthy", () => {
|
|
74
|
+
const r = runNoServer("plugins doctor watchexec --json", { env })
|
|
75
|
+
expect(r.ok).toBe(true)
|
|
76
|
+
const data = JSON.parse(r.output)
|
|
77
|
+
expect(data.ok).toBe(true)
|
|
78
|
+
expect(data.checks.some(c => c.type === "binary" && c.binary === "watchexec" && c.ok === true)).toBe(true)
|
|
79
|
+
})
|
|
80
|
+
})
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
const SUPPORTED_ADAPTERS = ["http", "openapi", "mcp", "process", "builtin", "shell"]
|
|
2
|
+
|
|
3
|
+
function asInvalid(message, suggestions = []) {
|
|
4
|
+
return Object.assign(new Error(message), {
|
|
5
|
+
code: 85,
|
|
6
|
+
type: "invalid_argument",
|
|
7
|
+
recoverable: false,
|
|
8
|
+
suggestions
|
|
9
|
+
})
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
function assertType(value, expected, field) {
|
|
13
|
+
if (value === undefined || value === null) return
|
|
14
|
+
if (typeof value !== expected) throw asInvalid(`adapterConfig.${field} must be ${expected}`)
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function validateCommonConfig(adapterName, config) {
|
|
18
|
+
if (!config || typeof config !== "object") throw asInvalid(`Adapter '${adapterName}' requires adapterConfig object`)
|
|
19
|
+
|
|
20
|
+
assertType(config.parseJson, "boolean", "parseJson")
|
|
21
|
+
assertType(config.unsafe, "boolean", "unsafe")
|
|
22
|
+
assertType(config.non_interactive, "boolean", "non_interactive")
|
|
23
|
+
assertType(config.cwd, "string", "cwd")
|
|
24
|
+
assertType(config.safetyLevel, "string", "safetyLevel")
|
|
25
|
+
assertType(config.stream, "string", "stream")
|
|
26
|
+
if (config.interactiveFlags !== undefined && !Array.isArray(config.interactiveFlags)) {
|
|
27
|
+
throw asInvalid("adapterConfig.interactiveFlags must be an array")
|
|
28
|
+
}
|
|
29
|
+
assertType(config.requiresInteractive, "boolean", "requiresInteractive")
|
|
30
|
+
|
|
31
|
+
if (config.non_interactive === false) {
|
|
32
|
+
throw asInvalid("Interactive command execution is not supported. Set adapterConfig.non_interactive=true or remove it.")
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
if (config.timeout_ms !== undefined) {
|
|
36
|
+
if (typeof config.timeout_ms !== "number" || Number.isNaN(config.timeout_ms) || config.timeout_ms <= 0) {
|
|
37
|
+
throw asInvalid("adapterConfig.timeout_ms must be a positive number")
|
|
38
|
+
}
|
|
39
|
+
if (config.timeout_ms > 15000) {
|
|
40
|
+
throw asInvalid("adapterConfig.timeout_ms cannot exceed 15000ms")
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
if (config.stream !== undefined && !["jsonl"].includes(config.stream)) {
|
|
45
|
+
throw asInvalid("adapterConfig.stream must be 'jsonl'")
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function validateAdapterConfig(cmd) {
|
|
50
|
+
const adapterName = cmd.adapter
|
|
51
|
+
if (!SUPPORTED_ADAPTERS.includes(adapterName)) return
|
|
52
|
+
|
|
53
|
+
const config = cmd.adapterConfig || {}
|
|
54
|
+
validateCommonConfig(adapterName, config)
|
|
55
|
+
|
|
56
|
+
if (adapterName === "http") {
|
|
57
|
+
if (!config.url || typeof config.url !== "string") throw asInvalid("HTTP adapter requires adapterConfig.url")
|
|
58
|
+
if (config.method !== undefined && typeof config.method !== "string") throw asInvalid("adapterConfig.method must be string")
|
|
59
|
+
return
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
if (adapterName === "openapi") {
|
|
63
|
+
if (!config.spec || typeof config.spec !== "string") throw asInvalid("OpenAPI adapter requires adapterConfig.spec")
|
|
64
|
+
if (!config.operationId || typeof config.operationId !== "string") throw asInvalid("OpenAPI adapter requires adapterConfig.operationId")
|
|
65
|
+
return
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if (adapterName === "mcp") {
|
|
69
|
+
if (!config.tool || typeof config.tool !== "string") throw asInvalid("MCP adapter requires adapterConfig.tool")
|
|
70
|
+
const sources = [config.server, config.url, config.command].filter(Boolean)
|
|
71
|
+
if (sources.length === 0) throw asInvalid("MCP adapter requires one source: adapterConfig.server, adapterConfig.url, or adapterConfig.command")
|
|
72
|
+
return
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if (adapterName === "process") {
|
|
76
|
+
if (!config.command || typeof config.command !== "string") throw asInvalid("Process adapter requires adapterConfig.command")
|
|
77
|
+
if (config.baseArgs !== undefined && !Array.isArray(config.baseArgs)) throw asInvalid("adapterConfig.baseArgs must be an array")
|
|
78
|
+
if (config.positionalArgs !== undefined && !Array.isArray(config.positionalArgs)) throw asInvalid("adapterConfig.positionalArgs must be an array")
|
|
79
|
+
if (config.passthrough !== undefined && typeof config.passthrough !== "boolean") throw asInvalid("adapterConfig.passthrough must be boolean")
|
|
80
|
+
if (config.flagsBeforePositionals !== undefined && typeof config.flagsBeforePositionals !== "boolean") throw asInvalid("adapterConfig.flagsBeforePositionals must be boolean")
|
|
81
|
+
if (config.missingDependencyHelp !== undefined && typeof config.missingDependencyHelp !== "string") throw asInvalid("adapterConfig.missingDependencyHelp must be string")
|
|
82
|
+
if (config.env !== undefined && (typeof config.env !== "object" || Array.isArray(config.env))) throw asInvalid("adapterConfig.env must be object")
|
|
83
|
+
if (config.interactiveFlags !== undefined && config.interactiveFlags.some(v => typeof v !== "string")) {
|
|
84
|
+
throw asInvalid("adapterConfig.interactiveFlags values must be strings")
|
|
85
|
+
}
|
|
86
|
+
return
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
if (adapterName === "builtin") {
|
|
90
|
+
if (!config.builtin || typeof config.builtin !== "string") throw asInvalid("Builtin adapter requires adapterConfig.builtin")
|
|
91
|
+
return
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
if (adapterName === "shell") {
|
|
95
|
+
if (config.unsafe !== true) {
|
|
96
|
+
throw asInvalid("Shell adapter requires adapterConfig.unsafe=true")
|
|
97
|
+
}
|
|
98
|
+
if (!config.script || typeof config.script !== "string") throw asInvalid("Shell adapter requires adapterConfig.script")
|
|
99
|
+
if (config.shell !== undefined && typeof config.shell !== "string") throw asInvalid("adapterConfig.shell must be string")
|
|
100
|
+
if (config.env !== undefined && (typeof config.env !== "object" || Array.isArray(config.env))) throw asInvalid("adapterConfig.env must be object")
|
|
101
|
+
return
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
module.exports = {
|
|
106
|
+
SUPPORTED_ADAPTERS,
|
|
107
|
+
validateAdapterConfig
|
|
108
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
function execute(cmd) {
|
|
2
|
+
const cfg = cmd.adapterConfig || {}
|
|
3
|
+
if (cfg.builtin === "beads_install_steps") {
|
|
4
|
+
return {
|
|
5
|
+
plugin: "beads",
|
|
6
|
+
binary: "br",
|
|
7
|
+
install_steps: [
|
|
8
|
+
"curl -fsSL \"https://raw.githubusercontent.com/Dicklesworthstone/beads_rust/main/install.sh?$(date +%s)\" | bash",
|
|
9
|
+
"br --version"
|
|
10
|
+
],
|
|
11
|
+
note: "Install execution is delegated to your LLM automation (dcli/scli/supercli)."
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
if (cfg.builtin === "gwc_install_steps") {
|
|
15
|
+
return {
|
|
16
|
+
plugin: "gwc",
|
|
17
|
+
binary: "gws",
|
|
18
|
+
install_steps: [
|
|
19
|
+
"npm install -g @googleworkspace/cli",
|
|
20
|
+
"gws --version"
|
|
21
|
+
],
|
|
22
|
+
note: "Install execution is delegated to your LLM automation (dcli/scli/supercli)."
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
if (cfg.builtin === "commiat_install_steps") {
|
|
26
|
+
return {
|
|
27
|
+
plugin: "commiat",
|
|
28
|
+
binary: "commiat",
|
|
29
|
+
install_steps: [
|
|
30
|
+
"npm install -g commiat",
|
|
31
|
+
"commiat --version"
|
|
32
|
+
],
|
|
33
|
+
note: "Install execution is delegated to your LLM automation (dcli/scli/supercli)."
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
throw Object.assign(new Error(`Unknown builtin action: ${cfg.builtin || "(missing)"}`), {
|
|
37
|
+
code: 85,
|
|
38
|
+
type: "invalid_argument",
|
|
39
|
+
recoverable: false
|
|
40
|
+
})
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
module.exports = { execute }
|