@lotics/cli 0.95.0 → 0.95.1

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/src/cli.js +5 -7
  2. package/package.json +1 -1
package/dist/src/cli.js CHANGED
@@ -45377,8 +45377,9 @@ function buildStarterTemplate(args) {
45377
45377
  "react-native-svg": "^15.0.0",
45378
45378
  "react-native-web": "^0.21.0",
45379
45379
  // In-app routing for the scaffolded list→detail example. The app owns
45380
- // its routing; the SDK's `isEmbedded()` picks memory vs browser history.
45381
- "react-router-dom": "^7.0.0"
45380
+ // its routing; the SDK's `isEmbedded()` picks memory vs browser history. `react-router` is the
45381
+ // canonical package (react-router-dom is a shim over it).
45382
+ "react-router": "^8.3.0"
45382
45383
  },
45383
45384
  devDependencies: {
45384
45385
  "@testing-library/react": "^16.1.0",
@@ -45619,12 +45620,9 @@ export default defineConfig({
45619
45620
  // react-router hooks and the Router context never matches
45620
45621
  // ("useNavigate() may be used only in the context of a <Router>").
45621
45622
  "@lotics/app-sdk/router",
45622
- // react-router-dom (App's router) also ships compiled dist JS \u2014 pin it
45623
+ // react-router (App's router) also ships compiled dist JS \u2014 pin it
45623
45624
  // into the shared chunk so its hooks don't split the react instance
45624
45625
  // ("Invalid hook call") when a test renders the routed App tree.
45625
- "react-router-dom",
45626
- // v7: react-router-dom is a thin wrapper \u2014 the actual context
45627
- // lives in react-router; both must ride the shared chunk.
45628
45626
  "react-router",
45629
45627
  ],
45630
45628
  esbuildOptions: {
@@ -45708,7 +45706,7 @@ mount(
45708
45706
  // A single-screen app can delete the router and render one Screen directly.
45709
45707
  content: `import type { ReactNode } from "react";
45710
45708
  import { View } from "react-native";
45711
- import { useNavigate, useParams } from "react-router-dom";
45709
+ import { useNavigate, useParams } from "react-router";
45712
45710
  import { AppRouter } from "@lotics/app-sdk/router";
45713
45711
  import { useAiContext } from "@lotics/app-sdk";
45714
45712
  import { Card } from "@lotics/ui/card";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lotics/cli",
3
- "version": "0.95.0",
3
+ "version": "0.95.1",
4
4
  "description": "Lotics SDK and CLI for AI agents",
5
5
  "type": "module",
6
6
  "bin": {