@withone/cli 1.12.3 → 1.12.5

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 (3) hide show
  1. package/README.md +2 -2
  2. package/dist/index.js +29 -12
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -7,13 +7,13 @@ One gives your AI agent authenticated access to 200+ platforms — Gmail, Slack,
7
7
  ## Install
8
8
 
9
9
  ```bash
10
- npx @picahq/cli@latest init
10
+ npx @withone/cli@latest init
11
11
  ```
12
12
 
13
13
  Or install globally:
14
14
 
15
15
  ```bash
16
- npm install -g @picahq/cli
16
+ npm install -g @withone/cli
17
17
  one init
18
18
  ```
19
19
 
package/dist/index.js CHANGED
@@ -268,7 +268,7 @@ function getMcpServerConfig(apiKey, accessControl) {
268
268
  }
269
269
  return {
270
270
  command: "npx",
271
- args: ["-y", "@picahq/mcp"],
271
+ args: ["-y", "@withone/mcp"],
272
272
  env
273
273
  };
274
274
  }
@@ -4218,16 +4218,28 @@ virtually any integration task across their entire stack.`);
4218
4218
  sections.push(buildCurrentState(connections));
4219
4219
  sections.push(`## How To Use the CLI
4220
4220
 
4221
+ ### IMPORTANT: Always use the --agent flag
4222
+ Every command supports \`--agent\` which gives you clean, structured JSON
4223
+ output instead of human-formatted text. Always use it:
4224
+ one --agent list
4225
+ one --agent actions search gmail "send email"
4226
+ one --agent actions knowledge gmail <actionId>
4227
+ one --agent actions execute gmail <actionId> <connectionKey> -d '{...}'
4228
+ one --agent platforms
4229
+ one --agent guide
4230
+
4231
+ The \`--agent\` flag goes right after \`one\`, before the subcommand.
4232
+
4221
4233
  ### Discovery Workflow (follow this every time):
4222
- 1. \`one actions search <platform> "<query>"\` \u2014 Find the right action
4223
- 2. \`one actions knowledge <platform> <actionId>\` \u2014 Read the docs (ALWAYS before execute)
4224
- 3. \`one actions execute <platform> <actionId> <connectionKey>\` \u2014 Execute it
4234
+ 1. \`one --agent actions search <platform> "<query>"\` \u2014 Find the right action
4235
+ 2. \`one --agent actions knowledge <platform> <actionId>\` \u2014 Read the docs (ALWAYS before execute)
4236
+ 3. \`one --agent actions execute <platform> <actionId> <connectionKey>\` \u2014 Execute it
4225
4237
 
4226
4238
  ### Multi-Step Workflows:
4227
4239
  Use \`one flow create\` to build JSON workflows that chain actions across
4228
4240
  platforms with conditions, loops, parallel execution, and transforms.
4229
4241
 
4230
- Run \`one guide\` for the complete reference documentation with examples.`);
4242
+ Run \`one --agent guide\` for the complete reference documentation with examples.`);
4231
4243
  sections.push(buildDemoActions(connections));
4232
4244
  sections.push(buildWorkflowIdeas(connections));
4233
4245
  sections.push(buildUserScript(connections));
@@ -4344,14 +4356,19 @@ This project has the One CLI configured. It connects AI agents to 200+
4344
4356
  platforms (Gmail, Slack, Shopify, HubSpot, Stripe, etc.) through a single
4345
4357
  interface.
4346
4358
 
4359
+ ### IMPORTANT: Always use the --agent flag
4360
+ The \`--agent\` flag gives structured JSON output. Always include it right
4361
+ after \`one\`:
4362
+ one --agent <command>
4363
+
4347
4364
  ### Quick reference:
4348
- - \`one list\` \u2014 See connected platforms and connection keys
4349
- - \`one add <platform>\` \u2014 Connect a new platform
4350
- - \`one actions search <platform> "<query>"\` \u2014 Find actions
4351
- - \`one actions knowledge <platform> <actionId>\` \u2014 Read docs (REQUIRED before execute)
4352
- - \`one actions execute <platform> <actionId> <connectionKey>\` \u2014 Execute action
4353
- - \`one flow create\` \u2014 Build multi-step workflows
4354
- - \`one guide\` \u2014 Full documentation
4365
+ - \`one --agent list\` \u2014 See connected platforms and connection keys
4366
+ - \`one --agent actions search <platform> "<query>"\` \u2014 Find actions
4367
+ - \`one --agent actions knowledge <platform> <actionId>\` \u2014 Read docs (REQUIRED before execute)
4368
+ - \`one --agent actions execute <platform> <actionId> <connectionKey>\` \u2014 Execute action
4369
+ - \`one --agent flow create\` \u2014 Build multi-step workflows
4370
+ - \`one --agent guide\` \u2014 Full documentation
4371
+ - \`one add <platform>\` \u2014 Connect a new platform (interactive, no --agent)
4355
4372
 
4356
4373
  ### Workflow: search -> knowledge -> execute
4357
4374
  Always read the knowledge before executing. It tells you required parameters,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@withone/cli",
3
- "version": "1.12.3",
3
+ "version": "1.12.5",
4
4
  "description": "CLI for managing One",
5
5
  "type": "module",
6
6
  "files": [