@hasna/connectors 1.4.3 → 1.4.5
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/README.md +3 -3
- package/bin/index.js +558 -397
- package/bin/mcp.js +297 -187
- package/bin/serve.js +491 -330
- package/connectors/aws/package.json +1 -1
- package/connectors/clickbank/package.json +1 -1
- package/dist/db/database.d.ts +5 -2
- package/dist/index.js +243 -138
- package/dist/lib/paths.d.ts +28 -0
- package/dist/lib/paths.test.d.ts +1 -0
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ bun install -g @hasna/connectors
|
|
|
17
17
|
|
|
18
18
|
- connectors stay inside this repo and package
|
|
19
19
|
- projects enable the connectors they want through `.connectors/manifest.json`
|
|
20
|
-
- credentials live in `~/.hasna/connectors/`
|
|
20
|
+
- credentials live in the connectors data home (resolved through `@hasna/paths`; `~/.hasna/connectors/` until the XDG data home is adopted)
|
|
21
21
|
- CLI, MCP, REST, and the dashboard all use the same connector registry
|
|
22
22
|
|
|
23
23
|
## CLI
|
|
@@ -40,7 +40,7 @@ Key commands:
|
|
|
40
40
|
- `connectors install` writes project enablement to `.connectors/manifest.json`
|
|
41
41
|
- `connectors list` and `connectors search` browse the shared catalog
|
|
42
42
|
- `connectors docs` reads connector docs from the internal registry
|
|
43
|
-
- `connectors auth` stores credentials in
|
|
43
|
+
- `connectors auth` stores credentials in the connectors data home (resolved through `@hasna/paths`)
|
|
44
44
|
- `connectors run` executes connector commands from the one-product runtime
|
|
45
45
|
- `connectors status` and `connectors doctor` verify setup and auth state
|
|
46
46
|
|
|
@@ -168,7 +168,7 @@ The package no longer copies full connector source trees into each project.
|
|
|
168
168
|
|
|
169
169
|
## Data Directory
|
|
170
170
|
|
|
171
|
-
|
|
171
|
+
The connectors data home is resolved through `@hasna/paths` (XDG/macOS home layout). The legacy `~/.hasna/connectors/` default stays the effective data home until the store is actually migrated to the XDG data home (`~/.local/share/hasna/connectors` on Linux, with `connectors.db` present there) or the operator sets the data-kind override `HASNA_DATA_HOME`. The exact-app override `HASNA_CONNECTORS_DIR` wins unconditionally. An existing live store never becomes invisible on upgrade.
|
|
172
172
|
|
|
173
173
|
## Contributor Notes
|
|
174
174
|
|