@agentconnect/cli 0.1.6 → 0.1.7

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 +0 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2762,11 +2762,6 @@ function extractErrorMessage(ev) {
2762
2762
  if (typeof ev.result === "string" && ev.type === "result") return ev.result;
2763
2763
  return null;
2764
2764
  }
2765
- function normalizeCursorEvent(raw) {
2766
- if (!raw || typeof raw !== "object") return { type: "unknown" };
2767
- const type = typeof raw.type === "string" ? raw.type : "unknown";
2768
- return { ...raw, type };
2769
- }
2770
2765
  function runCursorPrompt({
2771
2766
  prompt,
2772
2767
  resumeSessionId,
@@ -2858,7 +2853,6 @@ function runCursorPrompt({
2858
2853
  emit({ type: "final", text });
2859
2854
  };
2860
2855
  const handleEvent = (ev) => {
2861
- const normalized = normalizeCursorEvent(ev);
2862
2856
  if (ev?.type === "system" && ev?.subtype === "init") {
2863
2857
  debugLog("Cursor", "init", {
2864
2858
  apiKeySource: ev.apiKeySource || null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentconnect/cli",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "homepage": "https://github.com/rayzhudev/agent-connect",