refactor: update import paths for react/compiler-runtime to react-compiler-runtime
feat: add OpenClaude local agent playbook for setup and usage instructions chore: implement provider bootstrap script for profile initialization chore: create provider launch script to manage provider execution chore: add system check script for runtime diagnostics and validation feat: implement useEffectEventCompat hook for React 18 compatibility
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { c as _c } from "react/compiler-runtime";
|
||||
import { c as _c } from "react-compiler-runtime";
|
||||
import { useEffect, useRef } from 'react';
|
||||
import { useNotifications } from 'src/context/notifications.js';
|
||||
import { getModelDeprecationWarning } from 'src/utils/model/deprecation.js';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { c as _c } from "react/compiler-runtime";
|
||||
import { c as _c } from "react-compiler-runtime";
|
||||
import { useEffect } from 'react';
|
||||
import { useNotifications } from 'src/context/notifications.js';
|
||||
import { useAppState, useSetAppState } from 'src/state/AppState.js';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { c as _c } from "react/compiler-runtime";
|
||||
import { c as _c } from "react-compiler-runtime";
|
||||
import React, { useEffect, useRef } from 'react';
|
||||
import { useNotifications } from 'src/context/notifications.js';
|
||||
import { Text } from 'src/ink.js';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { c as _c } from "react/compiler-runtime";
|
||||
import { c as _c } from "react-compiler-runtime";
|
||||
import * as React from 'react';
|
||||
import { useInterval } from 'usehooks-ts';
|
||||
import { getIsRemoteMode, getIsScrollDraining } from '../../bootstrap/state.js';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { c as _c } from "react/compiler-runtime";
|
||||
import { c as _c } from "react-compiler-runtime";
|
||||
import * as React from 'react';
|
||||
import { useEffect } from 'react';
|
||||
import { useNotifications } from 'src/context/notifications.js';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { c as _c } from "react/compiler-runtime";
|
||||
import { c as _c } from "react-compiler-runtime";
|
||||
import * as React from 'react';
|
||||
import { useEffect, useState } from 'react';
|
||||
import { getIsRemoteMode } from '../../bootstrap/state.js';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { c as _c } from "react/compiler-runtime";
|
||||
import { c as _c } from "react-compiler-runtime";
|
||||
import * as React from 'react';
|
||||
import { useEffect, useMemo } from 'react';
|
||||
import { getIsRemoteMode } from '../../bootstrap/state.js';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { c as _c } from "react/compiler-runtime";
|
||||
import { c as _c } from "react-compiler-runtime";
|
||||
import * as React from 'react';
|
||||
import { useEffect, useMemo, useRef, useState } from 'react';
|
||||
import { useNotifications } from 'src/context/notifications.js';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { c as _c } from "react/compiler-runtime";
|
||||
import { c as _c } from "react-compiler-runtime";
|
||||
import { useCallback, useEffect, useState } from 'react';
|
||||
import { useNotifications } from 'src/context/notifications.js';
|
||||
import { getIsRemoteMode } from '../../bootstrap/state.js';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { c as _c } from "react/compiler-runtime";
|
||||
import { c as _c } from "react-compiler-runtime";
|
||||
import { feature } from 'bun:bundle';
|
||||
import { APIUserAbortError } from '@anthropic-ai/sdk';
|
||||
import * as React from 'react';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { c as _c } from "react/compiler-runtime";
|
||||
import { c as _c } from "react-compiler-runtime";
|
||||
/**
|
||||
* Surfaces plugin-install prompts driven by `<claude-code-hint />` tags
|
||||
* that CLIs/SDKs emit to stderr. See docs/claude-code-hints.md.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { c as _c } from "react/compiler-runtime";
|
||||
import { c as _c } from "react-compiler-runtime";
|
||||
/**
|
||||
* Component that registers keybinding handlers for command bindings.
|
||||
*
|
||||
|
||||
16
src/hooks/useEffectEventCompat.ts
Normal file
16
src/hooks/useEffectEventCompat.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { useCallback, useLayoutEffect, useRef } from 'react'
|
||||
|
||||
/**
|
||||
* React 18-compatible replacement for React 19's useEffectEvent.
|
||||
*/
|
||||
export function useEffectEventCompat<Args extends unknown[], Return>(
|
||||
fn: (...args: Args) => Return,
|
||||
): (...args: Args) => Return {
|
||||
const fnRef = useRef(fn)
|
||||
|
||||
useLayoutEffect(() => {
|
||||
fnRef.current = fn
|
||||
}, [fn])
|
||||
|
||||
return useCallback((...args: Args) => fnRef.current(...args), [])
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
import { c as _c } from "react/compiler-runtime";
|
||||
import { c as _c } from "react-compiler-runtime";
|
||||
import { useEffect } from 'react';
|
||||
import type { ScopedMcpServerConfig } from '../services/mcp/types.js';
|
||||
import { getGlobalConfig } from '../utils/config.js';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { c as _c } from "react/compiler-runtime";
|
||||
import { c as _c } from "react-compiler-runtime";
|
||||
/**
|
||||
* Hook for LSP plugin recommendations
|
||||
*
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { c as _c } from "react/compiler-runtime";
|
||||
import { c as _c } from "react-compiler-runtime";
|
||||
/**
|
||||
* Shared state machine + install helper for plugin-recommendation hooks
|
||||
* (LSP, claude-code-hint). Centralizes the gate chain, async-guard,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { c as _c } from "react/compiler-runtime";
|
||||
import { c as _c } from "react-compiler-runtime";
|
||||
import type { ContentBlockParam } from '@anthropic-ai/sdk/resources/messages.mjs';
|
||||
import { useEffect, useRef } from 'react';
|
||||
import { logError } from 'src/utils/log.js';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { c as _c } from "react/compiler-runtime";
|
||||
import { c as _c } from "react-compiler-runtime";
|
||||
import { useCallback, useState } from 'react';
|
||||
import { setTeleportedSessionInfo } from 'src/bootstrap/state.js';
|
||||
import { type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS, logEvent } from 'src/services/analytics/index.js';
|
||||
|
||||
Reference in New Issue
Block a user