@zeroxyz/cli 1.12.0 → 1.12.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/index.js +59 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -78576,7 +78576,7 @@ init_esm_shims();
|
|
|
78576
78576
|
|
|
78577
78577
|
// package.json
|
|
78578
78578
|
var package_default = {
|
|
78579
|
-
version: "1.12.
|
|
78579
|
+
version: "1.12.1"};
|
|
78580
78580
|
|
|
78581
78581
|
// src/app.ts
|
|
78582
78582
|
init_esm_shims();
|
|
@@ -150101,6 +150101,7 @@ var runInit = async (appContext, options = {}) => {
|
|
|
150101
150101
|
}
|
|
150102
150102
|
console.log("");
|
|
150103
150103
|
const fallbackSkillDirs = [];
|
|
150104
|
+
const standaloneOnlyAgents = [];
|
|
150104
150105
|
const pluginResults = [];
|
|
150105
150106
|
for (const detection of detections) {
|
|
150106
150107
|
const { entry, present, exeCallable, method } = detection;
|
|
@@ -150116,7 +150117,22 @@ var runInit = async (appContext, options = {}) => {
|
|
|
150116
150117
|
}
|
|
150117
150118
|
continue;
|
|
150118
150119
|
}
|
|
150119
|
-
|
|
150120
|
+
if (present && !method) {
|
|
150121
|
+
if ((entry.standalone?.skills ?? []).length > 0) {
|
|
150122
|
+
standaloneOnlyAgents.push(entry);
|
|
150123
|
+
} else {
|
|
150124
|
+
const result2 = {
|
|
150125
|
+
agent: entry.id,
|
|
150126
|
+
displayName: entry.name,
|
|
150127
|
+
status: "skipped_unavailable",
|
|
150128
|
+
detail: "no plugin or standalone skill available for this harness"
|
|
150129
|
+
};
|
|
150130
|
+
pluginResults.push(result2);
|
|
150131
|
+
stepSkip(`${entry.name}: ${statusLabel(result2)}`, result2.detail);
|
|
150132
|
+
}
|
|
150133
|
+
continue;
|
|
150134
|
+
}
|
|
150135
|
+
const detail = !present ? `~/${entry.detect.dir} not found` : `\`${entry.detect.exe}\` is not callable in this shell`;
|
|
150120
150136
|
const result = {
|
|
150121
150137
|
agent: entry.id,
|
|
150122
150138
|
displayName: entry.name,
|
|
@@ -150131,6 +150147,11 @@ var runInit = async (appContext, options = {}) => {
|
|
|
150131
150147
|
}
|
|
150132
150148
|
}
|
|
150133
150149
|
}
|
|
150150
|
+
const standaloneOnlyDirs = unique(
|
|
150151
|
+
standaloneOnlyAgents.flatMap(
|
|
150152
|
+
(entry) => (entry.standalone?.skills ?? []).map((dir) => join(home, dir))
|
|
150153
|
+
)
|
|
150154
|
+
);
|
|
150134
150155
|
const pluginSucceeded = pluginResults.some(
|
|
150135
150156
|
(result) => result.status === "installed" || result.status === "would_install"
|
|
150136
150157
|
);
|
|
@@ -150170,7 +150191,8 @@ var runInit = async (appContext, options = {}) => {
|
|
|
150170
150191
|
verbose,
|
|
150171
150192
|
skillsDir: unique([
|
|
150172
150193
|
...options.skillsDir ?? [],
|
|
150173
|
-
...fallbackSkillDirs
|
|
150194
|
+
...fallbackSkillDirs,
|
|
150195
|
+
...standaloneOnlyDirs
|
|
150174
150196
|
]),
|
|
150175
150197
|
hookTargets: buildHookTargets(entries),
|
|
150176
150198
|
onStep: (step) => {
|
|
@@ -150183,6 +150205,40 @@ var runInit = async (appContext, options = {}) => {
|
|
|
150183
150205
|
console.log(
|
|
150184
150206
|
" Standalone fallback not used: at least one harness plugin install succeeded."
|
|
150185
150207
|
);
|
|
150208
|
+
if (standaloneOnlyDirs.length > 0) {
|
|
150209
|
+
currentStep = "skill";
|
|
150210
|
+
if (dryRun) {
|
|
150211
|
+
for (const dir of standaloneOnlyDirs) {
|
|
150212
|
+
stepInfo(`would install/update ${join(dir, "zero")}`);
|
|
150213
|
+
}
|
|
150214
|
+
} else {
|
|
150215
|
+
const skillMd = await fetchText(
|
|
150216
|
+
`${appContext.env.ZERO_WEB_URL}/SKILL.md`
|
|
150217
|
+
);
|
|
150218
|
+
const installed = installSkill(standaloneOnlyDirs, skillMd, verbose);
|
|
150219
|
+
standaloneResult = {
|
|
150220
|
+
...standaloneResult,
|
|
150221
|
+
skillsInstalled: installed
|
|
150222
|
+
};
|
|
150223
|
+
}
|
|
150224
|
+
}
|
|
150225
|
+
}
|
|
150226
|
+
for (const entry of standaloneOnlyAgents) {
|
|
150227
|
+
const result = {
|
|
150228
|
+
agent: entry.id,
|
|
150229
|
+
displayName: entry.name,
|
|
150230
|
+
status: dryRun ? "would_install" : "installed",
|
|
150231
|
+
detail: "standalone skill (no plugin for this harness)"
|
|
150232
|
+
};
|
|
150233
|
+
pluginResults.push(result);
|
|
150234
|
+
if (dryRun) {
|
|
150235
|
+
stepSkip(
|
|
150236
|
+
`${entry.name}: would install standalone skill`,
|
|
150237
|
+
result.detail
|
|
150238
|
+
);
|
|
150239
|
+
} else {
|
|
150240
|
+
stepSuccess(`${entry.name}: standalone skill installed`, result.detail);
|
|
150241
|
+
}
|
|
150186
150242
|
}
|
|
150187
150243
|
currentStep = "complete";
|
|
150188
150244
|
appContext.services.analyticsService.capture("init_completed", {
|