@senso-ai/cli 0.8.0 → 0.8.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/dist/cli.js +12 -12
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1493,12 +1493,12 @@ import { execFile } from "child_process";
|
|
|
1493
1493
|
import { promisify } from "util";
|
|
1494
1494
|
var execFileAsync = promisify(execFile);
|
|
1495
1495
|
var SENSO_SKILLS = [
|
|
1496
|
-
"
|
|
1497
|
-
"
|
|
1498
|
-
"
|
|
1499
|
-
"
|
|
1500
|
-
"
|
|
1501
|
-
"
|
|
1496
|
+
"senso-ai/senso-search",
|
|
1497
|
+
"senso-ai/senso-ingest",
|
|
1498
|
+
"senso-ai/senso-content-gen",
|
|
1499
|
+
"senso-ai/senso-brand-setup",
|
|
1500
|
+
"senso-ai/senso-kb-organize",
|
|
1501
|
+
"senso-ai/senso-review-publish"
|
|
1502
1502
|
];
|
|
1503
1503
|
var AGENT_FLAGS = {
|
|
1504
1504
|
claude: "--claude",
|
|
@@ -1542,7 +1542,7 @@ function registerSkillsCommands(program2) {
|
|
|
1542
1542
|
} else {
|
|
1543
1543
|
skillPackages = names.map((n) => {
|
|
1544
1544
|
if (n.startsWith("@")) return n;
|
|
1545
|
-
return
|
|
1545
|
+
return `senso-ai/senso-${n}`;
|
|
1546
1546
|
});
|
|
1547
1547
|
}
|
|
1548
1548
|
let agentFlags;
|
|
@@ -1567,10 +1567,10 @@ function registerSkillsCommands(program2) {
|
|
|
1567
1567
|
if (stdout.trim()) console.log(stdout.trim());
|
|
1568
1568
|
if (stderr.trim()) console.error(stderr.trim());
|
|
1569
1569
|
}
|
|
1570
|
-
const shortName = pkg.replace("
|
|
1570
|
+
const shortName = pkg.replace("senso-ai/senso-", "");
|
|
1571
1571
|
success(`Installed ${shortName}`);
|
|
1572
1572
|
} catch (err) {
|
|
1573
|
-
const shortName = pkg.replace("
|
|
1573
|
+
const shortName = pkg.replace("senso-ai/senso-", "");
|
|
1574
1574
|
const msg = err instanceof Error ? err.message : String(err);
|
|
1575
1575
|
error(`Failed to install ${shortName}: ${msg}`);
|
|
1576
1576
|
}
|
|
@@ -1601,7 +1601,7 @@ function registerSkillsCommands(program2) {
|
|
|
1601
1601
|
const opts = program2.opts();
|
|
1602
1602
|
const available = SENSO_SKILLS.map((pkg) => ({
|
|
1603
1603
|
package: pkg,
|
|
1604
|
-
shortName: pkg.replace("
|
|
1604
|
+
shortName: pkg.replace("senso-ai/senso-", "")
|
|
1605
1605
|
}));
|
|
1606
1606
|
if (opts.output === "json") {
|
|
1607
1607
|
console.log(JSON.stringify(available, null, 2));
|
|
@@ -1616,7 +1616,7 @@ function registerSkillsCommands(program2) {
|
|
|
1616
1616
|
});
|
|
1617
1617
|
skills.command("remove <name>").description("Remove an installed Senso skill. Use the short name (e.g., search, ingest, content-gen).").option("--global", "Remove from global install").action(async (name, cmdOpts) => {
|
|
1618
1618
|
const opts = program2.opts();
|
|
1619
|
-
const pkg = name.startsWith("@") ? name :
|
|
1619
|
+
const pkg = name.startsWith("@") ? name : `senso-ai/senso-${name}`;
|
|
1620
1620
|
const globalFlag = cmdOpts.global ? ["--global"] : [];
|
|
1621
1621
|
try {
|
|
1622
1622
|
const { stdout, stderr } = await runShipables(["uninstall", pkg, ...globalFlag, "--yes"]);
|
|
@@ -1624,7 +1624,7 @@ function registerSkillsCommands(program2) {
|
|
|
1624
1624
|
if (stdout.trim()) console.log(stdout.trim());
|
|
1625
1625
|
if (stderr.trim()) console.error(stderr.trim());
|
|
1626
1626
|
}
|
|
1627
|
-
const shortName = pkg.replace("
|
|
1627
|
+
const shortName = pkg.replace("senso-ai/senso-", "");
|
|
1628
1628
|
success(`Removed ${shortName}`);
|
|
1629
1629
|
} catch (err) {
|
|
1630
1630
|
error(err instanceof Error ? err.message : String(err));
|