Commit Graph

17 Commits

Author SHA1 Message Date
Alem Tuzlak ff2093102c chore(lint): add new oxlint rules and auto-fix violations
Enable stricter oxlint rules for better code health:
- typescript/consistent-type-imports: enforce `import type` for type-only imports
- typescript/no-import-type-side-effects: prefer top-level type imports
- import/consistent-type-specifier-style: consistent type specifier placement
- typescript/no-unnecessary-type-assertion: bump to error
- react/self-closing-comp: enforce self-closing JSX components
- unicorn/prefer-optional-catch-binding: drop unused catch params
- eslint/no-useless-computed-key: simplify object keys
- unicorn/prefer-string-slice: prefer .slice() over .substring()
- unicorn/prefer-array-flat-map: prefer .flatMap() over .map().flat()

All existing violations auto-fixed via oxlint --fix.
2026-04-10 19:29:32 +02:00
Tyler Slaton 96885b5959 refactor: consolidate V1/V2 packages into flat @copilotkit/* structure
Flatten all packages from packages/v1/* and packages/v2/* into packages/* —
every package now lives directly under the @copilotkit/ scope with no v1/v2
subdirectories.

- Move all v1 packages (react-core, react-ui, runtime, shared, etc.) from
  packages/v1/* to packages/*
- Absorb v2 react code into packages/react-core/src/v2/ (exported via /v2 subpath)
- Absorb v2 agent code into packages/runtime/src/agent/ (exported via /v2 subpath)
- Move v2 packages (core, angular, demo-agents, etc.) to packages/*
- Replace all @copilotkitnext/* imports with @copilotkit/* equivalents
- Keep @copilotkitnext/angular as the sole exception (angular remains on next)
- Update CI workflows, renovate config, release scripts for flat structure
- No public API surface changes — all exports fields are preserved

Co-authored-by: Alem Tuzlak <t.zlak@hotmail.com>
Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
2026-03-28 16:45:10 -07:00
Atai Barkai 5f3727dde8 move to CopilotKit subdirectory
.
2023-08-22 23:09:55 -07:00
Atai Barkai f85e7b220b add history support 2023-08-20 04:27:38 -07:00
Atai Barkai 3d4abe2c2d updating text based on external state 2023-08-16 15:34:09 -07:00
Atai Barkai ee9e850c19 call props.onChange when text changes 2023-08-16 14:24:20 -07:00
Atai Barkai 3820183b12 minor refactors 2023-08-16 11:40:25 -07:00
Atai Barkai 81764de583 autosuggestions config type 2023-08-14 11:34:17 -07:00
Atai Barkai 73595d30d4 minor file renames 2023-08-13 22:15:16 -07:00
Atai Barkai c90fb5278c file refactors: split into more files 2023-08-13 22:15:16 -07:00
Atai Barkai bf812fac0e when select an actual (non-collapsed) range, suggestions disappear 2023-08-13 22:15:16 -07:00
Atai Barkai b19b80475c suggestions get added and removed correctly as used edits document
.
2023-08-13 22:15:16 -07:00
Atai Barkai f9ba1cf942 calculate the text before/after the cursor only AFTER graduating from debounce 2023-08-13 22:15:16 -07:00
Atai Barkai 842b34349d move debouncer to its own file 2023-08-13 22:15:16 -07:00
Atai Barkai 1cef62903b ignore normalizing empty text when figuring out text contents of text field
.
2023-08-11 14:02:36 -07:00
Atai Barkai fb5e5f32cc simpe autocomplete impl 2023-08-08 22:12:01 -07:00
Atai Barkai 4cceaacaed react-textarea 2023-08-02 15:20:12 -07:00