@ariobarin/glossa 0.1.0-beta.8 → 0.1.0

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.
Files changed (4) hide show
  1. package/README.md +31 -10
  2. package/dist/app.js +20064 -0
  3. package/dist/main.js +23 -14368
  4. package/package.json +5 -2
package/README.md CHANGED
@@ -1,21 +1,42 @@
1
1
  # @ariobarin/glossa
2
2
 
3
- This package contains the `glossa` executable. Node 24 is required. Install the open beta from npm:
3
+ The `glossa` CLI connects one project on your computer to the Glossa MCP relay through an authenticated outbound worker. The npm package supports Windows, macOS, and Linux and requires Node.js 22.9 or newer.
4
4
 
5
- ```powershell
6
- npm install --global @ariobarin/glossa@beta
7
- Set-Location C:\path\to\a\repository
5
+ ```shell
6
+ npm install --global @ariobarin/glossa
7
+ ```
8
+
9
+ Start it in the project you want ChatGPT to use:
10
+
11
+ ```shell
8
12
  glossa
9
13
  ```
10
14
 
11
- Glossa opens Google sign-in automatically when needed using OAuth Device Authorization Flow. Public client and resource identifiers are built in, so testers do not configure OAuth values. Use the same Google account when authorizing Glossa in ChatGPT.
15
+ ## Access profiles
16
+
17
+ | Profile | Read files | Edit files inside the project | Run commands |
18
+ | --- | --- | --- | --- |
19
+ | `read-only` | Yes | No | No |
20
+ | `workspace` (default) | Yes | Yes | No |
21
+ | `system` | Yes | Yes | Yes |
12
22
 
13
- OAuth and device credentials use the operating-system credential store. If it is unavailable, Glossa warns before using a restricted credential file.
23
+ Use `glossa --access read-only` for inspection. Use `glossa --access system` only when the task needs local tests, builds, Git, or another project command.
14
24
 
15
- The first managed session enrolls the computer under its hostname. Running `glossa` inside a Git worktree exposes only that worktree root. `glossa start .` is the explicit form. Each process registers an independent workspace, so the same computer may expose several workspaces at once. The process prints the canonical root, connection state, shell authority warning, and write or command activity. Press Ctrl+C to disconnect.
25
+ > **`system` is not sandboxed.** Commands inherit the full environment, credentials, filesystem permissions, and network access of the operating-system account that started Glossa. They are not confined to the selected root.
16
26
 
17
- Glossa signs in automatically whenever an authenticated command needs an account. `glossa login` is an optional preflight. `glossa status` validates the session and relay, then reports enrolled devices and active workers. Use `glossa devices list`, `glossa devices rename <id> <name>`, and `glossa devices revoke <id>` to manage enrolled computers.
27
+ Expose only a narrow project you trust. Keep credentials and regulated or sensitive data out of the workspace. Review the [security overview](https://glossa.sh/security) before enabling commands.
18
28
 
19
- The managed endpoint defaults to `https://mcp.glossa.sh`. Development deployments may override `GLOSSA_RELAY_ORIGIN` and `GLOSSA_WORKER_ORIGIN`. Plain HTTP is accepted only for loopback relay origins and loopback or private IPv4 worker origins.
29
+ Pass a directory to expose another project, and add `--label <name>` when several online workspaces need a non-sensitive identifier. The terminal shows the selected project, access profile, connection state, and recent activity. Press `q` or Ctrl+C to disconnect.
30
+
31
+ Glossa opens sign-in when needed. Use the same Glossa account in ChatGPT and the CLI.
32
+
33
+ Useful controls:
34
+
35
+ ```shell
36
+ glossa status
37
+ glossa devices revoke <id>
38
+ glossa logout
39
+ glossa update --check
40
+ ```
20
41
 
21
- Run `glossa logout` to remove the CLI's local OAuth credentials. Running workers remain connected until stopped or revoked. Run `glossa logout --browser` before switching Google accounts so the next Glossa authorization does not silently reuse the previous browser session.
42
+ See the [quickstart](https://glossa.sh/docs/quickstart), [operations guide](https://github.com/ariobarin/glossa/blob/main/docs/operations.md), and [security overview](https://glossa.sh/security).