@hasna/conversations 0.2.52 → 0.2.54

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 CHANGED
@@ -1,3 +1,4 @@
1
+
1
2
  Apache License
2
3
  Version 2.0, January 2004
3
4
  http://www.apache.org/licenses/
@@ -48,7 +49,7 @@
48
49
  "Contribution" shall mean any work of authorship, including
49
50
  the original version of the Work and any modifications or additions
50
51
  to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
+ submitted to the Licensor for inclusion in the Work by the copyright owner
52
53
  or by an individual or Legal Entity authorized to submit on behalf of
53
54
  the copyright owner. For the purposes of this definition, "submitted"
54
55
  means any form of electronic, verbal, or written communication sent
@@ -60,7 +61,7 @@
60
61
  designated in writing by the copyright owner as "Not a Contribution."
61
62
 
62
63
  "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
+ on behalf of whom a Contribution has been received by the Licensor and
64
65
  subsequently incorporated within the Work.
65
66
 
66
67
  2. Grant of Copyright License. Subject to the terms and conditions of
@@ -106,7 +107,7 @@
106
107
  (d) If the Work includes a "NOTICE" text file as part of its
107
108
  distribution, then any Derivative Works that You distribute must
108
109
  include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
+ within such NOTICE file, excluding any notices that do not
110
111
  pertain to any part of the Derivative Works, in at least one
111
112
  of the following places: within a NOTICE text file distributed
112
113
  as part of the Derivative Works; within the Source form or
@@ -175,18 +176,7 @@
175
176
 
176
177
  END OF TERMS AND CONDITIONS
177
178
 
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]
179
+ Copyright 2026 Hasna, Inc.
190
180
 
191
181
  Licensed under the Apache License, Version 2.0 (the "License");
192
182
  you may not use this file except in compliance with the License.
package/README.md CHANGED
@@ -30,23 +30,31 @@ conversations-hook --help
30
30
  conversations-mcp
31
31
  ```
32
32
 
33
- 1 tools available.
33
+ ## HTTP mode
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.
34
47
 
35
48
  ## Cloud Sync
36
49
 
37
- This package supports optional cloud sync to a PostgreSQL database:
50
+ This package supports cloud sync via `@hasna/cloud`:
38
51
 
39
52
  ```bash
40
- export HASNA_CONVERSATIONS_CLOUD_DATABASE_URL="postgres://..."
41
- conversations cloud status
42
- conversations cloud push
43
- conversations cloud pull
53
+ cloud setup
54
+ cloud sync push --service conversations
55
+ cloud sync pull --service conversations
44
56
  ```
45
57
 
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
-
50
58
  ## Data Directory
51
59
 
52
60
  Data is stored in `~/.hasna/conversations/`.