@dastyaresocial/ds-cs 0.1.0 → 0.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dastyaresocial/ds-cs",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
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",
@@ -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
  }