@fragno-dev/chatno 0.0.19 → 0.0.22
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/CHANGELOG.md +50 -0
- package/package.json +26 -48
- package/src/client/react.ts +2 -1
- package/src/client/solid.ts +2 -1
- package/src/client/svelte.ts +2 -1
- package/src/client/vanilla.ts +2 -1
- package/src/client/vue.ts +2 -1
- package/src/index.test.ts +2 -0
- package/src/index.ts +7 -5
- package/src/server/chatno-api.ts +4 -2
- package/tsdown.config.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,55 @@
|
|
|
1
1
|
# @fragno-dev/chatno
|
|
2
2
|
|
|
3
|
+
## 0.0.22
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 0020e39: fix: align nanostores dependencies on version 1.2 across Fragno packages
|
|
8
|
+
- Updated dependencies [0020e39]
|
|
9
|
+
- @fragno-dev/core@0.2.2
|
|
10
|
+
|
|
11
|
+
## 0.0.21
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 4d141f8: fix: remove development exports from published packages
|
|
16
|
+
- Updated dependencies [3e2ff94]
|
|
17
|
+
- Updated dependencies [f34d7d7]
|
|
18
|
+
- Updated dependencies [4d141f8]
|
|
19
|
+
- Updated dependencies [c8841b5]
|
|
20
|
+
- Updated dependencies [83f6223]
|
|
21
|
+
- Updated dependencies [567c3b3]
|
|
22
|
+
- Updated dependencies [8a2da9d]
|
|
23
|
+
- Updated dependencies [93fa469]
|
|
24
|
+
- Updated dependencies [b3ad7eb]
|
|
25
|
+
- Updated dependencies [9eeba53]
|
|
26
|
+
- Updated dependencies [2ae432c]
|
|
27
|
+
- Updated dependencies [9f87189]
|
|
28
|
+
- Updated dependencies [0f9b7ef]
|
|
29
|
+
- Updated dependencies [f4aedad]
|
|
30
|
+
- Updated dependencies [f042c9d]
|
|
31
|
+
- Updated dependencies [7bda0b2]
|
|
32
|
+
- Updated dependencies [b84a3d0]
|
|
33
|
+
- @fragno-dev/core@0.2.1
|
|
34
|
+
|
|
35
|
+
## 0.0.20
|
|
36
|
+
|
|
37
|
+
### Patch Changes
|
|
38
|
+
|
|
39
|
+
- Updated dependencies [f569301]
|
|
40
|
+
- Updated dependencies [20a98f8]
|
|
41
|
+
- Updated dependencies [7e1eb47]
|
|
42
|
+
- Updated dependencies [301e2f8]
|
|
43
|
+
- Updated dependencies [5f6f90e]
|
|
44
|
+
- Updated dependencies [2eafef4]
|
|
45
|
+
- Updated dependencies [7d7b2b9]
|
|
46
|
+
- Updated dependencies [a79e90d]
|
|
47
|
+
- Updated dependencies [7c60341]
|
|
48
|
+
- Updated dependencies [afb06a4]
|
|
49
|
+
- Updated dependencies [53e5f97]
|
|
50
|
+
- Updated dependencies [c5fd7b3]
|
|
51
|
+
- @fragno-dev/core@0.2.0
|
|
52
|
+
|
|
3
53
|
## 0.0.19
|
|
4
54
|
|
|
5
55
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,88 +1,66 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fragno-dev/chatno",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.22",
|
|
4
|
+
"homepage": "https://fragno.dev",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/rejot-dev/fragno.git",
|
|
9
|
+
"directory": "example-fragments/chatno"
|
|
10
|
+
},
|
|
11
|
+
"type": "module",
|
|
12
|
+
"main": "./dist/node/index.js",
|
|
13
|
+
"module": "./dist/node/index.js",
|
|
14
|
+
"types": "./dist/node/index.d.ts",
|
|
4
15
|
"exports": {
|
|
5
16
|
".": {
|
|
6
|
-
"development": {
|
|
7
|
-
"default": "./src/index.ts"
|
|
8
|
-
},
|
|
9
17
|
"types": "./dist/index.d.ts",
|
|
10
18
|
"default": "./dist/node/index.js"
|
|
11
19
|
},
|
|
12
20
|
"./react": {
|
|
13
|
-
"development": {
|
|
14
|
-
"browser": "./dist/browser/client/react.js",
|
|
15
|
-
"default": "./src/client/react.ts"
|
|
16
|
-
},
|
|
17
21
|
"types": "./dist/browser/client/react.d.ts",
|
|
18
22
|
"default": "./dist/browser/client/react.js"
|
|
19
23
|
},
|
|
20
24
|
"./vue": {
|
|
21
|
-
"development": {
|
|
22
|
-
"browser": "./dist/browser/client/vue.js",
|
|
23
|
-
"default": "./src/client/vue.ts"
|
|
24
|
-
},
|
|
25
25
|
"types": "./dist/browser/client/vue.d.ts",
|
|
26
26
|
"default": "./dist/browser/client/vue.js"
|
|
27
27
|
},
|
|
28
28
|
"./svelte": {
|
|
29
|
-
"development": {
|
|
30
|
-
"browser": "./dist/browser/client/svelte.js",
|
|
31
|
-
"default": "./src/client/svelte.ts"
|
|
32
|
-
},
|
|
33
29
|
"types": "./dist/browser/client/svelte.d.ts",
|
|
34
30
|
"default": "./dist/browser/client/svelte.js"
|
|
35
31
|
},
|
|
36
32
|
"./solid": {
|
|
37
|
-
"development": {
|
|
38
|
-
"browser": "./dist/browser/client/solid.js",
|
|
39
|
-
"default": "./src/client/solid.ts"
|
|
40
|
-
},
|
|
41
33
|
"types": "./dist/browser/client/solid.d.ts",
|
|
42
34
|
"default": "./dist/browser/client/solid.js"
|
|
43
35
|
},
|
|
44
36
|
"./vanilla": {
|
|
45
|
-
"development": {
|
|
46
|
-
"browser": "./dist/browser/client/vanilla.js",
|
|
47
|
-
"default": "./src/client/vanilla.ts"
|
|
48
|
-
},
|
|
49
37
|
"types": "./dist/browser/client/vanilla.d.ts",
|
|
50
38
|
"default": "./dist/browser/client/vanilla.js"
|
|
51
39
|
}
|
|
52
40
|
},
|
|
53
|
-
"main": "./dist/node/index.js",
|
|
54
|
-
"module": "./dist/node/index.js",
|
|
55
|
-
"types": "./dist/node/index.d.ts",
|
|
56
|
-
"type": "module",
|
|
57
41
|
"dependencies": {
|
|
58
|
-
"nanostores": "^1.0
|
|
59
|
-
"openai": "^5.
|
|
60
|
-
"zod": "^4.
|
|
61
|
-
"@fragno-dev/core": "0.
|
|
42
|
+
"nanostores": "^1.2.0",
|
|
43
|
+
"openai": "^5.23.2",
|
|
44
|
+
"zod": "^4.3.5",
|
|
45
|
+
"@fragno-dev/core": "0.2.2"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@types/node": "^22.19.7",
|
|
49
|
+
"vitest": "^4.1.4",
|
|
50
|
+
"@fragno-dev/unplugin-fragno": "0.0.9",
|
|
51
|
+
"@fragno-private/typescript-config": "0.0.1"
|
|
62
52
|
},
|
|
63
53
|
"peerDependencies": {
|
|
64
|
-
"typescript": "
|
|
54
|
+
"@typescript/native-preview": "7.0.0-dev.20260414.1",
|
|
65
55
|
"react": ">=18.0.0",
|
|
56
|
+
"solid-js": ">=1.0.0",
|
|
66
57
|
"svelte": ">=4.0.0",
|
|
67
|
-
"vue": ">=3.0.0"
|
|
68
|
-
"solid-js": ">=1.0.0"
|
|
58
|
+
"vue": ">=3.0.0"
|
|
69
59
|
},
|
|
70
|
-
"devDependencies": {
|
|
71
|
-
"@types/node": "^22",
|
|
72
|
-
"@fragno-private/typescript-config": "0.0.1",
|
|
73
|
-
"@fragno-dev/unplugin-fragno": "0.0.7"
|
|
74
|
-
},
|
|
75
|
-
"repository": {
|
|
76
|
-
"type": "git",
|
|
77
|
-
"url": "https://github.com/rejot-dev/fragno.git",
|
|
78
|
-
"directory": "example-fragments/chatno"
|
|
79
|
-
},
|
|
80
|
-
"homepage": "https://fragno.dev",
|
|
81
|
-
"license": "MIT",
|
|
82
60
|
"scripts": {
|
|
83
61
|
"build": "tsdown",
|
|
84
62
|
"build:watch": "tsdown --watch",
|
|
85
|
-
"types:check": "
|
|
63
|
+
"types:check": "tsgo --noEmit",
|
|
86
64
|
"test": "vitest run",
|
|
87
65
|
"test:watch": "vitest --watch"
|
|
88
66
|
}
|
package/src/client/react.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { FragnoPublicClientConfig } from "@fragno-dev/core/client";
|
|
1
2
|
import { useFragno } from "@fragno-dev/core/react";
|
|
3
|
+
|
|
2
4
|
import { createChatnoClients } from "..";
|
|
3
|
-
import type { FragnoPublicClientConfig } from "@fragno-dev/core/client";
|
|
4
5
|
|
|
5
6
|
export function createChatnoClient(config: FragnoPublicClientConfig = {}) {
|
|
6
7
|
return useFragno(createChatnoClients(config));
|
package/src/client/solid.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { FragnoPublicClientConfig } from "@fragno-dev/core/client";
|
|
1
2
|
import { useFragno } from "@fragno-dev/core/solid";
|
|
3
|
+
|
|
2
4
|
import { createChatnoClients } from "..";
|
|
3
|
-
import type { FragnoPublicClientConfig } from "@fragno-dev/core/client";
|
|
4
5
|
|
|
5
6
|
export function createChatnoClient(config: FragnoPublicClientConfig = {}) {
|
|
6
7
|
return useFragno(createChatnoClients(config));
|
package/src/client/svelte.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { FragnoPublicClientConfig } from "@fragno-dev/core/client";
|
|
1
2
|
import { useFragno } from "@fragno-dev/core/svelte";
|
|
3
|
+
|
|
2
4
|
import { createChatnoClients } from "..";
|
|
3
|
-
import type { FragnoPublicClientConfig } from "@fragno-dev/core/client";
|
|
4
5
|
|
|
5
6
|
export function createChatnoClient(config: FragnoPublicClientConfig = {}) {
|
|
6
7
|
return useFragno(createChatnoClients(config));
|
package/src/client/vanilla.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { FragnoPublicClientConfig } from "@fragno-dev/core/client";
|
|
1
2
|
import { useFragno } from "@fragno-dev/core/vanilla";
|
|
3
|
+
|
|
2
4
|
import { createChatnoClients } from "..";
|
|
3
|
-
import type { FragnoPublicClientConfig } from "@fragno-dev/core/client";
|
|
4
5
|
|
|
5
6
|
export function createChatnoClient(config: FragnoPublicClientConfig = {}) {
|
|
6
7
|
return useFragno(createChatnoClients(config));
|
package/src/client/vue.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { FragnoPublicClientConfig } from "@fragno-dev/core/client";
|
|
1
2
|
import { useFragno } from "@fragno-dev/core/vue";
|
|
3
|
+
|
|
2
4
|
import { createChatnoClients } from "..";
|
|
3
|
-
import type { FragnoPublicClientConfig } from "@fragno-dev/core/client";
|
|
4
5
|
|
|
5
6
|
export function createChatnoClient(config: FragnoPublicClientConfig = {}) {
|
|
6
7
|
return useFragno(createChatnoClients(config));
|
package/src/index.test.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
|
+
import type { FragnoPublicClientConfig } from "@fragno-dev/core/client";
|
|
2
|
+
import { createClientBuilder } from "@fragno-dev/core/client";
|
|
3
|
+
import { computed } from "nanostores";
|
|
4
|
+
import OpenAI from "openai";
|
|
5
|
+
import { z } from "zod";
|
|
6
|
+
|
|
1
7
|
import {
|
|
2
8
|
defineFragment,
|
|
3
9
|
instantiate,
|
|
4
10
|
defineRoutes,
|
|
5
11
|
type FragnoPublicConfig,
|
|
6
12
|
} from "@fragno-dev/core";
|
|
7
|
-
|
|
8
|
-
import { createClientBuilder } from "@fragno-dev/core/client";
|
|
9
|
-
import OpenAI from "openai";
|
|
10
|
-
import { z } from "zod";
|
|
13
|
+
|
|
11
14
|
import { chatRouteFactory } from "./server/chatno-api";
|
|
12
|
-
import { computed } from "nanostores";
|
|
13
15
|
|
|
14
16
|
export interface ChatnoServerConfig {
|
|
15
17
|
openaiApiKey: string;
|
package/src/server/chatno-api.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
1
|
import type {
|
|
3
2
|
EasyInputMessage,
|
|
4
3
|
ResponseFunctionToolCall,
|
|
5
4
|
ResponseInputItem,
|
|
6
5
|
} from "openai/resources/responses/responses.mjs";
|
|
7
|
-
import
|
|
6
|
+
import { z } from "zod";
|
|
7
|
+
|
|
8
8
|
import { defineRoutes } from "@fragno-dev/core";
|
|
9
9
|
|
|
10
|
+
import type { chatnoDefinition } from "../index";
|
|
11
|
+
|
|
10
12
|
export const ChatMessageSchema = z.object({
|
|
11
13
|
type: z.literal("chat"),
|
|
12
14
|
id: z.string(),
|