@ycodium-ai/agent-claude 0.2.2844 → 0.2.2852

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 +5 -2
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -20051,6 +20051,7 @@ async function discoverClaudeSkills(configDirPath, options = {}) {
20051
20051
  }
20052
20052
  return [...skills.values()].toSorted((left, right) => left.name.localeCompare(right.name));
20053
20053
  }
20054
+ var claudeSessionPlugins = (skills) => skills === void 0 || skills.names.length === 0 ? {} : { plugins: [{ type: "local", path: skills.pluginDir }] };
20054
20055
 
20055
20056
  // src/model.ts
20056
20057
  import { matchCatalogModel } from "@ycodium-ai/plugin-api/executor";
@@ -26255,7 +26256,7 @@ function createClaudeAdapter(recipe, host, options) {
26255
26256
  context.spawnEnvironment,
26256
26257
  desired.spawnEnvironment
26257
26258
  );
26258
- const reusable = !context.stopped && context.session.status !== "closed" && context.session.cwd === input.cwd && context.session.runtimeMode === input.runtimeMode && context.basePermissionMode === desired.permissionMode && context.launchEffort === desired.effectiveEffort && (resumeTarget === void 0 || resumeTarget === context.resumeSessionId) && changedEnvironmentKeys.length === 0;
26259
+ const reusable = !context.stopped && context.session.status !== "closed" && context.session.cwd === input.cwd && context.session.runtimeMode === input.runtimeMode && context.basePermissionMode === desired.permissionMode && context.launchEffort === desired.effectiveEffort && context.skillsPluginDir === input.skills?.pluginDir && (resumeTarget === void 0 || resumeTarget === context.resumeSessionId) && changedEnvironmentKeys.length === 0;
26259
26260
  if (!reusable) {
26260
26261
  if (changedEnvironmentKeys.length > 0) {
26261
26262
  (options?.log ?? host.log).info("claude.session.environment-changed", {
@@ -26736,7 +26737,8 @@ function createClaudeAdapter(recipe, host, options) {
26736
26737
  env: { ...spawnEnvironment.processEnv },
26737
26738
  additionalDirectories,
26738
26739
  ...Object.keys(extraArgs).length > 0 ? { extraArgs } : {},
26739
- ...mcpServers === void 0 ? {} : { mcpServers }
26740
+ ...mcpServers === void 0 ? {} : { mcpServers },
26741
+ ...claudeSessionPlugins(input.skills)
26740
26742
  };
26741
26743
  let queryRuntime;
26742
26744
  try {
@@ -26783,6 +26785,7 @@ function createClaudeAdapter(recipe, host, options) {
26783
26785
  lastKnownContextWindow: void 0,
26784
26786
  currentEffort: effectiveEffort ?? void 0,
26785
26787
  launchEffort: effectiveEffort ?? void 0,
26788
+ skillsPluginDir: input.skills?.pluginDir,
26786
26789
  spawnEnvironment,
26787
26790
  currentSettings: settings,
26788
26791
  interruptSettled: void 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ycodium-ai/agent-claude",
3
- "version": "0.2.2844",
3
+ "version": "0.2.2852",
4
4
  "description": "Claude executor: Claude Code CLI via @anthropic-ai/claude-agent-sdk.",
5
5
  "keywords": [
6
6
  "ycodium",
@@ -24,9 +24,9 @@
24
24
  "@types/node": "24.12.4",
25
25
  "esbuild": "0.28.1",
26
26
  "vite-plus": "0.2.2",
27
- "@ycodium-ai/plugin-api": "0.2.2844",
28
- "ycodium-executor-testing": "0.0.0",
29
- "ycodium-jsonl-stream": "0.0.0"
27
+ "@ycodium-ai/plugin-api": "0.2.2852",
28
+ "ycodium-jsonl-stream": "0.0.0",
29
+ "ycodium-executor-testing": "0.0.0"
30
30
  },
31
31
  "ycodium": {
32
32
  "plugin": "./dist/index.js",