@ycodium-ai/agent-codex 0.2.2840 → 0.2.2846

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.
Files changed (2) hide show
  1. package/dist/index.js +12 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4268,6 +4268,17 @@ async function listCodexSkills(rpc) {
4268
4268
  }
4269
4269
  return [...skills.values()].toSorted((left, right) => left.name.localeCompare(right.name));
4270
4270
  }
4271
+ async function setCodexSessionSkillRoots(rpc, skills, log, threadId) {
4272
+ if (skills === void 0 || skills.names.length === 0) return;
4273
+ try {
4274
+ await rpc.request("skills/extraRoots/set", { extraRoots: [skills.skillsDir] });
4275
+ } catch (error) {
4276
+ log.warn("codex did not take the session skill root; skills stay on the built-in tools", {
4277
+ threadId,
4278
+ error: error instanceof Error ? error.message : String(error)
4279
+ });
4280
+ }
4281
+ }
4271
4282
 
4272
4283
  // src/workspaceInventory.ts
4273
4284
  import * as NodeFS4 from "node:fs";
@@ -5824,6 +5835,7 @@ var createCodexInstance = (config, host, attachments, cache) => {
5824
5835
  try {
5825
5836
  await rpc.request("initialize", CODEX_INITIALIZE_PARAMS);
5826
5837
  await rpc.notify("initialized");
5838
+ await setCodexSessionSkillRoots(rpc, input.skills, host.log, input.threadId);
5827
5839
  const session = await runtime.openThread(input);
5828
5840
  await yieldTick();
5829
5841
  threads.set(input.threadId, { runtime, rpc, handle });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ycodium-ai/agent-codex",
3
- "version": "0.2.2840",
3
+ "version": "0.2.2846",
4
4
  "description": "Codex executor: Codex CLI over the app-server JSON-RPC protocol.",
5
5
  "keywords": [
6
6
  "ycodium",