@ycodium-ai/agent-grok 0.2.6212 → 0.2.6253

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 +31 -10
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ var __export = (target, all) => {
8
8
  import { definePlugin } from "@ycodium-ai/plugin-api";
9
9
 
10
10
  // ../../packages/plugin-api/src/version.ts
11
- var PLUGIN_API_VERSION = 201;
11
+ var PLUGIN_API_VERSION = 202;
12
12
 
13
13
  // src/index.ts
14
14
  import { registerEffectiveHomeCommand } from "@ycodium-ai/plugin-api/instance-config";
@@ -711,12 +711,20 @@ function extractToolCommand(data, title) {
711
711
  const rawInput = isRecord4(data?.["rawInput"]) ? data["rawInput"] : void 0;
712
712
  const dataInput = isRecord4(data?.["input"]) ? data["input"] : void 0;
713
713
  const candidates = [
714
- normalizeCommandValue(item?.["command"]),
715
- normalizeCommandValue(itemInput?.["command"]),
716
- normalizeCommandValue(itemResult?.["command"]),
717
- normalizeCommandValue(data?.["command"]),
718
- normalizeCommandValue(dataInput?.["command"]),
719
- normalizeCommandValue(rawInput?.["command"])
714
+ normalizeCommandValue(item?.["command"] ?? item?.["CommandLine"] ?? item?.["commandLine"]),
715
+ normalizeCommandValue(
716
+ itemInput?.["command"] ?? itemInput?.["CommandLine"] ?? itemInput?.["commandLine"]
717
+ ),
718
+ normalizeCommandValue(
719
+ itemResult?.["command"] ?? itemResult?.["CommandLine"] ?? itemResult?.["commandLine"]
720
+ ),
721
+ normalizeCommandValue(data?.["command"] ?? data?.["CommandLine"] ?? data?.["commandLine"]),
722
+ normalizeCommandValue(
723
+ dataInput?.["command"] ?? dataInput?.["CommandLine"] ?? dataInput?.["commandLine"]
724
+ ),
725
+ normalizeCommandValue(
726
+ rawInput?.["command"] ?? rawInput?.["CommandLine"] ?? rawInput?.["commandLine"]
727
+ )
720
728
  ];
721
729
  const direct = candidates.find((candidate) => candidate !== void 0);
722
730
  if (direct) {
@@ -757,7 +765,18 @@ function collectPaths(value, paths, seen, depth) {
757
765
  if (!isRecord4(value)) {
758
766
  return;
759
767
  }
760
- for (const key of ["path", "filePath", "relativePath", "filename", "newPath", "oldPath"]) {
768
+ for (const key of [
769
+ "path",
770
+ "Path",
771
+ "filePath",
772
+ "file_path",
773
+ "notebook_path",
774
+ "target_file",
775
+ "relativePath",
776
+ "filename",
777
+ "newPath",
778
+ "oldPath"
779
+ ]) {
761
780
  const candidate = maybePathLike(asTrimmedString2(value[key]));
762
781
  if (!candidate || seen.has(candidate)) {
763
782
  continue;
@@ -850,7 +869,7 @@ function deriveToolActivityPresentation(input2) {
850
869
  }
851
870
  if (action === "search") {
852
871
  const rawInput = isRecord4(data?.["rawInput"]) ? data["rawInput"] : void 0;
853
- const query = asTrimmedString2(rawInput?.["query"]) ?? asTrimmedString2(rawInput?.["pattern"]) ?? asTrimmedString2(rawInput?.["searchTerm"]);
872
+ const query = asTrimmedString2(rawInput?.["query"]) ?? asTrimmedString2(rawInput?.["Query"]) ?? asTrimmedString2(rawInput?.["pattern"]) ?? asTrimmedString2(rawInput?.["Pattern"]) ?? asTrimmedString2(rawInput?.["searchTerm"]);
854
873
  return {
855
874
  summary: "Searched files",
856
875
  ...query ? { detail: query } : {}
@@ -939,7 +958,9 @@ function extractCommandFromTitle2(title) {
939
958
  }
940
959
  function extractToolCallCommand(rawInput, title) {
941
960
  if (isRecord3(rawInput)) {
942
- const directCommand = normalizeCommandValue2(rawInput["command"]);
961
+ const directCommand = normalizeCommandValue2(
962
+ rawInput["command"] ?? rawInput["CommandLine"] ?? rawInput["commandLine"]
963
+ );
943
964
  if (directCommand) {
944
965
  return directCommand;
945
966
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ycodium-ai/agent-grok",
3
- "version": "0.2.6212",
3
+ "version": "0.2.6253",
4
4
  "description": "Grok executor: grok CLI over Agent Client Protocol stdio.",
5
5
  "keywords": [
6
6
  "ycodium",
@@ -21,10 +21,10 @@
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.6212",
24
+ "ycodium-acp-executor": "0.2.6253",
25
+ "@ycodium-ai/plugin-api": "0.2.6253",
25
26
  "ycodium-credential-account": "0.0.0",
26
- "ycodium-executor-testing": "0.0.0",
27
- "ycodium-acp-executor": "0.2.6212"
27
+ "ycodium-executor-testing": "0.0.0"
28
28
  },
29
29
  "ycodium": {
30
30
  "plugin": "./dist/index.js",