Skip to content

Commit

Permalink
update pairing
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed May 21, 2024
1 parent 9d6ae01 commit b8e57ce
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 66 deletions.
70 changes: 66 additions & 4 deletions docs/02_create.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Creating a Hive
# Creating a Hive

### Minds
## Minds

When creating a Hive the first step is to add a Mind to it, this is "the brain" of the hive and is expected to handle natural language queries

Expand All @@ -14,8 +14,68 @@ Once you have at least 1 Mind in your hive you can start connecting things to it

![imagem](https://github.com/JarbasHiveMind/HiveMind-community-docs/assets/33701864/fb241c4d-ca84-4b47-b917-b398b16f93bd)

### Managing Clients

### Terminals / Satellites
`hivemind-core` provides a command line interface to manage client permissions

```bash
$ hivemind-core --help
Usage: hivemind-core [OPTIONS] COMMAND [ARGS]...

Options:
--help Show this message and exit.

Commands:
add-client add credentials for a client
allow-msg allow message types sent from a client
delete-client remove credentials for a client
list-clients list clients and credentials
listen start listening for HiveMind connections
```

```shell
$ hivemind-core add-client --help
Usage: hivemind-core add-client [OPTIONS] [NAME] [ACCESS_KEY] [PASSWORD]
[CRYPTO_KEY]

add credentials for a client

Options:
--help Show this message and exit.
```

```shell
$ hivemind-core delete-client --help
Usage: hivemind-core delete-client [OPTIONS] NODE_ID

remove credentials for a client

Options:
--help Show this message and exit.
```

```shell
$ hivemind-core list-clients --help
Usage: hivemind-core list-clients [OPTIONS]

list clients and credentials

Options:
--help Show this message and exit.

```

```shell
$ hivemind-core allow-msg --help
Usage: hivemind-core allow-msg [OPTIONS] MSG_TYPE [NODE_ID]

allow message types sent from a client

Options:
--help Show this message and exit.
```

## Terminals / Satellites

A terminal is something that allows you to interact with your hive, it connects to a Mind setup in the previous step

Expand All @@ -24,8 +84,9 @@ A terminal is something that allows you to interact with your hive, it connects
- [Flask Chatroom](https://github.com/JarbasHiveMind/HiveMind-flask-template) - reference implementation for a web application that connects to a mind backend side
- [Remote Cli](https://github.com/OpenJarbas/HiveMind-cli) - a command line application to chat with a Mind

See the [pairing](https://jarbashivemind.github.io/HiveMind-community-docs/03_pairing/) documentation for further details

### Bridges
## Bridges

A bridge connects some existing service to a Mind, it is like a terminal but depends on some intermediate service

Expand All @@ -35,3 +96,4 @@ A bridge connects some existing service to a Mind, it is like a terminal but dep
- [Twitch Bridge](https://github.com/OpenJarbas/HiveMind-twitch-bridge)
- [DeltaChat Bridge](https://github.com/JarbasHiveMind/HiveMind-deltachat-bridge)


63 changes: 1 addition & 62 deletions docs/03_pairing.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,70 +2,9 @@

You can register clients in a Mind via command line or via audio

## Managing Clients

hivemind-core provides a command line interface to manage client permissions

```bash
$ hivemind-core --help
Usage: hivemind-core [OPTIONS] COMMAND [ARGS]...

Options:
--help Show this message and exit.

Commands:
add-client add credentials for a client
allow-msg allow message types sent from a client
delete-client remove credentials for a client
list-clients list clients and credentials
listen start listening for HiveMind connections
```

```shell
$ hivemind-core add-client --help
Usage: hivemind-core add-client [OPTIONS] [NAME] [ACCESS_KEY] [PASSWORD]
[CRYPTO_KEY]

add credentials for a client

Options:
--help Show this message and exit.
```

```shell
$ hivemind-core delete-client --help
Usage: hivemind-core delete-client [OPTIONS] NODE_ID

remove credentials for a client

Options:
--help Show this message and exit.
```

```shell
$ hivemind-core list-clients --help
Usage: hivemind-core list-clients [OPTIONS]

list clients and credentials

Options:
--help Show this message and exit.

```

```shell
$ hivemind-core allow-msg --help
Usage: hivemind-core allow-msg [OPTIONS] MSG_TYPE [NODE_ID]

allow message types sent from a client

Options:
--help Show this message and exit.
```

## Command Line Pairing

You need to register the satellite devices in the HiveMind **server** as discussed above
First, you need to register the satellite devices in the HiveMind **server**

```bash
$ hivemind-core add-client
Expand Down

0 comments on commit b8e57ce

Please sign in to comment.