@livestore/cli 0.0.0-snapshot-2ac5fd340c97c9e07fe4c5dc6d31d5132aa6557c.5 → 0.0.0-snapshot-212b77d181bbe4b3260c3018efebe10bfc79d37a

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/package.json CHANGED
@@ -1,32 +1,32 @@
1
1
  {
2
2
  "name": "@livestore/cli",
3
- "version": "0.0.0-snapshot-2ac5fd340c97c9e07fe4c5dc6d31d5132aa6557c.5",
3
+ "version": "0.0.0-snapshot-212b77d181bbe4b3260c3018efebe10bfc79d37a",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
- "files": [
7
- "package.json",
8
- "src",
9
- "dist"
10
- ],
11
6
  "exports": {
12
7
  ".": "./dist/mod.js"
13
8
  },
14
9
  "bin": {
15
10
  "livestore": "./dist/bin.js"
16
11
  },
17
- "publishConfig": {
18
- "access": "public"
19
- },
20
12
  "dependencies": {
21
- "@effect/ai-openai": "^0.29.0",
22
- "@livestore/utils": "0.0.0-snapshot-2ac5fd340c97c9e07fe4c5dc6d31d5132aa6557c.5",
23
- "@livestore/common": "0.0.0-snapshot-2ac5fd340c97c9e07fe4c5dc6d31d5132aa6557c.5",
24
- "@livestore/utils-dev": "0.0.0-snapshot-2ac5fd340c97c9e07fe4c5dc6d31d5132aa6557c.5"
13
+ "@effect/ai-openai": "0.29.0",
14
+ "@livestore/common": "0.0.0-snapshot-212b77d181bbe4b3260c3018efebe10bfc79d37a",
15
+ "@livestore/utils": "0.0.0-snapshot-212b77d181bbe4b3260c3018efebe10bfc79d37a",
16
+ "@livestore/utils-dev": "0.0.0-snapshot-212b77d181bbe4b3260c3018efebe10bfc79d37a"
25
17
  },
26
18
  "devDependencies": {
27
19
  "@types/node": "24.2.0",
28
20
  "typescript": "^5.9.2"
29
21
  },
22
+ "files": [
23
+ "package.json",
24
+ "src",
25
+ "dist"
26
+ ],
27
+ "publishConfig": {
28
+ "access": "public"
29
+ },
30
30
  "scripts": {
31
31
  "build": "tsc",
32
32
  "dev": "bun src/bin.ts"
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=test-tool.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"test-tool.d.ts","sourceRoot":"","sources":["../src/test-tool.ts"],"names":[],"mappings":""}
package/dist/test-tool.js DELETED
@@ -1,57 +0,0 @@
1
- // Test file to diagnose AiTool.make issue
2
- import { AiTool, AiToolkit, Schema } from '@livestore/utils/effect';
3
- console.log('Testing AiTool.make...');
4
- try {
5
- // Test 1: Simplest possible tool
6
- const tool1 = AiTool.make("test_tool", {
7
- description: "A test tool",
8
- });
9
- console.log('✅ Simple tool created:', tool1.name);
10
- }
11
- catch (error) {
12
- console.error('❌ Simple tool failed:', error);
13
- }
14
- try {
15
- // Test 2: Tool with parameters
16
- const tool2 = AiTool.make("test_with_params", {
17
- description: "A test tool with params",
18
- parameters: {
19
- message: Schema.String
20
- }
21
- });
22
- console.log('✅ Tool with params created:', tool2.name);
23
- }
24
- catch (error) {
25
- console.error('❌ Tool with params failed:', error);
26
- }
27
- try {
28
- // Test 3: Tool with annotated parameters (Tim Smart's style)
29
- const tool3 = AiTool.make("test_annotated", {
30
- description: "A test tool with annotated params",
31
- parameters: {
32
- message: Schema.String.annotations({
33
- description: "The message to process"
34
- })
35
- }
36
- });
37
- console.log('✅ Tool with annotated params created:', tool3.name);
38
- }
39
- catch (error) {
40
- console.error('❌ Tool with annotated params failed:', error);
41
- }
42
- try {
43
- // Test 4: Create a toolkit
44
- const tool = AiTool.make("toolkit_tool", {
45
- description: "A tool for toolkit",
46
- parameters: {
47
- input: Schema.String
48
- }
49
- });
50
- const toolkit = AiToolkit.make([tool]);
51
- console.log('✅ Toolkit created');
52
- }
53
- catch (error) {
54
- console.error('❌ Toolkit failed:', error);
55
- }
56
- console.log('\nAll tests completed.');
57
- //# sourceMappingURL=test-tool.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"test-tool.js","sourceRoot":"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