@dastyaresocial/ds-cs 0.1.0 → 0.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/README.md CHANGED
@@ -3,8 +3,8 @@
3
3
  The CLI for [Dastyare Social — CS](https://cs.dastyare.social). Installs agent skills, wires up MCP, and authenticates to a channel.
4
4
 
5
5
  ```bash
6
- npx ds-cs init
7
- npx ds-cs add post-with-media
6
+ npx @dastyaresocial/ds-cs init
7
+ npx @dastyaresocial/ds-cs add post-with-media
8
8
  ```
9
9
 
10
10
  ## Why
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dastyaresocial/ds-cs",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "CLI for Dastyare Social — CS. Install DS-CS skills and third-party agent skills, wire up MCP, and authenticate to a channel.",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/skills/README.md CHANGED
@@ -3,9 +3,9 @@
3
3
  First-party skills for [Dastyare Social — CS](https://cs.dastyare.social). Install them with:
4
4
 
5
5
  ```bash
6
- npx ds-cs init
7
- npx ds-cs add # browse everything
8
- npx ds-cs add post-with-media # or install one by name
6
+ npx @dastyaresocial/ds-cs init
7
+ npx @dastyaresocial/ds-cs add # browse everything
8
+ npx @dastyaresocial/ds-cs add post-with-media # or install one by name
9
9
  ```
10
10
 
11
11
  ## What is here
@@ -60,7 +60,7 @@ Add `metadata.internal: true` to hide a skill from discovery until `INSTALL_INTE
60
60
  While inside a DS-CS checkout, `ds-cs add` installs from this directory rather than from GitHub, so edits take effect immediately:
61
61
 
62
62
  ```bash
63
- npx ds-cs add brand-config --force
63
+ npx @dastyaresocial/ds-cs add brand-config --force
64
64
  ```
65
65
 
66
66
  Run it from a scratch directory to test what a user actually gets:
@@ -13,12 +13,17 @@ import { discoverSkills } from "../skills/discover.mjs";
13
13
  import { toArray } from "../args.mjs";
14
14
  import { CliError } from "../utils/errors.mjs";
15
15
  import { cyan, log, table } from "../utils/log.mjs";
16
+ import { isInteractive } from "../utils/prompt.mjs";
16
17
  import { resolveRequest } from "./target.mjs";
17
18
 
18
19
  export async function addCommand(positional, flags, { projectRoot }) {
19
20
  const { source, names } = resolveRequest(positional, flags);
20
21
 
21
- if (flags.list) {
22
+ // `ds-cs add` on its own means "show me what there is" — the interactive
23
+ // picker when there is a terminal, the plain listing when there is not (CI, a
24
+ // pipe, an agent shell). Erroring on a missing TTY would make the documented
25
+ // "browse everything" form fail in exactly the places people run it.
26
+ if (flags.list || (names.length === 0 && !isInteractive())) {
22
27
  await listSource(source, projectRoot);
23
28
  return;
24
29
  }
package/src/index.mjs CHANGED
@@ -31,7 +31,8 @@ const VERSION = await readVersion();
31
31
  const USAGE = `${bold("ds-cs")} — skills and tooling for Dastyare Social — CS
32
32
 
33
33
  ${bold("Usage")}
34
- ds-cs <command> [options]
34
+ npx @dastyaresocial/ds-cs <command> [options]
35
+ (or \`ds-cs <command>\` once installed / linked globally)
35
36
 
36
37
  ${bold("Commands")}
37
38
  init [dir] Prepare a project for DS-CS skills