@ycodium-ai/agent-grok 0.2.2942 → 0.2.2944

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 +4 -3
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -27564,7 +27564,8 @@ function buildGrokBackgroundTaskEvents(input2) {
27564
27564
  }
27565
27565
 
27566
27566
  // src/grokImageArtifacts.ts
27567
- function imageGenResult(rawOutput) {
27567
+ var IMAGE_RESULT_TYPES = /* @__PURE__ */ new Set(["ImageGen", "ImageEdit"]);
27568
+ function imageResult(rawOutput) {
27568
27569
  let value = rawOutput;
27569
27570
  if (typeof value === "string") {
27570
27571
  try {
@@ -27573,7 +27574,7 @@ function imageGenResult(rawOutput) {
27573
27574
  return void 0;
27574
27575
  }
27575
27576
  }
27576
- return value !== null && typeof value === "object" && value["type"] === "ImageGen" ? value : void 0;
27577
+ return value !== null && typeof value === "object" && IMAGE_RESULT_TYPES.has(value["type"]) ? value : void 0;
27577
27578
  }
27578
27579
  function sessionDirectory(path, sessionFolder, filename) {
27579
27580
  if (typeof sessionFolder !== "string" || sessionFolder.trim().length === 0) return void 0;
@@ -27588,7 +27589,7 @@ function sessionDirectory(path, sessionFolder, filename) {
27588
27589
  return parts.slice(0, parts.length - tail.length * 2).join("");
27589
27590
  }
27590
27591
  function grokImageArtifacts(rawOutput) {
27591
- const result = imageGenResult(rawOutput);
27592
+ const result = imageResult(rawOutput);
27592
27593
  const path = typeof result?.["path"] === "string" ? result["path"].trim() : "";
27593
27594
  if (result === void 0 || path.length === 0) return [];
27594
27595
  const filename = typeof result["filename"] === "string" && result["filename"].trim().length > 0 ? result["filename"].trim() : path.split(/[\\/]/).at(-1) ?? path;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ycodium-ai/agent-grok",
3
- "version": "0.2.2942",
3
+ "version": "0.2.2944",
4
4
  "description": "Grok executor: grok CLI over Agent Client Protocol stdio.",
5
5
  "keywords": [
6
6
  "ycodium",
@@ -21,9 +21,9 @@
21
21
  "@types/node": "24.12.4",
22
22
  "esbuild": "0.28.1",
23
23
  "vite-plus": "0.2.2",
24
- "@ycodium-ai/plugin-api": "0.2.2942",
24
+ "ycodium-acp-executor": "0.2.2944",
25
25
  "ycodium-executor-testing": "0.0.0",
26
- "ycodium-acp-executor": "0.2.2942"
26
+ "@ycodium-ai/plugin-api": "0.2.2944"
27
27
  },
28
28
  "ycodium": {
29
29
  "plugin": "./dist/index.js",