@withone/cli 2.7.0 → 2.7.1
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/README.md +2 -2
- package/dist/index.js +5 -5
- package/package.json +1 -1
- package/skills/one/SKILL.md +3 -3
package/README.md
CHANGED
|
@@ -266,9 +266,9 @@ one actions find shopify "list products" -t knowledge
|
|
|
266
266
|
```
|
|
267
267
|
|
|
268
268
|
- Each **intent** names the operation alone, in a few words (`"send a message to a channel"`), without its data: IDs, names and message text make the search miss. Up to 10 pairs.
|
|
269
|
-
- **`--task`** describes the whole job in one line, in general terms,
|
|
269
|
+
- **`--task`** describes the whole job in one line, in general terms. Agents are asked to send it with every find, since it helps tell similar actions apart.
|
|
270
270
|
- **`-t knowledge`** searches the catalog for writing code and building flows and relays, which includes the platform's own (passthrough) endpoints; the default is the catalog for running actions now.
|
|
271
|
-
- **`--ai-model`** names the model running the CLI (e.g. `claude-sonnet-5`), recorded with the find beside the CLI and the harness that launched it, so the account's usage can report which model asked.
|
|
271
|
+
- **`--ai-model`** names the model running the CLI (e.g. `claude-sonnet-5`), recorded with the find beside the CLI and the harness that launched it, so the account's usage can report which model asked. Agents are asked to send it with every find.
|
|
272
272
|
- **`--no-knowledge`** lists the chosen actions (actionId, title, method, path) without fetching their documentation; load it later with `one actions load <actionId>`.
|
|
273
273
|
|
|
274
274
|
Each intent's answer gives the action(s) to use with their docs, any actions also needed beside them, a **substitute** when the model was unsure (use one or the other, never both), and a few alternatives, then says once how to execute. Always read the docs before executing. The access settings from `one config` apply: an action they refuse is never offered.
|
package/dist/index.js
CHANGED
|
@@ -10804,7 +10804,7 @@ Find the actions a task needs with their docs, in one call, then execute them. T
|
|
|
10804
10804
|
\`\`\`bash
|
|
10805
10805
|
one --agent connection list # See connected platforms + your access on each
|
|
10806
10806
|
one --agent connection delete <connection-key> # Remove a connection
|
|
10807
|
-
one --agent actions find <platform> "<intent>" [<platform> "<intent>" ...] --task "<the job, in general terms>" # Find every action, with its docs (READ them)
|
|
10807
|
+
one --agent actions find <platform> "<intent>" [<platform> "<intent>" ...] --task "<the job, in general terms>" --ai-model "<your model>" # Find every action, with its docs (READ them)
|
|
10808
10808
|
one --agent actions load <actionId> --section "<name>" # More of a doc: a section it left out, --full, --toc
|
|
10809
10809
|
one --agent actions execute <platform> <actionId> <key> -d '{}' # Execute it
|
|
10810
10810
|
\`\`\`
|
|
@@ -10930,15 +10930,15 @@ Removes a connection by its key. In agent mode, returns \`{"deleted": true, "pla
|
|
|
10930
10930
|
### 2. Find Actions
|
|
10931
10931
|
|
|
10932
10932
|
\`\`\`bash
|
|
10933
|
-
one --agent actions find <platform> "<intent>" [<platform> "<intent>" ...] --task "<the job, in general terms>"
|
|
10933
|
+
one --agent actions find <platform> "<intent>" [<platform> "<intent>" ...] --task "<the job, in general terms>" --ai-model "<your model>"
|
|
10934
10934
|
\`\`\`
|
|
10935
10935
|
|
|
10936
10936
|
One call for the whole task: one platform and intent pair per operation, on any platforms (up to 10). One's decision model picks the action for each and returns it **with its documentation** \u2014 required fields, validation rules, request structure. **Read it before execute.**
|
|
10937
10937
|
|
|
10938
10938
|
- **\`intent\` names the operation alone**, in a few words: \`"send a message to a channel"\`, not \`"post 'deploy done' in #eng"\`. IDs, names, and message text in the intent make the search miss.
|
|
10939
|
-
- **\`--task
|
|
10939
|
+
- **\`--task\`**: send it with every find. It is the whole job in one line, **in general terms**: what it does, without names, addresses, IDs, or message text. It helps tell similar actions apart.
|
|
10940
10940
|
- **\`-t knowledge\`** searches the catalog for writing code and building flows and relays, which includes the platform's own (passthrough) endpoints; the default, \`-t execute\`, is the catalog for running actions now. Knowledge-only mode always uses \`knowledge\`.
|
|
10941
|
-
- **\`--ai-model
|
|
10941
|
+
- **\`--ai-model\`**: send it with every find. Your model name as you know it (e.g. \`claude-sonnet-5\`), recorded with the find; leave it out only if you do not know which model you are.
|
|
10942
10942
|
- **\`--no-knowledge\`** (optional) lists the chosen actions without their documentation, when only the actionIds are needed. Load the documentation with \`actions load\` before executing.
|
|
10943
10943
|
|
|
10944
10944
|
In \`--agent\` mode:
|
|
@@ -13246,7 +13246,7 @@ program.command("platforms").alias("p").description("List available platforms").
|
|
|
13246
13246
|
await platformsCommand(options);
|
|
13247
13247
|
});
|
|
13248
13248
|
var actions = program.command("actions").alias("a").description("Find, read, and execute platform actions (workflow: find \u2192 execute)");
|
|
13249
|
-
actions.command("find <pairs...>").alias("f").description('Find the action for every operation a task needs, across platforms, with its documentation, in one call: one actions find <platform> "<intent>" [<platform> "<intent>" ...] (up to 10 pairs). Each intent names the operation alone ("send an email"), without its data. Large documents come back as a digest; each names the exact `actions load` command for what it left out').option("--task <task>", 'The whole task in one line, in general terms (e.g. "email a report to a contact"): what it does, without names, addresses, IDs or message text.
|
|
13249
|
+
actions.command("find <pairs...>").alias("f").description('Find the action for every operation a task needs, across platforms, with its documentation, in one call: one actions find <platform> "<intent>" [<platform> "<intent>" ...] (up to 10 pairs). Each intent names the operation alone ("send an email"), without its data. Large documents come back as a digest; each names the exact `actions load` command for what it left out').option("--task <task>", 'The whole task in one line, in general terms (e.g. "email a report to a contact"): what it does, without names, addresses, IDs or message text. Send it with every find: it helps tell similar actions apart').option("-t, --type <type>", "execute (default: actions to run now) or knowledge (the catalog for writing code and building flows and relays, with the platform's own endpoints). Knowledge-only mode always uses knowledge").option("--ai-model <model>", "Your model name as you know it (e.g. claude-sonnet-5), recorded with this find. Send it with every find; leave it out only if you do not know which model you are").option("--no-cache", "Bypass the cache for action documentation and re-fetch it (the fresh response still refreshes the cache)").option("--no-knowledge", "List the chosen actions (actionId, title, method, path) without their documentation; load it with `one actions load <actionId>`").action(async (pairs, options) => {
|
|
13250
13250
|
await actionsFindCommand(pairs, options);
|
|
13251
13251
|
});
|
|
13252
13252
|
actions.command("load <actionIds...>").alias("l").description("More of an action's documentation (up to 10 actions): the digest by default, --section for one a digest left out, --full for the whole document, --toc for its contents. Also how to read an alternative from a find answer").option("--section <name>", 'Return only the named section(s) \u2014 by heading, id, or alias (e.g. "Response Fields", response, optional). Repeatable or comma-separated', collect, []).option("--full", "Return the whole document instead of the digest").option("--toc", "List every section (id, heading, size) without the document").option("--no-cache", "Bypass the cache and re-fetch from the API (the fresh response still refreshes the cache)").option("--cache-status", "Print cache metadata without fetching").action(async (actionIds, options) => {
|
package/package.json
CHANGED
package/skills/one/SKILL.md
CHANGED
|
@@ -76,15 +76,15 @@ Removes a connection. Returns `{"deleted": true, "platform": "...", "key": "..."
|
|
|
76
76
|
### 2. Find every action the task needs, with its docs (READ them before executing)
|
|
77
77
|
|
|
78
78
|
```bash
|
|
79
|
-
one --agent actions find <platform> "<intent>" [<platform> "<intent>" ...] --task "<the job, in general terms>"
|
|
79
|
+
one --agent actions find <platform> "<intent>" [<platform> "<intent>" ...] --task "<the job, in general terms>" --ai-model "<your model>"
|
|
80
80
|
```
|
|
81
81
|
|
|
82
82
|
**One call for the whole task**: one platform and intent pair per operation, on any platforms (up to 10). One's decision model picks the action for each and returns it **with its documentation**: exactly what parameters are required, how to structure the request, and where each value goes. Never execute without reading it — without it you'll guess wrong on parameters.
|
|
83
83
|
|
|
84
84
|
- **`intent` names the operation alone**, in a few words: `"send a message to a channel"`, not `"post 'deploy done' in #eng"`. IDs, names, and message text in the intent make the search miss.
|
|
85
|
-
- **`--task
|
|
85
|
+
- **`--task`**: send it with every find. It is the whole job in one line, **in general terms**: `"email a weather report to a contact"`, without names, addresses, IDs, or message text. It helps tell similar actions apart.
|
|
86
86
|
- **`-t knowledge`** searches the catalog for writing code and building flows and relays (it includes the platform's own passthrough endpoints); the default, `-t execute`, is the catalog for running actions now.
|
|
87
|
-
- **`--ai-model
|
|
87
|
+
- **`--ai-model`**: send it with every find. Your model name as you know it (e.g. `claude-sonnet-5`), recorded with the find; leave it out only if you do not know which model you are.
|
|
88
88
|
- **`--no-knowledge`** (optional): list the chosen actions without their documentation, when you only need the actionIds. Load the documentation with `actions load` before executing.
|
|
89
89
|
- Platform names are lowercase; multi-word names use dashes: `gmail`, `hubspot`, `ship-station`, `google-calendar`.
|
|
90
90
|
|