@hasna/conversations 0.2.50 → 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 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 the Licensor for inclusion in the Work by the copyright owner
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 the Licensor and
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 any notices that do not
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
- Copyright 2026 Hasna, Inc.
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
- ## 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 8811
39
- conversations-mcp --http --port 8811
40
- MCP_HTTP=1 conversations-mcp
41
- ```
42
-
43
- - Health: `GET http://127.0.0.1:8811/health`
44
- - MCP: `http://127.0.0.1:8811/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 via `@hasna/cloud`:
37
+ This package supports optional cloud sync to a PostgreSQL database:
51
38
 
52
39
  ```bash
53
- cloud setup
54
- cloud sync push --service conversations
55
- cloud sync pull --service conversations
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/`.