@oxygen-agent/cli 1.887.5 → 1.888.6
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
package/dist/index.js
CHANGED
|
@@ -2720,6 +2720,7 @@ export function createProgram() {
|
|
|
2720
2720
|
query,
|
|
2721
2721
|
route: serializeCapabilityRoute(inferUserCapabilityRoute(query)),
|
|
2722
2722
|
hint: "Hydrate one exact CLI command with `oxygen commands get <exact-command> --json`, or one MCP tool with `oxygen_capabilities_schema`.",
|
|
2723
|
+
alternate_search_hint: `If this route does not fit the outcome, run \`oxygen skills search ${JSON.stringify(query)} --json\` for a narrower operational play.`,
|
|
2723
2724
|
};
|
|
2724
2725
|
});
|
|
2725
2726
|
}))
|
package/dist/skills.js
CHANGED
|
@@ -208,6 +208,13 @@ options, runtime = {}) {
|
|
|
208
208
|
const env = runtime.env ?? process.env;
|
|
209
209
|
const platform = runtime.platform ?? process.platform;
|
|
210
210
|
const spawn = runtime.spawnSync ?? wrapExecFileSync(runtime.execFileSync) ?? spawnSync;
|
|
211
|
+
const installLocations = resolveSkillInstallLocations(agents, options.project === true, env);
|
|
212
|
+
// The vendored installer writes immediately once spawned. Tell humans and
|
|
213
|
+
// agents the exact destination first so a default global install is never a
|
|
214
|
+
// surprise, while keeping stdout as one stable JSON envelope under --json.
|
|
215
|
+
process.stderr.write(`note: installing Oxygen skills (${options.project ? "project" : "global"}) into ${installLocations
|
|
216
|
+
.map((location) => `${location.agent}=${location.path}`)
|
|
217
|
+
.join(", ")}\n`);
|
|
211
218
|
// A specific shortcut skill can declare prerequisite skills that its SKILL.md
|
|
212
219
|
// invokes (e.g. oxygen-clay-migration → oxygen-gtm, whose recipes it lives in).
|
|
213
220
|
// Installing it alone would leave those missing, so pull them in too. Best-
|
|
@@ -304,6 +311,7 @@ options, runtime = {}) {
|
|
|
304
311
|
skill,
|
|
305
312
|
...(dependencySkills.length > 0 ? { dependency_skills: dependencySkills } : {}),
|
|
306
313
|
scope: options.project ? "project" : "global",
|
|
314
|
+
install_locations: installLocations,
|
|
307
315
|
output: outputs.join(""),
|
|
308
316
|
// Truthful counts a caller (human or scripting agent) can trust at a
|
|
309
317
|
// glance: a not-detected agent is never folded into `failed`.
|
|
@@ -316,6 +324,23 @@ options, runtime = {}) {
|
|
|
316
324
|
summary: summarizeInstallOutcome(agents.length, skippedAgents.length, 0),
|
|
317
325
|
};
|
|
318
326
|
}
|
|
327
|
+
function resolveSkillInstallLocations(agents, project, env) {
|
|
328
|
+
const projectRoots = {
|
|
329
|
+
codex: resolve(".agents", "skills"),
|
|
330
|
+
"claude-code": resolve(".claude", "skills"),
|
|
331
|
+
cursor: resolve(".agents", "skills"),
|
|
332
|
+
};
|
|
333
|
+
const globalRoots = {
|
|
334
|
+
codex: join(env.CODEX_HOME?.trim() || join(homedir(), ".codex"), "skills"),
|
|
335
|
+
"claude-code": join(env.CLAUDE_CONFIG_DIR?.trim() || join(homedir(), ".claude"), "skills"),
|
|
336
|
+
cursor: join(homedir(), ".cursor", "skills"),
|
|
337
|
+
};
|
|
338
|
+
const roots = project ? projectRoots : globalRoots;
|
|
339
|
+
return agents.map((agent) => ({
|
|
340
|
+
agent,
|
|
341
|
+
path: roots[agent] ?? (project ? resolve(".agents", "skills") : join(homedir(), ".agents", "skills")),
|
|
342
|
+
}));
|
|
343
|
+
}
|
|
319
344
|
/**
|
|
320
345
|
* Stages the requested skill(s) into `dir` so the installer receives a local
|
|
321
346
|
* filesystem path instead of the org-bound tokenized access URL. Keeping the URL
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const OXYGEN_VERSION = "1.
|
|
1
|
+
export declare const OXYGEN_VERSION = "1.888.6";
|
|
2
2
|
export declare const OXYGEN_MINIMUM_CLI_VERSION = "1.181.0";
|
|
3
3
|
export declare const MANAGED_INBOX_MINIMUM_CLI_VERSION = "1.326.2";
|
|
4
4
|
export declare const SUPPORT_AGENT_REPLY_MINIMUM_CLI_VERSION = "1.747.0";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const OXYGEN_VERSION = "1.
|
|
1
|
+
export const OXYGEN_VERSION = "1.888.6";
|
|
2
2
|
// The GLOBAL CLI compatibility floor: the oldest CLI allowed to call any
|
|
3
3
|
// operational route. Raising it hard-rejects every older CLI from the entire
|
|
4
4
|
// product, so it obeys one law, enforced by scripts/ci/cli-min-version-gate.mjs:
|