@hasna/conversations 0.2.51 → 0.2.52
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/LICENSE +15 -5
- package/README.md +10 -18
- package/bin/hook.js +119 -9446
- package/bin/index.js +9021 -15460
- package/bin/mcp.js +6250 -12753
- package/dist/cli/cloud.d.ts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +5686 -9573
- package/dist/lib/cloud-sync.d.ts +68 -0
- package/dist/lib/db.d.ts +19 -1
- package/dist/lib/remote-storage.d.ts +10 -0
- package/dist/mcp/index.d.ts +0 -2
- package/dist/mcp/tools/cloud.d.ts +2 -5
- package/package.json +2 -2
- package/dist/mcp/http.d.ts +0 -17
- package/dist/mcp/http.test.d.ts +0 -1
package/LICENSE
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
Apache License
|
|
3
2
|
Version 2.0, January 2004
|
|
4
3
|
http://www.apache.org/licenses/
|
|
@@ -49,7 +48,7 @@
|
|
|
49
48
|
"Contribution" shall mean any work of authorship, including
|
|
50
49
|
the original version of the Work and any modifications or additions
|
|
51
50
|
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
-
submitted to
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
52
|
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
53
|
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
54
|
means any form of electronic, verbal, or written communication sent
|
|
@@ -61,7 +60,7 @@
|
|
|
61
60
|
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
61
|
|
|
63
62
|
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
-
on behalf of whom a Contribution has been received by
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
64
|
subsequently incorporated within the Work.
|
|
66
65
|
|
|
67
66
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
@@ -107,7 +106,7 @@
|
|
|
107
106
|
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
107
|
distribution, then any Derivative Works that You distribute must
|
|
109
108
|
include a readable copy of the attribution notices contained
|
|
110
|
-
within such NOTICE file, excluding
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
110
|
pertain to any part of the Derivative Works, in at least one
|
|
112
111
|
of the following places: within a NOTICE text file distributed
|
|
113
112
|
as part of the Derivative Works; within the Source form or
|
|
@@ -176,7 +175,18 @@
|
|
|
176
175
|
|
|
177
176
|
END OF TERMS AND CONDITIONS
|
|
178
177
|
|
|
179
|
-
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
180
190
|
|
|
181
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
182
192
|
you may not use this file except in compliance with the License.
|
package/README.md
CHANGED
|
@@ -30,31 +30,23 @@ conversations-hook --help
|
|
|
30
30
|
conversations-mcp
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
Long-lived Streamable HTTP transport (stateless, bind `127.0.0.1` only):
|
|
36
|
-
|
|
37
|
-
```bash
|
|
38
|
-
conversations-mcp --http # default port 8856
|
|
39
|
-
conversations-mcp --http --port 8856
|
|
40
|
-
MCP_HTTP=1 conversations-mcp
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
- Health: `GET http://127.0.0.1:8856/health`
|
|
44
|
-
- MCP: `http://127.0.0.1:8856/mcp`
|
|
45
|
-
|
|
46
|
-
The dashboard server also exposes `/health` and `/mcp` when running.
|
|
33
|
+
1 tools available.
|
|
47
34
|
|
|
48
35
|
## Cloud Sync
|
|
49
36
|
|
|
50
|
-
This package supports cloud sync
|
|
37
|
+
This package supports optional cloud sync to a PostgreSQL database:
|
|
51
38
|
|
|
52
39
|
```bash
|
|
53
|
-
|
|
54
|
-
cloud
|
|
55
|
-
cloud
|
|
40
|
+
export HASNA_CONVERSATIONS_CLOUD_DATABASE_URL="postgres://..."
|
|
41
|
+
conversations cloud status
|
|
42
|
+
conversations cloud push
|
|
43
|
+
conversations cloud pull
|
|
56
44
|
```
|
|
57
45
|
|
|
46
|
+
The cloud URL can also be provided as `OPEN_CONVERSATIONS_CLOUD_DATABASE_URL`
|
|
47
|
+
or `CONVERSATIONS_CLOUD_DATABASE_URL`. By default, sync only includes
|
|
48
|
+
text-key/global tables to avoid local integer ID collisions across machines.
|
|
49
|
+
|
|
58
50
|
## Data Directory
|
|
59
51
|
|
|
60
52
|
Data is stored in `~/.hasna/conversations/`.
|