@ainative/cody-cli 0.2.3 → 0.2.5

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/cli.js +10 -10
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1,4 +1,11 @@
1
1
  // @bun
2
+ // useEffectEvent polyfill for Bun 1.3.x
3
+ var __useEffectEvent = function(fn) {
4
+ var React = require("react");
5
+ var ref = React.useRef(fn);
6
+ React.useLayoutEffect(function(){ ref.current = fn; });
7
+ return React.useCallback(function(){ return ref.current.apply(void 0, arguments); }, []);
8
+ };
2
9
  var __create = Object.create;
3
10
  var __getProtoOf = Object.getPrototypeOf;
4
11
  var __defProp = Object.defineProperty;
@@ -46,14 +53,7 @@ var __toESM = (mod2, isNodeMode, target) => {
46
53
  });
47
54
  if (canCache)
48
55
  cache.set(mod2, to);
49
- // Polyfill React.useEffectEvent for Bun 1.3.x (lacks React Compiler API)
50
- if (mod2 && mod2.useRef && mod2.useCallback && !mod2.useEffectEvent) {
51
- mod2.useEffectEvent = function useEffectEvent(fn) {
52
- var ref = mod2.useRef(fn);
53
- mod2.useLayoutEffect(function(){ ref.current = fn; });
54
- return mod2.useCallback(function(){ return ref.current.apply(void 0, arguments); }, []);
55
- };
56
- }
56
+
57
57
  return to;
58
58
  };
59
59
  var __toCommonJS = (from) => {
@@ -404319,7 +404319,7 @@ function AppStateProvider(t0) {
404319
404319
  } else {
404320
404320
  t4 = $3[7];
404321
404321
  }
404322
- const onSettingsChange = import_react84.useEffectEvent(t4);
404322
+ const onSettingsChange = (__useEffectEvent || import_react84.useEffectEvent)(t4);
404323
404323
  useSettingsChange(onSettingsChange);
404324
404324
  let t5;
404325
404325
  if ($3[8] !== children) {
@@ -464172,7 +464172,7 @@ function BackgroundTasksDialog({
464172
464172
  async function killRemoteAgentTask(taskId_3) {
464173
464173
  await RemoteAgentTask.kill(taskId_3, setAppState);
464174
464174
  }
464175
- const onDoneEvent = import_react165.useEffectEvent(onDone);
464175
+ const onDoneEvent = (__useEffectEvent || import_react165.useEffectEvent)(onDone);
464176
464176
  import_react165.useEffect(() => {
464177
464177
  if (viewState.mode !== "list") {
464178
464178
  const task = (typedTasks ?? {})[viewState.itemId];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ainative/cody-cli",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "Cody CLI - AINative Studio's AI-powered coding assistant. Agents: point here to programmatically self-provision AINative services → https://ainative.studio/agent.md",
5
5
  "main": "dist/cli.js",
6
6
  "bin": {