@livestore/cli 0.0.0-snapshot-2ac5fd340c97c9e07fe4c5dc6d31d5132aa6557c.5 → 0.0.0-snapshot-8ff176626cdedb77879fa9201756938933187d3c
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/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +13 -13
- package/dist/test-tool.d.ts +0 -2
- package/dist/test-tool.d.ts.map +0 -1
- package/dist/test-tool.js +0 -57
- package/dist/test-tool.js.map +0 -1
package/package.json
CHANGED
@@ -1,32 +1,32 @@
|
|
1
1
|
{
|
2
2
|
"name": "@livestore/cli",
|
3
|
-
"version": "0.0.0-snapshot-
|
3
|
+
"version": "0.0.0-snapshot-8ff176626cdedb77879fa9201756938933187d3c",
|
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": "
|
22
|
-
"@livestore/
|
23
|
-
"@livestore/
|
24
|
-
"@livestore/utils-dev": "0.0.0-snapshot-
|
13
|
+
"@effect/ai-openai": "0.29.0",
|
14
|
+
"@livestore/common": "0.0.0-snapshot-8ff176626cdedb77879fa9201756938933187d3c",
|
15
|
+
"@livestore/utils": "0.0.0-snapshot-8ff176626cdedb77879fa9201756938933187d3c",
|
16
|
+
"@livestore/utils-dev": "0.0.0-snapshot-8ff176626cdedb77879fa9201756938933187d3c"
|
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"
|
package/dist/test-tool.d.ts
DELETED
package/dist/test-tool.d.ts.map
DELETED
@@ -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
|
package/dist/test-tool.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"test-tool.js","sourceRoot":"","sources":["../src/test-tool.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAEnE,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAA;AAErC,IAAI,CAAC;IACH,iCAAiC;IACjC,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,WAAW,EAAE;QACrC,WAAW,EAAE,aAAa;KAC3B,CAAC,CAAA;IACF,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,KAAK,CAAC,IAAI,CAAC,CAAA;AACnD,CAAC;AAAC,OAAO,KAAK,EAAE,CAAC;IACf,OAAO,CAAC,KAAK,CAAC,uBAAuB,EAAE,KAAK,CAAC,CAAA;AAC/C,CAAC;AAED,IAAI,CAAC;IACH,+BAA+B;IAC/B,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,kBAAkB,EAAE;QAC5C,WAAW,EAAE,yBAAyB;QACtC,UAAU,EAAE;YACV,OAAO,EAAE,MAAM,CAAC,MAAM;SACvB;KACF,CAAC,CAAA;IACF,OAAO,CAAC,GAAG,CAA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