@corsair-dev/cli 0.1.6 → 0.1.7

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -794,7 +794,9 @@ function printHelp() {
794
794
  " pnpm corsair schema <path> Show schema for an endpoint/webhook/DB entity",
795
795
  ' pnpm corsair script --code "<js>" [--tenant=<id>]',
796
796
  " corsair is injected; use return to output a value.",
797
- " Ex: return (await corsair.slack.api.channels.list()).channels.find(c=>c.name==='general')?.id",
797
+ " IMPORTANT: Always filter results inline \u2014 you are the consumer of the return value, so returning full list responses wastes tokens.",
798
+ " Bad: return await corsair.slack.api.users.list({})",
799
+ " Good: return (await corsair.slack.api.users.list({})).members.find(u => u.name === 'bob')?.id",
798
800
  ...SHOW_RUN ? [
799
801
  " run <path> [input-json] [--tenant=<id>] Call an endpoint directly"
800
802
  ] : []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corsair-dev/cli",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",