@ainative/cody-cli 0.2.2 → 0.2.3
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.
- package/dist/cli.js +8 -13
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1,17 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
// Polyfill React.useEffectEvent for Bun 1.3.x compatibility
|
|
3
|
-
(function(){
|
|
4
|
-
try {
|
|
5
|
-
var React = require("react");
|
|
6
|
-
if (React && typeof React.useEffectEvent !== "function") {
|
|
7
|
-
React.useEffectEvent = function useEffectEvent(fn) {
|
|
8
|
-
var ref = React.useRef(fn);
|
|
9
|
-
React.useLayoutEffect(function(){ ref.current = fn; });
|
|
10
|
-
return React.useCallback(function(){ return ref.current.apply(void 0, arguments); }, []);
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
} catch(e) {}
|
|
14
|
-
})();
|
|
15
2
|
var __create = Object.create;
|
|
16
3
|
var __getProtoOf = Object.getPrototypeOf;
|
|
17
4
|
var __defProp = Object.defineProperty;
|
|
@@ -59,6 +46,14 @@ var __toESM = (mod2, isNodeMode, target) => {
|
|
|
59
46
|
});
|
|
60
47
|
if (canCache)
|
|
61
48
|
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
|
+
}
|
|
62
57
|
return to;
|
|
63
58
|
};
|
|
64
59
|
var __toCommonJS = (from) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ainative/cody-cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
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": {
|