@ainative/cody-cli 0.2.1 → 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 -20
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -46,6 +46,14 @@ var __toESM = (mod2, isNodeMode, target) => {
|
|
|
46
46
|
});
|
|
47
47
|
if (canCache)
|
|
48
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
|
+
}
|
|
49
57
|
return to;
|
|
50
58
|
};
|
|
51
59
|
var __toCommonJS = (from) => {
|
|
@@ -157401,26 +157409,6 @@ var require_react = __commonJS((exports, module) => {
|
|
|
157401
157409
|
// node_modules/react/cjs/react-compiler-runtime.development.js
|
|
157402
157410
|
var require_react_compiler_runtime_development = __commonJS((exports) => {
|
|
157403
157411
|
|
|
157404
|
-
// Polyfill useEffectEvent for Bun runtime compatibility (React Compiler API)
|
|
157405
|
-
(function() {
|
|
157406
|
-
var _origRequireReact = require_react;
|
|
157407
|
-
require_react = function() {
|
|
157408
|
-
var mod = _origRequireReact.apply(this, arguments);
|
|
157409
|
-
if (mod && mod.exports && !mod.exports.useEffectEvent) {
|
|
157410
|
-
var React = mod.exports;
|
|
157411
|
-
React.useEffectEvent = function useEffectEvent(fn) {
|
|
157412
|
-
var ref = React.useRef(fn);
|
|
157413
|
-
ref.current = fn;
|
|
157414
|
-
return React.useCallback(function() {
|
|
157415
|
-
return ref.current.apply(this, arguments);
|
|
157416
|
-
}, []);
|
|
157417
|
-
};
|
|
157418
|
-
}
|
|
157419
|
-
return mod;
|
|
157420
|
-
};
|
|
157421
|
-
// Copy __commonJS metadata
|
|
157422
|
-
if (_origRequireReact.__esModule) require_react.__esModule = true;
|
|
157423
|
-
})();
|
|
157424
157412
|
var react = __toESM(require_react());
|
|
157425
157413
|
(function() {
|
|
157426
157414
|
var ReactSharedInternals = react.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
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": {
|