@withone/cli 2.3.1 → 2.4.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/README.md +22 -0
- package/dist/{chunk-IPAVHPRZ.js → chunk-7FPQOAQ4.js} +1 -1
- package/dist/{chunk-FUCAK5RA.js → chunk-NOFJ4NYD.js} +19 -1
- package/dist/{chunk-SN6WYDOE.js → chunk-XKUTG7JD.js} +1 -1
- package/dist/index.js +875 -317
- package/dist/{migrate-GN3I6EZM.js → migrate-3LSEIPRF.js} +2 -2
- package/dist/{schema-G7XYVIZG.js → schema-FICQRMZ7.js} +1 -1
- package/dist/{sql-6I4LWPZF.js → sql-AKQSXRV2.js} +2 -2
- package/package.json +1 -1
- package/skills/one/SKILL.md +10 -0
package/README.md
CHANGED
|
@@ -498,6 +498,28 @@ one relay deliveries --endpoint-id <id> # Check delivery status
|
|
|
498
498
|
|
|
499
499
|
Start with `one relay platforms` to discover which platforms support relay at all, then drill into `event-types <platform>` for the specific events. Run `one guide relay` for the full reference including `--metadata` requirements per platform.
|
|
500
500
|
|
|
501
|
+
### `one skills`
|
|
502
|
+
|
|
503
|
+
Optional skills for your coding agent, installed on request. The One skill itself still comes from `one init` (and `one config skills sync|status`); these commands never touch it.
|
|
504
|
+
|
|
505
|
+
```bash
|
|
506
|
+
one skills list # the One skill and each optional skill, with where it is installed
|
|
507
|
+
one skills add connect # the One Connect skill, into this project
|
|
508
|
+
one skills add connect --global # ...or for every project on this machine
|
|
509
|
+
one skills add connect --agents claude-code,windsurf # link exactly these agents
|
|
510
|
+
one skills update [connect] # re-copy after upgrading @withone/connect
|
|
511
|
+
one skills remove connect # remove it and the agent folders that point at it
|
|
512
|
+
```
|
|
513
|
+
|
|
514
|
+
What `one skills add connect` does:
|
|
515
|
+
|
|
516
|
+
1. **Finds the skill** in the `@withone/connect` package your project installed (`node_modules/@withone/connect/skills/one-connect`), so your agent reads the docs for the exact SDK version your code calls. If the package isn't installed yet, it downloads the latest published package from npm and checks it against the registry's integrity hash first.
|
|
517
|
+
2. **Installs it** into `.agents/skills/one-connect` (read by Codex, Cursor, Amp and OpenCode) and links `.claude/skills/one-connect` for Claude Code. Windsurf, Kiro, Goose and Roo get a link when the project already has their folder (`.windsurf`, `.kiro`, `.goose`, `.roo`). Where links aren't allowed (Windows without developer mode), it uses a junction, then a copy.
|
|
518
|
+
3. **Stamps** the install with the package version in `.one-skill.json`.
|
|
519
|
+
4. **Keeps it fresh**: any `one` command run in the project re-copies the skill when the installed `@withone/connect` version changes. Local files only; no network.
|
|
520
|
+
|
|
521
|
+
Commit `.agents/skills/one-connect` and the agent links so your team's agents share the skill. Agent mode (`--agent`) returns JSON for every subcommand.
|
|
522
|
+
|
|
501
523
|
### `one guide [topic]`
|
|
502
524
|
|
|
503
525
|
Get the full CLI usage guide, designed for AI agents that only have the binary (no MCP, no IDE skills).
|
|
@@ -23,13 +23,31 @@ function silenceWarningsInAgentMode() {
|
|
|
23
23
|
process.emitWarning = (() => {
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
+
var SPINNER_CHROME = 6;
|
|
27
|
+
function fitSpinnerMessage(msg, columns) {
|
|
28
|
+
if (!columns || columns <= 0) return msg;
|
|
29
|
+
const room = columns - SPINNER_CHROME;
|
|
30
|
+
const chars = Array.from(msg);
|
|
31
|
+
if (chars.length <= room) return msg;
|
|
32
|
+
return room > 1 ? `${chars.slice(0, room - 1).join("")}\u2026` : "";
|
|
33
|
+
}
|
|
26
34
|
function createSpinner() {
|
|
27
35
|
if (isAgentMode()) {
|
|
28
36
|
return { start() {
|
|
29
37
|
}, stop() {
|
|
30
38
|
} };
|
|
31
39
|
}
|
|
32
|
-
|
|
40
|
+
if (!process.stdout.isTTY) {
|
|
41
|
+
return {
|
|
42
|
+
start: (msg) => p.log.step(msg),
|
|
43
|
+
stop: (msg) => p.log.message(msg)
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
const spinner2 = p.spinner();
|
|
47
|
+
return {
|
|
48
|
+
start: (msg) => spinner2.start(fitSpinnerMessage(msg, process.stdout.columns)),
|
|
49
|
+
stop: (msg) => spinner2.stop(msg)
|
|
50
|
+
};
|
|
33
51
|
}
|
|
34
52
|
function intro2(msg) {
|
|
35
53
|
if (!isAgentMode()) p.intro(msg);
|