@zeroxyz/cli 0.0.27 → 0.0.28
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/index.js +14 -10
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Command as Command12 } from "commander";
|
|
|
6
6
|
// package.json
|
|
7
7
|
var package_default = {
|
|
8
8
|
name: "@zeroxyz/cli",
|
|
9
|
-
version: "0.0.
|
|
9
|
+
version: "0.0.28",
|
|
10
10
|
type: "module",
|
|
11
11
|
bin: {
|
|
12
12
|
zero: "dist/index.js",
|
|
@@ -1624,10 +1624,14 @@ import { fileURLToPath } from "url";
|
|
|
1624
1624
|
import { Command as Command5 } from "commander";
|
|
1625
1625
|
import { generatePrivateKey, privateKeyToAccount } from "viem/accounts";
|
|
1626
1626
|
var AGENT_TOOLS = [
|
|
1627
|
-
{ name: "Claude Code",
|
|
1628
|
-
{ name: "Codex",
|
|
1629
|
-
{
|
|
1630
|
-
|
|
1627
|
+
{ name: "Claude Code", detectDir: ".claude", skillsDir: ".claude/skills" },
|
|
1628
|
+
{ name: "Codex", detectDir: ".codex", skillsDir: ".agents/skills" },
|
|
1629
|
+
{
|
|
1630
|
+
name: "OpenCode",
|
|
1631
|
+
detectDir: ".config/opencode",
|
|
1632
|
+
skillsDir: ".config/opencode/skills"
|
|
1633
|
+
},
|
|
1634
|
+
{ name: "Cursor", detectDir: ".cursor", skillsDir: ".cursor/skills" }
|
|
1631
1635
|
];
|
|
1632
1636
|
var getPackageRoot = () => {
|
|
1633
1637
|
let dir;
|
|
@@ -1766,7 +1770,7 @@ var CONFLICTING_SKILL_PATTERNS = ["zam", "tempo"];
|
|
|
1766
1770
|
var findConflictingSkills = (home) => {
|
|
1767
1771
|
const found = [];
|
|
1768
1772
|
for (const tool of AGENT_TOOLS) {
|
|
1769
|
-
const toolSkillsPath = join2(home, tool.
|
|
1773
|
+
const toolSkillsPath = join2(home, tool.skillsDir);
|
|
1770
1774
|
if (!existsSync2(toolSkillsPath)) continue;
|
|
1771
1775
|
const entries = readdirSync(toolSkillsPath, { withFileTypes: true });
|
|
1772
1776
|
for (const entry of entries) {
|
|
@@ -1797,11 +1801,11 @@ var installSkills = (home) => {
|
|
|
1797
1801
|
const skillDirs = readdirSync(skillsSourceDir, { withFileTypes: true }).filter((d) => d.isDirectory()).map((d) => d.name);
|
|
1798
1802
|
const installed = [];
|
|
1799
1803
|
for (const tool of AGENT_TOOLS) {
|
|
1800
|
-
const
|
|
1801
|
-
if (!existsSync2(
|
|
1804
|
+
const toolDetectPath = join2(home, tool.detectDir);
|
|
1805
|
+
if (!existsSync2(toolDetectPath)) {
|
|
1802
1806
|
continue;
|
|
1803
1807
|
}
|
|
1804
|
-
const toolSkillsPath = join2(
|
|
1808
|
+
const toolSkillsPath = join2(home, tool.skillsDir);
|
|
1805
1809
|
mkdirSync2(toolSkillsPath, { recursive: true });
|
|
1806
1810
|
for (const skillDir of skillDirs) {
|
|
1807
1811
|
const src = join2(skillsSourceDir, skillDir);
|
|
@@ -1871,7 +1875,7 @@ var runInit = async (appContext, options = {}) => {
|
|
|
1871
1875
|
let hookInstalled = false;
|
|
1872
1876
|
let hookError = null;
|
|
1873
1877
|
for (const tool of AGENT_TOOLS) {
|
|
1874
|
-
if (existsSync2(join2(home, tool.
|
|
1878
|
+
if (existsSync2(join2(home, tool.detectDir))) {
|
|
1875
1879
|
agentsDetected.push(tool.name);
|
|
1876
1880
|
}
|
|
1877
1881
|
}
|