lua-cli 1.3.0 → 1.3.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.
package/README.md
CHANGED
|
@@ -401,7 +401,7 @@ The Lua CLI provides a built-in User Data API that allows your tools to interact
|
|
|
401
401
|
### Basic Usage
|
|
402
402
|
|
|
403
403
|
```typescript
|
|
404
|
-
import { user } from 'lua-cli';
|
|
404
|
+
import { user } from 'lua-cli/user-data-api';
|
|
405
405
|
|
|
406
406
|
// Get user data
|
|
407
407
|
const userData = await user.data.get();
|
|
@@ -432,8 +432,8 @@ await user.data.clear();
|
|
|
432
432
|
### Using in Tools
|
|
433
433
|
|
|
434
434
|
```typescript
|
|
435
|
-
import { LuaTool } from 'lua-cli';
|
|
436
|
-
import { user } from 'lua-cli';
|
|
435
|
+
import { LuaTool } from 'lua-cli/skill';
|
|
436
|
+
import { user } from 'lua-cli/user-data-api';
|
|
437
437
|
import { z } from 'zod';
|
|
438
438
|
|
|
439
439
|
export class UserPreferencesTool extends LuaTool {
|
package/package.json
CHANGED