@ainative/cody-cli 0.2.1 → 0.2.2

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 +13 -20
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1,4 +1,17 @@
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
+ })();
2
15
  var __create = Object.create;
3
16
  var __getProtoOf = Object.getPrototypeOf;
4
17
  var __defProp = Object.defineProperty;
@@ -157401,26 +157414,6 @@ var require_react = __commonJS((exports, module) => {
157401
157414
  // node_modules/react/cjs/react-compiler-runtime.development.js
157402
157415
  var require_react_compiler_runtime_development = __commonJS((exports) => {
157403
157416
 
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
157417
  var react = __toESM(require_react());
157425
157418
  (function() {
157426
157419
  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.1",
3
+ "version": "0.2.2",
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": {